@builder.io/sdk-react 2.0.28 → 2.0.29

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 (65) hide show
  1. package/lib/browser/blocks-exports.cjs +9 -9
  2. package/lib/browser/blocks-exports.mjs +302 -294
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/{server-entry-7260e494.cjs → server-entry-3e3279b7.cjs} +1 -1
  6. package/lib/browser/{server-entry-ffd47885.js → server-entry-712b1faa.js} +1 -1
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/{accordion-616460c1.js → accordion-1fae9bd5.js} +5 -3
  10. package/lib/edge/{accordion-7ef6a928.cjs → accordion-200ac141.cjs} +1 -1
  11. package/lib/edge/{blocks-dd91ae28.js → blocks-b47cd3fc.js} +63 -57
  12. package/lib/edge/blocks-exports.cjs +1 -1
  13. package/lib/edge/blocks-exports.mjs +2 -2
  14. package/lib/edge/{blocks-896a56b0.cjs → blocks-fd9e445c.cjs} +3 -3
  15. package/lib/edge/{button-f917a1c0.js → button-5cc9a94f.js} +2 -2
  16. package/lib/edge/{button-1fa8b647.cjs → button-ffe70d17.cjs} +1 -1
  17. package/lib/edge/{columns-5756d7b8.cjs → columns-7651ba21.cjs} +3 -3
  18. package/lib/edge/{columns-dacb342b.js → columns-9ad996bb.js} +20 -20
  19. package/lib/edge/{content-variants-cd80b703.js → content-variants-0ece6057.js} +11 -11
  20. package/lib/edge/{content-variants-afc4a718.cjs → content-variants-a9017964.cjs} +1 -1
  21. package/lib/edge/{evaluate-17c2cadd.js → evaluate-5cfe10b0.js} +1 -1
  22. package/lib/edge/{evaluate-2fcda9ec.cjs → evaluate-73e0df40.cjs} +1 -1
  23. package/lib/edge/{form-dc7f56c9.js → form-186bf59f.js} +4 -4
  24. package/lib/edge/{form-efce5c78.cjs → form-c98c7fc1.cjs} +1 -1
  25. package/lib/edge/{get-class-prop-name-2ce20e98.cjs → get-class-prop-name-11734dbc.cjs} +1 -1
  26. package/lib/edge/{get-class-prop-name-5437ca23.js → get-class-prop-name-7d6a77a4.js} +1 -1
  27. package/lib/edge/{img-d187da14.js → img-6c1f4ea4.js} +1 -1
  28. package/lib/edge/{img-35a1343f.cjs → img-ef160d2b.cjs} +1 -1
  29. package/lib/edge/index.cjs +1 -1
  30. package/lib/edge/index.mjs +1 -1
  31. package/lib/edge/{input-9a6498fd.cjs → input-97dc199a.cjs} +1 -1
  32. package/lib/edge/{input-38f565ce.js → input-b4ee4339.js} +1 -1
  33. package/lib/edge/{select-135b7397.cjs → select-2cdf2c8f.cjs} +1 -1
  34. package/lib/edge/{select-6cb0b4b7.js → select-e79d6e1b.js} +1 -1
  35. package/lib/edge/{server-entry-3e6518b6.cjs → server-entry-0224e0bb.cjs} +1 -1
  36. package/lib/edge/{server-entry-216eb1bf.js → server-entry-05dd3f4b.js} +1 -1
  37. package/lib/edge/server-entry.cjs +1 -1
  38. package/lib/edge/server-entry.mjs +1 -1
  39. package/lib/edge/{slot-b0728030.cjs → slot-66ba436b.cjs} +1 -1
  40. package/lib/edge/{slot-d692126c.js → slot-680234a8.js} +4 -4
  41. package/lib/edge/{symbol-0ac2655e.cjs → symbol-4d0b1228.cjs} +1 -1
  42. package/lib/edge/{symbol-df30241a.js → symbol-e920f028.js} +2 -2
  43. package/lib/edge/{tabs-b925777d.js → tabs-1bea88d1.js} +15 -15
  44. package/lib/edge/tabs-1f3f45cf.cjs +1 -0
  45. package/lib/edge/{text-0f85a76c.cjs → text-9533b278.cjs} +1 -1
  46. package/lib/edge/{text-337389ba.js → text-fd78274f.js} +2 -2
  47. package/lib/node/blocks-exports.cjs +9 -9
  48. package/lib/node/blocks-exports.mjs +295 -287
  49. package/lib/node/index.cjs +1 -1
  50. package/lib/node/index.mjs +3 -3
  51. package/lib/node/init.cjs +1 -1
  52. package/lib/node/init.mjs +3 -3
  53. package/lib/node/{server-entry-ca0dcb45.js → server-entry-00c52924.js} +1 -1
  54. package/lib/node/{server-entry-3e017173.cjs → server-entry-0b1fe826.cjs} +1 -1
  55. package/lib/node/server-entry.cjs +1 -1
  56. package/lib/node/server-entry.mjs +1 -1
  57. package/lib/node/{setIvm-2100f4f5.js → setIvm-156def75.js} +1 -1
  58. package/lib/node/{setIvm-2d47478e.cjs → setIvm-ca4d1590.cjs} +1 -1
  59. package/lib/node/setIvm.cjs +1 -1
  60. package/lib/node/setIvm.mjs +2 -2
  61. package/lib/node/{should-force-browser-runtime-in-node-fd3ca2a8.cjs → should-force-browser-runtime-in-node-bc24fcdd.cjs} +1 -1
  62. package/lib/node/{should-force-browser-runtime-in-node-a77d7cfc.js → should-force-browser-runtime-in-node-eb3eac6a.js} +1 -1
  63. package/package.json +1 -1
  64. package/types/constants/sdk-version.d.ts +1 -1
  65. package/lib/edge/tabs-47ed7dde.cjs +0 -1
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import { jsx as l, Fragment as T, jsxs as V } from "react/jsx-runtime";
3
- import { TARGET as D, isEditing as W, isBrowser as L, getUserAttributes as Ue, checkIsDefined as q, logger as z, isPreviewing as ve, registerInsertMenu as He, setupBrowserForEditing as je, createRegisterComponentMessage as Me, getDefaultCanTrack as K, _track as le, fetchOneEntry as Se, createEditorListener as _e, serializeIncludingFunctions as se, handleABTestingSync as qe } from "./server-entry-ffd47885.js";
2
+ import { jsx as s, Fragment as T, jsxs as V } from "react/jsx-runtime";
3
+ import { TARGET as D, isEditing as W, isBrowser as L, getUserAttributes as Ue, checkIsDefined as q, logger as z, isPreviewing as ve, registerInsertMenu as He, setupBrowserForEditing as je, createRegisterComponentMessage as Me, getDefaultCanTrack as K, _track as le, fetchOneEntry as Se, createEditorListener as _e, serializeIncludingFunctions as se, handleABTestingSync as qe } from "./server-entry-712b1faa.js";
4
4
  import { createContext as ke, useEffect as B, useState as w, useRef as $, useContext as ce, createElement as Ce } from "react";
5
5
  const Ke = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ze = (e) => typeof e == "string" && Ke.has(e.toLowerCase());
6
6
  function ie(e) {
7
- return /* @__PURE__ */ l(T, { children: ze(e.TagName) ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(T, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
7
+ return /* @__PURE__ */ s(T, { children: ze(e.TagName) ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(T, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
8
8
  }
9
9
  const H = () => {
10
10
  switch (D) {
@@ -34,7 +34,7 @@ function Je(e) {
34
34
  }
35
35
  };
36
36
  }
37
- return /* @__PURE__ */ l(
37
+ return /* @__PURE__ */ s(
38
38
  ie,
39
39
  {
40
40
  attributes: t(),
@@ -73,7 +73,7 @@ function Ye(e, ...t) {
73
73
  return n;
74
74
  }
75
75
  const Ie = (e, t, n) => {
76
- const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
76
+ const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, r) => o != null ? o[r] : o, e);
77
77
  return i === void 0 || i === e ? n : i;
78
78
  }, Qe = ({
79
79
  builder: e,
@@ -104,19 +104,19 @@ function we({
104
104
  get: (i, o) => {
105
105
  if (t && o in t)
106
106
  return t[o];
107
- const a = i[o];
108
- return typeof a == "object" && a !== null ? we({
109
- rootState: a,
107
+ const r = i[o];
108
+ return typeof r == "object" && r !== null ? we({
109
+ rootState: r,
110
110
  localState: void 0,
111
- rootSetState: n ? (r) => {
112
- i[o] = r, n(i);
111
+ rootSetState: n ? (a) => {
112
+ i[o] = a, n(i);
113
113
  } : void 0
114
- }) : a;
114
+ }) : r;
115
115
  },
116
- set: (i, o, a) => {
116
+ set: (i, o, r) => {
117
117
  if (t && o in t)
118
118
  throw new Error("Writing to local state is not allowed as it is read-only.");
119
- return i[o] = a, n == null || n(i), !0;
119
+ return i[o] = r, n == null || n(i), !0;
120
120
  }
121
121
  });
122
122
  }
@@ -126,20 +126,20 @@ const de = ({
126
126
  context: n,
127
127
  event: i,
128
128
  localState: o,
129
- rootSetState: a,
130
- rootState: r
129
+ rootSetState: r,
130
+ rootState: a
131
131
  }) => {
132
- const s = Qe({
132
+ const l = Qe({
133
133
  builder: t,
134
134
  context: n,
135
135
  event: i,
136
136
  state: we({
137
- rootState: r,
137
+ rootState: a,
138
138
  localState: o,
139
- rootSetState: a
139
+ rootSetState: r
140
140
  })
141
141
  });
142
- return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
142
+ return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
143
143
  };
144
144
  function et() {
145
145
  var e;
@@ -156,8 +156,8 @@ const tt = ({
156
156
  }, nt = (e) => (L() || tt({
157
157
  shouldLogWarning: !0
158
158
  }), de(e)), it = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, ot = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, at = (e) => {
159
- var t, n, i, o, a, r;
160
- return ((i = (n = (t = it.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((r = (a = (o = ot.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : a.getPath) == null ? void 0 : r.slice(1));
159
+ var t, n, i, o, r, a;
160
+ return ((i = (n = (t = it.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((a = (r = (o = ot.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : r.getPath) == null ? void 0 : a.slice(1));
161
161
  };
162
162
  function O({
163
163
  code: e,
@@ -165,24 +165,24 @@ function O({
165
165
  localState: n,
166
166
  rootState: i,
167
167
  rootSetState: o,
168
- event: a,
169
- isExpression: r = !0
168
+ event: r,
169
+ isExpression: a = !0
170
170
  }) {
171
171
  if (e.trim() === "")
172
172
  return;
173
- const s = at(e.trim());
174
- if (s)
173
+ const l = at(e.trim());
174
+ if (l)
175
175
  return Ie({
176
176
  ...i,
177
177
  ...n
178
- }, s);
178
+ }, l);
179
179
  const d = {
180
180
  code: Ze(e, {
181
- isExpression: r
181
+ isExpression: a
182
182
  }),
183
183
  builder: Xe(),
184
184
  context: t,
185
- event: a,
185
+ event: r,
186
186
  rootSetState: o,
187
187
  rootState: i,
188
188
  localState: n
@@ -200,7 +200,7 @@ const ae = (e) => JSON.parse(JSON.stringify(e)), Ee = (e, t, n) => {
200
200
  if (Object(e) !== e)
201
201
  return e;
202
202
  const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
203
- return i.slice(0, -1).reduce((o, a, r) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
203
+ return i.slice(0, -1).reduce((o, r, a) => Object(o[r]) === o[r] ? o[r] : o[r] = Math.abs(Number(i[a + 1])) >> 0 === +i[a + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
204
204
  };
205
205
  function te(e) {
206
206
  if (e === null || typeof e != "object")
@@ -249,18 +249,18 @@ const rt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), lt = (e) =
249
249
  }) => {
250
250
  if (!e.bindings)
251
251
  return e;
252
- const a = lt(e);
253
- for (const r in e.bindings) {
254
- const s = e.bindings[r], d = O({
255
- code: s,
252
+ const r = lt(e);
253
+ for (const a in e.bindings) {
254
+ const l = e.bindings[a], d = O({
255
+ code: l,
256
256
  localState: n,
257
257
  rootState: i,
258
258
  rootSetState: o,
259
259
  context: t
260
260
  });
261
- Ee(a, r, d);
261
+ Ee(r, a, d);
262
262
  }
263
- return a;
263
+ return r;
264
264
  };
265
265
  function ct({
266
266
  block: e,
@@ -268,28 +268,28 @@ function ct({
268
268
  shouldEvaluateBindings: n,
269
269
  localState: i,
270
270
  rootState: o,
271
- rootSetState: a
271
+ rootSetState: r
272
272
  }) {
273
- const r = e;
273
+ const a = e;
274
274
  return n ? st({
275
- block: r,
275
+ block: a,
276
276
  localState: i,
277
277
  rootState: o,
278
- rootSetState: a,
278
+ rootSetState: r,
279
279
  context: t
280
- }) : r;
280
+ }) : a;
281
281
  }
282
282
  const J = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
283
283
  function dt(e, t, n = {}) {
284
- let i, o, a, r = null, s = 0;
284
+ let i, o, r, a = null, l = 0;
285
285
  const d = function() {
286
- s = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
286
+ l = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
287
287
  };
288
288
  return function() {
289
289
  const c = Date.now();
290
- !s && n.leading === !1 && (s = c);
291
- const h = t - (c - s);
292
- return i = this, o = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), s = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, h)), a;
290
+ !l && n.leading === !1 && (l = c);
291
+ const h = t - (c - l);
292
+ return i = this, o = arguments, h <= 0 || h > t ? (a && (clearTimeout(a), a = null), l = c, r = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(d, h)), r;
293
293
  };
294
294
  }
295
295
  function U(e, ...t) {
@@ -297,8 +297,8 @@ function U(e, ...t) {
297
297
  for (let i = 1; i < arguments.length; i++) {
298
298
  const o = arguments[i];
299
299
  if (o != null)
300
- for (const a in o)
301
- Object.prototype.hasOwnProperty.call(o, a) && (n[a] = o[a]);
300
+ for (const r in o)
301
+ Object.prototype.hasOwnProperty.call(o, r) && (n[r] = o[r]);
302
302
  }
303
303
  return n;
304
304
  }
@@ -317,10 +317,10 @@ function Re(e) {
317
317
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
318
318
  }
319
319
  function Pe(e, t) {
320
- const n = mt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
321
- for (const s of r)
320
+ const n = mt(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
321
+ for (const l of a)
322
322
  for (const d of n)
323
- d in s || (s[d] = i[d]);
323
+ d in l || (l[d] = i[d]);
324
324
  }
325
325
  function mt(e) {
326
326
  const t = [];
@@ -352,17 +352,17 @@ function ft(e) {
352
352
  Array.from(t).forEach((n) => {
353
353
  Pe(e, n);
354
354
  let i = !1, o = !1;
355
- function a() {
356
- !i && s(n) ? (i = !0, o = !0, setTimeout(() => {
357
- U(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
355
+ function r() {
356
+ !i && l(n) ? (i = !0, o = !0, setTimeout(() => {
357
+ U(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
358
358
  o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
359
359
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
360
- })) : e.repeat && i && !o && !s(n) && (i = !1, U(n.style, e.steps[0].styles));
360
+ })) : e.repeat && i && !o && !l(n) && (i = !1, U(n.style, e.steps[0].styles));
361
361
  }
362
- const r = dt(a, 200, {
362
+ const a = dt(r, 200, {
363
363
  leading: !1
364
364
  });
365
- function s(h) {
365
+ function l(h) {
366
366
  const g = h.getBoundingClientRect(), m = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * m;
367
367
  return g.bottom > f && g.top < m - f;
368
368
  }
@@ -372,10 +372,10 @@ function ft(e) {
372
372
  }
373
373
  c(), setTimeout(() => {
374
374
  n.style.transition = `all ${e.duration}s ${J(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
375
- }), document.addEventListener("scroll", r, {
375
+ }), document.addEventListener("scroll", a, {
376
376
  capture: !0,
377
377
  passive: !0
378
- }), a();
378
+ }), r();
379
379
  });
380
380
  }
381
381
  const Ve = (e) => Object.entries(e).map(([n, i]) => {
@@ -454,7 +454,7 @@ const pt = ({
454
454
  });
455
455
  if (!Array.isArray(o))
456
456
  return;
457
- const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
457
+ const r = n.collection.split(".").pop(), a = n.itemName || (r ? r + "Item" : "item");
458
458
  return o.map((d, c) => ({
459
459
  context: {
460
460
  ...t,
@@ -462,8 +462,8 @@ const pt = ({
462
462
  ...t.localState,
463
463
  $index: c,
464
464
  $item: d,
465
- [r]: d,
466
- [`$${r}Index`]: c
465
+ [a]: d,
466
+ [`$${a}Index`]: c
467
467
  }
468
468
  },
469
469
  block: i
@@ -523,16 +523,16 @@ const pt = ({
523
523
  min: o,
524
524
  default: o + 1
525
525
  };
526
- const a = n.medium.max + 1;
526
+ const r = n.medium.max + 1;
527
527
  return n.large = {
528
528
  max: 2e3,
529
529
  // TODO: decide upper limit
530
- min: a,
531
- default: a + 1
530
+ min: r,
531
+ default: r + 1
532
532
  }, n;
533
533
  };
534
534
  function G(e) {
535
- return /* @__PURE__ */ l(
535
+ return /* @__PURE__ */ s(
536
536
  "style",
537
537
  {
538
538
  dangerouslySetInnerHTML: { __html: e.styles },
@@ -548,27 +548,27 @@ function Ct(e) {
548
548
  }
549
549
  function n() {
550
550
  var S, p, b;
551
- const i = e.block, o = i.responsiveStyles, a = e.context.content, r = We(
552
- ((S = a == null ? void 0 : a.meta) == null ? void 0 : S.breakpoints) || {}
553
- ), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
551
+ const i = e.block, o = i.responsiveStyles, r = e.context.content, a = We(
552
+ ((S = r == null ? void 0 : r.meta) == null ? void 0 : S.breakpoints) || {}
553
+ ), l = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
554
554
  if (!h)
555
555
  return "";
556
- const g = s ? M({
556
+ const g = l ? M({
557
557
  className: h,
558
- styles: s
558
+ styles: l
559
559
  }) : "", m = d ? M({
560
560
  className: h,
561
561
  styles: d,
562
562
  mediaQuery: ue(
563
563
  "medium",
564
- r
564
+ a
565
565
  )
566
566
  }) : "", v = c ? M({
567
567
  className: h,
568
568
  styles: c,
569
569
  mediaQuery: ue(
570
570
  "small",
571
- r
571
+ a
572
572
  )
573
573
  }) : "", f = i.animations && i.animations.find((x) => x.trigger === "hover");
574
574
  let k = "";
@@ -592,7 +592,7 @@ function Ct(e) {
592
592
  k
593
593
  ].join(" ");
594
594
  }
595
- return /* @__PURE__ */ l(T, { children: n() && t() ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
595
+ return /* @__PURE__ */ s(T, { children: n() && t() ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
596
596
  G,
597
597
  {
598
598
  id: "builderio-block",
@@ -619,18 +619,18 @@ function Fe(e) {
619
619
  for (const o in n) {
620
620
  if (!n.hasOwnProperty(o))
621
621
  continue;
622
- const a = n[o];
623
- let r = It(o);
622
+ const r = n[o];
623
+ let a = It(o);
624
624
  if (e.stripPrefix)
625
625
  switch (D) {
626
626
  case "vue":
627
- r = r.replace("v-on:", "");
627
+ a = a.replace("v-on:", "");
628
628
  break;
629
629
  case "svelte":
630
- r = r.replace("on:", "");
630
+ a = a.replace("on:", "");
631
631
  break;
632
632
  }
633
- t[r] = wt(a, e);
633
+ t[a] = wt(r, e);
634
634
  }
635
635
  return t;
636
636
  }
@@ -664,7 +664,7 @@ function re({
664
664
  });
665
665
  }
666
666
  function Pt(e) {
667
- return /* @__PURE__ */ l(
667
+ return /* @__PURE__ */ s(
668
668
  ie,
669
669
  {
670
670
  TagName: e.Wrapper,
@@ -686,7 +686,7 @@ function Pt(e) {
686
686
  }
687
687
  function Bt(e) {
688
688
  return B(() => {
689
- }, []), /* @__PURE__ */ l(T, { children: e.children });
689
+ }, []), /* @__PURE__ */ s(T, { children: e.children });
690
690
  }
691
691
  function Vt(e) {
692
692
  function t() {
@@ -704,7 +704,7 @@ function Vt(e) {
704
704
  })
705
705
  } : {};
706
706
  }
707
- return /* @__PURE__ */ l(T, { children: e.Wrapper.load ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
707
+ return /* @__PURE__ */ s(T, { children: e.Wrapper.load ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
708
708
  Bt,
709
709
  {
710
710
  load: e.Wrapper.load,
@@ -713,7 +713,7 @@ function Vt(e) {
713
713
  attributes: t(),
714
714
  children: e.children
715
715
  }
716
- ) }) : /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
716
+ ) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
717
717
  }
718
718
  const At = ({
719
719
  componentOptions: e,
@@ -721,10 +721,10 @@ const At = ({
721
721
  context: n,
722
722
  componentRef: i,
723
723
  includeBlockProps: o,
724
- isInteractive: a,
725
- contextValue: r
724
+ isInteractive: r,
725
+ contextValue: a
726
726
  }) => {
727
- const s = {
727
+ const l = {
728
728
  ...e,
729
729
  /**
730
730
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
@@ -733,24 +733,24 @@ const At = ({
733
733
  ...o ? {
734
734
  attributes: re({
735
735
  block: t,
736
- context: r
736
+ context: a
737
737
  })
738
738
  } : {}
739
739
  };
740
- return a ? {
740
+ return r ? {
741
741
  Wrapper: i,
742
742
  block: t,
743
743
  context: n,
744
744
  wrapperProps: e,
745
745
  includeBlockProps: o
746
- } : s;
746
+ } : l;
747
747
  };
748
748
  function me(e) {
749
749
  var i;
750
750
  const [t, n] = w(
751
751
  () => e.isInteractive ? Vt : e.componentRef
752
752
  );
753
- return /* @__PURE__ */ l(T, { children: e.componentRef ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
753
+ return /* @__PURE__ */ s(T, { children: e.componentRef ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
754
754
  t,
755
755
  {
756
756
  ...At({
@@ -763,7 +763,7 @@ function me(e) {
763
763
  isInteractive: e.isInteractive,
764
764
  contextValue: e.context
765
765
  }),
766
- children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
766
+ children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
767
767
  j,
768
768
  {
769
769
  block: o,
@@ -778,7 +778,7 @@ function me(e) {
778
778
  }
779
779
  function fe(e) {
780
780
  const [t, n] = w(() => e.repeatContext);
781
- return /* @__PURE__ */ l(oe.Provider, { value: t, children: /* @__PURE__ */ l(
781
+ return /* @__PURE__ */ s(oe.Provider, { value: t, children: /* @__PURE__ */ s(
782
782
  j,
783
783
  {
784
784
  block: e.block,
@@ -814,17 +814,17 @@ function j(e) {
814
814
  });
815
815
  return n.value = f, n.update = !1, f;
816
816
  }
817
- function a() {
817
+ function r() {
818
818
  return pt({
819
819
  block: o(),
820
820
  registeredComponents: e.registeredComponents
821
821
  });
822
822
  }
823
- function r() {
823
+ function a() {
824
824
  var k;
825
825
  return e.block.tagName === "a" || ((k = o().properties) == null ? void 0 : k.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
826
826
  }
827
- function s() {
827
+ function l() {
828
828
  var S, p;
829
829
  if ((S = e.block.repeat) != null && S.collection)
830
830
  return !!((p = t == null ? void 0 : t()) != null && p.length);
@@ -833,20 +833,20 @@ function j(e) {
833
833
  }
834
834
  function d() {
835
835
  var k, S;
836
- return !((k = a == null ? void 0 : a()) != null && k.component) && !t() ? (S = o().children) != null ? S : [] : [];
836
+ return !((k = r == null ? void 0 : r()) != null && k.component) && !t() ? (S = o().children) != null ? S : [] : [];
837
837
  }
838
838
  function c() {
839
839
  var f, k, S, p;
840
840
  return {
841
841
  blockChildren: (f = o().children) != null ? f : [],
842
- componentRef: (k = a == null ? void 0 : a()) == null ? void 0 : k.component,
842
+ componentRef: (k = r == null ? void 0 : r()) == null ? void 0 : k.component,
843
843
  componentOptions: {
844
844
  ...Ge(o()),
845
- ...St(a(), o()),
846
- ...kt(a(), e.context),
847
- ...xt(a(), e.linkComponent),
845
+ ...St(r(), o()),
846
+ ...kt(r(), e.context),
847
+ ...xt(r(), e.linkComponent),
848
848
  ...vt(
849
- a(),
849
+ r(),
850
850
  e.registeredComponents
851
851
  )
852
852
  },
@@ -854,8 +854,8 @@ function j(e) {
854
854
  linkComponent: e.linkComponent,
855
855
  registeredComponents: e.registeredComponents,
856
856
  builderBlock: o(),
857
- includeBlockProps: ((S = a == null ? void 0 : a()) == null ? void 0 : S.noWrap) === !0,
858
- isInteractive: !((p = a == null ? void 0 : a()) != null && p.isRSC && D === "rsc")
857
+ includeBlockProps: ((S = r == null ? void 0 : r()) == null ? void 0 : S.noWrap) === !0,
858
+ isInteractive: !((p = r == null ? void 0 : r()) != null && p.isRSC && D === "rsc")
859
859
  };
860
860
  }
861
861
  return B(() => {
@@ -868,9 +868,9 @@ function j(e) {
868
868
  );
869
869
  }, []), B(() => {
870
870
  n.update = !0;
871
- }), /* @__PURE__ */ l(T, { children: s() ? /* @__PURE__ */ V(T, { children: [
872
- /* @__PURE__ */ l(Ct, { block: o(), context: e.context }),
873
- (h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ l(T, { children: (v = t()) == null ? void 0 : v.map((f, k) => /* @__PURE__ */ l(
871
+ }), /* @__PURE__ */ s(T, { children: l() ? /* @__PURE__ */ V(T, { children: [
872
+ /* @__PURE__ */ s(Ct, { block: o(), context: e.context }),
873
+ (h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(T, { children: (v = t()) == null ? void 0 : v.map((f, k) => /* @__PURE__ */ s(
874
874
  fe,
875
875
  {
876
876
  repeatContext: f.context,
@@ -879,7 +879,7 @@ function j(e) {
879
879
  linkComponent: e.linkComponent
880
880
  },
881
881
  k
882
- )) }) : /* @__PURE__ */ l(
882
+ )) }) : /* @__PURE__ */ s(
883
883
  me,
884
884
  {
885
885
  componentRef: c().componentRef,
@@ -892,7 +892,7 @@ function j(e) {
892
892
  includeBlockProps: c().includeBlockProps,
893
893
  isInteractive: c().isInteractive
894
894
  }
895
- ) : /* @__PURE__ */ l(T, { children: t() ? /* @__PURE__ */ l(T, { children: (m = t()) == null ? void 0 : m.map((f, k) => /* @__PURE__ */ l(
895
+ ) : /* @__PURE__ */ s(T, { children: t() ? /* @__PURE__ */ s(T, { children: (m = t()) == null ? void 0 : m.map((f, k) => /* @__PURE__ */ s(
896
896
  fe,
897
897
  {
898
898
  repeatContext: f.context,
@@ -904,11 +904,11 @@ function j(e) {
904
904
  )) }) : /* @__PURE__ */ V(
905
905
  Pt,
906
906
  {
907
- Wrapper: r(),
907
+ Wrapper: a(),
908
908
  block: o(),
909
909
  context: e.context,
910
910
  children: [
911
- /* @__PURE__ */ l(
911
+ /* @__PURE__ */ s(
912
912
  me,
913
913
  {
914
914
  componentRef: c().componentRef,
@@ -922,7 +922,7 @@ function j(e) {
922
922
  isInteractive: c().isInteractive
923
923
  }
924
924
  ),
925
- (g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */ l(
925
+ (g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */ s(
926
926
  j,
927
927
  {
928
928
  block: f,
@@ -948,26 +948,32 @@ function Nt(e) {
948
948
  ].filter(Boolean).join(" ");
949
949
  }
950
950
  function i() {
951
- var a, r;
952
- W() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
951
+ if (!e.path)
952
+ return;
953
+ const a = "component.options.";
954
+ return e.path.startsWith(a) ? e.path : `${a}${e.path || ""}`;
955
+ }
956
+ function o() {
957
+ var a, l;
958
+ W() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
953
959
  {
954
960
  type: "builder.clickEmptyBlocks",
955
961
  data: {
956
962
  parentElementId: e.parent,
957
- dataPath: e.path
963
+ dataPath: i()
958
964
  }
959
965
  },
960
966
  "*"
961
967
  ));
962
968
  }
963
- function o() {
964
- var a, r;
965
- W() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
969
+ function r() {
970
+ var a, l;
971
+ W() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
966
972
  {
967
973
  type: "builder.hoverEmptyBlocks",
968
974
  data: {
969
975
  parentElementId: e.parent,
970
- dataPath: e.path
976
+ dataPath: i()
971
977
  }
972
978
  },
973
979
  "*"
@@ -975,22 +981,22 @@ function Nt(e) {
975
981
  }
976
982
  return B(() => {
977
983
  }, []), /* @__PURE__ */ V(T, { children: [
978
- /* @__PURE__ */ l(
984
+ /* @__PURE__ */ s(
979
985
  e.BlocksWrapper,
980
986
  {
981
987
  ref: t,
982
- className: n() + " props-blocks-wrapper-43ec7ac8",
983
- "builder-path": e.path,
988
+ className: n() + " props-blocks-wrapper-215a41e0",
989
+ "builder-path": i(),
984
990
  "builder-parent-id": e.parent,
985
991
  style: e.styleProp,
986
- onClick: (a) => i(),
987
- onMouseEnter: (a) => o(),
988
- onKeyPress: (a) => i(),
992
+ onClick: (a) => o(),
993
+ onMouseEnter: (a) => r(),
994
+ onKeyPress: (a) => o(),
989
995
  ...e.BlocksWrapperProps,
990
996
  children: e.children
991
997
  }
992
998
  ),
993
- /* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-43ec7ac8 {
999
+ /* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-215a41e0 {
994
1000
  display: flex;
995
1001
  flex-direction: column;
996
1002
  align-items: stretch;
@@ -998,9 +1004,9 @@ function Nt(e) {
998
1004
  ] });
999
1005
  }
1000
1006
  function F(e) {
1001
- var i, o, a;
1007
+ var i, o, r;
1002
1008
  const t = ce(oe), n = ce(Te);
1003
- return /* @__PURE__ */ l(
1009
+ return /* @__PURE__ */ s(
1004
1010
  Nt,
1005
1011
  {
1006
1012
  blocks: e.blocks,
@@ -1010,15 +1016,15 @@ function F(e) {
1010
1016
  classNameProp: e.className,
1011
1017
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
1012
1018
  BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
1013
- children: e.blocks ? /* @__PURE__ */ l(T, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
1019
+ children: e.blocks ? /* @__PURE__ */ s(T, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ s(
1014
1020
  j,
1015
1021
  {
1016
- block: r,
1022
+ block: a,
1017
1023
  linkComponent: e.linkComponent,
1018
1024
  context: e.context || t,
1019
1025
  registeredComponents: e.registeredComponents || (n == null ? void 0 : n.registeredComponents)
1020
1026
  },
1021
- r.id
1027
+ a.id
1022
1028
  )) }) : null
1023
1029
  }
1024
1030
  );
@@ -1038,15 +1044,15 @@ function Ft(e) {
1038
1044
  function o(p) {
1039
1045
  return p.link ? e.builderLinkComponent || "a" : "div";
1040
1046
  }
1041
- function a(p) {
1047
+ function r(p) {
1042
1048
  var b;
1043
1049
  return ((b = n()[p]) == null ? void 0 : b.width) || 100 / n().length;
1044
1050
  }
1045
- function r(p) {
1046
- const b = a(p), x = t() * (n().length - 1) * (b / 100);
1051
+ function a(p) {
1052
+ const b = r(p), x = t() * (n().length - 1) * (b / 100);
1047
1053
  return `calc(${b}% - ${x}px)`;
1048
1054
  }
1049
- function s({
1055
+ function l({
1050
1056
  stackedStyle: p,
1051
1057
  desktopStyle: b
1052
1058
  }) {
@@ -1064,14 +1070,14 @@ function Ft(e) {
1064
1070
  function h() {
1065
1071
  return {
1066
1072
  "--flex-dir": c(),
1067
- "--flex-dir-tablet": s({
1073
+ "--flex-dir-tablet": l({
1068
1074
  stackedStyle: c(),
1069
1075
  desktopStyle: "row"
1070
1076
  })
1071
1077
  };
1072
1078
  }
1073
1079
  function g(p) {
1074
- const b = p === 0 ? 0 : t(), x = r(p), A = `${b}px`, C = "100%", I = 0;
1080
+ const b = p === 0 ? 0 : t(), x = a(p), A = `${b}px`, C = "100%", I = 0;
1075
1081
  return {
1076
1082
  ...{
1077
1083
  display: "flex",
@@ -1088,11 +1094,11 @@ function Ft(e) {
1088
1094
  stackedStyle: I,
1089
1095
  desktopStyle: A
1090
1096
  }),
1091
- "--column-width-tablet": s({
1097
+ "--column-width-tablet": l({
1092
1098
  stackedStyle: C,
1093
1099
  desktopStyle: x
1094
1100
  }),
1095
- "--column-margin-left-tablet": s({
1101
+ "--column-margin-left-tablet": l({
1096
1102
  stackedStyle: I,
1097
1103
  desktopStyle: A
1098
1104
  })
@@ -1145,10 +1151,10 @@ function Ft(e) {
1145
1151
  /* @__PURE__ */ V(
1146
1152
  "div",
1147
1153
  {
1148
- className: Wt((k = e.builderBlock) == null ? void 0 : k.id) + " div-424156c6",
1154
+ className: Wt((k = e.builderBlock) == null ? void 0 : k.id) + " div-49f40bae",
1149
1155
  style: h(),
1150
1156
  children: [
1151
- /* @__PURE__ */ l(
1157
+ /* @__PURE__ */ s(
1152
1158
  G,
1153
1159
  {
1154
1160
  id: "builderio-columns",
@@ -1156,16 +1162,16 @@ function Ft(e) {
1156
1162
  nonce: e.builderContext.nonce
1157
1163
  }
1158
1164
  ),
1159
- (S = e.columns) == null ? void 0 : S.map((p, b) => /* @__PURE__ */ l(
1165
+ (S = e.columns) == null ? void 0 : S.map((p, b) => /* @__PURE__ */ s(
1160
1166
  ie,
1161
1167
  {
1162
1168
  TagName: o(p),
1163
1169
  actionAttributes: {},
1164
1170
  attributes: f(p, b),
1165
- children: /* @__PURE__ */ l(
1171
+ children: /* @__PURE__ */ s(
1166
1172
  F,
1167
1173
  {
1168
- path: `component.options.columns.${b}.blocks`,
1174
+ path: `columns.${b}.blocks`,
1169
1175
  parent: e.builderBlock.id,
1170
1176
  styleProp: {
1171
1177
  flexGrow: "1"
@@ -1182,14 +1188,14 @@ function Ft(e) {
1182
1188
  ]
1183
1189
  }
1184
1190
  ),
1185
- /* @__PURE__ */ l("style", { children: `.div-424156c6 {
1191
+ /* @__PURE__ */ s("style", { children: `.div-49f40bae {
1186
1192
  display: flex;
1187
1193
  line-height: normal;
1188
1194
  }` })
1189
1195
  ] });
1190
1196
  }
1191
1197
  function $t(e) {
1192
- return /* @__PURE__ */ l("span", { children: e.children });
1198
+ return /* @__PURE__ */ s("span", { children: e.children });
1193
1199
  }
1194
1200
  function he(e) {
1195
1201
  return e.replace(/http(s)?:/, "");
@@ -1205,8 +1211,8 @@ function Lt(e, t) {
1205
1211
  return he(e);
1206
1212
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1207
1213
  if (n) {
1208
- const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
1209
- return he(`${i[0]}_${a}${o}`);
1214
+ const i = e.split(n[0]), o = n[3], r = t.match("x") ? t : `${t}x`;
1215
+ return he(`${i[0]}_${r}${o}`);
1210
1216
  }
1211
1217
  return null;
1212
1218
  }
@@ -1222,7 +1228,7 @@ function Y(e) {
1222
1228
  return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Lt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1223
1229
  }
1224
1230
  function Ot(e) {
1225
- var o, a, r, s, d, c;
1231
+ var o, r, a, l, d, c;
1226
1232
  function t() {
1227
1233
  var m;
1228
1234
  const g = e.image || e.src;
@@ -1257,8 +1263,8 @@ function Ot(e) {
1257
1263
  }, []), /* @__PURE__ */ V(T, { children: [
1258
1264
  /* @__PURE__ */ V(T, { children: [
1259
1265
  /* @__PURE__ */ V("picture", { children: [
1260
- n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
1261
- /* @__PURE__ */ l(
1266
+ n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1267
+ /* @__PURE__ */ s(
1262
1268
  "img",
1263
1269
  {
1264
1270
  loading: e.highPriority ? "eager" : "lazy",
@@ -1277,7 +1283,7 @@ function Ot(e) {
1277
1283
  }
1278
1284
  )
1279
1285
  ] }),
1280
- e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(
1286
+ e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
1281
1287
  "div",
1282
1288
  {
1283
1289
  className: "builder-image-sizer div-7a292ab8",
@@ -1286,10 +1292,10 @@ function Ot(e) {
1286
1292
  }
1287
1293
  }
1288
1294
  ) : null,
1289
- (s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(T, { children: e.children }) : null,
1290
- !e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ l("div", { className: "div-7a292ab8-2", children: e.children }) : null
1295
+ (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(T, { children: e.children }) : null,
1296
+ !e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-7a292ab8-2", children: e.children }) : null
1291
1297
  ] }),
1292
- /* @__PURE__ */ l("style", { children: `.img-7a292ab8 {
1298
+ /* @__PURE__ */ s("style", { children: `.img-7a292ab8 {
1293
1299
  opacity: 1;
1294
1300
  transition: opacity 0.2s ease-in-out;
1295
1301
  }.div-7a292ab8 {
@@ -1309,7 +1315,7 @@ function Ot(e) {
1309
1315
  ] });
1310
1316
  }
1311
1317
  function Ut(e) {
1312
- return /* @__PURE__ */ l(
1318
+ return /* @__PURE__ */ s(
1313
1319
  "section",
1314
1320
  {
1315
1321
  ...e.attributes,
@@ -1472,7 +1478,7 @@ function jt(e) {
1472
1478
  }
1473
1479
  };
1474
1480
  }
1475
- function a() {
1481
+ function r() {
1476
1482
  const v = {
1477
1483
  ...{
1478
1484
  display: "flex",
@@ -1485,10 +1491,10 @@ function jt(e) {
1485
1491
  Object.entries(v).filter(([f, k]) => k !== void 0)
1486
1492
  );
1487
1493
  }
1488
- function r(m) {
1494
+ function a(m) {
1489
1495
  return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
1490
1496
  }
1491
- function s(m) {
1497
+ function l(m) {
1492
1498
  return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
1493
1499
  }
1494
1500
  function d() {
@@ -1532,19 +1538,21 @@ function jt(e) {
1532
1538
  function h(m) {
1533
1539
  t.includes(m) ? n(i() ? [] : t.filter((v) => v !== m)) : n(i() ? [m] : t.concat(m));
1534
1540
  }
1535
- return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, v) => /* @__PURE__ */ V(T, { children: [
1536
- /* @__PURE__ */ l(
1541
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, v) => /* @__PURE__ */ V(T, { children: [
1542
+ /* @__PURE__ */ s(
1537
1543
  "div",
1538
1544
  {
1539
- className: r(v),
1545
+ className: a(v),
1540
1546
  style: {
1541
- ...a(),
1542
- width: e.grid ? e.gridRowWidth : void 0,
1543
- order: d() !== null ? ge(v) : ge(v + 1)
1547
+ ...r(),
1548
+ ...e.grid && {
1549
+ width: e.gridRowWidth,
1550
+ order: d() !== null ? ge(v) : ge(v + 1)
1551
+ }
1544
1552
  },
1545
1553
  "data-index": v,
1546
1554
  onClick: (f) => h(v),
1547
- children: /* @__PURE__ */ l(
1555
+ children: /* @__PURE__ */ s(
1548
1556
  F,
1549
1557
  {
1550
1558
  blocks: m.title,
@@ -1557,12 +1565,12 @@ function jt(e) {
1557
1565
  )
1558
1566
  }
1559
1567
  ),
1560
- t.includes(v) ? /* @__PURE__ */ l(
1568
+ t.includes(v) ? /* @__PURE__ */ s(
1561
1569
  "div",
1562
1570
  {
1563
- className: s(v),
1571
+ className: l(v),
1564
1572
  style: c(),
1565
- children: /* @__PURE__ */ l(
1573
+ children: /* @__PURE__ */ s(
1566
1574
  F,
1567
1575
  {
1568
1576
  blocks: m.detail,
@@ -1792,7 +1800,7 @@ const Mt = {
1792
1800
  });
1793
1801
  }
1794
1802
  const n = e.get("columns");
1795
- Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((s, d) => s + d.get("width"), 0) !== 100) && t();
1803
+ Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((l, d) => l + d.get("width"), 0) !== 100) && t();
1796
1804
  }
1797
1805
  }, {
1798
1806
  name: "space",
@@ -1846,7 +1854,7 @@ const Mt = {
1846
1854
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1847
1855
  onChange: (e) => {
1848
1856
  e.delete("srcset"), e.delete("noWebp");
1849
- function n(r, s = 6e4) {
1857
+ function n(a, l = 6e4) {
1850
1858
  return new Promise((d, c) => {
1851
1859
  const h = document.createElement("img");
1852
1860
  let g = !1;
@@ -1854,21 +1862,21 @@ const Mt = {
1854
1862
  g = !0, d(h);
1855
1863
  }, h.addEventListener("error", (m) => {
1856
1864
  console.warn("Image load failed", m.error), c(m.error);
1857
- }), h.src = r, setTimeout(() => {
1865
+ }), h.src = a, setTimeout(() => {
1858
1866
  g || c(new Error("Image load timed out"));
1859
- }, s);
1867
+ }, l);
1860
1868
  });
1861
1869
  }
1862
- function i(r) {
1863
- return Math.round(r * 1e3) / 1e3;
1870
+ function i(a) {
1871
+ return Math.round(a * 1e3) / 1e3;
1864
1872
  }
1865
- const o = e.get("image"), a = e.get("aspectRatio");
1866
- if (fetch(o).then((r) => r.blob()).then((r) => {
1867
- r.type.includes("svg") && e.set("noWebp", !0);
1868
- }), o && (!a || a === 0.7041))
1869
- return n(o).then((r) => {
1870
- const s = e.get("aspectRatio");
1871
- e.get("image") === o && (!s || s === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
1873
+ const o = e.get("image"), r = e.get("aspectRatio");
1874
+ if (fetch(o).then((a) => a.blob()).then((a) => {
1875
+ a.type.includes("svg") && e.set("noWebp", !0);
1876
+ }), o && (!r || r === 0.7041))
1877
+ return n(o).then((a) => {
1878
+ const l = e.get("aspectRatio");
1879
+ e.get("image") === o && (!l || l === 0.7041) && a.width && a.height && (e.set("aspectRatio", i(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
1872
1880
  });
1873
1881
  }
1874
1882
  }, {
@@ -1993,7 +2001,7 @@ const Mt = {
1993
2001
  };
1994
2002
  function Gt(e) {
1995
2003
  var t, n, i;
1996
- return /* @__PURE__ */ l(
2004
+ return /* @__PURE__ */ s(
1997
2005
  "div",
1998
2006
  {
1999
2007
  style: {
@@ -2002,7 +2010,7 @@ function Gt(e) {
2002
2010
  ...!((t = e.builderContext.context) != null && t.symbolId) && {
2003
2011
  "builder-slot": e.name
2004
2012
  },
2005
- children: /* @__PURE__ */ l(
2013
+ children: /* @__PURE__ */ s(
2006
2014
  F,
2007
2015
  {
2008
2016
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
@@ -2197,18 +2205,18 @@ const Yt = {
2197
2205
  }
2198
2206
  };
2199
2207
  function Xt(e) {
2200
- var a;
2208
+ var r;
2201
2209
  const [t, n] = w(
2202
2210
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
2203
2211
  );
2204
- function i(r) {
2205
- return e.tabs && e.tabs[r].content;
2212
+ function i(a) {
2213
+ return e.tabs && e.tabs[a].content;
2206
2214
  }
2207
- function o(r) {
2208
- r === t && e.collapsible ? n(-1) : n(r);
2215
+ function o(a) {
2216
+ a === t && e.collapsible ? n(-1) : n(a);
2209
2217
  }
2210
2218
  return /* @__PURE__ */ V("div", { children: [
2211
- /* @__PURE__ */ l(
2219
+ /* @__PURE__ */ s(
2212
2220
  "div",
2213
2221
  {
2214
2222
  className: "builder-tabs-wrap",
@@ -2218,35 +2226,35 @@ function Xt(e) {
2218
2226
  justifyContent: e.tabHeaderLayout || "flex-start",
2219
2227
  overflow: "auto"
2220
2228
  },
2221
- children: (a = e.tabs) == null ? void 0 : a.map((r, s) => /* @__PURE__ */ l(
2229
+ children: (r = e.tabs) == null ? void 0 : r.map((a, l) => /* @__PURE__ */ s(
2222
2230
  "span",
2223
2231
  {
2224
- className: `builder-tab-wrap ${t === s ? "builder-tab-active" : ""}`,
2232
+ className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
2225
2233
  style: {
2226
- ...t === s ? e.activeTabStyle : {}
2234
+ ...t === l ? e.activeTabStyle : {}
2227
2235
  },
2228
- onClick: (d) => o(s),
2229
- children: /* @__PURE__ */ l(
2236
+ onClick: (d) => o(l),
2237
+ children: /* @__PURE__ */ s(
2230
2238
  F,
2231
2239
  {
2232
2240
  parent: e.builderBlock.id,
2233
- path: `component.options.tabs.${s}.label`,
2234
- blocks: r.label,
2241
+ path: `tabs.${l}.label`,
2242
+ blocks: a.label,
2235
2243
  context: e.builderContext,
2236
2244
  registeredComponents: e.builderComponents,
2237
2245
  linkComponent: e.builderLinkComponent
2238
2246
  }
2239
2247
  )
2240
2248
  },
2241
- s
2249
+ l
2242
2250
  ))
2243
2251
  }
2244
2252
  ),
2245
- i(t) ? /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
2253
+ i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
2246
2254
  F,
2247
2255
  {
2248
2256
  parent: e.builderBlock.id,
2249
- path: `component.options.tabs.${t}.content`,
2257
+ path: `tabs.${t}.content`,
2250
2258
  blocks: i(t),
2251
2259
  context: e.builderContext,
2252
2260
  registeredComponents: e.builderComponents,
@@ -2280,25 +2288,25 @@ const Zt = {
2280
2288
  };
2281
2289
  function en(e) {
2282
2290
  function t() {
2283
- var s;
2291
+ var l;
2284
2292
  const n = e.builderContext, {
2285
2293
  context: i,
2286
2294
  localState: o,
2287
- rootState: a,
2288
- rootSetState: r
2295
+ rootState: r,
2296
+ rootSetState: a
2289
2297
  } = n;
2290
- return String(((s = e.text) == null ? void 0 : s.toString()) || "").replace(
2298
+ return String(((l = e.text) == null ? void 0 : l.toString()) || "").replace(
2291
2299
  /{{([^}]+)}}/g,
2292
2300
  (d, c) => O({
2293
2301
  code: c,
2294
2302
  context: i,
2295
2303
  localState: o,
2296
- rootState: a,
2297
- rootSetState: r
2304
+ rootState: r,
2305
+ rootSetState: a
2298
2306
  })
2299
2307
  );
2300
2308
  }
2301
- return /* @__PURE__ */ l(
2309
+ return /* @__PURE__ */ s(
2302
2310
  "div",
2303
2311
  {
2304
2312
  className: "builder-text",
@@ -2333,14 +2341,14 @@ const tn = {
2333
2341
  }]
2334
2342
  };
2335
2343
  function nn(e) {
2336
- const t = $(null), [n, i] = w(() => []), [o, a] = w(() => []);
2344
+ const t = $(null), [n, i] = w(() => []), [o, r] = w(() => []);
2337
2345
  return B(() => {
2338
- var s;
2339
- if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
2346
+ var l;
2347
+ if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
2340
2348
  return;
2341
- const r = t.current.getElementsByTagName("script");
2342
- for (let d = 0; d < r.length; d++) {
2343
- const c = r[d];
2349
+ const a = t.current.getElementsByTagName("script");
2350
+ for (let d = 0; d < a.length; d++) {
2351
+ const c = a[d];
2344
2352
  if (c.src) {
2345
2353
  if (n.includes(c.src))
2346
2354
  continue;
@@ -2361,7 +2369,7 @@ function nn(e) {
2361
2369
  }
2362
2370
  }
2363
2371
  }
2364
- }, []), /* @__PURE__ */ l(
2372
+ }, []), /* @__PURE__ */ s(
2365
2373
  "div",
2366
2374
  {
2367
2375
  ref: t,
@@ -2387,7 +2395,7 @@ const on = {
2387
2395
  }]
2388
2396
  }, an = ["text/javascript", "application/javascript", "application/ecmascript"], rn = (e) => an.includes(e.type);
2389
2397
  function ln(e) {
2390
- const t = $(null), [n, i] = w(() => []), [o, a] = w(() => []), [r, s] = w(() => !1);
2398
+ const t = $(null), [n, i] = w(() => []), [o, r] = w(() => []), [a, l] = w(() => !1);
2391
2399
  function d() {
2392
2400
  if (!t.current || !t.current.getElementsByTagName)
2393
2401
  return;
@@ -2407,8 +2415,8 @@ function ln(e) {
2407
2415
  }
2408
2416
  }
2409
2417
  return B(() => {
2410
- t.current && !r && (s(!0), d());
2411
- }, [t.current, r]), /* @__PURE__ */ l(
2418
+ t.current && !a && (l(!0), d());
2419
+ }, [t.current, a]), /* @__PURE__ */ s(
2412
2420
  "div",
2413
2421
  {
2414
2422
  className: "builder-embed",
@@ -2660,7 +2668,7 @@ const sn = {
2660
2668
  };
2661
2669
  function un(e) {
2662
2670
  var g, m;
2663
- const t = $(null), [n, i] = w(() => "unsubmitted"), [o, a] = w(() => null), [r, s] = w(() => "");
2671
+ const t = $(null), [n, i] = w(() => "unsubmitted"), [o, r] = w(() => null), [a, l] = w(() => "");
2664
2672
  function d(v) {
2665
2673
  var k, S;
2666
2674
  const f = {
@@ -2737,9 +2745,9 @@ function un(e) {
2737
2745
  const E = u.headers.get("content-type");
2738
2746
  if (E && E.indexOf("application/json") !== -1 ? y = await u.json() : y = await u.text(), !u.ok && e.errorMessagePath) {
2739
2747
  let R = Ie(y, e.errorMessagePath);
2740
- R && (typeof R != "string" && (R = JSON.stringify(R)), s(R), d({ formErrorMessage: R }));
2748
+ R && (typeof R != "string" && (R = JSON.stringify(R)), l(R), d({ formErrorMessage: R }));
2741
2749
  }
2742
- if (a(y), i(u.ok ? "success" : "error"), u.ok) {
2750
+ if (r(y), i(u.ok ? "success" : "error"), u.ok) {
2743
2751
  const R = new CustomEvent("submit:success", {
2744
2752
  detail: { res: u, body: y }
2745
2753
  });
@@ -2762,7 +2770,7 @@ function un(e) {
2762
2770
  const y = new CustomEvent("submit:error", {
2763
2771
  detail: { error: u }
2764
2772
  });
2765
- t.current && (t.current.dispatchEvent(y), y.defaultPrevented) || (a(u), i("error"));
2773
+ t.current && (t.current.dispatchEvent(y), y.defaultPrevented) || (r(u), i("error"));
2766
2774
  }
2767
2775
  );
2768
2776
  }
@@ -2780,7 +2788,7 @@ function un(e) {
2780
2788
  onSubmit: (v) => h(v),
2781
2789
  ...e.attributes,
2782
2790
  children: [
2783
- e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(T, { children: (m = (g = e.builderBlock) == null ? void 0 : g.children) == null ? void 0 : m.map((v, f) => /* @__PURE__ */ l(
2791
+ e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(T, { children: (m = (g = e.builderBlock) == null ? void 0 : g.children) == null ? void 0 : m.map((v, f) => /* @__PURE__ */ s(
2784
2792
  j,
2785
2793
  {
2786
2794
  block: v,
@@ -2790,7 +2798,7 @@ function un(e) {
2790
2798
  },
2791
2799
  `form-block-${f}`
2792
2800
  )) }) : null,
2793
- c() === "error" ? /* @__PURE__ */ l(
2801
+ c() === "error" ? /* @__PURE__ */ s(
2794
2802
  F,
2795
2803
  {
2796
2804
  path: "errorMessage",
@@ -2798,7 +2806,7 @@ function un(e) {
2798
2806
  context: e.builderContext
2799
2807
  }
2800
2808
  ) : null,
2801
- c() === "sending" ? /* @__PURE__ */ l(
2809
+ c() === "sending" ? /* @__PURE__ */ s(
2802
2810
  F,
2803
2811
  {
2804
2812
  path: "sendingMessage",
@@ -2806,8 +2814,8 @@ function un(e) {
2806
2814
  context: e.builderContext
2807
2815
  }
2808
2816
  ) : null,
2809
- c() === "error" && o ? /* @__PURE__ */ l("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
2810
- c() === "success" ? /* @__PURE__ */ l(
2817
+ c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
2818
+ c() === "success" ? /* @__PURE__ */ s(
2811
2819
  F,
2812
2820
  {
2813
2821
  path: "successMessage",
@@ -2819,7 +2827,7 @@ function un(e) {
2819
2827
  }
2820
2828
  ),
2821
2829
  " ",
2822
- /* @__PURE__ */ l("style", { children: ".pre-3a20f614 { padding: 10px; color: red; text-align: center; }" }),
2830
+ /* @__PURE__ */ s("style", { children: ".pre-3a20f614 { padding: 10px; color: red; text-align: center; }" }),
2823
2831
  " "
2824
2832
  ] });
2825
2833
  }
@@ -2945,7 +2953,7 @@ function gn(e) {
2945
2953
  name: e.name,
2946
2954
  required: e.required
2947
2955
  },
2948
- (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2956
+ (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2949
2957
  );
2950
2958
  }
2951
2959
  const bn = {
@@ -2975,7 +2983,7 @@ const bn = {
2975
2983
  // canHaveChildren: true,
2976
2984
  };
2977
2985
  function pn(e) {
2978
- return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
2986
+ return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
2979
2987
  }
2980
2988
  const yn = {
2981
2989
  name: "Form:TextArea",
@@ -3015,7 +3023,7 @@ const yn = {
3015
3023
  noWrap: !0
3016
3024
  };
3017
3025
  function xn(e) {
3018
- return /* @__PURE__ */ l(
3026
+ return /* @__PURE__ */ s(
3019
3027
  "textarea",
3020
3028
  {
3021
3029
  ...e.attributes,
@@ -3043,7 +3051,7 @@ const vn = {
3043
3051
  static: !0
3044
3052
  };
3045
3053
  function Sn(e) {
3046
- return /* @__PURE__ */ l(
3054
+ return /* @__PURE__ */ s(
3047
3055
  "img",
3048
3056
  {
3049
3057
  style: {
@@ -3143,7 +3151,7 @@ const kn = {
3143
3151
  }
3144
3152
  };
3145
3153
  function Cn(e) {
3146
- var i, o, a, r, s, d, c;
3154
+ var i, o, r, a, l, d, c;
3147
3155
  function t() {
3148
3156
  return {
3149
3157
  ...e.autoPlay === !0 ? {
@@ -3175,7 +3183,7 @@ function Cn(e) {
3175
3183
  position: "relative"
3176
3184
  },
3177
3185
  children: [
3178
- /* @__PURE__ */ l(
3186
+ /* @__PURE__ */ s(
3179
3187
  "video",
3180
3188
  {
3181
3189
  className: "builder-video",
@@ -3197,10 +3205,10 @@ function Cn(e) {
3197
3205
  },
3198
3206
  src: e.video || "no-src",
3199
3207
  poster: e.posterImage,
3200
- children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
3208
+ children: e.lazyLoad ? null : /* @__PURE__ */ s("source", { type: "video/mp4", src: e.video })
3201
3209
  }
3202
3210
  ),
3203
- e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ l(
3211
+ e.aspectRatio && !(e.fitContent && ((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length)) ? /* @__PURE__ */ s(
3204
3212
  "div",
3205
3213
  {
3206
3214
  style: {
@@ -3211,7 +3219,7 @@ function Cn(e) {
3211
3219
  }
3212
3220
  }
3213
3221
  ) : null,
3214
- (s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(
3222
+ (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
3215
3223
  "div",
3216
3224
  {
3217
3225
  style: {
@@ -3222,7 +3230,7 @@ function Cn(e) {
3222
3230
  children: e.children
3223
3231
  }
3224
3232
  ) : null,
3225
- (c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ l(
3233
+ (c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
3226
3234
  "div",
3227
3235
  {
3228
3236
  style: {
@@ -3410,7 +3418,7 @@ const Tn = () => [{
3410
3418
  "${t}", "${e}", ${Le}
3411
3419
  )`;
3412
3420
  function ne(e) {
3413
- return /* @__PURE__ */ l(
3421
+ return /* @__PURE__ */ s(
3414
3422
  "script",
3415
3423
  {
3416
3424
  dangerouslySetInnerHTML: { __html: e.scriptStr },
@@ -3440,10 +3448,10 @@ const An = (e, t, n = !0) => {
3440
3448
  event: e,
3441
3449
  target: t
3442
3450
  }) => {
3443
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = pe(i / n.width), r = pe(o / n.height);
3451
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r = pe(i / n.width), a = pe(o / n.height);
3444
3452
  return {
3445
- x: a,
3446
- y: r
3453
+ x: r,
3454
+ y: a
3447
3455
  };
3448
3456
  }, Wn = (e) => {
3449
3457
  const t = e.target, n = t && Nn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
@@ -3462,8 +3470,8 @@ const An = (e, t, n = !0) => {
3462
3470
  }
3463
3471
  };
3464
3472
  }, Fn = (e) => {
3465
- var a, r;
3466
- const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
3473
+ var r, a;
3474
+ const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
3467
3475
  let o = "";
3468
3476
  if (i && t && n && (o += `
3469
3477
  @font-face {
@@ -3473,16 +3481,16 @@ font-display: fallback;
3473
3481
  font-weight: 400;
3474
3482
  }
3475
3483
  `.trim()), e.files)
3476
- for (const s in e.files) {
3477
- if (!(String(Number(s)) === s))
3484
+ for (const l in e.files) {
3485
+ if (!(String(Number(l)) === l))
3478
3486
  continue;
3479
- const c = e.files[s];
3487
+ const c = e.files[l];
3480
3488
  c && c !== i && (o += `
3481
3489
  @font-face {
3482
3490
  font-family: "${t}";
3483
3491
  src: url('${c}') format('woff2');
3484
3492
  font-display: fallback;
3485
- font-weight: ${s};
3493
+ font-weight: ${l};
3486
3494
  }
3487
3495
  `.trim());
3488
3496
  }
@@ -3553,10 +3561,10 @@ function Hn(e) {
3553
3561
  "aria-hidden": !0
3554
3562
  };
3555
3563
  }
3556
- const [a, r] = w(
3564
+ const [r, a] = w(
3557
3565
  () => e.contentWrapper || "div"
3558
3566
  );
3559
- function s(C) {
3567
+ function l(C) {
3560
3568
  return _e({
3561
3569
  model: e.model,
3562
3570
  trustedHosts: e.trustedHosts,
@@ -3646,7 +3654,7 @@ function Hn(e) {
3646
3654
  return p.current || (k(), S(), p.current = !0), B(() => {
3647
3655
  var C, I;
3648
3656
  if (L()) {
3649
- if (W() && !e.isNestedRender && (window.addEventListener("message", s), He(), je({
3657
+ if (W() && !e.isNestedRender && (window.addEventListener("message", l), He(), je({
3650
3658
  ...e.locale ? {
3651
3659
  locale: e.locale
3652
3660
  } : {},
@@ -3700,12 +3708,12 @@ function Hn(e) {
3700
3708
  locale: e.locale
3701
3709
  });
3702
3710
  }, [e.locale]), B(() => () => {
3703
- L() && (window.removeEventListener("message", s), window.removeEventListener(
3711
+ L() && (window.removeEventListener("message", l), window.removeEventListener(
3704
3712
  "builder:component:stateChangeListenerActivated",
3705
3713
  S
3706
3714
  ));
3707
- }, []), /* @__PURE__ */ l(oe.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
3708
- a,
3715
+ }, []), /* @__PURE__ */ s(oe.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3716
+ r,
3709
3717
  {
3710
3718
  ref: t,
3711
3719
  onClick: (C) => f(C),
@@ -3733,7 +3741,7 @@ ${$n({
3733
3741
  ${On(e.isNestedRender)}
3734
3742
  `.trim()
3735
3743
  );
3736
- return /* @__PURE__ */ l(
3744
+ return /* @__PURE__ */ s(
3737
3745
  G,
3738
3746
  {
3739
3747
  id: "builderio-content",
@@ -3747,9 +3755,9 @@ const Mn = ({
3747
3755
  data: t,
3748
3756
  locale: n
3749
3757
  }) => {
3750
- var a, r, s;
3751
- const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
3752
- return (s = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || s.forEach((d) => {
3758
+ var r, a, l;
3759
+ const i = {}, o = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
3760
+ return (l = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || l.forEach((d) => {
3753
3761
  d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
3754
3762
  }), {
3755
3763
  ...i,
@@ -3784,12 +3792,12 @@ function xe(e) {
3784
3792
  }
3785
3793
  );
3786
3794
  function i(b) {
3787
- s((x) => ({
3795
+ l((x) => ({
3788
3796
  ...x,
3789
3797
  rootState: b
3790
3798
  }));
3791
3799
  }
3792
- const [o, a] = w(
3800
+ const [o, r] = w(
3793
3801
  () => {
3794
3802
  var b;
3795
3803
  return [
@@ -3806,7 +3814,7 @@ function xe(e) {
3806
3814
  {}
3807
3815
  );
3808
3816
  }
3809
- ), [r, s] = w(() => {
3817
+ ), [a, l] = w(() => {
3810
3818
  var b;
3811
3819
  return {
3812
3820
  content: _n({
@@ -3844,19 +3852,19 @@ function xe(e) {
3844
3852
  e.apiKey || z.error(
3845
3853
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3846
3854
  );
3847
- const b = (h = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
3855
+ const b = (h = (c = a.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
3848
3856
  b && O({
3849
3857
  code: b,
3850
3858
  context: e.context || {},
3851
3859
  localState: void 0,
3852
- rootState: r.rootState,
3860
+ rootState: a.rootState,
3853
3861
  rootSetState: (x) => {
3854
- Object.assign(r.rootState, x);
3862
+ Object.assign(a.rootState, x);
3855
3863
  },
3856
3864
  isExpression: !1
3857
3865
  }), d.current = !0;
3858
3866
  }
3859
- return /* @__PURE__ */ l(
3867
+ return /* @__PURE__ */ s(
3860
3868
  Te.Provider,
3861
3869
  {
3862
3870
  value: {
@@ -3876,14 +3884,14 @@ function xe(e) {
3876
3884
  locale: e.locale,
3877
3885
  enrich: e.enrich,
3878
3886
  showContent: e.showContent,
3879
- builderContextSignal: r,
3887
+ builderContextSignal: a,
3880
3888
  contentWrapper: e.contentWrapper,
3881
3889
  contentWrapperProps: e.contentWrapperProps,
3882
3890
  trustedHosts: e.trustedHosts,
3883
3891
  isNestedRender: e.isNestedRender,
3884
- setBuilderContextSignal: s,
3892
+ setBuilderContextSignal: l,
3885
3893
  children: [
3886
- e.isSsrAbTest ? /* @__PURE__ */ l(
3894
+ e.isSsrAbTest ? /* @__PURE__ */ s(
3887
3895
  ne,
3888
3896
  {
3889
3897
  id: "builderio-variant-visibility",
@@ -3891,21 +3899,21 @@ function xe(e) {
3891
3899
  nonce: e.nonce || ""
3892
3900
  }
3893
3901
  ) : null,
3894
- /* @__PURE__ */ l(
3902
+ /* @__PURE__ */ s(
3895
3903
  jn,
3896
3904
  {
3897
3905
  nonce: e.nonce || "",
3898
3906
  isNestedRender: e.isNestedRender,
3899
- contentId: (g = r.content) == null ? void 0 : g.id,
3900
- cssCode: (v = (m = r.content) == null ? void 0 : m.data) == null ? void 0 : v.cssCode,
3901
- customFonts: (k = (f = r.content) == null ? void 0 : f.data) == null ? void 0 : k.customFonts
3907
+ contentId: (g = a.content) == null ? void 0 : g.id,
3908
+ cssCode: (v = (m = a.content) == null ? void 0 : m.data) == null ? void 0 : v.cssCode,
3909
+ customFonts: (k = (f = a.content) == null ? void 0 : f.data) == null ? void 0 : k.customFonts
3902
3910
  }
3903
3911
  ),
3904
- /* @__PURE__ */ l(
3912
+ /* @__PURE__ */ s(
3905
3913
  F,
3906
3914
  {
3907
- blocks: (p = (S = r.content) == null ? void 0 : S.data) == null ? void 0 : p.blocks,
3908
- context: r,
3915
+ blocks: (p = (S = a.content) == null ? void 0 : S.data) == null ? void 0 : p.blocks,
3916
+ context: a,
3909
3917
  registeredComponents: o,
3910
3918
  linkComponent: e.linkComponent
3911
3919
  }
@@ -3917,7 +3925,7 @@ function xe(e) {
3917
3925
  );
3918
3926
  }
3919
3927
  function qn(e) {
3920
- var r;
3928
+ var a;
3921
3929
  const [t, n] = w(
3922
3930
  () => En({
3923
3931
  canTrack: K(e.canTrack),
@@ -3925,23 +3933,23 @@ function qn(e) {
3925
3933
  })
3926
3934
  );
3927
3935
  function i() {
3928
- var s;
3936
+ var l;
3929
3937
  return Bn(
3930
3938
  _(e.content).map((d) => ({
3931
3939
  id: d.testVariationId,
3932
3940
  testRatio: d.testRatio
3933
3941
  })),
3934
- ((s = e.content) == null ? void 0 : s.id) || ""
3942
+ ((l = e.content) == null ? void 0 : l.id) || ""
3935
3943
  );
3936
3944
  }
3937
3945
  function o() {
3938
- return _(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
3946
+ return _(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
3939
3947
  }
3940
- function a() {
3941
- var s;
3948
+ function r() {
3949
+ var l;
3942
3950
  return t ? {
3943
3951
  ...e.content,
3944
- testVariationId: (s = e.content) == null ? void 0 : s.id
3952
+ testVariationId: (l = e.content) == null ? void 0 : l.id
3945
3953
  } : qe({
3946
3954
  item: e.content,
3947
3955
  canTrack: K(e.canTrack)
@@ -3949,7 +3957,7 @@ function qn(e) {
3949
3957
  }
3950
3958
  return B(() => {
3951
3959
  }, []), /* @__PURE__ */ V(T, { children: [
3952
- !e.isNestedRender && D !== "reactNative" ? /* @__PURE__ */ l(
3960
+ !e.isNestedRender && D !== "reactNative" ? /* @__PURE__ */ s(
3953
3961
  ne,
3954
3962
  {
3955
3963
  id: "builderio-init-variants-fns",
@@ -3958,7 +3966,7 @@ function qn(e) {
3958
3966
  }
3959
3967
  ) : null,
3960
3968
  t ? /* @__PURE__ */ V(T, { children: [
3961
- /* @__PURE__ */ l(
3969
+ /* @__PURE__ */ s(
3962
3970
  G,
3963
3971
  {
3964
3972
  id: "builderio-variants",
@@ -3966,7 +3974,7 @@ function qn(e) {
3966
3974
  nonce: e.nonce || ""
3967
3975
  }
3968
3976
  ),
3969
- /* @__PURE__ */ l(
3977
+ /* @__PURE__ */ s(
3970
3978
  ne,
3971
3979
  {
3972
3980
  id: "builderio-variants-visibility",
@@ -3974,13 +3982,13 @@ function qn(e) {
3974
3982
  nonce: e.nonce || ""
3975
3983
  }
3976
3984
  ),
3977
- (r = _(e.content)) == null ? void 0 : r.map((s) => /* @__PURE__ */ l(
3985
+ (a = _(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
3978
3986
  xe,
3979
3987
  {
3980
3988
  apiHost: e.apiHost,
3981
3989
  isNestedRender: e.isNestedRender,
3982
3990
  nonce: e.nonce,
3983
- content: s,
3991
+ content: l,
3984
3992
  showContent: !1,
3985
3993
  model: e.model,
3986
3994
  data: e.data,
@@ -3999,16 +4007,16 @@ function qn(e) {
3999
4007
  contentWrapperProps: e.contentWrapperProps,
4000
4008
  trustedHosts: e.trustedHosts
4001
4009
  },
4002
- s.testVariationId
4010
+ l.testVariationId
4003
4011
  ))
4004
4012
  ] }) : null,
4005
- /* @__PURE__ */ l(
4013
+ /* @__PURE__ */ s(
4006
4014
  xe,
4007
4015
  {
4008
4016
  apiHost: e.apiHost,
4009
4017
  nonce: e.nonce,
4010
4018
  isNestedRender: e.isNestedRender,
4011
- content: a(),
4019
+ content: r(),
4012
4020
  showContent: !0,
4013
4021
  model: e.model,
4014
4022
  data: e.data,
@@ -4050,7 +4058,7 @@ const Kn = async ({
4050
4058
  });
4051
4059
  };
4052
4060
  function zn(e) {
4053
- var s, d, c, h;
4061
+ var l, d, c, h;
4054
4062
  function t() {
4055
4063
  return "div";
4056
4064
  }
@@ -4066,22 +4074,22 @@ function zn(e) {
4066
4074
  (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4067
4075
  ].filter(Boolean).join(" ");
4068
4076
  }
4069
- const [o, a] = w(() => {
4077
+ const [o, r] = w(() => {
4070
4078
  var g;
4071
4079
  return (g = e.symbol) == null ? void 0 : g.content;
4072
4080
  });
4073
- function r() {
4081
+ function a() {
4074
4082
  o || Kn({
4075
4083
  symbol: e.symbol,
4076
4084
  builderContextValue: e.builderContext
4077
4085
  }).then((g) => {
4078
- g && a(g);
4086
+ g && r(g);
4079
4087
  });
4080
4088
  }
4081
4089
  return B(() => {
4082
4090
  }, []), B(() => {
4083
- r();
4084
- }, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
4091
+ a();
4092
+ }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
4085
4093
  qn,
4086
4094
  {
4087
4095
  nonce: e.builderContext.nonce,
@@ -4090,7 +4098,7 @@ function zn(e) {
4090
4098
  apiKey: e.builderContext.apiKey,
4091
4099
  context: {
4092
4100
  ...e.builderContext.context,
4093
- symbolId: (s = e.builderBlock) == null ? void 0 : s.id
4101
+ symbolId: (l = e.builderBlock) == null ? void 0 : l.id
4094
4102
  },
4095
4103
  customComponents: Object.values(e.builderComponents),
4096
4104
  data: {