@builder.io/sdk-react 2.0.19 → 2.0.21

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 (67) hide show
  1. package/lib/browser/blocks-exports.cjs +31 -31
  2. package/lib/browser/blocks-exports.mjs +833 -833
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/{server-entry-c8020f19.cjs → server-entry-6e52be8e.cjs} +2 -2
  6. package/lib/browser/{server-entry-12189812.js → server-entry-8f273525.js} +1 -2
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/{accordion-634b0466.js → accordion-0fa0cd9f.js} +1 -1
  10. package/lib/edge/{accordion-eaf2e50a.cjs → accordion-98e5d925.cjs} +1 -1
  11. package/lib/edge/blocks-4dac2e8c.cjs +12 -0
  12. package/lib/edge/{blocks-51761337.js → blocks-805edb5d.js} +240 -233
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +2 -2
  15. package/lib/edge/{button-a0aad19e.cjs → button-04692c59.cjs} +1 -1
  16. package/lib/edge/{button-6d2144c3.js → button-8c912189.js} +2 -2
  17. package/lib/edge/{columns-44d76a14.cjs → columns-4d8db53c.cjs} +4 -4
  18. package/lib/edge/{columns-030a6892.js → columns-70a13cfe.js} +6 -6
  19. package/lib/edge/content-variants-7570438f.cjs +134 -0
  20. package/lib/edge/{content-variants-46a433c2.js → content-variants-d11198bc.js} +306 -308
  21. package/lib/edge/{evaluate-6febb3ef.js → evaluate-29e9d055.js} +671 -659
  22. package/lib/edge/{evaluate-29260bf8.cjs → evaluate-826010e9.cjs} +11 -13
  23. package/lib/edge/form-13c77d47.cjs +1 -0
  24. package/lib/edge/{form-855a28fc.js → form-28c6dcde.js} +6 -6
  25. package/lib/edge/{get-class-prop-name-6320e936.cjs → get-class-prop-name-182b0edb.cjs} +1 -1
  26. package/lib/edge/{get-class-prop-name-a6353748.js → get-class-prop-name-c9e11804.js} +1 -1
  27. package/lib/edge/{image-eebfcbac.cjs → image-54d2f755.cjs} +3 -3
  28. package/lib/edge/{image-6a074aab.js → image-6970c193.js} +24 -24
  29. package/lib/edge/{img-1f88586f.cjs → img-8f2d03d2.cjs} +1 -1
  30. package/lib/edge/{img-56b4a196.js → img-ca1be569.js} +1 -1
  31. package/lib/edge/index.cjs +1 -1
  32. package/lib/edge/index.mjs +1 -1
  33. package/lib/edge/{input-35f6fbdd.cjs → input-0456a323.cjs} +1 -1
  34. package/lib/edge/{input-7873f170.js → input-3db08208.js} +1 -1
  35. package/lib/edge/{select-eb16d7cc.js → select-251dfaa4.js} +1 -1
  36. package/lib/edge/{select-f03c5ba6.cjs → select-b851ff58.cjs} +1 -1
  37. package/lib/edge/{server-entry-77a5a1a0.js → server-entry-05e6ebef.js} +1 -2
  38. package/lib/edge/{server-entry-dbe27fb2.cjs → server-entry-75427eb3.cjs} +2 -2
  39. package/lib/edge/server-entry.cjs +1 -1
  40. package/lib/edge/server-entry.mjs +1 -1
  41. package/lib/edge/{slot-93865012.cjs → slot-279f992e.cjs} +1 -1
  42. package/lib/edge/{slot-c9a7a451.js → slot-76c2cebc.js} +4 -4
  43. package/lib/edge/{symbol-b6b36212.cjs → symbol-020487c5.cjs} +1 -1
  44. package/lib/edge/{symbol-6657c638.js → symbol-47130603.js} +2 -2
  45. package/lib/edge/{tabs-44484f49.js → tabs-3cc397e4.js} +4 -4
  46. package/lib/edge/{tabs-020fedaa.cjs → tabs-c6053c2d.cjs} +1 -1
  47. package/lib/edge/{text-e00e3cdc.js → text-29ef4fd5.js} +2 -2
  48. package/lib/edge/{text-562c8568.cjs → text-c9d83141.cjs} +1 -1
  49. package/lib/node/blocks-exports.cjs +31 -31
  50. package/lib/node/blocks-exports.mjs +817 -844
  51. package/lib/node/index.cjs +1 -1
  52. package/lib/node/index.mjs +2 -2
  53. package/lib/node/init.cjs +1 -1
  54. package/lib/node/init.mjs +2 -2
  55. package/lib/node/{server-entry-902ea0c4.js → server-entry-83392238.js} +1 -2
  56. package/lib/node/{server-entry-82ab17f2.cjs → server-entry-b5908591.cjs} +2 -2
  57. package/lib/node/server-entry.cjs +1 -1
  58. package/lib/node/server-entry.mjs +1 -1
  59. package/lib/node/{should-force-browser-runtime-in-node-0b0cefdf.js → should-force-browser-runtime-in-node-31b1e2f2.js} +56 -29
  60. package/lib/node/{should-force-browser-runtime-in-node-f20178fa.cjs → should-force-browser-runtime-in-node-391032cf.cjs} +4 -4
  61. package/package.json +1 -1
  62. package/types/constants/sdk-version.d.ts +1 -1
  63. package/types/functions/evaluate/browser-runtime/browser.d.ts +0 -6
  64. package/types/functions/evaluate/helpers.d.ts +5 -0
  65. package/lib/edge/blocks-b8c9a72a.cjs +0 -12
  66. package/lib/edge/content-variants-3eef022e.cjs +0 -134
  67. package/lib/edge/form-59059e97.cjs +0 -1
@@ -1,17 +1,17 @@
1
1
  "use client";
2
- var qe = Object.defineProperty;
3
- var _e = (e, t, n) => t in e ? qe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
- var ee = (e, t, n) => (_e(e, typeof t != "symbol" ? t + "" : t, n), n);
5
- import { jsx as l, Fragment as I, jsxs as V } from "react/jsx-runtime";
6
- import { TARGET as U, isBrowser as G, logger as ce, checkIsDefined as re, isPreviewing as we, isEditing as $, registerInsertMenu as ze, setupBrowserForEditing as Je, createRegisterComponentMessage as Ye, getDefaultCanTrack as Q, _track as he, fetchOneEntry as Re, createEditorListener as Ge, fetch as Qe, serializeIncludingFunctions as ge, handleABTestingSync as Xe } from "./server-entry-902ea0c4.js";
7
- import { createContext as Ee, useState as T, useEffect as B, useRef as _, useContext as be, createElement as Pe } from "react";
8
- import { getFunctionArguments as Ze, shouldForceBrowserRuntimeInNode as et, runInNode as tt, parseCode as nt, getBuilderGlobals as it, set as Be, fastClone as de } from "./should-force-browser-runtime-in-node-0b0cefdf.js";
9
- const ot = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), at = (e) => typeof e == "string" && ot.has(e.toLowerCase());
10
- function ue(e) {
11
- return /* @__PURE__ */ l(I, { children: at(e.TagName) ? /* @__PURE__ */ l(I, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(I, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
2
+ var Ue = Object.defineProperty;
3
+ var je = (e, t, n) => t in e ? Ue(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
+ var G = (e, t, n) => (je(e, typeof t != "symbol" ? t + "" : t, n), n);
5
+ import { jsx as l, Fragment as w, jsxs as V } from "react/jsx-runtime";
6
+ import { TARGET as L, isBrowser as _, logger as ae, checkIsDefined as ne, isPreviewing as ke, isEditing as F, registerInsertMenu as Me, setupBrowserForEditing as He, createRegisterComponentMessage as Ke, getDefaultCanTrack as z, _track as de, fetchOneEntry as Ce, createEditorListener as qe, serializeIncludingFunctions as ue, handleABTestingSync as _e } from "./server-entry-83392238.js";
7
+ import { createContext as Te, useEffect as P, useState as T, useRef as D, useContext as me, createElement as Ie } from "react";
8
+ import { getFunctionArguments as ze, flattenState as Je, shouldForceBrowserRuntimeInNode as Ye, runInNode as Ge, parseCode as Qe, getBuilderGlobals as Xe, set as we, fastClone as re } from "./should-force-browser-runtime-in-node-31b1e2f2.js";
9
+ const Ze = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), et = (e) => typeof e == "string" && Ze.has(e.toLowerCase());
10
+ function le(e) {
11
+ return /* @__PURE__ */ l(w, { children: et(e.TagName) ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(w, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
12
12
  }
13
- const q = () => {
14
- switch (U) {
13
+ const M = () => {
14
+ switch (L) {
15
15
  case "react":
16
16
  case "reactNative":
17
17
  case "rsc":
@@ -24,11 +24,11 @@ const q = () => {
24
24
  return "class";
25
25
  }
26
26
  };
27
- function rt(e) {
27
+ function tt(e) {
28
28
  function t() {
29
29
  return {
30
30
  ...e.attributes,
31
- [q()]: `${e.link ? "" : "builder-button"} ${e.attributes[q()] || ""}`,
31
+ [M()]: `${e.link ? "" : "builder-button"} ${e.attributes[M()] || ""}`,
32
32
  ...e.link ? {
33
33
  href: e.link,
34
34
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -39,7 +39,7 @@ function rt(e) {
39
39
  };
40
40
  }
41
41
  return /* @__PURE__ */ l(
42
- ue,
42
+ le,
43
43
  {
44
44
  attributes: t(),
45
45
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
@@ -48,7 +48,7 @@ function rt(e) {
48
48
  }
49
49
  );
50
50
  }
51
- const me = Ee({
51
+ const se = Te({
52
52
  content: null,
53
53
  context: {},
54
54
  localState: void 0,
@@ -62,21 +62,21 @@ const me = Ee({
62
62
  BlocksWrapper: "div",
63
63
  BlocksWrapperProps: {},
64
64
  nonce: ""
65
- }), Ve = Ee({ registeredComponents: {} });
66
- function lt(e) {
65
+ }), Re = Te({ registeredComponents: {} });
66
+ function nt(e) {
67
67
  var t;
68
68
  return {
69
69
  ...(t = e.component) == null ? void 0 : t.options,
70
70
  ...e.options
71
71
  };
72
72
  }
73
- function st(e, ...t) {
73
+ function it(e, ...t) {
74
74
  const n = Object.assign({}, e);
75
75
  for (const i of t)
76
76
  delete n[i];
77
77
  return n;
78
78
  }
79
- const ct = ({
79
+ const ot = ({
80
80
  code: e,
81
81
  builder: t,
82
82
  context: n,
@@ -85,46 +85,20 @@ const ct = ({
85
85
  rootSetState: a,
86
86
  rootState: r
87
87
  }) => {
88
- const s = Ze({
88
+ const s = ze({
89
89
  builder: t,
90
90
  context: n,
91
91
  event: i,
92
- state: Ae({
92
+ state: Je({
93
93
  rootState: r,
94
94
  localState: o,
95
95
  rootSetState: a
96
96
  })
97
97
  });
98
98
  return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
99
- };
100
- function Ae({
101
- rootState: e,
102
- localState: t,
103
- rootSetState: n
104
- }) {
105
- return new Proxy(e, {
106
- get: (i, o) => {
107
- if (t && o in t)
108
- return t[o];
109
- const a = i[o];
110
- return typeof a == "object" && a !== null ? Ae({
111
- rootState: a,
112
- localState: void 0,
113
- rootSetState: n ? (r) => {
114
- i[o] = r, n(i);
115
- } : void 0
116
- }) : a;
117
- },
118
- set: (i, o, a) => {
119
- if (t && o in t)
120
- throw new Error("Writing to local state is not allowed as it is read-only.");
121
- return i[o] = a, n == null || n(i), !0;
122
- }
123
- });
124
- }
125
- const dt = (e) => G() || et({
99
+ }, at = (e) => _() || Ye({
126
100
  shouldLogWarning: !0
127
- }) ? ct(e) : tt(e), ut = !0, L = class L {
101
+ }) ? ot(e) : Ge(e), rt = !0, $ = class $ {
128
102
  static getCacheKey(t) {
129
103
  return JSON.stringify({
130
104
  ...t,
@@ -134,17 +108,17 @@ const dt = (e) => G() || et({
134
108
  });
135
109
  }
136
110
  static getCachedValue(t) {
137
- return L.cache.get(t);
111
+ return $.cache.get(t);
138
112
  }
139
113
  static setCachedValue(t, n) {
140
- L.cache.size > 20 && L.cache.delete(L.cache.keys().next().value), L.cache.set(t, {
114
+ $.cache.size > 20 && $.cache.delete($.cache.keys().next().value), $.cache.set(t, {
141
115
  value: n
142
116
  });
143
117
  }
144
118
  };
145
- ee(L, "cacheLimit", 20), ee(L, "cache", /* @__PURE__ */ new Map());
146
- let M = L;
147
- function H({
119
+ G($, "cacheLimit", 20), G($, "cache", /* @__PURE__ */ new Map());
120
+ let O = $;
121
+ function U({
148
122
  code: e,
149
123
  context: t,
150
124
  localState: n,
@@ -157,50 +131,50 @@ function H({
157
131
  if (e === "")
158
132
  return;
159
133
  const d = {
160
- code: nt(e, {
134
+ code: Qe(e, {
161
135
  isExpression: r
162
136
  }),
163
- builder: it(),
137
+ builder: Xe(),
164
138
  context: t,
165
139
  event: a,
166
140
  rootSetState: o,
167
141
  rootState: i,
168
142
  localState: n
169
143
  };
170
- if (s && !ut) {
171
- const c = M.getCacheKey(d), u = M.getCachedValue(c);
172
- if (u)
173
- return u.value;
144
+ if (s && !rt) {
145
+ const c = O.getCacheKey(d), f = O.getCachedValue(c);
146
+ if (f)
147
+ return f.value;
174
148
  }
175
149
  try {
176
- const c = dt(d);
150
+ const c = at(d);
177
151
  if (s) {
178
- const u = M.getCacheKey(d);
179
- M.setCachedValue(u, c);
152
+ const f = O.getCacheKey(d);
153
+ O.setCachedValue(f, c);
180
154
  }
181
155
  return c;
182
156
  } catch (c) {
183
- ce.error("Failed code evaluation: " + c.message, {
157
+ ae.error("Failed code evaluation: " + c.message, {
184
158
  code: e
185
159
  });
186
160
  return;
187
161
  }
188
162
  }
189
- function le(e) {
163
+ function ie(e) {
190
164
  if (e === null || typeof e != "object")
191
165
  return e;
192
166
  if (Array.isArray(e))
193
- return e.map((n) => le(n));
167
+ return e.map((n) => ie(n));
194
168
  if (e["@type"] === "@builder.io/sdk:Element")
195
169
  return e;
196
170
  const t = {};
197
171
  for (const n in e)
198
- n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = le(e[n]));
172
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ie(e[n]));
199
173
  return t;
200
174
  }
201
- const mt = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ft = (e) => {
202
- if (mt) {
203
- const t = de(e);
175
+ const lt = ["svelte", "vue", "angular", "qwik", "solid"].includes(L), st = (e) => {
176
+ if (lt) {
177
+ const t = re(e);
204
178
  return {
205
179
  ...t,
206
180
  properties: {
@@ -211,7 +185,7 @@ const mt = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ft = (e) =
211
185
  }
212
186
  };
213
187
  } else {
214
- const t = le(st(e, "children", "meta"));
188
+ const t = ie(it(e, "children", "meta"));
215
189
  return {
216
190
  ...t,
217
191
  properties: {
@@ -224,7 +198,7 @@ const mt = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ft = (e) =
224
198
  meta: e.meta
225
199
  };
226
200
  }
227
- }, ht = ({
201
+ }, ct = ({
228
202
  block: e,
229
203
  context: t,
230
204
  localState: n,
@@ -233,9 +207,9 @@ const mt = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ft = (e) =
233
207
  }) => {
234
208
  if (!e.bindings)
235
209
  return e;
236
- const a = ft(e);
210
+ const a = st(e);
237
211
  for (const r in e.bindings) {
238
- const s = e.bindings[r], d = H({
212
+ const s = e.bindings[r], d = U({
239
213
  code: s,
240
214
  localState: n,
241
215
  rootState: i,
@@ -243,11 +217,11 @@ const mt = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ft = (e) =
243
217
  context: t,
244
218
  enableCache: !0
245
219
  });
246
- Be(a, r, d);
220
+ we(a, r, d);
247
221
  }
248
222
  return a;
249
223
  };
250
- function gt({
224
+ function dt({
251
225
  block: e,
252
226
  context: t,
253
227
  shouldEvaluateBindings: n,
@@ -256,7 +230,7 @@ function gt({
256
230
  rootSetState: a
257
231
  }) {
258
232
  const r = e;
259
- return n ? ht({
233
+ return n ? ct({
260
234
  block: r,
261
235
  localState: i,
262
236
  rootState: o,
@@ -264,8 +238,8 @@ function gt({
264
238
  context: t
265
239
  }) : r;
266
240
  }
267
- const X = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
268
- function bt(e, t, n = {}) {
241
+ const J = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
242
+ function ut(e, t, n = {}) {
269
243
  let i, o, a, r = null, s = 0;
270
244
  const d = function() {
271
245
  s = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
@@ -273,11 +247,11 @@ function bt(e, t, n = {}) {
273
247
  return function() {
274
248
  const c = Date.now();
275
249
  !s && n.leading === !1 && (s = c);
276
- const u = t - (c - s);
277
- return i = this, o = arguments, u <= 0 || u > t ? (r && (clearTimeout(r), r = null), s = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, u)), a;
250
+ const f = t - (c - s);
251
+ return i = this, o = arguments, f <= 0 || f > t ? (r && (clearTimeout(r), r = null), s = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, f)), a;
278
252
  };
279
253
  }
280
- function K(e, ...t) {
254
+ function j(e, ...t) {
281
255
  const n = Object(e);
282
256
  for (let i = 1; i < arguments.length; i++) {
283
257
  const o = arguments[i];
@@ -287,118 +261,118 @@ function K(e, ...t) {
287
261
  }
288
262
  return n;
289
263
  }
290
- function pt(e) {
264
+ function mt(e) {
291
265
  for (const t of e)
292
266
  switch (t.trigger) {
293
267
  case "pageLoad":
294
- Ne(t);
268
+ Pe(t);
295
269
  break;
296
270
  case "scrollInView":
297
- xt(t);
271
+ ht(t);
298
272
  break;
299
273
  }
300
274
  }
301
- function We(e) {
275
+ function Ee(e) {
302
276
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
303
277
  }
304
- function Fe(e, t) {
305
- const n = yt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
278
+ function Be(e, t) {
279
+ const n = ft(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
306
280
  for (const s of r)
307
281
  for (const d of n)
308
282
  d in s || (s[d] = i[d]);
309
283
  }
310
- function yt(e) {
284
+ function ft(e) {
311
285
  const t = [];
312
286
  for (const n of e.steps)
313
287
  for (const i in n.styles)
314
288
  t.indexOf(i) === -1 && t.push(i);
315
289
  return t;
316
290
  }
317
- function Ne(e) {
291
+ function Pe(e) {
318
292
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
319
293
  if (!t.length) {
320
- We(e.elementId || e.id || "");
294
+ Ee(e.elementId || e.id || "");
321
295
  return;
322
296
  }
323
297
  Array.from(t).forEach((n) => {
324
- Fe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", K(n.style, e.steps[0].styles), setTimeout(() => {
325
- n.style.transition = `all ${e.duration}s ${X(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), K(n.style, e.steps[1].styles), setTimeout(() => {
298
+ Be(e, n), n.style.transition = "none", n.style.transitionDelay = "0", j(n.style, e.steps[0].styles), setTimeout(() => {
299
+ n.style.transition = `all ${e.duration}s ${J(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), j(n.style, e.steps[1].styles), setTimeout(() => {
326
300
  n.style.transition = "", n.style.transitionDelay = "";
327
301
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
328
302
  });
329
303
  });
330
304
  }
331
- function xt(e) {
305
+ function ht(e) {
332
306
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
333
307
  if (!t.length) {
334
- We(e.elementId || e.id || "");
308
+ Ee(e.elementId || e.id || "");
335
309
  return;
336
310
  }
337
311
  Array.from(t).forEach((n) => {
338
- Fe(e, n);
312
+ Be(e, n);
339
313
  let i = !1, o = !1;
340
314
  function a() {
341
315
  !i && s(n) ? (i = !0, o = !0, setTimeout(() => {
342
- K(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
316
+ j(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
343
317
  o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
344
318
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
345
- })) : e.repeat && i && !o && !s(n) && (i = !1, K(n.style, e.steps[0].styles));
319
+ })) : e.repeat && i && !o && !s(n) && (i = !1, j(n.style, e.steps[0].styles));
346
320
  }
347
- const r = bt(a, 200, {
321
+ const r = ut(a, 200, {
348
322
  leading: !1
349
323
  });
350
- function s(u) {
351
- const g = u.getBoundingClientRect(), m = window.innerHeight, h = (e.thresholdPercent || 0) / 100 * m;
352
- return g.bottom > h && g.top < m - h;
324
+ function s(f) {
325
+ const b = f.getBoundingClientRect(), h = window.innerHeight, g = (e.thresholdPercent || 0) / 100 * h;
326
+ return b.bottom > g && b.top < h - g;
353
327
  }
354
328
  const d = e.steps[0].styles;
355
329
  function c() {
356
- K(n.style, d);
330
+ j(n.style, d);
357
331
  }
358
332
  c(), setTimeout(() => {
359
- n.style.transition = `all ${e.duration}s ${X(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
333
+ n.style.transition = `all ${e.duration}s ${J(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
360
334
  }), document.addEventListener("scroll", r, {
361
335
  capture: !0,
362
336
  passive: !0
363
337
  }), a();
364
338
  });
365
339
  }
366
- const $e = (e) => Object.entries(e).map(([n, i]) => {
340
+ const Ve = (e) => Object.entries(e).map(([n, i]) => {
367
341
  if (typeof i == "string")
368
- return `${X(n)}: ${i};`;
369
- }).filter(re), vt = (e) => $e(e).join(`
370
- `), J = ({
342
+ return `${J(n)}: ${i};`;
343
+ }).filter(ne), gt = (e) => Ve(e).join(`
344
+ `), K = ({
371
345
  mediaQuery: e,
372
346
  className: t,
373
347
  styles: n
374
348
  }) => {
375
349
  const i = `.${t} {
376
- ${vt(n)}
350
+ ${gt(n)}
377
351
  }`;
378
352
  return e ? `${e} {
379
353
  ${i}
380
354
  }` : i;
381
355
  };
382
- function St({
356
+ function bt({
383
357
  style: e
384
358
  }) {
385
359
  return e;
386
360
  }
387
- const kt = ({
361
+ const pt = ({
388
362
  block: e,
389
363
  context: t
390
- }) => De(St({
364
+ }) => Ae(bt({
391
365
  style: e.style || {},
392
366
  context: t,
393
367
  block: e
394
368
  }));
395
- function De(e) {
396
- switch (U) {
369
+ function Ae(e) {
370
+ switch (L) {
397
371
  case "svelte":
398
372
  case "vue":
399
373
  case "solid":
400
374
  case "angular":
401
- return $e(e).join(" ");
375
+ return Ve(e).join(" ");
402
376
  case "qwik":
403
377
  case "reactNative":
404
378
  case "react":
@@ -406,7 +380,7 @@ function De(e) {
406
380
  return e;
407
381
  }
408
382
  }
409
- const Ct = ({
383
+ const yt = ({
410
384
  block: e,
411
385
  registeredComponents: t
412
386
  }) => {
@@ -420,7 +394,7 @@ const Ct = ({
420
394
  console.warn(`
421
395
  Could not find a registered component named "${n}".
422
396
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
423
- }, Tt = ({
397
+ }, xt = ({
424
398
  block: e,
425
399
  context: t
426
400
  }) => {
@@ -430,7 +404,7 @@ const Ct = ({
430
404
  } = e;
431
405
  if (!(n != null && n.collection))
432
406
  return;
433
- const o = H({
407
+ const o = U({
434
408
  code: n.collection,
435
409
  localState: t.localState,
436
410
  rootState: t.rootState,
@@ -454,27 +428,27 @@ const Ct = ({
454
428
  },
455
429
  block: i
456
430
  }));
457
- }, It = (e, t) => {
431
+ }, vt = (e, t) => {
458
432
  var n;
459
433
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
460
434
  builderLinkComponent: t
461
435
  } : {};
462
- }, wt = (e, t) => {
436
+ }, St = (e, t) => {
463
437
  var n;
464
438
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
465
439
  builderComponents: t
466
440
  } : {};
467
- }, Rt = (e, t) => {
441
+ }, kt = (e, t) => {
468
442
  var n;
469
443
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
470
444
  builderBlock: t
471
445
  } : {};
472
- }, Et = (e, t) => {
446
+ }, Ct = (e, t) => {
473
447
  var n;
474
448
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
475
449
  builderContext: t
476
450
  } : {};
477
- }, Le = {
451
+ }, We = {
478
452
  small: {
479
453
  min: 320,
480
454
  default: 321,
@@ -490,11 +464,11 @@ const Ct = ({
490
464
  default: 991,
491
465
  max: 1200
492
466
  }
493
- }, pe = (e, t = Le) => `@media (max-width: ${t[e].max}px)`, Oe = ({
467
+ }, fe = (e, t = We) => `@media (max-width: ${t[e].max}px)`, Fe = ({
494
468
  small: e,
495
469
  medium: t
496
470
  }) => {
497
- const n = de(Le);
471
+ const n = re(We);
498
472
  if (!e || !t)
499
473
  return n;
500
474
  const i = Math.floor(e / 2);
@@ -517,7 +491,7 @@ const Ct = ({
517
491
  default: a + 1
518
492
  }, n;
519
493
  };
520
- function Z(e) {
494
+ function Y(e) {
521
495
  return /* @__PURE__ */ l(
522
496
  "style",
523
497
  {
@@ -527,59 +501,59 @@ function Z(e) {
527
501
  }
528
502
  );
529
503
  }
530
- function Pt(e) {
504
+ function Tt(e) {
531
505
  function t() {
532
506
  const i = e.block;
533
- return re(i.hide) ? !i.hide : re(i.show) ? i.show : !0;
507
+ return ne(i.hide) ? !i.hide : ne(i.show) ? i.show : !0;
534
508
  }
535
509
  function n() {
536
- var f, R, P;
537
- const i = e.block, o = i.responsiveStyles, a = e.context.content, r = Oe(
538
- ((f = a == null ? void 0 : a.meta) == null ? void 0 : f.breakpoints) || {}
539
- ), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, u = i.id;
540
- if (!u)
510
+ var x, E, C;
511
+ const i = e.block, o = i.responsiveStyles, a = e.context.content, r = Fe(
512
+ ((x = a == null ? void 0 : a.meta) == null ? void 0 : x.breakpoints) || {}
513
+ ), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, f = i.id;
514
+ if (!f)
541
515
  return "";
542
- const g = s ? J({
543
- className: u,
516
+ const b = s ? K({
517
+ className: f,
544
518
  styles: s
545
- }) : "", m = d ? J({
546
- className: u,
519
+ }) : "", h = d ? K({
520
+ className: f,
547
521
  styles: d,
548
- mediaQuery: pe(
522
+ mediaQuery: fe(
549
523
  "medium",
550
524
  r
551
525
  )
552
- }) : "", x = c ? J({
553
- className: u,
526
+ }) : "", v = c ? K({
527
+ className: f,
554
528
  styles: c,
555
- mediaQuery: pe(
529
+ mediaQuery: fe(
556
530
  "small",
557
531
  r
558
532
  )
559
- }) : "", h = i.animations && i.animations.find((A) => A.trigger === "hover");
560
- let p = "";
561
- if (h) {
562
- const A = ((P = (R = h.steps) == null ? void 0 : R[1]) == null ? void 0 : P.styles) || {};
563
- p = J({
564
- className: `${u}:hover`,
533
+ }) : "", g = i.animations && i.animations.find((k) => k.trigger === "hover");
534
+ let S = "";
535
+ if (g) {
536
+ const k = ((C = (E = g.steps) == null ? void 0 : E[1]) == null ? void 0 : C.styles) || {};
537
+ S = K({
538
+ className: `${f}:hover`,
565
539
  styles: {
566
- ...A,
567
- transition: `all ${h.duration}s ${X(
568
- h.easing
540
+ ...k,
541
+ transition: `all ${g.duration}s ${J(
542
+ g.easing
569
543
  )}`,
570
- transitionDelay: h.delay ? `${h.delay}s` : "0s"
544
+ transitionDelay: g.delay ? `${g.delay}s` : "0s"
571
545
  }
572
546
  }) || "";
573
547
  }
574
548
  return [
575
- g,
576
- m,
577
- x,
578
- p
549
+ b,
550
+ h,
551
+ v,
552
+ S
579
553
  ].join(" ");
580
554
  }
581
- return /* @__PURE__ */ l(I, { children: n() && t() ? /* @__PURE__ */ l(I, { children: /* @__PURE__ */ l(
582
- Z,
555
+ return /* @__PURE__ */ l(w, { children: n() && t() ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
556
+ Y,
583
557
  {
584
558
  id: "builderio-block",
585
559
  styles: n(),
@@ -587,10 +561,10 @@ function Pt(e) {
587
561
  }
588
562
  ) }) : null });
589
563
  }
590
- function Bt(e) {
564
+ function It(e) {
591
565
  return e.charAt(0).toUpperCase() + e.slice(1);
592
566
  }
593
- const Vt = (e) => `on${Bt(e)}`, At = (e, t) => (n) => H({
567
+ const wt = (e) => `on${It(e)}`, Rt = (e, t) => (n) => U({
594
568
  code: e,
595
569
  context: t.context,
596
570
  localState: t.localState,
@@ -600,16 +574,16 @@ const Vt = (e) => `on${Bt(e)}`, At = (e, t) => (n) => H({
600
574
  isExpression: !1,
601
575
  enableCache: !0
602
576
  });
603
- function Ue(e) {
577
+ function Ne(e) {
604
578
  var i;
605
579
  const t = {}, n = (i = e.block.actions) != null ? i : {};
606
580
  for (const o in n) {
607
581
  if (!n.hasOwnProperty(o))
608
582
  continue;
609
583
  const a = n[o];
610
- let r = Vt(o);
584
+ let r = wt(o);
611
585
  if (e.stripPrefix)
612
- switch (U) {
586
+ switch (L) {
613
587
  case "vue":
614
588
  r = r.replace("v-on:", "");
615
589
  break;
@@ -617,49 +591,49 @@ function Ue(e) {
617
591
  r = r.replace("on:", "");
618
592
  break;
619
593
  }
620
- t[r] = At(a, e);
594
+ t[r] = Rt(a, e);
621
595
  }
622
596
  return t;
623
597
  }
624
- function Wt({
598
+ function Et({
625
599
  properties: e
626
600
  }) {
627
601
  return e;
628
602
  }
629
- const Ft = (e) => ({
603
+ const Bt = (e) => ({
630
604
  href: e.href
631
605
  });
632
- function fe({
606
+ function ce({
633
607
  block: e,
634
608
  context: t
635
609
  }) {
636
610
  var i;
637
611
  const n = {
638
- ...Ft(e),
612
+ ...Bt(e),
639
613
  ...e.properties,
640
614
  "builder-id": e.id,
641
- style: kt({
615
+ style: pt({
642
616
  block: e,
643
617
  context: t
644
618
  }),
645
- [q()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
619
+ [M()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
646
620
  };
647
- return Wt({
621
+ return Et({
648
622
  properties: n,
649
623
  context: t,
650
624
  block: e
651
625
  });
652
626
  }
653
- function Nt(e) {
627
+ function Pt(e) {
654
628
  return /* @__PURE__ */ l(
655
- ue,
629
+ le,
656
630
  {
657
631
  TagName: e.Wrapper,
658
- attributes: fe({
632
+ attributes: ce({
659
633
  block: e.block,
660
634
  context: e.context
661
635
  }),
662
- actionAttributes: Ue({
636
+ actionAttributes: Ne({
663
637
  block: e.block,
664
638
  rootState: e.context.rootState,
665
639
  rootSetState: e.context.rootSetState,
@@ -671,17 +645,18 @@ function Nt(e) {
671
645
  }
672
646
  );
673
647
  }
674
- function $t(e) {
675
- return /* @__PURE__ */ l(I, { children: e.children });
648
+ function Vt(e) {
649
+ return P(() => {
650
+ }, []), /* @__PURE__ */ l(w, { children: e.children });
676
651
  }
677
- function Dt(e) {
652
+ function At(e) {
678
653
  function t() {
679
654
  return e.includeBlockProps ? {
680
- ...fe({
655
+ ...ce({
681
656
  block: e.block,
682
657
  context: e.context
683
658
  }),
684
- ...Ue({
659
+ ...Ne({
685
660
  block: e.block,
686
661
  rootState: e.context.rootState,
687
662
  rootSetState: e.context.rootSetState,
@@ -690,8 +665,8 @@ function Dt(e) {
690
665
  })
691
666
  } : {};
692
667
  }
693
- return /* @__PURE__ */ l(I, { children: e.Wrapper.load ? /* @__PURE__ */ l(I, { children: /* @__PURE__ */ l(
694
- $t,
668
+ return /* @__PURE__ */ l(w, { children: e.Wrapper.load ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
669
+ Vt,
695
670
  {
696
671
  load: e.Wrapper.load,
697
672
  fallback: e.Wrapper.fallback,
@@ -701,7 +676,7 @@ function Dt(e) {
701
676
  }
702
677
  ) }) : /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
703
678
  }
704
- const Lt = ({
679
+ const Wt = ({
705
680
  componentOptions: e,
706
681
  builderBlock: t,
707
682
  context: n,
@@ -717,7 +692,7 @@ const Lt = ({
717
692
  * component itself directly. Otherwise, they are provided to the wrapper element.
718
693
  */
719
694
  ...o ? {
720
- attributes: fe({
695
+ attributes: ce({
721
696
  block: t,
722
697
  context: r
723
698
  })
@@ -731,15 +706,15 @@ const Lt = ({
731
706
  includeBlockProps: o
732
707
  } : s;
733
708
  };
734
- function ye(e) {
709
+ function he(e) {
735
710
  var i;
736
711
  const [t, n] = T(
737
- () => e.isInteractive ? Dt : e.componentRef
712
+ () => e.isInteractive ? At : e.componentRef
738
713
  );
739
- return /* @__PURE__ */ l(I, { children: e.componentRef ? /* @__PURE__ */ l(I, { children: /* @__PURE__ */ l(
714
+ return /* @__PURE__ */ l(w, { children: e.componentRef ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
740
715
  t,
741
716
  {
742
- ...Lt({
717
+ ...Wt({
743
718
  componentOptions: e.componentOptions,
744
719
  builderBlock: e.builderBlock,
745
720
  context: e.context,
@@ -750,7 +725,7 @@ function ye(e) {
750
725
  contextValue: e.context
751
726
  }),
752
727
  children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
753
- z,
728
+ H,
754
729
  {
755
730
  block: o,
756
731
  context: e.context,
@@ -762,10 +737,10 @@ function ye(e) {
762
737
  }
763
738
  ) }) : null });
764
739
  }
765
- function xe(e) {
740
+ function ge(e) {
766
741
  const [t, n] = T(() => e.repeatContext);
767
- return /* @__PURE__ */ l(me.Provider, { value: t, children: /* @__PURE__ */ l(
768
- z,
742
+ return /* @__PURE__ */ l(se.Provider, { value: t, children: /* @__PURE__ */ l(
743
+ H,
769
744
  {
770
745
  block: e.block,
771
746
  context: t,
@@ -774,10 +749,10 @@ function xe(e) {
774
749
  }
775
750
  ) });
776
751
  }
777
- function z(e) {
778
- var u, g, m, x;
752
+ function H(e) {
753
+ var f, b, h, v;
779
754
  function t() {
780
- return Tt({
755
+ return xt({
781
756
  block: e.block,
782
757
  context: e.context
783
758
  });
@@ -787,10 +762,10 @@ function z(e) {
787
762
  update: !1
788
763
  }));
789
764
  function o() {
790
- var p;
791
- if (n.value && !n.update && !we())
765
+ var S;
766
+ if (n.value && !n.update && !ke())
792
767
  return n.value;
793
- const h = (p = e.block.repeat) != null && p.collection ? e.block : gt({
768
+ const g = (S = e.block.repeat) != null && S.collection ? e.block : dt({
794
769
  block: e.block,
795
770
  localState: e.context.localState,
796
771
  rootState: e.context.rootState,
@@ -798,40 +773,40 @@ function z(e) {
798
773
  context: e.context.context,
799
774
  shouldEvaluateBindings: !0
800
775
  });
801
- return n.value = h, n.update = !1, h;
776
+ return n.value = g, n.update = !1, g;
802
777
  }
803
778
  function a() {
804
- return Ct({
779
+ return yt({
805
780
  block: o(),
806
781
  registeredComponents: e.registeredComponents
807
782
  });
808
783
  }
809
784
  function r() {
810
- var p;
811
- return e.block.tagName === "a" || ((p = o().properties) == null ? void 0 : p.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
785
+ var S;
786
+ return e.block.tagName === "a" || ((S = o().properties) == null ? void 0 : S.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
812
787
  }
813
788
  function s() {
814
- var f, R;
815
- if ((f = e.block.repeat) != null && f.collection)
816
- return !!((R = t == null ? void 0 : t()) != null && R.length);
817
- const h = "hide" in o() ? o().hide : !1;
818
- return ("show" in o() ? o().show : !0) && !h;
789
+ var x, E;
790
+ if ((x = e.block.repeat) != null && x.collection)
791
+ return !!((E = t == null ? void 0 : t()) != null && E.length);
792
+ const g = "hide" in o() ? o().hide : !1;
793
+ return ("show" in o() ? o().show : !0) && !g;
819
794
  }
820
795
  function d() {
821
- var p, f;
822
- return !((p = a == null ? void 0 : a()) != null && p.component) && !t() ? (f = o().children) != null ? f : [] : [];
796
+ var S, x;
797
+ return !((S = a == null ? void 0 : a()) != null && S.component) && !t() ? (x = o().children) != null ? x : [] : [];
823
798
  }
824
799
  function c() {
825
- var h, p, f, R;
800
+ var g, S, x, E;
826
801
  return {
827
- blockChildren: (h = o().children) != null ? h : [],
828
- componentRef: (p = a == null ? void 0 : a()) == null ? void 0 : p.component,
802
+ blockChildren: (g = o().children) != null ? g : [],
803
+ componentRef: (S = a == null ? void 0 : a()) == null ? void 0 : S.component,
829
804
  componentOptions: {
830
- ...lt(o()),
831
- ...Rt(a(), o()),
832
- ...Et(a(), e.context),
833
- ...It(a(), e.linkComponent),
834
- ...wt(
805
+ ...nt(o()),
806
+ ...kt(a(), o()),
807
+ ...Ct(a(), e.context),
808
+ ...vt(a(), e.linkComponent),
809
+ ...St(
835
810
  a(),
836
811
  e.registeredComponents
837
812
  )
@@ -840,33 +815,33 @@ function z(e) {
840
815
  linkComponent: e.linkComponent,
841
816
  registeredComponents: e.registeredComponents,
842
817
  builderBlock: o(),
843
- includeBlockProps: ((f = a == null ? void 0 : a()) == null ? void 0 : f.noWrap) === !0,
844
- isInteractive: !((R = a == null ? void 0 : a()) != null && R.isRSC && U === "rsc")
818
+ includeBlockProps: ((x = a == null ? void 0 : a()) == null ? void 0 : x.noWrap) === !0,
819
+ isInteractive: !((E = a == null ? void 0 : a()) != null && E.isRSC && L === "rsc")
845
820
  };
846
821
  }
847
- return B(() => {
848
- const h = o().id, p = o().animations;
849
- p && h && pt(
850
- p.map((f) => ({
851
- ...f,
852
- elementId: h
822
+ return P(() => {
823
+ const g = o().id, S = o().animations;
824
+ S && g && mt(
825
+ S.map((x) => ({
826
+ ...x,
827
+ elementId: g
853
828
  }))
854
829
  );
855
- }, []), B(() => {
830
+ }, []), P(() => {
856
831
  n.update = !0;
857
- }), /* @__PURE__ */ l(I, { children: s() ? /* @__PURE__ */ V(I, { children: [
858
- /* @__PURE__ */ l(Pt, { block: o(), context: e.context }),
859
- (u = a == null ? void 0 : a()) != null && u.noWrap ? t() ? /* @__PURE__ */ l(I, { children: (x = t()) == null ? void 0 : x.map((h, p) => /* @__PURE__ */ l(
860
- xe,
832
+ }), /* @__PURE__ */ l(w, { children: s() ? /* @__PURE__ */ V(w, { children: [
833
+ /* @__PURE__ */ l(Tt, { block: o(), context: e.context }),
834
+ (f = a == null ? void 0 : a()) != null && f.noWrap ? t() ? /* @__PURE__ */ l(w, { children: (v = t()) == null ? void 0 : v.map((g, S) => /* @__PURE__ */ l(
835
+ ge,
861
836
  {
862
- repeatContext: h.context,
863
- block: h.block,
837
+ repeatContext: g.context,
838
+ block: g.block,
864
839
  registeredComponents: e.registeredComponents,
865
840
  linkComponent: e.linkComponent
866
841
  },
867
- p
842
+ S
868
843
  )) }) : /* @__PURE__ */ l(
869
- ye,
844
+ he,
870
845
  {
871
846
  componentRef: c().componentRef,
872
847
  componentOptions: c().componentOptions,
@@ -878,24 +853,24 @@ function z(e) {
878
853
  includeBlockProps: c().includeBlockProps,
879
854
  isInteractive: c().isInteractive
880
855
  }
881
- ) : /* @__PURE__ */ l(I, { children: t() ? /* @__PURE__ */ l(I, { children: (m = t()) == null ? void 0 : m.map((h, p) => /* @__PURE__ */ l(
882
- xe,
856
+ ) : /* @__PURE__ */ l(w, { children: t() ? /* @__PURE__ */ l(w, { children: (h = t()) == null ? void 0 : h.map((g, S) => /* @__PURE__ */ l(
857
+ ge,
883
858
  {
884
- repeatContext: h.context,
885
- block: h.block,
859
+ repeatContext: g.context,
860
+ block: g.block,
886
861
  registeredComponents: e.registeredComponents,
887
862
  linkComponent: e.linkComponent
888
863
  },
889
- p
864
+ S
890
865
  )) }) : /* @__PURE__ */ V(
891
- Nt,
866
+ Pt,
892
867
  {
893
868
  Wrapper: r(),
894
869
  block: o(),
895
870
  context: e.context,
896
871
  children: [
897
872
  /* @__PURE__ */ l(
898
- ye,
873
+ he,
899
874
  {
900
875
  componentRef: c().componentRef,
901
876
  componentOptions: c().componentOptions,
@@ -908,30 +883,30 @@ function z(e) {
908
883
  isInteractive: c().isInteractive
909
884
  }
910
885
  ),
911
- (g = d()) == null ? void 0 : g.map((h) => /* @__PURE__ */ l(
912
- z,
886
+ (b = d()) == null ? void 0 : b.map((g) => /* @__PURE__ */ l(
887
+ H,
913
888
  {
914
- block: h,
889
+ block: g,
915
890
  registeredComponents: e.registeredComponents,
916
891
  linkComponent: e.linkComponent,
917
892
  context: e.context
918
893
  },
919
- h.id
894
+ g.id
920
895
  ))
921
896
  ]
922
897
  }
923
898
  ) })
924
899
  ] }) : null });
925
900
  }
926
- function Ot(e) {
927
- const t = _(null);
901
+ function Ft(e) {
902
+ const t = D(null);
928
903
  function n() {
929
904
  var a;
930
905
  return "builder-blocks" + ((a = e.blocks) != null && a.length ? "" : " no-blocks");
931
906
  }
932
907
  function i() {
933
908
  var a, r;
934
- $() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
909
+ F() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
935
910
  {
936
911
  type: "builder.clickEmptyBlocks",
937
912
  data: {
@@ -944,7 +919,7 @@ function Ot(e) {
944
919
  }
945
920
  function o() {
946
921
  var a, r;
947
- $() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
922
+ F() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
948
923
  {
949
924
  type: "builder.hoverEmptyBlocks",
950
925
  data: {
@@ -955,13 +930,13 @@ function Ot(e) {
955
930
  "*"
956
931
  ));
957
932
  }
958
- return B(() => {
959
- }, []), /* @__PURE__ */ V(I, { children: [
933
+ return P(() => {
934
+ }, []), /* @__PURE__ */ V(w, { children: [
960
935
  /* @__PURE__ */ l(
961
936
  e.BlocksWrapper,
962
937
  {
963
938
  ref: t,
964
- className: n() + " props-blocks-wrapper-51ef31b4",
939
+ className: n() + " props-blocks-wrapper-77bdc7c6",
965
940
  "builder-path": e.path,
966
941
  "builder-parent-id": e.parent,
967
942
  style: e.styleProp,
@@ -972,18 +947,18 @@ function Ot(e) {
972
947
  children: e.children
973
948
  }
974
949
  ),
975
- /* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-51ef31b4 {
950
+ /* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-77bdc7c6 {
976
951
  display: flex;
977
952
  flex-direction: column;
978
953
  align-items: stretch;
979
954
  }` })
980
955
  ] });
981
956
  }
982
- function D(e) {
957
+ function N(e) {
983
958
  var i, o, a;
984
- const t = be(me), n = be(Ve);
959
+ const t = me(se), n = me(Re);
985
960
  return /* @__PURE__ */ l(
986
- Ot,
961
+ Ft,
987
962
  {
988
963
  blocks: e.blocks,
989
964
  parent: e.parent,
@@ -991,8 +966,8 @@ function D(e) {
991
966
  styleProp: e.styleProp,
992
967
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
993
968
  BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
994
- children: e.blocks ? /* @__PURE__ */ l(I, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
995
- z,
969
+ children: e.blocks ? /* @__PURE__ */ l(w, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
970
+ H,
996
971
  {
997
972
  block: r,
998
973
  linkComponent: e.linkComponent,
@@ -1004,145 +979,145 @@ function D(e) {
1004
979
  }
1005
980
  );
1006
981
  }
1007
- const Ut = (e) => `builder-columns ${e}-breakpoints`;
1008
- function jt(e) {
1009
- var A, O;
982
+ const Nt = (e) => `builder-columns ${e}-breakpoints`;
983
+ function $t(e) {
984
+ var k, W;
1010
985
  const [t, n] = T(
1011
986
  () => typeof e.space == "number" ? e.space || 0 : 20
1012
987
  ), [i, o] = T(() => e.columns || []), [a, r] = T(
1013
988
  () => e.stackColumnsAt || "tablet"
1014
989
  );
1015
- function s(v) {
1016
- return v.link ? e.builderLinkComponent || "a" : "div";
990
+ function s(m) {
991
+ return m.link ? e.builderLinkComponent || "a" : "div";
1017
992
  }
1018
- function d(v) {
1019
- var E;
1020
- return ((E = i[v]) == null ? void 0 : E.width) || 100 / i.length;
993
+ function d(m) {
994
+ var y;
995
+ return ((y = i[m]) == null ? void 0 : y.width) || 100 / i.length;
1021
996
  }
1022
- function c(v) {
1023
- const E = d(v), W = t * (i.length - 1) * (E / 100);
1024
- return `calc(${E}% - ${W}px)`;
997
+ function c(m) {
998
+ const y = d(m), I = t * (i.length - 1) * (y / 100);
999
+ return `calc(${y}% - ${I}px)`;
1025
1000
  }
1026
- function u({
1027
- stackedStyle: v,
1028
- desktopStyle: E
1001
+ function f({
1002
+ stackedStyle: m,
1003
+ desktopStyle: y
1029
1004
  }) {
1030
- return a === "tablet" ? v : E;
1005
+ return a === "tablet" ? m : y;
1031
1006
  }
1032
- function g({
1033
- stackedStyle: v,
1034
- desktopStyle: E
1007
+ function b({
1008
+ stackedStyle: m,
1009
+ desktopStyle: y
1035
1010
  }) {
1036
- return a === "never" ? E : v;
1011
+ return a === "never" ? y : m;
1037
1012
  }
1038
- const [m, x] = T(
1013
+ const [h, v] = T(
1039
1014
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
1040
1015
  );
1041
- function h() {
1016
+ function g() {
1042
1017
  return {
1043
- "--flex-dir": m,
1044
- "--flex-dir-tablet": u({
1045
- stackedStyle: m,
1018
+ "--flex-dir": h,
1019
+ "--flex-dir-tablet": f({
1020
+ stackedStyle: h,
1046
1021
  desktopStyle: "row"
1047
1022
  })
1048
1023
  };
1049
1024
  }
1050
- function p(v) {
1051
- const E = v === 0 ? 0 : t, W = c(v), y = `${E}px`, b = "100%", S = 0;
1025
+ function S(m) {
1026
+ const y = m === 0 ? 0 : t, I = c(m), u = `${y}px`, p = "100%", R = 0;
1052
1027
  return {
1053
1028
  ...{
1054
1029
  display: "flex",
1055
1030
  flexDirection: "column",
1056
1031
  alignItems: "stretch"
1057
1032
  },
1058
- width: W,
1059
- ["marginLeft"]: y,
1060
- "--column-width-mobile": g({
1061
- stackedStyle: b,
1062
- desktopStyle: W
1033
+ width: I,
1034
+ ["marginLeft"]: u,
1035
+ "--column-width-mobile": b({
1036
+ stackedStyle: p,
1037
+ desktopStyle: I
1063
1038
  }),
1064
- "--column-margin-left-mobile": g({
1065
- stackedStyle: S,
1066
- desktopStyle: y
1039
+ "--column-margin-left-mobile": b({
1040
+ stackedStyle: R,
1041
+ desktopStyle: u
1067
1042
  }),
1068
- "--column-width-tablet": u({
1069
- stackedStyle: b,
1070
- desktopStyle: W
1043
+ "--column-width-tablet": f({
1044
+ stackedStyle: p,
1045
+ desktopStyle: I
1071
1046
  }),
1072
- "--column-margin-left-tablet": u({
1073
- stackedStyle: S,
1074
- desktopStyle: y
1047
+ "--column-margin-left-tablet": f({
1048
+ stackedStyle: R,
1049
+ desktopStyle: u
1075
1050
  })
1076
1051
  };
1077
1052
  }
1078
- function f(v) {
1079
- var W, y;
1080
- return Oe(
1081
- ((y = (W = e.builderContext.content) == null ? void 0 : W.meta) == null ? void 0 : y.breakpoints) || {}
1082
- )[v].max;
1053
+ function x(m) {
1054
+ var I, u;
1055
+ return Fe(
1056
+ ((u = (I = e.builderContext.content) == null ? void 0 : I.meta) == null ? void 0 : u.breakpoints) || {}
1057
+ )[m].max;
1083
1058
  }
1084
- function R() {
1085
- const v = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1059
+ function E() {
1060
+ const m = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1086
1061
  return `
1087
- @media (max-width: ${f("medium")}px) {
1062
+ @media (max-width: ${x("medium")}px) {
1088
1063
  .${e.builderBlock.id}-breakpoints {
1089
1064
  flex-direction: var(--flex-dir-tablet);
1090
1065
  align-items: stretch;
1091
1066
  }
1092
1067
 
1093
- ${v} {
1068
+ ${m} {
1094
1069
  width: var(--column-width-tablet) !important;
1095
1070
  margin-left: var(--column-margin-left-tablet) !important;
1096
1071
  }
1097
1072
  }
1098
1073
 
1099
- @media (max-width: ${f("small")}px) {
1074
+ @media (max-width: ${x("small")}px) {
1100
1075
  .${e.builderBlock.id}-breakpoints {
1101
1076
  flex-direction: var(--flex-dir);
1102
1077
  align-items: stretch;
1103
1078
  }
1104
1079
 
1105
- ${v} {
1080
+ ${m} {
1106
1081
  width: var(--column-width-mobile) !important;
1107
1082
  margin-left: var(--column-margin-left-mobile) !important;
1108
1083
  }
1109
1084
  },
1110
1085
  `;
1111
1086
  }
1112
- function P(v, E) {
1087
+ function C(m, y) {
1113
1088
  return {
1114
- ...v.link ? {
1115
- href: v.link
1089
+ ...m.link ? {
1090
+ href: m.link
1116
1091
  } : {},
1117
- [q()]: "builder-column",
1118
- style: De(p(E))
1092
+ [M()]: "builder-column",
1093
+ style: Ae(S(y))
1119
1094
  };
1120
1095
  }
1121
- return /* @__PURE__ */ V(I, { children: [
1096
+ return /* @__PURE__ */ V(w, { children: [
1122
1097
  /* @__PURE__ */ V(
1123
1098
  "div",
1124
1099
  {
1125
- className: Ut((A = e.builderBlock) == null ? void 0 : A.id) + " div-34f576bb",
1126
- style: h(),
1100
+ className: Nt((k = e.builderBlock) == null ? void 0 : k.id) + " div-3b0f6fe2",
1101
+ style: g(),
1127
1102
  children: [
1128
1103
  /* @__PURE__ */ l(
1129
- Z,
1104
+ Y,
1130
1105
  {
1131
1106
  id: "builderio-columns",
1132
- styles: R(),
1107
+ styles: E(),
1133
1108
  nonce: e.builderContext.nonce
1134
1109
  }
1135
1110
  ),
1136
- (O = e.columns) == null ? void 0 : O.map((v, E) => /* @__PURE__ */ l(
1137
- ue,
1111
+ (W = e.columns) == null ? void 0 : W.map((m, y) => /* @__PURE__ */ l(
1112
+ le,
1138
1113
  {
1139
- TagName: s(v),
1114
+ TagName: s(m),
1140
1115
  actionAttributes: {},
1141
- attributes: P(v, E),
1116
+ attributes: C(m, y),
1142
1117
  children: /* @__PURE__ */ l(
1143
- D,
1118
+ N,
1144
1119
  {
1145
- path: `component.options.columns.${E}.blocks`,
1120
+ path: `component.options.columns.${y}.blocks`,
1146
1121
  parent: e.builderBlock.id,
1147
1122
  styleProp: {
1148
1123
  flexGrow: "1"
@@ -1150,89 +1125,89 @@ function jt(e) {
1150
1125
  context: e.builderContext,
1151
1126
  registeredComponents: e.builderComponents,
1152
1127
  linkComponent: e.builderLinkComponent,
1153
- blocks: v.blocks
1128
+ blocks: m.blocks
1154
1129
  }
1155
1130
  )
1156
1131
  },
1157
- E
1132
+ y
1158
1133
  ))
1159
1134
  ]
1160
1135
  }
1161
1136
  ),
1162
- /* @__PURE__ */ l("style", { children: `.div-34f576bb {
1137
+ /* @__PURE__ */ l("style", { children: `.div-3b0f6fe2 {
1163
1138
  display: flex;
1164
1139
  line-height: normal;
1165
1140
  }` })
1166
1141
  ] });
1167
1142
  }
1168
- function Mt(e) {
1143
+ function Dt(e) {
1169
1144
  return /* @__PURE__ */ l("span", { children: e.children });
1170
1145
  }
1171
- function ve(e) {
1146
+ function be(e) {
1172
1147
  return e.replace(/http(s)?:/, "");
1173
1148
  }
1174
- function Ht(e = "", t, n) {
1149
+ function Lt(e = "", t, n) {
1175
1150
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1176
1151
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1177
1152
  }
1178
- function Kt(e, t) {
1153
+ function Ot(e, t) {
1179
1154
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1180
1155
  return e;
1181
1156
  if (t === "master")
1182
- return ve(e);
1157
+ return be(e);
1183
1158
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1184
1159
  if (n) {
1185
1160
  const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
1186
- return ve(`${i[0]}_${a}${o}`);
1161
+ return be(`${i[0]}_${a}${o}`);
1187
1162
  }
1188
1163
  return null;
1189
1164
  }
1190
- function te(e) {
1165
+ function Q(e) {
1191
1166
  if (!e)
1192
1167
  return e;
1193
1168
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1194
1169
  if (e.match(/builder\.io/)) {
1195
1170
  let n = e;
1196
1171
  const i = Number(e.split("?width=")[1]);
1197
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Ht(e, "width", o)} ${o}w`).concat([n]).join(", ");
1172
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Lt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1198
1173
  }
1199
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Kt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1174
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ot(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1200
1175
  }
1201
- function qt(e) {
1176
+ function Ut(e) {
1202
1177
  var o, a, r, s, d, c;
1203
1178
  function t() {
1204
- var m;
1205
- const g = e.image || e.src;
1206
- if (!g || // We can auto add srcset for cdn.builder.io and shopify
1179
+ var h;
1180
+ const b = e.image || e.src;
1181
+ if (!b || // We can auto add srcset for cdn.builder.io and shopify
1207
1182
  // images, otherwise you can supply this prop manually
1208
- !(g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/)))
1183
+ !(b.match(/builder\.io/) || b.match(/cdn\.shopify\.com/)))
1209
1184
  return e.srcset;
1210
1185
  if (!e.noWebp) {
1211
- if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1186
+ if (e.srcset && ((h = e.image) != null && h.includes("builder.io/api/v1/image"))) {
1212
1187
  if (!e.srcset.includes(e.image.split("?")[0]))
1213
- return console.debug("Removed given srcset"), te(g);
1188
+ return console.debug("Removed given srcset"), Q(b);
1214
1189
  } else if (e.image && !e.srcset)
1215
- return te(g);
1216
- return te(g);
1190
+ return Q(b);
1191
+ return Q(b);
1217
1192
  }
1218
1193
  }
1219
1194
  function n() {
1220
- var u;
1221
- return (u = t == null ? void 0 : t()) != null && u.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
1195
+ var f;
1196
+ return (f = t == null ? void 0 : t()) != null && f.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
1222
1197
  }
1223
1198
  function i() {
1224
- const u = {
1199
+ const f = {
1225
1200
  position: "absolute",
1226
1201
  height: "100%",
1227
1202
  width: "100%",
1228
1203
  left: "0px",
1229
1204
  top: "0px"
1230
1205
  };
1231
- return e.aspectRatio ? u : void 0;
1206
+ return e.aspectRatio ? f : void 0;
1232
1207
  }
1233
- return B(() => {
1234
- }, []), /* @__PURE__ */ V(I, { children: [
1235
- /* @__PURE__ */ V(I, { children: [
1208
+ return P(() => {
1209
+ }, []), /* @__PURE__ */ V(w, { children: [
1210
+ /* @__PURE__ */ V(w, { children: [
1236
1211
  /* @__PURE__ */ V("picture", { children: [
1237
1212
  n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
1238
1213
  /* @__PURE__ */ l(
@@ -1247,7 +1222,7 @@ function qt(e) {
1247
1222
  objectFit: e.backgroundSize || "cover",
1248
1223
  ...i()
1249
1224
  },
1250
- className: "builder-image" + (e.className ? " " + e.className : "") + " img-2d6925f2",
1225
+ className: "builder-image" + (e.className ? " " + e.className : "") + " img-7a292ab8",
1251
1226
  src: e.image,
1252
1227
  srcSet: t(),
1253
1228
  sizes: e.sizes
@@ -1257,23 +1232,23 @@ function qt(e) {
1257
1232
  e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(
1258
1233
  "div",
1259
1234
  {
1260
- className: "builder-image-sizer div-2d6925f2",
1235
+ className: "builder-image-sizer div-7a292ab8",
1261
1236
  style: {
1262
1237
  paddingTop: e.aspectRatio * 100 + "%"
1263
1238
  }
1264
1239
  }
1265
1240
  ) : null,
1266
- (s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(I, { children: e.children }) : null,
1267
- !e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ l("div", { className: "div-2d6925f2-2", children: e.children }) : null
1241
+ (s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(w, { children: e.children }) : null,
1242
+ !e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ l("div", { className: "div-7a292ab8-2", children: e.children }) : null
1268
1243
  ] }),
1269
- /* @__PURE__ */ l("style", { children: `.img-2d6925f2 {
1244
+ /* @__PURE__ */ l("style", { children: `.img-7a292ab8 {
1270
1245
  opacity: 1;
1271
1246
  transition: opacity 0.2s ease-in-out;
1272
- }.div-2d6925f2 {
1247
+ }.div-7a292ab8 {
1273
1248
  width: 100%;
1274
1249
  pointer-events: none;
1275
1250
  font-size: 0;
1276
- }.div-2d6925f2-2 {
1251
+ }.div-7a292ab8-2 {
1277
1252
  display: flex;
1278
1253
  flex-direction: column;
1279
1254
  align-items: stretch;
@@ -1285,7 +1260,7 @@ function qt(e) {
1285
1260
  }` })
1286
1261
  ] });
1287
1262
  }
1288
- function _t(e) {
1263
+ function jt(e) {
1289
1264
  return /* @__PURE__ */ l(
1290
1265
  "section",
1291
1266
  {
@@ -1306,7 +1281,7 @@ function _t(e) {
1306
1281
  }
1307
1282
  );
1308
1283
  }
1309
- const ne = {
1284
+ const X = {
1310
1285
  "@type": "@builder.io/sdk:Element",
1311
1286
  layerName: "Accordion item title",
1312
1287
  responsiveStyles: {
@@ -1335,7 +1310,7 @@ const ne = {
1335
1310
  }
1336
1311
  }
1337
1312
  }]
1338
- }, ie = {
1313
+ }, Z = {
1339
1314
  "@type": "@builder.io/sdk:Element",
1340
1315
  layerName: "Accordion item detail",
1341
1316
  responsiveStyles: {
@@ -1366,7 +1341,7 @@ const ne = {
1366
1341
  }
1367
1342
  }
1368
1343
  }]
1369
- }, zt = {
1344
+ }, Mt = {
1370
1345
  name: "Builder:Accordion",
1371
1346
  canHaveChildren: !0,
1372
1347
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1383,19 +1358,19 @@ const ne = {
1383
1358
  name: "title",
1384
1359
  type: "uiBlocks",
1385
1360
  hideFromUI: !0,
1386
- defaultValue: [ne]
1361
+ defaultValue: [X]
1387
1362
  }, {
1388
1363
  name: "detail",
1389
1364
  type: "uiBlocks",
1390
1365
  hideFromUI: !0,
1391
- defaultValue: [ie]
1366
+ defaultValue: [Z]
1392
1367
  }],
1393
1368
  defaultValue: [{
1394
- title: [ne],
1395
- detail: [ie]
1369
+ title: [X],
1370
+ detail: [Z]
1396
1371
  }, {
1397
- title: [ne],
1398
- detail: [ie]
1372
+ title: [X],
1373
+ detail: [Z]
1399
1374
  }],
1400
1375
  showIf: (e) => !e.get("useChildrenForItems")
1401
1376
  }, {
@@ -1430,9 +1405,9 @@ const ne = {
1430
1405
  builderComponents: !0,
1431
1406
  builderLinkComponent: !0
1432
1407
  }
1433
- }, Se = (e) => e.toString();
1434
- function Jt(e) {
1435
- var g;
1408
+ }, pe = (e) => e.toString();
1409
+ function Ht(e) {
1410
+ var b;
1436
1411
  const [t, n] = T(() => []);
1437
1412
  function i() {
1438
1413
  return !!(e.grid || e.oneAtATime);
@@ -1450,7 +1425,7 @@ function Jt(e) {
1450
1425
  };
1451
1426
  }
1452
1427
  function a() {
1453
- const x = {
1428
+ const v = {
1454
1429
  ...{
1455
1430
  display: "flex",
1456
1431
  flexDirection: "column"
@@ -1459,73 +1434,73 @@ function Jt(e) {
1459
1434
  cursor: "pointer"
1460
1435
  };
1461
1436
  return Object.fromEntries(
1462
- Object.entries(x).filter(([h, p]) => p !== void 0)
1437
+ Object.entries(v).filter(([g, S]) => S !== void 0)
1463
1438
  );
1464
1439
  }
1465
- function r(m) {
1466
- return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
1440
+ function r(h) {
1441
+ return `builder-accordion-title builder-accordion-title-${t.includes(h) ? "open" : "closed"}`;
1467
1442
  }
1468
- function s(m) {
1469
- return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
1443
+ function s(h) {
1444
+ return `builder-accordion-detail builder-accordion-detail-${t.includes(h) ? "open" : "closed"}`;
1470
1445
  }
1471
1446
  function d() {
1472
- let m = null;
1447
+ let h = null;
1473
1448
  if (e.grid && t.length && document) {
1474
- const h = t[0];
1475
- let f = document.querySelector(
1476
- `.builder-accordion-title[data-index="${h}"]`
1449
+ const g = t[0];
1450
+ let x = document.querySelector(
1451
+ `.builder-accordion-title[data-index="${g}"]`
1477
1452
  );
1478
- if (m = h, f) {
1479
- let R = f.getBoundingClientRect();
1480
- for (; f = f && f.nextElementSibling; )
1481
- if (f) {
1482
- if (f.classList.contains("builder-accordion-detail"))
1453
+ if (h = g, x) {
1454
+ let E = x.getBoundingClientRect();
1455
+ for (; x = x && x.nextElementSibling; )
1456
+ if (x) {
1457
+ if (x.classList.contains("builder-accordion-detail"))
1483
1458
  continue;
1484
- const P = f.getBoundingClientRect();
1485
- if (P.left > R.left) {
1486
- const A = parseInt(
1487
- f.getAttribute("data-index") || "",
1459
+ const C = x.getBoundingClientRect();
1460
+ if (C.left > E.left) {
1461
+ const k = parseInt(
1462
+ x.getAttribute("data-index") || "",
1488
1463
  10
1489
1464
  );
1490
- isNaN(A) || (R = P, m = A);
1465
+ isNaN(k) || (E = C, h = k);
1491
1466
  } else
1492
1467
  break;
1493
1468
  }
1494
1469
  }
1495
1470
  }
1496
- return typeof m == "number" && (m = m + 1), m;
1471
+ return typeof h == "number" && (h = h + 1), h;
1497
1472
  }
1498
1473
  function c() {
1499
- const m = {
1474
+ const h = {
1500
1475
  order: typeof d() == "number" ? d() : void 0,
1501
1476
  ...e.grid && {
1502
1477
  width: "100%"
1503
1478
  }
1504
1479
  };
1505
1480
  return Object.fromEntries(
1506
- Object.entries(m).filter(([x, h]) => h !== void 0)
1481
+ Object.entries(h).filter(([v, g]) => g !== void 0)
1507
1482
  );
1508
1483
  }
1509
- function u(m) {
1510
- t.includes(m) ? n(i() ? [] : t.filter((x) => x !== m)) : n(i() ? [m] : t.concat(m));
1484
+ function f(h) {
1485
+ t.includes(h) ? n(i() ? [] : t.filter((v) => v !== h)) : n(i() ? [h] : t.concat(h));
1511
1486
  }
1512
- return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, x) => /* @__PURE__ */ V(I, { children: [
1487
+ return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (b = e.items) == null ? void 0 : b.map((h, v) => /* @__PURE__ */ V(w, { children: [
1513
1488
  /* @__PURE__ */ l(
1514
1489
  "div",
1515
1490
  {
1516
- className: r(x),
1491
+ className: r(v),
1517
1492
  style: {
1518
1493
  ...a(),
1519
1494
  width: e.grid ? e.gridRowWidth : void 0,
1520
- order: d() !== null ? Se(x) : Se(x + 1)
1495
+ order: d() !== null ? pe(v) : pe(v + 1)
1521
1496
  },
1522
- "data-index": x,
1523
- onClick: (h) => u(x),
1497
+ "data-index": v,
1498
+ onClick: (g) => f(v),
1524
1499
  children: /* @__PURE__ */ l(
1525
- D,
1500
+ N,
1526
1501
  {
1527
- blocks: m.title,
1528
- path: `items.${x}.title`,
1502
+ blocks: h.title,
1503
+ path: `items.${v}.title`,
1529
1504
  parent: e.builderBlock.id,
1530
1505
  context: e.builderContext,
1531
1506
  registeredComponents: e.builderComponents,
@@ -1534,16 +1509,16 @@ function Jt(e) {
1534
1509
  )
1535
1510
  }
1536
1511
  ),
1537
- t.includes(x) ? /* @__PURE__ */ l(
1512
+ t.includes(v) ? /* @__PURE__ */ l(
1538
1513
  "div",
1539
1514
  {
1540
- className: s(x),
1515
+ className: s(v),
1541
1516
  style: c(),
1542
1517
  children: /* @__PURE__ */ l(
1543
- D,
1518
+ N,
1544
1519
  {
1545
- blocks: m.detail,
1546
- path: `items.${x}.detail`,
1520
+ blocks: h.detail,
1521
+ path: `items.${v}.detail`,
1547
1522
  parent: e.builderBlock.id,
1548
1523
  context: e.builderContext,
1549
1524
  registeredComponents: e.builderComponents,
@@ -1554,7 +1529,7 @@ function Jt(e) {
1554
1529
  ) : null
1555
1530
  ] })) });
1556
1531
  }
1557
- const Yt = {
1532
+ const Kt = {
1558
1533
  name: "Core:Button",
1559
1534
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1560
1535
  defaultStyles: {
@@ -1590,7 +1565,7 @@ const Yt = {
1590
1565
  shouldReceiveBuilderProps: {
1591
1566
  builderLinkComponent: !0
1592
1567
  }
1593
- }, Gt = {
1568
+ }, qt = {
1594
1569
  // TODO: ways to statically preprocess JSON for references, functions, etc
1595
1570
  name: "Columns",
1596
1571
  isRSC: !0,
@@ -1797,13 +1772,13 @@ const Yt = {
1797
1772
  builderComponents: !0,
1798
1773
  builderLinkComponent: !0
1799
1774
  }
1800
- }, Qt = {
1775
+ }, _t = {
1801
1776
  name: "Fragment",
1802
1777
  static: !0,
1803
1778
  hidden: !0,
1804
1779
  canHaveChildren: !0,
1805
1780
  noWrap: !0
1806
- }, Xt = {
1781
+ }, zt = {
1807
1782
  name: "Image",
1808
1783
  static: !0,
1809
1784
  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",
@@ -1825,14 +1800,14 @@ const Yt = {
1825
1800
  e.delete("srcset"), e.delete("noWebp");
1826
1801
  function n(r, s = 6e4) {
1827
1802
  return new Promise((d, c) => {
1828
- const u = document.createElement("img");
1829
- let g = !1;
1830
- u.onload = () => {
1831
- g = !0, d(u);
1832
- }, u.addEventListener("error", (m) => {
1833
- console.warn("Image load failed", m.error), c(m.error);
1834
- }), u.src = r, setTimeout(() => {
1835
- g || c(new Error("Image load timed out"));
1803
+ const f = document.createElement("img");
1804
+ let b = !1;
1805
+ f.onload = () => {
1806
+ b = !0, d(f);
1807
+ }, f.addEventListener("error", (h) => {
1808
+ console.warn("Image load failed", h.error), c(h.error);
1809
+ }), f.src = r, setTimeout(() => {
1810
+ b || c(new Error("Image load timed out"));
1836
1811
  }, s);
1837
1812
  });
1838
1813
  }
@@ -1911,7 +1886,7 @@ const Yt = {
1911
1886
  shouldReceiveBuilderProps: {
1912
1887
  builderBlock: !0
1913
1888
  }
1914
- }, Zt = {
1889
+ }, Jt = {
1915
1890
  name: "Core:Section",
1916
1891
  static: !0,
1917
1892
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1950,7 +1925,7 @@ const Yt = {
1950
1925
  }
1951
1926
  }
1952
1927
  }]
1953
- }, en = {
1928
+ }, Yt = {
1954
1929
  name: "Slot",
1955
1930
  isRSC: !0,
1956
1931
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1968,7 +1943,7 @@ const Yt = {
1968
1943
  builderComponents: !0
1969
1944
  }
1970
1945
  };
1971
- function tn(e) {
1946
+ function Gt(e) {
1972
1947
  var t, n, i;
1973
1948
  return /* @__PURE__ */ l(
1974
1949
  "div",
@@ -1980,7 +1955,7 @@ function tn(e) {
1980
1955
  "builder-slot": e.name
1981
1956
  },
1982
1957
  children: /* @__PURE__ */ l(
1983
- D,
1958
+ N,
1984
1959
  {
1985
1960
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1986
1961
  path: `symbol.data.${e.name}`,
@@ -1992,7 +1967,7 @@ function tn(e) {
1992
1967
  }
1993
1968
  );
1994
1969
  }
1995
- const nn = {
1970
+ const Qt = {
1996
1971
  name: "Symbol",
1997
1972
  noWrap: !0,
1998
1973
  static: !0,
@@ -2031,7 +2006,7 @@ const nn = {
2031
2006
  builderComponents: !0,
2032
2007
  builderLinkComponent: !0
2033
2008
  }
2034
- }, oe = {
2009
+ }, ee = {
2035
2010
  "@type": "@builder.io/sdk:Element",
2036
2011
  responsiveStyles: {
2037
2012
  large: {
@@ -2053,7 +2028,7 @@ const nn = {
2053
2028
  text: "New tab"
2054
2029
  }
2055
2030
  }
2056
- }, ae = {
2031
+ }, te = {
2057
2032
  "@type": "@builder.io/sdk:Element",
2058
2033
  responsiveStyles: {
2059
2034
  large: {
@@ -2069,7 +2044,7 @@ const nn = {
2069
2044
  text: "New tab content "
2070
2045
  }
2071
2046
  }
2072
- }, on = {
2047
+ }, Xt = {
2073
2048
  name: "Builder: Tabs",
2074
2049
  inputs: [{
2075
2050
  name: "tabs",
@@ -2079,16 +2054,16 @@ const nn = {
2079
2054
  name: "label",
2080
2055
  type: "uiBlocks",
2081
2056
  hideFromUI: !0,
2082
- defaultValue: [oe]
2057
+ defaultValue: [ee]
2083
2058
  }, {
2084
2059
  name: "content",
2085
2060
  type: "uiBlocks",
2086
2061
  hideFromUI: !0,
2087
- defaultValue: [ae]
2062
+ defaultValue: [te]
2088
2063
  }],
2089
2064
  defaultValue: [{
2090
2065
  label: [{
2091
- ...oe,
2066
+ ...ee,
2092
2067
  component: {
2093
2068
  name: "Text",
2094
2069
  options: {
@@ -2097,7 +2072,7 @@ const nn = {
2097
2072
  }
2098
2073
  }],
2099
2074
  content: [{
2100
- ...ae,
2075
+ ...te,
2101
2076
  component: {
2102
2077
  name: "Text",
2103
2078
  options: {
@@ -2107,7 +2082,7 @@ const nn = {
2107
2082
  }]
2108
2083
  }, {
2109
2084
  label: [{
2110
- ...oe,
2085
+ ...ee,
2111
2086
  component: {
2112
2087
  name: "Text",
2113
2088
  options: {
@@ -2116,7 +2091,7 @@ const nn = {
2116
2091
  }
2117
2092
  }],
2118
2093
  content: [{
2119
- ...ae,
2094
+ ...te,
2120
2095
  component: {
2121
2096
  name: "Text",
2122
2097
  options: {
@@ -2173,7 +2148,7 @@ const nn = {
2173
2148
  builderLinkComponent: !0
2174
2149
  }
2175
2150
  };
2176
- function an(e) {
2151
+ function Zt(e) {
2177
2152
  var a;
2178
2153
  const [t, n] = T(
2179
2154
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
@@ -2204,7 +2179,7 @@ function an(e) {
2204
2179
  },
2205
2180
  onClick: (d) => o(s),
2206
2181
  children: /* @__PURE__ */ l(
2207
- D,
2182
+ N,
2208
2183
  {
2209
2184
  parent: e.builderBlock.id,
2210
2185
  path: `component.options.tabs.${s}.label`,
@@ -2220,7 +2195,7 @@ function an(e) {
2220
2195
  }
2221
2196
  ),
2222
2197
  i(t) ? /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
2223
- D,
2198
+ N,
2224
2199
  {
2225
2200
  parent: e.builderBlock.id,
2226
2201
  path: `component.options.tabs.${t}.content`,
@@ -2232,7 +2207,7 @@ function an(e) {
2232
2207
  ) }) : null
2233
2208
  ] });
2234
2209
  }
2235
- const rn = {
2210
+ const en = {
2236
2211
  shouldReceiveBuilderProps: {
2237
2212
  builderBlock: !1,
2238
2213
  builderContext: !0
@@ -2255,7 +2230,7 @@ const rn = {
2255
2230
  textAlign: "center"
2256
2231
  }
2257
2232
  };
2258
- function ln(e) {
2233
+ function tn(e) {
2259
2234
  function t() {
2260
2235
  var s;
2261
2236
  const n = e.builderContext, {
@@ -2266,7 +2241,7 @@ function ln(e) {
2266
2241
  } = n;
2267
2242
  return String(((s = e.text) == null ? void 0 : s.toString()) || "").replace(
2268
2243
  /{{([^}]+)}}/g,
2269
- (d, c) => H({
2244
+ (d, c) => U({
2270
2245
  code: c,
2271
2246
  context: i,
2272
2247
  localState: o,
@@ -2287,7 +2262,7 @@ function ln(e) {
2287
2262
  }
2288
2263
  );
2289
2264
  }
2290
- const sn = {
2265
+ const nn = {
2291
2266
  name: "Custom Code",
2292
2267
  static: !0,
2293
2268
  requiredPermissions: ["editCode"],
@@ -2310,9 +2285,9 @@ const sn = {
2310
2285
  advanced: !0
2311
2286
  }]
2312
2287
  };
2313
- function cn(e) {
2314
- const t = _(null), [n, i] = T(() => []), [o, a] = T(() => []);
2315
- return B(() => {
2288
+ function on(e) {
2289
+ const t = D(null), [n, i] = T(() => []), [o, a] = T(() => []);
2290
+ return P(() => {
2316
2291
  var s;
2317
2292
  if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
2318
2293
  return;
@@ -2323,8 +2298,8 @@ function cn(e) {
2323
2298
  if (n.includes(c.src))
2324
2299
  continue;
2325
2300
  n.push(c.src);
2326
- const u = document.createElement("script");
2327
- u.async = !0, u.src = c.src, document.head.appendChild(u);
2301
+ const f = document.createElement("script");
2302
+ f.async = !0, f.src = c.src, document.head.appendChild(f);
2328
2303
  } else if (!c.type || [
2329
2304
  "text/javascript",
2330
2305
  "application/javascript",
@@ -2334,8 +2309,8 @@ function cn(e) {
2334
2309
  continue;
2335
2310
  try {
2336
2311
  o.push(c.innerText), new Function(c.innerText)();
2337
- } catch (u) {
2338
- console.warn("`CustomCode`: Error running script:", u);
2312
+ } catch (f) {
2313
+ console.warn("`CustomCode`: Error running script:", f);
2339
2314
  }
2340
2315
  }
2341
2316
  }
@@ -2348,7 +2323,7 @@ function cn(e) {
2348
2323
  }
2349
2324
  );
2350
2325
  }
2351
- const dn = {
2326
+ const an = {
2352
2327
  name: "Embed",
2353
2328
  static: !0,
2354
2329
  inputs: [{
@@ -2363,28 +2338,28 @@ const dn = {
2363
2338
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2364
2339
  hideFromUI: !0
2365
2340
  }]
2366
- }, un = ["text/javascript", "application/javascript", "application/ecmascript"], mn = (e) => un.includes(e.type);
2367
- function fn(e) {
2368
- const t = _(null), [n, i] = T(() => []), [o, a] = T(() => []), [r, s] = T(() => !1);
2341
+ }, rn = ["text/javascript", "application/javascript", "application/ecmascript"], ln = (e) => rn.includes(e.type);
2342
+ function sn(e) {
2343
+ const t = D(null), [n, i] = T(() => []), [o, a] = T(() => []), [r, s] = T(() => !1);
2369
2344
  function d() {
2370
2345
  if (!t.current || !t.current.getElementsByTagName)
2371
2346
  return;
2372
2347
  const c = t.current.getElementsByTagName("script");
2373
- for (let u = 0; u < c.length; u++) {
2374
- const g = c[u];
2375
- if (g.src && !n.includes(g.src)) {
2376
- n.push(g.src);
2377
- const m = document.createElement("script");
2378
- m.async = !0, m.src = g.src, document.head.appendChild(m);
2379
- } else if (mn(g) && !o.includes(g.innerText))
2348
+ for (let f = 0; f < c.length; f++) {
2349
+ const b = c[f];
2350
+ if (b.src && !n.includes(b.src)) {
2351
+ n.push(b.src);
2352
+ const h = document.createElement("script");
2353
+ h.async = !0, h.src = b.src, document.head.appendChild(h);
2354
+ } else if (ln(b) && !o.includes(b.innerText))
2380
2355
  try {
2381
- o.push(g.innerText), new Function(g.innerText)();
2382
- } catch (m) {
2383
- console.warn("`Embed`: Error running script:", m);
2356
+ o.push(b.innerText), new Function(b.innerText)();
2357
+ } catch (h) {
2358
+ console.warn("`Embed`: Error running script:", h);
2384
2359
  }
2385
2360
  }
2386
2361
  }
2387
- return B(() => {
2362
+ return P(() => {
2388
2363
  t.current && !r && (s(!0), d());
2389
2364
  }, [t.current, r]), /* @__PURE__ */ l(
2390
2365
  "div",
@@ -2395,7 +2370,7 @@ function fn(e) {
2395
2370
  }
2396
2371
  );
2397
2372
  }
2398
- const hn = {
2373
+ const cn = {
2399
2374
  name: "Form:Form",
2400
2375
  // editableTags: ['builder-form-error']
2401
2376
  defaults: {
@@ -2632,123 +2607,123 @@ const hn = {
2632
2607
  builderComponents: !0,
2633
2608
  builderLinkComponent: !0
2634
2609
  }
2635
- }, gn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], bn = () => {
2610
+ }, dn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], un = () => {
2636
2611
  const e = process.env.NODE_ENV || "production";
2637
- return gn.includes(e) ? e : "production";
2638
- }, pn = (e, t, n) => {
2612
+ return dn.includes(e) ? e : "production";
2613
+ }, mn = (e, t, n) => {
2639
2614
  const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
2640
2615
  return i === void 0 || i === e ? n : i;
2641
2616
  };
2642
- function yn(e) {
2643
- var g, m;
2644
- const t = _(null), [n, i] = T(() => "unsubmitted"), [o, a] = T(() => null), [r, s] = T(() => "");
2645
- function d(x) {
2646
- var p, f;
2647
- const h = {
2617
+ function fn(e) {
2618
+ var b, h;
2619
+ const t = D(null), [n, i] = T(() => "unsubmitted"), [o, a] = T(() => null), [r, s] = T(() => "");
2620
+ function d(v) {
2621
+ var S, x;
2622
+ const g = {
2648
2623
  ...e.builderContext.rootState,
2649
- ...x
2624
+ ...v
2650
2625
  };
2651
- e.builderContext.rootSetState ? (f = (p = e.builderContext).rootSetState) == null || f.call(p, h) : e.builderContext.rootState = h;
2626
+ e.builderContext.rootSetState ? (x = (S = e.builderContext).rootSetState) == null || x.call(S, g) : e.builderContext.rootState = g;
2652
2627
  }
2653
2628
  function c() {
2654
- return $() && e.previewState || n;
2629
+ return F() && e.previewState || n;
2655
2630
  }
2656
- function u(x) {
2657
- var p;
2658
- const h = e.sendWithJs || e.sendSubmissionsTo === "email";
2631
+ function f(v) {
2632
+ var S;
2633
+ const g = e.sendWithJs || e.sendSubmissionsTo === "email";
2659
2634
  if (e.sendSubmissionsTo === "zapier")
2660
- x.preventDefault();
2661
- else if (h) {
2635
+ v.preventDefault();
2636
+ else if (g) {
2662
2637
  if (!(e.action || e.sendSubmissionsTo === "email")) {
2663
- x.preventDefault();
2638
+ v.preventDefault();
2664
2639
  return;
2665
2640
  }
2666
- x.preventDefault();
2667
- const f = x.currentTarget || x.target, R = e.customHeaders || {};
2668
- let P;
2669
- const A = new FormData(f), O = Array.from(f.querySelectorAll("input,select,textarea")).filter((y) => !!y.name).map((y) => {
2670
- let b;
2671
- const S = y.name;
2672
- if (y instanceof HTMLInputElement)
2673
- if (y.type === "radio") {
2674
- if (y.checked)
2675
- return b = y.name, {
2676
- key: S,
2677
- value: b
2641
+ v.preventDefault();
2642
+ const x = v.currentTarget || v.target, E = e.customHeaders || {};
2643
+ let C;
2644
+ const k = new FormData(x), W = Array.from(x.querySelectorAll("input,select,textarea")).filter((u) => !!u.name).map((u) => {
2645
+ let p;
2646
+ const R = u.name;
2647
+ if (u instanceof HTMLInputElement)
2648
+ if (u.type === "radio") {
2649
+ if (u.checked)
2650
+ return p = u.name, {
2651
+ key: R,
2652
+ value: p
2678
2653
  };
2679
- } else if (y.type === "checkbox")
2680
- b = y.checked;
2681
- else if (y.type === "number" || y.type === "range") {
2682
- const k = y.valueAsNumber;
2683
- isNaN(k) || (b = k);
2654
+ } else if (u.type === "checkbox")
2655
+ p = u.checked;
2656
+ else if (u.type === "number" || u.type === "range") {
2657
+ const B = u.valueAsNumber;
2658
+ isNaN(B) || (p = B);
2684
2659
  } else
2685
- y.type === "file" ? b = y.files : b = y.value;
2660
+ u.type === "file" ? p = u.files : p = u.value;
2686
2661
  else
2687
- b = y.value;
2662
+ p = u.value;
2688
2663
  return {
2689
- key: S,
2690
- value: b
2664
+ key: R,
2665
+ value: p
2691
2666
  };
2692
2667
  });
2693
- let v = e.contentType;
2694
- if (e.sendSubmissionsTo === "email" && (v = "multipart/form-data"), Array.from(O).forEach(({ value: y }) => {
2695
- (y instanceof File || Array.isArray(y) && y[0] instanceof File || y instanceof FileList) && (v = "multipart/form-data");
2696
- }), v !== "application/json")
2697
- P = A;
2668
+ let m = e.contentType;
2669
+ if (e.sendSubmissionsTo === "email" && (m = "multipart/form-data"), Array.from(W).forEach(({ value: u }) => {
2670
+ (u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (m = "multipart/form-data");
2671
+ }), m !== "application/json")
2672
+ C = k;
2698
2673
  else {
2699
- const y = {};
2700
- Array.from(O).forEach(({ value: b, key: S }) => {
2701
- Be(y, S, b);
2702
- }), P = JSON.stringify(y);
2674
+ const u = {};
2675
+ Array.from(W).forEach(({ value: p, key: R }) => {
2676
+ we(u, R, p);
2677
+ }), C = JSON.stringify(u);
2703
2678
  }
2704
- v && v !== "multipart/form-data" && (h && ((p = e.action) != null && p.includes("zapier.com")) || (R["content-type"] = v));
2705
- const E = new CustomEvent("presubmit", { detail: { body: P } });
2706
- if (t.current && (t.current.dispatchEvent(E), E.defaultPrevented))
2679
+ m && m !== "multipart/form-data" && (g && ((S = e.action) != null && S.includes("zapier.com")) || (E["content-type"] = m));
2680
+ const y = new CustomEvent("presubmit", { detail: { body: C } });
2681
+ if (t.current && (t.current.dispatchEvent(y), y.defaultPrevented))
2707
2682
  return;
2708
2683
  i("sending");
2709
- const W = `${bn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2684
+ const I = `${un() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2710
2685
  e.sendSubmissionsToEmail || ""
2711
2686
  )}&name=${encodeURIComponent(e.name || "")}`;
2712
2687
  fetch(
2713
- e.sendSubmissionsTo === "email" ? W : e.action,
2714
- { body: P, headers: R, method: e.method || "post" }
2688
+ e.sendSubmissionsTo === "email" ? I : e.action,
2689
+ { body: C, headers: E, method: e.method || "post" }
2715
2690
  ).then(
2716
- async (y) => {
2717
- let b;
2718
- const S = y.headers.get("content-type");
2719
- if (S && S.indexOf("application/json") !== -1 ? b = await y.json() : b = await y.text(), !y.ok && e.errorMessagePath) {
2720
- let k = pn(b, e.errorMessagePath);
2721
- k && (typeof k != "string" && (k = JSON.stringify(k)), s(k), d({ formErrorMessage: k }));
2691
+ async (u) => {
2692
+ let p;
2693
+ const R = u.headers.get("content-type");
2694
+ if (R && R.indexOf("application/json") !== -1 ? p = await u.json() : p = await u.text(), !u.ok && e.errorMessagePath) {
2695
+ let B = mn(p, e.errorMessagePath);
2696
+ B && (typeof B != "string" && (B = JSON.stringify(B)), s(B), d({ formErrorMessage: B }));
2722
2697
  }
2723
- if (a(b), i(y.ok ? "success" : "error"), y.ok) {
2724
- const k = new CustomEvent("submit:success", {
2725
- detail: { res: y, body: b }
2698
+ if (a(p), i(u.ok ? "success" : "error"), u.ok) {
2699
+ const B = new CustomEvent("submit:success", {
2700
+ detail: { res: u, body: p }
2726
2701
  });
2727
2702
  if (t.current) {
2728
- if (t.current.dispatchEvent(k), k.defaultPrevented)
2703
+ if (t.current.dispatchEvent(B), B.defaultPrevented)
2729
2704
  return;
2730
2705
  e.resetFormOnSubmit !== !1 && t.current.reset();
2731
2706
  }
2732
2707
  if (e.successUrl)
2733
2708
  if (t.current) {
2734
- const C = new CustomEvent("route", {
2709
+ const A = new CustomEvent("route", {
2735
2710
  detail: { url: e.successUrl }
2736
2711
  });
2737
- t.current.dispatchEvent(C), C.defaultPrevented || (location.href = e.successUrl);
2712
+ t.current.dispatchEvent(A), A.defaultPrevented || (location.href = e.successUrl);
2738
2713
  } else
2739
2714
  location.href = e.successUrl;
2740
2715
  }
2741
2716
  },
2742
- (y) => {
2743
- const b = new CustomEvent("submit:error", {
2744
- detail: { error: y }
2717
+ (u) => {
2718
+ const p = new CustomEvent("submit:error", {
2719
+ detail: { error: u }
2745
2720
  });
2746
- t.current && (t.current.dispatchEvent(b), b.defaultPrevented) || (a(y), i("error"));
2721
+ t.current && (t.current.dispatchEvent(p), p.defaultPrevented) || (a(u), i("error"));
2747
2722
  }
2748
2723
  );
2749
2724
  }
2750
2725
  }
2751
- return /* @__PURE__ */ V(I, { children: [
2726
+ return /* @__PURE__ */ V(w, { children: [
2752
2727
  " ",
2753
2728
  /* @__PURE__ */ V(
2754
2729
  "form",
@@ -2758,21 +2733,21 @@ function yn(e) {
2758
2733
  action: !e.sendWithJs && e.action,
2759
2734
  method: e.method,
2760
2735
  name: e.name,
2761
- onSubmit: (x) => u(x),
2736
+ onSubmit: (v) => f(v),
2762
2737
  ...e.attributes,
2763
2738
  children: [
2764
- e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(I, { children: (m = (g = e.builderBlock) == null ? void 0 : g.children) == null ? void 0 : m.map((x, h) => /* @__PURE__ */ l(
2765
- z,
2739
+ e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(w, { children: (h = (b = e.builderBlock) == null ? void 0 : b.children) == null ? void 0 : h.map((v, g) => /* @__PURE__ */ l(
2740
+ H,
2766
2741
  {
2767
- block: x,
2742
+ block: v,
2768
2743
  context: e.builderContext,
2769
2744
  registeredComponents: e.builderComponents,
2770
2745
  linkComponent: e.builderLinkComponent
2771
2746
  },
2772
- `form-block-${h}`
2747
+ `form-block-${g}`
2773
2748
  )) }) : null,
2774
2749
  c() === "error" ? /* @__PURE__ */ l(
2775
- D,
2750
+ N,
2776
2751
  {
2777
2752
  path: "errorMessage",
2778
2753
  blocks: e.errorMessage,
@@ -2780,7 +2755,7 @@ function yn(e) {
2780
2755
  }
2781
2756
  ) : null,
2782
2757
  c() === "sending" ? /* @__PURE__ */ l(
2783
- D,
2758
+ N,
2784
2759
  {
2785
2760
  path: "sendingMessage",
2786
2761
  blocks: e.sendingMessage,
@@ -2789,7 +2764,7 @@ function yn(e) {
2789
2764
  ) : null,
2790
2765
  c() === "error" && o ? /* @__PURE__ */ l("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
2791
2766
  c() === "success" ? /* @__PURE__ */ l(
2792
- D,
2767
+ N,
2793
2768
  {
2794
2769
  path: "successMessage",
2795
2770
  blocks: e.successMessage,
@@ -2804,7 +2779,7 @@ function yn(e) {
2804
2779
  " "
2805
2780
  ] });
2806
2781
  }
2807
- const xn = {
2782
+ const hn = {
2808
2783
  name: "Form:Input",
2809
2784
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2810
2785
  inputs: [
@@ -2856,12 +2831,12 @@ const xn = {
2856
2831
  borderColor: "#ccc"
2857
2832
  }
2858
2833
  };
2859
- function vn(e) {
2860
- return /* @__PURE__ */ Pe(
2834
+ function gn(e) {
2835
+ return /* @__PURE__ */ Ie(
2861
2836
  "input",
2862
2837
  {
2863
2838
  ...e.attributes,
2864
- key: $() && e.defaultValue ? e.defaultValue : "default-key",
2839
+ key: F() && e.defaultValue ? e.defaultValue : "default-key",
2865
2840
  placeholder: e.placeholder,
2866
2841
  type: e.type,
2867
2842
  name: e.name,
@@ -2871,7 +2846,7 @@ function vn(e) {
2871
2846
  }
2872
2847
  );
2873
2848
  }
2874
- const Sn = {
2849
+ const bn = {
2875
2850
  name: "Form:Select",
2876
2851
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2877
2852
  defaultStyles: {
@@ -2914,14 +2889,14 @@ const Sn = {
2914
2889
  static: !0,
2915
2890
  noWrap: !0
2916
2891
  };
2917
- function kn(e) {
2892
+ function pn(e) {
2918
2893
  var t;
2919
- return /* @__PURE__ */ Pe(
2894
+ return /* @__PURE__ */ Ie(
2920
2895
  "select",
2921
2896
  {
2922
2897
  ...e.attributes,
2923
2898
  value: e.value,
2924
- key: $() && e.defaultValue ? e.defaultValue : "default-key",
2899
+ key: F() && e.defaultValue ? e.defaultValue : "default-key",
2925
2900
  defaultValue: e.defaultValue,
2926
2901
  name: e.name,
2927
2902
  required: e.required
@@ -2929,7 +2904,7 @@ function kn(e) {
2929
2904
  (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2930
2905
  );
2931
2906
  }
2932
- const Cn = {
2907
+ const yn = {
2933
2908
  name: "Form:SubmitButton",
2934
2909
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2935
2910
  defaultStyles: {
@@ -2955,10 +2930,10 @@ const Cn = {
2955
2930
  // TODO: defaultChildren
2956
2931
  // canHaveChildren: true,
2957
2932
  };
2958
- function Tn(e) {
2933
+ function xn(e) {
2959
2934
  return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
2960
2935
  }
2961
- const In = {
2936
+ const vn = {
2962
2937
  name: "Form:TextArea",
2963
2938
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
2964
2939
  inputs: [{
@@ -2995,7 +2970,7 @@ const In = {
2995
2970
  static: !0,
2996
2971
  noWrap: !0
2997
2972
  };
2998
- function wn(e) {
2973
+ function Sn(e) {
2999
2974
  return /* @__PURE__ */ l(
3000
2975
  "textarea",
3001
2976
  {
@@ -3008,7 +2983,7 @@ function wn(e) {
3008
2983
  }
3009
2984
  );
3010
2985
  }
3011
- const Rn = {
2986
+ const kn = {
3012
2987
  // friendlyName?
3013
2988
  name: "Raw:Img",
3014
2989
  hideFromInsertMenu: !0,
@@ -3023,7 +2998,7 @@ const Rn = {
3023
2998
  noWrap: !0,
3024
2999
  static: !0
3025
3000
  };
3026
- function En(e) {
3001
+ function Cn(e) {
3027
3002
  return /* @__PURE__ */ l(
3028
3003
  "img",
3029
3004
  {
@@ -3035,10 +3010,10 @@ function En(e) {
3035
3010
  src: e.imgSrc || e.image,
3036
3011
  ...e.attributes
3037
3012
  },
3038
- $() && e.imgSrc || "default-key"
3013
+ F() && e.imgSrc || "default-key"
3039
3014
  );
3040
3015
  }
3041
- const Pn = {
3016
+ const Tn = {
3042
3017
  name: "Video",
3043
3018
  canHaveChildren: !0,
3044
3019
  defaultStyles: {
@@ -3123,7 +3098,7 @@ const Pn = {
3123
3098
  builderBlock: !0
3124
3099
  }
3125
3100
  };
3126
- function Bn(e) {
3101
+ function In(e) {
3127
3102
  var i, o, a, r, s, d, c;
3128
3103
  function t() {
3129
3104
  return {
@@ -3224,64 +3199,64 @@ function Bn(e) {
3224
3199
  }
3225
3200
  );
3226
3201
  }
3227
- const Vn = () => [{
3228
- component: cn,
3229
- ...sn
3202
+ const wn = () => [{
3203
+ component: on,
3204
+ ...nn
3205
+ }, {
3206
+ component: sn,
3207
+ ...an
3230
3208
  }, {
3231
3209
  component: fn,
3232
- ...dn
3210
+ ...cn
3233
3211
  }, {
3234
- component: yn,
3212
+ component: gn,
3235
3213
  ...hn
3236
3214
  }, {
3237
- component: vn,
3238
- ...xn
3215
+ component: xn,
3216
+ ...yn
3239
3217
  }, {
3240
- component: Tn,
3241
- ...Cn
3218
+ component: pn,
3219
+ ...bn
3242
3220
  }, {
3243
- component: kn,
3244
- ...Sn
3221
+ component: Sn,
3222
+ ...vn
3245
3223
  }, {
3246
- component: wn,
3247
- ...In
3224
+ component: Cn,
3225
+ ...kn
3248
3226
  }, {
3249
- component: En,
3250
- ...Rn
3227
+ component: In,
3228
+ ...Tn
3229
+ }], ye = () => [{
3230
+ component: tt,
3231
+ ...Kt
3251
3232
  }, {
3252
- component: Bn,
3253
- ...Pn
3254
- }], ke = () => [{
3255
- component: rt,
3256
- ...Yt
3233
+ component: $t,
3234
+ ...qt
3257
3235
  }, {
3258
- component: jt,
3259
- ...Gt
3236
+ component: Dt,
3237
+ ..._t
3260
3238
  }, {
3261
- component: Mt,
3262
- ...Qt
3239
+ component: Ut,
3240
+ ...zt
3263
3241
  }, {
3264
- component: qt,
3265
- ...Xt
3242
+ component: jt,
3243
+ ...Jt
3266
3244
  }, {
3267
- component: _t,
3268
- ...Zt
3245
+ component: Gt,
3246
+ ...Yt
3247
+ }, {
3248
+ component: Yn,
3249
+ ...Qt
3269
3250
  }, {
3270
3251
  component: tn,
3271
3252
  ...en
3272
3253
  }, {
3273
- component: ei,
3274
- ...nn
3275
- }, {
3276
- component: ln,
3277
- ...rn
3278
- }, {
3279
- component: an,
3280
- ...on
3254
+ component: Zt,
3255
+ ...Xt
3281
3256
  }, {
3282
- component: Jt,
3283
- ...zt
3284
- }, ...Vn()], An = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3257
+ component: Ht,
3258
+ ...Mt
3259
+ }, ...wn()], Rn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3285
3260
  function getAndSetVariantId() {
3286
3261
  function setCookie(name, value, days) {
3287
3262
  let expires = '';
@@ -3337,7 +3312,7 @@ const Vn = () => [{
3337
3312
  }).join('');
3338
3313
  styleEl.innerHTML = newStyleStr;
3339
3314
  }
3340
- }`, Wn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3315
+ }`, En = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3341
3316
  if (!navigator.cookieEnabled) {
3342
3317
  return;
3343
3318
  }
@@ -3371,26 +3346,26 @@ const Vn = () => [{
3371
3346
  thisScriptEl?.remove();
3372
3347
  }
3373
3348
  return;
3374
- }`, je = "builderIoAbTest", Me = "builderIoRenderContent", Y = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3349
+ }`, $e = "builderIoAbTest", De = "builderIoRenderContent", q = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3375
3350
  ...t,
3376
3351
  testVariationId: t.id,
3377
3352
  id: e == null ? void 0 : e.id
3378
- })), Fn = ({
3353
+ })), Bn = ({
3379
3354
  canTrack: e,
3380
3355
  content: t
3381
- }) => !(!(Y(t).length > 0) || !e || G()), Nn = (e) => e === "react" || e === "reactNative", He = Nn(U), $n = () => `
3382
- window.${je} = ${An}
3383
- window.${Me} = ${Wn}
3384
- `, Dn = (e, t) => `
3385
- window.${je}(
3386
- "${t}",${JSON.stringify(e)}, ${He}
3387
- )`, Ln = ({
3356
+ }) => !(!(q(t).length > 0) || !e || _()), Pn = (e) => e === "react" || e === "reactNative", Le = Pn(L), Vn = () => `
3357
+ window.${$e} = ${Rn}
3358
+ window.${De} = ${En}
3359
+ `, An = (e, t) => `
3360
+ window.${$e}(
3361
+ "${t}",${JSON.stringify(e)}, ${Le}
3362
+ )`, Wn = ({
3388
3363
  contentId: e,
3389
3364
  variationId: t
3390
- }) => `window.${Me}(
3391
- "${t}", "${e}", ${He}
3365
+ }) => `window.${De}(
3366
+ "${t}", "${e}", ${Le}
3392
3367
  )`;
3393
- function se(e) {
3368
+ function oe(e) {
3394
3369
  return /* @__PURE__ */ l(
3395
3370
  "script",
3396
3371
  {
@@ -3400,10 +3375,10 @@ function se(e) {
3400
3375
  }
3401
3376
  );
3402
3377
  }
3403
- function Ce(e) {
3378
+ function xe(e) {
3404
3379
  return Math.round(e * 1e3) / 1e3;
3405
3380
  }
3406
- const On = (e, t, n = !0) => {
3381
+ const Fn = (e, t, n = !0) => {
3407
3382
  if (!(e instanceof HTMLElement))
3408
3383
  return null;
3409
3384
  let i = n ? e : e.parentElement;
@@ -3414,35 +3389,35 @@ const On = (e, t, n = !0) => {
3414
3389
  return i;
3415
3390
  } while (i = i.parentElement);
3416
3391
  return null;
3417
- }, Un = (e) => On(e, (t) => {
3392
+ }, Nn = (e) => Fn(e, (t) => {
3418
3393
  const n = t.getAttribute("builder-id") || t.id;
3419
3394
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3420
- }), Te = ({
3395
+ }), ve = ({
3421
3396
  event: e,
3422
3397
  target: t
3423
3398
  }) => {
3424
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = Ce(i / n.width), r = Ce(o / n.height);
3399
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = xe(i / n.width), r = xe(o / n.height);
3425
3400
  return {
3426
3401
  x: a,
3427
3402
  y: r
3428
3403
  };
3429
- }, jn = (e) => {
3430
- const t = e.target, n = t && Un(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3404
+ }, $n = (e) => {
3405
+ const t = e.target, n = t && Nn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3431
3406
  return {
3432
3407
  targetBuilderElement: i || void 0,
3433
3408
  metadata: {
3434
- targetOffset: t ? Te({
3409
+ targetOffset: t ? ve({
3435
3410
  event: e,
3436
3411
  target: t
3437
3412
  }) : void 0,
3438
- builderTargetOffset: n ? Te({
3413
+ builderTargetOffset: n ? ve({
3439
3414
  event: e,
3440
3415
  target: n
3441
3416
  }) : void 0,
3442
3417
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3443
3418
  }
3444
3419
  };
3445
- }, Mn = (e) => {
3420
+ }, Dn = (e) => {
3446
3421
  var a, r;
3447
3422
  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;
3448
3423
  let o = "";
@@ -3468,15 +3443,15 @@ font-weight: ${s};
3468
3443
  `.trim());
3469
3444
  }
3470
3445
  return o;
3471
- }, Hn = ({
3446
+ }, Ln = ({
3472
3447
  customFonts: e
3473
3448
  }) => {
3474
3449
  var t;
3475
- return ((t = e == null ? void 0 : e.map((n) => Mn(n))) == null ? void 0 : t.join(" ")) || "";
3476
- }, Kn = ({
3450
+ return ((t = e == null ? void 0 : e.map((n) => Dn(n))) == null ? void 0 : t.join(" ")) || "";
3451
+ }, On = ({
3477
3452
  cssCode: e,
3478
3453
  contentId: t
3479
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", qn = `
3454
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Un = `
3480
3455
  .builder-button {
3481
3456
  all: unset;
3482
3457
  }
@@ -3493,39 +3468,39 @@ font-weight: ${s};
3493
3468
  text-align: inherit;
3494
3469
  font-family: inherit;
3495
3470
  }
3496
- `, _n = (e) => e ? "" : qn, zn = (e) => `variant-${e}`;
3497
- function Jn(e) {
3498
- var P, A, O, v, E, W, y;
3499
- const t = _(null);
3500
- function n(b) {
3501
- var k, C;
3502
- const S = {
3471
+ `, jn = (e) => e ? "" : Un, Mn = (e) => `variant-${e}`;
3472
+ function Hn(e) {
3473
+ var C, k, W;
3474
+ const t = D(null);
3475
+ function n(m) {
3476
+ var I, u;
3477
+ const y = {
3503
3478
  ...e.builderContextSignal.rootState,
3504
- ...b
3479
+ ...m
3505
3480
  };
3506
- e.builderContextSignal.rootSetState ? (C = (k = e.builderContextSignal).rootSetState) == null || C.call(k, S) : e.setBuilderContextSignal((w) => ({
3507
- ...w,
3508
- rootState: S
3481
+ e.builderContextSignal.rootSetState ? (u = (I = e.builderContextSignal).rootSetState) == null || u.call(I, y) : e.setBuilderContextSignal((p) => ({
3482
+ ...p,
3483
+ rootState: y
3509
3484
  }));
3510
3485
  }
3511
- function i(b) {
3512
- var k, C, w, F, j;
3513
- const S = {
3486
+ function i(m) {
3487
+ var I, u, p, R, B;
3488
+ const y = {
3514
3489
  ...e.builderContextSignal.content,
3515
- ...b,
3490
+ ...m,
3516
3491
  data: {
3517
- ...(k = e.builderContextSignal.content) == null ? void 0 : k.data,
3518
- ...b == null ? void 0 : b.data
3492
+ ...(I = e.builderContextSignal.content) == null ? void 0 : I.data,
3493
+ ...m == null ? void 0 : m.data
3519
3494
  },
3520
3495
  meta: {
3521
- ...(C = e.builderContextSignal.content) == null ? void 0 : C.meta,
3522
- ...b == null ? void 0 : b.meta,
3523
- breakpoints: ((w = b == null ? void 0 : b.meta) == null ? void 0 : w.breakpoints) || ((j = (F = e.builderContextSignal.content) == null ? void 0 : F.meta) == null ? void 0 : j.breakpoints)
3496
+ ...(u = e.builderContextSignal.content) == null ? void 0 : u.meta,
3497
+ ...m == null ? void 0 : m.meta,
3498
+ breakpoints: ((p = m == null ? void 0 : m.meta) == null ? void 0 : p.breakpoints) || ((B = (R = e.builderContextSignal.content) == null ? void 0 : R.meta) == null ? void 0 : B.breakpoints)
3524
3499
  }
3525
3500
  };
3526
- e.setBuilderContextSignal((N) => ({
3527
- ...N,
3528
- content: S
3501
+ e.setBuilderContextSignal((A) => ({
3502
+ ...A,
3503
+ content: y
3529
3504
  }));
3530
3505
  }
3531
3506
  function o() {
@@ -3537,73 +3512,58 @@ function Jn(e) {
3537
3512
  const [a, r] = T(
3538
3513
  () => e.contentWrapper || "div"
3539
3514
  );
3540
- function s(b) {
3541
- return Ge({
3515
+ function s(m) {
3516
+ return qe({
3542
3517
  model: e.model,
3543
3518
  trustedHosts: e.trustedHosts,
3544
3519
  callbacks: {
3545
- configureSdk: (S) => {
3546
- var w;
3547
- const { breakpoints: k, contentId: C } = S;
3548
- !C || C !== ((w = e.builderContextSignal.content) == null ? void 0 : w.id) || k && i({
3520
+ configureSdk: (y) => {
3521
+ var p;
3522
+ const { breakpoints: I, contentId: u } = y;
3523
+ !u || u !== ((p = e.builderContextSignal.content) == null ? void 0 : p.id) || I && i({
3549
3524
  meta: {
3550
- breakpoints: k
3525
+ breakpoints: I
3551
3526
  }
3552
3527
  });
3553
3528
  },
3554
- animation: (S) => {
3555
- Ne(S);
3529
+ animation: (y) => {
3530
+ Pe(y);
3556
3531
  },
3557
- contentUpdate: (S) => {
3558
- i(S);
3532
+ contentUpdate: (y) => {
3533
+ i(y);
3559
3534
  }
3560
3535
  }
3561
- })(b);
3536
+ })(m);
3562
3537
  }
3563
- function d() {
3564
- var S, k;
3565
- const b = (k = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : k.jsCode;
3566
- b && H({
3567
- code: b,
3568
- context: e.context || {},
3569
- localState: void 0,
3570
- rootState: e.builderContextSignal.rootState,
3571
- rootSetState: e.builderContextSignal.rootSetState,
3572
- /**
3573
- * We don't want to cache the result of the JS code, since it's arbitrary side effect code.
3574
- */
3575
- enableCache: !1
3576
- });
3577
- }
3578
- const [c, u] = T(() => ({})), [g, m] = T(() => ({})), [x, h] = T(() => !1);
3579
- function p(b) {
3580
- var S, k;
3538
+ const [d, c] = T(() => ({})), [f, b] = T(() => ({})), [h, v] = T(() => !1);
3539
+ function g(m) {
3540
+ var y, I;
3581
3541
  if (e.builderContextSignal.content) {
3582
- const C = (S = e.builderContextSignal.content) == null ? void 0 : S.testVariationId, w = (k = e.builderContextSignal.content) == null ? void 0 : k.id;
3583
- he({
3542
+ const u = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, p = (I = e.builderContextSignal.content) == null ? void 0 : I.id;
3543
+ de({
3584
3544
  type: "click",
3585
- canTrack: Q(e.canTrack),
3586
- contentId: w,
3545
+ canTrack: z(e.canTrack),
3546
+ contentId: p,
3587
3547
  apiKey: e.apiKey,
3588
- variationId: C !== w ? C : void 0,
3589
- ...jn(b),
3590
- unique: !x
3548
+ variationId: u !== p ? u : void 0,
3549
+ ...$n(m),
3550
+ unique: !h
3591
3551
  });
3592
3552
  }
3593
- x || h(!0);
3553
+ h || v(!0);
3594
3554
  }
3595
- function f() {
3596
- var S, k, C;
3597
- const b = (C = (k = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : k.httpRequests) != null ? C : {};
3598
- Object.entries(b).forEach(([w, F]) => {
3599
- if (!F || g[w] || c[w] && !$())
3555
+ function S() {
3556
+ var y, I, u;
3557
+ const m = (u = (I = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : I.httpRequests) != null ? u : {};
3558
+ Object.entries(m).forEach(([p, R]) => {
3559
+ if (!R || f[p] || d[p] && !F())
3600
3560
  return;
3601
- g[w] = !0;
3602
- const j = F.replace(
3561
+ f[p] = !0;
3562
+ const B = R.replace(
3603
3563
  /{{([^}]+)}}/g,
3604
- (N, Ke) => String(
3605
- H({
3606
- code: Ke,
3564
+ (A, Oe) => String(
3565
+ U({
3566
+ code: Oe,
3607
3567
  context: e.context || {},
3608
3568
  localState: void 0,
3609
3569
  rootState: e.builderContextSignal.rootState,
@@ -3612,24 +3572,24 @@ function Jn(e) {
3612
3572
  })
3613
3573
  )
3614
3574
  );
3615
- Qe(j).then((N) => N.json()).then((N) => {
3575
+ fetch(B).then((A) => A.json()).then((A) => {
3616
3576
  n({
3617
- [w]: N
3618
- }), c[w] = !0;
3619
- }).catch((N) => {
3620
- console.error("error fetching dynamic data", F, N);
3577
+ [p]: A
3578
+ }), d[p] = !0;
3579
+ }).catch((A) => {
3580
+ console.error("error fetching dynamic data", R, A);
3621
3581
  }).finally(() => {
3622
- g[w] = !1;
3582
+ f[p] = !1;
3623
3583
  });
3624
3584
  });
3625
3585
  }
3626
- function R() {
3627
- $() && window.dispatchEvent(
3586
+ function x() {
3587
+ F() && window.dispatchEvent(
3628
3588
  new CustomEvent(
3629
3589
  "builder:component:stateChange",
3630
3590
  {
3631
3591
  detail: {
3632
- state: de(e.builderContextSignal.rootState),
3592
+ state: re(e.builderContextSignal.rootState),
3633
3593
  ref: {
3634
3594
  name: e.model
3635
3595
  }
@@ -3638,10 +3598,11 @@ function Jn(e) {
3638
3598
  )
3639
3599
  );
3640
3600
  }
3641
- return B(() => {
3642
- var b, S;
3643
- if (G()) {
3644
- if ($() && (window.addEventListener("message", s), ze(), Je({
3601
+ const E = D(!1);
3602
+ return E.current || (S(), x(), E.current = !0), P(() => {
3603
+ var m, y;
3604
+ if (_()) {
3605
+ if (F() && (window.addEventListener("message", s), Me(), He({
3645
3606
  ...e.locale ? {
3646
3607
  locale: e.locale
3647
3608
  } : {},
@@ -3653,90 +3614,82 @@ function Jn(e) {
3653
3614
  } : {}
3654
3615
  }), Object.values(
3655
3616
  e.builderContextSignal.componentInfos
3656
- ).forEach((C) => {
3657
- var F;
3658
- const w = Ye(C);
3659
- (F = window.parent) == null || F.postMessage(w, "*");
3617
+ ).forEach((u) => {
3618
+ var R;
3619
+ const p = Ke(u);
3620
+ (R = window.parent) == null || R.postMessage(p, "*");
3660
3621
  }), window.addEventListener(
3661
3622
  "builder:component:stateChangeListenerActivated",
3662
- R
3663
- )), e.builderContextSignal.content && Q(e.canTrack)) {
3664
- const C = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, w = (S = e.builderContextSignal.content) == null ? void 0 : S.id, F = e.apiKey;
3665
- he({
3623
+ x
3624
+ )), e.builderContextSignal.content && z(e.canTrack)) {
3625
+ const u = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId, p = (y = e.builderContextSignal.content) == null ? void 0 : y.id, R = e.apiKey;
3626
+ de({
3666
3627
  type: "impression",
3667
3628
  canTrack: !0,
3668
- contentId: w,
3669
- apiKey: F,
3670
- variationId: C !== w ? C : void 0
3629
+ contentId: p,
3630
+ apiKey: R,
3631
+ variationId: u !== p ? u : void 0
3671
3632
  });
3672
3633
  }
3673
- if (we() && !$()) {
3674
- const C = new URL(location.href).searchParams, w = C.get("builder.preview"), F = C.get(
3675
- `builder.overrides.${w}`
3676
- ), j = C.get("apiKey") || C.get("builder.space");
3677
- w === e.model && j === e.apiKey && (!e.content || F === e.content.id) && Re({
3634
+ if (ke() && !F()) {
3635
+ const u = new URL(location.href).searchParams, p = u.get("builder.preview"), R = u.get(
3636
+ `builder.overrides.${p}`
3637
+ ), B = u.get("apiKey") || u.get("builder.space");
3638
+ p === e.model && B === e.apiKey && (!e.content || R === e.content.id) && Ce({
3678
3639
  model: e.model,
3679
3640
  apiKey: e.apiKey,
3680
3641
  apiVersion: e.builderContextSignal.apiVersion
3681
- }).then((N) => {
3682
- N && i(N);
3642
+ }).then((A) => {
3643
+ A && i(A);
3683
3644
  });
3684
3645
  }
3685
3646
  }
3686
- }, []), B(() => {
3687
- e.apiKey || ce.error(
3688
- "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3689
- ), d(), f(), R();
3690
- }, []), B(() => {
3647
+ }, []), P(() => {
3691
3648
  e.content && i(e.content);
3692
- }, [e.content]), B(() => {
3693
- d();
3694
- }, [(A = (P = e.builderContextSignal.content) == null ? void 0 : P.data) == null ? void 0 : A.jsCode]), B(() => {
3695
- f();
3696
- }, [(v = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : v.httpRequests]), B(() => {
3697
- R();
3698
- }, [e.builderContextSignal.rootState]), B(() => {
3649
+ }, [e.content]), P(() => {
3650
+ x();
3651
+ }, [e.builderContextSignal.rootState]), P(() => {
3699
3652
  e.data && n(e.data);
3700
- }, [e.data]), B(() => {
3653
+ }, [e.data]), P(() => {
3701
3654
  e.locale && n({
3702
3655
  locale: e.locale
3703
3656
  });
3704
- }, [e.locale]), B(() => () => {
3705
- G() && (window.removeEventListener("message", s), window.removeEventListener(
3657
+ }, [e.locale]), P(() => () => {
3658
+ _() && (window.removeEventListener("message", s), window.removeEventListener(
3706
3659
  "builder:component:stateChangeListenerActivated",
3707
- R
3660
+ x
3708
3661
  ));
3709
- }, []), /* @__PURE__ */ l(me.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
3662
+ }, []), /* @__PURE__ */ l(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
3710
3663
  a,
3711
3664
  {
3712
3665
  ref: t,
3713
- onClick: (b) => p(b),
3714
- "builder-content-id": (E = e.builderContextSignal.content) == null ? void 0 : E.id,
3666
+ onClick: (m) => g(m),
3667
+ "builder-content-id": (C = e.builderContextSignal.content) == null ? void 0 : C.id,
3715
3668
  "builder-model": e.model,
3669
+ className: Mn(
3670
+ ((k = e.content) == null ? void 0 : k.testVariationId) || ((W = e.content) == null ? void 0 : W.id)
3671
+ ),
3716
3672
  ...o(),
3717
3673
  ...e.contentWrapperProps,
3718
- className: zn(
3719
- ((W = e.content) == null ? void 0 : W.testVariationId) || ((y = e.content) == null ? void 0 : y.id)
3720
- ),
3721
3674
  children: e.children
3722
3675
  }
3723
3676
  ) : null });
3724
3677
  }
3725
- function Yn(e) {
3678
+ function Kn(e) {
3726
3679
  const [t, n] = T(
3727
3680
  () => `
3728
- ${Kn({
3681
+ ${On({
3729
3682
  cssCode: e.cssCode,
3730
3683
  contentId: e.contentId
3731
3684
  })}
3732
- ${Hn({
3685
+ ${Ln({
3733
3686
  customFonts: e.customFonts
3734
3687
  })}
3735
- ${_n(e.isNestedRender)}
3688
+ ${jn(e.isNestedRender)}
3736
3689
  `.trim()
3737
3690
  );
3738
3691
  return /* @__PURE__ */ l(
3739
- Z,
3692
+ Y,
3740
3693
  {
3741
3694
  id: "builderio-content",
3742
3695
  styles: t,
@@ -3744,7 +3697,7 @@ ${_n(e.isNestedRender)}
3744
3697
  }
3745
3698
  );
3746
3699
  }
3747
- const Gn = ({
3700
+ const qn = ({
3748
3701
  content: e,
3749
3702
  data: t,
3750
3703
  locale: n
@@ -3761,7 +3714,7 @@ const Gn = ({
3761
3714
  locale: n
3762
3715
  } : {}
3763
3716
  };
3764
- }, Qn = ({
3717
+ }, _n = ({
3765
3718
  content: e,
3766
3719
  data: t
3767
3720
  }) => e ? {
@@ -3772,51 +3725,51 @@ const Gn = ({
3772
3725
  },
3773
3726
  meta: e == null ? void 0 : e.meta
3774
3727
  } : void 0;
3775
- function Ie(e) {
3776
- var d, c, u, g, m, x, h;
3728
+ function Se(e) {
3729
+ var c, f, b, h, v, g, S, x, E;
3777
3730
  const [t, n] = T(
3778
3731
  () => {
3779
- var p, f;
3780
- return Ln({
3732
+ var C, k;
3733
+ return Wn({
3781
3734
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3782
- variationId: (p = e.content) == null ? void 0 : p.testVariationId,
3735
+ variationId: (C = e.content) == null ? void 0 : C.testVariationId,
3783
3736
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3784
- contentId: (f = e.content) == null ? void 0 : f.id
3737
+ contentId: (k = e.content) == null ? void 0 : k.id
3785
3738
  });
3786
3739
  }
3787
3740
  );
3788
- function i(p) {
3789
- s((f) => ({
3790
- ...f,
3791
- rootState: p
3741
+ function i(C) {
3742
+ s((k) => ({
3743
+ ...k,
3744
+ rootState: C
3792
3745
  }));
3793
3746
  }
3794
3747
  const [o, a] = T(
3795
3748
  () => {
3796
- var p;
3749
+ var C;
3797
3750
  return [
3798
- ...ke(),
3799
- ...((p = e.customComponents) == null ? void 0 : p.filter(({ models: f }) => !(f != null && f.length) || !e.model ? !0 : f.includes(e.model))) || []
3751
+ ...ye(),
3752
+ ...((C = e.customComponents) == null ? void 0 : C.filter(({ models: k }) => !(k != null && k.length) || !e.model ? !0 : k.includes(e.model))) || []
3800
3753
  ].reduce(
3801
- (f, { component: R, ...P }) => ({
3802
- ...f,
3803
- [P.name]: {
3804
- component: R,
3805
- ...ge(P)
3754
+ (k, { component: W, ...m }) => ({
3755
+ ...k,
3756
+ [m.name]: {
3757
+ component: W,
3758
+ ...ue(m)
3806
3759
  }
3807
3760
  }),
3808
3761
  {}
3809
3762
  );
3810
3763
  }
3811
3764
  ), [r, s] = T(() => {
3812
- var p;
3765
+ var C;
3813
3766
  return {
3814
- content: Qn({
3767
+ content: _n({
3815
3768
  content: e.content,
3816
3769
  data: e.data
3817
3770
  }),
3818
3771
  localState: void 0,
3819
- rootState: Gn({
3772
+ rootState: qn({
3820
3773
  content: e.content,
3821
3774
  data: e.data,
3822
3775
  locale: e.locale
@@ -3827,12 +3780,12 @@ function Ie(e) {
3827
3780
  apiKey: e.apiKey,
3828
3781
  apiVersion: e.apiVersion,
3829
3782
  componentInfos: [
3830
- ...ke(),
3831
- ...((p = e.customComponents) == null ? void 0 : p.filter(({ models: f }) => !(f != null && f.length) || !e.model ? !0 : f.includes(e.model))) || []
3783
+ ...ye(),
3784
+ ...((C = e.customComponents) == null ? void 0 : C.filter(({ models: k }) => !(k != null && k.length) || !e.model ? !0 : k.includes(e.model))) || []
3832
3785
  ].reduce(
3833
- (f, { component: R, ...P }) => ({
3834
- ...f,
3835
- [P.name]: ge(P)
3786
+ (k, { component: W, ...m }) => ({
3787
+ ...k,
3788
+ [m.name]: ue(m)
3836
3789
  }),
3837
3790
  {}
3838
3791
  ),
@@ -3841,15 +3794,35 @@ function Ie(e) {
3841
3794
  BlocksWrapperProps: e.blocksWrapperProps || {},
3842
3795
  nonce: e.nonce || ""
3843
3796
  };
3844
- });
3797
+ }), d = D(!1);
3798
+ if (!d.current) {
3799
+ e.apiKey || ae.error(
3800
+ "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3801
+ );
3802
+ const C = (f = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : f.jsCode;
3803
+ C && U({
3804
+ code: C,
3805
+ context: e.context || {},
3806
+ localState: void 0,
3807
+ rootState: r.rootState,
3808
+ rootSetState: (k) => {
3809
+ Object.assign(r.rootState, k);
3810
+ },
3811
+ isExpression: !1,
3812
+ /**
3813
+ * We don't want to cache the result of the JS code, since it's arbitrary side effect code.
3814
+ */
3815
+ enableCache: !1
3816
+ }), d.current = !0;
3817
+ }
3845
3818
  return /* @__PURE__ */ l(
3846
- Ve.Provider,
3819
+ Re.Provider,
3847
3820
  {
3848
3821
  value: {
3849
3822
  registeredComponents: o
3850
3823
  },
3851
3824
  children: /* @__PURE__ */ V(
3852
- Jn,
3825
+ Hn,
3853
3826
  {
3854
3827
  nonce: e.nonce,
3855
3828
  content: e.content,
@@ -3868,7 +3841,7 @@ function Ie(e) {
3868
3841
  setBuilderContextSignal: s,
3869
3842
  children: [
3870
3843
  e.isSsrAbTest ? /* @__PURE__ */ l(
3871
- se,
3844
+ oe,
3872
3845
  {
3873
3846
  id: "builderio-variant-visibility",
3874
3847
  scriptStr: t,
@@ -3876,19 +3849,19 @@ function Ie(e) {
3876
3849
  }
3877
3850
  ) : null,
3878
3851
  /* @__PURE__ */ l(
3879
- Yn,
3852
+ Kn,
3880
3853
  {
3881
3854
  nonce: e.nonce || "",
3882
3855
  isNestedRender: e.isNestedRender,
3883
- contentId: (d = r.content) == null ? void 0 : d.id,
3884
- cssCode: (u = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : u.cssCode,
3885
- customFonts: (m = (g = r.content) == null ? void 0 : g.data) == null ? void 0 : m.customFonts
3856
+ contentId: (b = r.content) == null ? void 0 : b.id,
3857
+ cssCode: (v = (h = r.content) == null ? void 0 : h.data) == null ? void 0 : v.cssCode,
3858
+ customFonts: (S = (g = r.content) == null ? void 0 : g.data) == null ? void 0 : S.customFonts
3886
3859
  }
3887
3860
  ),
3888
3861
  /* @__PURE__ */ l(
3889
- D,
3862
+ N,
3890
3863
  {
3891
- blocks: (h = (x = r.content) == null ? void 0 : x.data) == null ? void 0 : h.blocks,
3864
+ blocks: (E = (x = r.content) == null ? void 0 : x.data) == null ? void 0 : E.blocks,
3892
3865
  context: r,
3893
3866
  registeredComponents: o,
3894
3867
  linkComponent: e.linkComponent
@@ -3900,18 +3873,18 @@ function Ie(e) {
3900
3873
  }
3901
3874
  );
3902
3875
  }
3903
- function Xn(e) {
3876
+ function zn(e) {
3904
3877
  var r;
3905
3878
  const [t, n] = T(
3906
- () => Fn({
3907
- canTrack: Q(e.canTrack),
3879
+ () => Bn({
3880
+ canTrack: z(e.canTrack),
3908
3881
  content: e.content
3909
3882
  })
3910
3883
  );
3911
3884
  function i() {
3912
3885
  var s;
3913
- return Dn(
3914
- Y(e.content).map((d) => ({
3886
+ return An(
3887
+ q(e.content).map((d) => ({
3915
3888
  id: d.testVariationId,
3916
3889
  testRatio: d.testRatio
3917
3890
  })),
@@ -3919,31 +3892,31 @@ function Xn(e) {
3919
3892
  );
3920
3893
  }
3921
3894
  function o() {
3922
- return Y(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
3895
+ return q(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
3923
3896
  }
3924
3897
  function a() {
3925
3898
  var s;
3926
3899
  return t ? {
3927
3900
  ...e.content,
3928
3901
  testVariationId: (s = e.content) == null ? void 0 : s.id
3929
- } : Xe({
3902
+ } : _e({
3930
3903
  item: e.content,
3931
- canTrack: Q(e.canTrack)
3904
+ canTrack: z(e.canTrack)
3932
3905
  });
3933
3906
  }
3934
- return B(() => {
3935
- }, []), /* @__PURE__ */ V(I, { children: [
3936
- !e.isNestedRender && U !== "reactNative" ? /* @__PURE__ */ l(
3937
- se,
3907
+ return P(() => {
3908
+ }, []), /* @__PURE__ */ V(w, { children: [
3909
+ !e.isNestedRender && L !== "reactNative" ? /* @__PURE__ */ l(
3910
+ oe,
3938
3911
  {
3939
3912
  id: "builderio-init-variants-fns",
3940
- scriptStr: $n(),
3913
+ scriptStr: Vn(),
3941
3914
  nonce: e.nonce || ""
3942
3915
  }
3943
3916
  ) : null,
3944
- t ? /* @__PURE__ */ V(I, { children: [
3917
+ t ? /* @__PURE__ */ V(w, { children: [
3945
3918
  /* @__PURE__ */ l(
3946
- Z,
3919
+ Y,
3947
3920
  {
3948
3921
  id: "builderio-variants",
3949
3922
  styles: o(),
@@ -3951,15 +3924,15 @@ function Xn(e) {
3951
3924
  }
3952
3925
  ),
3953
3926
  /* @__PURE__ */ l(
3954
- se,
3927
+ oe,
3955
3928
  {
3956
3929
  id: "builderio-variants-visibility",
3957
3930
  scriptStr: i(),
3958
3931
  nonce: e.nonce || ""
3959
3932
  }
3960
3933
  ),
3961
- (r = Y(e.content)) == null ? void 0 : r.map((s) => /* @__PURE__ */ l(
3962
- Ie,
3934
+ (r = q(e.content)) == null ? void 0 : r.map((s) => /* @__PURE__ */ l(
3935
+ Se,
3963
3936
  {
3964
3937
  isNestedRender: e.isNestedRender,
3965
3938
  nonce: e.nonce,
@@ -3986,7 +3959,7 @@ function Xn(e) {
3986
3959
  ))
3987
3960
  ] }) : null,
3988
3961
  /* @__PURE__ */ l(
3989
- Ie,
3962
+ Se,
3990
3963
  {
3991
3964
  nonce: e.nonce,
3992
3965
  isNestedRender: e.isNestedRender,
@@ -4012,13 +3985,13 @@ function Xn(e) {
4012
3985
  )
4013
3986
  ] });
4014
3987
  }
4015
- const Zn = async ({
3988
+ const Jn = async ({
4016
3989
  builderContextValue: e,
4017
3990
  symbol: t
4018
3991
  }) => {
4019
3992
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4020
3993
  (e != null && e.apiKey))
4021
- return Re({
3994
+ return Ce({
4022
3995
  model: t.model,
4023
3996
  apiKey: e.apiKey,
4024
3997
  apiVersion: e.apiVersion,
@@ -4028,11 +4001,11 @@ const Zn = async ({
4028
4001
  }
4029
4002
  }
4030
4003
  }).catch((n) => {
4031
- ce.error("Could not fetch symbol content: ", n);
4004
+ ae.error("Could not fetch symbol content: ", n);
4032
4005
  });
4033
4006
  };
4034
- function ei(e) {
4035
- var s, d, c, u;
4007
+ function Yn(e) {
4008
+ var s, d, c, f;
4036
4009
  function t() {
4037
4010
  return "div";
4038
4011
  }
@@ -4040,31 +4013,31 @@ function ei(e) {
4040
4013
  return "div";
4041
4014
  }
4042
4015
  function i() {
4043
- var g, m;
4016
+ var b, h;
4044
4017
  return [
4045
- e.attributes[q()],
4018
+ e.attributes[M()],
4046
4019
  "builder-symbol",
4047
- (g = e.symbol) != null && g.inline ? "builder-inline-symbol" : void 0,
4048
- (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4020
+ (b = e.symbol) != null && b.inline ? "builder-inline-symbol" : void 0,
4021
+ (h = e.symbol) != null && h.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4049
4022
  ].filter(Boolean).join(" ");
4050
4023
  }
4051
4024
  const [o, a] = T(() => {
4052
- var g;
4053
- return (g = e.symbol) == null ? void 0 : g.content;
4025
+ var b;
4026
+ return (b = e.symbol) == null ? void 0 : b.content;
4054
4027
  });
4055
4028
  function r() {
4056
- o || Zn({
4029
+ o || Jn({
4057
4030
  symbol: e.symbol,
4058
4031
  builderContextValue: e.builderContext
4059
- }).then((g) => {
4060
- g && a(g);
4032
+ }).then((b) => {
4033
+ b && a(b);
4061
4034
  });
4062
4035
  }
4063
- return B(() => {
4064
- }, []), B(() => {
4036
+ return P(() => {
4037
+ }, []), P(() => {
4065
4038
  r();
4066
4039
  }, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
4067
- Xn,
4040
+ zn,
4068
4041
  {
4069
4042
  nonce: e.builderContext.nonce,
4070
4043
  isNestedRender: !0,
@@ -4081,7 +4054,7 @@ function ei(e) {
4081
4054
  ...(c = o == null ? void 0 : o.data) == null ? void 0 : c.state
4082
4055
  },
4083
4056
  canTrack: e.builderContext.canTrack,
4084
- model: (u = e.symbol) == null ? void 0 : u.model,
4057
+ model: (f = e.symbol) == null ? void 0 : f.model,
4085
4058
  content: o,
4086
4059
  linkComponent: e.builderLinkComponent,
4087
4060
  blocksWrapper: t(),
@@ -4090,15 +4063,15 @@ function ei(e) {
4090
4063
  ) });
4091
4064
  }
4092
4065
  export {
4093
- D as Blocks,
4094
- me as BuilderContext,
4095
- rt as Button,
4096
- jt as Columns,
4097
- Xn as Content,
4098
- Mt as Fragment,
4099
- qt as Image,
4100
- _t as Section,
4101
- ei as Symbol,
4102
- ln as Text,
4103
- Bn as Video
4066
+ N as Blocks,
4067
+ se as BuilderContext,
4068
+ tt as Button,
4069
+ $t as Columns,
4070
+ zn as Content,
4071
+ Dt as Fragment,
4072
+ Ut as Image,
4073
+ jt as Section,
4074
+ Yn as Symbol,
4075
+ tn as Text,
4076
+ In as Video
4104
4077
  };