@builder.io/sdk-react 4.0.2 → 4.0.3

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 (71) hide show
  1. package/lib/browser/blocks-exports.cjs +30 -27
  2. package/lib/browser/blocks-exports.mjs +468 -457
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/{server-entry-9e5daeda.cjs → server-entry-c40e781d.cjs} +1 -1
  6. package/lib/browser/{server-entry-25e49efc.js → server-entry-e6ae7704.js} +1 -1
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/{accordion-f5e5687b.cjs → accordion-8934ef4b.cjs} +1 -1
  10. package/lib/edge/{accordion-5063d748.js → accordion-e657c96d.js} +1 -1
  11. package/lib/edge/{blocks-f3b2fbd5.js → blocks-513223a7.js} +2 -2
  12. package/lib/edge/{blocks-d690074d.cjs → blocks-a6ffbf92.cjs} +1 -1
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +2 -2
  15. package/lib/edge/{button-0d0430e9.js → button-3522aac2.js} +2 -2
  16. package/lib/edge/{button-7cac2c65.cjs → button-49563e3b.cjs} +1 -1
  17. package/lib/edge/{columns-87b82f2f.cjs → columns-092b6fac.cjs} +1 -1
  18. package/lib/edge/{columns-19b22772.js → columns-ea0b3b30.js} +3 -3
  19. package/lib/edge/{content-variants-0f0a71cb.js → content-variants-6c1e3b13.js} +95 -92
  20. package/lib/edge/{content-variants-80fc28d8.cjs → content-variants-75ff40ca.cjs} +16 -13
  21. package/lib/edge/custom-code-1a43bbd7.js +52 -0
  22. package/lib/edge/custom-code-ae3262be.cjs +1 -0
  23. package/lib/edge/embed-106f0066.js +38 -0
  24. package/lib/edge/embed-8d302933.cjs +1 -0
  25. package/lib/edge/{form-b8f74b68.js → form-0c0d5bf5.js} +3 -3
  26. package/lib/edge/{form-0b5bd2e3.cjs → form-46e4d997.cjs} +1 -1
  27. package/lib/edge/{get-class-prop-name-6ef08339.cjs → get-class-prop-name-dad1ee7e.cjs} +1 -1
  28. package/lib/edge/{get-class-prop-name-f3ce6ca4.js → get-class-prop-name-e44df0c8.js} +1 -1
  29. package/lib/edge/{img-4becc0d4.js → img-8bdeb666.js} +1 -1
  30. package/lib/edge/{img-20126279.cjs → img-e49acb58.cjs} +1 -1
  31. package/lib/edge/index.cjs +1 -1
  32. package/lib/edge/index.mjs +1 -1
  33. package/lib/edge/{input-6884ec2d.cjs → input-92aaa4f2.cjs} +1 -1
  34. package/lib/edge/{input-768a5984.js → input-d6338de6.js} +1 -1
  35. package/lib/edge/{personalization-container-b581d0f6.js → personalization-container-1307218b.js} +4 -4
  36. package/lib/edge/{personalization-container-8b32ce9d.cjs → personalization-container-965bec51.cjs} +1 -1
  37. package/lib/edge/{select-e54dc6bc.js → select-1538b41a.js} +1 -1
  38. package/lib/edge/{select-ac5b39d8.cjs → select-5ce728b4.cjs} +1 -1
  39. package/lib/edge/{server-entry-818ae9c6.js → server-entry-2e94ad2c.js} +1 -1
  40. package/lib/edge/{server-entry-a60fb569.cjs → server-entry-46e686b9.cjs} +1 -1
  41. package/lib/edge/server-entry.cjs +1 -1
  42. package/lib/edge/server-entry.mjs +1 -1
  43. package/lib/edge/{slot-5dba6213.cjs → slot-3b6aa7ec.cjs} +1 -1
  44. package/lib/edge/{slot-05218273.js → slot-516f176d.js} +3 -3
  45. package/lib/edge/{symbol-9f247918.js → symbol-3b2e7ebf.js} +2 -2
  46. package/lib/edge/{symbol-f4b09828.cjs → symbol-cd10b6f0.cjs} +1 -1
  47. package/lib/edge/{tabs-02960a8c.cjs → tabs-cec51291.cjs} +1 -1
  48. package/lib/edge/{tabs-a0b38dde.js → tabs-f0945019.js} +3 -3
  49. package/lib/node/blocks-exports.cjs +30 -27
  50. package/lib/node/blocks-exports.mjs +477 -466
  51. package/lib/node/index.cjs +1 -1
  52. package/lib/node/index.mjs +3 -3
  53. package/lib/node/init.cjs +1 -1
  54. package/lib/node/init.mjs +3 -3
  55. package/lib/node/{server-entry-2a2cad4a.cjs → server-entry-6b05381c.cjs} +1 -1
  56. package/lib/node/{server-entry-702b1a29.js → server-entry-c1000f54.js} +1 -1
  57. package/lib/node/server-entry.cjs +1 -1
  58. package/lib/node/server-entry.mjs +1 -1
  59. package/lib/node/{setIvm-0a6b0788.js → setIvm-011d6eb2.js} +1 -1
  60. package/lib/node/{setIvm-9cddfc1a.cjs → setIvm-4ae0308c.cjs} +1 -1
  61. package/lib/node/setIvm.cjs +1 -1
  62. package/lib/node/setIvm.mjs +2 -2
  63. package/lib/node/{should-force-browser-runtime-in-node-d6c9e985.cjs → should-force-browser-runtime-in-node-5d513614.cjs} +1 -1
  64. package/lib/node/{should-force-browser-runtime-in-node-dfff7f8f.js → should-force-browser-runtime-in-node-abf8d0a7.js} +1 -1
  65. package/package.json +1 -1
  66. package/types/components/content-variants/inlined-fns.d.ts +1 -1
  67. package/types/constants/sdk-version.d.ts +1 -1
  68. package/lib/edge/custom-code-7786788e.js +0 -43
  69. package/lib/edge/custom-code-8119ea3f.cjs +0 -1
  70. package/lib/edge/embed-32bdd007.cjs +0 -1
  71. package/lib/edge/embed-5c1bbe12.js +0 -37
@@ -1,15 +1,15 @@
1
1
  "use client";
2
- import { TARGET as U, isEditing as A, isBrowser as L, getUserAttributes as Ye, checkIsDefined as G, logger as X, isPreviewing as Z, userAttributesService as be, getDefaultCanTrack as H, logFetch as Ve, registerInsertMenu as Xe, setupBrowserForEditing as Ze, createRegisterComponentMessage as et, getCookieSync as tt, _track as pe, fetchOneEntry as Be, createEditorListener as nt, serializeIncludingFunctions as ye, handleABTestingSync as it } from "./server-entry-25e49efc.js";
3
- import { setClientUserAttributes as Ii } from "./server-entry-25e49efc.js";
2
+ import { TARGET as L, isEditing as A, isBrowser as U, getUserAttributes as Ye, checkIsDefined as Q, logger as _, isPreviewing as Z, userAttributesService as be, getDefaultCanTrack as j, logFetch as Ve, registerInsertMenu as Xe, setupBrowserForEditing as Ze, createRegisterComponentMessage as et, getCookieSync as tt, _track as pe, fetchOneEntry as Be, createEditorListener as nt, serializeIncludingFunctions as ye, handleABTestingSync as it } from "./server-entry-e6ae7704.js";
3
+ import { setClientUserAttributes as Ei } from "./server-entry-e6ae7704.js";
4
4
  import { jsx as s, Fragment as R, jsxs as B } from "react/jsx-runtime";
5
5
  import * as at from "react";
6
- import { createContext as Ne, useEffect as V, useState as I, useRef as O, useContext as ve, createElement as Ae } from "react";
6
+ import { createContext as Ae, useEffect as V, useState as I, useRef as O, useContext as ve, createElement as Ne } from "react";
7
7
  const ot = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), rt = (e) => typeof e == "string" && ot.has(e.toLowerCase());
8
8
  function ue(e) {
9
9
  return /* @__PURE__ */ s(R, { children: rt(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 }) }) });
10
10
  }
11
- const j = () => {
12
- switch (U) {
11
+ const z = () => {
12
+ switch (L) {
13
13
  case "react":
14
14
  case "reactNative":
15
15
  case "rsc":
@@ -26,7 +26,7 @@ function lt(e) {
26
26
  function t() {
27
27
  return {
28
28
  ...e.attributes,
29
- [j()]: `${e.link ? "" : "builder-button"} ${e.attributes[j()] || ""}`,
29
+ [z()]: `${e.link ? "" : "builder-button"} ${e.attributes[z()] || ""}`,
30
30
  ...e.link ? {
31
31
  href: e.link,
32
32
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -46,7 +46,7 @@ function lt(e) {
46
46
  }
47
47
  );
48
48
  }
49
- const de = Ne({
49
+ const de = Ae({
50
50
  content: null,
51
51
  context: {},
52
52
  localState: void 0,
@@ -61,7 +61,7 @@ const de = Ne({
61
61
  BlocksWrapperProps: {},
62
62
  nonce: "",
63
63
  model: ""
64
- }), We = Ne({ registeredComponents: {} }), $e = (e, t, n) => {
64
+ }), We = Ae({ registeredComponents: {} }), De = (e, t, n) => {
65
65
  const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((a, o) => a != null ? a[o] : a, e);
66
66
  return i === void 0 || i === e ? n : i;
67
67
  }, st = ({
@@ -78,13 +78,13 @@ const de = Ne({
78
78
  event: n
79
79
  }), ct = () => ({
80
80
  isEditing: A(),
81
- isBrowser: L(),
82
- isServer: !L(),
81
+ isBrowser: U(),
82
+ isServer: !U(),
83
83
  getUserAttributes: () => Ye()
84
84
  }), ut = (e, {
85
85
  isExpression: t = !0
86
86
  }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
87
- function De({
87
+ function $e({
88
88
  rootState: e,
89
89
  localState: t,
90
90
  rootSetState: n
@@ -94,7 +94,7 @@ function De({
94
94
  if (t && a in t)
95
95
  return t[a];
96
96
  const o = i[a];
97
- return typeof o == "object" && o !== null ? De({
97
+ return typeof o == "object" && o !== null ? $e({
98
98
  rootState: o,
99
99
  localState: void 0,
100
100
  rootSetState: n ? (r) => {
@@ -122,7 +122,7 @@ const xe = ({
122
122
  builder: t,
123
123
  context: n,
124
124
  event: i,
125
- state: De({
125
+ state: $e({
126
126
  rootState: r,
127
127
  localState: a,
128
128
  rootSetState: o
@@ -132,7 +132,7 @@ const xe = ({
132
132
  };
133
133
  function dt() {
134
134
  var e;
135
- return typeof process != "undefined" && G((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
135
+ return typeof process != "undefined" && Q((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
136
136
  }
137
137
  const mt = ({
138
138
  shouldLogWarning: e
@@ -141,14 +141,14 @@ const mt = ({
141
141
  if (!dt())
142
142
  return !1;
143
143
  const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (a = process.env.NODE_OPTIONS) == null ? void 0 : a.includes("--no-node-snapshot");
144
- return t && n && !i ? (e && X.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;
145
- }, ft = (e) => (L() || mt({
144
+ return t && n && !i ? (e && _.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;
145
+ }, ft = (e) => (U() || mt({
146
146
  shouldLogWarning: !0
147
147
  }), xe(e)), ht = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, gt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, bt = (e) => {
148
148
  var t, n, i, a, o, r;
149
149
  return ((i = (n = (t = ht.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((r = (o = (a = gt.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : o.getPath) == null ? void 0 : r.slice(1));
150
150
  };
151
- function _({
151
+ function q({
152
152
  code: e,
153
153
  context: t,
154
154
  localState: n,
@@ -161,7 +161,7 @@ function _({
161
161
  return;
162
162
  const l = bt(e.trim());
163
163
  if (l)
164
- return $e({
164
+ return De({
165
165
  ...i,
166
166
  ...n
167
167
  }, l);
@@ -178,8 +178,8 @@ function _({
178
178
  };
179
179
  try {
180
180
  return ft(d);
181
- } catch (c) {
182
- X.error("Failed code evaluation: " + c.message, {
181
+ } catch (u) {
182
+ _.error("Failed code evaluation: " + u.message, {
183
183
  code: e
184
184
  });
185
185
  return;
@@ -198,7 +198,7 @@ const yt = (e, t) => {
198
198
  if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
199
199
  return {
200
200
  ...e.component.options,
201
- text: e.component.options.text.replace(/{{([^}]+)}}/g, (a, o) => _({
201
+ text: e.component.options.text.replace(/{{([^}]+)}}/g, (a, o) => q({
202
202
  code: o,
203
203
  context: t,
204
204
  localState: t.localState,
@@ -213,7 +213,7 @@ function vt(e, ...t) {
213
213
  delete n[i];
214
214
  return n;
215
215
  }
216
- function Q(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
216
+ function Y(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
217
217
  if (e == null || typeof e != "object") {
218
218
  t(e, (o) => {
219
219
  n !== null && i !== null && (n[i] = o);
@@ -223,11 +223,11 @@ function Q(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
223
223
  a.has(e) || (a.add(e), Array.isArray(e) ? e.forEach((o, r) => {
224
224
  t(o, (d) => {
225
225
  e[r] = d;
226
- }), Q(o, t, e, r, a);
226
+ }), Y(o, t, e, r, a);
227
227
  }) : Object.entries(e).forEach(([o, r]) => {
228
228
  t(r, (d) => {
229
229
  e[o] = d;
230
- }), Q(r, t, e, o, a);
230
+ }), Y(r, t, e, o, a);
231
231
  }));
232
232
  }
233
233
  function Fe(e) {
@@ -237,7 +237,7 @@ function xt(e) {
237
237
  if (!e || !Object.getOwnPropertyNames(e).length)
238
238
  return !1;
239
239
  let t = !1;
240
- return Q(e, (n) => {
240
+ return Y(e, (n) => {
241
241
  if (Fe(n)) {
242
242
  t = !0;
243
243
  return;
@@ -245,7 +245,7 @@ function xt(e) {
245
245
  }), t;
246
246
  }
247
247
  function St(e, t) {
248
- return !e || !Object.getOwnPropertyNames(e).length ? {} : (Q(e, (n, i) => {
248
+ return !e || !Object.getOwnPropertyNames(e).length ? {} : (Y(e, (n, i) => {
249
249
  var a;
250
250
  Fe(n) && i((a = n[t]) != null ? a : void 0);
251
251
  }), e);
@@ -272,7 +272,7 @@ function ce(e) {
272
272
  n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ce(e[n]));
273
273
  return t;
274
274
  }
275
- const Ct = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), Tt = (e) => {
275
+ const Ct = ["svelte", "vue", "angular", "qwik", "solid"].includes(L), Tt = (e) => {
276
276
  if (Ct) {
277
277
  const t = me(e);
278
278
  return {
@@ -309,7 +309,7 @@ const Ct = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), Tt = (e) =
309
309
  return e;
310
310
  const o = Tt(e);
311
311
  for (const r in e.bindings) {
312
- const l = e.bindings[r], d = _({
312
+ const l = e.bindings[r], d = q({
313
313
  code: l,
314
314
  localState: n,
315
315
  rootState: i,
@@ -343,13 +343,13 @@ function Et(e, t, n = {}) {
343
343
  l = n.leading === !1 ? 0 : Date.now(), r = null, o = e.apply(i, a), r || (i = a = null);
344
344
  };
345
345
  return function() {
346
- const c = Date.now();
347
- !l && n.leading === !1 && (l = c);
348
- const h = t - (c - l);
349
- return i = this, a = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), l = c, o = e.apply(i, a), r || (i = a = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, h)), o;
346
+ const u = Date.now();
347
+ !l && n.leading === !1 && (l = u);
348
+ const h = t - (u - l);
349
+ return i = this, a = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), l = u, o = e.apply(i, a), r || (i = a = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, h)), o;
350
350
  };
351
351
  }
352
- function M(e, ...t) {
352
+ function H(e, ...t) {
353
353
  const n = Object(e);
354
354
  for (let i = 1; i < arguments.length; i++) {
355
355
  const a = arguments[i];
@@ -393,8 +393,8 @@ function _e(e) {
393
393
  return;
394
394
  }
395
395
  Array.from(t).forEach((n) => {
396
- Ue(e, n), n.style.transition = "none", n.style.transitionDelay = "0", M(n.style, e.steps[0].styles), setTimeout(() => {
397
- n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), M(n.style, e.steps[1].styles), setTimeout(() => {
396
+ Ue(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
397
+ n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
398
398
  n.style.transition = "", n.style.transitionDelay = "";
399
399
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
400
400
  });
@@ -411,23 +411,23 @@ function Vt(e) {
411
411
  let i = !1, a = !1;
412
412
  function o() {
413
413
  !i && l(n) ? (i = !0, a = !0, setTimeout(() => {
414
- M(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
414
+ H(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
415
415
  a = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
416
416
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
417
- })) : e.repeat && i && !a && !l(n) && (i = !1, M(n.style, e.steps[0].styles));
417
+ })) : e.repeat && i && !a && !l(n) && (i = !1, H(n.style, e.steps[0].styles));
418
418
  }
419
419
  const r = Et(o, 200, {
420
420
  leading: !1
421
421
  });
422
422
  function l(h) {
423
- const y = h.getBoundingClientRect(), u = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * u;
424
- return y.bottom > f && y.top < u - f;
423
+ const g = h.getBoundingClientRect(), c = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * c;
424
+ return g.bottom > f && g.top < c - f;
425
425
  }
426
426
  const d = e.steps[0].styles;
427
- function c() {
428
- M(n.style, d);
427
+ function u() {
428
+ H(n.style, d);
429
429
  }
430
- c(), setTimeout(() => {
430
+ u(), setTimeout(() => {
431
431
  n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
432
432
  }), document.addEventListener("scroll", r, {
433
433
  capture: !0,
@@ -438,8 +438,8 @@ function Vt(e) {
438
438
  const qe = (e) => Object.entries(e).map(([n, i]) => {
439
439
  if (typeof i == "string")
440
440
  return `${ee(n)}: ${i};`;
441
- }).filter(G), Bt = (e) => qe(e).join(`
442
- `), q = ({
441
+ }).filter(Q), Bt = (e) => qe(e).join(`
442
+ `), M = ({
443
443
  mediaQuery: e,
444
444
  className: t,
445
445
  styles: n
@@ -451,21 +451,21 @@ const qe = (e) => Object.entries(e).map(([n, i]) => {
451
451
  ${i}
452
452
  }` : i;
453
453
  };
454
- function Nt({
454
+ function At({
455
455
  style: e
456
456
  }) {
457
457
  return e;
458
458
  }
459
- const At = ({
459
+ const Nt = ({
460
460
  block: e,
461
461
  context: t
462
- }) => Me(Nt({
462
+ }) => Me(At({
463
463
  style: e.style || {},
464
464
  context: t,
465
465
  block: e
466
466
  }));
467
467
  function Me(e) {
468
- switch (U) {
468
+ switch (L) {
469
469
  case "svelte":
470
470
  case "vue":
471
471
  case "solid":
@@ -495,7 +495,7 @@ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
495
495
  return;
496
496
  } else
497
497
  return a;
498
- }, $t = ({
498
+ }, Dt = ({
499
499
  block: e,
500
500
  context: t
501
501
  }) => {
@@ -505,7 +505,7 @@ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
505
505
  } = e;
506
506
  if (!(n != null && n.collection))
507
507
  return;
508
- const a = _({
508
+ const a = q({
509
509
  code: n.collection,
510
510
  localState: t.localState,
511
511
  rootState: t.rootState,
@@ -515,20 +515,20 @@ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
515
515
  if (!Array.isArray(a))
516
516
  return;
517
517
  const o = n.collection.split(".").pop(), r = n.itemName || (o ? o + "Item" : "item");
518
- return a.map((d, c) => ({
518
+ return a.map((d, u) => ({
519
519
  context: {
520
520
  ...t,
521
521
  localState: {
522
522
  ...t.localState,
523
- $index: c,
523
+ $index: u,
524
524
  $item: d,
525
525
  [r]: d,
526
- [`$${r}Index`]: c
526
+ [`$${r}Index`]: u
527
527
  }
528
528
  },
529
529
  block: i
530
530
  }));
531
- }, Dt = (e, t) => {
531
+ }, $t = (e, t) => {
532
532
  var n;
533
533
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
534
534
  builderLinkComponent: t
@@ -608,7 +608,7 @@ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
608
608
  default: l + 1
609
609
  }, t;
610
610
  };
611
- function z(e) {
611
+ function K(e) {
612
612
  return /* @__PURE__ */ s(
613
613
  "style",
614
614
  {
@@ -621,64 +621,64 @@ function z(e) {
621
621
  function Ut(e) {
622
622
  function t() {
623
623
  const i = e.block;
624
- return G(i.hide) ? !i.hide : G(i.show) ? i.show : !0;
624
+ return Q(i.hide) ? !i.hide : Q(i.show) ? i.show : !0;
625
625
  }
626
626
  function n() {
627
627
  var C, P, w, x, m;
628
628
  const i = e.block, a = i.responsiveStyles, o = e.context.content, r = ze(
629
629
  ((C = o == null ? void 0 : o.meta) == null ? void 0 : C.breakpoints) || {}
630
- ), l = !!((w = (P = o == null ? void 0 : o.meta) == null ? void 0 : P.breakpoints) != null && w.xsmall), d = a == null ? void 0 : a.large, c = a == null ? void 0 : a.medium, h = a == null ? void 0 : a.small, y = a == null ? void 0 : a.xsmall, u = i.id;
631
- if (!u)
630
+ ), l = !!((w = (P = o == null ? void 0 : o.meta) == null ? void 0 : P.breakpoints) != null && w.xsmall), d = a == null ? void 0 : a.large, u = a == null ? void 0 : a.medium, h = a == null ? void 0 : a.small, g = a == null ? void 0 : a.xsmall, c = i.id;
631
+ if (!c)
632
632
  return "";
633
- const v = d ? q({
634
- className: u,
633
+ const v = d ? M({
634
+ className: c,
635
635
  styles: d
636
- }) : "", f = c ? q({
637
- className: u,
638
- styles: c,
636
+ }) : "", f = u ? M({
637
+ className: c,
638
+ styles: u,
639
639
  mediaQuery: ie(
640
640
  "medium",
641
641
  r
642
642
  )
643
- }) : "", g = h ? q({
644
- className: u,
643
+ }) : "", b = h ? M({
644
+ className: c,
645
645
  styles: h,
646
646
  mediaQuery: ie(
647
647
  "small",
648
648
  r
649
649
  )
650
- }) : "", S = y && l ? q({
651
- className: u,
652
- styles: y,
650
+ }) : "", S = g && l ? M({
651
+ className: c,
652
+ styles: g,
653
653
  mediaQuery: ie(
654
654
  "xsmall",
655
655
  r
656
656
  )
657
- }) : "", b = i.animations && i.animations.find((p) => p.trigger === "hover");
657
+ }) : "", p = i.animations && i.animations.find((y) => y.trigger === "hover");
658
658
  let k = "";
659
- if (b) {
660
- const p = ((m = (x = b.steps) == null ? void 0 : x[1]) == null ? void 0 : m.styles) || {};
661
- k = q({
662
- className: `${u}:hover`,
659
+ if (p) {
660
+ const y = ((m = (x = p.steps) == null ? void 0 : x[1]) == null ? void 0 : m.styles) || {};
661
+ k = M({
662
+ className: `${c}:hover`,
663
663
  styles: {
664
- ...p,
665
- transition: `all ${b.duration}s ${ee(
666
- b.easing
664
+ ...y,
665
+ transition: `all ${p.duration}s ${ee(
666
+ p.easing
667
667
  )}`,
668
- transitionDelay: b.delay ? `${b.delay}s` : "0s"
668
+ transitionDelay: p.delay ? `${p.delay}s` : "0s"
669
669
  }
670
670
  }) || "";
671
671
  }
672
672
  return [
673
673
  v,
674
674
  f,
675
- g,
675
+ b,
676
676
  S,
677
677
  k
678
678
  ].join(" ");
679
679
  }
680
680
  return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
681
- z,
681
+ K,
682
682
  {
683
683
  id: "builderio-block",
684
684
  styles: n(),
@@ -689,7 +689,7 @@ function Ut(e) {
689
689
  function _t(e) {
690
690
  return e.charAt(0).toUpperCase() + e.slice(1);
691
691
  }
692
- const qt = (e) => `on${_t(e)}`, Mt = (e, t) => (n) => _({
692
+ const qt = (e) => `on${_t(e)}`, Mt = (e, t) => (n) => q({
693
693
  code: e,
694
694
  context: t.context,
695
695
  localState: t.localState,
@@ -707,7 +707,7 @@ function Ke(e) {
707
707
  const o = n[a];
708
708
  let r = qt(a);
709
709
  if (e.stripPrefix)
710
- switch (U) {
710
+ switch (L) {
711
711
  case "vue":
712
712
  r = r.replace("v-on:", "");
713
713
  break;
@@ -736,11 +736,11 @@ function fe({
736
736
  ...jt(e),
737
737
  ...e.properties,
738
738
  "builder-id": e.id,
739
- style: At({
739
+ style: Nt({
740
740
  block: e,
741
741
  context: t
742
742
  }),
743
- [j()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
743
+ [z()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
744
744
  };
745
745
  return Ht({
746
746
  properties: n,
@@ -874,9 +874,9 @@ function ke(e) {
874
874
  ) });
875
875
  }
876
876
  function te(e) {
877
- var h, y, u, v;
877
+ var h, g, c, v;
878
878
  function t() {
879
- return $t({
879
+ return Dt({
880
880
  block: e.block,
881
881
  context: e.context
882
882
  });
@@ -886,10 +886,10 @@ function te(e) {
886
886
  update: !1
887
887
  }));
888
888
  function a() {
889
- var g;
889
+ var b;
890
890
  if (n.value && !n.update && !Z())
891
891
  return n.value;
892
- const f = (g = e.block.repeat) != null && g.collection ? e.block : It({
892
+ const f = (b = e.block.repeat) != null && b.collection ? e.block : It({
893
893
  block: e.block,
894
894
  localState: e.context.localState,
895
895
  rootState: e.context.rootState,
@@ -906,30 +906,30 @@ function te(e) {
906
906
  });
907
907
  }
908
908
  function r() {
909
- var g;
910
- return e.block.tagName === "a" || ((g = a().properties) == null ? void 0 : g.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
909
+ var b;
910
+ return e.block.tagName === "a" || ((b = a().properties) == null ? void 0 : b.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
911
911
  }
912
912
  function l() {
913
- var S, b;
913
+ var S, p;
914
914
  if ((S = e.block.repeat) != null && S.collection)
915
- return !!((b = t == null ? void 0 : t()) != null && b.length);
915
+ return !!((p = t == null ? void 0 : t()) != null && p.length);
916
916
  const f = "hide" in a() ? a().hide : !1;
917
917
  return ("show" in a() ? a().show : !0) && !f;
918
918
  }
919
919
  function d() {
920
- var g, S;
921
- return !((g = o == null ? void 0 : o()) != null && g.component) && !t() ? (S = a().children) != null ? S : [] : [];
920
+ var b, S;
921
+ return !((b = o == null ? void 0 : o()) != null && b.component) && !t() ? (S = a().children) != null ? S : [] : [];
922
922
  }
923
- function c() {
924
- var f, g, S, b;
923
+ function u() {
924
+ var f, b, S, p;
925
925
  return {
926
926
  blockChildren: (f = a().children) != null ? f : [],
927
- componentRef: (g = o == null ? void 0 : o()) == null ? void 0 : g.component,
927
+ componentRef: (b = o == null ? void 0 : o()) == null ? void 0 : b.component,
928
928
  componentOptions: {
929
929
  ...pt(a(), e.context),
930
930
  ...Ot(o(), a()),
931
931
  ...Lt(o(), e.context),
932
- ...Dt(o(), e.linkComponent),
932
+ ...$t(o(), e.linkComponent),
933
933
  ...Ft(
934
934
  o(),
935
935
  e.registeredComponents,
@@ -941,13 +941,13 @@ function te(e) {
941
941
  registeredComponents: e.registeredComponents,
942
942
  builderBlock: a(),
943
943
  includeBlockProps: ((S = o == null ? void 0 : o()) == null ? void 0 : S.noWrap) === !0,
944
- isInteractive: !((b = o == null ? void 0 : o()) != null && b.isRSC && U === "rsc")
944
+ isInteractive: !((p = o == null ? void 0 : o()) != null && p.isRSC && L === "rsc")
945
945
  };
946
946
  }
947
947
  return V(() => {
948
- const f = a().id, g = a().animations;
949
- g && f && Rt(
950
- g.map((S) => ({
948
+ const f = a().id, b = a().animations;
949
+ b && f && Rt(
950
+ b.map((S) => ({
951
951
  ...S,
952
952
  elementId: f
953
953
  }))
@@ -956,7 +956,7 @@ function te(e) {
956
956
  n.update = !0;
957
957
  }), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ B(R, { children: [
958
958
  /* @__PURE__ */ s(Ut, { block: a(), context: e.context }),
959
- (h = o == null ? void 0 : o()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((f, g) => /* @__PURE__ */ s(
959
+ (h = o == null ? void 0 : o()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((f, b) => /* @__PURE__ */ s(
960
960
  ke,
961
961
  {
962
962
  repeatContext: f.context,
@@ -964,21 +964,21 @@ function te(e) {
964
964
  registeredComponents: e.registeredComponents,
965
965
  linkComponent: e.linkComponent
966
966
  },
967
- g
967
+ b
968
968
  )) }) : /* @__PURE__ */ s(
969
969
  Se,
970
970
  {
971
- componentRef: c().componentRef,
972
- componentOptions: c().componentOptions,
973
- blockChildren: c().blockChildren,
974
- context: c().context,
975
- registeredComponents: c().registeredComponents,
976
- linkComponent: c().linkComponent,
977
- builderBlock: c().builderBlock,
978
- includeBlockProps: c().includeBlockProps,
979
- isInteractive: c().isInteractive
971
+ componentRef: u().componentRef,
972
+ componentOptions: u().componentOptions,
973
+ blockChildren: u().blockChildren,
974
+ context: u().context,
975
+ registeredComponents: u().registeredComponents,
976
+ linkComponent: u().linkComponent,
977
+ builderBlock: u().builderBlock,
978
+ includeBlockProps: u().includeBlockProps,
979
+ isInteractive: u().isInteractive
980
980
  }
981
- ) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (u = t()) == null ? void 0 : u.map((f, g) => /* @__PURE__ */ s(
981
+ ) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (c = t()) == null ? void 0 : c.map((f, b) => /* @__PURE__ */ s(
982
982
  ke,
983
983
  {
984
984
  repeatContext: f.context,
@@ -986,7 +986,7 @@ function te(e) {
986
986
  registeredComponents: e.registeredComponents,
987
987
  linkComponent: e.linkComponent
988
988
  },
989
- g
989
+ b
990
990
  )) }) : /* @__PURE__ */ B(
991
991
  zt,
992
992
  {
@@ -997,18 +997,18 @@ function te(e) {
997
997
  /* @__PURE__ */ s(
998
998
  Se,
999
999
  {
1000
- componentRef: c().componentRef,
1001
- componentOptions: c().componentOptions,
1002
- blockChildren: c().blockChildren,
1003
- context: c().context,
1004
- registeredComponents: c().registeredComponents,
1005
- linkComponent: c().linkComponent,
1006
- builderBlock: c().builderBlock,
1007
- includeBlockProps: c().includeBlockProps,
1008
- isInteractive: c().isInteractive
1000
+ componentRef: u().componentRef,
1001
+ componentOptions: u().componentOptions,
1002
+ blockChildren: u().blockChildren,
1003
+ context: u().context,
1004
+ registeredComponents: u().registeredComponents,
1005
+ linkComponent: u().linkComponent,
1006
+ builderBlock: u().builderBlock,
1007
+ includeBlockProps: u().includeBlockProps,
1008
+ isInteractive: u().isInteractive
1009
1009
  }
1010
1010
  ),
1011
- (y = d()) == null ? void 0 : y.map((f) => /* @__PURE__ */ s(
1011
+ (g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */ s(
1012
1012
  te,
1013
1013
  {
1014
1014
  block: f,
@@ -1089,7 +1089,7 @@ function Qt(e) {
1089
1089
  }` })
1090
1090
  ] });
1091
1091
  }
1092
- function D(e) {
1092
+ function $(e) {
1093
1093
  var i, a, o;
1094
1094
  const t = ve(de), n = ve(We);
1095
1095
  return /* @__PURE__ */ s(
@@ -1117,7 +1117,7 @@ function D(e) {
1117
1117
  }
1118
1118
  const Yt = (e) => `builder-columns ${e}-breakpoints`;
1119
1119
  function Xt(e) {
1120
- var g, S;
1120
+ var b, S;
1121
1121
  function t() {
1122
1122
  return typeof e.space == "number" ? e.space || 0 : 20;
1123
1123
  }
@@ -1127,43 +1127,43 @@ function Xt(e) {
1127
1127
  function i() {
1128
1128
  return e.stackColumnsAt || "tablet";
1129
1129
  }
1130
- function a(b) {
1131
- return b.link ? e.builderLinkComponent || "a" : "div";
1130
+ function a(p) {
1131
+ return p.link ? e.builderLinkComponent || "a" : "div";
1132
1132
  }
1133
- function o(b) {
1133
+ function o(p) {
1134
1134
  var k;
1135
- return ((k = n()[b]) == null ? void 0 : k.width) || 100 / n().length;
1135
+ return ((k = n()[p]) == null ? void 0 : k.width) || 100 / n().length;
1136
1136
  }
1137
- function r(b) {
1138
- const k = o(b), C = t() * (n().length - 1) * (k / 100);
1137
+ function r(p) {
1138
+ const k = o(p), C = t() * (n().length - 1) * (k / 100);
1139
1139
  return `calc(${k}% - ${C}px)`;
1140
1140
  }
1141
1141
  function l({
1142
- stackedStyle: b,
1142
+ stackedStyle: p,
1143
1143
  desktopStyle: k
1144
1144
  }) {
1145
- return i() === "tablet" ? b : k;
1145
+ return i() === "tablet" ? p : k;
1146
1146
  }
1147
1147
  function d({
1148
- stackedStyle: b,
1148
+ stackedStyle: p,
1149
1149
  desktopStyle: k
1150
1150
  }) {
1151
- return i() === "never" ? k : b;
1151
+ return i() === "never" ? k : p;
1152
1152
  }
1153
- function c() {
1153
+ function u() {
1154
1154
  return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
1155
1155
  }
1156
1156
  function h() {
1157
1157
  return {
1158
- "--flex-dir": c(),
1158
+ "--flex-dir": u(),
1159
1159
  "--flex-dir-tablet": l({
1160
- stackedStyle: c(),
1160
+ stackedStyle: u(),
1161
1161
  desktopStyle: "row"
1162
1162
  })
1163
1163
  };
1164
1164
  }
1165
- function y(b) {
1166
- const k = b === 0 ? 0 : t(), C = r(b), P = `${k}px`, w = "100%", x = 0;
1165
+ function g(p) {
1166
+ const k = p === 0 ? 0 : t(), C = r(p), P = `${k}px`, w = "100%", x = 0;
1167
1167
  return {
1168
1168
  ...{
1169
1169
  display: "flex",
@@ -1190,79 +1190,79 @@ function Xt(e) {
1190
1190
  })
1191
1191
  };
1192
1192
  }
1193
- function u(b) {
1193
+ function c(p) {
1194
1194
  var C, P;
1195
1195
  return ze(
1196
1196
  ((P = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : P.breakpoints) || {}
1197
- )[b].max;
1197
+ )[p].max;
1198
1198
  }
1199
1199
  function v() {
1200
- const b = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1200
+ const p = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1201
1201
  return `
1202
- @media (max-width: ${u("medium")}px) {
1202
+ @media (max-width: ${c("medium")}px) {
1203
1203
  .${e.builderBlock.id}-breakpoints {
1204
1204
  flex-direction: var(--flex-dir-tablet);
1205
1205
  align-items: stretch;
1206
1206
  }
1207
1207
 
1208
- ${b} {
1208
+ ${p} {
1209
1209
  width: var(--column-width-tablet) !important;
1210
1210
  margin-left: var(--column-margin-left-tablet) !important;
1211
1211
  }
1212
1212
  }
1213
1213
 
1214
- @media (max-width: ${u("small")}px) {
1214
+ @media (max-width: ${c("small")}px) {
1215
1215
  .${e.builderBlock.id}-breakpoints {
1216
1216
  flex-direction: var(--flex-dir);
1217
1217
  align-items: stretch;
1218
1218
  }
1219
1219
 
1220
- ${b} {
1220
+ ${p} {
1221
1221
  width: var(--column-width-mobile) !important;
1222
1222
  margin-left: var(--column-margin-left-mobile) !important;
1223
1223
  }
1224
1224
  },
1225
1225
  `;
1226
1226
  }
1227
- function f(b, k) {
1227
+ function f(p, k) {
1228
1228
  return {
1229
- ...b.link ? {
1230
- href: b.link
1229
+ ...p.link ? {
1230
+ href: p.link
1231
1231
  } : {},
1232
- [j()]: "builder-column",
1233
- style: Me(y(k))
1232
+ [z()]: "builder-column",
1233
+ style: Me(g(k))
1234
1234
  };
1235
1235
  }
1236
1236
  return /* @__PURE__ */ B(R, { children: [
1237
1237
  /* @__PURE__ */ B(
1238
1238
  "div",
1239
1239
  {
1240
- className: Yt((g = e.builderBlock) == null ? void 0 : g.id) + " div-a6f3faac",
1240
+ className: Yt((b = e.builderBlock) == null ? void 0 : b.id) + " div-a6f3faac",
1241
1241
  style: h(),
1242
1242
  children: [
1243
1243
  /* @__PURE__ */ s(
1244
- z,
1244
+ K,
1245
1245
  {
1246
1246
  id: "builderio-columns",
1247
1247
  styles: v(),
1248
1248
  nonce: e.builderContext.nonce
1249
1249
  }
1250
1250
  ),
1251
- (S = e.columns) == null ? void 0 : S.map((b, k) => /* @__PURE__ */ s(
1251
+ (S = e.columns) == null ? void 0 : S.map((p, k) => /* @__PURE__ */ s(
1252
1252
  ue,
1253
1253
  {
1254
- TagName: a(b),
1254
+ TagName: a(p),
1255
1255
  actionAttributes: {},
1256
- attributes: f(b, k),
1256
+ attributes: f(p, k),
1257
1257
  children: /* @__PURE__ */ s(
1258
- D,
1258
+ $,
1259
1259
  {
1260
1260
  path: `columns.${k}.blocks`,
1261
1261
  parent: e.builderBlock.id,
1262
1262
  context: e.builderContext,
1263
1263
  registeredComponents: e.builderComponents,
1264
1264
  linkComponent: e.builderLinkComponent,
1265
- blocks: b.blocks,
1265
+ blocks: p.blocks,
1266
1266
  styleProp: {
1267
1267
  flexGrow: "1"
1268
1268
  }
@@ -1314,21 +1314,21 @@ function ae(e) {
1314
1314
  return e.match(/cdn\.shopify\.com/) ? t.map((n) => [tn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1315
1315
  }
1316
1316
  function nn(e) {
1317
- var a, o, r, l, d, c;
1317
+ var a, o, r, l, d, u;
1318
1318
  function t() {
1319
- var u;
1320
- const y = e.image || e.src;
1321
- if (!y || // We can auto add srcset for cdn.builder.io and shopify
1319
+ var c;
1320
+ const g = e.image || e.src;
1321
+ if (!g || // We can auto add srcset for cdn.builder.io and shopify
1322
1322
  // images, otherwise you can supply this prop manually
1323
- !(typeof y == "string" && (y.match(/builder\.io/) || y.match(/cdn\.shopify\.com/))))
1323
+ !(typeof g == "string" && (g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/))))
1324
1324
  return e.srcset;
1325
1325
  if (!e.noWebp) {
1326
- if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
1326
+ if (e.srcset && ((c = e.image) != null && c.includes("builder.io/api/v1/image"))) {
1327
1327
  if (!e.srcset.includes(e.image.split("?")[0]))
1328
- return console.debug("Removed given srcset"), ae(y);
1328
+ return console.debug("Removed given srcset"), ae(g);
1329
1329
  } else if (e.image && !e.srcset)
1330
- return ae(y);
1331
- return ae(y);
1330
+ return ae(g);
1331
+ return ae(g);
1332
1332
  }
1333
1333
  }
1334
1334
  function n() {
@@ -1378,7 +1378,7 @@ function nn(e) {
1378
1378
  }
1379
1379
  ) : null,
1380
1380
  (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
1381
- !e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-9dac2184-2", children: e.children }) : null
1381
+ !e.fitContent && ((u = (d = e.builderBlock) == null ? void 0 : d.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-9dac2184-2", children: e.children }) : null
1382
1382
  ] }),
1383
1383
  /* @__PURE__ */ s("style", { children: `.img-9dac2184 {
1384
1384
  opacity: 1;
@@ -1546,7 +1546,7 @@ const oe = {
1546
1546
  }
1547
1547
  }, Te = (e) => e.toString();
1548
1548
  function rn(e) {
1549
- var y;
1549
+ var g;
1550
1550
  const [t, n] = I(() => []);
1551
1551
  function i() {
1552
1552
  return !!(e.grid || e.oneAtATime);
@@ -1573,57 +1573,57 @@ function rn(e) {
1573
1573
  cursor: "pointer"
1574
1574
  };
1575
1575
  return Object.fromEntries(
1576
- Object.entries(v).filter(([f, g]) => g !== void 0)
1576
+ Object.entries(v).filter(([f, b]) => b !== void 0)
1577
1577
  );
1578
1578
  }
1579
- function r(u) {
1580
- return `builder-accordion-title builder-accordion-title-${t.includes(u) ? "open" : "closed"}`;
1579
+ function r(c) {
1580
+ return `builder-accordion-title builder-accordion-title-${t.includes(c) ? "open" : "closed"}`;
1581
1581
  }
1582
- function l(u) {
1583
- return `builder-accordion-detail builder-accordion-detail-${t.includes(u) ? "open" : "closed"}`;
1582
+ function l(c) {
1583
+ return `builder-accordion-detail builder-accordion-detail-${t.includes(c) ? "open" : "closed"}`;
1584
1584
  }
1585
1585
  function d() {
1586
- let u = null;
1586
+ let c = null;
1587
1587
  if (e.grid && t.length && document) {
1588
1588
  const f = t[0];
1589
1589
  let S = document.querySelector(
1590
1590
  `.builder-accordion-title[data-index="${f}"]`
1591
1591
  );
1592
- if (u = f, S) {
1593
- let b = S.getBoundingClientRect();
1592
+ if (c = f, S) {
1593
+ let p = S.getBoundingClientRect();
1594
1594
  for (; S = S && S.nextElementSibling; )
1595
1595
  if (S) {
1596
1596
  if (S.classList.contains("builder-accordion-detail"))
1597
1597
  continue;
1598
1598
  const k = S.getBoundingClientRect();
1599
- if (k.left > b.left) {
1599
+ if (k.left > p.left) {
1600
1600
  const C = parseInt(
1601
1601
  S.getAttribute("data-index") || "",
1602
1602
  10
1603
1603
  );
1604
- isNaN(C) || (b = k, u = C);
1604
+ isNaN(C) || (p = k, c = C);
1605
1605
  } else
1606
1606
  break;
1607
1607
  }
1608
1608
  }
1609
1609
  }
1610
- return typeof u == "number" && (u = u + 1), u;
1610
+ return typeof c == "number" && (c = c + 1), c;
1611
1611
  }
1612
- function c() {
1613
- const u = {
1612
+ function u() {
1613
+ const c = {
1614
1614
  order: typeof d() == "number" ? d() : void 0,
1615
1615
  ...e.grid && {
1616
1616
  width: "100%"
1617
1617
  }
1618
1618
  };
1619
1619
  return Object.fromEntries(
1620
- Object.entries(u).filter(([v, f]) => f !== void 0)
1620
+ Object.entries(c).filter(([v, f]) => f !== void 0)
1621
1621
  );
1622
1622
  }
1623
- function h(u) {
1624
- t.includes(u) ? n(i() ? [] : t.filter((v) => v !== u)) : n(i() ? [u] : t.concat(u));
1623
+ function h(c) {
1624
+ t.includes(c) ? n(i() ? [] : t.filter((v) => v !== c)) : n(i() ? [c] : t.concat(c));
1625
1625
  }
1626
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (y = e.items) == null ? void 0 : y.map((u, v) => /* @__PURE__ */ B(at.Fragment, { children: [
1626
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (g = e.items) == null ? void 0 : g.map((c, v) => /* @__PURE__ */ B(at.Fragment, { children: [
1627
1627
  /* @__PURE__ */ s(
1628
1628
  "div",
1629
1629
  {
@@ -1638,9 +1638,9 @@ function rn(e) {
1638
1638
  "data-index": v,
1639
1639
  onClick: (f) => h(v),
1640
1640
  children: /* @__PURE__ */ s(
1641
- D,
1641
+ $,
1642
1642
  {
1643
- blocks: u.title,
1643
+ blocks: c.title,
1644
1644
  path: `items.${v}.title`,
1645
1645
  parent: e.builderBlock.id,
1646
1646
  context: e.builderContext,
@@ -1654,11 +1654,11 @@ function rn(e) {
1654
1654
  "div",
1655
1655
  {
1656
1656
  className: l(v),
1657
- style: c(),
1657
+ style: u(),
1658
1658
  children: /* @__PURE__ */ s(
1659
- D,
1659
+ $,
1660
1660
  {
1661
- blocks: u.detail,
1661
+ blocks: c.detail,
1662
1662
  path: `items.${v}.detail`,
1663
1663
  parent: e.builderBlock.id,
1664
1664
  context: e.builderContext,
@@ -1940,15 +1940,15 @@ const ln = {
1940
1940
  onChange: (e) => {
1941
1941
  e.delete("srcset"), e.delete("noWebp");
1942
1942
  function n(r, l = 6e4) {
1943
- return new Promise((d, c) => {
1943
+ return new Promise((d, u) => {
1944
1944
  const h = document.createElement("img");
1945
- let y = !1;
1945
+ let g = !1;
1946
1946
  h.onload = () => {
1947
- y = !0, d(h);
1948
- }, h.addEventListener("error", (u) => {
1949
- console.warn("Image load failed", u.error), c(u.error);
1947
+ g = !0, d(h);
1948
+ }, h.addEventListener("error", (c) => {
1949
+ console.warn("Image load failed", c.error), u(c.error);
1950
1950
  }), h.src = r, setTimeout(() => {
1951
- y || c(new Error("Image load timed out"));
1951
+ g || u(new Error("Image load timed out"));
1952
1952
  }, l);
1953
1953
  });
1954
1954
  }
@@ -2063,7 +2063,7 @@ const ln = {
2063
2063
  }]
2064
2064
  }]
2065
2065
  };
2066
- function Y(e) {
2066
+ function X(e) {
2067
2067
  return /* @__PURE__ */ s(
2068
2068
  "script",
2069
2069
  {
@@ -2074,50 +2074,50 @@ function Y(e) {
2074
2074
  );
2075
2075
  }
2076
2076
  function fn(e, t, n, i) {
2077
- function a(c) {
2078
- return typeof c == "string";
2077
+ function a(u) {
2078
+ return typeof u == "string";
2079
2079
  }
2080
- function o(c) {
2081
- return typeof c == "number";
2080
+ function o(u) {
2081
+ return typeof u == "number";
2082
2082
  }
2083
- function r(c, h) {
2083
+ function r(u, h) {
2084
2084
  return (() => {
2085
- const u = h.property, v = h.operator;
2085
+ const c = h.property, v = h.operator;
2086
2086
  let f = h.value;
2087
- if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(u && v))
2087
+ if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(c && v))
2088
2088
  return !0;
2089
2089
  if (Array.isArray(f))
2090
- return v === "isNot" ? f.every((S) => r(c, {
2091
- property: u,
2090
+ return v === "isNot" ? f.every((S) => r(u, {
2091
+ property: c,
2092
2092
  operator: v,
2093
2093
  value: S
2094
- })) : !!f.find((S) => r(c, {
2095
- property: u,
2094
+ })) : !!f.find((S) => r(u, {
2095
+ property: c,
2096
2096
  operator: v,
2097
2097
  value: S
2098
2098
  }));
2099
- const g = c[u];
2100
- if (Array.isArray(g))
2101
- return g.includes(f);
2099
+ const b = u[c];
2100
+ if (Array.isArray(b))
2101
+ return b.includes(f);
2102
2102
  switch (v) {
2103
2103
  case "is":
2104
- return g === f;
2104
+ return b === f;
2105
2105
  case "isNot":
2106
- return g !== f;
2106
+ return b !== f;
2107
2107
  case "contains":
2108
- return (a(g) || Array.isArray(g)) && g.includes(String(f));
2108
+ return (a(b) || Array.isArray(b)) && b.includes(String(f));
2109
2109
  case "startsWith":
2110
- return a(g) && g.startsWith(String(f));
2110
+ return a(b) && b.startsWith(String(f));
2111
2111
  case "endsWith":
2112
- return a(g) && g.endsWith(String(f));
2112
+ return a(b) && b.endsWith(String(f));
2113
2113
  case "greaterThan":
2114
- return o(g) && o(f) && g > f;
2114
+ return o(b) && o(f) && b > f;
2115
2115
  case "lessThan":
2116
- return o(g) && o(f) && g < f;
2116
+ return o(b) && o(f) && b < f;
2117
2117
  case "greaterThanOrEqualTo":
2118
- return o(g) && o(f) && g >= f;
2118
+ return o(b) && o(f) && b >= f;
2119
2119
  case "lessThanOrEqualTo":
2120
- return o(g) && o(f) && g <= f;
2120
+ return o(b) && o(f) && b <= f;
2121
2121
  default:
2122
2122
  return !1;
2123
2123
  }
@@ -2128,7 +2128,7 @@ function fn(e, t, n, i) {
2128
2128
  startDate: n,
2129
2129
  endDate: i
2130
2130
  }, d = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
2131
- return l.startDate && new Date(l.startDate) > d || l.endDate && new Date(l.endDate) < d ? !1 : !l.query || !l.query.length ? !0 : l.query.every((c) => r(e, c));
2131
+ return l.startDate && new Date(l.startDate) > d || l.endDate && new Date(l.endDate) < d ? !1 : !l.query || !l.query.length ? !0 : l.query.every((u) => r(e, u));
2132
2132
  }
2133
2133
  const hn = `function getPersonalizedVariant(variants, blockId, locale) {
2134
2134
  if (!navigator.cookieEnabled) {
@@ -2263,7 +2263,7 @@ const hn = `function getPersonalizedVariant(variants, blockId, locale) {
2263
2263
  });
2264
2264
  }`;
2265
2265
  function bn(e, t) {
2266
- return !(!(e && e.length > 0) || !t || L());
2266
+ return !(!(e && e.length > 0) || !t || U());
2267
2267
  }
2268
2268
  function pn({
2269
2269
  variants: e,
@@ -2282,7 +2282,7 @@ function pn({
2282
2282
  blocks: e[t].blocks,
2283
2283
  path: `component.options.variants.${t}.blocks`
2284
2284
  } : o;
2285
- if (L()) {
2285
+ if (U()) {
2286
2286
  const l = i == null ? void 0 : i[0];
2287
2287
  if (l)
2288
2288
  return {
@@ -2300,33 +2300,33 @@ const yn = (e, t, n) => `
2300
2300
  })();
2301
2301
  `;
2302
2302
  function vn(e) {
2303
- var g, S, b, k, C, P, w;
2303
+ var b, S, p, k, C, P, w;
2304
2304
  const t = O(null), [n, i] = I(
2305
2305
  () => be.getUserAttributes()
2306
2306
  ), [a, o] = I(
2307
2307
  () => {
2308
- var x, m, p;
2308
+ var x, m, y;
2309
2309
  return yn(
2310
2310
  e.variants,
2311
2311
  ((x = e.builderBlock) == null ? void 0 : x.id) || "none",
2312
- (p = (m = e.builderContext) == null ? void 0 : m.rootState) == null ? void 0 : p.locale
2312
+ (y = (m = e.builderContext) == null ? void 0 : m.rootState) == null ? void 0 : y.locale
2313
2313
  );
2314
2314
  }
2315
- ), [r, l] = I(() => []), [d, c] = I(
2315
+ ), [r, l] = I(() => []), [d, u] = I(
2316
2316
  () => {
2317
2317
  var x;
2318
2318
  return bn(
2319
2319
  e.variants,
2320
- H((x = e.builderContext) == null ? void 0 : x.canTrack)
2320
+ j((x = e.builderContext) == null ? void 0 : x.canTrack)
2321
2321
  );
2322
2322
  }
2323
- ), [h, y] = I(() => !1);
2324
- function u() {
2323
+ ), [h, g] = I(() => !1);
2324
+ function c() {
2325
2325
  return (e.variants || []).filter((x) => {
2326
- var m, p, T, E;
2326
+ var m, y, T, E;
2327
2327
  return fn(
2328
2328
  {
2329
- ...(p = (m = e.builderContext) == null ? void 0 : m.rootState) != null && p.locale ? {
2329
+ ...(y = (m = e.builderContext) == null ? void 0 : m.rootState) != null && y.locale ? {
2330
2330
  locale: (E = (T = e.builderContext) == null ? void 0 : T.rootState) == null ? void 0 : E.locale
2331
2331
  } : {},
2332
2332
  ...n
@@ -2343,32 +2343,32 @@ function vn(e) {
2343
2343
  variants: e.variants,
2344
2344
  fallbackBlocks: (x = e.builderBlock) == null ? void 0 : x.children,
2345
2345
  isHydrated: h,
2346
- filteredVariants: u(),
2346
+ filteredVariants: c(),
2347
2347
  previewingIndex: e.previewingIndex
2348
2348
  });
2349
2349
  }
2350
2350
  function f() {
2351
2351
  return (e.variants || []).map(
2352
2352
  (x, m) => {
2353
- var p;
2354
- return `[data-variant-id="${(p = e.builderBlock) == null ? void 0 : p.id}-${m}"] { display: none; } `;
2353
+ var y;
2354
+ return `[data-variant-id="${(y = e.builderBlock) == null ? void 0 : y.id}-${m}"] { display: none; } `;
2355
2355
  }
2356
2356
  ).join("");
2357
2357
  }
2358
2358
  return V(() => {
2359
2359
  var m;
2360
- y(!0);
2360
+ g(!0);
2361
2361
  const x = be.subscribeOnUserAttributesChange(
2362
- (p) => {
2363
- i(p);
2362
+ (y) => {
2363
+ i(y);
2364
2364
  }
2365
2365
  );
2366
2366
  if (!(A() || Z())) {
2367
- const p = u()[0];
2367
+ const y = c()[0];
2368
2368
  t.current && (t.current.dispatchEvent(
2369
2369
  new CustomEvent("builder.variantLoaded", {
2370
2370
  detail: {
2371
- variant: p || "default",
2371
+ variant: y || "default",
2372
2372
  content: (m = e.builderContext) == null ? void 0 : m.content
2373
2373
  },
2374
2374
  bubbles: !0
@@ -2379,7 +2379,7 @@ function vn(e) {
2379
2379
  N.isIntersecting && t.current && t.current.dispatchEvent(
2380
2380
  new CustomEvent("builder.variantDisplayed", {
2381
2381
  detail: {
2382
- variant: p || "default",
2382
+ variant: y || "default",
2383
2383
  content: (W = e.builderContext) == null ? void 0 : W.content
2384
2384
  },
2385
2385
  bubbles: !0
@@ -2396,17 +2396,17 @@ function vn(e) {
2396
2396
  {
2397
2397
  ref: t,
2398
2398
  ...e.attributes,
2399
- className: `builder-personalization-container ${((g = e.attributes) == null ? void 0 : g.className) || ""}`,
2399
+ className: `builder-personalization-container ${((b = e.attributes) == null ? void 0 : b.className) || ""}`,
2400
2400
  children: [
2401
2401
  d ? /* @__PURE__ */ B(R, { children: [
2402
2402
  (S = e.variants) == null ? void 0 : S.map((x, m) => {
2403
- var p, T;
2403
+ var y, T;
2404
2404
  return /* @__PURE__ */ s(
2405
2405
  "template",
2406
2406
  {
2407
- "data-variant-id": `${(p = e.builderBlock) == null ? void 0 : p.id}-${m}`,
2407
+ "data-variant-id": `${(y = e.builderBlock) == null ? void 0 : y.id}-${m}`,
2408
2408
  children: /* @__PURE__ */ s(
2409
- D,
2409
+ $,
2410
2410
  {
2411
2411
  blocks: x.blocks,
2412
2412
  parent: (T = e.builderBlock) == null ? void 0 : T.id,
@@ -2418,15 +2418,15 @@ function vn(e) {
2418
2418
  );
2419
2419
  }),
2420
2420
  /* @__PURE__ */ s(
2421
- z,
2421
+ K,
2422
2422
  {
2423
- nonce: ((b = e.builderContext) == null ? void 0 : b.nonce) || "",
2423
+ nonce: ((p = e.builderContext) == null ? void 0 : p.nonce) || "",
2424
2424
  styles: f(),
2425
2425
  id: `variants-styles-${(k = e.builderBlock) == null ? void 0 : k.id}`
2426
2426
  }
2427
2427
  ),
2428
2428
  /* @__PURE__ */ s(
2429
- Y,
2429
+ X,
2430
2430
  {
2431
2431
  nonce: ((C = e.builderContext) == null ? void 0 : C.nonce) || "",
2432
2432
  scriptStr: a,
@@ -2435,7 +2435,7 @@ function vn(e) {
2435
2435
  )
2436
2436
  ] }) : null,
2437
2437
  /* @__PURE__ */ s(
2438
- D,
2438
+ $,
2439
2439
  {
2440
2440
  blocks: v().blocks,
2441
2441
  parent: (w = e.builderBlock) == null ? void 0 : w.id,
@@ -2515,7 +2515,7 @@ function kn(e) {
2515
2515
  "builder-slot": e.name
2516
2516
  },
2517
2517
  children: /* @__PURE__ */ s(
2518
- D,
2518
+ $,
2519
2519
  {
2520
2520
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
2521
2521
  path: `symbol.data.${e.name}`,
@@ -2739,7 +2739,7 @@ function wn(e) {
2739
2739
  },
2740
2740
  onClick: (d) => a(l),
2741
2741
  children: /* @__PURE__ */ s(
2742
- D,
2742
+ $,
2743
2743
  {
2744
2744
  parent: e.builderBlock.id,
2745
2745
  path: `tabs.${l}.label`,
@@ -2755,7 +2755,7 @@ function wn(e) {
2755
2755
  }
2756
2756
  ),
2757
2757
  i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
2758
- D,
2758
+ $,
2759
2759
  {
2760
2760
  parent: e.builderBlock.id,
2761
2761
  path: `tabs.${t}.content`,
@@ -2828,34 +2828,42 @@ const Rn = {
2828
2828
  };
2829
2829
  function Pn(e) {
2830
2830
  const t = O(null), [n, i] = I(() => []), [a, o] = I(() => []);
2831
- return V(() => {
2832
- var l;
2833
- if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
2831
+ function r() {
2832
+ var d;
2833
+ if (!t.current || !((d = t.current) != null && d.getElementsByTagName) || typeof window == "undefined")
2834
2834
  return;
2835
- const r = t.current.getElementsByTagName("script");
2836
- for (let d = 0; d < r.length; d++) {
2837
- const c = r[d];
2838
- if (c.src) {
2839
- if (n.includes(c.src))
2835
+ const l = t.current.getElementsByTagName("script");
2836
+ for (let u = 0; u < l.length; u++) {
2837
+ const h = l[u];
2838
+ if (h.src) {
2839
+ if (n.includes(h.src))
2840
2840
  continue;
2841
- n.push(c.src);
2842
- const h = document.createElement("script");
2843
- h.async = !0, h.src = c.src, document.head.appendChild(h);
2844
- } else if (!c.type || [
2841
+ n.push(h.src);
2842
+ const g = document.createElement("script");
2843
+ g.async = !0, g.src = h.src, document.head.appendChild(g);
2844
+ } else if (!h.type || [
2845
2845
  "text/javascript",
2846
2846
  "application/javascript",
2847
2847
  "application/ecmascript"
2848
- ].includes(c.type)) {
2849
- if (a.includes(c.innerText))
2848
+ ].includes(h.type)) {
2849
+ if (a.includes(h.innerText))
2850
2850
  continue;
2851
2851
  try {
2852
- a.push(c.innerText), new Function(c.innerText)();
2853
- } catch (h) {
2854
- console.warn("`CustomCode`: Error running script:", h);
2852
+ a.push(h.innerText), new Function(h.innerText)();
2853
+ } catch (g) {
2854
+ _.warn(
2855
+ "[BUILDER.IO] `CustomCode`: Error running script:",
2856
+ g
2857
+ );
2855
2858
  }
2856
2859
  }
2857
2860
  }
2858
- }, []), /* @__PURE__ */ s(
2861
+ }
2862
+ return V(() => {
2863
+ r();
2864
+ }, []), V(() => {
2865
+ A() && r();
2866
+ }, [e.code]), /* @__PURE__ */ s(
2859
2867
  "div",
2860
2868
  {
2861
2869
  ref: t,
@@ -2879,24 +2887,24 @@ const Vn = {
2879
2887
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2880
2888
  hideFromUI: !0
2881
2889
  }]
2882
- }, Bn = ["text/javascript", "application/javascript", "application/ecmascript"], Nn = (e) => Bn.includes(e.type);
2883
- function An(e) {
2890
+ }, Bn = ["text/javascript", "application/javascript", "application/ecmascript"], An = (e) => Bn.includes(e.type);
2891
+ function Nn(e) {
2884
2892
  const t = O(null), [n, i] = I(() => []), [a, o] = I(() => []), [r, l] = I(() => !1);
2885
2893
  function d() {
2886
2894
  if (!t.current || !t.current.getElementsByTagName)
2887
2895
  return;
2888
- const c = t.current.getElementsByTagName("script");
2889
- for (let h = 0; h < c.length; h++) {
2890
- const y = c[h];
2891
- if (y.src && !n.includes(y.src)) {
2892
- n.push(y.src);
2893
- const u = document.createElement("script");
2894
- u.async = !0, u.src = y.src, document.head.appendChild(u);
2895
- } else if (Nn(y) && !a.includes(y.innerText))
2896
+ const u = t.current.getElementsByTagName("script");
2897
+ for (let h = 0; h < u.length; h++) {
2898
+ const g = u[h];
2899
+ if (g.src && !n.includes(g.src)) {
2900
+ n.push(g.src);
2901
+ const c = document.createElement("script");
2902
+ c.async = !0, c.src = g.src, document.head.appendChild(c);
2903
+ } else if (An(g) && !a.includes(g.innerText))
2896
2904
  try {
2897
- a.push(y.innerText), new Function(y.innerText)();
2898
- } catch (u) {
2899
- console.warn("`Embed`: Error running script:", u);
2905
+ a.push(g.innerText), new Function(g.innerText)();
2906
+ } catch (c) {
2907
+ _.warn("[BUILDER.IO] `Embed`: Error running script:", c);
2900
2908
  }
2901
2909
  }
2902
2910
  }
@@ -3148,90 +3156,90 @@ const Wn = {
3148
3156
  builderComponents: !0,
3149
3157
  builderLinkComponent: !0
3150
3158
  }
3151
- }, $n = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Dn = () => {
3159
+ }, Dn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], $n = () => {
3152
3160
  const e = process.env.NODE_ENV || "production";
3153
- return $n.includes(e) ? e : "production";
3161
+ return Dn.includes(e) ? e : "production";
3154
3162
  };
3155
3163
  function Fn(e) {
3156
3164
  const t = O(null), [n, i] = I(() => "unsubmitted"), [a, o] = I(() => null), [r, l] = I(() => "");
3157
- function d(y) {
3165
+ function d(g) {
3158
3166
  var v, f;
3159
- const u = {
3167
+ const c = {
3160
3168
  ...e.builderContext.rootState,
3161
- ...y
3169
+ ...g
3162
3170
  };
3163
- e.builderContext.rootSetState ? (f = (v = e.builderContext).rootSetState) == null || f.call(v, u) : e.builderContext.rootState = u;
3171
+ e.builderContext.rootSetState ? (f = (v = e.builderContext).rootSetState) == null || f.call(v, c) : e.builderContext.rootState = c;
3164
3172
  }
3165
- function c() {
3173
+ function u() {
3166
3174
  return A() && e.previewState || n;
3167
3175
  }
3168
- function h(y) {
3176
+ function h(g) {
3169
3177
  var v;
3170
- const u = e.sendWithJs || e.sendSubmissionsTo === "email";
3178
+ const c = e.sendWithJs || e.sendSubmissionsTo === "email";
3171
3179
  if (e.sendSubmissionsTo === "zapier")
3172
- y.preventDefault();
3173
- else if (u) {
3180
+ g.preventDefault();
3181
+ else if (c) {
3174
3182
  if (!(e.action || e.sendSubmissionsTo === "email")) {
3175
- y.preventDefault();
3183
+ g.preventDefault();
3176
3184
  return;
3177
3185
  }
3178
- y.preventDefault();
3179
- const f = y.currentTarget || y.target, g = e.customHeaders || {};
3186
+ g.preventDefault();
3187
+ const f = g.currentTarget || g.target, b = e.customHeaders || {};
3180
3188
  let S;
3181
- const b = new FormData(f), k = Array.from(f.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
3182
- let p;
3189
+ const p = new FormData(f), k = Array.from(f.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
3190
+ let y;
3183
3191
  const T = m.name;
3184
3192
  if (m instanceof HTMLInputElement)
3185
3193
  if (m.type === "radio") {
3186
3194
  if (m.checked)
3187
- return p = m.name, {
3195
+ return y = m.name, {
3188
3196
  key: T,
3189
- value: p
3197
+ value: y
3190
3198
  };
3191
3199
  } else if (m.type === "checkbox")
3192
- p = m.checked;
3200
+ y = m.checked;
3193
3201
  else if (m.type === "number" || m.type === "range") {
3194
3202
  const E = m.valueAsNumber;
3195
- isNaN(E) || (p = E);
3203
+ isNaN(E) || (y = E);
3196
3204
  } else
3197
- m.type === "file" ? p = m.files : p = m.value;
3205
+ m.type === "file" ? y = m.files : y = m.value;
3198
3206
  else
3199
- p = m.value;
3207
+ y = m.value;
3200
3208
  return {
3201
3209
  key: T,
3202
- value: p
3210
+ value: y
3203
3211
  };
3204
3212
  });
3205
3213
  let C = e.contentType;
3206
3214
  if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(k).forEach(({ value: m }) => {
3207
3215
  (m instanceof File || Array.isArray(m) && m[0] instanceof File || m instanceof FileList) && (C = "multipart/form-data");
3208
3216
  }), C !== "application/json")
3209
- S = b;
3217
+ S = p;
3210
3218
  else {
3211
3219
  const m = {};
3212
- Array.from(k).forEach(({ value: p, key: T }) => {
3213
- Oe(m, T, p);
3220
+ Array.from(k).forEach(({ value: y, key: T }) => {
3221
+ Oe(m, T, y);
3214
3222
  }), S = JSON.stringify(m);
3215
3223
  }
3216
- C && C !== "multipart/form-data" && (u && ((v = e.action) != null && v.includes("zapier.com")) || (g["content-type"] = C));
3224
+ C && C !== "multipart/form-data" && (c && ((v = e.action) != null && v.includes("zapier.com")) || (b["content-type"] = C));
3217
3225
  const P = new CustomEvent("presubmit", { detail: { body: S } });
3218
3226
  if (t.current && (t.current.dispatchEvent(P), P.defaultPrevented))
3219
3227
  return;
3220
3228
  i("sending");
3221
- const w = `${Dn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3229
+ const w = `${$n() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3222
3230
  e.sendSubmissionsToEmail || ""
3223
3231
  )}&name=${encodeURIComponent(e.name || "")}`, x = e.sendSubmissionsTo === "email" ? w : e.action;
3224
- Ve(x), fetch(x, { body: S, headers: g, method: e.method || "post" }).then(
3232
+ Ve(x), fetch(x, { body: S, headers: b, method: e.method || "post" }).then(
3225
3233
  async (m) => {
3226
- let p;
3234
+ let y;
3227
3235
  const T = m.headers.get("content-type");
3228
- if (T && T.indexOf("application/json") !== -1 ? p = await m.json() : p = await m.text(), !m.ok && e.errorMessagePath) {
3229
- let E = $e(p, e.errorMessagePath);
3236
+ if (T && T.indexOf("application/json") !== -1 ? y = await m.json() : y = await m.text(), !m.ok && e.errorMessagePath) {
3237
+ let E = De(y, e.errorMessagePath);
3230
3238
  E && (typeof E != "string" && (E = JSON.stringify(E)), l(E), d({ formErrorMessage: E }));
3231
3239
  }
3232
- if (o(p), i(m.ok ? "success" : "error"), m.ok) {
3240
+ if (o(y), i(m.ok ? "success" : "error"), m.ok) {
3233
3241
  const E = new CustomEvent("submit:success", {
3234
- detail: { res: m, body: p }
3242
+ detail: { res: m, body: y }
3235
3243
  });
3236
3244
  if (t.current) {
3237
3245
  if (t.current.dispatchEvent(E), E.defaultPrevented)
@@ -3249,10 +3257,10 @@ function Fn(e) {
3249
3257
  }
3250
3258
  },
3251
3259
  (m) => {
3252
- const p = new CustomEvent("submit:error", {
3260
+ const y = new CustomEvent("submit:error", {
3253
3261
  detail: { error: m }
3254
3262
  });
3255
- t.current && (t.current.dispatchEvent(p), p.defaultPrevented) || (o(m), i("error"));
3263
+ t.current && (t.current.dispatchEvent(y), y.defaultPrevented) || (o(m), i("error"));
3256
3264
  }
3257
3265
  );
3258
3266
  }
@@ -3267,29 +3275,29 @@ function Fn(e) {
3267
3275
  action: !e.sendWithJs && e.action,
3268
3276
  method: e.method,
3269
3277
  name: e.name,
3270
- onSubmit: (y) => h(y),
3278
+ onSubmit: (g) => h(g),
3271
3279
  ...e.attributes,
3272
3280
  children: [
3273
3281
  e.children,
3274
- c() === "error" ? /* @__PURE__ */ s(
3275
- D,
3282
+ u() === "error" ? /* @__PURE__ */ s(
3283
+ $,
3276
3284
  {
3277
3285
  path: "errorMessage",
3278
3286
  blocks: e.errorMessage,
3279
3287
  context: e.builderContext
3280
3288
  }
3281
3289
  ) : null,
3282
- c() === "sending" ? /* @__PURE__ */ s(
3283
- D,
3290
+ u() === "sending" ? /* @__PURE__ */ s(
3291
+ $,
3284
3292
  {
3285
3293
  path: "sendingMessage",
3286
3294
  blocks: e.sendingMessage,
3287
3295
  context: e.builderContext
3288
3296
  }
3289
3297
  ) : null,
3290
- c() === "error" && a ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7acc3b46", children: JSON.stringify(a, null, 2) }) : null,
3291
- c() === "success" ? /* @__PURE__ */ s(
3292
- D,
3298
+ u() === "error" && a ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7acc3b46", children: JSON.stringify(a, null, 2) }) : null,
3299
+ u() === "success" ? /* @__PURE__ */ s(
3300
+ $,
3293
3301
  {
3294
3302
  path: "successMessage",
3295
3303
  blocks: e.successMessage,
@@ -3357,7 +3365,7 @@ const On = {
3357
3365
  }
3358
3366
  };
3359
3367
  function Ln(e) {
3360
- return /* @__PURE__ */ Ae(
3368
+ return /* @__PURE__ */ Ne(
3361
3369
  "input",
3362
3370
  {
3363
3371
  ...e.attributes,
@@ -3416,7 +3424,7 @@ const Un = {
3416
3424
  };
3417
3425
  function _n(e) {
3418
3426
  var t;
3419
- return /* @__PURE__ */ Ae(
3427
+ return /* @__PURE__ */ Ne(
3420
3428
  "select",
3421
3429
  {
3422
3430
  ...e.attributes,
@@ -3624,7 +3632,7 @@ const Jn = {
3624
3632
  }
3625
3633
  };
3626
3634
  function Gn(e) {
3627
- var r, l, d, c, h, y, u;
3635
+ var r, l, d, u, h, g, c;
3628
3636
  const t = O(null);
3629
3637
  function n() {
3630
3638
  return {
@@ -3655,19 +3663,19 @@ function Gn(e) {
3655
3663
  return V(() => {
3656
3664
  if (e.lazyLoad) {
3657
3665
  const v = new IntersectionObserver(function(f) {
3658
- f.forEach(function(g) {
3659
- if (!g.isIntersecting)
3666
+ f.forEach(function(b) {
3667
+ if (!b.isIntersecting)
3660
3668
  return;
3661
- const S = g.target;
3669
+ const S = b.target;
3662
3670
  try {
3663
3671
  Array.from(S.children).filter(
3664
- (b) => b instanceof HTMLElement && b.tagName === "SOURCE"
3665
- ).forEach((b) => {
3666
- const k = b.dataset.src;
3667
- k && (b.src = k);
3672
+ (p) => p instanceof HTMLElement && p.tagName === "SOURCE"
3673
+ ).forEach((p) => {
3674
+ const k = p.dataset.src;
3675
+ k && (p.src = k);
3668
3676
  }), S.load(), v.unobserve(S);
3669
- } catch (b) {
3670
- console.error("Error loading lazy video:", b);
3677
+ } catch (p) {
3678
+ console.error("Error loading lazy video:", p);
3671
3679
  }
3672
3680
  });
3673
3681
  });
@@ -3727,7 +3735,7 @@ function Gn(e) {
3727
3735
  }
3728
3736
  }
3729
3737
  ) : null,
3730
- (h = (c = e.builderBlock) == null ? void 0 : c.children) != null && h.length && e.fitContent ? /* @__PURE__ */ s(
3738
+ (h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? /* @__PURE__ */ s(
3731
3739
  "div",
3732
3740
  {
3733
3741
  style: {
@@ -3738,7 +3746,7 @@ function Gn(e) {
3738
3746
  children: e.children
3739
3747
  }
3740
3748
  ) : null,
3741
- (u = (y = e.builderBlock) == null ? void 0 : y.children) != null && u.length && !e.fitContent ? /* @__PURE__ */ s(
3749
+ (c = (g = e.builderBlock) == null ? void 0 : g.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
3742
3750
  "div",
3743
3751
  {
3744
3752
  style: {
@@ -3763,7 +3771,7 @@ const Qn = () => [{
3763
3771
  component: Pn,
3764
3772
  ...Rn
3765
3773
  }, {
3766
- component: An,
3774
+ component: Nn,
3767
3775
  ...Vn
3768
3776
  }, {
3769
3777
  component: Fn,
@@ -3805,7 +3813,7 @@ const Qn = () => [{
3805
3813
  component: kn,
3806
3814
  ...Sn
3807
3815
  }, {
3808
- component: xi,
3816
+ component: Si,
3809
3817
  ...Cn
3810
3818
  }, {
3811
3819
  component: En,
@@ -3819,7 +3827,7 @@ const Qn = () => [{
3819
3827
  }, {
3820
3828
  component: rn,
3821
3829
  ...on
3822
- }, ...Qn()], Yn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3830
+ }, ...Qn()], Yn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
3823
3831
  function getAndSetVariantId() {
3824
3832
  function setCookie(name, value, days) {
3825
3833
  let expires = '';
@@ -3861,7 +3869,10 @@ const Qn = () => [{
3861
3869
  return contentId;
3862
3870
  }
3863
3871
  const winningVariantId = getAndSetVariantId();
3864
- const styleEl = document.currentScript?.previousElementSibling;
3872
+ let styleEl = document.currentScript?.previousElementSibling;
3873
+ if (isAngularSDK) {
3874
+ styleEl = document.currentScript?.parentElement?.previousElementSibling?.querySelector('style');
3875
+ }
3865
3876
  if (isHydrationTarget) {
3866
3877
  styleEl.remove();
3867
3878
  const thisScriptEl = document.currentScript;
@@ -3909,20 +3920,20 @@ const Qn = () => [{
3909
3920
  thisScriptEl?.remove();
3910
3921
  }
3911
3922
  return;
3912
- }`, Je = "builderIoAbTest", Ge = "builderIoRenderContent", J = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3923
+ }`, Je = "builderIoAbTest", Ge = "builderIoRenderContent", G = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3913
3924
  ...t,
3914
3925
  testVariationId: t.id,
3915
3926
  id: e == null ? void 0 : e.id
3916
3927
  })), Zn = ({
3917
3928
  canTrack: e,
3918
3929
  content: t
3919
- }) => !(!(J(t).length > 0) || !e || L()), ei = (e) => e === "react" || e === "reactNative", Qe = ei(U), ti = () => `
3930
+ }) => !(!(G(t).length > 0) || !e || U()), ei = (e) => e === "react" || e === "reactNative", ti = L === "angular", Qe = ei(L), ni = () => `
3920
3931
  window.${Je} = ${Yn}
3921
3932
  window.${Ge} = ${Xn}
3922
- `, ni = (e, t) => `
3933
+ `, ii = (e, t) => `
3923
3934
  window.${Je}(
3924
- "${t}",${JSON.stringify(e)}, ${Qe}
3925
- )`, ii = ({
3935
+ "${t}",${JSON.stringify(e)}, ${Qe}, ${ti}
3936
+ )`, ai = ({
3926
3937
  contentId: e,
3927
3938
  variationId: t
3928
3939
  }) => `window.${Ge}(
@@ -3931,7 +3942,7 @@ const Qn = () => [{
3931
3942
  function Ie(e) {
3932
3943
  return Math.round(e * 1e3) / 1e3;
3933
3944
  }
3934
- const ai = (e, t, n = !0) => {
3945
+ const oi = (e, t, n = !0) => {
3935
3946
  if (!(e instanceof HTMLElement))
3936
3947
  return null;
3937
3948
  let i = n ? e : e.parentElement;
@@ -3942,7 +3953,7 @@ const ai = (e, t, n = !0) => {
3942
3953
  return i;
3943
3954
  } while (i = i.parentElement);
3944
3955
  return null;
3945
- }, oi = (e) => ai(e, (t) => {
3956
+ }, ri = (e) => oi(e, (t) => {
3946
3957
  const n = t.getAttribute("builder-id") || t.id;
3947
3958
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3948
3959
  }), Ee = ({
@@ -3954,8 +3965,8 @@ const ai = (e, t, n = !0) => {
3954
3965
  x: o,
3955
3966
  y: r
3956
3967
  };
3957
- }, ri = (e) => {
3958
- const t = e.target, n = t && oi(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3968
+ }, li = (e) => {
3969
+ const t = e.target, n = t && ri(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3959
3970
  return {
3960
3971
  targetBuilderElement: i || void 0,
3961
3972
  metadata: {
@@ -3970,7 +3981,7 @@ const ai = (e, t, n = !0) => {
3970
3981
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3971
3982
  }
3972
3983
  };
3973
- }, li = ["svelte", "qwik", "vue"], Re = () => li.includes(U) && (A() || Z()), si = (e) => {
3984
+ }, si = ["svelte", "qwik", "vue"], Re = () => si.includes(L) && (A() || Z()), ci = (e) => {
3974
3985
  var o, r;
3975
3986
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
3976
3987
  let a = "";
@@ -3985,26 +3996,26 @@ font-weight: 400;
3985
3996
  for (const l in e.files) {
3986
3997
  if (!(String(Number(l)) === l))
3987
3998
  continue;
3988
- const c = e.files[l];
3989
- c && c !== i && (a += `
3999
+ const u = e.files[l];
4000
+ u && u !== i && (a += `
3990
4001
  @font-face {
3991
4002
  font-family: "${t}";
3992
- src: url('${c}') format('woff2');
4003
+ src: url('${u}') format('woff2');
3993
4004
  font-display: fallback;
3994
4005
  font-weight: ${l};
3995
4006
  }
3996
4007
  `.trim());
3997
4008
  }
3998
4009
  return a;
3999
- }, ci = ({
4010
+ }, ui = ({
4000
4011
  customFonts: e
4001
4012
  }) => {
4002
4013
  var t;
4003
- return ((t = e == null ? void 0 : e.map((n) => si(n))) == null ? void 0 : t.join(" ")) || "";
4004
- }, ui = ({
4014
+ return ((t = e == null ? void 0 : e.map((n) => ci(n))) == null ? void 0 : t.join(" ")) || "";
4015
+ }, di = ({
4005
4016
  cssCode: e,
4006
4017
  contentId: t
4007
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", di = `
4018
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", mi = `
4008
4019
  .builder-button {
4009
4020
  all: unset;
4010
4021
  }
@@ -4021,24 +4032,24 @@ font-weight: ${l};
4021
4032
  text-align: inherit;
4022
4033
  font-family: inherit;
4023
4034
  }
4024
- `, mi = (e) => e ? "" : di, fi = (e) => `variant-${e}`;
4025
- function hi(e) {
4035
+ `, fi = (e) => e ? "" : mi, hi = (e) => `variant-${e}`;
4036
+ function gi(e) {
4026
4037
  var k, C, P;
4027
4038
  const t = O(null);
4028
4039
  I(() => !1);
4029
4040
  function n(w) {
4030
- var m, p;
4041
+ var m, y;
4031
4042
  const x = {
4032
4043
  ...e.builderContextSignal.rootState,
4033
4044
  ...w
4034
4045
  };
4035
- e.builderContextSignal.rootSetState ? (p = (m = e.builderContextSignal).rootSetState) == null || p.call(m, x) : e.setBuilderContextSignal((T) => ({
4046
+ e.builderContextSignal.rootSetState ? (y = (m = e.builderContextSignal).rootSetState) == null || y.call(m, x) : e.setBuilderContextSignal((T) => ({
4036
4047
  ...T,
4037
4048
  rootState: x
4038
4049
  }));
4039
4050
  }
4040
4051
  function i(w) {
4041
- var m, p, T, E, N;
4052
+ var m, y, T, E, N;
4042
4053
  const x = {
4043
4054
  ...e.builderContextSignal.content,
4044
4055
  ...w,
@@ -4047,7 +4058,7 @@ function hi(e) {
4047
4058
  ...w == null ? void 0 : w.data
4048
4059
  },
4049
4060
  meta: {
4050
- ...(p = e.builderContextSignal.content) == null ? void 0 : p.meta,
4061
+ ...(y = e.builderContextSignal.content) == null ? void 0 : y.meta,
4051
4062
  ...w == null ? void 0 : w.meta,
4052
4063
  breakpoints: ((T = w == null ? void 0 : w.meta) == null ? void 0 : T.breakpoints) || ((N = (E = e.builderContextSignal.content) == null ? void 0 : E.meta) == null ? void 0 : N.breakpoints)
4053
4064
  }
@@ -4073,8 +4084,8 @@ function hi(e) {
4073
4084
  callbacks: {
4074
4085
  configureSdk: (x) => {
4075
4086
  var T;
4076
- const { breakpoints: m, contentId: p } = x;
4077
- !p || p !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || m && i({
4087
+ const { breakpoints: m, contentId: y } = x;
4088
+ !y || y !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || m && i({
4078
4089
  meta: {
4079
4090
  breakpoints: m
4080
4091
  }
@@ -4092,36 +4103,36 @@ function hi(e) {
4092
4103
  }
4093
4104
  })(w);
4094
4105
  }
4095
- const [d, c] = I(() => ({})), [h, y] = I(() => ({})), [u, v] = I(() => !1);
4106
+ const [d, u] = I(() => ({})), [h, g] = I(() => ({})), [c, v] = I(() => !1);
4096
4107
  function f(w) {
4097
4108
  var x, m;
4098
4109
  if (e.builderContextSignal.content) {
4099
- const p = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, T = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
4110
+ const y = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, T = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
4100
4111
  pe({
4101
4112
  apiHost: e.apiHost,
4102
4113
  type: "click",
4103
- canTrack: H(e.canTrack),
4114
+ canTrack: j(e.canTrack),
4104
4115
  contentId: T,
4105
4116
  apiKey: e.apiKey,
4106
- variationId: p !== T ? p : void 0,
4107
- ...ri(w),
4108
- unique: !u
4117
+ variationId: y !== T ? y : void 0,
4118
+ ...li(w),
4119
+ unique: !c
4109
4120
  });
4110
4121
  }
4111
- u || v(!0);
4122
+ c || v(!0);
4112
4123
  }
4113
- function g() {
4114
- var x, m, p;
4115
- const w = (p = (m = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : m.httpRequests) != null ? p : {};
4124
+ function b() {
4125
+ var x, m, y;
4126
+ const w = (y = (m = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : m.httpRequests) != null ? y : {};
4116
4127
  Object.entries(w).forEach(([T, E]) => {
4117
4128
  if (!E || h[T] || d[T] && !A())
4118
4129
  return;
4119
4130
  h[T] = !0;
4120
4131
  const N = E.replace(
4121
4132
  /{{([^}]+)}}/g,
4122
- (W, $) => String(
4123
- _({
4124
- code: $,
4133
+ (W, D) => String(
4134
+ q({
4135
+ code: D,
4125
4136
  context: e.context || {},
4126
4137
  localState: void 0,
4127
4138
  rootState: e.builderContextSignal.rootState,
@@ -4155,10 +4166,10 @@ function hi(e) {
4155
4166
  )
4156
4167
  );
4157
4168
  }
4158
- const b = O(!1);
4159
- return b.current || (g(), S(), b.current = !0), V(() => {
4160
- var w, x, m, p, T;
4161
- if (L()) {
4169
+ const p = O(!1);
4170
+ return p.current || (b(), S(), p.current = !0), V(() => {
4171
+ var w, x, m, y, T;
4172
+ if (U()) {
4162
4173
  A() && !e.isNestedRender && (window.addEventListener("message", l), Xe(), Ze({
4163
4174
  ...e.locale ? {
4164
4175
  locale: e.locale
@@ -4173,36 +4184,36 @@ function hi(e) {
4173
4184
  apiKey: e.apiKey
4174
4185
  }), Object.values(
4175
4186
  e.builderContextSignal.componentInfos
4176
- ).forEach(($) => {
4177
- var F, K;
4178
- if (!((F = $.models) != null && F.length) || $.models.includes(e.model)) {
4179
- const ne = et($);
4180
- (K = window.parent) == null || K.postMessage(ne, "*");
4187
+ ).forEach((D) => {
4188
+ var F, J;
4189
+ if (!((F = D.models) != null && F.length) || D.models.includes(e.model)) {
4190
+ const ne = et(D);
4191
+ (J = window.parent) == null || J.postMessage(ne, "*");
4181
4192
  }
4182
4193
  }), window.addEventListener(
4183
4194
  "builder:component:stateChangeListenerActivated",
4184
4195
  S
4185
4196
  ));
4186
- const E = e.builderContextSignal.content && H(e.canTrack), N = tt({
4197
+ const E = e.builderContextSignal.content && j(e.canTrack), N = tt({
4187
4198
  name: `builder.tests.${(x = e.builderContextSignal.content) == null ? void 0 : x.id}`,
4188
4199
  canTrack: !0
4189
4200
  }), W = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId;
4190
4201
  if (E && W === N) {
4191
- const $ = (p = e.builderContextSignal.content) == null ? void 0 : p.id, F = e.apiKey;
4202
+ const D = (y = e.builderContextSignal.content) == null ? void 0 : y.id, F = e.apiKey;
4192
4203
  pe({
4193
4204
  apiHost: e.apiHost,
4194
4205
  type: "impression",
4195
4206
  canTrack: !0,
4196
- contentId: $,
4207
+ contentId: D,
4197
4208
  apiKey: F,
4198
- variationId: N !== $ ? N : void 0
4209
+ variationId: N !== D ? N : void 0
4199
4210
  });
4200
4211
  }
4201
4212
  if (Z() && !A()) {
4202
- const $ = new URL(location.href).searchParams, F = $.get("builder.preview"), K = $.get(
4213
+ const D = new URL(location.href).searchParams, F = D.get("builder.preview"), J = D.get(
4203
4214
  `builder.overrides.${F}`
4204
- ), ne = $.get("apiKey") || $.get("builder.space");
4205
- (F === "BUILDER_STUDIO" || F === e.model && ne === e.apiKey && (!e.content || K === e.content.id)) && Be({
4215
+ ), ne = D.get("apiKey") || D.get("builder.space");
4216
+ (F === "BUILDER_STUDIO" || F === e.model && ne === e.apiKey && (!e.content || J === e.content.id)) && Be({
4206
4217
  model: e.model,
4207
4218
  apiKey: e.apiKey,
4208
4219
  apiVersion: e.builderContextSignal.apiVersion,
@@ -4227,7 +4238,7 @@ function hi(e) {
4227
4238
  locale: e.locale
4228
4239
  });
4229
4240
  }, [e.locale]), V(() => () => {
4230
- L() && (window.removeEventListener("message", l), window.removeEventListener(
4241
+ U() && (window.removeEventListener("message", l), window.removeEventListener(
4231
4242
  "builder:component:stateChangeListenerActivated",
4232
4243
  S
4233
4244
  ));
@@ -4238,7 +4249,7 @@ function hi(e) {
4238
4249
  onClick: (w) => f(w),
4239
4250
  "builder-content-id": (k = e.builderContextSignal.content) == null ? void 0 : k.id,
4240
4251
  "builder-model": e.model,
4241
- className: fi(
4252
+ className: hi(
4242
4253
  ((C = e.content) == null ? void 0 : C.testVariationId) || ((P = e.content) == null ? void 0 : P.id)
4243
4254
  ),
4244
4255
  style: {
@@ -4250,21 +4261,21 @@ function hi(e) {
4250
4261
  }
4251
4262
  ) : null });
4252
4263
  }
4253
- function gi(e) {
4264
+ function bi(e) {
4254
4265
  const [t, n] = I(
4255
4266
  () => `
4256
- ${ui({
4267
+ ${di({
4257
4268
  cssCode: e.cssCode,
4258
4269
  contentId: e.contentId
4259
4270
  })}
4260
- ${ci({
4271
+ ${ui({
4261
4272
  customFonts: e.customFonts
4262
4273
  })}
4263
- ${mi(e.isNestedRender)}
4274
+ ${fi(e.isNestedRender)}
4264
4275
  `.trim()
4265
4276
  );
4266
4277
  return /* @__PURE__ */ s(
4267
- z,
4278
+ K,
4268
4279
  {
4269
4280
  id: "builderio-content",
4270
4281
  styles: t,
@@ -4272,7 +4283,7 @@ ${mi(e.isNestedRender)}
4272
4283
  }
4273
4284
  );
4274
4285
  }
4275
- const bi = ({
4286
+ const pi = ({
4276
4287
  content: e,
4277
4288
  data: t,
4278
4289
  locale: n
@@ -4289,7 +4300,7 @@ const bi = ({
4289
4300
  locale: n
4290
4301
  } : {}
4291
4302
  };
4292
- }, pi = ({
4303
+ }, yi = ({
4293
4304
  content: e,
4294
4305
  data: t
4295
4306
  }) => e ? {
@@ -4301,11 +4312,11 @@ const bi = ({
4301
4312
  meta: e == null ? void 0 : e.meta
4302
4313
  } : void 0;
4303
4314
  function Pe(e) {
4304
- var c, h, y, u, v, f, g, S, b;
4315
+ var u, h, g, c, v, f, b, S, p;
4305
4316
  const [t, n] = I(
4306
4317
  () => {
4307
4318
  var k, C;
4308
- return ii({
4319
+ return ai({
4309
4320
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4310
4321
  variationId: (k = e.content) == null ? void 0 : k.testVariationId,
4311
4322
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -4334,12 +4345,12 @@ function Pe(e) {
4334
4345
  {}
4335
4346
  )
4336
4347
  ), [r, l] = I(() => ({
4337
- content: pi({
4348
+ content: yi({
4338
4349
  content: e.content,
4339
4350
  data: e.data
4340
4351
  }),
4341
4352
  localState: void 0,
4342
- rootState: bi({
4353
+ rootState: pi({
4343
4354
  content: e.content,
4344
4355
  data: e.data,
4345
4356
  locale: e.locale
@@ -4366,11 +4377,11 @@ function Pe(e) {
4366
4377
  model: e.model
4367
4378
  })), d = O(!1);
4368
4379
  if (!d.current) {
4369
- e.apiKey || X.error(
4380
+ e.apiKey || _.error(
4370
4381
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4371
4382
  );
4372
- const k = (h = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
4373
- k && _({
4383
+ const k = (h = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : h.jsCode;
4384
+ k && q({
4374
4385
  code: k,
4375
4386
  context: e.context || {},
4376
4387
  localState: void 0,
@@ -4388,7 +4399,7 @@ function Pe(e) {
4388
4399
  registeredComponents: a
4389
4400
  },
4390
4401
  children: /* @__PURE__ */ B(
4391
- hi,
4402
+ gi,
4392
4403
  {
4393
4404
  apiHost: e.apiHost,
4394
4405
  nonce: e.nonce,
@@ -4409,7 +4420,7 @@ function Pe(e) {
4409
4420
  setBuilderContextSignal: l,
4410
4421
  children: [
4411
4422
  e.isSsrAbTest ? /* @__PURE__ */ s(
4412
- Y,
4423
+ X,
4413
4424
  {
4414
4425
  id: "builderio-variant-visibility",
4415
4426
  scriptStr: t,
@@ -4417,19 +4428,19 @@ function Pe(e) {
4417
4428
  }
4418
4429
  ) : null,
4419
4430
  /* @__PURE__ */ s(
4420
- gi,
4431
+ bi,
4421
4432
  {
4422
4433
  nonce: e.nonce || "",
4423
4434
  isNestedRender: e.isNestedRender,
4424
- contentId: (y = r.content) == null ? void 0 : y.id,
4425
- cssCode: (v = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : v.cssCode,
4426
- customFonts: (g = (f = r.content) == null ? void 0 : f.data) == null ? void 0 : g.customFonts
4435
+ contentId: (g = r.content) == null ? void 0 : g.id,
4436
+ cssCode: (v = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : v.cssCode,
4437
+ customFonts: (b = (f = r.content) == null ? void 0 : f.data) == null ? void 0 : b.customFonts
4427
4438
  }
4428
4439
  ),
4429
4440
  /* @__PURE__ */ s(
4430
- D,
4441
+ $,
4431
4442
  {
4432
- blocks: (b = (S = r.content) == null ? void 0 : S.data) == null ? void 0 : b.blocks,
4443
+ blocks: (p = (S = r.content) == null ? void 0 : S.data) == null ? void 0 : p.blocks,
4433
4444
  context: r,
4434
4445
  registeredComponents: a,
4435
4446
  linkComponent: e.linkComponent
@@ -4441,18 +4452,18 @@ function Pe(e) {
4441
4452
  }
4442
4453
  );
4443
4454
  }
4444
- function yi(e) {
4455
+ function vi(e) {
4445
4456
  var r;
4446
4457
  const [t, n] = I(
4447
4458
  () => Zn({
4448
- canTrack: H(e.canTrack),
4459
+ canTrack: j(e.canTrack),
4449
4460
  content: e.content
4450
4461
  })
4451
4462
  );
4452
4463
  function i() {
4453
4464
  var l;
4454
- return ni(
4455
- J(e.content).map((d) => ({
4465
+ return ii(
4466
+ G(e.content).map((d) => ({
4456
4467
  id: d.testVariationId,
4457
4468
  testRatio: d.testRatio
4458
4469
  })),
@@ -4460,7 +4471,7 @@ function yi(e) {
4460
4471
  );
4461
4472
  }
4462
4473
  function a() {
4463
- return J(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
4474
+ return G(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
4464
4475
  }
4465
4476
  function o() {
4466
4477
  var l;
@@ -4469,22 +4480,22 @@ function yi(e) {
4469
4480
  testVariationId: (l = e.content) == null ? void 0 : l.id
4470
4481
  } : it({
4471
4482
  item: e.content,
4472
- canTrack: H(e.canTrack)
4483
+ canTrack: j(e.canTrack)
4473
4484
  });
4474
4485
  }
4475
4486
  return V(() => {
4476
4487
  }, []), /* @__PURE__ */ B(R, { children: [
4477
- !e.isNestedRender && U !== "reactNative" ? /* @__PURE__ */ s(
4478
- Y,
4488
+ !e.isNestedRender && L !== "reactNative" ? /* @__PURE__ */ s(
4489
+ X,
4479
4490
  {
4480
4491
  id: "builderio-init-variants-fns",
4481
- scriptStr: ti(),
4492
+ scriptStr: ni(),
4482
4493
  nonce: e.nonce || ""
4483
4494
  }
4484
4495
  ) : null,
4485
4496
  t ? /* @__PURE__ */ B(R, { children: [
4486
4497
  /* @__PURE__ */ s(
4487
- z,
4498
+ K,
4488
4499
  {
4489
4500
  id: "builderio-variants",
4490
4501
  styles: a(),
@@ -4492,14 +4503,14 @@ function yi(e) {
4492
4503
  }
4493
4504
  ),
4494
4505
  /* @__PURE__ */ s(
4495
- Y,
4506
+ X,
4496
4507
  {
4497
4508
  id: "builderio-variants-visibility",
4498
4509
  scriptStr: i(),
4499
4510
  nonce: e.nonce || ""
4500
4511
  }
4501
4512
  ),
4502
- (r = J(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
4513
+ (r = G(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
4503
4514
  Pe,
4504
4515
  {
4505
4516
  apiHost: e.apiHost,
@@ -4555,7 +4566,7 @@ function yi(e) {
4555
4566
  )
4556
4567
  ] });
4557
4568
  }
4558
- const vi = async ({
4569
+ const xi = async ({
4559
4570
  builderContextValue: e,
4560
4571
  symbol: t
4561
4572
  }) => {
@@ -4571,11 +4582,11 @@ const vi = async ({
4571
4582
  }
4572
4583
  }
4573
4584
  }).catch((n) => {
4574
- X.error("Could not fetch symbol content: ", n);
4585
+ _.error("Could not fetch symbol content: ", n);
4575
4586
  });
4576
4587
  };
4577
- function xi(e) {
4578
- var l, d, c, h, y;
4588
+ function Si(e) {
4589
+ var l, d, u, h, g;
4579
4590
  function t() {
4580
4591
  return "div";
4581
4592
  }
@@ -4583,31 +4594,31 @@ function xi(e) {
4583
4594
  return "div";
4584
4595
  }
4585
4596
  function i() {
4586
- var u, v;
4597
+ var c, v;
4587
4598
  return [
4588
- e.attributes[j()],
4599
+ e.attributes[z()],
4589
4600
  "builder-symbol",
4590
- (u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
4601
+ (c = e.symbol) != null && c.inline ? "builder-inline-symbol" : void 0,
4591
4602
  (v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4592
4603
  ].filter(Boolean).join(" ");
4593
4604
  }
4594
4605
  const [a, o] = I(() => {
4595
- var u;
4596
- return (u = e.symbol) == null ? void 0 : u.content;
4606
+ var c;
4607
+ return (c = e.symbol) == null ? void 0 : c.content;
4597
4608
  });
4598
4609
  function r() {
4599
- a || vi({
4610
+ a || xi({
4600
4611
  symbol: e.symbol,
4601
4612
  builderContextValue: e.builderContext
4602
- }).then((u) => {
4603
- u && o(u);
4613
+ }).then((c) => {
4614
+ c && o(c);
4604
4615
  });
4605
4616
  }
4606
4617
  return V(() => {
4607
4618
  }, []), V(() => {
4608
4619
  r();
4609
4620
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
4610
- yi,
4621
+ vi,
4611
4622
  {
4612
4623
  nonce: e.builderContext.nonce,
4613
4624
  isNestedRender: !0,
@@ -4621,10 +4632,10 @@ function xi(e) {
4621
4632
  data: {
4622
4633
  ...(d = e.symbol) == null ? void 0 : d.data,
4623
4634
  ...e.builderContext.localState,
4624
- ...(c = a == null ? void 0 : a.data) == null ? void 0 : c.state
4635
+ ...(u = a == null ? void 0 : a.data) == null ? void 0 : u.state
4625
4636
  },
4626
4637
  canTrack: e.builderContext.canTrack,
4627
- model: (y = (h = e.symbol) == null ? void 0 : h.model) != null ? y : "",
4638
+ model: (g = (h = e.symbol) == null ? void 0 : h.model) != null ? g : "",
4628
4639
  content: a,
4629
4640
  linkComponent: e.builderLinkComponent,
4630
4641
  blocksWrapper: t(),
@@ -4633,16 +4644,16 @@ function xi(e) {
4633
4644
  ) });
4634
4645
  }
4635
4646
  export {
4636
- D as Blocks,
4647
+ $ as Blocks,
4637
4648
  de as BuilderContext,
4638
4649
  lt as Button,
4639
4650
  Xt as Columns,
4640
- yi as Content,
4651
+ vi as Content,
4641
4652
  Zt as Fragment,
4642
4653
  nn as Image,
4643
4654
  an as Section,
4644
- xi as Symbol,
4655
+ Si as Symbol,
4645
4656
  En as Text,
4646
4657
  Gn as Video,
4647
- Ii as setClientUserAttributes
4658
+ Ei as setClientUserAttributes
4648
4659
  };