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

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 (87) hide show
  1. package/lib/browser/blocks-exports.cjs +23 -23
  2. package/lib/browser/blocks-exports.mjs +661 -659
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +22 -21
  5. package/lib/browser/{server-entry-11e01841.cjs → server-entry-1a86f409.cjs} +1 -1
  6. package/lib/browser/{server-entry-afeff3cb.js → server-entry-cfff49d1.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/{blocks-8e5cc463.js → blocks-03aafa4f.js} +196 -209
  10. package/lib/edge/{blocks-a0a9d452.cjs → blocks-87a3568e.cjs} +9 -9
  11. package/lib/edge/blocks-exports.cjs +1 -1
  12. package/lib/edge/blocks-exports.mjs +27 -13
  13. package/lib/edge/{button-764707c4.js → button-14d13356.js} +3 -3
  14. package/lib/edge/{button-66c46316.cjs → button-58695538.cjs} +1 -1
  15. package/lib/edge/{columns-0bdc7586.js → columns-d2f7e212.js} +48 -47
  16. package/lib/edge/columns-f98bd830.cjs +28 -0
  17. package/lib/edge/content-variants-7e661199.cjs +134 -0
  18. package/lib/edge/{content-variants-db1e0281.js → content-variants-ad9f707f.js} +264 -273
  19. package/lib/edge/dynamic-blocks-exports.cjs +2 -0
  20. package/lib/edge/dynamic-blocks-exports.mjs +4 -1
  21. package/lib/edge/{dynamic-renderer-b29b45ca.cjs → dynamic-renderer-1c9f24c0.cjs} +1 -1
  22. package/lib/edge/dynamic-renderer-96ba4e48.js +8 -0
  23. package/lib/edge/{form-7a6f998f.js → form-04cf10db.js} +69 -58
  24. package/lib/edge/form-e83f7b7a.cjs +1 -0
  25. package/lib/edge/{get-class-prop-name-49cbb2c6.js → get-class-prop-name-859a7f60.js} +1 -1
  26. package/lib/edge/{get-class-prop-name-bbc4d2f3.cjs → get-class-prop-name-f1301669.cjs} +1 -1
  27. package/lib/edge/{image-0008c792.js → image-2cc909d9.js} +25 -25
  28. package/lib/edge/image-7e1361ce.cjs +17 -0
  29. package/lib/edge/{img-058cb6f0.cjs → img-0c1e53c0.cjs} +1 -1
  30. package/lib/edge/{img-c9630f56.js → img-b4ff1bef.js} +1 -1
  31. package/lib/edge/index.cjs +1 -1
  32. package/lib/edge/index.mjs +22 -21
  33. package/lib/edge/{input-ceacd029.cjs → input-2103da14.cjs} +1 -1
  34. package/lib/edge/{input-3de90790.js → input-c6fee09c.js} +1 -1
  35. package/lib/edge/{select-df72f987.cjs → select-b8ad0a4c.cjs} +1 -1
  36. package/lib/edge/{select-ee266e60.js → select-f260d051.js} +1 -1
  37. package/lib/edge/{server-entry-ef266884.cjs → server-entry-00891f33.cjs} +1 -1
  38. package/lib/edge/{server-entry-2b1068fd.js → server-entry-d46a218d.js} +1 -1
  39. package/lib/edge/server-entry.cjs +1 -1
  40. package/lib/edge/server-entry.mjs +1 -1
  41. package/lib/edge/{slot-f246e67e.js → slot-8fa7f242.js} +7 -6
  42. package/lib/edge/slot-bb84f342.cjs +1 -0
  43. package/lib/edge/{symbol-f68a7357.js → symbol-324dadc8.js} +2 -2
  44. package/lib/edge/{symbol-991f09b3.cjs → symbol-636383eb.cjs} +1 -1
  45. package/lib/edge/video-64014cc4.cjs +1 -0
  46. package/lib/edge/{video-58c2cc8d.js → video-d02ff89b.js} +15 -15
  47. package/lib/node/blocks-exports.cjs +32 -72
  48. package/lib/node/blocks-exports.mjs +887 -1011
  49. package/lib/node/index.cjs +1 -1
  50. package/lib/node/index.mjs +24 -22
  51. package/lib/node/init.cjs +1 -0
  52. package/lib/node/init.mjs +8 -0
  53. package/lib/node/node-runtime-1ca09d03.js +137 -0
  54. package/lib/node/node-runtime-56212f7c.cjs +41 -0
  55. package/lib/node/{server-entry-a221fe66.js → server-entry-8c84ddbd.js} +1 -1
  56. package/lib/node/{server-entry-4ba58cf3.cjs → server-entry-ff6fc2b4.cjs} +1 -1
  57. package/lib/node/server-entry.cjs +1 -1
  58. package/lib/node/server-entry.mjs +1 -1
  59. package/package.json +6 -1
  60. package/types/blocks/form/component-info.d.ts +2 -0
  61. package/types/blocks/form/form.d.ts +3 -0
  62. package/types/blocks/input/component-info.d.ts +2 -0
  63. package/types/blocks/input/input.d.ts +15 -0
  64. package/types/blocks/select/component-info.d.ts +2 -0
  65. package/types/blocks/select/select.d.ts +16 -0
  66. package/types/blocks/submit-button/component-info.d.ts +2 -0
  67. package/types/blocks/submit-button/submit-button.d.ts +10 -0
  68. package/types/components/content/components/context-updater.d.ts +5 -0
  69. package/types/components/dynamic-renderer.d.ts +3 -0
  70. package/types/constants/sdk-version.d.ts +1 -1
  71. package/types/context/index.d.ts +1 -0
  72. package/types/functions/evaluate/node-runtime/init.d.ts +2 -0
  73. package/types/functions/evaluate/node-runtime/node-runtime.d.ts +1 -0
  74. package/types/functions/get-react-native-block-styles.d.ts +15 -0
  75. package/types/functions/sanitize-react-native-block-styles.d.ts +3 -0
  76. package/types/functions/sanitize-rn-allowed-css.d.ts +8 -0
  77. package/types/index-helpers/blocks-exports.d.ts +4 -0
  78. package/types/node-runtime/index.d.ts +1 -0
  79. package/types/node-runtime/node-runtime.d.ts +9 -0
  80. package/types/node-runtime.d.ts +1 -0
  81. package/lib/edge/columns-0a14db0e.cjs +0 -28
  82. package/lib/edge/content-variants-c03ec7a1.cjs +0 -134
  83. package/lib/edge/dynamic-renderer-8b343325.js +0 -8
  84. package/lib/edge/form-a5d18c89.cjs +0 -1
  85. package/lib/edge/image-ee3dd857.cjs +0 -17
  86. package/lib/edge/slot-83d735d6.cjs +0 -1
  87. package/lib/edge/video-e20dcbbc.cjs +0 -1
@@ -1,16 +1,16 @@
1
1
  "use client";
2
- var Le = Object.defineProperty;
3
- var De = (e, t, n) => t in e ? Le(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
- var ee = (e, t, n) => (De(e, typeof t != "symbol" ? t + "" : t, n), n);
5
- import { jsx as s, Fragment as T, jsxs as A } from "react/jsx-runtime";
6
- import { TARGET as q, isEditing as W, isBrowser as U, getUserAttributes as Me, checkIsDefined as Y, logger as j, fastClone as oe, registerInsertMenu as Oe, setupBrowserForEditing as Ue, createRegisterComponentMessage as je, getDefaultCanTrack as G, _track as ue, isPreviewing as He, fetchOneEntry as ke, createEditorListener as Ke, fetch as qe, serializeComponentInfo as me, handleABTestingSync as ze } from "./server-entry-afeff3cb.js";
7
- import { createContext as Ce, useState as w, useEffect as B, useContext as fe, useRef as X, createElement as we } from "react";
8
- const _e = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Je = (e) => typeof e == "string" && _e.has(e.toLowerCase());
2
+ var De = Object.defineProperty;
3
+ var Me = (e, t, n) => t in e ? De(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
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";
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__ */ s(T, { children: Je(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 }) }) });
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 }) }) }) });
11
11
  }
12
- const H = () => {
13
- switch (q) {
12
+ const K = () => {
13
+ switch (z) {
14
14
  case "react":
15
15
  case "reactNative":
16
16
  case "rsc":
@@ -22,13 +22,13 @@ const H = () => {
22
22
  return "class";
23
23
  }
24
24
  };
25
- function Ye(e) {
26
- return /* @__PURE__ */ s(
25
+ function Ge(e) {
26
+ return /* @__PURE__ */ l(
27
27
  ae,
28
28
  {
29
29
  attributes: {
30
30
  ...e.attributes,
31
- [H()]: `${e.link ? "" : "builder-button"} ${e.attributes[H()] || ""}`,
31
+ [K()]: `${e.link ? "" : "builder-button"} ${e.attributes[K()] || ""}`,
32
32
  ...e.link ? {
33
33
  href: e.link,
34
34
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -57,7 +57,7 @@ const re = Ce({
57
57
  BlocksWrapper: "div",
58
58
  BlocksWrapperProps: {}
59
59
  }), Ie = Ce({ registeredComponents: {} });
60
- function Ge(e) {
60
+ function Qe(e) {
61
61
  var t;
62
62
  return {
63
63
  ...(t = e.component) == null ? void 0 : t.options,
@@ -68,7 +68,7 @@ function Ge(e) {
68
68
  builderBlock: e
69
69
  };
70
70
  }
71
- const Qe = ({
71
+ const Xe = ({
72
72
  builder: e,
73
73
  context: t,
74
74
  event: n,
@@ -80,12 +80,12 @@ const Qe = ({
80
80
  builder: e,
81
81
  context: t,
82
82
  event: n
83
- }), Xe = () => ({
84
- isEditing: W(),
85
- isBrowser: U(),
86
- isServer: !U(),
87
- getUserAttributes: () => Me()
88
- }), Ze = (e, {
83
+ }), Ze = () => ({
84
+ isEditing: N(),
85
+ isBrowser: j(),
86
+ isServer: !j(),
87
+ getUserAttributes: () => Oe()
88
+ }), et = (e, {
89
89
  isExpression: t = !0
90
90
  }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, he = ({
91
91
  code: e,
@@ -96,7 +96,7 @@ const Qe = ({
96
96
  rootSetState: a,
97
97
  rootState: r
98
98
  }) => {
99
- const l = Qe({
99
+ const s = Xe({
100
100
  builder: t,
101
101
  context: n,
102
102
  event: i,
@@ -106,7 +106,7 @@ const Qe = ({
106
106
  rootSetState: a
107
107
  })
108
108
  });
109
- return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
109
+ return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
110
110
  };
111
111
  function Te({
112
112
  rootState: e,
@@ -133,17 +133,17 @@ function Te({
133
133
  }
134
134
  });
135
135
  }
136
- function et() {
136
+ function tt() {
137
137
  var e;
138
138
  return typeof process != "undefined" && Y((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
139
139
  }
140
- const tt = () => {
140
+ const nt = () => {
141
141
  var i;
142
- if (!et())
142
+ if (!tt())
143
143
  return !1;
144
144
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
145
- return e && t && !n ? (j.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
146
- }, nt = (e) => (U() || tt(), he(e)), N = class N {
145
+ return e && t && !n ? (H.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
146
+ }, it = (e) => (j() || nt(), he(e)), F = class F {
147
147
  static getCacheKey(t) {
148
148
  return JSON.stringify({
149
149
  ...t,
@@ -153,17 +153,17 @@ const tt = () => {
153
153
  });
154
154
  }
155
155
  static getCachedValue(t) {
156
- return N.cache.get(t);
156
+ return F.cache.get(t);
157
157
  }
158
158
  static setCachedValue(t, n) {
159
- N.cache.size > 20 && N.cache.delete(N.cache.keys().next().value), N.cache.set(t, {
159
+ F.cache.size > 20 && F.cache.delete(F.cache.keys().next().value), F.cache.set(t, {
160
160
  value: n
161
161
  });
162
162
  }
163
163
  };
164
- ee(N, "cacheLimit", 20), ee(N, "cache", /* @__PURE__ */ new Map());
165
- let M = N;
166
- function K({
164
+ ee(F, "cacheLimit", 20), ee(F, "cache", /* @__PURE__ */ new Map());
165
+ let O = F;
166
+ function q({
167
167
  code: e,
168
168
  context: t,
169
169
  localState: n,
@@ -171,37 +171,37 @@ function K({
171
171
  rootSetState: o,
172
172
  event: a,
173
173
  isExpression: r = !0,
174
- enableCache: l
174
+ enableCache: s
175
175
  }) {
176
176
  if (e === "") {
177
- j.warn("Skipping evaluation of empty code block.");
177
+ H.warn("Skipping evaluation of empty code block.");
178
178
  return;
179
179
  }
180
180
  const d = {
181
- code: Ze(e, {
181
+ code: et(e, {
182
182
  isExpression: r
183
183
  }),
184
- builder: Xe(),
184
+ builder: Ze(),
185
185
  context: t,
186
186
  event: a,
187
187
  rootSetState: o,
188
188
  rootState: i,
189
189
  localState: n
190
190
  };
191
- if (l) {
192
- const c = M.getCacheKey(d), m = M.getCachedValue(c);
191
+ if (s) {
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
- const c = nt(d);
198
- if (l) {
199
- const m = M.getCacheKey(d);
200
- M.setCachedValue(m, c);
197
+ const c = it(d);
198
+ if (s) {
199
+ const m = O.getCacheKey(d);
200
+ O.setCachedValue(m, c);
201
201
  }
202
202
  return c;
203
203
  } catch (c) {
204
- j.error("Failed code evaluation: " + c.message, {
204
+ H.error("Failed code evaluation: " + c.message, {
205
205
  code: e
206
206
  });
207
207
  return;
@@ -213,7 +213,7 @@ const Ee = (e, t, n) => {
213
213
  const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
214
214
  return i.slice(0, -1).reduce((o, a, r) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
215
215
  };
216
- const it = ({
216
+ const ot = ({
217
217
  block: e,
218
218
  context: t,
219
219
  localState: n,
@@ -231,8 +231,8 @@ const it = ({
231
231
  ...a.actions
232
232
  }
233
233
  };
234
- for (const l in e.bindings) {
235
- const d = e.bindings[l], c = K({
234
+ for (const s in e.bindings) {
235
+ const d = e.bindings[s], c = q({
236
236
  code: d,
237
237
  localState: n,
238
238
  rootState: i,
@@ -240,7 +240,7 @@ const it = ({
240
240
  context: t,
241
241
  enableCache: !0
242
242
  });
243
- Ee(r, l, c);
243
+ Ee(r, s, c);
244
244
  }
245
245
  return r;
246
246
  };
@@ -253,7 +253,7 @@ function Q({
253
253
  rootSetState: a
254
254
  }) {
255
255
  const r = e;
256
- return n ? it({
256
+ return n ? ot({
257
257
  block: r,
258
258
  localState: i,
259
259
  rootState: o,
@@ -261,19 +261,19 @@ function Q({
261
261
  context: t
262
262
  }) : r;
263
263
  }
264
- function ot(e, t, n = {}) {
265
- let i, o, a, r = null, l = 0;
264
+ function at(e, t, n = {}) {
265
+ let i, o, a, r = null, s = 0;
266
266
  const d = function() {
267
- l = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
267
+ s = 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
- !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;
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;
274
274
  };
275
275
  }
276
- function L(e, ...t) {
276
+ function D(e, ...t) {
277
277
  const n = Object(e);
278
278
  for (let i = 1; i < arguments.length; i++) {
279
279
  const o = arguments[i];
@@ -284,17 +284,17 @@ function L(e, ...t) {
284
284
  return n;
285
285
  }
286
286
  const le = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
287
- function at(e) {
287
+ function rt(e) {
288
288
  for (const t of e)
289
289
  switch (t.trigger) {
290
290
  case "pageLoad":
291
291
  Re(t);
292
292
  break;
293
293
  case "hover":
294
- lt(t);
294
+ st(t);
295
295
  break;
296
296
  case "scrollInView":
297
- st(t);
297
+ ct(t);
298
298
  break;
299
299
  }
300
300
  }
@@ -302,12 +302,12 @@ function se(e) {
302
302
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
303
303
  }
304
304
  function ce(e, t) {
305
- const n = rt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
306
- for (const l of r)
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)
307
307
  for (const d of n)
308
- d in l || (l[d] = i[d]);
308
+ d in s || (s[d] = i[d]);
309
309
  }
310
- function rt(e) {
310
+ function lt(e) {
311
311
  const t = [];
312
312
  for (const n of e.steps)
313
313
  for (const i in n.styles)
@@ -321,14 +321,14 @@ function Re(e) {
321
321
  return;
322
322
  }
323
323
  Array.from(t).forEach((n) => {
324
- ce(e, n), n.style.transition = "none", n.style.transitionDelay = "0", L(n.style, e.steps[0].styles), setTimeout(() => {
325
- n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), L(n.style, e.steps[1].styles), setTimeout(() => {
324
+ ce(e, n), n.style.transition = "none", n.style.transitionDelay = "0", D(n.style, e.steps[0].styles), setTimeout(() => {
325
+ n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), D(n.style, e.steps[1].styles), setTimeout(() => {
326
326
  n.style.transition = "", n.style.transitionDelay = "";
327
327
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
328
328
  });
329
329
  });
330
330
  }
331
- function lt(e) {
331
+ function st(e) {
332
332
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
333
333
  if (!t.length) {
334
334
  se(e.elementId || e.id || "");
@@ -338,17 +338,17 @@ function lt(e) {
338
338
  ce(e, n);
339
339
  const i = e.steps[0].styles, o = e.steps[1].styles;
340
340
  function a() {
341
- L(n.style, i);
341
+ D(n.style, i);
342
342
  }
343
343
  function r() {
344
- L(n.style, o);
344
+ D(n.style, o);
345
345
  }
346
346
  a(), n.addEventListener("mouseenter", r), n.addEventListener("mouseleave", a), setTimeout(() => {
347
347
  n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
348
348
  });
349
349
  });
350
350
  }
351
- function st(e) {
351
+ function ct(e) {
352
352
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
353
353
  if (!t.length) {
354
354
  se(e.elementId || e.id || "");
@@ -358,22 +358,22 @@ function st(e) {
358
358
  ce(e, n);
359
359
  let i = !1, o = !1;
360
360
  function a() {
361
- !i && l(n) ? (i = !0, o = !0, setTimeout(() => {
362
- L(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
361
+ !i && s(n) ? (i = !0, o = !0, setTimeout(() => {
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 && !l(n) && (i = !1, L(n.style, e.steps[0].styles));
365
+ })) : e.repeat && i && !o && !s(n) && (i = !1, D(n.style, e.steps[0].styles));
366
366
  }
367
- const r = ot(a, 200, {
367
+ const r = at(a, 200, {
368
368
  leading: !1
369
369
  });
370
- function l(m) {
371
- const h = m.getBoundingClientRect(), b = window.innerHeight, v = (e.thresholdPercent || 0) / 100 * b;
372
- return h.bottom > v && h.top < b - v;
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;
373
373
  }
374
374
  const d = e.steps[0].styles;
375
375
  function c() {
376
- L(n.style, d);
376
+ D(n.style, d);
377
377
  }
378
378
  c(), setTimeout(() => {
379
379
  n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
@@ -383,37 +383,37 @@ function st(e) {
383
383
  }), a();
384
384
  });
385
385
  }
386
- const ct = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Pe = (e) => Object.entries(e).map(([n, i]) => {
386
+ const dt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Pe = (e) => Object.entries(e).map(([n, i]) => {
387
387
  if (typeof i == "string")
388
- return `${ct(n)}: ${i};`;
389
- }).filter(Y), dt = (e) => Pe(e).join(`
388
+ return `${dt(n)}: ${i};`;
389
+ }).filter(Y), ut = (e) => Pe(e).join(`
390
390
  `), te = ({
391
391
  mediaQuery: e,
392
392
  className: t,
393
393
  styles: n
394
394
  }) => {
395
395
  const i = `.${t} {
396
- ${dt(n)}
396
+ ${ut(n)}
397
397
  }`;
398
398
  return e ? `${e} {
399
399
  ${i}
400
400
  }` : i;
401
401
  };
402
- function ut({
402
+ function mt({
403
403
  style: e
404
404
  }) {
405
405
  return e;
406
406
  }
407
- const mt = ({
407
+ const ft = ({
408
408
  block: e,
409
409
  context: t
410
- }) => Ve(ut({
410
+ }) => Ve(mt({
411
411
  style: e.style || {},
412
412
  context: t,
413
413
  block: e
414
414
  }));
415
415
  function Ve(e) {
416
- switch (q) {
416
+ switch (z) {
417
417
  case "svelte":
418
418
  case "vue":
419
419
  case "solid":
@@ -425,7 +425,7 @@ function Ve(e) {
425
425
  return e;
426
426
  }
427
427
  }
428
- const ft = ({
428
+ const ht = ({
429
429
  block: e,
430
430
  context: t,
431
431
  registeredComponents: n
@@ -447,7 +447,7 @@ const ft = ({
447
447
  console.warn(`
448
448
  Could not find a registered component named "${i}".
449
449
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
450
- }, ht = ({
450
+ }, gt = ({
451
451
  block: e,
452
452
  context: t
453
453
  }) => {
@@ -457,7 +457,7 @@ const ft = ({
457
457
  } = e;
458
458
  if (!(n != null && n.collection))
459
459
  return;
460
- const o = K({
460
+ const o = q({
461
461
  code: n.collection,
462
462
  localState: t.localState,
463
463
  rootState: t.rootState,
@@ -525,7 +525,7 @@ const ft = ({
525
525
  }, n;
526
526
  };
527
527
  function Z(e) {
528
- return /* @__PURE__ */ s(
528
+ return /* @__PURE__ */ l(
529
529
  "style",
530
530
  {
531
531
  dangerouslySetInnerHTML: { __html: e.styles },
@@ -533,7 +533,7 @@ function Z(e) {
533
533
  }
534
534
  );
535
535
  }
536
- function gt(e) {
536
+ function bt(e) {
537
537
  function t() {
538
538
  const i = Q({
539
539
  block: e.block,
@@ -556,12 +556,12 @@ function gt(e) {
556
556
  shouldEvaluateBindings: !0
557
557
  }), o = i.responsiveStyles, a = e.context.content, r = Ae(
558
558
  ((v = a == null ? void 0 : a.meta) == null ? void 0 : v.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;
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;
560
560
  if (!m)
561
561
  return "";
562
- const h = l ? te({
562
+ const f = s ? te({
563
563
  className: m,
564
- styles: l
564
+ styles: s
565
565
  }) : "", b = d ? te({
566
566
  className: m,
567
567
  styles: d,
@@ -569,7 +569,7 @@ function gt(e) {
569
569
  "medium",
570
570
  r
571
571
  )
572
- }) : "", y = c ? te({
572
+ }) : "", p = c ? te({
573
573
  className: m,
574
574
  styles: c,
575
575
  mediaQuery: ge(
@@ -577,14 +577,14 @@ function gt(e) {
577
577
  r
578
578
  )
579
579
  }) : "";
580
- return [h, b, y].join(" ");
580
+ return [f, b, p].join(" ");
581
581
  }
582
- return /* @__PURE__ */ s(T, { children: n() && t() ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(Z, { id: "builderio-block", styles: n() }) }) : null });
582
+ return /* @__PURE__ */ l(g, { children: n() && t() ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(Z, { id: "builderio-block", styles: n() }) }) : null });
583
583
  }
584
- function bt(e) {
584
+ function yt(e) {
585
585
  return e.charAt(0).toUpperCase() + e.slice(1);
586
586
  }
587
- const yt = (e) => `on${bt(e)}`, pt = (e, t) => (n) => K({
587
+ const pt = (e) => `on${yt(e)}`, xt = (e, t) => (n) => q({
588
588
  code: e,
589
589
  context: t.context,
590
590
  localState: t.localState,
@@ -601,9 +601,9 @@ function We(e) {
601
601
  if (!n.hasOwnProperty(o))
602
602
  continue;
603
603
  const a = n[o];
604
- let r = yt(o);
604
+ let r = pt(o);
605
605
  if (e.stripPrefix)
606
- switch (q) {
606
+ switch (z) {
607
607
  case "vue":
608
608
  r = r.replace("v-on:", "");
609
609
  break;
@@ -611,7 +611,7 @@ function We(e) {
611
611
  r = r.replace("on:", "");
612
612
  break;
613
613
  }
614
- t[r] = pt(a, e);
614
+ t[r] = xt(a, e);
615
615
  }
616
616
  return t;
617
617
  }
@@ -620,7 +620,7 @@ function St({
620
620
  }) {
621
621
  return e;
622
622
  }
623
- const xt = (e) => ({
623
+ const vt = (e) => ({
624
624
  href: e.href
625
625
  });
626
626
  function de({
@@ -629,14 +629,14 @@ function de({
629
629
  }) {
630
630
  var i;
631
631
  const n = {
632
- ...xt(e),
632
+ ...vt(e),
633
633
  ...e.properties,
634
634
  "builder-id": e.id,
635
- style: mt({
635
+ style: ft({
636
636
  block: e,
637
637
  context: t
638
638
  }),
639
- [H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
639
+ [K()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
640
640
  };
641
641
  return St({
642
642
  properties: n,
@@ -644,8 +644,8 @@ function de({
644
644
  block: e
645
645
  });
646
646
  }
647
- function vt(e) {
648
- return /* @__PURE__ */ s(
647
+ function kt(e) {
648
+ return /* @__PURE__ */ l(
649
649
  ae,
650
650
  {
651
651
  TagName: e.Wrapper,
@@ -665,8 +665,8 @@ function vt(e) {
665
665
  }
666
666
  );
667
667
  }
668
- function kt(e) {
669
- return /* @__PURE__ */ s(
668
+ function Ct(e) {
669
+ return /* @__PURE__ */ l(
670
670
  e.Wrapper,
671
671
  {
672
672
  ...e.wrapperProps,
@@ -687,7 +687,7 @@ function kt(e) {
687
687
  }
688
688
  );
689
689
  }
690
- const Ct = ({
690
+ const wt = ({
691
691
  componentOptions: e,
692
692
  builderBlock: t,
693
693
  context: n,
@@ -696,7 +696,7 @@ const Ct = ({
696
696
  isInteractive: a,
697
697
  contextValue: r
698
698
  }) => {
699
- const l = {
699
+ const s = {
700
700
  ...e,
701
701
  /**
702
702
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
@@ -715,17 +715,17 @@ const Ct = ({
715
715
  context: n,
716
716
  wrapperProps: e,
717
717
  includeBlockProps: o
718
- } : l;
718
+ } : s;
719
719
  };
720
720
  function be(e) {
721
721
  var i;
722
- const [t, n] = w(
723
- () => e.isInteractive ? kt : e.componentRef
722
+ const [t, n] = C(
723
+ () => e.isInteractive ? Ct : e.componentRef
724
724
  );
725
- return /* @__PURE__ */ s(T, { children: e.componentRef ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
725
+ return /* @__PURE__ */ l(g, { children: e.componentRef ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
726
726
  t,
727
727
  {
728
- ...Ct({
728
+ ...wt({
729
729
  componentOptions: e.componentOptions,
730
730
  builderBlock: e.builderBlock,
731
731
  context: e.context,
@@ -735,8 +735,8 @@ 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__ */ s(
739
- z,
738
+ children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
739
+ _,
740
740
  {
741
741
  block: o,
742
742
  context: e.context,
@@ -748,10 +748,10 @@ function be(e) {
748
748
  }
749
749
  ) }) : null });
750
750
  }
751
- function wt(e) {
752
- const [t, n] = w(() => e.repeatContext);
753
- return /* @__PURE__ */ s(re.Provider, { value: t, children: /* @__PURE__ */ s(
754
- z,
751
+ function It(e) {
752
+ const [t, n] = C(() => e.repeatContext);
753
+ return /* @__PURE__ */ l(re.Provider, { value: t, children: /* @__PURE__ */ l(
754
+ _,
755
755
  {
756
756
  block: e.block,
757
757
  context: t,
@@ -760,24 +760,24 @@ function wt(e) {
760
760
  }
761
761
  ) });
762
762
  }
763
- function z(e) {
763
+ function _(e) {
764
764
  var d, c, m;
765
765
  function t() {
766
- return ft({
766
+ return ht({
767
767
  block: e.block,
768
768
  context: e.context,
769
769
  registeredComponents: e.registeredComponents
770
770
  });
771
771
  }
772
772
  function n() {
773
- return ht({
773
+ return gt({
774
774
  block: e.block,
775
775
  context: e.context
776
776
  });
777
777
  }
778
778
  function i() {
779
- var h;
780
- return (h = e.block.repeat) != null && h.collection ? e.block : Q({
779
+ var f;
780
+ return (f = e.block.repeat) != null && f.collection ? e.block : Q({
781
781
  block: e.block,
782
782
  localState: e.context.localState,
783
783
  rootState: e.context.rootState,
@@ -791,28 +791,28 @@ function z(e) {
791
791
  return e.block.tagName === "a" || ((b = i().properties) == null ? void 0 : b.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
792
792
  }
793
793
  function a() {
794
- var y, v;
795
- if ((y = e.block.repeat) != null && y.collection)
794
+ var p, v;
795
+ if ((p = e.block.repeat) != null && p.collection)
796
796
  return !!((v = n == null ? void 0 : n()) != null && v.length);
797
- const h = "hide" in i() ? i().hide : !1;
798
- return ("show" in i() ? i().show : !0) && !h;
797
+ const f = "hide" in i() ? i().hide : !1;
798
+ return ("show" in i() ? i().show : !0) && !f;
799
799
  }
800
800
  function r() {
801
- var b, y;
802
- return !((b = t == null ? void 0 : t()) != null && b.component) && !n() ? (y = i().children) != null ? y : [] : [];
801
+ var b, p;
802
+ return !((b = t == null ? void 0 : t()) != null && b.component) && !n() ? (p = i().children) != null ? p : [] : [];
803
803
  }
804
- function l() {
805
- var h, b, y, v, k, I, R, S, C, P, E;
804
+ function s() {
805
+ var f, b, p, v, w, T, R, x, I, P, E;
806
806
  return {
807
- blockChildren: (h = i().children) != null ? h : [],
807
+ blockChildren: (f = i().children) != null ? f : [],
808
808
  componentRef: (b = t == null ? void 0 : t()) == null ? void 0 : b.component,
809
809
  componentOptions: {
810
- ...Ge(i()),
810
+ ...Qe(i()),
811
811
  builderContext: e.context,
812
- ...((y = t == null ? void 0 : t()) == null ? void 0 : y.name) === "Core:Button" || ((v = t == null ? void 0 : t()) == null ? void 0 : v.name) === "Symbol" || ((k = t == null ? void 0 : t()) == null ? void 0 : k.name) === "Columns" || ((I = t == null ? void 0 : t()) == null ? void 0 : I.name) === "Form:Form" ? {
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" ? {
813
813
  builderLinkComponent: e.linkComponent
814
814
  } : {},
815
- ...((R = t == null ? void 0 : t()) == null ? void 0 : R.name) === "Symbol" || ((S = t == null ? void 0 : t()) == null ? void 0 : S.name) === "Columns" || ((C = t == null ? void 0 : t()) == null ? void 0 : C.name) === "Form:Form" ? {
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" ? {
816
816
  builderComponents: e.registeredComponents
817
817
  } : {}
818
818
  },
@@ -824,83 +824,83 @@ function z(e) {
824
824
  isInteractive: !((E = t == null ? void 0 : t()) != null && E.isRSC)
825
825
  };
826
826
  }
827
- return B(() => {
828
- const h = i().id, b = i().animations;
829
- b && h && at(
830
- b.filter((y) => y.trigger !== "hover").map((y) => ({
831
- ...y,
832
- elementId: h
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,
832
+ elementId: f
833
833
  }))
834
834
  );
835
- }, []), /* @__PURE__ */ s(T, { children: a() ? /* @__PURE__ */ A(T, { children: [
836
- /* @__PURE__ */ s(gt, { block: e.block, context: e.context }),
837
- (d = t == null ? void 0 : t()) != null && d.noWrap ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
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(
838
838
  be,
839
839
  {
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
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
849
849
  }
850
- ) }) : /* @__PURE__ */ s(T, { children: n() ? /* @__PURE__ */ s(T, { children: (m = n()) == null ? void 0 : m.map((h, b) => /* @__PURE__ */ s(
851
- wt,
850
+ ) }) : /* @__PURE__ */ l(g, { children: n() ? /* @__PURE__ */ l(g, { children: (m = n()) == null ? void 0 : m.map((f, b) => /* @__PURE__ */ l(
851
+ It,
852
852
  {
853
- repeatContext: h.context,
854
- block: h.block,
853
+ repeatContext: f.context,
854
+ block: f.block,
855
855
  registeredComponents: e.registeredComponents,
856
856
  linkComponent: e.linkComponent
857
857
  },
858
858
  b
859
- )) }) : /* @__PURE__ */ A(
860
- vt,
859
+ )) }) : /* @__PURE__ */ l(g, { children: /* @__PURE__ */ B(
860
+ kt,
861
861
  {
862
862
  Wrapper: o(),
863
863
  block: i(),
864
864
  context: e.context,
865
865
  linkComponent: e.linkComponent,
866
866
  children: [
867
- /* @__PURE__ */ s(
867
+ /* @__PURE__ */ l(
868
868
  be,
869
869
  {
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
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
879
879
  }
880
880
  ),
881
- (c = r()) == null ? void 0 : c.map((h) => /* @__PURE__ */ s(
882
- z,
881
+ (c = r()) == null ? void 0 : c.map((f) => /* @__PURE__ */ l(
882
+ _,
883
883
  {
884
- block: h,
884
+ block: f,
885
885
  registeredComponents: e.registeredComponents,
886
886
  linkComponent: e.linkComponent,
887
887
  context: e.context
888
888
  },
889
- h.id
889
+ f.id
890
890
  ))
891
891
  ]
892
892
  }
893
- ) })
893
+ ) }) })
894
894
  ] }) : null });
895
895
  }
896
- function It(e) {
896
+ function Tt(e) {
897
897
  function t() {
898
898
  var o;
899
899
  return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
900
900
  }
901
901
  function n() {
902
902
  var o, a;
903
- W() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
903
+ N() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
904
904
  {
905
905
  type: "builder.clickEmptyBlocks",
906
906
  data: {
@@ -913,7 +913,7 @@ function It(e) {
913
913
  }
914
914
  function i() {
915
915
  var o, a;
916
- W() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
916
+ N() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
917
917
  {
918
918
  type: "builder.hoverEmptyBlocks",
919
919
  data: {
@@ -924,11 +924,11 @@ function It(e) {
924
924
  "*"
925
925
  ));
926
926
  }
927
- return /* @__PURE__ */ A(T, { children: [
928
- /* @__PURE__ */ s(
927
+ return /* @__PURE__ */ B(g, { children: [
928
+ /* @__PURE__ */ l(
929
929
  e.BlocksWrapper,
930
930
  {
931
- className: t() + " props-blocks-wrapper-7cd1560e",
931
+ className: t() + " props-blocks-wrapper-7354e098",
932
932
  "builder-path": e.path,
933
933
  "builder-parent-id": e.parent,
934
934
  style: e.styleProp,
@@ -939,18 +939,18 @@ function It(e) {
939
939
  children: e.children
940
940
  }
941
941
  ),
942
- /* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-7cd1560e {
942
+ /* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-7354e098 {
943
943
  display: flex;
944
944
  flex-direction: column;
945
945
  align-items: stretch;
946
946
  }` })
947
947
  ] });
948
948
  }
949
- function O(e) {
949
+ function U(e) {
950
950
  var i, o, a;
951
951
  const t = fe(re), n = fe(Ie);
952
- return /* @__PURE__ */ s(
953
- It,
952
+ return /* @__PURE__ */ l(
953
+ Tt,
954
954
  {
955
955
  blocks: e.blocks,
956
956
  parent: e.parent,
@@ -958,8 +958,8 @@ function O(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__ */ s(T, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ s(
962
- z,
961
+ children: e.blocks ? /* @__PURE__ */ l(g, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
962
+ _,
963
963
  {
964
964
  block: r,
965
965
  linkComponent: e.linkComponent,
@@ -971,47 +971,47 @@ function O(e) {
971
971
  }
972
972
  );
973
973
  }
974
- function Tt(e) {
974
+ function Et(e) {
975
975
  var R;
976
- const [t, n] = w(
976
+ const [t, n] = C(
977
977
  () => typeof e.space == "number" ? e.space || 0 : 20
978
- ), [i, o] = w(() => e.columns || []), [a, r] = w(
978
+ ), [i, o] = C(() => e.columns || []), [a, r] = C(
979
979
  () => e.stackColumnsAt || "tablet"
980
980
  );
981
- function l(S) {
982
- var C;
983
- return ((C = i[S]) == null ? void 0 : C.width) || 100 / i.length;
981
+ function s(x) {
982
+ var I;
983
+ return ((I = i[x]) == null ? void 0 : I.width) || 100 / i.length;
984
984
  }
985
- function d(S) {
986
- const C = t * (i.length - 1) / i.length;
987
- return `calc(${l(S)}% - ${C}px)`;
985
+ function d(x) {
986
+ const I = t * (i.length - 1) / i.length;
987
+ return `calc(${s(x)}% - ${I}px)`;
988
988
  }
989
989
  function c({
990
- stackedStyle: S,
991
- desktopStyle: C
990
+ stackedStyle: x,
991
+ desktopStyle: I
992
992
  }) {
993
- return a === "tablet" ? S : C;
993
+ return a === "tablet" ? x : I;
994
994
  }
995
995
  function m({
996
- stackedStyle: S,
997
- desktopStyle: C
996
+ stackedStyle: x,
997
+ desktopStyle: I
998
998
  }) {
999
- return a === "never" ? C : S;
999
+ return a === "never" ? I : x;
1000
1000
  }
1001
- const [h, b] = w(
1001
+ const [f, b] = C(
1002
1002
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
1003
1003
  );
1004
- function y() {
1004
+ function p() {
1005
1005
  return {
1006
- "--flex-dir": h,
1006
+ "--flex-dir": f,
1007
1007
  "--flex-dir-tablet": c({
1008
- stackedStyle: h,
1008
+ stackedStyle: f,
1009
1009
  desktopStyle: "row"
1010
1010
  })
1011
1011
  };
1012
1012
  }
1013
- function v(S) {
1014
- const C = S === 0 ? 0 : t, P = d(S), E = `${C}px`, F = "100%", $ = 0;
1013
+ function v(x) {
1014
+ const I = x === 0 ? 0 : t, P = d(x), E = `${I}px`, $ = "100%", L = 0;
1015
1015
  return {
1016
1016
  ...{
1017
1017
  display: "flex",
@@ -1021,32 +1021,32 @@ function Tt(e) {
1021
1021
  width: P,
1022
1022
  ["marginLeft"]: E,
1023
1023
  "--column-width-mobile": m({
1024
- stackedStyle: F,
1024
+ stackedStyle: $,
1025
1025
  desktopStyle: P
1026
1026
  }),
1027
1027
  "--column-margin-left-mobile": m({
1028
- stackedStyle: $,
1028
+ stackedStyle: L,
1029
1029
  desktopStyle: E
1030
1030
  }),
1031
1031
  "--column-width-tablet": c({
1032
- stackedStyle: F,
1032
+ stackedStyle: $,
1033
1033
  desktopStyle: P
1034
1034
  }),
1035
1035
  "--column-margin-left-tablet": c({
1036
- stackedStyle: $,
1036
+ stackedStyle: L,
1037
1037
  desktopStyle: E
1038
1038
  })
1039
1039
  };
1040
1040
  }
1041
- function k(S) {
1041
+ function w(x) {
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
- )[S].max;
1045
+ )[x].max;
1046
1046
  }
1047
- function I() {
1047
+ function T() {
1048
1048
  return `
1049
- @media (max-width: ${k("medium")}px) {
1049
+ @media (max-width: ${w("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 Tt(e) {
1058
1058
  }
1059
1059
  }
1060
1060
 
1061
- @media (max-width: ${k("small")}px) {
1061
+ @media (max-width: ${w("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 Tt(e) {
1071
1071
  },
1072
1072
  `;
1073
1073
  }
1074
- return /* @__PURE__ */ A(T, { children: [
1075
- /* @__PURE__ */ A(
1074
+ return /* @__PURE__ */ B(g, { children: [
1075
+ /* @__PURE__ */ B(
1076
1076
  "div",
1077
1077
  {
1078
- className: `builder-columns ${e.builderBlock.id}-breakpoints div-003f4b1c`,
1079
- style: y(),
1078
+ className: `builder-columns ${e.builderBlock.id}-breakpoints div-7a098ce6`,
1079
+ style: p(),
1080
1080
  children: [
1081
- /* @__PURE__ */ s(Z, { id: "builderio-columns", styles: I() }),
1082
- (R = e.columns) == null ? void 0 : R.map((S, C) => /* @__PURE__ */ s(
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(
1083
1083
  ae,
1084
1084
  {
1085
- TagName: S.link ? e.builderLinkComponent || "a" : "div",
1085
+ TagName: x.link ? e.builderLinkComponent || "a" : "div",
1086
1086
  actionAttributes: {},
1087
1087
  attributes: {
1088
- ...S.link ? {
1089
- href: S.link
1088
+ ...x.link ? {
1089
+ href: x.link
1090
1090
  } : {},
1091
- [H()]: "builder-column",
1092
- style: Ve(v(C))
1091
+ [K()]: "builder-column",
1092
+ style: Ve(v(I))
1093
1093
  },
1094
- children: /* @__PURE__ */ s(
1095
- O,
1094
+ children: /* @__PURE__ */ l(
1095
+ U,
1096
1096
  {
1097
- path: `component.options.columns.${C}.blocks`,
1097
+ path: `component.options.columns.${I}.blocks`,
1098
1098
  parent: e.builderBlock.id,
1099
1099
  styleProp: {
1100
1100
  flexGrow: "1"
@@ -1102,32 +1102,32 @@ function Tt(e) {
1102
1102
  context: e.builderContext,
1103
1103
  registeredComponents: e.builderComponents,
1104
1104
  linkComponent: e.builderLinkComponent,
1105
- blocks: S.blocks
1105
+ blocks: x.blocks
1106
1106
  }
1107
1107
  )
1108
1108
  },
1109
- C
1109
+ I
1110
1110
  ))
1111
1111
  ]
1112
1112
  }
1113
1113
  ),
1114
- /* @__PURE__ */ s("style", { children: `.div-003f4b1c {
1114
+ /* @__PURE__ */ l("style", { children: `.div-7a098ce6 {
1115
1115
  display: flex;
1116
1116
  line-height: normal;
1117
1117
  }` })
1118
1118
  ] });
1119
1119
  }
1120
- function Et(e) {
1121
- return /* @__PURE__ */ s("span", { children: e.children });
1120
+ function Rt(e) {
1121
+ return /* @__PURE__ */ l("span", { children: e.children });
1122
1122
  }
1123
1123
  function ye(e) {
1124
1124
  return e.replace(/http(s)?:/, "");
1125
1125
  }
1126
- function Rt(e = "", t, n) {
1126
+ function Pt(e = "", t, n) {
1127
1127
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1128
1128
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1129
1129
  }
1130
- function Pt(e, t) {
1130
+ function Vt(e, t) {
1131
1131
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1132
1132
  return e;
1133
1133
  if (t === "master")
@@ -1146,12 +1146,12 @@ function ne(e) {
1146
1146
  if (e.match(/builder\.io/)) {
1147
1147
  let n = e;
1148
1148
  const i = Number(e.split("?width=")[1]);
1149
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Rt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1149
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Pt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1150
1150
  }
1151
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Pt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
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
- function Vt(e) {
1154
- var o, a, r, l;
1153
+ function Bt(e) {
1154
+ var o, a, r, s;
1155
1155
  function t() {
1156
1156
  var m;
1157
1157
  const c = e.image || e.src;
@@ -1180,11 +1180,11 @@ function Vt(e) {
1180
1180
  };
1181
1181
  return e.aspectRatio ? d : void 0;
1182
1182
  }
1183
- return /* @__PURE__ */ A(T, { children: [
1184
- /* @__PURE__ */ A(T, { children: [
1185
- /* @__PURE__ */ A("picture", { children: [
1186
- n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1187
- /* @__PURE__ */ s(
1183
+ return /* @__PURE__ */ B(g, { children: [
1184
+ /* @__PURE__ */ B(g, { children: [
1185
+ /* @__PURE__ */ B("picture", { children: [
1186
+ n() ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) }) : null,
1187
+ /* @__PURE__ */ l(
1188
1188
  "img",
1189
1189
  {
1190
1190
  loading: "lazy",
@@ -1195,33 +1195,33 @@ function Vt(e) {
1195
1195
  objectFit: e.backgroundSize || "cover",
1196
1196
  ...i()
1197
1197
  },
1198
- className: "builder-image" + (e.className ? " " + e.className : "") + " img-a0c95e8c",
1198
+ className: "builder-image" + (e.className ? " " + e.className : "") + " img-0614da04",
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__ */ s(
1205
+ e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
1206
1206
  "div",
1207
1207
  {
1208
- className: "builder-image-sizer div-a0c95e8c",
1208
+ className: "builder-image-sizer div-0614da04",
1209
1209
  style: {
1210
1210
  paddingTop: e.aspectRatio * 100 + "%"
1211
1211
  }
1212
1212
  }
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
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
1216
1216
  ] }),
1217
- /* @__PURE__ */ s("style", { children: `.img-a0c95e8c {
1217
+ /* @__PURE__ */ l("style", { children: `.img-0614da04 {
1218
1218
  opacity: 1;
1219
1219
  transition: opacity 0.2s ease-in-out;
1220
- }.div-a0c95e8c {
1220
+ }.div-0614da04 {
1221
1221
  width: 100%;
1222
1222
  pointer-events: none;
1223
1223
  font-size: 0;
1224
- }.div-a0c95e8c-2 {
1224
+ }.div-0614da04-2 {
1225
1225
  display: flex;
1226
1226
  flex-direction: column;
1227
1227
  align-items: stretch;
@@ -1233,8 +1233,8 @@ function Vt(e) {
1233
1233
  }` })
1234
1234
  ] });
1235
1235
  }
1236
- function Bt(e) {
1237
- return /* @__PURE__ */ s(
1236
+ function At(e) {
1237
+ return /* @__PURE__ */ l(
1238
1238
  "section",
1239
1239
  {
1240
1240
  ...e.attributes,
@@ -1254,7 +1254,7 @@ function Bt(e) {
1254
1254
  }
1255
1255
  );
1256
1256
  }
1257
- const At = {
1257
+ const Wt = {
1258
1258
  name: "Core:Button",
1259
1259
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1260
1260
  defaultStyles: {
@@ -1287,7 +1287,7 @@ const At = {
1287
1287
  }],
1288
1288
  static: !0,
1289
1289
  noWrap: !0
1290
- }, Wt = {
1290
+ }, Nt = {
1291
1291
  // TODO: ways to statically preprocess JSON for references, functions, etc
1292
1292
  name: "Columns",
1293
1293
  isRSC: !0,
@@ -1466,7 +1466,7 @@ const At = {
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((l, d) => l + d.get("width"), 0) !== 100) && t();
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();
1470
1470
  }
1471
1471
  }, {
1472
1472
  name: "space",
@@ -1488,13 +1488,13 @@ const At = {
1488
1488
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1489
1489
  advanced: !0
1490
1490
  }]
1491
- }, Nt = {
1491
+ }, Ft = {
1492
1492
  name: "Fragment",
1493
1493
  static: !0,
1494
1494
  hidden: !0,
1495
1495
  canHaveChildren: !0,
1496
1496
  noWrap: !0
1497
- }, Ft = {
1497
+ }, $t = {
1498
1498
  name: "Image",
1499
1499
  static: !0,
1500
1500
  image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
@@ -1514,17 +1514,17 @@ const At = {
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, l = 6e4) {
1517
+ function n(r, s = 6e4) {
1518
1518
  return new Promise((d, c) => {
1519
1519
  const m = document.createElement("img");
1520
- let h = !1;
1520
+ let f = !1;
1521
1521
  m.onload = () => {
1522
- h = !0, d(m);
1522
+ f = !0, d(m);
1523
1523
  }, m.addEventListener("error", (b) => {
1524
1524
  console.warn("Image load failed", b.error), c(b.error);
1525
1525
  }), m.src = r, setTimeout(() => {
1526
- h || c(new Error("Image load timed out"));
1527
- }, l);
1526
+ f || c(new Error("Image load timed out"));
1527
+ }, s);
1528
1528
  });
1529
1529
  }
1530
1530
  function i(r) {
@@ -1535,8 +1535,8 @@ const At = {
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 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));
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));
1540
1540
  });
1541
1541
  }
1542
1542
  }, {
@@ -1594,7 +1594,7 @@ const At = {
1594
1594
  advanced: !0,
1595
1595
  defaultValue: 0.7041
1596
1596
  }]
1597
- }, $t = {
1597
+ }, Lt = {
1598
1598
  name: "Core:Section",
1599
1599
  static: !0,
1600
1600
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1633,7 +1633,7 @@ const At = {
1633
1633
  }
1634
1634
  }
1635
1635
  }]
1636
- }, Lt = {
1636
+ }, Dt = {
1637
1637
  name: "Slot",
1638
1638
  isRSC: !0,
1639
1639
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1647,9 +1647,9 @@ const At = {
1647
1647
  defaultValue: "children"
1648
1648
  }]
1649
1649
  };
1650
- function Dt(e) {
1650
+ function Mt(e) {
1651
1651
  var t, n, i;
1652
- return /* @__PURE__ */ s(
1652
+ return /* @__PURE__ */ l(
1653
1653
  "div",
1654
1654
  {
1655
1655
  style: {
@@ -1658,8 +1658,8 @@ function Dt(e) {
1658
1658
  ...!((t = e.builderContext.context) != null && t.symbolId) && {
1659
1659
  "builder-slot": e.name
1660
1660
  },
1661
- children: /* @__PURE__ */ s(
1662
- O,
1661
+ children: /* @__PURE__ */ l(
1662
+ U,
1663
1663
  {
1664
1664
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1665
1665
  path: `symbol.data.${e.name}`,
@@ -1670,7 +1670,7 @@ function Dt(e) {
1670
1670
  }
1671
1671
  );
1672
1672
  }
1673
- const Mt = {
1673
+ const Ot = {
1674
1674
  name: "Symbol",
1675
1675
  noWrap: !0,
1676
1676
  static: !0,
@@ -1703,7 +1703,7 @@ const Mt = {
1703
1703
  hideFromUI: !0,
1704
1704
  type: "boolean"
1705
1705
  }]
1706
- }, Ot = {
1706
+ }, Ut = {
1707
1707
  name: "Text",
1708
1708
  static: !0,
1709
1709
  isRSC: !0,
@@ -1722,9 +1722,9 @@ const Mt = {
1722
1722
  textAlign: "center"
1723
1723
  }
1724
1724
  };
1725
- function Ut(e) {
1725
+ function jt(e) {
1726
1726
  var t;
1727
- return /* @__PURE__ */ s(
1727
+ return /* @__PURE__ */ l(
1728
1728
  "div",
1729
1729
  {
1730
1730
  className: "builder-text",
@@ -1735,7 +1735,7 @@ function Ut(e) {
1735
1735
  }
1736
1736
  );
1737
1737
  }
1738
- const jt = {
1738
+ const Ht = {
1739
1739
  name: "Custom Code",
1740
1740
  static: !0,
1741
1741
  requiredPermissions: ["editCode"],
@@ -1758,11 +1758,11 @@ const jt = {
1758
1758
  advanced: !0
1759
1759
  }]
1760
1760
  };
1761
- function Ht(e) {
1762
- const t = X(null), [n, i] = w(() => []), [o, a] = w(() => []);
1763
- return B(() => {
1764
- var l;
1765
- if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
1761
+ function Kt(e) {
1762
+ const t = X(null), [n, i] = C(() => []), [o, a] = C(() => []);
1763
+ return V(() => {
1764
+ var s;
1765
+ if (!((s = t.current) != null && s.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 Ht(e) {
1787
1787
  }
1788
1788
  }
1789
1789
  }
1790
- }, []), /* @__PURE__ */ s(
1790
+ }, []), /* @__PURE__ */ l(
1791
1791
  "div",
1792
1792
  {
1793
1793
  ref: t,
@@ -1796,7 +1796,7 @@ function Ht(e) {
1796
1796
  }
1797
1797
  );
1798
1798
  }
1799
- const Kt = {
1799
+ const qt = {
1800
1800
  name: "Embed",
1801
1801
  static: !0,
1802
1802
  inputs: [{
@@ -1821,30 +1821,30 @@ const Kt = {
1821
1821
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1822
1822
  hideFromUI: !0
1823
1823
  }]
1824
- }, qt = ["text/javascript", "application/javascript", "application/ecmascript"], zt = (e) => qt.includes(e.type);
1825
- function _t(e) {
1826
- const t = X(null), [n, i] = w(() => []), [o, a] = w(() => []), [r, l] = w(() => !1);
1824
+ }, zt = ["text/javascript", "application/javascript", "application/ecmascript"], _t = (e) => zt.includes(e.type);
1825
+ function Jt(e) {
1826
+ const t = X(null), [n, i] = C(() => []), [o, a] = C(() => []), [r, s] = C(() => !1);
1827
1827
  function d() {
1828
1828
  if (!t.current || !t.current.getElementsByTagName)
1829
1829
  return;
1830
1830
  const c = t.current.getElementsByTagName("script");
1831
1831
  for (let m = 0; m < c.length; m++) {
1832
- const h = c[m];
1833
- if (h.src && !n.includes(h.src)) {
1834
- n.push(h.src);
1832
+ const f = c[m];
1833
+ if (f.src && !n.includes(f.src)) {
1834
+ n.push(f.src);
1835
1835
  const b = document.createElement("script");
1836
- b.async = !0, b.src = h.src, document.head.appendChild(b);
1837
- } else if (zt(h) && !o.includes(h.innerText))
1836
+ b.async = !0, b.src = f.src, document.head.appendChild(b);
1837
+ } else if (_t(f) && !o.includes(f.innerText))
1838
1838
  try {
1839
- o.push(h.innerText), new Function(h.innerText)();
1839
+ o.push(f.innerText), new Function(f.innerText)();
1840
1840
  } catch (b) {
1841
1841
  console.warn("`Embed`: Error running script:", b);
1842
1842
  }
1843
1843
  }
1844
1844
  }
1845
- return B(() => {
1846
- t.current && !r && (l(!0), d());
1847
- }, [t.current, r]), /* @__PURE__ */ s(
1845
+ return V(() => {
1846
+ t.current && !r && (s(!0), d());
1847
+ }, [t.current, r]), /* @__PURE__ */ l(
1848
1848
  "div",
1849
1849
  {
1850
1850
  className: "builder-embed",
@@ -1853,7 +1853,7 @@ function _t(e) {
1853
1853
  }
1854
1854
  );
1855
1855
  }
1856
- const Jt = {
1856
+ const Yt = {
1857
1857
  name: "Form:Form",
1858
1858
  // editableTags: ['builder-form-error']
1859
1859
  defaults: {
@@ -2084,127 +2084,127 @@ const Jt = {
2084
2084
  }
2085
2085
  }
2086
2086
  }]
2087
- }, Yt = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Gt = () => {
2087
+ }, Gt = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Qt = () => {
2088
2088
  const e = process.env.NODE_ENV || "production";
2089
- return Yt.includes(e) ? e : "production";
2090
- }, Qt = (e, t, n) => {
2089
+ return Gt.includes(e) ? e : "production";
2090
+ }, Xt = (e, t, n) => {
2091
2091
  const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
2092
2092
  return i === void 0 || i === e ? n : i;
2093
2093
  };
2094
- function Xt(e) {
2095
- var h, b;
2096
- const t = X(null), [n, i] = w(() => "unsubmitted"), [o, a] = w(() => null), [r, l] = w(() => "");
2097
- function d(y) {
2098
- var k, I;
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
2099
  const v = {
2100
2100
  ...e.builderContext.rootState,
2101
- ...y
2101
+ ...p
2102
2102
  };
2103
- e.builderContext.rootSetState ? (I = (k = e.builderContext).rootSetState) == null || I.call(k, v) : e.builderContext.rootState = v;
2103
+ e.builderContext.rootSetState ? (T = (w = e.builderContext).rootSetState) == null || T.call(w, v) : e.builderContext.rootState = v;
2104
2104
  }
2105
2105
  function c() {
2106
- return W() && e.previewState || n;
2106
+ return N() && e.previewState || n;
2107
2107
  }
2108
- function m(y) {
2109
- var k;
2108
+ function m(p) {
2109
+ var w;
2110
2110
  const v = e.sendWithJs || e.sendSubmissionsTo === "email";
2111
2111
  if (e.sendSubmissionsTo === "zapier")
2112
- y.preventDefault();
2112
+ p.preventDefault();
2113
2113
  else if (v) {
2114
2114
  if (!(e.action || e.sendSubmissionsTo === "email")) {
2115
- y.preventDefault();
2115
+ p.preventDefault();
2116
2116
  return;
2117
2117
  }
2118
- y.preventDefault();
2119
- const I = y.currentTarget, R = e.customHeaders || {};
2120
- let S;
2121
- const C = new FormData(I), P = Array.from(
2122
- y.currentTarget.querySelectorAll("input,select,textarea")
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")
2123
2123
  ).filter((u) => !!u.name).map((u) => {
2124
- let f;
2125
- const p = u.name;
2124
+ let h;
2125
+ const k = u.name;
2126
2126
  if (u instanceof HTMLInputElement)
2127
2127
  if (u.type === "radio") {
2128
2128
  if (u.checked)
2129
- return f = u.name, {
2130
- key: p,
2131
- value: f
2129
+ return h = u.name, {
2130
+ key: k,
2131
+ value: h
2132
2132
  };
2133
2133
  } else if (u.type === "checkbox")
2134
- f = u.checked;
2134
+ h = u.checked;
2135
2135
  else if (u.type === "number" || u.type === "range") {
2136
- const g = u.valueAsNumber;
2137
- isNaN(g) || (f = g);
2136
+ const y = u.valueAsNumber;
2137
+ isNaN(y) || (h = y);
2138
2138
  } else
2139
- u.type === "file" ? f = u.files : f = u.value;
2139
+ u.type === "file" ? h = u.files : h = u.value;
2140
2140
  else
2141
- f = u.value;
2141
+ h = u.value;
2142
2142
  return {
2143
- key: p,
2144
- value: f
2143
+ key: k,
2144
+ value: h
2145
2145
  };
2146
2146
  });
2147
2147
  let E = e.contentType;
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
- S = C;
2151
+ x = I;
2152
2152
  else {
2153
2153
  const u = {};
2154
- Array.from(P).forEach(({ value: f, key: p }) => {
2155
- Ee(u, p, f);
2156
- }), S = JSON.stringify(u);
2154
+ Array.from(P).forEach(({ value: h, key: k }) => {
2155
+ Ee(u, k, h);
2156
+ }), x = JSON.stringify(u);
2157
2157
  }
2158
- E && E !== "multipart/form-data" && (v && ((k = e.action) != null && k.includes("zapier.com")) || (R["content-type"] = E));
2159
- const F = new CustomEvent("presubmit", { detail: { body: S } });
2160
- if (t.current && (t.current.dispatchEvent(F), F.defaultPrevented))
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 } });
2160
+ if (t.current && (t.current.dispatchEvent($), $.defaultPrevented))
2161
2161
  return;
2162
2162
  i("sending");
2163
- const $ = `${Gt() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2163
+ const L = `${Qt() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2164
2164
  e.sendSubmissionsToEmail || ""
2165
2165
  )}&name=${encodeURIComponent(e.name || "")}`;
2166
2166
  fetch(
2167
- e.sendSubmissionsTo === "email" ? $ : e.action,
2168
- { body: S, headers: R, method: e.method || "post" }
2167
+ e.sendSubmissionsTo === "email" ? L : e.action,
2168
+ { body: x, headers: R, method: e.method || "post" }
2169
2169
  ).then(
2170
2170
  async (u) => {
2171
- let f;
2172
- const p = u.headers.get("content-type");
2173
- if (p && p.indexOf("application/json") !== -1 ? f = await u.json() : f = await u.text(), !u.ok && e.errorMessagePath) {
2174
- let g = Qt(f, e.errorMessagePath);
2175
- g && (typeof g != "string" && (g = JSON.stringify(g)), l(g), d({ formErrorMessage: g }));
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 }));
2176
2176
  }
2177
- if (a(f), i(u.ok ? "success" : "error"), u.ok) {
2178
- const g = new CustomEvent("submit:success", {
2179
- detail: { res: u, body: f }
2177
+ if (a(h), i(u.ok ? "success" : "error"), u.ok) {
2178
+ const y = new CustomEvent("submit:success", {
2179
+ detail: { res: u, body: h }
2180
2180
  });
2181
2181
  if (t.current) {
2182
- if (t.current.dispatchEvent(g), g.defaultPrevented)
2182
+ if (t.current.dispatchEvent(y), y.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 x = new CustomEvent("route", {
2188
+ const S = new CustomEvent("route", {
2189
2189
  detail: { url: e.successUrl }
2190
2190
  });
2191
- t.current.dispatchEvent(x), x.defaultPrevented || (location.href = e.successUrl);
2191
+ t.current.dispatchEvent(S), S.defaultPrevented || (location.href = e.successUrl);
2192
2192
  } else
2193
2193
  location.href = e.successUrl;
2194
2194
  }
2195
2195
  },
2196
2196
  (u) => {
2197
- const f = new CustomEvent("submit:error", {
2197
+ const h = new CustomEvent("submit:error", {
2198
2198
  detail: { error: u }
2199
2199
  });
2200
- t.current && (t.current.dispatchEvent(f), f.defaultPrevented) || (a(u), i("error"));
2200
+ t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (a(u), i("error"));
2201
2201
  }
2202
2202
  );
2203
2203
  }
2204
2204
  }
2205
- return /* @__PURE__ */ A(T, { children: [
2205
+ return /* @__PURE__ */ B(g, { children: [
2206
2206
  " ",
2207
- /* @__PURE__ */ A(
2207
+ /* @__PURE__ */ B(
2208
2208
  "form",
2209
2209
  {
2210
2210
  validate: e.validate,
@@ -2212,53 +2212,63 @@ function Xt(e) {
2212
2212
  action: !e.sendWithJs && e.action,
2213
2213
  method: e.method,
2214
2214
  name: e.name,
2215
- onSubmit: (y) => m(y),
2215
+ onSubmit: (p) => m(p),
2216
2216
  ...e.attributes,
2217
2217
  children: [
2218
- e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(T, { children: (b = (h = e.builderBlock) == null ? void 0 : h.children) == null ? void 0 : b.map((y, v) => /* @__PURE__ */ s(
2219
- z,
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(
2220
+ _,
2220
2221
  {
2221
- block: y,
2222
+ block: p,
2222
2223
  context: e.builderContext,
2223
2224
  registeredComponents: e.builderComponents,
2224
2225
  linkComponent: e.builderLinkComponent
2225
2226
  },
2226
2227
  `form-block-${v}`
2227
2228
  )) }) : null,
2228
- c() === "error" ? /* @__PURE__ */ s(
2229
- O,
2229
+ " ",
2230
+ c() === "error" ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
2231
+ U,
2230
2232
  {
2231
2233
  path: "errorMessage",
2232
2234
  blocks: e.errorMessage,
2233
2235
  context: e.builderContext
2234
2236
  }
2235
- ) : null,
2236
- c() === "sending" ? /* @__PURE__ */ s(
2237
- O,
2237
+ ) }) : null,
2238
+ " ",
2239
+ c() === "sending" ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
2240
+ U,
2238
2241
  {
2239
2242
  path: "sendingMessage",
2240
2243
  blocks: e.sendingMessage,
2241
2244
  context: e.builderContext
2242
2245
  }
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(
2246
- O,
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(
2255
+ U,
2247
2256
  {
2248
2257
  path: "successMessage",
2249
2258
  blocks: e.successMessage,
2250
2259
  context: e.builderContext
2251
2260
  }
2252
- ) : null
2261
+ ) }) : null,
2262
+ " "
2253
2263
  ]
2254
2264
  }
2255
2265
  ),
2256
2266
  " ",
2257
- /* @__PURE__ */ s("style", { children: ".pre-31bf8a14 { padding: 10px; color: red; text-align: center; }" }),
2267
+ /* @__PURE__ */ l("style", { children: ".pre-25b9edf0 { padding: 10px; color: red; text-align: center; }" }),
2258
2268
  " "
2259
2269
  ] });
2260
2270
  }
2261
- const Zt = {
2271
+ const en = {
2262
2272
  name: "Form:Input",
2263
2273
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2264
2274
  inputs: [
@@ -2310,12 +2320,12 @@ const Zt = {
2310
2320
  borderColor: "#ccc"
2311
2321
  }
2312
2322
  };
2313
- function en(e) {
2323
+ function tn(e) {
2314
2324
  return /* @__PURE__ */ we(
2315
2325
  "input",
2316
2326
  {
2317
2327
  ...e.attributes,
2318
- key: W() && e.defaultValue ? e.defaultValue : "default-key",
2328
+ key: N() && e.defaultValue ? e.defaultValue : "default-key",
2319
2329
  placeholder: e.placeholder,
2320
2330
  type: e.type,
2321
2331
  name: e.name,
@@ -2325,7 +2335,7 @@ function en(e) {
2325
2335
  }
2326
2336
  );
2327
2337
  }
2328
- const tn = {
2338
+ const nn = {
2329
2339
  name: "Form:Select",
2330
2340
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2331
2341
  defaultStyles: {
@@ -2368,21 +2378,21 @@ const tn = {
2368
2378
  static: !0,
2369
2379
  noWrap: !0
2370
2380
  };
2371
- function nn(e) {
2381
+ function on(e) {
2372
2382
  var t;
2373
2383
  return /* @__PURE__ */ we(
2374
2384
  "select",
2375
2385
  {
2376
2386
  ...e.attributes,
2377
2387
  value: e.value,
2378
- key: W() && e.defaultValue ? e.defaultValue : "default-key",
2388
+ key: N() && e.defaultValue ? e.defaultValue : "default-key",
2379
2389
  defaultValue: e.defaultValue,
2380
2390
  name: e.name
2381
2391
  },
2382
- (t = e.options) == null ? void 0 : t.map((n) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }))
2392
+ (t = e.options) == null ? void 0 : t.map((n) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }))
2383
2393
  );
2384
2394
  }
2385
- const on = {
2395
+ const an = {
2386
2396
  name: "Form:SubmitButton",
2387
2397
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2388
2398
  defaultStyles: {
@@ -2408,10 +2418,10 @@ const on = {
2408
2418
  // TODO: defaultChildren
2409
2419
  // canHaveChildren: true,
2410
2420
  };
2411
- function an(e) {
2412
- return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
2421
+ function rn(e) {
2422
+ return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
2413
2423
  }
2414
- const rn = {
2424
+ const ln = {
2415
2425
  // friendlyName?
2416
2426
  name: "Raw:Img",
2417
2427
  hideFromInsertMenu: !0,
@@ -2426,8 +2436,8 @@ const rn = {
2426
2436
  noWrap: !0,
2427
2437
  static: !0
2428
2438
  };
2429
- function ln(e) {
2430
- return /* @__PURE__ */ s(
2439
+ function sn(e) {
2440
+ return /* @__PURE__ */ l(
2431
2441
  "img",
2432
2442
  {
2433
2443
  style: {
@@ -2438,10 +2448,10 @@ function ln(e) {
2438
2448
  src: e.imgSrc || e.image,
2439
2449
  ...e.attributes
2440
2450
  },
2441
- W() && e.imgSrc || "default-key"
2451
+ N() && e.imgSrc || "default-key"
2442
2452
  );
2443
2453
  }
2444
- const sn = {
2454
+ const cn = {
2445
2455
  name: "Video",
2446
2456
  canHaveChildren: !0,
2447
2457
  defaultStyles: {
@@ -2523,8 +2533,8 @@ const sn = {
2523
2533
  advanced: !0
2524
2534
  }]
2525
2535
  };
2526
- function cn(e) {
2527
- var i, o, a, r, l, d, c;
2536
+ function dn(e) {
2537
+ var i, o, a, r, s, d, c;
2528
2538
  function t() {
2529
2539
  return {
2530
2540
  ...e.autoPlay === !0 ? {
@@ -2549,14 +2559,14 @@ function cn(e) {
2549
2559
  ...t()
2550
2560
  };
2551
2561
  }
2552
- return /* @__PURE__ */ A(
2562
+ return /* @__PURE__ */ B(
2553
2563
  "div",
2554
2564
  {
2555
2565
  style: {
2556
2566
  position: "relative"
2557
2567
  },
2558
2568
  children: [
2559
- /* @__PURE__ */ s(
2569
+ /* @__PURE__ */ l(
2560
2570
  "video",
2561
2571
  {
2562
2572
  className: "builder-video",
@@ -2578,10 +2588,10 @@ function cn(e) {
2578
2588
  },
2579
2589
  src: e.video || "no-src",
2580
2590
  poster: e.posterImage,
2581
- children: e.lazyLoad ? null : /* @__PURE__ */ s("source", { type: "video/mp4", src: e.video })
2591
+ children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
2582
2592
  }
2583
2593
  ),
2584
- e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ s(
2594
+ e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
2585
2595
  "div",
2586
2596
  {
2587
2597
  style: {
@@ -2591,8 +2601,8 @@ function cn(e) {
2591
2601
  fontSize: "0px"
2592
2602
  }
2593
2603
  }
2594
- ) : null,
2595
- (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
2604
+ ) }) : null,
2605
+ (s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
2596
2606
  "div",
2597
2607
  {
2598
2608
  style: {
@@ -2602,8 +2612,8 @@ function cn(e) {
2602
2612
  },
2603
2613
  children: e.children
2604
2614
  }
2605
- ) : null,
2606
- (c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
2615
+ ) }) : null,
2616
+ (c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
2607
2617
  "div",
2608
2618
  {
2609
2619
  style: {
@@ -2619,60 +2629,60 @@ function cn(e) {
2619
2629
  },
2620
2630
  children: e.children
2621
2631
  }
2622
- ) : null
2632
+ ) }) : null
2623
2633
  ]
2624
2634
  }
2625
2635
  );
2626
2636
  }
2627
- const dn = () => [{
2628
- component: Ht,
2629
- ...jt
2637
+ const un = () => [{
2638
+ component: Kt,
2639
+ ...Ht
2630
2640
  }, {
2631
- component: _t,
2632
- ...Kt
2641
+ component: Jt,
2642
+ ...qt
2633
2643
  }, {
2634
- component: Xt,
2635
- ...Jt
2644
+ component: Zt,
2645
+ ...Yt
2636
2646
  }, {
2637
- component: en,
2638
- ...Zt
2647
+ component: tn,
2648
+ ...en
2639
2649
  }, {
2640
- component: an,
2641
- ...on
2650
+ component: rn,
2651
+ ...an
2642
2652
  }, {
2643
- component: nn,
2644
- ...tn
2653
+ component: on,
2654
+ ...nn
2645
2655
  }, {
2646
- component: ln,
2647
- ...rn
2656
+ component: sn,
2657
+ ...ln
2648
2658
  }, {
2649
- component: cn,
2650
- ...sn
2659
+ component: dn,
2660
+ ...cn
2651
2661
  }], pe = () => [{
2652
- component: Ye,
2653
- ...At
2654
- }, {
2655
- component: Tt,
2662
+ component: Ge,
2656
2663
  ...Wt
2657
2664
  }, {
2658
2665
  component: Et,
2659
2666
  ...Nt
2660
2667
  }, {
2661
- component: Vt,
2668
+ component: Rt,
2662
2669
  ...Ft
2663
2670
  }, {
2664
2671
  component: Bt,
2665
2672
  ...$t
2666
2673
  }, {
2667
- component: Dt,
2674
+ component: At,
2668
2675
  ...Lt
2669
2676
  }, {
2670
- component: An,
2671
- ...Mt
2677
+ component: Mt,
2678
+ ...Dt
2672
2679
  }, {
2673
- component: Ut,
2680
+ component: Wn,
2674
2681
  ...Ot
2675
- }, ...dn()], un = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2682
+ }, {
2683
+ component: jt,
2684
+ ...Ut
2685
+ }, ...un()], mn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2676
2686
  function getAndSetVariantId() {
2677
2687
  function setCookie(name, value, days) {
2678
2688
  let expires = '';
@@ -2728,7 +2738,7 @@ const dn = () => [{
2728
2738
  }).join('');
2729
2739
  styleEl.innerHTML = newStyleStr;
2730
2740
  }
2731
- }`, mn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2741
+ }`, fn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2732
2742
  if (!navigator.cookieEnabled) {
2733
2743
  return;
2734
2744
  }
@@ -2766,23 +2776,23 @@ const dn = () => [{
2766
2776
  ...t,
2767
2777
  testVariationId: t.id,
2768
2778
  id: e == null ? void 0 : e.id
2769
- })), fn = ({
2779
+ })), hn = ({
2770
2780
  canTrack: e,
2771
2781
  content: t
2772
- }) => !(!(J(t).length > 0) || !e || U()), hn = (e) => e === "react" || e === "reactNative", $e = hn(q), gn = () => `
2773
- window.${Ne} = ${un}
2774
- window.${Fe} = ${mn}
2775
- `, bn = (e, t) => `
2782
+ }) => !(!(J(t).length > 0) || !e || j()), gn = (e) => e === "react" || e === "reactNative", $e = gn(z), bn = () => `
2783
+ window.${Ne} = ${mn}
2784
+ window.${Fe} = ${fn}
2785
+ `, yn = (e, t) => `
2776
2786
  window.${Ne}(
2777
2787
  "${t}",${JSON.stringify(e)}, ${$e}
2778
- )`, yn = ({
2788
+ )`, pn = ({
2779
2789
  contentId: e,
2780
2790
  variationId: t
2781
2791
  }) => `window.${Fe}(
2782
2792
  "${t}", "${e}", ${$e}
2783
2793
  )`;
2784
2794
  function ie(e) {
2785
- return /* @__PURE__ */ s(
2795
+ return /* @__PURE__ */ l(
2786
2796
  "script",
2787
2797
  {
2788
2798
  dangerouslySetInnerHTML: { __html: e.scriptStr },
@@ -2790,10 +2800,10 @@ function ie(e) {
2790
2800
  }
2791
2801
  );
2792
2802
  }
2793
- function Se(e) {
2803
+ function xe(e) {
2794
2804
  return Math.round(e * 1e3) / 1e3;
2795
2805
  }
2796
- const pn = (e, t, n = !0) => {
2806
+ const xn = (e, t, n = !0) => {
2797
2807
  if (!(e instanceof HTMLElement))
2798
2808
  return null;
2799
2809
  let i = n ? e : e.parentElement;
@@ -2804,28 +2814,28 @@ const pn = (e, t, n = !0) => {
2804
2814
  return i;
2805
2815
  } while (i = i.parentElement);
2806
2816
  return null;
2807
- }, Sn = (e) => pn(e, (t) => {
2817
+ }, Sn = (e) => xn(e, (t) => {
2808
2818
  const n = t.getAttribute("builder-id") || t.id;
2809
2819
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
2810
- }), xe = ({
2820
+ }), Se = ({
2811
2821
  event: e,
2812
2822
  target: t
2813
2823
  }) => {
2814
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = Se(i / n.width), r = Se(o / n.height);
2824
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = xe(i / n.width), r = xe(o / n.height);
2815
2825
  return {
2816
2826
  x: a,
2817
2827
  y: r
2818
2828
  };
2819
- }, xn = (e) => {
2829
+ }, vn = (e) => {
2820
2830
  const t = e.target, n = t && Sn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2821
2831
  return {
2822
2832
  targetBuilderElement: i || void 0,
2823
2833
  metadata: {
2824
- targetOffset: t ? xe({
2834
+ targetOffset: t ? Se({
2825
2835
  event: e,
2826
2836
  target: t
2827
2837
  }) : void 0,
2828
- builderTargetOffset: n ? xe({
2838
+ builderTargetOffset: n ? Se({
2829
2839
  event: e,
2830
2840
  target: n
2831
2841
  }) : void 0,
@@ -2833,70 +2843,70 @@ const pn = (e, t, n = !0) => {
2833
2843
  }
2834
2844
  };
2835
2845
  };
2836
- function vn(e) {
2837
- var R, S, C, P, E, F, $;
2846
+ function kn(e) {
2847
+ var R, x, I, P, E, $, L;
2838
2848
  const t = X(null);
2839
2849
  function n(u) {
2840
- var p, g;
2841
- const f = {
2850
+ var k, y;
2851
+ const h = {
2842
2852
  ...e.builderContextSignal.rootState,
2843
2853
  ...u
2844
2854
  };
2845
- e.builderContextSignal.rootSetState ? (g = (p = e.builderContextSignal).rootSetState) == null || g.call(p, f) : e.setBuilderContextSignal((x) => ({
2846
- ...x,
2847
- rootState: f
2855
+ e.builderContextSignal.rootSetState ? (y = (k = e.builderContextSignal).rootSetState) == null || y.call(k, h) : e.setBuilderContextSignal((S) => ({
2856
+ ...S,
2857
+ rootState: h
2848
2858
  }));
2849
2859
  }
2850
2860
  function i(u) {
2851
- var p, g, x, V, D;
2852
- const f = {
2861
+ var k, y, S, A, M;
2862
+ const h = {
2853
2863
  ...e.builderContextSignal.content,
2854
2864
  ...u,
2855
2865
  data: {
2856
- ...(p = e.builderContextSignal.content) == null ? void 0 : p.data,
2866
+ ...(k = e.builderContextSignal.content) == null ? void 0 : k.data,
2857
2867
  ...u == null ? void 0 : u.data
2858
2868
  },
2859
2869
  meta: {
2860
- ...(g = e.builderContextSignal.content) == null ? void 0 : g.meta,
2870
+ ...(y = e.builderContextSignal.content) == null ? void 0 : y.meta,
2861
2871
  ...u == null ? void 0 : u.meta,
2862
- breakpoints: ((x = u == null ? void 0 : u.meta) == null ? void 0 : x.breakpoints) || ((D = (V = e.builderContextSignal.content) == null ? void 0 : V.meta) == null ? void 0 : D.breakpoints)
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)
2863
2873
  }
2864
2874
  };
2865
- e.setBuilderContextSignal((_) => ({
2866
- ..._,
2867
- content: f
2875
+ e.setBuilderContextSignal((W) => ({
2876
+ ...W,
2877
+ content: h
2868
2878
  }));
2869
2879
  }
2870
- const [o, a] = w(
2880
+ const [o, a] = C(
2871
2881
  () => e.contentWrapper || "div"
2872
2882
  );
2873
2883
  function r(u) {
2874
- return Ke({
2884
+ return qe({
2875
2885
  model: e.model,
2876
2886
  trustedHosts: e.trustedHosts,
2877
2887
  callbacks: {
2878
- configureSdk: (f) => {
2879
- var x;
2880
- const { breakpoints: p, contentId: g } = f;
2881
- !g || g !== ((x = e.builderContextSignal.content) == null ? void 0 : x.id) || p && i({
2888
+ 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({
2882
2892
  meta: {
2883
- breakpoints: p
2893
+ breakpoints: k
2884
2894
  }
2885
2895
  });
2886
2896
  },
2887
- animation: (f) => {
2888
- Re(f);
2897
+ animation: (h) => {
2898
+ Re(h);
2889
2899
  },
2890
- contentUpdate: (f) => {
2891
- i(f);
2900
+ contentUpdate: (h) => {
2901
+ i(h);
2892
2902
  }
2893
2903
  }
2894
2904
  })(u);
2895
2905
  }
2896
- function l() {
2897
- var f, p;
2898
- const u = (p = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : p.jsCode;
2899
- u && K({
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;
2909
+ u && q({
2900
2910
  code: u,
2901
2911
  context: e.context || {},
2902
2912
  localState: void 0,
@@ -2908,65 +2918,56 @@ function vn(e) {
2908
2918
  enableCache: !1
2909
2919
  });
2910
2920
  }
2911
- const [d, c] = w(() => ({})), [m, h] = w(() => !1);
2912
- function b(u) {
2913
- var f, p;
2921
+ const [d, c] = C(() => ({})), [m, f] = C(() => ({})), [b, p] = C(() => !1);
2922
+ function v(u) {
2923
+ var h, k;
2914
2924
  if (e.builderContextSignal.content) {
2915
- const g = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, x = (p = e.builderContextSignal.content) == null ? void 0 : p.id;
2925
+ const y = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, S = (k = e.builderContextSignal.content) == null ? void 0 : k.id;
2916
2926
  ue({
2917
2927
  type: "click",
2918
2928
  canTrack: G(e.canTrack),
2919
- contentId: x,
2929
+ contentId: S,
2920
2930
  apiKey: e.apiKey,
2921
- variationId: g !== x ? g : void 0,
2922
- ...xn(u),
2923
- unique: !m
2931
+ variationId: y !== S ? y : void 0,
2932
+ ...vn(u),
2933
+ unique: !b
2924
2934
  });
2925
2935
  }
2926
- m || h(!0);
2927
- }
2928
- function y(u) {
2929
- return u.replace(
2930
- /{{([^}]+)}}/g,
2931
- (f, p) => String(
2932
- K({
2933
- code: p,
2934
- context: e.context || {},
2935
- localState: void 0,
2936
- rootState: e.builderContextSignal.rootState,
2937
- rootSetState: e.builderContextSignal.rootSetState,
2938
- enableCache: !0
2939
- })
2940
- )
2941
- );
2942
- }
2943
- function v({ url: u, key: f }) {
2944
- qe(u).then((p) => p.json()).then((p) => {
2945
- var x, V;
2946
- const g = {
2947
- ...e.builderContextSignal.rootState,
2948
- [f]: p
2949
- };
2950
- (V = (x = e.builderContextSignal).rootSetState) == null || V.call(x, g), d[f] = !0;
2951
- }).catch((p) => {
2952
- console.error("error fetching dynamic data", u, p);
2953
- });
2936
+ b || p(!0);
2954
2937
  }
2955
- function k() {
2956
- var f, p, g;
2957
- const u = (g = (p = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : p.httpRequests) != null ? g : {};
2958
- Object.entries(u).forEach(([x, V]) => {
2959
- if (V && (!d[x] || W())) {
2960
- const D = y(V);
2961
- v({
2962
- url: D,
2963
- key: x
2964
- });
2965
- }
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())
2943
+ return;
2944
+ m[S] = !0;
2945
+ const M = A.replace(
2946
+ /{{([^}]+)}}/g,
2947
+ (W, Le) => String(
2948
+ q({
2949
+ code: Le,
2950
+ context: e.context || {},
2951
+ localState: void 0,
2952
+ rootState: e.builderContextSignal.rootState,
2953
+ rootSetState: e.builderContextSignal.rootSetState,
2954
+ enableCache: !0
2955
+ })
2956
+ )
2957
+ );
2958
+ ze(M).then((W) => W.json()).then((W) => {
2959
+ n({
2960
+ [S]: W
2961
+ }), d[S] = !0;
2962
+ }).catch((W) => {
2963
+ console.error("error fetching dynamic data", A, W);
2964
+ }).finally(() => {
2965
+ m[S] = !1;
2966
+ });
2966
2967
  });
2967
2968
  }
2968
- function I() {
2969
- W() && window.dispatchEvent(
2969
+ function T() {
2970
+ N() && window.dispatchEvent(
2970
2971
  new CustomEvent(
2971
2972
  "builder:component:stateChange",
2972
2973
  {
@@ -2980,10 +2981,10 @@ function vn(e) {
2980
2981
  )
2981
2982
  );
2982
2983
  }
2983
- return B(() => {
2984
- var u, f;
2985
- if (U()) {
2986
- if (W() && (window.addEventListener("message", r), Oe(), Ue({
2984
+ return V(() => {
2985
+ var u, h;
2986
+ if (j()) {
2987
+ if (N() && (window.addEventListener("message", r), Ue(), je({
2987
2988
  ...e.locale ? {
2988
2989
  locale: e.locale
2989
2990
  } : {},
@@ -2995,64 +2996,64 @@ function vn(e) {
2995
2996
  } : {}
2996
2997
  }), Object.values(
2997
2998
  e.builderContextSignal.componentInfos
2998
- ).forEach((g) => {
2999
- var V;
3000
- const x = je(g);
3001
- (V = window.parent) == null || V.postMessage(x, "*");
2999
+ ).forEach((y) => {
3000
+ var A;
3001
+ const S = He(y);
3002
+ (A = window.parent) == null || A.postMessage(S, "*");
3002
3003
  }), window.addEventListener(
3003
3004
  "builder:component:stateChangeListenerActivated",
3004
- I
3005
+ T
3005
3006
  )), e.builderContextSignal.content && G(e.canTrack)) {
3006
- const g = (u = e.builderContextSignal.content) == null ? void 0 : u.testVariationId, x = (f = e.builderContextSignal.content) == null ? void 0 : f.id, V = e.apiKey;
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;
3007
3008
  ue({
3008
3009
  type: "impression",
3009
3010
  canTrack: !0,
3010
- contentId: x,
3011
- apiKey: V,
3012
- variationId: g !== x ? g : void 0
3011
+ contentId: S,
3012
+ apiKey: A,
3013
+ variationId: y !== S ? y : void 0
3013
3014
  });
3014
3015
  }
3015
- if (He()) {
3016
- const g = new URL(location.href).searchParams, x = g.get("builder.preview"), V = g.get(
3017
- `builder.preview.${x}`
3018
- ), D = g.get("apiKey") || g.get("builder.space");
3019
- x === e.model && D === e.apiKey && (!e.content || V === e.content.id) && ke({
3016
+ 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({
3020
3021
  model: e.model,
3021
3022
  apiKey: e.apiKey,
3022
3023
  apiVersion: e.builderContextSignal.apiVersion
3023
- }).then((_) => {
3024
- _ && i(_);
3024
+ }).then((W) => {
3025
+ W && i(W);
3025
3026
  });
3026
3027
  }
3027
3028
  }
3028
- }, []), B(() => {
3029
- e.apiKey || j.error(
3029
+ }, []), V(() => {
3030
+ e.apiKey || H.error(
3030
3031
  "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3031
- ), l(), k(), I();
3032
- }, []), B(() => {
3032
+ ), s(), w(), T();
3033
+ }, []), V(() => {
3033
3034
  e.content && i(e.content);
3034
- }, [e.content]), B(() => {
3035
- l();
3036
- }, [(S = (R = e.builderContextSignal.content) == null ? void 0 : R.data) == null ? void 0 : S.jsCode]), B(() => {
3037
- k();
3038
- }, [(P = (C = e.builderContextSignal.content) == null ? void 0 : C.data) == null ? void 0 : P.httpRequests]), B(() => {
3039
- I();
3040
- }, [e.builderContextSignal.rootState]), B(() => {
3035
+ }, [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();
3041
+ }, [e.builderContextSignal.rootState]), V(() => {
3041
3042
  e.data && n(e.data);
3042
- }, [e.data]), B(() => {
3043
+ }, [e.data]), V(() => {
3043
3044
  e.locale && n({
3044
3045
  locale: e.locale
3045
3046
  });
3046
- }, [e.locale]), B(() => () => {
3047
- U() && (window.removeEventListener("message", r), window.removeEventListener(
3047
+ }, [e.locale]), V(() => () => {
3048
+ j() && (window.removeEventListener("message", r), window.removeEventListener(
3048
3049
  "builder:component:stateChangeListenerActivated",
3049
- I
3050
+ T
3050
3051
  ));
3051
- }, []), /* @__PURE__ */ s(re.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3052
+ }, []), /* @__PURE__ */ l(re.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
3052
3053
  o,
3053
3054
  {
3054
3055
  ref: t,
3055
- onClick: (u) => b(u),
3056
+ onClick: (u) => v(u),
3056
3057
  "builder-content-id": (E = e.builderContextSignal.content) == null ? void 0 : E.id,
3057
3058
  "builder-model": e.model,
3058
3059
  ...e.showContent ? {} : {
@@ -3060,12 +3061,12 @@ function vn(e) {
3060
3061
  "aria-hidden": !0
3061
3062
  },
3062
3063
  ...e.contentWrapperProps,
3063
- className: `variant-${((F = e.content) == null ? void 0 : F.testVariationId) || (($ = e.content) == null ? void 0 : $.id)}`,
3064
+ className: `variant-${(($ = e.content) == null ? void 0 : $.testVariationId) || ((L = e.content) == null ? void 0 : L.id)}`,
3064
3065
  children: e.children
3065
3066
  }
3066
- ) : null });
3067
+ ) }) : null });
3067
3068
  }
3068
- const kn = (e) => {
3069
+ const Cn = (e) => {
3069
3070
  var a, r;
3070
3071
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
3071
3072
  let o = "";
@@ -3077,29 +3078,29 @@ font-display: fallback;
3077
3078
  font-weight: 400;
3078
3079
  }
3079
3080
  `.trim()), e.files)
3080
- for (const l in e.files) {
3081
- if (!(String(Number(l)) === l))
3081
+ for (const s in e.files) {
3082
+ if (!(String(Number(s)) === s))
3082
3083
  continue;
3083
- const c = e.files[l];
3084
+ const c = e.files[s];
3084
3085
  c && c !== i && (o += `
3085
3086
  @font-face {
3086
3087
  font-family: "${t}";
3087
3088
  src: url('${c}') format('woff2');
3088
3089
  font-display: fallback;
3089
- font-weight: ${l};
3090
+ font-weight: ${s};
3090
3091
  }
3091
3092
  `.trim());
3092
3093
  }
3093
3094
  return o;
3094
- }, Cn = ({
3095
+ }, wn = ({
3095
3096
  customFonts: e
3096
3097
  }) => {
3097
3098
  var t;
3098
- return ((t = e == null ? void 0 : e.map((n) => kn(n))) == null ? void 0 : t.join(" ")) || "";
3099
- }, wn = ({
3099
+ return ((t = e == null ? void 0 : e.map((n) => Cn(n))) == null ? void 0 : t.join(" ")) || "";
3100
+ }, In = ({
3100
3101
  cssCode: e,
3101
3102
  contentId: t
3102
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", In = `
3103
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Tn = `
3103
3104
  .builder-button {
3104
3105
  all: unset;
3105
3106
  }
@@ -3116,30 +3117,30 @@ font-weight: ${l};
3116
3117
  text-align: inherit;
3117
3118
  font-family: inherit;
3118
3119
  }
3119
- `, Tn = (e) => e ? "" : In;
3120
- function En(e) {
3121
- const [t, n] = w(
3120
+ `, En = (e) => e ? "" : Tn;
3121
+ function Rn(e) {
3122
+ const [t, n] = C(
3122
3123
  () => `
3123
- ${wn({
3124
+ ${In({
3124
3125
  cssCode: e.cssCode,
3125
3126
  contentId: e.contentId
3126
3127
  })}
3127
- ${Cn({
3128
+ ${wn({
3128
3129
  customFonts: e.customFonts
3129
3130
  })}
3130
- ${Tn(e.isNestedRender)}
3131
+ ${En(e.isNestedRender)}
3131
3132
  `.trim()
3132
3133
  );
3133
- return /* @__PURE__ */ s(Z, { id: "builderio-content", styles: t });
3134
+ return /* @__PURE__ */ l(Z, { id: "builderio-content", styles: t });
3134
3135
  }
3135
- const Rn = ({
3136
+ const Pn = ({
3136
3137
  content: e,
3137
3138
  data: t,
3138
3139
  locale: n
3139
3140
  }) => {
3140
- var a, r, l;
3141
+ var a, r, s;
3141
3142
  const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
3142
- return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((d) => {
3143
+ return (s = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || s.forEach((d) => {
3143
3144
  d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
3144
3145
  }), {
3145
3146
  ...i,
@@ -3149,7 +3150,7 @@ const Rn = ({
3149
3150
  locale: n
3150
3151
  } : {}
3151
3152
  };
3152
- }, Pn = ({
3153
+ }, Vn = ({
3153
3154
  content: e,
3154
3155
  data: t
3155
3156
  }) => e ? {
@@ -3161,45 +3162,45 @@ const Rn = ({
3161
3162
  meta: e == null ? void 0 : e.meta
3162
3163
  } : void 0;
3163
3164
  function ve(e) {
3164
- var d, c, m, h, b, y, v;
3165
- const [t, n] = w(
3165
+ var d, c, m, f, b, p, v;
3166
+ const [t, n] = C(
3166
3167
  () => {
3167
- var k, I;
3168
- return yn({
3168
+ var w, T;
3169
+ return pn({
3169
3170
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3170
- variationId: (k = e.content) == null ? void 0 : k.testVariationId,
3171
+ variationId: (w = e.content) == null ? void 0 : w.testVariationId,
3171
3172
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3172
- contentId: (I = e.content) == null ? void 0 : I.id
3173
+ contentId: (T = e.content) == null ? void 0 : T.id
3173
3174
  });
3174
3175
  }
3175
3176
  );
3176
- function i(k) {
3177
- l((I) => ({
3178
- ...I,
3179
- rootState: k
3177
+ function i(w) {
3178
+ s((T) => ({
3179
+ ...T,
3180
+ rootState: w
3180
3181
  }));
3181
3182
  }
3182
- const [o, a] = w(
3183
+ const [o, a] = C(
3183
3184
  () => [
3184
3185
  ...pe(),
3185
3186
  ...e.customComponents || []
3186
3187
  ].reduce(
3187
- (k, { component: I, ...R }) => ({
3188
- ...k,
3188
+ (w, { component: T, ...R }) => ({
3189
+ ...w,
3189
3190
  [R.name]: {
3190
- component: I,
3191
+ component: T,
3191
3192
  ...me(R)
3192
3193
  }
3193
3194
  }),
3194
3195
  {}
3195
3196
  )
3196
- ), [r, l] = w(() => ({
3197
- content: Pn({
3197
+ ), [r, s] = C(() => ({
3198
+ content: Vn({
3198
3199
  content: e.content,
3199
3200
  data: e.data
3200
3201
  }),
3201
3202
  localState: void 0,
3202
- rootState: Rn({
3203
+ rootState: Pn({
3203
3204
  content: e.content,
3204
3205
  data: e.data,
3205
3206
  locale: e.locale
@@ -3212,8 +3213,8 @@ function ve(e) {
3212
3213
  ...pe(),
3213
3214
  ...e.customComponents || []
3214
3215
  ].reduce(
3215
- (k, { component: I, ...R }) => ({
3216
- ...k,
3216
+ (w, { component: T, ...R }) => ({
3217
+ ...w,
3217
3218
  [R.name]: me(R)
3218
3219
  }),
3219
3220
  {}
@@ -3222,14 +3223,14 @@ function ve(e) {
3222
3223
  BlocksWrapper: e.blocksWrapper || "div",
3223
3224
  BlocksWrapperProps: e.blocksWrapperProps || {}
3224
3225
  }));
3225
- return /* @__PURE__ */ s(
3226
+ return /* @__PURE__ */ l(
3226
3227
  Ie.Provider,
3227
3228
  {
3228
3229
  value: {
3229
3230
  registeredComponents: o
3230
3231
  },
3231
- children: /* @__PURE__ */ A(
3232
- vn,
3232
+ children: /* @__PURE__ */ B(
3233
+ kn,
3233
3234
  {
3234
3235
  content: e.content,
3235
3236
  data: e.data,
@@ -3245,28 +3246,28 @@ function ve(e) {
3245
3246
  contentWrapperProps: e.contentWrapperProps,
3246
3247
  linkComponent: e.linkComponent,
3247
3248
  trustedHosts: e.trustedHosts,
3248
- setBuilderContextSignal: l,
3249
+ setBuilderContextSignal: s,
3249
3250
  children: [
3250
- e.isSsrAbTest ? /* @__PURE__ */ s(
3251
+ e.isSsrAbTest ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
3251
3252
  ie,
3252
3253
  {
3253
3254
  id: "builderio-variant-visibility",
3254
3255
  scriptStr: t
3255
3256
  }
3256
- ) : null,
3257
- /* @__PURE__ */ s(
3258
- En,
3257
+ ) }) : null,
3258
+ /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
3259
+ Rn,
3259
3260
  {
3260
3261
  isNestedRender: e.isNestedRender,
3261
3262
  contentId: (d = r.content) == null ? void 0 : d.id,
3262
3263
  cssCode: (m = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : m.cssCode,
3263
- customFonts: (b = (h = r.content) == null ? void 0 : h.data) == null ? void 0 : b.customFonts
3264
+ customFonts: (b = (f = r.content) == null ? void 0 : f.data) == null ? void 0 : b.customFonts
3264
3265
  }
3265
- ),
3266
- /* @__PURE__ */ s(
3267
- O,
3266
+ ) }),
3267
+ /* @__PURE__ */ l(
3268
+ U,
3268
3269
  {
3269
- blocks: (v = (y = r.content) == null ? void 0 : y.data) == null ? void 0 : v.blocks,
3270
+ blocks: (v = (p = r.content) == null ? void 0 : p.data) == null ? void 0 : v.blocks,
3270
3271
  context: r,
3271
3272
  registeredComponents: o,
3272
3273
  linkComponent: e.linkComponent
@@ -3278,66 +3279,66 @@ function ve(e) {
3278
3279
  }
3279
3280
  );
3280
3281
  }
3281
- function Vn(e) {
3282
+ function Bn(e) {
3282
3283
  var r;
3283
- const [t, n] = w(
3284
- () => fn({
3284
+ const [t, n] = C(
3285
+ () => hn({
3285
3286
  canTrack: G(e.canTrack),
3286
3287
  content: e.content
3287
3288
  })
3288
3289
  );
3289
3290
  function i() {
3290
- var l;
3291
- return bn(
3291
+ var s;
3292
+ return yn(
3292
3293
  J(e.content).map((d) => ({
3293
3294
  id: d.testVariationId,
3294
3295
  testRatio: d.testRatio
3295
3296
  })),
3296
- ((l = e.content) == null ? void 0 : l.id) || ""
3297
+ ((s = e.content) == null ? void 0 : s.id) || ""
3297
3298
  );
3298
3299
  }
3299
3300
  function o() {
3300
- return J(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
3301
+ return J(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
3301
3302
  }
3302
3303
  function a() {
3303
- var l;
3304
+ var s;
3304
3305
  return t ? {
3305
3306
  ...e.content,
3306
- testVariationId: (l = e.content) == null ? void 0 : l.id
3307
- } : ze({
3307
+ testVariationId: (s = e.content) == null ? void 0 : s.id
3308
+ } : _e({
3308
3309
  item: e.content,
3309
3310
  canTrack: G(e.canTrack)
3310
3311
  });
3311
3312
  }
3312
- return B(() => {
3313
- }, []), /* @__PURE__ */ A(T, { children: [
3314
- !e.isNestedRender && q !== "reactNative" ? /* @__PURE__ */ s(
3313
+ return V(() => {
3314
+ }, []), /* @__PURE__ */ B(g, { children: [
3315
+ !e.isNestedRender && z !== "reactNative" ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
3315
3316
  ie,
3316
3317
  {
3317
3318
  id: "builderio-init-variants-fns",
3318
- scriptStr: gn()
3319
+ scriptStr: bn()
3319
3320
  }
3320
- ) : null,
3321
- t ? /* @__PURE__ */ A(T, { children: [
3322
- /* @__PURE__ */ s(
3321
+ ) }) : null,
3322
+ t ? /* @__PURE__ */ B(g, { children: [
3323
+ /* @__PURE__ */ l(
3323
3324
  Z,
3324
3325
  {
3325
3326
  id: "builderio-variants",
3326
3327
  styles: o()
3327
3328
  }
3328
3329
  ),
3329
- /* @__PURE__ */ s(
3330
+ /* @__PURE__ */ l(
3330
3331
  ie,
3331
3332
  {
3332
3333
  id: "builderio-variants-visibility",
3333
3334
  scriptStr: i()
3334
3335
  }
3335
3336
  ),
3336
- (r = J(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
3337
+ (r = J(e.content)) == null ? void 0 : r.map((s) => /* @__PURE__ */ l(
3337
3338
  ve,
3338
3339
  {
3339
3340
  isNestedRender: e.isNestedRender,
3340
- content: l,
3341
+ content: s,
3341
3342
  showContent: !1,
3342
3343
  model: e.model,
3343
3344
  data: e.data,
@@ -3356,10 +3357,10 @@ function Vn(e) {
3356
3357
  contentWrapperProps: e.contentWrapperProps,
3357
3358
  trustedHosts: e.trustedHosts
3358
3359
  },
3359
- l.testVariationId
3360
+ s.testVariationId
3360
3361
  ))
3361
3362
  ] }) : null,
3362
- /* @__PURE__ */ s(
3363
+ /* @__PURE__ */ l(
3363
3364
  ve,
3364
3365
  {
3365
3366
  isNestedRender: e.isNestedRender,
@@ -3385,7 +3386,7 @@ function Vn(e) {
3385
3386
  )
3386
3387
  ] });
3387
3388
  }
3388
- const Bn = async ({
3389
+ const An = async ({
3389
3390
  builderContextValue: e,
3390
3391
  symbol: t
3391
3392
  }) => {
@@ -3401,37 +3402,37 @@ const Bn = async ({
3401
3402
  }
3402
3403
  }
3403
3404
  }).catch((n) => {
3404
- j.error("Could not fetch symbol content: ", n);
3405
+ H.error("Could not fetch symbol content: ", n);
3405
3406
  });
3406
3407
  };
3407
- function An(e) {
3408
- var a, r, l, d;
3408
+ function Wn(e) {
3409
+ var a, r, s, d;
3409
3410
  function t() {
3410
3411
  var c, m;
3411
3412
  return [
3412
- e.attributes[H()],
3413
+ e.attributes[K()],
3413
3414
  "builder-symbol",
3414
3415
  (c = e.symbol) != null && c.inline ? "builder-inline-symbol" : void 0,
3415
3416
  (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
3416
3417
  ].filter(Boolean).join(" ");
3417
3418
  }
3418
- const [n, i] = w(() => {
3419
+ const [n, i] = C(() => {
3419
3420
  var c;
3420
3421
  return (c = e.symbol) == null ? void 0 : c.content;
3421
3422
  });
3422
3423
  function o() {
3423
- n || Bn({
3424
+ n || An({
3424
3425
  symbol: e.symbol,
3425
3426
  builderContextValue: e.builderContext
3426
3427
  }).then((c) => {
3427
3428
  c && i(c);
3428
3429
  });
3429
3430
  }
3430
- return B(() => {
3431
- }, []), B(() => {
3431
+ return V(() => {
3432
+ }, []), V(() => {
3432
3433
  o();
3433
- }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ s(
3434
- Vn,
3434
+ }, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ l(
3435
+ Bn,
3435
3436
  {
3436
3437
  isNestedRender: !0,
3437
3438
  apiVersion: e.builderContext.apiVersion,
@@ -3444,7 +3445,7 @@ function An(e) {
3444
3445
  data: {
3445
3446
  ...(r = e.symbol) == null ? void 0 : r.data,
3446
3447
  ...e.builderContext.localState,
3447
- ...(l = n == null ? void 0 : n.data) == null ? void 0 : l.state
3448
+ ...(s = n == null ? void 0 : n.data) == null ? void 0 : s.state
3448
3449
  },
3449
3450
  model: (d = e.symbol) == null ? void 0 : d.model,
3450
3451
  content: n,
@@ -3455,14 +3456,15 @@ function An(e) {
3455
3456
  ) });
3456
3457
  }
3457
3458
  export {
3458
- O as Blocks,
3459
- Ye as Button,
3460
- Tt as Columns,
3461
- Vn as Content,
3462
- Et as Fragment,
3463
- Vt as Image,
3464
- Bt as Section,
3465
- An as Symbol,
3466
- Ut as Text,
3467
- cn as Video
3459
+ U as Blocks,
3460
+ re as BuilderContext,
3461
+ Ge as Button,
3462
+ Et as Columns,
3463
+ Bn as Content,
3464
+ Rt as Fragment,
3465
+ Bt as Image,
3466
+ At as Section,
3467
+ Wn as Symbol,
3468
+ jt as Text,
3469
+ dn as Video
3468
3470
  };