@builder.io/sdk-react 1.0.19-dev-0 → 1.0.20

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 (185) hide show
  1. package/lib/browser/blocks-exports.cjs +13 -13
  2. package/lib/browser/blocks-exports.mjs +339 -349
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/{server-entry-cfff49d1.js → server-entry-a562cf23.js} +1 -1
  6. package/lib/browser/{server-entry-1a86f409.cjs → server-entry-a77461d4.cjs} +1 -1
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/{blocks-87a3568e.cjs → blocks-523eb4f1.cjs} +4 -4
  10. package/lib/edge/{blocks-03aafa4f.js → blocks-683aad9f.js} +26 -26
  11. package/lib/edge/blocks-exports.cjs +1 -1
  12. package/lib/edge/blocks-exports.mjs +2 -2
  13. package/lib/edge/{button-58695538.cjs → button-0d418bcf.cjs} +1 -1
  14. package/lib/edge/{button-14d13356.js → button-9f6acf3e.js} +3 -3
  15. package/lib/edge/{columns-f98bd830.cjs → columns-1613d62d.cjs} +2 -2
  16. package/lib/edge/{columns-d2f7e212.js → columns-b0785992.js} +33 -33
  17. package/lib/edge/{content-variants-ad9f707f.js → content-variants-13f821c6.js} +68 -68
  18. package/lib/edge/{content-variants-7e661199.cjs → content-variants-281298f6.cjs} +5 -5
  19. package/lib/edge/dynamic-renderer-8b343325.js +8 -0
  20. package/lib/edge/{dynamic-renderer-1c9f24c0.cjs → dynamic-renderer-b29b45ca.cjs} +1 -1
  21. package/lib/edge/form-0483aa64.cjs +1 -0
  22. package/lib/edge/{form-04cf10db.js → form-db27fc26.js} +56 -66
  23. package/lib/edge/{get-class-prop-name-859a7f60.js → get-class-prop-name-6bfc4756.js} +1 -1
  24. package/lib/edge/{get-class-prop-name-f1301669.cjs → get-class-prop-name-e3ba0522.cjs} +1 -1
  25. package/lib/edge/{image-2cc909d9.js → image-0008c792.js} +25 -25
  26. package/lib/edge/image-ee3dd857.cjs +17 -0
  27. package/lib/edge/{img-b4ff1bef.js → img-43a8ffe0.js} +1 -1
  28. package/lib/edge/{img-0c1e53c0.cjs → img-f01d904d.cjs} +1 -1
  29. package/lib/edge/index.cjs +1 -1
  30. package/lib/edge/index.mjs +1 -1
  31. package/lib/edge/{input-c6fee09c.js → input-805a9ac6.js} +1 -1
  32. package/lib/edge/{input-2103da14.cjs → input-e6483bd7.cjs} +1 -1
  33. package/lib/edge/select-4966723f.js +20 -0
  34. package/lib/edge/select-e5d1e627.cjs +1 -0
  35. package/lib/edge/{server-entry-00891f33.cjs → server-entry-83648311.cjs} +1 -1
  36. package/lib/edge/{server-entry-d46a218d.js → server-entry-c13e82bd.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-8fa7f242.js → slot-1b0351de.js} +4 -4
  40. package/lib/edge/{slot-bb84f342.cjs → slot-3ef77ae1.cjs} +1 -1
  41. package/lib/edge/{symbol-636383eb.cjs → symbol-883d624f.cjs} +1 -1
  42. package/lib/edge/{symbol-324dadc8.js → symbol-f1632f93.js} +2 -2
  43. package/lib/edge/{video-d02ff89b.js → video-58c2cc8d.js} +15 -15
  44. package/lib/edge/video-e20dcbbc.cjs +1 -0
  45. package/lib/node/blocks-exports.cjs +72 -32
  46. package/lib/node/blocks-exports.mjs +1018 -902
  47. package/lib/node/index.cjs +1 -1
  48. package/lib/node/index.mjs +22 -23
  49. package/lib/node/{server-entry-8c84ddbd.js → server-entry-8c712c9b.js} +1 -1
  50. package/lib/node/{server-entry-ff6fc2b4.cjs → server-entry-bedf45f8.cjs} +1 -1
  51. package/lib/node/server-entry.cjs +1 -1
  52. package/lib/node/server-entry.mjs +1 -1
  53. package/package.json +1 -6
  54. package/types/blocks/button/button.d.ts +1 -1
  55. package/types/blocks/button/button.types.d.ts +1 -1
  56. package/types/blocks/button/component-info.d.ts +1 -1
  57. package/types/blocks/columns/columns.d.ts +1 -1
  58. package/types/blocks/columns/columns.types.d.ts +2 -2
  59. package/types/blocks/columns/component-info.d.ts +1 -1
  60. package/types/blocks/custom-code/component-info.d.ts +1 -1
  61. package/types/blocks/embed/component-info.d.ts +1 -1
  62. package/types/blocks/form/form/component-info.d.ts +1 -1
  63. package/types/blocks/form/form/form.d.ts +2 -2
  64. package/types/blocks/form/input/component-info.d.ts +1 -1
  65. package/types/blocks/form/select/component-info.d.ts +1 -1
  66. package/types/blocks/form/submit-button/component-info.d.ts +1 -1
  67. package/types/blocks/fragment/component-info.d.ts +1 -1
  68. package/types/blocks/fragment/fragment.d.ts +1 -1
  69. package/types/blocks/image/component-info.d.ts +1 -1
  70. package/types/blocks/image/image.d.ts +1 -1
  71. package/types/blocks/image/image.types.d.ts +1 -1
  72. package/types/blocks/img/component-info.d.ts +1 -1
  73. package/types/blocks/raw-text/component-info.d.ts +1 -1
  74. package/types/blocks/section/component-info.d.ts +1 -1
  75. package/types/blocks/section/section.d.ts +1 -1
  76. package/types/blocks/slot/component-info.d.ts +1 -1
  77. package/types/blocks/slot/slot.d.ts +1 -1
  78. package/types/blocks/symbol/component-info.d.ts +1 -1
  79. package/types/blocks/symbol/symbol.d.ts +1 -1
  80. package/types/blocks/symbol/symbol.helpers.d.ts +2 -2
  81. package/types/blocks/symbol/symbol.types.d.ts +2 -2
  82. package/types/blocks/text/component-info.d.ts +1 -1
  83. package/types/blocks/text/text.d.ts +1 -1
  84. package/types/blocks/textarea/component-info.d.ts +1 -1
  85. package/types/blocks/video/component-info.d.ts +1 -1
  86. package/types/blocks/video/video.d.ts +1 -1
  87. package/types/blocks/video/video.types.d.ts +1 -1
  88. package/types/components/block/animator.d.ts +1 -1
  89. package/types/components/block/block.d.ts +2 -2
  90. package/types/components/block/block.helpers.d.ts +4 -4
  91. package/types/components/block/components/block-styles.d.ts +2 -2
  92. package/types/components/block/components/block-wrapper.d.ts +2 -2
  93. package/types/components/block/components/component-ref/component-ref.d.ts +1 -1
  94. package/types/components/block/components/component-ref/component-ref.helpers.d.ts +3 -3
  95. package/types/components/block/components/interactive-element.d.ts +3 -3
  96. package/types/components/block/components/repeated-block.d.ts +1 -1
  97. package/types/components/block/types.d.ts +2 -2
  98. package/types/components/blocks/blocks-wrapper.d.ts +1 -1
  99. package/types/components/blocks/blocks.d.ts +1 -1
  100. package/types/components/blocks/blocks.types.d.ts +1 -1
  101. package/types/components/content/components/enable-editor.d.ts +2 -2
  102. package/types/components/content/components/styles.d.ts +1 -1
  103. package/types/components/content/content.d.ts +1 -1
  104. package/types/components/content/content.helpers.d.ts +3 -3
  105. package/types/components/content/content.types.d.ts +2 -2
  106. package/types/components/content/contentProps.types.d.ts +2 -2
  107. package/types/components/content-variants/content-variants.d.ts +1 -1
  108. package/types/components/content-variants/content-variants.types.d.ts +4 -4
  109. package/types/components/content-variants/helpers.d.ts +5 -5
  110. package/types/constants/builder-registered-components.d.ts +1 -1
  111. package/types/constants/extra-components.d.ts +1 -1
  112. package/types/constants/sdk-version.d.ts +1 -1
  113. package/types/context/index.d.ts +1 -1
  114. package/types/context/types.d.ts +4 -4
  115. package/types/functions/evaluate/browser-runtime/browser.d.ts +2 -2
  116. package/types/functions/evaluate/browser-runtime/index.d.ts +1 -1
  117. package/types/functions/evaluate/choose-eval.d.ts +1 -1
  118. package/types/functions/evaluate/edge-runtime/edge-runtime.d.ts +1 -1
  119. package/types/functions/evaluate/edge-runtime/index.d.ts +1 -1
  120. package/types/functions/evaluate/evaluate.d.ts +1 -1
  121. package/types/functions/evaluate/helpers.d.ts +3 -3
  122. package/types/functions/evaluate/index.d.ts +1 -1
  123. package/types/functions/evaluate/node-runtime/index.d.ts +1 -1
  124. package/types/functions/evaluate/node-runtime/node-runtime.d.ts +1 -2
  125. package/types/functions/evaluate/placeholder-runtime.d.ts +1 -1
  126. package/types/functions/fetch-builder-props.d.ts +3 -3
  127. package/types/functions/get-block-actions-handler.d.ts +2 -2
  128. package/types/functions/get-block-actions.d.ts +2 -2
  129. package/types/functions/get-block-component-options.d.ts +1 -1
  130. package/types/functions/get-block-properties.d.ts +2 -2
  131. package/types/functions/get-builder-search-params/index.d.ts +1 -1
  132. package/types/functions/get-content/generate-content-url.d.ts +1 -1
  133. package/types/functions/get-content/index.d.ts +2 -2
  134. package/types/functions/get-processed-block.d.ts +2 -2
  135. package/types/functions/get-style.d.ts +2 -2
  136. package/types/functions/is-editing.d.ts +1 -1
  137. package/types/functions/is-previewing.d.ts +1 -1
  138. package/types/functions/register-component.d.ts +1 -1
  139. package/types/functions/register.d.ts +2 -2
  140. package/types/functions/track/index.d.ts +2 -2
  141. package/types/functions/transform-block-properties.d.ts +2 -2
  142. package/types/functions/transform-block.d.ts +1 -1
  143. package/types/functions/transform-style-property.d.ts +2 -2
  144. package/types/helpers/ab-tests.d.ts +3 -3
  145. package/types/helpers/cookie.d.ts +1 -1
  146. package/types/helpers/localStorage.d.ts +2 -2
  147. package/types/helpers/preview-lru-cache/get.d.ts +1 -1
  148. package/types/helpers/preview-lru-cache/set.d.ts +1 -1
  149. package/types/helpers/sessionId.d.ts +1 -1
  150. package/types/helpers/subscribe-to-editor.d.ts +3 -3
  151. package/types/helpers/visitorId.d.ts +1 -1
  152. package/types/index-helpers/blocks-exports.d.ts +11 -11
  153. package/types/index.d.ts +3 -3
  154. package/types/server-index.d.ts +27 -27
  155. package/types/types/builder-content.d.ts +3 -3
  156. package/types/types/builder-props.d.ts +2 -2
  157. package/types/types/components.d.ts +2 -2
  158. package/types/types/enforced-partials.d.ts +1 -1
  159. package/lib/edge/dynamic-renderer-96ba4e48.js +0 -8
  160. package/lib/edge/form-e83f7b7a.cjs +0 -1
  161. package/lib/edge/image-7e1361ce.cjs +0 -17
  162. package/lib/edge/select-b8ad0a4c.cjs +0 -1
  163. package/lib/edge/select-f260d051.js +0 -20
  164. package/lib/edge/video-64014cc4.cjs +0 -1
  165. package/lib/node/init.cjs +0 -1
  166. package/lib/node/init.mjs +0 -8
  167. package/lib/node/node-runtime-1ca09d03.js +0 -137
  168. package/lib/node/node-runtime-56212f7c.cjs +0 -41
  169. package/types/blocks/form/component-info.d.ts +0 -2
  170. package/types/blocks/form/form.d.ts +0 -3
  171. package/types/blocks/input/component-info.d.ts +0 -2
  172. package/types/blocks/input/input.d.ts +0 -15
  173. package/types/blocks/select/component-info.d.ts +0 -2
  174. package/types/blocks/select/select.d.ts +0 -16
  175. package/types/blocks/submit-button/component-info.d.ts +0 -2
  176. package/types/blocks/submit-button/submit-button.d.ts +0 -10
  177. package/types/components/content/components/context-updater.d.ts +0 -5
  178. package/types/components/dynamic-renderer.d.ts +0 -3
  179. package/types/functions/evaluate/node-runtime/init.d.ts +0 -2
  180. package/types/functions/get-react-native-block-styles.d.ts +0 -15
  181. package/types/functions/sanitize-react-native-block-styles.d.ts +0 -3
  182. package/types/functions/sanitize-rn-allowed-css.d.ts +0 -8
  183. package/types/node-runtime/index.d.ts +0 -1
  184. package/types/node-runtime/node-runtime.d.ts +0 -9
  185. package/types/node-runtime.d.ts +0 -1
@@ -2,12 +2,12 @@
2
2
  var De = Object.defineProperty;
3
3
  var Me = (e, t, n) => t in e ? De(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
4
  var ee = (e, t, n) => (Me(e, typeof t != "symbol" ? t + "" : t, n), n);
5
- import { jsx as l, Fragment as g, jsxs as B } from "react/jsx-runtime";
6
- import { TARGET as z, isEditing as N, isBrowser as j, getUserAttributes as Oe, checkIsDefined as Y, logger as H, fastClone as oe, registerInsertMenu as Ue, setupBrowserForEditing as je, createRegisterComponentMessage as He, getDefaultCanTrack as G, _track as ue, isPreviewing as Ke, fetchOneEntry as ke, createEditorListener as qe, fetch as ze, serializeComponentInfo as me, handleABTestingSync as _e } from "./server-entry-cfff49d1.js";
7
- import { createContext as Ce, useState as C, useEffect as V, useContext as fe, useRef as X, createElement as we } from "react";
5
+ import { jsx as s, Fragment as T, jsxs as B } from "react/jsx-runtime";
6
+ import { TARGET as z, isEditing as N, isBrowser as j, getUserAttributes as Oe, checkIsDefined as Y, logger as H, fastClone as oe, registerInsertMenu as Ue, setupBrowserForEditing as je, createRegisterComponentMessage as He, getDefaultCanTrack as G, _track as ue, isPreviewing as Ke, fetchOneEntry as ke, createEditorListener as qe, fetch as ze, serializeComponentInfo as me, handleABTestingSync as _e } from "./server-entry-a562cf23.js";
7
+ import { createContext as Ce, useState as k, useEffect as V, useContext as fe, useRef as X, createElement as we } from "react";
8
8
  const Je = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ye = (e) => typeof e == "string" && Je.has(e.toLowerCase());
9
9
  function ae(e) {
10
- return /* @__PURE__ */ l(g, { children: Ye(e.TagName) ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(g, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) : /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) }) });
10
+ return /* @__PURE__ */ s(T, { children: Ye(e.TagName) ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(T, { 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
12
  const K = () => {
13
13
  switch (z) {
@@ -23,7 +23,7 @@ const K = () => {
23
23
  }
24
24
  };
25
25
  function Ge(e) {
26
- return /* @__PURE__ */ l(
26
+ return /* @__PURE__ */ s(
27
27
  ae,
28
28
  {
29
29
  attributes: {
@@ -96,7 +96,7 @@ const Xe = ({
96
96
  rootSetState: a,
97
97
  rootState: r
98
98
  }) => {
99
- const s = Xe({
99
+ const l = Xe({
100
100
  builder: t,
101
101
  context: n,
102
102
  event: i,
@@ -106,7 +106,7 @@ const Xe = ({
106
106
  rootSetState: a
107
107
  })
108
108
  });
109
- return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
109
+ return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
110
110
  };
111
111
  function Te({
112
112
  rootState: e,
@@ -171,7 +171,7 @@ function q({
171
171
  rootSetState: o,
172
172
  event: a,
173
173
  isExpression: r = !0,
174
- enableCache: s
174
+ enableCache: l
175
175
  }) {
176
176
  if (e === "") {
177
177
  H.warn("Skipping evaluation of empty code block.");
@@ -188,14 +188,14 @@ function q({
188
188
  rootState: i,
189
189
  localState: n
190
190
  };
191
- if (s) {
191
+ if (l) {
192
192
  const c = O.getCacheKey(d), m = O.getCachedValue(c);
193
193
  if (m)
194
194
  return m.value;
195
195
  }
196
196
  try {
197
197
  const c = it(d);
198
- if (s) {
198
+ if (l) {
199
199
  const m = O.getCacheKey(d);
200
200
  O.setCachedValue(m, c);
201
201
  }
@@ -231,8 +231,8 @@ const ot = ({
231
231
  ...a.actions
232
232
  }
233
233
  };
234
- for (const s in e.bindings) {
235
- const d = e.bindings[s], c = q({
234
+ for (const l in e.bindings) {
235
+ const d = e.bindings[l], c = q({
236
236
  code: d,
237
237
  localState: n,
238
238
  rootState: i,
@@ -240,7 +240,7 @@ const ot = ({
240
240
  context: t,
241
241
  enableCache: !0
242
242
  });
243
- Ee(r, s, c);
243
+ Ee(r, l, c);
244
244
  }
245
245
  return r;
246
246
  };
@@ -262,15 +262,15 @@ function Q({
262
262
  }) : r;
263
263
  }
264
264
  function at(e, t, n = {}) {
265
- let i, o, a, r = null, s = 0;
265
+ let i, o, a, r = null, l = 0;
266
266
  const d = function() {
267
- s = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
267
+ l = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
268
268
  };
269
269
  return function() {
270
270
  const c = Date.now();
271
- !s && n.leading === !1 && (s = c);
272
- const m = t - (c - s);
273
- return i = this, o = arguments, m <= 0 || m > t ? (r && (clearTimeout(r), r = null), s = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, m)), a;
271
+ !l && n.leading === !1 && (l = c);
272
+ const m = t - (c - l);
273
+ return i = this, o = arguments, m <= 0 || m > t ? (r && (clearTimeout(r), r = null), l = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, m)), a;
274
274
  };
275
275
  }
276
276
  function D(e, ...t) {
@@ -303,9 +303,9 @@ function se(e) {
303
303
  }
304
304
  function ce(e, t) {
305
305
  const n = lt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
306
- for (const s of r)
306
+ for (const l of r)
307
307
  for (const d of n)
308
- d in s || (s[d] = i[d]);
308
+ d in l || (l[d] = i[d]);
309
309
  }
310
310
  function lt(e) {
311
311
  const t = [];
@@ -358,18 +358,18 @@ function ct(e) {
358
358
  ce(e, n);
359
359
  let i = !1, o = !1;
360
360
  function a() {
361
- !i && s(n) ? (i = !0, o = !0, setTimeout(() => {
361
+ !i && l(n) ? (i = !0, o = !0, setTimeout(() => {
362
362
  D(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
363
363
  o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
364
364
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
365
- })) : e.repeat && i && !o && !s(n) && (i = !1, D(n.style, e.steps[0].styles));
365
+ })) : e.repeat && i && !o && !l(n) && (i = !1, D(n.style, e.steps[0].styles));
366
366
  }
367
367
  const r = at(a, 200, {
368
368
  leading: !1
369
369
  });
370
- function s(m) {
371
- const f = m.getBoundingClientRect(), b = window.innerHeight, v = (e.thresholdPercent || 0) / 100 * b;
372
- return f.bottom > v && f.top < b - v;
370
+ function l(m) {
371
+ const f = m.getBoundingClientRect(), g = window.innerHeight, S = (e.thresholdPercent || 0) / 100 * g;
372
+ return f.bottom > S && f.top < g - S;
373
373
  }
374
374
  const d = e.steps[0].styles;
375
375
  function c() {
@@ -525,7 +525,7 @@ const ht = ({
525
525
  }, n;
526
526
  };
527
527
  function Z(e) {
528
- return /* @__PURE__ */ l(
528
+ return /* @__PURE__ */ s(
529
529
  "style",
530
530
  {
531
531
  dangerouslySetInnerHTML: { __html: e.styles },
@@ -546,7 +546,7 @@ function bt(e) {
546
546
  return Y(i.hide) ? !i.hide : Y(i.show) ? i.show : !0;
547
547
  }
548
548
  function n() {
549
- var v;
549
+ var S;
550
550
  const i = Q({
551
551
  block: e.block,
552
552
  localState: e.context.localState,
@@ -555,21 +555,21 @@ function bt(e) {
555
555
  context: e.context.context,
556
556
  shouldEvaluateBindings: !0
557
557
  }), o = i.responsiveStyles, a = e.context.content, r = Ae(
558
- ((v = a == null ? void 0 : a.meta) == null ? void 0 : v.breakpoints) || {}
559
- ), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, m = i.id;
558
+ ((S = a == null ? void 0 : a.meta) == null ? void 0 : S.breakpoints) || {}
559
+ ), l = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, m = i.id;
560
560
  if (!m)
561
561
  return "";
562
- const f = s ? te({
562
+ const f = l ? te({
563
563
  className: m,
564
- styles: s
565
- }) : "", b = d ? te({
564
+ styles: l
565
+ }) : "", g = d ? te({
566
566
  className: m,
567
567
  styles: d,
568
568
  mediaQuery: ge(
569
569
  "medium",
570
570
  r
571
571
  )
572
- }) : "", p = c ? te({
572
+ }) : "", y = c ? te({
573
573
  className: m,
574
574
  styles: c,
575
575
  mediaQuery: ge(
@@ -577,9 +577,9 @@ function bt(e) {
577
577
  r
578
578
  )
579
579
  }) : "";
580
- return [f, b, p].join(" ");
580
+ return [f, g, y].join(" ");
581
581
  }
582
- return /* @__PURE__ */ l(g, { children: n() && t() ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(Z, { id: "builderio-block", styles: n() }) }) : null });
582
+ return /* @__PURE__ */ s(T, { children: n() && t() ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(Z, { id: "builderio-block", styles: n() }) }) : null });
583
583
  }
584
584
  function yt(e) {
585
585
  return e.charAt(0).toUpperCase() + e.slice(1);
@@ -645,7 +645,7 @@ function de({
645
645
  });
646
646
  }
647
647
  function kt(e) {
648
- return /* @__PURE__ */ l(
648
+ return /* @__PURE__ */ s(
649
649
  ae,
650
650
  {
651
651
  TagName: e.Wrapper,
@@ -666,7 +666,7 @@ function kt(e) {
666
666
  );
667
667
  }
668
668
  function Ct(e) {
669
- return /* @__PURE__ */ l(
669
+ return /* @__PURE__ */ s(
670
670
  e.Wrapper,
671
671
  {
672
672
  ...e.wrapperProps,
@@ -696,7 +696,7 @@ const wt = ({
696
696
  isInteractive: a,
697
697
  contextValue: r
698
698
  }) => {
699
- const s = {
699
+ const l = {
700
700
  ...e,
701
701
  /**
702
702
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
@@ -715,14 +715,14 @@ const wt = ({
715
715
  context: n,
716
716
  wrapperProps: e,
717
717
  includeBlockProps: o
718
- } : s;
718
+ } : l;
719
719
  };
720
720
  function be(e) {
721
721
  var i;
722
- const [t, n] = C(
722
+ const [t, n] = k(
723
723
  () => e.isInteractive ? Ct : e.componentRef
724
724
  );
725
- return /* @__PURE__ */ l(g, { children: e.componentRef ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
725
+ return /* @__PURE__ */ s(T, { children: e.componentRef ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
726
726
  t,
727
727
  {
728
728
  ...wt({
@@ -735,7 +735,7 @@ function be(e) {
735
735
  isInteractive: e.isInteractive,
736
736
  contextValue: e.context
737
737
  }),
738
- children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
738
+ children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
739
739
  _,
740
740
  {
741
741
  block: o,
@@ -749,8 +749,8 @@ function be(e) {
749
749
  ) }) : null });
750
750
  }
751
751
  function It(e) {
752
- const [t, n] = C(() => e.repeatContext);
753
- return /* @__PURE__ */ l(re.Provider, { value: t, children: /* @__PURE__ */ l(
752
+ const [t, n] = k(() => e.repeatContext);
753
+ return /* @__PURE__ */ s(re.Provider, { value: t, children: /* @__PURE__ */ s(
754
754
  _,
755
755
  {
756
756
  block: e.block,
@@ -787,32 +787,32 @@ function _(e) {
787
787
  });
788
788
  }
789
789
  function o() {
790
- var b;
791
- return e.block.tagName === "a" || ((b = i().properties) == null ? void 0 : b.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
790
+ var g;
791
+ return e.block.tagName === "a" || ((g = i().properties) == null ? void 0 : g.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
792
792
  }
793
793
  function a() {
794
- var p, v;
795
- if ((p = e.block.repeat) != null && p.collection)
796
- return !!((v = n == null ? void 0 : n()) != null && v.length);
794
+ var y, S;
795
+ if ((y = e.block.repeat) != null && y.collection)
796
+ return !!((S = n == null ? void 0 : n()) != null && S.length);
797
797
  const f = "hide" in i() ? i().hide : !1;
798
798
  return ("show" in i() ? i().show : !0) && !f;
799
799
  }
800
800
  function r() {
801
- var b, p;
802
- return !((b = t == null ? void 0 : t()) != null && b.component) && !n() ? (p = i().children) != null ? p : [] : [];
801
+ var g, y;
802
+ return !((g = t == null ? void 0 : t()) != null && g.component) && !n() ? (y = i().children) != null ? y : [] : [];
803
803
  }
804
- function s() {
805
- var f, b, p, v, w, T, R, x, I, P, E;
804
+ function l() {
805
+ var f, g, y, S, C, I, R, p, w, P, E;
806
806
  return {
807
807
  blockChildren: (f = i().children) != null ? f : [],
808
- componentRef: (b = t == null ? void 0 : t()) == null ? void 0 : b.component,
808
+ componentRef: (g = t == null ? void 0 : t()) == null ? void 0 : g.component,
809
809
  componentOptions: {
810
810
  ...Qe(i()),
811
811
  builderContext: e.context,
812
- ...((p = t == null ? void 0 : t()) == null ? void 0 : p.name) === "Core:Button" || ((v = t == null ? void 0 : t()) == null ? void 0 : v.name) === "Symbol" || ((w = t == null ? void 0 : t()) == null ? void 0 : w.name) === "Columns" || ((T = t == null ? void 0 : t()) == null ? void 0 : T.name) === "Form:Form" ? {
812
+ ...((y = t == null ? void 0 : t()) == null ? void 0 : y.name) === "Core:Button" || ((S = t == null ? void 0 : t()) == null ? void 0 : S.name) === "Symbol" || ((C = t == null ? void 0 : t()) == null ? void 0 : C.name) === "Columns" || ((I = t == null ? void 0 : t()) == null ? void 0 : I.name) === "Form:Form" ? {
813
813
  builderLinkComponent: e.linkComponent
814
814
  } : {},
815
- ...((R = t == null ? void 0 : t()) == null ? void 0 : R.name) === "Symbol" || ((x = t == null ? void 0 : t()) == null ? void 0 : x.name) === "Columns" || ((I = t == null ? void 0 : t()) == null ? void 0 : I.name) === "Form:Form" ? {
815
+ ...((R = t == null ? void 0 : t()) == null ? void 0 : R.name) === "Symbol" || ((p = t == null ? void 0 : t()) == null ? void 0 : p.name) === "Columns" || ((w = t == null ? void 0 : t()) == null ? void 0 : w.name) === "Form:Form" ? {
816
816
  builderComponents: e.registeredComponents
817
817
  } : {}
818
818
  },
@@ -825,29 +825,29 @@ function _(e) {
825
825
  };
826
826
  }
827
827
  return V(() => {
828
- const f = i().id, b = i().animations;
829
- b && f && rt(
830
- b.filter((p) => p.trigger !== "hover").map((p) => ({
831
- ...p,
828
+ const f = i().id, g = i().animations;
829
+ g && f && rt(
830
+ g.filter((y) => y.trigger !== "hover").map((y) => ({
831
+ ...y,
832
832
  elementId: f
833
833
  }))
834
834
  );
835
- }, []), /* @__PURE__ */ l(g, { children: a() ? /* @__PURE__ */ B(g, { children: [
836
- /* @__PURE__ */ l(bt, { block: e.block, context: e.context }),
837
- (d = t == null ? void 0 : t()) != null && d.noWrap ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
835
+ }, []), /* @__PURE__ */ s(T, { children: a() ? /* @__PURE__ */ B(T, { children: [
836
+ /* @__PURE__ */ s(bt, { block: e.block, context: e.context }),
837
+ (d = t == null ? void 0 : t()) != null && d.noWrap ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
838
838
  be,
839
839
  {
840
- componentRef: s().componentRef,
841
- componentOptions: s().componentOptions,
842
- blockChildren: s().blockChildren,
843
- context: s().context,
844
- registeredComponents: s().registeredComponents,
845
- linkComponent: s().linkComponent,
846
- builderBlock: s().builderBlock,
847
- includeBlockProps: s().includeBlockProps,
848
- isInteractive: s().isInteractive
840
+ componentRef: l().componentRef,
841
+ componentOptions: l().componentOptions,
842
+ blockChildren: l().blockChildren,
843
+ context: l().context,
844
+ registeredComponents: l().registeredComponents,
845
+ linkComponent: l().linkComponent,
846
+ builderBlock: l().builderBlock,
847
+ includeBlockProps: l().includeBlockProps,
848
+ isInteractive: l().isInteractive
849
849
  }
850
- ) }) : /* @__PURE__ */ l(g, { children: n() ? /* @__PURE__ */ l(g, { children: (m = n()) == null ? void 0 : m.map((f, b) => /* @__PURE__ */ l(
850
+ ) }) : /* @__PURE__ */ s(T, { children: n() ? /* @__PURE__ */ s(T, { children: (m = n()) == null ? void 0 : m.map((f, g) => /* @__PURE__ */ s(
851
851
  It,
852
852
  {
853
853
  repeatContext: f.context,
@@ -855,8 +855,8 @@ function _(e) {
855
855
  registeredComponents: e.registeredComponents,
856
856
  linkComponent: e.linkComponent
857
857
  },
858
- b
859
- )) }) : /* @__PURE__ */ l(g, { children: /* @__PURE__ */ B(
858
+ g
859
+ )) }) : /* @__PURE__ */ B(
860
860
  kt,
861
861
  {
862
862
  Wrapper: o(),
@@ -864,21 +864,21 @@ function _(e) {
864
864
  context: e.context,
865
865
  linkComponent: e.linkComponent,
866
866
  children: [
867
- /* @__PURE__ */ l(
867
+ /* @__PURE__ */ s(
868
868
  be,
869
869
  {
870
- componentRef: s().componentRef,
871
- componentOptions: s().componentOptions,
872
- blockChildren: s().blockChildren,
873
- context: s().context,
874
- registeredComponents: s().registeredComponents,
875
- linkComponent: s().linkComponent,
876
- builderBlock: s().builderBlock,
877
- includeBlockProps: s().includeBlockProps,
878
- isInteractive: s().isInteractive
870
+ componentRef: l().componentRef,
871
+ componentOptions: l().componentOptions,
872
+ blockChildren: l().blockChildren,
873
+ context: l().context,
874
+ registeredComponents: l().registeredComponents,
875
+ linkComponent: l().linkComponent,
876
+ builderBlock: l().builderBlock,
877
+ includeBlockProps: l().includeBlockProps,
878
+ isInteractive: l().isInteractive
879
879
  }
880
880
  ),
881
- (c = r()) == null ? void 0 : c.map((f) => /* @__PURE__ */ l(
881
+ (c = r()) == null ? void 0 : c.map((f) => /* @__PURE__ */ s(
882
882
  _,
883
883
  {
884
884
  block: f,
@@ -890,7 +890,7 @@ function _(e) {
890
890
  ))
891
891
  ]
892
892
  }
893
- ) }) })
893
+ ) })
894
894
  ] }) : null });
895
895
  }
896
896
  function Tt(e) {
@@ -924,11 +924,11 @@ function Tt(e) {
924
924
  "*"
925
925
  ));
926
926
  }
927
- return /* @__PURE__ */ B(g, { children: [
928
- /* @__PURE__ */ l(
927
+ return /* @__PURE__ */ B(T, { children: [
928
+ /* @__PURE__ */ s(
929
929
  e.BlocksWrapper,
930
930
  {
931
- className: t() + " props-blocks-wrapper-7354e098",
931
+ className: t() + " props-blocks-wrapper-7cd1560e",
932
932
  "builder-path": e.path,
933
933
  "builder-parent-id": e.parent,
934
934
  style: e.styleProp,
@@ -939,7 +939,7 @@ function Tt(e) {
939
939
  children: e.children
940
940
  }
941
941
  ),
942
- /* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-7354e098 {
942
+ /* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-7cd1560e {
943
943
  display: flex;
944
944
  flex-direction: column;
945
945
  align-items: stretch;
@@ -949,7 +949,7 @@ function Tt(e) {
949
949
  function U(e) {
950
950
  var i, o, a;
951
951
  const t = fe(re), n = fe(Ie);
952
- return /* @__PURE__ */ l(
952
+ return /* @__PURE__ */ s(
953
953
  Tt,
954
954
  {
955
955
  blocks: e.blocks,
@@ -958,7 +958,7 @@ function U(e) {
958
958
  styleProp: e.styleProp,
959
959
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
960
960
  BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
961
- children: e.blocks ? /* @__PURE__ */ l(g, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
961
+ children: e.blocks ? /* @__PURE__ */ s(T, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ s(
962
962
  _,
963
963
  {
964
964
  block: r,
@@ -973,35 +973,35 @@ function U(e) {
973
973
  }
974
974
  function Et(e) {
975
975
  var R;
976
- const [t, n] = C(
976
+ const [t, n] = k(
977
977
  () => typeof e.space == "number" ? e.space || 0 : 20
978
- ), [i, o] = C(() => e.columns || []), [a, r] = C(
978
+ ), [i, o] = k(() => e.columns || []), [a, r] = k(
979
979
  () => e.stackColumnsAt || "tablet"
980
980
  );
981
- function s(x) {
982
- var I;
983
- return ((I = i[x]) == null ? void 0 : I.width) || 100 / i.length;
981
+ function l(p) {
982
+ var w;
983
+ return ((w = i[p]) == null ? void 0 : w.width) || 100 / i.length;
984
984
  }
985
- function d(x) {
986
- const I = t * (i.length - 1) / i.length;
987
- return `calc(${s(x)}% - ${I}px)`;
985
+ function d(p) {
986
+ const w = t * (i.length - 1) / i.length;
987
+ return `calc(${l(p)}% - ${w}px)`;
988
988
  }
989
989
  function c({
990
- stackedStyle: x,
991
- desktopStyle: I
990
+ stackedStyle: p,
991
+ desktopStyle: w
992
992
  }) {
993
- return a === "tablet" ? x : I;
993
+ return a === "tablet" ? p : w;
994
994
  }
995
995
  function m({
996
- stackedStyle: x,
997
- desktopStyle: I
996
+ stackedStyle: p,
997
+ desktopStyle: w
998
998
  }) {
999
- return a === "never" ? I : x;
999
+ return a === "never" ? w : p;
1000
1000
  }
1001
- const [f, b] = C(
1001
+ const [f, g] = k(
1002
1002
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
1003
1003
  );
1004
- function p() {
1004
+ function y() {
1005
1005
  return {
1006
1006
  "--flex-dir": f,
1007
1007
  "--flex-dir-tablet": c({
@@ -1010,8 +1010,8 @@ function Et(e) {
1010
1010
  })
1011
1011
  };
1012
1012
  }
1013
- function v(x) {
1014
- const I = x === 0 ? 0 : t, P = d(x), E = `${I}px`, $ = "100%", L = 0;
1013
+ function S(p) {
1014
+ const w = p === 0 ? 0 : t, P = d(p), E = `${w}px`, $ = "100%", L = 0;
1015
1015
  return {
1016
1016
  ...{
1017
1017
  display: "flex",
@@ -1038,15 +1038,15 @@ function Et(e) {
1038
1038
  })
1039
1039
  };
1040
1040
  }
1041
- function w(x) {
1041
+ function C(p) {
1042
1042
  var P, E;
1043
1043
  return Ae(
1044
1044
  ((E = (P = e.builderContext.content) == null ? void 0 : P.meta) == null ? void 0 : E.breakpoints) || {}
1045
- )[x].max;
1045
+ )[p].max;
1046
1046
  }
1047
- function T() {
1047
+ function I() {
1048
1048
  return `
1049
- @media (max-width: ${w("medium")}px) {
1049
+ @media (max-width: ${C("medium")}px) {
1050
1050
  .${e.builderBlock.id}-breakpoints {
1051
1051
  flex-direction: var(--flex-dir-tablet);
1052
1052
  align-items: stretch;
@@ -1058,7 +1058,7 @@ function Et(e) {
1058
1058
  }
1059
1059
  }
1060
1060
 
1061
- @media (max-width: ${w("small")}px) {
1061
+ @media (max-width: ${C("small")}px) {
1062
1062
  .${e.builderBlock.id}-breakpoints {
1063
1063
  flex-direction: var(--flex-dir);
1064
1064
  align-items: stretch;
@@ -1071,30 +1071,30 @@ function Et(e) {
1071
1071
  },
1072
1072
  `;
1073
1073
  }
1074
- return /* @__PURE__ */ B(g, { children: [
1074
+ return /* @__PURE__ */ B(T, { children: [
1075
1075
  /* @__PURE__ */ B(
1076
1076
  "div",
1077
1077
  {
1078
- className: `builder-columns ${e.builderBlock.id}-breakpoints div-7a098ce6`,
1079
- style: p(),
1078
+ className: `builder-columns ${e.builderBlock.id}-breakpoints div-003f4b1c`,
1079
+ style: y(),
1080
1080
  children: [
1081
- /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(Z, { id: "builderio-columns", styles: T() }) }),
1082
- (R = e.columns) == null ? void 0 : R.map((x, I) => /* @__PURE__ */ l(
1081
+ /* @__PURE__ */ s(Z, { id: "builderio-columns", styles: I() }),
1082
+ (R = e.columns) == null ? void 0 : R.map((p, w) => /* @__PURE__ */ s(
1083
1083
  ae,
1084
1084
  {
1085
- TagName: x.link ? e.builderLinkComponent || "a" : "div",
1085
+ TagName: p.link ? e.builderLinkComponent || "a" : "div",
1086
1086
  actionAttributes: {},
1087
1087
  attributes: {
1088
- ...x.link ? {
1089
- href: x.link
1088
+ ...p.link ? {
1089
+ href: p.link
1090
1090
  } : {},
1091
1091
  [K()]: "builder-column",
1092
- style: Ve(v(I))
1092
+ style: Ve(S(w))
1093
1093
  },
1094
- children: /* @__PURE__ */ l(
1094
+ children: /* @__PURE__ */ s(
1095
1095
  U,
1096
1096
  {
1097
- path: `component.options.columns.${I}.blocks`,
1097
+ path: `component.options.columns.${w}.blocks`,
1098
1098
  parent: e.builderBlock.id,
1099
1099
  styleProp: {
1100
1100
  flexGrow: "1"
@@ -1102,23 +1102,23 @@ function Et(e) {
1102
1102
  context: e.builderContext,
1103
1103
  registeredComponents: e.builderComponents,
1104
1104
  linkComponent: e.builderLinkComponent,
1105
- blocks: x.blocks
1105
+ blocks: p.blocks
1106
1106
  }
1107
1107
  )
1108
1108
  },
1109
- I
1109
+ w
1110
1110
  ))
1111
1111
  ]
1112
1112
  }
1113
1113
  ),
1114
- /* @__PURE__ */ l("style", { children: `.div-7a098ce6 {
1114
+ /* @__PURE__ */ s("style", { children: `.div-003f4b1c {
1115
1115
  display: flex;
1116
1116
  line-height: normal;
1117
1117
  }` })
1118
1118
  ] });
1119
1119
  }
1120
1120
  function Rt(e) {
1121
- return /* @__PURE__ */ l("span", { children: e.children });
1121
+ return /* @__PURE__ */ s("span", { children: e.children });
1122
1122
  }
1123
1123
  function ye(e) {
1124
1124
  return e.replace(/http(s)?:/, "");
@@ -1151,7 +1151,7 @@ function ne(e) {
1151
1151
  return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Vt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1152
1152
  }
1153
1153
  function Bt(e) {
1154
- var o, a, r, s;
1154
+ var o, a, r, l;
1155
1155
  function t() {
1156
1156
  var m;
1157
1157
  const c = e.image || e.src;
@@ -1180,11 +1180,11 @@ function Bt(e) {
1180
1180
  };
1181
1181
  return e.aspectRatio ? d : void 0;
1182
1182
  }
1183
- return /* @__PURE__ */ B(g, { children: [
1184
- /* @__PURE__ */ B(g, { children: [
1183
+ return /* @__PURE__ */ B(T, { children: [
1184
+ /* @__PURE__ */ B(T, { children: [
1185
1185
  /* @__PURE__ */ B("picture", { children: [
1186
- n() ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) }) : null,
1187
- /* @__PURE__ */ l(
1186
+ n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1187
+ /* @__PURE__ */ s(
1188
1188
  "img",
1189
1189
  {
1190
1190
  loading: "lazy",
@@ -1195,33 +1195,33 @@ function Bt(e) {
1195
1195
  objectFit: e.backgroundSize || "cover",
1196
1196
  ...i()
1197
1197
  },
1198
- className: "builder-image" + (e.className ? " " + e.className : "") + " img-0614da04",
1198
+ className: "builder-image" + (e.className ? " " + e.className : "") + " img-a0c95e8c",
1199
1199
  src: e.image,
1200
1200
  srcSet: t(),
1201
1201
  sizes: e.sizes
1202
1202
  }
1203
1203
  )
1204
1204
  ] }),
1205
- e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
1205
+ e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ s(
1206
1206
  "div",
1207
1207
  {
1208
- className: "builder-image-sizer div-0614da04",
1208
+ className: "builder-image-sizer div-a0c95e8c",
1209
1209
  style: {
1210
1210
  paddingTop: e.aspectRatio * 100 + "%"
1211
1211
  }
1212
1212
  }
1213
- ) }) : null,
1214
- (s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(g, { children: e.children }) : null,
1215
- !e.fitContent && e.children ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l("div", { className: "div-0614da04-2", children: e.children }) }) : null
1213
+ ) : null,
1214
+ (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(T, { children: e.children }) : null,
1215
+ !e.fitContent && e.children ? /* @__PURE__ */ s("div", { className: "div-a0c95e8c-2", children: e.children }) : null
1216
1216
  ] }),
1217
- /* @__PURE__ */ l("style", { children: `.img-0614da04 {
1217
+ /* @__PURE__ */ s("style", { children: `.img-a0c95e8c {
1218
1218
  opacity: 1;
1219
1219
  transition: opacity 0.2s ease-in-out;
1220
- }.div-0614da04 {
1220
+ }.div-a0c95e8c {
1221
1221
  width: 100%;
1222
1222
  pointer-events: none;
1223
1223
  font-size: 0;
1224
- }.div-0614da04-2 {
1224
+ }.div-a0c95e8c-2 {
1225
1225
  display: flex;
1226
1226
  flex-direction: column;
1227
1227
  align-items: stretch;
@@ -1234,7 +1234,7 @@ function Bt(e) {
1234
1234
  ] });
1235
1235
  }
1236
1236
  function At(e) {
1237
- return /* @__PURE__ */ l(
1237
+ return /* @__PURE__ */ s(
1238
1238
  "section",
1239
1239
  {
1240
1240
  ...e.attributes,
@@ -1466,7 +1466,7 @@ const Wt = {
1466
1466
  });
1467
1467
  }
1468
1468
  const n = e.get("columns");
1469
- Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((s, d) => s + d.get("width"), 0) !== 100) && t();
1469
+ Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((l, d) => l + d.get("width"), 0) !== 100) && t();
1470
1470
  }
1471
1471
  }, {
1472
1472
  name: "space",
@@ -1514,17 +1514,17 @@ const Wt = {
1514
1514
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1515
1515
  onChange: (e) => {
1516
1516
  e.delete("srcset"), e.delete("noWebp");
1517
- function n(r, s = 6e4) {
1517
+ function n(r, l = 6e4) {
1518
1518
  return new Promise((d, c) => {
1519
1519
  const m = document.createElement("img");
1520
1520
  let f = !1;
1521
1521
  m.onload = () => {
1522
1522
  f = !0, d(m);
1523
- }, m.addEventListener("error", (b) => {
1524
- console.warn("Image load failed", b.error), c(b.error);
1523
+ }, m.addEventListener("error", (g) => {
1524
+ console.warn("Image load failed", g.error), c(g.error);
1525
1525
  }), m.src = r, setTimeout(() => {
1526
1526
  f || c(new Error("Image load timed out"));
1527
- }, s);
1527
+ }, l);
1528
1528
  });
1529
1529
  }
1530
1530
  function i(r) {
@@ -1535,8 +1535,8 @@ const Wt = {
1535
1535
  r.type.includes("svg") && e.set("noWebp", !0);
1536
1536
  }), o && (!a || a === 0.7041))
1537
1537
  return n(o).then((r) => {
1538
- const s = e.get("aspectRatio");
1539
- e.get("image") === o && (!s || s === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
1538
+ const l = e.get("aspectRatio");
1539
+ e.get("image") === o && (!l || l === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
1540
1540
  });
1541
1541
  }
1542
1542
  }, {
@@ -1649,7 +1649,7 @@ const Wt = {
1649
1649
  };
1650
1650
  function Mt(e) {
1651
1651
  var t, n, i;
1652
- return /* @__PURE__ */ l(
1652
+ return /* @__PURE__ */ s(
1653
1653
  "div",
1654
1654
  {
1655
1655
  style: {
@@ -1658,7 +1658,7 @@ function Mt(e) {
1658
1658
  ...!((t = e.builderContext.context) != null && t.symbolId) && {
1659
1659
  "builder-slot": e.name
1660
1660
  },
1661
- children: /* @__PURE__ */ l(
1661
+ children: /* @__PURE__ */ s(
1662
1662
  U,
1663
1663
  {
1664
1664
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
@@ -1724,7 +1724,7 @@ const Ot = {
1724
1724
  };
1725
1725
  function jt(e) {
1726
1726
  var t;
1727
- return /* @__PURE__ */ l(
1727
+ return /* @__PURE__ */ s(
1728
1728
  "div",
1729
1729
  {
1730
1730
  className: "builder-text",
@@ -1759,10 +1759,10 @@ const Ht = {
1759
1759
  }]
1760
1760
  };
1761
1761
  function Kt(e) {
1762
- const t = X(null), [n, i] = C(() => []), [o, a] = C(() => []);
1762
+ const t = X(null), [n, i] = k(() => []), [o, a] = k(() => []);
1763
1763
  return V(() => {
1764
- var s;
1765
- if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
1764
+ var l;
1765
+ if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
1766
1766
  return;
1767
1767
  const r = t.current.getElementsByTagName("script");
1768
1768
  for (let d = 0; d < r.length; d++) {
@@ -1787,7 +1787,7 @@ function Kt(e) {
1787
1787
  }
1788
1788
  }
1789
1789
  }
1790
- }, []), /* @__PURE__ */ l(
1790
+ }, []), /* @__PURE__ */ s(
1791
1791
  "div",
1792
1792
  {
1793
1793
  ref: t,
@@ -1823,7 +1823,7 @@ const qt = {
1823
1823
  }]
1824
1824
  }, zt = ["text/javascript", "application/javascript", "application/ecmascript"], _t = (e) => zt.includes(e.type);
1825
1825
  function Jt(e) {
1826
- const t = X(null), [n, i] = C(() => []), [o, a] = C(() => []), [r, s] = C(() => !1);
1826
+ const t = X(null), [n, i] = k(() => []), [o, a] = k(() => []), [r, l] = k(() => !1);
1827
1827
  function d() {
1828
1828
  if (!t.current || !t.current.getElementsByTagName)
1829
1829
  return;
@@ -1832,19 +1832,19 @@ function Jt(e) {
1832
1832
  const f = c[m];
1833
1833
  if (f.src && !n.includes(f.src)) {
1834
1834
  n.push(f.src);
1835
- const b = document.createElement("script");
1836
- b.async = !0, b.src = f.src, document.head.appendChild(b);
1835
+ const g = document.createElement("script");
1836
+ g.async = !0, g.src = f.src, document.head.appendChild(g);
1837
1837
  } else if (_t(f) && !o.includes(f.innerText))
1838
1838
  try {
1839
1839
  o.push(f.innerText), new Function(f.innerText)();
1840
- } catch (b) {
1841
- console.warn("`Embed`: Error running script:", b);
1840
+ } catch (g) {
1841
+ console.warn("`Embed`: Error running script:", g);
1842
1842
  }
1843
1843
  }
1844
1844
  }
1845
1845
  return V(() => {
1846
- t.current && !r && (s(!0), d());
1847
- }, [t.current, r]), /* @__PURE__ */ l(
1846
+ t.current && !r && (l(!0), d());
1847
+ }, [t.current, r]), /* @__PURE__ */ s(
1848
1848
  "div",
1849
1849
  {
1850
1850
  className: "builder-embed",
@@ -2092,55 +2092,55 @@ const Yt = {
2092
2092
  return i === void 0 || i === e ? n : i;
2093
2093
  };
2094
2094
  function Zt(e) {
2095
- var f, b;
2096
- const t = X(null), [n, i] = C(() => "unsubmitted"), [o, a] = C(() => null), [r, s] = C(() => "");
2097
- function d(p) {
2098
- var w, T;
2099
- const v = {
2095
+ var f, g;
2096
+ const t = X(null), [n, i] = k(() => "unsubmitted"), [o, a] = k(() => null), [r, l] = k(() => "");
2097
+ function d(y) {
2098
+ var C, I;
2099
+ const S = {
2100
2100
  ...e.builderContext.rootState,
2101
- ...p
2101
+ ...y
2102
2102
  };
2103
- e.builderContext.rootSetState ? (T = (w = e.builderContext).rootSetState) == null || T.call(w, v) : e.builderContext.rootState = v;
2103
+ e.builderContext.rootSetState ? (I = (C = e.builderContext).rootSetState) == null || I.call(C, S) : e.builderContext.rootState = S;
2104
2104
  }
2105
2105
  function c() {
2106
2106
  return N() && e.previewState || n;
2107
2107
  }
2108
- function m(p) {
2109
- var w;
2110
- const v = e.sendWithJs || e.sendSubmissionsTo === "email";
2108
+ function m(y) {
2109
+ var C;
2110
+ const S = e.sendWithJs || e.sendSubmissionsTo === "email";
2111
2111
  if (e.sendSubmissionsTo === "zapier")
2112
- p.preventDefault();
2113
- else if (v) {
2112
+ y.preventDefault();
2113
+ else if (S) {
2114
2114
  if (!(e.action || e.sendSubmissionsTo === "email")) {
2115
- p.preventDefault();
2115
+ y.preventDefault();
2116
2116
  return;
2117
2117
  }
2118
- p.preventDefault();
2119
- const T = p.currentTarget, R = e.customHeaders || {};
2120
- let x;
2121
- const I = new FormData(T), P = Array.from(
2122
- p.currentTarget.querySelectorAll("input,select,textarea")
2118
+ y.preventDefault();
2119
+ const I = y.currentTarget, R = e.customHeaders || {};
2120
+ let p;
2121
+ const w = new FormData(I), P = Array.from(
2122
+ y.currentTarget.querySelectorAll("input,select,textarea")
2123
2123
  ).filter((u) => !!u.name).map((u) => {
2124
2124
  let h;
2125
- const k = u.name;
2125
+ const v = u.name;
2126
2126
  if (u instanceof HTMLInputElement)
2127
2127
  if (u.type === "radio") {
2128
2128
  if (u.checked)
2129
2129
  return h = u.name, {
2130
- key: k,
2130
+ key: v,
2131
2131
  value: h
2132
2132
  };
2133
2133
  } else if (u.type === "checkbox")
2134
2134
  h = u.checked;
2135
2135
  else if (u.type === "number" || u.type === "range") {
2136
- const y = u.valueAsNumber;
2137
- isNaN(y) || (h = y);
2136
+ const b = u.valueAsNumber;
2137
+ isNaN(b) || (h = b);
2138
2138
  } else
2139
2139
  u.type === "file" ? h = u.files : h = u.value;
2140
2140
  else
2141
2141
  h = u.value;
2142
2142
  return {
2143
- key: k,
2143
+ key: v,
2144
2144
  value: h
2145
2145
  };
2146
2146
  });
@@ -2148,15 +2148,15 @@ function Zt(e) {
2148
2148
  if (e.sendSubmissionsTo === "email" && (E = "multipart/form-data"), Array.from(P).forEach(({ value: u }) => {
2149
2149
  (u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (E = "multipart/form-data");
2150
2150
  }), E !== "application/json")
2151
- x = I;
2151
+ p = w;
2152
2152
  else {
2153
2153
  const u = {};
2154
- Array.from(P).forEach(({ value: h, key: k }) => {
2155
- Ee(u, k, h);
2156
- }), x = JSON.stringify(u);
2154
+ Array.from(P).forEach(({ value: h, key: v }) => {
2155
+ Ee(u, v, h);
2156
+ }), p = JSON.stringify(u);
2157
2157
  }
2158
- E && E !== "multipart/form-data" && (v && ((w = e.action) != null && w.includes("zapier.com")) || (R["content-type"] = E));
2159
- const $ = new CustomEvent("presubmit", { detail: { body: x } });
2158
+ E && E !== "multipart/form-data" && (S && ((C = e.action) != null && C.includes("zapier.com")) || (R["content-type"] = E));
2159
+ const $ = new CustomEvent("presubmit", { detail: { body: p } });
2160
2160
  if (t.current && (t.current.dispatchEvent($), $.defaultPrevented))
2161
2161
  return;
2162
2162
  i("sending");
@@ -2165,30 +2165,30 @@ function Zt(e) {
2165
2165
  )}&name=${encodeURIComponent(e.name || "")}`;
2166
2166
  fetch(
2167
2167
  e.sendSubmissionsTo === "email" ? L : e.action,
2168
- { body: x, headers: R, method: e.method || "post" }
2168
+ { body: p, headers: R, method: e.method || "post" }
2169
2169
  ).then(
2170
2170
  async (u) => {
2171
2171
  let h;
2172
- const k = u.headers.get("content-type");
2173
- if (k && k.indexOf("application/json") !== -1 ? h = await u.json() : h = await u.text(), !u.ok && e.errorMessagePath) {
2174
- let y = Xt(h, e.errorMessagePath);
2175
- y && (typeof y != "string" && (y = JSON.stringify(y)), s(y), d({ formErrorMessage: y }));
2172
+ const v = u.headers.get("content-type");
2173
+ if (v && v.indexOf("application/json") !== -1 ? h = await u.json() : h = await u.text(), !u.ok && e.errorMessagePath) {
2174
+ let b = Xt(h, e.errorMessagePath);
2175
+ b && (typeof b != "string" && (b = JSON.stringify(b)), l(b), d({ formErrorMessage: b }));
2176
2176
  }
2177
2177
  if (a(h), i(u.ok ? "success" : "error"), u.ok) {
2178
- const y = new CustomEvent("submit:success", {
2178
+ const b = new CustomEvent("submit:success", {
2179
2179
  detail: { res: u, body: h }
2180
2180
  });
2181
2181
  if (t.current) {
2182
- if (t.current.dispatchEvent(y), y.defaultPrevented)
2182
+ if (t.current.dispatchEvent(b), b.defaultPrevented)
2183
2183
  return;
2184
2184
  e.resetFormOnSubmit !== !1 && t.current.reset();
2185
2185
  }
2186
2186
  if (e.successUrl)
2187
2187
  if (t.current) {
2188
- const S = new CustomEvent("route", {
2188
+ const x = new CustomEvent("route", {
2189
2189
  detail: { url: e.successUrl }
2190
2190
  });
2191
- t.current.dispatchEvent(S), S.defaultPrevented || (location.href = e.successUrl);
2191
+ t.current.dispatchEvent(x), x.defaultPrevented || (location.href = e.successUrl);
2192
2192
  } else
2193
2193
  location.href = e.successUrl;
2194
2194
  }
@@ -2202,7 +2202,7 @@ function Zt(e) {
2202
2202
  );
2203
2203
  }
2204
2204
  }
2205
- return /* @__PURE__ */ B(g, { children: [
2205
+ return /* @__PURE__ */ B(T, { children: [
2206
2206
  " ",
2207
2207
  /* @__PURE__ */ B(
2208
2208
  "form",
@@ -2212,59 +2212,49 @@ function Zt(e) {
2212
2212
  action: !e.sendWithJs && e.action,
2213
2213
  method: e.method,
2214
2214
  name: e.name,
2215
- onSubmit: (p) => m(p),
2215
+ onSubmit: (y) => m(y),
2216
2216
  ...e.attributes,
2217
2217
  children: [
2218
- " ",
2219
- e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(g, { children: (b = (f = e.builderBlock) == null ? void 0 : f.children) == null ? void 0 : b.map((p, v) => /* @__PURE__ */ l(
2218
+ e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(T, { children: (g = (f = e.builderBlock) == null ? void 0 : f.children) == null ? void 0 : g.map((y, S) => /* @__PURE__ */ s(
2220
2219
  _,
2221
2220
  {
2222
- block: p,
2221
+ block: y,
2223
2222
  context: e.builderContext,
2224
2223
  registeredComponents: e.builderComponents,
2225
2224
  linkComponent: e.builderLinkComponent
2226
2225
  },
2227
- `form-block-${v}`
2226
+ `form-block-${S}`
2228
2227
  )) }) : null,
2229
- " ",
2230
- c() === "error" ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
2228
+ c() === "error" ? /* @__PURE__ */ s(
2231
2229
  U,
2232
2230
  {
2233
2231
  path: "errorMessage",
2234
2232
  blocks: e.errorMessage,
2235
2233
  context: e.builderContext
2236
2234
  }
2237
- ) }) : null,
2238
- " ",
2239
- c() === "sending" ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
2235
+ ) : null,
2236
+ c() === "sending" ? /* @__PURE__ */ s(
2240
2237
  U,
2241
2238
  {
2242
2239
  path: "sendingMessage",
2243
2240
  blocks: e.sendingMessage,
2244
2241
  context: e.builderContext
2245
2242
  }
2246
- ) }) : null,
2247
- " ",
2248
- c() === "error" && o ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ B("pre", { className: "builder-form-error-text pre-25b9edf0", children: [
2249
- " ",
2250
- JSON.stringify(o, null, 2),
2251
- " "
2252
- ] }) }) : null,
2253
- " ",
2254
- c() === "success" ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
2243
+ ) : null,
2244
+ c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-31bf8a14", children: JSON.stringify(o, null, 2) }) : null,
2245
+ c() === "success" ? /* @__PURE__ */ s(
2255
2246
  U,
2256
2247
  {
2257
2248
  path: "successMessage",
2258
2249
  blocks: e.successMessage,
2259
2250
  context: e.builderContext
2260
2251
  }
2261
- ) }) : null,
2262
- " "
2252
+ ) : null
2263
2253
  ]
2264
2254
  }
2265
2255
  ),
2266
2256
  " ",
2267
- /* @__PURE__ */ l("style", { children: ".pre-25b9edf0 { padding: 10px; color: red; text-align: center; }" }),
2257
+ /* @__PURE__ */ s("style", { children: ".pre-31bf8a14 { padding: 10px; color: red; text-align: center; }" }),
2268
2258
  " "
2269
2259
  ] });
2270
2260
  }
@@ -2389,7 +2379,7 @@ function on(e) {
2389
2379
  defaultValue: e.defaultValue,
2390
2380
  name: e.name
2391
2381
  },
2392
- (t = e.options) == null ? void 0 : t.map((n) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }))
2382
+ (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2393
2383
  );
2394
2384
  }
2395
2385
  const an = {
@@ -2419,7 +2409,7 @@ const an = {
2419
2409
  // canHaveChildren: true,
2420
2410
  };
2421
2411
  function rn(e) {
2422
- return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
2412
+ return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
2423
2413
  }
2424
2414
  const ln = {
2425
2415
  // friendlyName?
@@ -2437,7 +2427,7 @@ const ln = {
2437
2427
  static: !0
2438
2428
  };
2439
2429
  function sn(e) {
2440
- return /* @__PURE__ */ l(
2430
+ return /* @__PURE__ */ s(
2441
2431
  "img",
2442
2432
  {
2443
2433
  style: {
@@ -2534,7 +2524,7 @@ const cn = {
2534
2524
  }]
2535
2525
  };
2536
2526
  function dn(e) {
2537
- var i, o, a, r, s, d, c;
2527
+ var i, o, a, r, l, d, c;
2538
2528
  function t() {
2539
2529
  return {
2540
2530
  ...e.autoPlay === !0 ? {
@@ -2566,7 +2556,7 @@ function dn(e) {
2566
2556
  position: "relative"
2567
2557
  },
2568
2558
  children: [
2569
- /* @__PURE__ */ l(
2559
+ /* @__PURE__ */ s(
2570
2560
  "video",
2571
2561
  {
2572
2562
  className: "builder-video",
@@ -2588,10 +2578,10 @@ function dn(e) {
2588
2578
  },
2589
2579
  src: e.video || "no-src",
2590
2580
  poster: e.posterImage,
2591
- children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
2581
+ children: e.lazyLoad ? null : /* @__PURE__ */ s("source", { type: "video/mp4", src: e.video })
2592
2582
  }
2593
2583
  ),
2594
- e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
2584
+ e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ s(
2595
2585
  "div",
2596
2586
  {
2597
2587
  style: {
@@ -2601,8 +2591,8 @@ function dn(e) {
2601
2591
  fontSize: "0px"
2602
2592
  }
2603
2593
  }
2604
- ) }) : null,
2605
- (s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
2594
+ ) : null,
2595
+ (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
2606
2596
  "div",
2607
2597
  {
2608
2598
  style: {
@@ -2612,8 +2602,8 @@ function dn(e) {
2612
2602
  },
2613
2603
  children: e.children
2614
2604
  }
2615
- ) }) : null,
2616
- (c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
2605
+ ) : null,
2606
+ (c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
2617
2607
  "div",
2618
2608
  {
2619
2609
  style: {
@@ -2629,7 +2619,7 @@ function dn(e) {
2629
2619
  },
2630
2620
  children: e.children
2631
2621
  }
2632
- ) }) : null
2622
+ ) : null
2633
2623
  ]
2634
2624
  }
2635
2625
  );
@@ -2792,7 +2782,7 @@ const un = () => [{
2792
2782
  "${t}", "${e}", ${$e}
2793
2783
  )`;
2794
2784
  function ie(e) {
2795
- return /* @__PURE__ */ l(
2785
+ return /* @__PURE__ */ s(
2796
2786
  "script",
2797
2787
  {
2798
2788
  dangerouslySetInnerHTML: { __html: e.scriptStr },
@@ -2844,32 +2834,32 @@ const xn = (e, t, n = !0) => {
2844
2834
  };
2845
2835
  };
2846
2836
  function kn(e) {
2847
- var R, x, I, P, E, $, L;
2837
+ var R, p, w, P, E, $, L;
2848
2838
  const t = X(null);
2849
2839
  function n(u) {
2850
- var k, y;
2840
+ var v, b;
2851
2841
  const h = {
2852
2842
  ...e.builderContextSignal.rootState,
2853
2843
  ...u
2854
2844
  };
2855
- e.builderContextSignal.rootSetState ? (y = (k = e.builderContextSignal).rootSetState) == null || y.call(k, h) : e.setBuilderContextSignal((S) => ({
2856
- ...S,
2845
+ e.builderContextSignal.rootSetState ? (b = (v = e.builderContextSignal).rootSetState) == null || b.call(v, h) : e.setBuilderContextSignal((x) => ({
2846
+ ...x,
2857
2847
  rootState: h
2858
2848
  }));
2859
2849
  }
2860
2850
  function i(u) {
2861
- var k, y, S, A, M;
2851
+ var v, b, x, A, M;
2862
2852
  const h = {
2863
2853
  ...e.builderContextSignal.content,
2864
2854
  ...u,
2865
2855
  data: {
2866
- ...(k = e.builderContextSignal.content) == null ? void 0 : k.data,
2856
+ ...(v = e.builderContextSignal.content) == null ? void 0 : v.data,
2867
2857
  ...u == null ? void 0 : u.data
2868
2858
  },
2869
2859
  meta: {
2870
- ...(y = e.builderContextSignal.content) == null ? void 0 : y.meta,
2860
+ ...(b = e.builderContextSignal.content) == null ? void 0 : b.meta,
2871
2861
  ...u == null ? void 0 : u.meta,
2872
- breakpoints: ((S = u == null ? void 0 : u.meta) == null ? void 0 : S.breakpoints) || ((M = (A = e.builderContextSignal.content) == null ? void 0 : A.meta) == null ? void 0 : M.breakpoints)
2862
+ breakpoints: ((x = u == null ? void 0 : u.meta) == null ? void 0 : x.breakpoints) || ((M = (A = e.builderContextSignal.content) == null ? void 0 : A.meta) == null ? void 0 : M.breakpoints)
2873
2863
  }
2874
2864
  };
2875
2865
  e.setBuilderContextSignal((W) => ({
@@ -2877,7 +2867,7 @@ function kn(e) {
2877
2867
  content: h
2878
2868
  }));
2879
2869
  }
2880
- const [o, a] = C(
2870
+ const [o, a] = k(
2881
2871
  () => e.contentWrapper || "div"
2882
2872
  );
2883
2873
  function r(u) {
@@ -2886,11 +2876,11 @@ function kn(e) {
2886
2876
  trustedHosts: e.trustedHosts,
2887
2877
  callbacks: {
2888
2878
  configureSdk: (h) => {
2889
- var S;
2890
- const { breakpoints: k, contentId: y } = h;
2891
- !y || y !== ((S = e.builderContextSignal.content) == null ? void 0 : S.id) || k && i({
2879
+ var x;
2880
+ const { breakpoints: v, contentId: b } = h;
2881
+ !b || b !== ((x = e.builderContextSignal.content) == null ? void 0 : x.id) || v && i({
2892
2882
  meta: {
2893
- breakpoints: k
2883
+ breakpoints: v
2894
2884
  }
2895
2885
  });
2896
2886
  },
@@ -2903,9 +2893,9 @@ function kn(e) {
2903
2893
  }
2904
2894
  })(u);
2905
2895
  }
2906
- function s() {
2907
- var h, k;
2908
- const u = (k = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : k.jsCode;
2896
+ function l() {
2897
+ var h, v;
2898
+ const u = (v = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : v.jsCode;
2909
2899
  u && q({
2910
2900
  code: u,
2911
2901
  context: e.context || {},
@@ -2918,30 +2908,30 @@ function kn(e) {
2918
2908
  enableCache: !1
2919
2909
  });
2920
2910
  }
2921
- const [d, c] = C(() => ({})), [m, f] = C(() => ({})), [b, p] = C(() => !1);
2922
- function v(u) {
2923
- var h, k;
2911
+ const [d, c] = k(() => ({})), [m, f] = k(() => ({})), [g, y] = k(() => !1);
2912
+ function S(u) {
2913
+ var h, v;
2924
2914
  if (e.builderContextSignal.content) {
2925
- const y = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, S = (k = e.builderContextSignal.content) == null ? void 0 : k.id;
2915
+ const b = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, x = (v = e.builderContextSignal.content) == null ? void 0 : v.id;
2926
2916
  ue({
2927
2917
  type: "click",
2928
2918
  canTrack: G(e.canTrack),
2929
- contentId: S,
2919
+ contentId: x,
2930
2920
  apiKey: e.apiKey,
2931
- variationId: y !== S ? y : void 0,
2921
+ variationId: b !== x ? b : void 0,
2932
2922
  ...vn(u),
2933
- unique: !b
2923
+ unique: !g
2934
2924
  });
2935
2925
  }
2936
- b || p(!0);
2926
+ g || y(!0);
2937
2927
  }
2938
- function w() {
2939
- var h, k, y;
2940
- const u = (y = (k = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : k.httpRequests) != null ? y : {};
2941
- Object.entries(u).forEach(([S, A]) => {
2942
- if (!A || m[S] || d[S] && !N())
2928
+ function C() {
2929
+ var h, v, b;
2930
+ const u = (b = (v = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : v.httpRequests) != null ? b : {};
2931
+ Object.entries(u).forEach(([x, A]) => {
2932
+ if (!A || m[x] || d[x] && !N())
2943
2933
  return;
2944
- m[S] = !0;
2934
+ m[x] = !0;
2945
2935
  const M = A.replace(
2946
2936
  /{{([^}]+)}}/g,
2947
2937
  (W, Le) => String(
@@ -2957,16 +2947,16 @@ function kn(e) {
2957
2947
  );
2958
2948
  ze(M).then((W) => W.json()).then((W) => {
2959
2949
  n({
2960
- [S]: W
2961
- }), d[S] = !0;
2950
+ [x]: W
2951
+ }), d[x] = !0;
2962
2952
  }).catch((W) => {
2963
2953
  console.error("error fetching dynamic data", A, W);
2964
2954
  }).finally(() => {
2965
- m[S] = !1;
2955
+ m[x] = !1;
2966
2956
  });
2967
2957
  });
2968
2958
  }
2969
- function T() {
2959
+ function I() {
2970
2960
  N() && window.dispatchEvent(
2971
2961
  new CustomEvent(
2972
2962
  "builder:component:stateChange",
@@ -2996,28 +2986,28 @@ function kn(e) {
2996
2986
  } : {}
2997
2987
  }), Object.values(
2998
2988
  e.builderContextSignal.componentInfos
2999
- ).forEach((y) => {
2989
+ ).forEach((b) => {
3000
2990
  var A;
3001
- const S = He(y);
3002
- (A = window.parent) == null || A.postMessage(S, "*");
2991
+ const x = He(b);
2992
+ (A = window.parent) == null || A.postMessage(x, "*");
3003
2993
  }), window.addEventListener(
3004
2994
  "builder:component:stateChangeListenerActivated",
3005
- T
2995
+ I
3006
2996
  )), e.builderContextSignal.content && G(e.canTrack)) {
3007
- const y = (u = e.builderContextSignal.content) == null ? void 0 : u.testVariationId, S = (h = e.builderContextSignal.content) == null ? void 0 : h.id, A = e.apiKey;
2997
+ const b = (u = e.builderContextSignal.content) == null ? void 0 : u.testVariationId, x = (h = e.builderContextSignal.content) == null ? void 0 : h.id, A = e.apiKey;
3008
2998
  ue({
3009
2999
  type: "impression",
3010
3000
  canTrack: !0,
3011
- contentId: S,
3001
+ contentId: x,
3012
3002
  apiKey: A,
3013
- variationId: y !== S ? y : void 0
3003
+ variationId: b !== x ? b : void 0
3014
3004
  });
3015
3005
  }
3016
3006
  if (Ke()) {
3017
- const y = new URL(location.href).searchParams, S = y.get("builder.preview"), A = y.get(
3018
- `builder.preview.${S}`
3019
- ), M = y.get("apiKey") || y.get("builder.space");
3020
- S === e.model && M === e.apiKey && (!e.content || A === e.content.id) && ke({
3007
+ const b = new URL(location.href).searchParams, x = b.get("builder.preview"), A = b.get(
3008
+ `builder.preview.${x}`
3009
+ ), M = b.get("apiKey") || b.get("builder.space");
3010
+ x === e.model && M === e.apiKey && (!e.content || A === e.content.id) && ke({
3021
3011
  model: e.model,
3022
3012
  apiKey: e.apiKey,
3023
3013
  apiVersion: e.builderContextSignal.apiVersion
@@ -3029,15 +3019,15 @@ function kn(e) {
3029
3019
  }, []), V(() => {
3030
3020
  e.apiKey || H.error(
3031
3021
  "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3032
- ), s(), w(), T();
3022
+ ), l(), C(), I();
3033
3023
  }, []), V(() => {
3034
3024
  e.content && i(e.content);
3035
3025
  }, [e.content]), V(() => {
3036
- s();
3037
- }, [(x = (R = e.builderContextSignal.content) == null ? void 0 : R.data) == null ? void 0 : x.jsCode]), V(() => {
3038
- w();
3039
- }, [(P = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : P.httpRequests]), V(() => {
3040
- T();
3026
+ l();
3027
+ }, [(p = (R = e.builderContextSignal.content) == null ? void 0 : R.data) == null ? void 0 : p.jsCode]), V(() => {
3028
+ C();
3029
+ }, [(P = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : P.httpRequests]), V(() => {
3030
+ I();
3041
3031
  }, [e.builderContextSignal.rootState]), V(() => {
3042
3032
  e.data && n(e.data);
3043
3033
  }, [e.data]), V(() => {
@@ -3047,13 +3037,13 @@ function kn(e) {
3047
3037
  }, [e.locale]), V(() => () => {
3048
3038
  j() && (window.removeEventListener("message", r), window.removeEventListener(
3049
3039
  "builder:component:stateChangeListenerActivated",
3050
- T
3040
+ I
3051
3041
  ));
3052
- }, []), /* @__PURE__ */ l(re.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
3042
+ }, []), /* @__PURE__ */ s(re.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3053
3043
  o,
3054
3044
  {
3055
3045
  ref: t,
3056
- onClick: (u) => v(u),
3046
+ onClick: (u) => S(u),
3057
3047
  "builder-content-id": (E = e.builderContextSignal.content) == null ? void 0 : E.id,
3058
3048
  "builder-model": e.model,
3059
3049
  ...e.showContent ? {} : {
@@ -3064,7 +3054,7 @@ function kn(e) {
3064
3054
  className: `variant-${(($ = e.content) == null ? void 0 : $.testVariationId) || ((L = e.content) == null ? void 0 : L.id)}`,
3065
3055
  children: e.children
3066
3056
  }
3067
- ) }) : null });
3057
+ ) : null });
3068
3058
  }
3069
3059
  const Cn = (e) => {
3070
3060
  var a, r;
@@ -3078,16 +3068,16 @@ font-display: fallback;
3078
3068
  font-weight: 400;
3079
3069
  }
3080
3070
  `.trim()), e.files)
3081
- for (const s in e.files) {
3082
- if (!(String(Number(s)) === s))
3071
+ for (const l in e.files) {
3072
+ if (!(String(Number(l)) === l))
3083
3073
  continue;
3084
- const c = e.files[s];
3074
+ const c = e.files[l];
3085
3075
  c && c !== i && (o += `
3086
3076
  @font-face {
3087
3077
  font-family: "${t}";
3088
3078
  src: url('${c}') format('woff2');
3089
3079
  font-display: fallback;
3090
- font-weight: ${s};
3080
+ font-weight: ${l};
3091
3081
  }
3092
3082
  `.trim());
3093
3083
  }
@@ -3119,7 +3109,7 @@ font-weight: ${s};
3119
3109
  }
3120
3110
  `, En = (e) => e ? "" : Tn;
3121
3111
  function Rn(e) {
3122
- const [t, n] = C(
3112
+ const [t, n] = k(
3123
3113
  () => `
3124
3114
  ${In({
3125
3115
  cssCode: e.cssCode,
@@ -3131,16 +3121,16 @@ ${wn({
3131
3121
  ${En(e.isNestedRender)}
3132
3122
  `.trim()
3133
3123
  );
3134
- return /* @__PURE__ */ l(Z, { id: "builderio-content", styles: t });
3124
+ return /* @__PURE__ */ s(Z, { id: "builderio-content", styles: t });
3135
3125
  }
3136
3126
  const Pn = ({
3137
3127
  content: e,
3138
3128
  data: t,
3139
3129
  locale: n
3140
3130
  }) => {
3141
- var a, r, s;
3131
+ var a, r, l;
3142
3132
  const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
3143
- return (s = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || s.forEach((d) => {
3133
+ return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((d) => {
3144
3134
  d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
3145
3135
  }), {
3146
3136
  ...i,
@@ -3162,39 +3152,39 @@ const Pn = ({
3162
3152
  meta: e == null ? void 0 : e.meta
3163
3153
  } : void 0;
3164
3154
  function ve(e) {
3165
- var d, c, m, f, b, p, v;
3166
- const [t, n] = C(
3155
+ var d, c, m, f, g, y, S;
3156
+ const [t, n] = k(
3167
3157
  () => {
3168
- var w, T;
3158
+ var C, I;
3169
3159
  return pn({
3170
3160
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3171
- variationId: (w = e.content) == null ? void 0 : w.testVariationId,
3161
+ variationId: (C = e.content) == null ? void 0 : C.testVariationId,
3172
3162
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3173
- contentId: (T = e.content) == null ? void 0 : T.id
3163
+ contentId: (I = e.content) == null ? void 0 : I.id
3174
3164
  });
3175
3165
  }
3176
3166
  );
3177
- function i(w) {
3178
- s((T) => ({
3179
- ...T,
3180
- rootState: w
3167
+ function i(C) {
3168
+ l((I) => ({
3169
+ ...I,
3170
+ rootState: C
3181
3171
  }));
3182
3172
  }
3183
- const [o, a] = C(
3173
+ const [o, a] = k(
3184
3174
  () => [
3185
3175
  ...pe(),
3186
3176
  ...e.customComponents || []
3187
3177
  ].reduce(
3188
- (w, { component: T, ...R }) => ({
3189
- ...w,
3178
+ (C, { component: I, ...R }) => ({
3179
+ ...C,
3190
3180
  [R.name]: {
3191
- component: T,
3181
+ component: I,
3192
3182
  ...me(R)
3193
3183
  }
3194
3184
  }),
3195
3185
  {}
3196
3186
  )
3197
- ), [r, s] = C(() => ({
3187
+ ), [r, l] = k(() => ({
3198
3188
  content: Vn({
3199
3189
  content: e.content,
3200
3190
  data: e.data
@@ -3213,8 +3203,8 @@ function ve(e) {
3213
3203
  ...pe(),
3214
3204
  ...e.customComponents || []
3215
3205
  ].reduce(
3216
- (w, { component: T, ...R }) => ({
3217
- ...w,
3206
+ (C, { component: I, ...R }) => ({
3207
+ ...C,
3218
3208
  [R.name]: me(R)
3219
3209
  }),
3220
3210
  {}
@@ -3223,7 +3213,7 @@ function ve(e) {
3223
3213
  BlocksWrapper: e.blocksWrapper || "div",
3224
3214
  BlocksWrapperProps: e.blocksWrapperProps || {}
3225
3215
  }));
3226
- return /* @__PURE__ */ l(
3216
+ return /* @__PURE__ */ s(
3227
3217
  Ie.Provider,
3228
3218
  {
3229
3219
  value: {
@@ -3246,28 +3236,28 @@ function ve(e) {
3246
3236
  contentWrapperProps: e.contentWrapperProps,
3247
3237
  linkComponent: e.linkComponent,
3248
3238
  trustedHosts: e.trustedHosts,
3249
- setBuilderContextSignal: s,
3239
+ setBuilderContextSignal: l,
3250
3240
  children: [
3251
- e.isSsrAbTest ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
3241
+ e.isSsrAbTest ? /* @__PURE__ */ s(
3252
3242
  ie,
3253
3243
  {
3254
3244
  id: "builderio-variant-visibility",
3255
3245
  scriptStr: t
3256
3246
  }
3257
- ) }) : null,
3258
- /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
3247
+ ) : null,
3248
+ /* @__PURE__ */ s(
3259
3249
  Rn,
3260
3250
  {
3261
3251
  isNestedRender: e.isNestedRender,
3262
3252
  contentId: (d = r.content) == null ? void 0 : d.id,
3263
3253
  cssCode: (m = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : m.cssCode,
3264
- customFonts: (b = (f = r.content) == null ? void 0 : f.data) == null ? void 0 : b.customFonts
3254
+ customFonts: (g = (f = r.content) == null ? void 0 : f.data) == null ? void 0 : g.customFonts
3265
3255
  }
3266
- ) }),
3267
- /* @__PURE__ */ l(
3256
+ ),
3257
+ /* @__PURE__ */ s(
3268
3258
  U,
3269
3259
  {
3270
- blocks: (v = (p = r.content) == null ? void 0 : p.data) == null ? void 0 : v.blocks,
3260
+ blocks: (S = (y = r.content) == null ? void 0 : y.data) == null ? void 0 : S.blocks,
3271
3261
  context: r,
3272
3262
  registeredComponents: o,
3273
3263
  linkComponent: e.linkComponent
@@ -3281,64 +3271,64 @@ function ve(e) {
3281
3271
  }
3282
3272
  function Bn(e) {
3283
3273
  var r;
3284
- const [t, n] = C(
3274
+ const [t, n] = k(
3285
3275
  () => hn({
3286
3276
  canTrack: G(e.canTrack),
3287
3277
  content: e.content
3288
3278
  })
3289
3279
  );
3290
3280
  function i() {
3291
- var s;
3281
+ var l;
3292
3282
  return yn(
3293
3283
  J(e.content).map((d) => ({
3294
3284
  id: d.testVariationId,
3295
3285
  testRatio: d.testRatio
3296
3286
  })),
3297
- ((s = e.content) == null ? void 0 : s.id) || ""
3287
+ ((l = e.content) == null ? void 0 : l.id) || ""
3298
3288
  );
3299
3289
  }
3300
3290
  function o() {
3301
- return J(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
3291
+ return J(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
3302
3292
  }
3303
3293
  function a() {
3304
- var s;
3294
+ var l;
3305
3295
  return t ? {
3306
3296
  ...e.content,
3307
- testVariationId: (s = e.content) == null ? void 0 : s.id
3297
+ testVariationId: (l = e.content) == null ? void 0 : l.id
3308
3298
  } : _e({
3309
3299
  item: e.content,
3310
3300
  canTrack: G(e.canTrack)
3311
3301
  });
3312
3302
  }
3313
3303
  return V(() => {
3314
- }, []), /* @__PURE__ */ B(g, { children: [
3315
- !e.isNestedRender && z !== "reactNative" ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
3304
+ }, []), /* @__PURE__ */ B(T, { children: [
3305
+ !e.isNestedRender && z !== "reactNative" ? /* @__PURE__ */ s(
3316
3306
  ie,
3317
3307
  {
3318
3308
  id: "builderio-init-variants-fns",
3319
3309
  scriptStr: bn()
3320
3310
  }
3321
- ) }) : null,
3322
- t ? /* @__PURE__ */ B(g, { children: [
3323
- /* @__PURE__ */ l(
3311
+ ) : null,
3312
+ t ? /* @__PURE__ */ B(T, { children: [
3313
+ /* @__PURE__ */ s(
3324
3314
  Z,
3325
3315
  {
3326
3316
  id: "builderio-variants",
3327
3317
  styles: o()
3328
3318
  }
3329
3319
  ),
3330
- /* @__PURE__ */ l(
3320
+ /* @__PURE__ */ s(
3331
3321
  ie,
3332
3322
  {
3333
3323
  id: "builderio-variants-visibility",
3334
3324
  scriptStr: i()
3335
3325
  }
3336
3326
  ),
3337
- (r = J(e.content)) == null ? void 0 : r.map((s) => /* @__PURE__ */ l(
3327
+ (r = J(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
3338
3328
  ve,
3339
3329
  {
3340
3330
  isNestedRender: e.isNestedRender,
3341
- content: s,
3331
+ content: l,
3342
3332
  showContent: !1,
3343
3333
  model: e.model,
3344
3334
  data: e.data,
@@ -3357,10 +3347,10 @@ function Bn(e) {
3357
3347
  contentWrapperProps: e.contentWrapperProps,
3358
3348
  trustedHosts: e.trustedHosts
3359
3349
  },
3360
- s.testVariationId
3350
+ l.testVariationId
3361
3351
  ))
3362
3352
  ] }) : null,
3363
- /* @__PURE__ */ l(
3353
+ /* @__PURE__ */ s(
3364
3354
  ve,
3365
3355
  {
3366
3356
  isNestedRender: e.isNestedRender,
@@ -3406,7 +3396,7 @@ const An = async ({
3406
3396
  });
3407
3397
  };
3408
3398
  function Wn(e) {
3409
- var a, r, s, d;
3399
+ var a, r, l, d;
3410
3400
  function t() {
3411
3401
  var c, m;
3412
3402
  return [
@@ -3416,7 +3406,7 @@ function Wn(e) {
3416
3406
  (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
3417
3407
  ].filter(Boolean).join(" ");
3418
3408
  }
3419
- const [n, i] = C(() => {
3409
+ const [n, i] = k(() => {
3420
3410
  var c;
3421
3411
  return (c = e.symbol) == null ? void 0 : c.content;
3422
3412
  });
@@ -3431,7 +3421,7 @@ function Wn(e) {
3431
3421
  return V(() => {
3432
3422
  }, []), V(() => {
3433
3423
  o();
3434
- }, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ l(
3424
+ }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ s(
3435
3425
  Bn,
3436
3426
  {
3437
3427
  isNestedRender: !0,
@@ -3445,7 +3435,7 @@ function Wn(e) {
3445
3435
  data: {
3446
3436
  ...(r = e.symbol) == null ? void 0 : r.data,
3447
3437
  ...e.builderContext.localState,
3448
- ...(s = n == null ? void 0 : n.data) == null ? void 0 : s.state
3438
+ ...(l = n == null ? void 0 : n.data) == null ? void 0 : l.state
3449
3439
  },
3450
3440
  model: (d = e.symbol) == null ? void 0 : d.model,
3451
3441
  content: n,