@builder.io/sdk-react 2.0.2-1 → 2.0.2-2

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 (61) hide show
  1. package/lib/browser/blocks-exports.cjs +24 -24
  2. package/lib/browser/blocks-exports.mjs +319 -299
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/init.cjs +1 -1
  6. package/lib/browser/init.mjs +1 -1
  7. package/lib/browser/{server-entry-45c77a86.js → server-entry-441053ba.js} +3 -3
  8. package/lib/browser/{server-entry-69a4d3c9.cjs → server-entry-56e8004a.cjs} +1 -1
  9. package/lib/browser/server-entry.cjs +1 -1
  10. package/lib/browser/server-entry.mjs +1 -1
  11. package/lib/edge/{accordion-ddf18178.js → accordion-24b26431.js} +1 -1
  12. package/lib/edge/{accordion-7896cae6.cjs → accordion-f87e2b96.cjs} +1 -1
  13. package/lib/edge/{blocks-10f68d94.js → blocks-53095100.js} +404 -384
  14. package/lib/edge/{blocks-03bf455b.cjs → blocks-802e3770.cjs} +13 -13
  15. package/lib/edge/blocks-exports.cjs +1 -1
  16. package/lib/edge/blocks-exports.mjs +2 -2
  17. package/lib/edge/{button-cba5f3f8.js → button-73485ccc.js} +2 -2
  18. package/lib/edge/{button-91e0aec2.cjs → button-b0f515b1.cjs} +1 -1
  19. package/lib/edge/{columns-080edf58.cjs → columns-1f80b3f3.cjs} +1 -1
  20. package/lib/edge/{columns-6bfc17df.js → columns-405f1d21.js} +3 -3
  21. package/lib/edge/{content-variants-d855ce6c.js → content-variants-579677ec.js} +10 -10
  22. package/lib/edge/{content-variants-65794f41.cjs → content-variants-f380acc1.cjs} +1 -1
  23. package/lib/edge/{form-23561b33.cjs → form-2862b060.cjs} +1 -1
  24. package/lib/edge/{form-f4cd948c.js → form-c2684aa9.js} +3 -3
  25. package/lib/edge/{get-class-prop-name-237cd359.cjs → get-class-prop-name-2d695e7d.cjs} +1 -1
  26. package/lib/edge/{get-class-prop-name-1928cf9f.js → get-class-prop-name-ade06415.js} +1 -1
  27. package/lib/edge/{img-86db320f.cjs → img-29a47783.cjs} +1 -1
  28. package/lib/edge/{img-f9ec8689.js → img-a605abb9.js} +1 -1
  29. package/lib/edge/index.cjs +1 -1
  30. package/lib/edge/index.mjs +1 -1
  31. package/lib/edge/init.cjs +1 -1
  32. package/lib/edge/init.mjs +1 -1
  33. package/lib/edge/{input-394e72b8.js → input-24ab9912.js} +1 -1
  34. package/lib/edge/{input-953ef2fe.cjs → input-afb0eaae.cjs} +1 -1
  35. package/lib/edge/{select-9bb6b8c1.cjs → select-542f9b0e.cjs} +1 -1
  36. package/lib/edge/{select-3e25848f.js → select-b7b61dde.js} +1 -1
  37. package/lib/edge/{server-entry-771d1637.js → server-entry-042bd6f0.js} +1 -1
  38. package/lib/edge/{server-entry-6bd1c4bc.cjs → server-entry-b32a9c32.cjs} +1 -1
  39. package/lib/edge/server-entry.cjs +1 -1
  40. package/lib/edge/server-entry.mjs +1 -1
  41. package/lib/edge/{slot-22940ad6.cjs → slot-19716d77.cjs} +1 -1
  42. package/lib/edge/{slot-881129c3.js → slot-d08698a2.js} +3 -3
  43. package/lib/edge/{symbol-faa97614.js → symbol-9aaa9700.js} +2 -2
  44. package/lib/edge/{symbol-58595a6d.cjs → symbol-be4081db.cjs} +1 -1
  45. package/lib/edge/{tabs-dc23d0fa.cjs → tabs-4cb2e700.cjs} +1 -1
  46. package/lib/edge/{tabs-f0ca75e4.js → tabs-e32544a6.js} +3 -3
  47. package/lib/node/blocks-exports.cjs +24 -24
  48. package/lib/node/blocks-exports.mjs +303 -283
  49. package/lib/node/index.cjs +1 -1
  50. package/lib/node/index.mjs +2 -2
  51. package/lib/node/init.cjs +1 -1
  52. package/lib/node/init.mjs +2 -2
  53. package/lib/node/{node-runtime-55fc8cd4.cjs → node-runtime-9af386e9.cjs} +1 -1
  54. package/lib/node/{node-runtime-46d21495.js → node-runtime-df1706b0.js} +1 -1
  55. package/lib/node/{server-entry-11eee7d8.cjs → server-entry-1224f4f2.cjs} +1 -1
  56. package/lib/node/{server-entry-d45c1bf6.js → server-entry-f7ab9ed1.js} +1 -1
  57. package/lib/node/server-entry.cjs +1 -1
  58. package/lib/node/server-entry.mjs +1 -1
  59. package/package.json +1 -1
  60. package/types/constants/sdk-version.d.ts +1 -1
  61. package/types/functions/get-processed-block.d.ts +1 -0
@@ -1,14 +1,14 @@
1
1
  "use client";
2
- var He = Object.defineProperty;
3
- var qe = (e, t, n) => t in e ? He(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
- var ne = (e, t, n) => (qe(e, typeof t != "symbol" ? t + "" : t, n), n);
5
- import { jsx as l, Fragment as R, jsxs as P } from "react/jsx-runtime";
6
- import { TARGET as K, checkIsDefined as Y, logger as X, isBrowser as G, fastClone as ce, isPreviewing as Te, isEditing as $, registerInsertMenu as Ke, setupBrowserForEditing as _e, createRegisterComponentMessage as ze, getDefaultCanTrack as Q, _track as fe, fetchOneEntry as Ie, createEditorListener as Je, fetch as Ye, serializeComponentInfo as he, handleABTestingSync as Ge } from "./server-entry-d45c1bf6.js";
7
- import { createContext as we, useState as T, useEffect as B, useContext as ge, useRef as Z, createElement as Re } from "react";
8
- import { getFunctionArguments as Qe, runInNode as Xe, parseCode as Ze, getBuilderGlobals as et, set as Ee } from "./node-runtime-46d21495.js";
9
- 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());
2
+ var qe = Object.defineProperty;
3
+ var Ke = (e, t, n) => t in e ? qe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
+ var ne = (e, t, n) => (Ke(e, typeof t != "symbol" ? t + "" : t, n), n);
5
+ import { jsx as l, Fragment as R, jsxs as B } from "react/jsx-runtime";
6
+ import { TARGET as K, checkIsDefined as Y, logger as X, isBrowser as G, fastClone as Te, isPreviewing as Ie, isEditing as $, registerInsertMenu as _e, setupBrowserForEditing as ze, createRegisterComponentMessage as Je, getDefaultCanTrack as Q, _track as fe, fetchOneEntry as we, createEditorListener as Ye, fetch as Ge, serializeComponentInfo as he, handleABTestingSync as Qe } from "./server-entry-f7ab9ed1.js";
7
+ import { createContext as Re, useState as T, useEffect as P, useContext as ge, useRef as Z, createElement as Ee } from "react";
8
+ import { getFunctionArguments as Xe, runInNode as Ze, parseCode as et, getBuilderGlobals as tt, set as Pe } from "./node-runtime-df1706b0.js";
9
+ const nt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), it = (e) => typeof e == "string" && nt.has(e.toLowerCase());
10
10
  function de(e) {
11
- return /* @__PURE__ */ l(R, { children: nt(e.TagName) ? /* @__PURE__ */ l(R, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(R, { 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
+ return /* @__PURE__ */ l(R, { children: it(e.TagName) ? /* @__PURE__ */ l(R, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
12
12
  }
13
13
  const H = () => {
14
14
  switch (K) {
@@ -24,7 +24,7 @@ const H = () => {
24
24
  return "class";
25
25
  }
26
26
  };
27
- function it(e) {
27
+ function ot(e) {
28
28
  function t() {
29
29
  return {
30
30
  ...e.attributes,
@@ -48,7 +48,7 @@ function it(e) {
48
48
  }
49
49
  );
50
50
  }
51
- const ue = we({
51
+ const ue = Re({
52
52
  content: null,
53
53
  context: {},
54
54
  localState: void 0,
@@ -62,15 +62,21 @@ const ue = we({
62
62
  BlocksWrapper: "div",
63
63
  BlocksWrapperProps: {},
64
64
  nonce: ""
65
- }), Be = we({ registeredComponents: {} });
66
- function ot(e) {
65
+ }), Be = Re({ registeredComponents: {} });
66
+ function at(e) {
67
67
  var t;
68
68
  return {
69
69
  ...(t = e.component) == null ? void 0 : t.options,
70
70
  ...e.options
71
71
  };
72
72
  }
73
- const at = ({
73
+ function rt(e, ...t) {
74
+ const n = Object.assign({}, e);
75
+ for (const i of t)
76
+ delete n[i];
77
+ return n;
78
+ }
79
+ const lt = ({
74
80
  code: e,
75
81
  builder: t,
76
82
  context: n,
@@ -79,11 +85,11 @@ const at = ({
79
85
  rootSetState: a,
80
86
  rootState: r
81
87
  }) => {
82
- const s = Qe({
88
+ const s = Xe({
83
89
  builder: t,
84
90
  context: n,
85
91
  event: i,
86
- state: Pe({
92
+ state: Ve({
87
93
  rootState: r,
88
94
  localState: o,
89
95
  rootSetState: a
@@ -91,7 +97,7 @@ const at = ({
91
97
  });
92
98
  return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
93
99
  };
94
- function Pe({
100
+ function Ve({
95
101
  rootState: e,
96
102
  localState: t,
97
103
  rootSetState: n
@@ -101,7 +107,7 @@ function Pe({
101
107
  if (t && o in t)
102
108
  return t[o];
103
109
  const a = i[o];
104
- return typeof a == "object" && a !== null ? Pe({
110
+ return typeof a == "object" && a !== null ? Ve({
105
111
  rootState: a,
106
112
  localState: void 0,
107
113
  rootSetState: n ? (r) => {
@@ -116,17 +122,17 @@ function Pe({
116
122
  }
117
123
  });
118
124
  }
119
- function rt() {
125
+ function st() {
120
126
  var e;
121
127
  return typeof process != "undefined" && Y((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
122
128
  }
123
- const lt = () => {
129
+ const ct = () => {
124
130
  var i;
125
- if (!rt())
131
+ if (!st())
126
132
  return !1;
127
133
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
128
134
  return e && t && !n ? (X.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;
129
- }, st = (e) => G() || lt() ? at(e) : Xe(e), L = class L {
135
+ }, dt = (e) => G() || ct() ? lt(e) : Ze(e), L = class L {
130
136
  static getCacheKey(t) {
131
137
  return JSON.stringify({
132
138
  ...t,
@@ -159,10 +165,10 @@ function q({
159
165
  if (e === "")
160
166
  return;
161
167
  const d = {
162
- code: Ze(e, {
168
+ code: et(e, {
163
169
  isExpression: r
164
170
  }),
165
- builder: et(),
171
+ builder: tt(),
166
172
  context: t,
167
173
  event: a,
168
174
  rootSetState: o,
@@ -175,7 +181,7 @@ function q({
175
181
  return m.value;
176
182
  }
177
183
  try {
178
- const c = st(d);
184
+ const c = dt(d);
179
185
  if (s) {
180
186
  const m = M.getCacheKey(d);
181
187
  M.setCachedValue(m, c);
@@ -188,7 +194,19 @@ function q({
188
194
  return;
189
195
  }
190
196
  }
191
- const ct = ({
197
+ function se(e) {
198
+ if (e === null || typeof e != "object")
199
+ return e;
200
+ if (Array.isArray(e))
201
+ return e.map((n) => se(n));
202
+ if (e["@type"] === "@builder.io/sdk:Element")
203
+ return e;
204
+ const t = {};
205
+ for (const n in e)
206
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = se(e[n]));
207
+ return t;
208
+ }
209
+ const ut = ({
192
210
  block: e,
193
211
  context: t,
194
212
  localState: n,
@@ -197,14 +215,16 @@ const ct = ({
197
215
  }) => {
198
216
  if (!e.bindings)
199
217
  return e;
200
- const a = ce(e), r = {
218
+ const a = se(rt(e, "children", "meta")), r = {
201
219
  ...a,
202
220
  properties: {
203
221
  ...a.properties
204
222
  },
205
223
  actions: {
206
224
  ...a.actions
207
- }
225
+ },
226
+ children: e.children,
227
+ meta: e.meta
208
228
  };
209
229
  for (const s in e.bindings) {
210
230
  const d = e.bindings[s], c = q({
@@ -213,13 +233,13 @@ const ct = ({
213
233
  rootState: i,
214
234
  rootSetState: o,
215
235
  context: t,
216
- enableCache: !0
236
+ enableCache: typeof window == "undefined"
217
237
  });
218
- Ee(r, s, c);
238
+ Pe(r, s, c);
219
239
  }
220
240
  return r;
221
241
  };
222
- function dt({
242
+ function mt({
223
243
  block: e,
224
244
  context: t,
225
245
  shouldEvaluateBindings: n,
@@ -228,7 +248,7 @@ function dt({
228
248
  rootSetState: a
229
249
  }) {
230
250
  const r = e;
231
- return n ? ct({
251
+ return n ? ut({
232
252
  block: r,
233
253
  localState: i,
234
254
  rootState: o,
@@ -237,7 +257,7 @@ function dt({
237
257
  }) : r;
238
258
  }
239
259
  const ee = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
240
- function ut(e, t, n = {}) {
260
+ function ft(e, t, n = {}) {
241
261
  let i, o, a, r = null, s = 0;
242
262
  const d = function() {
243
263
  s = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
@@ -259,55 +279,55 @@ function U(e, ...t) {
259
279
  }
260
280
  return n;
261
281
  }
262
- function mt(e) {
282
+ function ht(e) {
263
283
  for (const t of e)
264
284
  switch (t.trigger) {
265
285
  case "pageLoad":
266
- Ne(t);
286
+ We(t);
267
287
  break;
268
288
  case "scrollInView":
269
- ht(t);
289
+ bt(t);
270
290
  break;
271
291
  }
272
292
  }
273
- function Ve(e) {
293
+ function Ae(e) {
274
294
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
275
295
  }
276
- function Ae(e, t) {
277
- const n = ft(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
296
+ function Ne(e, t) {
297
+ const n = gt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
278
298
  for (const s of r)
279
299
  for (const d of n)
280
300
  d in s || (s[d] = i[d]);
281
301
  }
282
- function ft(e) {
302
+ function gt(e) {
283
303
  const t = [];
284
304
  for (const n of e.steps)
285
305
  for (const i in n.styles)
286
306
  t.indexOf(i) === -1 && t.push(i);
287
307
  return t;
288
308
  }
289
- function Ne(e) {
309
+ function We(e) {
290
310
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
291
311
  if (!t.length) {
292
- Ve(e.elementId || e.id || "");
312
+ Ae(e.elementId || e.id || "");
293
313
  return;
294
314
  }
295
315
  Array.from(t).forEach((n) => {
296
- Ae(e, n), n.style.transition = "none", n.style.transitionDelay = "0", U(n.style, e.steps[0].styles), setTimeout(() => {
316
+ Ne(e, n), n.style.transition = "none", n.style.transitionDelay = "0", U(n.style, e.steps[0].styles), setTimeout(() => {
297
317
  n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), U(n.style, e.steps[1].styles), setTimeout(() => {
298
318
  n.style.transition = "", n.style.transitionDelay = "";
299
319
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
300
320
  });
301
321
  });
302
322
  }
303
- function ht(e) {
323
+ function bt(e) {
304
324
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
305
325
  if (!t.length) {
306
- Ve(e.elementId || e.id || "");
326
+ Ae(e.elementId || e.id || "");
307
327
  return;
308
328
  }
309
329
  Array.from(t).forEach((n) => {
310
- Ae(e, n);
330
+ Ne(e, n);
311
331
  let i = !1, o = !1;
312
332
  function a() {
313
333
  !i && s(n) ? (i = !0, o = !0, setTimeout(() => {
@@ -316,7 +336,7 @@ function ht(e) {
316
336
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
317
337
  })) : e.repeat && i && !o && !s(n) && (i = !1, U(n.style, e.steps[0].styles));
318
338
  }
319
- const r = ut(a, 200, {
339
+ const r = ft(a, 200, {
320
340
  leading: !1
321
341
  });
322
342
  function s(m) {
@@ -335,42 +355,42 @@ function ht(e) {
335
355
  }), a();
336
356
  });
337
357
  }
338
- const We = (e) => Object.entries(e).map(([n, i]) => {
358
+ const Fe = (e) => Object.entries(e).map(([n, i]) => {
339
359
  if (typeof i == "string")
340
360
  return `${ee(n)}: ${i};`;
341
- }).filter(Y), gt = (e) => We(e).join(`
361
+ }).filter(Y), pt = (e) => Fe(e).join(`
342
362
  `), z = ({
343
363
  mediaQuery: e,
344
364
  className: t,
345
365
  styles: n
346
366
  }) => {
347
367
  const i = `.${t} {
348
- ${gt(n)}
368
+ ${pt(n)}
349
369
  }`;
350
370
  return e ? `${e} {
351
371
  ${i}
352
372
  }` : i;
353
373
  };
354
- function bt({
374
+ function yt({
355
375
  style: e
356
376
  }) {
357
377
  return e;
358
378
  }
359
- const pt = ({
379
+ const xt = ({
360
380
  block: e,
361
381
  context: t
362
- }) => Fe(bt({
382
+ }) => $e(yt({
363
383
  style: e.style || {},
364
384
  context: t,
365
385
  block: e
366
386
  }));
367
- function Fe(e) {
387
+ function $e(e) {
368
388
  switch (K) {
369
389
  case "svelte":
370
390
  case "vue":
371
391
  case "solid":
372
392
  case "angular":
373
- return We(e).join(" ");
393
+ return Fe(e).join(" ");
374
394
  case "qwik":
375
395
  case "reactNative":
376
396
  case "react":
@@ -378,7 +398,7 @@ function Fe(e) {
378
398
  return e;
379
399
  }
380
400
  }
381
- const yt = ({
401
+ const vt = ({
382
402
  block: e,
383
403
  registeredComponents: t
384
404
  }) => {
@@ -392,7 +412,7 @@ const yt = ({
392
412
  console.warn(`
393
413
  Could not find a registered component named "${n}".
394
414
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
395
- }, xt = ({
415
+ }, St = ({
396
416
  block: e,
397
417
  context: t
398
418
  }) => {
@@ -426,27 +446,27 @@ const yt = ({
426
446
  },
427
447
  block: i
428
448
  }));
429
- }, vt = (e, t) => {
449
+ }, kt = (e, t) => {
430
450
  var n;
431
451
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
432
452
  builderLinkComponent: t
433
453
  } : {};
434
- }, St = (e, t) => {
454
+ }, Ct = (e, t) => {
435
455
  var n;
436
456
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
437
457
  builderComponents: t
438
458
  } : {};
439
- }, kt = (e, t) => {
459
+ }, Tt = (e, t) => {
440
460
  var n;
441
461
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
442
462
  builderBlock: t
443
463
  } : {};
444
- }, Ct = (e, t) => {
464
+ }, It = (e, t) => {
445
465
  var n;
446
466
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
447
467
  builderContext: t
448
468
  } : {};
449
- }, $e = {
469
+ }, De = {
450
470
  small: {
451
471
  min: 320,
452
472
  default: 321,
@@ -462,11 +482,11 @@ const yt = ({
462
482
  default: 991,
463
483
  max: 1200
464
484
  }
465
- }, be = (e, t = $e) => `@media (max-width: ${t[e].max}px)`, De = ({
485
+ }, be = (e, t = De) => `@media (max-width: ${t[e].max}px)`, Le = ({
466
486
  small: e,
467
487
  medium: t
468
488
  }) => {
469
- const n = ce($e);
489
+ const n = Te(De);
470
490
  if (!e || !t)
471
491
  return n;
472
492
  const i = Math.floor(e / 2);
@@ -499,14 +519,14 @@ function te(e) {
499
519
  }
500
520
  );
501
521
  }
502
- function Tt(e) {
522
+ function wt(e) {
503
523
  function t() {
504
524
  const i = e.block;
505
525
  return Y(i.hide) ? !i.hide : Y(i.show) ? i.show : !0;
506
526
  }
507
527
  function n() {
508
528
  var y, E, V;
509
- const i = e.block, o = i.responsiveStyles, a = e.context.content, r = De(
529
+ const i = e.block, o = i.responsiveStyles, a = e.context.content, r = Le(
510
530
  ((y = a == null ? void 0 : a.meta) == null ? void 0 : y.breakpoints) || {}
511
531
  ), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, m = i.id;
512
532
  if (!m)
@@ -559,10 +579,10 @@ function Tt(e) {
559
579
  }
560
580
  ) }) : null });
561
581
  }
562
- function It(e) {
582
+ function Rt(e) {
563
583
  return e.charAt(0).toUpperCase() + e.slice(1);
564
584
  }
565
- const wt = (e) => `on${It(e)}`, Rt = (e, t) => (n) => q({
585
+ const Et = (e) => `on${Rt(e)}`, Pt = (e, t) => (n) => q({
566
586
  code: e,
567
587
  context: t.context,
568
588
  localState: t.localState,
@@ -572,14 +592,14 @@ const wt = (e) => `on${It(e)}`, Rt = (e, t) => (n) => q({
572
592
  isExpression: !1,
573
593
  enableCache: !0
574
594
  });
575
- function Le(e) {
595
+ function Oe(e) {
576
596
  var i;
577
597
  const t = {}, n = (i = e.block.actions) != null ? i : {};
578
598
  for (const o in n) {
579
599
  if (!n.hasOwnProperty(o))
580
600
  continue;
581
601
  const a = n[o];
582
- let r = wt(o);
602
+ let r = Et(o);
583
603
  if (e.stripPrefix)
584
604
  switch (K) {
585
605
  case "vue":
@@ -589,16 +609,16 @@ function Le(e) {
589
609
  r = r.replace("on:", "");
590
610
  break;
591
611
  }
592
- t[r] = Rt(a, e);
612
+ t[r] = Pt(a, e);
593
613
  }
594
614
  return t;
595
615
  }
596
- function Et({
616
+ function Bt({
597
617
  properties: e
598
618
  }) {
599
619
  return e;
600
620
  }
601
- const Bt = (e) => ({
621
+ const Vt = (e) => ({
602
622
  href: e.href
603
623
  });
604
624
  function me({
@@ -607,22 +627,22 @@ function me({
607
627
  }) {
608
628
  var i;
609
629
  const n = {
610
- ...Bt(e),
630
+ ...Vt(e),
611
631
  ...e.properties,
612
632
  "builder-id": e.id,
613
- style: pt({
633
+ style: xt({
614
634
  block: e,
615
635
  context: t
616
636
  }),
617
637
  [H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
618
638
  };
619
- return Et({
639
+ return Bt({
620
640
  properties: n,
621
641
  context: t,
622
642
  block: e
623
643
  });
624
644
  }
625
- function Pt(e) {
645
+ function At(e) {
626
646
  return /* @__PURE__ */ l(
627
647
  de,
628
648
  {
@@ -631,7 +651,7 @@ function Pt(e) {
631
651
  block: e.block,
632
652
  context: e.context
633
653
  }),
634
- actionAttributes: Le({
654
+ actionAttributes: Oe({
635
655
  block: e.block,
636
656
  rootState: e.context.rootState,
637
657
  rootSetState: e.context.rootSetState,
@@ -643,14 +663,14 @@ function Pt(e) {
643
663
  }
644
664
  );
645
665
  }
646
- function Vt(e) {
666
+ function Nt(e) {
647
667
  function t() {
648
668
  return e.includeBlockProps ? {
649
669
  ...me({
650
670
  block: e.block,
651
671
  context: e.context
652
672
  }),
653
- ...Le({
673
+ ...Oe({
654
674
  block: e.block,
655
675
  rootState: e.context.rootState,
656
676
  rootSetState: e.context.rootSetState,
@@ -661,7 +681,7 @@ function Vt(e) {
661
681
  }
662
682
  return /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
663
683
  }
664
- const At = ({
684
+ const Wt = ({
665
685
  componentOptions: e,
666
686
  builderBlock: t,
667
687
  context: n,
@@ -694,12 +714,12 @@ const At = ({
694
714
  function pe(e) {
695
715
  var i;
696
716
  const [t, n] = T(
697
- () => e.isInteractive ? Vt : e.componentRef
717
+ () => e.isInteractive ? Nt : e.componentRef
698
718
  );
699
719
  return /* @__PURE__ */ l(R, { children: e.componentRef ? /* @__PURE__ */ l(R, { children: /* @__PURE__ */ l(
700
720
  t,
701
721
  {
702
- ...At({
722
+ ...Wt({
703
723
  componentOptions: e.componentOptions,
704
724
  builderBlock: e.builderBlock,
705
725
  context: e.context,
@@ -722,7 +742,7 @@ function pe(e) {
722
742
  }
723
743
  ) }) : null });
724
744
  }
725
- function Nt(e) {
745
+ function Ft(e) {
726
746
  const [t, n] = T(() => e.repeatContext);
727
747
  return /* @__PURE__ */ l(ue.Provider, { value: t, children: /* @__PURE__ */ l(
728
748
  _,
@@ -737,14 +757,14 @@ function Nt(e) {
737
757
  function _(e) {
738
758
  var m, h, f;
739
759
  function t() {
740
- return yt({
760
+ return vt({
741
761
  block: a(),
742
762
  context: e.context,
743
763
  registeredComponents: e.registeredComponents
744
764
  });
745
765
  }
746
766
  function n() {
747
- return xt({
767
+ return St({
748
768
  block: e.block,
749
769
  context: e.context
750
770
  });
@@ -755,9 +775,9 @@ function _(e) {
755
775
  }));
756
776
  function a() {
757
777
  var g;
758
- if (i.value && !i.update && !Te())
778
+ if (i.value && !i.update && !Ie())
759
779
  return i.value;
760
- const u = (g = e.block.repeat) != null && g.collection ? e.block : dt({
780
+ const u = (g = e.block.repeat) != null && g.collection ? e.block : mt({
761
781
  block: e.block,
762
782
  localState: e.context.localState,
763
783
  rootState: e.context.rootState,
@@ -788,11 +808,11 @@ function _(e) {
788
808
  blockChildren: (u = a().children) != null ? u : [],
789
809
  componentRef: (g = t == null ? void 0 : t()) == null ? void 0 : g.component,
790
810
  componentOptions: {
791
- ...ot(a()),
792
- ...kt(t(), a()),
793
- ...Ct(t(), e.context),
794
- ...vt(t(), e.linkComponent),
795
- ...St(
811
+ ...at(a()),
812
+ ...Tt(t(), a()),
813
+ ...It(t(), e.context),
814
+ ...kt(t(), e.linkComponent),
815
+ ...Ct(
796
816
  t(),
797
817
  e.registeredComponents
798
818
  )
@@ -805,18 +825,18 @@ function _(e) {
805
825
  isInteractive: !((y = t == null ? void 0 : t()) != null && y.isRSC)
806
826
  };
807
827
  }
808
- return B(() => {
828
+ return P(() => {
809
829
  const u = a().id, g = a().animations;
810
- g && u && mt(
830
+ g && u && ht(
811
831
  g.map((x) => ({
812
832
  ...x,
813
833
  elementId: u
814
834
  }))
815
835
  );
816
- }, []), B(() => {
836
+ }, []), P(() => {
817
837
  i.update = !0;
818
- }), /* @__PURE__ */ l(R, { children: s() ? /* @__PURE__ */ P(R, { children: [
819
- /* @__PURE__ */ l(Tt, { block: a(), context: e.context }),
838
+ }), /* @__PURE__ */ l(R, { children: s() ? /* @__PURE__ */ B(R, { children: [
839
+ /* @__PURE__ */ l(wt, { block: a(), context: e.context }),
820
840
  (m = t == null ? void 0 : t()) != null && m.noWrap ? /* @__PURE__ */ l(R, { children: /* @__PURE__ */ l(
821
841
  pe,
822
842
  {
@@ -831,7 +851,7 @@ function _(e) {
831
851
  isInteractive: c().isInteractive
832
852
  }
833
853
  ) }) : /* @__PURE__ */ l(R, { children: n() ? /* @__PURE__ */ l(R, { children: (f = n()) == null ? void 0 : f.map((u, g) => /* @__PURE__ */ l(
834
- Nt,
854
+ Ft,
835
855
  {
836
856
  repeatContext: u.context,
837
857
  block: u.block,
@@ -839,8 +859,8 @@ function _(e) {
839
859
  linkComponent: e.linkComponent
840
860
  },
841
861
  g
842
- )) }) : /* @__PURE__ */ P(
843
- Pt,
862
+ )) }) : /* @__PURE__ */ B(
863
+ At,
844
864
  {
845
865
  Wrapper: r(),
846
866
  block: a(),
@@ -875,7 +895,7 @@ function _(e) {
875
895
  ) })
876
896
  ] }) : null });
877
897
  }
878
- function Wt(e) {
898
+ function $t(e) {
879
899
  function t() {
880
900
  var o;
881
901
  return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
@@ -906,7 +926,7 @@ function Wt(e) {
906
926
  "*"
907
927
  ));
908
928
  }
909
- return /* @__PURE__ */ P(R, { children: [
929
+ return /* @__PURE__ */ B(R, { children: [
910
930
  /* @__PURE__ */ l(
911
931
  e.BlocksWrapper,
912
932
  {
@@ -932,7 +952,7 @@ function D(e) {
932
952
  var i, o, a;
933
953
  const t = ge(ue), n = ge(Be);
934
954
  return /* @__PURE__ */ l(
935
- Wt,
955
+ $t,
936
956
  {
937
957
  blocks: e.blocks,
938
958
  parent: e.parent,
@@ -953,8 +973,8 @@ function D(e) {
953
973
  }
954
974
  );
955
975
  }
956
- const Ft = (e) => `builder-columns ${e}-breakpoints`;
957
- function $t(e) {
976
+ const Dt = (e) => `builder-columns ${e}-breakpoints`;
977
+ function Lt(e) {
958
978
  var A, O;
959
979
  const [t, n] = T(
960
980
  () => typeof e.space == "number" ? e.space || 0 : 20
@@ -1026,7 +1046,7 @@ function $t(e) {
1026
1046
  }
1027
1047
  function y(k) {
1028
1048
  var N, p;
1029
- return De(
1049
+ return Le(
1030
1050
  ((p = (N = e.builderContext.content) == null ? void 0 : N.meta) == null ? void 0 : p.breakpoints) || {}
1031
1051
  )[k].max;
1032
1052
  }
@@ -1063,14 +1083,14 @@ function $t(e) {
1063
1083
  href: k.link
1064
1084
  } : {},
1065
1085
  [H()]: "builder-column",
1066
- style: Fe(x(w))
1086
+ style: $e(x(w))
1067
1087
  };
1068
1088
  }
1069
- return /* @__PURE__ */ P(R, { children: [
1070
- /* @__PURE__ */ P(
1089
+ return /* @__PURE__ */ B(R, { children: [
1090
+ /* @__PURE__ */ B(
1071
1091
  "div",
1072
1092
  {
1073
- className: Ft((A = e.builderBlock) == null ? void 0 : A.id) + " div-fe220f58",
1093
+ className: Dt((A = e.builderBlock) == null ? void 0 : A.id) + " div-fe220f58",
1074
1094
  style: g(),
1075
1095
  children: [
1076
1096
  /* @__PURE__ */ l(
@@ -1113,17 +1133,17 @@ function $t(e) {
1113
1133
  }` })
1114
1134
  ] });
1115
1135
  }
1116
- function Dt(e) {
1136
+ function Ot(e) {
1117
1137
  return /* @__PURE__ */ l("span", { children: e.children });
1118
1138
  }
1119
1139
  function ye(e) {
1120
1140
  return e.replace(/http(s)?:/, "");
1121
1141
  }
1122
- function Lt(e = "", t, n) {
1142
+ function jt(e = "", t, n) {
1123
1143
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1124
1144
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1125
1145
  }
1126
- function Ot(e, t) {
1146
+ function Mt(e, t) {
1127
1147
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1128
1148
  return e;
1129
1149
  if (t === "master")
@@ -1142,11 +1162,11 @@ function ie(e) {
1142
1162
  if (e.match(/builder\.io/)) {
1143
1163
  let n = e;
1144
1164
  const i = Number(e.split("?width=")[1]);
1145
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Lt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1165
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${jt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1146
1166
  }
1147
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ot(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1167
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Mt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1148
1168
  }
1149
- function jt(e) {
1169
+ function Ut(e) {
1150
1170
  var o, a, r, s, d, c;
1151
1171
  function t() {
1152
1172
  var f;
@@ -1176,9 +1196,9 @@ function jt(e) {
1176
1196
  };
1177
1197
  return e.aspectRatio ? m : void 0;
1178
1198
  }
1179
- return /* @__PURE__ */ P(R, { children: [
1180
- /* @__PURE__ */ P(R, { children: [
1181
- /* @__PURE__ */ P("picture", { children: [
1199
+ return /* @__PURE__ */ B(R, { children: [
1200
+ /* @__PURE__ */ B(R, { children: [
1201
+ /* @__PURE__ */ B("picture", { children: [
1182
1202
  n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
1183
1203
  /* @__PURE__ */ l(
1184
1204
  "img",
@@ -1230,7 +1250,7 @@ function jt(e) {
1230
1250
  }` })
1231
1251
  ] });
1232
1252
  }
1233
- function Mt(e) {
1253
+ function Ht(e) {
1234
1254
  return /* @__PURE__ */ l(
1235
1255
  "section",
1236
1256
  {
@@ -1311,7 +1331,7 @@ const oe = {
1311
1331
  }
1312
1332
  }
1313
1333
  }]
1314
- }, Ut = {
1334
+ }, qt = {
1315
1335
  name: "Builder:Accordion",
1316
1336
  canHaveChildren: !0,
1317
1337
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1376,7 +1396,7 @@ const oe = {
1376
1396
  builderLinkComponent: !0
1377
1397
  }
1378
1398
  }, xe = (e) => e.toString();
1379
- function Ht(e) {
1399
+ function Kt(e) {
1380
1400
  var h;
1381
1401
  const [t, n] = T(() => []);
1382
1402
  function i() {
@@ -1454,7 +1474,7 @@ function Ht(e) {
1454
1474
  function m(f) {
1455
1475
  t.includes(f) ? n(i() ? [] : t.filter((u) => u !== f)) : n(i() ? [f] : t.concat(f));
1456
1476
  }
1457
- return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (h = e.items) == null ? void 0 : h.map((f, u) => /* @__PURE__ */ P(R, { children: [
1477
+ return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (h = e.items) == null ? void 0 : h.map((f, u) => /* @__PURE__ */ B(R, { children: [
1458
1478
  /* @__PURE__ */ l(
1459
1479
  "div",
1460
1480
  {
@@ -1499,7 +1519,7 @@ function Ht(e) {
1499
1519
  ) : null
1500
1520
  ] })) });
1501
1521
  }
1502
- const qt = {
1522
+ const _t = {
1503
1523
  name: "Core:Button",
1504
1524
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1505
1525
  defaultStyles: {
@@ -1535,7 +1555,7 @@ const qt = {
1535
1555
  shouldReceiveBuilderProps: {
1536
1556
  builderLinkComponent: !0
1537
1557
  }
1538
- }, Kt = {
1558
+ }, zt = {
1539
1559
  // TODO: ways to statically preprocess JSON for references, functions, etc
1540
1560
  name: "Columns",
1541
1561
  isRSC: !0,
@@ -1742,13 +1762,13 @@ const qt = {
1742
1762
  builderComponents: !0,
1743
1763
  builderLinkComponent: !0
1744
1764
  }
1745
- }, _t = {
1765
+ }, Jt = {
1746
1766
  name: "Fragment",
1747
1767
  static: !0,
1748
1768
  hidden: !0,
1749
1769
  canHaveChildren: !0,
1750
1770
  noWrap: !0
1751
- }, zt = {
1771
+ }, Yt = {
1752
1772
  name: "Image",
1753
1773
  static: !0,
1754
1774
  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",
@@ -1856,7 +1876,7 @@ const qt = {
1856
1876
  shouldReceiveBuilderProps: {
1857
1877
  builderBlock: !0
1858
1878
  }
1859
- }, Jt = {
1879
+ }, Gt = {
1860
1880
  name: "Core:Section",
1861
1881
  static: !0,
1862
1882
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1895,7 +1915,7 @@ const qt = {
1895
1915
  }
1896
1916
  }
1897
1917
  }]
1898
- }, Yt = {
1918
+ }, Qt = {
1899
1919
  name: "Slot",
1900
1920
  isRSC: !0,
1901
1921
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1912,7 +1932,7 @@ const qt = {
1912
1932
  builderContext: !0
1913
1933
  }
1914
1934
  };
1915
- function Gt(e) {
1935
+ function Xt(e) {
1916
1936
  var t, n, i;
1917
1937
  return /* @__PURE__ */ l(
1918
1938
  "div",
@@ -1935,7 +1955,7 @@ function Gt(e) {
1935
1955
  }
1936
1956
  );
1937
1957
  }
1938
- const Qt = {
1958
+ const Zt = {
1939
1959
  name: "Symbol",
1940
1960
  noWrap: !0,
1941
1961
  static: !0,
@@ -2012,7 +2032,7 @@ const Qt = {
2012
2032
  text: "New tab content "
2013
2033
  }
2014
2034
  }
2015
- }, Xt = {
2035
+ }, en = {
2016
2036
  name: "Builder: Tabs",
2017
2037
  inputs: [{
2018
2038
  name: "tabs",
@@ -2116,7 +2136,7 @@ const Qt = {
2116
2136
  builderLinkComponent: !0
2117
2137
  }
2118
2138
  };
2119
- function Zt(e) {
2139
+ function tn(e) {
2120
2140
  var a;
2121
2141
  const [t, n] = T(
2122
2142
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
@@ -2127,7 +2147,7 @@ function Zt(e) {
2127
2147
  function o(r) {
2128
2148
  r === t && e.collapsible ? n(-1) : n(r);
2129
2149
  }
2130
- return /* @__PURE__ */ P("div", { children: [
2150
+ return /* @__PURE__ */ B("div", { children: [
2131
2151
  /* @__PURE__ */ l(
2132
2152
  "div",
2133
2153
  {
@@ -2175,7 +2195,7 @@ function Zt(e) {
2175
2195
  ) }) : null
2176
2196
  ] });
2177
2197
  }
2178
- const en = {
2198
+ const nn = {
2179
2199
  shouldReceiveBuilderProps: {
2180
2200
  builderBlock: !1
2181
2201
  },
@@ -2197,7 +2217,7 @@ const en = {
2197
2217
  textAlign: "center"
2198
2218
  }
2199
2219
  };
2200
- function tn(e) {
2220
+ function on(e) {
2201
2221
  var t;
2202
2222
  return /* @__PURE__ */ l(
2203
2223
  "div",
@@ -2210,7 +2230,7 @@ function tn(e) {
2210
2230
  }
2211
2231
  );
2212
2232
  }
2213
- const nn = {
2233
+ const an = {
2214
2234
  name: "Custom Code",
2215
2235
  static: !0,
2216
2236
  requiredPermissions: ["editCode"],
@@ -2233,9 +2253,9 @@ const nn = {
2233
2253
  advanced: !0
2234
2254
  }]
2235
2255
  };
2236
- function on(e) {
2256
+ function rn(e) {
2237
2257
  const t = Z(null), [n, i] = T(() => []), [o, a] = T(() => []);
2238
- return B(() => {
2258
+ return P(() => {
2239
2259
  var s;
2240
2260
  if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
2241
2261
  return;
@@ -2271,7 +2291,7 @@ function on(e) {
2271
2291
  }
2272
2292
  );
2273
2293
  }
2274
- const an = {
2294
+ const ln = {
2275
2295
  name: "Embed",
2276
2296
  static: !0,
2277
2297
  inputs: [{
@@ -2286,8 +2306,8 @@ const an = {
2286
2306
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2287
2307
  hideFromUI: !0
2288
2308
  }]
2289
- }, rn = ["text/javascript", "application/javascript", "application/ecmascript"], ln = (e) => rn.includes(e.type);
2290
- function sn(e) {
2309
+ }, sn = ["text/javascript", "application/javascript", "application/ecmascript"], cn = (e) => sn.includes(e.type);
2310
+ function dn(e) {
2291
2311
  const t = Z(null), [n, i] = T(() => []), [o, a] = T(() => []), [r, s] = T(() => !1);
2292
2312
  function d() {
2293
2313
  if (!t.current || !t.current.getElementsByTagName)
@@ -2299,7 +2319,7 @@ function sn(e) {
2299
2319
  n.push(h.src);
2300
2320
  const f = document.createElement("script");
2301
2321
  f.async = !0, f.src = h.src, document.head.appendChild(f);
2302
- } else if (ln(h) && !o.includes(h.innerText))
2322
+ } else if (cn(h) && !o.includes(h.innerText))
2303
2323
  try {
2304
2324
  o.push(h.innerText), new Function(h.innerText)();
2305
2325
  } catch (f) {
@@ -2307,7 +2327,7 @@ function sn(e) {
2307
2327
  }
2308
2328
  }
2309
2329
  }
2310
- return B(() => {
2330
+ return P(() => {
2311
2331
  t.current && !r && (s(!0), d());
2312
2332
  }, [t.current, r]), /* @__PURE__ */ l(
2313
2333
  "div",
@@ -2318,7 +2338,7 @@ function sn(e) {
2318
2338
  }
2319
2339
  );
2320
2340
  }
2321
- const cn = {
2341
+ const un = {
2322
2342
  name: "Form:Form",
2323
2343
  // editableTags: ['builder-form-error']
2324
2344
  defaults: {
@@ -2555,14 +2575,14 @@ const cn = {
2555
2575
  builderComponents: !0,
2556
2576
  builderLinkComponent: !0
2557
2577
  }
2558
- }, dn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], un = () => {
2578
+ }, mn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], fn = () => {
2559
2579
  const e = process.env.NODE_ENV || "production";
2560
- return dn.includes(e) ? e : "production";
2561
- }, mn = (e, t, n) => {
2580
+ return mn.includes(e) ? e : "production";
2581
+ }, hn = (e, t, n) => {
2562
2582
  const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
2563
2583
  return i === void 0 || i === e ? n : i;
2564
2584
  };
2565
- function fn(e) {
2585
+ function gn(e) {
2566
2586
  var h, f;
2567
2587
  const t = Z(null), [n, i] = T(() => "unsubmitted"), [o, a] = T(() => null), [r, s] = T(() => "");
2568
2588
  function d(u) {
@@ -2621,7 +2641,7 @@ function fn(e) {
2621
2641
  else {
2622
2642
  const p = {};
2623
2643
  Array.from(O).forEach(({ value: b, key: v }) => {
2624
- Ee(p, v, b);
2644
+ Pe(p, v, b);
2625
2645
  }), V = JSON.stringify(p);
2626
2646
  }
2627
2647
  k && k !== "multipart/form-data" && (g && ((x = e.action) != null && x.includes("zapier.com")) || (E["content-type"] = k));
@@ -2629,7 +2649,7 @@ function fn(e) {
2629
2649
  if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
2630
2650
  return;
2631
2651
  i("sending");
2632
- const N = `${un() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2652
+ const N = `${fn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2633
2653
  e.sendSubmissionsToEmail || ""
2634
2654
  )}&name=${encodeURIComponent(e.name || "")}`;
2635
2655
  fetch(
@@ -2640,7 +2660,7 @@ function fn(e) {
2640
2660
  let b;
2641
2661
  const v = p.headers.get("content-type");
2642
2662
  if (v && v.indexOf("application/json") !== -1 ? b = await p.json() : b = await p.text(), !p.ok && e.errorMessagePath) {
2643
- let S = mn(b, e.errorMessagePath);
2663
+ let S = hn(b, e.errorMessagePath);
2644
2664
  S && (typeof S != "string" && (S = JSON.stringify(S)), s(S), d({ formErrorMessage: S }));
2645
2665
  }
2646
2666
  if (a(b), i(p.ok ? "success" : "error"), p.ok) {
@@ -2671,9 +2691,9 @@ function fn(e) {
2671
2691
  );
2672
2692
  }
2673
2693
  }
2674
- return /* @__PURE__ */ P(R, { children: [
2694
+ return /* @__PURE__ */ B(R, { children: [
2675
2695
  " ",
2676
- /* @__PURE__ */ P(
2696
+ /* @__PURE__ */ B(
2677
2697
  "form",
2678
2698
  {
2679
2699
  validate: e.validate,
@@ -2727,7 +2747,7 @@ function fn(e) {
2727
2747
  " "
2728
2748
  ] });
2729
2749
  }
2730
- const hn = {
2750
+ const bn = {
2731
2751
  name: "Form:Input",
2732
2752
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2733
2753
  inputs: [
@@ -2779,8 +2799,8 @@ const hn = {
2779
2799
  borderColor: "#ccc"
2780
2800
  }
2781
2801
  };
2782
- function gn(e) {
2783
- return /* @__PURE__ */ Re(
2802
+ function pn(e) {
2803
+ return /* @__PURE__ */ Ee(
2784
2804
  "input",
2785
2805
  {
2786
2806
  ...e.attributes,
@@ -2794,7 +2814,7 @@ function gn(e) {
2794
2814
  }
2795
2815
  );
2796
2816
  }
2797
- const bn = {
2817
+ const yn = {
2798
2818
  name: "Form:Select",
2799
2819
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2800
2820
  defaultStyles: {
@@ -2837,9 +2857,9 @@ const bn = {
2837
2857
  static: !0,
2838
2858
  noWrap: !0
2839
2859
  };
2840
- function pn(e) {
2860
+ function xn(e) {
2841
2861
  var t;
2842
- return /* @__PURE__ */ Re(
2862
+ return /* @__PURE__ */ Ee(
2843
2863
  "select",
2844
2864
  {
2845
2865
  ...e.attributes,
@@ -2852,7 +2872,7 @@ function pn(e) {
2852
2872
  (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2853
2873
  );
2854
2874
  }
2855
- const yn = {
2875
+ const vn = {
2856
2876
  name: "Form:SubmitButton",
2857
2877
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2858
2878
  defaultStyles: {
@@ -2878,10 +2898,10 @@ const yn = {
2878
2898
  // TODO: defaultChildren
2879
2899
  // canHaveChildren: true,
2880
2900
  };
2881
- function xn(e) {
2901
+ function Sn(e) {
2882
2902
  return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
2883
2903
  }
2884
- const vn = {
2904
+ const kn = {
2885
2905
  name: "Form:TextArea",
2886
2906
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
2887
2907
  inputs: [{
@@ -2918,7 +2938,7 @@ const vn = {
2918
2938
  static: !0,
2919
2939
  noWrap: !0
2920
2940
  };
2921
- function Sn(e) {
2941
+ function Cn(e) {
2922
2942
  return /* @__PURE__ */ l(
2923
2943
  "textarea",
2924
2944
  {
@@ -2931,7 +2951,7 @@ function Sn(e) {
2931
2951
  }
2932
2952
  );
2933
2953
  }
2934
- const kn = {
2954
+ const Tn = {
2935
2955
  // friendlyName?
2936
2956
  name: "Raw:Img",
2937
2957
  hideFromInsertMenu: !0,
@@ -2946,7 +2966,7 @@ const kn = {
2946
2966
  noWrap: !0,
2947
2967
  static: !0
2948
2968
  };
2949
- function Cn(e) {
2969
+ function In(e) {
2950
2970
  return /* @__PURE__ */ l(
2951
2971
  "img",
2952
2972
  {
@@ -2961,7 +2981,7 @@ function Cn(e) {
2961
2981
  $() && e.imgSrc || "default-key"
2962
2982
  );
2963
2983
  }
2964
- const Tn = {
2984
+ const wn = {
2965
2985
  name: "Video",
2966
2986
  canHaveChildren: !0,
2967
2987
  defaultStyles: {
@@ -3046,7 +3066,7 @@ const Tn = {
3046
3066
  builderBlock: !0
3047
3067
  }
3048
3068
  };
3049
- function In(e) {
3069
+ function Rn(e) {
3050
3070
  var i, o, a, r, s, d, c;
3051
3071
  function t() {
3052
3072
  return {
@@ -3072,7 +3092,7 @@ function In(e) {
3072
3092
  ...t()
3073
3093
  };
3074
3094
  }
3075
- return /* @__PURE__ */ P(
3095
+ return /* @__PURE__ */ B(
3076
3096
  "div",
3077
3097
  {
3078
3098
  style: {
@@ -3147,64 +3167,64 @@ function In(e) {
3147
3167
  }
3148
3168
  );
3149
3169
  }
3150
- const wn = () => [{
3151
- component: on,
3152
- ...nn
3153
- }, {
3154
- component: sn,
3170
+ const En = () => [{
3171
+ component: rn,
3155
3172
  ...an
3156
3173
  }, {
3157
- component: fn,
3158
- ...cn
3174
+ component: dn,
3175
+ ...ln
3159
3176
  }, {
3160
3177
  component: gn,
3161
- ...hn
3162
- }, {
3163
- component: xn,
3164
- ...yn
3178
+ ...un
3165
3179
  }, {
3166
3180
  component: pn,
3167
3181
  ...bn
3168
3182
  }, {
3169
3183
  component: Sn,
3170
3184
  ...vn
3185
+ }, {
3186
+ component: xn,
3187
+ ...yn
3171
3188
  }, {
3172
3189
  component: Cn,
3173
3190
  ...kn
3174
3191
  }, {
3175
3192
  component: In,
3176
3193
  ...Tn
3177
- }], ve = () => [{
3178
- component: it,
3179
- ...qt
3180
- }, {
3181
- component: $t,
3182
- ...Kt
3183
3194
  }, {
3184
- component: Dt,
3195
+ component: Rn,
3196
+ ...wn
3197
+ }], ve = () => [{
3198
+ component: ot,
3185
3199
  ..._t
3186
3200
  }, {
3187
- component: jt,
3201
+ component: Lt,
3188
3202
  ...zt
3189
3203
  }, {
3190
- component: Mt,
3204
+ component: Ot,
3191
3205
  ...Jt
3192
3206
  }, {
3193
- component: Gt,
3207
+ component: Ut,
3194
3208
  ...Yt
3195
3209
  }, {
3196
- component: Yn,
3210
+ component: Ht,
3211
+ ...Gt
3212
+ }, {
3213
+ component: Xt,
3197
3214
  ...Qt
3215
+ }, {
3216
+ component: Qn,
3217
+ ...Zt
3218
+ }, {
3219
+ component: on,
3220
+ ...nn
3198
3221
  }, {
3199
3222
  component: tn,
3200
3223
  ...en
3201
3224
  }, {
3202
- component: Zt,
3203
- ...Xt
3204
- }, {
3205
- component: Ht,
3206
- ...Ut
3207
- }, ...wn()], Rn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3225
+ component: Kt,
3226
+ ...qt
3227
+ }, ...En()], Pn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3208
3228
  function getAndSetVariantId() {
3209
3229
  function setCookie(name, value, days) {
3210
3230
  let expires = '';
@@ -3260,7 +3280,7 @@ const wn = () => [{
3260
3280
  }).join('');
3261
3281
  styleEl.innerHTML = newStyleStr;
3262
3282
  }
3263
- }`, En = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3283
+ }`, Bn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3264
3284
  if (!navigator.cookieEnabled) {
3265
3285
  return;
3266
3286
  }
@@ -3294,26 +3314,26 @@ const wn = () => [{
3294
3314
  thisScriptEl?.remove();
3295
3315
  }
3296
3316
  return;
3297
- }`, Oe = "builderIoAbTest", je = "builderIoRenderContent", J = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3317
+ }`, je = "builderIoAbTest", Me = "builderIoRenderContent", J = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3298
3318
  ...t,
3299
3319
  testVariationId: t.id,
3300
3320
  id: e == null ? void 0 : e.id
3301
- })), Bn = ({
3321
+ })), Vn = ({
3302
3322
  canTrack: e,
3303
3323
  content: t
3304
- }) => !(!(J(t).length > 0) || !e || G()), Pn = (e) => e === "react" || e === "reactNative", Me = Pn(K), Vn = () => `
3305
- window.${Oe} = ${Rn}
3306
- window.${je} = ${En}
3307
- `, An = (e, t) => `
3308
- window.${Oe}(
3309
- "${t}",${JSON.stringify(e)}, ${Me}
3310
- )`, Nn = ({
3324
+ }) => !(!(J(t).length > 0) || !e || G()), An = (e) => e === "react" || e === "reactNative", Ue = An(K), Nn = () => `
3325
+ window.${je} = ${Pn}
3326
+ window.${Me} = ${Bn}
3327
+ `, Wn = (e, t) => `
3328
+ window.${je}(
3329
+ "${t}",${JSON.stringify(e)}, ${Ue}
3330
+ )`, Fn = ({
3311
3331
  contentId: e,
3312
3332
  variationId: t
3313
- }) => `window.${je}(
3314
- "${t}", "${e}", ${Me}
3333
+ }) => `window.${Me}(
3334
+ "${t}", "${e}", ${Ue}
3315
3335
  )`;
3316
- function se(e) {
3336
+ function ce(e) {
3317
3337
  return /* @__PURE__ */ l(
3318
3338
  "script",
3319
3339
  {
@@ -3326,7 +3346,7 @@ function se(e) {
3326
3346
  function Se(e) {
3327
3347
  return Math.round(e * 1e3) / 1e3;
3328
3348
  }
3329
- const Wn = (e, t, n = !0) => {
3349
+ const $n = (e, t, n = !0) => {
3330
3350
  if (!(e instanceof HTMLElement))
3331
3351
  return null;
3332
3352
  let i = n ? e : e.parentElement;
@@ -3337,7 +3357,7 @@ const Wn = (e, t, n = !0) => {
3337
3357
  return i;
3338
3358
  } while (i = i.parentElement);
3339
3359
  return null;
3340
- }, Fn = (e) => Wn(e, (t) => {
3360
+ }, Dn = (e) => $n(e, (t) => {
3341
3361
  const n = t.getAttribute("builder-id") || t.id;
3342
3362
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3343
3363
  }), ke = ({
@@ -3349,8 +3369,8 @@ const Wn = (e, t, n = !0) => {
3349
3369
  x: a,
3350
3370
  y: r
3351
3371
  };
3352
- }, $n = (e) => {
3353
- const t = e.target, n = t && Fn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3372
+ }, Ln = (e) => {
3373
+ const t = e.target, n = t && Dn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3354
3374
  return {
3355
3375
  targetBuilderElement: i || void 0,
3356
3376
  metadata: {
@@ -3365,7 +3385,7 @@ const Wn = (e, t, n = !0) => {
3365
3385
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3366
3386
  }
3367
3387
  };
3368
- }, Dn = (e) => {
3388
+ }, On = (e) => {
3369
3389
  var a, r;
3370
3390
  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;
3371
3391
  let o = "";
@@ -3391,15 +3411,15 @@ font-weight: ${s};
3391
3411
  `.trim());
3392
3412
  }
3393
3413
  return o;
3394
- }, Ln = ({
3414
+ }, jn = ({
3395
3415
  customFonts: e
3396
3416
  }) => {
3397
3417
  var t;
3398
- return ((t = e == null ? void 0 : e.map((n) => Dn(n))) == null ? void 0 : t.join(" ")) || "";
3399
- }, On = ({
3418
+ return ((t = e == null ? void 0 : e.map((n) => On(n))) == null ? void 0 : t.join(" ")) || "";
3419
+ }, Mn = ({
3400
3420
  cssCode: e,
3401
3421
  contentId: t
3402
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", jn = `
3422
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Un = `
3403
3423
  .builder-button {
3404
3424
  all: unset;
3405
3425
  }
@@ -3416,8 +3436,8 @@ font-weight: ${s};
3416
3436
  text-align: inherit;
3417
3437
  font-family: inherit;
3418
3438
  }
3419
- `, Mn = (e) => e ? "" : jn, Un = (e) => `variant-${e}`;
3420
- function Hn(e) {
3439
+ `, Hn = (e) => e ? "" : Un, qn = (e) => `variant-${e}`;
3440
+ function Kn(e) {
3421
3441
  var V, A, O, k, w, N, p;
3422
3442
  const t = Z(null);
3423
3443
  function n(b) {
@@ -3461,7 +3481,7 @@ function Hn(e) {
3461
3481
  () => e.contentWrapper || "div"
3462
3482
  );
3463
3483
  function s(b) {
3464
- return Je({
3484
+ return Ye({
3465
3485
  model: e.model,
3466
3486
  trustedHosts: e.trustedHosts,
3467
3487
  callbacks: {
@@ -3475,7 +3495,7 @@ function Hn(e) {
3475
3495
  });
3476
3496
  },
3477
3497
  animation: (v) => {
3478
- Ne(v);
3498
+ We(v);
3479
3499
  },
3480
3500
  contentUpdate: (v) => {
3481
3501
  i(v);
@@ -3509,7 +3529,7 @@ function Hn(e) {
3509
3529
  contentId: I,
3510
3530
  apiKey: e.apiKey,
3511
3531
  variationId: C !== I ? C : void 0,
3512
- ...$n(b),
3532
+ ...Ln(b),
3513
3533
  unique: !u
3514
3534
  });
3515
3535
  }
@@ -3524,9 +3544,9 @@ function Hn(e) {
3524
3544
  h[I] = !0;
3525
3545
  const j = W.replace(
3526
3546
  /{{([^}]+)}}/g,
3527
- (F, Ue) => String(
3547
+ (F, He) => String(
3528
3548
  q({
3529
- code: Ue,
3549
+ code: He,
3530
3550
  context: e.context || {},
3531
3551
  localState: void 0,
3532
3552
  rootState: e.builderContextSignal.rootState,
@@ -3535,7 +3555,7 @@ function Hn(e) {
3535
3555
  })
3536
3556
  )
3537
3557
  );
3538
- Ye(j).then((F) => F.json()).then((F) => {
3558
+ Ge(j).then((F) => F.json()).then((F) => {
3539
3559
  n({
3540
3560
  [I]: F
3541
3561
  }), c[I] = !0;
@@ -3552,7 +3572,7 @@ function Hn(e) {
3552
3572
  "builder:component:stateChange",
3553
3573
  {
3554
3574
  detail: {
3555
- state: ce(e.builderContextSignal.rootState),
3575
+ state: Te(e.builderContextSignal.rootState),
3556
3576
  ref: {
3557
3577
  name: e.model
3558
3578
  }
@@ -3561,10 +3581,10 @@ function Hn(e) {
3561
3581
  )
3562
3582
  );
3563
3583
  }
3564
- return B(() => {
3584
+ return P(() => {
3565
3585
  var b, v;
3566
3586
  if (G()) {
3567
- if ($() && (window.addEventListener("message", s), Ke(), _e({
3587
+ if ($() && (window.addEventListener("message", s), _e(), ze({
3568
3588
  ...e.locale ? {
3569
3589
  locale: e.locale
3570
3590
  } : {},
@@ -3578,7 +3598,7 @@ function Hn(e) {
3578
3598
  e.builderContextSignal.componentInfos
3579
3599
  ).forEach((C) => {
3580
3600
  var W;
3581
- const I = ze(C);
3601
+ const I = Je(C);
3582
3602
  (W = window.parent) == null || W.postMessage(I, "*");
3583
3603
  }), window.addEventListener(
3584
3604
  "builder:component:stateChangeListenerActivated",
@@ -3593,11 +3613,11 @@ function Hn(e) {
3593
3613
  variationId: C !== I ? C : void 0
3594
3614
  });
3595
3615
  }
3596
- if (Te() && !$()) {
3616
+ if (Ie() && !$()) {
3597
3617
  const C = new URL(location.href).searchParams, I = C.get("builder.preview"), W = C.get(
3598
3618
  `builder.overrides.${I}`
3599
3619
  ), j = C.get("apiKey") || C.get("builder.space");
3600
- I === e.model && j === e.apiKey && (!e.content || W === e.content.id) && Ie({
3620
+ I === e.model && j === e.apiKey && (!e.content || W === e.content.id) && we({
3601
3621
  model: e.model,
3602
3622
  apiKey: e.apiKey,
3603
3623
  apiVersion: e.builderContextSignal.apiVersion
@@ -3606,25 +3626,25 @@ function Hn(e) {
3606
3626
  });
3607
3627
  }
3608
3628
  }
3609
- }, []), B(() => {
3629
+ }, []), P(() => {
3610
3630
  e.apiKey || X.error(
3611
3631
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3612
3632
  ), d(), y(), E();
3613
- }, []), B(() => {
3633
+ }, []), P(() => {
3614
3634
  e.content && i(e.content);
3615
- }, [e.content]), B(() => {
3635
+ }, [e.content]), P(() => {
3616
3636
  d();
3617
- }, [(A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.jsCode]), B(() => {
3637
+ }, [(A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.jsCode]), P(() => {
3618
3638
  y();
3619
- }, [(k = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : k.httpRequests]), B(() => {
3639
+ }, [(k = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : k.httpRequests]), P(() => {
3620
3640
  E();
3621
- }, [e.builderContextSignal.rootState]), B(() => {
3641
+ }, [e.builderContextSignal.rootState]), P(() => {
3622
3642
  e.data && n(e.data);
3623
- }, [e.data]), B(() => {
3643
+ }, [e.data]), P(() => {
3624
3644
  e.locale && n({
3625
3645
  locale: e.locale
3626
3646
  });
3627
- }, [e.locale]), B(() => () => {
3647
+ }, [e.locale]), P(() => () => {
3628
3648
  G() && (window.removeEventListener("message", s), window.removeEventListener(
3629
3649
  "builder:component:stateChangeListenerActivated",
3630
3650
  E
@@ -3638,24 +3658,24 @@ function Hn(e) {
3638
3658
  "builder-model": e.model,
3639
3659
  ...o(),
3640
3660
  ...e.contentWrapperProps,
3641
- className: Un(
3661
+ className: qn(
3642
3662
  ((N = e.content) == null ? void 0 : N.testVariationId) || ((p = e.content) == null ? void 0 : p.id)
3643
3663
  ),
3644
3664
  children: e.children
3645
3665
  }
3646
3666
  ) : null });
3647
3667
  }
3648
- function qn(e) {
3668
+ function _n(e) {
3649
3669
  const [t, n] = T(
3650
3670
  () => `
3651
- ${On({
3671
+ ${Mn({
3652
3672
  cssCode: e.cssCode,
3653
3673
  contentId: e.contentId
3654
3674
  })}
3655
- ${Ln({
3675
+ ${jn({
3656
3676
  customFonts: e.customFonts
3657
3677
  })}
3658
- ${Mn(e.isNestedRender)}
3678
+ ${Hn(e.isNestedRender)}
3659
3679
  `.trim()
3660
3680
  );
3661
3681
  return /* @__PURE__ */ l(
@@ -3667,7 +3687,7 @@ ${Mn(e.isNestedRender)}
3667
3687
  }
3668
3688
  );
3669
3689
  }
3670
- const Kn = ({
3690
+ const zn = ({
3671
3691
  content: e,
3672
3692
  data: t,
3673
3693
  locale: n
@@ -3684,7 +3704,7 @@ const Kn = ({
3684
3704
  locale: n
3685
3705
  } : {}
3686
3706
  };
3687
- }, _n = ({
3707
+ }, Jn = ({
3688
3708
  content: e,
3689
3709
  data: t
3690
3710
  }) => e ? {
@@ -3700,7 +3720,7 @@ function Ce(e) {
3700
3720
  const [t, n] = T(
3701
3721
  () => {
3702
3722
  var x, y;
3703
- return Nn({
3723
+ return Fn({
3704
3724
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3705
3725
  variationId: (x = e.content) == null ? void 0 : x.testVariationId,
3706
3726
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -3729,12 +3749,12 @@ function Ce(e) {
3729
3749
  {}
3730
3750
  )
3731
3751
  ), [r, s] = T(() => ({
3732
- content: _n({
3752
+ content: Jn({
3733
3753
  content: e.content,
3734
3754
  data: e.data
3735
3755
  }),
3736
3756
  localState: void 0,
3737
- rootState: Kn({
3757
+ rootState: zn({
3738
3758
  content: e.content,
3739
3759
  data: e.data,
3740
3760
  locale: e.locale
@@ -3765,8 +3785,8 @@ function Ce(e) {
3765
3785
  value: {
3766
3786
  registeredComponents: o
3767
3787
  },
3768
- children: /* @__PURE__ */ P(
3769
- Hn,
3788
+ children: /* @__PURE__ */ B(
3789
+ Kn,
3770
3790
  {
3771
3791
  nonce: e.nonce,
3772
3792
  content: e.content,
@@ -3785,7 +3805,7 @@ function Ce(e) {
3785
3805
  setBuilderContextSignal: s,
3786
3806
  children: [
3787
3807
  e.isSsrAbTest ? /* @__PURE__ */ l(
3788
- se,
3808
+ ce,
3789
3809
  {
3790
3810
  id: "builderio-variant-visibility",
3791
3811
  scriptStr: t,
@@ -3793,7 +3813,7 @@ function Ce(e) {
3793
3813
  }
3794
3814
  ) : null,
3795
3815
  /* @__PURE__ */ l(
3796
- qn,
3816
+ _n,
3797
3817
  {
3798
3818
  nonce: e.nonce || "",
3799
3819
  isNestedRender: e.isNestedRender,
@@ -3817,17 +3837,17 @@ function Ce(e) {
3817
3837
  }
3818
3838
  );
3819
3839
  }
3820
- function zn(e) {
3840
+ function Yn(e) {
3821
3841
  var r;
3822
3842
  const [t, n] = T(
3823
- () => Bn({
3843
+ () => Vn({
3824
3844
  canTrack: Q(e.canTrack),
3825
3845
  content: e.content
3826
3846
  })
3827
3847
  );
3828
3848
  function i() {
3829
3849
  var s;
3830
- return An(
3850
+ return Wn(
3831
3851
  J(e.content).map((d) => ({
3832
3852
  id: d.testVariationId,
3833
3853
  testRatio: d.testRatio
@@ -3843,23 +3863,23 @@ function zn(e) {
3843
3863
  return t ? {
3844
3864
  ...e.content,
3845
3865
  testVariationId: (s = e.content) == null ? void 0 : s.id
3846
- } : Ge({
3866
+ } : Qe({
3847
3867
  item: e.content,
3848
3868
  canTrack: Q(e.canTrack)
3849
3869
  });
3850
3870
  }
3851
- return B(() => {
3852
- }, []), B(() => {
3853
- }), /* @__PURE__ */ P(R, { children: [
3871
+ return P(() => {
3872
+ }, []), P(() => {
3873
+ }), /* @__PURE__ */ B(R, { children: [
3854
3874
  !e.isNestedRender && K !== "reactNative" ? /* @__PURE__ */ l(
3855
- se,
3875
+ ce,
3856
3876
  {
3857
3877
  id: "builderio-init-variants-fns",
3858
- scriptStr: Vn(),
3878
+ scriptStr: Nn(),
3859
3879
  nonce: e.nonce || ""
3860
3880
  }
3861
3881
  ) : null,
3862
- t ? /* @__PURE__ */ P(R, { children: [
3882
+ t ? /* @__PURE__ */ B(R, { children: [
3863
3883
  /* @__PURE__ */ l(
3864
3884
  te,
3865
3885
  {
@@ -3869,7 +3889,7 @@ function zn(e) {
3869
3889
  }
3870
3890
  ),
3871
3891
  /* @__PURE__ */ l(
3872
- se,
3892
+ ce,
3873
3893
  {
3874
3894
  id: "builderio-variants-visibility",
3875
3895
  scriptStr: i(),
@@ -3930,13 +3950,13 @@ function zn(e) {
3930
3950
  )
3931
3951
  ] });
3932
3952
  }
3933
- const Jn = async ({
3953
+ const Gn = async ({
3934
3954
  builderContextValue: e,
3935
3955
  symbol: t
3936
3956
  }) => {
3937
3957
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
3938
3958
  (e != null && e.apiKey))
3939
- return Ie({
3959
+ return we({
3940
3960
  model: t.model,
3941
3961
  apiKey: e.apiKey,
3942
3962
  apiVersion: e.apiVersion,
@@ -3949,7 +3969,7 @@ const Jn = async ({
3949
3969
  X.error("Could not fetch symbol content: ", n);
3950
3970
  });
3951
3971
  };
3952
- function Yn(e) {
3972
+ function Qn(e) {
3953
3973
  var s, d, c, m;
3954
3974
  function t() {
3955
3975
  return "div";
@@ -3971,18 +3991,18 @@ function Yn(e) {
3971
3991
  return (h = e.symbol) == null ? void 0 : h.content;
3972
3992
  });
3973
3993
  function r() {
3974
- o || Jn({
3994
+ o || Gn({
3975
3995
  symbol: e.symbol,
3976
3996
  builderContextValue: e.builderContext
3977
3997
  }).then((h) => {
3978
3998
  h && a(h);
3979
3999
  });
3980
4000
  }
3981
- return B(() => {
3982
- }, []), B(() => {
4001
+ return P(() => {
4002
+ }, []), P(() => {
3983
4003
  r();
3984
4004
  }, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
3985
- zn,
4005
+ Yn,
3986
4006
  {
3987
4007
  nonce: e.builderContext.nonce,
3988
4008
  isNestedRender: !0,
@@ -4010,13 +4030,13 @@ function Yn(e) {
4010
4030
  export {
4011
4031
  D as Blocks,
4012
4032
  ue as BuilderContext,
4013
- it as Button,
4014
- $t as Columns,
4015
- zn as Content,
4016
- Dt as Fragment,
4017
- jt as Image,
4018
- Mt as Section,
4019
- Yn as Symbol,
4020
- tn as Text,
4021
- In as Video
4033
+ ot as Button,
4034
+ Lt as Columns,
4035
+ Yn as Content,
4036
+ Ot as Fragment,
4037
+ Ut as Image,
4038
+ Ht as Section,
4039
+ Qn as Symbol,
4040
+ on as Text,
4041
+ Rn as Video
4022
4042
  };