@builder.io/sdk-react 4.0.0 → 4.0.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 (66) hide show
  1. package/lib/browser/blocks-exports.cjs +8 -8
  2. package/lib/browser/blocks-exports.mjs +343 -340
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/server-entry-0e0758cb.cjs +2 -0
  6. package/lib/browser/{server-entry-422fad84.js → server-entry-403d3877.js} +8 -1
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/{accordion-2f83fc75.cjs → accordion-02a74a7b.cjs} +1 -1
  10. package/lib/edge/{accordion-e1b77652.js → accordion-46e5b47a.js} +1 -1
  11. package/lib/edge/{blocks-0885e182.js → blocks-27f4c960.js} +2 -2
  12. package/lib/edge/{blocks-5165c164.cjs → blocks-43b7cd64.cjs} +1 -1
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +2 -2
  15. package/lib/edge/{button-d7197e96.cjs → button-b1f2e20e.cjs} +1 -1
  16. package/lib/edge/{button-d878f35c.js → button-c26a8cc8.js} +2 -2
  17. package/lib/edge/{columns-46729516.cjs → columns-5a3e9ac8.cjs} +1 -1
  18. package/lib/edge/{columns-b365c86a.js → columns-9a6cd1b4.js} +3 -3
  19. package/lib/edge/{content-variants-1594c868.js → content-variants-3085ec74.js} +26 -23
  20. package/lib/edge/{content-variants-c6cab1c3.cjs → content-variants-eff73ca9.cjs} +5 -5
  21. package/lib/edge/{form-9844766c.cjs → form-bf3ca65d.cjs} +1 -1
  22. package/lib/edge/{form-b66c20a3.js → form-f2aa1c12.js} +3 -3
  23. package/lib/edge/{get-class-prop-name-0b992cfb.cjs → get-class-prop-name-7cdcaf94.cjs} +1 -1
  24. package/lib/edge/{get-class-prop-name-dac81472.js → get-class-prop-name-e41a3976.js} +1 -1
  25. package/lib/edge/{img-c4a772a8.js → img-2a060e61.js} +1 -1
  26. package/lib/edge/{img-fb35350a.cjs → img-2c718c5f.cjs} +1 -1
  27. package/lib/edge/index.cjs +1 -1
  28. package/lib/edge/index.mjs +1 -1
  29. package/lib/edge/{input-122768ac.cjs → input-213f973c.cjs} +1 -1
  30. package/lib/edge/{input-57c5b097.js → input-f270ae3b.js} +1 -1
  31. package/lib/edge/{personalization-container-a17ae615.cjs → personalization-container-b03bc073.cjs} +1 -1
  32. package/lib/edge/{personalization-container-7e63edce.js → personalization-container-b85b14c3.js} +4 -4
  33. package/lib/edge/{select-7f750b70.cjs → select-d6ff55b2.cjs} +1 -1
  34. package/lib/edge/{select-3d4324ef.js → select-e12e1a87.js} +1 -1
  35. package/lib/edge/{server-entry-c1673af2.js → server-entry-b94c45af.js} +8 -1
  36. package/lib/edge/server-entry-d0313f00.cjs +2 -0
  37. package/lib/edge/server-entry.cjs +1 -1
  38. package/lib/edge/server-entry.mjs +1 -1
  39. package/lib/edge/{slot-05ef18a0.js → slot-2670ac48.js} +3 -3
  40. package/lib/edge/{slot-123c0993.cjs → slot-5ee0ac5d.cjs} +1 -1
  41. package/lib/edge/{symbol-ee314d5a.cjs → symbol-7e58faf5.cjs} +1 -1
  42. package/lib/edge/{symbol-f488bea0.js → symbol-a0b2e083.js} +2 -2
  43. package/lib/edge/{tabs-edb82022.cjs → tabs-1f475bd4.cjs} +1 -1
  44. package/lib/edge/{tabs-244d53fa.js → tabs-931291c4.js} +3 -3
  45. package/lib/node/blocks-exports.cjs +8 -8
  46. package/lib/node/blocks-exports.mjs +123 -120
  47. package/lib/node/index.cjs +1 -1
  48. package/lib/node/index.mjs +3 -3
  49. package/lib/node/init.cjs +1 -1
  50. package/lib/node/init.mjs +3 -3
  51. package/lib/node/server-entry-24943b12.cjs +2 -0
  52. package/lib/node/{server-entry-4df60fc5.js → server-entry-a017e97a.js} +8 -1
  53. package/lib/node/server-entry.cjs +1 -1
  54. package/lib/node/server-entry.mjs +1 -1
  55. package/lib/node/{setIvm-0edfc727.js → setIvm-0a7e7bf0.js} +1 -1
  56. package/lib/node/{setIvm-6405aa63.cjs → setIvm-dcd69a69.cjs} +1 -1
  57. package/lib/node/setIvm.cjs +1 -1
  58. package/lib/node/setIvm.mjs +2 -2
  59. package/lib/node/{should-force-browser-runtime-in-node-6d4dbff9.cjs → should-force-browser-runtime-in-node-0ca8d8b1.cjs} +1 -1
  60. package/lib/node/{should-force-browser-runtime-in-node-7a39b073.js → should-force-browser-runtime-in-node-c51ac820.js} +1 -1
  61. package/package.json +1 -1
  62. package/types/constants/sdk-version.d.ts +1 -1
  63. package/types/helpers/subscribe-to-editor.d.ts +2 -0
  64. package/lib/browser/server-entry-916191b4.cjs +0 -2
  65. package/lib/edge/server-entry-77166102.cjs +0 -2
  66. package/lib/node/server-entry-8ab8c78b.cjs +0 -2
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { TARGET as O, isEditing as W, isBrowser as F, getUserAttributes as Je, checkIsDefined as K, logger as Q, isPreviewing as Y, userAttributesService as fe, getDefaultCanTrack as M, logFetch as Ee, registerInsertMenu as Ge, setupBrowserForEditing as Qe, createRegisterComponentMessage as Ye, _track as he, fetchOneEntry as Re, createEditorListener as Xe, serializeIncludingFunctions as ge, handleABTestingSync as Ze } from "./server-entry-422fad84.js";
3
- import { setClientUserAttributes as ki } from "./server-entry-422fad84.js";
2
+ import { TARGET as O, isEditing as W, isBrowser as F, getUserAttributes as Je, checkIsDefined as K, logger as Q, isPreviewing as Y, userAttributesService as fe, getDefaultCanTrack as M, logFetch as Ee, registerInsertMenu as Ge, setupBrowserForEditing as Qe, createRegisterComponentMessage as Ye, _track as he, fetchOneEntry as Re, createEditorListener as Xe, serializeIncludingFunctions as ge, handleABTestingSync as Ze } from "./server-entry-403d3877.js";
3
+ import { setClientUserAttributes as ki } from "./server-entry-403d3877.js";
4
4
  import { jsx as s, Fragment as R, jsxs as A } from "react/jsx-runtime";
5
5
  import * as et from "react";
6
6
  import { createContext as Pe, useEffect as B, useState as E, useRef as $, useContext as be, createElement as Ve } from "react";
@@ -62,9 +62,9 @@ const se = Pe({
62
62
  nonce: "",
63
63
  model: ""
64
64
  }), Be = Pe({ registeredComponents: {} }), Ne = (e, t, n) => {
65
- const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
65
+ const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((a, o) => a != null ? a[o] : a, e);
66
66
  return i === void 0 || i === e ? n : i;
67
- }, ot = ({
67
+ }, at = ({
68
68
  builder: e,
69
69
  context: t,
70
70
  event: n,
@@ -76,7 +76,7 @@ const se = Pe({
76
76
  builder: e,
77
77
  context: t,
78
78
  event: n
79
- }), at = () => ({
79
+ }), ot = () => ({
80
80
  isEditing: W(),
81
81
  isBrowser: F(),
82
82
  isServer: !F(),
@@ -90,22 +90,22 @@ function Ae({
90
90
  rootSetState: n
91
91
  }) {
92
92
  return new Proxy(e, {
93
- get: (i, o) => {
94
- if (t && o in t)
95
- return t[o];
96
- const a = i[o];
97
- return typeof a == "object" && a !== null ? Ae({
98
- rootState: a,
93
+ get: (i, a) => {
94
+ if (t && a in t)
95
+ return t[a];
96
+ const o = i[a];
97
+ return typeof o == "object" && o !== null ? Ae({
98
+ rootState: o,
99
99
  localState: void 0,
100
100
  rootSetState: n ? (r) => {
101
- i[o] = r, n(i);
101
+ i[a] = r, n(i);
102
102
  } : void 0
103
- }) : a;
103
+ }) : o;
104
104
  },
105
- set: (i, o, a) => {
106
- if (t && o in t)
105
+ set: (i, a, o) => {
106
+ if (t && a in t)
107
107
  throw new Error("Writing to local state is not allowed as it is read-only.");
108
- return i[o] = a, n == null || n(i), !0;
108
+ return i[a] = o, n == null || n(i), !0;
109
109
  }
110
110
  });
111
111
  }
@@ -114,18 +114,18 @@ const pe = ({
114
114
  builder: t,
115
115
  context: n,
116
116
  event: i,
117
- localState: o,
118
- rootSetState: a,
117
+ localState: a,
118
+ rootSetState: o,
119
119
  rootState: r
120
120
  }) => {
121
- const l = ot({
121
+ const l = at({
122
122
  builder: t,
123
123
  context: n,
124
124
  event: i,
125
125
  state: Ae({
126
126
  rootState: r,
127
- localState: o,
128
- rootSetState: a
127
+ localState: a,
128
+ rootSetState: o
129
129
  })
130
130
  });
131
131
  return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
@@ -137,24 +137,24 @@ function lt() {
137
137
  const st = ({
138
138
  shouldLogWarning: e
139
139
  }) => {
140
- var o;
140
+ var a;
141
141
  if (!lt())
142
142
  return !1;
143
- const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
143
+ const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (a = process.env.NODE_OPTIONS) == null ? void 0 : a.includes("--no-node-snapshot");
144
144
  return t && n && !i ? (e && Q.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
145
145
  }, ct = (e) => (F() || st({
146
146
  shouldLogWarning: !0
147
147
  }), pe(e)), ut = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, dt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, mt = (e) => {
148
- var t, n, i, o, a, r;
149
- return ((i = (n = (t = ut.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((r = (a = (o = dt.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : a.getPath) == null ? void 0 : r.slice(1));
148
+ var t, n, i, a, o, r;
149
+ return ((i = (n = (t = ut.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((r = (o = (a = dt.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : o.getPath) == null ? void 0 : r.slice(1));
150
150
  };
151
151
  function L({
152
152
  code: e,
153
153
  context: t,
154
154
  localState: n,
155
155
  rootState: i,
156
- rootSetState: o,
157
- event: a,
156
+ rootSetState: a,
157
+ event: o,
158
158
  isExpression: r = !0
159
159
  }) {
160
160
  if (e.trim() === "")
@@ -169,10 +169,10 @@ function L({
169
169
  code: rt(e, {
170
170
  isExpression: r
171
171
  }),
172
- builder: at(),
172
+ builder: ot(),
173
173
  context: t,
174
- event: a,
175
- rootSetState: o,
174
+ event: o,
175
+ rootSetState: a,
176
176
  rootState: i,
177
177
  localState: n
178
178
  };
@@ -198,8 +198,8 @@ const ht = (e, t) => {
198
198
  if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
199
199
  return {
200
200
  ...e.component.options,
201
- text: e.component.options.text.replace(/{{([^}]+)}}/g, (o, a) => L({
202
- code: a,
201
+ text: e.component.options.text.replace(/{{([^}]+)}}/g, (a, o) => L({
202
+ code: o,
203
203
  context: t,
204
204
  localState: t.localState,
205
205
  rootState: t.rootState,
@@ -213,21 +213,21 @@ function gt(e, ...t) {
213
213
  delete n[i];
214
214
  return n;
215
215
  }
216
- function J(e, t, n = null, i = null, o = /* @__PURE__ */ new WeakSet()) {
216
+ function J(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
217
217
  if (e == null || typeof e != "object") {
218
- t(e, (a) => {
219
- n !== null && i !== null && (n[i] = a);
218
+ t(e, (o) => {
219
+ n !== null && i !== null && (n[i] = o);
220
220
  });
221
221
  return;
222
222
  }
223
- o.has(e) || (o.add(e), Array.isArray(e) ? e.forEach((a, r) => {
224
- t(a, (d) => {
223
+ a.has(e) || (a.add(e), Array.isArray(e) ? e.forEach((o, r) => {
224
+ t(o, (d) => {
225
225
  e[r] = d;
226
- }), J(a, t, e, r, o);
227
- }) : Object.entries(e).forEach(([a, r]) => {
226
+ }), J(o, t, e, r, a);
227
+ }) : Object.entries(e).forEach(([o, r]) => {
228
228
  t(r, (d) => {
229
- e[a] = d;
230
- }), J(r, t, e, a, o);
229
+ e[o] = d;
230
+ }), J(r, t, e, o, a);
231
231
  }));
232
232
  }
233
233
  function We(e) {
@@ -246,8 +246,8 @@ function bt(e) {
246
246
  }
247
247
  function pt(e, t) {
248
248
  return !e || !Object.getOwnPropertyNames(e).length ? {} : (J(e, (n, i) => {
249
- var o;
250
- We(n) && i((o = n[t]) != null ? o : void 0);
249
+ var a;
250
+ We(n) && i((a = n[t]) != null ? a : void 0);
251
251
  }), e);
252
252
  }
253
253
  function yt(e, t) {
@@ -258,7 +258,7 @@ const ce = (e) => JSON.parse(JSON.stringify(e)), De = (e, t, n) => {
258
258
  if (Object(e) !== e)
259
259
  return e;
260
260
  const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
261
- 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;
261
+ return i.slice(0, -1).reduce((a, o, r) => Object(a[o]) === a[o] ? a[o] : a[o] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
262
262
  };
263
263
  function re(e) {
264
264
  if (e === null || typeof e != "object")
@@ -303,59 +303,59 @@ const vt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), xt = (e) =
303
303
  context: t,
304
304
  localState: n,
305
305
  rootState: i,
306
- rootSetState: o
306
+ rootSetState: a
307
307
  }) => {
308
308
  if (!e.bindings)
309
309
  return e;
310
- const a = xt(e);
310
+ const o = xt(e);
311
311
  for (const r in e.bindings) {
312
312
  const l = e.bindings[r], d = L({
313
313
  code: l,
314
314
  localState: n,
315
315
  rootState: i,
316
- rootSetState: o,
316
+ rootSetState: a,
317
317
  context: t
318
318
  });
319
- De(a, r, d);
319
+ De(o, r, d);
320
320
  }
321
- return a;
321
+ return o;
322
322
  };
323
323
  function kt({
324
324
  block: e,
325
325
  context: t,
326
326
  localState: n,
327
327
  rootState: i,
328
- rootSetState: o
328
+ rootSetState: a
329
329
  }) {
330
- let a = yt(e, i.locale);
331
- return a = a, St({
332
- block: a,
330
+ let o = yt(e, i.locale);
331
+ return o = o, St({
332
+ block: o,
333
333
  localState: n,
334
334
  rootState: i,
335
- rootSetState: o,
335
+ rootSetState: a,
336
336
  context: t
337
337
  });
338
338
  }
339
339
  const X = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
340
340
  function Ct(e, t, n = {}) {
341
- let i, o, a, r = null, l = 0;
341
+ let i, a, o, r = null, l = 0;
342
342
  const d = function() {
343
- l = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
343
+ l = n.leading === !1 ? 0 : Date.now(), r = null, o = e.apply(i, a), r || (i = a = null);
344
344
  };
345
345
  return function() {
346
346
  const c = Date.now();
347
347
  !l && n.leading === !1 && (l = c);
348
348
  const h = t - (c - l);
349
- return i = this, o = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), l = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, h)), a;
349
+ return i = this, a = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), l = c, o = e.apply(i, a), r || (i = a = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, h)), o;
350
350
  };
351
351
  }
352
352
  function q(e, ...t) {
353
353
  const n = Object(e);
354
354
  for (let i = 1; i < arguments.length; i++) {
355
- const o = arguments[i];
356
- if (o != null)
357
- for (const a in o)
358
- Object.prototype.hasOwnProperty.call(o, a) && (n[a] = o[a]);
355
+ const a = arguments[i];
356
+ if (a != null)
357
+ for (const o in a)
358
+ Object.prototype.hasOwnProperty.call(a, o) && (n[o] = a[o]);
359
359
  }
360
360
  return n;
361
361
  }
@@ -374,7 +374,7 @@ function $e(e) {
374
374
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
375
375
  }
376
376
  function Fe(e, t) {
377
- const n = wt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
377
+ const n = wt(e), i = getComputedStyle(t), a = e.steps[0].styles, o = e.steps[e.steps.length - 1].styles, r = [a, o];
378
378
  for (const l of r)
379
379
  for (const d of n)
380
380
  d in l || (l[d] = i[d]);
@@ -408,15 +408,15 @@ function It(e) {
408
408
  }
409
409
  Array.from(t).forEach((n) => {
410
410
  Fe(e, n);
411
- let i = !1, o = !1;
412
- function a() {
413
- !i && l(n) ? (i = !0, o = !0, setTimeout(() => {
411
+ let i = !1, a = !1;
412
+ function o() {
413
+ !i && l(n) ? (i = !0, a = !0, setTimeout(() => {
414
414
  q(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
415
- o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
415
+ a = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
416
416
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
417
- })) : e.repeat && i && !o && !l(n) && (i = !1, q(n.style, e.steps[0].styles));
417
+ })) : e.repeat && i && !a && !l(n) && (i = !1, q(n.style, e.steps[0].styles));
418
418
  }
419
- const r = Ct(a, 200, {
419
+ const r = Ct(o, 200, {
420
420
  leading: !1
421
421
  });
422
422
  function l(h) {
@@ -432,7 +432,7 @@ function It(e) {
432
432
  }), document.addEventListener("scroll", r, {
433
433
  capture: !0,
434
434
  passive: !0
435
- }), a();
435
+ }), o();
436
436
  });
437
437
  }
438
438
  const Le = (e) => Object.entries(e).map(([n, i]) => {
@@ -483,18 +483,18 @@ const _e = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
483
483
  registeredComponents: t,
484
484
  model: n
485
485
  }) => {
486
- var a;
487
- const i = (a = e.component) == null ? void 0 : a.name;
486
+ var o;
487
+ const i = (o = e.component) == null ? void 0 : o.name;
488
488
  if (!i)
489
489
  return null;
490
- const o = t[i];
491
- if (!o || _e(o, n)) {
490
+ const a = t[i];
491
+ if (!a || _e(a, n)) {
492
492
  console.warn(`
493
493
  Could not find a registered component named "${i}".
494
494
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
495
495
  return;
496
496
  } else
497
- return o;
497
+ return a;
498
498
  }, Bt = ({
499
499
  block: e,
500
500
  context: t
@@ -505,17 +505,17 @@ const _e = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
505
505
  } = e;
506
506
  if (!(n != null && n.collection))
507
507
  return;
508
- const o = L({
508
+ const a = L({
509
509
  code: n.collection,
510
510
  localState: t.localState,
511
511
  rootState: t.rootState,
512
512
  rootSetState: t.rootSetState,
513
513
  context: t.context
514
514
  });
515
- if (!Array.isArray(o))
515
+ if (!Array.isArray(a))
516
516
  return;
517
- const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
518
- return o.map((d, c) => ({
517
+ const o = n.collection.split(".").pop(), r = n.itemName || (o ? o + "Item" : "item");
518
+ return a.map((d, c) => ({
519
519
  context: {
520
520
  ...t,
521
521
  localState: {
@@ -536,7 +536,7 @@ const _e = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
536
536
  }, At = (e, t, n) => {
537
537
  var i;
538
538
  return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
539
- builderComponents: Object.fromEntries(Object.entries(t).filter(([a, r]) => !_e(r, n)))
539
+ builderComponents: Object.fromEntries(Object.entries(t).filter(([o, r]) => !_e(r, n)))
540
540
  } : {};
541
541
  }, Wt = (e, t) => {
542
542
  var n;
@@ -576,7 +576,7 @@ const _e = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
576
576
  const {
577
577
  xsmall: n,
578
578
  small: i,
579
- medium: o
579
+ medium: a
580
580
  } = e;
581
581
  if (n) {
582
582
  const d = Math.floor(n / 2);
@@ -586,17 +586,17 @@ const _e = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
586
586
  default: d + 1
587
587
  };
588
588
  }
589
- if (!i || !o)
589
+ if (!i || !a)
590
590
  return t;
591
- const a = n ? t.xsmall.max + 1 : Math.floor(i / 2);
591
+ const o = n ? t.xsmall.max + 1 : Math.floor(i / 2);
592
592
  t.small = {
593
593
  max: i,
594
- min: a,
595
- default: a + 1
594
+ min: o,
595
+ default: o + 1
596
596
  };
597
597
  const r = t.small.max + 1;
598
598
  t.medium = {
599
- max: o,
599
+ max: a,
600
600
  min: r,
601
601
  default: r + 1
602
602
  };
@@ -624,10 +624,10 @@ function $t(e) {
624
624
  return K(i.hide) ? !i.hide : K(i.show) ? i.show : !0;
625
625
  }
626
626
  function n() {
627
- var C, P, w, k, m;
628
- const i = e.block, o = i.responsiveStyles, a = e.context.content, r = Me(
629
- ((C = a == null ? void 0 : a.meta) == null ? void 0 : C.breakpoints) || {}
630
- ), l = !!((w = (P = a == null ? void 0 : a.meta) == null ? void 0 : P.breakpoints) != null && w.xsmall), d = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, h = o == null ? void 0 : o.small, y = o == null ? void 0 : o.xsmall, u = i.id;
627
+ var C, P, w, x, m;
628
+ const i = e.block, a = i.responsiveStyles, o = e.context.content, r = Me(
629
+ ((C = o == null ? void 0 : o.meta) == null ? void 0 : C.breakpoints) || {}
630
+ ), l = !!((w = (P = o == null ? void 0 : o.meta) == null ? void 0 : P.breakpoints) != null && w.xsmall), d = a == null ? void 0 : a.large, c = a == null ? void 0 : a.medium, h = a == null ? void 0 : a.small, y = a == null ? void 0 : a.xsmall, u = i.id;
631
631
  if (!u)
632
632
  return "";
633
633
  const v = d ? _({
@@ -647,7 +647,7 @@ function $t(e) {
647
647
  "small",
648
648
  r
649
649
  )
650
- }) : "", x = y && l ? _({
650
+ }) : "", S = y && l ? _({
651
651
  className: u,
652
652
  styles: y,
653
653
  mediaQuery: ee(
@@ -655,10 +655,10 @@ function $t(e) {
655
655
  r
656
656
  )
657
657
  }) : "", b = i.animations && i.animations.find((p) => p.trigger === "hover");
658
- let S = "";
658
+ let k = "";
659
659
  if (b) {
660
- const p = ((m = (k = b.steps) == null ? void 0 : k[1]) == null ? void 0 : m.styles) || {};
661
- S = _({
660
+ const p = ((m = (x = b.steps) == null ? void 0 : x[1]) == null ? void 0 : m.styles) || {};
661
+ k = _({
662
662
  className: `${u}:hover`,
663
663
  styles: {
664
664
  ...p,
@@ -673,8 +673,8 @@ function $t(e) {
673
673
  v,
674
674
  f,
675
675
  g,
676
- x,
677
- S
676
+ S,
677
+ k
678
678
  ].join(" ");
679
679
  }
680
680
  return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
@@ -701,11 +701,11 @@ const Ot = (e) => `on${Ft(e)}`, Lt = (e, t) => (n) => L({
701
701
  function He(e) {
702
702
  var i;
703
703
  const t = {}, n = (i = e.block.actions) != null ? i : {};
704
- for (const o in n) {
705
- if (!n.hasOwnProperty(o))
704
+ for (const a in n) {
705
+ if (!n.hasOwnProperty(a))
706
706
  continue;
707
- const a = n[o];
708
- let r = Ot(o);
707
+ const o = n[a];
708
+ let r = Ot(a);
709
709
  if (e.stripPrefix)
710
710
  switch (O) {
711
711
  case "vue":
@@ -715,7 +715,7 @@ function He(e) {
715
715
  r = r.replace("on:", "");
716
716
  break;
717
717
  }
718
- t[r] = Lt(a, e);
718
+ t[r] = Lt(o, e);
719
719
  }
720
720
  return t;
721
721
  }
@@ -805,8 +805,8 @@ const jt = ({
805
805
  builderBlock: t,
806
806
  context: n,
807
807
  componentRef: i,
808
- includeBlockProps: o,
809
- isInteractive: a,
808
+ includeBlockProps: a,
809
+ isInteractive: o,
810
810
  contextValue: r
811
811
  }) => {
812
812
  const l = {
@@ -815,19 +815,19 @@ const jt = ({
815
815
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
816
816
  * component itself directly. Otherwise, they are provided to the wrapper element.
817
817
  */
818
- ...o ? {
818
+ ...a ? {
819
819
  attributes: ue({
820
820
  block: t,
821
821
  context: r
822
822
  })
823
823
  } : {}
824
824
  };
825
- return a ? {
825
+ return o ? {
826
826
  Wrapper: i,
827
827
  block: t,
828
828
  context: n,
829
829
  wrapperProps: e,
830
- includeBlockProps: o
830
+ includeBlockProps: a
831
831
  } : l;
832
832
  };
833
833
  function ye(e) {
@@ -848,15 +848,15 @@ function ye(e) {
848
848
  isInteractive: e.isInteractive,
849
849
  contextValue: e.context
850
850
  }),
851
- children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
851
+ children: (i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ s(
852
852
  Z,
853
853
  {
854
- block: o,
854
+ block: a,
855
855
  context: e.context,
856
856
  registeredComponents: e.registeredComponents,
857
857
  linkComponent: e.linkComponent
858
858
  },
859
- o.id
859
+ a.id
860
860
  ))
861
861
  }
862
862
  ) }) : null });
@@ -885,7 +885,7 @@ function Z(e) {
885
885
  value: null,
886
886
  update: !1
887
887
  }));
888
- function o() {
888
+ function a() {
889
889
  var g;
890
890
  if (n.value && !n.update && !Y())
891
891
  return n.value;
@@ -898,40 +898,40 @@ function Z(e) {
898
898
  });
899
899
  return n.value = f, n.update = !1, f;
900
900
  }
901
- function a() {
901
+ function o() {
902
902
  return Vt({
903
- block: o(),
903
+ block: a(),
904
904
  registeredComponents: e.registeredComponents,
905
905
  model: e.context.model
906
906
  });
907
907
  }
908
908
  function r() {
909
909
  var g;
910
- return e.block.tagName === "a" || ((g = o().properties) == null ? void 0 : g.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
910
+ return e.block.tagName === "a" || ((g = a().properties) == null ? void 0 : g.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
911
911
  }
912
912
  function l() {
913
- var x, b;
914
- if ((x = e.block.repeat) != null && x.collection)
913
+ var S, b;
914
+ if ((S = e.block.repeat) != null && S.collection)
915
915
  return !!((b = t == null ? void 0 : t()) != null && b.length);
916
- const f = "hide" in o() ? o().hide : !1;
917
- return ("show" in o() ? o().show : !0) && !f;
916
+ const f = "hide" in a() ? a().hide : !1;
917
+ return ("show" in a() ? a().show : !0) && !f;
918
918
  }
919
919
  function d() {
920
- var g, x;
921
- return !((g = a == null ? void 0 : a()) != null && g.component) && !t() ? (x = o().children) != null ? x : [] : [];
920
+ var g, S;
921
+ return !((g = o == null ? void 0 : o()) != null && g.component) && !t() ? (S = a().children) != null ? S : [] : [];
922
922
  }
923
923
  function c() {
924
- var f, g, x, b;
924
+ var f, g, S, b;
925
925
  return {
926
- blockChildren: (f = o().children) != null ? f : [],
927
- componentRef: (g = a == null ? void 0 : a()) == null ? void 0 : g.component,
926
+ blockChildren: (f = a().children) != null ? f : [],
927
+ componentRef: (g = o == null ? void 0 : o()) == null ? void 0 : g.component,
928
928
  componentOptions: {
929
- ...ft(o(), e.context),
930
- ...Wt(a(), o()),
931
- ...Dt(a(), e.context),
932
- ...Nt(a(), e.linkComponent),
929
+ ...ft(a(), e.context),
930
+ ...Wt(o(), a()),
931
+ ...Dt(o(), e.context),
932
+ ...Nt(o(), e.linkComponent),
933
933
  ...At(
934
- a(),
934
+ o(),
935
935
  e.registeredComponents,
936
936
  e.context.model
937
937
  )
@@ -939,24 +939,24 @@ function Z(e) {
939
939
  context: e.context,
940
940
  linkComponent: e.linkComponent,
941
941
  registeredComponents: e.registeredComponents,
942
- builderBlock: o(),
943
- includeBlockProps: ((x = a == null ? void 0 : a()) == null ? void 0 : x.noWrap) === !0,
944
- isInteractive: !((b = a == null ? void 0 : a()) != null && b.isRSC && O === "rsc")
942
+ builderBlock: a(),
943
+ includeBlockProps: ((S = o == null ? void 0 : o()) == null ? void 0 : S.noWrap) === !0,
944
+ isInteractive: !((b = o == null ? void 0 : o()) != null && b.isRSC && O === "rsc")
945
945
  };
946
946
  }
947
947
  return B(() => {
948
- const f = o().id, g = o().animations;
948
+ const f = a().id, g = a().animations;
949
949
  g && f && Tt(
950
- g.map((x) => ({
951
- ...x,
950
+ g.map((S) => ({
951
+ ...S,
952
952
  elementId: f
953
953
  }))
954
954
  );
955
955
  }, []), B(() => {
956
956
  n.update = !0;
957
957
  }), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ A(R, { children: [
958
- /* @__PURE__ */ s($t, { block: o(), context: e.context }),
959
- (h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((f, g) => /* @__PURE__ */ s(
958
+ /* @__PURE__ */ s($t, { block: a(), context: e.context }),
959
+ (h = o == null ? void 0 : o()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((f, g) => /* @__PURE__ */ s(
960
960
  ve,
961
961
  {
962
962
  repeatContext: f.context,
@@ -991,7 +991,7 @@ function Z(e) {
991
991
  qt,
992
992
  {
993
993
  Wrapper: r(),
994
- block: o(),
994
+ block: a(),
995
995
  context: e.context,
996
996
  children: [
997
997
  /* @__PURE__ */ s(
@@ -1039,7 +1039,7 @@ function zt(e) {
1039
1039
  const r = "this.", l = "component.options.";
1040
1040
  return e.path.startsWith(r) ? e.path.replace(r, "") : e.path.startsWith(l) ? e.path : `${l}${e.path || ""}`;
1041
1041
  }
1042
- function o() {
1042
+ function a() {
1043
1043
  var r, l;
1044
1044
  W() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
1045
1045
  {
@@ -1052,7 +1052,7 @@ function zt(e) {
1052
1052
  "*"
1053
1053
  ));
1054
1054
  }
1055
- function a() {
1055
+ function o() {
1056
1056
  var r, l;
1057
1057
  W() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
1058
1058
  {
@@ -1075,9 +1075,9 @@ function zt(e) {
1075
1075
  "builder-path": i(),
1076
1076
  "builder-parent-id": e.parent,
1077
1077
  style: e.styleProp,
1078
- onClick: (r) => o(),
1079
- onMouseEnter: (r) => a(),
1080
- onKeyPress: (r) => o(),
1078
+ onClick: (r) => a(),
1079
+ onMouseEnter: (r) => o(),
1080
+ onKeyPress: (r) => a(),
1081
1081
  ...e.BlocksWrapperProps,
1082
1082
  children: e.children
1083
1083
  }
@@ -1090,7 +1090,7 @@ function zt(e) {
1090
1090
  ] });
1091
1091
  }
1092
1092
  function D(e) {
1093
- var i, o, a;
1093
+ var i, a, o;
1094
1094
  const t = be(se), n = be(Be);
1095
1095
  return /* @__PURE__ */ s(
1096
1096
  zt,
@@ -1101,8 +1101,8 @@ function D(e) {
1101
1101
  styleProp: e.styleProp,
1102
1102
  classNameProp: e.className,
1103
1103
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
1104
- BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
1105
- children: e.blocks ? /* @__PURE__ */ s(R, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ s(
1104
+ BlocksWrapperProps: ((a = e.context) == null ? void 0 : a.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
1105
+ children: e.blocks ? /* @__PURE__ */ s(R, { children: (o = e.blocks) == null ? void 0 : o.map((r) => /* @__PURE__ */ s(
1106
1106
  Z,
1107
1107
  {
1108
1108
  block: r,
@@ -1117,7 +1117,7 @@ function D(e) {
1117
1117
  }
1118
1118
  const Kt = (e) => `builder-columns ${e}-breakpoints`;
1119
1119
  function Jt(e) {
1120
- var g, x;
1120
+ var g, S;
1121
1121
  function t() {
1122
1122
  return typeof e.space == "number" ? e.space || 0 : 20;
1123
1123
  }
@@ -1127,28 +1127,28 @@ function Jt(e) {
1127
1127
  function i() {
1128
1128
  return e.stackColumnsAt || "tablet";
1129
1129
  }
1130
- function o(b) {
1130
+ function a(b) {
1131
1131
  return b.link ? e.builderLinkComponent || "a" : "div";
1132
1132
  }
1133
- function a(b) {
1134
- var S;
1135
- return ((S = n()[b]) == null ? void 0 : S.width) || 100 / n().length;
1133
+ function o(b) {
1134
+ var k;
1135
+ return ((k = n()[b]) == null ? void 0 : k.width) || 100 / n().length;
1136
1136
  }
1137
1137
  function r(b) {
1138
- const S = a(b), C = t() * (n().length - 1) * (S / 100);
1139
- return `calc(${S}% - ${C}px)`;
1138
+ const k = o(b), C = t() * (n().length - 1) * (k / 100);
1139
+ return `calc(${k}% - ${C}px)`;
1140
1140
  }
1141
1141
  function l({
1142
1142
  stackedStyle: b,
1143
- desktopStyle: S
1143
+ desktopStyle: k
1144
1144
  }) {
1145
- return i() === "tablet" ? b : S;
1145
+ return i() === "tablet" ? b : k;
1146
1146
  }
1147
1147
  function d({
1148
1148
  stackedStyle: b,
1149
- desktopStyle: S
1149
+ desktopStyle: k
1150
1150
  }) {
1151
- return i() === "never" ? S : b;
1151
+ return i() === "never" ? k : b;
1152
1152
  }
1153
1153
  function c() {
1154
1154
  return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
@@ -1163,7 +1163,7 @@ function Jt(e) {
1163
1163
  };
1164
1164
  }
1165
1165
  function y(b) {
1166
- const S = b === 0 ? 0 : t(), C = r(b), P = `${S}px`, w = "100%", k = 0;
1166
+ const k = b === 0 ? 0 : t(), C = r(b), P = `${k}px`, w = "100%", x = 0;
1167
1167
  return {
1168
1168
  ...{
1169
1169
  display: "flex",
@@ -1177,7 +1177,7 @@ function Jt(e) {
1177
1177
  desktopStyle: C
1178
1178
  }),
1179
1179
  "--column-margin-left-mobile": d({
1180
- stackedStyle: k,
1180
+ stackedStyle: x,
1181
1181
  desktopStyle: P
1182
1182
  }),
1183
1183
  "--column-width-tablet": l({
@@ -1185,7 +1185,7 @@ function Jt(e) {
1185
1185
  desktopStyle: C
1186
1186
  }),
1187
1187
  "--column-margin-left-tablet": l({
1188
- stackedStyle: k,
1188
+ stackedStyle: x,
1189
1189
  desktopStyle: P
1190
1190
  })
1191
1191
  };
@@ -1224,13 +1224,13 @@ function Jt(e) {
1224
1224
  },
1225
1225
  `;
1226
1226
  }
1227
- function f(b, S) {
1227
+ function f(b, k) {
1228
1228
  return {
1229
1229
  ...b.link ? {
1230
1230
  href: b.link
1231
1231
  } : {},
1232
1232
  [H()]: "builder-column",
1233
- style: Ue(y(S))
1233
+ style: Ue(y(k))
1234
1234
  };
1235
1235
  }
1236
1236
  return /* @__PURE__ */ A(R, { children: [
@@ -1248,16 +1248,16 @@ function Jt(e) {
1248
1248
  nonce: e.builderContext.nonce
1249
1249
  }
1250
1250
  ),
1251
- (x = e.columns) == null ? void 0 : x.map((b, S) => /* @__PURE__ */ s(
1251
+ (S = e.columns) == null ? void 0 : S.map((b, k) => /* @__PURE__ */ s(
1252
1252
  le,
1253
1253
  {
1254
- TagName: o(b),
1254
+ TagName: a(b),
1255
1255
  actionAttributes: {},
1256
- attributes: f(b, S),
1256
+ attributes: f(b, k),
1257
1257
  children: /* @__PURE__ */ s(
1258
1258
  D,
1259
1259
  {
1260
- path: `columns.${S}.blocks`,
1260
+ path: `columns.${k}.blocks`,
1261
1261
  parent: e.builderBlock.id,
1262
1262
  context: e.builderContext,
1263
1263
  registeredComponents: e.builderComponents,
@@ -1269,7 +1269,7 @@ function Jt(e) {
1269
1269
  }
1270
1270
  )
1271
1271
  },
1272
- S
1272
+ k
1273
1273
  ))
1274
1274
  ]
1275
1275
  }
@@ -1287,8 +1287,8 @@ function xe(e) {
1287
1287
  return e.replace(/http(s)?:/, "");
1288
1288
  }
1289
1289
  function Qt(e = "", t, n) {
1290
- const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1291
- return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1290
+ const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), a = e.indexOf("?") !== -1 ? "&" : "?";
1291
+ return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + a + t + "=" + encodeURIComponent(n);
1292
1292
  }
1293
1293
  function Yt(e, t) {
1294
1294
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
@@ -1297,8 +1297,8 @@ function Yt(e, t) {
1297
1297
  return xe(e);
1298
1298
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1299
1299
  if (n) {
1300
- const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
1301
- return xe(`${i[0]}_${a}${o}`);
1300
+ const i = e.split(n[0]), a = n[3], o = t.match("x") ? t : `${t}x`;
1301
+ return xe(`${i[0]}_${o}${a}`);
1302
1302
  }
1303
1303
  return null;
1304
1304
  }
@@ -1309,12 +1309,12 @@ function te(e) {
1309
1309
  if (e.match(/builder\.io/)) {
1310
1310
  let n = e;
1311
1311
  const i = Number(e.split("?width=")[1]);
1312
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Qt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1312
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${Qt(e, "width", a)} ${a}w`).concat([n]).join(", ");
1313
1313
  }
1314
1314
  return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Yt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1315
1315
  }
1316
1316
  function Xt(e) {
1317
- var o, a, r, l, d, c;
1317
+ var a, o, r, l, d, c;
1318
1318
  function t() {
1319
1319
  var u;
1320
1320
  const y = e.image || e.src;
@@ -1368,7 +1368,7 @@ function Xt(e) {
1368
1368
  }
1369
1369
  )
1370
1370
  ] }),
1371
- e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ s(
1371
+ e.aspectRatio && !((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length && e.fitContent) ? /* @__PURE__ */ s(
1372
1372
  "div",
1373
1373
  {
1374
1374
  className: "builder-image-sizer div-9dac2184",
@@ -1551,7 +1551,7 @@ function tn(e) {
1551
1551
  function i() {
1552
1552
  return !!(e.grid || e.oneAtATime);
1553
1553
  }
1554
- function o() {
1554
+ function a() {
1555
1555
  return {
1556
1556
  display: "flex",
1557
1557
  alignItems: "stretch",
@@ -1563,7 +1563,7 @@ function tn(e) {
1563
1563
  }
1564
1564
  };
1565
1565
  }
1566
- function a() {
1566
+ function o() {
1567
1567
  const v = {
1568
1568
  ...{
1569
1569
  display: "flex",
@@ -1586,22 +1586,22 @@ function tn(e) {
1586
1586
  let u = null;
1587
1587
  if (e.grid && t.length && document) {
1588
1588
  const f = t[0];
1589
- let x = document.querySelector(
1589
+ let S = document.querySelector(
1590
1590
  `.builder-accordion-title[data-index="${f}"]`
1591
1591
  );
1592
- if (u = f, x) {
1593
- let b = x.getBoundingClientRect();
1594
- for (; x = x && x.nextElementSibling; )
1595
- if (x) {
1596
- if (x.classList.contains("builder-accordion-detail"))
1592
+ if (u = f, S) {
1593
+ let b = S.getBoundingClientRect();
1594
+ for (; S = S && S.nextElementSibling; )
1595
+ if (S) {
1596
+ if (S.classList.contains("builder-accordion-detail"))
1597
1597
  continue;
1598
- const S = x.getBoundingClientRect();
1599
- if (S.left > b.left) {
1598
+ const k = S.getBoundingClientRect();
1599
+ if (k.left > b.left) {
1600
1600
  const C = parseInt(
1601
- x.getAttribute("data-index") || "",
1601
+ S.getAttribute("data-index") || "",
1602
1602
  10
1603
1603
  );
1604
- isNaN(C) || (b = S, u = C);
1604
+ isNaN(C) || (b = k, u = C);
1605
1605
  } else
1606
1606
  break;
1607
1607
  }
@@ -1623,13 +1623,13 @@ function tn(e) {
1623
1623
  function h(u) {
1624
1624
  t.includes(u) ? n(i() ? [] : t.filter((v) => v !== u)) : n(i() ? [u] : t.concat(u));
1625
1625
  }
1626
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (y = e.items) == null ? void 0 : y.map((u, v) => /* @__PURE__ */ A(et.Fragment, { children: [
1626
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (y = e.items) == null ? void 0 : y.map((u, v) => /* @__PURE__ */ A(et.Fragment, { children: [
1627
1627
  /* @__PURE__ */ s(
1628
1628
  "div",
1629
1629
  {
1630
1630
  className: r(v),
1631
1631
  style: {
1632
- ...a(),
1632
+ ...o(),
1633
1633
  ...e.grid && {
1634
1634
  width: e.gridRowWidth,
1635
1635
  order: d() !== null ? Se(v) : Se(v + 1)
@@ -1706,7 +1706,7 @@ const nn = {
1706
1706
  shouldReceiveBuilderProps: {
1707
1707
  builderLinkComponent: !0
1708
1708
  }
1709
- }, on = {
1709
+ }, an = {
1710
1710
  // TODO: ways to statically preprocess JSON for references, functions, etc
1711
1711
  name: "Columns",
1712
1712
  isRSC: !0,
@@ -1885,7 +1885,7 @@ const nn = {
1885
1885
  });
1886
1886
  }
1887
1887
  const n = e.get("columns");
1888
- Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((l, d) => l + d.get("width"), 0) !== 100) && t();
1888
+ Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((o) => !o.get("width")) || n.reduce((l, d) => l + d.get("width"), 0) !== 100) && t();
1889
1889
  }
1890
1890
  }, {
1891
1891
  name: "space",
@@ -1913,7 +1913,7 @@ const nn = {
1913
1913
  builderComponents: !0,
1914
1914
  builderLinkComponent: !0
1915
1915
  }
1916
- }, an = {
1916
+ }, on = {
1917
1917
  name: "Fragment",
1918
1918
  static: !0,
1919
1919
  hidden: !0,
@@ -1955,13 +1955,13 @@ const nn = {
1955
1955
  function i(r) {
1956
1956
  return Math.round(r * 1e3) / 1e3;
1957
1957
  }
1958
- const o = e.get("image"), a = e.get("aspectRatio");
1959
- if (fetch(o).then((r) => r.blob()).then((r) => {
1958
+ const a = e.get("image"), o = e.get("aspectRatio");
1959
+ if (fetch(a).then((r) => r.blob()).then((r) => {
1960
1960
  r.type.includes("svg") && e.set("noWebp", !0);
1961
- }), o && (!a || a === 0.7041))
1962
- return n(o).then((r) => {
1961
+ }), a && (!o || o === 0.7041))
1962
+ return n(a).then((r) => {
1963
1963
  const l = e.get("aspectRatio");
1964
- e.get("image") === o && (!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));
1964
+ 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));
1965
1965
  });
1966
1966
  }
1967
1967
  }, {
@@ -2074,10 +2074,10 @@ function G(e) {
2074
2074
  );
2075
2075
  }
2076
2076
  function cn(e, t, n, i) {
2077
- function o(c) {
2077
+ function a(c) {
2078
2078
  return typeof c == "string";
2079
2079
  }
2080
- function a(c) {
2080
+ function o(c) {
2081
2081
  return typeof c == "number";
2082
2082
  }
2083
2083
  function r(c, h) {
@@ -2087,14 +2087,14 @@ function cn(e, t, n, i) {
2087
2087
  if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(u && v))
2088
2088
  return !0;
2089
2089
  if (Array.isArray(f))
2090
- return v === "isNot" ? f.every((x) => r(c, {
2090
+ return v === "isNot" ? f.every((S) => r(c, {
2091
2091
  property: u,
2092
2092
  operator: v,
2093
- value: x
2094
- })) : !!f.find((x) => r(c, {
2093
+ value: S
2094
+ })) : !!f.find((S) => r(c, {
2095
2095
  property: u,
2096
2096
  operator: v,
2097
- value: x
2097
+ value: S
2098
2098
  }));
2099
2099
  const g = c[u];
2100
2100
  if (Array.isArray(g))
@@ -2105,19 +2105,19 @@ function cn(e, t, n, i) {
2105
2105
  case "isNot":
2106
2106
  return g !== f;
2107
2107
  case "contains":
2108
- return (o(g) || Array.isArray(g)) && g.includes(String(f));
2108
+ return (a(g) || Array.isArray(g)) && g.includes(String(f));
2109
2109
  case "startsWith":
2110
- return o(g) && g.startsWith(String(f));
2110
+ return a(g) && g.startsWith(String(f));
2111
2111
  case "endsWith":
2112
- return o(g) && g.endsWith(String(f));
2112
+ return a(g) && g.endsWith(String(f));
2113
2113
  case "greaterThan":
2114
- return a(g) && a(f) && g > f;
2114
+ return o(g) && o(f) && g > f;
2115
2115
  case "lessThan":
2116
- return a(g) && a(f) && g < f;
2116
+ return o(g) && o(f) && g < f;
2117
2117
  case "greaterThanOrEqualTo":
2118
- return a(g) && a(f) && g >= f;
2118
+ return o(g) && o(f) && g >= f;
2119
2119
  case "lessThanOrEqualTo":
2120
- return a(g) && a(f) && g <= f;
2120
+ return o(g) && o(f) && g <= f;
2121
2121
  default:
2122
2122
  return !1;
2123
2123
  }
@@ -2270,18 +2270,18 @@ function fn({
2270
2270
  previewingIndex: t,
2271
2271
  isHydrated: n,
2272
2272
  filteredVariants: i,
2273
- fallbackBlocks: o
2273
+ fallbackBlocks: a
2274
2274
  }) {
2275
2275
  var r;
2276
- const a = {
2277
- blocks: o != null ? o : [],
2276
+ const o = {
2277
+ blocks: a != null ? a : [],
2278
2278
  path: "this.children"
2279
2279
  };
2280
2280
  if (n && W())
2281
2281
  return typeof t == "number" && t < ((r = e == null ? void 0 : e.length) != null ? r : 0) ? {
2282
2282
  blocks: e[t].blocks,
2283
2283
  path: `component.options.variants.${t}.blocks`
2284
- } : a;
2284
+ } : o;
2285
2285
  if (F()) {
2286
2286
  const l = i == null ? void 0 : i[0];
2287
2287
  if (l)
@@ -2290,7 +2290,7 @@ function fn({
2290
2290
  path: `component.options.variants.${e == null ? void 0 : e.indexOf(l)}.blocks`
2291
2291
  };
2292
2292
  }
2293
- return a;
2293
+ return o;
2294
2294
  }
2295
2295
  const hn = (e, t, n) => `
2296
2296
  (function() {
@@ -2300,29 +2300,29 @@ const hn = (e, t, n) => `
2300
2300
  })();
2301
2301
  `;
2302
2302
  function gn(e) {
2303
- var g, x, b, S, C, P, w;
2303
+ var g, S, b, k, C, P, w;
2304
2304
  const t = $(null), [n, i] = E(
2305
2305
  () => fe.getUserAttributes()
2306
- ), [o, a] = E(
2306
+ ), [a, o] = E(
2307
2307
  () => {
2308
- var k, m, p;
2308
+ var x, m, p;
2309
2309
  return hn(
2310
2310
  e.variants,
2311
- ((k = e.builderBlock) == null ? void 0 : k.id) || "none",
2311
+ ((x = e.builderBlock) == null ? void 0 : x.id) || "none",
2312
2312
  (p = (m = e.builderContext) == null ? void 0 : m.rootState) == null ? void 0 : p.locale
2313
2313
  );
2314
2314
  }
2315
2315
  ), [r, l] = E(() => []), [d, c] = E(
2316
2316
  () => {
2317
- var k;
2317
+ var x;
2318
2318
  return mn(
2319
2319
  e.variants,
2320
- M((k = e.builderContext) == null ? void 0 : k.canTrack)
2320
+ M((x = e.builderContext) == null ? void 0 : x.canTrack)
2321
2321
  );
2322
2322
  }
2323
2323
  ), [h, y] = E(() => !1);
2324
2324
  function u() {
2325
- return (e.variants || []).filter((k) => {
2325
+ return (e.variants || []).filter((x) => {
2326
2326
  var m, p, I, T;
2327
2327
  return cn(
2328
2328
  {
@@ -2331,17 +2331,17 @@ function gn(e) {
2331
2331
  } : {},
2332
2332
  ...n
2333
2333
  },
2334
- k.query,
2335
- k.startDate,
2336
- k.endDate
2334
+ x.query,
2335
+ x.startDate,
2336
+ x.endDate
2337
2337
  );
2338
2338
  });
2339
2339
  }
2340
2340
  function v() {
2341
- var k;
2341
+ var x;
2342
2342
  return fn({
2343
2343
  variants: e.variants,
2344
- fallbackBlocks: (k = e.builderBlock) == null ? void 0 : k.children,
2344
+ fallbackBlocks: (x = e.builderBlock) == null ? void 0 : x.children,
2345
2345
  isHydrated: h,
2346
2346
  filteredVariants: u(),
2347
2347
  previewingIndex: e.previewingIndex
@@ -2349,7 +2349,7 @@ function gn(e) {
2349
2349
  }
2350
2350
  function f() {
2351
2351
  return (e.variants || []).map(
2352
- (k, m) => {
2352
+ (x, m) => {
2353
2353
  var p;
2354
2354
  return `[data-variant-id="${(p = e.builderBlock) == null ? void 0 : p.id}-${m}"] { display: none; } `;
2355
2355
  }
@@ -2358,7 +2358,7 @@ function gn(e) {
2358
2358
  return B(() => {
2359
2359
  var m;
2360
2360
  y(!0);
2361
- const k = fe.subscribeOnUserAttributesChange(
2361
+ const x = fe.subscribeOnUserAttributesChange(
2362
2362
  (p) => {
2363
2363
  i(p);
2364
2364
  }
@@ -2388,9 +2388,9 @@ function gn(e) {
2388
2388
  });
2389
2389
  }).observe(t.current));
2390
2390
  }
2391
- r.push(k);
2391
+ r.push(x);
2392
2392
  }, []), B(() => () => {
2393
- r.forEach((k) => k());
2393
+ r.forEach((x) => x());
2394
2394
  }, []), /* @__PURE__ */ A(
2395
2395
  "div",
2396
2396
  {
@@ -2399,7 +2399,7 @@ function gn(e) {
2399
2399
  className: `builder-personalization-container ${((g = e.attributes) == null ? void 0 : g.className) || ""}`,
2400
2400
  children: [
2401
2401
  d ? /* @__PURE__ */ A(R, { children: [
2402
- (x = e.variants) == null ? void 0 : x.map((k, m) => {
2402
+ (S = e.variants) == null ? void 0 : S.map((x, m) => {
2403
2403
  var p, I;
2404
2404
  return /* @__PURE__ */ s(
2405
2405
  "template",
@@ -2408,7 +2408,7 @@ function gn(e) {
2408
2408
  children: /* @__PURE__ */ s(
2409
2409
  D,
2410
2410
  {
2411
- blocks: k.blocks,
2411
+ blocks: x.blocks,
2412
2412
  parent: (I = e.builderBlock) == null ? void 0 : I.id,
2413
2413
  path: `component.options.variants.${m}.blocks`
2414
2414
  }
@@ -2422,14 +2422,14 @@ function gn(e) {
2422
2422
  {
2423
2423
  nonce: ((b = e.builderContext) == null ? void 0 : b.nonce) || "",
2424
2424
  styles: f(),
2425
- id: `variants-styles-${(S = e.builderBlock) == null ? void 0 : S.id}`
2425
+ id: `variants-styles-${(k = e.builderBlock) == null ? void 0 : k.id}`
2426
2426
  }
2427
2427
  ),
2428
2428
  /* @__PURE__ */ s(
2429
2429
  G,
2430
2430
  {
2431
2431
  nonce: ((C = e.builderContext) == null ? void 0 : C.nonce) || "",
2432
- scriptStr: o,
2432
+ scriptStr: a,
2433
2433
  id: `variants-script-${(P = e.builderBlock) == null ? void 0 : P.id}`
2434
2434
  }
2435
2435
  )
@@ -2566,7 +2566,7 @@ const vn = {
2566
2566
  builderComponents: !0,
2567
2567
  builderLinkComponent: !0
2568
2568
  }
2569
- }, oe = {
2569
+ }, ae = {
2570
2570
  "@type": "@builder.io/sdk:Element",
2571
2571
  responsiveStyles: {
2572
2572
  large: {
@@ -2588,7 +2588,7 @@ const vn = {
2588
2588
  text: "New tab"
2589
2589
  }
2590
2590
  }
2591
- }, ae = {
2591
+ }, oe = {
2592
2592
  "@type": "@builder.io/sdk:Element",
2593
2593
  responsiveStyles: {
2594
2594
  large: {
@@ -2614,16 +2614,16 @@ const vn = {
2614
2614
  name: "label",
2615
2615
  type: "uiBlocks",
2616
2616
  hideFromUI: !0,
2617
- defaultValue: [oe]
2617
+ defaultValue: [ae]
2618
2618
  }, {
2619
2619
  name: "content",
2620
2620
  type: "uiBlocks",
2621
2621
  hideFromUI: !0,
2622
- defaultValue: [ae]
2622
+ defaultValue: [oe]
2623
2623
  }],
2624
2624
  defaultValue: [{
2625
2625
  label: [{
2626
- ...oe,
2626
+ ...ae,
2627
2627
  component: {
2628
2628
  name: "Text",
2629
2629
  options: {
@@ -2632,7 +2632,7 @@ const vn = {
2632
2632
  }
2633
2633
  }],
2634
2634
  content: [{
2635
- ...ae,
2635
+ ...oe,
2636
2636
  component: {
2637
2637
  name: "Text",
2638
2638
  options: {
@@ -2642,7 +2642,7 @@ const vn = {
2642
2642
  }]
2643
2643
  }, {
2644
2644
  label: [{
2645
- ...oe,
2645
+ ...ae,
2646
2646
  component: {
2647
2647
  name: "Text",
2648
2648
  options: {
@@ -2651,7 +2651,7 @@ const vn = {
2651
2651
  }
2652
2652
  }],
2653
2653
  content: [{
2654
- ...ae,
2654
+ ...oe,
2655
2655
  component: {
2656
2656
  name: "Text",
2657
2657
  options: {
@@ -2709,14 +2709,14 @@ const vn = {
2709
2709
  }
2710
2710
  };
2711
2711
  function Sn(e) {
2712
- var a;
2712
+ var o;
2713
2713
  const [t, n] = E(
2714
2714
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
2715
2715
  );
2716
2716
  function i(r) {
2717
2717
  return e.tabs && e.tabs[r].content;
2718
2718
  }
2719
- function o(r) {
2719
+ function a(r) {
2720
2720
  r === t && e.collapsible ? n(-1) : n(r);
2721
2721
  }
2722
2722
  return /* @__PURE__ */ A("div", { children: [
@@ -2730,14 +2730,14 @@ function Sn(e) {
2730
2730
  justifyContent: e.tabHeaderLayout || "flex-start",
2731
2731
  overflow: "auto"
2732
2732
  },
2733
- children: (a = e.tabs) == null ? void 0 : a.map((r, l) => /* @__PURE__ */ s(
2733
+ children: (o = e.tabs) == null ? void 0 : o.map((r, l) => /* @__PURE__ */ s(
2734
2734
  "span",
2735
2735
  {
2736
2736
  className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
2737
2737
  style: {
2738
2738
  ...t === l ? e.activeTabStyle : {}
2739
2739
  },
2740
- onClick: (d) => o(l),
2740
+ onClick: (d) => a(l),
2741
2741
  children: /* @__PURE__ */ s(
2742
2742
  D,
2743
2743
  {
@@ -2827,7 +2827,7 @@ const Tn = {
2827
2827
  }]
2828
2828
  };
2829
2829
  function wn(e) {
2830
- const t = $(null), [n, i] = E(() => []), [o, a] = E(() => []);
2830
+ const t = $(null), [n, i] = E(() => []), [a, o] = E(() => []);
2831
2831
  return B(() => {
2832
2832
  var l;
2833
2833
  if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
@@ -2846,10 +2846,10 @@ function wn(e) {
2846
2846
  "application/javascript",
2847
2847
  "application/ecmascript"
2848
2848
  ].includes(c.type)) {
2849
- if (o.includes(c.innerText))
2849
+ if (a.includes(c.innerText))
2850
2850
  continue;
2851
2851
  try {
2852
- o.push(c.innerText), new Function(c.innerText)();
2852
+ a.push(c.innerText), new Function(c.innerText)();
2853
2853
  } catch (h) {
2854
2854
  console.warn("`CustomCode`: Error running script:", h);
2855
2855
  }
@@ -2881,7 +2881,7 @@ const In = {
2881
2881
  }]
2882
2882
  }, En = ["text/javascript", "application/javascript", "application/ecmascript"], Rn = (e) => En.includes(e.type);
2883
2883
  function Pn(e) {
2884
- const t = $(null), [n, i] = E(() => []), [o, a] = E(() => []), [r, l] = E(() => !1);
2884
+ const t = $(null), [n, i] = E(() => []), [a, o] = E(() => []), [r, l] = E(() => !1);
2885
2885
  function d() {
2886
2886
  if (!t.current || !t.current.getElementsByTagName)
2887
2887
  return;
@@ -2892,9 +2892,9 @@ function Pn(e) {
2892
2892
  n.push(y.src);
2893
2893
  const u = document.createElement("script");
2894
2894
  u.async = !0, u.src = y.src, document.head.appendChild(u);
2895
- } else if (Rn(y) && !o.includes(y.innerText))
2895
+ } else if (Rn(y) && !a.includes(y.innerText))
2896
2896
  try {
2897
- o.push(y.innerText), new Function(y.innerText)();
2897
+ a.push(y.innerText), new Function(y.innerText)();
2898
2898
  } catch (u) {
2899
2899
  console.warn("`Embed`: Error running script:", u);
2900
2900
  }
@@ -3153,7 +3153,7 @@ const Vn = {
3153
3153
  return Bn.includes(e) ? e : "production";
3154
3154
  };
3155
3155
  function An(e) {
3156
- const t = $(null), [n, i] = E(() => "unsubmitted"), [o, a] = E(() => null), [r, l] = E(() => "");
3156
+ const t = $(null), [n, i] = E(() => "unsubmitted"), [a, o] = E(() => null), [r, l] = E(() => "");
3157
3157
  function d(y) {
3158
3158
  var v, f;
3159
3159
  const u = {
@@ -3177,8 +3177,8 @@ function An(e) {
3177
3177
  }
3178
3178
  y.preventDefault();
3179
3179
  const f = y.currentTarget || y.target, g = e.customHeaders || {};
3180
- let x;
3181
- const b = new FormData(f), S = Array.from(f.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
3180
+ let S;
3181
+ const b = new FormData(f), k = Array.from(f.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
3182
3182
  let p;
3183
3183
  const I = m.name;
3184
3184
  if (m instanceof HTMLInputElement)
@@ -3203,25 +3203,25 @@ function An(e) {
3203
3203
  };
3204
3204
  });
3205
3205
  let C = e.contentType;
3206
- if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(S).forEach(({ value: m }) => {
3206
+ if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(k).forEach(({ value: m }) => {
3207
3207
  (m instanceof File || Array.isArray(m) && m[0] instanceof File || m instanceof FileList) && (C = "multipart/form-data");
3208
3208
  }), C !== "application/json")
3209
- x = b;
3209
+ S = b;
3210
3210
  else {
3211
3211
  const m = {};
3212
- Array.from(S).forEach(({ value: p, key: I }) => {
3212
+ Array.from(k).forEach(({ value: p, key: I }) => {
3213
3213
  De(m, I, p);
3214
- }), x = JSON.stringify(m);
3214
+ }), S = JSON.stringify(m);
3215
3215
  }
3216
3216
  C && C !== "multipart/form-data" && (u && ((v = e.action) != null && v.includes("zapier.com")) || (g["content-type"] = C));
3217
- const P = new CustomEvent("presubmit", { detail: { body: x } });
3217
+ const P = new CustomEvent("presubmit", { detail: { body: S } });
3218
3218
  if (t.current && (t.current.dispatchEvent(P), P.defaultPrevented))
3219
3219
  return;
3220
3220
  i("sending");
3221
3221
  const w = `${Nn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3222
3222
  e.sendSubmissionsToEmail || ""
3223
- )}&name=${encodeURIComponent(e.name || "")}`, k = e.sendSubmissionsTo === "email" ? w : e.action;
3224
- Ee(k), fetch(k, { body: x, headers: g, method: e.method || "post" }).then(
3223
+ )}&name=${encodeURIComponent(e.name || "")}`, x = e.sendSubmissionsTo === "email" ? w : e.action;
3224
+ Ee(x), fetch(x, { body: S, headers: g, method: e.method || "post" }).then(
3225
3225
  async (m) => {
3226
3226
  let p;
3227
3227
  const I = m.headers.get("content-type");
@@ -3229,7 +3229,7 @@ function An(e) {
3229
3229
  let T = Ne(p, e.errorMessagePath);
3230
3230
  T && (typeof T != "string" && (T = JSON.stringify(T)), l(T), d({ formErrorMessage: T }));
3231
3231
  }
3232
- if (a(p), i(m.ok ? "success" : "error"), m.ok) {
3232
+ if (o(p), i(m.ok ? "success" : "error"), m.ok) {
3233
3233
  const T = new CustomEvent("submit:success", {
3234
3234
  detail: { res: m, body: p }
3235
3235
  });
@@ -3252,7 +3252,7 @@ function An(e) {
3252
3252
  const p = new CustomEvent("submit:error", {
3253
3253
  detail: { error: m }
3254
3254
  });
3255
- t.current && (t.current.dispatchEvent(p), p.defaultPrevented) || (a(m), i("error"));
3255
+ t.current && (t.current.dispatchEvent(p), p.defaultPrevented) || (o(m), i("error"));
3256
3256
  }
3257
3257
  );
3258
3258
  }
@@ -3287,7 +3287,7 @@ function An(e) {
3287
3287
  context: e.builderContext
3288
3288
  }
3289
3289
  ) : null,
3290
- c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7acc3b46", children: JSON.stringify(o, null, 2) }) : null,
3290
+ c() === "error" && a ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7acc3b46", children: JSON.stringify(a, null, 2) }) : null,
3291
3291
  c() === "success" ? /* @__PURE__ */ s(
3292
3292
  D,
3293
3293
  {
@@ -3650,7 +3650,7 @@ function jn(e) {
3650
3650
  ...n()
3651
3651
  };
3652
3652
  }
3653
- const [o, a] = E(() => {
3653
+ const [a, o] = E(() => {
3654
3654
  });
3655
3655
  return B(() => {
3656
3656
  if (e.lazyLoad) {
@@ -3658,23 +3658,23 @@ function jn(e) {
3658
3658
  f.forEach(function(g) {
3659
3659
  if (!g.isIntersecting)
3660
3660
  return;
3661
- const x = g.target;
3661
+ const S = g.target;
3662
3662
  try {
3663
- Array.from(x.children).filter(
3663
+ Array.from(S.children).filter(
3664
3664
  (b) => b instanceof HTMLElement && b.tagName === "SOURCE"
3665
3665
  ).forEach((b) => {
3666
- const S = b.dataset.src;
3667
- S && (b.src = S);
3668
- }), x.load(), v.unobserve(x);
3666
+ const k = b.dataset.src;
3667
+ k && (b.src = k);
3668
+ }), S.load(), v.unobserve(S);
3669
3669
  } catch (b) {
3670
3670
  console.error("Error loading lazy video:", b);
3671
3671
  }
3672
3672
  });
3673
3673
  });
3674
- t.current && v.observe(t.current), a(v);
3674
+ t.current && v.observe(t.current), o(v);
3675
3675
  }
3676
3676
  }, []), B(() => () => {
3677
- o && o.disconnect();
3677
+ a && a.disconnect();
3678
3678
  }, []), /* @__PURE__ */ A(
3679
3679
  "div",
3680
3680
  {
@@ -3791,10 +3791,10 @@ const zn = () => [{
3791
3791
  ...nn
3792
3792
  }, {
3793
3793
  component: Jt,
3794
- ...on
3794
+ ...an
3795
3795
  }, {
3796
3796
  component: Gt,
3797
- ...an
3797
+ ...on
3798
3798
  }, {
3799
3799
  component: Xt,
3800
3800
  ...ln
@@ -3949,9 +3949,9 @@ const ei = (e, t, n = !0) => {
3949
3949
  event: e,
3950
3950
  target: t
3951
3951
  }) => {
3952
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = Ce(i / n.width), r = Ce(o / n.height);
3952
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, o = Ce(i / n.width), r = Ce(a / n.height);
3953
3953
  return {
3954
- x: a,
3954
+ x: o,
3955
3955
  y: r
3956
3956
  };
3957
3957
  }, ni = (e) => {
@@ -3970,11 +3970,11 @@ const ei = (e, t, n = !0) => {
3970
3970
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3971
3971
  }
3972
3972
  };
3973
- }, ii = ["svelte", "qwik", "vue"], we = () => ii.includes(O) && (W() || Y()), oi = (e) => {
3974
- var a, r;
3975
- 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;
3976
- let o = "";
3977
- if (i && t && n && (o += `
3973
+ }, ii = ["svelte", "qwik", "vue"], we = () => ii.includes(O) && (W() || Y()), ai = (e) => {
3974
+ var o, r;
3975
+ const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
3976
+ let a = "";
3977
+ if (i && t && n && (a += `
3978
3978
  @font-face {
3979
3979
  font-family: "${t}";
3980
3980
  src: local("${n}"), url('${i}') format('woff2');
@@ -3986,7 +3986,7 @@ font-weight: 400;
3986
3986
  if (!(String(Number(l)) === l))
3987
3987
  continue;
3988
3988
  const c = e.files[l];
3989
- c && c !== i && (o += `
3989
+ c && c !== i && (a += `
3990
3990
  @font-face {
3991
3991
  font-family: "${t}";
3992
3992
  src: url('${c}') format('woff2');
@@ -3995,12 +3995,12 @@ font-weight: ${l};
3995
3995
  }
3996
3996
  `.trim());
3997
3997
  }
3998
- return o;
3999
- }, ai = ({
3998
+ return a;
3999
+ }, oi = ({
4000
4000
  customFonts: e
4001
4001
  }) => {
4002
4002
  var t;
4003
- return ((t = e == null ? void 0 : e.map((n) => oi(n))) == null ? void 0 : t.join(" ")) || "";
4003
+ return ((t = e == null ? void 0 : e.map((n) => ai(n))) == null ? void 0 : t.join(" ")) || "";
4004
4004
  }, ri = ({
4005
4005
  cssCode: e,
4006
4006
  contentId: t
@@ -4023,22 +4023,22 @@ font-weight: ${l};
4023
4023
  }
4024
4024
  `, si = (e) => e ? "" : li, ci = (e) => `variant-${e}`;
4025
4025
  function ui(e) {
4026
- var S, C, P;
4026
+ var k, C, P;
4027
4027
  const t = $(null);
4028
4028
  function n(w) {
4029
4029
  var m, p;
4030
- const k = {
4030
+ const x = {
4031
4031
  ...e.builderContextSignal.rootState,
4032
4032
  ...w
4033
4033
  };
4034
- e.builderContextSignal.rootSetState ? (p = (m = e.builderContextSignal).rootSetState) == null || p.call(m, k) : e.setBuilderContextSignal((I) => ({
4034
+ e.builderContextSignal.rootSetState ? (p = (m = e.builderContextSignal).rootSetState) == null || p.call(m, x) : e.setBuilderContextSignal((I) => ({
4035
4035
  ...I,
4036
- rootState: k
4036
+ rootState: x
4037
4037
  }));
4038
4038
  }
4039
4039
  function i(w) {
4040
4040
  var m, p, I, T, V;
4041
- const k = {
4041
+ const x = {
4042
4042
  ...e.builderContextSignal.content,
4043
4043
  ...w,
4044
4044
  data: {
@@ -4053,16 +4053,16 @@ function ui(e) {
4053
4053
  };
4054
4054
  e.setBuilderContextSignal((N) => ({
4055
4055
  ...N,
4056
- content: k
4056
+ content: x
4057
4057
  }));
4058
4058
  }
4059
- function o() {
4059
+ function a() {
4060
4060
  return e.showContent ? {} : {
4061
4061
  hidden: !0,
4062
4062
  "aria-hidden": !0
4063
4063
  };
4064
4064
  }
4065
- const [a, r] = E(
4065
+ const [o, r] = E(
4066
4066
  () => e.contentWrapper || "div"
4067
4067
  );
4068
4068
  function l(w) {
@@ -4070,29 +4070,32 @@ function ui(e) {
4070
4070
  model: e.model,
4071
4071
  trustedHosts: e.trustedHosts,
4072
4072
  callbacks: {
4073
- configureSdk: (k) => {
4073
+ configureSdk: (x) => {
4074
4074
  var I;
4075
- const { breakpoints: m, contentId: p } = k;
4075
+ const { breakpoints: m, contentId: p } = x;
4076
4076
  !p || p !== ((I = e.builderContextSignal.content) == null ? void 0 : I.id) || m && i({
4077
4077
  meta: {
4078
4078
  breakpoints: m
4079
4079
  }
4080
4080
  });
4081
4081
  },
4082
- animation: (k) => {
4083
- Oe(k);
4082
+ animation: (x) => {
4083
+ Oe(x);
4084
4084
  },
4085
- contentUpdate: (k) => {
4086
- i(k);
4085
+ contentUpdate: (x) => {
4086
+ i(x);
4087
+ },
4088
+ stateUpdate: (x) => {
4089
+ n(x);
4087
4090
  }
4088
4091
  }
4089
4092
  })(w);
4090
4093
  }
4091
4094
  const [d, c] = E(() => ({})), [h, y] = E(() => ({})), [u, v] = E(() => !1);
4092
4095
  function f(w) {
4093
- var k, m;
4096
+ var x, m;
4094
4097
  if (e.builderContextSignal.content) {
4095
- const p = (k = e.builderContextSignal.content) == null ? void 0 : k.testVariationId, I = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
4098
+ const p = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, I = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
4096
4099
  he({
4097
4100
  apiHost: e.apiHost,
4098
4101
  type: "click",
@@ -4107,8 +4110,8 @@ function ui(e) {
4107
4110
  u || v(!0);
4108
4111
  }
4109
4112
  function g() {
4110
- var k, m, p;
4111
- const w = (p = (m = (k = e.builderContextSignal.content) == null ? void 0 : k.data) == null ? void 0 : m.httpRequests) != null ? p : {};
4113
+ var x, m, p;
4114
+ const w = (p = (m = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : m.httpRequests) != null ? p : {};
4112
4115
  Object.entries(w).forEach(([I, T]) => {
4113
4116
  if (!T || h[I] || d[I] && !W())
4114
4117
  return;
@@ -4136,7 +4139,7 @@ function ui(e) {
4136
4139
  });
4137
4140
  });
4138
4141
  }
4139
- function x() {
4142
+ function S() {
4140
4143
  W() && window.dispatchEvent(
4141
4144
  new CustomEvent(
4142
4145
  "builder:component:stateChange",
@@ -4152,8 +4155,8 @@ function ui(e) {
4152
4155
  );
4153
4156
  }
4154
4157
  const b = $(!1);
4155
- return b.current || (g(), x(), b.current = !0), B(() => {
4156
- var w, k, m, p;
4158
+ return b.current || (g(), S(), b.current = !0), B(() => {
4159
+ var w, x, m, p;
4157
4160
  if (F()) {
4158
4161
  if (W() && !e.isNestedRender && (window.addEventListener("message", l), Ge(), Qe({
4159
4162
  ...e.locale ? {
@@ -4177,9 +4180,9 @@ function ui(e) {
4177
4180
  }
4178
4181
  }), window.addEventListener(
4179
4182
  "builder:component:stateChangeListenerActivated",
4180
- x
4183
+ S
4181
4184
  )), e.builderContextSignal.content && M(e.canTrack)) {
4182
- const T = (k = e.builderContextSignal.content) == null ? void 0 : k.testVariationId, V = (m = e.builderContextSignal.content) == null ? void 0 : m.id, N = e.apiKey;
4185
+ const T = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, V = (m = e.builderContextSignal.content) == null ? void 0 : m.id, N = e.apiKey;
4183
4186
  he({
4184
4187
  apiHost: e.apiHost,
4185
4188
  type: "impression",
@@ -4210,7 +4213,7 @@ function ui(e) {
4210
4213
  }, []), B(() => {
4211
4214
  e.content && i(e.content);
4212
4215
  }, [e.content]), B(() => {
4213
- x();
4216
+ S();
4214
4217
  }, [e.builderContextSignal.rootState]), B(() => {
4215
4218
  e.data && n(e.data);
4216
4219
  }, [e.data]), B(() => {
@@ -4220,14 +4223,14 @@ function ui(e) {
4220
4223
  }, [e.locale]), B(() => () => {
4221
4224
  F() && (window.removeEventListener("message", l), window.removeEventListener(
4222
4225
  "builder:component:stateChangeListenerActivated",
4223
- x
4226
+ S
4224
4227
  ));
4225
4228
  }, []), /* @__PURE__ */ s(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || we() ? /* @__PURE__ */ s(
4226
- a,
4229
+ o,
4227
4230
  {
4228
4231
  ref: t,
4229
4232
  onClick: (w) => f(w),
4230
- "builder-content-id": (S = e.builderContextSignal.content) == null ? void 0 : S.id,
4233
+ "builder-content-id": (k = e.builderContextSignal.content) == null ? void 0 : k.id,
4231
4234
  "builder-model": e.model,
4232
4235
  className: ci(
4233
4236
  ((C = e.content) == null ? void 0 : C.testVariationId) || ((P = e.content) == null ? void 0 : P.id)
@@ -4235,7 +4238,7 @@ function ui(e) {
4235
4238
  style: {
4236
4239
  display: !e.builderContextSignal.content && we() ? "none" : void 0
4237
4240
  },
4238
- ...o(),
4241
+ ...a(),
4239
4242
  ...e.contentWrapperProps,
4240
4243
  children: e.children
4241
4244
  }
@@ -4248,7 +4251,7 @@ ${ri({
4248
4251
  cssCode: e.cssCode,
4249
4252
  contentId: e.contentId
4250
4253
  })}
4251
- ${ai({
4254
+ ${oi({
4252
4255
  customFonts: e.customFonts
4253
4256
  })}
4254
4257
  ${si(e.isNestedRender)}
@@ -4268,13 +4271,13 @@ const mi = ({
4268
4271
  data: t,
4269
4272
  locale: n
4270
4273
  }) => {
4271
- var a, r, l;
4272
- const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
4274
+ var o, r, l;
4275
+ const i = {}, a = ((o = e == null ? void 0 : e.data) == null ? void 0 : o.state) || {};
4273
4276
  return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((d) => {
4274
4277
  d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
4275
4278
  }), {
4276
4279
  ...i,
4277
- ...o,
4280
+ ...a,
4278
4281
  ...t,
4279
4282
  ...n ? {
4280
4283
  locale: n
@@ -4292,31 +4295,31 @@ const mi = ({
4292
4295
  meta: e == null ? void 0 : e.meta
4293
4296
  } : void 0;
4294
4297
  function Ie(e) {
4295
- var c, h, y, u, v, f, g, x, b;
4298
+ var c, h, y, u, v, f, g, S, b;
4296
4299
  const [t, n] = E(
4297
4300
  () => {
4298
- var S, C;
4301
+ var k, C;
4299
4302
  return Zn({
4300
4303
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4301
- variationId: (S = e.content) == null ? void 0 : S.testVariationId,
4304
+ variationId: (k = e.content) == null ? void 0 : k.testVariationId,
4302
4305
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4303
4306
  contentId: (C = e.content) == null ? void 0 : C.id
4304
4307
  });
4305
4308
  }
4306
4309
  );
4307
- function i(S) {
4310
+ function i(k) {
4308
4311
  l((C) => ({
4309
4312
  ...C,
4310
- rootState: S
4313
+ rootState: k
4311
4314
  }));
4312
4315
  }
4313
- const [o, a] = E(
4316
+ const [a, o] = E(
4314
4317
  () => [
4315
4318
  ...ke(),
4316
4319
  ...e.customComponents || []
4317
4320
  ].reduce(
4318
- (S, { component: C, ...P }) => ({
4319
- ...S,
4321
+ (k, { component: C, ...P }) => ({
4322
+ ...k,
4320
4323
  [P.name]: {
4321
4324
  component: C,
4322
4325
  ...ge(P)
@@ -4344,8 +4347,8 @@ function Ie(e) {
4344
4347
  ...ke(),
4345
4348
  ...e.customComponents || []
4346
4349
  ].reduce(
4347
- (S, { component: C, ...P }) => ({
4348
- ...S,
4350
+ (k, { component: C, ...P }) => ({
4351
+ ...k,
4349
4352
  [P.name]: ge(P)
4350
4353
  }),
4351
4354
  {}
@@ -4360,9 +4363,9 @@ function Ie(e) {
4360
4363
  e.apiKey || Q.error(
4361
4364
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4362
4365
  );
4363
- const S = (h = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
4364
- S && L({
4365
- code: S,
4366
+ const k = (h = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
4367
+ k && L({
4368
+ code: k,
4366
4369
  context: e.context || {},
4367
4370
  localState: void 0,
4368
4371
  rootState: r.rootState,
@@ -4376,7 +4379,7 @@ function Ie(e) {
4376
4379
  Be.Provider,
4377
4380
  {
4378
4381
  value: {
4379
- registeredComponents: o
4382
+ registeredComponents: a
4380
4383
  },
4381
4384
  children: /* @__PURE__ */ A(
4382
4385
  ui,
@@ -4420,9 +4423,9 @@ function Ie(e) {
4420
4423
  /* @__PURE__ */ s(
4421
4424
  D,
4422
4425
  {
4423
- blocks: (b = (x = r.content) == null ? void 0 : x.data) == null ? void 0 : b.blocks,
4426
+ blocks: (b = (S = r.content) == null ? void 0 : S.data) == null ? void 0 : b.blocks,
4424
4427
  context: r,
4425
- registeredComponents: o,
4428
+ registeredComponents: a,
4426
4429
  linkComponent: e.linkComponent
4427
4430
  }
4428
4431
  )
@@ -4450,10 +4453,10 @@ function hi(e) {
4450
4453
  ((l = e.content) == null ? void 0 : l.id) || ""
4451
4454
  );
4452
4455
  }
4453
- function o() {
4456
+ function a() {
4454
4457
  return z(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
4455
4458
  }
4456
- function a() {
4459
+ function o() {
4457
4460
  var l;
4458
4461
  return t ? {
4459
4462
  ...e.content,
@@ -4478,7 +4481,7 @@ function hi(e) {
4478
4481
  j,
4479
4482
  {
4480
4483
  id: "builderio-variants",
4481
- styles: o(),
4484
+ styles: a(),
4482
4485
  nonce: e.nonce || ""
4483
4486
  }
4484
4487
  ),
@@ -4524,7 +4527,7 @@ function hi(e) {
4524
4527
  apiHost: e.apiHost,
4525
4528
  nonce: e.nonce,
4526
4529
  isNestedRender: e.isNestedRender,
4527
- content: a(),
4530
+ content: o(),
4528
4531
  showContent: !0,
4529
4532
  model: e.model,
4530
4533
  data: e.data,
@@ -4582,16 +4585,16 @@ function bi(e) {
4582
4585
  (v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4583
4586
  ].filter(Boolean).join(" ");
4584
4587
  }
4585
- const [o, a] = E(() => {
4588
+ const [a, o] = E(() => {
4586
4589
  var u;
4587
4590
  return (u = e.symbol) == null ? void 0 : u.content;
4588
4591
  });
4589
4592
  function r() {
4590
- o || gi({
4593
+ a || gi({
4591
4594
  symbol: e.symbol,
4592
4595
  builderContextValue: e.builderContext
4593
4596
  }).then((u) => {
4594
- u && a(u);
4597
+ u && o(u);
4595
4598
  });
4596
4599
  }
4597
4600
  return B(() => {
@@ -4612,11 +4615,11 @@ function bi(e) {
4612
4615
  data: {
4613
4616
  ...(d = e.symbol) == null ? void 0 : d.data,
4614
4617
  ...e.builderContext.localState,
4615
- ...(c = o == null ? void 0 : o.data) == null ? void 0 : c.state
4618
+ ...(c = a == null ? void 0 : a.data) == null ? void 0 : c.state
4616
4619
  },
4617
4620
  canTrack: e.builderContext.canTrack,
4618
4621
  model: (y = (h = e.symbol) == null ? void 0 : h.model) != null ? y : "",
4619
- content: o,
4622
+ content: a,
4620
4623
  linkComponent: e.builderLinkComponent,
4621
4624
  blocksWrapper: t(),
4622
4625
  contentWrapper: n()