@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,16 +1,16 @@
1
1
  "use client";
2
- var _e = Object.defineProperty;
3
- var ze = (e, t, n) => t in e ? _e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
- var ne = (e, t, n) => (ze(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, isEditing as $, isBrowser as H, getUserAttributes as Je, checkIsDefined as Q, logger as Z, isPreviewing as Re, registerInsertMenu as Ye, setupBrowserForEditing as Ge, createRegisterComponentMessage as Qe, getDefaultCanTrack as X, _track as he, fetchOneEntry as Ee, createEditorListener as Xe, fetch as Ze, serializeIncludingFunctions as ge, handleABTestingSync as et } from "./server-entry-12189812.js";
7
- import { createContext as Be, useState as T, useEffect as P, useRef as z, useContext as be, createElement as Pe } from "react";
8
- const tt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), nt = (e) => typeof e == "string" && tt.has(e.toLowerCase());
9
- function de(e) {
10
- return /* @__PURE__ */ l(I, { children: nt(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 je = Object.defineProperty;
3
+ var He = (e, t, n) => t in e ? je(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
+ var X = (e, t, n) => (He(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, isEditing as N, isBrowser as U, getUserAttributes as Ke, checkIsDefined as z, logger as Y, isPreviewing as Ce, registerInsertMenu as qe, setupBrowserForEditing as _e, createRegisterComponentMessage as ze, getDefaultCanTrack as J, _track as de, fetchOneEntry as Te, createEditorListener as Je, serializeIncludingFunctions as ue, handleABTestingSync as Ye } from "./server-entry-8f273525.js";
7
+ import { createContext as Ie, useEffect as P, useState as T, useRef as D, useContext as me, createElement as we } from "react";
8
+ const Ge = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Qe = (e) => typeof e == "string" && Ge.has(e.toLowerCase());
9
+ function re(e) {
10
+ return /* @__PURE__ */ l(w, { children: Qe(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 }) }) });
11
11
  }
12
- const _ = () => {
13
- switch (U) {
12
+ const H = () => {
13
+ switch (L) {
14
14
  case "react":
15
15
  case "reactNative":
16
16
  case "rsc":
@@ -23,11 +23,11 @@ const _ = () => {
23
23
  return "class";
24
24
  }
25
25
  };
26
- function it(e) {
26
+ function Xe(e) {
27
27
  function t() {
28
28
  return {
29
29
  ...e.attributes,
30
- [_()]: `${e.link ? "" : "builder-button"} ${e.attributes[_()] || ""}`,
30
+ [H()]: `${e.link ? "" : "builder-button"} ${e.attributes[H()] || ""}`,
31
31
  ...e.link ? {
32
32
  href: e.link,
33
33
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -38,7 +38,7 @@ function it(e) {
38
38
  };
39
39
  }
40
40
  return /* @__PURE__ */ l(
41
- de,
41
+ re,
42
42
  {
43
43
  attributes: t(),
44
44
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
@@ -47,7 +47,7 @@ function it(e) {
47
47
  }
48
48
  );
49
49
  }
50
- const ue = Be({
50
+ const le = Ie({
51
51
  content: null,
52
52
  context: {},
53
53
  localState: void 0,
@@ -61,21 +61,21 @@ const ue = Be({
61
61
  BlocksWrapper: "div",
62
62
  BlocksWrapperProps: {},
63
63
  nonce: ""
64
- }), Ve = Be({ registeredComponents: {} });
65
- function ot(e) {
64
+ }), Ee = Ie({ registeredComponents: {} });
65
+ function Ze(e) {
66
66
  var t;
67
67
  return {
68
68
  ...(t = e.component) == null ? void 0 : t.options,
69
69
  ...e.options
70
70
  };
71
71
  }
72
- function at(e, ...t) {
72
+ function et(e, ...t) {
73
73
  const n = Object.assign({}, e);
74
74
  for (const i of t)
75
75
  delete n[i];
76
76
  return n;
77
77
  }
78
- const rt = ({
78
+ const tt = ({
79
79
  builder: e,
80
80
  context: t,
81
81
  event: n,
@@ -87,35 +87,15 @@ const rt = ({
87
87
  builder: e,
88
88
  context: t,
89
89
  event: n
90
- }), lt = () => ({
91
- isEditing: $(),
92
- isBrowser: H(),
93
- isServer: !H(),
94
- getUserAttributes: () => Je()
95
- }), st = (e, {
90
+ }), nt = () => ({
91
+ isEditing: N(),
92
+ isBrowser: U(),
93
+ isServer: !U(),
94
+ getUserAttributes: () => Ke()
95
+ }), it = (e, {
96
96
  isExpression: t = !0
97
- }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, pe = ({
98
- code: e,
99
- builder: t,
100
- context: n,
101
- event: i,
102
- localState: o,
103
- rootSetState: a,
104
- rootState: r
105
- }) => {
106
- const s = rt({
107
- builder: t,
108
- context: n,
109
- event: i,
110
- state: Ae({
111
- rootState: r,
112
- localState: o,
113
- rootSetState: a
114
- })
115
- });
116
- return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
117
- };
118
- function Ae({
97
+ }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
98
+ function Re({
119
99
  rootState: e,
120
100
  localState: t,
121
101
  rootSetState: n
@@ -125,7 +105,7 @@ function Ae({
125
105
  if (t && o in t)
126
106
  return t[o];
127
107
  const a = i[o];
128
- return typeof a == "object" && a !== null ? Ae({
108
+ return typeof a == "object" && a !== null ? Re({
129
109
  rootState: a,
130
110
  localState: void 0,
131
111
  rootSetState: n ? (r) => {
@@ -140,21 +120,42 @@ function Ae({
140
120
  }
141
121
  });
142
122
  }
143
- function ct() {
123
+ const fe = ({
124
+ code: e,
125
+ builder: t,
126
+ context: n,
127
+ event: i,
128
+ localState: o,
129
+ rootSetState: a,
130
+ rootState: r
131
+ }) => {
132
+ const s = tt({
133
+ builder: t,
134
+ context: n,
135
+ event: i,
136
+ state: Re({
137
+ rootState: r,
138
+ localState: o,
139
+ rootSetState: a
140
+ })
141
+ });
142
+ return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
143
+ };
144
+ function ot() {
144
145
  var e;
145
- return typeof process != "undefined" && Q((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
146
+ return typeof process != "undefined" && z((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
146
147
  }
147
- const dt = ({
148
+ const at = ({
148
149
  shouldLogWarning: e
149
150
  }) => {
150
151
  var o;
151
- if (!ct())
152
+ if (!ot())
152
153
  return !1;
153
154
  const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
154
- return t && n && !i ? (e && Z.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
155
- }, ut = (e) => (H() || dt({
155
+ return t && n && !i ? (e && Y.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
156
+ }, rt = (e) => (U() || at({
156
157
  shouldLogWarning: !0
157
- }), pe(e)), mt = !0, L = class L {
158
+ }), fe(e)), lt = !0, $ = class $ {
158
159
  static getCacheKey(t) {
159
160
  return JSON.stringify({
160
161
  ...t,
@@ -164,17 +165,17 @@ const dt = ({
164
165
  });
165
166
  }
166
167
  static getCachedValue(t) {
167
- return L.cache.get(t);
168
+ return $.cache.get(t);
168
169
  }
169
170
  static setCachedValue(t, n) {
170
- L.cache.size > 20 && L.cache.delete(L.cache.keys().next().value), L.cache.set(t, {
171
+ $.cache.size > 20 && $.cache.delete($.cache.keys().next().value), $.cache.set(t, {
171
172
  value: n
172
173
  });
173
174
  }
174
175
  };
175
- ne(L, "cacheLimit", 20), ne(L, "cache", /* @__PURE__ */ new Map());
176
- let j = L;
177
- function K({
176
+ X($, "cacheLimit", 20), X($, "cache", /* @__PURE__ */ new Map());
177
+ let O = $;
178
+ function M({
178
179
  code: e,
179
180
  context: t,
180
181
  localState: n,
@@ -187,56 +188,56 @@ function K({
187
188
  if (e === "")
188
189
  return;
189
190
  const d = {
190
- code: st(e, {
191
+ code: it(e, {
191
192
  isExpression: r
192
193
  }),
193
- builder: lt(),
194
+ builder: nt(),
194
195
  context: t,
195
196
  event: a,
196
197
  rootSetState: o,
197
198
  rootState: i,
198
199
  localState: n
199
200
  };
200
- if (s && !mt) {
201
- const c = j.getCacheKey(d), u = j.getCachedValue(c);
202
- if (u)
203
- return u.value;
201
+ if (s && !lt) {
202
+ const c = O.getCacheKey(d), f = O.getCachedValue(c);
203
+ if (f)
204
+ return f.value;
204
205
  }
205
206
  try {
206
- const c = ut(d);
207
+ const c = rt(d);
207
208
  if (s) {
208
- const u = j.getCacheKey(d);
209
- j.setCachedValue(u, c);
209
+ const f = O.getCacheKey(d);
210
+ O.setCachedValue(f, c);
210
211
  }
211
212
  return c;
212
213
  } catch (c) {
213
- Z.error("Failed code evaluation: " + c.message, {
214
+ Y.error("Failed code evaluation: " + c.message, {
214
215
  code: e
215
216
  });
216
217
  return;
217
218
  }
218
219
  }
219
- const me = (e) => JSON.parse(JSON.stringify(e)), We = (e, t, n) => {
220
+ const se = (e) => JSON.parse(JSON.stringify(e)), Be = (e, t, n) => {
220
221
  if (Object(e) !== e)
221
222
  return e;
222
223
  const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
223
224
  return i.slice(0, -1).reduce((o, a, r) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
224
225
  };
225
- function se(e) {
226
+ function oe(e) {
226
227
  if (e === null || typeof e != "object")
227
228
  return e;
228
229
  if (Array.isArray(e))
229
- return e.map((n) => se(n));
230
+ return e.map((n) => oe(n));
230
231
  if (e["@type"] === "@builder.io/sdk:Element")
231
232
  return e;
232
233
  const t = {};
233
234
  for (const n in e)
234
- n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = se(e[n]));
235
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = oe(e[n]));
235
236
  return t;
236
237
  }
237
- const ft = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ht = (e) => {
238
- if (ft) {
239
- const t = me(e);
238
+ const st = ["svelte", "vue", "angular", "qwik", "solid"].includes(L), ct = (e) => {
239
+ if (st) {
240
+ const t = se(e);
240
241
  return {
241
242
  ...t,
242
243
  properties: {
@@ -247,7 +248,7 @@ const ft = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ht = (e) =
247
248
  }
248
249
  };
249
250
  } else {
250
- const t = se(at(e, "children", "meta"));
251
+ const t = oe(et(e, "children", "meta"));
251
252
  return {
252
253
  ...t,
253
254
  properties: {
@@ -260,7 +261,7 @@ const ft = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ht = (e) =
260
261
  meta: e.meta
261
262
  };
262
263
  }
263
- }, gt = ({
264
+ }, dt = ({
264
265
  block: e,
265
266
  context: t,
266
267
  localState: n,
@@ -269,9 +270,9 @@ const ft = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ht = (e) =
269
270
  }) => {
270
271
  if (!e.bindings)
271
272
  return e;
272
- const a = ht(e);
273
+ const a = ct(e);
273
274
  for (const r in e.bindings) {
274
- const s = e.bindings[r], d = K({
275
+ const s = e.bindings[r], d = M({
275
276
  code: s,
276
277
  localState: n,
277
278
  rootState: i,
@@ -279,11 +280,11 @@ const ft = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ht = (e) =
279
280
  context: t,
280
281
  enableCache: !0
281
282
  });
282
- We(a, r, d);
283
+ Be(a, r, d);
283
284
  }
284
285
  return a;
285
286
  };
286
- function bt({
287
+ function ut({
287
288
  block: e,
288
289
  context: t,
289
290
  shouldEvaluateBindings: n,
@@ -292,7 +293,7 @@ function bt({
292
293
  rootSetState: a
293
294
  }) {
294
295
  const r = e;
295
- return n ? gt({
296
+ return n ? dt({
296
297
  block: r,
297
298
  localState: i,
298
299
  rootState: o,
@@ -300,8 +301,8 @@ function bt({
300
301
  context: t
301
302
  }) : r;
302
303
  }
303
- const ee = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
304
- function pt(e, t, n = {}) {
304
+ const G = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
305
+ function mt(e, t, n = {}) {
305
306
  let i, o, a, r = null, s = 0;
306
307
  const d = function() {
307
308
  s = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
@@ -309,11 +310,11 @@ function pt(e, t, n = {}) {
309
310
  return function() {
310
311
  const c = Date.now();
311
312
  !s && n.leading === !1 && (s = c);
312
- const u = t - (c - s);
313
- 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;
313
+ const f = t - (c - s);
314
+ 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;
314
315
  };
315
316
  }
316
- function q(e, ...t) {
317
+ function j(e, ...t) {
317
318
  const n = Object(e);
318
319
  for (let i = 1; i < arguments.length; i++) {
319
320
  const o = arguments[i];
@@ -323,118 +324,118 @@ function q(e, ...t) {
323
324
  }
324
325
  return n;
325
326
  }
326
- function yt(e) {
327
+ function ft(e) {
327
328
  for (const t of e)
328
329
  switch (t.trigger) {
329
330
  case "pageLoad":
330
- $e(t);
331
+ Ae(t);
331
332
  break;
332
333
  case "scrollInView":
333
- vt(t);
334
+ gt(t);
334
335
  break;
335
336
  }
336
337
  }
337
- function Ne(e) {
338
+ function Pe(e) {
338
339
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
339
340
  }
340
- function Fe(e, t) {
341
- const n = xt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
341
+ function Ve(e, t) {
342
+ const n = ht(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
342
343
  for (const s of r)
343
344
  for (const d of n)
344
345
  d in s || (s[d] = i[d]);
345
346
  }
346
- function xt(e) {
347
+ function ht(e) {
347
348
  const t = [];
348
349
  for (const n of e.steps)
349
350
  for (const i in n.styles)
350
351
  t.indexOf(i) === -1 && t.push(i);
351
352
  return t;
352
353
  }
353
- function $e(e) {
354
+ function Ae(e) {
354
355
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
355
356
  if (!t.length) {
356
- Ne(e.elementId || e.id || "");
357
+ Pe(e.elementId || e.id || "");
357
358
  return;
358
359
  }
359
360
  Array.from(t).forEach((n) => {
360
- Fe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
361
- n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), q(n.style, e.steps[1].styles), setTimeout(() => {
361
+ Ve(e, n), n.style.transition = "none", n.style.transitionDelay = "0", j(n.style, e.steps[0].styles), setTimeout(() => {
362
+ n.style.transition = `all ${e.duration}s ${G(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), j(n.style, e.steps[1].styles), setTimeout(() => {
362
363
  n.style.transition = "", n.style.transitionDelay = "";
363
364
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
364
365
  });
365
366
  });
366
367
  }
367
- function vt(e) {
368
+ function gt(e) {
368
369
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
369
370
  if (!t.length) {
370
- Ne(e.elementId || e.id || "");
371
+ Pe(e.elementId || e.id || "");
371
372
  return;
372
373
  }
373
374
  Array.from(t).forEach((n) => {
374
- Fe(e, n);
375
+ Ve(e, n);
375
376
  let i = !1, o = !1;
376
377
  function a() {
377
378
  !i && s(n) ? (i = !0, o = !0, setTimeout(() => {
378
- q(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
379
+ j(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
379
380
  o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
380
381
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
381
- })) : e.repeat && i && !o && !s(n) && (i = !1, q(n.style, e.steps[0].styles));
382
+ })) : e.repeat && i && !o && !s(n) && (i = !1, j(n.style, e.steps[0].styles));
382
383
  }
383
- const r = pt(a, 200, {
384
+ const r = mt(a, 200, {
384
385
  leading: !1
385
386
  });
386
- function s(u) {
387
- const g = u.getBoundingClientRect(), m = window.innerHeight, h = (e.thresholdPercent || 0) / 100 * m;
388
- return g.bottom > h && g.top < m - h;
387
+ function s(f) {
388
+ const b = f.getBoundingClientRect(), h = window.innerHeight, g = (e.thresholdPercent || 0) / 100 * h;
389
+ return b.bottom > g && b.top < h - g;
389
390
  }
390
391
  const d = e.steps[0].styles;
391
392
  function c() {
392
- q(n.style, d);
393
+ j(n.style, d);
393
394
  }
394
395
  c(), setTimeout(() => {
395
- n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
396
+ n.style.transition = `all ${e.duration}s ${G(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
396
397
  }), document.addEventListener("scroll", r, {
397
398
  capture: !0,
398
399
  passive: !0
399
400
  }), a();
400
401
  });
401
402
  }
402
- const De = (e) => Object.entries(e).map(([n, i]) => {
403
+ const We = (e) => Object.entries(e).map(([n, i]) => {
403
404
  if (typeof i == "string")
404
- return `${ee(n)}: ${i};`;
405
- }).filter(Q), St = (e) => De(e).join(`
406
- `), Y = ({
405
+ return `${G(n)}: ${i};`;
406
+ }).filter(z), bt = (e) => We(e).join(`
407
+ `), q = ({
407
408
  mediaQuery: e,
408
409
  className: t,
409
410
  styles: n
410
411
  }) => {
411
412
  const i = `.${t} {
412
- ${St(n)}
413
+ ${bt(n)}
413
414
  }`;
414
415
  return e ? `${e} {
415
416
  ${i}
416
417
  }` : i;
417
418
  };
418
- function kt({
419
+ function pt({
419
420
  style: e
420
421
  }) {
421
422
  return e;
422
423
  }
423
- const Ct = ({
424
+ const yt = ({
424
425
  block: e,
425
426
  context: t
426
- }) => Le(kt({
427
+ }) => Ne(pt({
427
428
  style: e.style || {},
428
429
  context: t,
429
430
  block: e
430
431
  }));
431
- function Le(e) {
432
- switch (U) {
432
+ function Ne(e) {
433
+ switch (L) {
433
434
  case "svelte":
434
435
  case "vue":
435
436
  case "solid":
436
437
  case "angular":
437
- return De(e).join(" ");
438
+ return We(e).join(" ");
438
439
  case "qwik":
439
440
  case "reactNative":
440
441
  case "react":
@@ -442,7 +443,7 @@ function Le(e) {
442
443
  return e;
443
444
  }
444
445
  }
445
- const Tt = ({
446
+ const xt = ({
446
447
  block: e,
447
448
  registeredComponents: t
448
449
  }) => {
@@ -456,7 +457,7 @@ const Tt = ({
456
457
  console.warn(`
457
458
  Could not find a registered component named "${n}".
458
459
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
459
- }, It = ({
460
+ }, vt = ({
460
461
  block: e,
461
462
  context: t
462
463
  }) => {
@@ -466,7 +467,7 @@ const Tt = ({
466
467
  } = e;
467
468
  if (!(n != null && n.collection))
468
469
  return;
469
- const o = K({
470
+ const o = M({
470
471
  code: n.collection,
471
472
  localState: t.localState,
472
473
  rootState: t.rootState,
@@ -490,27 +491,27 @@ const Tt = ({
490
491
  },
491
492
  block: i
492
493
  }));
493
- }, wt = (e, t) => {
494
+ }, St = (e, t) => {
494
495
  var n;
495
496
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
496
497
  builderLinkComponent: t
497
498
  } : {};
498
- }, Rt = (e, t) => {
499
+ }, kt = (e, t) => {
499
500
  var n;
500
501
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
501
502
  builderComponents: t
502
503
  } : {};
503
- }, Et = (e, t) => {
504
+ }, Ct = (e, t) => {
504
505
  var n;
505
506
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
506
507
  builderBlock: t
507
508
  } : {};
508
- }, Bt = (e, t) => {
509
+ }, Tt = (e, t) => {
509
510
  var n;
510
511
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
511
512
  builderContext: t
512
513
  } : {};
513
- }, Oe = {
514
+ }, Fe = {
514
515
  small: {
515
516
  min: 320,
516
517
  default: 321,
@@ -526,11 +527,11 @@ const Tt = ({
526
527
  default: 991,
527
528
  max: 1200
528
529
  }
529
- }, ye = (e, t = Oe) => `@media (max-width: ${t[e].max}px)`, Ue = ({
530
+ }, he = (e, t = Fe) => `@media (max-width: ${t[e].max}px)`, $e = ({
530
531
  small: e,
531
532
  medium: t
532
533
  }) => {
533
- const n = me(Oe);
534
+ const n = se(Fe);
534
535
  if (!e || !t)
535
536
  return n;
536
537
  const i = Math.floor(e / 2);
@@ -553,7 +554,7 @@ const Tt = ({
553
554
  default: a + 1
554
555
  }, n;
555
556
  };
556
- function te(e) {
557
+ function Q(e) {
557
558
  return /* @__PURE__ */ l(
558
559
  "style",
559
560
  {
@@ -563,59 +564,59 @@ function te(e) {
563
564
  }
564
565
  );
565
566
  }
566
- function Pt(e) {
567
+ function It(e) {
567
568
  function t() {
568
569
  const i = e.block;
569
- return Q(i.hide) ? !i.hide : Q(i.show) ? i.show : !0;
570
+ return z(i.hide) ? !i.hide : z(i.show) ? i.show : !0;
570
571
  }
571
572
  function n() {
572
- var f, R, B;
573
- const i = e.block, o = i.responsiveStyles, a = e.context.content, r = Ue(
574
- ((f = a == null ? void 0 : a.meta) == null ? void 0 : f.breakpoints) || {}
575
- ), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, u = i.id;
576
- if (!u)
573
+ var x, R, C;
574
+ const i = e.block, o = i.responsiveStyles, a = e.context.content, r = $e(
575
+ ((x = a == null ? void 0 : a.meta) == null ? void 0 : x.breakpoints) || {}
576
+ ), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, f = i.id;
577
+ if (!f)
577
578
  return "";
578
- const g = s ? Y({
579
- className: u,
579
+ const b = s ? q({
580
+ className: f,
580
581
  styles: s
581
- }) : "", m = d ? Y({
582
- className: u,
582
+ }) : "", h = d ? q({
583
+ className: f,
583
584
  styles: d,
584
- mediaQuery: ye(
585
+ mediaQuery: he(
585
586
  "medium",
586
587
  r
587
588
  )
588
- }) : "", x = c ? Y({
589
- className: u,
589
+ }) : "", v = c ? q({
590
+ className: f,
590
591
  styles: c,
591
- mediaQuery: ye(
592
+ mediaQuery: he(
592
593
  "small",
593
594
  r
594
595
  )
595
- }) : "", h = i.animations && i.animations.find((A) => A.trigger === "hover");
596
- let p = "";
597
- if (h) {
598
- const A = ((B = (R = h.steps) == null ? void 0 : R[1]) == null ? void 0 : B.styles) || {};
599
- p = Y({
600
- className: `${u}:hover`,
596
+ }) : "", g = i.animations && i.animations.find((k) => k.trigger === "hover");
597
+ let S = "";
598
+ if (g) {
599
+ const k = ((C = (R = g.steps) == null ? void 0 : R[1]) == null ? void 0 : C.styles) || {};
600
+ S = q({
601
+ className: `${f}:hover`,
601
602
  styles: {
602
- ...A,
603
- transition: `all ${h.duration}s ${ee(
604
- h.easing
603
+ ...k,
604
+ transition: `all ${g.duration}s ${G(
605
+ g.easing
605
606
  )}`,
606
- transitionDelay: h.delay ? `${h.delay}s` : "0s"
607
+ transitionDelay: g.delay ? `${g.delay}s` : "0s"
607
608
  }
608
609
  }) || "";
609
610
  }
610
611
  return [
611
- g,
612
- m,
613
- x,
614
- p
612
+ b,
613
+ h,
614
+ v,
615
+ S
615
616
  ].join(" ");
616
617
  }
617
- return /* @__PURE__ */ l(I, { children: n() && t() ? /* @__PURE__ */ l(I, { children: /* @__PURE__ */ l(
618
- te,
618
+ return /* @__PURE__ */ l(w, { children: n() && t() ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
619
+ Q,
619
620
  {
620
621
  id: "builderio-block",
621
622
  styles: n(),
@@ -623,10 +624,10 @@ function Pt(e) {
623
624
  }
624
625
  ) }) : null });
625
626
  }
626
- function Vt(e) {
627
+ function wt(e) {
627
628
  return e.charAt(0).toUpperCase() + e.slice(1);
628
629
  }
629
- const At = (e) => `on${Vt(e)}`, Wt = (e, t) => (n) => K({
630
+ const Et = (e) => `on${wt(e)}`, Rt = (e, t) => (n) => M({
630
631
  code: e,
631
632
  context: t.context,
632
633
  localState: t.localState,
@@ -636,16 +637,16 @@ const At = (e) => `on${Vt(e)}`, Wt = (e, t) => (n) => K({
636
637
  isExpression: !1,
637
638
  enableCache: !0
638
639
  });
639
- function Me(e) {
640
+ function De(e) {
640
641
  var i;
641
642
  const t = {}, n = (i = e.block.actions) != null ? i : {};
642
643
  for (const o in n) {
643
644
  if (!n.hasOwnProperty(o))
644
645
  continue;
645
646
  const a = n[o];
646
- let r = At(o);
647
+ let r = Et(o);
647
648
  if (e.stripPrefix)
648
- switch (U) {
649
+ switch (L) {
649
650
  case "vue":
650
651
  r = r.replace("v-on:", "");
651
652
  break;
@@ -653,49 +654,49 @@ function Me(e) {
653
654
  r = r.replace("on:", "");
654
655
  break;
655
656
  }
656
- t[r] = Wt(a, e);
657
+ t[r] = Rt(a, e);
657
658
  }
658
659
  return t;
659
660
  }
660
- function Nt({
661
+ function Bt({
661
662
  properties: e
662
663
  }) {
663
664
  return e;
664
665
  }
665
- const Ft = (e) => ({
666
+ const Pt = (e) => ({
666
667
  href: e.href
667
668
  });
668
- function fe({
669
+ function ce({
669
670
  block: e,
670
671
  context: t
671
672
  }) {
672
673
  var i;
673
674
  const n = {
674
- ...Ft(e),
675
+ ...Pt(e),
675
676
  ...e.properties,
676
677
  "builder-id": e.id,
677
- style: Ct({
678
+ style: yt({
678
679
  block: e,
679
680
  context: t
680
681
  }),
681
- [_()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
682
+ [H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
682
683
  };
683
- return Nt({
684
+ return Bt({
684
685
  properties: n,
685
686
  context: t,
686
687
  block: e
687
688
  });
688
689
  }
689
- function $t(e) {
690
+ function Vt(e) {
690
691
  return /* @__PURE__ */ l(
691
- de,
692
+ re,
692
693
  {
693
694
  TagName: e.Wrapper,
694
- attributes: fe({
695
+ attributes: ce({
695
696
  block: e.block,
696
697
  context: e.context
697
698
  }),
698
- actionAttributes: Me({
699
+ actionAttributes: De({
699
700
  block: e.block,
700
701
  rootState: e.context.rootState,
701
702
  rootSetState: e.context.rootSetState,
@@ -707,17 +708,18 @@ function $t(e) {
707
708
  }
708
709
  );
709
710
  }
710
- function Dt(e) {
711
- return /* @__PURE__ */ l(I, { children: e.children });
711
+ function At(e) {
712
+ return P(() => {
713
+ }, []), /* @__PURE__ */ l(w, { children: e.children });
712
714
  }
713
- function Lt(e) {
715
+ function Wt(e) {
714
716
  function t() {
715
717
  return e.includeBlockProps ? {
716
- ...fe({
718
+ ...ce({
717
719
  block: e.block,
718
720
  context: e.context
719
721
  }),
720
- ...Me({
722
+ ...De({
721
723
  block: e.block,
722
724
  rootState: e.context.rootState,
723
725
  rootSetState: e.context.rootSetState,
@@ -726,8 +728,8 @@ function Lt(e) {
726
728
  })
727
729
  } : {};
728
730
  }
729
- return /* @__PURE__ */ l(I, { children: e.Wrapper.load ? /* @__PURE__ */ l(I, { children: /* @__PURE__ */ l(
730
- Dt,
731
+ return /* @__PURE__ */ l(w, { children: e.Wrapper.load ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
732
+ At,
731
733
  {
732
734
  load: e.Wrapper.load,
733
735
  fallback: e.Wrapper.fallback,
@@ -737,7 +739,7 @@ function Lt(e) {
737
739
  }
738
740
  ) }) : /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
739
741
  }
740
- const Ot = ({
742
+ const Nt = ({
741
743
  componentOptions: e,
742
744
  builderBlock: t,
743
745
  context: n,
@@ -753,7 +755,7 @@ const Ot = ({
753
755
  * component itself directly. Otherwise, they are provided to the wrapper element.
754
756
  */
755
757
  ...o ? {
756
- attributes: fe({
758
+ attributes: ce({
757
759
  block: t,
758
760
  context: r
759
761
  })
@@ -767,15 +769,15 @@ const Ot = ({
767
769
  includeBlockProps: o
768
770
  } : s;
769
771
  };
770
- function xe(e) {
772
+ function ge(e) {
771
773
  var i;
772
774
  const [t, n] = T(
773
- () => e.isInteractive ? Lt : e.componentRef
775
+ () => e.isInteractive ? Wt : e.componentRef
774
776
  );
775
- return /* @__PURE__ */ l(I, { children: e.componentRef ? /* @__PURE__ */ l(I, { children: /* @__PURE__ */ l(
777
+ return /* @__PURE__ */ l(w, { children: e.componentRef ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
776
778
  t,
777
779
  {
778
- ...Ot({
780
+ ...Nt({
779
781
  componentOptions: e.componentOptions,
780
782
  builderBlock: e.builderBlock,
781
783
  context: e.context,
@@ -786,7 +788,7 @@ function xe(e) {
786
788
  contextValue: e.context
787
789
  }),
788
790
  children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
789
- J,
791
+ K,
790
792
  {
791
793
  block: o,
792
794
  context: e.context,
@@ -798,10 +800,10 @@ function xe(e) {
798
800
  }
799
801
  ) }) : null });
800
802
  }
801
- function ve(e) {
803
+ function be(e) {
802
804
  const [t, n] = T(() => e.repeatContext);
803
- return /* @__PURE__ */ l(ue.Provider, { value: t, children: /* @__PURE__ */ l(
804
- J,
805
+ return /* @__PURE__ */ l(le.Provider, { value: t, children: /* @__PURE__ */ l(
806
+ K,
805
807
  {
806
808
  block: e.block,
807
809
  context: t,
@@ -810,10 +812,10 @@ function ve(e) {
810
812
  }
811
813
  ) });
812
814
  }
813
- function J(e) {
814
- var u, g, m, x;
815
+ function K(e) {
816
+ var f, b, h, v;
815
817
  function t() {
816
- return It({
818
+ return vt({
817
819
  block: e.block,
818
820
  context: e.context
819
821
  });
@@ -823,10 +825,10 @@ function J(e) {
823
825
  update: !1
824
826
  }));
825
827
  function o() {
826
- var p;
827
- if (n.value && !n.update && !Re())
828
+ var S;
829
+ if (n.value && !n.update && !Ce())
828
830
  return n.value;
829
- const h = (p = e.block.repeat) != null && p.collection ? e.block : bt({
831
+ const g = (S = e.block.repeat) != null && S.collection ? e.block : ut({
830
832
  block: e.block,
831
833
  localState: e.context.localState,
832
834
  rootState: e.context.rootState,
@@ -834,40 +836,40 @@ function J(e) {
834
836
  context: e.context.context,
835
837
  shouldEvaluateBindings: !0
836
838
  });
837
- return n.value = h, n.update = !1, h;
839
+ return n.value = g, n.update = !1, g;
838
840
  }
839
841
  function a() {
840
- return Tt({
842
+ return xt({
841
843
  block: o(),
842
844
  registeredComponents: e.registeredComponents
843
845
  });
844
846
  }
845
847
  function r() {
846
- var p;
847
- return e.block.tagName === "a" || ((p = o().properties) == null ? void 0 : p.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
848
+ var S;
849
+ return e.block.tagName === "a" || ((S = o().properties) == null ? void 0 : S.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
848
850
  }
849
851
  function s() {
850
- var f, R;
851
- if ((f = e.block.repeat) != null && f.collection)
852
+ var x, R;
853
+ if ((x = e.block.repeat) != null && x.collection)
852
854
  return !!((R = t == null ? void 0 : t()) != null && R.length);
853
- const h = "hide" in o() ? o().hide : !1;
854
- return ("show" in o() ? o().show : !0) && !h;
855
+ const g = "hide" in o() ? o().hide : !1;
856
+ return ("show" in o() ? o().show : !0) && !g;
855
857
  }
856
858
  function d() {
857
- var p, f;
858
- return !((p = a == null ? void 0 : a()) != null && p.component) && !t() ? (f = o().children) != null ? f : [] : [];
859
+ var S, x;
860
+ return !((S = a == null ? void 0 : a()) != null && S.component) && !t() ? (x = o().children) != null ? x : [] : [];
859
861
  }
860
862
  function c() {
861
- var h, p, f, R;
863
+ var g, S, x, R;
862
864
  return {
863
- blockChildren: (h = o().children) != null ? h : [],
864
- componentRef: (p = a == null ? void 0 : a()) == null ? void 0 : p.component,
865
+ blockChildren: (g = o().children) != null ? g : [],
866
+ componentRef: (S = a == null ? void 0 : a()) == null ? void 0 : S.component,
865
867
  componentOptions: {
866
- ...ot(o()),
867
- ...Et(a(), o()),
868
- ...Bt(a(), e.context),
869
- ...wt(a(), e.linkComponent),
870
- ...Rt(
868
+ ...Ze(o()),
869
+ ...Ct(a(), o()),
870
+ ...Tt(a(), e.context),
871
+ ...St(a(), e.linkComponent),
872
+ ...kt(
871
873
  a(),
872
874
  e.registeredComponents
873
875
  )
@@ -876,33 +878,33 @@ function J(e) {
876
878
  linkComponent: e.linkComponent,
877
879
  registeredComponents: e.registeredComponents,
878
880
  builderBlock: o(),
879
- includeBlockProps: ((f = a == null ? void 0 : a()) == null ? void 0 : f.noWrap) === !0,
880
- isInteractive: !((R = a == null ? void 0 : a()) != null && R.isRSC && U === "rsc")
881
+ includeBlockProps: ((x = a == null ? void 0 : a()) == null ? void 0 : x.noWrap) === !0,
882
+ isInteractive: !((R = a == null ? void 0 : a()) != null && R.isRSC && L === "rsc")
881
883
  };
882
884
  }
883
885
  return P(() => {
884
- const h = o().id, p = o().animations;
885
- p && h && yt(
886
- p.map((f) => ({
887
- ...f,
888
- elementId: h
886
+ const g = o().id, S = o().animations;
887
+ S && g && ft(
888
+ S.map((x) => ({
889
+ ...x,
890
+ elementId: g
889
891
  }))
890
892
  );
891
893
  }, []), P(() => {
892
894
  n.update = !0;
893
- }), /* @__PURE__ */ l(I, { children: s() ? /* @__PURE__ */ V(I, { children: [
894
- /* @__PURE__ */ l(Pt, { block: o(), context: e.context }),
895
- (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(
896
- ve,
895
+ }), /* @__PURE__ */ l(w, { children: s() ? /* @__PURE__ */ V(w, { children: [
896
+ /* @__PURE__ */ l(It, { block: o(), context: e.context }),
897
+ (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(
898
+ be,
897
899
  {
898
- repeatContext: h.context,
899
- block: h.block,
900
+ repeatContext: g.context,
901
+ block: g.block,
900
902
  registeredComponents: e.registeredComponents,
901
903
  linkComponent: e.linkComponent
902
904
  },
903
- p
905
+ S
904
906
  )) }) : /* @__PURE__ */ l(
905
- xe,
907
+ ge,
906
908
  {
907
909
  componentRef: c().componentRef,
908
910
  componentOptions: c().componentOptions,
@@ -914,24 +916,24 @@ function J(e) {
914
916
  includeBlockProps: c().includeBlockProps,
915
917
  isInteractive: c().isInteractive
916
918
  }
917
- ) : /* @__PURE__ */ l(I, { children: t() ? /* @__PURE__ */ l(I, { children: (m = t()) == null ? void 0 : m.map((h, p) => /* @__PURE__ */ l(
918
- ve,
919
+ ) : /* @__PURE__ */ l(w, { children: t() ? /* @__PURE__ */ l(w, { children: (h = t()) == null ? void 0 : h.map((g, S) => /* @__PURE__ */ l(
920
+ be,
919
921
  {
920
- repeatContext: h.context,
921
- block: h.block,
922
+ repeatContext: g.context,
923
+ block: g.block,
922
924
  registeredComponents: e.registeredComponents,
923
925
  linkComponent: e.linkComponent
924
926
  },
925
- p
927
+ S
926
928
  )) }) : /* @__PURE__ */ V(
927
- $t,
929
+ Vt,
928
930
  {
929
931
  Wrapper: r(),
930
932
  block: o(),
931
933
  context: e.context,
932
934
  children: [
933
935
  /* @__PURE__ */ l(
934
- xe,
936
+ ge,
935
937
  {
936
938
  componentRef: c().componentRef,
937
939
  componentOptions: c().componentOptions,
@@ -944,30 +946,30 @@ function J(e) {
944
946
  isInteractive: c().isInteractive
945
947
  }
946
948
  ),
947
- (g = d()) == null ? void 0 : g.map((h) => /* @__PURE__ */ l(
948
- J,
949
+ (b = d()) == null ? void 0 : b.map((g) => /* @__PURE__ */ l(
950
+ K,
949
951
  {
950
- block: h,
952
+ block: g,
951
953
  registeredComponents: e.registeredComponents,
952
954
  linkComponent: e.linkComponent,
953
955
  context: e.context
954
956
  },
955
- h.id
957
+ g.id
956
958
  ))
957
959
  ]
958
960
  }
959
961
  ) })
960
962
  ] }) : null });
961
963
  }
962
- function Ut(e) {
963
- const t = z(null);
964
+ function Ft(e) {
965
+ const t = D(null);
964
966
  function n() {
965
967
  var a;
966
968
  return "builder-blocks" + ((a = e.blocks) != null && a.length ? "" : " no-blocks");
967
969
  }
968
970
  function i() {
969
971
  var a, r;
970
- $() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
972
+ N() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
971
973
  {
972
974
  type: "builder.clickEmptyBlocks",
973
975
  data: {
@@ -980,7 +982,7 @@ function Ut(e) {
980
982
  }
981
983
  function o() {
982
984
  var a, r;
983
- $() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
985
+ N() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
984
986
  {
985
987
  type: "builder.hoverEmptyBlocks",
986
988
  data: {
@@ -992,12 +994,12 @@ function Ut(e) {
992
994
  ));
993
995
  }
994
996
  return P(() => {
995
- }, []), /* @__PURE__ */ V(I, { children: [
997
+ }, []), /* @__PURE__ */ V(w, { children: [
996
998
  /* @__PURE__ */ l(
997
999
  e.BlocksWrapper,
998
1000
  {
999
1001
  ref: t,
1000
- className: n() + " props-blocks-wrapper-51ef31b4",
1002
+ className: n() + " props-blocks-wrapper-77bdc7c6",
1001
1003
  "builder-path": e.path,
1002
1004
  "builder-parent-id": e.parent,
1003
1005
  style: e.styleProp,
@@ -1008,18 +1010,18 @@ function Ut(e) {
1008
1010
  children: e.children
1009
1011
  }
1010
1012
  ),
1011
- /* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-51ef31b4 {
1013
+ /* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-77bdc7c6 {
1012
1014
  display: flex;
1013
1015
  flex-direction: column;
1014
1016
  align-items: stretch;
1015
1017
  }` })
1016
1018
  ] });
1017
1019
  }
1018
- function D(e) {
1020
+ function F(e) {
1019
1021
  var i, o, a;
1020
- const t = be(ue), n = be(Ve);
1022
+ const t = me(le), n = me(Ee);
1021
1023
  return /* @__PURE__ */ l(
1022
- Ut,
1024
+ Ft,
1023
1025
  {
1024
1026
  blocks: e.blocks,
1025
1027
  parent: e.parent,
@@ -1027,8 +1029,8 @@ function D(e) {
1027
1029
  styleProp: e.styleProp,
1028
1030
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
1029
1031
  BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
1030
- children: e.blocks ? /* @__PURE__ */ l(I, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
1031
- J,
1032
+ children: e.blocks ? /* @__PURE__ */ l(w, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
1033
+ K,
1032
1034
  {
1033
1035
  block: r,
1034
1036
  linkComponent: e.linkComponent,
@@ -1040,145 +1042,145 @@ function D(e) {
1040
1042
  }
1041
1043
  );
1042
1044
  }
1043
- const Mt = (e) => `builder-columns ${e}-breakpoints`;
1044
- function jt(e) {
1045
- var A, O;
1045
+ const $t = (e) => `builder-columns ${e}-breakpoints`;
1046
+ function Dt(e) {
1047
+ var k, W;
1046
1048
  const [t, n] = T(
1047
1049
  () => typeof e.space == "number" ? e.space || 0 : 20
1048
1050
  ), [i, o] = T(() => e.columns || []), [a, r] = T(
1049
1051
  () => e.stackColumnsAt || "tablet"
1050
1052
  );
1051
- function s(v) {
1052
- return v.link ? e.builderLinkComponent || "a" : "div";
1053
+ function s(m) {
1054
+ return m.link ? e.builderLinkComponent || "a" : "div";
1053
1055
  }
1054
- function d(v) {
1055
- var E;
1056
- return ((E = i[v]) == null ? void 0 : E.width) || 100 / i.length;
1056
+ function d(m) {
1057
+ var y;
1058
+ return ((y = i[m]) == null ? void 0 : y.width) || 100 / i.length;
1057
1059
  }
1058
- function c(v) {
1059
- const E = d(v), W = t * (i.length - 1) * (E / 100);
1060
- return `calc(${E}% - ${W}px)`;
1060
+ function c(m) {
1061
+ const y = d(m), I = t * (i.length - 1) * (y / 100);
1062
+ return `calc(${y}% - ${I}px)`;
1061
1063
  }
1062
- function u({
1063
- stackedStyle: v,
1064
- desktopStyle: E
1064
+ function f({
1065
+ stackedStyle: m,
1066
+ desktopStyle: y
1065
1067
  }) {
1066
- return a === "tablet" ? v : E;
1068
+ return a === "tablet" ? m : y;
1067
1069
  }
1068
- function g({
1069
- stackedStyle: v,
1070
- desktopStyle: E
1070
+ function b({
1071
+ stackedStyle: m,
1072
+ desktopStyle: y
1071
1073
  }) {
1072
- return a === "never" ? E : v;
1074
+ return a === "never" ? y : m;
1073
1075
  }
1074
- const [m, x] = T(
1076
+ const [h, v] = T(
1075
1077
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
1076
1078
  );
1077
- function h() {
1079
+ function g() {
1078
1080
  return {
1079
- "--flex-dir": m,
1080
- "--flex-dir-tablet": u({
1081
- stackedStyle: m,
1081
+ "--flex-dir": h,
1082
+ "--flex-dir-tablet": f({
1083
+ stackedStyle: h,
1082
1084
  desktopStyle: "row"
1083
1085
  })
1084
1086
  };
1085
1087
  }
1086
- function p(v) {
1087
- const E = v === 0 ? 0 : t, W = c(v), y = `${E}px`, b = "100%", S = 0;
1088
+ function S(m) {
1089
+ const y = m === 0 ? 0 : t, I = c(m), u = `${y}px`, p = "100%", E = 0;
1088
1090
  return {
1089
1091
  ...{
1090
1092
  display: "flex",
1091
1093
  flexDirection: "column",
1092
1094
  alignItems: "stretch"
1093
1095
  },
1094
- width: W,
1095
- ["marginLeft"]: y,
1096
- "--column-width-mobile": g({
1097
- stackedStyle: b,
1098
- desktopStyle: W
1096
+ width: I,
1097
+ ["marginLeft"]: u,
1098
+ "--column-width-mobile": b({
1099
+ stackedStyle: p,
1100
+ desktopStyle: I
1099
1101
  }),
1100
- "--column-margin-left-mobile": g({
1101
- stackedStyle: S,
1102
- desktopStyle: y
1102
+ "--column-margin-left-mobile": b({
1103
+ stackedStyle: E,
1104
+ desktopStyle: u
1103
1105
  }),
1104
- "--column-width-tablet": u({
1105
- stackedStyle: b,
1106
- desktopStyle: W
1106
+ "--column-width-tablet": f({
1107
+ stackedStyle: p,
1108
+ desktopStyle: I
1107
1109
  }),
1108
- "--column-margin-left-tablet": u({
1109
- stackedStyle: S,
1110
- desktopStyle: y
1110
+ "--column-margin-left-tablet": f({
1111
+ stackedStyle: E,
1112
+ desktopStyle: u
1111
1113
  })
1112
1114
  };
1113
1115
  }
1114
- function f(v) {
1115
- var W, y;
1116
- return Ue(
1117
- ((y = (W = e.builderContext.content) == null ? void 0 : W.meta) == null ? void 0 : y.breakpoints) || {}
1118
- )[v].max;
1116
+ function x(m) {
1117
+ var I, u;
1118
+ return $e(
1119
+ ((u = (I = e.builderContext.content) == null ? void 0 : I.meta) == null ? void 0 : u.breakpoints) || {}
1120
+ )[m].max;
1119
1121
  }
1120
1122
  function R() {
1121
- const v = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1123
+ const m = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1122
1124
  return `
1123
- @media (max-width: ${f("medium")}px) {
1125
+ @media (max-width: ${x("medium")}px) {
1124
1126
  .${e.builderBlock.id}-breakpoints {
1125
1127
  flex-direction: var(--flex-dir-tablet);
1126
1128
  align-items: stretch;
1127
1129
  }
1128
1130
 
1129
- ${v} {
1131
+ ${m} {
1130
1132
  width: var(--column-width-tablet) !important;
1131
1133
  margin-left: var(--column-margin-left-tablet) !important;
1132
1134
  }
1133
1135
  }
1134
1136
 
1135
- @media (max-width: ${f("small")}px) {
1137
+ @media (max-width: ${x("small")}px) {
1136
1138
  .${e.builderBlock.id}-breakpoints {
1137
1139
  flex-direction: var(--flex-dir);
1138
1140
  align-items: stretch;
1139
1141
  }
1140
1142
 
1141
- ${v} {
1143
+ ${m} {
1142
1144
  width: var(--column-width-mobile) !important;
1143
1145
  margin-left: var(--column-margin-left-mobile) !important;
1144
1146
  }
1145
1147
  },
1146
1148
  `;
1147
1149
  }
1148
- function B(v, E) {
1150
+ function C(m, y) {
1149
1151
  return {
1150
- ...v.link ? {
1151
- href: v.link
1152
+ ...m.link ? {
1153
+ href: m.link
1152
1154
  } : {},
1153
- [_()]: "builder-column",
1154
- style: Le(p(E))
1155
+ [H()]: "builder-column",
1156
+ style: Ne(S(y))
1155
1157
  };
1156
1158
  }
1157
- return /* @__PURE__ */ V(I, { children: [
1159
+ return /* @__PURE__ */ V(w, { children: [
1158
1160
  /* @__PURE__ */ V(
1159
1161
  "div",
1160
1162
  {
1161
- className: Mt((A = e.builderBlock) == null ? void 0 : A.id) + " div-34f576bb",
1162
- style: h(),
1163
+ className: $t((k = e.builderBlock) == null ? void 0 : k.id) + " div-3b0f6fe2",
1164
+ style: g(),
1163
1165
  children: [
1164
1166
  /* @__PURE__ */ l(
1165
- te,
1167
+ Q,
1166
1168
  {
1167
1169
  id: "builderio-columns",
1168
1170
  styles: R(),
1169
1171
  nonce: e.builderContext.nonce
1170
1172
  }
1171
1173
  ),
1172
- (O = e.columns) == null ? void 0 : O.map((v, E) => /* @__PURE__ */ l(
1173
- de,
1174
+ (W = e.columns) == null ? void 0 : W.map((m, y) => /* @__PURE__ */ l(
1175
+ re,
1174
1176
  {
1175
- TagName: s(v),
1177
+ TagName: s(m),
1176
1178
  actionAttributes: {},
1177
- attributes: B(v, E),
1179
+ attributes: C(m, y),
1178
1180
  children: /* @__PURE__ */ l(
1179
- D,
1181
+ F,
1180
1182
  {
1181
- path: `component.options.columns.${E}.blocks`,
1183
+ path: `component.options.columns.${y}.blocks`,
1182
1184
  parent: e.builderBlock.id,
1183
1185
  styleProp: {
1184
1186
  flexGrow: "1"
@@ -1186,89 +1188,89 @@ function jt(e) {
1186
1188
  context: e.builderContext,
1187
1189
  registeredComponents: e.builderComponents,
1188
1190
  linkComponent: e.builderLinkComponent,
1189
- blocks: v.blocks
1191
+ blocks: m.blocks
1190
1192
  }
1191
1193
  )
1192
1194
  },
1193
- E
1195
+ y
1194
1196
  ))
1195
1197
  ]
1196
1198
  }
1197
1199
  ),
1198
- /* @__PURE__ */ l("style", { children: `.div-34f576bb {
1200
+ /* @__PURE__ */ l("style", { children: `.div-3b0f6fe2 {
1199
1201
  display: flex;
1200
1202
  line-height: normal;
1201
1203
  }` })
1202
1204
  ] });
1203
1205
  }
1204
- function Ht(e) {
1206
+ function Lt(e) {
1205
1207
  return /* @__PURE__ */ l("span", { children: e.children });
1206
1208
  }
1207
- function Se(e) {
1209
+ function pe(e) {
1208
1210
  return e.replace(/http(s)?:/, "");
1209
1211
  }
1210
- function Kt(e = "", t, n) {
1212
+ function Ot(e = "", t, n) {
1211
1213
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1212
1214
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1213
1215
  }
1214
- function qt(e, t) {
1216
+ function Ut(e, t) {
1215
1217
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1216
1218
  return e;
1217
1219
  if (t === "master")
1218
- return Se(e);
1220
+ return pe(e);
1219
1221
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1220
1222
  if (n) {
1221
1223
  const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
1222
- return Se(`${i[0]}_${a}${o}`);
1224
+ return pe(`${i[0]}_${a}${o}`);
1223
1225
  }
1224
1226
  return null;
1225
1227
  }
1226
- function ie(e) {
1228
+ function Z(e) {
1227
1229
  if (!e)
1228
1230
  return e;
1229
1231
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1230
1232
  if (e.match(/builder\.io/)) {
1231
1233
  let n = e;
1232
1234
  const i = Number(e.split("?width=")[1]);
1233
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Kt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1235
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Ot(e, "width", o)} ${o}w`).concat([n]).join(", ");
1234
1236
  }
1235
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [qt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1237
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ut(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1236
1238
  }
1237
- function _t(e) {
1239
+ function Mt(e) {
1238
1240
  var o, a, r, s, d, c;
1239
1241
  function t() {
1240
- var m;
1241
- const g = e.image || e.src;
1242
- if (!g || // We can auto add srcset for cdn.builder.io and shopify
1242
+ var h;
1243
+ const b = e.image || e.src;
1244
+ if (!b || // We can auto add srcset for cdn.builder.io and shopify
1243
1245
  // images, otherwise you can supply this prop manually
1244
- !(g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/)))
1246
+ !(b.match(/builder\.io/) || b.match(/cdn\.shopify\.com/)))
1245
1247
  return e.srcset;
1246
1248
  if (!e.noWebp) {
1247
- if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1249
+ if (e.srcset && ((h = e.image) != null && h.includes("builder.io/api/v1/image"))) {
1248
1250
  if (!e.srcset.includes(e.image.split("?")[0]))
1249
- return console.debug("Removed given srcset"), ie(g);
1251
+ return console.debug("Removed given srcset"), Z(b);
1250
1252
  } else if (e.image && !e.srcset)
1251
- return ie(g);
1252
- return ie(g);
1253
+ return Z(b);
1254
+ return Z(b);
1253
1255
  }
1254
1256
  }
1255
1257
  function n() {
1256
- var u;
1257
- return (u = t == null ? void 0 : t()) != null && u.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
1258
+ var f;
1259
+ return (f = t == null ? void 0 : t()) != null && f.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
1258
1260
  }
1259
1261
  function i() {
1260
- const u = {
1262
+ const f = {
1261
1263
  position: "absolute",
1262
1264
  height: "100%",
1263
1265
  width: "100%",
1264
1266
  left: "0px",
1265
1267
  top: "0px"
1266
1268
  };
1267
- return e.aspectRatio ? u : void 0;
1269
+ return e.aspectRatio ? f : void 0;
1268
1270
  }
1269
1271
  return P(() => {
1270
- }, []), /* @__PURE__ */ V(I, { children: [
1271
- /* @__PURE__ */ V(I, { children: [
1272
+ }, []), /* @__PURE__ */ V(w, { children: [
1273
+ /* @__PURE__ */ V(w, { children: [
1272
1274
  /* @__PURE__ */ V("picture", { children: [
1273
1275
  n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
1274
1276
  /* @__PURE__ */ l(
@@ -1283,7 +1285,7 @@ function _t(e) {
1283
1285
  objectFit: e.backgroundSize || "cover",
1284
1286
  ...i()
1285
1287
  },
1286
- className: "builder-image" + (e.className ? " " + e.className : "") + " img-2d6925f2",
1288
+ className: "builder-image" + (e.className ? " " + e.className : "") + " img-7a292ab8",
1287
1289
  src: e.image,
1288
1290
  srcSet: t(),
1289
1291
  sizes: e.sizes
@@ -1293,23 +1295,23 @@ function _t(e) {
1293
1295
  e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(
1294
1296
  "div",
1295
1297
  {
1296
- className: "builder-image-sizer div-2d6925f2",
1298
+ className: "builder-image-sizer div-7a292ab8",
1297
1299
  style: {
1298
1300
  paddingTop: e.aspectRatio * 100 + "%"
1299
1301
  }
1300
1302
  }
1301
1303
  ) : null,
1302
- (s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(I, { children: e.children }) : null,
1303
- !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
1304
+ (s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(w, { children: e.children }) : null,
1305
+ !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
1304
1306
  ] }),
1305
- /* @__PURE__ */ l("style", { children: `.img-2d6925f2 {
1307
+ /* @__PURE__ */ l("style", { children: `.img-7a292ab8 {
1306
1308
  opacity: 1;
1307
1309
  transition: opacity 0.2s ease-in-out;
1308
- }.div-2d6925f2 {
1310
+ }.div-7a292ab8 {
1309
1311
  width: 100%;
1310
1312
  pointer-events: none;
1311
1313
  font-size: 0;
1312
- }.div-2d6925f2-2 {
1314
+ }.div-7a292ab8-2 {
1313
1315
  display: flex;
1314
1316
  flex-direction: column;
1315
1317
  align-items: stretch;
@@ -1321,7 +1323,7 @@ function _t(e) {
1321
1323
  }` })
1322
1324
  ] });
1323
1325
  }
1324
- function zt(e) {
1326
+ function jt(e) {
1325
1327
  return /* @__PURE__ */ l(
1326
1328
  "section",
1327
1329
  {
@@ -1342,7 +1344,7 @@ function zt(e) {
1342
1344
  }
1343
1345
  );
1344
1346
  }
1345
- const oe = {
1347
+ const ee = {
1346
1348
  "@type": "@builder.io/sdk:Element",
1347
1349
  layerName: "Accordion item title",
1348
1350
  responsiveStyles: {
@@ -1371,7 +1373,7 @@ const oe = {
1371
1373
  }
1372
1374
  }
1373
1375
  }]
1374
- }, ae = {
1376
+ }, te = {
1375
1377
  "@type": "@builder.io/sdk:Element",
1376
1378
  layerName: "Accordion item detail",
1377
1379
  responsiveStyles: {
@@ -1402,7 +1404,7 @@ const oe = {
1402
1404
  }
1403
1405
  }
1404
1406
  }]
1405
- }, Jt = {
1407
+ }, Ht = {
1406
1408
  name: "Builder:Accordion",
1407
1409
  canHaveChildren: !0,
1408
1410
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1419,19 +1421,19 @@ const oe = {
1419
1421
  name: "title",
1420
1422
  type: "uiBlocks",
1421
1423
  hideFromUI: !0,
1422
- defaultValue: [oe]
1424
+ defaultValue: [ee]
1423
1425
  }, {
1424
1426
  name: "detail",
1425
1427
  type: "uiBlocks",
1426
1428
  hideFromUI: !0,
1427
- defaultValue: [ae]
1429
+ defaultValue: [te]
1428
1430
  }],
1429
1431
  defaultValue: [{
1430
- title: [oe],
1431
- detail: [ae]
1432
+ title: [ee],
1433
+ detail: [te]
1432
1434
  }, {
1433
- title: [oe],
1434
- detail: [ae]
1435
+ title: [ee],
1436
+ detail: [te]
1435
1437
  }],
1436
1438
  showIf: (e) => !e.get("useChildrenForItems")
1437
1439
  }, {
@@ -1466,9 +1468,9 @@ const oe = {
1466
1468
  builderComponents: !0,
1467
1469
  builderLinkComponent: !0
1468
1470
  }
1469
- }, ke = (e) => e.toString();
1470
- function Yt(e) {
1471
- var g;
1471
+ }, ye = (e) => e.toString();
1472
+ function Kt(e) {
1473
+ var b;
1472
1474
  const [t, n] = T(() => []);
1473
1475
  function i() {
1474
1476
  return !!(e.grid || e.oneAtATime);
@@ -1486,7 +1488,7 @@ function Yt(e) {
1486
1488
  };
1487
1489
  }
1488
1490
  function a() {
1489
- const x = {
1491
+ const v = {
1490
1492
  ...{
1491
1493
  display: "flex",
1492
1494
  flexDirection: "column"
@@ -1495,73 +1497,73 @@ function Yt(e) {
1495
1497
  cursor: "pointer"
1496
1498
  };
1497
1499
  return Object.fromEntries(
1498
- Object.entries(x).filter(([h, p]) => p !== void 0)
1500
+ Object.entries(v).filter(([g, S]) => S !== void 0)
1499
1501
  );
1500
1502
  }
1501
- function r(m) {
1502
- return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
1503
+ function r(h) {
1504
+ return `builder-accordion-title builder-accordion-title-${t.includes(h) ? "open" : "closed"}`;
1503
1505
  }
1504
- function s(m) {
1505
- return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
1506
+ function s(h) {
1507
+ return `builder-accordion-detail builder-accordion-detail-${t.includes(h) ? "open" : "closed"}`;
1506
1508
  }
1507
1509
  function d() {
1508
- let m = null;
1510
+ let h = null;
1509
1511
  if (e.grid && t.length && document) {
1510
- const h = t[0];
1511
- let f = document.querySelector(
1512
- `.builder-accordion-title[data-index="${h}"]`
1512
+ const g = t[0];
1513
+ let x = document.querySelector(
1514
+ `.builder-accordion-title[data-index="${g}"]`
1513
1515
  );
1514
- if (m = h, f) {
1515
- let R = f.getBoundingClientRect();
1516
- for (; f = f && f.nextElementSibling; )
1517
- if (f) {
1518
- if (f.classList.contains("builder-accordion-detail"))
1516
+ if (h = g, x) {
1517
+ let R = x.getBoundingClientRect();
1518
+ for (; x = x && x.nextElementSibling; )
1519
+ if (x) {
1520
+ if (x.classList.contains("builder-accordion-detail"))
1519
1521
  continue;
1520
- const B = f.getBoundingClientRect();
1521
- if (B.left > R.left) {
1522
- const A = parseInt(
1523
- f.getAttribute("data-index") || "",
1522
+ const C = x.getBoundingClientRect();
1523
+ if (C.left > R.left) {
1524
+ const k = parseInt(
1525
+ x.getAttribute("data-index") || "",
1524
1526
  10
1525
1527
  );
1526
- isNaN(A) || (R = B, m = A);
1528
+ isNaN(k) || (R = C, h = k);
1527
1529
  } else
1528
1530
  break;
1529
1531
  }
1530
1532
  }
1531
1533
  }
1532
- return typeof m == "number" && (m = m + 1), m;
1534
+ return typeof h == "number" && (h = h + 1), h;
1533
1535
  }
1534
1536
  function c() {
1535
- const m = {
1537
+ const h = {
1536
1538
  order: typeof d() == "number" ? d() : void 0,
1537
1539
  ...e.grid && {
1538
1540
  width: "100%"
1539
1541
  }
1540
1542
  };
1541
1543
  return Object.fromEntries(
1542
- Object.entries(m).filter(([x, h]) => h !== void 0)
1544
+ Object.entries(h).filter(([v, g]) => g !== void 0)
1543
1545
  );
1544
1546
  }
1545
- function u(m) {
1546
- t.includes(m) ? n(i() ? [] : t.filter((x) => x !== m)) : n(i() ? [m] : t.concat(m));
1547
+ function f(h) {
1548
+ t.includes(h) ? n(i() ? [] : t.filter((v) => v !== h)) : n(i() ? [h] : t.concat(h));
1547
1549
  }
1548
- return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, x) => /* @__PURE__ */ V(I, { children: [
1550
+ return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (b = e.items) == null ? void 0 : b.map((h, v) => /* @__PURE__ */ V(w, { children: [
1549
1551
  /* @__PURE__ */ l(
1550
1552
  "div",
1551
1553
  {
1552
- className: r(x),
1554
+ className: r(v),
1553
1555
  style: {
1554
1556
  ...a(),
1555
1557
  width: e.grid ? e.gridRowWidth : void 0,
1556
- order: d() !== null ? ke(x) : ke(x + 1)
1558
+ order: d() !== null ? ye(v) : ye(v + 1)
1557
1559
  },
1558
- "data-index": x,
1559
- onClick: (h) => u(x),
1560
+ "data-index": v,
1561
+ onClick: (g) => f(v),
1560
1562
  children: /* @__PURE__ */ l(
1561
- D,
1563
+ F,
1562
1564
  {
1563
- blocks: m.title,
1564
- path: `items.${x}.title`,
1565
+ blocks: h.title,
1566
+ path: `items.${v}.title`,
1565
1567
  parent: e.builderBlock.id,
1566
1568
  context: e.builderContext,
1567
1569
  registeredComponents: e.builderComponents,
@@ -1570,16 +1572,16 @@ function Yt(e) {
1570
1572
  )
1571
1573
  }
1572
1574
  ),
1573
- t.includes(x) ? /* @__PURE__ */ l(
1575
+ t.includes(v) ? /* @__PURE__ */ l(
1574
1576
  "div",
1575
1577
  {
1576
- className: s(x),
1578
+ className: s(v),
1577
1579
  style: c(),
1578
1580
  children: /* @__PURE__ */ l(
1579
- D,
1581
+ F,
1580
1582
  {
1581
- blocks: m.detail,
1582
- path: `items.${x}.detail`,
1583
+ blocks: h.detail,
1584
+ path: `items.${v}.detail`,
1583
1585
  parent: e.builderBlock.id,
1584
1586
  context: e.builderContext,
1585
1587
  registeredComponents: e.builderComponents,
@@ -1590,7 +1592,7 @@ function Yt(e) {
1590
1592
  ) : null
1591
1593
  ] })) });
1592
1594
  }
1593
- const Gt = {
1595
+ const qt = {
1594
1596
  name: "Core:Button",
1595
1597
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1596
1598
  defaultStyles: {
@@ -1626,7 +1628,7 @@ const Gt = {
1626
1628
  shouldReceiveBuilderProps: {
1627
1629
  builderLinkComponent: !0
1628
1630
  }
1629
- }, Qt = {
1631
+ }, _t = {
1630
1632
  // TODO: ways to statically preprocess JSON for references, functions, etc
1631
1633
  name: "Columns",
1632
1634
  isRSC: !0,
@@ -1833,13 +1835,13 @@ const Gt = {
1833
1835
  builderComponents: !0,
1834
1836
  builderLinkComponent: !0
1835
1837
  }
1836
- }, Xt = {
1838
+ }, zt = {
1837
1839
  name: "Fragment",
1838
1840
  static: !0,
1839
1841
  hidden: !0,
1840
1842
  canHaveChildren: !0,
1841
1843
  noWrap: !0
1842
- }, Zt = {
1844
+ }, Jt = {
1843
1845
  name: "Image",
1844
1846
  static: !0,
1845
1847
  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",
@@ -1861,14 +1863,14 @@ const Gt = {
1861
1863
  e.delete("srcset"), e.delete("noWebp");
1862
1864
  function n(r, s = 6e4) {
1863
1865
  return new Promise((d, c) => {
1864
- const u = document.createElement("img");
1865
- let g = !1;
1866
- u.onload = () => {
1867
- g = !0, d(u);
1868
- }, u.addEventListener("error", (m) => {
1869
- console.warn("Image load failed", m.error), c(m.error);
1870
- }), u.src = r, setTimeout(() => {
1871
- g || c(new Error("Image load timed out"));
1866
+ const f = document.createElement("img");
1867
+ let b = !1;
1868
+ f.onload = () => {
1869
+ b = !0, d(f);
1870
+ }, f.addEventListener("error", (h) => {
1871
+ console.warn("Image load failed", h.error), c(h.error);
1872
+ }), f.src = r, setTimeout(() => {
1873
+ b || c(new Error("Image load timed out"));
1872
1874
  }, s);
1873
1875
  });
1874
1876
  }
@@ -1947,7 +1949,7 @@ const Gt = {
1947
1949
  shouldReceiveBuilderProps: {
1948
1950
  builderBlock: !0
1949
1951
  }
1950
- }, en = {
1952
+ }, Yt = {
1951
1953
  name: "Core:Section",
1952
1954
  static: !0,
1953
1955
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1986,7 +1988,7 @@ const Gt = {
1986
1988
  }
1987
1989
  }
1988
1990
  }]
1989
- }, tn = {
1991
+ }, Gt = {
1990
1992
  name: "Slot",
1991
1993
  isRSC: !0,
1992
1994
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -2004,7 +2006,7 @@ const Gt = {
2004
2006
  builderComponents: !0
2005
2007
  }
2006
2008
  };
2007
- function nn(e) {
2009
+ function Qt(e) {
2008
2010
  var t, n, i;
2009
2011
  return /* @__PURE__ */ l(
2010
2012
  "div",
@@ -2016,7 +2018,7 @@ function nn(e) {
2016
2018
  "builder-slot": e.name
2017
2019
  },
2018
2020
  children: /* @__PURE__ */ l(
2019
- D,
2021
+ F,
2020
2022
  {
2021
2023
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
2022
2024
  path: `symbol.data.${e.name}`,
@@ -2028,7 +2030,7 @@ function nn(e) {
2028
2030
  }
2029
2031
  );
2030
2032
  }
2031
- const on = {
2033
+ const Xt = {
2032
2034
  name: "Symbol",
2033
2035
  noWrap: !0,
2034
2036
  static: !0,
@@ -2067,7 +2069,7 @@ const on = {
2067
2069
  builderComponents: !0,
2068
2070
  builderLinkComponent: !0
2069
2071
  }
2070
- }, re = {
2072
+ }, ne = {
2071
2073
  "@type": "@builder.io/sdk:Element",
2072
2074
  responsiveStyles: {
2073
2075
  large: {
@@ -2089,7 +2091,7 @@ const on = {
2089
2091
  text: "New tab"
2090
2092
  }
2091
2093
  }
2092
- }, le = {
2094
+ }, ie = {
2093
2095
  "@type": "@builder.io/sdk:Element",
2094
2096
  responsiveStyles: {
2095
2097
  large: {
@@ -2105,7 +2107,7 @@ const on = {
2105
2107
  text: "New tab content "
2106
2108
  }
2107
2109
  }
2108
- }, an = {
2110
+ }, Zt = {
2109
2111
  name: "Builder: Tabs",
2110
2112
  inputs: [{
2111
2113
  name: "tabs",
@@ -2115,16 +2117,16 @@ const on = {
2115
2117
  name: "label",
2116
2118
  type: "uiBlocks",
2117
2119
  hideFromUI: !0,
2118
- defaultValue: [re]
2120
+ defaultValue: [ne]
2119
2121
  }, {
2120
2122
  name: "content",
2121
2123
  type: "uiBlocks",
2122
2124
  hideFromUI: !0,
2123
- defaultValue: [le]
2125
+ defaultValue: [ie]
2124
2126
  }],
2125
2127
  defaultValue: [{
2126
2128
  label: [{
2127
- ...re,
2129
+ ...ne,
2128
2130
  component: {
2129
2131
  name: "Text",
2130
2132
  options: {
@@ -2133,7 +2135,7 @@ const on = {
2133
2135
  }
2134
2136
  }],
2135
2137
  content: [{
2136
- ...le,
2138
+ ...ie,
2137
2139
  component: {
2138
2140
  name: "Text",
2139
2141
  options: {
@@ -2143,7 +2145,7 @@ const on = {
2143
2145
  }]
2144
2146
  }, {
2145
2147
  label: [{
2146
- ...re,
2148
+ ...ne,
2147
2149
  component: {
2148
2150
  name: "Text",
2149
2151
  options: {
@@ -2152,7 +2154,7 @@ const on = {
2152
2154
  }
2153
2155
  }],
2154
2156
  content: [{
2155
- ...le,
2157
+ ...ie,
2156
2158
  component: {
2157
2159
  name: "Text",
2158
2160
  options: {
@@ -2209,7 +2211,7 @@ const on = {
2209
2211
  builderLinkComponent: !0
2210
2212
  }
2211
2213
  };
2212
- function rn(e) {
2214
+ function en(e) {
2213
2215
  var a;
2214
2216
  const [t, n] = T(
2215
2217
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
@@ -2240,7 +2242,7 @@ function rn(e) {
2240
2242
  },
2241
2243
  onClick: (d) => o(s),
2242
2244
  children: /* @__PURE__ */ l(
2243
- D,
2245
+ F,
2244
2246
  {
2245
2247
  parent: e.builderBlock.id,
2246
2248
  path: `component.options.tabs.${s}.label`,
@@ -2256,7 +2258,7 @@ function rn(e) {
2256
2258
  }
2257
2259
  ),
2258
2260
  i(t) ? /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
2259
- D,
2261
+ F,
2260
2262
  {
2261
2263
  parent: e.builderBlock.id,
2262
2264
  path: `component.options.tabs.${t}.content`,
@@ -2268,7 +2270,7 @@ function rn(e) {
2268
2270
  ) }) : null
2269
2271
  ] });
2270
2272
  }
2271
- const ln = {
2273
+ const tn = {
2272
2274
  shouldReceiveBuilderProps: {
2273
2275
  builderBlock: !1,
2274
2276
  builderContext: !0
@@ -2291,7 +2293,7 @@ const ln = {
2291
2293
  textAlign: "center"
2292
2294
  }
2293
2295
  };
2294
- function sn(e) {
2296
+ function nn(e) {
2295
2297
  function t() {
2296
2298
  var s;
2297
2299
  const n = e.builderContext, {
@@ -2302,7 +2304,7 @@ function sn(e) {
2302
2304
  } = n;
2303
2305
  return String(((s = e.text) == null ? void 0 : s.toString()) || "").replace(
2304
2306
  /{{([^}]+)}}/g,
2305
- (d, c) => K({
2307
+ (d, c) => M({
2306
2308
  code: c,
2307
2309
  context: i,
2308
2310
  localState: o,
@@ -2323,7 +2325,7 @@ function sn(e) {
2323
2325
  }
2324
2326
  );
2325
2327
  }
2326
- const cn = {
2328
+ const on = {
2327
2329
  name: "Custom Code",
2328
2330
  static: !0,
2329
2331
  requiredPermissions: ["editCode"],
@@ -2346,8 +2348,8 @@ const cn = {
2346
2348
  advanced: !0
2347
2349
  }]
2348
2350
  };
2349
- function dn(e) {
2350
- const t = z(null), [n, i] = T(() => []), [o, a] = T(() => []);
2351
+ function an(e) {
2352
+ const t = D(null), [n, i] = T(() => []), [o, a] = T(() => []);
2351
2353
  return P(() => {
2352
2354
  var s;
2353
2355
  if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
@@ -2359,8 +2361,8 @@ function dn(e) {
2359
2361
  if (n.includes(c.src))
2360
2362
  continue;
2361
2363
  n.push(c.src);
2362
- const u = document.createElement("script");
2363
- u.async = !0, u.src = c.src, document.head.appendChild(u);
2364
+ const f = document.createElement("script");
2365
+ f.async = !0, f.src = c.src, document.head.appendChild(f);
2364
2366
  } else if (!c.type || [
2365
2367
  "text/javascript",
2366
2368
  "application/javascript",
@@ -2370,8 +2372,8 @@ function dn(e) {
2370
2372
  continue;
2371
2373
  try {
2372
2374
  o.push(c.innerText), new Function(c.innerText)();
2373
- } catch (u) {
2374
- console.warn("`CustomCode`: Error running script:", u);
2375
+ } catch (f) {
2376
+ console.warn("`CustomCode`: Error running script:", f);
2375
2377
  }
2376
2378
  }
2377
2379
  }
@@ -2384,7 +2386,7 @@ function dn(e) {
2384
2386
  }
2385
2387
  );
2386
2388
  }
2387
- const un = {
2389
+ const rn = {
2388
2390
  name: "Embed",
2389
2391
  static: !0,
2390
2392
  inputs: [{
@@ -2399,24 +2401,24 @@ const un = {
2399
2401
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2400
2402
  hideFromUI: !0
2401
2403
  }]
2402
- }, mn = ["text/javascript", "application/javascript", "application/ecmascript"], fn = (e) => mn.includes(e.type);
2403
- function hn(e) {
2404
- const t = z(null), [n, i] = T(() => []), [o, a] = T(() => []), [r, s] = T(() => !1);
2404
+ }, ln = ["text/javascript", "application/javascript", "application/ecmascript"], sn = (e) => ln.includes(e.type);
2405
+ function cn(e) {
2406
+ const t = D(null), [n, i] = T(() => []), [o, a] = T(() => []), [r, s] = T(() => !1);
2405
2407
  function d() {
2406
2408
  if (!t.current || !t.current.getElementsByTagName)
2407
2409
  return;
2408
2410
  const c = t.current.getElementsByTagName("script");
2409
- for (let u = 0; u < c.length; u++) {
2410
- const g = c[u];
2411
- if (g.src && !n.includes(g.src)) {
2412
- n.push(g.src);
2413
- const m = document.createElement("script");
2414
- m.async = !0, m.src = g.src, document.head.appendChild(m);
2415
- } else if (fn(g) && !o.includes(g.innerText))
2411
+ for (let f = 0; f < c.length; f++) {
2412
+ const b = c[f];
2413
+ if (b.src && !n.includes(b.src)) {
2414
+ n.push(b.src);
2415
+ const h = document.createElement("script");
2416
+ h.async = !0, h.src = b.src, document.head.appendChild(h);
2417
+ } else if (sn(b) && !o.includes(b.innerText))
2416
2418
  try {
2417
- o.push(g.innerText), new Function(g.innerText)();
2418
- } catch (m) {
2419
- console.warn("`Embed`: Error running script:", m);
2419
+ o.push(b.innerText), new Function(b.innerText)();
2420
+ } catch (h) {
2421
+ console.warn("`Embed`: Error running script:", h);
2420
2422
  }
2421
2423
  }
2422
2424
  }
@@ -2431,7 +2433,7 @@ function hn(e) {
2431
2433
  }
2432
2434
  );
2433
2435
  }
2434
- const gn = {
2436
+ const dn = {
2435
2437
  name: "Form:Form",
2436
2438
  // editableTags: ['builder-form-error']
2437
2439
  defaults: {
@@ -2668,123 +2670,123 @@ const gn = {
2668
2670
  builderComponents: !0,
2669
2671
  builderLinkComponent: !0
2670
2672
  }
2671
- }, bn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], pn = () => {
2673
+ }, un = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], mn = () => {
2672
2674
  const e = process.env.NODE_ENV || "production";
2673
- return bn.includes(e) ? e : "production";
2674
- }, yn = (e, t, n) => {
2675
+ return un.includes(e) ? e : "production";
2676
+ }, fn = (e, t, n) => {
2675
2677
  const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
2676
2678
  return i === void 0 || i === e ? n : i;
2677
2679
  };
2678
- function xn(e) {
2679
- var g, m;
2680
- const t = z(null), [n, i] = T(() => "unsubmitted"), [o, a] = T(() => null), [r, s] = T(() => "");
2681
- function d(x) {
2682
- var p, f;
2683
- const h = {
2680
+ function hn(e) {
2681
+ var b, h;
2682
+ const t = D(null), [n, i] = T(() => "unsubmitted"), [o, a] = T(() => null), [r, s] = T(() => "");
2683
+ function d(v) {
2684
+ var S, x;
2685
+ const g = {
2684
2686
  ...e.builderContext.rootState,
2685
- ...x
2687
+ ...v
2686
2688
  };
2687
- e.builderContext.rootSetState ? (f = (p = e.builderContext).rootSetState) == null || f.call(p, h) : e.builderContext.rootState = h;
2689
+ e.builderContext.rootSetState ? (x = (S = e.builderContext).rootSetState) == null || x.call(S, g) : e.builderContext.rootState = g;
2688
2690
  }
2689
2691
  function c() {
2690
- return $() && e.previewState || n;
2692
+ return N() && e.previewState || n;
2691
2693
  }
2692
- function u(x) {
2693
- var p;
2694
- const h = e.sendWithJs || e.sendSubmissionsTo === "email";
2694
+ function f(v) {
2695
+ var S;
2696
+ const g = e.sendWithJs || e.sendSubmissionsTo === "email";
2695
2697
  if (e.sendSubmissionsTo === "zapier")
2696
- x.preventDefault();
2697
- else if (h) {
2698
+ v.preventDefault();
2699
+ else if (g) {
2698
2700
  if (!(e.action || e.sendSubmissionsTo === "email")) {
2699
- x.preventDefault();
2701
+ v.preventDefault();
2700
2702
  return;
2701
2703
  }
2702
- x.preventDefault();
2703
- const f = x.currentTarget || x.target, R = e.customHeaders || {};
2704
- let B;
2705
- const A = new FormData(f), O = Array.from(f.querySelectorAll("input,select,textarea")).filter((y) => !!y.name).map((y) => {
2706
- let b;
2707
- const S = y.name;
2708
- if (y instanceof HTMLInputElement)
2709
- if (y.type === "radio") {
2710
- if (y.checked)
2711
- return b = y.name, {
2712
- key: S,
2713
- value: b
2704
+ v.preventDefault();
2705
+ const x = v.currentTarget || v.target, R = e.customHeaders || {};
2706
+ let C;
2707
+ const k = new FormData(x), W = Array.from(x.querySelectorAll("input,select,textarea")).filter((u) => !!u.name).map((u) => {
2708
+ let p;
2709
+ const E = u.name;
2710
+ if (u instanceof HTMLInputElement)
2711
+ if (u.type === "radio") {
2712
+ if (u.checked)
2713
+ return p = u.name, {
2714
+ key: E,
2715
+ value: p
2714
2716
  };
2715
- } else if (y.type === "checkbox")
2716
- b = y.checked;
2717
- else if (y.type === "number" || y.type === "range") {
2718
- const k = y.valueAsNumber;
2719
- isNaN(k) || (b = k);
2717
+ } else if (u.type === "checkbox")
2718
+ p = u.checked;
2719
+ else if (u.type === "number" || u.type === "range") {
2720
+ const B = u.valueAsNumber;
2721
+ isNaN(B) || (p = B);
2720
2722
  } else
2721
- y.type === "file" ? b = y.files : b = y.value;
2723
+ u.type === "file" ? p = u.files : p = u.value;
2722
2724
  else
2723
- b = y.value;
2725
+ p = u.value;
2724
2726
  return {
2725
- key: S,
2726
- value: b
2727
+ key: E,
2728
+ value: p
2727
2729
  };
2728
2730
  });
2729
- let v = e.contentType;
2730
- if (e.sendSubmissionsTo === "email" && (v = "multipart/form-data"), Array.from(O).forEach(({ value: y }) => {
2731
- (y instanceof File || Array.isArray(y) && y[0] instanceof File || y instanceof FileList) && (v = "multipart/form-data");
2732
- }), v !== "application/json")
2733
- B = A;
2731
+ let m = e.contentType;
2732
+ if (e.sendSubmissionsTo === "email" && (m = "multipart/form-data"), Array.from(W).forEach(({ value: u }) => {
2733
+ (u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (m = "multipart/form-data");
2734
+ }), m !== "application/json")
2735
+ C = k;
2734
2736
  else {
2735
- const y = {};
2736
- Array.from(O).forEach(({ value: b, key: S }) => {
2737
- We(y, S, b);
2738
- }), B = JSON.stringify(y);
2737
+ const u = {};
2738
+ Array.from(W).forEach(({ value: p, key: E }) => {
2739
+ Be(u, E, p);
2740
+ }), C = JSON.stringify(u);
2739
2741
  }
2740
- v && v !== "multipart/form-data" && (h && ((p = e.action) != null && p.includes("zapier.com")) || (R["content-type"] = v));
2741
- const E = new CustomEvent("presubmit", { detail: { body: B } });
2742
- if (t.current && (t.current.dispatchEvent(E), E.defaultPrevented))
2742
+ m && m !== "multipart/form-data" && (g && ((S = e.action) != null && S.includes("zapier.com")) || (R["content-type"] = m));
2743
+ const y = new CustomEvent("presubmit", { detail: { body: C } });
2744
+ if (t.current && (t.current.dispatchEvent(y), y.defaultPrevented))
2743
2745
  return;
2744
2746
  i("sending");
2745
- const W = `${pn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2747
+ const I = `${mn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2746
2748
  e.sendSubmissionsToEmail || ""
2747
2749
  )}&name=${encodeURIComponent(e.name || "")}`;
2748
2750
  fetch(
2749
- e.sendSubmissionsTo === "email" ? W : e.action,
2750
- { body: B, headers: R, method: e.method || "post" }
2751
+ e.sendSubmissionsTo === "email" ? I : e.action,
2752
+ { body: C, headers: R, method: e.method || "post" }
2751
2753
  ).then(
2752
- async (y) => {
2753
- let b;
2754
- const S = y.headers.get("content-type");
2755
- if (S && S.indexOf("application/json") !== -1 ? b = await y.json() : b = await y.text(), !y.ok && e.errorMessagePath) {
2756
- let k = yn(b, e.errorMessagePath);
2757
- k && (typeof k != "string" && (k = JSON.stringify(k)), s(k), d({ formErrorMessage: k }));
2754
+ async (u) => {
2755
+ let p;
2756
+ const E = u.headers.get("content-type");
2757
+ if (E && E.indexOf("application/json") !== -1 ? p = await u.json() : p = await u.text(), !u.ok && e.errorMessagePath) {
2758
+ let B = fn(p, e.errorMessagePath);
2759
+ B && (typeof B != "string" && (B = JSON.stringify(B)), s(B), d({ formErrorMessage: B }));
2758
2760
  }
2759
- if (a(b), i(y.ok ? "success" : "error"), y.ok) {
2760
- const k = new CustomEvent("submit:success", {
2761
- detail: { res: y, body: b }
2761
+ if (a(p), i(u.ok ? "success" : "error"), u.ok) {
2762
+ const B = new CustomEvent("submit:success", {
2763
+ detail: { res: u, body: p }
2762
2764
  });
2763
2765
  if (t.current) {
2764
- if (t.current.dispatchEvent(k), k.defaultPrevented)
2766
+ if (t.current.dispatchEvent(B), B.defaultPrevented)
2765
2767
  return;
2766
2768
  e.resetFormOnSubmit !== !1 && t.current.reset();
2767
2769
  }
2768
2770
  if (e.successUrl)
2769
2771
  if (t.current) {
2770
- const C = new CustomEvent("route", {
2772
+ const A = new CustomEvent("route", {
2771
2773
  detail: { url: e.successUrl }
2772
2774
  });
2773
- t.current.dispatchEvent(C), C.defaultPrevented || (location.href = e.successUrl);
2775
+ t.current.dispatchEvent(A), A.defaultPrevented || (location.href = e.successUrl);
2774
2776
  } else
2775
2777
  location.href = e.successUrl;
2776
2778
  }
2777
2779
  },
2778
- (y) => {
2779
- const b = new CustomEvent("submit:error", {
2780
- detail: { error: y }
2780
+ (u) => {
2781
+ const p = new CustomEvent("submit:error", {
2782
+ detail: { error: u }
2781
2783
  });
2782
- t.current && (t.current.dispatchEvent(b), b.defaultPrevented) || (a(y), i("error"));
2784
+ t.current && (t.current.dispatchEvent(p), p.defaultPrevented) || (a(u), i("error"));
2783
2785
  }
2784
2786
  );
2785
2787
  }
2786
2788
  }
2787
- return /* @__PURE__ */ V(I, { children: [
2789
+ return /* @__PURE__ */ V(w, { children: [
2788
2790
  " ",
2789
2791
  /* @__PURE__ */ V(
2790
2792
  "form",
@@ -2794,21 +2796,21 @@ function xn(e) {
2794
2796
  action: !e.sendWithJs && e.action,
2795
2797
  method: e.method,
2796
2798
  name: e.name,
2797
- onSubmit: (x) => u(x),
2799
+ onSubmit: (v) => f(v),
2798
2800
  ...e.attributes,
2799
2801
  children: [
2800
- 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(
2801
- J,
2802
+ 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(
2803
+ K,
2802
2804
  {
2803
- block: x,
2805
+ block: v,
2804
2806
  context: e.builderContext,
2805
2807
  registeredComponents: e.builderComponents,
2806
2808
  linkComponent: e.builderLinkComponent
2807
2809
  },
2808
- `form-block-${h}`
2810
+ `form-block-${g}`
2809
2811
  )) }) : null,
2810
2812
  c() === "error" ? /* @__PURE__ */ l(
2811
- D,
2813
+ F,
2812
2814
  {
2813
2815
  path: "errorMessage",
2814
2816
  blocks: e.errorMessage,
@@ -2816,7 +2818,7 @@ function xn(e) {
2816
2818
  }
2817
2819
  ) : null,
2818
2820
  c() === "sending" ? /* @__PURE__ */ l(
2819
- D,
2821
+ F,
2820
2822
  {
2821
2823
  path: "sendingMessage",
2822
2824
  blocks: e.sendingMessage,
@@ -2825,7 +2827,7 @@ function xn(e) {
2825
2827
  ) : null,
2826
2828
  c() === "error" && o ? /* @__PURE__ */ l("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
2827
2829
  c() === "success" ? /* @__PURE__ */ l(
2828
- D,
2830
+ F,
2829
2831
  {
2830
2832
  path: "successMessage",
2831
2833
  blocks: e.successMessage,
@@ -2840,7 +2842,7 @@ function xn(e) {
2840
2842
  " "
2841
2843
  ] });
2842
2844
  }
2843
- const vn = {
2845
+ const gn = {
2844
2846
  name: "Form:Input",
2845
2847
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2846
2848
  inputs: [
@@ -2892,12 +2894,12 @@ const vn = {
2892
2894
  borderColor: "#ccc"
2893
2895
  }
2894
2896
  };
2895
- function Sn(e) {
2896
- return /* @__PURE__ */ Pe(
2897
+ function bn(e) {
2898
+ return /* @__PURE__ */ we(
2897
2899
  "input",
2898
2900
  {
2899
2901
  ...e.attributes,
2900
- key: $() && e.defaultValue ? e.defaultValue : "default-key",
2902
+ key: N() && e.defaultValue ? e.defaultValue : "default-key",
2901
2903
  placeholder: e.placeholder,
2902
2904
  type: e.type,
2903
2905
  name: e.name,
@@ -2907,7 +2909,7 @@ function Sn(e) {
2907
2909
  }
2908
2910
  );
2909
2911
  }
2910
- const kn = {
2912
+ const pn = {
2911
2913
  name: "Form:Select",
2912
2914
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2913
2915
  defaultStyles: {
@@ -2950,14 +2952,14 @@ const kn = {
2950
2952
  static: !0,
2951
2953
  noWrap: !0
2952
2954
  };
2953
- function Cn(e) {
2955
+ function yn(e) {
2954
2956
  var t;
2955
- return /* @__PURE__ */ Pe(
2957
+ return /* @__PURE__ */ we(
2956
2958
  "select",
2957
2959
  {
2958
2960
  ...e.attributes,
2959
2961
  value: e.value,
2960
- key: $() && e.defaultValue ? e.defaultValue : "default-key",
2962
+ key: N() && e.defaultValue ? e.defaultValue : "default-key",
2961
2963
  defaultValue: e.defaultValue,
2962
2964
  name: e.name,
2963
2965
  required: e.required
@@ -2965,7 +2967,7 @@ function Cn(e) {
2965
2967
  (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2966
2968
  );
2967
2969
  }
2968
- const Tn = {
2970
+ const xn = {
2969
2971
  name: "Form:SubmitButton",
2970
2972
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2971
2973
  defaultStyles: {
@@ -2991,10 +2993,10 @@ const Tn = {
2991
2993
  // TODO: defaultChildren
2992
2994
  // canHaveChildren: true,
2993
2995
  };
2994
- function In(e) {
2996
+ function vn(e) {
2995
2997
  return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
2996
2998
  }
2997
- const wn = {
2999
+ const Sn = {
2998
3000
  name: "Form:TextArea",
2999
3001
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
3000
3002
  inputs: [{
@@ -3031,7 +3033,7 @@ const wn = {
3031
3033
  static: !0,
3032
3034
  noWrap: !0
3033
3035
  };
3034
- function Rn(e) {
3036
+ function kn(e) {
3035
3037
  return /* @__PURE__ */ l(
3036
3038
  "textarea",
3037
3039
  {
@@ -3044,7 +3046,7 @@ function Rn(e) {
3044
3046
  }
3045
3047
  );
3046
3048
  }
3047
- const En = {
3049
+ const Cn = {
3048
3050
  // friendlyName?
3049
3051
  name: "Raw:Img",
3050
3052
  hideFromInsertMenu: !0,
@@ -3059,7 +3061,7 @@ const En = {
3059
3061
  noWrap: !0,
3060
3062
  static: !0
3061
3063
  };
3062
- function Bn(e) {
3064
+ function Tn(e) {
3063
3065
  return /* @__PURE__ */ l(
3064
3066
  "img",
3065
3067
  {
@@ -3071,10 +3073,10 @@ function Bn(e) {
3071
3073
  src: e.imgSrc || e.image,
3072
3074
  ...e.attributes
3073
3075
  },
3074
- $() && e.imgSrc || "default-key"
3076
+ N() && e.imgSrc || "default-key"
3075
3077
  );
3076
3078
  }
3077
- const Pn = {
3079
+ const In = {
3078
3080
  name: "Video",
3079
3081
  canHaveChildren: !0,
3080
3082
  defaultStyles: {
@@ -3159,7 +3161,7 @@ const Pn = {
3159
3161
  builderBlock: !0
3160
3162
  }
3161
3163
  };
3162
- function Vn(e) {
3164
+ function wn(e) {
3163
3165
  var i, o, a, r, s, d, c;
3164
3166
  function t() {
3165
3167
  return {
@@ -3260,64 +3262,64 @@ function Vn(e) {
3260
3262
  }
3261
3263
  );
3262
3264
  }
3263
- const An = () => [{
3264
- component: dn,
3265
- ...cn
3265
+ const En = () => [{
3266
+ component: an,
3267
+ ...on
3268
+ }, {
3269
+ component: cn,
3270
+ ...rn
3266
3271
  }, {
3267
3272
  component: hn,
3268
- ...un
3273
+ ...dn
3269
3274
  }, {
3270
- component: xn,
3275
+ component: bn,
3271
3276
  ...gn
3272
3277
  }, {
3273
- component: Sn,
3274
- ...vn
3278
+ component: vn,
3279
+ ...xn
3275
3280
  }, {
3276
- component: In,
3277
- ...Tn
3281
+ component: yn,
3282
+ ...pn
3278
3283
  }, {
3279
- component: Cn,
3280
- ...kn
3284
+ component: kn,
3285
+ ...Sn
3281
3286
  }, {
3282
- component: Rn,
3283
- ...wn
3287
+ component: Tn,
3288
+ ...Cn
3284
3289
  }, {
3285
- component: Bn,
3286
- ...En
3290
+ component: wn,
3291
+ ...In
3292
+ }], xe = () => [{
3293
+ component: Xe,
3294
+ ...qt
3287
3295
  }, {
3288
- component: Vn,
3289
- ...Pn
3290
- }], Ce = () => [{
3291
- component: it,
3292
- ...Gt
3296
+ component: Dt,
3297
+ ..._t
3293
3298
  }, {
3294
- component: jt,
3295
- ...Qt
3299
+ component: Lt,
3300
+ ...zt
3296
3301
  }, {
3297
- component: Ht,
3298
- ...Xt
3302
+ component: Mt,
3303
+ ...Jt
3299
3304
  }, {
3300
- component: _t,
3301
- ...Zt
3305
+ component: jt,
3306
+ ...Yt
3302
3307
  }, {
3303
- component: zt,
3304
- ...en
3308
+ component: Qt,
3309
+ ...Gt
3310
+ }, {
3311
+ component: Gn,
3312
+ ...Xt
3305
3313
  }, {
3306
3314
  component: nn,
3307
3315
  ...tn
3308
3316
  }, {
3309
- component: ti,
3310
- ...on
3311
- }, {
3312
- component: sn,
3313
- ...ln
3314
- }, {
3315
- component: rn,
3316
- ...an
3317
+ component: en,
3318
+ ...Zt
3317
3319
  }, {
3318
- component: Yt,
3319
- ...Jt
3320
- }, ...An()], Wn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3320
+ component: Kt,
3321
+ ...Ht
3322
+ }, ...En()], Rn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3321
3323
  function getAndSetVariantId() {
3322
3324
  function setCookie(name, value, days) {
3323
3325
  let expires = '';
@@ -3373,7 +3375,7 @@ const An = () => [{
3373
3375
  }).join('');
3374
3376
  styleEl.innerHTML = newStyleStr;
3375
3377
  }
3376
- }`, Nn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3378
+ }`, Bn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3377
3379
  if (!navigator.cookieEnabled) {
3378
3380
  return;
3379
3381
  }
@@ -3407,26 +3409,26 @@ const An = () => [{
3407
3409
  thisScriptEl?.remove();
3408
3410
  }
3409
3411
  return;
3410
- }`, je = "builderIoAbTest", He = "builderIoRenderContent", G = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3412
+ }`, Le = "builderIoAbTest", Oe = "builderIoRenderContent", _ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3411
3413
  ...t,
3412
3414
  testVariationId: t.id,
3413
3415
  id: e == null ? void 0 : e.id
3414
- })), Fn = ({
3416
+ })), Pn = ({
3415
3417
  canTrack: e,
3416
3418
  content: t
3417
- }) => !(!(G(t).length > 0) || !e || H()), $n = (e) => e === "react" || e === "reactNative", Ke = $n(U), Dn = () => `
3418
- window.${je} = ${Wn}
3419
- window.${He} = ${Nn}
3420
- `, Ln = (e, t) => `
3421
- window.${je}(
3422
- "${t}",${JSON.stringify(e)}, ${Ke}
3423
- )`, On = ({
3419
+ }) => !(!(_(t).length > 0) || !e || U()), Vn = (e) => e === "react" || e === "reactNative", Ue = Vn(L), An = () => `
3420
+ window.${Le} = ${Rn}
3421
+ window.${Oe} = ${Bn}
3422
+ `, Wn = (e, t) => `
3423
+ window.${Le}(
3424
+ "${t}",${JSON.stringify(e)}, ${Ue}
3425
+ )`, Nn = ({
3424
3426
  contentId: e,
3425
3427
  variationId: t
3426
- }) => `window.${He}(
3427
- "${t}", "${e}", ${Ke}
3428
+ }) => `window.${Oe}(
3429
+ "${t}", "${e}", ${Ue}
3428
3430
  )`;
3429
- function ce(e) {
3431
+ function ae(e) {
3430
3432
  return /* @__PURE__ */ l(
3431
3433
  "script",
3432
3434
  {
@@ -3436,10 +3438,10 @@ function ce(e) {
3436
3438
  }
3437
3439
  );
3438
3440
  }
3439
- function Te(e) {
3441
+ function ve(e) {
3440
3442
  return Math.round(e * 1e3) / 1e3;
3441
3443
  }
3442
- const Un = (e, t, n = !0) => {
3444
+ const Fn = (e, t, n = !0) => {
3443
3445
  if (!(e instanceof HTMLElement))
3444
3446
  return null;
3445
3447
  let i = n ? e : e.parentElement;
@@ -3450,35 +3452,35 @@ const Un = (e, t, n = !0) => {
3450
3452
  return i;
3451
3453
  } while (i = i.parentElement);
3452
3454
  return null;
3453
- }, Mn = (e) => Un(e, (t) => {
3455
+ }, $n = (e) => Fn(e, (t) => {
3454
3456
  const n = t.getAttribute("builder-id") || t.id;
3455
3457
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3456
- }), Ie = ({
3458
+ }), Se = ({
3457
3459
  event: e,
3458
3460
  target: t
3459
3461
  }) => {
3460
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = Te(i / n.width), r = Te(o / n.height);
3462
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = ve(i / n.width), r = ve(o / n.height);
3461
3463
  return {
3462
3464
  x: a,
3463
3465
  y: r
3464
3466
  };
3465
- }, jn = (e) => {
3466
- const t = e.target, n = t && Mn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3467
+ }, Dn = (e) => {
3468
+ const t = e.target, n = t && $n(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3467
3469
  return {
3468
3470
  targetBuilderElement: i || void 0,
3469
3471
  metadata: {
3470
- targetOffset: t ? Ie({
3472
+ targetOffset: t ? Se({
3471
3473
  event: e,
3472
3474
  target: t
3473
3475
  }) : void 0,
3474
- builderTargetOffset: n ? Ie({
3476
+ builderTargetOffset: n ? Se({
3475
3477
  event: e,
3476
3478
  target: n
3477
3479
  }) : void 0,
3478
3480
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3479
3481
  }
3480
3482
  };
3481
- }, Hn = (e) => {
3483
+ }, Ln = (e) => {
3482
3484
  var a, r;
3483
3485
  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;
3484
3486
  let o = "";
@@ -3504,15 +3506,15 @@ font-weight: ${s};
3504
3506
  `.trim());
3505
3507
  }
3506
3508
  return o;
3507
- }, Kn = ({
3509
+ }, On = ({
3508
3510
  customFonts: e
3509
3511
  }) => {
3510
3512
  var t;
3511
- return ((t = e == null ? void 0 : e.map((n) => Hn(n))) == null ? void 0 : t.join(" ")) || "";
3512
- }, qn = ({
3513
+ return ((t = e == null ? void 0 : e.map((n) => Ln(n))) == null ? void 0 : t.join(" ")) || "";
3514
+ }, Un = ({
3513
3515
  cssCode: e,
3514
3516
  contentId: t
3515
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", _n = `
3517
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Mn = `
3516
3518
  .builder-button {
3517
3519
  all: unset;
3518
3520
  }
@@ -3529,39 +3531,39 @@ font-weight: ${s};
3529
3531
  text-align: inherit;
3530
3532
  font-family: inherit;
3531
3533
  }
3532
- `, zn = (e) => e ? "" : _n, Jn = (e) => `variant-${e}`;
3533
- function Yn(e) {
3534
- var B, A, O, v, E, W, y;
3535
- const t = z(null);
3536
- function n(b) {
3537
- var k, C;
3538
- const S = {
3534
+ `, jn = (e) => e ? "" : Mn, Hn = (e) => `variant-${e}`;
3535
+ function Kn(e) {
3536
+ var C, k, W;
3537
+ const t = D(null);
3538
+ function n(m) {
3539
+ var I, u;
3540
+ const y = {
3539
3541
  ...e.builderContextSignal.rootState,
3540
- ...b
3542
+ ...m
3541
3543
  };
3542
- e.builderContextSignal.rootSetState ? (C = (k = e.builderContextSignal).rootSetState) == null || C.call(k, S) : e.setBuilderContextSignal((w) => ({
3543
- ...w,
3544
- rootState: S
3544
+ e.builderContextSignal.rootSetState ? (u = (I = e.builderContextSignal).rootSetState) == null || u.call(I, y) : e.setBuilderContextSignal((p) => ({
3545
+ ...p,
3546
+ rootState: y
3545
3547
  }));
3546
3548
  }
3547
- function i(b) {
3548
- var k, C, w, N, M;
3549
- const S = {
3549
+ function i(m) {
3550
+ var I, u, p, E, B;
3551
+ const y = {
3550
3552
  ...e.builderContextSignal.content,
3551
- ...b,
3553
+ ...m,
3552
3554
  data: {
3553
- ...(k = e.builderContextSignal.content) == null ? void 0 : k.data,
3554
- ...b == null ? void 0 : b.data
3555
+ ...(I = e.builderContextSignal.content) == null ? void 0 : I.data,
3556
+ ...m == null ? void 0 : m.data
3555
3557
  },
3556
3558
  meta: {
3557
- ...(C = e.builderContextSignal.content) == null ? void 0 : C.meta,
3558
- ...b == null ? void 0 : b.meta,
3559
- breakpoints: ((w = b == null ? void 0 : b.meta) == null ? void 0 : w.breakpoints) || ((M = (N = e.builderContextSignal.content) == null ? void 0 : N.meta) == null ? void 0 : M.breakpoints)
3559
+ ...(u = e.builderContextSignal.content) == null ? void 0 : u.meta,
3560
+ ...m == null ? void 0 : m.meta,
3561
+ breakpoints: ((p = m == null ? void 0 : m.meta) == null ? void 0 : p.breakpoints) || ((B = (E = e.builderContextSignal.content) == null ? void 0 : E.meta) == null ? void 0 : B.breakpoints)
3560
3562
  }
3561
3563
  };
3562
- e.setBuilderContextSignal((F) => ({
3563
- ...F,
3564
- content: S
3564
+ e.setBuilderContextSignal((A) => ({
3565
+ ...A,
3566
+ content: y
3565
3567
  }));
3566
3568
  }
3567
3569
  function o() {
@@ -3573,73 +3575,58 @@ function Yn(e) {
3573
3575
  const [a, r] = T(
3574
3576
  () => e.contentWrapper || "div"
3575
3577
  );
3576
- function s(b) {
3577
- return Xe({
3578
+ function s(m) {
3579
+ return Je({
3578
3580
  model: e.model,
3579
3581
  trustedHosts: e.trustedHosts,
3580
3582
  callbacks: {
3581
- configureSdk: (S) => {
3582
- var w;
3583
- const { breakpoints: k, contentId: C } = S;
3584
- !C || C !== ((w = e.builderContextSignal.content) == null ? void 0 : w.id) || k && i({
3583
+ configureSdk: (y) => {
3584
+ var p;
3585
+ const { breakpoints: I, contentId: u } = y;
3586
+ !u || u !== ((p = e.builderContextSignal.content) == null ? void 0 : p.id) || I && i({
3585
3587
  meta: {
3586
- breakpoints: k
3588
+ breakpoints: I
3587
3589
  }
3588
3590
  });
3589
3591
  },
3590
- animation: (S) => {
3591
- $e(S);
3592
+ animation: (y) => {
3593
+ Ae(y);
3592
3594
  },
3593
- contentUpdate: (S) => {
3594
- i(S);
3595
+ contentUpdate: (y) => {
3596
+ i(y);
3595
3597
  }
3596
3598
  }
3597
- })(b);
3599
+ })(m);
3598
3600
  }
3599
- function d() {
3600
- var S, k;
3601
- const b = (k = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : k.jsCode;
3602
- b && K({
3603
- code: b,
3604
- context: e.context || {},
3605
- localState: void 0,
3606
- rootState: e.builderContextSignal.rootState,
3607
- rootSetState: e.builderContextSignal.rootSetState,
3608
- /**
3609
- * We don't want to cache the result of the JS code, since it's arbitrary side effect code.
3610
- */
3611
- enableCache: !1
3612
- });
3613
- }
3614
- const [c, u] = T(() => ({})), [g, m] = T(() => ({})), [x, h] = T(() => !1);
3615
- function p(b) {
3616
- var S, k;
3601
+ const [d, c] = T(() => ({})), [f, b] = T(() => ({})), [h, v] = T(() => !1);
3602
+ function g(m) {
3603
+ var y, I;
3617
3604
  if (e.builderContextSignal.content) {
3618
- const C = (S = e.builderContextSignal.content) == null ? void 0 : S.testVariationId, w = (k = e.builderContextSignal.content) == null ? void 0 : k.id;
3619
- he({
3605
+ const u = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, p = (I = e.builderContextSignal.content) == null ? void 0 : I.id;
3606
+ de({
3620
3607
  type: "click",
3621
- canTrack: X(e.canTrack),
3622
- contentId: w,
3608
+ canTrack: J(e.canTrack),
3609
+ contentId: p,
3623
3610
  apiKey: e.apiKey,
3624
- variationId: C !== w ? C : void 0,
3625
- ...jn(b),
3626
- unique: !x
3611
+ variationId: u !== p ? u : void 0,
3612
+ ...Dn(m),
3613
+ unique: !h
3627
3614
  });
3628
3615
  }
3629
- x || h(!0);
3616
+ h || v(!0);
3630
3617
  }
3631
- function f() {
3632
- var S, k, C;
3633
- const b = (C = (k = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : k.httpRequests) != null ? C : {};
3634
- Object.entries(b).forEach(([w, N]) => {
3635
- if (!N || g[w] || c[w] && !$())
3618
+ function S() {
3619
+ var y, I, u;
3620
+ const m = (u = (I = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : I.httpRequests) != null ? u : {};
3621
+ Object.entries(m).forEach(([p, E]) => {
3622
+ if (!E || f[p] || d[p] && !N())
3636
3623
  return;
3637
- g[w] = !0;
3638
- const M = N.replace(
3624
+ f[p] = !0;
3625
+ const B = E.replace(
3639
3626
  /{{([^}]+)}}/g,
3640
- (F, qe) => String(
3641
- K({
3642
- code: qe,
3627
+ (A, Me) => String(
3628
+ M({
3629
+ code: Me,
3643
3630
  context: e.context || {},
3644
3631
  localState: void 0,
3645
3632
  rootState: e.builderContextSignal.rootState,
@@ -3648,24 +3635,24 @@ function Yn(e) {
3648
3635
  })
3649
3636
  )
3650
3637
  );
3651
- Ze(M).then((F) => F.json()).then((F) => {
3638
+ fetch(B).then((A) => A.json()).then((A) => {
3652
3639
  n({
3653
- [w]: F
3654
- }), c[w] = !0;
3655
- }).catch((F) => {
3656
- console.error("error fetching dynamic data", N, F);
3640
+ [p]: A
3641
+ }), d[p] = !0;
3642
+ }).catch((A) => {
3643
+ console.error("error fetching dynamic data", E, A);
3657
3644
  }).finally(() => {
3658
- g[w] = !1;
3645
+ f[p] = !1;
3659
3646
  });
3660
3647
  });
3661
3648
  }
3662
- function R() {
3663
- $() && window.dispatchEvent(
3649
+ function x() {
3650
+ N() && window.dispatchEvent(
3664
3651
  new CustomEvent(
3665
3652
  "builder:component:stateChange",
3666
3653
  {
3667
3654
  detail: {
3668
- state: me(e.builderContextSignal.rootState),
3655
+ state: se(e.builderContextSignal.rootState),
3669
3656
  ref: {
3670
3657
  name: e.model
3671
3658
  }
@@ -3674,10 +3661,11 @@ function Yn(e) {
3674
3661
  )
3675
3662
  );
3676
3663
  }
3677
- return P(() => {
3678
- var b, S;
3679
- if (H()) {
3680
- if ($() && (window.addEventListener("message", s), Ye(), Ge({
3664
+ const R = D(!1);
3665
+ return R.current || (S(), x(), R.current = !0), P(() => {
3666
+ var m, y;
3667
+ if (U()) {
3668
+ if (N() && (window.addEventListener("message", s), qe(), _e({
3681
3669
  ...e.locale ? {
3682
3670
  locale: e.locale
3683
3671
  } : {},
@@ -3689,48 +3677,40 @@ function Yn(e) {
3689
3677
  } : {}
3690
3678
  }), Object.values(
3691
3679
  e.builderContextSignal.componentInfos
3692
- ).forEach((C) => {
3693
- var N;
3694
- const w = Qe(C);
3695
- (N = window.parent) == null || N.postMessage(w, "*");
3680
+ ).forEach((u) => {
3681
+ var E;
3682
+ const p = ze(u);
3683
+ (E = window.parent) == null || E.postMessage(p, "*");
3696
3684
  }), window.addEventListener(
3697
3685
  "builder:component:stateChangeListenerActivated",
3698
- R
3699
- )), e.builderContextSignal.content && X(e.canTrack)) {
3700
- const C = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, w = (S = e.builderContextSignal.content) == null ? void 0 : S.id, N = e.apiKey;
3701
- he({
3686
+ x
3687
+ )), e.builderContextSignal.content && J(e.canTrack)) {
3688
+ const u = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId, p = (y = e.builderContextSignal.content) == null ? void 0 : y.id, E = e.apiKey;
3689
+ de({
3702
3690
  type: "impression",
3703
3691
  canTrack: !0,
3704
- contentId: w,
3705
- apiKey: N,
3706
- variationId: C !== w ? C : void 0
3692
+ contentId: p,
3693
+ apiKey: E,
3694
+ variationId: u !== p ? u : void 0
3707
3695
  });
3708
3696
  }
3709
- if (Re() && !$()) {
3710
- const C = new URL(location.href).searchParams, w = C.get("builder.preview"), N = C.get(
3711
- `builder.overrides.${w}`
3712
- ), M = C.get("apiKey") || C.get("builder.space");
3713
- w === e.model && M === e.apiKey && (!e.content || N === e.content.id) && Ee({
3697
+ if (Ce() && !N()) {
3698
+ const u = new URL(location.href).searchParams, p = u.get("builder.preview"), E = u.get(
3699
+ `builder.overrides.${p}`
3700
+ ), B = u.get("apiKey") || u.get("builder.space");
3701
+ p === e.model && B === e.apiKey && (!e.content || E === e.content.id) && Te({
3714
3702
  model: e.model,
3715
3703
  apiKey: e.apiKey,
3716
3704
  apiVersion: e.builderContextSignal.apiVersion
3717
- }).then((F) => {
3718
- F && i(F);
3705
+ }).then((A) => {
3706
+ A && i(A);
3719
3707
  });
3720
3708
  }
3721
3709
  }
3722
- }, []), P(() => {
3723
- e.apiKey || Z.error(
3724
- "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3725
- ), d(), f(), R();
3726
3710
  }, []), P(() => {
3727
3711
  e.content && i(e.content);
3728
3712
  }, [e.content]), P(() => {
3729
- d();
3730
- }, [(A = (B = e.builderContextSignal.content) == null ? void 0 : B.data) == null ? void 0 : A.jsCode]), P(() => {
3731
- f();
3732
- }, [(v = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : v.httpRequests]), P(() => {
3733
- R();
3713
+ x();
3734
3714
  }, [e.builderContextSignal.rootState]), P(() => {
3735
3715
  e.data && n(e.data);
3736
3716
  }, [e.data]), P(() => {
@@ -3738,41 +3718,41 @@ function Yn(e) {
3738
3718
  locale: e.locale
3739
3719
  });
3740
3720
  }, [e.locale]), P(() => () => {
3741
- H() && (window.removeEventListener("message", s), window.removeEventListener(
3721
+ U() && (window.removeEventListener("message", s), window.removeEventListener(
3742
3722
  "builder:component:stateChangeListenerActivated",
3743
- R
3723
+ x
3744
3724
  ));
3745
- }, []), /* @__PURE__ */ l(ue.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
3725
+ }, []), /* @__PURE__ */ l(le.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
3746
3726
  a,
3747
3727
  {
3748
3728
  ref: t,
3749
- onClick: (b) => p(b),
3750
- "builder-content-id": (E = e.builderContextSignal.content) == null ? void 0 : E.id,
3729
+ onClick: (m) => g(m),
3730
+ "builder-content-id": (C = e.builderContextSignal.content) == null ? void 0 : C.id,
3751
3731
  "builder-model": e.model,
3732
+ className: Hn(
3733
+ ((k = e.content) == null ? void 0 : k.testVariationId) || ((W = e.content) == null ? void 0 : W.id)
3734
+ ),
3752
3735
  ...o(),
3753
3736
  ...e.contentWrapperProps,
3754
- className: Jn(
3755
- ((W = e.content) == null ? void 0 : W.testVariationId) || ((y = e.content) == null ? void 0 : y.id)
3756
- ),
3757
3737
  children: e.children
3758
3738
  }
3759
3739
  ) : null });
3760
3740
  }
3761
- function Gn(e) {
3741
+ function qn(e) {
3762
3742
  const [t, n] = T(
3763
3743
  () => `
3764
- ${qn({
3744
+ ${Un({
3765
3745
  cssCode: e.cssCode,
3766
3746
  contentId: e.contentId
3767
3747
  })}
3768
- ${Kn({
3748
+ ${On({
3769
3749
  customFonts: e.customFonts
3770
3750
  })}
3771
- ${zn(e.isNestedRender)}
3751
+ ${jn(e.isNestedRender)}
3772
3752
  `.trim()
3773
3753
  );
3774
3754
  return /* @__PURE__ */ l(
3775
- te,
3755
+ Q,
3776
3756
  {
3777
3757
  id: "builderio-content",
3778
3758
  styles: t,
@@ -3780,7 +3760,7 @@ ${zn(e.isNestedRender)}
3780
3760
  }
3781
3761
  );
3782
3762
  }
3783
- const Qn = ({
3763
+ const _n = ({
3784
3764
  content: e,
3785
3765
  data: t,
3786
3766
  locale: n
@@ -3797,7 +3777,7 @@ const Qn = ({
3797
3777
  locale: n
3798
3778
  } : {}
3799
3779
  };
3800
- }, Xn = ({
3780
+ }, zn = ({
3801
3781
  content: e,
3802
3782
  data: t
3803
3783
  }) => e ? {
@@ -3808,51 +3788,51 @@ const Qn = ({
3808
3788
  },
3809
3789
  meta: e == null ? void 0 : e.meta
3810
3790
  } : void 0;
3811
- function we(e) {
3812
- var d, c, u, g, m, x, h;
3791
+ function ke(e) {
3792
+ var c, f, b, h, v, g, S, x, R;
3813
3793
  const [t, n] = T(
3814
3794
  () => {
3815
- var p, f;
3816
- return On({
3795
+ var C, k;
3796
+ return Nn({
3817
3797
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3818
- variationId: (p = e.content) == null ? void 0 : p.testVariationId,
3798
+ variationId: (C = e.content) == null ? void 0 : C.testVariationId,
3819
3799
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3820
- contentId: (f = e.content) == null ? void 0 : f.id
3800
+ contentId: (k = e.content) == null ? void 0 : k.id
3821
3801
  });
3822
3802
  }
3823
3803
  );
3824
- function i(p) {
3825
- s((f) => ({
3826
- ...f,
3827
- rootState: p
3804
+ function i(C) {
3805
+ s((k) => ({
3806
+ ...k,
3807
+ rootState: C
3828
3808
  }));
3829
3809
  }
3830
3810
  const [o, a] = T(
3831
3811
  () => {
3832
- var p;
3812
+ var C;
3833
3813
  return [
3834
- ...Ce(),
3835
- ...((p = e.customComponents) == null ? void 0 : p.filter(({ models: f }) => !(f != null && f.length) || !e.model ? !0 : f.includes(e.model))) || []
3814
+ ...xe(),
3815
+ ...((C = e.customComponents) == null ? void 0 : C.filter(({ models: k }) => !(k != null && k.length) || !e.model ? !0 : k.includes(e.model))) || []
3836
3816
  ].reduce(
3837
- (f, { component: R, ...B }) => ({
3838
- ...f,
3839
- [B.name]: {
3840
- component: R,
3841
- ...ge(B)
3817
+ (k, { component: W, ...m }) => ({
3818
+ ...k,
3819
+ [m.name]: {
3820
+ component: W,
3821
+ ...ue(m)
3842
3822
  }
3843
3823
  }),
3844
3824
  {}
3845
3825
  );
3846
3826
  }
3847
3827
  ), [r, s] = T(() => {
3848
- var p;
3828
+ var C;
3849
3829
  return {
3850
- content: Xn({
3830
+ content: zn({
3851
3831
  content: e.content,
3852
3832
  data: e.data
3853
3833
  }),
3854
3834
  localState: void 0,
3855
- rootState: Qn({
3835
+ rootState: _n({
3856
3836
  content: e.content,
3857
3837
  data: e.data,
3858
3838
  locale: e.locale
@@ -3863,12 +3843,12 @@ function we(e) {
3863
3843
  apiKey: e.apiKey,
3864
3844
  apiVersion: e.apiVersion,
3865
3845
  componentInfos: [
3866
- ...Ce(),
3867
- ...((p = e.customComponents) == null ? void 0 : p.filter(({ models: f }) => !(f != null && f.length) || !e.model ? !0 : f.includes(e.model))) || []
3846
+ ...xe(),
3847
+ ...((C = e.customComponents) == null ? void 0 : C.filter(({ models: k }) => !(k != null && k.length) || !e.model ? !0 : k.includes(e.model))) || []
3868
3848
  ].reduce(
3869
- (f, { component: R, ...B }) => ({
3870
- ...f,
3871
- [B.name]: ge(B)
3849
+ (k, { component: W, ...m }) => ({
3850
+ ...k,
3851
+ [m.name]: ue(m)
3872
3852
  }),
3873
3853
  {}
3874
3854
  ),
@@ -3877,15 +3857,35 @@ function we(e) {
3877
3857
  BlocksWrapperProps: e.blocksWrapperProps || {},
3878
3858
  nonce: e.nonce || ""
3879
3859
  };
3880
- });
3860
+ }), d = D(!1);
3861
+ if (!d.current) {
3862
+ e.apiKey || Y.error(
3863
+ "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3864
+ );
3865
+ const C = (f = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : f.jsCode;
3866
+ C && M({
3867
+ code: C,
3868
+ context: e.context || {},
3869
+ localState: void 0,
3870
+ rootState: r.rootState,
3871
+ rootSetState: (k) => {
3872
+ Object.assign(r.rootState, k);
3873
+ },
3874
+ isExpression: !1,
3875
+ /**
3876
+ * We don't want to cache the result of the JS code, since it's arbitrary side effect code.
3877
+ */
3878
+ enableCache: !1
3879
+ }), d.current = !0;
3880
+ }
3881
3881
  return /* @__PURE__ */ l(
3882
- Ve.Provider,
3882
+ Ee.Provider,
3883
3883
  {
3884
3884
  value: {
3885
3885
  registeredComponents: o
3886
3886
  },
3887
3887
  children: /* @__PURE__ */ V(
3888
- Yn,
3888
+ Kn,
3889
3889
  {
3890
3890
  nonce: e.nonce,
3891
3891
  content: e.content,
@@ -3904,7 +3904,7 @@ function we(e) {
3904
3904
  setBuilderContextSignal: s,
3905
3905
  children: [
3906
3906
  e.isSsrAbTest ? /* @__PURE__ */ l(
3907
- ce,
3907
+ ae,
3908
3908
  {
3909
3909
  id: "builderio-variant-visibility",
3910
3910
  scriptStr: t,
@@ -3912,19 +3912,19 @@ function we(e) {
3912
3912
  }
3913
3913
  ) : null,
3914
3914
  /* @__PURE__ */ l(
3915
- Gn,
3915
+ qn,
3916
3916
  {
3917
3917
  nonce: e.nonce || "",
3918
3918
  isNestedRender: e.isNestedRender,
3919
- contentId: (d = r.content) == null ? void 0 : d.id,
3920
- cssCode: (u = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : u.cssCode,
3921
- customFonts: (m = (g = r.content) == null ? void 0 : g.data) == null ? void 0 : m.customFonts
3919
+ contentId: (b = r.content) == null ? void 0 : b.id,
3920
+ cssCode: (v = (h = r.content) == null ? void 0 : h.data) == null ? void 0 : v.cssCode,
3921
+ customFonts: (S = (g = r.content) == null ? void 0 : g.data) == null ? void 0 : S.customFonts
3922
3922
  }
3923
3923
  ),
3924
3924
  /* @__PURE__ */ l(
3925
- D,
3925
+ F,
3926
3926
  {
3927
- blocks: (h = (x = r.content) == null ? void 0 : x.data) == null ? void 0 : h.blocks,
3927
+ blocks: (R = (x = r.content) == null ? void 0 : x.data) == null ? void 0 : R.blocks,
3928
3928
  context: r,
3929
3929
  registeredComponents: o,
3930
3930
  linkComponent: e.linkComponent
@@ -3936,18 +3936,18 @@ function we(e) {
3936
3936
  }
3937
3937
  );
3938
3938
  }
3939
- function Zn(e) {
3939
+ function Jn(e) {
3940
3940
  var r;
3941
3941
  const [t, n] = T(
3942
- () => Fn({
3943
- canTrack: X(e.canTrack),
3942
+ () => Pn({
3943
+ canTrack: J(e.canTrack),
3944
3944
  content: e.content
3945
3945
  })
3946
3946
  );
3947
3947
  function i() {
3948
3948
  var s;
3949
- return Ln(
3950
- G(e.content).map((d) => ({
3949
+ return Wn(
3950
+ _(e.content).map((d) => ({
3951
3951
  id: d.testVariationId,
3952
3952
  testRatio: d.testRatio
3953
3953
  })),
@@ -3955,31 +3955,31 @@ function Zn(e) {
3955
3955
  );
3956
3956
  }
3957
3957
  function o() {
3958
- return G(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
3958
+ return _(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
3959
3959
  }
3960
3960
  function a() {
3961
3961
  var s;
3962
3962
  return t ? {
3963
3963
  ...e.content,
3964
3964
  testVariationId: (s = e.content) == null ? void 0 : s.id
3965
- } : et({
3965
+ } : Ye({
3966
3966
  item: e.content,
3967
- canTrack: X(e.canTrack)
3967
+ canTrack: J(e.canTrack)
3968
3968
  });
3969
3969
  }
3970
3970
  return P(() => {
3971
- }, []), /* @__PURE__ */ V(I, { children: [
3972
- !e.isNestedRender && U !== "reactNative" ? /* @__PURE__ */ l(
3973
- ce,
3971
+ }, []), /* @__PURE__ */ V(w, { children: [
3972
+ !e.isNestedRender && L !== "reactNative" ? /* @__PURE__ */ l(
3973
+ ae,
3974
3974
  {
3975
3975
  id: "builderio-init-variants-fns",
3976
- scriptStr: Dn(),
3976
+ scriptStr: An(),
3977
3977
  nonce: e.nonce || ""
3978
3978
  }
3979
3979
  ) : null,
3980
- t ? /* @__PURE__ */ V(I, { children: [
3980
+ t ? /* @__PURE__ */ V(w, { children: [
3981
3981
  /* @__PURE__ */ l(
3982
- te,
3982
+ Q,
3983
3983
  {
3984
3984
  id: "builderio-variants",
3985
3985
  styles: o(),
@@ -3987,15 +3987,15 @@ function Zn(e) {
3987
3987
  }
3988
3988
  ),
3989
3989
  /* @__PURE__ */ l(
3990
- ce,
3990
+ ae,
3991
3991
  {
3992
3992
  id: "builderio-variants-visibility",
3993
3993
  scriptStr: i(),
3994
3994
  nonce: e.nonce || ""
3995
3995
  }
3996
3996
  ),
3997
- (r = G(e.content)) == null ? void 0 : r.map((s) => /* @__PURE__ */ l(
3998
- we,
3997
+ (r = _(e.content)) == null ? void 0 : r.map((s) => /* @__PURE__ */ l(
3998
+ ke,
3999
3999
  {
4000
4000
  isNestedRender: e.isNestedRender,
4001
4001
  nonce: e.nonce,
@@ -4022,7 +4022,7 @@ function Zn(e) {
4022
4022
  ))
4023
4023
  ] }) : null,
4024
4024
  /* @__PURE__ */ l(
4025
- we,
4025
+ ke,
4026
4026
  {
4027
4027
  nonce: e.nonce,
4028
4028
  isNestedRender: e.isNestedRender,
@@ -4048,13 +4048,13 @@ function Zn(e) {
4048
4048
  )
4049
4049
  ] });
4050
4050
  }
4051
- const ei = async ({
4051
+ const Yn = async ({
4052
4052
  builderContextValue: e,
4053
4053
  symbol: t
4054
4054
  }) => {
4055
4055
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4056
4056
  (e != null && e.apiKey))
4057
- return Ee({
4057
+ return Te({
4058
4058
  model: t.model,
4059
4059
  apiKey: e.apiKey,
4060
4060
  apiVersion: e.apiVersion,
@@ -4064,11 +4064,11 @@ const ei = async ({
4064
4064
  }
4065
4065
  }
4066
4066
  }).catch((n) => {
4067
- Z.error("Could not fetch symbol content: ", n);
4067
+ Y.error("Could not fetch symbol content: ", n);
4068
4068
  });
4069
4069
  };
4070
- function ti(e) {
4071
- var s, d, c, u;
4070
+ function Gn(e) {
4071
+ var s, d, c, f;
4072
4072
  function t() {
4073
4073
  return "div";
4074
4074
  }
@@ -4076,31 +4076,31 @@ function ti(e) {
4076
4076
  return "div";
4077
4077
  }
4078
4078
  function i() {
4079
- var g, m;
4079
+ var b, h;
4080
4080
  return [
4081
- e.attributes[_()],
4081
+ e.attributes[H()],
4082
4082
  "builder-symbol",
4083
- (g = e.symbol) != null && g.inline ? "builder-inline-symbol" : void 0,
4084
- (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4083
+ (b = e.symbol) != null && b.inline ? "builder-inline-symbol" : void 0,
4084
+ (h = e.symbol) != null && h.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4085
4085
  ].filter(Boolean).join(" ");
4086
4086
  }
4087
4087
  const [o, a] = T(() => {
4088
- var g;
4089
- return (g = e.symbol) == null ? void 0 : g.content;
4088
+ var b;
4089
+ return (b = e.symbol) == null ? void 0 : b.content;
4090
4090
  });
4091
4091
  function r() {
4092
- o || ei({
4092
+ o || Yn({
4093
4093
  symbol: e.symbol,
4094
4094
  builderContextValue: e.builderContext
4095
- }).then((g) => {
4096
- g && a(g);
4095
+ }).then((b) => {
4096
+ b && a(b);
4097
4097
  });
4098
4098
  }
4099
4099
  return P(() => {
4100
4100
  }, []), P(() => {
4101
4101
  r();
4102
4102
  }, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
4103
- Zn,
4103
+ Jn,
4104
4104
  {
4105
4105
  nonce: e.builderContext.nonce,
4106
4106
  isNestedRender: !0,
@@ -4117,7 +4117,7 @@ function ti(e) {
4117
4117
  ...(c = o == null ? void 0 : o.data) == null ? void 0 : c.state
4118
4118
  },
4119
4119
  canTrack: e.builderContext.canTrack,
4120
- model: (u = e.symbol) == null ? void 0 : u.model,
4120
+ model: (f = e.symbol) == null ? void 0 : f.model,
4121
4121
  content: o,
4122
4122
  linkComponent: e.builderLinkComponent,
4123
4123
  blocksWrapper: t(),
@@ -4126,15 +4126,15 @@ function ti(e) {
4126
4126
  ) });
4127
4127
  }
4128
4128
  export {
4129
- D as Blocks,
4130
- ue as BuilderContext,
4131
- it as Button,
4132
- jt as Columns,
4133
- Zn as Content,
4134
- Ht as Fragment,
4135
- _t as Image,
4136
- zt as Section,
4137
- ti as Symbol,
4138
- sn as Text,
4139
- Vn as Video
4129
+ F as Blocks,
4130
+ le as BuilderContext,
4131
+ Xe as Button,
4132
+ Dt as Columns,
4133
+ Jn as Content,
4134
+ Lt as Fragment,
4135
+ Mt as Image,
4136
+ jt as Section,
4137
+ Gn as Symbol,
4138
+ nn as Text,
4139
+ wn as Video
4140
4140
  };