@builder.io/sdk-react 1.0.12 → 1.0.14

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.
Files changed (54) hide show
  1. package/lib/browser/blocks-exports.cjs +27 -26
  2. package/lib/browser/blocks-exports.mjs +788 -790
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/{server-entry-60df1736.cjs → server-entry-742c121c.cjs} +1 -1
  6. package/lib/browser/{server-entry-34e4efb1.js → server-entry-df552d27.js} +1 -1
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/{blocks-03ffaaf9.cjs → blocks-75e914c4.cjs} +1 -1
  10. package/lib/edge/{blocks-f8d5d3a0.js → blocks-dbf6f051.js} +2 -2
  11. package/lib/edge/blocks-exports.cjs +1 -1
  12. package/lib/edge/blocks-exports.mjs +2 -2
  13. package/lib/edge/{button-5137d1bc.cjs → button-4e7f9eff.cjs} +1 -1
  14. package/lib/edge/{button-5543875e.js → button-db8d78a4.js} +2 -2
  15. package/lib/edge/{columns-ad62a5ce.cjs → columns-8399aa74.cjs} +1 -1
  16. package/lib/edge/{columns-a05f9fd8.js → columns-9765610b.js} +3 -3
  17. package/lib/edge/{content-variants-74109911.js → content-variants-9a129944.js} +310 -312
  18. package/lib/edge/content-variants-ed22bfec.cjs +134 -0
  19. package/lib/edge/{form-67a4ec0b.js → form-7a73e99c.js} +3 -3
  20. package/lib/edge/{form-ee52f842.cjs → form-bc7b5558.cjs} +1 -1
  21. package/lib/edge/{get-class-prop-name-7ab1534a.cjs → get-class-prop-name-3c370466.cjs} +1 -1
  22. package/lib/edge/{get-class-prop-name-25116ae3.js → get-class-prop-name-83fffba1.js} +1 -1
  23. package/lib/edge/{img-147fc69c.cjs → img-7d93925c.cjs} +1 -1
  24. package/lib/edge/{img-43af4666.js → img-c944597b.js} +1 -1
  25. package/lib/edge/index.cjs +1 -1
  26. package/lib/edge/index.mjs +1 -1
  27. package/lib/edge/{input-90830684.cjs → input-72be594b.cjs} +1 -1
  28. package/lib/edge/{input-35088f50.js → input-d735cf41.js} +1 -1
  29. package/lib/edge/{select-1e63f097.cjs → select-3411462e.cjs} +1 -1
  30. package/lib/edge/{select-ee16e4ee.js → select-5e67472b.js} +1 -1
  31. package/lib/edge/{server-entry-f2d127da.js → server-entry-5e5c1898.js} +1 -1
  32. package/lib/edge/{server-entry-39e6b4a6.cjs → server-entry-62fc8a1d.cjs} +1 -1
  33. package/lib/edge/server-entry.cjs +1 -1
  34. package/lib/edge/server-entry.mjs +1 -1
  35. package/lib/edge/{slot-3db582db.cjs → slot-04d29096.cjs} +1 -1
  36. package/lib/edge/{slot-45a2e0bf.js → slot-495693a8.js} +3 -3
  37. package/lib/edge/{symbol-c533a54f.cjs → symbol-ad121694.cjs} +1 -1
  38. package/lib/edge/{symbol-75231166.js → symbol-c29e2a25.js} +3 -3
  39. package/lib/node/blocks-exports.cjs +15 -14
  40. package/lib/node/blocks-exports.mjs +328 -330
  41. package/lib/node/index.cjs +1 -1
  42. package/lib/node/index.mjs +1 -1
  43. package/lib/node/{server-entry-a0cd9606.js → server-entry-3a79d01e.js} +1 -1
  44. package/lib/node/{server-entry-81eab45c.cjs → server-entry-f5a4cdfa.cjs} +1 -1
  45. package/lib/node/server-entry.cjs +1 -1
  46. package/lib/node/server-entry.mjs +1 -1
  47. package/package.json +1 -1
  48. package/types/components/content/components/enable-editor.d.ts +1 -1
  49. package/types/components/content/components/styles.d.ts +1 -0
  50. package/types/components/content/components/styles.helpers.d.ts +1 -0
  51. package/types/components/content/contentProps.types.d.ts +6 -1
  52. package/types/components/content-variants/content-variants.d.ts +1 -1
  53. package/types/constants/sdk-version.d.ts +1 -1
  54. package/lib/edge/content-variants-e6ba9024.cjs +0 -133
@@ -1,16 +1,16 @@
1
1
  "use client";
2
- var je = Object.defineProperty;
3
- var Ue = (e, t, n) => t in e ? je(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
- var oe = (e, t, n) => (Ue(e, typeof t != "symbol" ? t + "" : t, n), n);
5
- import { jsx as c, Fragment as E, jsxs as N } from "react/jsx-runtime";
6
- import { TARGET as Y, isEditing as L, isBrowser as q, getUserAttributes as He, checkIsDefined as Z, logger as _, fastClone as se, registerInsertMenu as Ke, setupBrowserForEditing as qe, createRegisterComponentMessage as _e, getDefaultCanTrack as ee, _track as be, isPreviewing as ze, fetchOneEntry as Ee, createEditorListener as Je, fetch as Ye, serializeComponentInfo as ye, handleABTestingSync as Ge } from "./server-entry-34e4efb1.js";
7
- import { createContext as Re, useState as S, useEffect as W, useContext as pe, useRef as ne, createElement as ce } from "react";
8
- const Qe = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Xe = (e) => typeof e == "string" && Qe.has(e.toLowerCase());
9
- function de(e) {
10
- return /* @__PURE__ */ c(E, { children: Xe(e.TagName) ? /* @__PURE__ */ c(E, { children: /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ c(E, { children: typeof e.TagName == "string" ? /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
2
+ var Le = Object.defineProperty;
3
+ var De = (e, t, n) => t in e ? Le(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
+ var ee = (e, t, n) => (De(e, typeof t != "symbol" ? t + "" : t, n), n);
5
+ import { jsx as s, Fragment as T, jsxs as A } from "react/jsx-runtime";
6
+ import { TARGET as q, isEditing as W, isBrowser as U, getUserAttributes as Me, checkIsDefined as Y, logger as j, fastClone as oe, registerInsertMenu as Oe, setupBrowserForEditing as Ue, createRegisterComponentMessage as je, getDefaultCanTrack as G, _track as ue, isPreviewing as He, fetchOneEntry as ke, createEditorListener as Ke, fetch as qe, serializeComponentInfo as me, handleABTestingSync as ze } from "./server-entry-df552d27.js";
7
+ import { createContext as Ce, useState as w, useEffect as B, useContext as fe, useRef as X, createElement as we } from "react";
8
+ const _e = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Je = (e) => typeof e == "string" && _e.has(e.toLowerCase());
9
+ function ae(e) {
10
+ return /* @__PURE__ */ s(T, { children: Je(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 }) }) });
11
11
  }
12
- const z = () => {
13
- switch (Y) {
12
+ const H = () => {
13
+ switch (q) {
14
14
  case "react":
15
15
  case "reactNative":
16
16
  case "rsc":
@@ -22,13 +22,13 @@ const z = () => {
22
22
  return "class";
23
23
  }
24
24
  };
25
- function Ze(e) {
26
- return /* @__PURE__ */ c(
27
- de,
25
+ function Ye(e) {
26
+ return /* @__PURE__ */ s(
27
+ ae,
28
28
  {
29
29
  attributes: {
30
30
  ...e.attributes,
31
- [z()]: `${e.link ? "" : "builder-button"} ${e.attributes[z()] || ""}`,
31
+ [H()]: `${e.link ? "" : "builder-button"} ${e.attributes[H()] || ""}`,
32
32
  ...e.link ? {
33
33
  href: e.link,
34
34
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -43,7 +43,7 @@ function Ze(e) {
43
43
  }
44
44
  );
45
45
  }
46
- const ue = Re({
46
+ const re = Ce({
47
47
  content: null,
48
48
  context: {},
49
49
  localState: void 0,
@@ -56,8 +56,8 @@ const ue = Re({
56
56
  inheritedStyles: {},
57
57
  BlocksWrapper: "div",
58
58
  BlocksWrapperProps: {}
59
- }), Pe = Re({ registeredComponents: {} });
60
- function et(e) {
59
+ }), Ie = Ce({ registeredComponents: {} });
60
+ function Ge(e) {
61
61
  var t;
62
62
  return {
63
63
  ...(t = e.component) == null ? void 0 : t.options,
@@ -68,7 +68,7 @@ function et(e) {
68
68
  builderBlock: e
69
69
  };
70
70
  }
71
- const tt = ({
71
+ const Qe = ({
72
72
  builder: e,
73
73
  context: t,
74
74
  event: n,
@@ -80,14 +80,14 @@ const tt = ({
80
80
  builder: e,
81
81
  context: t,
82
82
  event: n
83
- }), nt = () => ({
84
- isEditing: L(),
85
- isBrowser: q(),
86
- isServer: !q(),
87
- getUserAttributes: () => He()
88
- }), it = (e, {
83
+ }), Xe = () => ({
84
+ isEditing: W(),
85
+ isBrowser: U(),
86
+ isServer: !U(),
87
+ getUserAttributes: () => Me()
88
+ }), Ze = (e, {
89
89
  isExpression: t = !0
90
- }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, Se = ({
90
+ }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, he = ({
91
91
  code: e,
92
92
  builder: t,
93
93
  context: n,
@@ -96,11 +96,11 @@ const tt = ({
96
96
  rootSetState: a,
97
97
  rootState: r
98
98
  }) => {
99
- const l = tt({
99
+ const l = Qe({
100
100
  builder: t,
101
101
  context: n,
102
102
  event: i,
103
- state: Ve({
103
+ state: Te({
104
104
  rootState: r,
105
105
  localState: o,
106
106
  rootSetState: a
@@ -108,7 +108,7 @@ const tt = ({
108
108
  });
109
109
  return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
110
110
  };
111
- function Ve({
111
+ function Te({
112
112
  rootState: e,
113
113
  localState: t,
114
114
  rootSetState: n
@@ -118,7 +118,7 @@ function Ve({
118
118
  if (t && o in t)
119
119
  return t[o];
120
120
  const a = i[o];
121
- return typeof a == "object" && a !== null ? Ve({
121
+ return typeof a == "object" && a !== null ? Te({
122
122
  rootState: a,
123
123
  localState: void 0,
124
124
  rootSetState: n ? (r) => {
@@ -133,17 +133,17 @@ function Ve({
133
133
  }
134
134
  });
135
135
  }
136
- function ot() {
136
+ function et() {
137
137
  var e;
138
- return typeof process != "undefined" && Z((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
138
+ return typeof process != "undefined" && Y((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
139
139
  }
140
- const at = () => {
140
+ const tt = () => {
141
141
  var i;
142
- if (!ot())
142
+ if (!et())
143
143
  return !1;
144
144
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
145
- return e && t && !n ? (_.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
146
- }, rt = (e) => (q() || at(), Se(e)), D = class D {
145
+ return e && t && !n ? (j.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
146
+ }, nt = (e) => (U() || tt(), he(e)), N = class N {
147
147
  static getCacheKey(t) {
148
148
  return JSON.stringify({
149
149
  ...t,
@@ -153,17 +153,17 @@ const at = () => {
153
153
  });
154
154
  }
155
155
  static getCachedValue(t) {
156
- return D.cache.get(t);
156
+ return N.cache.get(t);
157
157
  }
158
158
  static setCachedValue(t, n) {
159
- D.cache.size > 20 && D.cache.delete(D.cache.keys().next().value), D.cache.set(t, {
159
+ N.cache.size > 20 && N.cache.delete(N.cache.keys().next().value), N.cache.set(t, {
160
160
  value: n
161
161
  });
162
162
  }
163
163
  };
164
- oe(D, "cacheLimit", 20), oe(D, "cache", /* @__PURE__ */ new Map());
165
- let H = D;
166
- function J({
164
+ ee(N, "cacheLimit", 20), ee(N, "cache", /* @__PURE__ */ new Map());
165
+ let M = N;
166
+ function K({
167
167
  code: e,
168
168
  context: t,
169
169
  localState: n,
@@ -174,14 +174,14 @@ function J({
174
174
  enableCache: l
175
175
  }) {
176
176
  if (e === "") {
177
- _.warn("Skipping evaluation of empty code block.");
177
+ j.warn("Skipping evaluation of empty code block.");
178
178
  return;
179
179
  }
180
180
  const d = {
181
- code: it(e, {
181
+ code: Ze(e, {
182
182
  isExpression: r
183
183
  }),
184
- builder: nt(),
184
+ builder: Xe(),
185
185
  context: t,
186
186
  event: a,
187
187
  rootSetState: o,
@@ -189,31 +189,31 @@ function J({
189
189
  localState: n
190
190
  };
191
191
  if (l) {
192
- const s = H.getCacheKey(d), u = H.getCachedValue(s);
193
- if (u)
194
- return u.value;
192
+ const c = M.getCacheKey(d), m = M.getCachedValue(c);
193
+ if (m)
194
+ return m.value;
195
195
  }
196
196
  try {
197
- const s = rt(d);
197
+ const c = nt(d);
198
198
  if (l) {
199
- const u = H.getCacheKey(d);
200
- H.setCachedValue(u, s);
199
+ const m = M.getCacheKey(d);
200
+ M.setCachedValue(m, c);
201
201
  }
202
- return s;
203
- } catch (s) {
204
- _.error("Failed code evaluation: " + s.message, {
202
+ return c;
203
+ } catch (c) {
204
+ j.error("Failed code evaluation: " + c.message, {
205
205
  code: e
206
206
  });
207
207
  return;
208
208
  }
209
209
  }
210
- const Be = (e, t, n) => {
210
+ const Ee = (e, t, n) => {
211
211
  if (Object(e) !== e)
212
212
  return e;
213
213
  const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
214
214
  return i.slice(0, -1).reduce((o, a, r) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
215
215
  };
216
- const lt = ({
216
+ const it = ({
217
217
  block: e,
218
218
  context: t,
219
219
  localState: n,
@@ -222,7 +222,7 @@ const lt = ({
222
222
  }) => {
223
223
  if (!e.bindings)
224
224
  return e;
225
- const a = se(e), r = {
225
+ const a = oe(e), r = {
226
226
  ...a,
227
227
  properties: {
228
228
  ...a.properties
@@ -232,7 +232,7 @@ const lt = ({
232
232
  }
233
233
  };
234
234
  for (const l in e.bindings) {
235
- const d = e.bindings[l], s = J({
235
+ const d = e.bindings[l], c = K({
236
236
  code: d,
237
237
  localState: n,
238
238
  rootState: i,
@@ -240,11 +240,11 @@ const lt = ({
240
240
  context: t,
241
241
  enableCache: !0
242
242
  });
243
- Be(r, l, s);
243
+ Ee(r, l, c);
244
244
  }
245
245
  return r;
246
246
  };
247
- function te({
247
+ function Q({
248
248
  block: e,
249
249
  context: t,
250
250
  shouldEvaluateBindings: n,
@@ -253,7 +253,7 @@ function te({
253
253
  rootSetState: a
254
254
  }) {
255
255
  const r = e;
256
- return n ? lt({
256
+ return n ? it({
257
257
  block: r,
258
258
  localState: i,
259
259
  rootState: o,
@@ -261,19 +261,19 @@ function te({
261
261
  context: t
262
262
  }) : r;
263
263
  }
264
- function st(e, t, n = {}) {
264
+ function ot(e, t, n = {}) {
265
265
  let i, o, a, r = null, l = 0;
266
266
  const d = function() {
267
267
  l = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
268
268
  };
269
269
  return function() {
270
- const s = Date.now();
271
- !l && n.leading === !1 && (l = s);
272
- const u = t - (s - l);
273
- return i = this, o = arguments, u <= 0 || u > t ? (r && (clearTimeout(r), r = null), l = s, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, u)), a;
270
+ const c = Date.now();
271
+ !l && n.leading === !1 && (l = c);
272
+ const m = t - (c - l);
273
+ return i = this, o = arguments, m <= 0 || m > t ? (r && (clearTimeout(r), r = null), l = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, m)), a;
274
274
  };
275
275
  }
276
- function j(e, ...t) {
276
+ function L(e, ...t) {
277
277
  const n = Object(e);
278
278
  for (let i = 1; i < arguments.length; i++) {
279
279
  const o = arguments[i];
@@ -283,141 +283,141 @@ function j(e, ...t) {
283
283
  }
284
284
  return n;
285
285
  }
286
- const me = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
287
- function ct(e) {
286
+ const le = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
287
+ function at(e) {
288
288
  for (const t of e)
289
289
  switch (t.trigger) {
290
290
  case "pageLoad":
291
- We(t);
291
+ Re(t);
292
292
  break;
293
293
  case "hover":
294
- ut(t);
294
+ lt(t);
295
295
  break;
296
296
  case "scrollInView":
297
- mt(t);
297
+ st(t);
298
298
  break;
299
299
  }
300
300
  }
301
- function fe(e) {
301
+ function se(e) {
302
302
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
303
303
  }
304
- function he(e, t) {
305
- const n = dt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
304
+ function ce(e, t) {
305
+ const n = rt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
306
306
  for (const l of r)
307
307
  for (const d of n)
308
308
  d in l || (l[d] = i[d]);
309
309
  }
310
- function dt(e) {
310
+ function rt(e) {
311
311
  const t = [];
312
312
  for (const n of e.steps)
313
313
  for (const i in n.styles)
314
314
  t.indexOf(i) === -1 && t.push(i);
315
315
  return t;
316
316
  }
317
- function We(e) {
317
+ function Re(e) {
318
318
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
319
319
  if (!t.length) {
320
- fe(e.elementId || e.id || "");
320
+ se(e.elementId || e.id || "");
321
321
  return;
322
322
  }
323
323
  Array.from(t).forEach((n) => {
324
- he(e, n), n.style.transition = "none", n.style.transitionDelay = "0", j(n.style, e.steps[0].styles), setTimeout(() => {
325
- n.style.transition = `all ${e.duration}s ${me(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), j(n.style, e.steps[1].styles), setTimeout(() => {
324
+ ce(e, n), n.style.transition = "none", n.style.transitionDelay = "0", L(n.style, e.steps[0].styles), setTimeout(() => {
325
+ n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), L(n.style, e.steps[1].styles), setTimeout(() => {
326
326
  n.style.transition = "", n.style.transitionDelay = "";
327
327
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
328
328
  });
329
329
  });
330
330
  }
331
- function ut(e) {
331
+ function lt(e) {
332
332
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
333
333
  if (!t.length) {
334
- fe(e.elementId || e.id || "");
334
+ se(e.elementId || e.id || "");
335
335
  return;
336
336
  }
337
337
  Array.from(t).forEach((n) => {
338
- he(e, n);
338
+ ce(e, n);
339
339
  const i = e.steps[0].styles, o = e.steps[1].styles;
340
340
  function a() {
341
- j(n.style, i);
341
+ L(n.style, i);
342
342
  }
343
343
  function r() {
344
- j(n.style, o);
344
+ L(n.style, o);
345
345
  }
346
346
  a(), n.addEventListener("mouseenter", r), n.addEventListener("mouseleave", a), setTimeout(() => {
347
- n.style.transition = `all ${e.duration}s ${me(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
347
+ n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
348
348
  });
349
349
  });
350
350
  }
351
- function mt(e) {
351
+ function st(e) {
352
352
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
353
353
  if (!t.length) {
354
- fe(e.elementId || e.id || "");
354
+ se(e.elementId || e.id || "");
355
355
  return;
356
356
  }
357
357
  Array.from(t).forEach((n) => {
358
- he(e, n);
358
+ ce(e, n);
359
359
  let i = !1, o = !1;
360
360
  function a() {
361
361
  !i && l(n) ? (i = !0, o = !0, setTimeout(() => {
362
- j(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
362
+ L(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
363
363
  o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
364
364
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
365
- })) : e.repeat && i && !o && !l(n) && (i = !1, j(n.style, e.steps[0].styles));
365
+ })) : e.repeat && i && !o && !l(n) && (i = !1, L(n.style, e.steps[0].styles));
366
366
  }
367
- const r = st(a, 200, {
367
+ const r = ot(a, 200, {
368
368
  leading: !1
369
369
  });
370
- function l(u) {
371
- const m = u.getBoundingClientRect(), h = window.innerHeight, y = (e.thresholdPercent || 0) / 100 * h;
372
- return m.bottom > y && m.top < h - y;
370
+ function l(m) {
371
+ const h = m.getBoundingClientRect(), b = window.innerHeight, v = (e.thresholdPercent || 0) / 100 * b;
372
+ return h.bottom > v && h.top < b - v;
373
373
  }
374
374
  const d = e.steps[0].styles;
375
- function s() {
376
- j(n.style, d);
375
+ function c() {
376
+ L(n.style, d);
377
377
  }
378
- s(), setTimeout(() => {
379
- n.style.transition = `all ${e.duration}s ${me(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
378
+ c(), setTimeout(() => {
379
+ n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
380
380
  }), document.addEventListener("scroll", r, {
381
381
  capture: !0,
382
382
  passive: !0
383
383
  }), a();
384
384
  });
385
385
  }
386
- const ft = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Ae = (e) => Object.entries(e).map(([n, i]) => {
386
+ const ct = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Pe = (e) => Object.entries(e).map(([n, i]) => {
387
387
  if (typeof i == "string")
388
- return `${ft(n)}: ${i};`;
389
- }).filter(Z), ht = (e) => Ae(e).join(`
390
- `), ae = ({
388
+ return `${ct(n)}: ${i};`;
389
+ }).filter(Y), dt = (e) => Pe(e).join(`
390
+ `), te = ({
391
391
  mediaQuery: e,
392
392
  className: t,
393
393
  styles: n
394
394
  }) => {
395
395
  const i = `.${t} {
396
- ${ht(n)}
396
+ ${dt(n)}
397
397
  }`;
398
398
  return e ? `${e} {
399
399
  ${i}
400
400
  }` : i;
401
401
  };
402
- function gt({
402
+ function ut({
403
403
  style: e
404
404
  }) {
405
405
  return e;
406
406
  }
407
- const bt = ({
407
+ const mt = ({
408
408
  block: e,
409
409
  context: t
410
- }) => Fe(gt({
410
+ }) => Ve(ut({
411
411
  style: e.style || {},
412
412
  context: t,
413
413
  block: e
414
414
  }));
415
- function Fe(e) {
416
- switch (Y) {
415
+ function Ve(e) {
416
+ switch (q) {
417
417
  case "svelte":
418
418
  case "vue":
419
419
  case "solid":
420
- return Ae(e).join(" ");
420
+ return Pe(e).join(" ");
421
421
  case "qwik":
422
422
  case "reactNative":
423
423
  case "react":
@@ -425,13 +425,13 @@ function Fe(e) {
425
425
  return e;
426
426
  }
427
427
  }
428
- const yt = ({
428
+ const ft = ({
429
429
  block: e,
430
430
  context: t,
431
431
  registeredComponents: n
432
432
  }) => {
433
433
  var a;
434
- const i = (a = te({
434
+ const i = (a = Q({
435
435
  block: e,
436
436
  localState: t.localState,
437
437
  rootState: t.rootState,
@@ -447,7 +447,7 @@ const yt = ({
447
447
  console.warn(`
448
448
  Could not find a registered component named "${i}".
449
449
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
450
- }, pt = ({
450
+ }, ht = ({
451
451
  block: e,
452
452
  context: t
453
453
  }) => {
@@ -457,7 +457,7 @@ const yt = ({
457
457
  } = e;
458
458
  if (!(n != null && n.collection))
459
459
  return;
460
- const o = J({
460
+ const o = K({
461
461
  code: n.collection,
462
462
  localState: t.localState,
463
463
  rootState: t.rootState,
@@ -468,20 +468,20 @@ const yt = ({
468
468
  if (!Array.isArray(o))
469
469
  return;
470
470
  const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
471
- return o.map((d, s) => ({
471
+ return o.map((d, c) => ({
472
472
  context: {
473
473
  ...t,
474
474
  localState: {
475
475
  ...t.localState,
476
- $index: s,
476
+ $index: c,
477
477
  $item: d,
478
478
  [r]: d,
479
- [`$${r}Index`]: s
479
+ [`$${r}Index`]: c
480
480
  }
481
481
  },
482
482
  block: i
483
483
  }));
484
- }, Ne = {
484
+ }, Be = {
485
485
  small: {
486
486
  min: 320,
487
487
  default: 321,
@@ -497,11 +497,11 @@ const yt = ({
497
497
  default: 991,
498
498
  max: 1200
499
499
  }
500
- }, xe = (e, t = Ne) => `@media (max-width: ${t[e].max}px)`, $e = ({
500
+ }, ge = (e, t = Be) => `@media (max-width: ${t[e].max}px)`, Ae = ({
501
501
  small: e,
502
502
  medium: t
503
503
  }) => {
504
- const n = se(Ne);
504
+ const n = oe(Be);
505
505
  if (!e || !t)
506
506
  return n;
507
507
  const i = Math.floor(e / 2);
@@ -524,12 +524,12 @@ const yt = ({
524
524
  default: a + 1
525
525
  }, n;
526
526
  };
527
- function ie(e) {
528
- return /* @__PURE__ */ c("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
527
+ function Z(e) {
528
+ return /* @__PURE__ */ s("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
529
529
  }
530
- function St(e) {
530
+ function gt(e) {
531
531
  function t() {
532
- const i = te({
532
+ const i = Q({
533
533
  block: e.block,
534
534
  localState: e.context.localState,
535
535
  rootState: e.context.rootState,
@@ -537,48 +537,48 @@ function St(e) {
537
537
  context: e.context.context,
538
538
  shouldEvaluateBindings: !0
539
539
  });
540
- return Z(i.hide) ? !i.hide : Z(i.show) ? i.show : !0;
540
+ return Y(i.hide) ? !i.hide : Y(i.show) ? i.show : !0;
541
541
  }
542
542
  function n() {
543
- var y;
544
- const i = te({
543
+ var v;
544
+ const i = Q({
545
545
  block: e.block,
546
546
  localState: e.context.localState,
547
547
  rootState: e.context.rootState,
548
548
  rootSetState: e.context.rootSetState,
549
549
  context: e.context.context,
550
550
  shouldEvaluateBindings: !0
551
- }), o = i.responsiveStyles, a = e.context.content, r = $e(
552
- ((y = a == null ? void 0 : a.meta) == null ? void 0 : y.breakpoints) || {}
553
- ), l = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, s = o == null ? void 0 : o.small, u = i.id;
554
- if (!u)
551
+ }), o = i.responsiveStyles, a = e.context.content, r = Ae(
552
+ ((v = a == null ? void 0 : a.meta) == null ? void 0 : v.breakpoints) || {}
553
+ ), l = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, m = i.id;
554
+ if (!m)
555
555
  return "";
556
- const m = l ? ae({
557
- className: u,
556
+ const h = l ? te({
557
+ className: m,
558
558
  styles: l
559
- }) : "", h = d ? ae({
560
- className: u,
559
+ }) : "", b = d ? te({
560
+ className: m,
561
561
  styles: d,
562
- mediaQuery: xe(
562
+ mediaQuery: ge(
563
563
  "medium",
564
564
  r
565
565
  )
566
- }) : "", b = s ? ae({
567
- className: u,
568
- styles: s,
569
- mediaQuery: xe(
566
+ }) : "", y = c ? te({
567
+ className: m,
568
+ styles: c,
569
+ mediaQuery: ge(
570
570
  "small",
571
571
  r
572
572
  )
573
573
  }) : "";
574
- return [m, h, b].join(" ");
574
+ return [h, b, y].join(" ");
575
575
  }
576
- return /* @__PURE__ */ c(E, { children: n() && t() ? /* @__PURE__ */ c(E, { children: /* @__PURE__ */ c(ie, { styles: n() }) }) : null });
576
+ return /* @__PURE__ */ s(T, { children: n() && t() ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(Z, { styles: n() }) }) : null });
577
577
  }
578
- function xt(e) {
578
+ function bt(e) {
579
579
  return e.charAt(0).toUpperCase() + e.slice(1);
580
580
  }
581
- const vt = (e) => `on${xt(e)}`, kt = (e, t) => (n) => J({
581
+ const yt = (e) => `on${bt(e)}`, pt = (e, t) => (n) => K({
582
582
  code: e,
583
583
  context: t.context,
584
584
  localState: t.localState,
@@ -588,16 +588,16 @@ const vt = (e) => `on${xt(e)}`, kt = (e, t) => (n) => J({
588
588
  isExpression: !1,
589
589
  enableCache: !0
590
590
  });
591
- function Le(e) {
591
+ function We(e) {
592
592
  var i;
593
593
  const t = {}, n = (i = e.block.actions) != null ? i : {};
594
594
  for (const o in n) {
595
595
  if (!n.hasOwnProperty(o))
596
596
  continue;
597
597
  const a = n[o];
598
- let r = vt(o);
598
+ let r = yt(o);
599
599
  if (e.stripPrefix)
600
- switch (Y) {
600
+ switch (q) {
601
601
  case "vue":
602
602
  r = r.replace("v-on:", "");
603
603
  break;
@@ -605,49 +605,49 @@ function Le(e) {
605
605
  r = r.replace("on:", "");
606
606
  break;
607
607
  }
608
- t[r] = kt(a, e);
608
+ t[r] = pt(a, e);
609
609
  }
610
610
  return t;
611
611
  }
612
- function Ct({
612
+ function St({
613
613
  properties: e
614
614
  }) {
615
615
  return e;
616
616
  }
617
- const wt = (e) => ({
617
+ const xt = (e) => ({
618
618
  href: e.href
619
619
  });
620
- function ge({
620
+ function de({
621
621
  block: e,
622
622
  context: t
623
623
  }) {
624
624
  var i;
625
625
  const n = {
626
- ...wt(e),
626
+ ...xt(e),
627
627
  ...e.properties,
628
628
  "builder-id": e.id,
629
- style: bt({
629
+ style: mt({
630
630
  block: e,
631
631
  context: t
632
632
  }),
633
- [z()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
633
+ [H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
634
634
  };
635
- return Ct({
635
+ return St({
636
636
  properties: n,
637
637
  context: t,
638
638
  block: e
639
639
  });
640
640
  }
641
- function It(e) {
642
- return /* @__PURE__ */ c(
643
- de,
641
+ function vt(e) {
642
+ return /* @__PURE__ */ s(
643
+ ae,
644
644
  {
645
645
  TagName: e.Wrapper,
646
- attributes: ge({
646
+ attributes: de({
647
647
  block: e.block,
648
648
  context: e.context
649
649
  }),
650
- actionAttributes: Le({
650
+ actionAttributes: We({
651
651
  block: e.block,
652
652
  rootState: e.context.rootState,
653
653
  rootSetState: e.context.rootSetState,
@@ -659,17 +659,17 @@ function It(e) {
659
659
  }
660
660
  );
661
661
  }
662
- function Tt(e) {
663
- return /* @__PURE__ */ c(
662
+ function kt(e) {
663
+ return /* @__PURE__ */ s(
664
664
  e.Wrapper,
665
665
  {
666
666
  ...e.wrapperProps,
667
667
  attributes: e.includeBlockProps ? {
668
- ...ge({
668
+ ...de({
669
669
  block: e.block,
670
670
  context: e.context
671
671
  }),
672
- ...Le({
672
+ ...We({
673
673
  block: e.block,
674
674
  rootState: e.context.rootState,
675
675
  rootSetState: e.context.rootSetState,
@@ -681,7 +681,7 @@ function Tt(e) {
681
681
  }
682
682
  );
683
683
  }
684
- const Et = ({
684
+ const Ct = ({
685
685
  componentOptions: e,
686
686
  builderBlock: t,
687
687
  context: n,
@@ -697,7 +697,7 @@ const Et = ({
697
697
  * component itself directly. Otherwise, they are provided to the wrapper element.
698
698
  */
699
699
  ...o ? {
700
- attributes: ge({
700
+ attributes: de({
701
701
  block: t,
702
702
  context: r
703
703
  })
@@ -711,15 +711,15 @@ const Et = ({
711
711
  includeBlockProps: o
712
712
  } : l;
713
713
  };
714
- function ve(e) {
714
+ function be(e) {
715
715
  var i;
716
- const [t, n] = S(
717
- () => e.isInteractive ? Tt : e.componentRef
716
+ const [t, n] = w(
717
+ () => e.isInteractive ? kt : e.componentRef
718
718
  );
719
- return /* @__PURE__ */ c(E, { children: e.componentRef ? /* @__PURE__ */ c(E, { children: /* @__PURE__ */ c(
719
+ return /* @__PURE__ */ s(T, { children: e.componentRef ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
720
720
  t,
721
721
  {
722
- ...Et({
722
+ ...Ct({
723
723
  componentOptions: e.componentOptions,
724
724
  builderBlock: e.builderBlock,
725
725
  context: e.context,
@@ -729,8 +729,8 @@ function ve(e) {
729
729
  isInteractive: e.isInteractive,
730
730
  contextValue: e.context
731
731
  }),
732
- children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ c(
733
- G,
732
+ children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
733
+ z,
734
734
  {
735
735
  block: o,
736
736
  context: e.context,
@@ -742,10 +742,10 @@ function ve(e) {
742
742
  }
743
743
  ) }) : null });
744
744
  }
745
- function Rt(e) {
746
- const [t, n] = S(() => e.repeatContext);
747
- return /* @__PURE__ */ c(ue.Provider, { value: t, children: /* @__PURE__ */ c(
748
- G,
745
+ function wt(e) {
746
+ const [t, n] = w(() => e.repeatContext);
747
+ return /* @__PURE__ */ s(re.Provider, { value: t, children: /* @__PURE__ */ s(
748
+ z,
749
749
  {
750
750
  block: e.block,
751
751
  context: t,
@@ -754,24 +754,24 @@ function Rt(e) {
754
754
  }
755
755
  ) });
756
756
  }
757
- function G(e) {
758
- var d, s, u;
757
+ function z(e) {
758
+ var d, c, m;
759
759
  function t() {
760
- return yt({
760
+ return ft({
761
761
  block: e.block,
762
762
  context: e.context,
763
763
  registeredComponents: e.registeredComponents
764
764
  });
765
765
  }
766
766
  function n() {
767
- return pt({
767
+ return ht({
768
768
  block: e.block,
769
769
  context: e.context
770
770
  });
771
771
  }
772
772
  function i() {
773
- var m;
774
- return (m = e.block.repeat) != null && m.collection ? e.block : te({
773
+ var h;
774
+ return (h = e.block.repeat) != null && h.collection ? e.block : Q({
775
775
  block: e.block,
776
776
  localState: e.context.localState,
777
777
  rootState: e.context.rootState,
@@ -781,32 +781,32 @@ function G(e) {
781
781
  });
782
782
  }
783
783
  function o() {
784
- var h;
785
- return e.block.tagName === "a" || ((h = i().properties) == null ? void 0 : h.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
784
+ var b;
785
+ return e.block.tagName === "a" || ((b = i().properties) == null ? void 0 : b.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
786
786
  }
787
787
  function a() {
788
- var b, y;
789
- if ((b = e.block.repeat) != null && b.collection)
790
- return !!((y = n == null ? void 0 : n()) != null && y.length);
791
- const m = "hide" in i() ? i().hide : !1;
792
- return ("show" in i() ? i().show : !0) && !m;
788
+ var y, v;
789
+ if ((y = e.block.repeat) != null && y.collection)
790
+ return !!((v = n == null ? void 0 : n()) != null && v.length);
791
+ const h = "hide" in i() ? i().hide : !1;
792
+ return ("show" in i() ? i().show : !0) && !h;
793
793
  }
794
794
  function r() {
795
- var h, b;
796
- return !((h = t == null ? void 0 : t()) != null && h.component) && !n() ? (b = i().children) != null ? b : [] : [];
795
+ var b, y;
796
+ return !((b = t == null ? void 0 : t()) != null && b.component) && !n() ? (y = i().children) != null ? y : [] : [];
797
797
  }
798
798
  function l() {
799
- var m, h, b, y, T, R, B, p, w, V, P;
799
+ var h, b, y, v, k, I, R, S, C, P, E;
800
800
  return {
801
- blockChildren: (m = i().children) != null ? m : [],
802
- componentRef: (h = t == null ? void 0 : t()) == null ? void 0 : h.component,
801
+ blockChildren: (h = i().children) != null ? h : [],
802
+ componentRef: (b = t == null ? void 0 : t()) == null ? void 0 : b.component,
803
803
  componentOptions: {
804
- ...et(i()),
804
+ ...Ge(i()),
805
805
  builderContext: e.context,
806
- ...((b = t == null ? void 0 : t()) == null ? void 0 : b.name) === "Core:Button" || ((y = t == null ? void 0 : t()) == null ? void 0 : y.name) === "Symbol" || ((T = t == null ? void 0 : t()) == null ? void 0 : T.name) === "Columns" || ((R = t == null ? void 0 : t()) == null ? void 0 : R.name) === "Form:Form" ? {
806
+ ...((y = t == null ? void 0 : t()) == null ? void 0 : y.name) === "Core:Button" || ((v = t == null ? void 0 : t()) == null ? void 0 : v.name) === "Symbol" || ((k = t == null ? void 0 : t()) == null ? void 0 : k.name) === "Columns" || ((I = t == null ? void 0 : t()) == null ? void 0 : I.name) === "Form:Form" ? {
807
807
  builderLinkComponent: e.linkComponent
808
808
  } : {},
809
- ...((B = t == null ? void 0 : t()) == null ? void 0 : B.name) === "Symbol" || ((p = t == null ? void 0 : t()) == null ? void 0 : p.name) === "Columns" || ((w = t == null ? void 0 : t()) == null ? void 0 : w.name) === "Form:Form" ? {
809
+ ...((R = t == null ? void 0 : t()) == null ? void 0 : R.name) === "Symbol" || ((S = t == null ? void 0 : t()) == null ? void 0 : S.name) === "Columns" || ((C = t == null ? void 0 : t()) == null ? void 0 : C.name) === "Form:Form" ? {
810
810
  builderComponents: e.registeredComponents
811
811
  } : {}
812
812
  },
@@ -814,22 +814,22 @@ function G(e) {
814
814
  linkComponent: e.linkComponent,
815
815
  registeredComponents: e.registeredComponents,
816
816
  builderBlock: i(),
817
- includeBlockProps: ((V = t == null ? void 0 : t()) == null ? void 0 : V.noWrap) === !0,
818
- isInteractive: !((P = t == null ? void 0 : t()) != null && P.isRSC)
817
+ includeBlockProps: ((P = t == null ? void 0 : t()) == null ? void 0 : P.noWrap) === !0,
818
+ isInteractive: !((E = t == null ? void 0 : t()) != null && E.isRSC)
819
819
  };
820
820
  }
821
- return W(() => {
822
- const m = i().id, h = i().animations;
823
- h && m && ct(
824
- h.filter((b) => b.trigger !== "hover").map((b) => ({
825
- ...b,
826
- elementId: m
821
+ return B(() => {
822
+ const h = i().id, b = i().animations;
823
+ b && h && at(
824
+ b.filter((y) => y.trigger !== "hover").map((y) => ({
825
+ ...y,
826
+ elementId: h
827
827
  }))
828
828
  );
829
- }, []), /* @__PURE__ */ c(E, { children: a() ? /* @__PURE__ */ N(E, { children: [
830
- /* @__PURE__ */ c(St, { block: e.block, context: e.context }),
831
- (d = t == null ? void 0 : t()) != null && d.noWrap ? /* @__PURE__ */ c(E, { children: /* @__PURE__ */ c(
832
- ve,
829
+ }, []), /* @__PURE__ */ s(T, { children: a() ? /* @__PURE__ */ A(T, { children: [
830
+ /* @__PURE__ */ s(gt, { block: e.block, context: e.context }),
831
+ (d = t == null ? void 0 : t()) != null && d.noWrap ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
832
+ be,
833
833
  {
834
834
  componentRef: l().componentRef,
835
835
  componentOptions: l().componentOptions,
@@ -841,25 +841,25 @@ function G(e) {
841
841
  includeBlockProps: l().includeBlockProps,
842
842
  isInteractive: l().isInteractive
843
843
  }
844
- ) }) : /* @__PURE__ */ c(E, { children: n() ? /* @__PURE__ */ c(E, { children: (u = n()) == null ? void 0 : u.map((m, h) => /* @__PURE__ */ c(
845
- Rt,
844
+ ) }) : /* @__PURE__ */ s(T, { children: n() ? /* @__PURE__ */ s(T, { children: (m = n()) == null ? void 0 : m.map((h, b) => /* @__PURE__ */ s(
845
+ wt,
846
846
  {
847
- repeatContext: m.context,
848
- block: m.block,
847
+ repeatContext: h.context,
848
+ block: h.block,
849
849
  registeredComponents: e.registeredComponents,
850
850
  linkComponent: e.linkComponent
851
851
  },
852
- h
853
- )) }) : /* @__PURE__ */ N(
854
- It,
852
+ b
853
+ )) }) : /* @__PURE__ */ A(
854
+ vt,
855
855
  {
856
856
  Wrapper: o(),
857
857
  block: i(),
858
858
  context: e.context,
859
859
  linkComponent: e.linkComponent,
860
860
  children: [
861
- /* @__PURE__ */ c(
862
- ve,
861
+ /* @__PURE__ */ s(
862
+ be,
863
863
  {
864
864
  componentRef: l().componentRef,
865
865
  componentOptions: l().componentOptions,
@@ -872,29 +872,29 @@ function G(e) {
872
872
  isInteractive: l().isInteractive
873
873
  }
874
874
  ),
875
- (s = r()) == null ? void 0 : s.map((m) => /* @__PURE__ */ c(
876
- G,
875
+ (c = r()) == null ? void 0 : c.map((h) => /* @__PURE__ */ s(
876
+ z,
877
877
  {
878
- block: m,
878
+ block: h,
879
879
  registeredComponents: e.registeredComponents,
880
880
  linkComponent: e.linkComponent,
881
881
  context: e.context
882
882
  },
883
- m.id
883
+ h.id
884
884
  ))
885
885
  ]
886
886
  }
887
887
  ) })
888
888
  ] }) : null });
889
889
  }
890
- function Pt(e) {
890
+ function It(e) {
891
891
  function t() {
892
892
  var o;
893
893
  return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
894
894
  }
895
895
  function n() {
896
896
  var o, a;
897
- L() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
897
+ W() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
898
898
  {
899
899
  type: "builder.clickEmptyBlocks",
900
900
  data: {
@@ -907,7 +907,7 @@ function Pt(e) {
907
907
  }
908
908
  function i() {
909
909
  var o, a;
910
- L() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
910
+ W() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
911
911
  {
912
912
  type: "builder.hoverEmptyBlocks",
913
913
  data: {
@@ -918,8 +918,8 @@ function Pt(e) {
918
918
  "*"
919
919
  ));
920
920
  }
921
- return /* @__PURE__ */ N(E, { children: [
922
- /* @__PURE__ */ c(
921
+ return /* @__PURE__ */ A(T, { children: [
922
+ /* @__PURE__ */ s(
923
923
  e.BlocksWrapper,
924
924
  {
925
925
  className: t() + " props-blocks-wrapper-7cd1560e",
@@ -933,18 +933,18 @@ function Pt(e) {
933
933
  children: e.children
934
934
  }
935
935
  ),
936
- /* @__PURE__ */ c("style", { children: `.props-blocks-wrapper-7cd1560e {
936
+ /* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-7cd1560e {
937
937
  display: flex;
938
938
  flex-direction: column;
939
939
  align-items: stretch;
940
940
  }` })
941
941
  ] });
942
942
  }
943
- function K(e) {
943
+ function O(e) {
944
944
  var i, o, a;
945
- const t = pe(ue), n = pe(Pe);
946
- return /* @__PURE__ */ c(
947
- Pt,
945
+ const t = fe(re), n = fe(Ie);
946
+ return /* @__PURE__ */ s(
947
+ It,
948
948
  {
949
949
  blocks: e.blocks,
950
950
  parent: e.parent,
@@ -952,8 +952,8 @@ function K(e) {
952
952
  styleProp: e.styleProp,
953
953
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
954
954
  BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
955
- children: e.blocks ? /* @__PURE__ */ c(E, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ c(
956
- G,
955
+ children: e.blocks ? /* @__PURE__ */ s(T, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ s(
956
+ z,
957
957
  {
958
958
  block: r,
959
959
  linkComponent: e.linkComponent,
@@ -965,82 +965,82 @@ function K(e) {
965
965
  }
966
966
  );
967
967
  }
968
- function Vt(e) {
969
- var B;
970
- const [t, n] = S(
968
+ function Tt(e) {
969
+ var R;
970
+ const [t, n] = w(
971
971
  () => typeof e.space == "number" ? e.space || 0 : 20
972
- ), [i, o] = S(() => e.columns || []), [a, r] = S(
972
+ ), [i, o] = w(() => e.columns || []), [a, r] = w(
973
973
  () => e.stackColumnsAt || "tablet"
974
974
  );
975
- function l(p) {
976
- var w;
977
- return ((w = i[p]) == null ? void 0 : w.width) || 100 / i.length;
975
+ function l(S) {
976
+ var C;
977
+ return ((C = i[S]) == null ? void 0 : C.width) || 100 / i.length;
978
978
  }
979
- function d(p) {
980
- const w = t * (i.length - 1) / i.length;
981
- return `calc(${l(p)}% - ${w}px)`;
979
+ function d(S) {
980
+ const C = t * (i.length - 1) / i.length;
981
+ return `calc(${l(S)}% - ${C}px)`;
982
982
  }
983
- function s({
984
- stackedStyle: p,
985
- desktopStyle: w
983
+ function c({
984
+ stackedStyle: S,
985
+ desktopStyle: C
986
986
  }) {
987
- return a === "tablet" ? p : w;
987
+ return a === "tablet" ? S : C;
988
988
  }
989
- function u({
990
- stackedStyle: p,
991
- desktopStyle: w
989
+ function m({
990
+ stackedStyle: S,
991
+ desktopStyle: C
992
992
  }) {
993
- return a === "never" ? w : p;
993
+ return a === "never" ? C : S;
994
994
  }
995
- const [m, h] = S(
995
+ const [h, b] = w(
996
996
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
997
997
  );
998
- function b() {
998
+ function y() {
999
999
  return {
1000
- "--flex-dir": m,
1001
- "--flex-dir-tablet": s({
1002
- stackedStyle: m,
1000
+ "--flex-dir": h,
1001
+ "--flex-dir-tablet": c({
1002
+ stackedStyle: h,
1003
1003
  desktopStyle: "row"
1004
1004
  })
1005
1005
  };
1006
1006
  }
1007
- function y(p) {
1008
- const w = p === 0 ? 0 : t, V = d(p), P = `${w}px`, M = "100%", O = 0;
1007
+ function v(S) {
1008
+ const C = S === 0 ? 0 : t, P = d(S), E = `${C}px`, F = "100%", $ = 0;
1009
1009
  return {
1010
1010
  ...{
1011
1011
  display: "flex",
1012
1012
  flexDirection: "column",
1013
1013
  alignItems: "stretch"
1014
1014
  },
1015
- width: V,
1016
- ["marginLeft"]: P,
1017
- "--column-width-mobile": u({
1018
- stackedStyle: M,
1019
- desktopStyle: V
1020
- }),
1021
- "--column-margin-left-mobile": u({
1022
- stackedStyle: O,
1015
+ width: P,
1016
+ ["marginLeft"]: E,
1017
+ "--column-width-mobile": m({
1018
+ stackedStyle: F,
1023
1019
  desktopStyle: P
1024
1020
  }),
1025
- "--column-width-tablet": s({
1026
- stackedStyle: M,
1027
- desktopStyle: V
1021
+ "--column-margin-left-mobile": m({
1022
+ stackedStyle: $,
1023
+ desktopStyle: E
1028
1024
  }),
1029
- "--column-margin-left-tablet": s({
1030
- stackedStyle: O,
1025
+ "--column-width-tablet": c({
1026
+ stackedStyle: F,
1031
1027
  desktopStyle: P
1028
+ }),
1029
+ "--column-margin-left-tablet": c({
1030
+ stackedStyle: $,
1031
+ desktopStyle: E
1032
1032
  })
1033
1033
  };
1034
1034
  }
1035
- function T(p) {
1036
- var V, P;
1037
- return $e(
1038
- ((P = (V = e.builderContext.content) == null ? void 0 : V.meta) == null ? void 0 : P.breakpoints) || {}
1039
- )[p].max;
1035
+ function k(S) {
1036
+ var P, E;
1037
+ return Ae(
1038
+ ((E = (P = e.builderContext.content) == null ? void 0 : P.meta) == null ? void 0 : E.breakpoints) || {}
1039
+ )[S].max;
1040
1040
  }
1041
- function R() {
1041
+ function I() {
1042
1042
  return `
1043
- @media (max-width: ${T("medium")}px) {
1043
+ @media (max-width: ${k("medium")}px) {
1044
1044
  .${e.builderBlock.id}-breakpoints {
1045
1045
  flex-direction: var(--flex-dir-tablet);
1046
1046
  align-items: stretch;
@@ -1052,7 +1052,7 @@ function Vt(e) {
1052
1052
  }
1053
1053
  }
1054
1054
 
1055
- @media (max-width: ${T("small")}px) {
1055
+ @media (max-width: ${k("small")}px) {
1056
1056
  .${e.builderBlock.id}-breakpoints {
1057
1057
  flex-direction: var(--flex-dir);
1058
1058
  align-items: stretch;
@@ -1065,30 +1065,30 @@ function Vt(e) {
1065
1065
  },
1066
1066
  `;
1067
1067
  }
1068
- return /* @__PURE__ */ N(E, { children: [
1069
- /* @__PURE__ */ N(
1068
+ return /* @__PURE__ */ A(T, { children: [
1069
+ /* @__PURE__ */ A(
1070
1070
  "div",
1071
1071
  {
1072
1072
  className: `builder-columns ${e.builderBlock.id}-breakpoints div-5e636bea`,
1073
- style: b(),
1073
+ style: y(),
1074
1074
  children: [
1075
- /* @__PURE__ */ c(ie, { styles: R() }),
1076
- (B = e.columns) == null ? void 0 : B.map((p, w) => /* @__PURE__ */ c(
1077
- de,
1075
+ /* @__PURE__ */ s(Z, { styles: I() }),
1076
+ (R = e.columns) == null ? void 0 : R.map((S, C) => /* @__PURE__ */ s(
1077
+ ae,
1078
1078
  {
1079
- TagName: p.link ? e.builderLinkComponent || "a" : "div",
1079
+ TagName: S.link ? e.builderLinkComponent || "a" : "div",
1080
1080
  actionAttributes: {},
1081
1081
  attributes: {
1082
- ...p.link ? {
1083
- href: p.link
1082
+ ...S.link ? {
1083
+ href: S.link
1084
1084
  } : {},
1085
- [z()]: "builder-column",
1086
- style: Fe(y(w))
1085
+ [H()]: "builder-column",
1086
+ style: Ve(v(C))
1087
1087
  },
1088
- children: /* @__PURE__ */ c(
1089
- K,
1088
+ children: /* @__PURE__ */ s(
1089
+ O,
1090
1090
  {
1091
- path: `component.options.columns.${w}.blocks`,
1091
+ path: `component.options.columns.${C}.blocks`,
1092
1092
  parent: e.builderBlock.id,
1093
1093
  styleProp: {
1094
1094
  flexGrow: "1"
@@ -1096,69 +1096,69 @@ function Vt(e) {
1096
1096
  context: e.builderContext,
1097
1097
  registeredComponents: e.builderComponents,
1098
1098
  linkComponent: e.builderLinkComponent,
1099
- blocks: p.blocks
1099
+ blocks: S.blocks
1100
1100
  }
1101
1101
  )
1102
1102
  },
1103
- w
1103
+ C
1104
1104
  ))
1105
1105
  ]
1106
1106
  }
1107
1107
  ),
1108
- /* @__PURE__ */ c("style", { children: `.div-5e636bea {
1108
+ /* @__PURE__ */ s("style", { children: `.div-5e636bea {
1109
1109
  display: flex;
1110
1110
  line-height: normal;
1111
1111
  }` })
1112
1112
  ] });
1113
1113
  }
1114
- function Bt(e) {
1115
- return /* @__PURE__ */ c("span", { children: e.children });
1114
+ function Et(e) {
1115
+ return /* @__PURE__ */ s("span", { children: e.children });
1116
1116
  }
1117
- function ke(e) {
1117
+ function ye(e) {
1118
1118
  return e.replace(/http(s)?:/, "");
1119
1119
  }
1120
- function Wt(e = "", t, n) {
1120
+ function Rt(e = "", t, n) {
1121
1121
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1122
1122
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1123
1123
  }
1124
- function At(e, t) {
1124
+ function Pt(e, t) {
1125
1125
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1126
1126
  return e;
1127
1127
  if (t === "master")
1128
- return ke(e);
1128
+ return ye(e);
1129
1129
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1130
1130
  if (n) {
1131
1131
  const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
1132
- return ke(`${i[0]}_${a}${o}`);
1132
+ return ye(`${i[0]}_${a}${o}`);
1133
1133
  }
1134
1134
  return null;
1135
1135
  }
1136
- function re(e) {
1136
+ function ne(e) {
1137
1137
  if (!e)
1138
1138
  return e;
1139
1139
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1140
1140
  if (e.match(/builder\.io/)) {
1141
1141
  let n = e;
1142
1142
  const i = Number(e.split("?width=")[1]);
1143
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Wt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1143
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Rt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1144
1144
  }
1145
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [At(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1145
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Pt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1146
1146
  }
1147
- function Ft(e) {
1147
+ function Vt(e) {
1148
1148
  var o, a, r, l;
1149
1149
  function t() {
1150
- var u;
1151
- const s = e.image || e.src;
1152
- if (!s || // We can auto add srcset for cdn.builder.io and shopify
1150
+ var m;
1151
+ const c = e.image || e.src;
1152
+ if (!c || // We can auto add srcset for cdn.builder.io and shopify
1153
1153
  // images, otherwise you can supply this prop manually
1154
- !(s.match(/builder\.io/) || s.match(/cdn\.shopify\.com/)))
1154
+ !(c.match(/builder\.io/) || c.match(/cdn\.shopify\.com/)))
1155
1155
  return e.srcset;
1156
- if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
1156
+ if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1157
1157
  if (!e.srcset.includes(e.image.split("?")[0]))
1158
- return console.debug("Removed given srcset"), re(s);
1158
+ return console.debug("Removed given srcset"), ne(c);
1159
1159
  } else if (e.image && !e.srcset)
1160
- return re(s);
1161
- return re(s);
1160
+ return ne(c);
1161
+ return ne(c);
1162
1162
  }
1163
1163
  function n() {
1164
1164
  var d;
@@ -1174,11 +1174,11 @@ function Ft(e) {
1174
1174
  };
1175
1175
  return e.aspectRatio ? d : void 0;
1176
1176
  }
1177
- return /* @__PURE__ */ N(E, { children: [
1178
- /* @__PURE__ */ N(E, { children: [
1179
- /* @__PURE__ */ N("picture", { children: [
1180
- n() ? /* @__PURE__ */ c("source", { type: "image/webp", srcSet: n() }) : null,
1181
- /* @__PURE__ */ c(
1177
+ return /* @__PURE__ */ A(T, { children: [
1178
+ /* @__PURE__ */ A(T, { children: [
1179
+ /* @__PURE__ */ A("picture", { children: [
1180
+ n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1181
+ /* @__PURE__ */ s(
1182
1182
  "img",
1183
1183
  {
1184
1184
  loading: "lazy",
@@ -1196,7 +1196,7 @@ function Ft(e) {
1196
1196
  }
1197
1197
  )
1198
1198
  ] }),
1199
- e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ c(
1199
+ e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ s(
1200
1200
  "div",
1201
1201
  {
1202
1202
  className: "builder-image-sizer div-a0c95e8c",
@@ -1205,10 +1205,10 @@ function Ft(e) {
1205
1205
  }
1206
1206
  }
1207
1207
  ) : null,
1208
- (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ c(E, { children: e.children }) : null,
1209
- !e.fitContent && e.children ? /* @__PURE__ */ c("div", { className: "div-a0c95e8c-2", children: e.children }) : null
1208
+ (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(T, { children: e.children }) : null,
1209
+ !e.fitContent && e.children ? /* @__PURE__ */ s("div", { className: "div-a0c95e8c-2", children: e.children }) : null
1210
1210
  ] }),
1211
- /* @__PURE__ */ c("style", { children: `.img-a0c95e8c {
1211
+ /* @__PURE__ */ s("style", { children: `.img-a0c95e8c {
1212
1212
  opacity: 1;
1213
1213
  transition: opacity 0.2s ease-in-out;
1214
1214
  }.div-a0c95e8c {
@@ -1227,8 +1227,8 @@ function Ft(e) {
1227
1227
  }` })
1228
1228
  ] });
1229
1229
  }
1230
- function Nt(e) {
1231
- return /* @__PURE__ */ c(
1230
+ function Bt(e) {
1231
+ return /* @__PURE__ */ s(
1232
1232
  "section",
1233
1233
  {
1234
1234
  ...e.attributes,
@@ -1248,7 +1248,7 @@ function Nt(e) {
1248
1248
  }
1249
1249
  );
1250
1250
  }
1251
- const $t = {
1251
+ const At = {
1252
1252
  name: "Core:Button",
1253
1253
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1254
1254
  defaultStyles: {
@@ -1281,7 +1281,7 @@ const $t = {
1281
1281
  }],
1282
1282
  static: !0,
1283
1283
  noWrap: !0
1284
- }, Lt = {
1284
+ }, Wt = {
1285
1285
  // TODO: ways to statically preprocess JSON for references, functions, etc
1286
1286
  name: "Columns",
1287
1287
  isRSC: !0,
@@ -1482,13 +1482,13 @@ const $t = {
1482
1482
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1483
1483
  advanced: !0
1484
1484
  }]
1485
- }, Dt = {
1485
+ }, Nt = {
1486
1486
  name: "Fragment",
1487
1487
  static: !0,
1488
1488
  hidden: !0,
1489
1489
  canHaveChildren: !0,
1490
1490
  noWrap: !0
1491
- }, Mt = {
1491
+ }, Ft = {
1492
1492
  name: "Image",
1493
1493
  static: !0,
1494
1494
  image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
@@ -1509,15 +1509,15 @@ const $t = {
1509
1509
  onChange: (e) => {
1510
1510
  e.delete("srcset"), e.delete("noWebp");
1511
1511
  function n(r, l = 6e4) {
1512
- return new Promise((d, s) => {
1513
- const u = document.createElement("img");
1514
- let m = !1;
1515
- u.onload = () => {
1516
- m = !0, d(u);
1517
- }, u.addEventListener("error", (h) => {
1518
- console.warn("Image load failed", h.error), s(h.error);
1519
- }), u.src = r, setTimeout(() => {
1520
- m || s(new Error("Image load timed out"));
1512
+ return new Promise((d, c) => {
1513
+ const m = document.createElement("img");
1514
+ let h = !1;
1515
+ m.onload = () => {
1516
+ h = !0, d(m);
1517
+ }, m.addEventListener("error", (b) => {
1518
+ console.warn("Image load failed", b.error), c(b.error);
1519
+ }), m.src = r, setTimeout(() => {
1520
+ h || c(new Error("Image load timed out"));
1521
1521
  }, l);
1522
1522
  });
1523
1523
  }
@@ -1588,7 +1588,7 @@ const $t = {
1588
1588
  advanced: !0,
1589
1589
  defaultValue: 0.7041
1590
1590
  }]
1591
- }, Ot = {
1591
+ }, $t = {
1592
1592
  name: "Core:Section",
1593
1593
  static: !0,
1594
1594
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1627,7 +1627,7 @@ const $t = {
1627
1627
  }
1628
1628
  }
1629
1629
  }]
1630
- }, jt = {
1630
+ }, Lt = {
1631
1631
  name: "Slot",
1632
1632
  isRSC: !0,
1633
1633
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1641,9 +1641,9 @@ const $t = {
1641
1641
  defaultValue: "children"
1642
1642
  }]
1643
1643
  };
1644
- function Ut(e) {
1644
+ function Dt(e) {
1645
1645
  var t, n, i;
1646
- return /* @__PURE__ */ c(
1646
+ return /* @__PURE__ */ s(
1647
1647
  "div",
1648
1648
  {
1649
1649
  style: {
@@ -1652,8 +1652,8 @@ function Ut(e) {
1652
1652
  ...!((t = e.builderContext.context) != null && t.symbolId) && {
1653
1653
  "builder-slot": e.name
1654
1654
  },
1655
- children: /* @__PURE__ */ c(
1656
- K,
1655
+ children: /* @__PURE__ */ s(
1656
+ O,
1657
1657
  {
1658
1658
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1659
1659
  path: `symbol.data.${e.name}`,
@@ -1664,7 +1664,7 @@ function Ut(e) {
1664
1664
  }
1665
1665
  );
1666
1666
  }
1667
- const Ht = {
1667
+ const Mt = {
1668
1668
  name: "Symbol",
1669
1669
  noWrap: !0,
1670
1670
  static: !0,
@@ -1697,7 +1697,7 @@ const Ht = {
1697
1697
  hideFromUI: !0,
1698
1698
  type: "boolean"
1699
1699
  }]
1700
- }, Kt = {
1700
+ }, Ot = {
1701
1701
  name: "Text",
1702
1702
  static: !0,
1703
1703
  isRSC: !0,
@@ -1716,9 +1716,9 @@ const Ht = {
1716
1716
  textAlign: "center"
1717
1717
  }
1718
1718
  };
1719
- function qt(e) {
1719
+ function Ut(e) {
1720
1720
  var t;
1721
- return /* @__PURE__ */ c(
1721
+ return /* @__PURE__ */ s(
1722
1722
  "div",
1723
1723
  {
1724
1724
  className: "builder-text",
@@ -1729,7 +1729,7 @@ function qt(e) {
1729
1729
  }
1730
1730
  );
1731
1731
  }
1732
- const _t = {
1732
+ const jt = {
1733
1733
  name: "Custom Code",
1734
1734
  static: !0,
1735
1735
  requiredPermissions: ["editCode"],
@@ -1752,36 +1752,36 @@ const _t = {
1752
1752
  advanced: !0
1753
1753
  }]
1754
1754
  };
1755
- function zt(e) {
1756
- const t = ne(null), [n, i] = S(() => []), [o, a] = S(() => []);
1757
- return W(() => {
1755
+ function Ht(e) {
1756
+ const t = X(null), [n, i] = w(() => []), [o, a] = w(() => []);
1757
+ return B(() => {
1758
1758
  var l;
1759
1759
  if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
1760
1760
  return;
1761
1761
  const r = t.current.getElementsByTagName("script");
1762
1762
  for (let d = 0; d < r.length; d++) {
1763
- const s = r[d];
1764
- if (s.src) {
1765
- if (n.includes(s.src))
1763
+ const c = r[d];
1764
+ if (c.src) {
1765
+ if (n.includes(c.src))
1766
1766
  continue;
1767
- n.push(s.src);
1768
- const u = document.createElement("script");
1769
- u.async = !0, u.src = s.src, document.head.appendChild(u);
1770
- } else if (!s.type || [
1767
+ n.push(c.src);
1768
+ const m = document.createElement("script");
1769
+ m.async = !0, m.src = c.src, document.head.appendChild(m);
1770
+ } else if (!c.type || [
1771
1771
  "text/javascript",
1772
1772
  "application/javascript",
1773
1773
  "application/ecmascript"
1774
- ].includes(s.type)) {
1775
- if (o.includes(s.innerText))
1774
+ ].includes(c.type)) {
1775
+ if (o.includes(c.innerText))
1776
1776
  continue;
1777
1777
  try {
1778
- o.push(s.innerText), new Function(s.innerText)();
1779
- } catch (u) {
1780
- console.warn("`CustomCode`: Error running script:", u);
1778
+ o.push(c.innerText), new Function(c.innerText)();
1779
+ } catch (m) {
1780
+ console.warn("`CustomCode`: Error running script:", m);
1781
1781
  }
1782
1782
  }
1783
1783
  }
1784
- }, []), /* @__PURE__ */ c(
1784
+ }, []), /* @__PURE__ */ s(
1785
1785
  "div",
1786
1786
  {
1787
1787
  ref: t,
@@ -1790,7 +1790,7 @@ function zt(e) {
1790
1790
  }
1791
1791
  );
1792
1792
  }
1793
- const Jt = {
1793
+ const Kt = {
1794
1794
  name: "Embed",
1795
1795
  static: !0,
1796
1796
  inputs: [{
@@ -1815,30 +1815,30 @@ const Jt = {
1815
1815
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1816
1816
  hideFromUI: !0
1817
1817
  }]
1818
- }, Yt = ["text/javascript", "application/javascript", "application/ecmascript"], Gt = (e) => Yt.includes(e.type);
1819
- function Qt(e) {
1820
- const t = ne(null), [n, i] = S(() => []), [o, a] = S(() => []), [r, l] = S(() => !1);
1818
+ }, qt = ["text/javascript", "application/javascript", "application/ecmascript"], zt = (e) => qt.includes(e.type);
1819
+ function _t(e) {
1820
+ const t = X(null), [n, i] = w(() => []), [o, a] = w(() => []), [r, l] = w(() => !1);
1821
1821
  function d() {
1822
1822
  if (!t.current || !t.current.getElementsByTagName)
1823
1823
  return;
1824
- const s = t.current.getElementsByTagName("script");
1825
- for (let u = 0; u < s.length; u++) {
1826
- const m = s[u];
1827
- if (m.src && !n.includes(m.src)) {
1828
- n.push(m.src);
1829
- const h = document.createElement("script");
1830
- h.async = !0, h.src = m.src, document.head.appendChild(h);
1831
- } else if (Gt(m) && !o.includes(m.innerText))
1824
+ const c = t.current.getElementsByTagName("script");
1825
+ for (let m = 0; m < c.length; m++) {
1826
+ const h = c[m];
1827
+ if (h.src && !n.includes(h.src)) {
1828
+ n.push(h.src);
1829
+ const b = document.createElement("script");
1830
+ b.async = !0, b.src = h.src, document.head.appendChild(b);
1831
+ } else if (zt(h) && !o.includes(h.innerText))
1832
1832
  try {
1833
- o.push(m.innerText), new Function(m.innerText)();
1834
- } catch (h) {
1835
- console.warn("`Embed`: Error running script:", h);
1833
+ o.push(h.innerText), new Function(h.innerText)();
1834
+ } catch (b) {
1835
+ console.warn("`Embed`: Error running script:", b);
1836
1836
  }
1837
1837
  }
1838
1838
  }
1839
- return W(() => {
1839
+ return B(() => {
1840
1840
  t.current && !r && (l(!0), d());
1841
- }, [t.current, r]), /* @__PURE__ */ c(
1841
+ }, [t.current, r]), /* @__PURE__ */ s(
1842
1842
  "div",
1843
1843
  {
1844
1844
  className: "builder-embed",
@@ -1847,7 +1847,7 @@ function Qt(e) {
1847
1847
  }
1848
1848
  );
1849
1849
  }
1850
- const Xt = {
1850
+ const Jt = {
1851
1851
  name: "Form:Form",
1852
1852
  // editableTags: ['builder-form-error']
1853
1853
  defaults: {
@@ -2078,127 +2078,127 @@ const Xt = {
2078
2078
  }
2079
2079
  }
2080
2080
  }]
2081
- }, Zt = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], en = () => {
2081
+ }, Yt = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Gt = () => {
2082
2082
  const e = process.env.NODE_ENV || "production";
2083
- return Zt.includes(e) ? e : "production";
2084
- }, tn = (e, t, n) => {
2083
+ return Yt.includes(e) ? e : "production";
2084
+ }, Qt = (e, t, n) => {
2085
2085
  const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
2086
2086
  return i === void 0 || i === e ? n : i;
2087
2087
  };
2088
- function nn(e) {
2089
- var m, h;
2090
- const t = ne(null), [n, i] = S(() => "unsubmitted"), [o, a] = S(() => null), [r, l] = S(() => "");
2091
- function d(b) {
2092
- var T, R;
2093
- const y = {
2088
+ function Xt(e) {
2089
+ var h, b;
2090
+ const t = X(null), [n, i] = w(() => "unsubmitted"), [o, a] = w(() => null), [r, l] = w(() => "");
2091
+ function d(y) {
2092
+ var k, I;
2093
+ const v = {
2094
2094
  ...e.builderContext.rootState,
2095
- ...b
2095
+ ...y
2096
2096
  };
2097
- e.builderContext.rootSetState ? (R = (T = e.builderContext).rootSetState) == null || R.call(T, y) : e.builderContext.rootState = y;
2097
+ e.builderContext.rootSetState ? (I = (k = e.builderContext).rootSetState) == null || I.call(k, v) : e.builderContext.rootState = v;
2098
2098
  }
2099
- function s() {
2100
- return L() && e.previewState || n;
2099
+ function c() {
2100
+ return W() && e.previewState || n;
2101
2101
  }
2102
- function u(b) {
2103
- var T;
2104
- const y = e.sendWithJs || e.sendSubmissionsTo === "email";
2102
+ function m(y) {
2103
+ var k;
2104
+ const v = e.sendWithJs || e.sendSubmissionsTo === "email";
2105
2105
  if (e.sendSubmissionsTo === "zapier")
2106
- b.preventDefault();
2107
- else if (y) {
2106
+ y.preventDefault();
2107
+ else if (v) {
2108
2108
  if (!(e.action || e.sendSubmissionsTo === "email")) {
2109
- b.preventDefault();
2109
+ y.preventDefault();
2110
2110
  return;
2111
2111
  }
2112
- b.preventDefault();
2113
- const R = b.currentTarget, B = e.customHeaders || {};
2114
- let p;
2115
- const w = new FormData(R), V = Array.from(
2116
- b.currentTarget.querySelectorAll("input,select,textarea")
2117
- ).filter((f) => !!f.name).map((f) => {
2118
- let I;
2119
- const $ = f.name;
2120
- if (f instanceof HTMLInputElement)
2121
- if (f.type === "radio") {
2122
- if (f.checked)
2123
- return I = f.name, {
2124
- key: $,
2125
- value: I
2112
+ y.preventDefault();
2113
+ const I = y.currentTarget, R = e.customHeaders || {};
2114
+ let S;
2115
+ const C = new FormData(I), P = Array.from(
2116
+ y.currentTarget.querySelectorAll("input,select,textarea")
2117
+ ).filter((u) => !!u.name).map((u) => {
2118
+ let f;
2119
+ const p = u.name;
2120
+ if (u instanceof HTMLInputElement)
2121
+ if (u.type === "radio") {
2122
+ if (u.checked)
2123
+ return f = u.name, {
2124
+ key: p,
2125
+ value: f
2126
2126
  };
2127
- } else if (f.type === "checkbox")
2128
- I = f.checked;
2129
- else if (f.type === "number" || f.type === "range") {
2130
- const A = f.valueAsNumber;
2131
- isNaN(A) || (I = A);
2127
+ } else if (u.type === "checkbox")
2128
+ f = u.checked;
2129
+ else if (u.type === "number" || u.type === "range") {
2130
+ const g = u.valueAsNumber;
2131
+ isNaN(g) || (f = g);
2132
2132
  } else
2133
- f.type === "file" ? I = f.files : I = f.value;
2133
+ u.type === "file" ? f = u.files : f = u.value;
2134
2134
  else
2135
- I = f.value;
2135
+ f = u.value;
2136
2136
  return {
2137
- key: $,
2138
- value: I
2137
+ key: p,
2138
+ value: f
2139
2139
  };
2140
2140
  });
2141
- let P = e.contentType;
2142
- if (e.sendSubmissionsTo === "email" && (P = "multipart/form-data"), Array.from(V).forEach(({ value: f }) => {
2143
- (f instanceof File || Array.isArray(f) && f[0] instanceof File || f instanceof FileList) && (P = "multipart/form-data");
2144
- }), P !== "application/json")
2145
- p = w;
2141
+ let E = e.contentType;
2142
+ if (e.sendSubmissionsTo === "email" && (E = "multipart/form-data"), Array.from(P).forEach(({ value: u }) => {
2143
+ (u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (E = "multipart/form-data");
2144
+ }), E !== "application/json")
2145
+ S = C;
2146
2146
  else {
2147
- const f = {};
2148
- Array.from(V).forEach(({ value: I, key: $ }) => {
2149
- Be(f, $, I);
2150
- }), p = JSON.stringify(f);
2147
+ const u = {};
2148
+ Array.from(P).forEach(({ value: f, key: p }) => {
2149
+ Ee(u, p, f);
2150
+ }), S = JSON.stringify(u);
2151
2151
  }
2152
- P && P !== "multipart/form-data" && (y && ((T = e.action) != null && T.includes("zapier.com")) || (B["content-type"] = P));
2153
- const M = new CustomEvent("presubmit", { detail: { body: p } });
2154
- if (t.current && (t.current.dispatchEvent(M), M.defaultPrevented))
2152
+ E && E !== "multipart/form-data" && (v && ((k = e.action) != null && k.includes("zapier.com")) || (R["content-type"] = E));
2153
+ const F = new CustomEvent("presubmit", { detail: { body: S } });
2154
+ if (t.current && (t.current.dispatchEvent(F), F.defaultPrevented))
2155
2155
  return;
2156
2156
  i("sending");
2157
- const O = `${en() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2157
+ const $ = `${Gt() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2158
2158
  e.sendSubmissionsToEmail || ""
2159
2159
  )}&name=${encodeURIComponent(e.name || "")}`;
2160
2160
  fetch(
2161
- e.sendSubmissionsTo === "email" ? O : e.action,
2162
- { body: p, headers: B, method: e.method || "post" }
2161
+ e.sendSubmissionsTo === "email" ? $ : e.action,
2162
+ { body: S, headers: R, method: e.method || "post" }
2163
2163
  ).then(
2164
- async (f) => {
2165
- let I;
2166
- const $ = f.headers.get("content-type");
2167
- if ($ && $.indexOf("application/json") !== -1 ? I = await f.json() : I = await f.text(), !f.ok && e.errorMessagePath) {
2168
- let A = tn(I, e.errorMessagePath);
2169
- A && (typeof A != "string" && (A = JSON.stringify(A)), l(A), d({ formErrorMessage: A }));
2164
+ async (u) => {
2165
+ let f;
2166
+ const p = u.headers.get("content-type");
2167
+ if (p && p.indexOf("application/json") !== -1 ? f = await u.json() : f = await u.text(), !u.ok && e.errorMessagePath) {
2168
+ let g = Qt(f, e.errorMessagePath);
2169
+ g && (typeof g != "string" && (g = JSON.stringify(g)), l(g), d({ formErrorMessage: g }));
2170
2170
  }
2171
- if (a(I), i(f.ok ? "success" : "error"), f.ok) {
2172
- const A = new CustomEvent("submit:success", {
2173
- detail: { res: f, body: I }
2171
+ if (a(f), i(u.ok ? "success" : "error"), u.ok) {
2172
+ const g = new CustomEvent("submit:success", {
2173
+ detail: { res: u, body: f }
2174
2174
  });
2175
2175
  if (t.current) {
2176
- if (t.current.dispatchEvent(A), A.defaultPrevented)
2176
+ if (t.current.dispatchEvent(g), g.defaultPrevented)
2177
2177
  return;
2178
2178
  e.resetFormOnSubmit !== !1 && t.current.reset();
2179
2179
  }
2180
2180
  if (e.successUrl)
2181
2181
  if (t.current) {
2182
- const g = new CustomEvent("route", {
2182
+ const x = new CustomEvent("route", {
2183
2183
  detail: { url: e.successUrl }
2184
2184
  });
2185
- t.current.dispatchEvent(g), g.defaultPrevented || (location.href = e.successUrl);
2185
+ t.current.dispatchEvent(x), x.defaultPrevented || (location.href = e.successUrl);
2186
2186
  } else
2187
2187
  location.href = e.successUrl;
2188
2188
  }
2189
2189
  },
2190
- (f) => {
2191
- const I = new CustomEvent("submit:error", {
2192
- detail: { error: f }
2190
+ (u) => {
2191
+ const f = new CustomEvent("submit:error", {
2192
+ detail: { error: u }
2193
2193
  });
2194
- t.current && (t.current.dispatchEvent(I), I.defaultPrevented) || (a(f), i("error"));
2194
+ t.current && (t.current.dispatchEvent(f), f.defaultPrevented) || (a(u), i("error"));
2195
2195
  }
2196
2196
  );
2197
2197
  }
2198
2198
  }
2199
- return /* @__PURE__ */ N(E, { children: [
2199
+ return /* @__PURE__ */ A(T, { children: [
2200
2200
  " ",
2201
- /* @__PURE__ */ N(
2201
+ /* @__PURE__ */ A(
2202
2202
  "form",
2203
2203
  {
2204
2204
  validate: e.validate,
@@ -2206,38 +2206,38 @@ function nn(e) {
2206
2206
  action: !e.sendWithJs && e.action,
2207
2207
  method: e.method,
2208
2208
  name: e.name,
2209
- onSubmit: (b) => u(b),
2209
+ onSubmit: (y) => m(y),
2210
2210
  ...e.attributes,
2211
2211
  children: [
2212
- e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ c(E, { children: (h = (m = e.builderBlock) == null ? void 0 : m.children) == null ? void 0 : h.map((b, y) => /* @__PURE__ */ c(
2213
- G,
2212
+ e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(T, { children: (b = (h = e.builderBlock) == null ? void 0 : h.children) == null ? void 0 : b.map((y, v) => /* @__PURE__ */ s(
2213
+ z,
2214
2214
  {
2215
- block: b,
2215
+ block: y,
2216
2216
  context: e.builderContext,
2217
2217
  registeredComponents: e.builderComponents,
2218
2218
  linkComponent: e.builderLinkComponent
2219
2219
  },
2220
- `form-block-${y}`
2220
+ `form-block-${v}`
2221
2221
  )) }) : null,
2222
- s() === "error" ? /* @__PURE__ */ c(
2223
- K,
2222
+ c() === "error" ? /* @__PURE__ */ s(
2223
+ O,
2224
2224
  {
2225
2225
  path: "errorMessage",
2226
2226
  blocks: e.errorMessage,
2227
2227
  context: e.builderContext
2228
2228
  }
2229
2229
  ) : null,
2230
- s() === "sending" ? /* @__PURE__ */ c(
2231
- K,
2230
+ c() === "sending" ? /* @__PURE__ */ s(
2231
+ O,
2232
2232
  {
2233
2233
  path: "sendingMessage",
2234
2234
  blocks: e.sendingMessage,
2235
2235
  context: e.builderContext
2236
2236
  }
2237
2237
  ) : null,
2238
- s() === "error" && o ? /* @__PURE__ */ c("pre", { className: "builder-form-error-text pre-31bf8a14", children: JSON.stringify(o, null, 2) }) : null,
2239
- s() === "success" ? /* @__PURE__ */ c(
2240
- K,
2238
+ c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-31bf8a14", children: JSON.stringify(o, null, 2) }) : null,
2239
+ c() === "success" ? /* @__PURE__ */ s(
2240
+ O,
2241
2241
  {
2242
2242
  path: "successMessage",
2243
2243
  blocks: e.successMessage,
@@ -2248,11 +2248,11 @@ function nn(e) {
2248
2248
  }
2249
2249
  ),
2250
2250
  " ",
2251
- /* @__PURE__ */ c("style", { children: ".pre-31bf8a14 { padding: 10px; color: red; text-align: center; }" }),
2251
+ /* @__PURE__ */ s("style", { children: ".pre-31bf8a14 { padding: 10px; color: red; text-align: center; }" }),
2252
2252
  " "
2253
2253
  ] });
2254
2254
  }
2255
- const on = {
2255
+ const Zt = {
2256
2256
  name: "Form:Input",
2257
2257
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2258
2258
  inputs: [
@@ -2304,12 +2304,12 @@ const on = {
2304
2304
  borderColor: "#ccc"
2305
2305
  }
2306
2306
  };
2307
- function an(e) {
2308
- return /* @__PURE__ */ ce(
2307
+ function en(e) {
2308
+ return /* @__PURE__ */ we(
2309
2309
  "input",
2310
2310
  {
2311
2311
  ...e.attributes,
2312
- key: L() && e.defaultValue ? e.defaultValue : "default-key",
2312
+ key: W() && e.defaultValue ? e.defaultValue : "default-key",
2313
2313
  placeholder: e.placeholder,
2314
2314
  type: e.type,
2315
2315
  name: e.name,
@@ -2319,7 +2319,7 @@ function an(e) {
2319
2319
  }
2320
2320
  );
2321
2321
  }
2322
- const rn = {
2322
+ const tn = {
2323
2323
  name: "Form:Select",
2324
2324
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2325
2325
  defaultStyles: {
@@ -2362,21 +2362,21 @@ const rn = {
2362
2362
  static: !0,
2363
2363
  noWrap: !0
2364
2364
  };
2365
- function ln(e) {
2365
+ function nn(e) {
2366
2366
  var t;
2367
- return /* @__PURE__ */ ce(
2367
+ return /* @__PURE__ */ we(
2368
2368
  "select",
2369
2369
  {
2370
2370
  ...e.attributes,
2371
2371
  value: e.value,
2372
- key: L() && e.defaultValue ? e.defaultValue : "default-key",
2372
+ key: W() && e.defaultValue ? e.defaultValue : "default-key",
2373
2373
  defaultValue: e.defaultValue,
2374
2374
  name: e.name
2375
2375
  },
2376
- (t = e.options) == null ? void 0 : t.map((n) => /* @__PURE__ */ c("option", { value: n.value, children: n.name || n.value }))
2376
+ (t = e.options) == null ? void 0 : t.map((n) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }))
2377
2377
  );
2378
2378
  }
2379
- const sn = {
2379
+ const on = {
2380
2380
  name: "Form:SubmitButton",
2381
2381
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2382
2382
  defaultStyles: {
@@ -2402,10 +2402,10 @@ const sn = {
2402
2402
  // TODO: defaultChildren
2403
2403
  // canHaveChildren: true,
2404
2404
  };
2405
- function cn(e) {
2406
- return /* @__PURE__ */ c("button", { type: "submit", ...e.attributes, children: e.text });
2405
+ function an(e) {
2406
+ return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
2407
2407
  }
2408
- const dn = {
2408
+ const rn = {
2409
2409
  // friendlyName?
2410
2410
  name: "Raw:Img",
2411
2411
  hideFromInsertMenu: !0,
@@ -2420,8 +2420,8 @@ const dn = {
2420
2420
  noWrap: !0,
2421
2421
  static: !0
2422
2422
  };
2423
- function un(e) {
2424
- return /* @__PURE__ */ c(
2423
+ function ln(e) {
2424
+ return /* @__PURE__ */ s(
2425
2425
  "img",
2426
2426
  {
2427
2427
  style: {
@@ -2432,10 +2432,10 @@ function un(e) {
2432
2432
  src: e.imgSrc || e.image,
2433
2433
  ...e.attributes
2434
2434
  },
2435
- L() && e.imgSrc || "default-key"
2435
+ W() && e.imgSrc || "default-key"
2436
2436
  );
2437
2437
  }
2438
- const mn = {
2438
+ const sn = {
2439
2439
  name: "Video",
2440
2440
  canHaveChildren: !0,
2441
2441
  defaultStyles: {
@@ -2517,8 +2517,8 @@ const mn = {
2517
2517
  advanced: !0
2518
2518
  }]
2519
2519
  };
2520
- function fn(e) {
2521
- var i, o, a, r, l, d, s;
2520
+ function cn(e) {
2521
+ var i, o, a, r, l, d, c;
2522
2522
  function t() {
2523
2523
  return {
2524
2524
  ...e.autoPlay === !0 ? {
@@ -2543,14 +2543,14 @@ function fn(e) {
2543
2543
  ...t()
2544
2544
  };
2545
2545
  }
2546
- return /* @__PURE__ */ N(
2546
+ return /* @__PURE__ */ A(
2547
2547
  "div",
2548
2548
  {
2549
2549
  style: {
2550
2550
  position: "relative"
2551
2551
  },
2552
2552
  children: [
2553
- /* @__PURE__ */ c(
2553
+ /* @__PURE__ */ s(
2554
2554
  "video",
2555
2555
  {
2556
2556
  className: "builder-video",
@@ -2572,10 +2572,10 @@ function fn(e) {
2572
2572
  },
2573
2573
  src: e.video || "no-src",
2574
2574
  poster: e.posterImage,
2575
- children: e.lazyLoad ? null : /* @__PURE__ */ c("source", { type: "video/mp4", src: e.video })
2575
+ children: e.lazyLoad ? null : /* @__PURE__ */ s("source", { type: "video/mp4", src: e.video })
2576
2576
  }
2577
2577
  ),
2578
- e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ c(
2578
+ e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ s(
2579
2579
  "div",
2580
2580
  {
2581
2581
  style: {
@@ -2586,7 +2586,7 @@ function fn(e) {
2586
2586
  }
2587
2587
  }
2588
2588
  ) : null,
2589
- (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ c(
2589
+ (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
2590
2590
  "div",
2591
2591
  {
2592
2592
  style: {
@@ -2597,7 +2597,7 @@ function fn(e) {
2597
2597
  children: e.children
2598
2598
  }
2599
2599
  ) : null,
2600
- (s = (d = e.builderBlock) == null ? void 0 : d.children) != null && s.length && !e.fitContent ? /* @__PURE__ */ c(
2600
+ (c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
2601
2601
  "div",
2602
2602
  {
2603
2603
  style: {
@@ -2618,55 +2618,55 @@ function fn(e) {
2618
2618
  }
2619
2619
  );
2620
2620
  }
2621
- const hn = () => [{
2622
- component: zt,
2623
- ..._t
2621
+ const dn = () => [{
2622
+ component: Ht,
2623
+ ...jt
2624
+ }, {
2625
+ component: _t,
2626
+ ...Kt
2624
2627
  }, {
2625
- component: Qt,
2628
+ component: Xt,
2626
2629
  ...Jt
2627
2630
  }, {
2628
- component: nn,
2629
- ...Xt
2631
+ component: en,
2632
+ ...Zt
2630
2633
  }, {
2631
2634
  component: an,
2632
2635
  ...on
2633
2636
  }, {
2634
- component: cn,
2635
- ...sn
2637
+ component: nn,
2638
+ ...tn
2636
2639
  }, {
2637
2640
  component: ln,
2638
2641
  ...rn
2639
2642
  }, {
2640
- component: un,
2641
- ...dn
2643
+ component: cn,
2644
+ ...sn
2645
+ }], pe = () => [{
2646
+ component: Ye,
2647
+ ...At
2642
2648
  }, {
2643
- component: fn,
2644
- ...mn
2645
- }], Ce = () => [{
2646
- component: Ze,
2647
- ...$t
2649
+ component: Tt,
2650
+ ...Wt
2651
+ }, {
2652
+ component: Et,
2653
+ ...Nt
2648
2654
  }, {
2649
2655
  component: Vt,
2650
- ...Lt
2656
+ ...Ft
2651
2657
  }, {
2652
2658
  component: Bt,
2653
- ...Dt
2659
+ ...$t
2654
2660
  }, {
2655
- component: Ft,
2656
- ...Mt
2661
+ component: Dt,
2662
+ ...Lt
2657
2663
  }, {
2658
- component: Nt,
2659
- ...Ot
2664
+ component: An,
2665
+ ...Mt
2660
2666
  }, {
2661
2667
  component: Ut,
2662
- ...jt
2663
- }, {
2664
- component: Fn,
2665
- ...Ht
2666
- }, {
2667
- component: qt,
2668
- ...Kt
2669
- }, ...hn()], gn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2668
+ ...Ot
2669
+ }, ...dn()], un = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2670
2670
  function getAndSetVariantId() {
2671
2671
  function setCookie(name, value, days) {
2672
2672
  let expires = '';
@@ -2722,7 +2722,7 @@ const hn = () => [{
2722
2722
  }).join('');
2723
2723
  styleEl.innerHTML = newStyleStr;
2724
2724
  }
2725
- }`, bn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2725
+ }`, mn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2726
2726
  if (!navigator.cookieEnabled) {
2727
2727
  return;
2728
2728
  }
@@ -2756,27 +2756,27 @@ const hn = () => [{
2756
2756
  thisScriptEl?.remove();
2757
2757
  }
2758
2758
  return;
2759
- }`, De = "builderIoAbTest", Me = "builderIoRenderContent", X = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2759
+ }`, Ne = "builderIoAbTest", Fe = "builderIoRenderContent", J = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2760
2760
  ...t,
2761
2761
  testVariationId: t.id,
2762
2762
  id: e == null ? void 0 : e.id
2763
- })), yn = ({
2763
+ })), fn = ({
2764
2764
  canTrack: e,
2765
2765
  content: t
2766
- }) => !(!(X(t).length > 0) || !e || q()), pn = (e) => e === "react" || e === "reactNative", Oe = pn(Y), Sn = () => `
2767
- window.${De} = ${gn}
2768
- window.${Me} = ${bn}
2769
- `, xn = (e, t) => `
2770
- window.${De}(
2771
- "${t}",${JSON.stringify(e)}, ${Oe}
2772
- )`, vn = ({
2766
+ }) => !(!(J(t).length > 0) || !e || U()), hn = (e) => e === "react" || e === "reactNative", $e = hn(q), gn = () => `
2767
+ window.${Ne} = ${un}
2768
+ window.${Fe} = ${mn}
2769
+ `, bn = (e, t) => `
2770
+ window.${Ne}(
2771
+ "${t}",${JSON.stringify(e)}, ${$e}
2772
+ )`, yn = ({
2773
2773
  contentId: e,
2774
2774
  variationId: t
2775
- }) => `window.${Me}(
2776
- "${t}", "${e}", ${Oe}
2775
+ }) => `window.${Fe}(
2776
+ "${t}", "${e}", ${$e}
2777
2777
  )`;
2778
- function le(e) {
2779
- return /* @__PURE__ */ c(
2778
+ function ie(e) {
2779
+ return /* @__PURE__ */ s(
2780
2780
  "script",
2781
2781
  {
2782
2782
  dangerouslySetInnerHTML: { __html: e.scriptStr },
@@ -2784,10 +2784,10 @@ function le(e) {
2784
2784
  }
2785
2785
  );
2786
2786
  }
2787
- function we(e) {
2787
+ function Se(e) {
2788
2788
  return Math.round(e * 1e3) / 1e3;
2789
2789
  }
2790
- const kn = (e, t, n = !0) => {
2790
+ const pn = (e, t, n = !0) => {
2791
2791
  if (!(e instanceof HTMLElement))
2792
2792
  return null;
2793
2793
  let i = n ? e : e.parentElement;
@@ -2798,28 +2798,28 @@ const kn = (e, t, n = !0) => {
2798
2798
  return i;
2799
2799
  } while (i = i.parentElement);
2800
2800
  return null;
2801
- }, Cn = (e) => kn(e, (t) => {
2801
+ }, Sn = (e) => pn(e, (t) => {
2802
2802
  const n = t.getAttribute("builder-id") || t.id;
2803
2803
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
2804
- }), Ie = ({
2804
+ }), xe = ({
2805
2805
  event: e,
2806
2806
  target: t
2807
2807
  }) => {
2808
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = we(i / n.width), r = we(o / n.height);
2808
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = Se(i / n.width), r = Se(o / n.height);
2809
2809
  return {
2810
2810
  x: a,
2811
2811
  y: r
2812
2812
  };
2813
- }, wn = (e) => {
2814
- const t = e.target, n = t && Cn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2813
+ }, xn = (e) => {
2814
+ const t = e.target, n = t && Sn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2815
2815
  return {
2816
2816
  targetBuilderElement: i || void 0,
2817
2817
  metadata: {
2818
- targetOffset: t ? Ie({
2818
+ targetOffset: t ? xe({
2819
2819
  event: e,
2820
2820
  target: t
2821
2821
  }) : void 0,
2822
- builderTargetOffset: n ? Ie({
2822
+ builderTargetOffset: n ? xe({
2823
2823
  event: e,
2824
2824
  target: n
2825
2825
  }) : void 0,
@@ -2827,75 +2827,71 @@ const kn = (e, t, n = !0) => {
2827
2827
  }
2828
2828
  };
2829
2829
  };
2830
- function In(e) {
2831
- var P, M, O, f, I, $, A;
2832
- const t = ne(null), [n, i] = S(() => 0);
2833
- S(() => !0);
2834
- function o(g) {
2835
- var v, k;
2836
- const x = {
2830
+ function vn(e) {
2831
+ var R, S, C, P, E, F, $;
2832
+ const t = X(null);
2833
+ function n(u) {
2834
+ var p, g;
2835
+ const f = {
2837
2836
  ...e.builderContextSignal.rootState,
2838
- ...g
2837
+ ...u
2839
2838
  };
2840
- e.builderContextSignal.rootSetState ? (k = (v = e.builderContextSignal).rootSetState) == null || k.call(v, x) : e.setBuilderContextSignal((C) => ({
2841
- ...C,
2842
- rootState: x
2839
+ e.builderContextSignal.rootSetState ? (g = (p = e.builderContextSignal).rootSetState) == null || g.call(p, f) : e.setBuilderContextSignal((x) => ({
2840
+ ...x,
2841
+ rootState: f
2843
2842
  }));
2844
2843
  }
2845
- function a(g) {
2846
- var v, k, C, F, U;
2847
- const x = {
2844
+ function i(u) {
2845
+ var p, g, x, V, D;
2846
+ const f = {
2848
2847
  ...e.builderContextSignal.content,
2849
- ...g,
2848
+ ...u,
2850
2849
  data: {
2851
- ...(v = e.builderContextSignal.content) == null ? void 0 : v.data,
2852
- ...g == null ? void 0 : g.data
2850
+ ...(p = e.builderContextSignal.content) == null ? void 0 : p.data,
2851
+ ...u == null ? void 0 : u.data
2853
2852
  },
2854
2853
  meta: {
2855
- ...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
2856
- ...g == null ? void 0 : g.meta,
2857
- breakpoints: ((C = g == null ? void 0 : g.meta) == null ? void 0 : C.breakpoints) || ((U = (F = e.builderContextSignal.content) == null ? void 0 : F.meta) == null ? void 0 : U.breakpoints)
2854
+ ...(g = e.builderContextSignal.content) == null ? void 0 : g.meta,
2855
+ ...u == null ? void 0 : u.meta,
2856
+ breakpoints: ((x = u == null ? void 0 : u.meta) == null ? void 0 : x.breakpoints) || ((D = (V = e.builderContextSignal.content) == null ? void 0 : V.meta) == null ? void 0 : D.breakpoints)
2858
2857
  }
2859
2858
  };
2860
- e.setBuilderContextSignal((Q) => ({
2861
- ...Q,
2862
- content: x
2859
+ e.setBuilderContextSignal((_) => ({
2860
+ ..._,
2861
+ content: f
2863
2862
  }));
2864
2863
  }
2865
- S(() => 0);
2866
- const [r, l] = S(
2867
- () => !1
2868
- ), [d, s] = S(
2864
+ const [o, a] = w(
2869
2865
  () => e.contentWrapper || "div"
2870
2866
  );
2871
- function u(g) {
2872
- return Je({
2867
+ function r(u) {
2868
+ return Ke({
2873
2869
  model: e.model,
2874
2870
  trustedHosts: e.trustedHosts,
2875
2871
  callbacks: {
2876
- configureSdk: (x) => {
2877
- var C;
2878
- const { breakpoints: v, contentId: k } = x;
2879
- !k || k !== ((C = e.builderContextSignal.content) == null ? void 0 : C.id) || v && (a({
2872
+ configureSdk: (f) => {
2873
+ var x;
2874
+ const { breakpoints: p, contentId: g } = f;
2875
+ !g || g !== ((x = e.builderContextSignal.content) == null ? void 0 : x.id) || p && i({
2880
2876
  meta: {
2881
- breakpoints: v
2877
+ breakpoints: p
2882
2878
  }
2883
- }), i(n + 1));
2879
+ });
2884
2880
  },
2885
- animation: (x) => {
2886
- We(x);
2881
+ animation: (f) => {
2882
+ Re(f);
2887
2883
  },
2888
- contentUpdate: (x) => {
2889
- a(x), i(n + 1);
2884
+ contentUpdate: (f) => {
2885
+ i(f);
2890
2886
  }
2891
2887
  }
2892
- })(g);
2888
+ })(u);
2893
2889
  }
2894
- function m() {
2895
- var x, v;
2896
- const g = (v = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : v.jsCode;
2897
- g && J({
2898
- code: g,
2890
+ function l() {
2891
+ var f, p;
2892
+ const u = (p = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : p.jsCode;
2893
+ u && K({
2894
+ code: u,
2899
2895
  context: e.context || {},
2900
2896
  localState: void 0,
2901
2897
  rootState: e.builderContextSignal.rootState,
@@ -2906,29 +2902,29 @@ function In(e) {
2906
2902
  enableCache: !1
2907
2903
  });
2908
2904
  }
2909
- const [h, b] = S(() => ({})), [y, T] = S(() => !1);
2910
- function R(g) {
2911
- var x, v;
2905
+ const [d, c] = w(() => ({})), [m, h] = w(() => !1);
2906
+ function b(u) {
2907
+ var f, p;
2912
2908
  if (e.builderContextSignal.content) {
2913
- const k = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, C = (v = e.builderContextSignal.content) == null ? void 0 : v.id;
2914
- be({
2909
+ const g = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, x = (p = e.builderContextSignal.content) == null ? void 0 : p.id;
2910
+ ue({
2915
2911
  type: "click",
2916
- canTrack: ee(e.canTrack),
2917
- contentId: C,
2912
+ canTrack: G(e.canTrack),
2913
+ contentId: x,
2918
2914
  apiKey: e.apiKey,
2919
- variationId: k !== C ? k : void 0,
2920
- ...wn(g),
2921
- unique: !y
2915
+ variationId: g !== x ? g : void 0,
2916
+ ...xn(u),
2917
+ unique: !m
2922
2918
  });
2923
2919
  }
2924
- y || T(!0);
2920
+ m || h(!0);
2925
2921
  }
2926
- function B(g) {
2927
- return g.replace(
2922
+ function y(u) {
2923
+ return u.replace(
2928
2924
  /{{([^}]+)}}/g,
2929
- (x, v) => String(
2930
- J({
2931
- code: v,
2925
+ (f, p) => String(
2926
+ K({
2927
+ code: p,
2932
2928
  context: e.context || {},
2933
2929
  localState: void 0,
2934
2930
  rootState: e.builderContextSignal.rootState,
@@ -2938,38 +2934,38 @@ function In(e) {
2938
2934
  )
2939
2935
  );
2940
2936
  }
2941
- function p({ url: g, key: x }) {
2942
- Ye(g).then((v) => v.json()).then((v) => {
2943
- var C, F;
2944
- const k = {
2937
+ function v({ url: u, key: f }) {
2938
+ qe(u).then((p) => p.json()).then((p) => {
2939
+ var x, V;
2940
+ const g = {
2945
2941
  ...e.builderContextSignal.rootState,
2946
- [x]: v
2942
+ [f]: p
2947
2943
  };
2948
- (F = (C = e.builderContextSignal).rootSetState) == null || F.call(C, k), h[x] = !0;
2949
- }).catch((v) => {
2950
- console.error("error fetching dynamic data", g, v);
2944
+ (V = (x = e.builderContextSignal).rootSetState) == null || V.call(x, g), d[f] = !0;
2945
+ }).catch((p) => {
2946
+ console.error("error fetching dynamic data", u, p);
2951
2947
  });
2952
2948
  }
2953
- function w() {
2954
- var x, v, k;
2955
- const g = (k = (v = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : v.httpRequests) != null ? k : {};
2956
- Object.entries(g).forEach(([C, F]) => {
2957
- if (F && (!h[C] || L())) {
2958
- const U = B(F);
2959
- p({
2960
- url: U,
2961
- key: C
2949
+ function k() {
2950
+ var f, p, g;
2951
+ const u = (g = (p = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : p.httpRequests) != null ? g : {};
2952
+ Object.entries(u).forEach(([x, V]) => {
2953
+ if (V && (!d[x] || W())) {
2954
+ const D = y(V);
2955
+ v({
2956
+ url: D,
2957
+ key: x
2962
2958
  });
2963
2959
  }
2964
2960
  });
2965
2961
  }
2966
- function V() {
2967
- L() && window.dispatchEvent(
2962
+ function I() {
2963
+ W() && window.dispatchEvent(
2968
2964
  new CustomEvent(
2969
2965
  "builder:component:stateChange",
2970
2966
  {
2971
2967
  detail: {
2972
- state: se(e.builderContextSignal.rootState),
2968
+ state: oe(e.builderContextSignal.rootState),
2973
2969
  ref: {
2974
2970
  name: e.model
2975
2971
  }
@@ -2978,10 +2974,10 @@ function In(e) {
2978
2974
  )
2979
2975
  );
2980
2976
  }
2981
- return W(() => {
2982
- var g, x;
2983
- if (q()) {
2984
- if (L() && (i(n + 1), window.addEventListener("message", u), Ke(), qe({
2977
+ return B(() => {
2978
+ var u, f;
2979
+ if (U()) {
2980
+ if (W() && (window.addEventListener("message", r), Oe(), Ue({
2985
2981
  ...e.locale ? {
2986
2982
  locale: e.locale
2987
2983
  } : {},
@@ -2993,79 +2989,77 @@ function In(e) {
2993
2989
  } : {}
2994
2990
  }), Object.values(
2995
2991
  e.builderContextSignal.componentInfos
2996
- ).forEach((k) => {
2997
- var F;
2998
- const C = _e(k);
2999
- (F = window.parent) == null || F.postMessage(C, "*");
2992
+ ).forEach((g) => {
2993
+ var V;
2994
+ const x = je(g);
2995
+ (V = window.parent) == null || V.postMessage(x, "*");
3000
2996
  }), window.addEventListener(
3001
2997
  "builder:component:stateChangeListenerActivated",
3002
- V
3003
- )), e.builderContextSignal.content && ee(e.canTrack)) {
3004
- const k = (g = e.builderContextSignal.content) == null ? void 0 : g.testVariationId, C = (x = e.builderContextSignal.content) == null ? void 0 : x.id, F = e.apiKey;
3005
- be({
2998
+ I
2999
+ )), e.builderContextSignal.content && G(e.canTrack)) {
3000
+ const g = (u = e.builderContextSignal.content) == null ? void 0 : u.testVariationId, x = (f = e.builderContextSignal.content) == null ? void 0 : f.id, V = e.apiKey;
3001
+ ue({
3006
3002
  type: "impression",
3007
3003
  canTrack: !0,
3008
- contentId: C,
3009
- apiKey: F,
3010
- variationId: k !== C ? k : void 0
3004
+ contentId: x,
3005
+ apiKey: V,
3006
+ variationId: g !== x ? g : void 0
3011
3007
  });
3012
3008
  }
3013
- if (ze()) {
3014
- const k = new URL(location.href).searchParams, C = k.get("builder.preview"), F = k.get(
3015
- `builder.preview.${C}`
3016
- ), U = k.get("apiKey") || k.get("builder.space");
3017
- C === e.model && U === e.apiKey && (!e.content || F === e.content.id) && Ee({
3009
+ if (He()) {
3010
+ const g = new URL(location.href).searchParams, x = g.get("builder.preview"), V = g.get(
3011
+ `builder.preview.${x}`
3012
+ ), D = g.get("apiKey") || g.get("builder.space");
3013
+ x === e.model && D === e.apiKey && (!e.content || V === e.content.id) && ke({
3018
3014
  model: e.model,
3019
3015
  apiKey: e.apiKey,
3020
3016
  apiVersion: e.builderContextSignal.apiVersion
3021
- }).then((Q) => {
3022
- Q && a(Q);
3017
+ }).then((_) => {
3018
+ _ && i(_);
3023
3019
  });
3024
3020
  }
3025
3021
  }
3026
- }, []), W(() => {
3027
- e.apiKey || _.error(
3022
+ }, []), B(() => {
3023
+ e.apiKey || j.error(
3028
3024
  "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3029
- ), m(), w(), V();
3030
- }, []), W(() => {
3031
- e.content && a(e.content);
3032
- }, [e.content]), W(() => {
3033
- }, [r]), W(() => {
3034
- m();
3035
- }, [(M = (P = e.builderContextSignal.content) == null ? void 0 : P.data) == null ? void 0 : M.jsCode]), W(() => {
3036
- w();
3037
- }, [(f = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : f.httpRequests]), W(() => {
3038
- V();
3039
- }, [e.builderContextSignal.rootState]), W(() => {
3040
- e.data && o(e.data);
3041
- }, [e.data]), W(() => {
3042
- e.locale && o({
3025
+ ), l(), k(), I();
3026
+ }, []), B(() => {
3027
+ e.content && i(e.content);
3028
+ }, [e.content]), B(() => {
3029
+ l();
3030
+ }, [(S = (R = e.builderContextSignal.content) == null ? void 0 : R.data) == null ? void 0 : S.jsCode]), B(() => {
3031
+ k();
3032
+ }, [(P = (C = e.builderContextSignal.content) == null ? void 0 : C.data) == null ? void 0 : P.httpRequests]), B(() => {
3033
+ I();
3034
+ }, [e.builderContextSignal.rootState]), B(() => {
3035
+ e.data && n(e.data);
3036
+ }, [e.data]), B(() => {
3037
+ e.locale && n({
3043
3038
  locale: e.locale
3044
3039
  });
3045
- }, [e.locale]), W(() => () => {
3046
- q() && (window.removeEventListener("message", u), window.removeEventListener(
3040
+ }, [e.locale]), B(() => () => {
3041
+ U() && (window.removeEventListener("message", r), window.removeEventListener(
3047
3042
  "builder:component:stateChangeListenerActivated",
3048
- V
3043
+ I
3049
3044
  ));
3050
- }, []), /* @__PURE__ */ c(ue.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ ce(
3051
- d,
3045
+ }, []), /* @__PURE__ */ s(re.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3046
+ o,
3052
3047
  {
3053
- key: n,
3054
3048
  ref: t,
3055
- onClick: (g) => R(g),
3056
- "builder-content-id": (I = e.builderContextSignal.content) == null ? void 0 : I.id,
3049
+ onClick: (u) => b(u),
3050
+ "builder-content-id": (E = e.builderContextSignal.content) == null ? void 0 : E.id,
3057
3051
  "builder-model": e.model,
3058
3052
  ...e.showContent ? {} : {
3059
3053
  hidden: !0,
3060
3054
  "aria-hidden": !0
3061
3055
  },
3062
3056
  ...e.contentWrapperProps,
3063
- className: `variant-${(($ = e.content) == null ? void 0 : $.testVariationId) || ((A = e.content) == null ? void 0 : A.id)}`
3064
- },
3065
- e.children
3057
+ className: `variant-${((F = e.content) == null ? void 0 : F.testVariationId) || (($ = e.content) == null ? void 0 : $.id)}`,
3058
+ children: e.children
3059
+ }
3066
3060
  ) : null });
3067
3061
  }
3068
- const Tn = (e) => {
3062
+ const kn = (e) => {
3069
3063
  var a, r;
3070
3064
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
3071
3065
  let o = "";
@@ -3080,37 +3074,26 @@ font-weight: 400;
3080
3074
  for (const l in e.files) {
3081
3075
  if (!(String(Number(l)) === l))
3082
3076
  continue;
3083
- const s = e.files[l];
3084
- s && s !== i && (o += `
3077
+ const c = e.files[l];
3078
+ c && c !== i && (o += `
3085
3079
  @font-face {
3086
3080
  font-family: "${t}";
3087
- src: url('${s}') format('woff2');
3081
+ src: url('${c}') format('woff2');
3088
3082
  font-display: fallback;
3089
3083
  font-weight: ${l};
3090
3084
  }
3091
3085
  `.trim());
3092
3086
  }
3093
3087
  return o;
3094
- }, En = ({
3088
+ }, Cn = ({
3095
3089
  customFonts: e
3096
3090
  }) => {
3097
3091
  var t;
3098
- return ((t = e == null ? void 0 : e.map((n) => Tn(n))) == null ? void 0 : t.join(" ")) || "";
3099
- }, Rn = ({
3092
+ return ((t = e == null ? void 0 : e.map((n) => kn(n))) == null ? void 0 : t.join(" ")) || "";
3093
+ }, wn = ({
3100
3094
  cssCode: e,
3101
3095
  contentId: t
3102
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
3103
- function Pn(e) {
3104
- const [t, n] = S(
3105
- () => `
3106
- ${Rn({
3107
- cssCode: e.cssCode,
3108
- contentId: e.contentId
3109
- })}
3110
- ${En({
3111
- customFonts: e.customFonts
3112
- })}
3113
-
3096
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", In = `
3114
3097
  .builder-button {
3115
3098
  all: unset;
3116
3099
  }
@@ -3127,11 +3110,23 @@ ${En({
3127
3110
  text-align: inherit;
3128
3111
  font-family: inherit;
3129
3112
  }
3113
+ `, Tn = (e) => e ? "" : In;
3114
+ function En(e) {
3115
+ const [t, n] = w(
3116
+ () => `
3117
+ ${wn({
3118
+ cssCode: e.cssCode,
3119
+ contentId: e.contentId
3120
+ })}
3121
+ ${Cn({
3122
+ customFonts: e.customFonts
3123
+ })}
3124
+ ${Tn(e.isNestedRender)}
3130
3125
  `.trim()
3131
3126
  );
3132
- return /* @__PURE__ */ c(ie, { styles: t });
3127
+ return /* @__PURE__ */ s(Z, { styles: t });
3133
3128
  }
3134
- const Vn = ({
3129
+ const Rn = ({
3135
3130
  content: e,
3136
3131
  data: t,
3137
3132
  locale: n
@@ -3148,7 +3143,7 @@ const Vn = ({
3148
3143
  locale: n
3149
3144
  } : {}
3150
3145
  };
3151
- }, Bn = ({
3146
+ }, Pn = ({
3152
3147
  content: e,
3153
3148
  data: t
3154
3149
  }) => e ? {
@@ -3159,46 +3154,46 @@ const Vn = ({
3159
3154
  },
3160
3155
  meta: e == null ? void 0 : e.meta
3161
3156
  } : void 0;
3162
- function Te(e) {
3163
- var d, s, u, m, h, b, y;
3164
- const [t, n] = S(
3157
+ function ve(e) {
3158
+ var d, c, m, h, b, y, v;
3159
+ const [t, n] = w(
3165
3160
  () => {
3166
- var T, R;
3167
- return vn({
3161
+ var k, I;
3162
+ return yn({
3168
3163
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3169
- variationId: (T = e.content) == null ? void 0 : T.testVariationId,
3164
+ variationId: (k = e.content) == null ? void 0 : k.testVariationId,
3170
3165
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3171
- contentId: (R = e.content) == null ? void 0 : R.id
3166
+ contentId: (I = e.content) == null ? void 0 : I.id
3172
3167
  });
3173
3168
  }
3174
3169
  );
3175
- function i(T) {
3176
- l((R) => ({
3177
- ...R,
3178
- rootState: T
3170
+ function i(k) {
3171
+ l((I) => ({
3172
+ ...I,
3173
+ rootState: k
3179
3174
  }));
3180
3175
  }
3181
- const [o, a] = S(
3176
+ const [o, a] = w(
3182
3177
  () => [
3183
- ...Ce(),
3178
+ ...pe(),
3184
3179
  ...e.customComponents || []
3185
3180
  ].reduce(
3186
- (T, { component: R, ...B }) => ({
3187
- ...T,
3188
- [B.name]: {
3189
- component: R,
3190
- ...ye(B)
3181
+ (k, { component: I, ...R }) => ({
3182
+ ...k,
3183
+ [R.name]: {
3184
+ component: I,
3185
+ ...me(R)
3191
3186
  }
3192
3187
  }),
3193
3188
  {}
3194
3189
  )
3195
- ), [r, l] = S(() => ({
3196
- content: Bn({
3190
+ ), [r, l] = w(() => ({
3191
+ content: Pn({
3197
3192
  content: e.content,
3198
3193
  data: e.data
3199
3194
  }),
3200
3195
  localState: void 0,
3201
- rootState: Vn({
3196
+ rootState: Rn({
3202
3197
  content: e.content,
3203
3198
  data: e.data,
3204
3199
  locale: e.locale
@@ -3208,12 +3203,12 @@ function Te(e) {
3208
3203
  apiKey: e.apiKey,
3209
3204
  apiVersion: e.apiVersion,
3210
3205
  componentInfos: [
3211
- ...Ce(),
3206
+ ...pe(),
3212
3207
  ...e.customComponents || []
3213
3208
  ].reduce(
3214
- (T, { component: R, ...B }) => ({
3215
- ...T,
3216
- [B.name]: ye(B)
3209
+ (k, { component: I, ...R }) => ({
3210
+ ...k,
3211
+ [R.name]: me(R)
3217
3212
  }),
3218
3213
  {}
3219
3214
  ),
@@ -3221,14 +3216,14 @@ function Te(e) {
3221
3216
  BlocksWrapper: e.blocksWrapper || "div",
3222
3217
  BlocksWrapperProps: e.blocksWrapperProps || {}
3223
3218
  }));
3224
- return /* @__PURE__ */ c(
3225
- Pe.Provider,
3219
+ return /* @__PURE__ */ s(
3220
+ Ie.Provider,
3226
3221
  {
3227
3222
  value: {
3228
3223
  registeredComponents: o
3229
3224
  },
3230
- children: /* @__PURE__ */ N(
3231
- In,
3225
+ children: /* @__PURE__ */ A(
3226
+ vn,
3232
3227
  {
3233
3228
  content: e.content,
3234
3229
  data: e.data,
@@ -3246,19 +3241,20 @@ function Te(e) {
3246
3241
  trustedHosts: e.trustedHosts,
3247
3242
  setBuilderContextSignal: l,
3248
3243
  children: [
3249
- e.isSsrAbTest ? /* @__PURE__ */ c(le, { scriptStr: t }) : null,
3250
- /* @__PURE__ */ c(
3251
- Pn,
3244
+ e.isSsrAbTest ? /* @__PURE__ */ s(ie, { scriptStr: t }) : null,
3245
+ /* @__PURE__ */ s(
3246
+ En,
3252
3247
  {
3248
+ isNestedRender: e.isNestedRender,
3253
3249
  contentId: (d = r.content) == null ? void 0 : d.id,
3254
- cssCode: (u = (s = r.content) == null ? void 0 : s.data) == null ? void 0 : u.cssCode,
3255
- customFonts: (h = (m = r.content) == null ? void 0 : m.data) == null ? void 0 : h.customFonts
3250
+ cssCode: (m = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : m.cssCode,
3251
+ customFonts: (b = (h = r.content) == null ? void 0 : h.data) == null ? void 0 : b.customFonts
3256
3252
  }
3257
3253
  ),
3258
- /* @__PURE__ */ c(
3259
- K,
3254
+ /* @__PURE__ */ s(
3255
+ O,
3260
3256
  {
3261
- blocks: (y = (b = r.content) == null ? void 0 : b.data) == null ? void 0 : y.blocks,
3257
+ blocks: (v = (y = r.content) == null ? void 0 : y.data) == null ? void 0 : v.blocks,
3262
3258
  context: r,
3263
3259
  registeredComponents: o,
3264
3260
  linkComponent: e.linkComponent
@@ -3270,52 +3266,53 @@ function Te(e) {
3270
3266
  }
3271
3267
  );
3272
3268
  }
3273
- function Wn(e) {
3269
+ function Vn(e) {
3274
3270
  var r, l;
3275
- const [t, n] = S(
3276
- () => yn({
3277
- canTrack: ee(e.canTrack),
3271
+ const [t, n] = w(
3272
+ () => fn({
3273
+ canTrack: G(e.canTrack),
3278
3274
  content: e.content
3279
3275
  })
3280
3276
  );
3281
3277
  function i() {
3282
3278
  var d;
3283
- return xn(
3284
- X(e.content).map((s) => ({
3285
- id: s.testVariationId,
3286
- testRatio: s.testRatio
3279
+ return bn(
3280
+ J(e.content).map((c) => ({
3281
+ id: c.testVariationId,
3282
+ testRatio: c.testRatio
3287
3283
  })),
3288
3284
  ((d = e.content) == null ? void 0 : d.id) || ""
3289
3285
  );
3290
3286
  }
3291
3287
  function o() {
3292
- return X(e.content).map((d) => `.variant-${d.testVariationId} { display: none; } `).join("");
3288
+ return J(e.content).map((d) => `.variant-${d.testVariationId} { display: none; } `).join("");
3293
3289
  }
3294
3290
  function a() {
3295
3291
  var d;
3296
3292
  return t ? {
3297
3293
  ...e.content,
3298
3294
  testVariationId: (d = e.content) == null ? void 0 : d.id
3299
- } : Ge({
3295
+ } : ze({
3300
3296
  item: e.content,
3301
- canTrack: ee(e.canTrack)
3297
+ canTrack: G(e.canTrack)
3302
3298
  });
3303
3299
  }
3304
- return W(() => {
3305
- }, []), /* @__PURE__ */ N(E, { children: [
3306
- !e.__isNestedRender && Y !== "reactNative" ? /* @__PURE__ */ c(le, { scriptStr: Sn() }) : null,
3307
- t ? /* @__PURE__ */ N(E, { children: [
3308
- /* @__PURE__ */ c(
3309
- ie,
3300
+ return B(() => {
3301
+ }, []), /* @__PURE__ */ A(T, { children: [
3302
+ !e.isNestedRender && q !== "reactNative" ? /* @__PURE__ */ s(ie, { scriptStr: gn() }) : null,
3303
+ t ? /* @__PURE__ */ A(T, { children: [
3304
+ /* @__PURE__ */ s(
3305
+ Z,
3310
3306
  {
3311
3307
  id: `variants-styles-${(r = e.content) == null ? void 0 : r.id}`,
3312
3308
  styles: o()
3313
3309
  }
3314
3310
  ),
3315
- /* @__PURE__ */ c(le, { scriptStr: i() }),
3316
- (l = X(e.content)) == null ? void 0 : l.map((d) => /* @__PURE__ */ c(
3317
- Te,
3311
+ /* @__PURE__ */ s(ie, { scriptStr: i() }),
3312
+ (l = J(e.content)) == null ? void 0 : l.map((d) => /* @__PURE__ */ s(
3313
+ ve,
3318
3314
  {
3315
+ isNestedRender: e.isNestedRender,
3319
3316
  content: d,
3320
3317
  showContent: !1,
3321
3318
  model: e.model,
@@ -3338,9 +3335,10 @@ function Wn(e) {
3338
3335
  d.testVariationId
3339
3336
  ))
3340
3337
  ] }) : null,
3341
- /* @__PURE__ */ c(
3342
- Te,
3338
+ /* @__PURE__ */ s(
3339
+ ve,
3343
3340
  {
3341
+ isNestedRender: e.isNestedRender,
3344
3342
  content: a(),
3345
3343
  showContent: !0,
3346
3344
  model: e.model,
@@ -3363,13 +3361,13 @@ function Wn(e) {
3363
3361
  )
3364
3362
  ] });
3365
3363
  }
3366
- const An = async ({
3364
+ const Bn = async ({
3367
3365
  builderContextValue: e,
3368
3366
  symbol: t
3369
3367
  }) => {
3370
3368
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
3371
3369
  (e != null && e.apiKey))
3372
- return Ee({
3370
+ return ke({
3373
3371
  model: t.model,
3374
3372
  apiKey: e.apiKey,
3375
3373
  apiVersion: e.apiVersion,
@@ -3379,39 +3377,39 @@ const An = async ({
3379
3377
  }
3380
3378
  }
3381
3379
  }).catch((n) => {
3382
- _.error("Could not fetch symbol content: ", n);
3380
+ j.error("Could not fetch symbol content: ", n);
3383
3381
  });
3384
3382
  };
3385
- function Fn(e) {
3383
+ function An(e) {
3386
3384
  var a, r, l, d;
3387
3385
  function t() {
3388
- var s, u;
3386
+ var c, m;
3389
3387
  return [
3390
- e.attributes[z()],
3388
+ e.attributes[H()],
3391
3389
  "builder-symbol",
3392
- (s = e.symbol) != null && s.inline ? "builder-inline-symbol" : void 0,
3393
- (u = e.symbol) != null && u.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
3390
+ (c = e.symbol) != null && c.inline ? "builder-inline-symbol" : void 0,
3391
+ (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
3394
3392
  ].filter(Boolean).join(" ");
3395
3393
  }
3396
- const [n, i] = S(() => {
3397
- var s;
3398
- return (s = e.symbol) == null ? void 0 : s.content;
3394
+ const [n, i] = w(() => {
3395
+ var c;
3396
+ return (c = e.symbol) == null ? void 0 : c.content;
3399
3397
  });
3400
3398
  function o() {
3401
- n || An({
3399
+ n || Bn({
3402
3400
  symbol: e.symbol,
3403
3401
  builderContextValue: e.builderContext
3404
- }).then((s) => {
3405
- s && i(s);
3402
+ }).then((c) => {
3403
+ c && i(c);
3406
3404
  });
3407
3405
  }
3408
- return W(() => {
3409
- }, []), W(() => {
3406
+ return B(() => {
3407
+ }, []), B(() => {
3410
3408
  o();
3411
- }, [e.symbol]), /* @__PURE__ */ c("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ c(
3412
- Wn,
3409
+ }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ s(
3410
+ Vn,
3413
3411
  {
3414
- __isNestedRender: !0,
3412
+ isNestedRender: !0,
3415
3413
  apiVersion: e.builderContext.apiVersion,
3416
3414
  apiKey: e.builderContext.apiKey,
3417
3415
  context: {
@@ -3433,14 +3431,14 @@ function Fn(e) {
3433
3431
  ) });
3434
3432
  }
3435
3433
  export {
3436
- K as Blocks,
3437
- Ze as Button,
3438
- Vt as Columns,
3439
- Wn as Content,
3440
- Bt as Fragment,
3441
- Ft as Image,
3442
- Nt as Section,
3443
- Fn as Symbol,
3444
- qt as Text,
3445
- fn as Video
3434
+ O as Blocks,
3435
+ Ye as Button,
3436
+ Tt as Columns,
3437
+ Vn as Content,
3438
+ Et as Fragment,
3439
+ Vt as Image,
3440
+ Bt as Section,
3441
+ An as Symbol,
3442
+ Ut as Text,
3443
+ cn as Video
3446
3444
  };