@builder.io/sdk-react 3.0.3 → 3.0.5

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 (70) hide show
  1. package/lib/browser/blocks-exports.cjs +20 -20
  2. package/lib/browser/blocks-exports.mjs +517 -529
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/{server-entry-5eafc5bd.cjs → server-entry-101d66b8.cjs} +1 -1
  6. package/lib/browser/{server-entry-c904f136.js → server-entry-785c0408.js} +1 -1
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/{accordion-032726a7.cjs → accordion-190c4426.cjs} +1 -1
  10. package/lib/edge/{accordion-c786f197.js → accordion-cd6e0363.js} +1 -1
  11. package/lib/edge/{blocks-827b0a87.cjs → blocks-766e8d45.cjs} +9 -9
  12. package/lib/edge/blocks-exports.cjs +1 -1
  13. package/lib/edge/blocks-exports.mjs +2 -2
  14. package/lib/edge/{blocks-105e50e5.js → blocks-fe2d7c1a.js} +2 -3
  15. package/lib/edge/{button-5cbfe22c.cjs → button-694fcd4f.cjs} +1 -1
  16. package/lib/edge/{button-f0e0ea72.js → button-6a27481c.js} +2 -2
  17. package/lib/edge/{columns-9e187314.js → columns-90e6407e.js} +18 -18
  18. package/lib/edge/{columns-d07da61d.cjs → columns-b38bf0f7.cjs} +2 -2
  19. package/lib/edge/{content-variants-0db90715.cjs → content-variants-4e385c19.cjs} +1 -1
  20. package/lib/edge/{content-variants-59dc0824.js → content-variants-cbb89349.js} +10 -10
  21. package/lib/edge/form-16bbf874.js +166 -0
  22. package/lib/edge/form-547645eb.cjs +1 -0
  23. package/lib/edge/{get-class-prop-name-8fb0e5ad.cjs → get-class-prop-name-58770197.cjs} +1 -1
  24. package/lib/edge/{get-class-prop-name-6b143ec7.js → get-class-prop-name-8b719c6b.js} +1 -1
  25. package/lib/edge/{image-2a2b26d2.js → image-38917f45.js} +22 -24
  26. package/lib/edge/image-590e36ae.cjs +17 -0
  27. package/lib/edge/{img-72bf9d21.cjs → img-8859c851.cjs} +1 -1
  28. package/lib/edge/{img-2c4c6b78.js → img-d3351743.js} +1 -1
  29. package/lib/edge/index.cjs +1 -1
  30. package/lib/edge/index.mjs +1 -1
  31. package/lib/edge/{input-752f3ce9.js → input-24c601b4.js} +1 -1
  32. package/lib/edge/{input-6eca8427.cjs → input-4fe0fc6d.cjs} +1 -1
  33. package/lib/edge/{select-a1d6e80e.js → select-af05377b.js} +1 -1
  34. package/lib/edge/{select-49a73a0b.cjs → select-c73bd418.cjs} +1 -1
  35. package/lib/edge/{server-entry-6b2058e2.cjs → server-entry-3c7fa63a.cjs} +1 -1
  36. package/lib/edge/{server-entry-35f12729.js → server-entry-67bfc740.js} +1 -1
  37. package/lib/edge/server-entry.cjs +1 -1
  38. package/lib/edge/server-entry.mjs +1 -1
  39. package/lib/edge/{slot-b9bcbd41.js → slot-32a4df0c.js} +3 -3
  40. package/lib/edge/{slot-2327e009.cjs → slot-759c8dd9.cjs} +1 -1
  41. package/lib/edge/{symbol-33e7736f.js → symbol-50360a37.js} +2 -2
  42. package/lib/edge/{symbol-3527699b.cjs → symbol-8d63aa7d.cjs} +1 -1
  43. package/lib/edge/{tabs-bc422e4c.js → tabs-6535c934.js} +3 -3
  44. package/lib/edge/{tabs-2df0eaa2.cjs → tabs-fc6c1700.cjs} +1 -1
  45. package/lib/edge/video-4ecfd08b.cjs +1 -0
  46. package/lib/edge/{video-58c2cc8d.js → video-a3f10439.js} +0 -1
  47. package/lib/node/blocks-exports.cjs +14 -14
  48. package/lib/node/blocks-exports.mjs +500 -512
  49. package/lib/node/index.cjs +1 -1
  50. package/lib/node/index.mjs +3 -3
  51. package/lib/node/init.cjs +1 -1
  52. package/lib/node/init.mjs +3 -3
  53. package/lib/node/{server-entry-606ce65a.cjs → server-entry-95273908.cjs} +1 -1
  54. package/lib/node/{server-entry-d1ed35c5.js → server-entry-ffc70868.js} +1 -1
  55. package/lib/node/server-entry.cjs +1 -1
  56. package/lib/node/server-entry.mjs +1 -1
  57. package/lib/node/{setIvm-6675714a.js → setIvm-2cea7252.js} +1 -1
  58. package/lib/node/{setIvm-e4deba11.cjs → setIvm-4ce0db03.cjs} +1 -1
  59. package/lib/node/setIvm.cjs +1 -1
  60. package/lib/node/setIvm.mjs +2 -2
  61. package/lib/node/{should-force-browser-runtime-in-node-75b2b3a0.js → should-force-browser-runtime-in-node-c0d50009.js} +1 -1
  62. package/lib/node/{should-force-browser-runtime-in-node-03adae17.cjs → should-force-browser-runtime-in-node-d3e6df07.cjs} +1 -1
  63. package/package.json +2 -2
  64. package/types/blocks/form/form/form.d.ts +1 -0
  65. package/types/constants/sdk-version.d.ts +1 -1
  66. package/types/types/components.d.ts +2 -2
  67. package/lib/edge/form-79639135.cjs +0 -1
  68. package/lib/edge/form-7a7b98cf.js +0 -176
  69. package/lib/edge/image-4db81d72.cjs +0 -17
  70. package/lib/edge/video-e20dcbbc.cjs +0 -1
@@ -1,15 +1,15 @@
1
1
  "use client";
2
- import { jsx as l, Fragment as w, jsxs as W } from "react/jsx-runtime";
3
- import { TARGET as $, isBrowser as q, logger as oe, checkIsDefined as te, isPreviewing as ae, isEditing as N, logFetch as Te, registerInsertMenu as je, setupBrowserForEditing as qe, createRegisterComponentMessage as ze, getDefaultCanTrack as z, _track as ue, fetchOneEntry as Ie, createEditorListener as Ke, serializeIncludingFunctions as me, handleABTestingSync as Je } from "./server-entry-d1ed35c5.js";
2
+ import { jsx as s, Fragment as E, jsxs as B } from "react/jsx-runtime";
3
+ import { TARGET as $, isBrowser as j, logger as oe, checkIsDefined as te, isPreviewing as ae, isEditing as N, logFetch as Te, registerInsertMenu as je, setupBrowserForEditing as qe, createRegisterComponentMessage as ze, getDefaultCanTrack as q, _track as ue, fetchOneEntry as Ie, createEditorListener as Ke, serializeIncludingFunctions as me, handleABTestingSync as Je } from "./server-entry-ffc70868.js";
4
4
  import * as Ge from "react";
5
- import { createContext as we, useEffect as A, useState as E, useRef as D, useContext as fe, createElement as Ee } from "react";
6
- import { getFunctionArguments as Ye, flattenState as Qe, runInNode as Xe, parseCode as Ze, getBuilderGlobals as et, set as Re, fastClone as re } from "./setIvm-6675714a.js";
7
- import { shouldForceBrowserRuntimeInNode as tt } from "./should-force-browser-runtime-in-node-75b2b3a0.js";
5
+ import { createContext as we, useEffect as A, useState as R, useRef as L, useContext as fe, createElement as Ee } from "react";
6
+ import { getFunctionArguments as Ye, flattenState as Qe, runInNode as Xe, parseCode as Ze, getBuilderGlobals as et, set as Re, fastClone as re } from "./setIvm-2cea7252.js";
7
+ import { shouldForceBrowserRuntimeInNode as tt } from "./should-force-browser-runtime-in-node-c0d50009.js";
8
8
  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());
9
9
  function le(e) {
10
- return /* @__PURE__ */ l(w, { children: it(e.TagName) ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(w, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
10
+ return /* @__PURE__ */ s(E, { children: it(e.TagName) ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(E, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
11
11
  }
12
- const _ = () => {
12
+ const U = () => {
13
13
  switch ($) {
14
14
  case "react":
15
15
  case "reactNative":
@@ -27,7 +27,7 @@ function ot(e) {
27
27
  function t() {
28
28
  return {
29
29
  ...e.attributes,
30
- [_()]: `${e.link ? "" : "builder-button"} ${e.attributes[_()] || ""}`,
30
+ [U()]: `${e.link ? "" : "builder-button"} ${e.attributes[U()] || ""}`,
31
31
  ...e.link ? {
32
32
  href: e.link,
33
33
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -37,7 +37,7 @@ function ot(e) {
37
37
  }
38
38
  };
39
39
  }
40
- return /* @__PURE__ */ l(
40
+ return /* @__PURE__ */ s(
41
41
  le,
42
42
  {
43
43
  attributes: t(),
@@ -74,7 +74,7 @@ const se = we({
74
74
  rootSetState: r,
75
75
  rootState: a
76
76
  }) => {
77
- const s = Ye({
77
+ const l = Ye({
78
78
  builder: t,
79
79
  context: n,
80
80
  event: i,
@@ -84,14 +84,14 @@ const se = we({
84
84
  rootSetState: r
85
85
  })
86
86
  });
87
- return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
88
- }, rt = (e) => q() || tt({
87
+ return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
88
+ }, rt = (e) => j() || tt({
89
89
  shouldLogWarning: !0
90
90
  }) ? at(e) : Xe(e), lt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, st = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, ct = (e) => {
91
91
  var t, n, i, o, r, a;
92
92
  return ((i = (n = (t = lt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((a = (r = (o = st.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : r.getPath) == null ? void 0 : a.slice(1));
93
93
  };
94
- function O({
94
+ function D({
95
95
  code: e,
96
96
  context: t,
97
97
  localState: n,
@@ -102,12 +102,12 @@ function O({
102
102
  }) {
103
103
  if (e.trim() === "")
104
104
  return;
105
- const s = ct(e.trim());
106
- if (s)
105
+ const l = ct(e.trim());
106
+ if (l)
107
107
  return Be({
108
108
  ...i,
109
109
  ...n
110
- }, s);
110
+ }, l);
111
111
  const d = {
112
112
  code: Ze(e, {
113
113
  isExpression: a
@@ -141,7 +141,7 @@ const ut = (e, t) => {
141
141
  if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
142
142
  return {
143
143
  ...e.component.options,
144
- text: e.component.options.text.replace(/{{([^}]+)}}/g, (o, r) => O({
144
+ text: e.component.options.text.replace(/{{([^}]+)}}/g, (o, r) => D({
145
145
  code: r,
146
146
  context: t,
147
147
  localState: t.localState,
@@ -156,7 +156,7 @@ function mt(e, ...t) {
156
156
  delete n[i];
157
157
  return n;
158
158
  }
159
- function K(e, t, n = null, i = null, o = /* @__PURE__ */ new WeakSet()) {
159
+ function z(e, t, n = null, i = null, o = /* @__PURE__ */ new WeakSet()) {
160
160
  if (e == null || typeof e != "object") {
161
161
  t(e, (r) => {
162
162
  n !== null && i !== null && (n[i] = r);
@@ -166,11 +166,11 @@ function K(e, t, n = null, i = null, o = /* @__PURE__ */ new WeakSet()) {
166
166
  o.has(e) || (o.add(e), Array.isArray(e) ? e.forEach((r, a) => {
167
167
  t(r, (d) => {
168
168
  e[a] = d;
169
- }), K(r, t, e, a, o);
169
+ }), z(r, t, e, a, o);
170
170
  }) : Object.entries(e).forEach(([r, a]) => {
171
171
  t(a, (d) => {
172
172
  e[r] = d;
173
- }), K(a, t, e, r, o);
173
+ }), z(a, t, e, r, o);
174
174
  }));
175
175
  }
176
176
  function Ve(e) {
@@ -180,7 +180,7 @@ function ft(e) {
180
180
  if (!e || !Object.getOwnPropertyNames(e).length)
181
181
  return !1;
182
182
  let t = !1;
183
- return K(e, (n) => {
183
+ return z(e, (n) => {
184
184
  if (Ve(n)) {
185
185
  t = !0;
186
186
  return;
@@ -188,7 +188,7 @@ function ft(e) {
188
188
  }), t;
189
189
  }
190
190
  function ht(e, t) {
191
- return !e || !Object.getOwnPropertyNames(e).length ? {} : (K(e, (n, i) => {
191
+ return !e || !Object.getOwnPropertyNames(e).length ? {} : (z(e, (n, i) => {
192
192
  var o;
193
193
  Ve(n) && i((o = n[t]) != null ? o : void 0);
194
194
  }), e);
@@ -246,8 +246,8 @@ const bt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), pt = (e) =
246
246
  return e;
247
247
  const r = pt(e);
248
248
  for (const a in e.bindings) {
249
- const s = e.bindings[a], d = O({
250
- code: s,
249
+ const l = e.bindings[a], d = D({
250
+ code: l,
251
251
  localState: n,
252
252
  rootState: i,
253
253
  rootSetState: o,
@@ -273,20 +273,20 @@ function xt({
273
273
  context: t
274
274
  });
275
275
  }
276
- const J = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
276
+ const K = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
277
277
  function vt(e, t, n = {}) {
278
- let i, o, r, a = null, s = 0;
278
+ let i, o, r, a = null, l = 0;
279
279
  const d = function() {
280
- s = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
280
+ l = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
281
281
  };
282
282
  return function() {
283
283
  const c = Date.now();
284
- !s && n.leading === !1 && (s = c);
285
- const h = t - (c - s);
286
- return i = this, o = arguments, h <= 0 || h > t ? (a && (clearTimeout(a), a = null), s = c, r = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(d, h)), r;
284
+ !l && n.leading === !1 && (l = c);
285
+ const h = t - (c - l);
286
+ return i = this, o = arguments, h <= 0 || h > t ? (a && (clearTimeout(a), a = null), l = c, r = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(d, h)), r;
287
287
  };
288
288
  }
289
- function U(e, ...t) {
289
+ function O(e, ...t) {
290
290
  const n = Object(e);
291
291
  for (let i = 1; i < arguments.length; i++) {
292
292
  const o = arguments[i];
@@ -312,9 +312,9 @@ function Ae(e) {
312
312
  }
313
313
  function We(e, t) {
314
314
  const n = kt(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
315
- for (const s of a)
315
+ for (const l of a)
316
316
  for (const d of n)
317
- d in s || (s[d] = i[d]);
317
+ d in l || (l[d] = i[d]);
318
318
  }
319
319
  function kt(e) {
320
320
  const t = [];
@@ -330,8 +330,8 @@ function Ne(e) {
330
330
  return;
331
331
  }
332
332
  Array.from(t).forEach((n) => {
333
- We(e, n), n.style.transition = "none", n.style.transitionDelay = "0", U(n.style, e.steps[0].styles), setTimeout(() => {
334
- n.style.transition = `all ${e.duration}s ${J(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), U(n.style, e.steps[1].styles), setTimeout(() => {
333
+ We(e, n), n.style.transition = "none", n.style.transitionDelay = "0", O(n.style, e.steps[0].styles), setTimeout(() => {
334
+ n.style.transition = `all ${e.duration}s ${K(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), O(n.style, e.steps[1].styles), setTimeout(() => {
335
335
  n.style.transition = "", n.style.transitionDelay = "";
336
336
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
337
337
  });
@@ -347,25 +347,25 @@ function Ct(e) {
347
347
  We(e, n);
348
348
  let i = !1, o = !1;
349
349
  function r() {
350
- !i && s(n) ? (i = !0, o = !0, setTimeout(() => {
351
- U(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
350
+ !i && l(n) ? (i = !0, o = !0, setTimeout(() => {
351
+ O(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
352
352
  o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
353
353
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
354
- })) : e.repeat && i && !o && !s(n) && (i = !1, U(n.style, e.steps[0].styles));
354
+ })) : e.repeat && i && !o && !l(n) && (i = !1, O(n.style, e.steps[0].styles));
355
355
  }
356
356
  const a = vt(r, 200, {
357
357
  leading: !1
358
358
  });
359
- function s(h) {
360
- const g = h.getBoundingClientRect(), m = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * m;
361
- return g.bottom > f && g.top < m - f;
359
+ function l(h) {
360
+ const m = h.getBoundingClientRect(), u = window.innerHeight, g = (e.thresholdPercent || 0) / 100 * u;
361
+ return m.bottom > g && m.top < u - g;
362
362
  }
363
363
  const d = e.steps[0].styles;
364
364
  function c() {
365
- U(n.style, d);
365
+ O(n.style, d);
366
366
  }
367
367
  c(), setTimeout(() => {
368
- n.style.transition = `all ${e.duration}s ${J(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
368
+ n.style.transition = `all ${e.duration}s ${K(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
369
369
  }), document.addEventListener("scroll", a, {
370
370
  capture: !0,
371
371
  passive: !0
@@ -374,9 +374,9 @@ function Ct(e) {
374
374
  }
375
375
  const Fe = (e) => Object.entries(e).map(([n, i]) => {
376
376
  if (typeof i == "string")
377
- return `${J(n)}: ${i};`;
377
+ return `${K(n)}: ${i};`;
378
378
  }).filter(te), Tt = (e) => Fe(e).join(`
379
- `), M = ({
379
+ `), H = ({
380
380
  mediaQuery: e,
381
381
  className: t,
382
382
  styles: n
@@ -442,7 +442,7 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
442
442
  } = e;
443
443
  if (!(n != null && n.collection))
444
444
  return;
445
- const o = O({
445
+ const o = D({
446
446
  code: n.collection,
447
447
  localState: t.localState,
448
448
  rootState: t.rootState,
@@ -528,8 +528,8 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
528
528
  default: r + 1
529
529
  }, n;
530
530
  };
531
- function G(e) {
532
- return /* @__PURE__ */ l(
531
+ function J(e) {
532
+ return /* @__PURE__ */ s(
533
533
  "style",
534
534
  {
535
535
  dangerouslySetInnerHTML: { __html: e.styles },
@@ -544,53 +544,53 @@ function Wt(e) {
544
544
  return te(i.hide) ? !i.hide : te(i.show) ? i.show : !0;
545
545
  }
546
546
  function n() {
547
- var x, b, p;
547
+ var y, b, p;
548
548
  const i = e.block, o = i.responsiveStyles, r = e.context.content, a = Oe(
549
- ((x = r == null ? void 0 : r.meta) == null ? void 0 : x.breakpoints) || {}
550
- ), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
549
+ ((y = r == null ? void 0 : r.meta) == null ? void 0 : y.breakpoints) || {}
550
+ ), l = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
551
551
  if (!h)
552
552
  return "";
553
- const g = s ? M({
553
+ const m = l ? H({
554
554
  className: h,
555
- styles: s
556
- }) : "", m = d ? M({
555
+ styles: l
556
+ }) : "", u = d ? H({
557
557
  className: h,
558
558
  styles: d,
559
559
  mediaQuery: he(
560
560
  "medium",
561
561
  a
562
562
  )
563
- }) : "", y = c ? M({
563
+ }) : "", k = c ? H({
564
564
  className: h,
565
565
  styles: c,
566
566
  mediaQuery: he(
567
567
  "small",
568
568
  a
569
569
  )
570
- }) : "", f = i.animations && i.animations.find((C) => C.trigger === "hover");
570
+ }) : "", g = i.animations && i.animations.find((C) => C.trigger === "hover");
571
571
  let v = "";
572
- if (f) {
573
- const C = ((p = (b = f.steps) == null ? void 0 : b[1]) == null ? void 0 : p.styles) || {};
574
- v = M({
572
+ if (g) {
573
+ const C = ((p = (b = g.steps) == null ? void 0 : b[1]) == null ? void 0 : p.styles) || {};
574
+ v = H({
575
575
  className: `${h}:hover`,
576
576
  styles: {
577
577
  ...C,
578
- transition: `all ${f.duration}s ${J(
579
- f.easing
578
+ transition: `all ${g.duration}s ${K(
579
+ g.easing
580
580
  )}`,
581
- transitionDelay: f.delay ? `${f.delay}s` : "0s"
581
+ transitionDelay: g.delay ? `${g.delay}s` : "0s"
582
582
  }
583
583
  }) || "";
584
584
  }
585
585
  return [
586
- g,
587
586
  m,
588
- y,
587
+ u,
588
+ k,
589
589
  v
590
590
  ].join(" ");
591
591
  }
592
- return /* @__PURE__ */ l(w, { children: n() && t() ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
593
- G,
592
+ return /* @__PURE__ */ s(E, { children: n() && t() ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
593
+ J,
594
594
  {
595
595
  id: "builderio-block",
596
596
  styles: n(),
@@ -601,7 +601,7 @@ function Wt(e) {
601
601
  function Nt(e) {
602
602
  return e.charAt(0).toUpperCase() + e.slice(1);
603
603
  }
604
- const Ft = (e) => `on${Nt(e)}`, $t = (e, t) => (n) => O({
604
+ const Ft = (e) => `on${Nt(e)}`, $t = (e, t) => (n) => D({
605
605
  code: e,
606
606
  context: t.context,
607
607
  localState: t.localState,
@@ -652,7 +652,7 @@ function ce({
652
652
  block: e,
653
653
  context: t
654
654
  }),
655
- [_()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
655
+ [U()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
656
656
  };
657
657
  return Lt({
658
658
  properties: n,
@@ -661,7 +661,7 @@ function ce({
661
661
  });
662
662
  }
663
663
  function Ot(e) {
664
- return /* @__PURE__ */ l(
664
+ return /* @__PURE__ */ s(
665
665
  le,
666
666
  {
667
667
  TagName: e.Wrapper,
@@ -683,7 +683,7 @@ function Ot(e) {
683
683
  }
684
684
  function Ut(e) {
685
685
  return A(() => {
686
- }, []), /* @__PURE__ */ l(w, { children: e.children });
686
+ }, []), /* @__PURE__ */ s(E, { children: e.children });
687
687
  }
688
688
  function _t(e) {
689
689
  function t() {
@@ -701,7 +701,7 @@ function _t(e) {
701
701
  })
702
702
  } : {};
703
703
  }
704
- return /* @__PURE__ */ l(w, { children: e.Wrapper.load ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
704
+ return /* @__PURE__ */ s(E, { children: e.Wrapper.load ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
705
705
  Ut,
706
706
  {
707
707
  load: e.Wrapper.load,
@@ -710,7 +710,7 @@ function _t(e) {
710
710
  attributes: t(),
711
711
  children: e.children
712
712
  }
713
- ) }) : /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
713
+ ) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
714
714
  }
715
715
  const Ht = ({
716
716
  componentOptions: e,
@@ -721,7 +721,7 @@ const Ht = ({
721
721
  isInteractive: r,
722
722
  contextValue: a
723
723
  }) => {
724
- const s = {
724
+ const l = {
725
725
  ...e,
726
726
  /**
727
727
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
@@ -740,14 +740,14 @@ const Ht = ({
740
740
  context: n,
741
741
  wrapperProps: e,
742
742
  includeBlockProps: o
743
- } : s;
743
+ } : l;
744
744
  };
745
745
  function ge(e) {
746
746
  var i;
747
- const [t, n] = E(
747
+ const [t, n] = R(
748
748
  () => e.isInteractive ? _t : e.componentRef
749
749
  );
750
- return /* @__PURE__ */ l(w, { children: e.componentRef ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
750
+ return /* @__PURE__ */ s(E, { children: e.componentRef ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
751
751
  t,
752
752
  {
753
753
  ...Ht({
@@ -760,8 +760,8 @@ function ge(e) {
760
760
  isInteractive: e.isInteractive,
761
761
  contextValue: e.context
762
762
  }),
763
- children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
764
- H,
763
+ children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
764
+ G,
765
765
  {
766
766
  block: o,
767
767
  context: e.context,
@@ -774,9 +774,9 @@ function ge(e) {
774
774
  ) }) : null });
775
775
  }
776
776
  function be(e) {
777
- const [t, n] = E(() => e.repeatContext);
778
- return /* @__PURE__ */ l(se.Provider, { value: t, children: /* @__PURE__ */ l(
779
- H,
777
+ const [t, n] = R(() => e.repeatContext);
778
+ return /* @__PURE__ */ s(se.Provider, { value: t, children: /* @__PURE__ */ s(
779
+ G,
780
780
  {
781
781
  block: e.block,
782
782
  context: t,
@@ -785,15 +785,15 @@ function be(e) {
785
785
  }
786
786
  ) });
787
787
  }
788
- function H(e) {
789
- var h, g, m, y;
788
+ function G(e) {
789
+ var h, m, u, k;
790
790
  function t() {
791
791
  return Rt({
792
792
  block: e.block,
793
793
  context: e.context
794
794
  });
795
795
  }
796
- const [n, i] = E(() => ({
796
+ const [n, i] = R(() => ({
797
797
  value: null,
798
798
  update: !1
799
799
  }));
@@ -801,14 +801,14 @@ function H(e) {
801
801
  var v;
802
802
  if (n.value && !n.update && !ae())
803
803
  return n.value;
804
- const f = (v = e.block.repeat) != null && v.collection ? e.block : xt({
804
+ const g = (v = e.block.repeat) != null && v.collection ? e.block : xt({
805
805
  block: e.block,
806
806
  localState: e.context.localState,
807
807
  rootState: e.context.rootState,
808
808
  rootSetState: e.context.rootSetState,
809
809
  context: e.context.context
810
810
  });
811
- return n.value = f, n.update = !1, f;
811
+ return n.value = g, n.update = !1, g;
812
812
  }
813
813
  function r() {
814
814
  return Et({
@@ -821,21 +821,21 @@ function H(e) {
821
821
  var v;
822
822
  return e.block.tagName === "a" || ((v = o().properties) == null ? void 0 : v.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
823
823
  }
824
- function s() {
825
- var x, b;
826
- if ((x = e.block.repeat) != null && x.collection)
824
+ function l() {
825
+ var y, b;
826
+ if ((y = e.block.repeat) != null && y.collection)
827
827
  return !!((b = t == null ? void 0 : t()) != null && b.length);
828
- const f = "hide" in o() ? o().hide : !1;
829
- return ("show" in o() ? o().show : !0) && !f;
828
+ const g = "hide" in o() ? o().hide : !1;
829
+ return ("show" in o() ? o().show : !0) && !g;
830
830
  }
831
831
  function d() {
832
- var v, x;
833
- return !((v = r == null ? void 0 : r()) != null && v.component) && !t() ? (x = o().children) != null ? x : [] : [];
832
+ var v, y;
833
+ return !((v = r == null ? void 0 : r()) != null && v.component) && !t() ? (y = o().children) != null ? y : [] : [];
834
834
  }
835
835
  function c() {
836
- var f, v, x, b;
836
+ var g, v, y, b;
837
837
  return {
838
- blockChildren: (f = o().children) != null ? f : [],
838
+ blockChildren: (g = o().children) != null ? g : [],
839
839
  componentRef: (v = r == null ? void 0 : r()) == null ? void 0 : v.component,
840
840
  componentOptions: {
841
841
  ...dt(o(), e.context),
@@ -852,32 +852,32 @@ function H(e) {
852
852
  linkComponent: e.linkComponent,
853
853
  registeredComponents: e.registeredComponents,
854
854
  builderBlock: o(),
855
- includeBlockProps: ((x = r == null ? void 0 : r()) == null ? void 0 : x.noWrap) === !0,
855
+ includeBlockProps: ((y = r == null ? void 0 : r()) == null ? void 0 : y.noWrap) === !0,
856
856
  isInteractive: !((b = r == null ? void 0 : r()) != null && b.isRSC && $ === "rsc")
857
857
  };
858
858
  }
859
859
  return A(() => {
860
- const f = o().id, v = o().animations;
861
- v && f && St(
862
- v.map((x) => ({
863
- ...x,
864
- elementId: f
860
+ const g = o().id, v = o().animations;
861
+ v && g && St(
862
+ v.map((y) => ({
863
+ ...y,
864
+ elementId: g
865
865
  }))
866
866
  );
867
867
  }, []), A(() => {
868
868
  n.update = !0;
869
- }), /* @__PURE__ */ l(w, { children: s() ? /* @__PURE__ */ W(w, { children: [
870
- /* @__PURE__ */ l(Wt, { block: o(), context: e.context }),
871
- (h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ l(w, { children: (y = t()) == null ? void 0 : y.map((f, v) => /* @__PURE__ */ l(
869
+ }), /* @__PURE__ */ s(E, { children: l() ? /* @__PURE__ */ B(E, { children: [
870
+ /* @__PURE__ */ s(Wt, { block: o(), context: e.context }),
871
+ (h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(E, { children: (k = t()) == null ? void 0 : k.map((g, v) => /* @__PURE__ */ s(
872
872
  be,
873
873
  {
874
- repeatContext: f.context,
875
- block: f.block,
874
+ repeatContext: g.context,
875
+ block: g.block,
876
876
  registeredComponents: e.registeredComponents,
877
877
  linkComponent: e.linkComponent
878
878
  },
879
879
  v
880
- )) }) : /* @__PURE__ */ l(
880
+ )) }) : /* @__PURE__ */ s(
881
881
  ge,
882
882
  {
883
883
  componentRef: c().componentRef,
@@ -890,23 +890,23 @@ function H(e) {
890
890
  includeBlockProps: c().includeBlockProps,
891
891
  isInteractive: c().isInteractive
892
892
  }
893
- ) : /* @__PURE__ */ l(w, { children: t() ? /* @__PURE__ */ l(w, { children: (m = t()) == null ? void 0 : m.map((f, v) => /* @__PURE__ */ l(
893
+ ) : /* @__PURE__ */ s(E, { children: t() ? /* @__PURE__ */ s(E, { children: (u = t()) == null ? void 0 : u.map((g, v) => /* @__PURE__ */ s(
894
894
  be,
895
895
  {
896
- repeatContext: f.context,
897
- block: f.block,
896
+ repeatContext: g.context,
897
+ block: g.block,
898
898
  registeredComponents: e.registeredComponents,
899
899
  linkComponent: e.linkComponent
900
900
  },
901
901
  v
902
- )) }) : /* @__PURE__ */ W(
902
+ )) }) : /* @__PURE__ */ B(
903
903
  Ot,
904
904
  {
905
905
  Wrapper: a(),
906
906
  block: o(),
907
907
  context: e.context,
908
908
  children: [
909
- /* @__PURE__ */ l(
909
+ /* @__PURE__ */ s(
910
910
  ge,
911
911
  {
912
912
  componentRef: c().componentRef,
@@ -920,15 +920,15 @@ function H(e) {
920
920
  isInteractive: c().isInteractive
921
921
  }
922
922
  ),
923
- (g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */ l(
924
- H,
923
+ (m = d()) == null ? void 0 : m.map((g) => /* @__PURE__ */ s(
924
+ G,
925
925
  {
926
- block: f,
926
+ block: g,
927
927
  registeredComponents: e.registeredComponents,
928
928
  linkComponent: e.linkComponent,
929
929
  context: e.context
930
930
  },
931
- f.id
931
+ g.id
932
932
  ))
933
933
  ]
934
934
  }
@@ -936,7 +936,7 @@ function H(e) {
936
936
  ] }) : null });
937
937
  }
938
938
  function Mt(e) {
939
- const t = D(null);
939
+ const t = L(null);
940
940
  function n() {
941
941
  var a;
942
942
  return [
@@ -952,8 +952,8 @@ function Mt(e) {
952
952
  return e.path.startsWith(a) ? e.path : `${a}${e.path || ""}`;
953
953
  }
954
954
  function o() {
955
- var a, s;
956
- N() && !((a = e.blocks) != null && a.length) && ((s = window.parent) == null || s.postMessage(
955
+ var a, l;
956
+ N() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
957
957
  {
958
958
  type: "builder.clickEmptyBlocks",
959
959
  data: {
@@ -965,8 +965,8 @@ function Mt(e) {
965
965
  ));
966
966
  }
967
967
  function r() {
968
- var a, s;
969
- N() && !((a = e.blocks) != null && a.length) && ((s = window.parent) == null || s.postMessage(
968
+ var a, l;
969
+ N() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
970
970
  {
971
971
  type: "builder.hoverEmptyBlocks",
972
972
  data: {
@@ -978,8 +978,8 @@ function Mt(e) {
978
978
  ));
979
979
  }
980
980
  return A(() => {
981
- }, []), /* @__PURE__ */ W(w, { children: [
982
- /* @__PURE__ */ l(
981
+ }, []), /* @__PURE__ */ B(E, { children: [
982
+ /* @__PURE__ */ s(
983
983
  e.BlocksWrapper,
984
984
  {
985
985
  ref: t,
@@ -994,7 +994,7 @@ function Mt(e) {
994
994
  children: e.children
995
995
  }
996
996
  ),
997
- /* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-2c6a6d88 {
997
+ /* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-2c6a6d88 {
998
998
  display: flex;
999
999
  flex-direction: column;
1000
1000
  align-items: stretch;
@@ -1004,7 +1004,7 @@ function Mt(e) {
1004
1004
  function F(e) {
1005
1005
  var i, o, r;
1006
1006
  const t = fe(se), n = fe(Pe);
1007
- return /* @__PURE__ */ l(
1007
+ return /* @__PURE__ */ s(
1008
1008
  Mt,
1009
1009
  {
1010
1010
  blocks: e.blocks,
@@ -1014,8 +1014,8 @@ function F(e) {
1014
1014
  classNameProp: e.className,
1015
1015
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
1016
1016
  BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
1017
- children: e.blocks ? /* @__PURE__ */ l(w, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ l(
1018
- H,
1017
+ children: e.blocks ? /* @__PURE__ */ s(E, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ s(
1018
+ G,
1019
1019
  {
1020
1020
  block: a,
1021
1021
  linkComponent: e.linkComponent,
@@ -1029,7 +1029,7 @@ function F(e) {
1029
1029
  }
1030
1030
  const jt = (e) => `builder-columns ${e}-breakpoints`;
1031
1031
  function qt(e) {
1032
- var v, x;
1032
+ var v, y;
1033
1033
  function t() {
1034
1034
  return typeof e.space == "number" ? e.space || 0 : 20;
1035
1035
  }
@@ -1050,7 +1050,7 @@ function qt(e) {
1050
1050
  const p = r(b), C = t() * (n().length - 1) * (p / 100);
1051
1051
  return `calc(${p}% - ${C}px)`;
1052
1052
  }
1053
- function s({
1053
+ function l({
1054
1054
  stackedStyle: b,
1055
1055
  desktopStyle: p
1056
1056
  }) {
@@ -1068,14 +1068,14 @@ function qt(e) {
1068
1068
  function h() {
1069
1069
  return {
1070
1070
  "--flex-dir": c(),
1071
- "--flex-dir-tablet": s({
1071
+ "--flex-dir-tablet": l({
1072
1072
  stackedStyle: c(),
1073
1073
  desktopStyle: "row"
1074
1074
  })
1075
1075
  };
1076
1076
  }
1077
- function g(b) {
1078
- const p = b === 0 ? 0 : t(), C = a(b), V = `${p}px`, k = "100%", T = 0;
1077
+ function m(b) {
1078
+ const p = b === 0 ? 0 : t(), C = a(b), P = `${p}px`, I = "100%", w = 0;
1079
1079
  return {
1080
1080
  ...{
1081
1081
  display: "flex",
@@ -1083,35 +1083,35 @@ function qt(e) {
1083
1083
  alignItems: "stretch"
1084
1084
  },
1085
1085
  width: C,
1086
- ["marginLeft"]: V,
1086
+ ["marginLeft"]: P,
1087
1087
  "--column-width-mobile": d({
1088
- stackedStyle: k,
1088
+ stackedStyle: I,
1089
1089
  desktopStyle: C
1090
1090
  }),
1091
1091
  "--column-margin-left-mobile": d({
1092
- stackedStyle: T,
1093
- desktopStyle: V
1092
+ stackedStyle: w,
1093
+ desktopStyle: P
1094
1094
  }),
1095
- "--column-width-tablet": s({
1096
- stackedStyle: k,
1095
+ "--column-width-tablet": l({
1096
+ stackedStyle: I,
1097
1097
  desktopStyle: C
1098
1098
  }),
1099
- "--column-margin-left-tablet": s({
1100
- stackedStyle: T,
1101
- desktopStyle: V
1099
+ "--column-margin-left-tablet": l({
1100
+ stackedStyle: w,
1101
+ desktopStyle: P
1102
1102
  })
1103
1103
  };
1104
1104
  }
1105
- function m(b) {
1106
- var C, V;
1105
+ function u(b) {
1106
+ var C, P;
1107
1107
  return Oe(
1108
- ((V = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : V.breakpoints) || {}
1108
+ ((P = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : P.breakpoints) || {}
1109
1109
  )[b].max;
1110
1110
  }
1111
- function y() {
1111
+ function k() {
1112
1112
  const b = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1113
1113
  return `
1114
- @media (max-width: ${m("medium")}px) {
1114
+ @media (max-width: ${u("medium")}px) {
1115
1115
  .${e.builderBlock.id}-breakpoints {
1116
1116
  flex-direction: var(--flex-dir-tablet);
1117
1117
  align-items: stretch;
@@ -1123,7 +1123,7 @@ function qt(e) {
1123
1123
  }
1124
1124
  }
1125
1125
 
1126
- @media (max-width: ${m("small")}px) {
1126
+ @media (max-width: ${u("small")}px) {
1127
1127
  .${e.builderBlock.id}-breakpoints {
1128
1128
  flex-direction: var(--flex-dir);
1129
1129
  align-items: stretch;
@@ -1136,48 +1136,48 @@ function qt(e) {
1136
1136
  },
1137
1137
  `;
1138
1138
  }
1139
- function f(b, p) {
1139
+ function g(b, p) {
1140
1140
  return {
1141
1141
  ...b.link ? {
1142
1142
  href: b.link
1143
1143
  } : {},
1144
- [_()]: "builder-column",
1145
- style: $e(g(p))
1144
+ [U()]: "builder-column",
1145
+ style: $e(m(p))
1146
1146
  };
1147
1147
  }
1148
- return /* @__PURE__ */ W(w, { children: [
1149
- /* @__PURE__ */ W(
1148
+ return /* @__PURE__ */ B(E, { children: [
1149
+ /* @__PURE__ */ B(
1150
1150
  "div",
1151
1151
  {
1152
- className: jt((v = e.builderBlock) == null ? void 0 : v.id) + " div-d55bdf5c",
1152
+ className: jt((v = e.builderBlock) == null ? void 0 : v.id) + " div-a6f3faac",
1153
1153
  style: h(),
1154
1154
  children: [
1155
- /* @__PURE__ */ l(
1156
- G,
1155
+ /* @__PURE__ */ s(
1156
+ J,
1157
1157
  {
1158
1158
  id: "builderio-columns",
1159
- styles: y(),
1159
+ styles: k(),
1160
1160
  nonce: e.builderContext.nonce
1161
1161
  }
1162
1162
  ),
1163
- (x = e.columns) == null ? void 0 : x.map((b, p) => /* @__PURE__ */ l(
1163
+ (y = e.columns) == null ? void 0 : y.map((b, p) => /* @__PURE__ */ s(
1164
1164
  le,
1165
1165
  {
1166
1166
  TagName: o(b),
1167
1167
  actionAttributes: {},
1168
- attributes: f(b, p),
1169
- children: /* @__PURE__ */ l(
1168
+ attributes: g(b, p),
1169
+ children: /* @__PURE__ */ s(
1170
1170
  F,
1171
1171
  {
1172
1172
  path: `columns.${p}.blocks`,
1173
1173
  parent: e.builderBlock.id,
1174
- styleProp: {
1175
- flexGrow: "1"
1176
- },
1177
1174
  context: e.builderContext,
1178
1175
  registeredComponents: e.builderComponents,
1179
1176
  linkComponent: e.builderLinkComponent,
1180
- blocks: b.blocks
1177
+ blocks: b.blocks,
1178
+ styleProp: {
1179
+ flexGrow: "1"
1180
+ }
1181
1181
  }
1182
1182
  )
1183
1183
  },
@@ -1186,14 +1186,14 @@ function qt(e) {
1186
1186
  ]
1187
1187
  }
1188
1188
  ),
1189
- /* @__PURE__ */ l("style", { children: `.div-d55bdf5c {
1189
+ /* @__PURE__ */ s("style", { children: `.div-a6f3faac {
1190
1190
  display: flex;
1191
1191
  line-height: normal;
1192
1192
  }` })
1193
1193
  ] });
1194
1194
  }
1195
1195
  function zt(e) {
1196
- return /* @__PURE__ */ l("span", { children: e.children });
1196
+ return /* @__PURE__ */ s("span", { children: e.children });
1197
1197
  }
1198
1198
  function pe(e) {
1199
1199
  return e.replace(/http(s)?:/, "");
@@ -1226,21 +1226,21 @@ function Y(e) {
1226
1226
  return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Jt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1227
1227
  }
1228
1228
  function Gt(e) {
1229
- var o, r, a, s, d, c;
1229
+ var o, r, a, l, d, c;
1230
1230
  function t() {
1231
- var m;
1232
- const g = e.image || e.src;
1233
- if (!g || // We can auto add srcset for cdn.builder.io and shopify
1231
+ var u;
1232
+ const m = e.image || e.src;
1233
+ if (!m || // We can auto add srcset for cdn.builder.io and shopify
1234
1234
  // images, otherwise you can supply this prop manually
1235
- !(typeof g == "string" && (g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/))))
1235
+ !(typeof m == "string" && (m.match(/builder\.io/) || m.match(/cdn\.shopify\.com/))))
1236
1236
  return e.srcset;
1237
1237
  if (!e.noWebp) {
1238
- if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1238
+ if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
1239
1239
  if (!e.srcset.includes(e.image.split("?")[0]))
1240
- return console.debug("Removed given srcset"), Y(g);
1240
+ return console.debug("Removed given srcset"), Y(m);
1241
1241
  } else if (e.image && !e.srcset)
1242
- return Y(g);
1243
- return Y(g);
1242
+ return Y(m);
1243
+ return Y(m);
1244
1244
  }
1245
1245
  }
1246
1246
  function n() {
@@ -1257,12 +1257,11 @@ function Gt(e) {
1257
1257
  };
1258
1258
  return e.aspectRatio ? h : void 0;
1259
1259
  }
1260
- return A(() => {
1261
- }, []), /* @__PURE__ */ W(w, { children: [
1262
- /* @__PURE__ */ W(w, { children: [
1263
- /* @__PURE__ */ W("picture", { children: [
1264
- n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
1265
- /* @__PURE__ */ l(
1260
+ return /* @__PURE__ */ B(E, { children: [
1261
+ /* @__PURE__ */ B(E, { children: [
1262
+ /* @__PURE__ */ B("picture", { children: [
1263
+ n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1264
+ /* @__PURE__ */ s(
1266
1265
  "img",
1267
1266
  {
1268
1267
  loading: e.highPriority ? "eager" : "lazy",
@@ -1274,33 +1273,33 @@ function Gt(e) {
1274
1273
  objectFit: e.backgroundSize || "cover",
1275
1274
  ...i()
1276
1275
  },
1277
- className: "builder-image" + (e.className ? " " + e.className : "") + " img-11a47ef4",
1276
+ className: "builder-image" + (e.className ? " " + e.className : "") + " img-9dac2184",
1278
1277
  src: e.image,
1279
1278
  srcSet: t(),
1280
1279
  sizes: e.sizes
1281
1280
  }
1282
1281
  )
1283
1282
  ] }),
1284
- e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ l(
1283
+ e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
1285
1284
  "div",
1286
1285
  {
1287
- className: "builder-image-sizer div-11a47ef4",
1286
+ className: "builder-image-sizer div-9dac2184",
1288
1287
  style: {
1289
1288
  paddingTop: e.aspectRatio * 100 + "%"
1290
1289
  }
1291
1290
  }
1292
1291
  ) : null,
1293
- (s = (a = e.builderBlock) == null ? void 0 : a.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(w, { children: e.children }) : null,
1294
- !e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ l("div", { className: "div-11a47ef4-2", children: e.children }) : null
1292
+ (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(E, { children: e.children }) : null,
1293
+ !e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-9dac2184-2", children: e.children }) : null
1295
1294
  ] }),
1296
- /* @__PURE__ */ l("style", { children: `.img-11a47ef4 {
1295
+ /* @__PURE__ */ s("style", { children: `.img-9dac2184 {
1297
1296
  opacity: 1;
1298
1297
  transition: opacity 0.2s ease-in-out;
1299
- }.div-11a47ef4 {
1298
+ }.div-9dac2184 {
1300
1299
  width: 100%;
1301
1300
  pointer-events: none;
1302
1301
  font-size: 0;
1303
- }.div-11a47ef4-2 {
1302
+ }.div-9dac2184-2 {
1304
1303
  display: flex;
1305
1304
  flex-direction: column;
1306
1305
  align-items: stretch;
@@ -1313,7 +1312,7 @@ function Gt(e) {
1313
1312
  ] });
1314
1313
  }
1315
1314
  function Yt(e) {
1316
- return /* @__PURE__ */ l(
1315
+ return /* @__PURE__ */ s(
1317
1316
  "section",
1318
1317
  {
1319
1318
  ...e.attributes,
@@ -1459,8 +1458,8 @@ const Q = {
1459
1458
  }
1460
1459
  }, ye = (e) => e.toString();
1461
1460
  function Xt(e) {
1462
- var g;
1463
- const [t, n] = E(() => []);
1461
+ var m;
1462
+ const [t, n] = R(() => []);
1464
1463
  function i() {
1465
1464
  return !!(e.grid || e.oneAtATime);
1466
1465
  }
@@ -1477,7 +1476,7 @@ function Xt(e) {
1477
1476
  };
1478
1477
  }
1479
1478
  function r() {
1480
- const y = {
1479
+ const k = {
1481
1480
  ...{
1482
1481
  display: "flex",
1483
1482
  flexDirection: "column"
@@ -1486,75 +1485,75 @@ function Xt(e) {
1486
1485
  cursor: "pointer"
1487
1486
  };
1488
1487
  return Object.fromEntries(
1489
- Object.entries(y).filter(([f, v]) => v !== void 0)
1488
+ Object.entries(k).filter(([g, v]) => v !== void 0)
1490
1489
  );
1491
1490
  }
1492
- function a(m) {
1493
- return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
1491
+ function a(u) {
1492
+ return `builder-accordion-title builder-accordion-title-${t.includes(u) ? "open" : "closed"}`;
1494
1493
  }
1495
- function s(m) {
1496
- return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
1494
+ function l(u) {
1495
+ return `builder-accordion-detail builder-accordion-detail-${t.includes(u) ? "open" : "closed"}`;
1497
1496
  }
1498
1497
  function d() {
1499
- let m = null;
1498
+ let u = null;
1500
1499
  if (e.grid && t.length && document) {
1501
- const f = t[0];
1502
- let x = document.querySelector(
1503
- `.builder-accordion-title[data-index="${f}"]`
1500
+ const g = t[0];
1501
+ let y = document.querySelector(
1502
+ `.builder-accordion-title[data-index="${g}"]`
1504
1503
  );
1505
- if (m = f, x) {
1506
- let b = x.getBoundingClientRect();
1507
- for (; x = x && x.nextElementSibling; )
1508
- if (x) {
1509
- if (x.classList.contains("builder-accordion-detail"))
1504
+ if (u = g, y) {
1505
+ let b = y.getBoundingClientRect();
1506
+ for (; y = y && y.nextElementSibling; )
1507
+ if (y) {
1508
+ if (y.classList.contains("builder-accordion-detail"))
1510
1509
  continue;
1511
- const p = x.getBoundingClientRect();
1510
+ const p = y.getBoundingClientRect();
1512
1511
  if (p.left > b.left) {
1513
1512
  const C = parseInt(
1514
- x.getAttribute("data-index") || "",
1513
+ y.getAttribute("data-index") || "",
1515
1514
  10
1516
1515
  );
1517
- isNaN(C) || (b = p, m = C);
1516
+ isNaN(C) || (b = p, u = C);
1518
1517
  } else
1519
1518
  break;
1520
1519
  }
1521
1520
  }
1522
1521
  }
1523
- return typeof m == "number" && (m = m + 1), m;
1522
+ return typeof u == "number" && (u = u + 1), u;
1524
1523
  }
1525
1524
  function c() {
1526
- const m = {
1525
+ const u = {
1527
1526
  order: typeof d() == "number" ? d() : void 0,
1528
1527
  ...e.grid && {
1529
1528
  width: "100%"
1530
1529
  }
1531
1530
  };
1532
1531
  return Object.fromEntries(
1533
- Object.entries(m).filter(([y, f]) => f !== void 0)
1532
+ Object.entries(u).filter(([k, g]) => g !== void 0)
1534
1533
  );
1535
1534
  }
1536
- function h(m) {
1537
- t.includes(m) ? n(i() ? [] : t.filter((y) => y !== m)) : n(i() ? [m] : t.concat(m));
1535
+ function h(u) {
1536
+ t.includes(u) ? n(i() ? [] : t.filter((k) => k !== u)) : n(i() ? [u] : t.concat(u));
1538
1537
  }
1539
- return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, y) => /* @__PURE__ */ W(Ge.Fragment, { children: [
1540
- /* @__PURE__ */ l(
1538
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (m = e.items) == null ? void 0 : m.map((u, k) => /* @__PURE__ */ B(Ge.Fragment, { children: [
1539
+ /* @__PURE__ */ s(
1541
1540
  "div",
1542
1541
  {
1543
- className: a(y),
1542
+ className: a(k),
1544
1543
  style: {
1545
1544
  ...r(),
1546
1545
  ...e.grid && {
1547
1546
  width: e.gridRowWidth,
1548
- order: d() !== null ? ye(y) : ye(y + 1)
1547
+ order: d() !== null ? ye(k) : ye(k + 1)
1549
1548
  }
1550
1549
  },
1551
- "data-index": y,
1552
- onClick: (f) => h(y),
1553
- children: /* @__PURE__ */ l(
1550
+ "data-index": k,
1551
+ onClick: (g) => h(k),
1552
+ children: /* @__PURE__ */ s(
1554
1553
  F,
1555
1554
  {
1556
- blocks: m.title,
1557
- path: `items.${y}.title`,
1555
+ blocks: u.title,
1556
+ path: `items.${k}.title`,
1558
1557
  parent: e.builderBlock.id,
1559
1558
  context: e.builderContext,
1560
1559
  registeredComponents: e.builderComponents,
@@ -1563,16 +1562,16 @@ function Xt(e) {
1563
1562
  )
1564
1563
  }
1565
1564
  ),
1566
- t.includes(y) ? /* @__PURE__ */ l(
1565
+ t.includes(k) ? /* @__PURE__ */ s(
1567
1566
  "div",
1568
1567
  {
1569
- className: s(y),
1568
+ className: l(k),
1570
1569
  style: c(),
1571
- children: /* @__PURE__ */ l(
1570
+ children: /* @__PURE__ */ s(
1572
1571
  F,
1573
1572
  {
1574
- blocks: m.detail,
1575
- path: `items.${y}.detail`,
1573
+ blocks: u.detail,
1574
+ path: `items.${k}.detail`,
1576
1575
  parent: e.builderBlock.id,
1577
1576
  context: e.builderContext,
1578
1577
  registeredComponents: e.builderComponents,
@@ -1581,7 +1580,7 @@ function Xt(e) {
1581
1580
  )
1582
1581
  }
1583
1582
  ) : null
1584
- ] }, y)) });
1583
+ ] }, k)) });
1585
1584
  }
1586
1585
  const Zt = {
1587
1586
  name: "Core:Button",
@@ -1798,7 +1797,7 @@ const Zt = {
1798
1797
  });
1799
1798
  }
1800
1799
  const n = e.get("columns");
1801
- Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((s, d) => s + d.get("width"), 0) !== 100) && t();
1800
+ Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((l, d) => l + d.get("width"), 0) !== 100) && t();
1802
1801
  }
1803
1802
  }, {
1804
1803
  name: "space",
@@ -1852,17 +1851,17 @@ const Zt = {
1852
1851
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1853
1852
  onChange: (e) => {
1854
1853
  e.delete("srcset"), e.delete("noWebp");
1855
- function n(a, s = 6e4) {
1854
+ function n(a, l = 6e4) {
1856
1855
  return new Promise((d, c) => {
1857
1856
  const h = document.createElement("img");
1858
- let g = !1;
1857
+ let m = !1;
1859
1858
  h.onload = () => {
1860
- g = !0, d(h);
1861
- }, h.addEventListener("error", (m) => {
1862
- console.warn("Image load failed", m.error), c(m.error);
1859
+ m = !0, d(h);
1860
+ }, h.addEventListener("error", (u) => {
1861
+ console.warn("Image load failed", u.error), c(u.error);
1863
1862
  }), h.src = a, setTimeout(() => {
1864
- g || c(new Error("Image load timed out"));
1865
- }, s);
1863
+ m || c(new Error("Image load timed out"));
1864
+ }, l);
1866
1865
  });
1867
1866
  }
1868
1867
  function i(a) {
@@ -1873,8 +1872,8 @@ const Zt = {
1873
1872
  a.type.includes("svg") && e.set("noWebp", !0);
1874
1873
  }), o && (!r || r === 0.7041))
1875
1874
  return n(o).then((a) => {
1876
- const s = e.get("aspectRatio");
1877
- e.get("image") === o && (!s || s === 0.7041) && a.width && a.height && (e.set("aspectRatio", i(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
1875
+ const l = e.get("aspectRatio");
1876
+ e.get("image") === o && (!l || l === 0.7041) && a.width && a.height && (e.set("aspectRatio", i(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
1878
1877
  });
1879
1878
  }
1880
1879
  }, {
@@ -1999,7 +1998,7 @@ const Zt = {
1999
1998
  };
2000
1999
  function ln(e) {
2001
2000
  var t, n, i;
2002
- return /* @__PURE__ */ l(
2001
+ return /* @__PURE__ */ s(
2003
2002
  "div",
2004
2003
  {
2005
2004
  style: {
@@ -2008,7 +2007,7 @@ function ln(e) {
2008
2007
  ...!((t = e.builderContext.context) != null && t.symbolId) && {
2009
2008
  "builder-slot": e.name
2010
2009
  },
2011
- children: /* @__PURE__ */ l(
2010
+ children: /* @__PURE__ */ s(
2012
2011
  F,
2013
2012
  {
2014
2013
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
@@ -2204,7 +2203,7 @@ const sn = {
2204
2203
  };
2205
2204
  function dn(e) {
2206
2205
  var r;
2207
- const [t, n] = E(
2206
+ const [t, n] = R(
2208
2207
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
2209
2208
  );
2210
2209
  function i(a) {
@@ -2213,8 +2212,8 @@ function dn(e) {
2213
2212
  function o(a) {
2214
2213
  a === t && e.collapsible ? n(-1) : n(a);
2215
2214
  }
2216
- return /* @__PURE__ */ W("div", { children: [
2217
- /* @__PURE__ */ l(
2215
+ return /* @__PURE__ */ B("div", { children: [
2216
+ /* @__PURE__ */ s(
2218
2217
  "div",
2219
2218
  {
2220
2219
  className: "builder-tabs-wrap",
@@ -2224,19 +2223,19 @@ function dn(e) {
2224
2223
  justifyContent: e.tabHeaderLayout || "flex-start",
2225
2224
  overflow: "auto"
2226
2225
  },
2227
- children: (r = e.tabs) == null ? void 0 : r.map((a, s) => /* @__PURE__ */ l(
2226
+ children: (r = e.tabs) == null ? void 0 : r.map((a, l) => /* @__PURE__ */ s(
2228
2227
  "span",
2229
2228
  {
2230
- className: `builder-tab-wrap ${t === s ? "builder-tab-active" : ""}`,
2229
+ className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
2231
2230
  style: {
2232
- ...t === s ? e.activeTabStyle : {}
2231
+ ...t === l ? e.activeTabStyle : {}
2233
2232
  },
2234
- onClick: (d) => o(s),
2235
- children: /* @__PURE__ */ l(
2233
+ onClick: (d) => o(l),
2234
+ children: /* @__PURE__ */ s(
2236
2235
  F,
2237
2236
  {
2238
2237
  parent: e.builderBlock.id,
2239
- path: `tabs.${s}.label`,
2238
+ path: `tabs.${l}.label`,
2240
2239
  blocks: a.label,
2241
2240
  context: e.builderContext,
2242
2241
  registeredComponents: e.builderComponents,
@@ -2244,11 +2243,11 @@ function dn(e) {
2244
2243
  }
2245
2244
  )
2246
2245
  },
2247
- s
2246
+ l
2248
2247
  ))
2249
2248
  }
2250
2249
  ),
2251
- i(t) ? /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
2250
+ i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
2252
2251
  F,
2253
2252
  {
2254
2253
  parent: e.builderBlock.id,
@@ -2286,7 +2285,7 @@ const un = {
2286
2285
  };
2287
2286
  function mn(e) {
2288
2287
  var t;
2289
- return /* @__PURE__ */ l(
2288
+ return /* @__PURE__ */ s(
2290
2289
  "div",
2291
2290
  {
2292
2291
  className: "builder-text",
@@ -2321,10 +2320,10 @@ const fn = {
2321
2320
  }]
2322
2321
  };
2323
2322
  function hn(e) {
2324
- const t = D(null), [n, i] = E(() => []), [o, r] = E(() => []);
2323
+ const t = L(null), [n, i] = R(() => []), [o, r] = R(() => []);
2325
2324
  return A(() => {
2326
- var s;
2327
- if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
2325
+ var l;
2326
+ if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
2328
2327
  return;
2329
2328
  const a = t.current.getElementsByTagName("script");
2330
2329
  for (let d = 0; d < a.length; d++) {
@@ -2349,7 +2348,7 @@ function hn(e) {
2349
2348
  }
2350
2349
  }
2351
2350
  }
2352
- }, []), /* @__PURE__ */ l(
2351
+ }, []), /* @__PURE__ */ s(
2353
2352
  "div",
2354
2353
  {
2355
2354
  ref: t,
@@ -2375,28 +2374,28 @@ const gn = {
2375
2374
  }]
2376
2375
  }, bn = ["text/javascript", "application/javascript", "application/ecmascript"], pn = (e) => bn.includes(e.type);
2377
2376
  function yn(e) {
2378
- const t = D(null), [n, i] = E(() => []), [o, r] = E(() => []), [a, s] = E(() => !1);
2377
+ const t = L(null), [n, i] = R(() => []), [o, r] = R(() => []), [a, l] = R(() => !1);
2379
2378
  function d() {
2380
2379
  if (!t.current || !t.current.getElementsByTagName)
2381
2380
  return;
2382
2381
  const c = t.current.getElementsByTagName("script");
2383
2382
  for (let h = 0; h < c.length; h++) {
2384
- const g = c[h];
2385
- if (g.src && !n.includes(g.src)) {
2386
- n.push(g.src);
2387
- const m = document.createElement("script");
2388
- m.async = !0, m.src = g.src, document.head.appendChild(m);
2389
- } else if (pn(g) && !o.includes(g.innerText))
2383
+ const m = c[h];
2384
+ if (m.src && !n.includes(m.src)) {
2385
+ n.push(m.src);
2386
+ const u = document.createElement("script");
2387
+ u.async = !0, u.src = m.src, document.head.appendChild(u);
2388
+ } else if (pn(m) && !o.includes(m.innerText))
2390
2389
  try {
2391
- o.push(g.innerText), new Function(g.innerText)();
2392
- } catch (m) {
2393
- console.warn("`Embed`: Error running script:", m);
2390
+ o.push(m.innerText), new Function(m.innerText)();
2391
+ } catch (u) {
2392
+ console.warn("`Embed`: Error running script:", u);
2394
2393
  }
2395
2394
  }
2396
2395
  }
2397
2396
  return A(() => {
2398
- t.current && !a && (s(!0), d());
2399
- }, [t.current, a]), /* @__PURE__ */ l(
2397
+ t.current && !a && (l(!0), d());
2398
+ }, [t.current, a]), /* @__PURE__ */ s(
2400
2399
  "div",
2401
2400
  {
2402
2401
  className: "builder-embed",
@@ -2647,114 +2646,113 @@ const xn = {
2647
2646
  return vn.includes(e) ? e : "production";
2648
2647
  };
2649
2648
  function kn(e) {
2650
- var g, m;
2651
- const t = D(null), [n, i] = E(() => "unsubmitted"), [o, r] = E(() => null), [a, s] = E(() => "");
2652
- function d(y) {
2653
- var v, x;
2654
- const f = {
2649
+ const t = L(null), [n, i] = R(() => "unsubmitted"), [o, r] = R(() => null), [a, l] = R(() => "");
2650
+ function d(m) {
2651
+ var k, g;
2652
+ const u = {
2655
2653
  ...e.builderContext.rootState,
2656
- ...y
2654
+ ...m
2657
2655
  };
2658
- e.builderContext.rootSetState ? (x = (v = e.builderContext).rootSetState) == null || x.call(v, f) : e.builderContext.rootState = f;
2656
+ e.builderContext.rootSetState ? (g = (k = e.builderContext).rootSetState) == null || g.call(k, u) : e.builderContext.rootState = u;
2659
2657
  }
2660
2658
  function c() {
2661
2659
  return N() && e.previewState || n;
2662
2660
  }
2663
- function h(y) {
2664
- var v;
2665
- const f = e.sendWithJs || e.sendSubmissionsTo === "email";
2661
+ function h(m) {
2662
+ var k;
2663
+ const u = e.sendWithJs || e.sendSubmissionsTo === "email";
2666
2664
  if (e.sendSubmissionsTo === "zapier")
2667
- y.preventDefault();
2668
- else if (f) {
2665
+ m.preventDefault();
2666
+ else if (u) {
2669
2667
  if (!(e.action || e.sendSubmissionsTo === "email")) {
2670
- y.preventDefault();
2668
+ m.preventDefault();
2671
2669
  return;
2672
2670
  }
2673
- y.preventDefault();
2674
- const x = y.currentTarget || y.target, b = e.customHeaders || {};
2675
- let p;
2676
- const C = new FormData(x), V = Array.from(x.querySelectorAll("input,select,textarea")).filter((u) => !!u.name).map((u) => {
2671
+ m.preventDefault();
2672
+ const g = m.currentTarget || m.target, v = e.customHeaders || {};
2673
+ let y;
2674
+ const b = new FormData(g), p = Array.from(g.querySelectorAll("input,select,textarea")).filter((f) => !!f.name).map((f) => {
2677
2675
  let S;
2678
- const P = u.name;
2679
- if (u instanceof HTMLInputElement)
2680
- if (u.type === "radio") {
2681
- if (u.checked)
2682
- return S = u.name, {
2683
- key: P,
2676
+ const x = f.name;
2677
+ if (f instanceof HTMLInputElement)
2678
+ if (f.type === "radio") {
2679
+ if (f.checked)
2680
+ return S = f.name, {
2681
+ key: x,
2684
2682
  value: S
2685
2683
  };
2686
- } else if (u.type === "checkbox")
2687
- S = u.checked;
2688
- else if (u.type === "number" || u.type === "range") {
2689
- const I = u.valueAsNumber;
2690
- isNaN(I) || (S = I);
2684
+ } else if (f.type === "checkbox")
2685
+ S = f.checked;
2686
+ else if (f.type === "number" || f.type === "range") {
2687
+ const T = f.valueAsNumber;
2688
+ isNaN(T) || (S = T);
2691
2689
  } else
2692
- u.type === "file" ? S = u.files : S = u.value;
2690
+ f.type === "file" ? S = f.files : S = f.value;
2693
2691
  else
2694
- S = u.value;
2692
+ S = f.value;
2695
2693
  return {
2696
- key: P,
2694
+ key: x,
2697
2695
  value: S
2698
2696
  };
2699
2697
  });
2700
- let k = e.contentType;
2701
- if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(V).forEach(({ value: u }) => {
2702
- (u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (k = "multipart/form-data");
2703
- }), k !== "application/json")
2704
- p = C;
2698
+ let C = e.contentType;
2699
+ if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(p).forEach(({ value: f }) => {
2700
+ (f instanceof File || Array.isArray(f) && f[0] instanceof File || f instanceof FileList) && (C = "multipart/form-data");
2701
+ }), C !== "application/json")
2702
+ y = b;
2705
2703
  else {
2706
- const u = {};
2707
- Array.from(V).forEach(({ value: S, key: P }) => {
2708
- Re(u, P, S);
2709
- }), p = JSON.stringify(u);
2704
+ const f = {};
2705
+ Array.from(p).forEach(({ value: S, key: x }) => {
2706
+ Re(f, x, S);
2707
+ }), y = JSON.stringify(f);
2710
2708
  }
2711
- k && k !== "multipart/form-data" && (f && ((v = e.action) != null && v.includes("zapier.com")) || (b["content-type"] = k));
2712
- const T = new CustomEvent("presubmit", { detail: { body: p } });
2713
- if (t.current && (t.current.dispatchEvent(T), T.defaultPrevented))
2709
+ C && C !== "multipart/form-data" && (u && ((k = e.action) != null && k.includes("zapier.com")) || (v["content-type"] = C));
2710
+ const P = new CustomEvent("presubmit", { detail: { body: y } });
2711
+ if (t.current && (t.current.dispatchEvent(P), P.defaultPrevented))
2714
2712
  return;
2715
2713
  i("sending");
2716
- const R = `${Sn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2714
+ const I = `${Sn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2717
2715
  e.sendSubmissionsToEmail || ""
2718
- )}&name=${encodeURIComponent(e.name || "")}`, B = e.sendSubmissionsTo === "email" ? R : e.action;
2719
- Te(B), fetch(B, { body: p, headers: b, method: e.method || "post" }).then(
2720
- async (u) => {
2716
+ )}&name=${encodeURIComponent(e.name || "")}`, w = e.sendSubmissionsTo === "email" ? I : e.action;
2717
+ Te(w), fetch(w, { body: y, headers: v, method: e.method || "post" }).then(
2718
+ async (f) => {
2721
2719
  let S;
2722
- const P = u.headers.get("content-type");
2723
- if (P && P.indexOf("application/json") !== -1 ? S = await u.json() : S = await u.text(), !u.ok && e.errorMessagePath) {
2724
- let I = Be(S, e.errorMessagePath);
2725
- I && (typeof I != "string" && (I = JSON.stringify(I)), s(I), d({ formErrorMessage: I }));
2720
+ const x = f.headers.get("content-type");
2721
+ if (x && x.indexOf("application/json") !== -1 ? S = await f.json() : S = await f.text(), !f.ok && e.errorMessagePath) {
2722
+ let T = Be(S, e.errorMessagePath);
2723
+ T && (typeof T != "string" && (T = JSON.stringify(T)), l(T), d({ formErrorMessage: T }));
2726
2724
  }
2727
- if (r(S), i(u.ok ? "success" : "error"), u.ok) {
2728
- const I = new CustomEvent("submit:success", {
2729
- detail: { res: u, body: S }
2725
+ if (r(S), i(f.ok ? "success" : "error"), f.ok) {
2726
+ const T = new CustomEvent("submit:success", {
2727
+ detail: { res: f, body: S }
2730
2728
  });
2731
2729
  if (t.current) {
2732
- if (t.current.dispatchEvent(I), I.defaultPrevented)
2730
+ if (t.current.dispatchEvent(T), T.defaultPrevented)
2733
2731
  return;
2734
2732
  e.resetFormOnSubmit !== !1 && t.current.reset();
2735
2733
  }
2736
2734
  if (e.successUrl)
2737
2735
  if (t.current) {
2738
- const L = new CustomEvent("route", {
2736
+ const V = new CustomEvent("route", {
2739
2737
  detail: { url: e.successUrl }
2740
2738
  });
2741
- t.current.dispatchEvent(L), L.defaultPrevented || (location.href = e.successUrl);
2739
+ t.current.dispatchEvent(V), V.defaultPrevented || (location.href = e.successUrl);
2742
2740
  } else
2743
2741
  location.href = e.successUrl;
2744
2742
  }
2745
2743
  },
2746
- (u) => {
2744
+ (f) => {
2747
2745
  const S = new CustomEvent("submit:error", {
2748
- detail: { error: u }
2746
+ detail: { error: f }
2749
2747
  });
2750
- t.current && (t.current.dispatchEvent(S), S.defaultPrevented) || (r(u), i("error"));
2748
+ t.current && (t.current.dispatchEvent(S), S.defaultPrevented) || (r(f), i("error"));
2751
2749
  }
2752
2750
  );
2753
2751
  }
2754
2752
  }
2755
- return /* @__PURE__ */ W(w, { children: [
2753
+ return /* @__PURE__ */ B(E, { children: [
2756
2754
  " ",
2757
- /* @__PURE__ */ W(
2755
+ /* @__PURE__ */ B(
2758
2756
  "form",
2759
2757
  {
2760
2758
  validate: e.validate,
@@ -2762,20 +2760,11 @@ function kn(e) {
2762
2760
  action: !e.sendWithJs && e.action,
2763
2761
  method: e.method,
2764
2762
  name: e.name,
2765
- onSubmit: (y) => h(y),
2763
+ onSubmit: (m) => h(m),
2766
2764
  ...e.attributes,
2767
2765
  children: [
2768
- e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(w, { children: (m = (g = e.builderBlock) == null ? void 0 : g.children) == null ? void 0 : m.map((y, f) => /* @__PURE__ */ l(
2769
- H,
2770
- {
2771
- block: y,
2772
- context: e.builderContext,
2773
- registeredComponents: e.builderComponents,
2774
- linkComponent: e.builderLinkComponent
2775
- },
2776
- `form-block-${f}`
2777
- )) }) : null,
2778
- c() === "error" ? /* @__PURE__ */ l(
2766
+ e.children,
2767
+ c() === "error" ? /* @__PURE__ */ s(
2779
2768
  F,
2780
2769
  {
2781
2770
  path: "errorMessage",
@@ -2783,7 +2772,7 @@ function kn(e) {
2783
2772
  context: e.builderContext
2784
2773
  }
2785
2774
  ) : null,
2786
- c() === "sending" ? /* @__PURE__ */ l(
2775
+ c() === "sending" ? /* @__PURE__ */ s(
2787
2776
  F,
2788
2777
  {
2789
2778
  path: "sendingMessage",
@@ -2791,8 +2780,8 @@ function kn(e) {
2791
2780
  context: e.builderContext
2792
2781
  }
2793
2782
  ) : null,
2794
- c() === "error" && o ? /* @__PURE__ */ l("pre", { className: "builder-form-error-text pre-3f9754fe", children: JSON.stringify(o, null, 2) }) : null,
2795
- c() === "success" ? /* @__PURE__ */ l(
2783
+ c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7acc3b46", children: JSON.stringify(o, null, 2) }) : null,
2784
+ c() === "success" ? /* @__PURE__ */ s(
2796
2785
  F,
2797
2786
  {
2798
2787
  path: "successMessage",
@@ -2804,7 +2793,7 @@ function kn(e) {
2804
2793
  }
2805
2794
  ),
2806
2795
  " ",
2807
- /* @__PURE__ */ l("style", { children: ".pre-3f9754fe { padding: 10px; color: red; text-align: center; }" }),
2796
+ /* @__PURE__ */ s("style", { children: ".pre-7acc3b46 { padding: 10px; color: red; text-align: center; }" }),
2808
2797
  " "
2809
2798
  ] });
2810
2799
  }
@@ -2930,7 +2919,7 @@ function wn(e) {
2930
2919
  name: e.name,
2931
2920
  required: e.required
2932
2921
  },
2933
- (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2922
+ (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2934
2923
  );
2935
2924
  }
2936
2925
  const En = {
@@ -2960,7 +2949,7 @@ const En = {
2960
2949
  // canHaveChildren: true,
2961
2950
  };
2962
2951
  function Rn(e) {
2963
- return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
2952
+ return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
2964
2953
  }
2965
2954
  const Pn = {
2966
2955
  name: "Form:TextArea",
@@ -3000,7 +2989,7 @@ const Pn = {
3000
2989
  noWrap: !0
3001
2990
  };
3002
2991
  function Bn(e) {
3003
- return /* @__PURE__ */ l(
2992
+ return /* @__PURE__ */ s(
3004
2993
  "textarea",
3005
2994
  {
3006
2995
  ...e.attributes,
@@ -3028,7 +3017,7 @@ const Vn = {
3028
3017
  static: !0
3029
3018
  };
3030
3019
  function An(e) {
3031
- return /* @__PURE__ */ l(
3020
+ return /* @__PURE__ */ s(
3032
3021
  "img",
3033
3022
  {
3034
3023
  style: {
@@ -3128,7 +3117,7 @@ const Wn = {
3128
3117
  }
3129
3118
  };
3130
3119
  function Nn(e) {
3131
- var i, o, r, a, s, d, c;
3120
+ var i, o, r, a, l, d, c;
3132
3121
  function t() {
3133
3122
  return {
3134
3123
  ...e.autoPlay === !0 ? {
@@ -3153,14 +3142,14 @@ function Nn(e) {
3153
3142
  ...t()
3154
3143
  };
3155
3144
  }
3156
- return /* @__PURE__ */ W(
3145
+ return /* @__PURE__ */ B(
3157
3146
  "div",
3158
3147
  {
3159
3148
  style: {
3160
3149
  position: "relative"
3161
3150
  },
3162
3151
  children: [
3163
- /* @__PURE__ */ l(
3152
+ /* @__PURE__ */ s(
3164
3153
  "video",
3165
3154
  {
3166
3155
  className: "builder-video",
@@ -3174,7 +3163,6 @@ function Nn(e) {
3174
3163
  objectPosition: e.position,
3175
3164
  // Hack to get object fit to work as expected and
3176
3165
  // not have the video overflow
3177
- zIndex: 2,
3178
3166
  borderRadius: "1px",
3179
3167
  ...e.aspectRatio ? {
3180
3168
  position: "absolute"
@@ -3182,10 +3170,10 @@ function Nn(e) {
3182
3170
  },
3183
3171
  src: e.video || "no-src",
3184
3172
  poster: e.posterImage,
3185
- children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
3173
+ children: e.lazyLoad ? null : /* @__PURE__ */ s("source", { type: "video/mp4", src: e.video })
3186
3174
  }
3187
3175
  ),
3188
- e.aspectRatio && !(e.fitContent && ((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length)) ? /* @__PURE__ */ l(
3176
+ e.aspectRatio && !(e.fitContent && ((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length)) ? /* @__PURE__ */ s(
3189
3177
  "div",
3190
3178
  {
3191
3179
  style: {
@@ -3196,7 +3184,7 @@ function Nn(e) {
3196
3184
  }
3197
3185
  }
3198
3186
  ) : null,
3199
- (s = (a = e.builderBlock) == null ? void 0 : a.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(
3187
+ (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
3200
3188
  "div",
3201
3189
  {
3202
3190
  style: {
@@ -3207,7 +3195,7 @@ function Nn(e) {
3207
3195
  children: e.children
3208
3196
  }
3209
3197
  ) : null,
3210
- (c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ l(
3198
+ (c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
3211
3199
  "div",
3212
3200
  {
3213
3201
  style: {
@@ -3375,14 +3363,14 @@ const Fn = () => [{
3375
3363
  thisScriptEl?.remove();
3376
3364
  }
3377
3365
  return;
3378
- }`, _e = "builderIoAbTest", He = "builderIoRenderContent", j = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3366
+ }`, _e = "builderIoAbTest", He = "builderIoRenderContent", M = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3379
3367
  ...t,
3380
3368
  testVariationId: t.id,
3381
3369
  id: e == null ? void 0 : e.id
3382
3370
  })), Dn = ({
3383
3371
  canTrack: e,
3384
3372
  content: t
3385
- }) => !(!(j(t).length > 0) || !e || q()), On = (e) => e === "react" || e === "reactNative", Me = On($), Un = () => `
3373
+ }) => !(!(M(t).length > 0) || !e || j()), On = (e) => e === "react" || e === "reactNative", Me = On($), Un = () => `
3386
3374
  window.${_e} = ${$n}
3387
3375
  window.${He} = ${Ln}
3388
3376
  `, _n = (e, t) => `
@@ -3395,7 +3383,7 @@ const Fn = () => [{
3395
3383
  "${t}", "${e}", ${Me}
3396
3384
  )`;
3397
3385
  function ie(e) {
3398
- return /* @__PURE__ */ l(
3386
+ return /* @__PURE__ */ s(
3399
3387
  "script",
3400
3388
  {
3401
3389
  dangerouslySetInnerHTML: { __html: e.scriptStr },
@@ -3458,16 +3446,16 @@ font-display: fallback;
3458
3446
  font-weight: 400;
3459
3447
  }
3460
3448
  `.trim()), e.files)
3461
- for (const s in e.files) {
3462
- if (!(String(Number(s)) === s))
3449
+ for (const l in e.files) {
3450
+ if (!(String(Number(l)) === l))
3463
3451
  continue;
3464
- const c = e.files[s];
3452
+ const c = e.files[l];
3465
3453
  c && c !== i && (o += `
3466
3454
  @font-face {
3467
3455
  font-family: "${t}";
3468
3456
  src: url('${c}') format('woff2');
3469
3457
  font-display: fallback;
3470
- font-weight: ${s};
3458
+ font-weight: ${l};
3471
3459
  }
3472
3460
  `.trim());
3473
3461
  }
@@ -3499,37 +3487,37 @@ font-weight: ${s};
3499
3487
  }
3500
3488
  `, Qn = (e) => e ? "" : Yn, Xn = (e) => `variant-${e}`;
3501
3489
  function Zn(e) {
3502
- var p, C, V;
3503
- const t = D(null);
3504
- function n(k) {
3505
- var R, B;
3506
- const T = {
3490
+ var p, C, P;
3491
+ const t = L(null);
3492
+ function n(I) {
3493
+ var f, S;
3494
+ const w = {
3507
3495
  ...e.builderContextSignal.rootState,
3508
- ...k
3496
+ ...I
3509
3497
  };
3510
- e.builderContextSignal.rootSetState ? (B = (R = e.builderContextSignal).rootSetState) == null || B.call(R, T) : e.setBuilderContextSignal((u) => ({
3511
- ...u,
3512
- rootState: T
3498
+ e.builderContextSignal.rootSetState ? (S = (f = e.builderContextSignal).rootSetState) == null || S.call(f, w) : e.setBuilderContextSignal((x) => ({
3499
+ ...x,
3500
+ rootState: w
3513
3501
  }));
3514
3502
  }
3515
- function i(k) {
3516
- var R, B, u, S, P;
3517
- const T = {
3503
+ function i(I) {
3504
+ var f, S, x, T, V;
3505
+ const w = {
3518
3506
  ...e.builderContextSignal.content,
3519
- ...k,
3507
+ ...I,
3520
3508
  data: {
3521
- ...(R = e.builderContextSignal.content) == null ? void 0 : R.data,
3522
- ...k == null ? void 0 : k.data
3509
+ ...(f = e.builderContextSignal.content) == null ? void 0 : f.data,
3510
+ ...I == null ? void 0 : I.data
3523
3511
  },
3524
3512
  meta: {
3525
- ...(B = e.builderContextSignal.content) == null ? void 0 : B.meta,
3526
- ...k == null ? void 0 : k.meta,
3527
- breakpoints: ((u = k == null ? void 0 : k.meta) == null ? void 0 : u.breakpoints) || ((P = (S = e.builderContextSignal.content) == null ? void 0 : S.meta) == null ? void 0 : P.breakpoints)
3513
+ ...(S = e.builderContextSignal.content) == null ? void 0 : S.meta,
3514
+ ...I == null ? void 0 : I.meta,
3515
+ breakpoints: ((x = I == null ? void 0 : I.meta) == null ? void 0 : x.breakpoints) || ((V = (T = e.builderContextSignal.content) == null ? void 0 : T.meta) == null ? void 0 : V.breakpoints)
3528
3516
  }
3529
3517
  };
3530
- e.setBuilderContextSignal((I) => ({
3531
- ...I,
3532
- content: T
3518
+ e.setBuilderContextSignal((W) => ({
3519
+ ...W,
3520
+ content: w
3533
3521
  }));
3534
3522
  }
3535
3523
  function o() {
@@ -3538,62 +3526,62 @@ function Zn(e) {
3538
3526
  "aria-hidden": !0
3539
3527
  };
3540
3528
  }
3541
- const [r, a] = E(
3529
+ const [r, a] = R(
3542
3530
  () => e.contentWrapper || "div"
3543
3531
  );
3544
- function s(k) {
3532
+ function l(I) {
3545
3533
  return Ke({
3546
3534
  model: e.model,
3547
3535
  trustedHosts: e.trustedHosts,
3548
3536
  callbacks: {
3549
- configureSdk: (T) => {
3550
- var u;
3551
- const { breakpoints: R, contentId: B } = T;
3552
- !B || B !== ((u = e.builderContextSignal.content) == null ? void 0 : u.id) || R && i({
3537
+ configureSdk: (w) => {
3538
+ var x;
3539
+ const { breakpoints: f, contentId: S } = w;
3540
+ !S || S !== ((x = e.builderContextSignal.content) == null ? void 0 : x.id) || f && i({
3553
3541
  meta: {
3554
- breakpoints: R
3542
+ breakpoints: f
3555
3543
  }
3556
3544
  });
3557
3545
  },
3558
- animation: (T) => {
3559
- Ne(T);
3546
+ animation: (w) => {
3547
+ Ne(w);
3560
3548
  },
3561
- contentUpdate: (T) => {
3562
- i(T);
3549
+ contentUpdate: (w) => {
3550
+ i(w);
3563
3551
  }
3564
3552
  }
3565
- })(k);
3553
+ })(I);
3566
3554
  }
3567
- const [d, c] = E(() => ({})), [h, g] = E(() => ({})), [m, y] = E(() => !1);
3568
- function f(k) {
3569
- var T, R;
3555
+ const [d, c] = R(() => ({})), [h, m] = R(() => ({})), [u, k] = R(() => !1);
3556
+ function g(I) {
3557
+ var w, f;
3570
3558
  if (e.builderContextSignal.content) {
3571
- const B = (T = e.builderContextSignal.content) == null ? void 0 : T.testVariationId, u = (R = e.builderContextSignal.content) == null ? void 0 : R.id;
3559
+ const S = (w = e.builderContextSignal.content) == null ? void 0 : w.testVariationId, x = (f = e.builderContextSignal.content) == null ? void 0 : f.id;
3572
3560
  ue({
3573
3561
  apiHost: e.apiHost,
3574
3562
  type: "click",
3575
- canTrack: z(e.canTrack),
3576
- contentId: u,
3563
+ canTrack: q(e.canTrack),
3564
+ contentId: x,
3577
3565
  apiKey: e.apiKey,
3578
- variationId: B !== u ? B : void 0,
3579
- ...qn(k),
3580
- unique: !m
3566
+ variationId: S !== x ? S : void 0,
3567
+ ...qn(I),
3568
+ unique: !u
3581
3569
  });
3582
3570
  }
3583
- m || y(!0);
3571
+ u || k(!0);
3584
3572
  }
3585
3573
  function v() {
3586
- var T, R, B;
3587
- const k = (B = (R = (T = e.builderContextSignal.content) == null ? void 0 : T.data) == null ? void 0 : R.httpRequests) != null ? B : {};
3588
- Object.entries(k).forEach(([u, S]) => {
3589
- if (!S || h[u] || d[u] && !N())
3574
+ var w, f, S;
3575
+ const I = (S = (f = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : f.httpRequests) != null ? S : {};
3576
+ Object.entries(I).forEach(([x, T]) => {
3577
+ if (!T || h[x] || d[x] && !N())
3590
3578
  return;
3591
- h[u] = !0;
3592
- const P = S.replace(
3579
+ h[x] = !0;
3580
+ const V = T.replace(
3593
3581
  /{{([^}]+)}}/g,
3594
- (I, L) => String(
3595
- O({
3596
- code: L,
3582
+ (W, _) => String(
3583
+ D({
3584
+ code: _,
3597
3585
  context: e.context || {},
3598
3586
  localState: void 0,
3599
3587
  rootState: e.builderContextSignal.rootState,
@@ -3601,18 +3589,18 @@ function Zn(e) {
3601
3589
  })
3602
3590
  )
3603
3591
  );
3604
- Te(P), fetch(P).then((I) => I.json()).then((I) => {
3592
+ Te(V), fetch(V).then((W) => W.json()).then((W) => {
3605
3593
  n({
3606
- [u]: I
3607
- }), d[u] = !0;
3608
- }).catch((I) => {
3609
- console.error("error fetching dynamic data", S, I);
3594
+ [x]: W
3595
+ }), d[x] = !0;
3596
+ }).catch((W) => {
3597
+ console.error("error fetching dynamic data", T, W);
3610
3598
  }).finally(() => {
3611
- h[u] = !1;
3599
+ h[x] = !1;
3612
3600
  });
3613
3601
  });
3614
3602
  }
3615
- function x() {
3603
+ function y() {
3616
3604
  N() && window.dispatchEvent(
3617
3605
  new CustomEvent(
3618
3606
  "builder:component:stateChange",
@@ -3627,11 +3615,11 @@ function Zn(e) {
3627
3615
  )
3628
3616
  );
3629
3617
  }
3630
- const b = D(!1);
3631
- return b.current || (v(), x(), b.current = !0), A(() => {
3632
- var k, T, R;
3633
- if (q()) {
3634
- if (N() && !e.isNestedRender && (window.addEventListener("message", s), je(), qe({
3618
+ const b = L(!1);
3619
+ return b.current || (v(), y(), b.current = !0), A(() => {
3620
+ var I, w, f;
3621
+ if (j()) {
3622
+ if (N() && !e.isNestedRender && (window.addEventListener("message", l), je(), qe({
3635
3623
  ...e.locale ? {
3636
3624
  locale: e.locale
3637
3625
  } : {},
@@ -3643,48 +3631,48 @@ function Zn(e) {
3643
3631
  } : {}
3644
3632
  }), Object.values(
3645
3633
  e.builderContextSignal.componentInfos
3646
- ).forEach((u) => {
3647
- var S, P;
3648
- if (!e.model || !((S = u.models) != null && S.length) || u.models.includes(e.model)) {
3649
- const I = ze(u);
3650
- (P = window.parent) == null || P.postMessage(I, "*");
3634
+ ).forEach((x) => {
3635
+ var T, V;
3636
+ if (!e.model || !((T = x.models) != null && T.length) || x.models.includes(e.model)) {
3637
+ const W = ze(x);
3638
+ (V = window.parent) == null || V.postMessage(W, "*");
3651
3639
  }
3652
3640
  }), window.addEventListener(
3653
3641
  "builder:component:stateChangeListenerActivated",
3654
- x
3655
- )), e.builderContextSignal.content && z(e.canTrack)) {
3656
- const u = (k = e.builderContextSignal.content) == null ? void 0 : k.testVariationId, S = (T = e.builderContextSignal.content) == null ? void 0 : T.id, P = e.apiKey;
3642
+ y
3643
+ )), e.builderContextSignal.content && q(e.canTrack)) {
3644
+ const x = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, T = (w = e.builderContextSignal.content) == null ? void 0 : w.id, V = e.apiKey;
3657
3645
  ue({
3658
3646
  apiHost: e.apiHost,
3659
3647
  type: "impression",
3660
3648
  canTrack: !0,
3661
- contentId: S,
3662
- apiKey: P,
3663
- variationId: u !== S ? u : void 0
3649
+ contentId: T,
3650
+ apiKey: V,
3651
+ variationId: x !== T ? x : void 0
3664
3652
  });
3665
3653
  }
3666
3654
  if (ae() && !N()) {
3667
- const u = new URL(location.href).searchParams, S = u.get("builder.preview"), P = u.get(
3668
- `builder.overrides.${S}`
3669
- ), I = u.get("apiKey") || u.get("builder.space");
3670
- (S === "BUILDER_STUDIO" || S === e.model && I === e.apiKey && (!e.content || P === e.content.id)) && Ie({
3655
+ const x = new URL(location.href).searchParams, T = x.get("builder.preview"), V = x.get(
3656
+ `builder.overrides.${T}`
3657
+ ), W = x.get("apiKey") || x.get("builder.space");
3658
+ (T === "BUILDER_STUDIO" || T === e.model && W === e.apiKey && (!e.content || V === e.content.id)) && Ie({
3671
3659
  model: e.model || "",
3672
3660
  apiKey: e.apiKey,
3673
3661
  apiVersion: e.builderContextSignal.apiVersion,
3674
- ...S === "BUILDER_STUDIO" && ((R = e.context) != null && R.symbolId) ? {
3662
+ ...T === "BUILDER_STUDIO" && ((f = e.context) != null && f.symbolId) ? {
3675
3663
  query: {
3676
3664
  id: e.context.symbolId
3677
3665
  }
3678
3666
  } : {}
3679
- }).then((L) => {
3680
- L && i(L);
3667
+ }).then((_) => {
3668
+ _ && i(_);
3681
3669
  });
3682
3670
  }
3683
3671
  }
3684
3672
  }, []), A(() => {
3685
3673
  e.content && i(e.content);
3686
3674
  }, [e.content]), A(() => {
3687
- x();
3675
+ y();
3688
3676
  }, [e.builderContextSignal.rootState]), A(() => {
3689
3677
  e.data && n(e.data);
3690
3678
  }, [e.data]), A(() => {
@@ -3692,19 +3680,19 @@ function Zn(e) {
3692
3680
  locale: e.locale
3693
3681
  });
3694
3682
  }, [e.locale]), A(() => () => {
3695
- q() && (window.removeEventListener("message", s), window.removeEventListener(
3683
+ j() && (window.removeEventListener("message", l), window.removeEventListener(
3696
3684
  "builder:component:stateChangeListenerActivated",
3697
- x
3685
+ y
3698
3686
  ));
3699
- }, []), /* @__PURE__ */ l(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || ke() ? /* @__PURE__ */ l(
3687
+ }, []), /* @__PURE__ */ s(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || ke() ? /* @__PURE__ */ s(
3700
3688
  r,
3701
3689
  {
3702
3690
  ref: t,
3703
- onClick: (k) => f(k),
3691
+ onClick: (I) => g(I),
3704
3692
  "builder-content-id": (p = e.builderContextSignal.content) == null ? void 0 : p.id,
3705
3693
  "builder-model": e.model,
3706
3694
  className: Xn(
3707
- ((C = e.content) == null ? void 0 : C.testVariationId) || ((V = e.content) == null ? void 0 : V.id)
3695
+ ((C = e.content) == null ? void 0 : C.testVariationId) || ((P = e.content) == null ? void 0 : P.id)
3708
3696
  ),
3709
3697
  style: {
3710
3698
  display: !e.builderContextSignal.content && ke() ? "none" : void 0
@@ -3716,7 +3704,7 @@ function Zn(e) {
3716
3704
  ) : null });
3717
3705
  }
3718
3706
  function ei(e) {
3719
- const [t, n] = E(
3707
+ const [t, n] = R(
3720
3708
  () => `
3721
3709
  ${Gn({
3722
3710
  cssCode: e.cssCode,
@@ -3728,8 +3716,8 @@ ${Jn({
3728
3716
  ${Qn(e.isNestedRender)}
3729
3717
  `.trim()
3730
3718
  );
3731
- return /* @__PURE__ */ l(
3732
- G,
3719
+ return /* @__PURE__ */ s(
3720
+ J,
3733
3721
  {
3734
3722
  id: "builderio-content",
3735
3723
  styles: t,
@@ -3742,9 +3730,9 @@ const ti = ({
3742
3730
  data: t,
3743
3731
  locale: n
3744
3732
  }) => {
3745
- var r, a, s;
3733
+ var r, a, l;
3746
3734
  const i = {}, o = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
3747
- return (s = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || s.forEach((d) => {
3735
+ return (l = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || l.forEach((d) => {
3748
3736
  d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
3749
3737
  }), {
3750
3738
  ...i,
@@ -3766,8 +3754,8 @@ const ti = ({
3766
3754
  meta: e == null ? void 0 : e.meta
3767
3755
  } : void 0;
3768
3756
  function Ce(e) {
3769
- var c, h, g, m, y, f, v, x, b;
3770
- const [t, n] = E(
3757
+ var c, h, m, u, k, g, v, y, b;
3758
+ const [t, n] = R(
3771
3759
  () => {
3772
3760
  var p, C;
3773
3761
  return Hn({
@@ -3779,26 +3767,26 @@ function Ce(e) {
3779
3767
  }
3780
3768
  );
3781
3769
  function i(p) {
3782
- s((C) => ({
3770
+ l((C) => ({
3783
3771
  ...C,
3784
3772
  rootState: p
3785
3773
  }));
3786
3774
  }
3787
- const [o, r] = E(
3775
+ const [o, r] = R(
3788
3776
  () => [
3789
3777
  ...xe(),
3790
3778
  ...e.customComponents || []
3791
3779
  ].reduce(
3792
- (p, { component: C, ...V }) => ({
3780
+ (p, { component: C, ...P }) => ({
3793
3781
  ...p,
3794
- [V.name]: {
3782
+ [P.name]: {
3795
3783
  component: C,
3796
- ...me(V)
3784
+ ...me(P)
3797
3785
  }
3798
3786
  }),
3799
3787
  {}
3800
3788
  )
3801
- ), [a, s] = E(() => ({
3789
+ ), [a, l] = R(() => ({
3802
3790
  content: ni({
3803
3791
  content: e.content,
3804
3792
  data: e.data
@@ -3818,9 +3806,9 @@ function Ce(e) {
3818
3806
  ...xe(),
3819
3807
  ...e.customComponents || []
3820
3808
  ].reduce(
3821
- (p, { component: C, ...V }) => ({
3809
+ (p, { component: C, ...P }) => ({
3822
3810
  ...p,
3823
- [V.name]: me(V)
3811
+ [P.name]: me(P)
3824
3812
  }),
3825
3813
  {}
3826
3814
  ),
@@ -3829,13 +3817,13 @@ function Ce(e) {
3829
3817
  BlocksWrapperProps: e.blocksWrapperProps || {},
3830
3818
  nonce: e.nonce || "",
3831
3819
  model: e.model || ""
3832
- })), d = D(!1);
3820
+ })), d = L(!1);
3833
3821
  if (!d.current) {
3834
3822
  e.apiKey || oe.error(
3835
3823
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3836
3824
  );
3837
3825
  const p = (h = (c = a.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
3838
- p && O({
3826
+ p && D({
3839
3827
  code: p,
3840
3828
  context: e.context || {},
3841
3829
  localState: void 0,
@@ -3846,13 +3834,13 @@ function Ce(e) {
3846
3834
  isExpression: !1
3847
3835
  }), d.current = !0;
3848
3836
  }
3849
- return /* @__PURE__ */ l(
3837
+ return /* @__PURE__ */ s(
3850
3838
  Pe.Provider,
3851
3839
  {
3852
3840
  value: {
3853
3841
  registeredComponents: o
3854
3842
  },
3855
- children: /* @__PURE__ */ W(
3843
+ children: /* @__PURE__ */ B(
3856
3844
  Zn,
3857
3845
  {
3858
3846
  apiHost: e.apiHost,
@@ -3871,9 +3859,9 @@ function Ce(e) {
3871
3859
  contentWrapperProps: e.contentWrapperProps,
3872
3860
  trustedHosts: e.trustedHosts,
3873
3861
  isNestedRender: e.isNestedRender,
3874
- setBuilderContextSignal: s,
3862
+ setBuilderContextSignal: l,
3875
3863
  children: [
3876
- e.isSsrAbTest ? /* @__PURE__ */ l(
3864
+ e.isSsrAbTest ? /* @__PURE__ */ s(
3877
3865
  ie,
3878
3866
  {
3879
3867
  id: "builderio-variant-visibility",
@@ -3881,20 +3869,20 @@ function Ce(e) {
3881
3869
  nonce: e.nonce || ""
3882
3870
  }
3883
3871
  ) : null,
3884
- /* @__PURE__ */ l(
3872
+ /* @__PURE__ */ s(
3885
3873
  ei,
3886
3874
  {
3887
3875
  nonce: e.nonce || "",
3888
3876
  isNestedRender: e.isNestedRender,
3889
- contentId: (g = a.content) == null ? void 0 : g.id,
3890
- cssCode: (y = (m = a.content) == null ? void 0 : m.data) == null ? void 0 : y.cssCode,
3891
- customFonts: (v = (f = a.content) == null ? void 0 : f.data) == null ? void 0 : v.customFonts
3877
+ contentId: (m = a.content) == null ? void 0 : m.id,
3878
+ cssCode: (k = (u = a.content) == null ? void 0 : u.data) == null ? void 0 : k.cssCode,
3879
+ customFonts: (v = (g = a.content) == null ? void 0 : g.data) == null ? void 0 : v.customFonts
3892
3880
  }
3893
3881
  ),
3894
- /* @__PURE__ */ l(
3882
+ /* @__PURE__ */ s(
3895
3883
  F,
3896
3884
  {
3897
- blocks: (b = (x = a.content) == null ? void 0 : x.data) == null ? void 0 : b.blocks,
3885
+ blocks: (b = (y = a.content) == null ? void 0 : y.data) == null ? void 0 : b.blocks,
3898
3886
  context: a,
3899
3887
  registeredComponents: o,
3900
3888
  linkComponent: e.linkComponent
@@ -3908,38 +3896,38 @@ function Ce(e) {
3908
3896
  }
3909
3897
  function ii(e) {
3910
3898
  var a;
3911
- const [t, n] = E(
3899
+ const [t, n] = R(
3912
3900
  () => Dn({
3913
- canTrack: z(e.canTrack),
3901
+ canTrack: q(e.canTrack),
3914
3902
  content: e.content
3915
3903
  })
3916
3904
  );
3917
3905
  function i() {
3918
- var s;
3906
+ var l;
3919
3907
  return _n(
3920
- j(e.content).map((d) => ({
3908
+ M(e.content).map((d) => ({
3921
3909
  id: d.testVariationId,
3922
3910
  testRatio: d.testRatio
3923
3911
  })),
3924
- ((s = e.content) == null ? void 0 : s.id) || ""
3912
+ ((l = e.content) == null ? void 0 : l.id) || ""
3925
3913
  );
3926
3914
  }
3927
3915
  function o() {
3928
- return j(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
3916
+ return M(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
3929
3917
  }
3930
3918
  function r() {
3931
- var s;
3919
+ var l;
3932
3920
  return t ? {
3933
3921
  ...e.content,
3934
- testVariationId: (s = e.content) == null ? void 0 : s.id
3922
+ testVariationId: (l = e.content) == null ? void 0 : l.id
3935
3923
  } : Je({
3936
3924
  item: e.content,
3937
- canTrack: z(e.canTrack)
3925
+ canTrack: q(e.canTrack)
3938
3926
  });
3939
3927
  }
3940
3928
  return A(() => {
3941
- }, []), /* @__PURE__ */ W(w, { children: [
3942
- !e.isNestedRender && $ !== "reactNative" ? /* @__PURE__ */ l(
3929
+ }, []), /* @__PURE__ */ B(E, { children: [
3930
+ !e.isNestedRender && $ !== "reactNative" ? /* @__PURE__ */ s(
3943
3931
  ie,
3944
3932
  {
3945
3933
  id: "builderio-init-variants-fns",
@@ -3947,16 +3935,16 @@ function ii(e) {
3947
3935
  nonce: e.nonce || ""
3948
3936
  }
3949
3937
  ) : null,
3950
- t ? /* @__PURE__ */ W(w, { children: [
3951
- /* @__PURE__ */ l(
3952
- G,
3938
+ t ? /* @__PURE__ */ B(E, { children: [
3939
+ /* @__PURE__ */ s(
3940
+ J,
3953
3941
  {
3954
3942
  id: "builderio-variants",
3955
3943
  styles: o(),
3956
3944
  nonce: e.nonce || ""
3957
3945
  }
3958
3946
  ),
3959
- /* @__PURE__ */ l(
3947
+ /* @__PURE__ */ s(
3960
3948
  ie,
3961
3949
  {
3962
3950
  id: "builderio-variants-visibility",
@@ -3964,13 +3952,13 @@ function ii(e) {
3964
3952
  nonce: e.nonce || ""
3965
3953
  }
3966
3954
  ),
3967
- (a = j(e.content)) == null ? void 0 : a.map((s) => /* @__PURE__ */ l(
3955
+ (a = M(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
3968
3956
  Ce,
3969
3957
  {
3970
3958
  apiHost: e.apiHost,
3971
3959
  isNestedRender: e.isNestedRender,
3972
3960
  nonce: e.nonce,
3973
- content: s,
3961
+ content: l,
3974
3962
  showContent: !1,
3975
3963
  model: e.model,
3976
3964
  data: e.data,
@@ -3989,10 +3977,10 @@ function ii(e) {
3989
3977
  contentWrapperProps: e.contentWrapperProps,
3990
3978
  trustedHosts: e.trustedHosts
3991
3979
  },
3992
- s.testVariationId
3980
+ l.testVariationId
3993
3981
  ))
3994
3982
  ] }) : null,
3995
- /* @__PURE__ */ l(
3983
+ /* @__PURE__ */ s(
3996
3984
  Ce,
3997
3985
  {
3998
3986
  apiHost: e.apiHost,
@@ -4040,7 +4028,7 @@ const oi = async ({
4040
4028
  });
4041
4029
  };
4042
4030
  function ai(e) {
4043
- var s, d, c, h;
4031
+ var l, d, c, h;
4044
4032
  function t() {
4045
4033
  return "div";
4046
4034
  }
@@ -4048,30 +4036,30 @@ function ai(e) {
4048
4036
  return "div";
4049
4037
  }
4050
4038
  function i() {
4051
- var g, m;
4039
+ var m, u;
4052
4040
  return [
4053
- e.attributes[_()],
4041
+ e.attributes[U()],
4054
4042
  "builder-symbol",
4055
- (g = e.symbol) != null && g.inline ? "builder-inline-symbol" : void 0,
4056
- (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4043
+ (m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
4044
+ (u = e.symbol) != null && u.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4057
4045
  ].filter(Boolean).join(" ");
4058
4046
  }
4059
- const [o, r] = E(() => {
4060
- var g;
4061
- return (g = e.symbol) == null ? void 0 : g.content;
4047
+ const [o, r] = R(() => {
4048
+ var m;
4049
+ return (m = e.symbol) == null ? void 0 : m.content;
4062
4050
  });
4063
4051
  function a() {
4064
4052
  o || oi({
4065
4053
  symbol: e.symbol,
4066
4054
  builderContextValue: e.builderContext
4067
- }).then((g) => {
4068
- g && r(g);
4055
+ }).then((m) => {
4056
+ m && r(m);
4069
4057
  });
4070
4058
  }
4071
4059
  return A(() => {
4072
4060
  }, []), A(() => {
4073
4061
  a();
4074
- }, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
4062
+ }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
4075
4063
  ii,
4076
4064
  {
4077
4065
  nonce: e.builderContext.nonce,
@@ -4080,7 +4068,7 @@ function ai(e) {
4080
4068
  apiKey: e.builderContext.apiKey,
4081
4069
  context: {
4082
4070
  ...e.builderContext.context,
4083
- symbolId: (s = e.builderBlock) == null ? void 0 : s.id
4071
+ symbolId: (l = e.builderBlock) == null ? void 0 : l.id
4084
4072
  },
4085
4073
  customComponents: Object.values(e.builderComponents),
4086
4074
  data: {