@builder.io/sdk-react 2.0.2-0 → 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 +326 -303
  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-ab38d130.js → blocks-53095100.js} +460 -437
  14. package/lib/edge/{blocks-32559998.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-fef78a25.cjs → columns-1f80b3f3.cjs} +1 -1
  20. package/lib/edge/{columns-d0c6c772.js → columns-405f1d21.js} +3 -3
  21. package/lib/edge/{content-variants-95b6e700.js → content-variants-579677ec.js} +10 -10
  22. package/lib/edge/{content-variants-ccd386ed.cjs → content-variants-f380acc1.cjs} +1 -1
  23. package/lib/edge/{form-a156cc1d.cjs → form-2862b060.cjs} +1 -1
  24. package/lib/edge/{form-d460bf8a.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-5441ba3a.cjs → slot-19716d77.cjs} +1 -1
  42. package/lib/edge/{slot-dea3a8f3.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-0240dafd.cjs → tabs-4cb2e700.cjs} +1 -1
  46. package/lib/edge/{tabs-8a95f30b.js → tabs-e32544a6.js} +3 -3
  47. package/lib/node/blocks-exports.cjs +24 -24
  48. package/lib/node/blocks-exports.mjs +307 -284
  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,26 +757,27 @@ 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
  });
751
771
  }
752
772
  const [i, o] = T(() => ({
753
- value: null
773
+ value: null,
774
+ update: !1
754
775
  }));
755
776
  function a() {
756
777
  var g;
757
- if (i.value && !Te())
778
+ if (i.value && !i.update && !Ie())
758
779
  return i.value;
759
- 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({
760
781
  block: e.block,
761
782
  localState: e.context.localState,
762
783
  rootState: e.context.rootState,
@@ -764,7 +785,7 @@ function _(e) {
764
785
  context: e.context.context,
765
786
  shouldEvaluateBindings: !0
766
787
  });
767
- return i.value = u, u;
788
+ return i.value = u, i.update = !1, u;
768
789
  }
769
790
  function r() {
770
791
  var g;
@@ -787,11 +808,11 @@ function _(e) {
787
808
  blockChildren: (u = a().children) != null ? u : [],
788
809
  componentRef: (g = t == null ? void 0 : t()) == null ? void 0 : g.component,
789
810
  componentOptions: {
790
- ...ot(a()),
791
- ...kt(t(), a()),
792
- ...Ct(t(), e.context),
793
- ...vt(t(), e.linkComponent),
794
- ...St(
811
+ ...at(a()),
812
+ ...Tt(t(), a()),
813
+ ...It(t(), e.context),
814
+ ...kt(t(), e.linkComponent),
815
+ ...Ct(
795
816
  t(),
796
817
  e.registeredComponents
797
818
  )
@@ -804,16 +825,18 @@ function _(e) {
804
825
  isInteractive: !((y = t == null ? void 0 : t()) != null && y.isRSC)
805
826
  };
806
827
  }
807
- return B(() => {
828
+ return P(() => {
808
829
  const u = a().id, g = a().animations;
809
- g && u && mt(
830
+ g && u && ht(
810
831
  g.map((x) => ({
811
832
  ...x,
812
833
  elementId: u
813
834
  }))
814
835
  );
815
- }, []), /* @__PURE__ */ l(R, { children: s() ? /* @__PURE__ */ P(R, { children: [
816
- /* @__PURE__ */ l(Tt, { block: a(), context: e.context }),
836
+ }, []), P(() => {
837
+ i.update = !0;
838
+ }), /* @__PURE__ */ l(R, { children: s() ? /* @__PURE__ */ B(R, { children: [
839
+ /* @__PURE__ */ l(wt, { block: a(), context: e.context }),
817
840
  (m = t == null ? void 0 : t()) != null && m.noWrap ? /* @__PURE__ */ l(R, { children: /* @__PURE__ */ l(
818
841
  pe,
819
842
  {
@@ -828,7 +851,7 @@ function _(e) {
828
851
  isInteractive: c().isInteractive
829
852
  }
830
853
  ) }) : /* @__PURE__ */ l(R, { children: n() ? /* @__PURE__ */ l(R, { children: (f = n()) == null ? void 0 : f.map((u, g) => /* @__PURE__ */ l(
831
- Nt,
854
+ Ft,
832
855
  {
833
856
  repeatContext: u.context,
834
857
  block: u.block,
@@ -836,8 +859,8 @@ function _(e) {
836
859
  linkComponent: e.linkComponent
837
860
  },
838
861
  g
839
- )) }) : /* @__PURE__ */ P(
840
- Pt,
862
+ )) }) : /* @__PURE__ */ B(
863
+ At,
841
864
  {
842
865
  Wrapper: r(),
843
866
  block: a(),
@@ -872,7 +895,7 @@ function _(e) {
872
895
  ) })
873
896
  ] }) : null });
874
897
  }
875
- function Wt(e) {
898
+ function $t(e) {
876
899
  function t() {
877
900
  var o;
878
901
  return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
@@ -903,7 +926,7 @@ function Wt(e) {
903
926
  "*"
904
927
  ));
905
928
  }
906
- return /* @__PURE__ */ P(R, { children: [
929
+ return /* @__PURE__ */ B(R, { children: [
907
930
  /* @__PURE__ */ l(
908
931
  e.BlocksWrapper,
909
932
  {
@@ -929,7 +952,7 @@ function D(e) {
929
952
  var i, o, a;
930
953
  const t = ge(ue), n = ge(Be);
931
954
  return /* @__PURE__ */ l(
932
- Wt,
955
+ $t,
933
956
  {
934
957
  blocks: e.blocks,
935
958
  parent: e.parent,
@@ -950,8 +973,8 @@ function D(e) {
950
973
  }
951
974
  );
952
975
  }
953
- const Ft = (e) => `builder-columns ${e}-breakpoints`;
954
- function $t(e) {
976
+ const Dt = (e) => `builder-columns ${e}-breakpoints`;
977
+ function Lt(e) {
955
978
  var A, O;
956
979
  const [t, n] = T(
957
980
  () => typeof e.space == "number" ? e.space || 0 : 20
@@ -1023,7 +1046,7 @@ function $t(e) {
1023
1046
  }
1024
1047
  function y(k) {
1025
1048
  var N, p;
1026
- return De(
1049
+ return Le(
1027
1050
  ((p = (N = e.builderContext.content) == null ? void 0 : N.meta) == null ? void 0 : p.breakpoints) || {}
1028
1051
  )[k].max;
1029
1052
  }
@@ -1060,14 +1083,14 @@ function $t(e) {
1060
1083
  href: k.link
1061
1084
  } : {},
1062
1085
  [H()]: "builder-column",
1063
- style: Fe(x(w))
1086
+ style: $e(x(w))
1064
1087
  };
1065
1088
  }
1066
- return /* @__PURE__ */ P(R, { children: [
1067
- /* @__PURE__ */ P(
1089
+ return /* @__PURE__ */ B(R, { children: [
1090
+ /* @__PURE__ */ B(
1068
1091
  "div",
1069
1092
  {
1070
- 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",
1071
1094
  style: g(),
1072
1095
  children: [
1073
1096
  /* @__PURE__ */ l(
@@ -1110,17 +1133,17 @@ function $t(e) {
1110
1133
  }` })
1111
1134
  ] });
1112
1135
  }
1113
- function Dt(e) {
1136
+ function Ot(e) {
1114
1137
  return /* @__PURE__ */ l("span", { children: e.children });
1115
1138
  }
1116
1139
  function ye(e) {
1117
1140
  return e.replace(/http(s)?:/, "");
1118
1141
  }
1119
- function Lt(e = "", t, n) {
1142
+ function jt(e = "", t, n) {
1120
1143
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1121
1144
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1122
1145
  }
1123
- function Ot(e, t) {
1146
+ function Mt(e, t) {
1124
1147
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1125
1148
  return e;
1126
1149
  if (t === "master")
@@ -1139,11 +1162,11 @@ function ie(e) {
1139
1162
  if (e.match(/builder\.io/)) {
1140
1163
  let n = e;
1141
1164
  const i = Number(e.split("?width=")[1]);
1142
- 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(", ");
1143
1166
  }
1144
- 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;
1145
1168
  }
1146
- function jt(e) {
1169
+ function Ut(e) {
1147
1170
  var o, a, r, s, d, c;
1148
1171
  function t() {
1149
1172
  var f;
@@ -1173,9 +1196,9 @@ function jt(e) {
1173
1196
  };
1174
1197
  return e.aspectRatio ? m : void 0;
1175
1198
  }
1176
- return /* @__PURE__ */ P(R, { children: [
1177
- /* @__PURE__ */ P(R, { children: [
1178
- /* @__PURE__ */ P("picture", { children: [
1199
+ return /* @__PURE__ */ B(R, { children: [
1200
+ /* @__PURE__ */ B(R, { children: [
1201
+ /* @__PURE__ */ B("picture", { children: [
1179
1202
  n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
1180
1203
  /* @__PURE__ */ l(
1181
1204
  "img",
@@ -1227,7 +1250,7 @@ function jt(e) {
1227
1250
  }` })
1228
1251
  ] });
1229
1252
  }
1230
- function Mt(e) {
1253
+ function Ht(e) {
1231
1254
  return /* @__PURE__ */ l(
1232
1255
  "section",
1233
1256
  {
@@ -1308,7 +1331,7 @@ const oe = {
1308
1331
  }
1309
1332
  }
1310
1333
  }]
1311
- }, Ut = {
1334
+ }, qt = {
1312
1335
  name: "Builder:Accordion",
1313
1336
  canHaveChildren: !0,
1314
1337
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1373,7 +1396,7 @@ const oe = {
1373
1396
  builderLinkComponent: !0
1374
1397
  }
1375
1398
  }, xe = (e) => e.toString();
1376
- function Ht(e) {
1399
+ function Kt(e) {
1377
1400
  var h;
1378
1401
  const [t, n] = T(() => []);
1379
1402
  function i() {
@@ -1451,7 +1474,7 @@ function Ht(e) {
1451
1474
  function m(f) {
1452
1475
  t.includes(f) ? n(i() ? [] : t.filter((u) => u !== f)) : n(i() ? [f] : t.concat(f));
1453
1476
  }
1454
- 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: [
1455
1478
  /* @__PURE__ */ l(
1456
1479
  "div",
1457
1480
  {
@@ -1496,7 +1519,7 @@ function Ht(e) {
1496
1519
  ) : null
1497
1520
  ] })) });
1498
1521
  }
1499
- const qt = {
1522
+ const _t = {
1500
1523
  name: "Core:Button",
1501
1524
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1502
1525
  defaultStyles: {
@@ -1532,7 +1555,7 @@ const qt = {
1532
1555
  shouldReceiveBuilderProps: {
1533
1556
  builderLinkComponent: !0
1534
1557
  }
1535
- }, Kt = {
1558
+ }, zt = {
1536
1559
  // TODO: ways to statically preprocess JSON for references, functions, etc
1537
1560
  name: "Columns",
1538
1561
  isRSC: !0,
@@ -1739,13 +1762,13 @@ const qt = {
1739
1762
  builderComponents: !0,
1740
1763
  builderLinkComponent: !0
1741
1764
  }
1742
- }, _t = {
1765
+ }, Jt = {
1743
1766
  name: "Fragment",
1744
1767
  static: !0,
1745
1768
  hidden: !0,
1746
1769
  canHaveChildren: !0,
1747
1770
  noWrap: !0
1748
- }, zt = {
1771
+ }, Yt = {
1749
1772
  name: "Image",
1750
1773
  static: !0,
1751
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",
@@ -1853,7 +1876,7 @@ const qt = {
1853
1876
  shouldReceiveBuilderProps: {
1854
1877
  builderBlock: !0
1855
1878
  }
1856
- }, Jt = {
1879
+ }, Gt = {
1857
1880
  name: "Core:Section",
1858
1881
  static: !0,
1859
1882
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1892,7 +1915,7 @@ const qt = {
1892
1915
  }
1893
1916
  }
1894
1917
  }]
1895
- }, Yt = {
1918
+ }, Qt = {
1896
1919
  name: "Slot",
1897
1920
  isRSC: !0,
1898
1921
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1909,7 +1932,7 @@ const qt = {
1909
1932
  builderContext: !0
1910
1933
  }
1911
1934
  };
1912
- function Gt(e) {
1935
+ function Xt(e) {
1913
1936
  var t, n, i;
1914
1937
  return /* @__PURE__ */ l(
1915
1938
  "div",
@@ -1932,7 +1955,7 @@ function Gt(e) {
1932
1955
  }
1933
1956
  );
1934
1957
  }
1935
- const Qt = {
1958
+ const Zt = {
1936
1959
  name: "Symbol",
1937
1960
  noWrap: !0,
1938
1961
  static: !0,
@@ -2009,7 +2032,7 @@ const Qt = {
2009
2032
  text: "New tab content "
2010
2033
  }
2011
2034
  }
2012
- }, Xt = {
2035
+ }, en = {
2013
2036
  name: "Builder: Tabs",
2014
2037
  inputs: [{
2015
2038
  name: "tabs",
@@ -2113,7 +2136,7 @@ const Qt = {
2113
2136
  builderLinkComponent: !0
2114
2137
  }
2115
2138
  };
2116
- function Zt(e) {
2139
+ function tn(e) {
2117
2140
  var a;
2118
2141
  const [t, n] = T(
2119
2142
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
@@ -2124,7 +2147,7 @@ function Zt(e) {
2124
2147
  function o(r) {
2125
2148
  r === t && e.collapsible ? n(-1) : n(r);
2126
2149
  }
2127
- return /* @__PURE__ */ P("div", { children: [
2150
+ return /* @__PURE__ */ B("div", { children: [
2128
2151
  /* @__PURE__ */ l(
2129
2152
  "div",
2130
2153
  {
@@ -2172,7 +2195,7 @@ function Zt(e) {
2172
2195
  ) }) : null
2173
2196
  ] });
2174
2197
  }
2175
- const en = {
2198
+ const nn = {
2176
2199
  shouldReceiveBuilderProps: {
2177
2200
  builderBlock: !1
2178
2201
  },
@@ -2194,7 +2217,7 @@ const en = {
2194
2217
  textAlign: "center"
2195
2218
  }
2196
2219
  };
2197
- function tn(e) {
2220
+ function on(e) {
2198
2221
  var t;
2199
2222
  return /* @__PURE__ */ l(
2200
2223
  "div",
@@ -2207,7 +2230,7 @@ function tn(e) {
2207
2230
  }
2208
2231
  );
2209
2232
  }
2210
- const nn = {
2233
+ const an = {
2211
2234
  name: "Custom Code",
2212
2235
  static: !0,
2213
2236
  requiredPermissions: ["editCode"],
@@ -2230,9 +2253,9 @@ const nn = {
2230
2253
  advanced: !0
2231
2254
  }]
2232
2255
  };
2233
- function on(e) {
2256
+ function rn(e) {
2234
2257
  const t = Z(null), [n, i] = T(() => []), [o, a] = T(() => []);
2235
- return B(() => {
2258
+ return P(() => {
2236
2259
  var s;
2237
2260
  if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
2238
2261
  return;
@@ -2268,7 +2291,7 @@ function on(e) {
2268
2291
  }
2269
2292
  );
2270
2293
  }
2271
- const an = {
2294
+ const ln = {
2272
2295
  name: "Embed",
2273
2296
  static: !0,
2274
2297
  inputs: [{
@@ -2283,8 +2306,8 @@ const an = {
2283
2306
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2284
2307
  hideFromUI: !0
2285
2308
  }]
2286
- }, rn = ["text/javascript", "application/javascript", "application/ecmascript"], ln = (e) => rn.includes(e.type);
2287
- function sn(e) {
2309
+ }, sn = ["text/javascript", "application/javascript", "application/ecmascript"], cn = (e) => sn.includes(e.type);
2310
+ function dn(e) {
2288
2311
  const t = Z(null), [n, i] = T(() => []), [o, a] = T(() => []), [r, s] = T(() => !1);
2289
2312
  function d() {
2290
2313
  if (!t.current || !t.current.getElementsByTagName)
@@ -2296,7 +2319,7 @@ function sn(e) {
2296
2319
  n.push(h.src);
2297
2320
  const f = document.createElement("script");
2298
2321
  f.async = !0, f.src = h.src, document.head.appendChild(f);
2299
- } else if (ln(h) && !o.includes(h.innerText))
2322
+ } else if (cn(h) && !o.includes(h.innerText))
2300
2323
  try {
2301
2324
  o.push(h.innerText), new Function(h.innerText)();
2302
2325
  } catch (f) {
@@ -2304,7 +2327,7 @@ function sn(e) {
2304
2327
  }
2305
2328
  }
2306
2329
  }
2307
- return B(() => {
2330
+ return P(() => {
2308
2331
  t.current && !r && (s(!0), d());
2309
2332
  }, [t.current, r]), /* @__PURE__ */ l(
2310
2333
  "div",
@@ -2315,7 +2338,7 @@ function sn(e) {
2315
2338
  }
2316
2339
  );
2317
2340
  }
2318
- const cn = {
2341
+ const un = {
2319
2342
  name: "Form:Form",
2320
2343
  // editableTags: ['builder-form-error']
2321
2344
  defaults: {
@@ -2552,14 +2575,14 @@ const cn = {
2552
2575
  builderComponents: !0,
2553
2576
  builderLinkComponent: !0
2554
2577
  }
2555
- }, 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 = () => {
2556
2579
  const e = process.env.NODE_ENV || "production";
2557
- return dn.includes(e) ? e : "production";
2558
- }, mn = (e, t, n) => {
2580
+ return mn.includes(e) ? e : "production";
2581
+ }, hn = (e, t, n) => {
2559
2582
  const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
2560
2583
  return i === void 0 || i === e ? n : i;
2561
2584
  };
2562
- function fn(e) {
2585
+ function gn(e) {
2563
2586
  var h, f;
2564
2587
  const t = Z(null), [n, i] = T(() => "unsubmitted"), [o, a] = T(() => null), [r, s] = T(() => "");
2565
2588
  function d(u) {
@@ -2618,7 +2641,7 @@ function fn(e) {
2618
2641
  else {
2619
2642
  const p = {};
2620
2643
  Array.from(O).forEach(({ value: b, key: v }) => {
2621
- Ee(p, v, b);
2644
+ Pe(p, v, b);
2622
2645
  }), V = JSON.stringify(p);
2623
2646
  }
2624
2647
  k && k !== "multipart/form-data" && (g && ((x = e.action) != null && x.includes("zapier.com")) || (E["content-type"] = k));
@@ -2626,7 +2649,7 @@ function fn(e) {
2626
2649
  if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
2627
2650
  return;
2628
2651
  i("sending");
2629
- 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(
2630
2653
  e.sendSubmissionsToEmail || ""
2631
2654
  )}&name=${encodeURIComponent(e.name || "")}`;
2632
2655
  fetch(
@@ -2637,7 +2660,7 @@ function fn(e) {
2637
2660
  let b;
2638
2661
  const v = p.headers.get("content-type");
2639
2662
  if (v && v.indexOf("application/json") !== -1 ? b = await p.json() : b = await p.text(), !p.ok && e.errorMessagePath) {
2640
- let S = mn(b, e.errorMessagePath);
2663
+ let S = hn(b, e.errorMessagePath);
2641
2664
  S && (typeof S != "string" && (S = JSON.stringify(S)), s(S), d({ formErrorMessage: S }));
2642
2665
  }
2643
2666
  if (a(b), i(p.ok ? "success" : "error"), p.ok) {
@@ -2668,9 +2691,9 @@ function fn(e) {
2668
2691
  );
2669
2692
  }
2670
2693
  }
2671
- return /* @__PURE__ */ P(R, { children: [
2694
+ return /* @__PURE__ */ B(R, { children: [
2672
2695
  " ",
2673
- /* @__PURE__ */ P(
2696
+ /* @__PURE__ */ B(
2674
2697
  "form",
2675
2698
  {
2676
2699
  validate: e.validate,
@@ -2724,7 +2747,7 @@ function fn(e) {
2724
2747
  " "
2725
2748
  ] });
2726
2749
  }
2727
- const hn = {
2750
+ const bn = {
2728
2751
  name: "Form:Input",
2729
2752
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2730
2753
  inputs: [
@@ -2776,8 +2799,8 @@ const hn = {
2776
2799
  borderColor: "#ccc"
2777
2800
  }
2778
2801
  };
2779
- function gn(e) {
2780
- return /* @__PURE__ */ Re(
2802
+ function pn(e) {
2803
+ return /* @__PURE__ */ Ee(
2781
2804
  "input",
2782
2805
  {
2783
2806
  ...e.attributes,
@@ -2791,7 +2814,7 @@ function gn(e) {
2791
2814
  }
2792
2815
  );
2793
2816
  }
2794
- const bn = {
2817
+ const yn = {
2795
2818
  name: "Form:Select",
2796
2819
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2797
2820
  defaultStyles: {
@@ -2834,9 +2857,9 @@ const bn = {
2834
2857
  static: !0,
2835
2858
  noWrap: !0
2836
2859
  };
2837
- function pn(e) {
2860
+ function xn(e) {
2838
2861
  var t;
2839
- return /* @__PURE__ */ Re(
2862
+ return /* @__PURE__ */ Ee(
2840
2863
  "select",
2841
2864
  {
2842
2865
  ...e.attributes,
@@ -2849,7 +2872,7 @@ function pn(e) {
2849
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}`))
2850
2873
  );
2851
2874
  }
2852
- const yn = {
2875
+ const vn = {
2853
2876
  name: "Form:SubmitButton",
2854
2877
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2855
2878
  defaultStyles: {
@@ -2875,10 +2898,10 @@ const yn = {
2875
2898
  // TODO: defaultChildren
2876
2899
  // canHaveChildren: true,
2877
2900
  };
2878
- function xn(e) {
2901
+ function Sn(e) {
2879
2902
  return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
2880
2903
  }
2881
- const vn = {
2904
+ const kn = {
2882
2905
  name: "Form:TextArea",
2883
2906
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
2884
2907
  inputs: [{
@@ -2915,7 +2938,7 @@ const vn = {
2915
2938
  static: !0,
2916
2939
  noWrap: !0
2917
2940
  };
2918
- function Sn(e) {
2941
+ function Cn(e) {
2919
2942
  return /* @__PURE__ */ l(
2920
2943
  "textarea",
2921
2944
  {
@@ -2928,7 +2951,7 @@ function Sn(e) {
2928
2951
  }
2929
2952
  );
2930
2953
  }
2931
- const kn = {
2954
+ const Tn = {
2932
2955
  // friendlyName?
2933
2956
  name: "Raw:Img",
2934
2957
  hideFromInsertMenu: !0,
@@ -2943,7 +2966,7 @@ const kn = {
2943
2966
  noWrap: !0,
2944
2967
  static: !0
2945
2968
  };
2946
- function Cn(e) {
2969
+ function In(e) {
2947
2970
  return /* @__PURE__ */ l(
2948
2971
  "img",
2949
2972
  {
@@ -2958,7 +2981,7 @@ function Cn(e) {
2958
2981
  $() && e.imgSrc || "default-key"
2959
2982
  );
2960
2983
  }
2961
- const Tn = {
2984
+ const wn = {
2962
2985
  name: "Video",
2963
2986
  canHaveChildren: !0,
2964
2987
  defaultStyles: {
@@ -3043,7 +3066,7 @@ const Tn = {
3043
3066
  builderBlock: !0
3044
3067
  }
3045
3068
  };
3046
- function In(e) {
3069
+ function Rn(e) {
3047
3070
  var i, o, a, r, s, d, c;
3048
3071
  function t() {
3049
3072
  return {
@@ -3069,7 +3092,7 @@ function In(e) {
3069
3092
  ...t()
3070
3093
  };
3071
3094
  }
3072
- return /* @__PURE__ */ P(
3095
+ return /* @__PURE__ */ B(
3073
3096
  "div",
3074
3097
  {
3075
3098
  style: {
@@ -3144,64 +3167,64 @@ function In(e) {
3144
3167
  }
3145
3168
  );
3146
3169
  }
3147
- const wn = () => [{
3148
- component: on,
3149
- ...nn
3150
- }, {
3151
- component: sn,
3170
+ const En = () => [{
3171
+ component: rn,
3152
3172
  ...an
3153
3173
  }, {
3154
- component: fn,
3155
- ...cn
3174
+ component: dn,
3175
+ ...ln
3156
3176
  }, {
3157
3177
  component: gn,
3158
- ...hn
3159
- }, {
3160
- component: xn,
3161
- ...yn
3178
+ ...un
3162
3179
  }, {
3163
3180
  component: pn,
3164
3181
  ...bn
3165
3182
  }, {
3166
3183
  component: Sn,
3167
3184
  ...vn
3185
+ }, {
3186
+ component: xn,
3187
+ ...yn
3168
3188
  }, {
3169
3189
  component: Cn,
3170
3190
  ...kn
3171
3191
  }, {
3172
3192
  component: In,
3173
3193
  ...Tn
3174
- }], ve = () => [{
3175
- component: it,
3176
- ...qt
3177
- }, {
3178
- component: $t,
3179
- ...Kt
3180
3194
  }, {
3181
- component: Dt,
3195
+ component: Rn,
3196
+ ...wn
3197
+ }], ve = () => [{
3198
+ component: ot,
3182
3199
  ..._t
3183
3200
  }, {
3184
- component: jt,
3201
+ component: Lt,
3185
3202
  ...zt
3186
3203
  }, {
3187
- component: Mt,
3204
+ component: Ot,
3188
3205
  ...Jt
3189
3206
  }, {
3190
- component: Gt,
3207
+ component: Ut,
3191
3208
  ...Yt
3192
3209
  }, {
3193
- component: Yn,
3210
+ component: Ht,
3211
+ ...Gt
3212
+ }, {
3213
+ component: Xt,
3194
3214
  ...Qt
3215
+ }, {
3216
+ component: Qn,
3217
+ ...Zt
3218
+ }, {
3219
+ component: on,
3220
+ ...nn
3195
3221
  }, {
3196
3222
  component: tn,
3197
3223
  ...en
3198
3224
  }, {
3199
- component: Zt,
3200
- ...Xt
3201
- }, {
3202
- component: Ht,
3203
- ...Ut
3204
- }, ...wn()], Rn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3225
+ component: Kt,
3226
+ ...qt
3227
+ }, ...En()], Pn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3205
3228
  function getAndSetVariantId() {
3206
3229
  function setCookie(name, value, days) {
3207
3230
  let expires = '';
@@ -3257,7 +3280,7 @@ const wn = () => [{
3257
3280
  }).join('');
3258
3281
  styleEl.innerHTML = newStyleStr;
3259
3282
  }
3260
- }`, En = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3283
+ }`, Bn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3261
3284
  if (!navigator.cookieEnabled) {
3262
3285
  return;
3263
3286
  }
@@ -3291,26 +3314,26 @@ const wn = () => [{
3291
3314
  thisScriptEl?.remove();
3292
3315
  }
3293
3316
  return;
3294
- }`, 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) => ({
3295
3318
  ...t,
3296
3319
  testVariationId: t.id,
3297
3320
  id: e == null ? void 0 : e.id
3298
- })), Bn = ({
3321
+ })), Vn = ({
3299
3322
  canTrack: e,
3300
3323
  content: t
3301
- }) => !(!(J(t).length > 0) || !e || G()), Pn = (e) => e === "react" || e === "reactNative", Me = Pn(K), Vn = () => `
3302
- window.${Oe} = ${Rn}
3303
- window.${je} = ${En}
3304
- `, An = (e, t) => `
3305
- window.${Oe}(
3306
- "${t}",${JSON.stringify(e)}, ${Me}
3307
- )`, 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 = ({
3308
3331
  contentId: e,
3309
3332
  variationId: t
3310
- }) => `window.${je}(
3311
- "${t}", "${e}", ${Me}
3333
+ }) => `window.${Me}(
3334
+ "${t}", "${e}", ${Ue}
3312
3335
  )`;
3313
- function se(e) {
3336
+ function ce(e) {
3314
3337
  return /* @__PURE__ */ l(
3315
3338
  "script",
3316
3339
  {
@@ -3323,7 +3346,7 @@ function se(e) {
3323
3346
  function Se(e) {
3324
3347
  return Math.round(e * 1e3) / 1e3;
3325
3348
  }
3326
- const Wn = (e, t, n = !0) => {
3349
+ const $n = (e, t, n = !0) => {
3327
3350
  if (!(e instanceof HTMLElement))
3328
3351
  return null;
3329
3352
  let i = n ? e : e.parentElement;
@@ -3334,7 +3357,7 @@ const Wn = (e, t, n = !0) => {
3334
3357
  return i;
3335
3358
  } while (i = i.parentElement);
3336
3359
  return null;
3337
- }, Fn = (e) => Wn(e, (t) => {
3360
+ }, Dn = (e) => $n(e, (t) => {
3338
3361
  const n = t.getAttribute("builder-id") || t.id;
3339
3362
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3340
3363
  }), ke = ({
@@ -3346,8 +3369,8 @@ const Wn = (e, t, n = !0) => {
3346
3369
  x: a,
3347
3370
  y: r
3348
3371
  };
3349
- }, $n = (e) => {
3350
- 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);
3351
3374
  return {
3352
3375
  targetBuilderElement: i || void 0,
3353
3376
  metadata: {
@@ -3362,7 +3385,7 @@ const Wn = (e, t, n = !0) => {
3362
3385
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3363
3386
  }
3364
3387
  };
3365
- }, Dn = (e) => {
3388
+ }, On = (e) => {
3366
3389
  var a, r;
3367
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;
3368
3391
  let o = "";
@@ -3388,15 +3411,15 @@ font-weight: ${s};
3388
3411
  `.trim());
3389
3412
  }
3390
3413
  return o;
3391
- }, Ln = ({
3414
+ }, jn = ({
3392
3415
  customFonts: e
3393
3416
  }) => {
3394
3417
  var t;
3395
- return ((t = e == null ? void 0 : e.map((n) => Dn(n))) == null ? void 0 : t.join(" ")) || "";
3396
- }, On = ({
3418
+ return ((t = e == null ? void 0 : e.map((n) => On(n))) == null ? void 0 : t.join(" ")) || "";
3419
+ }, Mn = ({
3397
3420
  cssCode: e,
3398
3421
  contentId: t
3399
- }) => 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 = `
3400
3423
  .builder-button {
3401
3424
  all: unset;
3402
3425
  }
@@ -3413,8 +3436,8 @@ font-weight: ${s};
3413
3436
  text-align: inherit;
3414
3437
  font-family: inherit;
3415
3438
  }
3416
- `, Mn = (e) => e ? "" : jn, Un = (e) => `variant-${e}`;
3417
- function Hn(e) {
3439
+ `, Hn = (e) => e ? "" : Un, qn = (e) => `variant-${e}`;
3440
+ function Kn(e) {
3418
3441
  var V, A, O, k, w, N, p;
3419
3442
  const t = Z(null);
3420
3443
  function n(b) {
@@ -3458,7 +3481,7 @@ function Hn(e) {
3458
3481
  () => e.contentWrapper || "div"
3459
3482
  );
3460
3483
  function s(b) {
3461
- return Je({
3484
+ return Ye({
3462
3485
  model: e.model,
3463
3486
  trustedHosts: e.trustedHosts,
3464
3487
  callbacks: {
@@ -3472,7 +3495,7 @@ function Hn(e) {
3472
3495
  });
3473
3496
  },
3474
3497
  animation: (v) => {
3475
- Ne(v);
3498
+ We(v);
3476
3499
  },
3477
3500
  contentUpdate: (v) => {
3478
3501
  i(v);
@@ -3506,7 +3529,7 @@ function Hn(e) {
3506
3529
  contentId: I,
3507
3530
  apiKey: e.apiKey,
3508
3531
  variationId: C !== I ? C : void 0,
3509
- ...$n(b),
3532
+ ...Ln(b),
3510
3533
  unique: !u
3511
3534
  });
3512
3535
  }
@@ -3521,9 +3544,9 @@ function Hn(e) {
3521
3544
  h[I] = !0;
3522
3545
  const j = W.replace(
3523
3546
  /{{([^}]+)}}/g,
3524
- (F, Ue) => String(
3547
+ (F, He) => String(
3525
3548
  q({
3526
- code: Ue,
3549
+ code: He,
3527
3550
  context: e.context || {},
3528
3551
  localState: void 0,
3529
3552
  rootState: e.builderContextSignal.rootState,
@@ -3532,7 +3555,7 @@ function Hn(e) {
3532
3555
  })
3533
3556
  )
3534
3557
  );
3535
- Ye(j).then((F) => F.json()).then((F) => {
3558
+ Ge(j).then((F) => F.json()).then((F) => {
3536
3559
  n({
3537
3560
  [I]: F
3538
3561
  }), c[I] = !0;
@@ -3549,7 +3572,7 @@ function Hn(e) {
3549
3572
  "builder:component:stateChange",
3550
3573
  {
3551
3574
  detail: {
3552
- state: ce(e.builderContextSignal.rootState),
3575
+ state: Te(e.builderContextSignal.rootState),
3553
3576
  ref: {
3554
3577
  name: e.model
3555
3578
  }
@@ -3558,10 +3581,10 @@ function Hn(e) {
3558
3581
  )
3559
3582
  );
3560
3583
  }
3561
- return B(() => {
3584
+ return P(() => {
3562
3585
  var b, v;
3563
3586
  if (G()) {
3564
- if ($() && (window.addEventListener("message", s), Ke(), _e({
3587
+ if ($() && (window.addEventListener("message", s), _e(), ze({
3565
3588
  ...e.locale ? {
3566
3589
  locale: e.locale
3567
3590
  } : {},
@@ -3575,7 +3598,7 @@ function Hn(e) {
3575
3598
  e.builderContextSignal.componentInfos
3576
3599
  ).forEach((C) => {
3577
3600
  var W;
3578
- const I = ze(C);
3601
+ const I = Je(C);
3579
3602
  (W = window.parent) == null || W.postMessage(I, "*");
3580
3603
  }), window.addEventListener(
3581
3604
  "builder:component:stateChangeListenerActivated",
@@ -3590,11 +3613,11 @@ function Hn(e) {
3590
3613
  variationId: C !== I ? C : void 0
3591
3614
  });
3592
3615
  }
3593
- if (Te() && !$()) {
3616
+ if (Ie() && !$()) {
3594
3617
  const C = new URL(location.href).searchParams, I = C.get("builder.preview"), W = C.get(
3595
3618
  `builder.overrides.${I}`
3596
3619
  ), j = C.get("apiKey") || C.get("builder.space");
3597
- 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({
3598
3621
  model: e.model,
3599
3622
  apiKey: e.apiKey,
3600
3623
  apiVersion: e.builderContextSignal.apiVersion
@@ -3603,25 +3626,25 @@ function Hn(e) {
3603
3626
  });
3604
3627
  }
3605
3628
  }
3606
- }, []), B(() => {
3629
+ }, []), P(() => {
3607
3630
  e.apiKey || X.error(
3608
3631
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3609
3632
  ), d(), y(), E();
3610
- }, []), B(() => {
3633
+ }, []), P(() => {
3611
3634
  e.content && i(e.content);
3612
- }, [e.content]), B(() => {
3635
+ }, [e.content]), P(() => {
3613
3636
  d();
3614
- }, [(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(() => {
3615
3638
  y();
3616
- }, [(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(() => {
3617
3640
  E();
3618
- }, [e.builderContextSignal.rootState]), B(() => {
3641
+ }, [e.builderContextSignal.rootState]), P(() => {
3619
3642
  e.data && n(e.data);
3620
- }, [e.data]), B(() => {
3643
+ }, [e.data]), P(() => {
3621
3644
  e.locale && n({
3622
3645
  locale: e.locale
3623
3646
  });
3624
- }, [e.locale]), B(() => () => {
3647
+ }, [e.locale]), P(() => () => {
3625
3648
  G() && (window.removeEventListener("message", s), window.removeEventListener(
3626
3649
  "builder:component:stateChangeListenerActivated",
3627
3650
  E
@@ -3635,24 +3658,24 @@ function Hn(e) {
3635
3658
  "builder-model": e.model,
3636
3659
  ...o(),
3637
3660
  ...e.contentWrapperProps,
3638
- className: Un(
3661
+ className: qn(
3639
3662
  ((N = e.content) == null ? void 0 : N.testVariationId) || ((p = e.content) == null ? void 0 : p.id)
3640
3663
  ),
3641
3664
  children: e.children
3642
3665
  }
3643
3666
  ) : null });
3644
3667
  }
3645
- function qn(e) {
3668
+ function _n(e) {
3646
3669
  const [t, n] = T(
3647
3670
  () => `
3648
- ${On({
3671
+ ${Mn({
3649
3672
  cssCode: e.cssCode,
3650
3673
  contentId: e.contentId
3651
3674
  })}
3652
- ${Ln({
3675
+ ${jn({
3653
3676
  customFonts: e.customFonts
3654
3677
  })}
3655
- ${Mn(e.isNestedRender)}
3678
+ ${Hn(e.isNestedRender)}
3656
3679
  `.trim()
3657
3680
  );
3658
3681
  return /* @__PURE__ */ l(
@@ -3664,7 +3687,7 @@ ${Mn(e.isNestedRender)}
3664
3687
  }
3665
3688
  );
3666
3689
  }
3667
- const Kn = ({
3690
+ const zn = ({
3668
3691
  content: e,
3669
3692
  data: t,
3670
3693
  locale: n
@@ -3681,7 +3704,7 @@ const Kn = ({
3681
3704
  locale: n
3682
3705
  } : {}
3683
3706
  };
3684
- }, _n = ({
3707
+ }, Jn = ({
3685
3708
  content: e,
3686
3709
  data: t
3687
3710
  }) => e ? {
@@ -3697,7 +3720,7 @@ function Ce(e) {
3697
3720
  const [t, n] = T(
3698
3721
  () => {
3699
3722
  var x, y;
3700
- return Nn({
3723
+ return Fn({
3701
3724
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3702
3725
  variationId: (x = e.content) == null ? void 0 : x.testVariationId,
3703
3726
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -3726,12 +3749,12 @@ function Ce(e) {
3726
3749
  {}
3727
3750
  )
3728
3751
  ), [r, s] = T(() => ({
3729
- content: _n({
3752
+ content: Jn({
3730
3753
  content: e.content,
3731
3754
  data: e.data
3732
3755
  }),
3733
3756
  localState: void 0,
3734
- rootState: Kn({
3757
+ rootState: zn({
3735
3758
  content: e.content,
3736
3759
  data: e.data,
3737
3760
  locale: e.locale
@@ -3762,8 +3785,8 @@ function Ce(e) {
3762
3785
  value: {
3763
3786
  registeredComponents: o
3764
3787
  },
3765
- children: /* @__PURE__ */ P(
3766
- Hn,
3788
+ children: /* @__PURE__ */ B(
3789
+ Kn,
3767
3790
  {
3768
3791
  nonce: e.nonce,
3769
3792
  content: e.content,
@@ -3782,7 +3805,7 @@ function Ce(e) {
3782
3805
  setBuilderContextSignal: s,
3783
3806
  children: [
3784
3807
  e.isSsrAbTest ? /* @__PURE__ */ l(
3785
- se,
3808
+ ce,
3786
3809
  {
3787
3810
  id: "builderio-variant-visibility",
3788
3811
  scriptStr: t,
@@ -3790,7 +3813,7 @@ function Ce(e) {
3790
3813
  }
3791
3814
  ) : null,
3792
3815
  /* @__PURE__ */ l(
3793
- qn,
3816
+ _n,
3794
3817
  {
3795
3818
  nonce: e.nonce || "",
3796
3819
  isNestedRender: e.isNestedRender,
@@ -3814,17 +3837,17 @@ function Ce(e) {
3814
3837
  }
3815
3838
  );
3816
3839
  }
3817
- function zn(e) {
3840
+ function Yn(e) {
3818
3841
  var r;
3819
3842
  const [t, n] = T(
3820
- () => Bn({
3843
+ () => Vn({
3821
3844
  canTrack: Q(e.canTrack),
3822
3845
  content: e.content
3823
3846
  })
3824
3847
  );
3825
3848
  function i() {
3826
3849
  var s;
3827
- return An(
3850
+ return Wn(
3828
3851
  J(e.content).map((d) => ({
3829
3852
  id: d.testVariationId,
3830
3853
  testRatio: d.testRatio
@@ -3840,23 +3863,23 @@ function zn(e) {
3840
3863
  return t ? {
3841
3864
  ...e.content,
3842
3865
  testVariationId: (s = e.content) == null ? void 0 : s.id
3843
- } : Ge({
3866
+ } : Qe({
3844
3867
  item: e.content,
3845
3868
  canTrack: Q(e.canTrack)
3846
3869
  });
3847
3870
  }
3848
- return B(() => {
3849
- }, []), B(() => {
3850
- }), /* @__PURE__ */ P(R, { children: [
3871
+ return P(() => {
3872
+ }, []), P(() => {
3873
+ }), /* @__PURE__ */ B(R, { children: [
3851
3874
  !e.isNestedRender && K !== "reactNative" ? /* @__PURE__ */ l(
3852
- se,
3875
+ ce,
3853
3876
  {
3854
3877
  id: "builderio-init-variants-fns",
3855
- scriptStr: Vn(),
3878
+ scriptStr: Nn(),
3856
3879
  nonce: e.nonce || ""
3857
3880
  }
3858
3881
  ) : null,
3859
- t ? /* @__PURE__ */ P(R, { children: [
3882
+ t ? /* @__PURE__ */ B(R, { children: [
3860
3883
  /* @__PURE__ */ l(
3861
3884
  te,
3862
3885
  {
@@ -3866,7 +3889,7 @@ function zn(e) {
3866
3889
  }
3867
3890
  ),
3868
3891
  /* @__PURE__ */ l(
3869
- se,
3892
+ ce,
3870
3893
  {
3871
3894
  id: "builderio-variants-visibility",
3872
3895
  scriptStr: i(),
@@ -3927,13 +3950,13 @@ function zn(e) {
3927
3950
  )
3928
3951
  ] });
3929
3952
  }
3930
- const Jn = async ({
3953
+ const Gn = async ({
3931
3954
  builderContextValue: e,
3932
3955
  symbol: t
3933
3956
  }) => {
3934
3957
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
3935
3958
  (e != null && e.apiKey))
3936
- return Ie({
3959
+ return we({
3937
3960
  model: t.model,
3938
3961
  apiKey: e.apiKey,
3939
3962
  apiVersion: e.apiVersion,
@@ -3946,7 +3969,7 @@ const Jn = async ({
3946
3969
  X.error("Could not fetch symbol content: ", n);
3947
3970
  });
3948
3971
  };
3949
- function Yn(e) {
3972
+ function Qn(e) {
3950
3973
  var s, d, c, m;
3951
3974
  function t() {
3952
3975
  return "div";
@@ -3968,18 +3991,18 @@ function Yn(e) {
3968
3991
  return (h = e.symbol) == null ? void 0 : h.content;
3969
3992
  });
3970
3993
  function r() {
3971
- o || Jn({
3994
+ o || Gn({
3972
3995
  symbol: e.symbol,
3973
3996
  builderContextValue: e.builderContext
3974
3997
  }).then((h) => {
3975
3998
  h && a(h);
3976
3999
  });
3977
4000
  }
3978
- return B(() => {
3979
- }, []), B(() => {
4001
+ return P(() => {
4002
+ }, []), P(() => {
3980
4003
  r();
3981
4004
  }, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
3982
- zn,
4005
+ Yn,
3983
4006
  {
3984
4007
  nonce: e.builderContext.nonce,
3985
4008
  isNestedRender: !0,
@@ -4007,13 +4030,13 @@ function Yn(e) {
4007
4030
  export {
4008
4031
  D as Blocks,
4009
4032
  ue as BuilderContext,
4010
- it as Button,
4011
- $t as Columns,
4012
- zn as Content,
4013
- Dt as Fragment,
4014
- jt as Image,
4015
- Mt as Section,
4016
- Yn as Symbol,
4017
- tn as Text,
4018
- 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
4019
4042
  };