@builder.io/sdk-react 1.0.35 → 1.1.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 (74) hide show
  1. package/lib/browser/blocks-exports.cjs +24 -24
  2. package/lib/browser/blocks-exports.mjs +687 -510
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/init.cjs +6 -6
  6. package/lib/browser/init.mjs +29 -19
  7. package/lib/browser/{server-entry-6bbf0d8e.cjs → server-entry-4fb4a8b5.cjs} +1 -1
  8. package/lib/browser/{server-entry-b3ba0c65.js → server-entry-a2fe3a55.js} +1 -1
  9. package/lib/browser/server-entry.cjs +1 -1
  10. package/lib/browser/server-entry.mjs +1 -1
  11. package/lib/edge/{accordion-5b4a3309.js → accordion-a25dee70.js} +1 -1
  12. package/lib/edge/{accordion-5cca8f06.cjs → accordion-d5929c1e.cjs} +1 -1
  13. package/lib/edge/{blocks-30dbe829.js → blocks-317ff1a5.js} +679 -671
  14. package/lib/edge/{blocks-7855e195.cjs → blocks-5cb24de4.cjs} +13 -13
  15. package/lib/edge/blocks-exports.cjs +1 -1
  16. package/lib/edge/blocks-exports.mjs +2 -2
  17. package/lib/edge/{button-94d3cdf8.js → button-2f5bf5cf.js} +2 -2
  18. package/lib/edge/{button-1e80769d.cjs → button-b06330e4.cjs} +1 -1
  19. package/lib/edge/{columns-e5074ad9.js → columns-69453374.js} +3 -3
  20. package/lib/edge/{columns-18e70134.cjs → columns-ef105550.cjs} +1 -1
  21. package/lib/edge/{content-variants-4450b25f.js → content-variants-336e3b7f.js} +382 -228
  22. package/lib/edge/content-variants-f2620a07.cjs +134 -0
  23. package/lib/edge/{form-9ddabd0e.js → form-30431d39.js} +3 -3
  24. package/lib/edge/{form-a08b5177.cjs → form-55ba7324.cjs} +1 -1
  25. package/lib/edge/{get-class-prop-name-3a85a54d.cjs → get-class-prop-name-5da28706.cjs} +1 -1
  26. package/lib/edge/{get-class-prop-name-d5155434.js → get-class-prop-name-8d9f271c.js} +1 -1
  27. package/lib/edge/{img-256419c6.js → img-02bb6d39.js} +1 -1
  28. package/lib/edge/{img-a38d9d0b.cjs → img-a85aa1f8.cjs} +1 -1
  29. package/lib/edge/index.cjs +1 -1
  30. package/lib/edge/index.mjs +1 -1
  31. package/lib/edge/init.cjs +6 -6
  32. package/lib/edge/init.mjs +29 -19
  33. package/lib/edge/{input-76252038.cjs → input-448b664a.cjs} +1 -1
  34. package/lib/edge/{input-e030821e.js → input-d7e84d5c.js} +1 -1
  35. package/lib/edge/{select-92af3038.js → select-744ccf82.js} +5 -4
  36. package/lib/edge/select-7e98c1fc.cjs +1 -0
  37. package/lib/edge/{server-entry-b8d1a7db.js → server-entry-7003c754.js} +1 -1
  38. package/lib/edge/{server-entry-5b4426a1.cjs → server-entry-f52f597d.cjs} +1 -1
  39. package/lib/edge/server-entry.cjs +1 -1
  40. package/lib/edge/server-entry.mjs +1 -1
  41. package/lib/edge/{slot-27c3a577.js → slot-6ddfa828.js} +3 -3
  42. package/lib/edge/{slot-27ff859a.cjs → slot-fb11eb23.cjs} +1 -1
  43. package/lib/edge/{symbol-6c0f8a5c.js → symbol-ced9c879.js} +2 -2
  44. package/lib/edge/{symbol-3c1f8827.cjs → symbol-d82ac04c.cjs} +1 -1
  45. package/lib/edge/{tabs-770b1029.cjs → tabs-93843650.cjs} +1 -1
  46. package/lib/edge/{tabs-5b4535f0.js → tabs-ffcc16e4.js} +3 -3
  47. package/lib/edge/textarea-56a875bc.cjs +1 -0
  48. package/lib/edge/textarea-d29025e9.js +17 -0
  49. package/lib/node/blocks-exports.cjs +27 -27
  50. package/lib/node/blocks-exports.mjs +687 -510
  51. package/lib/node/index.cjs +1 -1
  52. package/lib/node/index.mjs +2 -2
  53. package/lib/node/init.cjs +1 -1
  54. package/lib/node/init.mjs +2 -2
  55. package/lib/node/{node-runtime-79df5f59.js → node-runtime-13876a87.js} +51 -41
  56. package/lib/node/node-runtime-b5d88fa0.cjs +48 -0
  57. package/lib/node/{server-entry-ea775ab5.js → server-entry-9942a35a.js} +1 -1
  58. package/lib/node/{server-entry-11bc96ae.cjs → server-entry-d0ae23af.cjs} +1 -1
  59. package/lib/node/server-entry.cjs +1 -1
  60. package/lib/node/server-entry.mjs +1 -1
  61. package/package.json +1 -2
  62. package/types/blocks/form/select/select.d.ts +1 -0
  63. package/types/blocks/form/textarea/component-info.d.ts +2 -0
  64. package/types/blocks/{textarea → form/textarea}/textarea.d.ts +1 -0
  65. package/types/components/block/block.helpers.d.ts +8 -8
  66. package/types/components/content-variants/inlined-fns.d.ts +1 -1
  67. package/types/constants/sdk-name.d.ts +1 -0
  68. package/types/constants/sdk-version.d.ts +1 -1
  69. package/types/types/components.d.ts +31 -0
  70. package/lib/edge/content-variants-d6dca201.cjs +0 -134
  71. package/lib/edge/select-98849dc7.cjs +0 -1
  72. package/lib/node/node-runtime-80dbd8f2.cjs +0 -48
  73. package/types/blocks/textarea/component-info.d.ts +0 -2
  74. /package/types/blocks/{textarea → form/textarea}/index.d.ts +0 -0
@@ -1,16 +1,16 @@
1
1
  "use client";
2
- var Ke = Object.defineProperty;
3
- var qe = (e, t, n) => t in e ? Ke(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
- var ie = (e, t, n) => (qe(e, typeof t != "symbol" ? t + "" : t, n), n);
5
- import { jsx as s, Fragment as E, jsxs as B } from "react/jsx-runtime";
6
- import { TARGET as L, isEditing as $, isBrowser as H, getUserAttributes as _e, checkIsDefined as G, logger as Z, fastClone as de, registerInsertMenu as ze, setupBrowserForEditing as Je, createRegisterComponentMessage as Ye, getDefaultCanTrack as Q, _track as he, isPreviewing as Ge, fetchOneEntry as we, createEditorListener as Qe, fetch as Xe, serializeComponentInfo as ge, handleABTestingSync as Ze } from "./server-entry-b3ba0c65.js";
7
- import { createContext as Ee, useState as C, useEffect as P, useContext as be, useRef as ee, createElement as Re } from "react";
8
- const et = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), tt = (e) => typeof e == "string" && et.has(e.toLowerCase());
9
- function ue(e) {
10
- return /* @__PURE__ */ s(E, { children: tt(e.TagName) ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(E, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
2
+ var qe = Object.defineProperty;
3
+ var _e = (e, t, n) => t in e ? qe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
+ var oe = (e, t, n) => (_e(e, typeof t != "symbol" ? t + "" : t, n), n);
5
+ import { jsx as s, Fragment as R, jsxs as E } from "react/jsx-runtime";
6
+ import { TARGET as _, isEditing as F, isBrowser as M, getUserAttributes as ze, checkIsDefined as G, logger as Z, fastClone as ue, registerInsertMenu as Je, setupBrowserForEditing as Ye, createRegisterComponentMessage as Ge, getDefaultCanTrack as Q, _track as be, isPreviewing as Qe, fetchOneEntry as Re, createEditorListener as Xe, fetch as Ze, serializeComponentInfo as ge, handleABTestingSync as et } from "./server-entry-a2fe3a55.js";
7
+ import { createContext as Be, useState as C, useEffect as P, useContext as pe, useRef as ee, createElement as Pe } from "react";
8
+ const tt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), nt = (e) => typeof e == "string" && tt.has(e.toLowerCase());
9
+ function me(e) {
10
+ return /* @__PURE__ */ s(R, { children: nt(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
11
11
  }
12
- const q = () => {
13
- switch (L) {
12
+ const K = () => {
13
+ switch (_) {
14
14
  case "react":
15
15
  case "reactNative":
16
16
  case "rsc":
@@ -23,11 +23,11 @@ const q = () => {
23
23
  return "class";
24
24
  }
25
25
  };
26
- function nt(e) {
26
+ function it(e) {
27
27
  function t() {
28
28
  return {
29
29
  ...e.attributes,
30
- [q()]: `${e.link ? "" : "builder-button"} ${e.attributes[q()] || ""}`,
30
+ [K()]: `${e.link ? "" : "builder-button"} ${e.attributes[K()] || ""}`,
31
31
  ...e.link ? {
32
32
  href: e.link,
33
33
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -38,7 +38,7 @@ function nt(e) {
38
38
  };
39
39
  }
40
40
  return /* @__PURE__ */ s(
41
- ue,
41
+ me,
42
42
  {
43
43
  attributes: t(),
44
44
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
@@ -47,7 +47,7 @@ function nt(e) {
47
47
  }
48
48
  );
49
49
  }
50
- const me = Ee({
50
+ const fe = Be({
51
51
  content: null,
52
52
  context: {},
53
53
  localState: void 0,
@@ -60,15 +60,15 @@ const me = Ee({
60
60
  inheritedStyles: {},
61
61
  BlocksWrapper: "div",
62
62
  BlocksWrapperProps: {}
63
- }), Be = Ee({ registeredComponents: {} });
64
- function it(e) {
63
+ }), Ee = Be({ registeredComponents: {} });
64
+ function ot(e) {
65
65
  var t;
66
66
  return {
67
67
  ...(t = e.component) == null ? void 0 : t.options,
68
68
  ...e.options
69
69
  };
70
70
  }
71
- const ot = ({
71
+ const at = ({
72
72
  builder: e,
73
73
  context: t,
74
74
  event: n,
@@ -80,14 +80,14 @@ const ot = ({
80
80
  builder: e,
81
81
  context: t,
82
82
  event: n
83
- }), at = () => ({
84
- isEditing: $(),
85
- isBrowser: H(),
86
- isServer: !H(),
87
- getUserAttributes: () => _e()
88
- }), rt = (e, {
83
+ }), rt = () => ({
84
+ isEditing: F(),
85
+ isBrowser: M(),
86
+ isServer: !M(),
87
+ getUserAttributes: () => ze()
88
+ }), lt = (e, {
89
89
  isExpression: t = !0
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, pe = ({
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, ye = ({
91
91
  code: e,
92
92
  builder: t,
93
93
  context: n,
@@ -96,7 +96,7 @@ const ot = ({
96
96
  rootSetState: r,
97
97
  rootState: a
98
98
  }) => {
99
- const l = ot({
99
+ const l = at({
100
100
  builder: t,
101
101
  context: n,
102
102
  event: i,
@@ -133,17 +133,17 @@ function Ve({
133
133
  }
134
134
  });
135
135
  }
136
- function lt() {
136
+ function st() {
137
137
  var e;
138
138
  return typeof process != "undefined" && G((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
139
139
  }
140
- const st = () => {
140
+ const ct = () => {
141
141
  var i;
142
- if (!lt())
142
+ if (!st())
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
145
  return e && t && !n ? (Z.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
- }, ct = (e) => (H() || st(), pe(e)), O = class O {
146
+ }, dt = (e) => (M() || ct(), ye(e)), D = class D {
147
147
  static getCacheKey(t) {
148
148
  return JSON.stringify({
149
149
  ...t,
@@ -153,17 +153,17 @@ const st = () => {
153
153
  });
154
154
  }
155
155
  static getCachedValue(t) {
156
- return O.cache.get(t);
156
+ return D.cache.get(t);
157
157
  }
158
158
  static setCachedValue(t, n) {
159
- O.cache.size > 20 && O.cache.delete(O.cache.keys().next().value), O.cache.set(t, {
159
+ D.cache.size > 20 && D.cache.delete(D.cache.keys().next().value), D.cache.set(t, {
160
160
  value: n
161
161
  });
162
162
  }
163
163
  };
164
- ie(O, "cacheLimit", 20), ie(O, "cache", /* @__PURE__ */ new Map());
165
- let M = O;
166
- function _({
164
+ oe(D, "cacheLimit", 20), oe(D, "cache", /* @__PURE__ */ new Map());
165
+ let U = D;
166
+ function q({
167
167
  code: e,
168
168
  context: t,
169
169
  localState: n,
@@ -176,10 +176,10 @@ function _({
176
176
  if (e === "")
177
177
  return;
178
178
  const c = {
179
- code: rt(e, {
179
+ code: lt(e, {
180
180
  isExpression: a
181
181
  }),
182
- builder: at(),
182
+ builder: rt(),
183
183
  context: t,
184
184
  event: r,
185
185
  rootSetState: o,
@@ -187,15 +187,15 @@ function _({
187
187
  localState: n
188
188
  };
189
189
  if (l) {
190
- const u = M.getCacheKey(c), f = M.getCachedValue(u);
190
+ const u = U.getCacheKey(c), f = U.getCachedValue(u);
191
191
  if (f)
192
192
  return f.value;
193
193
  }
194
194
  try {
195
- const u = ct(c);
195
+ const u = dt(c);
196
196
  if (l) {
197
- const f = M.getCacheKey(c);
198
- M.setCachedValue(f, u);
197
+ const f = U.getCacheKey(c);
198
+ U.setCachedValue(f, u);
199
199
  }
200
200
  return u;
201
201
  } catch (u) {
@@ -205,13 +205,13 @@ function _({
205
205
  return;
206
206
  }
207
207
  }
208
- const Pe = (e, t, n) => {
208
+ const Ae = (e, t, n) => {
209
209
  if (Object(e) !== e)
210
210
  return e;
211
211
  const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
212
212
  return i.slice(0, -1).reduce((o, r, a) => Object(o[r]) === o[r] ? o[r] : o[r] = Math.abs(Number(i[a + 1])) >> 0 === +i[a + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
213
213
  };
214
- const dt = ({
214
+ const ut = ({
215
215
  block: e,
216
216
  context: t,
217
217
  localState: n,
@@ -220,7 +220,7 @@ const dt = ({
220
220
  }) => {
221
221
  if (!e.bindings)
222
222
  return e;
223
- const r = de(e), a = {
223
+ const r = ue(e), a = {
224
224
  ...r,
225
225
  properties: {
226
226
  ...r.properties
@@ -230,7 +230,7 @@ const dt = ({
230
230
  }
231
231
  };
232
232
  for (const l in e.bindings) {
233
- const c = e.bindings[l], u = _({
233
+ const c = e.bindings[l], u = q({
234
234
  code: c,
235
235
  localState: n,
236
236
  rootState: i,
@@ -238,7 +238,7 @@ const dt = ({
238
238
  context: t,
239
239
  enableCache: !0
240
240
  });
241
- Pe(a, l, u);
241
+ Ae(a, l, u);
242
242
  }
243
243
  return a;
244
244
  };
@@ -251,7 +251,7 @@ function X({
251
251
  rootSetState: r
252
252
  }) {
253
253
  const a = e;
254
- return n ? dt({
254
+ return n ? ut({
255
255
  block: a,
256
256
  localState: i,
257
257
  rootState: o,
@@ -260,7 +260,7 @@ function X({
260
260
  }) : a;
261
261
  }
262
262
  const te = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
263
- function ut(e, t, n = {}) {
263
+ function mt(e, t, n = {}) {
264
264
  let i, o, r, a = null, l = 0;
265
265
  const c = function() {
266
266
  l = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
@@ -272,7 +272,7 @@ function ut(e, t, n = {}) {
272
272
  return i = this, o = arguments, f <= 0 || f > t ? (a && (clearTimeout(a), a = null), l = u, r = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(c, f)), r;
273
273
  };
274
274
  }
275
- function K(e, ...t) {
275
+ function H(e, ...t) {
276
276
  const n = Object(e);
277
277
  for (let i = 1; i < arguments.length; i++) {
278
278
  const o = arguments[i];
@@ -282,64 +282,64 @@ function K(e, ...t) {
282
282
  }
283
283
  return n;
284
284
  }
285
- function mt(e) {
285
+ function ft(e) {
286
286
  for (const t of e)
287
287
  switch (t.trigger) {
288
288
  case "pageLoad":
289
- We(t);
289
+ $e(t);
290
290
  break;
291
291
  case "scrollInView":
292
- ht(t);
292
+ bt(t);
293
293
  break;
294
294
  }
295
295
  }
296
- function Ae(e) {
296
+ function Ne(e) {
297
297
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
298
298
  }
299
- function Ne(e, t) {
300
- const n = ft(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
299
+ function We(e, t) {
300
+ const n = ht(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
301
301
  for (const l of a)
302
302
  for (const c of n)
303
303
  c in l || (l[c] = i[c]);
304
304
  }
305
- function ft(e) {
305
+ function ht(e) {
306
306
  const t = [];
307
307
  for (const n of e.steps)
308
308
  for (const i in n.styles)
309
309
  t.indexOf(i) === -1 && t.push(i);
310
310
  return t;
311
311
  }
312
- function We(e) {
312
+ function $e(e) {
313
313
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
314
314
  if (!t.length) {
315
- Ae(e.elementId || e.id || "");
315
+ Ne(e.elementId || e.id || "");
316
316
  return;
317
317
  }
318
318
  Array.from(t).forEach((n) => {
319
- Ne(e, n), n.style.transition = "none", n.style.transitionDelay = "0", K(n.style, e.steps[0].styles), setTimeout(() => {
320
- n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), K(n.style, e.steps[1].styles), setTimeout(() => {
319
+ We(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
320
+ n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
321
321
  n.style.transition = "", n.style.transitionDelay = "";
322
322
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
323
323
  });
324
324
  });
325
325
  }
326
- function ht(e) {
326
+ function bt(e) {
327
327
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
328
328
  if (!t.length) {
329
- Ae(e.elementId || e.id || "");
329
+ Ne(e.elementId || e.id || "");
330
330
  return;
331
331
  }
332
332
  Array.from(t).forEach((n) => {
333
- Ne(e, n);
333
+ We(e, n);
334
334
  let i = !1, o = !1;
335
335
  function r() {
336
336
  !i && l(n) ? (i = !0, o = !0, setTimeout(() => {
337
- K(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
337
+ H(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
338
338
  o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
339
339
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
340
- })) : e.repeat && i && !o && !l(n) && (i = !1, K(n.style, e.steps[0].styles));
340
+ })) : e.repeat && i && !o && !l(n) && (i = !1, H(n.style, e.steps[0].styles));
341
341
  }
342
- const a = ut(r, 200, {
342
+ const a = mt(r, 200, {
343
343
  leading: !1
344
344
  });
345
345
  function l(f) {
@@ -348,7 +348,7 @@ function ht(e) {
348
348
  }
349
349
  const c = e.steps[0].styles;
350
350
  function u() {
351
- K(n.style, c);
351
+ H(n.style, c);
352
352
  }
353
353
  u(), setTimeout(() => {
354
354
  n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
@@ -374,21 +374,21 @@ const Fe = (e) => Object.entries(e).map(([n, i]) => {
374
374
  ${i}
375
375
  }` : i;
376
376
  };
377
- function bt({
377
+ function pt({
378
378
  style: e
379
379
  }) {
380
380
  return e;
381
381
  }
382
- const pt = ({
382
+ const yt = ({
383
383
  block: e,
384
384
  context: t
385
- }) => $e(bt({
385
+ }) => Le(pt({
386
386
  style: e.style || {},
387
387
  context: t,
388
388
  block: e
389
389
  }));
390
- function $e(e) {
391
- switch (L) {
390
+ function Le(e) {
391
+ switch (_) {
392
392
  case "svelte":
393
393
  case "vue":
394
394
  case "solid":
@@ -401,7 +401,7 @@ function $e(e) {
401
401
  return e;
402
402
  }
403
403
  }
404
- const yt = ({
404
+ const xt = ({
405
405
  block: e,
406
406
  context: t,
407
407
  registeredComponents: n
@@ -423,7 +423,7 @@ const yt = ({
423
423
  console.warn(`
424
424
  Could not find a registered component named "${i}".
425
425
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
426
- }, xt = ({
426
+ }, vt = ({
427
427
  block: e,
428
428
  context: t
429
429
  }) => {
@@ -433,7 +433,7 @@ const yt = ({
433
433
  } = e;
434
434
  if (!(n != null && n.collection))
435
435
  return;
436
- const o = _({
436
+ const o = q({
437
437
  code: n.collection,
438
438
  localState: t.localState,
439
439
  rootState: t.rootState,
@@ -457,15 +457,23 @@ const yt = ({
457
457
  },
458
458
  block: i
459
459
  }));
460
- }, St = (e, t) => e && (e.isRSC && L === "rsc" || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)) ? {
460
+ }, ne = (e) => ({
461
+ // once we bump to a major version, toggle this to `false`.
462
+ builderBlock: !0,
463
+ // once we bump to a major version, toggle this to `false`.
464
+ builderContext: !0,
465
+ builderComponents: !1,
466
+ builderLinkComponent: !1,
467
+ ...e
468
+ }), St = (e, t) => e ? ne(e.shouldReceiveBuilderProps).builderLinkComponent ? {
461
469
  builderLinkComponent: t
462
- } : {}, vt = (e, t) => e && (e.isRSC && L === "rsc" || ["Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)) ? {
470
+ } : {} : {}, kt = (e, t) => e ? ne(e.shouldReceiveBuilderProps).builderComponents ? {
463
471
  builderComponents: t
464
- } : {}, kt = (e, t) => e && (e.isRSC && L === "rsc" || L === "reactNative" || ["Builder:Accordion", "Columns", "Form:Form", "Builder: Tabs", "Symbol", "Image", "Video"].includes(e.name)) ? {
472
+ } : {} : {}, Ct = (e, t) => e ? ne(e.shouldReceiveBuilderProps).builderBlock ? {
465
473
  builderBlock: t
466
- } : {}, Ct = (e, t) => e && (e.isRSC && L === "rsc" || ["Builder:Accordion", "Columns", "Form:Form", "Builder: Tabs", "Symbol", "Slot"].includes(e.name)) ? {
474
+ } : {} : {}, Tt = (e, t) => e ? ne(e.shouldReceiveBuilderProps).builderContext ? {
467
475
  builderContext: t
468
- } : {}, De = {
476
+ } : {} : {}, De = {
469
477
  small: {
470
478
  min: 320,
471
479
  default: 321,
@@ -481,11 +489,11 @@ const yt = ({
481
489
  default: 991,
482
490
  max: 1200
483
491
  }
484
- }, ye = (e, t = De) => `@media (max-width: ${t[e].max}px)`, Le = ({
492
+ }, xe = (e, t = De) => `@media (max-width: ${t[e].max}px)`, Oe = ({
485
493
  small: e,
486
494
  medium: t
487
495
  }) => {
488
- const n = de(De);
496
+ const n = ue(De);
489
497
  if (!e || !t)
490
498
  return n;
491
499
  const i = Math.floor(e / 2);
@@ -508,7 +516,7 @@ const yt = ({
508
516
  default: r + 1
509
517
  }, n;
510
518
  };
511
- function ne(e) {
519
+ function ie(e) {
512
520
  return /* @__PURE__ */ s(
513
521
  "style",
514
522
  {
@@ -517,7 +525,7 @@ function ne(e) {
517
525
  }
518
526
  );
519
527
  }
520
- function Tt(e) {
528
+ function It(e) {
521
529
  function t() {
522
530
  const i = X({
523
531
  block: e.block,
@@ -530,7 +538,7 @@ function Tt(e) {
530
538
  return G(i.hide) ? !i.hide : G(i.show) ? i.show : !0;
531
539
  }
532
540
  function n() {
533
- var x, R, V;
541
+ var x, B, V;
534
542
  const i = X({
535
543
  block: e.block,
536
544
  localState: e.context.localState,
@@ -538,7 +546,7 @@ function Tt(e) {
538
546
  rootSetState: e.context.rootSetState,
539
547
  context: e.context.context,
540
548
  shouldEvaluateBindings: !0
541
- }), o = i.responsiveStyles, r = e.context.content, a = Le(
549
+ }), o = i.responsiveStyles, r = e.context.content, a = Oe(
542
550
  ((x = r == null ? void 0 : r.meta) == null ? void 0 : x.breakpoints) || {}
543
551
  ), l = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, u = o == null ? void 0 : o.small, f = i.id;
544
552
  if (!f)
@@ -549,21 +557,21 @@ function Tt(e) {
549
557
  }) : "", m = c ? J({
550
558
  className: f,
551
559
  styles: c,
552
- mediaQuery: ye(
560
+ mediaQuery: xe(
553
561
  "medium",
554
562
  a
555
563
  )
556
- }) : "", g = u ? J({
564
+ }) : "", b = u ? J({
557
565
  className: f,
558
566
  styles: u,
559
- mediaQuery: ye(
567
+ mediaQuery: xe(
560
568
  "small",
561
569
  a
562
570
  )
563
571
  }) : "", p = i.animations && i.animations.find((A) => A.trigger === "hover");
564
572
  let I = "";
565
573
  if (p) {
566
- const A = ((V = (R = p.steps) == null ? void 0 : R[1]) == null ? void 0 : V.styles) || {};
574
+ const A = ((V = (B = p.steps) == null ? void 0 : B[1]) == null ? void 0 : V.styles) || {};
567
575
  I = J({
568
576
  className: `${f}:hover`,
569
577
  styles: {
@@ -578,16 +586,16 @@ function Tt(e) {
578
586
  return [
579
587
  d,
580
588
  m,
581
- g,
589
+ b,
582
590
  I
583
591
  ].join(" ");
584
592
  }
585
- return /* @__PURE__ */ s(E, { children: n() && t() ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(ne, { id: "builderio-block", styles: n() }) }) : null });
593
+ return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(ie, { id: "builderio-block", styles: n() }) }) : null });
586
594
  }
587
- function It(e) {
595
+ function wt(e) {
588
596
  return e.charAt(0).toUpperCase() + e.slice(1);
589
597
  }
590
- const wt = (e) => `on${It(e)}`, Et = (e, t) => (n) => _({
598
+ const Rt = (e) => `on${wt(e)}`, Bt = (e, t) => (n) => q({
591
599
  code: e,
592
600
  context: t.context,
593
601
  localState: t.localState,
@@ -597,16 +605,16 @@ const wt = (e) => `on${It(e)}`, Et = (e, t) => (n) => _({
597
605
  isExpression: !1,
598
606
  enableCache: !0
599
607
  });
600
- function Oe(e) {
608
+ function je(e) {
601
609
  var i;
602
610
  const t = {}, n = (i = e.block.actions) != null ? i : {};
603
611
  for (const o in n) {
604
612
  if (!n.hasOwnProperty(o))
605
613
  continue;
606
614
  const r = n[o];
607
- let a = wt(o);
615
+ let a = Rt(o);
608
616
  if (e.stripPrefix)
609
- switch (L) {
617
+ switch (_) {
610
618
  case "vue":
611
619
  a = a.replace("v-on:", "");
612
620
  break;
@@ -614,34 +622,34 @@ function Oe(e) {
614
622
  a = a.replace("on:", "");
615
623
  break;
616
624
  }
617
- t[a] = Et(r, e);
625
+ t[a] = Bt(r, e);
618
626
  }
619
627
  return t;
620
628
  }
621
- function Rt({
629
+ function Pt({
622
630
  properties: e
623
631
  }) {
624
632
  return e;
625
633
  }
626
- const Bt = (e) => ({
634
+ const Et = (e) => ({
627
635
  href: e.href
628
636
  });
629
- function fe({
637
+ function he({
630
638
  block: e,
631
639
  context: t
632
640
  }) {
633
641
  var i;
634
642
  const n = {
635
- ...Bt(e),
643
+ ...Et(e),
636
644
  ...e.properties,
637
645
  "builder-id": e.id,
638
- style: pt({
646
+ style: yt({
639
647
  block: e,
640
648
  context: t
641
649
  }),
642
- [q()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
650
+ [K()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
643
651
  };
644
- return Rt({
652
+ return Pt({
645
653
  properties: n,
646
654
  context: t,
647
655
  block: e
@@ -649,14 +657,14 @@ function fe({
649
657
  }
650
658
  function Vt(e) {
651
659
  return /* @__PURE__ */ s(
652
- ue,
660
+ me,
653
661
  {
654
662
  TagName: e.Wrapper,
655
- attributes: fe({
663
+ attributes: he({
656
664
  block: e.block,
657
665
  context: e.context
658
666
  }),
659
- actionAttributes: Oe({
667
+ actionAttributes: je({
660
668
  block: e.block,
661
669
  rootState: e.context.rootState,
662
670
  rootSetState: e.context.rootSetState,
@@ -668,14 +676,14 @@ function Vt(e) {
668
676
  }
669
677
  );
670
678
  }
671
- function Pt(e) {
679
+ function At(e) {
672
680
  function t() {
673
681
  return e.includeBlockProps ? {
674
- ...fe({
682
+ ...he({
675
683
  block: e.block,
676
684
  context: e.context
677
685
  }),
678
- ...Oe({
686
+ ...je({
679
687
  block: e.block,
680
688
  rootState: e.context.rootState,
681
689
  rootSetState: e.context.rootSetState,
@@ -686,7 +694,7 @@ function Pt(e) {
686
694
  }
687
695
  return /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
688
696
  }
689
- const At = ({
697
+ const Nt = ({
690
698
  componentOptions: e,
691
699
  builderBlock: t,
692
700
  context: n,
@@ -702,7 +710,7 @@ const At = ({
702
710
  * component itself directly. Otherwise, they are provided to the wrapper element.
703
711
  */
704
712
  ...o ? {
705
- attributes: fe({
713
+ attributes: he({
706
714
  block: t,
707
715
  context: a
708
716
  })
@@ -716,15 +724,15 @@ const At = ({
716
724
  includeBlockProps: o
717
725
  } : l;
718
726
  };
719
- function xe(e) {
727
+ function ve(e) {
720
728
  var i;
721
729
  const [t, n] = C(
722
- () => e.isInteractive ? Pt : e.componentRef
730
+ () => e.isInteractive ? At : e.componentRef
723
731
  );
724
- return /* @__PURE__ */ s(E, { children: e.componentRef ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
732
+ return /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
725
733
  t,
726
734
  {
727
- ...At({
735
+ ...Nt({
728
736
  componentOptions: e.componentOptions,
729
737
  builderBlock: e.builderBlock,
730
738
  context: e.context,
@@ -747,9 +755,9 @@ function xe(e) {
747
755
  }
748
756
  ) }) : null });
749
757
  }
750
- function Nt(e) {
758
+ function Wt(e) {
751
759
  const [t, n] = C(() => e.repeatContext);
752
- return /* @__PURE__ */ s(me.Provider, { value: t, children: /* @__PURE__ */ s(
760
+ return /* @__PURE__ */ s(fe.Provider, { value: t, children: /* @__PURE__ */ s(
753
761
  z,
754
762
  {
755
763
  block: e.block,
@@ -762,14 +770,14 @@ function Nt(e) {
762
770
  function z(e) {
763
771
  var c, u, f;
764
772
  function t() {
765
- return yt({
773
+ return xt({
766
774
  block: e.block,
767
775
  context: e.context,
768
776
  registeredComponents: e.registeredComponents
769
777
  });
770
778
  }
771
779
  function n() {
772
- return xt({
780
+ return vt({
773
781
  block: e.block,
774
782
  context: e.context
775
783
  });
@@ -790,27 +798,27 @@ function z(e) {
790
798
  return e.block.tagName === "a" || ((m = i().properties) == null ? void 0 : m.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
791
799
  }
792
800
  function r() {
793
- var g, p;
794
- if ((g = e.block.repeat) != null && g.collection)
801
+ var b, p;
802
+ if ((b = e.block.repeat) != null && b.collection)
795
803
  return !!((p = n == null ? void 0 : n()) != null && p.length);
796
804
  const d = "hide" in i() ? i().hide : !1;
797
805
  return ("show" in i() ? i().show : !0) && !d;
798
806
  }
799
807
  function a() {
800
- var m, g;
801
- return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (g = i().children) != null ? g : [] : [];
808
+ var m, b;
809
+ return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (b = i().children) != null ? b : [] : [];
802
810
  }
803
811
  function l() {
804
- var d, m, g, p;
812
+ var d, m, b, p;
805
813
  return {
806
814
  blockChildren: (d = i().children) != null ? d : [],
807
815
  componentRef: (m = t == null ? void 0 : t()) == null ? void 0 : m.component,
808
816
  componentOptions: {
809
- ...it(i()),
810
- ...kt(t(), i()),
811
- ...Ct(t(), e.context),
817
+ ...ot(i()),
818
+ ...Ct(t(), i()),
819
+ ...Tt(t(), e.context),
812
820
  ...St(t(), e.linkComponent),
813
- ...vt(
821
+ ...kt(
814
822
  t(),
815
823
  e.registeredComponents
816
824
  )
@@ -819,22 +827,22 @@ function z(e) {
819
827
  linkComponent: e.linkComponent,
820
828
  registeredComponents: e.registeredComponents,
821
829
  builderBlock: i(),
822
- includeBlockProps: ((g = t == null ? void 0 : t()) == null ? void 0 : g.noWrap) === !0,
830
+ includeBlockProps: ((b = t == null ? void 0 : t()) == null ? void 0 : b.noWrap) === !0,
823
831
  isInteractive: !((p = t == null ? void 0 : t()) != null && p.isRSC)
824
832
  };
825
833
  }
826
834
  return P(() => {
827
835
  const d = i().id, m = i().animations;
828
- m && d && mt(
829
- m.map((g) => ({
830
- ...g,
836
+ m && d && ft(
837
+ m.map((b) => ({
838
+ ...b,
831
839
  elementId: d
832
840
  }))
833
841
  );
834
- }, []), /* @__PURE__ */ s(E, { children: r() ? /* @__PURE__ */ B(E, { children: [
835
- /* @__PURE__ */ s(Tt, { block: e.block, context: e.context }),
836
- (c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
837
- xe,
842
+ }, []), /* @__PURE__ */ s(R, { children: r() ? /* @__PURE__ */ E(R, { children: [
843
+ /* @__PURE__ */ s(It, { block: e.block, context: e.context }),
844
+ (c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
845
+ ve,
838
846
  {
839
847
  componentRef: l().componentRef,
840
848
  componentOptions: l().componentOptions,
@@ -846,8 +854,8 @@ function z(e) {
846
854
  includeBlockProps: l().includeBlockProps,
847
855
  isInteractive: l().isInteractive
848
856
  }
849
- ) }) : /* @__PURE__ */ s(E, { children: n() ? /* @__PURE__ */ s(E, { children: (f = n()) == null ? void 0 : f.map((d, m) => /* @__PURE__ */ s(
850
- Nt,
857
+ ) }) : /* @__PURE__ */ s(R, { children: n() ? /* @__PURE__ */ s(R, { children: (f = n()) == null ? void 0 : f.map((d, m) => /* @__PURE__ */ s(
858
+ Wt,
851
859
  {
852
860
  repeatContext: d.context,
853
861
  block: d.block,
@@ -855,7 +863,7 @@ function z(e) {
855
863
  linkComponent: e.linkComponent
856
864
  },
857
865
  m
858
- )) }) : /* @__PURE__ */ B(
866
+ )) }) : /* @__PURE__ */ E(
859
867
  Vt,
860
868
  {
861
869
  Wrapper: o(),
@@ -863,7 +871,7 @@ function z(e) {
863
871
  context: e.context,
864
872
  children: [
865
873
  /* @__PURE__ */ s(
866
- xe,
874
+ ve,
867
875
  {
868
876
  componentRef: l().componentRef,
869
877
  componentOptions: l().componentOptions,
@@ -891,14 +899,14 @@ function z(e) {
891
899
  ) })
892
900
  ] }) : null });
893
901
  }
894
- function Wt(e) {
902
+ function $t(e) {
895
903
  function t() {
896
904
  var o;
897
905
  return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
898
906
  }
899
907
  function n() {
900
908
  var o, r;
901
- $() && !((o = e.blocks) != null && o.length) && ((r = window.parent) == null || r.postMessage(
909
+ F() && !((o = e.blocks) != null && o.length) && ((r = window.parent) == null || r.postMessage(
902
910
  {
903
911
  type: "builder.clickEmptyBlocks",
904
912
  data: {
@@ -911,7 +919,7 @@ function Wt(e) {
911
919
  }
912
920
  function i() {
913
921
  var o, r;
914
- $() && !((o = e.blocks) != null && o.length) && ((r = window.parent) == null || r.postMessage(
922
+ F() && !((o = e.blocks) != null && o.length) && ((r = window.parent) == null || r.postMessage(
915
923
  {
916
924
  type: "builder.hoverEmptyBlocks",
917
925
  data: {
@@ -922,7 +930,7 @@ function Wt(e) {
922
930
  "*"
923
931
  ));
924
932
  }
925
- return /* @__PURE__ */ B(E, { children: [
933
+ return /* @__PURE__ */ E(R, { children: [
926
934
  /* @__PURE__ */ s(
927
935
  e.BlocksWrapper,
928
936
  {
@@ -944,11 +952,11 @@ function Wt(e) {
944
952
  }` })
945
953
  ] });
946
954
  }
947
- function D(e) {
955
+ function L(e) {
948
956
  var i, o, r;
949
- const t = be(me), n = be(Be);
957
+ const t = pe(fe), n = pe(Ee);
950
958
  return /* @__PURE__ */ s(
951
- Wt,
959
+ $t,
952
960
  {
953
961
  blocks: e.blocks,
954
962
  parent: e.parent,
@@ -956,7 +964,7 @@ function D(e) {
956
964
  styleProp: e.styleProp,
957
965
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
958
966
  BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
959
- children: e.blocks ? /* @__PURE__ */ s(E, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ s(
967
+ children: e.blocks ? /* @__PURE__ */ s(R, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ s(
960
968
  z,
961
969
  {
962
970
  block: a,
@@ -970,37 +978,37 @@ function D(e) {
970
978
  );
971
979
  }
972
980
  const Ft = (e) => `builder-columns ${e}-breakpoints`;
973
- function $t(e) {
974
- var A, j;
981
+ function Lt(e) {
982
+ var A, O;
975
983
  const [t, n] = C(
976
984
  () => typeof e.space == "number" ? e.space || 0 : 20
977
985
  ), [i, o] = C(() => e.columns || []), [r, a] = C(
978
986
  () => e.stackColumnsAt || "tablet"
979
987
  );
980
- function l(v) {
981
- return v.link ? e.builderLinkComponent || "a" : "div";
988
+ function l(S) {
989
+ return S.link ? e.builderLinkComponent || "a" : "div";
982
990
  }
983
- function c(v) {
991
+ function c(S) {
984
992
  var w;
985
- return ((w = i[v]) == null ? void 0 : w.width) || 100 / i.length;
993
+ return ((w = i[S]) == null ? void 0 : w.width) || 100 / i.length;
986
994
  }
987
- function u(v) {
995
+ function u(S) {
988
996
  const w = t * (i.length - 1) / i.length;
989
- return `calc(${c(v)}% - ${w}px)`;
997
+ return `calc(${c(S)}% - ${w}px)`;
990
998
  }
991
999
  function f({
992
- stackedStyle: v,
1000
+ stackedStyle: S,
993
1001
  desktopStyle: w
994
1002
  }) {
995
- return r === "tablet" ? v : w;
1003
+ return r === "tablet" ? S : w;
996
1004
  }
997
1005
  function d({
998
- stackedStyle: v,
1006
+ stackedStyle: S,
999
1007
  desktopStyle: w
1000
1008
  }) {
1001
- return r === "never" ? w : v;
1009
+ return r === "never" ? w : S;
1002
1010
  }
1003
- const [m, g] = C(
1011
+ const [m, b] = C(
1004
1012
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
1005
1013
  );
1006
1014
  function p() {
@@ -1012,8 +1020,8 @@ function $t(e) {
1012
1020
  })
1013
1021
  };
1014
1022
  }
1015
- function I(v) {
1016
- const w = v === 0 ? 0 : t, W = u(v), b = `${w}px`, h = "100%", y = 0;
1023
+ function I(S) {
1024
+ const w = S === 0 ? 0 : t, W = u(S), g = `${w}px`, h = "100%", y = 0;
1017
1025
  return {
1018
1026
  ...{
1019
1027
  display: "flex",
@@ -1021,14 +1029,14 @@ function $t(e) {
1021
1029
  alignItems: "stretch"
1022
1030
  },
1023
1031
  width: W,
1024
- ["marginLeft"]: b,
1032
+ ["marginLeft"]: g,
1025
1033
  "--column-width-mobile": d({
1026
1034
  stackedStyle: h,
1027
1035
  desktopStyle: W
1028
1036
  }),
1029
1037
  "--column-margin-left-mobile": d({
1030
1038
  stackedStyle: y,
1031
- desktopStyle: b
1039
+ desktopStyle: g
1032
1040
  }),
1033
1041
  "--column-width-tablet": f({
1034
1042
  stackedStyle: h,
@@ -1036,17 +1044,17 @@ function $t(e) {
1036
1044
  }),
1037
1045
  "--column-margin-left-tablet": f({
1038
1046
  stackedStyle: y,
1039
- desktopStyle: b
1047
+ desktopStyle: g
1040
1048
  })
1041
1049
  };
1042
1050
  }
1043
- function x(v) {
1044
- var W, b;
1045
- return Le(
1046
- ((b = (W = e.builderContext.content) == null ? void 0 : W.meta) == null ? void 0 : b.breakpoints) || {}
1047
- )[v].max;
1051
+ function x(S) {
1052
+ var W, g;
1053
+ return Oe(
1054
+ ((g = (W = e.builderContext.content) == null ? void 0 : W.meta) == null ? void 0 : g.breakpoints) || {}
1055
+ )[S].max;
1048
1056
  }
1049
- function R() {
1057
+ function B() {
1050
1058
  return `
1051
1059
  @media (max-width: ${x("medium")}px) {
1052
1060
  .${e.builderBlock.id}-breakpoints {
@@ -1073,31 +1081,31 @@ function $t(e) {
1073
1081
  },
1074
1082
  `;
1075
1083
  }
1076
- function V(v, w) {
1084
+ function V(S, w) {
1077
1085
  return {
1078
- ...v.link ? {
1079
- href: v.link
1086
+ ...S.link ? {
1087
+ href: S.link
1080
1088
  } : {},
1081
- [q()]: "builder-column",
1082
- style: $e(I(w))
1089
+ [K()]: "builder-column",
1090
+ style: Le(I(w))
1083
1091
  };
1084
1092
  }
1085
- return /* @__PURE__ */ B(E, { children: [
1086
- /* @__PURE__ */ B(
1093
+ return /* @__PURE__ */ E(R, { children: [
1094
+ /* @__PURE__ */ E(
1087
1095
  "div",
1088
1096
  {
1089
1097
  className: Ft((A = e.builderBlock) == null ? void 0 : A.id) + " div-bade6b34",
1090
1098
  style: p(),
1091
1099
  children: [
1092
- /* @__PURE__ */ s(ne, { id: "builderio-columns", styles: R() }),
1093
- (j = e.columns) == null ? void 0 : j.map((v, w) => /* @__PURE__ */ s(
1094
- ue,
1100
+ /* @__PURE__ */ s(ie, { id: "builderio-columns", styles: B() }),
1101
+ (O = e.columns) == null ? void 0 : O.map((S, w) => /* @__PURE__ */ s(
1102
+ me,
1095
1103
  {
1096
- TagName: l(v),
1104
+ TagName: l(S),
1097
1105
  actionAttributes: {},
1098
- attributes: V(v, w),
1106
+ attributes: V(S, w),
1099
1107
  children: /* @__PURE__ */ s(
1100
- D,
1108
+ L,
1101
1109
  {
1102
1110
  path: `component.options.columns.${w}.blocks`,
1103
1111
  parent: e.builderBlock.id,
@@ -1107,7 +1115,7 @@ function $t(e) {
1107
1115
  context: e.builderContext,
1108
1116
  registeredComponents: e.builderComponents,
1109
1117
  linkComponent: e.builderLinkComponent,
1110
- blocks: v.blocks
1118
+ blocks: S.blocks
1111
1119
  }
1112
1120
  )
1113
1121
  },
@@ -1128,11 +1136,11 @@ function Dt(e) {
1128
1136
  function Se(e) {
1129
1137
  return e.replace(/http(s)?:/, "");
1130
1138
  }
1131
- function Lt(e = "", t, n) {
1139
+ function Ot(e = "", t, n) {
1132
1140
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1133
1141
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1134
1142
  }
1135
- function Ot(e, t) {
1143
+ function jt(e, t) {
1136
1144
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1137
1145
  return e;
1138
1146
  if (t === "master")
@@ -1144,18 +1152,18 @@ function Ot(e, t) {
1144
1152
  }
1145
1153
  return null;
1146
1154
  }
1147
- function oe(e) {
1155
+ function ae(e) {
1148
1156
  if (!e)
1149
1157
  return e;
1150
1158
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1151
1159
  if (e.match(/builder\.io/)) {
1152
1160
  let n = e;
1153
1161
  const i = Number(e.split("?width=")[1]);
1154
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Lt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1162
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Ot(e, "width", o)} ${o}w`).concat([n]).join(", ");
1155
1163
  }
1156
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ot(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1164
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [jt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1157
1165
  }
1158
- function jt(e) {
1166
+ function Ut(e) {
1159
1167
  var o, r, a, l, c, u;
1160
1168
  function t() {
1161
1169
  var m;
@@ -1166,10 +1174,10 @@ function jt(e) {
1166
1174
  return e.srcset;
1167
1175
  if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1168
1176
  if (!e.srcset.includes(e.image.split("?")[0]))
1169
- return console.debug("Removed given srcset"), oe(d);
1177
+ return console.debug("Removed given srcset"), ae(d);
1170
1178
  } else if (e.image && !e.srcset)
1171
- return oe(d);
1172
- return oe(d);
1179
+ return ae(d);
1180
+ return ae(d);
1173
1181
  }
1174
1182
  function n() {
1175
1183
  var f;
@@ -1185,9 +1193,9 @@ function jt(e) {
1185
1193
  };
1186
1194
  return e.aspectRatio ? f : void 0;
1187
1195
  }
1188
- return /* @__PURE__ */ B(E, { children: [
1189
- /* @__PURE__ */ B(E, { children: [
1190
- /* @__PURE__ */ B("picture", { children: [
1196
+ return /* @__PURE__ */ E(R, { children: [
1197
+ /* @__PURE__ */ E(R, { children: [
1198
+ /* @__PURE__ */ E("picture", { children: [
1191
1199
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1192
1200
  /* @__PURE__ */ s(
1193
1201
  "img",
@@ -1217,7 +1225,7 @@ function jt(e) {
1217
1225
  }
1218
1226
  }
1219
1227
  ) : null,
1220
- (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(E, { children: e.children }) : null,
1228
+ (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
1221
1229
  !e.fitContent && ((u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-ac3dff4a-2", children: e.children }) : null
1222
1230
  ] }),
1223
1231
  /* @__PURE__ */ s("style", { children: `.img-ac3dff4a {
@@ -1239,7 +1247,7 @@ function jt(e) {
1239
1247
  }` })
1240
1248
  ] });
1241
1249
  }
1242
- function Ut(e) {
1250
+ function Mt(e) {
1243
1251
  return /* @__PURE__ */ s(
1244
1252
  "section",
1245
1253
  {
@@ -1260,7 +1268,7 @@ function Ut(e) {
1260
1268
  }
1261
1269
  );
1262
1270
  }
1263
- const ae = {
1271
+ const re = {
1264
1272
  "@type": "@builder.io/sdk:Element",
1265
1273
  layerName: "Accordion item title",
1266
1274
  responsiveStyles: {
@@ -1289,7 +1297,7 @@ const ae = {
1289
1297
  }
1290
1298
  }
1291
1299
  }]
1292
- }, re = {
1300
+ }, le = {
1293
1301
  "@type": "@builder.io/sdk:Element",
1294
1302
  layerName: "Accordion item detail",
1295
1303
  responsiveStyles: {
@@ -1320,7 +1328,7 @@ const ae = {
1320
1328
  }
1321
1329
  }
1322
1330
  }]
1323
- }, Mt = {
1331
+ }, Ht = {
1324
1332
  name: "Builder:Accordion",
1325
1333
  canHaveChildren: !0,
1326
1334
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1337,19 +1345,19 @@ const ae = {
1337
1345
  name: "title",
1338
1346
  type: "uiBlocks",
1339
1347
  hideFromUI: !0,
1340
- defaultValue: [ae]
1348
+ defaultValue: [re]
1341
1349
  }, {
1342
1350
  name: "detail",
1343
1351
  type: "uiBlocks",
1344
1352
  hideFromUI: !0,
1345
- defaultValue: [re]
1353
+ defaultValue: [le]
1346
1354
  }],
1347
1355
  defaultValue: [{
1348
- title: [ae],
1349
- detail: [re]
1356
+ title: [re],
1357
+ detail: [le]
1350
1358
  }, {
1351
- title: [ae],
1352
- detail: [re]
1359
+ title: [re],
1360
+ detail: [le]
1353
1361
  }],
1354
1362
  showIf: (e) => !e.get("useChildrenForItems")
1355
1363
  }, {
@@ -1377,9 +1385,15 @@ const ae = {
1377
1385
  onChange: (e) => {
1378
1386
  e.get("useChildrenForItems") === !0 && e.set("items", []);
1379
1387
  }
1380
- }]
1381
- }, ve = (e) => e.toString();
1382
- function Ht(e) {
1388
+ }],
1389
+ shouldReceiveBuilderProps: {
1390
+ builderBlock: !0,
1391
+ builderContext: !0,
1392
+ builderComponents: !0,
1393
+ builderLinkComponent: !0
1394
+ }
1395
+ }, ke = (e) => e.toString();
1396
+ function Kt(e) {
1383
1397
  var d;
1384
1398
  const [t, n] = C(() => []);
1385
1399
  function i() {
@@ -1398,7 +1412,7 @@ function Ht(e) {
1398
1412
  };
1399
1413
  }
1400
1414
  function r() {
1401
- const g = {
1415
+ const b = {
1402
1416
  ...{
1403
1417
  display: "flex",
1404
1418
  flexDirection: "column"
@@ -1407,7 +1421,7 @@ function Ht(e) {
1407
1421
  cursor: "pointer"
1408
1422
  };
1409
1423
  return Object.fromEntries(
1410
- Object.entries(g).filter(([p, I]) => I !== void 0)
1424
+ Object.entries(b).filter(([p, I]) => I !== void 0)
1411
1425
  );
1412
1426
  }
1413
1427
  function a(m) {
@@ -1424,18 +1438,18 @@ function Ht(e) {
1424
1438
  `.builder-accordion-title[data-index="${p}"]`
1425
1439
  );
1426
1440
  if (m = p, x) {
1427
- let R = x.getBoundingClientRect();
1441
+ let B = x.getBoundingClientRect();
1428
1442
  for (; x = x && x.nextElementSibling; )
1429
1443
  if (x) {
1430
1444
  if (x.classList.contains("builder-accordion-detail"))
1431
1445
  continue;
1432
1446
  const V = x.getBoundingClientRect();
1433
- if (V.left > R.left) {
1447
+ if (V.left > B.left) {
1434
1448
  const A = parseInt(
1435
1449
  x.getAttribute("data-index") || "",
1436
1450
  10
1437
1451
  );
1438
- isNaN(A) || (R = V, m = A);
1452
+ isNaN(A) || (B = V, m = A);
1439
1453
  } else
1440
1454
  break;
1441
1455
  }
@@ -1451,29 +1465,29 @@ function Ht(e) {
1451
1465
  }
1452
1466
  };
1453
1467
  return Object.fromEntries(
1454
- Object.entries(m).filter(([g, p]) => p !== void 0)
1468
+ Object.entries(m).filter(([b, p]) => p !== void 0)
1455
1469
  );
1456
1470
  }
1457
1471
  function f(m) {
1458
- t.includes(m) ? n(i() ? [] : t.filter((g) => g !== m)) : n(i() ? [m] : t.concat(m));
1472
+ t.includes(m) ? n(i() ? [] : t.filter((b) => b !== m)) : n(i() ? [m] : t.concat(m));
1459
1473
  }
1460
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, g) => /* @__PURE__ */ B(E, { children: [
1474
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, b) => /* @__PURE__ */ E(R, { children: [
1461
1475
  /* @__PURE__ */ s(
1462
1476
  "div",
1463
1477
  {
1464
- className: a(g),
1478
+ className: a(b),
1465
1479
  style: {
1466
1480
  ...r(),
1467
1481
  width: e.grid ? e.gridRowWidth : void 0,
1468
- order: c() !== null ? ve(g) : ve(g + 1)
1482
+ order: c() !== null ? ke(b) : ke(b + 1)
1469
1483
  },
1470
- "data-index": g,
1471
- onClick: (p) => f(g),
1484
+ "data-index": b,
1485
+ onClick: (p) => f(b),
1472
1486
  children: /* @__PURE__ */ s(
1473
- D,
1487
+ L,
1474
1488
  {
1475
1489
  blocks: m.title,
1476
- path: `items.${g}.title`,
1490
+ path: `items.${b}.title`,
1477
1491
  parent: e.builderBlock.id,
1478
1492
  context: e.builderContext,
1479
1493
  registeredComponents: e.builderComponents,
@@ -1482,16 +1496,16 @@ function Ht(e) {
1482
1496
  )
1483
1497
  }
1484
1498
  ),
1485
- t.includes(g) ? /* @__PURE__ */ s(
1499
+ t.includes(b) ? /* @__PURE__ */ s(
1486
1500
  "div",
1487
1501
  {
1488
- className: l(g),
1502
+ className: l(b),
1489
1503
  style: u(),
1490
1504
  children: /* @__PURE__ */ s(
1491
- D,
1505
+ L,
1492
1506
  {
1493
1507
  blocks: m.detail,
1494
- path: `items.${g}.detail`,
1508
+ path: `items.${b}.detail`,
1495
1509
  parent: e.builderBlock.id,
1496
1510
  context: e.builderContext,
1497
1511
  registeredComponents: e.builderComponents,
@@ -1502,7 +1516,7 @@ function Ht(e) {
1502
1516
  ) : null
1503
1517
  ] })) });
1504
1518
  }
1505
- const Kt = {
1519
+ const qt = {
1506
1520
  name: "Core:Button",
1507
1521
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1508
1522
  defaultStyles: {
@@ -1534,8 +1548,14 @@ const Kt = {
1534
1548
  friendlyName: "Open link in new tab"
1535
1549
  }],
1536
1550
  static: !0,
1537
- noWrap: !0
1538
- }, qt = {
1551
+ noWrap: !0,
1552
+ shouldReceiveBuilderProps: {
1553
+ builderBlock: !1,
1554
+ builderContext: !1,
1555
+ builderComponents: !1,
1556
+ builderLinkComponent: !0
1557
+ }
1558
+ }, _t = {
1539
1559
  // TODO: ways to statically preprocess JSON for references, functions, etc
1540
1560
  name: "Columns",
1541
1561
  isRSC: !0,
@@ -1735,14 +1755,26 @@ const Kt = {
1735
1755
  defaultValue: !1,
1736
1756
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1737
1757
  advanced: !0
1738
- }]
1739
- }, _t = {
1758
+ }],
1759
+ shouldReceiveBuilderProps: {
1760
+ builderBlock: !0,
1761
+ builderContext: !0,
1762
+ builderComponents: !0,
1763
+ builderLinkComponent: !0
1764
+ }
1765
+ }, zt = {
1766
+ shouldReceiveBuilderProps: {
1767
+ builderBlock: !1,
1768
+ builderContext: !1,
1769
+ builderComponents: !1,
1770
+ builderLinkComponent: !1
1771
+ },
1740
1772
  name: "Fragment",
1741
1773
  static: !0,
1742
1774
  hidden: !0,
1743
1775
  canHaveChildren: !0,
1744
1776
  noWrap: !0
1745
- }, zt = {
1777
+ }, Jt = {
1746
1778
  name: "Image",
1747
1779
  static: !0,
1748
1780
  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",
@@ -1846,8 +1878,20 @@ const Kt = {
1846
1878
  helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
1847
1879
  advanced: !0,
1848
1880
  defaultValue: 0.7041
1849
- }]
1850
- }, Jt = {
1881
+ }],
1882
+ shouldReceiveBuilderProps: {
1883
+ builderBlock: !0,
1884
+ builderContext: !1,
1885
+ builderComponents: !1,
1886
+ builderLinkComponent: !1
1887
+ }
1888
+ }, Yt = {
1889
+ shouldReceiveBuilderProps: {
1890
+ builderBlock: !1,
1891
+ builderContext: !1,
1892
+ builderComponents: !1,
1893
+ builderLinkComponent: !1
1894
+ },
1851
1895
  name: "Core:Section",
1852
1896
  static: !0,
1853
1897
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1886,7 +1930,7 @@ const Kt = {
1886
1930
  }
1887
1931
  }
1888
1932
  }]
1889
- }, Yt = {
1933
+ }, Gt = {
1890
1934
  name: "Slot",
1891
1935
  isRSC: !0,
1892
1936
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1898,9 +1942,15 @@ const Kt = {
1898
1942
  type: "string",
1899
1943
  required: !0,
1900
1944
  defaultValue: "children"
1901
- }]
1945
+ }],
1946
+ shouldReceiveBuilderProps: {
1947
+ builderBlock: !1,
1948
+ builderContext: !0,
1949
+ builderComponents: !1,
1950
+ builderLinkComponent: !1
1951
+ }
1902
1952
  };
1903
- function Gt(e) {
1953
+ function Qt(e) {
1904
1954
  var t, n, i;
1905
1955
  return /* @__PURE__ */ s(
1906
1956
  "div",
@@ -1912,7 +1962,7 @@ function Gt(e) {
1912
1962
  "builder-slot": e.name
1913
1963
  },
1914
1964
  children: /* @__PURE__ */ s(
1915
- D,
1965
+ L,
1916
1966
  {
1917
1967
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1918
1968
  path: `symbol.data.${e.name}`,
@@ -1923,7 +1973,7 @@ function Gt(e) {
1923
1973
  }
1924
1974
  );
1925
1975
  }
1926
- const Qt = {
1976
+ const Xt = {
1927
1977
  name: "Symbol",
1928
1978
  noWrap: !0,
1929
1979
  static: !0,
@@ -1955,8 +2005,14 @@ const Qt = {
1955
2005
  name: "useChildren",
1956
2006
  hideFromUI: !0,
1957
2007
  type: "boolean"
1958
- }]
1959
- }, le = {
2008
+ }],
2009
+ shouldReceiveBuilderProps: {
2010
+ builderBlock: !0,
2011
+ builderContext: !0,
2012
+ builderComponents: !0,
2013
+ builderLinkComponent: !0
2014
+ }
2015
+ }, se = {
1960
2016
  "@type": "@builder.io/sdk:Element",
1961
2017
  responsiveStyles: {
1962
2018
  large: {
@@ -1978,7 +2034,7 @@ const Qt = {
1978
2034
  text: "New tab"
1979
2035
  }
1980
2036
  }
1981
- }, se = {
2037
+ }, ce = {
1982
2038
  "@type": "@builder.io/sdk:Element",
1983
2039
  responsiveStyles: {
1984
2040
  large: {
@@ -1994,7 +2050,7 @@ const Qt = {
1994
2050
  text: "New tab content "
1995
2051
  }
1996
2052
  }
1997
- }, Xt = {
2053
+ }, Zt = {
1998
2054
  name: "Builder: Tabs",
1999
2055
  inputs: [{
2000
2056
  name: "tabs",
@@ -2004,16 +2060,16 @@ const Qt = {
2004
2060
  name: "label",
2005
2061
  type: "uiBlocks",
2006
2062
  hideFromUI: !0,
2007
- defaultValue: [le]
2063
+ defaultValue: [se]
2008
2064
  }, {
2009
2065
  name: "content",
2010
2066
  type: "uiBlocks",
2011
2067
  hideFromUI: !0,
2012
- defaultValue: [se]
2068
+ defaultValue: [ce]
2013
2069
  }],
2014
2070
  defaultValue: [{
2015
2071
  label: [{
2016
- ...le,
2072
+ ...se,
2017
2073
  component: {
2018
2074
  name: "Text",
2019
2075
  options: {
@@ -2022,7 +2078,7 @@ const Qt = {
2022
2078
  }
2023
2079
  }],
2024
2080
  content: [{
2025
- ...se,
2081
+ ...ce,
2026
2082
  component: {
2027
2083
  name: "Text",
2028
2084
  options: {
@@ -2032,7 +2088,7 @@ const Qt = {
2032
2088
  }]
2033
2089
  }, {
2034
2090
  label: [{
2035
- ...le,
2091
+ ...se,
2036
2092
  component: {
2037
2093
  name: "Text",
2038
2094
  options: {
@@ -2041,7 +2097,7 @@ const Qt = {
2041
2097
  }
2042
2098
  }],
2043
2099
  content: [{
2044
- ...se,
2100
+ ...ce,
2045
2101
  component: {
2046
2102
  name: "Text",
2047
2103
  options: {
@@ -2090,9 +2146,15 @@ const Qt = {
2090
2146
  label: "Right",
2091
2147
  value: "flex-end"
2092
2148
  }]
2093
- }]
2149
+ }],
2150
+ shouldReceiveBuilderProps: {
2151
+ builderBlock: !0,
2152
+ builderContext: !0,
2153
+ builderComponents: !0,
2154
+ builderLinkComponent: !0
2155
+ }
2094
2156
  };
2095
- function Zt(e) {
2157
+ function en(e) {
2096
2158
  var r;
2097
2159
  const [t, n] = C(
2098
2160
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
@@ -2103,7 +2165,7 @@ function Zt(e) {
2103
2165
  function o(a) {
2104
2166
  a === t && e.collapsible ? n(-1) : n(a);
2105
2167
  }
2106
- return /* @__PURE__ */ B("div", { children: [
2168
+ return /* @__PURE__ */ E("div", { children: [
2107
2169
  /* @__PURE__ */ s(
2108
2170
  "div",
2109
2171
  {
@@ -2123,7 +2185,7 @@ function Zt(e) {
2123
2185
  },
2124
2186
  onClick: (c) => o(l),
2125
2187
  children: /* @__PURE__ */ s(
2126
- D,
2188
+ L,
2127
2189
  {
2128
2190
  parent: e.builderBlock.id,
2129
2191
  path: `component.options.tabs.${l}.label`,
@@ -2139,7 +2201,7 @@ function Zt(e) {
2139
2201
  }
2140
2202
  ),
2141
2203
  i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
2142
- D,
2204
+ L,
2143
2205
  {
2144
2206
  parent: e.builderBlock.id,
2145
2207
  path: `component.options.tabs.${t}.content`,
@@ -2151,7 +2213,13 @@ function Zt(e) {
2151
2213
  ) }) : null
2152
2214
  ] });
2153
2215
  }
2154
- const en = {
2216
+ const tn = {
2217
+ shouldReceiveBuilderProps: {
2218
+ builderBlock: !1,
2219
+ builderContext: !1,
2220
+ builderComponents: !1,
2221
+ builderLinkComponent: !1
2222
+ },
2155
2223
  name: "Text",
2156
2224
  static: !0,
2157
2225
  isRSC: !0,
@@ -2170,7 +2238,7 @@ const en = {
2170
2238
  textAlign: "center"
2171
2239
  }
2172
2240
  };
2173
- function tn(e) {
2241
+ function nn(e) {
2174
2242
  var t;
2175
2243
  return /* @__PURE__ */ s(
2176
2244
  "div",
@@ -2183,7 +2251,13 @@ function tn(e) {
2183
2251
  }
2184
2252
  );
2185
2253
  }
2186
- const nn = {
2254
+ const on = {
2255
+ shouldReceiveBuilderProps: {
2256
+ builderBlock: !1,
2257
+ builderContext: !1,
2258
+ builderComponents: !1,
2259
+ builderLinkComponent: !1
2260
+ },
2187
2261
  name: "Custom Code",
2188
2262
  static: !0,
2189
2263
  requiredPermissions: ["editCode"],
@@ -2206,7 +2280,7 @@ const nn = {
2206
2280
  advanced: !0
2207
2281
  }]
2208
2282
  };
2209
- function on(e) {
2283
+ function an(e) {
2210
2284
  const t = ee(null), [n, i] = C(() => []), [o, r] = C(() => []);
2211
2285
  return P(() => {
2212
2286
  var l;
@@ -2244,7 +2318,13 @@ function on(e) {
2244
2318
  }
2245
2319
  );
2246
2320
  }
2247
- const an = {
2321
+ const rn = {
2322
+ shouldReceiveBuilderProps: {
2323
+ builderBlock: !1,
2324
+ builderContext: !1,
2325
+ builderComponents: !1,
2326
+ builderLinkComponent: !1
2327
+ },
2248
2328
  name: "Embed",
2249
2329
  static: !0,
2250
2330
  inputs: [{
@@ -2272,8 +2352,8 @@ const an = {
2272
2352
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2273
2353
  hideFromUI: !0
2274
2354
  }]
2275
- }, rn = ["text/javascript", "application/javascript", "application/ecmascript"], ln = (e) => rn.includes(e.type);
2276
- function sn(e) {
2355
+ }, ln = ["text/javascript", "application/javascript", "application/ecmascript"], sn = (e) => ln.includes(e.type);
2356
+ function cn(e) {
2277
2357
  const t = ee(null), [n, i] = C(() => []), [o, r] = C(() => []), [a, l] = C(() => !1);
2278
2358
  function c() {
2279
2359
  if (!t.current || !t.current.getElementsByTagName)
@@ -2285,7 +2365,7 @@ function sn(e) {
2285
2365
  n.push(d.src);
2286
2366
  const m = document.createElement("script");
2287
2367
  m.async = !0, m.src = d.src, document.head.appendChild(m);
2288
- } else if (ln(d) && !o.includes(d.innerText))
2368
+ } else if (sn(d) && !o.includes(d.innerText))
2289
2369
  try {
2290
2370
  o.push(d.innerText), new Function(d.innerText)();
2291
2371
  } catch (m) {
@@ -2304,7 +2384,7 @@ function sn(e) {
2304
2384
  }
2305
2385
  );
2306
2386
  }
2307
- const cn = {
2387
+ const dn = {
2308
2388
  name: "Form:Form",
2309
2389
  // editableTags: ['builder-form-error']
2310
2390
  defaults: {
@@ -2534,101 +2614,107 @@ const cn = {
2534
2614
  text: "Submit"
2535
2615
  }
2536
2616
  }
2537
- }]
2538
- }, dn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], un = () => {
2617
+ }],
2618
+ shouldReceiveBuilderProps: {
2619
+ builderBlock: !0,
2620
+ builderContext: !0,
2621
+ builderComponents: !0,
2622
+ builderLinkComponent: !0
2623
+ }
2624
+ }, un = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], mn = () => {
2539
2625
  const e = process.env.NODE_ENV || "production";
2540
- return dn.includes(e) ? e : "production";
2541
- }, mn = (e, t, n) => {
2626
+ return un.includes(e) ? e : "production";
2627
+ }, fn = (e, t, n) => {
2542
2628
  const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, r) => o != null ? o[r] : o, e);
2543
2629
  return i === void 0 || i === e ? n : i;
2544
2630
  };
2545
- function fn(e) {
2631
+ function hn(e) {
2546
2632
  var d, m;
2547
2633
  const t = ee(null), [n, i] = C(() => "unsubmitted"), [o, r] = C(() => null), [a, l] = C(() => "");
2548
- function c(g) {
2634
+ function c(b) {
2549
2635
  var I, x;
2550
2636
  const p = {
2551
2637
  ...e.builderContext.rootState,
2552
- ...g
2638
+ ...b
2553
2639
  };
2554
2640
  e.builderContext.rootSetState ? (x = (I = e.builderContext).rootSetState) == null || x.call(I, p) : e.builderContext.rootState = p;
2555
2641
  }
2556
2642
  function u() {
2557
- return $() && e.previewState || n;
2643
+ return F() && e.previewState || n;
2558
2644
  }
2559
- function f(g) {
2645
+ function f(b) {
2560
2646
  var I;
2561
2647
  const p = e.sendWithJs || e.sendSubmissionsTo === "email";
2562
2648
  if (e.sendSubmissionsTo === "zapier")
2563
- g.preventDefault();
2649
+ b.preventDefault();
2564
2650
  else if (p) {
2565
2651
  if (!(e.action || e.sendSubmissionsTo === "email")) {
2566
- g.preventDefault();
2652
+ b.preventDefault();
2567
2653
  return;
2568
2654
  }
2569
- g.preventDefault();
2570
- const x = g.currentTarget || g.target, R = e.customHeaders || {};
2655
+ b.preventDefault();
2656
+ const x = b.currentTarget || b.target, B = e.customHeaders || {};
2571
2657
  let V;
2572
- const A = new FormData(x), j = Array.from(x.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
2658
+ const A = new FormData(x), O = Array.from(x.querySelectorAll("input,select,textarea")).filter((g) => !!g.name).map((g) => {
2573
2659
  let h;
2574
- const y = b.name;
2575
- if (b instanceof HTMLInputElement)
2576
- if (b.type === "radio") {
2577
- if (b.checked)
2578
- return h = b.name, {
2660
+ const y = g.name;
2661
+ if (g instanceof HTMLInputElement)
2662
+ if (g.type === "radio") {
2663
+ if (g.checked)
2664
+ return h = g.name, {
2579
2665
  key: y,
2580
2666
  value: h
2581
2667
  };
2582
- } else if (b.type === "checkbox")
2583
- h = b.checked;
2584
- else if (b.type === "number" || b.type === "range") {
2585
- const S = b.valueAsNumber;
2586
- isNaN(S) || (h = S);
2668
+ } else if (g.type === "checkbox")
2669
+ h = g.checked;
2670
+ else if (g.type === "number" || g.type === "range") {
2671
+ const v = g.valueAsNumber;
2672
+ isNaN(v) || (h = v);
2587
2673
  } else
2588
- b.type === "file" ? h = b.files : h = b.value;
2674
+ g.type === "file" ? h = g.files : h = g.value;
2589
2675
  else
2590
- h = b.value;
2676
+ h = g.value;
2591
2677
  return {
2592
2678
  key: y,
2593
2679
  value: h
2594
2680
  };
2595
2681
  });
2596
- let v = e.contentType;
2597
- if (e.sendSubmissionsTo === "email" && (v = "multipart/form-data"), Array.from(j).forEach(({ value: b }) => {
2598
- (b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (v = "multipart/form-data");
2599
- }), v !== "application/json")
2682
+ let S = e.contentType;
2683
+ if (e.sendSubmissionsTo === "email" && (S = "multipart/form-data"), Array.from(O).forEach(({ value: g }) => {
2684
+ (g instanceof File || Array.isArray(g) && g[0] instanceof File || g instanceof FileList) && (S = "multipart/form-data");
2685
+ }), S !== "application/json")
2600
2686
  V = A;
2601
2687
  else {
2602
- const b = {};
2603
- Array.from(j).forEach(({ value: h, key: y }) => {
2604
- Pe(b, y, h);
2605
- }), V = JSON.stringify(b);
2688
+ const g = {};
2689
+ Array.from(O).forEach(({ value: h, key: y }) => {
2690
+ Ae(g, y, h);
2691
+ }), V = JSON.stringify(g);
2606
2692
  }
2607
- v && v !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (R["content-type"] = v));
2693
+ S && S !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (B["content-type"] = S));
2608
2694
  const w = new CustomEvent("presubmit", { detail: { body: V } });
2609
2695
  if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
2610
2696
  return;
2611
2697
  i("sending");
2612
- const W = `${un() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2698
+ const W = `${mn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2613
2699
  e.sendSubmissionsToEmail || ""
2614
2700
  )}&name=${encodeURIComponent(e.name || "")}`;
2615
2701
  fetch(
2616
2702
  e.sendSubmissionsTo === "email" ? W : e.action,
2617
- { body: V, headers: R, method: e.method || "post" }
2703
+ { body: V, headers: B, method: e.method || "post" }
2618
2704
  ).then(
2619
- async (b) => {
2705
+ async (g) => {
2620
2706
  let h;
2621
- const y = b.headers.get("content-type");
2622
- if (y && y.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
2623
- let S = mn(h, e.errorMessagePath);
2624
- S && (typeof S != "string" && (S = JSON.stringify(S)), l(S), c({ formErrorMessage: S }));
2707
+ const y = g.headers.get("content-type");
2708
+ if (y && y.indexOf("application/json") !== -1 ? h = await g.json() : h = await g.text(), !g.ok && e.errorMessagePath) {
2709
+ let v = fn(h, e.errorMessagePath);
2710
+ v && (typeof v != "string" && (v = JSON.stringify(v)), l(v), c({ formErrorMessage: v }));
2625
2711
  }
2626
- if (r(h), i(b.ok ? "success" : "error"), b.ok) {
2627
- const S = new CustomEvent("submit:success", {
2628
- detail: { res: b, body: h }
2712
+ if (r(h), i(g.ok ? "success" : "error"), g.ok) {
2713
+ const v = new CustomEvent("submit:success", {
2714
+ detail: { res: g, body: h }
2629
2715
  });
2630
2716
  if (t.current) {
2631
- if (t.current.dispatchEvent(S), S.defaultPrevented)
2717
+ if (t.current.dispatchEvent(v), v.defaultPrevented)
2632
2718
  return;
2633
2719
  e.resetFormOnSubmit !== !1 && t.current.reset();
2634
2720
  }
@@ -2642,18 +2728,18 @@ function fn(e) {
2642
2728
  location.href = e.successUrl;
2643
2729
  }
2644
2730
  },
2645
- (b) => {
2731
+ (g) => {
2646
2732
  const h = new CustomEvent("submit:error", {
2647
- detail: { error: b }
2733
+ detail: { error: g }
2648
2734
  });
2649
- t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (r(b), i("error"));
2735
+ t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (r(g), i("error"));
2650
2736
  }
2651
2737
  );
2652
2738
  }
2653
2739
  }
2654
- return /* @__PURE__ */ B(E, { children: [
2740
+ return /* @__PURE__ */ E(R, { children: [
2655
2741
  " ",
2656
- /* @__PURE__ */ B(
2742
+ /* @__PURE__ */ E(
2657
2743
  "form",
2658
2744
  {
2659
2745
  validate: e.validate,
@@ -2661,13 +2747,13 @@ function fn(e) {
2661
2747
  action: !e.sendWithJs && e.action,
2662
2748
  method: e.method,
2663
2749
  name: e.name,
2664
- onSubmit: (g) => f(g),
2750
+ onSubmit: (b) => f(b),
2665
2751
  ...e.attributes,
2666
2752
  children: [
2667
- e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(E, { children: (m = (d = e.builderBlock) == null ? void 0 : d.children) == null ? void 0 : m.map((g, p) => /* @__PURE__ */ s(
2753
+ e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(R, { children: (m = (d = e.builderBlock) == null ? void 0 : d.children) == null ? void 0 : m.map((b, p) => /* @__PURE__ */ s(
2668
2754
  z,
2669
2755
  {
2670
- block: g,
2756
+ block: b,
2671
2757
  context: e.builderContext,
2672
2758
  registeredComponents: e.builderComponents,
2673
2759
  linkComponent: e.builderLinkComponent
@@ -2675,7 +2761,7 @@ function fn(e) {
2675
2761
  `form-block-${p}`
2676
2762
  )) }) : null,
2677
2763
  u() === "error" ? /* @__PURE__ */ s(
2678
- D,
2764
+ L,
2679
2765
  {
2680
2766
  path: "errorMessage",
2681
2767
  blocks: e.errorMessage,
@@ -2683,7 +2769,7 @@ function fn(e) {
2683
2769
  }
2684
2770
  ) : null,
2685
2771
  u() === "sending" ? /* @__PURE__ */ s(
2686
- D,
2772
+ L,
2687
2773
  {
2688
2774
  path: "sendingMessage",
2689
2775
  blocks: e.sendingMessage,
@@ -2692,7 +2778,7 @@ function fn(e) {
2692
2778
  ) : null,
2693
2779
  u() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
2694
2780
  u() === "success" ? /* @__PURE__ */ s(
2695
- D,
2781
+ L,
2696
2782
  {
2697
2783
  path: "successMessage",
2698
2784
  blocks: e.successMessage,
@@ -2707,7 +2793,13 @@ function fn(e) {
2707
2793
  " "
2708
2794
  ] });
2709
2795
  }
2710
- const hn = {
2796
+ const bn = {
2797
+ shouldReceiveBuilderProps: {
2798
+ builderBlock: !1,
2799
+ builderContext: !1,
2800
+ builderComponents: !1,
2801
+ builderLinkComponent: !1
2802
+ },
2711
2803
  name: "Form:Input",
2712
2804
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2713
2805
  inputs: [
@@ -2760,11 +2852,11 @@ const hn = {
2760
2852
  }
2761
2853
  };
2762
2854
  function gn(e) {
2763
- return /* @__PURE__ */ Re(
2855
+ return /* @__PURE__ */ Pe(
2764
2856
  "input",
2765
2857
  {
2766
2858
  ...e.attributes,
2767
- key: $() && e.defaultValue ? e.defaultValue : "default-key",
2859
+ key: F() && e.defaultValue ? e.defaultValue : "default-key",
2768
2860
  placeholder: e.placeholder,
2769
2861
  type: e.type,
2770
2862
  name: e.name,
@@ -2774,7 +2866,13 @@ function gn(e) {
2774
2866
  }
2775
2867
  );
2776
2868
  }
2777
- const bn = {
2869
+ const pn = {
2870
+ shouldReceiveBuilderProps: {
2871
+ builderBlock: !1,
2872
+ builderContext: !1,
2873
+ builderComponents: !1,
2874
+ builderLinkComponent: !1
2875
+ },
2778
2876
  name: "Form:Select",
2779
2877
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2780
2878
  defaultStyles: {
@@ -2817,21 +2915,28 @@ const bn = {
2817
2915
  static: !0,
2818
2916
  noWrap: !0
2819
2917
  };
2820
- function pn(e) {
2918
+ function yn(e) {
2821
2919
  var t;
2822
- return /* @__PURE__ */ Re(
2920
+ return /* @__PURE__ */ Pe(
2823
2921
  "select",
2824
2922
  {
2825
2923
  ...e.attributes,
2826
2924
  value: e.value,
2827
- key: $() && e.defaultValue ? e.defaultValue : "default-key",
2925
+ key: F() && e.defaultValue ? e.defaultValue : "default-key",
2828
2926
  defaultValue: e.defaultValue,
2829
- name: e.name
2927
+ name: e.name,
2928
+ required: e.required
2830
2929
  },
2831
2930
  (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2832
2931
  );
2833
2932
  }
2834
- const yn = {
2933
+ const xn = {
2934
+ shouldReceiveBuilderProps: {
2935
+ builderBlock: !1,
2936
+ builderContext: !1,
2937
+ builderComponents: !1,
2938
+ builderLinkComponent: !1
2939
+ },
2835
2940
  name: "Form:SubmitButton",
2836
2941
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2837
2942
  defaultStyles: {
@@ -2857,10 +2962,72 @@ const yn = {
2857
2962
  // TODO: defaultChildren
2858
2963
  // canHaveChildren: true,
2859
2964
  };
2860
- function xn(e) {
2965
+ function vn(e) {
2861
2966
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
2862
2967
  }
2863
2968
  const Sn = {
2969
+ shouldReceiveBuilderProps: {
2970
+ builderBlock: !1,
2971
+ builderContext: !1,
2972
+ builderComponents: !1,
2973
+ builderLinkComponent: !1
2974
+ },
2975
+ name: "Form:TextArea",
2976
+ image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
2977
+ inputs: [{
2978
+ advanced: !0,
2979
+ name: "value",
2980
+ type: "string"
2981
+ }, {
2982
+ name: "name",
2983
+ type: "string",
2984
+ required: !0,
2985
+ helperText: 'Every input in a form needs a unique name describing what it gets, e.g. "email"'
2986
+ }, {
2987
+ name: "defaultValue",
2988
+ type: "string"
2989
+ }, {
2990
+ name: "placeholder",
2991
+ type: "string",
2992
+ defaultValue: "Hello there"
2993
+ }, {
2994
+ name: "required",
2995
+ type: "boolean",
2996
+ defaultValue: !1
2997
+ }],
2998
+ defaultStyles: {
2999
+ paddingTop: "10px",
3000
+ paddingBottom: "10px",
3001
+ paddingLeft: "10px",
3002
+ paddingRight: "10px",
3003
+ borderRadius: "3px",
3004
+ borderWidth: "1px",
3005
+ borderStyle: "solid",
3006
+ borderColor: "#ccc"
3007
+ },
3008
+ static: !0,
3009
+ noWrap: !0
3010
+ };
3011
+ function kn(e) {
3012
+ return /* @__PURE__ */ s(
3013
+ "textarea",
3014
+ {
3015
+ ...e.attributes,
3016
+ placeholder: e.placeholder,
3017
+ name: e.name,
3018
+ value: e.value,
3019
+ defaultValue: e.defaultValue,
3020
+ required: e.required
3021
+ }
3022
+ );
3023
+ }
3024
+ const Cn = {
3025
+ shouldReceiveBuilderProps: {
3026
+ builderBlock: !1,
3027
+ builderContext: !1,
3028
+ builderComponents: !1,
3029
+ builderLinkComponent: !1
3030
+ },
2864
3031
  // friendlyName?
2865
3032
  name: "Raw:Img",
2866
3033
  hideFromInsertMenu: !0,
@@ -2875,7 +3042,7 @@ const Sn = {
2875
3042
  noWrap: !0,
2876
3043
  static: !0
2877
3044
  };
2878
- function vn(e) {
3045
+ function Tn(e) {
2879
3046
  return /* @__PURE__ */ s(
2880
3047
  "img",
2881
3048
  {
@@ -2887,10 +3054,10 @@ function vn(e) {
2887
3054
  src: e.imgSrc || e.image,
2888
3055
  ...e.attributes
2889
3056
  },
2890
- $() && e.imgSrc || "default-key"
3057
+ F() && e.imgSrc || "default-key"
2891
3058
  );
2892
3059
  }
2893
- const kn = {
3060
+ const In = {
2894
3061
  name: "Video",
2895
3062
  canHaveChildren: !0,
2896
3063
  defaultStyles: {
@@ -2970,9 +3137,15 @@ const kn = {
2970
3137
  helperText: 'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',
2971
3138
  defaultValue: !0,
2972
3139
  advanced: !0
2973
- }]
3140
+ }],
3141
+ shouldReceiveBuilderProps: {
3142
+ builderBlock: !0,
3143
+ builderContext: !1,
3144
+ builderComponents: !1,
3145
+ builderLinkComponent: !1
3146
+ }
2974
3147
  };
2975
- function Cn(e) {
3148
+ function wn(e) {
2976
3149
  var i, o, r, a, l, c, u;
2977
3150
  function t() {
2978
3151
  return {
@@ -2998,7 +3171,7 @@ function Cn(e) {
2998
3171
  ...t()
2999
3172
  };
3000
3173
  }
3001
- return /* @__PURE__ */ B(
3174
+ return /* @__PURE__ */ E(
3002
3175
  "div",
3003
3176
  {
3004
3177
  style: {
@@ -3073,61 +3246,64 @@ function Cn(e) {
3073
3246
  }
3074
3247
  );
3075
3248
  }
3076
- const Tn = () => [{
3077
- component: on,
3078
- ...nn
3249
+ const Rn = () => [{
3250
+ component: an,
3251
+ ...on
3079
3252
  }, {
3080
- component: sn,
3081
- ...an
3253
+ component: cn,
3254
+ ...rn
3082
3255
  }, {
3083
- component: fn,
3084
- ...cn
3256
+ component: hn,
3257
+ ...dn
3085
3258
  }, {
3086
3259
  component: gn,
3087
- ...hn
3088
- }, {
3089
- component: xn,
3090
- ...yn
3091
- }, {
3092
- component: pn,
3093
3260
  ...bn
3094
3261
  }, {
3095
3262
  component: vn,
3263
+ ...xn
3264
+ }, {
3265
+ component: yn,
3266
+ ...pn
3267
+ }, {
3268
+ component: kn,
3096
3269
  ...Sn
3097
3270
  }, {
3098
- component: Cn,
3099
- ...kn
3100
- }], ke = () => [{
3101
- component: nt,
3102
- ...Kt
3271
+ component: Tn,
3272
+ ...Cn
3103
3273
  }, {
3104
- component: $t,
3274
+ component: wn,
3275
+ ...In
3276
+ }], Ce = () => [{
3277
+ component: it,
3105
3278
  ...qt
3106
3279
  }, {
3107
- component: Dt,
3280
+ component: Lt,
3108
3281
  ..._t
3109
3282
  }, {
3110
- component: jt,
3283
+ component: Dt,
3111
3284
  ...zt
3112
3285
  }, {
3113
3286
  component: Ut,
3114
3287
  ...Jt
3115
3288
  }, {
3116
- component: Gt,
3289
+ component: Mt,
3117
3290
  ...Yt
3118
3291
  }, {
3119
- component: zn,
3120
- ...Qt
3292
+ component: Qt,
3293
+ ...Gt
3121
3294
  }, {
3122
- component: tn,
3123
- ...en
3124
- }, {
3125
- component: Zt,
3295
+ component: Gn,
3126
3296
  ...Xt
3127
3297
  }, {
3128
- component: Ht,
3129
- ...Mt
3130
- }, ...Tn()], In = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3298
+ component: nn,
3299
+ ...tn
3300
+ }, {
3301
+ component: en,
3302
+ ...Zt
3303
+ }, {
3304
+ component: Kt,
3305
+ ...Ht
3306
+ }, ...Rn()], Bn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3131
3307
  function getAndSetVariantId() {
3132
3308
  function setCookie(name, value, days) {
3133
3309
  let expires = '';
@@ -3183,7 +3359,7 @@ const Tn = () => [{
3183
3359
  }).join('');
3184
3360
  styleEl.innerHTML = newStyleStr;
3185
3361
  }
3186
- }`, wn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3362
+ }`, Pn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3187
3363
  if (!navigator.cookieEnabled) {
3188
3364
  return;
3189
3365
  }
@@ -3217,26 +3393,26 @@ const Tn = () => [{
3217
3393
  thisScriptEl?.remove();
3218
3394
  }
3219
3395
  return;
3220
- }`, je = "builderIoAbTest", Ue = "builderIoRenderContent", Y = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3396
+ }`, Ue = "builderIoAbTest", Me = "builderIoRenderContent", Y = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3221
3397
  ...t,
3222
3398
  testVariationId: t.id,
3223
3399
  id: e == null ? void 0 : e.id
3224
3400
  })), En = ({
3225
3401
  canTrack: e,
3226
3402
  content: t
3227
- }) => !(!(Y(t).length > 0) || !e || H()), Rn = (e) => e === "react" || e === "reactNative", Me = Rn(L), Bn = () => `
3228
- window.${je} = ${In}
3229
- window.${Ue} = ${wn}
3230
- `, Vn = (e, t) => `
3231
- window.${je}(
3232
- "${t}",${JSON.stringify(e)}, ${Me}
3233
- )`, Pn = ({
3403
+ }) => !(!(Y(t).length > 0) || !e || M()), Vn = (e) => e === "react" || e === "reactNative", He = Vn(_), An = () => `
3404
+ window.${Ue} = ${Bn}
3405
+ window.${Me} = ${Pn}
3406
+ `, Nn = (e, t) => `
3407
+ window.${Ue}(
3408
+ "${t}",${JSON.stringify(e)}, ${He}
3409
+ )`, Wn = ({
3234
3410
  contentId: e,
3235
3411
  variationId: t
3236
- }) => `window.${Ue}(
3237
- "${t}", "${e}", ${Me}
3412
+ }) => `window.${Me}(
3413
+ "${t}", "${e}", ${He}
3238
3414
  )`;
3239
- function ce(e) {
3415
+ function de(e) {
3240
3416
  return /* @__PURE__ */ s(
3241
3417
  "script",
3242
3418
  {
@@ -3245,10 +3421,10 @@ function ce(e) {
3245
3421
  }
3246
3422
  );
3247
3423
  }
3248
- function Ce(e) {
3424
+ function Te(e) {
3249
3425
  return Math.round(e * 1e3) / 1e3;
3250
3426
  }
3251
- const An = (e, t, n = !0) => {
3427
+ const $n = (e, t, n = !0) => {
3252
3428
  if (!(e instanceof HTMLElement))
3253
3429
  return null;
3254
3430
  let i = n ? e : e.parentElement;
@@ -3259,35 +3435,35 @@ const An = (e, t, n = !0) => {
3259
3435
  return i;
3260
3436
  } while (i = i.parentElement);
3261
3437
  return null;
3262
- }, Nn = (e) => An(e, (t) => {
3438
+ }, Fn = (e) => $n(e, (t) => {
3263
3439
  const n = t.getAttribute("builder-id") || t.id;
3264
3440
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3265
- }), Te = ({
3441
+ }), Ie = ({
3266
3442
  event: e,
3267
3443
  target: t
3268
3444
  }) => {
3269
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r = Ce(i / n.width), a = Ce(o / n.height);
3445
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r = Te(i / n.width), a = Te(o / n.height);
3270
3446
  return {
3271
3447
  x: r,
3272
3448
  y: a
3273
3449
  };
3274
- }, Wn = (e) => {
3275
- const t = e.target, n = t && Nn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3450
+ }, Ln = (e) => {
3451
+ const t = e.target, n = t && Fn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3276
3452
  return {
3277
3453
  targetBuilderElement: i || void 0,
3278
3454
  metadata: {
3279
- targetOffset: t ? Te({
3455
+ targetOffset: t ? Ie({
3280
3456
  event: e,
3281
3457
  target: t
3282
3458
  }) : void 0,
3283
- builderTargetOffset: n ? Te({
3459
+ builderTargetOffset: n ? Ie({
3284
3460
  event: e,
3285
3461
  target: n
3286
3462
  }) : void 0,
3287
3463
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3288
3464
  }
3289
3465
  };
3290
- }, Fn = (e) => {
3466
+ }, Dn = (e) => {
3291
3467
  var r, a;
3292
3468
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
3293
3469
  let o = "";
@@ -3313,15 +3489,15 @@ font-weight: ${l};
3313
3489
  `.trim());
3314
3490
  }
3315
3491
  return o;
3316
- }, $n = ({
3492
+ }, On = ({
3317
3493
  customFonts: e
3318
3494
  }) => {
3319
3495
  var t;
3320
- return ((t = e == null ? void 0 : e.map((n) => Fn(n))) == null ? void 0 : t.join(" ")) || "";
3321
- }, Dn = ({
3496
+ return ((t = e == null ? void 0 : e.map((n) => Dn(n))) == null ? void 0 : t.join(" ")) || "";
3497
+ }, jn = ({
3322
3498
  cssCode: e,
3323
3499
  contentId: t
3324
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ln = `
3500
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Un = `
3325
3501
  .builder-button {
3326
3502
  all: unset;
3327
3503
  }
@@ -3338,38 +3514,38 @@ font-weight: ${l};
3338
3514
  text-align: inherit;
3339
3515
  font-family: inherit;
3340
3516
  }
3341
- `, On = (e) => e ? "" : Ln, jn = (e) => `variant-${e}`;
3342
- function Un(e) {
3343
- var V, A, j, v, w, W, b;
3517
+ `, Mn = (e) => e ? "" : Un, Hn = (e) => `variant-${e}`;
3518
+ function Kn(e) {
3519
+ var V, A, O, S, w, W, g;
3344
3520
  const t = ee(null);
3345
3521
  function n(h) {
3346
- var S, k;
3522
+ var v, k;
3347
3523
  const y = {
3348
3524
  ...e.builderContextSignal.rootState,
3349
3525
  ...h
3350
3526
  };
3351
- e.builderContextSignal.rootSetState ? (k = (S = e.builderContextSignal).rootSetState) == null || k.call(S, y) : e.setBuilderContextSignal((T) => ({
3527
+ e.builderContextSignal.rootSetState ? (k = (v = e.builderContextSignal).rootSetState) == null || k.call(v, y) : e.setBuilderContextSignal((T) => ({
3352
3528
  ...T,
3353
3529
  rootState: y
3354
3530
  }));
3355
3531
  }
3356
3532
  function i(h) {
3357
- var S, k, T, N, U;
3533
+ var v, k, T, N, j;
3358
3534
  const y = {
3359
3535
  ...e.builderContextSignal.content,
3360
3536
  ...h,
3361
3537
  data: {
3362
- ...(S = e.builderContextSignal.content) == null ? void 0 : S.data,
3538
+ ...(v = e.builderContextSignal.content) == null ? void 0 : v.data,
3363
3539
  ...h == null ? void 0 : h.data
3364
3540
  },
3365
3541
  meta: {
3366
3542
  ...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
3367
3543
  ...h == null ? void 0 : h.meta,
3368
- breakpoints: ((T = h == null ? void 0 : h.meta) == null ? void 0 : T.breakpoints) || ((U = (N = e.builderContextSignal.content) == null ? void 0 : N.meta) == null ? void 0 : U.breakpoints)
3544
+ breakpoints: ((T = h == null ? void 0 : h.meta) == null ? void 0 : T.breakpoints) || ((j = (N = e.builderContextSignal.content) == null ? void 0 : N.meta) == null ? void 0 : j.breakpoints)
3369
3545
  }
3370
3546
  };
3371
- e.setBuilderContextSignal((F) => ({
3372
- ...F,
3547
+ e.setBuilderContextSignal(($) => ({
3548
+ ...$,
3373
3549
  content: y
3374
3550
  }));
3375
3551
  }
@@ -3383,21 +3559,21 @@ function Un(e) {
3383
3559
  () => e.contentWrapper || "div"
3384
3560
  );
3385
3561
  function l(h) {
3386
- return Qe({
3562
+ return Xe({
3387
3563
  model: e.model,
3388
3564
  trustedHosts: e.trustedHosts,
3389
3565
  callbacks: {
3390
3566
  configureSdk: (y) => {
3391
3567
  var T;
3392
- const { breakpoints: S, contentId: k } = y;
3393
- !k || k !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || S && i({
3568
+ const { breakpoints: v, contentId: k } = y;
3569
+ !k || k !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || v && i({
3394
3570
  meta: {
3395
- breakpoints: S
3571
+ breakpoints: v
3396
3572
  }
3397
3573
  });
3398
3574
  },
3399
3575
  animation: (y) => {
3400
- We(y);
3576
+ $e(y);
3401
3577
  },
3402
3578
  contentUpdate: (y) => {
3403
3579
  i(y);
@@ -3406,9 +3582,9 @@ function Un(e) {
3406
3582
  })(h);
3407
3583
  }
3408
3584
  function c() {
3409
- var y, S;
3410
- const h = (S = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : S.jsCode;
3411
- h && _({
3585
+ var y, v;
3586
+ const h = (v = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : v.jsCode;
3587
+ h && q({
3412
3588
  code: h,
3413
3589
  context: e.context || {},
3414
3590
  localState: void 0,
@@ -3420,35 +3596,35 @@ function Un(e) {
3420
3596
  enableCache: !1
3421
3597
  });
3422
3598
  }
3423
- const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [g, p] = C(() => !1);
3599
+ const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [b, p] = C(() => !1);
3424
3600
  function I(h) {
3425
- var y, S;
3601
+ var y, v;
3426
3602
  if (e.builderContextSignal.content) {
3427
- const k = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, T = (S = e.builderContextSignal.content) == null ? void 0 : S.id;
3428
- he({
3603
+ const k = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, T = (v = e.builderContextSignal.content) == null ? void 0 : v.id;
3604
+ be({
3429
3605
  type: "click",
3430
3606
  canTrack: Q(e.canTrack),
3431
3607
  contentId: T,
3432
3608
  apiKey: e.apiKey,
3433
3609
  variationId: k !== T ? k : void 0,
3434
- ...Wn(h),
3435
- unique: !g
3610
+ ...Ln(h),
3611
+ unique: !b
3436
3612
  });
3437
3613
  }
3438
- g || p(!0);
3614
+ b || p(!0);
3439
3615
  }
3440
3616
  function x() {
3441
- var y, S, k;
3442
- const h = (k = (S = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : S.httpRequests) != null ? k : {};
3617
+ var y, v, k;
3618
+ const h = (k = (v = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : v.httpRequests) != null ? k : {};
3443
3619
  Object.entries(h).forEach(([T, N]) => {
3444
- if (!N || d[T] || u[T] && !$())
3620
+ if (!N || d[T] || u[T] && !F())
3445
3621
  return;
3446
3622
  d[T] = !0;
3447
- const U = N.replace(
3623
+ const j = N.replace(
3448
3624
  /{{([^}]+)}}/g,
3449
- (F, He) => String(
3450
- _({
3451
- code: He,
3625
+ ($, Ke) => String(
3626
+ q({
3627
+ code: Ke,
3452
3628
  context: e.context || {},
3453
3629
  localState: void 0,
3454
3630
  rootState: e.builderContextSignal.rootState,
@@ -3457,24 +3633,24 @@ function Un(e) {
3457
3633
  })
3458
3634
  )
3459
3635
  );
3460
- Xe(U).then((F) => F.json()).then((F) => {
3636
+ Ze(j).then(($) => $.json()).then(($) => {
3461
3637
  n({
3462
- [T]: F
3638
+ [T]: $
3463
3639
  }), u[T] = !0;
3464
- }).catch((F) => {
3465
- console.error("error fetching dynamic data", N, F);
3640
+ }).catch(($) => {
3641
+ console.error("error fetching dynamic data", N, $);
3466
3642
  }).finally(() => {
3467
3643
  d[T] = !1;
3468
3644
  });
3469
3645
  });
3470
3646
  }
3471
- function R() {
3472
- $() && window.dispatchEvent(
3647
+ function B() {
3648
+ F() && window.dispatchEvent(
3473
3649
  new CustomEvent(
3474
3650
  "builder:component:stateChange",
3475
3651
  {
3476
3652
  detail: {
3477
- state: de(e.builderContextSignal.rootState),
3653
+ state: ue(e.builderContextSignal.rootState),
3478
3654
  ref: {
3479
3655
  name: e.model
3480
3656
  }
@@ -3485,8 +3661,8 @@ function Un(e) {
3485
3661
  }
3486
3662
  return P(() => {
3487
3663
  var h, y;
3488
- if (H()) {
3489
- if ($() && (window.addEventListener("message", l), ze(), Je({
3664
+ if (M()) {
3665
+ if (F() && (window.addEventListener("message", l), Je(), Ye({
3490
3666
  ...e.locale ? {
3491
3667
  locale: e.locale
3492
3668
  } : {},
@@ -3500,14 +3676,14 @@ function Un(e) {
3500
3676
  e.builderContextSignal.componentInfos
3501
3677
  ).forEach((k) => {
3502
3678
  var N;
3503
- const T = Ye(k);
3679
+ const T = Ge(k);
3504
3680
  (N = window.parent) == null || N.postMessage(T, "*");
3505
3681
  }), window.addEventListener(
3506
3682
  "builder:component:stateChangeListenerActivated",
3507
- R
3683
+ B
3508
3684
  )), e.builderContextSignal.content && Q(e.canTrack)) {
3509
3685
  const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, T = (y = e.builderContextSignal.content) == null ? void 0 : y.id, N = e.apiKey;
3510
- he({
3686
+ be({
3511
3687
  type: "impression",
3512
3688
  canTrack: !0,
3513
3689
  contentId: T,
@@ -3515,31 +3691,31 @@ function Un(e) {
3515
3691
  variationId: k !== T ? k : void 0
3516
3692
  });
3517
3693
  }
3518
- if (Ge() && !$()) {
3694
+ if (Qe() && !F()) {
3519
3695
  const k = new URL(location.href).searchParams, T = k.get("builder.preview"), N = k.get(
3520
3696
  `builder.overrides.${T}`
3521
- ), U = k.get("apiKey") || k.get("builder.space");
3522
- T === e.model && U === e.apiKey && (!e.content || N === e.content.id) && we({
3697
+ ), j = k.get("apiKey") || k.get("builder.space");
3698
+ T === e.model && j === e.apiKey && (!e.content || N === e.content.id) && Re({
3523
3699
  model: e.model,
3524
3700
  apiKey: e.apiKey,
3525
3701
  apiVersion: e.builderContextSignal.apiVersion
3526
- }).then((F) => {
3527
- F && i(F);
3702
+ }).then(($) => {
3703
+ $ && i($);
3528
3704
  });
3529
3705
  }
3530
3706
  }
3531
3707
  }, []), P(() => {
3532
3708
  e.apiKey || Z.error(
3533
3709
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3534
- ), c(), x(), R();
3710
+ ), c(), x(), B();
3535
3711
  }, []), P(() => {
3536
3712
  e.content && i(e.content);
3537
3713
  }, [e.content]), P(() => {
3538
3714
  c();
3539
3715
  }, [(A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.jsCode]), P(() => {
3540
3716
  x();
3541
- }, [(v = (j = e.builderContextSignal.content) == null ? void 0 : j.data) == null ? void 0 : v.httpRequests]), P(() => {
3542
- R();
3717
+ }, [(S = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : S.httpRequests]), P(() => {
3718
+ B();
3543
3719
  }, [e.builderContextSignal.rootState]), P(() => {
3544
3720
  e.data && n(e.data);
3545
3721
  }, [e.data]), P(() => {
@@ -3547,11 +3723,11 @@ function Un(e) {
3547
3723
  locale: e.locale
3548
3724
  });
3549
3725
  }, [e.locale]), P(() => () => {
3550
- H() && (window.removeEventListener("message", l), window.removeEventListener(
3726
+ M() && (window.removeEventListener("message", l), window.removeEventListener(
3551
3727
  "builder:component:stateChangeListenerActivated",
3552
- R
3728
+ B
3553
3729
  ));
3554
- }, []), /* @__PURE__ */ s(me.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3730
+ }, []), /* @__PURE__ */ s(fe.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3555
3731
  r,
3556
3732
  {
3557
3733
  ref: t,
@@ -3560,29 +3736,29 @@ function Un(e) {
3560
3736
  "builder-model": e.model,
3561
3737
  ...o(),
3562
3738
  ...e.contentWrapperProps,
3563
- className: jn(
3564
- ((W = e.content) == null ? void 0 : W.testVariationId) || ((b = e.content) == null ? void 0 : b.id)
3739
+ className: Hn(
3740
+ ((W = e.content) == null ? void 0 : W.testVariationId) || ((g = e.content) == null ? void 0 : g.id)
3565
3741
  ),
3566
3742
  children: e.children
3567
3743
  }
3568
3744
  ) : null });
3569
3745
  }
3570
- function Mn(e) {
3746
+ function qn(e) {
3571
3747
  const [t, n] = C(
3572
3748
  () => `
3573
- ${Dn({
3749
+ ${jn({
3574
3750
  cssCode: e.cssCode,
3575
3751
  contentId: e.contentId
3576
3752
  })}
3577
- ${$n({
3753
+ ${On({
3578
3754
  customFonts: e.customFonts
3579
3755
  })}
3580
- ${On(e.isNestedRender)}
3756
+ ${Mn(e.isNestedRender)}
3581
3757
  `.trim()
3582
3758
  );
3583
- return /* @__PURE__ */ s(ne, { id: "builderio-content", styles: t });
3759
+ return /* @__PURE__ */ s(ie, { id: "builderio-content", styles: t });
3584
3760
  }
3585
- const Hn = ({
3761
+ const _n = ({
3586
3762
  content: e,
3587
3763
  data: t,
3588
3764
  locale: n
@@ -3599,7 +3775,7 @@ const Hn = ({
3599
3775
  locale: n
3600
3776
  } : {}
3601
3777
  };
3602
- }, Kn = ({
3778
+ }, zn = ({
3603
3779
  content: e,
3604
3780
  data: t
3605
3781
  }) => e ? {
@@ -3610,12 +3786,12 @@ const Hn = ({
3610
3786
  },
3611
3787
  meta: e == null ? void 0 : e.meta
3612
3788
  } : void 0;
3613
- function Ie(e) {
3614
- var c, u, f, d, m, g, p;
3789
+ function we(e) {
3790
+ var c, u, f, d, m, b, p;
3615
3791
  const [t, n] = C(
3616
3792
  () => {
3617
3793
  var I, x;
3618
- return Pn({
3794
+ return Wn({
3619
3795
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3620
3796
  variationId: (I = e.content) == null ? void 0 : I.testVariationId,
3621
3797
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -3631,25 +3807,25 @@ function Ie(e) {
3631
3807
  }
3632
3808
  const [o, r] = C(
3633
3809
  () => [
3634
- ...ke(),
3810
+ ...Ce(),
3635
3811
  ...e.customComponents || []
3636
3812
  ].reduce(
3637
- (I, { component: x, ...R }) => ({
3813
+ (I, { component: x, ...B }) => ({
3638
3814
  ...I,
3639
- [R.name]: {
3815
+ [B.name]: {
3640
3816
  component: x,
3641
- ...ge(R)
3817
+ ...ge(B)
3642
3818
  }
3643
3819
  }),
3644
3820
  {}
3645
3821
  )
3646
3822
  ), [a, l] = C(() => ({
3647
- content: Kn({
3823
+ content: zn({
3648
3824
  content: e.content,
3649
3825
  data: e.data
3650
3826
  }),
3651
3827
  localState: void 0,
3652
- rootState: Hn({
3828
+ rootState: _n({
3653
3829
  content: e.content,
3654
3830
  data: e.data,
3655
3831
  locale: e.locale
@@ -3660,12 +3836,12 @@ function Ie(e) {
3660
3836
  apiKey: e.apiKey,
3661
3837
  apiVersion: e.apiVersion,
3662
3838
  componentInfos: [
3663
- ...ke(),
3839
+ ...Ce(),
3664
3840
  ...e.customComponents || []
3665
3841
  ].reduce(
3666
- (I, { component: x, ...R }) => ({
3842
+ (I, { component: x, ...B }) => ({
3667
3843
  ...I,
3668
- [R.name]: ge(R)
3844
+ [B.name]: ge(B)
3669
3845
  }),
3670
3846
  {}
3671
3847
  ),
@@ -3674,13 +3850,13 @@ function Ie(e) {
3674
3850
  BlocksWrapperProps: e.blocksWrapperProps || {}
3675
3851
  }));
3676
3852
  return /* @__PURE__ */ s(
3677
- Be.Provider,
3853
+ Ee.Provider,
3678
3854
  {
3679
3855
  value: {
3680
3856
  registeredComponents: o
3681
3857
  },
3682
- children: /* @__PURE__ */ B(
3683
- Un,
3858
+ children: /* @__PURE__ */ E(
3859
+ Kn,
3684
3860
  {
3685
3861
  content: e.content,
3686
3862
  data: e.data,
@@ -3698,14 +3874,14 @@ function Ie(e) {
3698
3874
  setBuilderContextSignal: l,
3699
3875
  children: [
3700
3876
  e.isSsrAbTest ? /* @__PURE__ */ s(
3701
- ce,
3877
+ de,
3702
3878
  {
3703
3879
  id: "builderio-variant-visibility",
3704
3880
  scriptStr: t
3705
3881
  }
3706
3882
  ) : null,
3707
3883
  /* @__PURE__ */ s(
3708
- Mn,
3884
+ qn,
3709
3885
  {
3710
3886
  isNestedRender: e.isNestedRender,
3711
3887
  contentId: (c = a.content) == null ? void 0 : c.id,
@@ -3714,9 +3890,9 @@ function Ie(e) {
3714
3890
  }
3715
3891
  ),
3716
3892
  /* @__PURE__ */ s(
3717
- D,
3893
+ L,
3718
3894
  {
3719
- blocks: (p = (g = a.content) == null ? void 0 : g.data) == null ? void 0 : p.blocks,
3895
+ blocks: (p = (b = a.content) == null ? void 0 : b.data) == null ? void 0 : p.blocks,
3720
3896
  context: a,
3721
3897
  registeredComponents: o,
3722
3898
  linkComponent: e.linkComponent
@@ -3728,7 +3904,7 @@ function Ie(e) {
3728
3904
  }
3729
3905
  );
3730
3906
  }
3731
- function qn(e) {
3907
+ function Jn(e) {
3732
3908
  var a;
3733
3909
  const [t, n] = C(
3734
3910
  () => En({
@@ -3738,7 +3914,7 @@ function qn(e) {
3738
3914
  );
3739
3915
  function i() {
3740
3916
  var l;
3741
- return Vn(
3917
+ return Nn(
3742
3918
  Y(e.content).map((c) => ({
3743
3919
  id: c.testVariationId,
3744
3920
  testRatio: c.testRatio
@@ -3754,37 +3930,38 @@ function qn(e) {
3754
3930
  return t ? {
3755
3931
  ...e.content,
3756
3932
  testVariationId: (l = e.content) == null ? void 0 : l.id
3757
- } : Ze({
3933
+ } : et({
3758
3934
  item: e.content,
3759
3935
  canTrack: Q(e.canTrack)
3760
3936
  });
3761
3937
  }
3762
3938
  return P(() => {
3763
- }, []), /* @__PURE__ */ B(E, { children: [
3764
- !e.isNestedRender && L !== "reactNative" ? /* @__PURE__ */ s(
3765
- ce,
3939
+ }, []), P(() => {
3940
+ }), /* @__PURE__ */ E(R, { children: [
3941
+ !e.isNestedRender && _ !== "reactNative" ? /* @__PURE__ */ s(
3942
+ de,
3766
3943
  {
3767
3944
  id: "builderio-init-variants-fns",
3768
- scriptStr: Bn()
3945
+ scriptStr: An()
3769
3946
  }
3770
3947
  ) : null,
3771
- t ? /* @__PURE__ */ B(E, { children: [
3948
+ t ? /* @__PURE__ */ E(R, { children: [
3772
3949
  /* @__PURE__ */ s(
3773
- ne,
3950
+ ie,
3774
3951
  {
3775
3952
  id: "builderio-variants",
3776
3953
  styles: o()
3777
3954
  }
3778
3955
  ),
3779
3956
  /* @__PURE__ */ s(
3780
- ce,
3957
+ de,
3781
3958
  {
3782
3959
  id: "builderio-variants-visibility",
3783
3960
  scriptStr: i()
3784
3961
  }
3785
3962
  ),
3786
3963
  (a = Y(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
3787
- Ie,
3964
+ we,
3788
3965
  {
3789
3966
  isNestedRender: e.isNestedRender,
3790
3967
  content: l,
@@ -3810,7 +3987,7 @@ function qn(e) {
3810
3987
  ))
3811
3988
  ] }) : null,
3812
3989
  /* @__PURE__ */ s(
3813
- Ie,
3990
+ we,
3814
3991
  {
3815
3992
  isNestedRender: e.isNestedRender,
3816
3993
  content: r(),
@@ -3835,13 +4012,13 @@ function qn(e) {
3835
4012
  )
3836
4013
  ] });
3837
4014
  }
3838
- const _n = async ({
4015
+ const Yn = async ({
3839
4016
  builderContextValue: e,
3840
4017
  symbol: t
3841
4018
  }) => {
3842
4019
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
3843
4020
  (e != null && e.apiKey))
3844
- return we({
4021
+ return Re({
3845
4022
  model: t.model,
3846
4023
  apiKey: e.apiKey,
3847
4024
  apiVersion: e.apiVersion,
@@ -3854,7 +4031,7 @@ const _n = async ({
3854
4031
  Z.error("Could not fetch symbol content: ", n);
3855
4032
  });
3856
4033
  };
3857
- function zn(e) {
4034
+ function Gn(e) {
3858
4035
  var l, c, u, f;
3859
4036
  function t() {
3860
4037
  return "div";
@@ -3865,7 +4042,7 @@ function zn(e) {
3865
4042
  function i() {
3866
4043
  var d, m;
3867
4044
  return [
3868
- e.attributes[q()],
4045
+ e.attributes[K()],
3869
4046
  "builder-symbol",
3870
4047
  (d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
3871
4048
  (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
@@ -3876,7 +4053,7 @@ function zn(e) {
3876
4053
  return (d = e.symbol) == null ? void 0 : d.content;
3877
4054
  });
3878
4055
  function a() {
3879
- o || _n({
4056
+ o || Yn({
3880
4057
  symbol: e.symbol,
3881
4058
  builderContextValue: e.builderContext
3882
4059
  }).then((d) => {
@@ -3887,7 +4064,7 @@ function zn(e) {
3887
4064
  }, []), P(() => {
3888
4065
  a();
3889
4066
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
3890
- qn,
4067
+ Jn,
3891
4068
  {
3892
4069
  isNestedRender: !0,
3893
4070
  apiVersion: e.builderContext.apiVersion,
@@ -3912,15 +4089,15 @@ function zn(e) {
3912
4089
  ) });
3913
4090
  }
3914
4091
  export {
3915
- D as Blocks,
3916
- me as BuilderContext,
3917
- nt as Button,
3918
- $t as Columns,
3919
- qn as Content,
4092
+ L as Blocks,
4093
+ fe as BuilderContext,
4094
+ it as Button,
4095
+ Lt as Columns,
4096
+ Jn as Content,
3920
4097
  Dt as Fragment,
3921
- jt as Image,
3922
- Ut as Section,
3923
- zn as Symbol,
3924
- tn as Text,
3925
- Cn as Video
4098
+ Ut as Image,
4099
+ Mt as Section,
4100
+ Gn as Symbol,
4101
+ nn as Text,
4102
+ wn as Video
3926
4103
  };