@builder.io/sdk-react 4.0.2 → 4.0.4-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 (77) hide show
  1. package/CHANGELOG.md +944 -0
  2. package/lib/browser/blocks-exports.cjs +32 -29
  3. package/lib/browser/blocks-exports.mjs +484 -465
  4. package/lib/browser/index.cjs +1 -1
  5. package/lib/browser/index.mjs +1 -1
  6. package/lib/browser/{server-entry-9e5daeda.cjs → server-entry-c40e781d.cjs} +1 -1
  7. package/lib/browser/{server-entry-25e49efc.js → server-entry-e6ae7704.js} +1 -1
  8. package/lib/browser/server-entry.cjs +1 -1
  9. package/lib/browser/server-entry.mjs +1 -1
  10. package/lib/edge/{accordion-f5e5687b.cjs → accordion-8934ef4b.cjs} +1 -1
  11. package/lib/edge/{accordion-5063d748.js → accordion-e657c96d.js} +1 -1
  12. package/lib/edge/{blocks-f3b2fbd5.js → blocks-890ac50f.js} +243 -241
  13. package/lib/edge/{blocks-d690074d.cjs → blocks-efa04c3b.cjs} +10 -10
  14. package/lib/edge/blocks-exports.cjs +1 -1
  15. package/lib/edge/blocks-exports.mjs +2 -2
  16. package/lib/edge/{button-0d0430e9.js → button-3522aac2.js} +2 -2
  17. package/lib/edge/{button-7cac2c65.cjs → button-49563e3b.cjs} +1 -1
  18. package/lib/edge/{columns-19b22772.js → columns-70b88fce.js} +3 -3
  19. package/lib/edge/{columns-87b82f2f.cjs → columns-eb192117.cjs} +1 -1
  20. package/lib/edge/{content-variants-0f0a71cb.js → content-variants-6a73b6e9.js} +125 -118
  21. package/lib/edge/{content-variants-80fc28d8.cjs → content-variants-893bba4d.cjs} +16 -13
  22. package/lib/edge/custom-code-1a43bbd7.js +52 -0
  23. package/lib/edge/custom-code-ae3262be.cjs +1 -0
  24. package/lib/edge/embed-106f0066.js +38 -0
  25. package/lib/edge/embed-8d302933.cjs +1 -0
  26. package/lib/edge/{form-0b5bd2e3.cjs → form-89839d91.cjs} +1 -1
  27. package/lib/edge/{form-b8f74b68.js → form-e6ea2320.js} +3 -3
  28. package/lib/edge/{get-class-prop-name-6ef08339.cjs → get-class-prop-name-dad1ee7e.cjs} +1 -1
  29. package/lib/edge/{get-class-prop-name-f3ce6ca4.js → get-class-prop-name-e44df0c8.js} +1 -1
  30. package/lib/edge/{image-38917f45.js → image-1729f079.js} +20 -19
  31. package/lib/edge/{image-590e36ae.cjs → image-a6fbd15b.cjs} +3 -3
  32. package/lib/edge/img-337990c2.cjs +1 -0
  33. package/lib/edge/{img-4becc0d4.js → img-3efcbcca.js} +4 -3
  34. package/lib/edge/index.cjs +1 -1
  35. package/lib/edge/index.mjs +1 -1
  36. package/lib/edge/{input-6884ec2d.cjs → input-92aaa4f2.cjs} +1 -1
  37. package/lib/edge/{input-768a5984.js → input-d6338de6.js} +1 -1
  38. package/lib/edge/{personalization-container-8b32ce9d.cjs → personalization-container-576b7363.cjs} +1 -1
  39. package/lib/edge/{personalization-container-b581d0f6.js → personalization-container-c8d741e6.js} +4 -4
  40. package/lib/edge/{select-e54dc6bc.js → select-1538b41a.js} +1 -1
  41. package/lib/edge/{select-ac5b39d8.cjs → select-5ce728b4.cjs} +1 -1
  42. package/lib/edge/{server-entry-818ae9c6.js → server-entry-2e94ad2c.js} +1 -1
  43. package/lib/edge/{server-entry-a60fb569.cjs → server-entry-46e686b9.cjs} +1 -1
  44. package/lib/edge/server-entry.cjs +1 -1
  45. package/lib/edge/server-entry.mjs +1 -1
  46. package/lib/edge/{slot-05218273.js → slot-26162c51.js} +3 -3
  47. package/lib/edge/{slot-5dba6213.cjs → slot-ed4d2827.cjs} +1 -1
  48. package/lib/edge/{symbol-9f247918.js → symbol-3b2e7ebf.js} +2 -2
  49. package/lib/edge/{symbol-f4b09828.cjs → symbol-cd10b6f0.cjs} +1 -1
  50. package/lib/edge/{tabs-02960a8c.cjs → tabs-7273a1e3.cjs} +1 -1
  51. package/lib/edge/{tabs-a0b38dde.js → tabs-c576cd8f.js} +3 -3
  52. package/lib/node/blocks-exports.cjs +32 -29
  53. package/lib/node/blocks-exports.mjs +493 -474
  54. package/lib/node/index.cjs +1 -1
  55. package/lib/node/index.mjs +3 -3
  56. package/lib/node/init.cjs +1 -1
  57. package/lib/node/init.mjs +3 -3
  58. package/lib/node/{server-entry-2a2cad4a.cjs → server-entry-6b05381c.cjs} +1 -1
  59. package/lib/node/{server-entry-702b1a29.js → server-entry-c1000f54.js} +1 -1
  60. package/lib/node/server-entry.cjs +1 -1
  61. package/lib/node/server-entry.mjs +1 -1
  62. package/lib/node/{setIvm-0a6b0788.js → setIvm-011d6eb2.js} +1 -1
  63. package/lib/node/{setIvm-9cddfc1a.cjs → setIvm-4ae0308c.cjs} +1 -1
  64. package/lib/node/setIvm.cjs +1 -1
  65. package/lib/node/setIvm.mjs +2 -2
  66. package/lib/node/{should-force-browser-runtime-in-node-d6c9e985.cjs → should-force-browser-runtime-in-node-5d513614.cjs} +1 -1
  67. package/lib/node/{should-force-browser-runtime-in-node-dfff7f8f.js → should-force-browser-runtime-in-node-abf8d0a7.js} +1 -1
  68. package/package.json +4 -4
  69. package/types/blocks/image/image.types.d.ts +1 -0
  70. package/types/blocks/img/img.d.ts +1 -0
  71. package/types/components/content-variants/inlined-fns.d.ts +1 -1
  72. package/types/constants/sdk-version.d.ts +1 -1
  73. package/lib/edge/custom-code-7786788e.js +0 -43
  74. package/lib/edge/custom-code-8119ea3f.cjs +0 -1
  75. package/lib/edge/embed-32bdd007.cjs +0 -1
  76. package/lib/edge/embed-5c1bbe12.js +0 -37
  77. package/lib/edge/img-20126279.cjs +0 -1
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import { TARGET as O, isBrowser as U, logger as ce, checkIsDefined as le, isPreviewing as Y, isEditing as $, userAttributesService as be, getDefaultCanTrack as M, logFetch as Ve, registerInsertMenu as Ge, setupBrowserForEditing as Qe, createRegisterComponentMessage as Ye, getCookieSync as Xe, _track as pe, fetchOneEntry as Pe, createEditorListener as Ze, serializeIncludingFunctions as ye, handleABTestingSync as et } from "./server-entry-702b1a29.js";
3
- import { setClientUserAttributes as Ei } from "./server-entry-702b1a29.js";
2
+ import { TARGET as O, isBrowser as U, logger as z, checkIsDefined as se, isPreviewing as X, isEditing as N, userAttributesService as be, getDefaultCanTrack as M, logFetch as Ve, registerInsertMenu as Ge, setupBrowserForEditing as Qe, createRegisterComponentMessage as Ye, getCookieSync as Xe, _track as pe, fetchOneEntry as Pe, createEditorListener as Ze, serializeIncludingFunctions as ye, handleABTestingSync as et } from "./server-entry-c1000f54.js";
3
+ import { setClientUserAttributes as Ri } from "./server-entry-c1000f54.js";
4
4
  import { jsx as s, Fragment as R, jsxs as B } from "react/jsx-runtime";
5
5
  import * as tt from "react";
6
6
  import { createContext as Be, useEffect as P, useState as I, useRef as L, useContext as ve, createElement as Ae } from "react";
7
- import { getFunctionArguments as nt, flattenState as it, runInNode as at, parseCode as ot, getBuilderGlobals as rt, set as Ne, fastClone as ue } from "./setIvm-0a6b0788.js";
8
- import { shouldForceBrowserRuntimeInNode as lt } from "./should-force-browser-runtime-in-node-dfff7f8f.js";
7
+ import { getFunctionArguments as nt, flattenState as it, runInNode as at, parseCode as ot, getBuilderGlobals as rt, set as Ne, fastClone as ue } from "./setIvm-011d6eb2.js";
8
+ import { shouldForceBrowserRuntimeInNode as lt } from "./should-force-browser-runtime-in-node-abf8d0a7.js";
9
9
  const st = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ct = (e) => typeof e == "string" && st.has(e.toLowerCase());
10
10
  function de(e) {
11
11
  return /* @__PURE__ */ s(R, { children: ct(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 }) }) });
@@ -63,7 +63,7 @@ const me = Be({
63
63
  BlocksWrapperProps: {},
64
64
  nonce: "",
65
65
  model: ""
66
- }), We = Be({ registeredComponents: {} }), $e = (e, t, n) => {
66
+ }), We = Be({ registeredComponents: {} }), De = (e, t, n) => {
67
67
  const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((a, r) => a != null ? a[r] : a, e);
68
68
  return i === void 0 || i === e ? n : i;
69
69
  }, dt = ({
@@ -105,7 +105,7 @@ function _({
105
105
  return;
106
106
  const l = gt(e.trim());
107
107
  if (l)
108
- return $e({
108
+ return De({
109
109
  ...i,
110
110
  ...n
111
111
  }, l);
@@ -122,8 +122,8 @@ function _({
122
122
  };
123
123
  try {
124
124
  return mt(d);
125
- } catch (c) {
126
- ce.error("Failed code evaluation: " + c.message, {
125
+ } catch (u) {
126
+ z.error("Failed code evaluation: " + u.message, {
127
127
  code: e
128
128
  });
129
129
  return;
@@ -157,7 +157,7 @@ function yt(e, ...t) {
157
157
  delete n[i];
158
158
  return n;
159
159
  }
160
- function G(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
160
+ function Q(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
161
161
  if (e == null || typeof e != "object") {
162
162
  t(e, (r) => {
163
163
  n !== null && i !== null && (n[i] = r);
@@ -167,47 +167,47 @@ function G(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
167
167
  a.has(e) || (a.add(e), Array.isArray(e) ? e.forEach((r, o) => {
168
168
  t(r, (d) => {
169
169
  e[o] = d;
170
- }), G(r, t, e, o, a);
170
+ }), Q(r, t, e, o, a);
171
171
  }) : Object.entries(e).forEach(([r, o]) => {
172
172
  t(o, (d) => {
173
173
  e[r] = d;
174
- }), G(o, t, e, r, a);
174
+ }), Q(o, t, e, r, a);
175
175
  }));
176
176
  }
177
- function De(e) {
177
+ function $e(e) {
178
178
  return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
179
179
  }
180
180
  function vt(e) {
181
181
  if (!e || !Object.getOwnPropertyNames(e).length)
182
182
  return !1;
183
183
  let t = !1;
184
- return G(e, (n) => {
185
- if (De(n)) {
184
+ return Q(e, (n) => {
185
+ if ($e(n)) {
186
186
  t = !0;
187
187
  return;
188
188
  }
189
189
  }), t;
190
190
  }
191
191
  function xt(e, t) {
192
- return !e || !Object.getOwnPropertyNames(e).length ? {} : (G(e, (n, i) => {
192
+ return !e || !Object.getOwnPropertyNames(e).length ? {} : (Q(e, (n, i) => {
193
193
  var a;
194
- De(n) && i((a = n[t]) != null ? a : void 0);
194
+ $e(n) && i((a = n[t]) != null ? a : void 0);
195
195
  }), e);
196
196
  }
197
197
  function St(e, t) {
198
198
  var n, i;
199
199
  return (n = e.component) != null && n.options && vt((i = e.component) == null ? void 0 : i.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = xt(e.component.options, t != null ? t : "Default")), e;
200
200
  }
201
- function se(e) {
201
+ function ce(e) {
202
202
  if (e === null || typeof e != "object")
203
203
  return e;
204
204
  if (Array.isArray(e))
205
- return e.map((n) => se(n));
205
+ return e.map((n) => ce(n));
206
206
  if (e["@type"] === "@builder.io/sdk:Element")
207
207
  return e;
208
208
  const t = {};
209
209
  for (const n in e)
210
- n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = se(e[n]));
210
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ce(e[n]));
211
211
  return t;
212
212
  }
213
213
  const kt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Ct = (e) => {
@@ -223,7 +223,7 @@ const kt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Ct = (e) =
223
223
  }
224
224
  };
225
225
  } else {
226
- const t = se(yt(e, "children", "meta"));
226
+ const t = ce(yt(e, "children", "meta"));
227
227
  return {
228
228
  ...t,
229
229
  properties: {
@@ -274,17 +274,17 @@ function wt({
274
274
  context: t
275
275
  });
276
276
  }
277
- const X = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
277
+ const Z = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
278
278
  function It(e, t, n = {}) {
279
279
  let i, a, r, o = null, l = 0;
280
280
  const d = function() {
281
281
  l = n.leading === !1 ? 0 : Date.now(), o = null, r = e.apply(i, a), o || (i = a = null);
282
282
  };
283
283
  return function() {
284
- const c = Date.now();
285
- !l && n.leading === !1 && (l = c);
286
- const h = t - (c - l);
287
- return i = this, a = arguments, h <= 0 || h > t ? (o && (clearTimeout(o), o = null), l = c, r = e.apply(i, a), o || (i = a = null)) : !o && n.trailing !== !1 && (o = setTimeout(d, h)), r;
284
+ const u = Date.now();
285
+ !l && n.leading === !1 && (l = u);
286
+ const h = t - (u - l);
287
+ return i = this, a = arguments, h <= 0 || h > t ? (o && (clearTimeout(o), o = null), l = u, r = e.apply(i, a), o || (i = a = null)) : !o && n.trailing !== !1 && (o = setTimeout(d, h)), r;
288
288
  };
289
289
  }
290
290
  function H(e, ...t) {
@@ -332,7 +332,7 @@ function Oe(e) {
332
332
  }
333
333
  Array.from(t).forEach((n) => {
334
334
  Le(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
335
- n.style.transition = `all ${e.duration}s ${X(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
335
+ n.style.transition = `all ${e.duration}s ${Z(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
336
336
  n.style.transition = "", n.style.transitionDelay = "";
337
337
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
338
338
  });
@@ -358,15 +358,15 @@ function Vt(e) {
358
358
  leading: !1
359
359
  });
360
360
  function l(h) {
361
- const y = h.getBoundingClientRect(), u = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * u;
362
- return y.bottom > f && y.top < u - f;
361
+ const g = h.getBoundingClientRect(), c = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * c;
362
+ return g.bottom > f && g.top < c - f;
363
363
  }
364
364
  const d = e.steps[0].styles;
365
- function c() {
365
+ function u() {
366
366
  H(n.style, d);
367
367
  }
368
- c(), setTimeout(() => {
369
- n.style.transition = `all ${e.duration}s ${X(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
368
+ u(), setTimeout(() => {
369
+ n.style.transition = `all ${e.duration}s ${Z(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
370
370
  }), document.addEventListener("scroll", o, {
371
371
  capture: !0,
372
372
  passive: !0
@@ -375,8 +375,8 @@ function Vt(e) {
375
375
  }
376
376
  const Ue = (e) => Object.entries(e).map(([n, i]) => {
377
377
  if (typeof i == "string")
378
- return `${X(n)}: ${i};`;
379
- }).filter(le), Pt = (e) => Ue(e).join(`
378
+ return `${Z(n)}: ${i};`;
379
+ }).filter(se), Pt = (e) => Ue(e).join(`
380
380
  `), q = ({
381
381
  mediaQuery: e,
382
382
  className: t,
@@ -453,25 +453,25 @@ const qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
453
453
  if (!Array.isArray(a))
454
454
  return;
455
455
  const r = n.collection.split(".").pop(), o = n.itemName || (r ? r + "Item" : "item");
456
- return a.map((d, c) => ({
456
+ return a.map((d, u) => ({
457
457
  context: {
458
458
  ...t,
459
459
  localState: {
460
460
  ...t.localState,
461
- $index: c,
461
+ $index: u,
462
462
  $item: d,
463
463
  [o]: d,
464
- [`$${o}Index`]: c
464
+ [`$${o}Index`]: u
465
465
  }
466
466
  },
467
467
  block: i
468
468
  }));
469
- }, $t = (e, t) => {
469
+ }, Dt = (e, t) => {
470
470
  var n;
471
471
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
472
472
  builderLinkComponent: t
473
473
  } : {};
474
- }, Dt = (e, t, n) => {
474
+ }, $t = (e, t, n) => {
475
475
  var i;
476
476
  return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
477
477
  builderComponents: Object.fromEntries(Object.entries(t).filter(([r, o]) => !qe(o, n)))
@@ -507,7 +507,7 @@ const qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
507
507
  default: 991,
508
508
  max: 1200
509
509
  }
510
- }, te = (e, t = He) => `@media (max-width: ${t[e].max}px)`, Me = (e) => {
510
+ }, ne = (e, t = He) => `@media (max-width: ${t[e].max}px)`, Me = (e) => {
511
511
  const t = ue(He);
512
512
  if (!e)
513
513
  return t;
@@ -546,7 +546,7 @@ const qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
546
546
  default: l + 1
547
547
  }, t;
548
548
  };
549
- function z(e) {
549
+ function K(e) {
550
550
  return /* @__PURE__ */ s(
551
551
  "style",
552
552
  {
@@ -559,64 +559,64 @@ function z(e) {
559
559
  function Ot(e) {
560
560
  function t() {
561
561
  const i = e.block;
562
- return le(i.hide) ? !i.hide : le(i.show) ? i.show : !0;
562
+ return se(i.hide) ? !i.hide : se(i.show) ? i.show : !0;
563
563
  }
564
564
  function n() {
565
565
  var C, V, w, x, m;
566
566
  const i = e.block, a = i.responsiveStyles, r = e.context.content, o = Me(
567
567
  ((C = r == null ? void 0 : r.meta) == null ? void 0 : C.breakpoints) || {}
568
- ), l = !!((w = (V = r == null ? void 0 : r.meta) == null ? void 0 : V.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;
569
- if (!u)
568
+ ), l = !!((w = (V = r == null ? void 0 : r.meta) == null ? void 0 : V.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;
569
+ if (!c)
570
570
  return "";
571
571
  const v = d ? q({
572
- className: u,
572
+ className: c,
573
573
  styles: d
574
- }) : "", f = c ? q({
575
- className: u,
576
- styles: c,
577
- mediaQuery: te(
574
+ }) : "", f = u ? q({
575
+ className: c,
576
+ styles: u,
577
+ mediaQuery: ne(
578
578
  "medium",
579
579
  o
580
580
  )
581
- }) : "", g = h ? q({
582
- className: u,
581
+ }) : "", b = h ? q({
582
+ className: c,
583
583
  styles: h,
584
- mediaQuery: te(
584
+ mediaQuery: ne(
585
585
  "small",
586
586
  o
587
587
  )
588
- }) : "", S = y && l ? q({
589
- className: u,
590
- styles: y,
591
- mediaQuery: te(
588
+ }) : "", S = g && l ? q({
589
+ className: c,
590
+ styles: g,
591
+ mediaQuery: ne(
592
592
  "xsmall",
593
593
  o
594
594
  )
595
- }) : "", b = i.animations && i.animations.find((p) => p.trigger === "hover");
595
+ }) : "", p = i.animations && i.animations.find((y) => y.trigger === "hover");
596
596
  let k = "";
597
- if (b) {
598
- const p = ((m = (x = b.steps) == null ? void 0 : x[1]) == null ? void 0 : m.styles) || {};
597
+ if (p) {
598
+ const y = ((m = (x = p.steps) == null ? void 0 : x[1]) == null ? void 0 : m.styles) || {};
599
599
  k = q({
600
- className: `${u}:hover`,
600
+ className: `${c}:hover`,
601
601
  styles: {
602
- ...p,
603
- transition: `all ${b.duration}s ${X(
604
- b.easing
602
+ ...y,
603
+ transition: `all ${p.duration}s ${Z(
604
+ p.easing
605
605
  )}`,
606
- transitionDelay: b.delay ? `${b.delay}s` : "0s"
606
+ transitionDelay: p.delay ? `${p.delay}s` : "0s"
607
607
  }
608
608
  }) || "";
609
609
  }
610
610
  return [
611
611
  v,
612
612
  f,
613
- g,
613
+ b,
614
614
  S,
615
615
  k
616
616
  ].join(" ");
617
617
  }
618
618
  return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
619
- z,
619
+ K,
620
620
  {
621
621
  id: "builderio-block",
622
622
  styles: n(),
@@ -787,7 +787,7 @@ function xe(e) {
787
787
  contextValue: e.context
788
788
  }),
789
789
  children: (i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ s(
790
- Z,
790
+ ee,
791
791
  {
792
792
  block: a,
793
793
  context: e.context,
@@ -802,7 +802,7 @@ function xe(e) {
802
802
  function Se(e) {
803
803
  const [t, n] = I(() => e.repeatContext);
804
804
  return /* @__PURE__ */ s(me.Provider, { value: t, children: /* @__PURE__ */ s(
805
- Z,
805
+ ee,
806
806
  {
807
807
  block: e.block,
808
808
  context: t,
@@ -811,8 +811,8 @@ function Se(e) {
811
811
  }
812
812
  ) });
813
813
  }
814
- function Z(e) {
815
- var h, y, u, v;
814
+ function ee(e) {
815
+ var h, g, c, v;
816
816
  function t() {
817
817
  return Wt({
818
818
  block: e.block,
@@ -824,10 +824,10 @@ function Z(e) {
824
824
  update: !1
825
825
  }));
826
826
  function a() {
827
- var g;
828
- if (n.value && !n.update && !Y())
827
+ var b;
828
+ if (n.value && !n.update && !X())
829
829
  return n.value;
830
- const f = (g = e.block.repeat) != null && g.collection ? e.block : wt({
830
+ const f = (b = e.block.repeat) != null && b.collection ? e.block : wt({
831
831
  block: e.block,
832
832
  localState: e.context.localState,
833
833
  rootState: e.context.rootState,
@@ -844,31 +844,31 @@ function Z(e) {
844
844
  });
845
845
  }
846
846
  function o() {
847
- var g;
848
- return e.block.tagName === "a" || ((g = a().properties) == null ? void 0 : g.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
847
+ var b;
848
+ return e.block.tagName === "a" || ((b = a().properties) == null ? void 0 : b.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
849
849
  }
850
850
  function l() {
851
- var S, b;
851
+ var S, p;
852
852
  if ((S = e.block.repeat) != null && S.collection)
853
- return !!((b = t == null ? void 0 : t()) != null && b.length);
853
+ return !!((p = t == null ? void 0 : t()) != null && p.length);
854
854
  const f = "hide" in a() ? a().hide : !1;
855
855
  return ("show" in a() ? a().show : !0) && !f;
856
856
  }
857
857
  function d() {
858
- var g, S;
859
- return !((g = r == null ? void 0 : r()) != null && g.component) && !t() ? (S = a().children) != null ? S : [] : [];
858
+ var b, S;
859
+ return !((b = r == null ? void 0 : r()) != null && b.component) && !t() ? (S = a().children) != null ? S : [] : [];
860
860
  }
861
- function c() {
862
- var f, g, S, b;
861
+ function u() {
862
+ var f, b, S, p;
863
863
  return {
864
864
  blockChildren: (f = a().children) != null ? f : [],
865
- componentRef: (g = r == null ? void 0 : r()) == null ? void 0 : g.component,
865
+ componentRef: (b = r == null ? void 0 : r()) == null ? void 0 : b.component,
866
866
  componentOptions: {
867
867
  ...bt(a(), e.context),
868
868
  ...Ft(r(), a()),
869
869
  ...Lt(r(), e.context),
870
- ...$t(r(), e.linkComponent),
871
- ...Dt(
870
+ ...Dt(r(), e.linkComponent),
871
+ ...$t(
872
872
  r(),
873
873
  e.registeredComponents,
874
874
  e.context.model
@@ -879,13 +879,13 @@ function Z(e) {
879
879
  registeredComponents: e.registeredComponents,
880
880
  builderBlock: a(),
881
881
  includeBlockProps: ((S = r == null ? void 0 : r()) == null ? void 0 : S.noWrap) === !0,
882
- isInteractive: !((b = r == null ? void 0 : r()) != null && b.isRSC && O === "rsc")
882
+ isInteractive: !((p = r == null ? void 0 : r()) != null && p.isRSC && O === "rsc")
883
883
  };
884
884
  }
885
885
  return P(() => {
886
- const f = a().id, g = a().animations;
887
- g && f && Et(
888
- g.map((S) => ({
886
+ const f = a().id, b = a().animations;
887
+ b && f && Et(
888
+ b.map((S) => ({
889
889
  ...S,
890
890
  elementId: f
891
891
  }))
@@ -894,7 +894,7 @@ function Z(e) {
894
894
  n.update = !0;
895
895
  }), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ B(R, { children: [
896
896
  /* @__PURE__ */ s(Ot, { block: a(), context: e.context }),
897
- (h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((f, g) => /* @__PURE__ */ s(
897
+ (h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((f, b) => /* @__PURE__ */ s(
898
898
  Se,
899
899
  {
900
900
  repeatContext: f.context,
@@ -902,21 +902,21 @@ function Z(e) {
902
902
  registeredComponents: e.registeredComponents,
903
903
  linkComponent: e.linkComponent
904
904
  },
905
- g
905
+ b
906
906
  )) }) : /* @__PURE__ */ s(
907
907
  xe,
908
908
  {
909
- componentRef: c().componentRef,
910
- componentOptions: c().componentOptions,
911
- blockChildren: c().blockChildren,
912
- context: c().context,
913
- registeredComponents: c().registeredComponents,
914
- linkComponent: c().linkComponent,
915
- builderBlock: c().builderBlock,
916
- includeBlockProps: c().includeBlockProps,
917
- isInteractive: c().isInteractive
909
+ componentRef: u().componentRef,
910
+ componentOptions: u().componentOptions,
911
+ blockChildren: u().blockChildren,
912
+ context: u().context,
913
+ registeredComponents: u().registeredComponents,
914
+ linkComponent: u().linkComponent,
915
+ builderBlock: u().builderBlock,
916
+ includeBlockProps: u().includeBlockProps,
917
+ isInteractive: u().isInteractive
918
918
  }
919
- ) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (u = t()) == null ? void 0 : u.map((f, g) => /* @__PURE__ */ s(
919
+ ) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (c = t()) == null ? void 0 : c.map((f, b) => /* @__PURE__ */ s(
920
920
  Se,
921
921
  {
922
922
  repeatContext: f.context,
@@ -924,7 +924,7 @@ function Z(e) {
924
924
  registeredComponents: e.registeredComponents,
925
925
  linkComponent: e.linkComponent
926
926
  },
927
- g
927
+ b
928
928
  )) }) : /* @__PURE__ */ B(
929
929
  jt,
930
930
  {
@@ -935,19 +935,19 @@ function Z(e) {
935
935
  /* @__PURE__ */ s(
936
936
  xe,
937
937
  {
938
- componentRef: c().componentRef,
939
- componentOptions: c().componentOptions,
940
- blockChildren: c().blockChildren,
941
- context: c().context,
942
- registeredComponents: c().registeredComponents,
943
- linkComponent: c().linkComponent,
944
- builderBlock: c().builderBlock,
945
- includeBlockProps: c().includeBlockProps,
946
- isInteractive: c().isInteractive
938
+ componentRef: u().componentRef,
939
+ componentOptions: u().componentOptions,
940
+ blockChildren: u().blockChildren,
941
+ context: u().context,
942
+ registeredComponents: u().registeredComponents,
943
+ linkComponent: u().linkComponent,
944
+ builderBlock: u().builderBlock,
945
+ includeBlockProps: u().includeBlockProps,
946
+ isInteractive: u().isInteractive
947
947
  }
948
948
  ),
949
- (y = d()) == null ? void 0 : y.map((f) => /* @__PURE__ */ s(
950
- Z,
949
+ (g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */ s(
950
+ ee,
951
951
  {
952
952
  block: f,
953
953
  registeredComponents: e.registeredComponents,
@@ -963,6 +963,7 @@ function Z(e) {
963
963
  }
964
964
  function Gt(e) {
965
965
  const t = L(null);
966
+ I(() => !1);
966
967
  function n() {
967
968
  var o;
968
969
  return [
@@ -979,7 +980,7 @@ function Gt(e) {
979
980
  }
980
981
  function a() {
981
982
  var o, l;
982
- $() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
983
+ N() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
983
984
  {
984
985
  type: "builder.clickEmptyBlocks",
985
986
  data: {
@@ -992,7 +993,7 @@ function Gt(e) {
992
993
  }
993
994
  function r() {
994
995
  var o, l;
995
- $() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
996
+ N() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
996
997
  {
997
998
  type: "builder.hoverEmptyBlocks",
998
999
  data: {
@@ -1004,12 +1005,13 @@ function Gt(e) {
1004
1005
  ));
1005
1006
  }
1006
1007
  return P(() => {
1007
- }, []), /* @__PURE__ */ B(R, { children: [
1008
+ }, []), P(() => {
1009
+ }, [e.blocks]), /* @__PURE__ */ B(R, { children: [
1008
1010
  /* @__PURE__ */ s(
1009
1011
  e.BlocksWrapper,
1010
1012
  {
1011
1013
  ref: t,
1012
- className: n() + " props-blocks-wrapper-2936bbfc",
1014
+ className: n() + " props-blocks-wrapper-14802cff",
1013
1015
  "builder-path": i(),
1014
1016
  "builder-parent-id": e.parent,
1015
1017
  style: e.styleProp,
@@ -1020,14 +1022,14 @@ function Gt(e) {
1020
1022
  children: e.children
1021
1023
  }
1022
1024
  ),
1023
- /* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-2936bbfc {
1025
+ /* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-14802cff {
1024
1026
  display: flex;
1025
1027
  flex-direction: column;
1026
1028
  align-items: stretch;
1027
1029
  }` })
1028
1030
  ] });
1029
1031
  }
1030
- function D(e) {
1032
+ function $(e) {
1031
1033
  var i, a, r;
1032
1034
  const t = ve(me), n = ve(We);
1033
1035
  return /* @__PURE__ */ s(
@@ -1041,7 +1043,7 @@ function D(e) {
1041
1043
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
1042
1044
  BlocksWrapperProps: ((a = e.context) == null ? void 0 : a.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
1043
1045
  children: e.blocks ? /* @__PURE__ */ s(R, { children: (r = e.blocks) == null ? void 0 : r.map((o) => /* @__PURE__ */ s(
1044
- Z,
1046
+ ee,
1045
1047
  {
1046
1048
  block: o,
1047
1049
  linkComponent: e.linkComponent,
@@ -1055,7 +1057,7 @@ function D(e) {
1055
1057
  }
1056
1058
  const Qt = (e) => `builder-columns ${e}-breakpoints`;
1057
1059
  function Yt(e) {
1058
- var g, S;
1060
+ var b, S;
1059
1061
  function t() {
1060
1062
  return typeof e.space == "number" ? e.space || 0 : 20;
1061
1063
  }
@@ -1065,43 +1067,43 @@ function Yt(e) {
1065
1067
  function i() {
1066
1068
  return e.stackColumnsAt || "tablet";
1067
1069
  }
1068
- function a(b) {
1069
- return b.link ? e.builderLinkComponent || "a" : "div";
1070
+ function a(p) {
1071
+ return p.link ? e.builderLinkComponent || "a" : "div";
1070
1072
  }
1071
- function r(b) {
1073
+ function r(p) {
1072
1074
  var k;
1073
- return ((k = n()[b]) == null ? void 0 : k.width) || 100 / n().length;
1075
+ return ((k = n()[p]) == null ? void 0 : k.width) || 100 / n().length;
1074
1076
  }
1075
- function o(b) {
1076
- const k = r(b), C = t() * (n().length - 1) * (k / 100);
1077
+ function o(p) {
1078
+ const k = r(p), C = t() * (n().length - 1) * (k / 100);
1077
1079
  return `calc(${k}% - ${C}px)`;
1078
1080
  }
1079
1081
  function l({
1080
- stackedStyle: b,
1082
+ stackedStyle: p,
1081
1083
  desktopStyle: k
1082
1084
  }) {
1083
- return i() === "tablet" ? b : k;
1085
+ return i() === "tablet" ? p : k;
1084
1086
  }
1085
1087
  function d({
1086
- stackedStyle: b,
1088
+ stackedStyle: p,
1087
1089
  desktopStyle: k
1088
1090
  }) {
1089
- return i() === "never" ? k : b;
1091
+ return i() === "never" ? k : p;
1090
1092
  }
1091
- function c() {
1093
+ function u() {
1092
1094
  return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
1093
1095
  }
1094
1096
  function h() {
1095
1097
  return {
1096
- "--flex-dir": c(),
1098
+ "--flex-dir": u(),
1097
1099
  "--flex-dir-tablet": l({
1098
- stackedStyle: c(),
1100
+ stackedStyle: u(),
1099
1101
  desktopStyle: "row"
1100
1102
  })
1101
1103
  };
1102
1104
  }
1103
- function y(b) {
1104
- const k = b === 0 ? 0 : t(), C = o(b), V = `${k}px`, w = "100%", x = 0;
1105
+ function g(p) {
1106
+ const k = p === 0 ? 0 : t(), C = o(p), V = `${k}px`, w = "100%", x = 0;
1105
1107
  return {
1106
1108
  ...{
1107
1109
  display: "flex",
@@ -1128,79 +1130,79 @@ function Yt(e) {
1128
1130
  })
1129
1131
  };
1130
1132
  }
1131
- function u(b) {
1133
+ function c(p) {
1132
1134
  var C, V;
1133
1135
  return Me(
1134
1136
  ((V = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : V.breakpoints) || {}
1135
- )[b].max;
1137
+ )[p].max;
1136
1138
  }
1137
1139
  function v() {
1138
- const b = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1140
+ const p = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1139
1141
  return `
1140
- @media (max-width: ${u("medium")}px) {
1142
+ @media (max-width: ${c("medium")}px) {
1141
1143
  .${e.builderBlock.id}-breakpoints {
1142
1144
  flex-direction: var(--flex-dir-tablet);
1143
1145
  align-items: stretch;
1144
1146
  }
1145
1147
 
1146
- ${b} {
1148
+ ${p} {
1147
1149
  width: var(--column-width-tablet) !important;
1148
1150
  margin-left: var(--column-margin-left-tablet) !important;
1149
1151
  }
1150
1152
  }
1151
1153
 
1152
- @media (max-width: ${u("small")}px) {
1154
+ @media (max-width: ${c("small")}px) {
1153
1155
  .${e.builderBlock.id}-breakpoints {
1154
1156
  flex-direction: var(--flex-dir);
1155
1157
  align-items: stretch;
1156
1158
  }
1157
1159
 
1158
- ${b} {
1160
+ ${p} {
1159
1161
  width: var(--column-width-mobile) !important;
1160
1162
  margin-left: var(--column-margin-left-mobile) !important;
1161
1163
  }
1162
1164
  },
1163
1165
  `;
1164
1166
  }
1165
- function f(b, k) {
1167
+ function f(p, k) {
1166
1168
  return {
1167
- ...b.link ? {
1168
- href: b.link
1169
+ ...p.link ? {
1170
+ href: p.link
1169
1171
  } : {},
1170
1172
  [j()]: "builder-column",
1171
- style: _e(y(k))
1173
+ style: _e(g(k))
1172
1174
  };
1173
1175
  }
1174
1176
  return /* @__PURE__ */ B(R, { children: [
1175
1177
  /* @__PURE__ */ B(
1176
1178
  "div",
1177
1179
  {
1178
- className: Qt((g = e.builderBlock) == null ? void 0 : g.id) + " div-a6f3faac",
1180
+ className: Qt((b = e.builderBlock) == null ? void 0 : b.id) + " div-a6f3faac",
1179
1181
  style: h(),
1180
1182
  children: [
1181
1183
  /* @__PURE__ */ s(
1182
- z,
1184
+ K,
1183
1185
  {
1184
1186
  id: "builderio-columns",
1185
1187
  styles: v(),
1186
1188
  nonce: e.builderContext.nonce
1187
1189
  }
1188
1190
  ),
1189
- (S = e.columns) == null ? void 0 : S.map((b, k) => /* @__PURE__ */ s(
1191
+ (S = e.columns) == null ? void 0 : S.map((p, k) => /* @__PURE__ */ s(
1190
1192
  de,
1191
1193
  {
1192
- TagName: a(b),
1194
+ TagName: a(p),
1193
1195
  actionAttributes: {},
1194
- attributes: f(b, k),
1196
+ attributes: f(p, k),
1195
1197
  children: /* @__PURE__ */ s(
1196
- D,
1198
+ $,
1197
1199
  {
1198
1200
  path: `columns.${k}.blocks`,
1199
1201
  parent: e.builderBlock.id,
1200
1202
  context: e.builderContext,
1201
1203
  registeredComponents: e.builderComponents,
1202
1204
  linkComponent: e.builderLinkComponent,
1203
- blocks: b.blocks,
1205
+ blocks: p.blocks,
1204
1206
  styleProp: {
1205
1207
  flexGrow: "1"
1206
1208
  }
@@ -1240,7 +1242,7 @@ function en(e, t) {
1240
1242
  }
1241
1243
  return null;
1242
1244
  }
1243
- function ne(e) {
1245
+ function ie(e) {
1244
1246
  if (!e)
1245
1247
  return e;
1246
1248
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
@@ -1252,21 +1254,21 @@ function ne(e) {
1252
1254
  return e.match(/cdn\.shopify\.com/) ? t.map((n) => [en(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1253
1255
  }
1254
1256
  function tn(e) {
1255
- var a, r, o, l, d, c;
1257
+ var a, r, o, l, d, u;
1256
1258
  function t() {
1257
- var u;
1258
- const y = e.image || e.src;
1259
- if (!y || // We can auto add srcset for cdn.builder.io and shopify
1259
+ var c;
1260
+ const g = e.image || e.src;
1261
+ if (!g || // We can auto add srcset for cdn.builder.io and shopify
1260
1262
  // images, otherwise you can supply this prop manually
1261
- !(typeof y == "string" && (y.match(/builder\.io/) || y.match(/cdn\.shopify\.com/))))
1263
+ !(typeof g == "string" && (g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/))))
1262
1264
  return e.srcset;
1263
1265
  if (!e.noWebp) {
1264
- if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
1266
+ if (e.srcset && ((c = e.image) != null && c.includes("builder.io/api/v1/image"))) {
1265
1267
  if (!e.srcset.includes(e.image.split("?")[0]))
1266
- return console.debug("Removed given srcset"), ne(y);
1268
+ return console.debug("Removed given srcset"), ie(g);
1267
1269
  } else if (e.image && !e.srcset)
1268
- return ne(y);
1269
- return ne(y);
1270
+ return ie(g);
1271
+ return ie(g);
1270
1272
  }
1271
1273
  }
1272
1274
  function n() {
@@ -1293,13 +1295,14 @@ function tn(e) {
1293
1295
  loading: e.highPriority ? "eager" : "lazy",
1294
1296
  fetchPriority: e.highPriority ? "high" : "auto",
1295
1297
  alt: e.altText,
1298
+ title: e.title,
1296
1299
  role: e.altText ? void 0 : "presentation",
1297
1300
  style: {
1298
1301
  objectPosition: e.backgroundPosition || "center",
1299
1302
  objectFit: e.backgroundSize || "cover",
1300
1303
  ...i()
1301
1304
  },
1302
- className: "builder-image" + (e.className ? " " + e.className : "") + " img-9dac2184",
1305
+ className: "builder-image" + (e.className ? " " + e.className : "") + " img-1aa8aba3",
1303
1306
  src: e.image,
1304
1307
  srcSet: t(),
1305
1308
  sizes: e.sizes
@@ -1309,23 +1312,23 @@ function tn(e) {
1309
1312
  e.aspectRatio && !((r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
1310
1313
  "div",
1311
1314
  {
1312
- className: "builder-image-sizer div-9dac2184",
1315
+ className: "builder-image-sizer div-1aa8aba3",
1313
1316
  style: {
1314
1317
  paddingTop: e.aspectRatio * 100 + "%"
1315
1318
  }
1316
1319
  }
1317
1320
  ) : null,
1318
1321
  (l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
1319
- !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
1322
+ !e.fitContent && ((u = (d = e.builderBlock) == null ? void 0 : d.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-1aa8aba3-2", children: e.children }) : null
1320
1323
  ] }),
1321
- /* @__PURE__ */ s("style", { children: `.img-9dac2184 {
1324
+ /* @__PURE__ */ s("style", { children: `.img-1aa8aba3 {
1322
1325
  opacity: 1;
1323
1326
  transition: opacity 0.2s ease-in-out;
1324
- }.div-9dac2184 {
1327
+ }.div-1aa8aba3 {
1325
1328
  width: 100%;
1326
1329
  pointer-events: none;
1327
1330
  font-size: 0;
1328
- }.div-9dac2184-2 {
1331
+ }.div-1aa8aba3-2 {
1329
1332
  display: flex;
1330
1333
  flex-direction: column;
1331
1334
  align-items: stretch;
@@ -1358,7 +1361,7 @@ function nn(e) {
1358
1361
  }
1359
1362
  );
1360
1363
  }
1361
- const ie = {
1364
+ const ae = {
1362
1365
  "@type": "@builder.io/sdk:Element",
1363
1366
  layerName: "Accordion item title",
1364
1367
  responsiveStyles: {
@@ -1387,7 +1390,7 @@ const ie = {
1387
1390
  }
1388
1391
  }
1389
1392
  }]
1390
- }, ae = {
1393
+ }, oe = {
1391
1394
  "@type": "@builder.io/sdk:Element",
1392
1395
  layerName: "Accordion item detail",
1393
1396
  responsiveStyles: {
@@ -1435,19 +1438,19 @@ const ie = {
1435
1438
  name: "title",
1436
1439
  type: "uiBlocks",
1437
1440
  hideFromUI: !0,
1438
- defaultValue: [ie]
1441
+ defaultValue: [ae]
1439
1442
  }, {
1440
1443
  name: "detail",
1441
1444
  type: "uiBlocks",
1442
1445
  hideFromUI: !0,
1443
- defaultValue: [ae]
1446
+ defaultValue: [oe]
1444
1447
  }],
1445
1448
  defaultValue: [{
1446
- title: [ie],
1447
- detail: [ae]
1449
+ title: [ae],
1450
+ detail: [oe]
1448
1451
  }, {
1449
- title: [ie],
1450
- detail: [ae]
1452
+ title: [ae],
1453
+ detail: [oe]
1451
1454
  }],
1452
1455
  showIf: (e) => !e.get("useChildrenForItems")
1453
1456
  }, {
@@ -1484,7 +1487,7 @@ const ie = {
1484
1487
  }
1485
1488
  }, Ce = (e) => e.toString();
1486
1489
  function on(e) {
1487
- var y;
1490
+ var g;
1488
1491
  const [t, n] = I(() => []);
1489
1492
  function i() {
1490
1493
  return !!(e.grid || e.oneAtATime);
@@ -1511,57 +1514,57 @@ function on(e) {
1511
1514
  cursor: "pointer"
1512
1515
  };
1513
1516
  return Object.fromEntries(
1514
- Object.entries(v).filter(([f, g]) => g !== void 0)
1517
+ Object.entries(v).filter(([f, b]) => b !== void 0)
1515
1518
  );
1516
1519
  }
1517
- function o(u) {
1518
- return `builder-accordion-title builder-accordion-title-${t.includes(u) ? "open" : "closed"}`;
1520
+ function o(c) {
1521
+ return `builder-accordion-title builder-accordion-title-${t.includes(c) ? "open" : "closed"}`;
1519
1522
  }
1520
- function l(u) {
1521
- return `builder-accordion-detail builder-accordion-detail-${t.includes(u) ? "open" : "closed"}`;
1523
+ function l(c) {
1524
+ return `builder-accordion-detail builder-accordion-detail-${t.includes(c) ? "open" : "closed"}`;
1522
1525
  }
1523
1526
  function d() {
1524
- let u = null;
1527
+ let c = null;
1525
1528
  if (e.grid && t.length && document) {
1526
1529
  const f = t[0];
1527
1530
  let S = document.querySelector(
1528
1531
  `.builder-accordion-title[data-index="${f}"]`
1529
1532
  );
1530
- if (u = f, S) {
1531
- let b = S.getBoundingClientRect();
1533
+ if (c = f, S) {
1534
+ let p = S.getBoundingClientRect();
1532
1535
  for (; S = S && S.nextElementSibling; )
1533
1536
  if (S) {
1534
1537
  if (S.classList.contains("builder-accordion-detail"))
1535
1538
  continue;
1536
1539
  const k = S.getBoundingClientRect();
1537
- if (k.left > b.left) {
1540
+ if (k.left > p.left) {
1538
1541
  const C = parseInt(
1539
1542
  S.getAttribute("data-index") || "",
1540
1543
  10
1541
1544
  );
1542
- isNaN(C) || (b = k, u = C);
1545
+ isNaN(C) || (p = k, c = C);
1543
1546
  } else
1544
1547
  break;
1545
1548
  }
1546
1549
  }
1547
1550
  }
1548
- return typeof u == "number" && (u = u + 1), u;
1551
+ return typeof c == "number" && (c = c + 1), c;
1549
1552
  }
1550
- function c() {
1551
- const u = {
1553
+ function u() {
1554
+ const c = {
1552
1555
  order: typeof d() == "number" ? d() : void 0,
1553
1556
  ...e.grid && {
1554
1557
  width: "100%"
1555
1558
  }
1556
1559
  };
1557
1560
  return Object.fromEntries(
1558
- Object.entries(u).filter(([v, f]) => f !== void 0)
1561
+ Object.entries(c).filter(([v, f]) => f !== void 0)
1559
1562
  );
1560
1563
  }
1561
- function h(u) {
1562
- t.includes(u) ? n(i() ? [] : t.filter((v) => v !== u)) : n(i() ? [u] : t.concat(u));
1564
+ function h(c) {
1565
+ t.includes(c) ? n(i() ? [] : t.filter((v) => v !== c)) : n(i() ? [c] : t.concat(c));
1563
1566
  }
1564
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (y = e.items) == null ? void 0 : y.map((u, v) => /* @__PURE__ */ B(tt.Fragment, { children: [
1567
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (g = e.items) == null ? void 0 : g.map((c, v) => /* @__PURE__ */ B(tt.Fragment, { children: [
1565
1568
  /* @__PURE__ */ s(
1566
1569
  "div",
1567
1570
  {
@@ -1576,9 +1579,9 @@ function on(e) {
1576
1579
  "data-index": v,
1577
1580
  onClick: (f) => h(v),
1578
1581
  children: /* @__PURE__ */ s(
1579
- D,
1582
+ $,
1580
1583
  {
1581
- blocks: u.title,
1584
+ blocks: c.title,
1582
1585
  path: `items.${v}.title`,
1583
1586
  parent: e.builderBlock.id,
1584
1587
  context: e.builderContext,
@@ -1592,11 +1595,11 @@ function on(e) {
1592
1595
  "div",
1593
1596
  {
1594
1597
  className: l(v),
1595
- style: c(),
1598
+ style: u(),
1596
1599
  children: /* @__PURE__ */ s(
1597
- D,
1600
+ $,
1598
1601
  {
1599
- blocks: u.detail,
1602
+ blocks: c.detail,
1600
1603
  path: `items.${v}.detail`,
1601
1604
  parent: e.builderBlock.id,
1602
1605
  context: e.builderContext,
@@ -1878,15 +1881,15 @@ const rn = {
1878
1881
  onChange: (e) => {
1879
1882
  e.delete("srcset"), e.delete("noWebp");
1880
1883
  function n(o, l = 6e4) {
1881
- return new Promise((d, c) => {
1884
+ return new Promise((d, u) => {
1882
1885
  const h = document.createElement("img");
1883
- let y = !1;
1886
+ let g = !1;
1884
1887
  h.onload = () => {
1885
- y = !0, d(h);
1886
- }, h.addEventListener("error", (u) => {
1887
- console.warn("Image load failed", u.error), c(u.error);
1888
+ g = !0, d(h);
1889
+ }, h.addEventListener("error", (c) => {
1890
+ console.warn("Image load failed", c.error), u(c.error);
1888
1891
  }), h.src = o, setTimeout(() => {
1889
- y || c(new Error("Image load timed out"));
1892
+ g || u(new Error("Image load timed out"));
1890
1893
  }, l);
1891
1894
  });
1892
1895
  }
@@ -1924,6 +1927,10 @@ const rn = {
1924
1927
  name: "altText",
1925
1928
  type: "string",
1926
1929
  helperText: "Text to display when the user has images off"
1930
+ }, {
1931
+ name: "title",
1932
+ type: "string",
1933
+ helperText: "Text to display when hovering over the asset"
1927
1934
  }, {
1928
1935
  name: "height",
1929
1936
  type: "number",
@@ -2001,7 +2008,7 @@ const rn = {
2001
2008
  }]
2002
2009
  }]
2003
2010
  };
2004
- function Q(e) {
2011
+ function Y(e) {
2005
2012
  return /* @__PURE__ */ s(
2006
2013
  "script",
2007
2014
  {
@@ -2012,50 +2019,50 @@ function Q(e) {
2012
2019
  );
2013
2020
  }
2014
2021
  function mn(e, t, n, i) {
2015
- function a(c) {
2016
- return typeof c == "string";
2022
+ function a(u) {
2023
+ return typeof u == "string";
2017
2024
  }
2018
- function r(c) {
2019
- return typeof c == "number";
2025
+ function r(u) {
2026
+ return typeof u == "number";
2020
2027
  }
2021
- function o(c, h) {
2028
+ function o(u, h) {
2022
2029
  return (() => {
2023
- const u = h.property, v = h.operator;
2030
+ const c = h.property, v = h.operator;
2024
2031
  let f = h.value;
2025
- if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(u && v))
2032
+ if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(c && v))
2026
2033
  return !0;
2027
2034
  if (Array.isArray(f))
2028
- return v === "isNot" ? f.every((S) => o(c, {
2029
- property: u,
2035
+ return v === "isNot" ? f.every((S) => o(u, {
2036
+ property: c,
2030
2037
  operator: v,
2031
2038
  value: S
2032
- })) : !!f.find((S) => o(c, {
2033
- property: u,
2039
+ })) : !!f.find((S) => o(u, {
2040
+ property: c,
2034
2041
  operator: v,
2035
2042
  value: S
2036
2043
  }));
2037
- const g = c[u];
2038
- if (Array.isArray(g))
2039
- return g.includes(f);
2044
+ const b = u[c];
2045
+ if (Array.isArray(b))
2046
+ return b.includes(f);
2040
2047
  switch (v) {
2041
2048
  case "is":
2042
- return g === f;
2049
+ return b === f;
2043
2050
  case "isNot":
2044
- return g !== f;
2051
+ return b !== f;
2045
2052
  case "contains":
2046
- return (a(g) || Array.isArray(g)) && g.includes(String(f));
2053
+ return (a(b) || Array.isArray(b)) && b.includes(String(f));
2047
2054
  case "startsWith":
2048
- return a(g) && g.startsWith(String(f));
2055
+ return a(b) && b.startsWith(String(f));
2049
2056
  case "endsWith":
2050
- return a(g) && g.endsWith(String(f));
2057
+ return a(b) && b.endsWith(String(f));
2051
2058
  case "greaterThan":
2052
- return r(g) && r(f) && g > f;
2059
+ return r(b) && r(f) && b > f;
2053
2060
  case "lessThan":
2054
- return r(g) && r(f) && g < f;
2061
+ return r(b) && r(f) && b < f;
2055
2062
  case "greaterThanOrEqualTo":
2056
- return r(g) && r(f) && g >= f;
2063
+ return r(b) && r(f) && b >= f;
2057
2064
  case "lessThanOrEqualTo":
2058
- return r(g) && r(f) && g <= f;
2065
+ return r(b) && r(f) && b <= f;
2059
2066
  default:
2060
2067
  return !1;
2061
2068
  }
@@ -2066,7 +2073,7 @@ function mn(e, t, n, i) {
2066
2073
  startDate: n,
2067
2074
  endDate: i
2068
2075
  }, d = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
2069
- 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) => o(e, c));
2076
+ 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) => o(e, u));
2070
2077
  }
2071
2078
  const fn = `function getPersonalizedVariant(variants, blockId, locale) {
2072
2079
  if (!navigator.cookieEnabled) {
@@ -2215,7 +2222,7 @@ function bn({
2215
2222
  blocks: a != null ? a : [],
2216
2223
  path: "this.children"
2217
2224
  };
2218
- if (n && $())
2225
+ if (n && N())
2219
2226
  return typeof t == "number" && t < ((o = e == null ? void 0 : e.length) != null ? o : 0) ? {
2220
2227
  blocks: e[t].blocks,
2221
2228
  path: `component.options.variants.${t}.blocks`
@@ -2238,19 +2245,19 @@ const pn = (e, t, n) => `
2238
2245
  })();
2239
2246
  `;
2240
2247
  function yn(e) {
2241
- var g, S, b, k, C, V, w;
2248
+ var b, S, p, k, C, V, w;
2242
2249
  const t = L(null), [n, i] = I(
2243
2250
  () => be.getUserAttributes()
2244
2251
  ), [a, r] = I(
2245
2252
  () => {
2246
- var x, m, p;
2253
+ var x, m, y;
2247
2254
  return pn(
2248
2255
  e.variants,
2249
2256
  ((x = e.builderBlock) == null ? void 0 : x.id) || "none",
2250
- (p = (m = e.builderContext) == null ? void 0 : m.rootState) == null ? void 0 : p.locale
2257
+ (y = (m = e.builderContext) == null ? void 0 : m.rootState) == null ? void 0 : y.locale
2251
2258
  );
2252
2259
  }
2253
- ), [o, l] = I(() => []), [d, c] = I(
2260
+ ), [o, l] = I(() => []), [d, u] = I(
2254
2261
  () => {
2255
2262
  var x;
2256
2263
  return gn(
@@ -2258,13 +2265,13 @@ function yn(e) {
2258
2265
  M((x = e.builderContext) == null ? void 0 : x.canTrack)
2259
2266
  );
2260
2267
  }
2261
- ), [h, y] = I(() => !1);
2262
- function u() {
2268
+ ), [h, g] = I(() => !1);
2269
+ function c() {
2263
2270
  return (e.variants || []).filter((x) => {
2264
- var m, p, T, E;
2271
+ var m, y, T, E;
2265
2272
  return mn(
2266
2273
  {
2267
- ...(p = (m = e.builderContext) == null ? void 0 : m.rootState) != null && p.locale ? {
2274
+ ...(y = (m = e.builderContext) == null ? void 0 : m.rootState) != null && y.locale ? {
2268
2275
  locale: (E = (T = e.builderContext) == null ? void 0 : T.rootState) == null ? void 0 : E.locale
2269
2276
  } : {},
2270
2277
  ...n
@@ -2281,44 +2288,44 @@ function yn(e) {
2281
2288
  variants: e.variants,
2282
2289
  fallbackBlocks: (x = e.builderBlock) == null ? void 0 : x.children,
2283
2290
  isHydrated: h,
2284
- filteredVariants: u(),
2291
+ filteredVariants: c(),
2285
2292
  previewingIndex: e.previewingIndex
2286
2293
  });
2287
2294
  }
2288
2295
  function f() {
2289
2296
  return (e.variants || []).map(
2290
2297
  (x, m) => {
2291
- var p;
2292
- return `[data-variant-id="${(p = e.builderBlock) == null ? void 0 : p.id}-${m}"] { display: none; } `;
2298
+ var y;
2299
+ return `[data-variant-id="${(y = e.builderBlock) == null ? void 0 : y.id}-${m}"] { display: none; } `;
2293
2300
  }
2294
2301
  ).join("");
2295
2302
  }
2296
2303
  return P(() => {
2297
2304
  var m;
2298
- y(!0);
2305
+ g(!0);
2299
2306
  const x = be.subscribeOnUserAttributesChange(
2300
- (p) => {
2301
- i(p);
2307
+ (y) => {
2308
+ i(y);
2302
2309
  }
2303
2310
  );
2304
- if (!($() || Y())) {
2305
- const p = u()[0];
2311
+ if (!(N() || X())) {
2312
+ const y = c()[0];
2306
2313
  t.current && (t.current.dispatchEvent(
2307
2314
  new CustomEvent("builder.variantLoaded", {
2308
2315
  detail: {
2309
- variant: p || "default",
2316
+ variant: y || "default",
2310
2317
  content: (m = e.builderContext) == null ? void 0 : m.content
2311
2318
  },
2312
2319
  bubbles: !0
2313
2320
  })
2314
2321
  ), new IntersectionObserver((E) => {
2315
2322
  E.forEach((A) => {
2316
- var N;
2323
+ var W;
2317
2324
  A.isIntersecting && t.current && t.current.dispatchEvent(
2318
2325
  new CustomEvent("builder.variantDisplayed", {
2319
2326
  detail: {
2320
- variant: p || "default",
2321
- content: (N = e.builderContext) == null ? void 0 : N.content
2327
+ variant: y || "default",
2328
+ content: (W = e.builderContext) == null ? void 0 : W.content
2322
2329
  },
2323
2330
  bubbles: !0
2324
2331
  })
@@ -2334,17 +2341,17 @@ function yn(e) {
2334
2341
  {
2335
2342
  ref: t,
2336
2343
  ...e.attributes,
2337
- className: `builder-personalization-container ${((g = e.attributes) == null ? void 0 : g.className) || ""}`,
2344
+ className: `builder-personalization-container ${((b = e.attributes) == null ? void 0 : b.className) || ""}`,
2338
2345
  children: [
2339
2346
  d ? /* @__PURE__ */ B(R, { children: [
2340
2347
  (S = e.variants) == null ? void 0 : S.map((x, m) => {
2341
- var p, T;
2348
+ var y, T;
2342
2349
  return /* @__PURE__ */ s(
2343
2350
  "template",
2344
2351
  {
2345
- "data-variant-id": `${(p = e.builderBlock) == null ? void 0 : p.id}-${m}`,
2352
+ "data-variant-id": `${(y = e.builderBlock) == null ? void 0 : y.id}-${m}`,
2346
2353
  children: /* @__PURE__ */ s(
2347
- D,
2354
+ $,
2348
2355
  {
2349
2356
  blocks: x.blocks,
2350
2357
  parent: (T = e.builderBlock) == null ? void 0 : T.id,
@@ -2356,15 +2363,15 @@ function yn(e) {
2356
2363
  );
2357
2364
  }),
2358
2365
  /* @__PURE__ */ s(
2359
- z,
2366
+ K,
2360
2367
  {
2361
- nonce: ((b = e.builderContext) == null ? void 0 : b.nonce) || "",
2368
+ nonce: ((p = e.builderContext) == null ? void 0 : p.nonce) || "",
2362
2369
  styles: f(),
2363
2370
  id: `variants-styles-${(k = e.builderBlock) == null ? void 0 : k.id}`
2364
2371
  }
2365
2372
  ),
2366
2373
  /* @__PURE__ */ s(
2367
- Q,
2374
+ Y,
2368
2375
  {
2369
2376
  nonce: ((C = e.builderContext) == null ? void 0 : C.nonce) || "",
2370
2377
  scriptStr: a,
@@ -2373,7 +2380,7 @@ function yn(e) {
2373
2380
  )
2374
2381
  ] }) : null,
2375
2382
  /* @__PURE__ */ s(
2376
- D,
2383
+ $,
2377
2384
  {
2378
2385
  blocks: v().blocks,
2379
2386
  parent: (w = e.builderBlock) == null ? void 0 : w.id,
@@ -2453,7 +2460,7 @@ function Sn(e) {
2453
2460
  "builder-slot": e.name
2454
2461
  },
2455
2462
  children: /* @__PURE__ */ s(
2456
- D,
2463
+ $,
2457
2464
  {
2458
2465
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
2459
2466
  path: `symbol.data.${e.name}`,
@@ -2504,7 +2511,7 @@ const kn = {
2504
2511
  builderComponents: !0,
2505
2512
  builderLinkComponent: !0
2506
2513
  }
2507
- }, oe = {
2514
+ }, re = {
2508
2515
  "@type": "@builder.io/sdk:Element",
2509
2516
  responsiveStyles: {
2510
2517
  large: {
@@ -2526,7 +2533,7 @@ const kn = {
2526
2533
  text: "New tab"
2527
2534
  }
2528
2535
  }
2529
- }, re = {
2536
+ }, le = {
2530
2537
  "@type": "@builder.io/sdk:Element",
2531
2538
  responsiveStyles: {
2532
2539
  large: {
@@ -2552,16 +2559,16 @@ const kn = {
2552
2559
  name: "label",
2553
2560
  type: "uiBlocks",
2554
2561
  hideFromUI: !0,
2555
- defaultValue: [oe]
2562
+ defaultValue: [re]
2556
2563
  }, {
2557
2564
  name: "content",
2558
2565
  type: "uiBlocks",
2559
2566
  hideFromUI: !0,
2560
- defaultValue: [re]
2567
+ defaultValue: [le]
2561
2568
  }],
2562
2569
  defaultValue: [{
2563
2570
  label: [{
2564
- ...oe,
2571
+ ...re,
2565
2572
  component: {
2566
2573
  name: "Text",
2567
2574
  options: {
@@ -2570,7 +2577,7 @@ const kn = {
2570
2577
  }
2571
2578
  }],
2572
2579
  content: [{
2573
- ...re,
2580
+ ...le,
2574
2581
  component: {
2575
2582
  name: "Text",
2576
2583
  options: {
@@ -2580,7 +2587,7 @@ const kn = {
2580
2587
  }]
2581
2588
  }, {
2582
2589
  label: [{
2583
- ...oe,
2590
+ ...re,
2584
2591
  component: {
2585
2592
  name: "Text",
2586
2593
  options: {
@@ -2589,7 +2596,7 @@ const kn = {
2589
2596
  }
2590
2597
  }],
2591
2598
  content: [{
2592
- ...re,
2599
+ ...le,
2593
2600
  component: {
2594
2601
  name: "Text",
2595
2602
  options: {
@@ -2677,7 +2684,7 @@ function Tn(e) {
2677
2684
  },
2678
2685
  onClick: (d) => a(l),
2679
2686
  children: /* @__PURE__ */ s(
2680
- D,
2687
+ $,
2681
2688
  {
2682
2689
  parent: e.builderBlock.id,
2683
2690
  path: `tabs.${l}.label`,
@@ -2693,7 +2700,7 @@ function Tn(e) {
2693
2700
  }
2694
2701
  ),
2695
2702
  i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
2696
- D,
2703
+ $,
2697
2704
  {
2698
2705
  parent: e.builderBlock.id,
2699
2706
  path: `tabs.${t}.content`,
@@ -2766,34 +2773,42 @@ const En = {
2766
2773
  };
2767
2774
  function Rn(e) {
2768
2775
  const t = L(null), [n, i] = I(() => []), [a, r] = I(() => []);
2769
- return P(() => {
2770
- var l;
2771
- if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
2776
+ function o() {
2777
+ var d;
2778
+ if (!t.current || !((d = t.current) != null && d.getElementsByTagName) || typeof window == "undefined")
2772
2779
  return;
2773
- const o = t.current.getElementsByTagName("script");
2774
- for (let d = 0; d < o.length; d++) {
2775
- const c = o[d];
2776
- if (c.src) {
2777
- if (n.includes(c.src))
2780
+ const l = t.current.getElementsByTagName("script");
2781
+ for (let u = 0; u < l.length; u++) {
2782
+ const h = l[u];
2783
+ if (h.src) {
2784
+ if (n.includes(h.src))
2778
2785
  continue;
2779
- n.push(c.src);
2780
- const h = document.createElement("script");
2781
- h.async = !0, h.src = c.src, document.head.appendChild(h);
2782
- } else if (!c.type || [
2786
+ n.push(h.src);
2787
+ const g = document.createElement("script");
2788
+ g.async = !0, g.src = h.src, document.head.appendChild(g);
2789
+ } else if (!h.type || [
2783
2790
  "text/javascript",
2784
2791
  "application/javascript",
2785
2792
  "application/ecmascript"
2786
- ].includes(c.type)) {
2787
- if (a.includes(c.innerText))
2793
+ ].includes(h.type)) {
2794
+ if (a.includes(h.innerText))
2788
2795
  continue;
2789
2796
  try {
2790
- a.push(c.innerText), new Function(c.innerText)();
2791
- } catch (h) {
2792
- console.warn("`CustomCode`: Error running script:", h);
2797
+ a.push(h.innerText), new Function(h.innerText)();
2798
+ } catch (g) {
2799
+ z.warn(
2800
+ "[BUILDER.IO] `CustomCode`: Error running script:",
2801
+ g
2802
+ );
2793
2803
  }
2794
2804
  }
2795
2805
  }
2796
- }, []), /* @__PURE__ */ s(
2806
+ }
2807
+ return P(() => {
2808
+ o();
2809
+ }, []), P(() => {
2810
+ N() && o();
2811
+ }, [e.code]), /* @__PURE__ */ s(
2797
2812
  "div",
2798
2813
  {
2799
2814
  ref: t,
@@ -2823,18 +2838,18 @@ function An(e) {
2823
2838
  function d() {
2824
2839
  if (!t.current || !t.current.getElementsByTagName)
2825
2840
  return;
2826
- const c = t.current.getElementsByTagName("script");
2827
- for (let h = 0; h < c.length; h++) {
2828
- const y = c[h];
2829
- if (y.src && !n.includes(y.src)) {
2830
- n.push(y.src);
2831
- const u = document.createElement("script");
2832
- u.async = !0, u.src = y.src, document.head.appendChild(u);
2833
- } else if (Bn(y) && !a.includes(y.innerText))
2841
+ const u = t.current.getElementsByTagName("script");
2842
+ for (let h = 0; h < u.length; h++) {
2843
+ const g = u[h];
2844
+ if (g.src && !n.includes(g.src)) {
2845
+ n.push(g.src);
2846
+ const c = document.createElement("script");
2847
+ c.async = !0, c.src = g.src, document.head.appendChild(c);
2848
+ } else if (Bn(g) && !a.includes(g.innerText))
2834
2849
  try {
2835
- a.push(y.innerText), new Function(y.innerText)();
2836
- } catch (u) {
2837
- console.warn("`Embed`: Error running script:", u);
2850
+ a.push(g.innerText), new Function(g.innerText)();
2851
+ } catch (c) {
2852
+ z.warn("[BUILDER.IO] `Embed`: Error running script:", c);
2838
2853
  }
2839
2854
  }
2840
2855
  }
@@ -3086,90 +3101,90 @@ const Nn = {
3086
3101
  builderComponents: !0,
3087
3102
  builderLinkComponent: !0
3088
3103
  }
3089
- }, Wn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], $n = () => {
3104
+ }, Wn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Dn = () => {
3090
3105
  const e = process.env.NODE_ENV || "production";
3091
3106
  return Wn.includes(e) ? e : "production";
3092
3107
  };
3093
- function Dn(e) {
3108
+ function $n(e) {
3094
3109
  const t = L(null), [n, i] = I(() => "unsubmitted"), [a, r] = I(() => null), [o, l] = I(() => "");
3095
- function d(y) {
3110
+ function d(g) {
3096
3111
  var v, f;
3097
- const u = {
3112
+ const c = {
3098
3113
  ...e.builderContext.rootState,
3099
- ...y
3114
+ ...g
3100
3115
  };
3101
- e.builderContext.rootSetState ? (f = (v = e.builderContext).rootSetState) == null || f.call(v, u) : e.builderContext.rootState = u;
3116
+ e.builderContext.rootSetState ? (f = (v = e.builderContext).rootSetState) == null || f.call(v, c) : e.builderContext.rootState = c;
3102
3117
  }
3103
- function c() {
3104
- return $() && e.previewState || n;
3118
+ function u() {
3119
+ return N() && e.previewState || n;
3105
3120
  }
3106
- function h(y) {
3121
+ function h(g) {
3107
3122
  var v;
3108
- const u = e.sendWithJs || e.sendSubmissionsTo === "email";
3123
+ const c = e.sendWithJs || e.sendSubmissionsTo === "email";
3109
3124
  if (e.sendSubmissionsTo === "zapier")
3110
- y.preventDefault();
3111
- else if (u) {
3125
+ g.preventDefault();
3126
+ else if (c) {
3112
3127
  if (!(e.action || e.sendSubmissionsTo === "email")) {
3113
- y.preventDefault();
3128
+ g.preventDefault();
3114
3129
  return;
3115
3130
  }
3116
- y.preventDefault();
3117
- const f = y.currentTarget || y.target, g = e.customHeaders || {};
3131
+ g.preventDefault();
3132
+ const f = g.currentTarget || g.target, b = e.customHeaders || {};
3118
3133
  let S;
3119
- const b = new FormData(f), k = Array.from(f.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
3120
- let p;
3134
+ const p = new FormData(f), k = Array.from(f.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
3135
+ let y;
3121
3136
  const T = m.name;
3122
3137
  if (m instanceof HTMLInputElement)
3123
3138
  if (m.type === "radio") {
3124
3139
  if (m.checked)
3125
- return p = m.name, {
3140
+ return y = m.name, {
3126
3141
  key: T,
3127
- value: p
3142
+ value: y
3128
3143
  };
3129
3144
  } else if (m.type === "checkbox")
3130
- p = m.checked;
3145
+ y = m.checked;
3131
3146
  else if (m.type === "number" || m.type === "range") {
3132
3147
  const E = m.valueAsNumber;
3133
- isNaN(E) || (p = E);
3148
+ isNaN(E) || (y = E);
3134
3149
  } else
3135
- m.type === "file" ? p = m.files : p = m.value;
3150
+ m.type === "file" ? y = m.files : y = m.value;
3136
3151
  else
3137
- p = m.value;
3152
+ y = m.value;
3138
3153
  return {
3139
3154
  key: T,
3140
- value: p
3155
+ value: y
3141
3156
  };
3142
3157
  });
3143
3158
  let C = e.contentType;
3144
3159
  if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(k).forEach(({ value: m }) => {
3145
3160
  (m instanceof File || Array.isArray(m) && m[0] instanceof File || m instanceof FileList) && (C = "multipart/form-data");
3146
3161
  }), C !== "application/json")
3147
- S = b;
3162
+ S = p;
3148
3163
  else {
3149
3164
  const m = {};
3150
- Array.from(k).forEach(({ value: p, key: T }) => {
3151
- Ne(m, T, p);
3165
+ Array.from(k).forEach(({ value: y, key: T }) => {
3166
+ Ne(m, T, y);
3152
3167
  }), S = JSON.stringify(m);
3153
3168
  }
3154
- C && C !== "multipart/form-data" && (u && ((v = e.action) != null && v.includes("zapier.com")) || (g["content-type"] = C));
3169
+ C && C !== "multipart/form-data" && (c && ((v = e.action) != null && v.includes("zapier.com")) || (b["content-type"] = C));
3155
3170
  const V = new CustomEvent("presubmit", { detail: { body: S } });
3156
3171
  if (t.current && (t.current.dispatchEvent(V), V.defaultPrevented))
3157
3172
  return;
3158
3173
  i("sending");
3159
- const w = `${$n() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3174
+ const w = `${Dn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3160
3175
  e.sendSubmissionsToEmail || ""
3161
3176
  )}&name=${encodeURIComponent(e.name || "")}`, x = e.sendSubmissionsTo === "email" ? w : e.action;
3162
- Ve(x), fetch(x, { body: S, headers: g, method: e.method || "post" }).then(
3177
+ Ve(x), fetch(x, { body: S, headers: b, method: e.method || "post" }).then(
3163
3178
  async (m) => {
3164
- let p;
3179
+ let y;
3165
3180
  const T = m.headers.get("content-type");
3166
- if (T && T.indexOf("application/json") !== -1 ? p = await m.json() : p = await m.text(), !m.ok && e.errorMessagePath) {
3167
- let E = $e(p, e.errorMessagePath);
3181
+ if (T && T.indexOf("application/json") !== -1 ? y = await m.json() : y = await m.text(), !m.ok && e.errorMessagePath) {
3182
+ let E = De(y, e.errorMessagePath);
3168
3183
  E && (typeof E != "string" && (E = JSON.stringify(E)), l(E), d({ formErrorMessage: E }));
3169
3184
  }
3170
- if (r(p), i(m.ok ? "success" : "error"), m.ok) {
3185
+ if (r(y), i(m.ok ? "success" : "error"), m.ok) {
3171
3186
  const E = new CustomEvent("submit:success", {
3172
- detail: { res: m, body: p }
3187
+ detail: { res: m, body: y }
3173
3188
  });
3174
3189
  if (t.current) {
3175
3190
  if (t.current.dispatchEvent(E), E.defaultPrevented)
@@ -3187,10 +3202,10 @@ function Dn(e) {
3187
3202
  }
3188
3203
  },
3189
3204
  (m) => {
3190
- const p = new CustomEvent("submit:error", {
3205
+ const y = new CustomEvent("submit:error", {
3191
3206
  detail: { error: m }
3192
3207
  });
3193
- t.current && (t.current.dispatchEvent(p), p.defaultPrevented) || (r(m), i("error"));
3208
+ t.current && (t.current.dispatchEvent(y), y.defaultPrevented) || (r(m), i("error"));
3194
3209
  }
3195
3210
  );
3196
3211
  }
@@ -3205,29 +3220,29 @@ function Dn(e) {
3205
3220
  action: !e.sendWithJs && e.action,
3206
3221
  method: e.method,
3207
3222
  name: e.name,
3208
- onSubmit: (y) => h(y),
3223
+ onSubmit: (g) => h(g),
3209
3224
  ...e.attributes,
3210
3225
  children: [
3211
3226
  e.children,
3212
- c() === "error" ? /* @__PURE__ */ s(
3213
- D,
3227
+ u() === "error" ? /* @__PURE__ */ s(
3228
+ $,
3214
3229
  {
3215
3230
  path: "errorMessage",
3216
3231
  blocks: e.errorMessage,
3217
3232
  context: e.builderContext
3218
3233
  }
3219
3234
  ) : null,
3220
- c() === "sending" ? /* @__PURE__ */ s(
3221
- D,
3235
+ u() === "sending" ? /* @__PURE__ */ s(
3236
+ $,
3222
3237
  {
3223
3238
  path: "sendingMessage",
3224
3239
  blocks: e.sendingMessage,
3225
3240
  context: e.builderContext
3226
3241
  }
3227
3242
  ) : null,
3228
- c() === "error" && a ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7acc3b46", children: JSON.stringify(a, null, 2) }) : null,
3229
- c() === "success" ? /* @__PURE__ */ s(
3230
- D,
3243
+ u() === "error" && a ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7acc3b46", children: JSON.stringify(a, null, 2) }) : null,
3244
+ u() === "success" ? /* @__PURE__ */ s(
3245
+ $,
3231
3246
  {
3232
3247
  path: "successMessage",
3233
3248
  blocks: e.successMessage,
@@ -3299,7 +3314,7 @@ function Ln(e) {
3299
3314
  "input",
3300
3315
  {
3301
3316
  ...e.attributes,
3302
- key: $() && e.defaultValue ? e.defaultValue : "default-key",
3317
+ key: N() && e.defaultValue ? e.defaultValue : "default-key",
3303
3318
  placeholder: e.placeholder,
3304
3319
  type: e.type,
3305
3320
  name: e.name,
@@ -3359,7 +3374,7 @@ function Un(e) {
3359
3374
  {
3360
3375
  ...e.attributes,
3361
3376
  value: e.value,
3362
- key: $() && e.defaultValue ? e.defaultValue : "default-key",
3377
+ key: N() && e.defaultValue ? e.defaultValue : "default-key",
3363
3378
  defaultValue: e.defaultValue,
3364
3379
  name: e.name,
3365
3380
  required: e.required
@@ -3470,10 +3485,11 @@ function zn(e) {
3470
3485
  objectPosition: e.backgroundPosition || "center"
3471
3486
  },
3472
3487
  alt: e.altText,
3488
+ title: e.title,
3473
3489
  src: e.imgSrc || e.image,
3474
3490
  ...e.attributes
3475
3491
  },
3476
- $() && e.imgSrc || "default-key"
3492
+ N() && e.imgSrc || "default-key"
3477
3493
  );
3478
3494
  }
3479
3495
  const Kn = {
@@ -3562,7 +3578,7 @@ const Kn = {
3562
3578
  }
3563
3579
  };
3564
3580
  function Jn(e) {
3565
- var o, l, d, c, h, y, u;
3581
+ var o, l, d, u, h, g, c;
3566
3582
  const t = L(null);
3567
3583
  function n() {
3568
3584
  return {
@@ -3593,19 +3609,19 @@ function Jn(e) {
3593
3609
  return P(() => {
3594
3610
  if (e.lazyLoad) {
3595
3611
  const v = new IntersectionObserver(function(f) {
3596
- f.forEach(function(g) {
3597
- if (!g.isIntersecting)
3612
+ f.forEach(function(b) {
3613
+ if (!b.isIntersecting)
3598
3614
  return;
3599
- const S = g.target;
3615
+ const S = b.target;
3600
3616
  try {
3601
3617
  Array.from(S.children).filter(
3602
- (b) => b instanceof HTMLElement && b.tagName === "SOURCE"
3603
- ).forEach((b) => {
3604
- const k = b.dataset.src;
3605
- k && (b.src = k);
3618
+ (p) => p instanceof HTMLElement && p.tagName === "SOURCE"
3619
+ ).forEach((p) => {
3620
+ const k = p.dataset.src;
3621
+ k && (p.src = k);
3606
3622
  }), S.load(), v.unobserve(S);
3607
- } catch (b) {
3608
- console.error("Error loading lazy video:", b);
3623
+ } catch (p) {
3624
+ console.error("Error loading lazy video:", p);
3609
3625
  }
3610
3626
  });
3611
3627
  });
@@ -3665,7 +3681,7 @@ function Jn(e) {
3665
3681
  }
3666
3682
  }
3667
3683
  ) : null,
3668
- (h = (c = e.builderBlock) == null ? void 0 : c.children) != null && h.length && e.fitContent ? /* @__PURE__ */ s(
3684
+ (h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? /* @__PURE__ */ s(
3669
3685
  "div",
3670
3686
  {
3671
3687
  style: {
@@ -3676,7 +3692,7 @@ function Jn(e) {
3676
3692
  children: e.children
3677
3693
  }
3678
3694
  ) : null,
3679
- (u = (y = e.builderBlock) == null ? void 0 : y.children) != null && u.length && !e.fitContent ? /* @__PURE__ */ s(
3695
+ (c = (g = e.builderBlock) == null ? void 0 : g.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
3680
3696
  "div",
3681
3697
  {
3682
3698
  style: {
@@ -3704,7 +3720,7 @@ const Gn = () => [{
3704
3720
  component: An,
3705
3721
  ...Vn
3706
3722
  }, {
3707
- component: Dn,
3723
+ component: $n,
3708
3724
  ...Nn
3709
3725
  }, {
3710
3726
  component: Ln,
@@ -3743,7 +3759,7 @@ const Gn = () => [{
3743
3759
  component: Sn,
3744
3760
  ...xn
3745
3761
  }, {
3746
- component: vi,
3762
+ component: xi,
3747
3763
  ...kn
3748
3764
  }, {
3749
3765
  component: In,
@@ -3757,7 +3773,7 @@ const Gn = () => [{
3757
3773
  }, {
3758
3774
  component: on,
3759
3775
  ...an
3760
- }, ...Gn()], Qn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3776
+ }, ...Gn()], Qn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
3761
3777
  function getAndSetVariantId() {
3762
3778
  function setCookie(name, value, days) {
3763
3779
  let expires = '';
@@ -3799,7 +3815,10 @@ const Gn = () => [{
3799
3815
  return contentId;
3800
3816
  }
3801
3817
  const winningVariantId = getAndSetVariantId();
3802
- const styleEl = document.currentScript?.previousElementSibling;
3818
+ let styleEl = document.currentScript?.previousElementSibling;
3819
+ if (isAngularSDK) {
3820
+ styleEl = document.currentScript?.parentElement?.previousElementSibling?.querySelector('style');
3821
+ }
3803
3822
  if (isHydrationTarget) {
3804
3823
  styleEl.remove();
3805
3824
  const thisScriptEl = document.currentScript;
@@ -3847,20 +3866,20 @@ const Gn = () => [{
3847
3866
  thisScriptEl?.remove();
3848
3867
  }
3849
3868
  return;
3850
- }`, ze = "builderIoAbTest", Ke = "builderIoRenderContent", J = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3869
+ }`, ze = "builderIoAbTest", Ke = "builderIoRenderContent", G = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3851
3870
  ...t,
3852
3871
  testVariationId: t.id,
3853
3872
  id: e == null ? void 0 : e.id
3854
3873
  })), Xn = ({
3855
3874
  canTrack: e,
3856
3875
  content: t
3857
- }) => !(!(J(t).length > 0) || !e || U()), Zn = (e) => e === "react" || e === "reactNative", Je = Zn(O), ei = () => `
3876
+ }) => !(!(G(t).length > 0) || !e || U()), Zn = (e) => e === "react" || e === "reactNative", ei = O === "angular", Je = Zn(O), ti = () => `
3858
3877
  window.${ze} = ${Qn}
3859
3878
  window.${Ke} = ${Yn}
3860
- `, ti = (e, t) => `
3879
+ `, ni = (e, t) => `
3861
3880
  window.${ze}(
3862
- "${t}",${JSON.stringify(e)}, ${Je}
3863
- )`, ni = ({
3881
+ "${t}",${JSON.stringify(e)}, ${Je}, ${ei}
3882
+ )`, ii = ({
3864
3883
  contentId: e,
3865
3884
  variationId: t
3866
3885
  }) => `window.${Ke}(
@@ -3869,7 +3888,7 @@ const Gn = () => [{
3869
3888
  function we(e) {
3870
3889
  return Math.round(e * 1e3) / 1e3;
3871
3890
  }
3872
- const ii = (e, t, n = !0) => {
3891
+ const ai = (e, t, n = !0) => {
3873
3892
  if (!(e instanceof HTMLElement))
3874
3893
  return null;
3875
3894
  let i = n ? e : e.parentElement;
@@ -3880,7 +3899,7 @@ const ii = (e, t, n = !0) => {
3880
3899
  return i;
3881
3900
  } while (i = i.parentElement);
3882
3901
  return null;
3883
- }, ai = (e) => ii(e, (t) => {
3902
+ }, oi = (e) => ai(e, (t) => {
3884
3903
  const n = t.getAttribute("builder-id") || t.id;
3885
3904
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3886
3905
  }), Ie = ({
@@ -3892,8 +3911,8 @@ const ii = (e, t, n = !0) => {
3892
3911
  x: r,
3893
3912
  y: o
3894
3913
  };
3895
- }, oi = (e) => {
3896
- const t = e.target, n = t && ai(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3914
+ }, ri = (e) => {
3915
+ const t = e.target, n = t && oi(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3897
3916
  return {
3898
3917
  targetBuilderElement: i || void 0,
3899
3918
  metadata: {
@@ -3908,7 +3927,7 @@ const ii = (e, t, n = !0) => {
3908
3927
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3909
3928
  }
3910
3929
  };
3911
- }, ri = ["svelte", "qwik", "vue"], Ee = () => ri.includes(O) && ($() || Y()), li = (e) => {
3930
+ }, li = ["svelte", "qwik", "vue"], Ee = () => li.includes(O) && (N() || X()), si = (e) => {
3912
3931
  var r, o;
3913
3932
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (o = e.fileUrl) != null ? o : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
3914
3933
  let a = "";
@@ -3923,26 +3942,26 @@ font-weight: 400;
3923
3942
  for (const l in e.files) {
3924
3943
  if (!(String(Number(l)) === l))
3925
3944
  continue;
3926
- const c = e.files[l];
3927
- c && c !== i && (a += `
3945
+ const u = e.files[l];
3946
+ u && u !== i && (a += `
3928
3947
  @font-face {
3929
3948
  font-family: "${t}";
3930
- src: url('${c}') format('woff2');
3949
+ src: url('${u}') format('woff2');
3931
3950
  font-display: fallback;
3932
3951
  font-weight: ${l};
3933
3952
  }
3934
3953
  `.trim());
3935
3954
  }
3936
3955
  return a;
3937
- }, si = ({
3956
+ }, ci = ({
3938
3957
  customFonts: e
3939
3958
  }) => {
3940
3959
  var t;
3941
- return ((t = e == null ? void 0 : e.map((n) => li(n))) == null ? void 0 : t.join(" ")) || "";
3942
- }, ci = ({
3960
+ return ((t = e == null ? void 0 : e.map((n) => si(n))) == null ? void 0 : t.join(" ")) || "";
3961
+ }, ui = ({
3943
3962
  cssCode: e,
3944
3963
  contentId: t
3945
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", ui = `
3964
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", di = `
3946
3965
  .builder-button {
3947
3966
  all: unset;
3948
3967
  }
@@ -3959,24 +3978,24 @@ font-weight: ${l};
3959
3978
  text-align: inherit;
3960
3979
  font-family: inherit;
3961
3980
  }
3962
- `, di = (e) => e ? "" : ui, mi = (e) => `variant-${e}`;
3963
- function fi(e) {
3981
+ `, mi = (e) => e ? "" : di, fi = (e) => `variant-${e}`;
3982
+ function hi(e) {
3964
3983
  var k, C, V;
3965
3984
  const t = L(null);
3966
3985
  I(() => !1);
3967
3986
  function n(w) {
3968
- var m, p;
3987
+ var m, y;
3969
3988
  const x = {
3970
3989
  ...e.builderContextSignal.rootState,
3971
3990
  ...w
3972
3991
  };
3973
- e.builderContextSignal.rootSetState ? (p = (m = e.builderContextSignal).rootSetState) == null || p.call(m, x) : e.setBuilderContextSignal((T) => ({
3992
+ e.builderContextSignal.rootSetState ? (y = (m = e.builderContextSignal).rootSetState) == null || y.call(m, x) : e.setBuilderContextSignal((T) => ({
3974
3993
  ...T,
3975
3994
  rootState: x
3976
3995
  }));
3977
3996
  }
3978
3997
  function i(w) {
3979
- var m, p, T, E, A;
3998
+ var m, y, T, E, A;
3980
3999
  const x = {
3981
4000
  ...e.builderContextSignal.content,
3982
4001
  ...w,
@@ -3985,13 +4004,13 @@ function fi(e) {
3985
4004
  ...w == null ? void 0 : w.data
3986
4005
  },
3987
4006
  meta: {
3988
- ...(p = e.builderContextSignal.content) == null ? void 0 : p.meta,
4007
+ ...(y = e.builderContextSignal.content) == null ? void 0 : y.meta,
3989
4008
  ...w == null ? void 0 : w.meta,
3990
4009
  breakpoints: ((T = w == null ? void 0 : w.meta) == null ? void 0 : T.breakpoints) || ((A = (E = e.builderContextSignal.content) == null ? void 0 : E.meta) == null ? void 0 : A.breakpoints)
3991
4010
  }
3992
4011
  };
3993
- e.setBuilderContextSignal((N) => ({
3994
- ...N,
4012
+ e.setBuilderContextSignal((W) => ({
4013
+ ...W,
3995
4014
  content: x
3996
4015
  }));
3997
4016
  }
@@ -4011,8 +4030,8 @@ function fi(e) {
4011
4030
  callbacks: {
4012
4031
  configureSdk: (x) => {
4013
4032
  var T;
4014
- const { breakpoints: m, contentId: p } = x;
4015
- !p || p !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || m && i({
4033
+ const { breakpoints: m, contentId: y } = x;
4034
+ !y || y !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || m && i({
4016
4035
  meta: {
4017
4036
  breakpoints: m
4018
4037
  }
@@ -4030,36 +4049,36 @@ function fi(e) {
4030
4049
  }
4031
4050
  })(w);
4032
4051
  }
4033
- const [d, c] = I(() => ({})), [h, y] = I(() => ({})), [u, v] = I(() => !1);
4052
+ const [d, u] = I(() => ({})), [h, g] = I(() => ({})), [c, v] = I(() => !1);
4034
4053
  function f(w) {
4035
4054
  var x, m;
4036
4055
  if (e.builderContextSignal.content) {
4037
- const p = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, T = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
4056
+ const y = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, T = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
4038
4057
  pe({
4039
4058
  apiHost: e.apiHost,
4040
4059
  type: "click",
4041
4060
  canTrack: M(e.canTrack),
4042
4061
  contentId: T,
4043
4062
  apiKey: e.apiKey,
4044
- variationId: p !== T ? p : void 0,
4045
- ...oi(w),
4046
- unique: !u
4063
+ variationId: y !== T ? y : void 0,
4064
+ ...ri(w),
4065
+ unique: !c
4047
4066
  });
4048
4067
  }
4049
- u || v(!0);
4068
+ c || v(!0);
4050
4069
  }
4051
- function g() {
4052
- var x, m, p;
4053
- const w = (p = (m = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : m.httpRequests) != null ? p : {};
4070
+ function b() {
4071
+ var x, m, y;
4072
+ const w = (y = (m = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : m.httpRequests) != null ? y : {};
4054
4073
  Object.entries(w).forEach(([T, E]) => {
4055
- if (!E || h[T] || d[T] && !$())
4074
+ if (!E || h[T] || d[T] && !N())
4056
4075
  return;
4057
4076
  h[T] = !0;
4058
4077
  const A = E.replace(
4059
4078
  /{{([^}]+)}}/g,
4060
- (N, W) => String(
4079
+ (W, D) => String(
4061
4080
  _({
4062
- code: W,
4081
+ code: D,
4063
4082
  context: e.context || {},
4064
4083
  localState: void 0,
4065
4084
  rootState: e.builderContextSignal.rootState,
@@ -4067,19 +4086,19 @@ function fi(e) {
4067
4086
  })
4068
4087
  )
4069
4088
  );
4070
- Ve(A), fetch(A).then((N) => N.json()).then((N) => {
4089
+ Ve(A), fetch(A).then((W) => W.json()).then((W) => {
4071
4090
  n({
4072
- [T]: N
4091
+ [T]: W
4073
4092
  }), d[T] = !0;
4074
- }).catch((N) => {
4075
- console.error("error fetching dynamic data", E, N);
4093
+ }).catch((W) => {
4094
+ console.error("error fetching dynamic data", E, W);
4076
4095
  }).finally(() => {
4077
4096
  h[T] = !1;
4078
4097
  });
4079
4098
  });
4080
4099
  }
4081
4100
  function S() {
4082
- $() && window.dispatchEvent(
4101
+ N() && window.dispatchEvent(
4083
4102
  new CustomEvent(
4084
4103
  "builder:component:stateChange",
4085
4104
  {
@@ -4093,11 +4112,11 @@ function fi(e) {
4093
4112
  )
4094
4113
  );
4095
4114
  }
4096
- const b = L(!1);
4097
- return b.current || (g(), S(), b.current = !0), P(() => {
4098
- var w, x, m, p, T;
4115
+ const p = L(!1);
4116
+ return p.current || (b(), S(), p.current = !0), P(() => {
4117
+ var w, x, m, y, T;
4099
4118
  if (U()) {
4100
- $() && !e.isNestedRender && (window.addEventListener("message", l), Ge(), Qe({
4119
+ N() && !e.isNestedRender && (window.addEventListener("message", l), Ge(), Qe({
4101
4120
  ...e.locale ? {
4102
4121
  locale: e.locale
4103
4122
  } : {},
@@ -4111,11 +4130,11 @@ function fi(e) {
4111
4130
  apiKey: e.apiKey
4112
4131
  }), Object.values(
4113
4132
  e.builderContextSignal.componentInfos
4114
- ).forEach((W) => {
4115
- var F, K;
4116
- if (!((F = W.models) != null && F.length) || W.models.includes(e.model)) {
4117
- const ee = Ye(W);
4118
- (K = window.parent) == null || K.postMessage(ee, "*");
4133
+ ).forEach((D) => {
4134
+ var F, J;
4135
+ if (!((F = D.models) != null && F.length) || D.models.includes(e.model)) {
4136
+ const te = Ye(D);
4137
+ (J = window.parent) == null || J.postMessage(te, "*");
4119
4138
  }
4120
4139
  }), window.addEventListener(
4121
4140
  "builder:component:stateChangeListenerActivated",
@@ -4124,23 +4143,23 @@ function fi(e) {
4124
4143
  const E = e.builderContextSignal.content && M(e.canTrack), A = Xe({
4125
4144
  name: `builder.tests.${(x = e.builderContextSignal.content) == null ? void 0 : x.id}`,
4126
4145
  canTrack: !0
4127
- }), N = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId;
4128
- if (E && N === A) {
4129
- const W = (p = e.builderContextSignal.content) == null ? void 0 : p.id, F = e.apiKey;
4146
+ }), W = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId;
4147
+ if (E && W === A) {
4148
+ const D = (y = e.builderContextSignal.content) == null ? void 0 : y.id, F = e.apiKey;
4130
4149
  pe({
4131
4150
  apiHost: e.apiHost,
4132
4151
  type: "impression",
4133
4152
  canTrack: !0,
4134
- contentId: W,
4153
+ contentId: D,
4135
4154
  apiKey: F,
4136
- variationId: A !== W ? A : void 0
4155
+ variationId: A !== D ? A : void 0
4137
4156
  });
4138
4157
  }
4139
- if (Y() && !$()) {
4140
- const W = new URL(location.href).searchParams, F = W.get("builder.preview"), K = W.get(
4158
+ if (X() && !N()) {
4159
+ const D = new URL(location.href).searchParams, F = D.get("builder.preview"), J = D.get(
4141
4160
  `builder.overrides.${F}`
4142
- ), ee = W.get("apiKey") || W.get("builder.space");
4143
- (F === "BUILDER_STUDIO" || F === e.model && ee === e.apiKey && (!e.content || K === e.content.id)) && Pe({
4161
+ ), te = D.get("apiKey") || D.get("builder.space");
4162
+ (F === "BUILDER_STUDIO" || F === e.model && te === e.apiKey && (!e.content || J === e.content.id)) && Pe({
4144
4163
  model: e.model,
4145
4164
  apiKey: e.apiKey,
4146
4165
  apiVersion: e.builderContextSignal.apiVersion,
@@ -4176,7 +4195,7 @@ function fi(e) {
4176
4195
  onClick: (w) => f(w),
4177
4196
  "builder-content-id": (k = e.builderContextSignal.content) == null ? void 0 : k.id,
4178
4197
  "builder-model": e.model,
4179
- className: mi(
4198
+ className: fi(
4180
4199
  ((C = e.content) == null ? void 0 : C.testVariationId) || ((V = e.content) == null ? void 0 : V.id)
4181
4200
  ),
4182
4201
  style: {
@@ -4188,21 +4207,21 @@ function fi(e) {
4188
4207
  }
4189
4208
  ) : null });
4190
4209
  }
4191
- function hi(e) {
4210
+ function gi(e) {
4192
4211
  const [t, n] = I(
4193
4212
  () => `
4194
- ${ci({
4213
+ ${ui({
4195
4214
  cssCode: e.cssCode,
4196
4215
  contentId: e.contentId
4197
4216
  })}
4198
- ${si({
4217
+ ${ci({
4199
4218
  customFonts: e.customFonts
4200
4219
  })}
4201
- ${di(e.isNestedRender)}
4220
+ ${mi(e.isNestedRender)}
4202
4221
  `.trim()
4203
4222
  );
4204
4223
  return /* @__PURE__ */ s(
4205
- z,
4224
+ K,
4206
4225
  {
4207
4226
  id: "builderio-content",
4208
4227
  styles: t,
@@ -4210,7 +4229,7 @@ ${di(e.isNestedRender)}
4210
4229
  }
4211
4230
  );
4212
4231
  }
4213
- const gi = ({
4232
+ const bi = ({
4214
4233
  content: e,
4215
4234
  data: t,
4216
4235
  locale: n
@@ -4227,7 +4246,7 @@ const gi = ({
4227
4246
  locale: n
4228
4247
  } : {}
4229
4248
  };
4230
- }, bi = ({
4249
+ }, pi = ({
4231
4250
  content: e,
4232
4251
  data: t
4233
4252
  }) => e ? {
@@ -4239,11 +4258,11 @@ const gi = ({
4239
4258
  meta: e == null ? void 0 : e.meta
4240
4259
  } : void 0;
4241
4260
  function Re(e) {
4242
- var c, h, y, u, v, f, g, S, b;
4261
+ var u, h, g, c, v, f, b, S, p;
4243
4262
  const [t, n] = I(
4244
4263
  () => {
4245
4264
  var k, C;
4246
- return ni({
4265
+ return ii({
4247
4266
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4248
4267
  variationId: (k = e.content) == null ? void 0 : k.testVariationId,
4249
4268
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -4272,12 +4291,12 @@ function Re(e) {
4272
4291
  {}
4273
4292
  )
4274
4293
  ), [o, l] = I(() => ({
4275
- content: bi({
4294
+ content: pi({
4276
4295
  content: e.content,
4277
4296
  data: e.data
4278
4297
  }),
4279
4298
  localState: void 0,
4280
- rootState: gi({
4299
+ rootState: bi({
4281
4300
  content: e.content,
4282
4301
  data: e.data,
4283
4302
  locale: e.locale
@@ -4304,10 +4323,10 @@ function Re(e) {
4304
4323
  model: e.model
4305
4324
  })), d = L(!1);
4306
4325
  if (!d.current) {
4307
- e.apiKey || ce.error(
4326
+ e.apiKey || z.error(
4308
4327
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4309
4328
  );
4310
- const k = (h = (c = o.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
4329
+ const k = (h = (u = o.content) == null ? void 0 : u.data) == null ? void 0 : h.jsCode;
4311
4330
  k && _({
4312
4331
  code: k,
4313
4332
  context: e.context || {},
@@ -4326,7 +4345,7 @@ function Re(e) {
4326
4345
  registeredComponents: a
4327
4346
  },
4328
4347
  children: /* @__PURE__ */ B(
4329
- fi,
4348
+ hi,
4330
4349
  {
4331
4350
  apiHost: e.apiHost,
4332
4351
  nonce: e.nonce,
@@ -4347,7 +4366,7 @@ function Re(e) {
4347
4366
  setBuilderContextSignal: l,
4348
4367
  children: [
4349
4368
  e.isSsrAbTest ? /* @__PURE__ */ s(
4350
- Q,
4369
+ Y,
4351
4370
  {
4352
4371
  id: "builderio-variant-visibility",
4353
4372
  scriptStr: t,
@@ -4355,19 +4374,19 @@ function Re(e) {
4355
4374
  }
4356
4375
  ) : null,
4357
4376
  /* @__PURE__ */ s(
4358
- hi,
4377
+ gi,
4359
4378
  {
4360
4379
  nonce: e.nonce || "",
4361
4380
  isNestedRender: e.isNestedRender,
4362
- contentId: (y = o.content) == null ? void 0 : y.id,
4363
- cssCode: (v = (u = o.content) == null ? void 0 : u.data) == null ? void 0 : v.cssCode,
4364
- customFonts: (g = (f = o.content) == null ? void 0 : f.data) == null ? void 0 : g.customFonts
4381
+ contentId: (g = o.content) == null ? void 0 : g.id,
4382
+ cssCode: (v = (c = o.content) == null ? void 0 : c.data) == null ? void 0 : v.cssCode,
4383
+ customFonts: (b = (f = o.content) == null ? void 0 : f.data) == null ? void 0 : b.customFonts
4365
4384
  }
4366
4385
  ),
4367
4386
  /* @__PURE__ */ s(
4368
- D,
4387
+ $,
4369
4388
  {
4370
- blocks: (b = (S = o.content) == null ? void 0 : S.data) == null ? void 0 : b.blocks,
4389
+ blocks: (p = (S = o.content) == null ? void 0 : S.data) == null ? void 0 : p.blocks,
4371
4390
  context: o,
4372
4391
  registeredComponents: a,
4373
4392
  linkComponent: e.linkComponent
@@ -4379,7 +4398,7 @@ function Re(e) {
4379
4398
  }
4380
4399
  );
4381
4400
  }
4382
- function pi(e) {
4401
+ function yi(e) {
4383
4402
  var o;
4384
4403
  const [t, n] = I(
4385
4404
  () => Xn({
@@ -4389,8 +4408,8 @@ function pi(e) {
4389
4408
  );
4390
4409
  function i() {
4391
4410
  var l;
4392
- return ti(
4393
- J(e.content).map((d) => ({
4411
+ return ni(
4412
+ G(e.content).map((d) => ({
4394
4413
  id: d.testVariationId,
4395
4414
  testRatio: d.testRatio
4396
4415
  })),
@@ -4398,7 +4417,7 @@ function pi(e) {
4398
4417
  );
4399
4418
  }
4400
4419
  function a() {
4401
- return J(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
4420
+ return G(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
4402
4421
  }
4403
4422
  function r() {
4404
4423
  var l;
@@ -4413,16 +4432,16 @@ function pi(e) {
4413
4432
  return P(() => {
4414
4433
  }, []), /* @__PURE__ */ B(R, { children: [
4415
4434
  !e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */ s(
4416
- Q,
4435
+ Y,
4417
4436
  {
4418
4437
  id: "builderio-init-variants-fns",
4419
- scriptStr: ei(),
4438
+ scriptStr: ti(),
4420
4439
  nonce: e.nonce || ""
4421
4440
  }
4422
4441
  ) : null,
4423
4442
  t ? /* @__PURE__ */ B(R, { children: [
4424
4443
  /* @__PURE__ */ s(
4425
- z,
4444
+ K,
4426
4445
  {
4427
4446
  id: "builderio-variants",
4428
4447
  styles: a(),
@@ -4430,14 +4449,14 @@ function pi(e) {
4430
4449
  }
4431
4450
  ),
4432
4451
  /* @__PURE__ */ s(
4433
- Q,
4452
+ Y,
4434
4453
  {
4435
4454
  id: "builderio-variants-visibility",
4436
4455
  scriptStr: i(),
4437
4456
  nonce: e.nonce || ""
4438
4457
  }
4439
4458
  ),
4440
- (o = J(e.content)) == null ? void 0 : o.map((l) => /* @__PURE__ */ s(
4459
+ (o = G(e.content)) == null ? void 0 : o.map((l) => /* @__PURE__ */ s(
4441
4460
  Re,
4442
4461
  {
4443
4462
  apiHost: e.apiHost,
@@ -4493,7 +4512,7 @@ function pi(e) {
4493
4512
  )
4494
4513
  ] });
4495
4514
  }
4496
- const yi = async ({
4515
+ const vi = async ({
4497
4516
  builderContextValue: e,
4498
4517
  symbol: t
4499
4518
  }) => {
@@ -4509,11 +4528,11 @@ const yi = async ({
4509
4528
  }
4510
4529
  }
4511
4530
  }).catch((n) => {
4512
- ce.error("Could not fetch symbol content: ", n);
4531
+ z.error("Could not fetch symbol content: ", n);
4513
4532
  });
4514
4533
  };
4515
- function vi(e) {
4516
- var l, d, c, h, y;
4534
+ function xi(e) {
4535
+ var l, d, u, h, g;
4517
4536
  function t() {
4518
4537
  return "div";
4519
4538
  }
@@ -4521,31 +4540,31 @@ function vi(e) {
4521
4540
  return "div";
4522
4541
  }
4523
4542
  function i() {
4524
- var u, v;
4543
+ var c, v;
4525
4544
  return [
4526
4545
  e.attributes[j()],
4527
4546
  "builder-symbol",
4528
- (u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
4547
+ (c = e.symbol) != null && c.inline ? "builder-inline-symbol" : void 0,
4529
4548
  (v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4530
4549
  ].filter(Boolean).join(" ");
4531
4550
  }
4532
4551
  const [a, r] = I(() => {
4533
- var u;
4534
- return (u = e.symbol) == null ? void 0 : u.content;
4552
+ var c;
4553
+ return (c = e.symbol) == null ? void 0 : c.content;
4535
4554
  });
4536
4555
  function o() {
4537
- a || yi({
4556
+ a || vi({
4538
4557
  symbol: e.symbol,
4539
4558
  builderContextValue: e.builderContext
4540
- }).then((u) => {
4541
- u && r(u);
4559
+ }).then((c) => {
4560
+ c && r(c);
4542
4561
  });
4543
4562
  }
4544
4563
  return P(() => {
4545
4564
  }, []), P(() => {
4546
4565
  o();
4547
4566
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
4548
- pi,
4567
+ yi,
4549
4568
  {
4550
4569
  nonce: e.builderContext.nonce,
4551
4570
  isNestedRender: !0,
@@ -4559,10 +4578,10 @@ function vi(e) {
4559
4578
  data: {
4560
4579
  ...(d = e.symbol) == null ? void 0 : d.data,
4561
4580
  ...e.builderContext.localState,
4562
- ...(c = a == null ? void 0 : a.data) == null ? void 0 : c.state
4581
+ ...(u = a == null ? void 0 : a.data) == null ? void 0 : u.state
4563
4582
  },
4564
4583
  canTrack: e.builderContext.canTrack,
4565
- model: (y = (h = e.symbol) == null ? void 0 : h.model) != null ? y : "",
4584
+ model: (g = (h = e.symbol) == null ? void 0 : h.model) != null ? g : "",
4566
4585
  content: a,
4567
4586
  linkComponent: e.builderLinkComponent,
4568
4587
  blocksWrapper: t(),
@@ -4571,16 +4590,16 @@ function vi(e) {
4571
4590
  ) });
4572
4591
  }
4573
4592
  export {
4574
- D as Blocks,
4593
+ $ as Blocks,
4575
4594
  me as BuilderContext,
4576
4595
  ut as Button,
4577
4596
  Yt as Columns,
4578
- pi as Content,
4597
+ yi as Content,
4579
4598
  Xt as Fragment,
4580
4599
  tn as Image,
4581
4600
  nn as Section,
4582
- vi as Symbol,
4601
+ xi as Symbol,
4583
4602
  In as Text,
4584
4603
  Jn as Video,
4585
- Ei as setClientUserAttributes
4604
+ Ri as setClientUserAttributes
4586
4605
  };