@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,17 +1,17 @@
1
1
  "use client";
2
- var He = Object.defineProperty;
3
- var Ke = (e, t, n) => t in e ? He(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
- var ie = (e, t, n) => (Ke(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, checkIsDefined as Y, logger as Z, isBrowser as G, fastClone as de, isEditing as $, registerInsertMenu as qe, setupBrowserForEditing as _e, createRegisterComponentMessage as ze, getDefaultCanTrack as Q, _track as he, isPreviewing as Je, fetchOneEntry as Ie, createEditorListener as Ye, fetch as Ge, serializeComponentInfo as ge, handleABTestingSync as Qe } from "./server-entry-ea775ab5.js";
7
- import { createContext as we, useState as C, useEffect as P, useContext as be, useRef as ee, createElement as Ee } from "react";
8
- import { getFunctionArguments as Xe, runInNode as Ze, parseCode as et, getBuilderGlobals as tt, set as Re } from "./node-runtime-79df5f59.js";
9
- const nt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), it = (e) => typeof e == "string" && nt.has(e.toLowerCase());
10
- function ue(e) {
11
- return /* @__PURE__ */ s(E, { children: it(e.TagName) ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(E, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
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 oe = (e, t, n) => (qe(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 q, checkIsDefined as Y, logger as Z, isBrowser as G, fastClone as ue, isEditing as F, registerInsertMenu as _e, setupBrowserForEditing as ze, createRegisterComponentMessage as Je, getDefaultCanTrack as Q, _track as be, isPreviewing as Ye, fetchOneEntry as we, createEditorListener as Ge, fetch as Qe, serializeComponentInfo as ge, handleABTestingSync as Xe } from "./server-entry-9942a35a.js";
7
+ import { createContext as Re, useState as C, useEffect as P, useContext as pe, useRef as ee, createElement as Be } from "react";
8
+ import { getFunctionArguments as Ze, runInNode as et, parseCode as tt, getBuilderGlobals as nt, set as Pe } from "./node-runtime-13876a87.js";
9
+ const it = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ot = (e) => typeof e == "string" && it.has(e.toLowerCase());
10
+ function me(e) {
11
+ return /* @__PURE__ */ s(R, { children: ot(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 }) }) });
12
12
  }
13
- const K = () => {
14
- switch (L) {
13
+ const H = () => {
14
+ switch (q) {
15
15
  case "react":
16
16
  case "reactNative":
17
17
  case "rsc":
@@ -24,11 +24,11 @@ const K = () => {
24
24
  return "class";
25
25
  }
26
26
  };
27
- function ot(e) {
27
+ function at(e) {
28
28
  function t() {
29
29
  return {
30
30
  ...e.attributes,
31
- [K()]: `${e.link ? "" : "builder-button"} ${e.attributes[K()] || ""}`,
31
+ [H()]: `${e.link ? "" : "builder-button"} ${e.attributes[H()] || ""}`,
32
32
  ...e.link ? {
33
33
  href: e.link,
34
34
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -39,7 +39,7 @@ function ot(e) {
39
39
  };
40
40
  }
41
41
  return /* @__PURE__ */ s(
42
- ue,
42
+ me,
43
43
  {
44
44
  attributes: t(),
45
45
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
@@ -48,7 +48,7 @@ function ot(e) {
48
48
  }
49
49
  );
50
50
  }
51
- const me = we({
51
+ const fe = Re({
52
52
  content: null,
53
53
  context: {},
54
54
  localState: void 0,
@@ -61,15 +61,15 @@ const me = we({
61
61
  inheritedStyles: {},
62
62
  BlocksWrapper: "div",
63
63
  BlocksWrapperProps: {}
64
- }), Be = we({ registeredComponents: {} });
65
- function at(e) {
64
+ }), Ee = Re({ registeredComponents: {} });
65
+ function rt(e) {
66
66
  var t;
67
67
  return {
68
68
  ...(t = e.component) == null ? void 0 : t.options,
69
69
  ...e.options
70
70
  };
71
71
  }
72
- const rt = ({
72
+ const lt = ({
73
73
  code: e,
74
74
  builder: t,
75
75
  context: n,
@@ -78,7 +78,7 @@ const rt = ({
78
78
  rootSetState: l,
79
79
  rootState: a
80
80
  }) => {
81
- const r = Xe({
81
+ const r = Ze({
82
82
  builder: t,
83
83
  context: n,
84
84
  event: i,
@@ -115,17 +115,17 @@ function Ve({
115
115
  }
116
116
  });
117
117
  }
118
- function lt() {
118
+ function st() {
119
119
  var e;
120
120
  return typeof process != "undefined" && Y((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
121
121
  }
122
- const st = () => {
122
+ const ct = () => {
123
123
  var i;
124
- if (!lt())
124
+ if (!st())
125
125
  return !1;
126
126
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
127
127
  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;
128
- }, ct = (e) => G() || st() ? rt(e) : Ze(e), O = class O {
128
+ }, dt = (e) => G() || ct() ? lt(e) : et(e), D = class D {
129
129
  static getCacheKey(t) {
130
130
  return JSON.stringify({
131
131
  ...t,
@@ -135,17 +135,17 @@ const st = () => {
135
135
  });
136
136
  }
137
137
  static getCachedValue(t) {
138
- return O.cache.get(t);
138
+ return D.cache.get(t);
139
139
  }
140
140
  static setCachedValue(t, n) {
141
- O.cache.size > 20 && O.cache.delete(O.cache.keys().next().value), O.cache.set(t, {
141
+ D.cache.size > 20 && D.cache.delete(D.cache.keys().next().value), D.cache.set(t, {
142
142
  value: n
143
143
  });
144
144
  }
145
145
  };
146
- ie(O, "cacheLimit", 20), ie(O, "cache", /* @__PURE__ */ new Map());
147
- let M = O;
148
- function q({
146
+ oe(D, "cacheLimit", 20), oe(D, "cache", /* @__PURE__ */ new Map());
147
+ let U = D;
148
+ function K({
149
149
  code: e,
150
150
  context: t,
151
151
  localState: n,
@@ -158,10 +158,10 @@ function q({
158
158
  if (e === "")
159
159
  return;
160
160
  const c = {
161
- code: et(e, {
161
+ code: tt(e, {
162
162
  isExpression: a
163
163
  }),
164
- builder: tt(),
164
+ builder: nt(),
165
165
  context: t,
166
166
  event: l,
167
167
  rootSetState: o,
@@ -169,15 +169,15 @@ function q({
169
169
  localState: n
170
170
  };
171
171
  if (r) {
172
- const u = M.getCacheKey(c), f = M.getCachedValue(u);
172
+ const u = U.getCacheKey(c), f = U.getCachedValue(u);
173
173
  if (f)
174
174
  return f.value;
175
175
  }
176
176
  try {
177
- const u = ct(c);
177
+ const u = dt(c);
178
178
  if (r) {
179
- const f = M.getCacheKey(c);
180
- M.setCachedValue(f, u);
179
+ const f = U.getCacheKey(c);
180
+ U.setCachedValue(f, u);
181
181
  }
182
182
  return u;
183
183
  } catch (u) {
@@ -187,7 +187,7 @@ function q({
187
187
  return;
188
188
  }
189
189
  }
190
- const dt = ({
190
+ const ut = ({
191
191
  block: e,
192
192
  context: t,
193
193
  localState: n,
@@ -196,7 +196,7 @@ const dt = ({
196
196
  }) => {
197
197
  if (!e.bindings)
198
198
  return e;
199
- const l = de(e), a = {
199
+ const l = ue(e), a = {
200
200
  ...l,
201
201
  properties: {
202
202
  ...l.properties
@@ -206,7 +206,7 @@ const dt = ({
206
206
  }
207
207
  };
208
208
  for (const r in e.bindings) {
209
- const c = e.bindings[r], u = q({
209
+ const c = e.bindings[r], u = K({
210
210
  code: c,
211
211
  localState: n,
212
212
  rootState: i,
@@ -214,7 +214,7 @@ const dt = ({
214
214
  context: t,
215
215
  enableCache: !0
216
216
  });
217
- Re(a, r, u);
217
+ Pe(a, r, u);
218
218
  }
219
219
  return a;
220
220
  };
@@ -227,7 +227,7 @@ function X({
227
227
  rootSetState: l
228
228
  }) {
229
229
  const a = e;
230
- return n ? dt({
230
+ return n ? ut({
231
231
  block: a,
232
232
  localState: i,
233
233
  rootState: o,
@@ -236,7 +236,7 @@ function X({
236
236
  }) : a;
237
237
  }
238
238
  const te = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
239
- function ut(e, t, n = {}) {
239
+ function mt(e, t, n = {}) {
240
240
  let i, o, l, a = null, r = 0;
241
241
  const c = function() {
242
242
  r = n.leading === !1 ? 0 : Date.now(), a = null, l = e.apply(i, o), a || (i = o = null);
@@ -248,7 +248,7 @@ function ut(e, t, n = {}) {
248
248
  return i = this, o = arguments, f <= 0 || f > t ? (a && (clearTimeout(a), a = null), r = u, l = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(c, f)), l;
249
249
  };
250
250
  }
251
- function H(e, ...t) {
251
+ function M(e, ...t) {
252
252
  const n = Object(e);
253
253
  for (let i = 1; i < arguments.length; i++) {
254
254
  const o = arguments[i];
@@ -258,64 +258,64 @@ function H(e, ...t) {
258
258
  }
259
259
  return n;
260
260
  }
261
- function mt(e) {
261
+ function ft(e) {
262
262
  for (const t of e)
263
263
  switch (t.trigger) {
264
264
  case "pageLoad":
265
- Ne(t);
265
+ We(t);
266
266
  break;
267
267
  case "scrollInView":
268
- ht(t);
268
+ bt(t);
269
269
  break;
270
270
  }
271
271
  }
272
- function Pe(e) {
272
+ function Ae(e) {
273
273
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
274
274
  }
275
- function Ae(e, t) {
276
- const n = ft(e), i = getComputedStyle(t), o = e.steps[0].styles, l = e.steps[e.steps.length - 1].styles, a = [o, l];
275
+ function Ne(e, t) {
276
+ const n = ht(e), i = getComputedStyle(t), o = e.steps[0].styles, l = e.steps[e.steps.length - 1].styles, a = [o, l];
277
277
  for (const r of a)
278
278
  for (const c of n)
279
279
  c in r || (r[c] = i[c]);
280
280
  }
281
- function ft(e) {
281
+ function ht(e) {
282
282
  const t = [];
283
283
  for (const n of e.steps)
284
284
  for (const i in n.styles)
285
285
  t.indexOf(i) === -1 && t.push(i);
286
286
  return t;
287
287
  }
288
- function Ne(e) {
288
+ function We(e) {
289
289
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
290
290
  if (!t.length) {
291
- Pe(e.elementId || e.id || "");
291
+ Ae(e.elementId || e.id || "");
292
292
  return;
293
293
  }
294
294
  Array.from(t).forEach((n) => {
295
- Ae(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
296
- 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(() => {
295
+ Ne(e, n), n.style.transition = "none", n.style.transitionDelay = "0", M(n.style, e.steps[0].styles), setTimeout(() => {
296
+ n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), M(n.style, e.steps[1].styles), setTimeout(() => {
297
297
  n.style.transition = "", n.style.transitionDelay = "";
298
298
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
299
299
  });
300
300
  });
301
301
  }
302
- function ht(e) {
302
+ function bt(e) {
303
303
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
304
304
  if (!t.length) {
305
- Pe(e.elementId || e.id || "");
305
+ Ae(e.elementId || e.id || "");
306
306
  return;
307
307
  }
308
308
  Array.from(t).forEach((n) => {
309
- Ae(e, n);
309
+ Ne(e, n);
310
310
  let i = !1, o = !1;
311
311
  function l() {
312
312
  !i && r(n) ? (i = !0, o = !0, setTimeout(() => {
313
- H(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
313
+ M(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
314
314
  o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
315
315
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
316
- })) : e.repeat && i && !o && !r(n) && (i = !1, H(n.style, e.steps[0].styles));
316
+ })) : e.repeat && i && !o && !r(n) && (i = !1, M(n.style, e.steps[0].styles));
317
317
  }
318
- const a = ut(l, 200, {
318
+ const a = mt(l, 200, {
319
319
  leading: !1
320
320
  });
321
321
  function r(f) {
@@ -324,7 +324,7 @@ function ht(e) {
324
324
  }
325
325
  const c = e.steps[0].styles;
326
326
  function u() {
327
- H(n.style, c);
327
+ M(n.style, c);
328
328
  }
329
329
  u(), setTimeout(() => {
330
330
  n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
@@ -334,10 +334,10 @@ function ht(e) {
334
334
  }), l();
335
335
  });
336
336
  }
337
- const Fe = (e) => Object.entries(e).map(([n, i]) => {
337
+ const $e = (e) => Object.entries(e).map(([n, i]) => {
338
338
  if (typeof i == "string")
339
339
  return `${te(n)}: ${i};`;
340
- }).filter(Y), gt = (e) => Fe(e).join(`
340
+ }).filter(Y), gt = (e) => $e(e).join(`
341
341
  `), z = ({
342
342
  mediaQuery: e,
343
343
  className: t,
@@ -350,26 +350,26 @@ const Fe = (e) => Object.entries(e).map(([n, i]) => {
350
350
  ${i}
351
351
  }` : i;
352
352
  };
353
- function bt({
353
+ function pt({
354
354
  style: e
355
355
  }) {
356
356
  return e;
357
357
  }
358
- const pt = ({
358
+ const yt = ({
359
359
  block: e,
360
360
  context: t
361
- }) => We(bt({
361
+ }) => Fe(pt({
362
362
  style: e.style || {},
363
363
  context: t,
364
364
  block: e
365
365
  }));
366
- function We(e) {
367
- switch (L) {
366
+ function Fe(e) {
367
+ switch (q) {
368
368
  case "svelte":
369
369
  case "vue":
370
370
  case "solid":
371
371
  case "angular":
372
- return Fe(e).join(" ");
372
+ return $e(e).join(" ");
373
373
  case "qwik":
374
374
  case "reactNative":
375
375
  case "react":
@@ -377,7 +377,7 @@ function We(e) {
377
377
  return e;
378
378
  }
379
379
  }
380
- const yt = ({
380
+ const xt = ({
381
381
  block: e,
382
382
  context: t,
383
383
  registeredComponents: n
@@ -399,7 +399,7 @@ const yt = ({
399
399
  console.warn(`
400
400
  Could not find a registered component named "${i}".
401
401
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
402
- }, xt = ({
402
+ }, vt = ({
403
403
  block: e,
404
404
  context: t
405
405
  }) => {
@@ -409,7 +409,7 @@ const yt = ({
409
409
  } = e;
410
410
  if (!(n != null && n.collection))
411
411
  return;
412
- const o = q({
412
+ const o = K({
413
413
  code: n.collection,
414
414
  localState: t.localState,
415
415
  rootState: t.rootState,
@@ -433,15 +433,23 @@ const yt = ({
433
433
  },
434
434
  block: i
435
435
  }));
436
- }, St = (e, t) => e && (e.isRSC && L === "rsc" || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)) ? {
436
+ }, ne = (e) => ({
437
+ // once we bump to a major version, toggle this to `false`.
438
+ builderBlock: !0,
439
+ // once we bump to a major version, toggle this to `false`.
440
+ builderContext: !0,
441
+ builderComponents: !1,
442
+ builderLinkComponent: !1,
443
+ ...e
444
+ }), St = (e, t) => e ? ne(e.shouldReceiveBuilderProps).builderLinkComponent ? {
437
445
  builderLinkComponent: t
438
- } : {}, vt = (e, t) => e && (e.isRSC && L === "rsc" || ["Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)) ? {
446
+ } : {} : {}, kt = (e, t) => e ? ne(e.shouldReceiveBuilderProps).builderComponents ? {
439
447
  builderComponents: t
440
- } : {}, kt = (e, t) => e && (e.isRSC && L === "rsc" || L === "reactNative" || ["Builder:Accordion", "Columns", "Form:Form", "Builder: Tabs", "Symbol", "Image", "Video"].includes(e.name)) ? {
448
+ } : {} : {}, Ct = (e, t) => e ? ne(e.shouldReceiveBuilderProps).builderBlock ? {
441
449
  builderBlock: t
442
- } : {}, Ct = (e, t) => e && (e.isRSC && L === "rsc" || ["Builder:Accordion", "Columns", "Form:Form", "Builder: Tabs", "Symbol", "Slot"].includes(e.name)) ? {
450
+ } : {} : {}, Tt = (e, t) => e ? ne(e.shouldReceiveBuilderProps).builderContext ? {
443
451
  builderContext: t
444
- } : {}, $e = {
452
+ } : {} : {}, Le = {
445
453
  small: {
446
454
  min: 320,
447
455
  default: 321,
@@ -457,11 +465,11 @@ const yt = ({
457
465
  default: 991,
458
466
  max: 1200
459
467
  }
460
- }, pe = (e, t = $e) => `@media (max-width: ${t[e].max}px)`, De = ({
468
+ }, ye = (e, t = Le) => `@media (max-width: ${t[e].max}px)`, De = ({
461
469
  small: e,
462
470
  medium: t
463
471
  }) => {
464
- const n = de($e);
472
+ const n = ue(Le);
465
473
  if (!e || !t)
466
474
  return n;
467
475
  const i = Math.floor(e / 2);
@@ -484,7 +492,7 @@ const yt = ({
484
492
  default: l + 1
485
493
  }, n;
486
494
  };
487
- function ne(e) {
495
+ function ie(e) {
488
496
  return /* @__PURE__ */ s(
489
497
  "style",
490
498
  {
@@ -493,7 +501,7 @@ function ne(e) {
493
501
  }
494
502
  );
495
503
  }
496
- function Tt(e) {
504
+ function It(e) {
497
505
  function t() {
498
506
  const i = X({
499
507
  block: e.block,
@@ -506,7 +514,7 @@ function Tt(e) {
506
514
  return Y(i.hide) ? !i.hide : Y(i.show) ? i.show : !0;
507
515
  }
508
516
  function n() {
509
- var x, R, V;
517
+ var x, B, V;
510
518
  const i = X({
511
519
  block: e.block,
512
520
  localState: e.context.localState,
@@ -525,21 +533,21 @@ function Tt(e) {
525
533
  }) : "", m = c ? z({
526
534
  className: f,
527
535
  styles: c,
528
- mediaQuery: pe(
536
+ mediaQuery: ye(
529
537
  "medium",
530
538
  a
531
539
  )
532
- }) : "", g = u ? z({
540
+ }) : "", b = u ? z({
533
541
  className: f,
534
542
  styles: u,
535
- mediaQuery: pe(
543
+ mediaQuery: ye(
536
544
  "small",
537
545
  a
538
546
  )
539
547
  }) : "", p = i.animations && i.animations.find((A) => A.trigger === "hover");
540
548
  let I = "";
541
549
  if (p) {
542
- const A = ((V = (R = p.steps) == null ? void 0 : R[1]) == null ? void 0 : V.styles) || {};
550
+ const A = ((V = (B = p.steps) == null ? void 0 : B[1]) == null ? void 0 : V.styles) || {};
543
551
  I = z({
544
552
  className: `${f}:hover`,
545
553
  styles: {
@@ -554,16 +562,16 @@ function Tt(e) {
554
562
  return [
555
563
  d,
556
564
  m,
557
- g,
565
+ b,
558
566
  I
559
567
  ].join(" ");
560
568
  }
561
- return /* @__PURE__ */ s(E, { children: n() && t() ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(ne, { id: "builderio-block", styles: n() }) }) : null });
569
+ return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(ie, { id: "builderio-block", styles: n() }) }) : null });
562
570
  }
563
- function It(e) {
571
+ function wt(e) {
564
572
  return e.charAt(0).toUpperCase() + e.slice(1);
565
573
  }
566
- const wt = (e) => `on${It(e)}`, Et = (e, t) => (n) => q({
574
+ const Rt = (e) => `on${wt(e)}`, Bt = (e, t) => (n) => K({
567
575
  code: e,
568
576
  context: t.context,
569
577
  localState: t.localState,
@@ -573,16 +581,16 @@ const wt = (e) => `on${It(e)}`, Et = (e, t) => (n) => q({
573
581
  isExpression: !1,
574
582
  enableCache: !0
575
583
  });
576
- function Le(e) {
584
+ function Oe(e) {
577
585
  var i;
578
586
  const t = {}, n = (i = e.block.actions) != null ? i : {};
579
587
  for (const o in n) {
580
588
  if (!n.hasOwnProperty(o))
581
589
  continue;
582
590
  const l = n[o];
583
- let a = wt(o);
591
+ let a = Rt(o);
584
592
  if (e.stripPrefix)
585
- switch (L) {
593
+ switch (q) {
586
594
  case "vue":
587
595
  a = a.replace("v-on:", "");
588
596
  break;
@@ -590,34 +598,34 @@ function Le(e) {
590
598
  a = a.replace("on:", "");
591
599
  break;
592
600
  }
593
- t[a] = Et(l, e);
601
+ t[a] = Bt(l, e);
594
602
  }
595
603
  return t;
596
604
  }
597
- function Rt({
605
+ function Pt({
598
606
  properties: e
599
607
  }) {
600
608
  return e;
601
609
  }
602
- const Bt = (e) => ({
610
+ const Et = (e) => ({
603
611
  href: e.href
604
612
  });
605
- function fe({
613
+ function he({
606
614
  block: e,
607
615
  context: t
608
616
  }) {
609
617
  var i;
610
618
  const n = {
611
- ...Bt(e),
619
+ ...Et(e),
612
620
  ...e.properties,
613
621
  "builder-id": e.id,
614
- style: pt({
622
+ style: yt({
615
623
  block: e,
616
624
  context: t
617
625
  }),
618
- [K()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
626
+ [H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
619
627
  };
620
- return Rt({
628
+ return Pt({
621
629
  properties: n,
622
630
  context: t,
623
631
  block: e
@@ -625,14 +633,14 @@ function fe({
625
633
  }
626
634
  function Vt(e) {
627
635
  return /* @__PURE__ */ s(
628
- ue,
636
+ me,
629
637
  {
630
638
  TagName: e.Wrapper,
631
- attributes: fe({
639
+ attributes: he({
632
640
  block: e.block,
633
641
  context: e.context
634
642
  }),
635
- actionAttributes: Le({
643
+ actionAttributes: Oe({
636
644
  block: e.block,
637
645
  rootState: e.context.rootState,
638
646
  rootSetState: e.context.rootSetState,
@@ -644,14 +652,14 @@ function Vt(e) {
644
652
  }
645
653
  );
646
654
  }
647
- function Pt(e) {
655
+ function At(e) {
648
656
  function t() {
649
657
  return e.includeBlockProps ? {
650
- ...fe({
658
+ ...he({
651
659
  block: e.block,
652
660
  context: e.context
653
661
  }),
654
- ...Le({
662
+ ...Oe({
655
663
  block: e.block,
656
664
  rootState: e.context.rootState,
657
665
  rootSetState: e.context.rootSetState,
@@ -662,7 +670,7 @@ function Pt(e) {
662
670
  }
663
671
  return /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
664
672
  }
665
- const At = ({
673
+ const Nt = ({
666
674
  componentOptions: e,
667
675
  builderBlock: t,
668
676
  context: n,
@@ -678,7 +686,7 @@ const At = ({
678
686
  * component itself directly. Otherwise, they are provided to the wrapper element.
679
687
  */
680
688
  ...o ? {
681
- attributes: fe({
689
+ attributes: he({
682
690
  block: t,
683
691
  context: a
684
692
  })
@@ -692,15 +700,15 @@ const At = ({
692
700
  includeBlockProps: o
693
701
  } : r;
694
702
  };
695
- function ye(e) {
703
+ function xe(e) {
696
704
  var i;
697
705
  const [t, n] = C(
698
- () => e.isInteractive ? Pt : e.componentRef
706
+ () => e.isInteractive ? At : e.componentRef
699
707
  );
700
- return /* @__PURE__ */ s(E, { children: e.componentRef ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
708
+ return /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
701
709
  t,
702
710
  {
703
- ...At({
711
+ ...Nt({
704
712
  componentOptions: e.componentOptions,
705
713
  builderBlock: e.builderBlock,
706
714
  context: e.context,
@@ -723,9 +731,9 @@ function ye(e) {
723
731
  }
724
732
  ) }) : null });
725
733
  }
726
- function Nt(e) {
734
+ function Wt(e) {
727
735
  const [t, n] = C(() => e.repeatContext);
728
- return /* @__PURE__ */ s(me.Provider, { value: t, children: /* @__PURE__ */ s(
736
+ return /* @__PURE__ */ s(fe.Provider, { value: t, children: /* @__PURE__ */ s(
729
737
  _,
730
738
  {
731
739
  block: e.block,
@@ -738,14 +746,14 @@ function Nt(e) {
738
746
  function _(e) {
739
747
  var c, u, f;
740
748
  function t() {
741
- return yt({
749
+ return xt({
742
750
  block: e.block,
743
751
  context: e.context,
744
752
  registeredComponents: e.registeredComponents
745
753
  });
746
754
  }
747
755
  function n() {
748
- return xt({
756
+ return vt({
749
757
  block: e.block,
750
758
  context: e.context
751
759
  });
@@ -766,27 +774,27 @@ function _(e) {
766
774
  return e.block.tagName === "a" || ((m = i().properties) == null ? void 0 : m.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
767
775
  }
768
776
  function l() {
769
- var g, p;
770
- if ((g = e.block.repeat) != null && g.collection)
777
+ var b, p;
778
+ if ((b = e.block.repeat) != null && b.collection)
771
779
  return !!((p = n == null ? void 0 : n()) != null && p.length);
772
780
  const d = "hide" in i() ? i().hide : !1;
773
781
  return ("show" in i() ? i().show : !0) && !d;
774
782
  }
775
783
  function a() {
776
- var m, g;
777
- return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (g = i().children) != null ? g : [] : [];
784
+ var m, b;
785
+ return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (b = i().children) != null ? b : [] : [];
778
786
  }
779
787
  function r() {
780
- var d, m, g, p;
788
+ var d, m, b, p;
781
789
  return {
782
790
  blockChildren: (d = i().children) != null ? d : [],
783
791
  componentRef: (m = t == null ? void 0 : t()) == null ? void 0 : m.component,
784
792
  componentOptions: {
785
- ...at(i()),
786
- ...kt(t(), i()),
787
- ...Ct(t(), e.context),
793
+ ...rt(i()),
794
+ ...Ct(t(), i()),
795
+ ...Tt(t(), e.context),
788
796
  ...St(t(), e.linkComponent),
789
- ...vt(
797
+ ...kt(
790
798
  t(),
791
799
  e.registeredComponents
792
800
  )
@@ -795,22 +803,22 @@ function _(e) {
795
803
  linkComponent: e.linkComponent,
796
804
  registeredComponents: e.registeredComponents,
797
805
  builderBlock: i(),
798
- includeBlockProps: ((g = t == null ? void 0 : t()) == null ? void 0 : g.noWrap) === !0,
806
+ includeBlockProps: ((b = t == null ? void 0 : t()) == null ? void 0 : b.noWrap) === !0,
799
807
  isInteractive: !((p = t == null ? void 0 : t()) != null && p.isRSC)
800
808
  };
801
809
  }
802
810
  return P(() => {
803
811
  const d = i().id, m = i().animations;
804
- m && d && mt(
805
- m.map((g) => ({
806
- ...g,
812
+ m && d && ft(
813
+ m.map((b) => ({
814
+ ...b,
807
815
  elementId: d
808
816
  }))
809
817
  );
810
- }, []), /* @__PURE__ */ s(E, { children: l() ? /* @__PURE__ */ B(E, { children: [
811
- /* @__PURE__ */ s(Tt, { block: e.block, context: e.context }),
812
- (c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
813
- ye,
818
+ }, []), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ E(R, { children: [
819
+ /* @__PURE__ */ s(It, { block: e.block, context: e.context }),
820
+ (c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
821
+ xe,
814
822
  {
815
823
  componentRef: r().componentRef,
816
824
  componentOptions: r().componentOptions,
@@ -822,8 +830,8 @@ function _(e) {
822
830
  includeBlockProps: r().includeBlockProps,
823
831
  isInteractive: r().isInteractive
824
832
  }
825
- ) }) : /* @__PURE__ */ s(E, { children: n() ? /* @__PURE__ */ s(E, { children: (f = n()) == null ? void 0 : f.map((d, m) => /* @__PURE__ */ s(
826
- Nt,
833
+ ) }) : /* @__PURE__ */ s(R, { children: n() ? /* @__PURE__ */ s(R, { children: (f = n()) == null ? void 0 : f.map((d, m) => /* @__PURE__ */ s(
834
+ Wt,
827
835
  {
828
836
  repeatContext: d.context,
829
837
  block: d.block,
@@ -831,7 +839,7 @@ function _(e) {
831
839
  linkComponent: e.linkComponent
832
840
  },
833
841
  m
834
- )) }) : /* @__PURE__ */ B(
842
+ )) }) : /* @__PURE__ */ E(
835
843
  Vt,
836
844
  {
837
845
  Wrapper: o(),
@@ -839,7 +847,7 @@ function _(e) {
839
847
  context: e.context,
840
848
  children: [
841
849
  /* @__PURE__ */ s(
842
- ye,
850
+ xe,
843
851
  {
844
852
  componentRef: r().componentRef,
845
853
  componentOptions: r().componentOptions,
@@ -867,14 +875,14 @@ function _(e) {
867
875
  ) })
868
876
  ] }) : null });
869
877
  }
870
- function Ft(e) {
878
+ function $t(e) {
871
879
  function t() {
872
880
  var o;
873
881
  return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
874
882
  }
875
883
  function n() {
876
884
  var o, l;
877
- $() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
885
+ F() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
878
886
  {
879
887
  type: "builder.clickEmptyBlocks",
880
888
  data: {
@@ -887,7 +895,7 @@ function Ft(e) {
887
895
  }
888
896
  function i() {
889
897
  var o, l;
890
- $() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
898
+ F() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
891
899
  {
892
900
  type: "builder.hoverEmptyBlocks",
893
901
  data: {
@@ -898,7 +906,7 @@ function Ft(e) {
898
906
  "*"
899
907
  ));
900
908
  }
901
- return /* @__PURE__ */ B(E, { children: [
909
+ return /* @__PURE__ */ E(R, { children: [
902
910
  /* @__PURE__ */ s(
903
911
  e.BlocksWrapper,
904
912
  {
@@ -920,11 +928,11 @@ function Ft(e) {
920
928
  }` })
921
929
  ] });
922
930
  }
923
- function D(e) {
931
+ function L(e) {
924
932
  var i, o, l;
925
- const t = be(me), n = be(Be);
933
+ const t = pe(fe), n = pe(Ee);
926
934
  return /* @__PURE__ */ s(
927
- Ft,
935
+ $t,
928
936
  {
929
937
  blocks: e.blocks,
930
938
  parent: e.parent,
@@ -932,7 +940,7 @@ function D(e) {
932
940
  styleProp: e.styleProp,
933
941
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
934
942
  BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
935
- children: e.blocks ? /* @__PURE__ */ s(E, { children: (l = e.blocks) == null ? void 0 : l.map((a) => /* @__PURE__ */ s(
943
+ children: e.blocks ? /* @__PURE__ */ s(R, { children: (l = e.blocks) == null ? void 0 : l.map((a) => /* @__PURE__ */ s(
936
944
  _,
937
945
  {
938
946
  block: a,
@@ -945,38 +953,38 @@ function D(e) {
945
953
  }
946
954
  );
947
955
  }
948
- const Wt = (e) => `builder-columns ${e}-breakpoints`;
949
- function $t(e) {
950
- var A, j;
956
+ const Ft = (e) => `builder-columns ${e}-breakpoints`;
957
+ function Lt(e) {
958
+ var A, O;
951
959
  const [t, n] = C(
952
960
  () => typeof e.space == "number" ? e.space || 0 : 20
953
961
  ), [i, o] = C(() => e.columns || []), [l, a] = C(
954
962
  () => e.stackColumnsAt || "tablet"
955
963
  );
956
- function r(v) {
957
- return v.link ? e.builderLinkComponent || "a" : "div";
964
+ function r(S) {
965
+ return S.link ? e.builderLinkComponent || "a" : "div";
958
966
  }
959
- function c(v) {
967
+ function c(S) {
960
968
  var w;
961
- return ((w = i[v]) == null ? void 0 : w.width) || 100 / i.length;
969
+ return ((w = i[S]) == null ? void 0 : w.width) || 100 / i.length;
962
970
  }
963
- function u(v) {
971
+ function u(S) {
964
972
  const w = t * (i.length - 1) / i.length;
965
- return `calc(${c(v)}% - ${w}px)`;
973
+ return `calc(${c(S)}% - ${w}px)`;
966
974
  }
967
975
  function f({
968
- stackedStyle: v,
976
+ stackedStyle: S,
969
977
  desktopStyle: w
970
978
  }) {
971
- return l === "tablet" ? v : w;
979
+ return l === "tablet" ? S : w;
972
980
  }
973
981
  function d({
974
- stackedStyle: v,
982
+ stackedStyle: S,
975
983
  desktopStyle: w
976
984
  }) {
977
- return l === "never" ? w : v;
985
+ return l === "never" ? w : S;
978
986
  }
979
- const [m, g] = C(
987
+ const [m, b] = C(
980
988
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
981
989
  );
982
990
  function p() {
@@ -988,41 +996,41 @@ function $t(e) {
988
996
  })
989
997
  };
990
998
  }
991
- function I(v) {
992
- const w = v === 0 ? 0 : t, F = u(v), b = `${w}px`, h = "100%", y = 0;
999
+ function I(S) {
1000
+ const w = S === 0 ? 0 : t, W = u(S), g = `${w}px`, h = "100%", y = 0;
993
1001
  return {
994
1002
  ...{
995
1003
  display: "flex",
996
1004
  flexDirection: "column",
997
1005
  alignItems: "stretch"
998
1006
  },
999
- width: F,
1000
- ["marginLeft"]: b,
1007
+ width: W,
1008
+ ["marginLeft"]: g,
1001
1009
  "--column-width-mobile": d({
1002
1010
  stackedStyle: h,
1003
- desktopStyle: F
1011
+ desktopStyle: W
1004
1012
  }),
1005
1013
  "--column-margin-left-mobile": d({
1006
1014
  stackedStyle: y,
1007
- desktopStyle: b
1015
+ desktopStyle: g
1008
1016
  }),
1009
1017
  "--column-width-tablet": f({
1010
1018
  stackedStyle: h,
1011
- desktopStyle: F
1019
+ desktopStyle: W
1012
1020
  }),
1013
1021
  "--column-margin-left-tablet": f({
1014
1022
  stackedStyle: y,
1015
- desktopStyle: b
1023
+ desktopStyle: g
1016
1024
  })
1017
1025
  };
1018
1026
  }
1019
- function x(v) {
1020
- var F, b;
1027
+ function x(S) {
1028
+ var W, g;
1021
1029
  return De(
1022
- ((b = (F = e.builderContext.content) == null ? void 0 : F.meta) == null ? void 0 : b.breakpoints) || {}
1023
- )[v].max;
1030
+ ((g = (W = e.builderContext.content) == null ? void 0 : W.meta) == null ? void 0 : g.breakpoints) || {}
1031
+ )[S].max;
1024
1032
  }
1025
- function R() {
1033
+ function B() {
1026
1034
  return `
1027
1035
  @media (max-width: ${x("medium")}px) {
1028
1036
  .${e.builderBlock.id}-breakpoints {
@@ -1049,31 +1057,31 @@ function $t(e) {
1049
1057
  },
1050
1058
  `;
1051
1059
  }
1052
- function V(v, w) {
1060
+ function V(S, w) {
1053
1061
  return {
1054
- ...v.link ? {
1055
- href: v.link
1062
+ ...S.link ? {
1063
+ href: S.link
1056
1064
  } : {},
1057
- [K()]: "builder-column",
1058
- style: We(I(w))
1065
+ [H()]: "builder-column",
1066
+ style: Fe(I(w))
1059
1067
  };
1060
1068
  }
1061
- return /* @__PURE__ */ B(E, { children: [
1062
- /* @__PURE__ */ B(
1069
+ return /* @__PURE__ */ E(R, { children: [
1070
+ /* @__PURE__ */ E(
1063
1071
  "div",
1064
1072
  {
1065
- className: Wt((A = e.builderBlock) == null ? void 0 : A.id) + " div-bade6b34",
1073
+ className: Ft((A = e.builderBlock) == null ? void 0 : A.id) + " div-bade6b34",
1066
1074
  style: p(),
1067
1075
  children: [
1068
- /* @__PURE__ */ s(ne, { id: "builderio-columns", styles: R() }),
1069
- (j = e.columns) == null ? void 0 : j.map((v, w) => /* @__PURE__ */ s(
1070
- ue,
1076
+ /* @__PURE__ */ s(ie, { id: "builderio-columns", styles: B() }),
1077
+ (O = e.columns) == null ? void 0 : O.map((S, w) => /* @__PURE__ */ s(
1078
+ me,
1071
1079
  {
1072
- TagName: r(v),
1080
+ TagName: r(S),
1073
1081
  actionAttributes: {},
1074
- attributes: V(v, w),
1082
+ attributes: V(S, w),
1075
1083
  children: /* @__PURE__ */ s(
1076
- D,
1084
+ L,
1077
1085
  {
1078
1086
  path: `component.options.columns.${w}.blocks`,
1079
1087
  parent: e.builderBlock.id,
@@ -1083,7 +1091,7 @@ function $t(e) {
1083
1091
  context: e.builderContext,
1084
1092
  registeredComponents: e.builderComponents,
1085
1093
  linkComponent: e.builderLinkComponent,
1086
- blocks: v.blocks
1094
+ blocks: S.blocks
1087
1095
  }
1088
1096
  )
1089
1097
  },
@@ -1101,37 +1109,37 @@ function $t(e) {
1101
1109
  function Dt(e) {
1102
1110
  return /* @__PURE__ */ s("span", { children: e.children });
1103
1111
  }
1104
- function xe(e) {
1112
+ function ve(e) {
1105
1113
  return e.replace(/http(s)?:/, "");
1106
1114
  }
1107
- function Lt(e = "", t, n) {
1115
+ function Ot(e = "", t, n) {
1108
1116
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1109
1117
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1110
1118
  }
1111
- function Ot(e, t) {
1119
+ function jt(e, t) {
1112
1120
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1113
1121
  return e;
1114
1122
  if (t === "master")
1115
- return xe(e);
1123
+ return ve(e);
1116
1124
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1117
1125
  if (n) {
1118
1126
  const i = e.split(n[0]), o = n[3], l = t.match("x") ? t : `${t}x`;
1119
- return xe(`${i[0]}_${l}${o}`);
1127
+ return ve(`${i[0]}_${l}${o}`);
1120
1128
  }
1121
1129
  return null;
1122
1130
  }
1123
- function oe(e) {
1131
+ function ae(e) {
1124
1132
  if (!e)
1125
1133
  return e;
1126
1134
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1127
1135
  if (e.match(/builder\.io/)) {
1128
1136
  let n = e;
1129
1137
  const i = Number(e.split("?width=")[1]);
1130
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Lt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1138
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Ot(e, "width", o)} ${o}w`).concat([n]).join(", ");
1131
1139
  }
1132
- 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;
1140
+ 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;
1133
1141
  }
1134
- function jt(e) {
1142
+ function Ut(e) {
1135
1143
  var o, l, a, r, c, u;
1136
1144
  function t() {
1137
1145
  var m;
@@ -1142,10 +1150,10 @@ function jt(e) {
1142
1150
  return e.srcset;
1143
1151
  if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1144
1152
  if (!e.srcset.includes(e.image.split("?")[0]))
1145
- return console.debug("Removed given srcset"), oe(d);
1153
+ return console.debug("Removed given srcset"), ae(d);
1146
1154
  } else if (e.image && !e.srcset)
1147
- return oe(d);
1148
- return oe(d);
1155
+ return ae(d);
1156
+ return ae(d);
1149
1157
  }
1150
1158
  function n() {
1151
1159
  var f;
@@ -1161,9 +1169,9 @@ function jt(e) {
1161
1169
  };
1162
1170
  return e.aspectRatio ? f : void 0;
1163
1171
  }
1164
- return /* @__PURE__ */ B(E, { children: [
1165
- /* @__PURE__ */ B(E, { children: [
1166
- /* @__PURE__ */ B("picture", { children: [
1172
+ return /* @__PURE__ */ E(R, { children: [
1173
+ /* @__PURE__ */ E(R, { children: [
1174
+ /* @__PURE__ */ E("picture", { children: [
1167
1175
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1168
1176
  /* @__PURE__ */ s(
1169
1177
  "img",
@@ -1193,7 +1201,7 @@ function jt(e) {
1193
1201
  }
1194
1202
  }
1195
1203
  ) : null,
1196
- (r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length && e.fitContent ? /* @__PURE__ */ s(E, { children: e.children }) : null,
1204
+ (r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
1197
1205
  !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
1198
1206
  ] }),
1199
1207
  /* @__PURE__ */ s("style", { children: `.img-ac3dff4a {
@@ -1215,7 +1223,7 @@ function jt(e) {
1215
1223
  }` })
1216
1224
  ] });
1217
1225
  }
1218
- function Ut(e) {
1226
+ function Mt(e) {
1219
1227
  return /* @__PURE__ */ s(
1220
1228
  "section",
1221
1229
  {
@@ -1236,7 +1244,7 @@ function Ut(e) {
1236
1244
  }
1237
1245
  );
1238
1246
  }
1239
- const ae = {
1247
+ const re = {
1240
1248
  "@type": "@builder.io/sdk:Element",
1241
1249
  layerName: "Accordion item title",
1242
1250
  responsiveStyles: {
@@ -1265,7 +1273,7 @@ const ae = {
1265
1273
  }
1266
1274
  }
1267
1275
  }]
1268
- }, re = {
1276
+ }, le = {
1269
1277
  "@type": "@builder.io/sdk:Element",
1270
1278
  layerName: "Accordion item detail",
1271
1279
  responsiveStyles: {
@@ -1296,7 +1304,7 @@ const ae = {
1296
1304
  }
1297
1305
  }
1298
1306
  }]
1299
- }, Mt = {
1307
+ }, Ht = {
1300
1308
  name: "Builder:Accordion",
1301
1309
  canHaveChildren: !0,
1302
1310
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1313,19 +1321,19 @@ const ae = {
1313
1321
  name: "title",
1314
1322
  type: "uiBlocks",
1315
1323
  hideFromUI: !0,
1316
- defaultValue: [ae]
1324
+ defaultValue: [re]
1317
1325
  }, {
1318
1326
  name: "detail",
1319
1327
  type: "uiBlocks",
1320
1328
  hideFromUI: !0,
1321
- defaultValue: [re]
1329
+ defaultValue: [le]
1322
1330
  }],
1323
1331
  defaultValue: [{
1324
- title: [ae],
1325
- detail: [re]
1332
+ title: [re],
1333
+ detail: [le]
1326
1334
  }, {
1327
- title: [ae],
1328
- detail: [re]
1335
+ title: [re],
1336
+ detail: [le]
1329
1337
  }],
1330
1338
  showIf: (e) => !e.get("useChildrenForItems")
1331
1339
  }, {
@@ -1353,9 +1361,15 @@ const ae = {
1353
1361
  onChange: (e) => {
1354
1362
  e.get("useChildrenForItems") === !0 && e.set("items", []);
1355
1363
  }
1356
- }]
1364
+ }],
1365
+ shouldReceiveBuilderProps: {
1366
+ builderBlock: !0,
1367
+ builderContext: !0,
1368
+ builderComponents: !0,
1369
+ builderLinkComponent: !0
1370
+ }
1357
1371
  }, Se = (e) => e.toString();
1358
- function Ht(e) {
1372
+ function Kt(e) {
1359
1373
  var d;
1360
1374
  const [t, n] = C(() => []);
1361
1375
  function i() {
@@ -1374,7 +1388,7 @@ function Ht(e) {
1374
1388
  };
1375
1389
  }
1376
1390
  function l() {
1377
- const g = {
1391
+ const b = {
1378
1392
  ...{
1379
1393
  display: "flex",
1380
1394
  flexDirection: "column"
@@ -1383,7 +1397,7 @@ function Ht(e) {
1383
1397
  cursor: "pointer"
1384
1398
  };
1385
1399
  return Object.fromEntries(
1386
- Object.entries(g).filter(([p, I]) => I !== void 0)
1400
+ Object.entries(b).filter(([p, I]) => I !== void 0)
1387
1401
  );
1388
1402
  }
1389
1403
  function a(m) {
@@ -1400,18 +1414,18 @@ function Ht(e) {
1400
1414
  `.builder-accordion-title[data-index="${p}"]`
1401
1415
  );
1402
1416
  if (m = p, x) {
1403
- let R = x.getBoundingClientRect();
1417
+ let B = x.getBoundingClientRect();
1404
1418
  for (; x = x && x.nextElementSibling; )
1405
1419
  if (x) {
1406
1420
  if (x.classList.contains("builder-accordion-detail"))
1407
1421
  continue;
1408
1422
  const V = x.getBoundingClientRect();
1409
- if (V.left > R.left) {
1423
+ if (V.left > B.left) {
1410
1424
  const A = parseInt(
1411
1425
  x.getAttribute("data-index") || "",
1412
1426
  10
1413
1427
  );
1414
- isNaN(A) || (R = V, m = A);
1428
+ isNaN(A) || (B = V, m = A);
1415
1429
  } else
1416
1430
  break;
1417
1431
  }
@@ -1427,29 +1441,29 @@ function Ht(e) {
1427
1441
  }
1428
1442
  };
1429
1443
  return Object.fromEntries(
1430
- Object.entries(m).filter(([g, p]) => p !== void 0)
1444
+ Object.entries(m).filter(([b, p]) => p !== void 0)
1431
1445
  );
1432
1446
  }
1433
1447
  function f(m) {
1434
- t.includes(m) ? n(i() ? [] : t.filter((g) => g !== m)) : n(i() ? [m] : t.concat(m));
1448
+ t.includes(m) ? n(i() ? [] : t.filter((b) => b !== m)) : n(i() ? [m] : t.concat(m));
1435
1449
  }
1436
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, g) => /* @__PURE__ */ B(E, { children: [
1450
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, b) => /* @__PURE__ */ E(R, { children: [
1437
1451
  /* @__PURE__ */ s(
1438
1452
  "div",
1439
1453
  {
1440
- className: a(g),
1454
+ className: a(b),
1441
1455
  style: {
1442
1456
  ...l(),
1443
1457
  width: e.grid ? e.gridRowWidth : void 0,
1444
- order: c() !== null ? Se(g) : Se(g + 1)
1458
+ order: c() !== null ? Se(b) : Se(b + 1)
1445
1459
  },
1446
- "data-index": g,
1447
- onClick: (p) => f(g),
1460
+ "data-index": b,
1461
+ onClick: (p) => f(b),
1448
1462
  children: /* @__PURE__ */ s(
1449
- D,
1463
+ L,
1450
1464
  {
1451
1465
  blocks: m.title,
1452
- path: `items.${g}.title`,
1466
+ path: `items.${b}.title`,
1453
1467
  parent: e.builderBlock.id,
1454
1468
  context: e.builderContext,
1455
1469
  registeredComponents: e.builderComponents,
@@ -1458,16 +1472,16 @@ function Ht(e) {
1458
1472
  )
1459
1473
  }
1460
1474
  ),
1461
- t.includes(g) ? /* @__PURE__ */ s(
1475
+ t.includes(b) ? /* @__PURE__ */ s(
1462
1476
  "div",
1463
1477
  {
1464
- className: r(g),
1478
+ className: r(b),
1465
1479
  style: u(),
1466
1480
  children: /* @__PURE__ */ s(
1467
- D,
1481
+ L,
1468
1482
  {
1469
1483
  blocks: m.detail,
1470
- path: `items.${g}.detail`,
1484
+ path: `items.${b}.detail`,
1471
1485
  parent: e.builderBlock.id,
1472
1486
  context: e.builderContext,
1473
1487
  registeredComponents: e.builderComponents,
@@ -1478,7 +1492,7 @@ function Ht(e) {
1478
1492
  ) : null
1479
1493
  ] })) });
1480
1494
  }
1481
- const Kt = {
1495
+ const qt = {
1482
1496
  name: "Core:Button",
1483
1497
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1484
1498
  defaultStyles: {
@@ -1510,8 +1524,14 @@ const Kt = {
1510
1524
  friendlyName: "Open link in new tab"
1511
1525
  }],
1512
1526
  static: !0,
1513
- noWrap: !0
1514
- }, qt = {
1527
+ noWrap: !0,
1528
+ shouldReceiveBuilderProps: {
1529
+ builderBlock: !1,
1530
+ builderContext: !1,
1531
+ builderComponents: !1,
1532
+ builderLinkComponent: !0
1533
+ }
1534
+ }, _t = {
1515
1535
  // TODO: ways to statically preprocess JSON for references, functions, etc
1516
1536
  name: "Columns",
1517
1537
  isRSC: !0,
@@ -1711,14 +1731,26 @@ const Kt = {
1711
1731
  defaultValue: !1,
1712
1732
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1713
1733
  advanced: !0
1714
- }]
1715
- }, _t = {
1734
+ }],
1735
+ shouldReceiveBuilderProps: {
1736
+ builderBlock: !0,
1737
+ builderContext: !0,
1738
+ builderComponents: !0,
1739
+ builderLinkComponent: !0
1740
+ }
1741
+ }, zt = {
1742
+ shouldReceiveBuilderProps: {
1743
+ builderBlock: !1,
1744
+ builderContext: !1,
1745
+ builderComponents: !1,
1746
+ builderLinkComponent: !1
1747
+ },
1716
1748
  name: "Fragment",
1717
1749
  static: !0,
1718
1750
  hidden: !0,
1719
1751
  canHaveChildren: !0,
1720
1752
  noWrap: !0
1721
- }, zt = {
1753
+ }, Jt = {
1722
1754
  name: "Image",
1723
1755
  static: !0,
1724
1756
  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",
@@ -1822,8 +1854,20 @@ const Kt = {
1822
1854
  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",
1823
1855
  advanced: !0,
1824
1856
  defaultValue: 0.7041
1825
- }]
1826
- }, Jt = {
1857
+ }],
1858
+ shouldReceiveBuilderProps: {
1859
+ builderBlock: !0,
1860
+ builderContext: !1,
1861
+ builderComponents: !1,
1862
+ builderLinkComponent: !1
1863
+ }
1864
+ }, Yt = {
1865
+ shouldReceiveBuilderProps: {
1866
+ builderBlock: !1,
1867
+ builderContext: !1,
1868
+ builderComponents: !1,
1869
+ builderLinkComponent: !1
1870
+ },
1827
1871
  name: "Core:Section",
1828
1872
  static: !0,
1829
1873
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1862,7 +1906,7 @@ const Kt = {
1862
1906
  }
1863
1907
  }
1864
1908
  }]
1865
- }, Yt = {
1909
+ }, Gt = {
1866
1910
  name: "Slot",
1867
1911
  isRSC: !0,
1868
1912
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1874,9 +1918,15 @@ const Kt = {
1874
1918
  type: "string",
1875
1919
  required: !0,
1876
1920
  defaultValue: "children"
1877
- }]
1921
+ }],
1922
+ shouldReceiveBuilderProps: {
1923
+ builderBlock: !1,
1924
+ builderContext: !0,
1925
+ builderComponents: !1,
1926
+ builderLinkComponent: !1
1927
+ }
1878
1928
  };
1879
- function Gt(e) {
1929
+ function Qt(e) {
1880
1930
  var t, n, i;
1881
1931
  return /* @__PURE__ */ s(
1882
1932
  "div",
@@ -1888,7 +1938,7 @@ function Gt(e) {
1888
1938
  "builder-slot": e.name
1889
1939
  },
1890
1940
  children: /* @__PURE__ */ s(
1891
- D,
1941
+ L,
1892
1942
  {
1893
1943
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1894
1944
  path: `symbol.data.${e.name}`,
@@ -1899,7 +1949,7 @@ function Gt(e) {
1899
1949
  }
1900
1950
  );
1901
1951
  }
1902
- const Qt = {
1952
+ const Xt = {
1903
1953
  name: "Symbol",
1904
1954
  noWrap: !0,
1905
1955
  static: !0,
@@ -1931,8 +1981,14 @@ const Qt = {
1931
1981
  name: "useChildren",
1932
1982
  hideFromUI: !0,
1933
1983
  type: "boolean"
1934
- }]
1935
- }, le = {
1984
+ }],
1985
+ shouldReceiveBuilderProps: {
1986
+ builderBlock: !0,
1987
+ builderContext: !0,
1988
+ builderComponents: !0,
1989
+ builderLinkComponent: !0
1990
+ }
1991
+ }, se = {
1936
1992
  "@type": "@builder.io/sdk:Element",
1937
1993
  responsiveStyles: {
1938
1994
  large: {
@@ -1954,7 +2010,7 @@ const Qt = {
1954
2010
  text: "New tab"
1955
2011
  }
1956
2012
  }
1957
- }, se = {
2013
+ }, ce = {
1958
2014
  "@type": "@builder.io/sdk:Element",
1959
2015
  responsiveStyles: {
1960
2016
  large: {
@@ -1970,7 +2026,7 @@ const Qt = {
1970
2026
  text: "New tab content "
1971
2027
  }
1972
2028
  }
1973
- }, Xt = {
2029
+ }, Zt = {
1974
2030
  name: "Builder: Tabs",
1975
2031
  inputs: [{
1976
2032
  name: "tabs",
@@ -1980,16 +2036,16 @@ const Qt = {
1980
2036
  name: "label",
1981
2037
  type: "uiBlocks",
1982
2038
  hideFromUI: !0,
1983
- defaultValue: [le]
2039
+ defaultValue: [se]
1984
2040
  }, {
1985
2041
  name: "content",
1986
2042
  type: "uiBlocks",
1987
2043
  hideFromUI: !0,
1988
- defaultValue: [se]
2044
+ defaultValue: [ce]
1989
2045
  }],
1990
2046
  defaultValue: [{
1991
2047
  label: [{
1992
- ...le,
2048
+ ...se,
1993
2049
  component: {
1994
2050
  name: "Text",
1995
2051
  options: {
@@ -1998,7 +2054,7 @@ const Qt = {
1998
2054
  }
1999
2055
  }],
2000
2056
  content: [{
2001
- ...se,
2057
+ ...ce,
2002
2058
  component: {
2003
2059
  name: "Text",
2004
2060
  options: {
@@ -2008,7 +2064,7 @@ const Qt = {
2008
2064
  }]
2009
2065
  }, {
2010
2066
  label: [{
2011
- ...le,
2067
+ ...se,
2012
2068
  component: {
2013
2069
  name: "Text",
2014
2070
  options: {
@@ -2017,7 +2073,7 @@ const Qt = {
2017
2073
  }
2018
2074
  }],
2019
2075
  content: [{
2020
- ...se,
2076
+ ...ce,
2021
2077
  component: {
2022
2078
  name: "Text",
2023
2079
  options: {
@@ -2066,9 +2122,15 @@ const Qt = {
2066
2122
  label: "Right",
2067
2123
  value: "flex-end"
2068
2124
  }]
2069
- }]
2125
+ }],
2126
+ shouldReceiveBuilderProps: {
2127
+ builderBlock: !0,
2128
+ builderContext: !0,
2129
+ builderComponents: !0,
2130
+ builderLinkComponent: !0
2131
+ }
2070
2132
  };
2071
- function Zt(e) {
2133
+ function en(e) {
2072
2134
  var l;
2073
2135
  const [t, n] = C(
2074
2136
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
@@ -2079,7 +2141,7 @@ function Zt(e) {
2079
2141
  function o(a) {
2080
2142
  a === t && e.collapsible ? n(-1) : n(a);
2081
2143
  }
2082
- return /* @__PURE__ */ B("div", { children: [
2144
+ return /* @__PURE__ */ E("div", { children: [
2083
2145
  /* @__PURE__ */ s(
2084
2146
  "div",
2085
2147
  {
@@ -2099,7 +2161,7 @@ function Zt(e) {
2099
2161
  },
2100
2162
  onClick: (c) => o(r),
2101
2163
  children: /* @__PURE__ */ s(
2102
- D,
2164
+ L,
2103
2165
  {
2104
2166
  parent: e.builderBlock.id,
2105
2167
  path: `component.options.tabs.${r}.label`,
@@ -2115,7 +2177,7 @@ function Zt(e) {
2115
2177
  }
2116
2178
  ),
2117
2179
  i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
2118
- D,
2180
+ L,
2119
2181
  {
2120
2182
  parent: e.builderBlock.id,
2121
2183
  path: `component.options.tabs.${t}.content`,
@@ -2127,7 +2189,13 @@ function Zt(e) {
2127
2189
  ) }) : null
2128
2190
  ] });
2129
2191
  }
2130
- const en = {
2192
+ const tn = {
2193
+ shouldReceiveBuilderProps: {
2194
+ builderBlock: !1,
2195
+ builderContext: !1,
2196
+ builderComponents: !1,
2197
+ builderLinkComponent: !1
2198
+ },
2131
2199
  name: "Text",
2132
2200
  static: !0,
2133
2201
  isRSC: !0,
@@ -2146,7 +2214,7 @@ const en = {
2146
2214
  textAlign: "center"
2147
2215
  }
2148
2216
  };
2149
- function tn(e) {
2217
+ function nn(e) {
2150
2218
  var t;
2151
2219
  return /* @__PURE__ */ s(
2152
2220
  "div",
@@ -2159,7 +2227,13 @@ function tn(e) {
2159
2227
  }
2160
2228
  );
2161
2229
  }
2162
- const nn = {
2230
+ const on = {
2231
+ shouldReceiveBuilderProps: {
2232
+ builderBlock: !1,
2233
+ builderContext: !1,
2234
+ builderComponents: !1,
2235
+ builderLinkComponent: !1
2236
+ },
2163
2237
  name: "Custom Code",
2164
2238
  static: !0,
2165
2239
  requiredPermissions: ["editCode"],
@@ -2182,7 +2256,7 @@ const nn = {
2182
2256
  advanced: !0
2183
2257
  }]
2184
2258
  };
2185
- function on(e) {
2259
+ function an(e) {
2186
2260
  const t = ee(null), [n, i] = C(() => []), [o, l] = C(() => []);
2187
2261
  return P(() => {
2188
2262
  var r;
@@ -2220,7 +2294,13 @@ function on(e) {
2220
2294
  }
2221
2295
  );
2222
2296
  }
2223
- const an = {
2297
+ const rn = {
2298
+ shouldReceiveBuilderProps: {
2299
+ builderBlock: !1,
2300
+ builderContext: !1,
2301
+ builderComponents: !1,
2302
+ builderLinkComponent: !1
2303
+ },
2224
2304
  name: "Embed",
2225
2305
  static: !0,
2226
2306
  inputs: [{
@@ -2248,8 +2328,8 @@ const an = {
2248
2328
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2249
2329
  hideFromUI: !0
2250
2330
  }]
2251
- }, rn = ["text/javascript", "application/javascript", "application/ecmascript"], ln = (e) => rn.includes(e.type);
2252
- function sn(e) {
2331
+ }, ln = ["text/javascript", "application/javascript", "application/ecmascript"], sn = (e) => ln.includes(e.type);
2332
+ function cn(e) {
2253
2333
  const t = ee(null), [n, i] = C(() => []), [o, l] = C(() => []), [a, r] = C(() => !1);
2254
2334
  function c() {
2255
2335
  if (!t.current || !t.current.getElementsByTagName)
@@ -2261,7 +2341,7 @@ function sn(e) {
2261
2341
  n.push(d.src);
2262
2342
  const m = document.createElement("script");
2263
2343
  m.async = !0, m.src = d.src, document.head.appendChild(m);
2264
- } else if (ln(d) && !o.includes(d.innerText))
2344
+ } else if (sn(d) && !o.includes(d.innerText))
2265
2345
  try {
2266
2346
  o.push(d.innerText), new Function(d.innerText)();
2267
2347
  } catch (m) {
@@ -2280,7 +2360,7 @@ function sn(e) {
2280
2360
  }
2281
2361
  );
2282
2362
  }
2283
- const cn = {
2363
+ const dn = {
2284
2364
  name: "Form:Form",
2285
2365
  // editableTags: ['builder-form-error']
2286
2366
  defaults: {
@@ -2510,101 +2590,107 @@ const cn = {
2510
2590
  text: "Submit"
2511
2591
  }
2512
2592
  }
2513
- }]
2514
- }, dn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], un = () => {
2593
+ }],
2594
+ shouldReceiveBuilderProps: {
2595
+ builderBlock: !0,
2596
+ builderContext: !0,
2597
+ builderComponents: !0,
2598
+ builderLinkComponent: !0
2599
+ }
2600
+ }, un = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], mn = () => {
2515
2601
  const e = process.env.NODE_ENV || "production";
2516
- return dn.includes(e) ? e : "production";
2517
- }, mn = (e, t, n) => {
2602
+ return un.includes(e) ? e : "production";
2603
+ }, fn = (e, t, n) => {
2518
2604
  const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, l) => o != null ? o[l] : o, e);
2519
2605
  return i === void 0 || i === e ? n : i;
2520
2606
  };
2521
- function fn(e) {
2607
+ function hn(e) {
2522
2608
  var d, m;
2523
2609
  const t = ee(null), [n, i] = C(() => "unsubmitted"), [o, l] = C(() => null), [a, r] = C(() => "");
2524
- function c(g) {
2610
+ function c(b) {
2525
2611
  var I, x;
2526
2612
  const p = {
2527
2613
  ...e.builderContext.rootState,
2528
- ...g
2614
+ ...b
2529
2615
  };
2530
2616
  e.builderContext.rootSetState ? (x = (I = e.builderContext).rootSetState) == null || x.call(I, p) : e.builderContext.rootState = p;
2531
2617
  }
2532
2618
  function u() {
2533
- return $() && e.previewState || n;
2619
+ return F() && e.previewState || n;
2534
2620
  }
2535
- function f(g) {
2621
+ function f(b) {
2536
2622
  var I;
2537
2623
  const p = e.sendWithJs || e.sendSubmissionsTo === "email";
2538
2624
  if (e.sendSubmissionsTo === "zapier")
2539
- g.preventDefault();
2625
+ b.preventDefault();
2540
2626
  else if (p) {
2541
2627
  if (!(e.action || e.sendSubmissionsTo === "email")) {
2542
- g.preventDefault();
2628
+ b.preventDefault();
2543
2629
  return;
2544
2630
  }
2545
- g.preventDefault();
2546
- const x = g.currentTarget || g.target, R = e.customHeaders || {};
2631
+ b.preventDefault();
2632
+ const x = b.currentTarget || b.target, B = e.customHeaders || {};
2547
2633
  let V;
2548
- const A = new FormData(x), j = Array.from(x.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
2634
+ const A = new FormData(x), O = Array.from(x.querySelectorAll("input,select,textarea")).filter((g) => !!g.name).map((g) => {
2549
2635
  let h;
2550
- const y = b.name;
2551
- if (b instanceof HTMLInputElement)
2552
- if (b.type === "radio") {
2553
- if (b.checked)
2554
- return h = b.name, {
2636
+ const y = g.name;
2637
+ if (g instanceof HTMLInputElement)
2638
+ if (g.type === "radio") {
2639
+ if (g.checked)
2640
+ return h = g.name, {
2555
2641
  key: y,
2556
2642
  value: h
2557
2643
  };
2558
- } else if (b.type === "checkbox")
2559
- h = b.checked;
2560
- else if (b.type === "number" || b.type === "range") {
2561
- const S = b.valueAsNumber;
2562
- isNaN(S) || (h = S);
2644
+ } else if (g.type === "checkbox")
2645
+ h = g.checked;
2646
+ else if (g.type === "number" || g.type === "range") {
2647
+ const v = g.valueAsNumber;
2648
+ isNaN(v) || (h = v);
2563
2649
  } else
2564
- b.type === "file" ? h = b.files : h = b.value;
2650
+ g.type === "file" ? h = g.files : h = g.value;
2565
2651
  else
2566
- h = b.value;
2652
+ h = g.value;
2567
2653
  return {
2568
2654
  key: y,
2569
2655
  value: h
2570
2656
  };
2571
2657
  });
2572
- let v = e.contentType;
2573
- if (e.sendSubmissionsTo === "email" && (v = "multipart/form-data"), Array.from(j).forEach(({ value: b }) => {
2574
- (b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (v = "multipart/form-data");
2575
- }), v !== "application/json")
2658
+ let S = e.contentType;
2659
+ if (e.sendSubmissionsTo === "email" && (S = "multipart/form-data"), Array.from(O).forEach(({ value: g }) => {
2660
+ (g instanceof File || Array.isArray(g) && g[0] instanceof File || g instanceof FileList) && (S = "multipart/form-data");
2661
+ }), S !== "application/json")
2576
2662
  V = A;
2577
2663
  else {
2578
- const b = {};
2579
- Array.from(j).forEach(({ value: h, key: y }) => {
2580
- Re(b, y, h);
2581
- }), V = JSON.stringify(b);
2664
+ const g = {};
2665
+ Array.from(O).forEach(({ value: h, key: y }) => {
2666
+ Pe(g, y, h);
2667
+ }), V = JSON.stringify(g);
2582
2668
  }
2583
- v && v !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (R["content-type"] = v));
2669
+ S && S !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (B["content-type"] = S));
2584
2670
  const w = new CustomEvent("presubmit", { detail: { body: V } });
2585
2671
  if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
2586
2672
  return;
2587
2673
  i("sending");
2588
- const F = `${un() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2674
+ const W = `${mn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2589
2675
  e.sendSubmissionsToEmail || ""
2590
2676
  )}&name=${encodeURIComponent(e.name || "")}`;
2591
2677
  fetch(
2592
- e.sendSubmissionsTo === "email" ? F : e.action,
2593
- { body: V, headers: R, method: e.method || "post" }
2678
+ e.sendSubmissionsTo === "email" ? W : e.action,
2679
+ { body: V, headers: B, method: e.method || "post" }
2594
2680
  ).then(
2595
- async (b) => {
2681
+ async (g) => {
2596
2682
  let h;
2597
- const y = b.headers.get("content-type");
2598
- if (y && y.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
2599
- let S = mn(h, e.errorMessagePath);
2600
- S && (typeof S != "string" && (S = JSON.stringify(S)), r(S), c({ formErrorMessage: S }));
2683
+ const y = g.headers.get("content-type");
2684
+ if (y && y.indexOf("application/json") !== -1 ? h = await g.json() : h = await g.text(), !g.ok && e.errorMessagePath) {
2685
+ let v = fn(h, e.errorMessagePath);
2686
+ v && (typeof v != "string" && (v = JSON.stringify(v)), r(v), c({ formErrorMessage: v }));
2601
2687
  }
2602
- if (l(h), i(b.ok ? "success" : "error"), b.ok) {
2603
- const S = new CustomEvent("submit:success", {
2604
- detail: { res: b, body: h }
2688
+ if (l(h), i(g.ok ? "success" : "error"), g.ok) {
2689
+ const v = new CustomEvent("submit:success", {
2690
+ detail: { res: g, body: h }
2605
2691
  });
2606
2692
  if (t.current) {
2607
- if (t.current.dispatchEvent(S), S.defaultPrevented)
2693
+ if (t.current.dispatchEvent(v), v.defaultPrevented)
2608
2694
  return;
2609
2695
  e.resetFormOnSubmit !== !1 && t.current.reset();
2610
2696
  }
@@ -2618,18 +2704,18 @@ function fn(e) {
2618
2704
  location.href = e.successUrl;
2619
2705
  }
2620
2706
  },
2621
- (b) => {
2707
+ (g) => {
2622
2708
  const h = new CustomEvent("submit:error", {
2623
- detail: { error: b }
2709
+ detail: { error: g }
2624
2710
  });
2625
- t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (l(b), i("error"));
2711
+ t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (l(g), i("error"));
2626
2712
  }
2627
2713
  );
2628
2714
  }
2629
2715
  }
2630
- return /* @__PURE__ */ B(E, { children: [
2716
+ return /* @__PURE__ */ E(R, { children: [
2631
2717
  " ",
2632
- /* @__PURE__ */ B(
2718
+ /* @__PURE__ */ E(
2633
2719
  "form",
2634
2720
  {
2635
2721
  validate: e.validate,
@@ -2637,13 +2723,13 @@ function fn(e) {
2637
2723
  action: !e.sendWithJs && e.action,
2638
2724
  method: e.method,
2639
2725
  name: e.name,
2640
- onSubmit: (g) => f(g),
2726
+ onSubmit: (b) => f(b),
2641
2727
  ...e.attributes,
2642
2728
  children: [
2643
- 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(
2729
+ 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(
2644
2730
  _,
2645
2731
  {
2646
- block: g,
2732
+ block: b,
2647
2733
  context: e.builderContext,
2648
2734
  registeredComponents: e.builderComponents,
2649
2735
  linkComponent: e.builderLinkComponent
@@ -2651,7 +2737,7 @@ function fn(e) {
2651
2737
  `form-block-${p}`
2652
2738
  )) }) : null,
2653
2739
  u() === "error" ? /* @__PURE__ */ s(
2654
- D,
2740
+ L,
2655
2741
  {
2656
2742
  path: "errorMessage",
2657
2743
  blocks: e.errorMessage,
@@ -2659,7 +2745,7 @@ function fn(e) {
2659
2745
  }
2660
2746
  ) : null,
2661
2747
  u() === "sending" ? /* @__PURE__ */ s(
2662
- D,
2748
+ L,
2663
2749
  {
2664
2750
  path: "sendingMessage",
2665
2751
  blocks: e.sendingMessage,
@@ -2668,7 +2754,7 @@ function fn(e) {
2668
2754
  ) : null,
2669
2755
  u() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
2670
2756
  u() === "success" ? /* @__PURE__ */ s(
2671
- D,
2757
+ L,
2672
2758
  {
2673
2759
  path: "successMessage",
2674
2760
  blocks: e.successMessage,
@@ -2683,7 +2769,13 @@ function fn(e) {
2683
2769
  " "
2684
2770
  ] });
2685
2771
  }
2686
- const hn = {
2772
+ const bn = {
2773
+ shouldReceiveBuilderProps: {
2774
+ builderBlock: !1,
2775
+ builderContext: !1,
2776
+ builderComponents: !1,
2777
+ builderLinkComponent: !1
2778
+ },
2687
2779
  name: "Form:Input",
2688
2780
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2689
2781
  inputs: [
@@ -2736,11 +2828,11 @@ const hn = {
2736
2828
  }
2737
2829
  };
2738
2830
  function gn(e) {
2739
- return /* @__PURE__ */ Ee(
2831
+ return /* @__PURE__ */ Be(
2740
2832
  "input",
2741
2833
  {
2742
2834
  ...e.attributes,
2743
- key: $() && e.defaultValue ? e.defaultValue : "default-key",
2835
+ key: F() && e.defaultValue ? e.defaultValue : "default-key",
2744
2836
  placeholder: e.placeholder,
2745
2837
  type: e.type,
2746
2838
  name: e.name,
@@ -2750,7 +2842,13 @@ function gn(e) {
2750
2842
  }
2751
2843
  );
2752
2844
  }
2753
- const bn = {
2845
+ const pn = {
2846
+ shouldReceiveBuilderProps: {
2847
+ builderBlock: !1,
2848
+ builderContext: !1,
2849
+ builderComponents: !1,
2850
+ builderLinkComponent: !1
2851
+ },
2754
2852
  name: "Form:Select",
2755
2853
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2756
2854
  defaultStyles: {
@@ -2793,21 +2891,28 @@ const bn = {
2793
2891
  static: !0,
2794
2892
  noWrap: !0
2795
2893
  };
2796
- function pn(e) {
2894
+ function yn(e) {
2797
2895
  var t;
2798
- return /* @__PURE__ */ Ee(
2896
+ return /* @__PURE__ */ Be(
2799
2897
  "select",
2800
2898
  {
2801
2899
  ...e.attributes,
2802
2900
  value: e.value,
2803
- key: $() && e.defaultValue ? e.defaultValue : "default-key",
2901
+ key: F() && e.defaultValue ? e.defaultValue : "default-key",
2804
2902
  defaultValue: e.defaultValue,
2805
- name: e.name
2903
+ name: e.name,
2904
+ required: e.required
2806
2905
  },
2807
2906
  (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2808
2907
  );
2809
2908
  }
2810
- const yn = {
2909
+ const xn = {
2910
+ shouldReceiveBuilderProps: {
2911
+ builderBlock: !1,
2912
+ builderContext: !1,
2913
+ builderComponents: !1,
2914
+ builderLinkComponent: !1
2915
+ },
2811
2916
  name: "Form:SubmitButton",
2812
2917
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2813
2918
  defaultStyles: {
@@ -2833,10 +2938,72 @@ const yn = {
2833
2938
  // TODO: defaultChildren
2834
2939
  // canHaveChildren: true,
2835
2940
  };
2836
- function xn(e) {
2941
+ function vn(e) {
2837
2942
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
2838
2943
  }
2839
2944
  const Sn = {
2945
+ shouldReceiveBuilderProps: {
2946
+ builderBlock: !1,
2947
+ builderContext: !1,
2948
+ builderComponents: !1,
2949
+ builderLinkComponent: !1
2950
+ },
2951
+ name: "Form:TextArea",
2952
+ image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
2953
+ inputs: [{
2954
+ advanced: !0,
2955
+ name: "value",
2956
+ type: "string"
2957
+ }, {
2958
+ name: "name",
2959
+ type: "string",
2960
+ required: !0,
2961
+ helperText: 'Every input in a form needs a unique name describing what it gets, e.g. "email"'
2962
+ }, {
2963
+ name: "defaultValue",
2964
+ type: "string"
2965
+ }, {
2966
+ name: "placeholder",
2967
+ type: "string",
2968
+ defaultValue: "Hello there"
2969
+ }, {
2970
+ name: "required",
2971
+ type: "boolean",
2972
+ defaultValue: !1
2973
+ }],
2974
+ defaultStyles: {
2975
+ paddingTop: "10px",
2976
+ paddingBottom: "10px",
2977
+ paddingLeft: "10px",
2978
+ paddingRight: "10px",
2979
+ borderRadius: "3px",
2980
+ borderWidth: "1px",
2981
+ borderStyle: "solid",
2982
+ borderColor: "#ccc"
2983
+ },
2984
+ static: !0,
2985
+ noWrap: !0
2986
+ };
2987
+ function kn(e) {
2988
+ return /* @__PURE__ */ s(
2989
+ "textarea",
2990
+ {
2991
+ ...e.attributes,
2992
+ placeholder: e.placeholder,
2993
+ name: e.name,
2994
+ value: e.value,
2995
+ defaultValue: e.defaultValue,
2996
+ required: e.required
2997
+ }
2998
+ );
2999
+ }
3000
+ const Cn = {
3001
+ shouldReceiveBuilderProps: {
3002
+ builderBlock: !1,
3003
+ builderContext: !1,
3004
+ builderComponents: !1,
3005
+ builderLinkComponent: !1
3006
+ },
2840
3007
  // friendlyName?
2841
3008
  name: "Raw:Img",
2842
3009
  hideFromInsertMenu: !0,
@@ -2851,7 +3018,7 @@ const Sn = {
2851
3018
  noWrap: !0,
2852
3019
  static: !0
2853
3020
  };
2854
- function vn(e) {
3021
+ function Tn(e) {
2855
3022
  return /* @__PURE__ */ s(
2856
3023
  "img",
2857
3024
  {
@@ -2863,10 +3030,10 @@ function vn(e) {
2863
3030
  src: e.imgSrc || e.image,
2864
3031
  ...e.attributes
2865
3032
  },
2866
- $() && e.imgSrc || "default-key"
3033
+ F() && e.imgSrc || "default-key"
2867
3034
  );
2868
3035
  }
2869
- const kn = {
3036
+ const In = {
2870
3037
  name: "Video",
2871
3038
  canHaveChildren: !0,
2872
3039
  defaultStyles: {
@@ -2946,9 +3113,15 @@ const kn = {
2946
3113
  helperText: 'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',
2947
3114
  defaultValue: !0,
2948
3115
  advanced: !0
2949
- }]
3116
+ }],
3117
+ shouldReceiveBuilderProps: {
3118
+ builderBlock: !0,
3119
+ builderContext: !1,
3120
+ builderComponents: !1,
3121
+ builderLinkComponent: !1
3122
+ }
2950
3123
  };
2951
- function Cn(e) {
3124
+ function wn(e) {
2952
3125
  var i, o, l, a, r, c, u;
2953
3126
  function t() {
2954
3127
  return {
@@ -2974,7 +3147,7 @@ function Cn(e) {
2974
3147
  ...t()
2975
3148
  };
2976
3149
  }
2977
- return /* @__PURE__ */ B(
3150
+ return /* @__PURE__ */ E(
2978
3151
  "div",
2979
3152
  {
2980
3153
  style: {
@@ -3049,61 +3222,64 @@ function Cn(e) {
3049
3222
  }
3050
3223
  );
3051
3224
  }
3052
- const Tn = () => [{
3053
- component: on,
3054
- ...nn
3225
+ const Rn = () => [{
3226
+ component: an,
3227
+ ...on
3055
3228
  }, {
3056
- component: sn,
3057
- ...an
3229
+ component: cn,
3230
+ ...rn
3058
3231
  }, {
3059
- component: fn,
3060
- ...cn
3232
+ component: hn,
3233
+ ...dn
3061
3234
  }, {
3062
3235
  component: gn,
3063
- ...hn
3064
- }, {
3065
- component: xn,
3066
- ...yn
3067
- }, {
3068
- component: pn,
3069
3236
  ...bn
3070
3237
  }, {
3071
3238
  component: vn,
3239
+ ...xn
3240
+ }, {
3241
+ component: yn,
3242
+ ...pn
3243
+ }, {
3244
+ component: kn,
3072
3245
  ...Sn
3073
3246
  }, {
3074
- component: Cn,
3075
- ...kn
3076
- }], ve = () => [{
3077
- component: ot,
3078
- ...Kt
3247
+ component: Tn,
3248
+ ...Cn
3079
3249
  }, {
3080
- component: $t,
3250
+ component: wn,
3251
+ ...In
3252
+ }], ke = () => [{
3253
+ component: at,
3081
3254
  ...qt
3082
3255
  }, {
3083
- component: Dt,
3256
+ component: Lt,
3084
3257
  ..._t
3085
3258
  }, {
3086
- component: jt,
3259
+ component: Dt,
3087
3260
  ...zt
3088
3261
  }, {
3089
3262
  component: Ut,
3090
3263
  ...Jt
3091
3264
  }, {
3092
- component: Gt,
3265
+ component: Mt,
3093
3266
  ...Yt
3094
3267
  }, {
3095
- component: zn,
3096
- ...Qt
3268
+ component: Qt,
3269
+ ...Gt
3097
3270
  }, {
3098
- component: tn,
3099
- ...en
3100
- }, {
3101
- component: Zt,
3271
+ component: Gn,
3102
3272
  ...Xt
3103
3273
  }, {
3104
- component: Ht,
3105
- ...Mt
3106
- }, ...Tn()], In = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3274
+ component: nn,
3275
+ ...tn
3276
+ }, {
3277
+ component: en,
3278
+ ...Zt
3279
+ }, {
3280
+ component: Kt,
3281
+ ...Ht
3282
+ }, ...Rn()], Bn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3107
3283
  function getAndSetVariantId() {
3108
3284
  function setCookie(name, value, days) {
3109
3285
  let expires = '';
@@ -3159,7 +3335,7 @@ const Tn = () => [{
3159
3335
  }).join('');
3160
3336
  styleEl.innerHTML = newStyleStr;
3161
3337
  }
3162
- }`, wn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3338
+ }`, Pn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3163
3339
  if (!navigator.cookieEnabled) {
3164
3340
  return;
3165
3341
  }
@@ -3193,26 +3369,26 @@ const Tn = () => [{
3193
3369
  thisScriptEl?.remove();
3194
3370
  }
3195
3371
  return;
3196
- }`, Oe = "builderIoAbTest", je = "builderIoRenderContent", J = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3372
+ }`, je = "builderIoAbTest", Ue = "builderIoRenderContent", J = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3197
3373
  ...t,
3198
3374
  testVariationId: t.id,
3199
3375
  id: e == null ? void 0 : e.id
3200
3376
  })), En = ({
3201
3377
  canTrack: e,
3202
3378
  content: t
3203
- }) => !(!(J(t).length > 0) || !e || G()), Rn = (e) => e === "react" || e === "reactNative", Ue = Rn(L), Bn = () => `
3204
- window.${Oe} = ${In}
3205
- window.${je} = ${wn}
3206
- `, Vn = (e, t) => `
3207
- window.${Oe}(
3208
- "${t}",${JSON.stringify(e)}, ${Ue}
3209
- )`, Pn = ({
3379
+ }) => !(!(J(t).length > 0) || !e || G()), Vn = (e) => e === "react" || e === "reactNative", Me = Vn(q), An = () => `
3380
+ window.${je} = ${Bn}
3381
+ window.${Ue} = ${Pn}
3382
+ `, Nn = (e, t) => `
3383
+ window.${je}(
3384
+ "${t}",${JSON.stringify(e)}, ${Me}
3385
+ )`, Wn = ({
3210
3386
  contentId: e,
3211
3387
  variationId: t
3212
- }) => `window.${je}(
3213
- "${t}", "${e}", ${Ue}
3388
+ }) => `window.${Ue}(
3389
+ "${t}", "${e}", ${Me}
3214
3390
  )`;
3215
- function ce(e) {
3391
+ function de(e) {
3216
3392
  return /* @__PURE__ */ s(
3217
3393
  "script",
3218
3394
  {
@@ -3221,10 +3397,10 @@ function ce(e) {
3221
3397
  }
3222
3398
  );
3223
3399
  }
3224
- function ke(e) {
3400
+ function Ce(e) {
3225
3401
  return Math.round(e * 1e3) / 1e3;
3226
3402
  }
3227
- const An = (e, t, n = !0) => {
3403
+ const $n = (e, t, n = !0) => {
3228
3404
  if (!(e instanceof HTMLElement))
3229
3405
  return null;
3230
3406
  let i = n ? e : e.parentElement;
@@ -3235,35 +3411,35 @@ const An = (e, t, n = !0) => {
3235
3411
  return i;
3236
3412
  } while (i = i.parentElement);
3237
3413
  return null;
3238
- }, Nn = (e) => An(e, (t) => {
3414
+ }, Fn = (e) => $n(e, (t) => {
3239
3415
  const n = t.getAttribute("builder-id") || t.id;
3240
3416
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3241
- }), Ce = ({
3417
+ }), Te = ({
3242
3418
  event: e,
3243
3419
  target: t
3244
3420
  }) => {
3245
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, l = ke(i / n.width), a = ke(o / n.height);
3421
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, l = Ce(i / n.width), a = Ce(o / n.height);
3246
3422
  return {
3247
3423
  x: l,
3248
3424
  y: a
3249
3425
  };
3250
- }, Fn = (e) => {
3251
- const t = e.target, n = t && Nn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3426
+ }, Ln = (e) => {
3427
+ const t = e.target, n = t && Fn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3252
3428
  return {
3253
3429
  targetBuilderElement: i || void 0,
3254
3430
  metadata: {
3255
- targetOffset: t ? Ce({
3431
+ targetOffset: t ? Te({
3256
3432
  event: e,
3257
3433
  target: t
3258
3434
  }) : void 0,
3259
- builderTargetOffset: n ? Ce({
3435
+ builderTargetOffset: n ? Te({
3260
3436
  event: e,
3261
3437
  target: n
3262
3438
  }) : void 0,
3263
3439
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3264
3440
  }
3265
3441
  };
3266
- }, Wn = (e) => {
3442
+ }, Dn = (e) => {
3267
3443
  var l, a;
3268
3444
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (l = e == null ? void 0 : e.files) == null ? void 0 : l.regular;
3269
3445
  let o = "";
@@ -3289,15 +3465,15 @@ font-weight: ${r};
3289
3465
  `.trim());
3290
3466
  }
3291
3467
  return o;
3292
- }, $n = ({
3468
+ }, On = ({
3293
3469
  customFonts: e
3294
3470
  }) => {
3295
3471
  var t;
3296
- return ((t = e == null ? void 0 : e.map((n) => Wn(n))) == null ? void 0 : t.join(" ")) || "";
3297
- }, Dn = ({
3472
+ return ((t = e == null ? void 0 : e.map((n) => Dn(n))) == null ? void 0 : t.join(" ")) || "";
3473
+ }, jn = ({
3298
3474
  cssCode: e,
3299
3475
  contentId: t
3300
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ln = `
3476
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Un = `
3301
3477
  .builder-button {
3302
3478
  all: unset;
3303
3479
  }
@@ -3314,38 +3490,38 @@ font-weight: ${r};
3314
3490
  text-align: inherit;
3315
3491
  font-family: inherit;
3316
3492
  }
3317
- `, On = (e) => e ? "" : Ln, jn = (e) => `variant-${e}`;
3318
- function Un(e) {
3319
- var V, A, j, v, w, F, b;
3493
+ `, Mn = (e) => e ? "" : Un, Hn = (e) => `variant-${e}`;
3494
+ function Kn(e) {
3495
+ var V, A, O, S, w, W, g;
3320
3496
  const t = ee(null);
3321
3497
  function n(h) {
3322
- var S, k;
3498
+ var v, k;
3323
3499
  const y = {
3324
3500
  ...e.builderContextSignal.rootState,
3325
3501
  ...h
3326
3502
  };
3327
- e.builderContextSignal.rootSetState ? (k = (S = e.builderContextSignal).rootSetState) == null || k.call(S, y) : e.setBuilderContextSignal((T) => ({
3503
+ e.builderContextSignal.rootSetState ? (k = (v = e.builderContextSignal).rootSetState) == null || k.call(v, y) : e.setBuilderContextSignal((T) => ({
3328
3504
  ...T,
3329
3505
  rootState: y
3330
3506
  }));
3331
3507
  }
3332
3508
  function i(h) {
3333
- var S, k, T, N, U;
3509
+ var v, k, T, N, j;
3334
3510
  const y = {
3335
3511
  ...e.builderContextSignal.content,
3336
3512
  ...h,
3337
3513
  data: {
3338
- ...(S = e.builderContextSignal.content) == null ? void 0 : S.data,
3514
+ ...(v = e.builderContextSignal.content) == null ? void 0 : v.data,
3339
3515
  ...h == null ? void 0 : h.data
3340
3516
  },
3341
3517
  meta: {
3342
3518
  ...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
3343
3519
  ...h == null ? void 0 : h.meta,
3344
- 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)
3520
+ 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)
3345
3521
  }
3346
3522
  };
3347
- e.setBuilderContextSignal((W) => ({
3348
- ...W,
3523
+ e.setBuilderContextSignal(($) => ({
3524
+ ...$,
3349
3525
  content: y
3350
3526
  }));
3351
3527
  }
@@ -3359,21 +3535,21 @@ function Un(e) {
3359
3535
  () => e.contentWrapper || "div"
3360
3536
  );
3361
3537
  function r(h) {
3362
- return Ye({
3538
+ return Ge({
3363
3539
  model: e.model,
3364
3540
  trustedHosts: e.trustedHosts,
3365
3541
  callbacks: {
3366
3542
  configureSdk: (y) => {
3367
3543
  var T;
3368
- const { breakpoints: S, contentId: k } = y;
3369
- !k || k !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || S && i({
3544
+ const { breakpoints: v, contentId: k } = y;
3545
+ !k || k !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || v && i({
3370
3546
  meta: {
3371
- breakpoints: S
3547
+ breakpoints: v
3372
3548
  }
3373
3549
  });
3374
3550
  },
3375
3551
  animation: (y) => {
3376
- Ne(y);
3552
+ We(y);
3377
3553
  },
3378
3554
  contentUpdate: (y) => {
3379
3555
  i(y);
@@ -3382,9 +3558,9 @@ function Un(e) {
3382
3558
  })(h);
3383
3559
  }
3384
3560
  function c() {
3385
- var y, S;
3386
- const h = (S = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : S.jsCode;
3387
- h && q({
3561
+ var y, v;
3562
+ const h = (v = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : v.jsCode;
3563
+ h && K({
3388
3564
  code: h,
3389
3565
  context: e.context || {},
3390
3566
  localState: void 0,
@@ -3396,35 +3572,35 @@ function Un(e) {
3396
3572
  enableCache: !1
3397
3573
  });
3398
3574
  }
3399
- const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [g, p] = C(() => !1);
3575
+ const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [b, p] = C(() => !1);
3400
3576
  function I(h) {
3401
- var y, S;
3577
+ var y, v;
3402
3578
  if (e.builderContextSignal.content) {
3403
- const k = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, T = (S = e.builderContextSignal.content) == null ? void 0 : S.id;
3404
- he({
3579
+ const k = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, T = (v = e.builderContextSignal.content) == null ? void 0 : v.id;
3580
+ be({
3405
3581
  type: "click",
3406
3582
  canTrack: Q(e.canTrack),
3407
3583
  contentId: T,
3408
3584
  apiKey: e.apiKey,
3409
3585
  variationId: k !== T ? k : void 0,
3410
- ...Fn(h),
3411
- unique: !g
3586
+ ...Ln(h),
3587
+ unique: !b
3412
3588
  });
3413
3589
  }
3414
- g || p(!0);
3590
+ b || p(!0);
3415
3591
  }
3416
3592
  function x() {
3417
- var y, S, k;
3418
- const h = (k = (S = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : S.httpRequests) != null ? k : {};
3593
+ var y, v, k;
3594
+ const h = (k = (v = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : v.httpRequests) != null ? k : {};
3419
3595
  Object.entries(h).forEach(([T, N]) => {
3420
- if (!N || d[T] || u[T] && !$())
3596
+ if (!N || d[T] || u[T] && !F())
3421
3597
  return;
3422
3598
  d[T] = !0;
3423
- const U = N.replace(
3599
+ const j = N.replace(
3424
3600
  /{{([^}]+)}}/g,
3425
- (W, Me) => String(
3426
- q({
3427
- code: Me,
3601
+ ($, He) => String(
3602
+ K({
3603
+ code: He,
3428
3604
  context: e.context || {},
3429
3605
  localState: void 0,
3430
3606
  rootState: e.builderContextSignal.rootState,
@@ -3433,24 +3609,24 @@ function Un(e) {
3433
3609
  })
3434
3610
  )
3435
3611
  );
3436
- Ge(U).then((W) => W.json()).then((W) => {
3612
+ Qe(j).then(($) => $.json()).then(($) => {
3437
3613
  n({
3438
- [T]: W
3614
+ [T]: $
3439
3615
  }), u[T] = !0;
3440
- }).catch((W) => {
3441
- console.error("error fetching dynamic data", N, W);
3616
+ }).catch(($) => {
3617
+ console.error("error fetching dynamic data", N, $);
3442
3618
  }).finally(() => {
3443
3619
  d[T] = !1;
3444
3620
  });
3445
3621
  });
3446
3622
  }
3447
- function R() {
3448
- $() && window.dispatchEvent(
3623
+ function B() {
3624
+ F() && window.dispatchEvent(
3449
3625
  new CustomEvent(
3450
3626
  "builder:component:stateChange",
3451
3627
  {
3452
3628
  detail: {
3453
- state: de(e.builderContextSignal.rootState),
3629
+ state: ue(e.builderContextSignal.rootState),
3454
3630
  ref: {
3455
3631
  name: e.model
3456
3632
  }
@@ -3462,7 +3638,7 @@ function Un(e) {
3462
3638
  return P(() => {
3463
3639
  var h, y;
3464
3640
  if (G()) {
3465
- if ($() && (window.addEventListener("message", r), qe(), _e({
3641
+ if (F() && (window.addEventListener("message", r), _e(), ze({
3466
3642
  ...e.locale ? {
3467
3643
  locale: e.locale
3468
3644
  } : {},
@@ -3476,14 +3652,14 @@ function Un(e) {
3476
3652
  e.builderContextSignal.componentInfos
3477
3653
  ).forEach((k) => {
3478
3654
  var N;
3479
- const T = ze(k);
3655
+ const T = Je(k);
3480
3656
  (N = window.parent) == null || N.postMessage(T, "*");
3481
3657
  }), window.addEventListener(
3482
3658
  "builder:component:stateChangeListenerActivated",
3483
- R
3659
+ B
3484
3660
  )), e.builderContextSignal.content && Q(e.canTrack)) {
3485
3661
  const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, T = (y = e.builderContextSignal.content) == null ? void 0 : y.id, N = e.apiKey;
3486
- he({
3662
+ be({
3487
3663
  type: "impression",
3488
3664
  canTrack: !0,
3489
3665
  contentId: T,
@@ -3491,31 +3667,31 @@ function Un(e) {
3491
3667
  variationId: k !== T ? k : void 0
3492
3668
  });
3493
3669
  }
3494
- if (Je() && !$()) {
3670
+ if (Ye() && !F()) {
3495
3671
  const k = new URL(location.href).searchParams, T = k.get("builder.preview"), N = k.get(
3496
3672
  `builder.overrides.${T}`
3497
- ), U = k.get("apiKey") || k.get("builder.space");
3498
- T === e.model && U === e.apiKey && (!e.content || N === e.content.id) && Ie({
3673
+ ), j = k.get("apiKey") || k.get("builder.space");
3674
+ T === e.model && j === e.apiKey && (!e.content || N === e.content.id) && we({
3499
3675
  model: e.model,
3500
3676
  apiKey: e.apiKey,
3501
3677
  apiVersion: e.builderContextSignal.apiVersion
3502
- }).then((W) => {
3503
- W && i(W);
3678
+ }).then(($) => {
3679
+ $ && i($);
3504
3680
  });
3505
3681
  }
3506
3682
  }
3507
3683
  }, []), P(() => {
3508
3684
  e.apiKey || Z.error(
3509
3685
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3510
- ), c(), x(), R();
3686
+ ), c(), x(), B();
3511
3687
  }, []), P(() => {
3512
3688
  e.content && i(e.content);
3513
3689
  }, [e.content]), P(() => {
3514
3690
  c();
3515
3691
  }, [(A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.jsCode]), P(() => {
3516
3692
  x();
3517
- }, [(v = (j = e.builderContextSignal.content) == null ? void 0 : j.data) == null ? void 0 : v.httpRequests]), P(() => {
3518
- R();
3693
+ }, [(S = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : S.httpRequests]), P(() => {
3694
+ B();
3519
3695
  }, [e.builderContextSignal.rootState]), P(() => {
3520
3696
  e.data && n(e.data);
3521
3697
  }, [e.data]), P(() => {
@@ -3525,9 +3701,9 @@ function Un(e) {
3525
3701
  }, [e.locale]), P(() => () => {
3526
3702
  G() && (window.removeEventListener("message", r), window.removeEventListener(
3527
3703
  "builder:component:stateChangeListenerActivated",
3528
- R
3704
+ B
3529
3705
  ));
3530
- }, []), /* @__PURE__ */ s(me.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3706
+ }, []), /* @__PURE__ */ s(fe.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3531
3707
  l,
3532
3708
  {
3533
3709
  ref: t,
@@ -3536,29 +3712,29 @@ function Un(e) {
3536
3712
  "builder-model": e.model,
3537
3713
  ...o(),
3538
3714
  ...e.contentWrapperProps,
3539
- className: jn(
3540
- ((F = e.content) == null ? void 0 : F.testVariationId) || ((b = e.content) == null ? void 0 : b.id)
3715
+ className: Hn(
3716
+ ((W = e.content) == null ? void 0 : W.testVariationId) || ((g = e.content) == null ? void 0 : g.id)
3541
3717
  ),
3542
3718
  children: e.children
3543
3719
  }
3544
3720
  ) : null });
3545
3721
  }
3546
- function Mn(e) {
3722
+ function qn(e) {
3547
3723
  const [t, n] = C(
3548
3724
  () => `
3549
- ${Dn({
3725
+ ${jn({
3550
3726
  cssCode: e.cssCode,
3551
3727
  contentId: e.contentId
3552
3728
  })}
3553
- ${$n({
3729
+ ${On({
3554
3730
  customFonts: e.customFonts
3555
3731
  })}
3556
- ${On(e.isNestedRender)}
3732
+ ${Mn(e.isNestedRender)}
3557
3733
  `.trim()
3558
3734
  );
3559
- return /* @__PURE__ */ s(ne, { id: "builderio-content", styles: t });
3735
+ return /* @__PURE__ */ s(ie, { id: "builderio-content", styles: t });
3560
3736
  }
3561
- const Hn = ({
3737
+ const _n = ({
3562
3738
  content: e,
3563
3739
  data: t,
3564
3740
  locale: n
@@ -3575,7 +3751,7 @@ const Hn = ({
3575
3751
  locale: n
3576
3752
  } : {}
3577
3753
  };
3578
- }, Kn = ({
3754
+ }, zn = ({
3579
3755
  content: e,
3580
3756
  data: t
3581
3757
  }) => e ? {
@@ -3586,12 +3762,12 @@ const Hn = ({
3586
3762
  },
3587
3763
  meta: e == null ? void 0 : e.meta
3588
3764
  } : void 0;
3589
- function Te(e) {
3590
- var c, u, f, d, m, g, p;
3765
+ function Ie(e) {
3766
+ var c, u, f, d, m, b, p;
3591
3767
  const [t, n] = C(
3592
3768
  () => {
3593
3769
  var I, x;
3594
- return Pn({
3770
+ return Wn({
3595
3771
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3596
3772
  variationId: (I = e.content) == null ? void 0 : I.testVariationId,
3597
3773
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -3607,25 +3783,25 @@ function Te(e) {
3607
3783
  }
3608
3784
  const [o, l] = C(
3609
3785
  () => [
3610
- ...ve(),
3786
+ ...ke(),
3611
3787
  ...e.customComponents || []
3612
3788
  ].reduce(
3613
- (I, { component: x, ...R }) => ({
3789
+ (I, { component: x, ...B }) => ({
3614
3790
  ...I,
3615
- [R.name]: {
3791
+ [B.name]: {
3616
3792
  component: x,
3617
- ...ge(R)
3793
+ ...ge(B)
3618
3794
  }
3619
3795
  }),
3620
3796
  {}
3621
3797
  )
3622
3798
  ), [a, r] = C(() => ({
3623
- content: Kn({
3799
+ content: zn({
3624
3800
  content: e.content,
3625
3801
  data: e.data
3626
3802
  }),
3627
3803
  localState: void 0,
3628
- rootState: Hn({
3804
+ rootState: _n({
3629
3805
  content: e.content,
3630
3806
  data: e.data,
3631
3807
  locale: e.locale
@@ -3636,12 +3812,12 @@ function Te(e) {
3636
3812
  apiKey: e.apiKey,
3637
3813
  apiVersion: e.apiVersion,
3638
3814
  componentInfos: [
3639
- ...ve(),
3815
+ ...ke(),
3640
3816
  ...e.customComponents || []
3641
3817
  ].reduce(
3642
- (I, { component: x, ...R }) => ({
3818
+ (I, { component: x, ...B }) => ({
3643
3819
  ...I,
3644
- [R.name]: ge(R)
3820
+ [B.name]: ge(B)
3645
3821
  }),
3646
3822
  {}
3647
3823
  ),
@@ -3650,13 +3826,13 @@ function Te(e) {
3650
3826
  BlocksWrapperProps: e.blocksWrapperProps || {}
3651
3827
  }));
3652
3828
  return /* @__PURE__ */ s(
3653
- Be.Provider,
3829
+ Ee.Provider,
3654
3830
  {
3655
3831
  value: {
3656
3832
  registeredComponents: o
3657
3833
  },
3658
- children: /* @__PURE__ */ B(
3659
- Un,
3834
+ children: /* @__PURE__ */ E(
3835
+ Kn,
3660
3836
  {
3661
3837
  content: e.content,
3662
3838
  data: e.data,
@@ -3674,14 +3850,14 @@ function Te(e) {
3674
3850
  setBuilderContextSignal: r,
3675
3851
  children: [
3676
3852
  e.isSsrAbTest ? /* @__PURE__ */ s(
3677
- ce,
3853
+ de,
3678
3854
  {
3679
3855
  id: "builderio-variant-visibility",
3680
3856
  scriptStr: t
3681
3857
  }
3682
3858
  ) : null,
3683
3859
  /* @__PURE__ */ s(
3684
- Mn,
3860
+ qn,
3685
3861
  {
3686
3862
  isNestedRender: e.isNestedRender,
3687
3863
  contentId: (c = a.content) == null ? void 0 : c.id,
@@ -3690,9 +3866,9 @@ function Te(e) {
3690
3866
  }
3691
3867
  ),
3692
3868
  /* @__PURE__ */ s(
3693
- D,
3869
+ L,
3694
3870
  {
3695
- blocks: (p = (g = a.content) == null ? void 0 : g.data) == null ? void 0 : p.blocks,
3871
+ blocks: (p = (b = a.content) == null ? void 0 : b.data) == null ? void 0 : p.blocks,
3696
3872
  context: a,
3697
3873
  registeredComponents: o,
3698
3874
  linkComponent: e.linkComponent
@@ -3704,7 +3880,7 @@ function Te(e) {
3704
3880
  }
3705
3881
  );
3706
3882
  }
3707
- function qn(e) {
3883
+ function Jn(e) {
3708
3884
  var a;
3709
3885
  const [t, n] = C(
3710
3886
  () => En({
@@ -3714,7 +3890,7 @@ function qn(e) {
3714
3890
  );
3715
3891
  function i() {
3716
3892
  var r;
3717
- return Vn(
3893
+ return Nn(
3718
3894
  J(e.content).map((c) => ({
3719
3895
  id: c.testVariationId,
3720
3896
  testRatio: c.testRatio
@@ -3730,37 +3906,38 @@ function qn(e) {
3730
3906
  return t ? {
3731
3907
  ...e.content,
3732
3908
  testVariationId: (r = e.content) == null ? void 0 : r.id
3733
- } : Qe({
3909
+ } : Xe({
3734
3910
  item: e.content,
3735
3911
  canTrack: Q(e.canTrack)
3736
3912
  });
3737
3913
  }
3738
3914
  return P(() => {
3739
- }, []), /* @__PURE__ */ B(E, { children: [
3740
- !e.isNestedRender && L !== "reactNative" ? /* @__PURE__ */ s(
3741
- ce,
3915
+ }, []), P(() => {
3916
+ }), /* @__PURE__ */ E(R, { children: [
3917
+ !e.isNestedRender && q !== "reactNative" ? /* @__PURE__ */ s(
3918
+ de,
3742
3919
  {
3743
3920
  id: "builderio-init-variants-fns",
3744
- scriptStr: Bn()
3921
+ scriptStr: An()
3745
3922
  }
3746
3923
  ) : null,
3747
- t ? /* @__PURE__ */ B(E, { children: [
3924
+ t ? /* @__PURE__ */ E(R, { children: [
3748
3925
  /* @__PURE__ */ s(
3749
- ne,
3926
+ ie,
3750
3927
  {
3751
3928
  id: "builderio-variants",
3752
3929
  styles: o()
3753
3930
  }
3754
3931
  ),
3755
3932
  /* @__PURE__ */ s(
3756
- ce,
3933
+ de,
3757
3934
  {
3758
3935
  id: "builderio-variants-visibility",
3759
3936
  scriptStr: i()
3760
3937
  }
3761
3938
  ),
3762
3939
  (a = J(e.content)) == null ? void 0 : a.map((r) => /* @__PURE__ */ s(
3763
- Te,
3940
+ Ie,
3764
3941
  {
3765
3942
  isNestedRender: e.isNestedRender,
3766
3943
  content: r,
@@ -3786,7 +3963,7 @@ function qn(e) {
3786
3963
  ))
3787
3964
  ] }) : null,
3788
3965
  /* @__PURE__ */ s(
3789
- Te,
3966
+ Ie,
3790
3967
  {
3791
3968
  isNestedRender: e.isNestedRender,
3792
3969
  content: l(),
@@ -3811,13 +3988,13 @@ function qn(e) {
3811
3988
  )
3812
3989
  ] });
3813
3990
  }
3814
- const _n = async ({
3991
+ const Yn = async ({
3815
3992
  builderContextValue: e,
3816
3993
  symbol: t
3817
3994
  }) => {
3818
3995
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
3819
3996
  (e != null && e.apiKey))
3820
- return Ie({
3997
+ return we({
3821
3998
  model: t.model,
3822
3999
  apiKey: e.apiKey,
3823
4000
  apiVersion: e.apiVersion,
@@ -3830,7 +4007,7 @@ const _n = async ({
3830
4007
  Z.error("Could not fetch symbol content: ", n);
3831
4008
  });
3832
4009
  };
3833
- function zn(e) {
4010
+ function Gn(e) {
3834
4011
  var r, c, u, f;
3835
4012
  function t() {
3836
4013
  return "div";
@@ -3841,7 +4018,7 @@ function zn(e) {
3841
4018
  function i() {
3842
4019
  var d, m;
3843
4020
  return [
3844
- e.attributes[K()],
4021
+ e.attributes[H()],
3845
4022
  "builder-symbol",
3846
4023
  (d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
3847
4024
  (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
@@ -3852,7 +4029,7 @@ function zn(e) {
3852
4029
  return (d = e.symbol) == null ? void 0 : d.content;
3853
4030
  });
3854
4031
  function a() {
3855
- o || _n({
4032
+ o || Yn({
3856
4033
  symbol: e.symbol,
3857
4034
  builderContextValue: e.builderContext
3858
4035
  }).then((d) => {
@@ -3863,7 +4040,7 @@ function zn(e) {
3863
4040
  }, []), P(() => {
3864
4041
  a();
3865
4042
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
3866
- qn,
4043
+ Jn,
3867
4044
  {
3868
4045
  isNestedRender: !0,
3869
4046
  apiVersion: e.builderContext.apiVersion,
@@ -3888,15 +4065,15 @@ function zn(e) {
3888
4065
  ) });
3889
4066
  }
3890
4067
  export {
3891
- D as Blocks,
3892
- me as BuilderContext,
3893
- ot as Button,
3894
- $t as Columns,
3895
- qn as Content,
4068
+ L as Blocks,
4069
+ fe as BuilderContext,
4070
+ at as Button,
4071
+ Lt as Columns,
4072
+ Jn as Content,
3896
4073
  Dt as Fragment,
3897
- jt as Image,
3898
- Ut as Section,
3899
- zn as Symbol,
3900
- tn as Text,
3901
- Cn as Video
4074
+ Ut as Image,
4075
+ Mt as Section,
4076
+ Gn as Symbol,
4077
+ nn as Text,
4078
+ wn as Video
3902
4079
  };