@builder.io/sdk-react 4.0.10 → 4.1.1

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 (76) hide show
  1. package/lib/browser/blocks-exports.cjs +9 -9
  2. package/lib/browser/blocks-exports.mjs +52 -45
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/server-entry-7291b0a0.cjs +2 -0
  6. package/lib/browser/{server-entry-a97b474c.js → server-entry-7fc3706d.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-39aaa10f.js → accordion-52165801.js} +1 -1
  10. package/lib/edge/{accordion-f19408f1.cjs → accordion-97979a98.cjs} +1 -1
  11. package/lib/edge/{blocks-bd4d19a4.cjs → blocks-b38b39ff.cjs} +1 -1
  12. package/lib/edge/blocks-exports.cjs +1 -1
  13. package/lib/edge/blocks-exports.mjs +2 -2
  14. package/lib/edge/{blocks-204bcb03.js → blocks-f69d48c0.js} +2 -2
  15. package/lib/edge/{button-eb4a1fce.js → button-3acce335.js} +2 -2
  16. package/lib/edge/{button-39adadab.cjs → button-c2b48e86.cjs} +1 -1
  17. package/lib/edge/{columns-d3cef236.js → columns-301795ee.js} +3 -3
  18. package/lib/edge/{columns-3954e4e2.cjs → columns-600ece77.cjs} +1 -1
  19. package/lib/edge/{content-variants-0c41aa3b.cjs → content-variants-cb452ad4.cjs} +2 -2
  20. package/lib/edge/{content-variants-68bbb30c.js → content-variants-d80a626a.js} +12 -12
  21. package/lib/edge/{custom-code-eded3b35.cjs → custom-code-381f399e.cjs} +1 -1
  22. package/lib/edge/{custom-code-f8374f7b.js → custom-code-38a0e487.js} +1 -1
  23. package/lib/edge/{embed-2b4ce9d5.js → embed-3e62c6c0.js} +1 -1
  24. package/lib/edge/{embed-44dee332.cjs → embed-57e9672d.cjs} +1 -1
  25. package/lib/edge/{form-9faf63c9.js → form-01ee1ef4.js} +3 -3
  26. package/lib/edge/{form-1493caf1.cjs → form-dfb33605.cjs} +1 -1
  27. package/lib/edge/{get-class-prop-name-a9265175.cjs → get-class-prop-name-7a52ddda.cjs} +1 -1
  28. package/lib/edge/{get-class-prop-name-cc48fc17.js → get-class-prop-name-ca3fff6a.js} +1 -1
  29. package/lib/edge/image-209835f4.js +94 -0
  30. package/lib/edge/image-87a4e006.cjs +17 -0
  31. package/lib/edge/image.helpers-3e926d47.js +33 -0
  32. package/lib/edge/image.helpers-dba8a869.cjs +1 -0
  33. package/lib/edge/img-35c030d0.js +28 -0
  34. package/lib/edge/img-ff08ac3a.cjs +1 -0
  35. package/lib/edge/index.cjs +1 -1
  36. package/lib/edge/index.mjs +1 -1
  37. package/lib/edge/{input-d988f887.cjs → input-bd84e8ab.cjs} +1 -1
  38. package/lib/edge/{input-a7c01b3a.js → input-d466ec13.js} +1 -1
  39. package/lib/edge/{personalization-container-9ae00624.js → personalization-container-87ff6375.js} +4 -4
  40. package/lib/edge/{personalization-container-2f2bfa1b.cjs → personalization-container-8b04de3e.cjs} +1 -1
  41. package/lib/edge/{select-4f03decc.js → select-5d4ffe3b.js} +1 -1
  42. package/lib/edge/{select-03b307f2.cjs → select-ef4ce171.cjs} +1 -1
  43. package/lib/edge/{server-entry-e13b9b35.cjs → server-entry-afc62633.cjs} +1 -1
  44. package/lib/edge/{server-entry-0fe1fd76.js → server-entry-db512751.js} +1 -1
  45. package/lib/edge/server-entry.cjs +1 -1
  46. package/lib/edge/server-entry.mjs +1 -1
  47. package/lib/edge/{slot-125b0593.cjs → slot-78b8ee2b.cjs} +1 -1
  48. package/lib/edge/{slot-ff90c844.js → slot-d0cbcacf.js} +3 -3
  49. package/lib/edge/{symbol-7558aa24.js → symbol-2e54d716.js} +2 -2
  50. package/lib/edge/{symbol-da3ec542.cjs → symbol-6d9bb0a7.cjs} +1 -1
  51. package/lib/edge/{tabs-3cf7cfd3.cjs → tabs-3f775737.cjs} +1 -1
  52. package/lib/edge/{tabs-a9e56d82.js → tabs-b8c2b851.js} +3 -3
  53. package/lib/node/blocks-exports.cjs +9 -9
  54. package/lib/node/blocks-exports.mjs +275 -268
  55. package/lib/node/index.cjs +1 -1
  56. package/lib/node/index.mjs +3 -3
  57. package/lib/node/init.cjs +1 -1
  58. package/lib/node/init.mjs +3 -3
  59. package/lib/node/server-entry-47ceca47.cjs +2 -0
  60. package/lib/node/{server-entry-23f9b44b.js → server-entry-b0a12b94.js} +1 -1
  61. package/lib/node/server-entry.cjs +1 -1
  62. package/lib/node/server-entry.mjs +1 -1
  63. package/lib/node/{setIvm-71bce8c3.cjs → setIvm-513e193d.cjs} +1 -1
  64. package/lib/node/{setIvm-b29cbc40.js → setIvm-f591fbda.js} +1 -1
  65. package/lib/node/setIvm.cjs +1 -1
  66. package/lib/node/setIvm.mjs +2 -2
  67. package/lib/node/{should-force-browser-runtime-in-node-e0147364.cjs → should-force-browser-runtime-in-node-0fb1bbdd.cjs} +1 -1
  68. package/lib/node/{should-force-browser-runtime-in-node-5a2ea9eb.js → should-force-browser-runtime-in-node-da05f5c3.js} +1 -1
  69. package/package.json +1 -1
  70. package/types/constants/sdk-version.d.ts +1 -1
  71. package/lib/browser/server-entry-6a0d3985.cjs +0 -2
  72. package/lib/edge/image-cce92f6c.cjs +0 -17
  73. package/lib/edge/image-d87761af.js +0 -123
  74. package/lib/edge/img-58c08dd4.js +0 -20
  75. package/lib/edge/img-b8d85bad.cjs +0 -1
  76. package/lib/node/server-entry-ceef853b.cjs +0 -2
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import { TARGET as F, isBrowser as K, logger as Z, checkIsDefined as ge, isPreviewing as oe, isEditing as O, userAttributesService as Ce, getDefaultCanTrack as X, logFetch as Fe, registerInsertMenu as lt, setupBrowserForEditing as st, createRegisterComponentMessage as ct, getCookieSync as ut, _track as Te, fetchOneEntry as Le, createEditorListener as dt, serializeIncludingFunctions as Ie, handleABTestingSync as mt } from "./server-entry-23f9b44b.js";
3
- import { setClientUserAttributes as qi } from "./server-entry-23f9b44b.js";
2
+ import { TARGET as F, isBrowser as K, logger as Z, checkIsDefined as ge, isPreviewing as le, isEditing as O, userAttributesService as Ce, getDefaultCanTrack as X, logFetch as Fe, registerInsertMenu as lt, setupBrowserForEditing as st, createRegisterComponentMessage as ct, getCookieSync as ut, _track as Te, fetchOneEntry as Le, createEditorListener as dt, serializeIncludingFunctions as Ie, handleABTestingSync as mt } from "./server-entry-b0a12b94.js";
3
+ import { setClientUserAttributes as qi } from "./server-entry-b0a12b94.js";
4
4
  import { jsx as s, Fragment as R, jsxs as $ } from "react/jsx-runtime";
5
5
  import * as ft from "react";
6
6
  import { createContext as Oe, useEffect as V, useState as C, useRef as H, useContext as we, createElement as _e } from "react";
7
- import { getFunctionArguments as ht, flattenState as gt, runInNode as bt, parseCode as yt, getBuilderGlobals as pt, set as Ue, fastClone as ye } from "./setIvm-b29cbc40.js";
8
- import { shouldForceBrowserRuntimeInNode as vt } from "./should-force-browser-runtime-in-node-5a2ea9eb.js";
7
+ import { getFunctionArguments as ht, flattenState as gt, runInNode as bt, parseCode as yt, getBuilderGlobals as pt, set as Ue, fastClone as ye } from "./setIvm-f591fbda.js";
8
+ import { shouldForceBrowserRuntimeInNode as vt } from "./should-force-browser-runtime-in-node-da05f5c3.js";
9
9
  const xt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), St = (e) => typeof e == "string" && xt.has(e.toLowerCase());
10
10
  function pe(e) {
11
11
  return /* @__PURE__ */ s(R, { children: St(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 }) }) });
@@ -64,24 +64,24 @@ const ve = Oe({
64
64
  nonce: "",
65
65
  model: ""
66
66
  }), He = Oe({ registeredComponents: {} }), Me = (e, t, n) => {
67
- const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((a, o) => a != null ? a[o] : a, e);
67
+ const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, o) => r != null ? r[o] : r, e);
68
68
  return i === void 0 || i === e ? n : i;
69
69
  }, Ct = ({
70
70
  code: e,
71
71
  builder: t,
72
72
  context: n,
73
73
  event: i,
74
- localState: a,
74
+ localState: r,
75
75
  rootSetState: o,
76
- rootState: r
76
+ rootState: a
77
77
  }) => {
78
78
  const l = ht({
79
79
  builder: t,
80
80
  context: n,
81
81
  event: i,
82
82
  state: gt({
83
- rootState: r,
84
- localState: a,
83
+ rootState: a,
84
+ localState: r,
85
85
  rootSetState: o
86
86
  })
87
87
  });
@@ -89,17 +89,17 @@ const ve = Oe({
89
89
  }, Tt = (e) => K() || vt({
90
90
  shouldLogWarning: !0
91
91
  }) ? Ct(e) : bt(e), It = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, wt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Et = (e) => {
92
- var t, n, i, a, o, r;
93
- 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 = (o = (a = wt.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : o.getPath) == null ? void 0 : r.slice(1));
92
+ var t, n, i, r, o, a;
93
+ 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 = (o = (r = wt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : o.getPath) == null ? void 0 : a.slice(1));
94
94
  };
95
95
  function J({
96
96
  code: e,
97
97
  context: t,
98
98
  localState: n,
99
99
  rootState: i,
100
- rootSetState: a,
100
+ rootSetState: r,
101
101
  event: o,
102
- isExpression: r = !0
102
+ isExpression: a = !0
103
103
  }) {
104
104
  if (e.trim() === "")
105
105
  return;
@@ -111,12 +111,12 @@ function J({
111
111
  }, l);
112
112
  const c = {
113
113
  code: yt(e, {
114
- isExpression: r
114
+ isExpression: a
115
115
  }),
116
116
  builder: pt(),
117
117
  context: t,
118
118
  event: o,
119
- rootSetState: a,
119
+ rootSetState: r,
120
120
  rootState: i,
121
121
  localState: n
122
122
  };
@@ -142,7 +142,7 @@ const Pt = (e, t) => {
142
142
  if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
143
143
  return {
144
144
  ...e.component.options,
145
- text: e.component.options.text.replace(/{{([^}]+)}}/g, (a, o) => J({
145
+ text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, o) => J({
146
146
  code: o,
147
147
  context: t,
148
148
  localState: t.localState,
@@ -157,21 +157,21 @@ function Vt(e, ...t) {
157
157
  delete n[i];
158
158
  return n;
159
159
  }
160
- function re(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
160
+ function oe(e, t, n = null, i = null, r = /* @__PURE__ */ new WeakSet()) {
161
161
  if (e == null || typeof e != "object") {
162
162
  t(e, (o) => {
163
163
  n !== null && i !== null && (n[i] = o);
164
164
  });
165
165
  return;
166
166
  }
167
- a.has(e) || (a.add(e), Array.isArray(e) ? e.forEach((o, r) => {
167
+ r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((o, a) => {
168
168
  t(o, (c) => {
169
- e[r] = c;
170
- }), re(o, t, e, r, a);
171
- }) : Object.entries(e).forEach(([o, r]) => {
172
- t(r, (c) => {
169
+ e[a] = c;
170
+ }), oe(o, t, e, a, r);
171
+ }) : Object.entries(e).forEach(([o, a]) => {
172
+ t(a, (c) => {
173
173
  e[o] = c;
174
- }), re(r, t, e, o, a);
174
+ }), oe(a, t, e, o, r);
175
175
  }));
176
176
  }
177
177
  function qe(e) {
@@ -181,7 +181,7 @@ function At(e) {
181
181
  if (!e || !Object.getOwnPropertyNames(e).length)
182
182
  return !1;
183
183
  let t = !1;
184
- return re(e, (n) => {
184
+ return oe(e, (n) => {
185
185
  if (qe(n)) {
186
186
  t = !0;
187
187
  return;
@@ -189,9 +189,9 @@ function At(e) {
189
189
  }), t;
190
190
  }
191
191
  function Bt(e, t) {
192
- return !e || !Object.getOwnPropertyNames(e).length ? {} : (re(e, (n, i) => {
193
- var a;
194
- qe(n) && i((a = n[t]) != null ? a : void 0);
192
+ return !e || !Object.getOwnPropertyNames(e).length ? {} : (oe(e, (n, i) => {
193
+ var r;
194
+ qe(n) && i((r = n[t]) != null ? r : void 0);
195
195
  }), e);
196
196
  }
197
197
  function Nt(e, t) {
@@ -241,20 +241,20 @@ const $t = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), Wt = (e) =
241
241
  context: t,
242
242
  localState: n,
243
243
  rootState: i,
244
- rootSetState: a
244
+ rootSetState: r
245
245
  }) => {
246
246
  if (!e.bindings)
247
247
  return e;
248
248
  const o = Wt(e);
249
- for (const r in e.bindings) {
250
- const l = e.bindings[r], c = J({
249
+ for (const a in e.bindings) {
250
+ const l = e.bindings[a], c = J({
251
251
  code: l,
252
252
  localState: n,
253
253
  rootState: i,
254
- rootSetState: a,
254
+ rootSetState: r,
255
255
  context: t
256
256
  });
257
- Ue(o, r, c);
257
+ Ue(o, a, c);
258
258
  }
259
259
  return o;
260
260
  };
@@ -263,37 +263,37 @@ function Ft({
263
263
  context: t,
264
264
  localState: n,
265
265
  rootState: i,
266
- rootSetState: a
266
+ rootSetState: r
267
267
  }) {
268
268
  let o = Nt(e, i.locale);
269
269
  return o = o, Dt({
270
270
  block: o,
271
271
  localState: n,
272
272
  rootState: i,
273
- rootSetState: a,
273
+ rootSetState: r,
274
274
  context: t
275
275
  });
276
276
  }
277
- const le = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
277
+ const se = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
278
278
  function Lt(e, t, n = {}) {
279
- let i, a, o, r = null, l = 0;
279
+ let i, r, o, a = null, l = 0;
280
280
  const c = function() {
281
- l = n.leading === !1 ? 0 : Date.now(), r = null, o = e.apply(i, a), r || (i = a = null);
281
+ l = n.leading === !1 ? 0 : Date.now(), a = null, o = e.apply(i, r), a || (i = r = null);
282
282
  };
283
283
  return function() {
284
284
  const u = Date.now();
285
285
  !l && n.leading === !1 && (l = u);
286
286
  const f = t - (u - l);
287
- return i = this, a = arguments, f <= 0 || f > t ? (r && (clearTimeout(r), r = null), l = u, o = e.apply(i, a), r || (i = a = null)) : !r && n.trailing !== !1 && (r = setTimeout(c, f)), o;
287
+ return i = this, r = arguments, f <= 0 || f > t ? (a && (clearTimeout(a), a = null), l = u, o = e.apply(i, r), a || (i = r = null)) : !a && n.trailing !== !1 && (a = setTimeout(c, f)), o;
288
288
  };
289
289
  }
290
290
  function Y(e, ...t) {
291
291
  const n = Object(e);
292
292
  for (let i = 1; i < arguments.length; i++) {
293
- const a = arguments[i];
294
- if (a != null)
295
- for (const o in a)
296
- Object.prototype.hasOwnProperty.call(a, o) && (n[o] = a[o]);
293
+ const r = arguments[i];
294
+ if (r != null)
295
+ for (const o in r)
296
+ Object.prototype.hasOwnProperty.call(r, o) && (n[o] = r[o]);
297
297
  }
298
298
  return n;
299
299
  }
@@ -312,8 +312,8 @@ function je(e) {
312
312
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
313
313
  }
314
314
  function ze(e, t) {
315
- const n = _t(e), i = getComputedStyle(t), a = e.steps[0].styles, o = e.steps[e.steps.length - 1].styles, r = [a, o];
316
- for (const l of r)
315
+ const n = _t(e), i = getComputedStyle(t), r = e.steps[0].styles, o = e.steps[e.steps.length - 1].styles, a = [r, o];
316
+ for (const l of a)
317
317
  for (const c of n)
318
318
  c in l || (l[c] = i[c]);
319
319
  }
@@ -332,7 +332,7 @@ function Ke(e) {
332
332
  }
333
333
  Array.from(t).forEach((n) => {
334
334
  ze(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Y(n.style, e.steps[0].styles), setTimeout(() => {
335
- n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Y(n.style, e.steps[1].styles), setTimeout(() => {
335
+ n.style.transition = `all ${e.duration}s ${se(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Y(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
  });
@@ -346,15 +346,15 @@ function Ut(e) {
346
346
  }
347
347
  Array.from(t).forEach((n) => {
348
348
  ze(e, n);
349
- let i = !1, a = !1;
349
+ let i = !1, r = !1;
350
350
  function o() {
351
- !i && l(n) ? (i = !0, a = !0, setTimeout(() => {
352
- Y(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
353
- a = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
351
+ !i && l(n) ? (i = !0, r = !0, setTimeout(() => {
352
+ Y(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
353
+ r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
354
354
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
355
- })) : e.repeat && i && !a && !l(n) && (i = !1, Y(n.style, e.steps[0].styles));
355
+ })) : e.repeat && i && !r && !l(n) && (i = !1, Y(n.style, e.steps[0].styles));
356
356
  }
357
- const r = Lt(o, 200, {
357
+ const a = Lt(o, 200, {
358
358
  leading: !1
359
359
  });
360
360
  function l(f) {
@@ -366,8 +366,8 @@ function Ut(e) {
366
366
  Y(n.style, c);
367
367
  }
368
368
  u(), setTimeout(() => {
369
- n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
370
- }), document.addEventListener("scroll", r, {
369
+ n.style.transition = `all ${e.duration}s ${se(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
370
+ }), document.addEventListener("scroll", a, {
371
371
  capture: !0,
372
372
  passive: !0
373
373
  }), o();
@@ -375,7 +375,7 @@ function Ut(e) {
375
375
  }
376
376
  const Je = (e) => Object.entries(e).map(([n, i]) => {
377
377
  if (typeof i == "string")
378
- return `${le(n)}: ${i};`;
378
+ return `${se(n)}: ${i};`;
379
379
  }).filter(ge), Ht = (e) => Je(e).join(`
380
380
  `), Q = ({
381
381
  mediaQuery: e,
@@ -425,14 +425,14 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
425
425
  const i = (o = e.component) == null ? void 0 : o.name;
426
426
  if (!i)
427
427
  return null;
428
- const a = t[i];
429
- if (!a || Qe(a, n)) {
428
+ const r = t[i];
429
+ if (!r || Qe(r, n)) {
430
430
  console.warn(`
431
431
  Could not find a registered component named "${i}".
432
432
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
433
433
  return;
434
434
  } else
435
- return a;
435
+ return r;
436
436
  }, zt = ({
437
437
  block: e,
438
438
  context: t
@@ -443,25 +443,25 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
443
443
  } = e;
444
444
  if (!(n != null && n.collection))
445
445
  return;
446
- const a = J({
446
+ const r = J({
447
447
  code: n.collection,
448
448
  localState: t.localState,
449
449
  rootState: t.rootState,
450
450
  rootSetState: t.rootSetState,
451
451
  context: t.context
452
452
  });
453
- if (!Array.isArray(a))
453
+ if (!Array.isArray(r))
454
454
  return;
455
- const o = n.collection.split(".").pop(), r = n.itemName || (o ? o + "Item" : "item");
456
- return a.map((c, u) => ({
455
+ const o = n.collection.split(".").pop(), a = n.itemName || (o ? o + "Item" : "item");
456
+ return r.map((c, u) => ({
457
457
  context: {
458
458
  ...t,
459
459
  localState: {
460
460
  ...t.localState,
461
461
  $index: u,
462
462
  $item: c,
463
- [r]: c,
464
- [`$${r}Index`]: u
463
+ [a]: c,
464
+ [`$${a}Index`]: u
465
465
  }
466
466
  },
467
467
  block: i
@@ -474,7 +474,7 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
474
474
  }, Jt = (e, t, n) => {
475
475
  var i;
476
476
  return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
477
- builderComponents: Object.fromEntries(Object.entries(t).filter(([o, r]) => !Qe(r, n)))
477
+ builderComponents: Object.fromEntries(Object.entries(t).filter(([o, a]) => !Qe(a, n)))
478
478
  } : {};
479
479
  }, Gt = (e, t) => {
480
480
  var n;
@@ -507,14 +507,14 @@ 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
- }, ce = (e, t = Ye) => `@media (max-width: ${t[e].max}px)`, Xe = (e) => {
510
+ }, ue = (e, t = Ye) => `@media (max-width: ${t[e].max}px)`, Xe = (e) => {
511
511
  const t = ye(Ye);
512
512
  if (!e)
513
513
  return t;
514
514
  const {
515
515
  xsmall: n,
516
516
  small: i,
517
- medium: a
517
+ medium: r
518
518
  } = e;
519
519
  if (n) {
520
520
  const c = Math.floor(n / 2);
@@ -524,7 +524,7 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
524
524
  default: c + 1
525
525
  };
526
526
  }
527
- if (!i || !a)
527
+ if (!i || !r)
528
528
  return t;
529
529
  const o = n ? t.xsmall.max + 1 : Math.floor(i / 2);
530
530
  t.small = {
@@ -532,11 +532,11 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
532
532
  min: o,
533
533
  default: o + 1
534
534
  };
535
- const r = t.small.max + 1;
535
+ const a = t.small.max + 1;
536
536
  t.medium = {
537
- max: a,
538
- min: r,
539
- default: r + 1
537
+ max: r,
538
+ min: a,
539
+ default: a + 1
540
540
  };
541
541
  const l = t.medium.max + 1;
542
542
  return t.large = {
@@ -563,9 +563,9 @@ function Yt(e) {
563
563
  }
564
564
  function n() {
565
565
  var k, A, T, I, g;
566
- const i = e.block, a = i.responsiveStyles, o = e.context.content, r = Xe(
566
+ const i = e.block, r = i.responsiveStyles, o = e.context.content, a = Xe(
567
567
  ((k = o == null ? void 0 : o.meta) == null ? void 0 : k.breakpoints) || {}
568
- ), l = !!((T = (A = o == null ? void 0 : o.meta) == null ? void 0 : A.breakpoints) != null && T.xsmall), c = a == null ? void 0 : a.large, u = a == null ? void 0 : a.medium, f = a == null ? void 0 : a.small, b = a == null ? void 0 : a.xsmall, m = i.id;
568
+ ), l = !!((T = (A = o == null ? void 0 : o.meta) == null ? void 0 : A.breakpoints) != null && T.xsmall), c = r == null ? void 0 : r.large, u = r == null ? void 0 : r.medium, f = r == null ? void 0 : r.small, b = r == null ? void 0 : r.xsmall, m = i.id;
569
569
  if (!m)
570
570
  return "";
571
571
  const v = c ? Q({
@@ -574,23 +574,23 @@ function Yt(e) {
574
574
  }) : "", d = u ? Q({
575
575
  className: m,
576
576
  styles: u,
577
- mediaQuery: ce(
577
+ mediaQuery: ue(
578
578
  "medium",
579
- r
579
+ a
580
580
  )
581
581
  }) : "", h = f ? Q({
582
582
  className: m,
583
583
  styles: f,
584
- mediaQuery: ce(
584
+ mediaQuery: ue(
585
585
  "small",
586
- r
586
+ a
587
587
  )
588
588
  }) : "", p = b && l ? Q({
589
589
  className: m,
590
590
  styles: b,
591
- mediaQuery: ce(
591
+ mediaQuery: ue(
592
592
  "xsmall",
593
- r
593
+ a
594
594
  )
595
595
  }) : "", y = i.animations && i.animations.find((x) => x.trigger === "hover");
596
596
  let S = "";
@@ -600,7 +600,7 @@ function Yt(e) {
600
600
  className: `${m}:hover`,
601
601
  styles: {
602
602
  ...x,
603
- transition: `all ${y.duration}s ${le(
603
+ transition: `all ${y.duration}s ${se(
604
604
  y.easing
605
605
  )}`,
606
606
  transitionDelay: y.delay ? `${y.delay}s` : "0s"
@@ -639,21 +639,21 @@ const Zt = (e) => `on${Xt(e)}`, en = (e, t) => (n) => J({
639
639
  function Ze(e) {
640
640
  var i;
641
641
  const t = {}, n = (i = e.block.actions) != null ? i : {};
642
- for (const a in n) {
643
- if (!n.hasOwnProperty(a))
642
+ for (const r in n) {
643
+ if (!n.hasOwnProperty(r))
644
644
  continue;
645
- const o = n[a];
646
- let r = Zt(a);
645
+ const o = n[r];
646
+ let a = Zt(r);
647
647
  if (e.stripPrefix)
648
648
  switch (F) {
649
649
  case "vue":
650
- r = r.replace("v-on:", "");
650
+ a = a.replace("v-on:", "");
651
651
  break;
652
652
  case "svelte":
653
- r = r.replace("on:", "");
653
+ a = a.replace("on:", "");
654
654
  break;
655
655
  }
656
- t[r] = en(o, e);
656
+ t[a] = en(o, e);
657
657
  }
658
658
  return t;
659
659
  }
@@ -686,7 +686,7 @@ function xe({
686
686
  block: e
687
687
  });
688
688
  }
689
- function an(e) {
689
+ function rn(e) {
690
690
  return /* @__PURE__ */ s(
691
691
  pe,
692
692
  {
@@ -707,12 +707,12 @@ function an(e) {
707
707
  }
708
708
  );
709
709
  }
710
- function rn(e) {
710
+ function an(e) {
711
711
  return V(() => {
712
712
  }, []), /* @__PURE__ */ s(R, { children: e.children });
713
713
  }
714
714
  function on(e) {
715
- var i, a;
715
+ var i, r;
716
716
  C(() => 0);
717
717
  function t() {
718
718
  return e.includeBlockProps ? {
@@ -733,8 +733,8 @@ function on(e) {
733
733
  return e.wrapperProps;
734
734
  }
735
735
  return V(() => {
736
- }, [e.wrapperProps, (a = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : a.options]), /* @__PURE__ */ s(R, { children: e.Wrapper.load ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
737
- rn,
736
+ }, [e.wrapperProps, (r = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : r.options]), /* @__PURE__ */ s(R, { children: e.Wrapper.load ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
737
+ an,
738
738
  {
739
739
  load: e.Wrapper.load,
740
740
  fallback: e.Wrapper.fallback,
@@ -749,9 +749,9 @@ const ln = ({
749
749
  builderBlock: t,
750
750
  context: n,
751
751
  componentRef: i,
752
- includeBlockProps: a,
752
+ includeBlockProps: r,
753
753
  isInteractive: o,
754
- contextValue: r
754
+ contextValue: a
755
755
  }) => {
756
756
  const l = {
757
757
  ...e,
@@ -759,10 +759,10 @@ const ln = ({
759
759
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
760
760
  * component itself directly. Otherwise, they are provided to the wrapper element.
761
761
  */
762
- ...a ? {
762
+ ...r ? {
763
763
  attributes: xe({
764
764
  block: t,
765
- context: r
765
+ context: a
766
766
  })
767
767
  } : {}
768
768
  };
@@ -771,7 +771,7 @@ const ln = ({
771
771
  block: t,
772
772
  context: n,
773
773
  wrapperProps: e,
774
- includeBlockProps: a
774
+ includeBlockProps: r
775
775
  } : l;
776
776
  };
777
777
  function Re(e) {
@@ -794,15 +794,15 @@ function Re(e) {
794
794
  isInteractive: e.isInteractive,
795
795
  contextValue: e.context
796
796
  }),
797
- children: (i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ s(
798
- se,
797
+ children: (i = e.blockChildren) == null ? void 0 : i.map((r) => /* @__PURE__ */ s(
798
+ ce,
799
799
  {
800
- block: a,
800
+ block: r,
801
801
  context: e.context,
802
802
  registeredComponents: e.registeredComponents,
803
803
  linkComponent: e.linkComponent
804
804
  },
805
- a.id
805
+ r.id
806
806
  ))
807
807
  }
808
808
  ) }) : null });
@@ -812,7 +812,7 @@ function Pe(e) {
812
812
  return V(() => {
813
813
  n(e.repeatContext);
814
814
  }, [e.repeatContext]), /* @__PURE__ */ s(ve.Provider, { value: t, children: /* @__PURE__ */ s(
815
- se,
815
+ ce,
816
816
  {
817
817
  block: e.block,
818
818
  context: t,
@@ -821,7 +821,7 @@ function Pe(e) {
821
821
  }
822
822
  ) });
823
823
  }
824
- function se(e) {
824
+ function ce(e) {
825
825
  var f, b, m, v;
826
826
  function t() {
827
827
  return zt({
@@ -833,9 +833,9 @@ function se(e) {
833
833
  value: null,
834
834
  update: !1
835
835
  }));
836
- function a() {
836
+ function r() {
837
837
  var h;
838
- if (n.value && !n.update && !oe())
838
+ if (n.value && !n.update && !le())
839
839
  return n.value;
840
840
  const d = (h = e.block.repeat) != null && h.collection ? e.block : Ft({
841
841
  block: e.block,
@@ -848,34 +848,34 @@ function se(e) {
848
848
  }
849
849
  function o() {
850
850
  return jt({
851
- block: a(),
851
+ block: r(),
852
852
  registeredComponents: e.registeredComponents,
853
853
  model: e.context.model
854
854
  });
855
855
  }
856
- function r() {
856
+ function a() {
857
857
  var h;
858
- return e.block.tagName === "a" || ((h = a().properties) == null ? void 0 : h.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
858
+ return e.block.tagName === "a" || ((h = r().properties) == null ? void 0 : h.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
859
859
  }
860
860
  function l() {
861
861
  var p, y;
862
862
  if ((p = e.block.repeat) != null && p.collection)
863
863
  return !!((y = t == null ? void 0 : t()) != null && y.length);
864
- const d = "hide" in a() ? a().hide : !1;
865
- return ("show" in a() ? a().show : !0) && !d;
864
+ const d = "hide" in r() ? r().hide : !1;
865
+ return ("show" in r() ? r().show : !0) && !d;
866
866
  }
867
867
  function c() {
868
868
  var h, p;
869
- return !((h = o == null ? void 0 : o()) != null && h.component) && !t() ? (p = a().children) != null ? p : [] : [];
869
+ return !((h = o == null ? void 0 : o()) != null && h.component) && !t() ? (p = r().children) != null ? p : [] : [];
870
870
  }
871
871
  function u() {
872
872
  var d, h, p, y;
873
873
  return {
874
- blockChildren: (d = a().children) != null ? d : [],
874
+ blockChildren: (d = r().children) != null ? d : [],
875
875
  componentRef: (h = o == null ? void 0 : o()) == null ? void 0 : h.component,
876
876
  componentOptions: {
877
- ...Rt(a(), e.context),
878
- ...Gt(o(), a()),
877
+ ...Rt(r(), e.context),
878
+ ...Gt(o(), r()),
879
879
  ...Qt(o(), e.context),
880
880
  ...Kt(o(), e.linkComponent),
881
881
  ...Jt(
@@ -887,13 +887,13 @@ function se(e) {
887
887
  context: e.context,
888
888
  linkComponent: e.linkComponent,
889
889
  registeredComponents: e.registeredComponents,
890
- builderBlock: a(),
890
+ builderBlock: r(),
891
891
  includeBlockProps: ((p = o == null ? void 0 : o()) == null ? void 0 : p.noWrap) === !0,
892
892
  isInteractive: !((y = o == null ? void 0 : o()) != null && y.isRSC && F === "rsc")
893
893
  };
894
894
  }
895
895
  return V(() => {
896
- const d = a().id, h = a().animations;
896
+ const d = r().id, h = r().animations;
897
897
  h && d && Ot(
898
898
  h.map((p) => ({
899
899
  ...p,
@@ -903,7 +903,7 @@ function se(e) {
903
903
  }, []), V(() => {
904
904
  n.update = !0;
905
905
  }), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ $(R, { children: [
906
- /* @__PURE__ */ s(Yt, { block: a(), context: e.context }),
906
+ /* @__PURE__ */ s(Yt, { block: r(), context: e.context }),
907
907
  (f = o == null ? void 0 : o()) != null && f.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((d, h) => /* @__PURE__ */ s(
908
908
  Pe,
909
909
  {
@@ -936,10 +936,10 @@ function se(e) {
936
936
  },
937
937
  Ee(h)
938
938
  )) }) : /* @__PURE__ */ $(
939
- an,
939
+ rn,
940
940
  {
941
- Wrapper: r(),
942
- block: a(),
941
+ Wrapper: a(),
942
+ block: r(),
943
943
  context: e.context,
944
944
  children: [
945
945
  /* @__PURE__ */ s(
@@ -957,7 +957,7 @@ function se(e) {
957
957
  }
958
958
  ),
959
959
  (b = c()) == null ? void 0 : b.map((d) => /* @__PURE__ */ s(
960
- se,
960
+ ce,
961
961
  {
962
962
  block: d,
963
963
  registeredComponents: e.registeredComponents,
@@ -975,22 +975,22 @@ function sn(e) {
975
975
  const t = H(null);
976
976
  C(() => !1);
977
977
  function n() {
978
- var r;
978
+ var a;
979
979
  return [
980
980
  "builder-blocks",
981
- (r = e.blocks) != null && r.length ? "" : "no-blocks",
981
+ (a = e.blocks) != null && a.length ? "" : "no-blocks",
982
982
  e.classNameProp
983
983
  ].filter(Boolean).join(" ");
984
984
  }
985
985
  function i() {
986
986
  if (!e.path)
987
987
  return;
988
- const r = "this.", l = "component.options.";
989
- return e.path.startsWith(r) ? e.path.replace(r, "") : e.path.startsWith(l) ? e.path : `${l}${e.path || ""}`;
988
+ const a = "this.", l = "component.options.";
989
+ return e.path.startsWith(a) ? e.path.replace(a, "") : e.path.startsWith(l) ? e.path : `${l}${e.path || ""}`;
990
990
  }
991
- function a() {
992
- var r, l;
993
- O() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
991
+ function r() {
992
+ var a, l;
993
+ O() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
994
994
  {
995
995
  type: "builder.clickEmptyBlocks",
996
996
  data: {
@@ -1002,8 +1002,8 @@ function sn(e) {
1002
1002
  ));
1003
1003
  }
1004
1004
  function o() {
1005
- var r, l;
1006
- O() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
1005
+ var a, l;
1006
+ O() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
1007
1007
  {
1008
1008
  type: "builder.hoverEmptyBlocks",
1009
1009
  data: {
@@ -1030,9 +1030,9 @@ function sn(e) {
1030
1030
  "builder-path": i(),
1031
1031
  "builder-parent-id": e.parent,
1032
1032
  style: e.styleProp,
1033
- onClick: (r) => a(),
1034
- onMouseEnter: (r) => o(),
1035
- onKeyPress: (r) => a(),
1033
+ onClick: (a) => r(),
1034
+ onMouseEnter: (a) => o(),
1035
+ onKeyPress: (a) => r(),
1036
1036
  ...e.BlocksWrapperProps,
1037
1037
  children: e.children
1038
1038
  }
@@ -1040,7 +1040,7 @@ function sn(e) {
1040
1040
  ] });
1041
1041
  }
1042
1042
  function _(e) {
1043
- var i, a, o;
1043
+ var i, r, o;
1044
1044
  const t = we(ve), n = we(He);
1045
1045
  return /* @__PURE__ */ $(
1046
1046
  sn,
@@ -1051,18 +1051,18 @@ function _(e) {
1051
1051
  styleProp: e.styleProp,
1052
1052
  BlocksWrapperProps: e.BlocksWrapperProps || ((i = e.context) == null ? void 0 : i.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
1053
1053
  classNameProp: e.className,
1054
- BlocksWrapper: ((a = e.context) == null ? void 0 : a.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
1054
+ BlocksWrapper: ((r = e.context) == null ? void 0 : r.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
1055
1055
  children: [
1056
1056
  e.children,
1057
- e.blocks ? /* @__PURE__ */ s(R, { children: (o = e.blocks) == null ? void 0 : o.map((r) => /* @__PURE__ */ s(
1058
- se,
1057
+ e.blocks ? /* @__PURE__ */ s(R, { children: (o = e.blocks) == null ? void 0 : o.map((a) => /* @__PURE__ */ s(
1058
+ ce,
1059
1059
  {
1060
- block: r,
1060
+ block: a,
1061
1061
  linkComponent: e.linkComponent,
1062
1062
  context: e.context || t,
1063
1063
  registeredComponents: e.registeredComponents || (n == null ? void 0 : n.registeredComponents)
1064
1064
  },
1065
- r.id
1065
+ a.id
1066
1066
  )) }) : null
1067
1067
  ]
1068
1068
  }
@@ -1080,14 +1080,14 @@ function un(e) {
1080
1080
  function i() {
1081
1081
  return e.stackColumnsAt || "tablet";
1082
1082
  }
1083
- function a(y) {
1083
+ function r(y) {
1084
1084
  return y.link ? e.builderLinkComponent || "a" : "div";
1085
1085
  }
1086
1086
  function o(y) {
1087
1087
  var S;
1088
1088
  return ((S = n()[y]) == null ? void 0 : S.width) || 100 / n().length;
1089
1089
  }
1090
- function r(y) {
1090
+ function a(y) {
1091
1091
  const S = o(y), k = t() * (n().length - 1) * (S / 100);
1092
1092
  return `calc(${S}% - ${k}px)`;
1093
1093
  }
@@ -1116,7 +1116,7 @@ function un(e) {
1116
1116
  };
1117
1117
  }
1118
1118
  function b(y) {
1119
- const S = y === 0 ? 0 : t(), k = r(y), A = `${S}px`, T = "100%", I = 0;
1119
+ const S = y === 0 ? 0 : t(), k = a(y), A = `${S}px`, T = "100%", I = 0;
1120
1120
  return {
1121
1121
  ...{
1122
1122
  display: "flex",
@@ -1209,7 +1209,7 @@ function un(e) {
1209
1209
  (p = e.columns) == null ? void 0 : p.map((y, S) => /* @__PURE__ */ s(
1210
1210
  pe,
1211
1211
  {
1212
- TagName: a(y),
1212
+ TagName: r(y),
1213
1213
  actionAttributes: {},
1214
1214
  attributes: d(y, S),
1215
1215
  children: /* @__PURE__ */ s(
@@ -1241,8 +1241,8 @@ function Ve(e) {
1241
1241
  return e.replace(/http(s)?:/, "");
1242
1242
  }
1243
1243
  function mn(e = "", t, n) {
1244
- const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), a = e.indexOf("?") !== -1 ? "&" : "?";
1245
- return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + a + t + "=" + encodeURIComponent(n);
1244
+ const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
1245
+ return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
1246
1246
  }
1247
1247
  function fn(e, t) {
1248
1248
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
@@ -1251,24 +1251,24 @@ function fn(e, t) {
1251
1251
  return Ve(e);
1252
1252
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1253
1253
  if (n) {
1254
- const i = e.split(n[0]), a = n[3], o = t.match("x") ? t : `${t}x`;
1255
- return Ve(`${i[0]}_${o}${a}`);
1254
+ const i = e.split(n[0]), r = n[3], o = t.match("x") ? t : `${t}x`;
1255
+ return Ve(`${i[0]}_${o}${r}`);
1256
1256
  }
1257
1257
  return null;
1258
1258
  }
1259
- function ue(e) {
1259
+ function ne(e) {
1260
1260
  if (!e)
1261
1261
  return e;
1262
1262
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1263
1263
  if (e.match(/builder\.io/)) {
1264
1264
  let n = e;
1265
1265
  const i = Number(e.split("?width=")[1]);
1266
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${mn(e, "width", a)} ${a}w`).concat([n]).join(", ");
1266
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((r) => r !== i).map((r) => `${mn(e, "width", r)} ${r}w`).concat([n]).join(", ");
1267
1267
  }
1268
1268
  return e.match(/cdn\.shopify\.com/) ? t.map((n) => [fn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1269
1269
  }
1270
1270
  function hn(e) {
1271
- var a, o, r, l, c, u;
1271
+ var r, o, a, l, c, u;
1272
1272
  function t() {
1273
1273
  var m;
1274
1274
  const b = e.image || e.src;
@@ -1279,10 +1279,10 @@ function hn(e) {
1279
1279
  if (!e.noWebp) {
1280
1280
  if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1281
1281
  if (!e.srcset.includes(e.image.split("?")[0]))
1282
- return console.debug("Removed given srcset"), ue(b);
1282
+ return console.debug("Removed given srcset"), ne(b);
1283
1283
  } else if (e.image && !e.srcset)
1284
- return ue(b);
1285
- return ue(b);
1284
+ return ne(b);
1285
+ return ne(b);
1286
1286
  }
1287
1287
  }
1288
1288
  function n() {
@@ -1341,7 +1341,7 @@ function hn(e) {
1341
1341
  }
1342
1342
  )
1343
1343
  ] }),
1344
- e.aspectRatio && !((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length && e.fitContent) ? /* @__PURE__ */ s(
1344
+ e.aspectRatio && !((o = (r = e.builderBlock) == null ? void 0 : r.children) != null && o.length && e.fitContent) ? /* @__PURE__ */ s(
1345
1345
  "div",
1346
1346
  {
1347
1347
  className: "builder-image-sizer div-3cc22d08",
@@ -1350,7 +1350,7 @@ function hn(e) {
1350
1350
  }
1351
1351
  }
1352
1352
  ) : null,
1353
- (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
1353
+ (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
1354
1354
  !e.fitContent && ((u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-3cc22d08-2", children: e.children }) : null
1355
1355
  ] })
1356
1356
  ] });
@@ -1377,24 +1377,24 @@ function gn(e) {
1377
1377
  );
1378
1378
  }
1379
1379
  function bn(e, t, n, i) {
1380
- function a(u) {
1380
+ function r(u) {
1381
1381
  return typeof u == "string";
1382
1382
  }
1383
1383
  function o(u) {
1384
1384
  return typeof u == "number";
1385
1385
  }
1386
- function r(u, f) {
1386
+ function a(u, f) {
1387
1387
  return (() => {
1388
1388
  const m = f.property, v = f.operator;
1389
1389
  let d = f.value;
1390
1390
  if (f && f.property === "urlPath" && f.value && typeof f.value == "string" && f.value !== "/" && f.value.endsWith("/") && (d = f.value.slice(0, -1)), !(m && v))
1391
1391
  return !0;
1392
1392
  if (Array.isArray(d))
1393
- return v === "isNot" ? d.every((p) => r(u, {
1393
+ return v === "isNot" ? d.every((p) => a(u, {
1394
1394
  property: m,
1395
1395
  operator: v,
1396
1396
  value: p
1397
- })) : !!d.find((p) => r(u, {
1397
+ })) : !!d.find((p) => a(u, {
1398
1398
  property: m,
1399
1399
  operator: v,
1400
1400
  value: p
@@ -1408,11 +1408,11 @@ function bn(e, t, n, i) {
1408
1408
  case "isNot":
1409
1409
  return h !== d;
1410
1410
  case "contains":
1411
- return (a(h) || Array.isArray(h)) && h.includes(String(d));
1411
+ return (r(h) || Array.isArray(h)) && h.includes(String(d));
1412
1412
  case "startsWith":
1413
- return a(h) && h.startsWith(String(d));
1413
+ return r(h) && h.startsWith(String(d));
1414
1414
  case "endsWith":
1415
- return a(h) && h.endsWith(String(d));
1415
+ return r(h) && h.endsWith(String(d));
1416
1416
  case "greaterThan":
1417
1417
  return o(h) && o(d) && h > d;
1418
1418
  case "lessThan":
@@ -1431,7 +1431,7 @@ function bn(e, t, n, i) {
1431
1431
  startDate: n,
1432
1432
  endDate: i
1433
1433
  }, c = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
1434
- return l.startDate && new Date(l.startDate) > c || l.endDate && new Date(l.endDate) < c ? !1 : !l.query || !l.query.length ? !0 : l.query.every((u) => r(e, u));
1434
+ return l.startDate && new Date(l.startDate) > c || l.endDate && new Date(l.endDate) < c ? !1 : !l.query || !l.query.length ? !0 : l.query.every((u) => a(e, u));
1435
1435
  }
1436
1436
  const yn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
1437
1437
  if (!navigator.cookieEnabled) {
@@ -1594,25 +1594,25 @@ const yn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
1594
1594
  visibilityStylesEl.innerHTML = newStyleStr;
1595
1595
  }
1596
1596
  }
1597
- }`, ne = "default", xn = "filterWithCustomTargeting", et = "builderIoPersonalization", tt = "updateVisibilityStylesScript", nt = ["react", "vue", "svelte", "qwik"], ie = ["vue", "svelte", "qwik"];
1597
+ }`, ie = "default", xn = "filterWithCustomTargeting", et = "builderIoPersonalization", tt = "updateVisibilityStylesScript", nt = ["react", "vue", "svelte", "qwik"], re = ["vue", "svelte", "qwik"];
1598
1598
  function Sn(e, t) {
1599
- return !(e && e.length > 0) || !t ? !1 : ie.includes(F) ? !0 : !K();
1599
+ return !(e && e.length > 0) || !t ? !1 : re.includes(F) ? !0 : !K();
1600
1600
  }
1601
1601
  function kn({
1602
1602
  variants: e,
1603
1603
  previewingIndex: t,
1604
1604
  isHydrated: n,
1605
1605
  filteredVariants: i,
1606
- fallbackBlocks: a
1606
+ fallbackBlocks: r
1607
1607
  }) {
1608
- var r;
1608
+ var a;
1609
1609
  const o = {
1610
- blocks: a != null ? a : [],
1610
+ blocks: r != null ? r : [],
1611
1611
  path: "this.children",
1612
- index: ne
1612
+ index: ie
1613
1613
  };
1614
1614
  if (n && O()) {
1615
- if (typeof t == "number" && t < ((r = e == null ? void 0 : e.length) != null ? r : 0)) {
1615
+ if (typeof t == "number" && t < ((a = e == null ? void 0 : e.length) != null ? a : 0)) {
1616
1616
  const l = e == null ? void 0 : e[t];
1617
1617
  if (l)
1618
1618
  return {
@@ -1772,7 +1772,7 @@ function En(e) {
1772
1772
  function i() {
1773
1773
  return !!(e.grid || e.oneAtATime);
1774
1774
  }
1775
- function a() {
1775
+ function r() {
1776
1776
  return {
1777
1777
  display: "flex",
1778
1778
  alignItems: "stretch",
@@ -1797,7 +1797,7 @@ function En(e) {
1797
1797
  Object.entries(v).filter(([d, h]) => h !== void 0)
1798
1798
  );
1799
1799
  }
1800
- function r(m) {
1800
+ function a(m) {
1801
1801
  return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
1802
1802
  }
1803
1803
  function l(m) {
@@ -1844,11 +1844,11 @@ function En(e) {
1844
1844
  function f(m) {
1845
1845
  t.includes(m) ? n(i() ? [] : t.filter((v) => v !== m)) : n(i() ? [m] : t.concat(m));
1846
1846
  }
1847
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (b = e.items) == null ? void 0 : b.map((m, v) => /* @__PURE__ */ $(ft.Fragment, { children: [
1847
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (b = e.items) == null ? void 0 : b.map((m, v) => /* @__PURE__ */ $(ft.Fragment, { children: [
1848
1848
  /* @__PURE__ */ s(
1849
1849
  "div",
1850
1850
  {
1851
- className: r(v),
1851
+ className: a(v),
1852
1852
  style: {
1853
1853
  ...o(),
1854
1854
  ...e.grid && {
@@ -2106,7 +2106,7 @@ const Rn = {
2106
2106
  });
2107
2107
  }
2108
2108
  const n = e.get("columns");
2109
- Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((o) => !o.get("width")) || n.reduce((l, c) => l + c.get("width"), 0) !== 100) && t();
2109
+ Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((o) => !o.get("width")) || n.reduce((l, c) => l + c.get("width"), 0) !== 100) && t();
2110
2110
  }
2111
2111
  }, {
2112
2112
  name: "space",
@@ -2160,7 +2160,7 @@ const Rn = {
2160
2160
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
2161
2161
  onChange: (e) => {
2162
2162
  e.delete("srcset"), e.delete("noWebp");
2163
- function n(r, l = 6e4) {
2163
+ function n(a, l = 6e4) {
2164
2164
  return new Promise((c, u) => {
2165
2165
  const f = document.createElement("img");
2166
2166
  let b = !1;
@@ -2168,21 +2168,21 @@ const Rn = {
2168
2168
  b = !0, c(f);
2169
2169
  }, f.addEventListener("error", (m) => {
2170
2170
  console.warn("Image load failed", m.error), u(m.error);
2171
- }), f.src = r, setTimeout(() => {
2171
+ }), f.src = a, setTimeout(() => {
2172
2172
  b || u(new Error("Image load timed out"));
2173
2173
  }, l);
2174
2174
  });
2175
2175
  }
2176
- function i(r) {
2177
- return Math.round(r * 1e3) / 1e3;
2176
+ function i(a) {
2177
+ return Math.round(a * 1e3) / 1e3;
2178
2178
  }
2179
- const a = e.get("image"), o = e.get("aspectRatio");
2180
- if (fetch(a).then((r) => r.blob()).then((r) => {
2181
- r.type.includes("svg") && e.set("noWebp", !0);
2182
- }), a && (!o || o === 0.7041))
2183
- return n(a).then((r) => {
2179
+ const r = e.get("image"), o = e.get("aspectRatio");
2180
+ if (fetch(r).then((a) => a.blob()).then((a) => {
2181
+ a.type.includes("svg") && e.set("noWebp", !0);
2182
+ }), r && (!o || o === 0.7041))
2183
+ return n(r).then((a) => {
2184
2184
  const l = e.get("aspectRatio");
2185
- e.get("image") === a && (!l || l === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
2185
+ e.get("image") === r && (!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));
2186
2186
  });
2187
2187
  }
2188
2188
  }, {
@@ -2303,7 +2303,7 @@ function $n(e) {
2303
2303
  var S, k, A, T, I, g, x, w, D, L, W, P, U;
2304
2304
  const t = H(null), [n, i] = C(
2305
2305
  () => Ce.getUserAttributes()
2306
- ), [a, o] = C(
2306
+ ), [r, o] = C(
2307
2307
  () => {
2308
2308
  var E, B, N;
2309
2309
  return Tn(
@@ -2312,7 +2312,7 @@ function $n(e) {
2312
2312
  (N = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : N.locale
2313
2313
  );
2314
2314
  }
2315
- ), [r, l] = C(
2315
+ ), [a, l] = C(
2316
2316
  () => {
2317
2317
  var E, B, N;
2318
2318
  return In(
@@ -2381,12 +2381,12 @@ function $n(e) {
2381
2381
  fireImmediately: F === "qwik"
2382
2382
  }
2383
2383
  );
2384
- if (!(O() || oe())) {
2384
+ if (!(O() || le())) {
2385
2385
  const N = h()[0];
2386
2386
  t.current && (t.current.dispatchEvent(
2387
2387
  new CustomEvent("builder.variantLoaded", {
2388
2388
  detail: {
2389
- variant: N || ne,
2389
+ variant: N || ie,
2390
2390
  content: (B = e.builderContext) == null ? void 0 : B.content
2391
2391
  },
2392
2392
  bubbles: !0
@@ -2397,7 +2397,7 @@ function $n(e) {
2397
2397
  te.isIntersecting && t.current && t.current.dispatchEvent(
2398
2398
  new CustomEvent("builder.variantDisplayed", {
2399
2399
  detail: {
2400
- variant: N || ne,
2400
+ variant: N || ie,
2401
2401
  content: (G = e.builderContext) == null ? void 0 : G.content
2402
2402
  },
2403
2403
  bubbles: !0
@@ -2410,7 +2410,7 @@ function $n(e) {
2410
2410
  }, []), V(() => () => {
2411
2411
  c.forEach((E) => E());
2412
2412
  }, []), /* @__PURE__ */ $("div", { ref: t, ...d(), children: [
2413
- m && ie.includes(F) ? /* @__PURE__ */ s(
2413
+ m && re.includes(F) ? /* @__PURE__ */ s(
2414
2414
  _,
2415
2415
  {
2416
2416
  blocks: p().blocks,
@@ -2424,7 +2424,7 @@ function $n(e) {
2424
2424
  }
2425
2425
  }
2426
2426
  ) : null,
2427
- !m && ie.includes(F) || !ie.includes(F) ? /* @__PURE__ */ $(R, { children: [
2427
+ !m && re.includes(F) || !re.includes(F) ? /* @__PURE__ */ $(R, { children: [
2428
2428
  f ? /* @__PURE__ */ $(R, { children: [
2429
2429
  /* @__PURE__ */ s(
2430
2430
  ee,
@@ -2438,7 +2438,7 @@ function $n(e) {
2438
2438
  q,
2439
2439
  {
2440
2440
  nonce: ((g = e.builderContext) == null ? void 0 : g.nonce) || "",
2441
- scriptStr: r,
2441
+ scriptStr: a,
2442
2442
  id: `variants-visibility-script-${(x = e.builderBlock) == null ? void 0 : x.id}`
2443
2443
  }
2444
2444
  ),
@@ -2462,7 +2462,7 @@ function $n(e) {
2462
2462
  q,
2463
2463
  {
2464
2464
  nonce: ((te = e.builderContext) == null ? void 0 : te.nonce) || "",
2465
- scriptStr: a,
2465
+ scriptStr: r,
2466
2466
  id: `variants-script-${(G = e.builderBlock) == null ? void 0 : G.id}-${B}`
2467
2467
  }
2468
2468
  )
@@ -2487,8 +2487,8 @@ function $n(e) {
2487
2487
  q,
2488
2488
  {
2489
2489
  nonce: ((P = e.builderContext) == null ? void 0 : P.nonce) || "",
2490
- scriptStr: a,
2491
- id: `variants-script-${(U = e.builderBlock) == null ? void 0 : U.id}-${ne}`
2490
+ scriptStr: r,
2491
+ id: `variants-script-${(U = e.builderBlock) == null ? void 0 : U.id}-${ie}`
2492
2492
  }
2493
2493
  ) : null
2494
2494
  }
@@ -2763,11 +2763,11 @@ function _n(e) {
2763
2763
  const [t, n] = C(
2764
2764
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
2765
2765
  );
2766
- function i(r) {
2767
- return e.tabs && e.tabs[r].content;
2766
+ function i(a) {
2767
+ return e.tabs && e.tabs[a].content;
2768
2768
  }
2769
- function a(r) {
2770
- r === t && e.collapsible ? n(-1) : n(r);
2769
+ function r(a) {
2770
+ a === t && e.collapsible ? n(-1) : n(a);
2771
2771
  }
2772
2772
  return /* @__PURE__ */ $("div", { children: [
2773
2773
  /* @__PURE__ */ s(
@@ -2780,20 +2780,20 @@ function _n(e) {
2780
2780
  justifyContent: e.tabHeaderLayout || "flex-start",
2781
2781
  overflow: "auto"
2782
2782
  },
2783
- children: (o = e.tabs) == null ? void 0 : o.map((r, l) => /* @__PURE__ */ s(
2783
+ children: (o = e.tabs) == null ? void 0 : o.map((a, l) => /* @__PURE__ */ s(
2784
2784
  "span",
2785
2785
  {
2786
2786
  className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
2787
2787
  style: {
2788
2788
  ...t === l ? e.activeTabStyle : {}
2789
2789
  },
2790
- onClick: (c) => a(l),
2790
+ onClick: (c) => r(l),
2791
2791
  children: /* @__PURE__ */ s(
2792
2792
  _,
2793
2793
  {
2794
2794
  parent: e.builderBlock.id,
2795
2795
  path: `tabs.${l}.label`,
2796
- blocks: r.label,
2796
+ blocks: a.label,
2797
2797
  context: e.builderContext,
2798
2798
  registeredComponents: e.builderComponents,
2799
2799
  linkComponent: e.builderLinkComponent
@@ -2874,8 +2874,8 @@ const Mn = {
2874
2874
  }]
2875
2875
  };
2876
2876
  function qn(e) {
2877
- const t = H(null), [n, i] = C(() => []), [a, o] = C(() => []);
2878
- function r() {
2877
+ const t = H(null), [n, i] = C(() => []), [r, o] = C(() => []);
2878
+ function a() {
2879
2879
  var c;
2880
2880
  if (!t.current || !((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
2881
2881
  return;
@@ -2893,10 +2893,10 @@ function qn(e) {
2893
2893
  "application/javascript",
2894
2894
  "application/ecmascript"
2895
2895
  ].includes(f.type)) {
2896
- if (a.includes(f.innerText))
2896
+ if (r.includes(f.innerText))
2897
2897
  continue;
2898
2898
  try {
2899
- a.push(f.innerText), new Function(f.innerText)();
2899
+ r.push(f.innerText), new Function(f.innerText)();
2900
2900
  } catch (b) {
2901
2901
  Z.warn(
2902
2902
  "[BUILDER.IO] `CustomCode`: Error running script:",
@@ -2907,9 +2907,9 @@ function qn(e) {
2907
2907
  }
2908
2908
  }
2909
2909
  return V(() => {
2910
- r();
2910
+ a();
2911
2911
  }, []), V(() => {
2912
- O() && r();
2912
+ O() && a();
2913
2913
  }, [e.code]), /* @__PURE__ */ s(
2914
2914
  "div",
2915
2915
  {
@@ -2936,7 +2936,7 @@ const jn = {
2936
2936
  }]
2937
2937
  }, zn = ["text/javascript", "application/javascript", "application/ecmascript"], Kn = (e) => zn.includes(e.type);
2938
2938
  function Jn(e) {
2939
- const t = H(null), [n, i] = C(() => []), [a, o] = C(() => []), [r, l] = C(() => !1);
2939
+ const t = H(null), [n, i] = C(() => []), [r, o] = C(() => []), [a, l] = C(() => !1);
2940
2940
  function c() {
2941
2941
  if (!t.current || !t.current.getElementsByTagName)
2942
2942
  return;
@@ -2947,17 +2947,17 @@ function Jn(e) {
2947
2947
  n.push(b.src);
2948
2948
  const m = document.createElement("script");
2949
2949
  m.async = !0, m.src = b.src, document.head.appendChild(m);
2950
- } else if (Kn(b) && !a.includes(b.innerText))
2950
+ } else if (Kn(b) && !r.includes(b.innerText))
2951
2951
  try {
2952
- a.push(b.innerText), new Function(b.innerText)();
2952
+ r.push(b.innerText), new Function(b.innerText)();
2953
2953
  } catch (m) {
2954
2954
  Z.warn("[BUILDER.IO] `Embed`: Error running script:", m);
2955
2955
  }
2956
2956
  }
2957
2957
  }
2958
2958
  return V(() => {
2959
- t.current && !r && (l(!0), c());
2960
- }, [t.current, r]), /* @__PURE__ */ s(
2959
+ t.current && !a && (l(!0), c());
2960
+ }, [t.current, a]), /* @__PURE__ */ s(
2961
2961
  "div",
2962
2962
  {
2963
2963
  className: "builder-embed",
@@ -3208,7 +3208,7 @@ const Gn = {
3208
3208
  return Qn.includes(e) ? e : "production";
3209
3209
  };
3210
3210
  function Xn(e) {
3211
- const t = H(null), [n, i] = C(() => "unsubmitted"), [a, o] = C(() => null), [r, l] = C(() => "");
3211
+ const t = H(null), [n, i] = C(() => "unsubmitted"), [r, o] = C(() => null), [a, l] = C(() => "");
3212
3212
  function c(b) {
3213
3213
  var v, d;
3214
3214
  const m = {
@@ -3356,7 +3356,7 @@ function Xn(e) {
3356
3356
  context: e.builderContext
3357
3357
  }
3358
3358
  ) : null,
3359
- u() === "error" && a ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7c90c93e", children: JSON.stringify(a, null, 2) }) : null,
3359
+ u() === "error" && r ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7c90c93e", children: JSON.stringify(r, null, 2) }) : null,
3360
3360
  u() === "success" ? /* @__PURE__ */ s(
3361
3361
  _,
3362
3362
  {
@@ -3522,10 +3522,10 @@ const ii = {
3522
3522
  // TODO: defaultChildren
3523
3523
  // canHaveChildren: true,
3524
3524
  };
3525
- function ai(e) {
3525
+ function ri(e) {
3526
3526
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
3527
3527
  }
3528
- const ri = {
3528
+ const ai = {
3529
3529
  name: "Form:TextArea",
3530
3530
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
3531
3531
  inputs: [{
@@ -3591,15 +3591,22 @@ const li = {
3591
3591
  static: !0
3592
3592
  };
3593
3593
  function si(e) {
3594
+ function t() {
3595
+ const n = e.imgSrc || e.image;
3596
+ if (!(!n || typeof n != "string") && n.match(/builder\.io/))
3597
+ return ne(n);
3598
+ }
3594
3599
  return /* @__PURE__ */ s(
3595
3600
  "img",
3596
3601
  {
3602
+ loading: "lazy",
3597
3603
  style: {
3598
3604
  objectFit: e.backgroundSize || "cover",
3599
3605
  objectPosition: e.backgroundPosition || "center"
3600
3606
  },
3601
3607
  alt: e.altText,
3602
3608
  src: e.imgSrc || e.image,
3609
+ srcSet: t(),
3603
3610
  ...e.attributes
3604
3611
  },
3605
3612
  O() && e.imgSrc || "default-key"
@@ -3691,7 +3698,7 @@ const ci = {
3691
3698
  }
3692
3699
  };
3693
3700
  function ui(e) {
3694
- var r, l, c, u, f, b, m;
3701
+ var a, l, c, u, f, b, m;
3695
3702
  const t = H(null);
3696
3703
  function n() {
3697
3704
  return {
@@ -3717,7 +3724,7 @@ function ui(e) {
3717
3724
  ...n()
3718
3725
  };
3719
3726
  }
3720
- const [a, o] = C(() => {
3727
+ const [r, o] = C(() => {
3721
3728
  });
3722
3729
  return V(() => {
3723
3730
  if (e.lazyLoad) {
@@ -3741,7 +3748,7 @@ function ui(e) {
3741
3748
  t.current && v.observe(t.current), o(v);
3742
3749
  }
3743
3750
  }, []), V(() => () => {
3744
- a && a.disconnect();
3751
+ r && r.disconnect();
3745
3752
  }, []), /* @__PURE__ */ $(
3746
3753
  "div",
3747
3754
  {
@@ -3759,7 +3766,7 @@ function ui(e) {
3759
3766
  style: {
3760
3767
  width: "100%",
3761
3768
  height: "100%",
3762
- ...(r = e.attributes) == null ? void 0 : r.style,
3769
+ ...(a = e.attributes) == null ? void 0 : a.style,
3763
3770
  objectFit: e.fit,
3764
3771
  objectPosition: e.position,
3765
3772
  // Hack to get object fit to work as expected and
@@ -3839,14 +3846,14 @@ const di = () => [{
3839
3846
  component: ei,
3840
3847
  ...Zn
3841
3848
  }, {
3842
- component: ai,
3849
+ component: ri,
3843
3850
  ...ii
3844
3851
  }, {
3845
3852
  component: ni,
3846
3853
  ...ti
3847
3854
  }, {
3848
3855
  component: oi,
3849
- ...ri
3856
+ ...ai
3850
3857
  }, {
3851
3858
  component: si,
3852
3859
  ...li
@@ -3979,7 +3986,7 @@ const di = () => [{
3979
3986
  thisScriptEl?.remove();
3980
3987
  }
3981
3988
  return;
3982
- }`, at = "builderIoAbTest", rt = "builderIoRenderContent", ae = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3989
+ }`, rt = "builderIoAbTest", at = "builderIoRenderContent", ae = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3983
3990
  ...t,
3984
3991
  testVariationId: t.id,
3985
3992
  id: e == null ? void 0 : e.id
@@ -3987,15 +3994,15 @@ const di = () => [{
3987
3994
  canTrack: e,
3988
3995
  content: t
3989
3996
  }) => !(!(ae(t).length > 0) || !e || K()), gi = (e) => e === "react" || e === "reactNative", bi = F === "angular", ot = gi(F), yi = () => `
3990
- window.${at} = ${mi}
3991
- window.${rt} = ${fi}
3997
+ window.${rt} = ${mi}
3998
+ window.${at} = ${fi}
3992
3999
  `, pi = (e, t) => `
3993
- window.${at}(
4000
+ window.${rt}(
3994
4001
  "${t}",${JSON.stringify(e)}, ${ot}, ${bi}
3995
4002
  )`, vi = ({
3996
4003
  contentId: e,
3997
4004
  variationId: t
3998
- }) => `window.${rt}(
4005
+ }) => `window.${at}(
3999
4006
  "${t}", "${e}", ${ot}
4000
4007
  )`;
4001
4008
  function Ne(e) {
@@ -4019,10 +4026,10 @@ const xi = (e, t, n = !0) => {
4019
4026
  event: e,
4020
4027
  target: t
4021
4028
  }) => {
4022
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, o = Ne(i / n.width), r = Ne(a / n.height);
4029
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, r = e.clientY - n.top, o = Ne(i / n.width), a = Ne(r / n.height);
4023
4030
  return {
4024
4031
  x: o,
4025
- y: r
4032
+ y: a
4026
4033
  };
4027
4034
  }, ki = (e) => {
4028
4035
  const t = e.target, n = t && Si(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
@@ -4040,11 +4047,11 @@ const xi = (e, t, n = !0) => {
4040
4047
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
4041
4048
  }
4042
4049
  };
4043
- }, Ci = ["svelte", "qwik", "vue"], We = () => Ci.includes(F) && (O() || oe()), Ti = (e) => {
4044
- var o, r;
4045
- const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
4046
- let a = "";
4047
- if (i && t && n && (a += `
4050
+ }, Ci = ["svelte", "qwik", "vue"], We = () => Ci.includes(F) && (O() || le()), Ti = (e) => {
4051
+ var o, a;
4052
+ const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
4053
+ let r = "";
4054
+ if (i && t && n && (r += `
4048
4055
  @font-face {
4049
4056
  font-family: "${t}";
4050
4057
  src: local("${n}"), url('${i}') format('woff2');
@@ -4056,7 +4063,7 @@ font-weight: 400;
4056
4063
  if (!(String(Number(l)) === l))
4057
4064
  continue;
4058
4065
  const u = e.files[l];
4059
- u && u !== i && (a += `
4066
+ u && u !== i && (r += `
4060
4067
  @font-face {
4061
4068
  font-family: "${t}";
4062
4069
  src: url('${u}') format('woff2');
@@ -4065,7 +4072,7 @@ font-weight: ${l};
4065
4072
  }
4066
4073
  `.trim());
4067
4074
  }
4068
- return a;
4075
+ return r;
4069
4076
  }, Ii = ({
4070
4077
  customFonts: e
4071
4078
  }) => {
@@ -4127,13 +4134,13 @@ function Vi(e) {
4127
4134
  content: I
4128
4135
  }));
4129
4136
  }
4130
- function a() {
4137
+ function r() {
4131
4138
  return e.showContent ? {} : {
4132
4139
  hidden: !0,
4133
4140
  "aria-hidden": !0
4134
4141
  };
4135
4142
  }
4136
- const [o, r] = C(
4143
+ const [o, a] = C(
4137
4144
  () => e.contentWrapper || "div"
4138
4145
  );
4139
4146
  function l(T) {
@@ -4268,7 +4275,7 @@ function Vi(e) {
4268
4275
  variationId: L !== P ? L : void 0
4269
4276
  });
4270
4277
  }
4271
- if (oe() && !O()) {
4278
+ if (le() && !O()) {
4272
4279
  const P = new URL(location.href).searchParams, U = P.get("builder.preview"), E = P.get(
4273
4280
  `builder.overrides.${U}`
4274
4281
  ), B = P.get("apiKey") || P.get("builder.space");
@@ -4314,7 +4321,7 @@ function Vi(e) {
4314
4321
  style: {
4315
4322
  display: !e.builderContextSignal.content && We() ? "none" : void 0
4316
4323
  },
4317
- ...a(),
4324
+ ...r(),
4318
4325
  ...e.contentWrapperProps,
4319
4326
  children: e.children
4320
4327
  }
@@ -4347,13 +4354,13 @@ const Bi = ({
4347
4354
  data: t,
4348
4355
  locale: n
4349
4356
  }) => {
4350
- var o, r, l;
4351
- const i = {}, a = ((o = e == null ? void 0 : e.data) == null ? void 0 : o.state) || {};
4352
- return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((c) => {
4357
+ var o, a, l;
4358
+ const i = {}, r = ((o = e == null ? void 0 : e.data) == null ? void 0 : o.state) || {};
4359
+ return (l = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || l.forEach((c) => {
4353
4360
  c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
4354
4361
  }), {
4355
4362
  ...i,
4356
- ...a,
4363
+ ...r,
4357
4364
  ...t,
4358
4365
  ...n ? {
4359
4366
  locale: n
@@ -4389,7 +4396,7 @@ function De(e) {
4389
4396
  rootState: S
4390
4397
  }));
4391
4398
  }
4392
- const [a, o] = C(
4399
+ const [r, o] = C(
4393
4400
  () => [
4394
4401
  ...Be(),
4395
4402
  ...e.customComponents || []
@@ -4403,7 +4410,7 @@ function De(e) {
4403
4410
  }),
4404
4411
  {}
4405
4412
  )
4406
- ), [r, l] = C(() => ({
4413
+ ), [a, l] = C(() => ({
4407
4414
  content: Ni({
4408
4415
  content: e.content,
4409
4416
  data: e.data
@@ -4439,14 +4446,14 @@ function De(e) {
4439
4446
  e.apiKey || Z.error(
4440
4447
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4441
4448
  );
4442
- const S = (f = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : f.jsCode;
4449
+ const S = (f = (u = a.content) == null ? void 0 : u.data) == null ? void 0 : f.jsCode;
4443
4450
  S && J({
4444
4451
  code: S,
4445
4452
  context: e.context || {},
4446
4453
  localState: void 0,
4447
- rootState: r.rootState,
4454
+ rootState: a.rootState,
4448
4455
  rootSetState: (k) => {
4449
- Object.assign(r.rootState, k);
4456
+ Object.assign(a.rootState, k);
4450
4457
  },
4451
4458
  isExpression: !1
4452
4459
  }), c.current = !0;
@@ -4455,7 +4462,7 @@ function De(e) {
4455
4462
  He.Provider,
4456
4463
  {
4457
4464
  value: {
4458
- registeredComponents: a
4465
+ registeredComponents: r
4459
4466
  },
4460
4467
  children: /* @__PURE__ */ $(
4461
4468
  Vi,
@@ -4471,7 +4478,7 @@ function De(e) {
4471
4478
  locale: e.locale,
4472
4479
  enrich: e.enrich,
4473
4480
  showContent: e.showContent,
4474
- builderContextSignal: r,
4481
+ builderContextSignal: a,
4475
4482
  contentWrapper: e.contentWrapper,
4476
4483
  contentWrapperProps: e.contentWrapperProps,
4477
4484
  trustedHosts: e.trustedHosts,
@@ -4491,17 +4498,17 @@ function De(e) {
4491
4498
  {
4492
4499
  nonce: e.nonce || "",
4493
4500
  isNestedRender: e.isNestedRender,
4494
- contentId: (b = r.content) == null ? void 0 : b.id,
4495
- cssCode: (v = (m = r.content) == null ? void 0 : m.data) == null ? void 0 : v.cssCode,
4496
- customFonts: (h = (d = r.content) == null ? void 0 : d.data) == null ? void 0 : h.customFonts
4501
+ contentId: (b = a.content) == null ? void 0 : b.id,
4502
+ cssCode: (v = (m = a.content) == null ? void 0 : m.data) == null ? void 0 : v.cssCode,
4503
+ customFonts: (h = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : h.customFonts
4497
4504
  }
4498
4505
  ),
4499
4506
  /* @__PURE__ */ s(
4500
4507
  _,
4501
4508
  {
4502
- blocks: (y = (p = r.content) == null ? void 0 : p.data) == null ? void 0 : y.blocks,
4503
- context: r,
4504
- registeredComponents: a,
4509
+ blocks: (y = (p = a.content) == null ? void 0 : p.data) == null ? void 0 : y.blocks,
4510
+ context: a,
4511
+ registeredComponents: r,
4505
4512
  linkComponent: e.linkComponent
4506
4513
  }
4507
4514
  )
@@ -4512,7 +4519,7 @@ function De(e) {
4512
4519
  );
4513
4520
  }
4514
4521
  function $i(e) {
4515
- var r;
4522
+ var a;
4516
4523
  const [t, n] = C(
4517
4524
  () => hi({
4518
4525
  canTrack: X(e.canTrack),
@@ -4529,7 +4536,7 @@ function $i(e) {
4529
4536
  ((l = e.content) == null ? void 0 : l.id) || ""
4530
4537
  );
4531
4538
  }
4532
- function a() {
4539
+ function r() {
4533
4540
  return ae(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
4534
4541
  }
4535
4542
  function o() {
@@ -4567,7 +4574,7 @@ function $i(e) {
4567
4574
  ee,
4568
4575
  {
4569
4576
  id: "builderio-variants",
4570
- styles: a(),
4577
+ styles: r(),
4571
4578
  nonce: e.nonce || ""
4572
4579
  }
4573
4580
  ),
@@ -4579,7 +4586,7 @@ function $i(e) {
4579
4586
  nonce: e.nonce || ""
4580
4587
  }
4581
4588
  ),
4582
- (r = ae(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
4589
+ (a = ae(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
4583
4590
  De,
4584
4591
  {
4585
4592
  apiHost: e.apiHost,
@@ -4671,16 +4678,16 @@ function Di(e) {
4671
4678
  (h = e.symbol) != null && h.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4672
4679
  ].filter(Boolean).join(" ");
4673
4680
  }
4674
- const [a, o] = C(() => {
4681
+ const [r, o] = C(() => {
4675
4682
  var d;
4676
4683
  return (d = e.symbol) == null ? void 0 : d.content;
4677
- }), [r, l] = C(() => {
4684
+ }), [a, l] = C(() => {
4678
4685
  var d;
4679
4686
  return (d = e.symbol) == null ? void 0 : d.entry;
4680
4687
  });
4681
4688
  function c() {
4682
4689
  var d;
4683
- a && r === ((d = e.symbol) == null ? void 0 : d.entry) || Wi({
4690
+ r && a === ((d = e.symbol) == null ? void 0 : d.entry) || Wi({
4684
4691
  symbol: e.symbol,
4685
4692
  builderContextValue: e.builderContext
4686
4693
  }).then((h) => {
@@ -4706,11 +4713,11 @@ function Di(e) {
4706
4713
  data: {
4707
4714
  ...(f = e.symbol) == null ? void 0 : f.data,
4708
4715
  ...e.builderContext.localState,
4709
- ...(b = a == null ? void 0 : a.data) == null ? void 0 : b.state
4716
+ ...(b = r == null ? void 0 : r.data) == null ? void 0 : b.state
4710
4717
  },
4711
4718
  canTrack: e.builderContext.canTrack,
4712
4719
  model: (v = (m = e.symbol) == null ? void 0 : m.model) != null ? v : "",
4713
- content: a,
4720
+ content: r,
4714
4721
  linkComponent: e.builderLinkComponent,
4715
4722
  blocksWrapper: t(),
4716
4723
  contentWrapper: n()