@builder.io/sdk-react 4.0.9 → 4.0.10

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 (74) hide show
  1. package/lib/browser/blocks-exports.cjs +9 -9
  2. package/lib/browser/blocks-exports.mjs +455 -440
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/server-entry-6a0d3985.cjs +2 -0
  6. package/lib/{edge/server-entry-8dc3478a.js → browser/server-entry-a97b474c.js} +272 -265
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/{accordion-b551e135.js → accordion-39aaa10f.js} +1 -1
  10. package/lib/edge/{accordion-e3f81e74.cjs → accordion-f19408f1.cjs} +1 -1
  11. package/lib/edge/{blocks-cd1feef2.js → blocks-204bcb03.js} +2 -2
  12. package/lib/edge/{blocks-eb6fa21f.cjs → blocks-bd4d19a4.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-5c6a9392.cjs → button-39adadab.cjs} +1 -1
  16. package/lib/edge/{button-f390f723.js → button-eb4a1fce.js} +2 -2
  17. package/lib/edge/{columns-ad17139e.cjs → columns-3954e4e2.cjs} +1 -1
  18. package/lib/edge/{columns-7018a027.js → columns-d3cef236.js} +3 -3
  19. package/lib/edge/{content-variants-c72ca81f.cjs → content-variants-0c41aa3b.cjs} +3 -3
  20. package/lib/edge/{content-variants-dc54ce4f.js → content-variants-68bbb30c.js} +13 -13
  21. package/lib/edge/{custom-code-e87af7b1.cjs → custom-code-eded3b35.cjs} +1 -1
  22. package/lib/edge/{custom-code-0daf1c91.js → custom-code-f8374f7b.js} +1 -1
  23. package/lib/edge/{embed-1dfcba43.js → embed-2b4ce9d5.js} +1 -1
  24. package/lib/edge/{embed-c695c98e.cjs → embed-44dee332.cjs} +1 -1
  25. package/lib/edge/form-1493caf1.cjs +1 -0
  26. package/lib/edge/form-9faf63c9.js +178 -0
  27. package/lib/edge/{get-class-prop-name-c479656a.cjs → get-class-prop-name-a9265175.cjs} +1 -1
  28. package/lib/edge/{get-class-prop-name-5edacc3b.js → get-class-prop-name-cc48fc17.js} +1 -1
  29. package/lib/edge/{img-882c7222.js → img-58c08dd4.js} +1 -1
  30. package/lib/edge/{img-6982d6eb.cjs → img-b8d85bad.cjs} +1 -1
  31. package/lib/edge/index.cjs +1 -1
  32. package/lib/edge/index.mjs +1 -1
  33. package/lib/edge/{input-3d4f956b.js → input-a7c01b3a.js} +1 -1
  34. package/lib/edge/{input-8c7008b5.cjs → input-d988f887.cjs} +1 -1
  35. package/lib/edge/personalization-container-2f2bfa1b.cjs +1 -0
  36. package/lib/edge/{personalization-container-3a8dc18a.js → personalization-container-9ae00624.js} +35 -32
  37. package/lib/edge/{select-2efc7503.cjs → select-03b307f2.cjs} +1 -1
  38. package/lib/edge/{select-153586f8.js → select-4f03decc.js} +1 -1
  39. package/lib/{node/server-entry-f03c1146.js → edge/server-entry-0fe1fd76.js} +306 -303
  40. package/lib/edge/server-entry-e13b9b35.cjs +2 -0
  41. package/lib/edge/server-entry.cjs +1 -1
  42. package/lib/edge/server-entry.mjs +1 -1
  43. package/lib/edge/{slot-f1f7513c.cjs → slot-125b0593.cjs} +1 -1
  44. package/lib/edge/{slot-d268693c.js → slot-ff90c844.js} +3 -3
  45. package/lib/edge/{symbol-378e19ee.js → symbol-7558aa24.js} +2 -2
  46. package/lib/edge/{symbol-0344516c.cjs → symbol-da3ec542.cjs} +1 -1
  47. package/lib/edge/{tabs-4e931765.cjs → tabs-3cf7cfd3.cjs} +1 -1
  48. package/lib/edge/{tabs-29ff78a0.js → tabs-a9e56d82.js} +3 -3
  49. package/lib/node/blocks-exports.cjs +16 -16
  50. package/lib/node/blocks-exports.mjs +255 -240
  51. package/lib/node/index.cjs +1 -1
  52. package/lib/node/index.mjs +3 -3
  53. package/lib/node/init.cjs +1 -1
  54. package/lib/node/init.mjs +3 -3
  55. package/lib/{browser/server-entry-231f8ecd.js → node/server-entry-23f9b44b.js} +205 -199
  56. package/lib/node/server-entry-ceef853b.cjs +2 -0
  57. package/lib/node/server-entry.cjs +1 -1
  58. package/lib/node/server-entry.mjs +1 -1
  59. package/lib/node/{setIvm-3761bb10.cjs → setIvm-71bce8c3.cjs} +1 -1
  60. package/lib/node/{setIvm-044ce9e7.js → setIvm-b29cbc40.js} +1 -1
  61. package/lib/node/setIvm.cjs +1 -1
  62. package/lib/node/setIvm.mjs +2 -2
  63. package/lib/node/{should-force-browser-runtime-in-node-f620dcdc.js → should-force-browser-runtime-in-node-5a2ea9eb.js} +1 -1
  64. package/lib/node/{should-force-browser-runtime-in-node-e760d4f2.cjs → should-force-browser-runtime-in-node-e0147364.cjs} +1 -1
  65. package/package.json +1 -1
  66. package/types/constants/sdk-version.d.ts +1 -1
  67. package/types/helpers/no-serialize-wrapper.d.ts +1 -0
  68. package/types/helpers/user-attributes.d.ts +6 -2
  69. package/lib/browser/server-entry-bdbd3c0d.cjs +0 -2
  70. package/lib/edge/form-5a0c89d9.js +0 -166
  71. package/lib/edge/form-ba54942c.cjs +0 -1
  72. package/lib/edge/personalization-container-4557a50b.cjs +0 -1
  73. package/lib/edge/server-entry-9d269960.cjs +0 -2
  74. package/lib/node/server-entry-916c726c.cjs +0 -2
@@ -1,15 +1,15 @@
1
1
  "use client";
2
- import { TARGET as D, isEditing as O, isBrowser as M, getUserAttributes as ct, checkIsDefined as ae, logger as J, isPreviewing as le, userAttributesService as Ce, getDefaultCanTrack as Z, logFetch as Oe, registerInsertMenu as ut, setupBrowserForEditing as dt, createRegisterComponentMessage as mt, getCookieSync as ft, _track as Te, fetchOneEntry as Le, createEditorListener as ht, serializeIncludingFunctions as Ie, handleABTestingSync as gt } from "./server-entry-231f8ecd.js";
3
- import { setClientUserAttributes as Mi } from "./server-entry-231f8ecd.js";
2
+ import { TARGET as F, isEditing as L, isBrowser as M, getUserAttributes as ct, checkIsDefined as oe, logger as J, isPreviewing as le, userAttributesService as Ce, getDefaultCanTrack as Z, logFetch as Oe, registerInsertMenu as ut, setupBrowserForEditing as dt, createRegisterComponentMessage as mt, getCookieSync as ft, _track as Te, fetchOneEntry as Le, createEditorListener as ht, serializeIncludingFunctions as Ie, handleABTestingSync as gt } from "./server-entry-a97b474c.js";
3
+ import { setClientUserAttributes as Mi } from "./server-entry-a97b474c.js";
4
4
  import { jsx as s, Fragment as R, jsxs as W } from "react/jsx-runtime";
5
5
  import * as bt from "react";
6
- import { createContext as _e, useEffect as P, useState as C, useRef as H, useContext as we, createElement as Ue } from "react";
6
+ import { createContext as _e, useEffect as V, useState as C, useRef as H, useContext as we, createElement as Ue } from "react";
7
7
  const yt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), pt = (e) => typeof e == "string" && yt.has(e.toLowerCase());
8
8
  function ye(e) {
9
9
  return /* @__PURE__ */ s(R, { children: pt(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
10
10
  }
11
11
  const z = () => {
12
- switch (D) {
12
+ switch (F) {
13
13
  case "react":
14
14
  case "reactNative":
15
15
  case "rsc":
@@ -62,7 +62,7 @@ const pe = _e({
62
62
  nonce: "",
63
63
  model: ""
64
64
  }), He = _e({ registeredComponents: {} }), Me = (e, t, n) => {
65
- const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, a) => r != null ? r[a] : r, e);
65
+ const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, o) => r != null ? r[o] : r, e);
66
66
  return i === void 0 || i === e ? n : i;
67
67
  }, xt = ({
68
68
  builder: e,
@@ -77,7 +77,7 @@ const pe = _e({
77
77
  context: t,
78
78
  event: n
79
79
  }), St = () => ({
80
- isEditing: O(),
80
+ isEditing: L(),
81
81
  isBrowser: M(),
82
82
  isServer: !M(),
83
83
  getUserAttributes: () => ct()
@@ -93,19 +93,19 @@ function qe({
93
93
  get: (i, r) => {
94
94
  if (t && r in t)
95
95
  return t[r];
96
- const a = i[r];
97
- return typeof a == "object" && a !== null ? qe({
98
- rootState: a,
96
+ const o = i[r];
97
+ return typeof o == "object" && o !== null ? qe({
98
+ rootState: o,
99
99
  localState: void 0,
100
- rootSetState: n ? (o) => {
101
- i[r] = o, n(i);
100
+ rootSetState: n ? (a) => {
101
+ i[r] = a, n(i);
102
102
  } : void 0
103
- }) : a;
103
+ }) : o;
104
104
  },
105
- set: (i, r, a) => {
105
+ set: (i, r, o) => {
106
106
  if (t && r in t)
107
107
  throw new Error("Writing to local state is not allowed as it is read-only.");
108
- return i[r] = a, n == null || n(i), !0;
108
+ return i[r] = o, n == null || n(i), !0;
109
109
  }
110
110
  });
111
111
  }
@@ -115,24 +115,24 @@ const Ee = ({
115
115
  context: n,
116
116
  event: i,
117
117
  localState: r,
118
- rootSetState: a,
119
- rootState: o
118
+ rootSetState: o,
119
+ rootState: a
120
120
  }) => {
121
121
  const l = xt({
122
122
  builder: t,
123
123
  context: n,
124
124
  event: i,
125
125
  state: qe({
126
- rootState: o,
126
+ rootState: a,
127
127
  localState: r,
128
- rootSetState: a
128
+ rootSetState: o
129
129
  })
130
130
  });
131
131
  return new Function(...l.map(([c]) => c), e)(...l.map(([, c]) => c));
132
132
  };
133
133
  function Ct() {
134
134
  var e;
135
- return typeof process != "undefined" && ae((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
135
+ return typeof process != "undefined" && oe((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
136
136
  }
137
137
  const Tt = ({
138
138
  shouldLogWarning: e
@@ -145,8 +145,8 @@ const Tt = ({
145
145
  }, It = (e) => (M() || Tt({
146
146
  shouldLogWarning: !0
147
147
  }), Ee(e)), wt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Et = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Rt = (e) => {
148
- var t, n, i, r, a, o;
149
- return ((i = (n = (t = wt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((o = (a = (r = Et.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : a.getPath) == null ? void 0 : o.slice(1));
148
+ var t, n, i, r, o, a;
149
+ return ((i = (n = (t = wt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((a = (o = (r = Et.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : o.getPath) == null ? void 0 : a.slice(1));
150
150
  };
151
151
  function G({
152
152
  code: e,
@@ -154,8 +154,8 @@ function G({
154
154
  localState: n,
155
155
  rootState: i,
156
156
  rootSetState: r,
157
- event: a,
158
- isExpression: o = !0
157
+ event: o,
158
+ isExpression: a = !0
159
159
  }) {
160
160
  if (e.trim() === "")
161
161
  return;
@@ -167,11 +167,11 @@ function G({
167
167
  }, l);
168
168
  const c = {
169
169
  code: kt(e, {
170
- isExpression: o
170
+ isExpression: a
171
171
  }),
172
172
  builder: St(),
173
173
  context: t,
174
- event: a,
174
+ event: o,
175
175
  rootSetState: r,
176
176
  rootState: i,
177
177
  localState: n
@@ -198,8 +198,8 @@ const Vt = (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, (r, a) => G({
202
- code: a,
201
+ text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, o) => G({
202
+ code: o,
203
203
  context: t,
204
204
  localState: t.localState,
205
205
  rootState: t.rootState,
@@ -213,21 +213,21 @@ function At(e, ...t) {
213
213
  delete n[i];
214
214
  return n;
215
215
  }
216
- function oe(e, t, n = null, i = null, r = /* @__PURE__ */ new WeakSet()) {
216
+ function ae(e, t, n = null, i = null, r = /* @__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
- r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((a, o) => {
224
- t(a, (c) => {
225
- e[o] = c;
226
- }), oe(a, t, e, o, r);
227
- }) : Object.entries(e).forEach(([a, o]) => {
223
+ r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((o, a) => {
228
224
  t(o, (c) => {
229
225
  e[a] = c;
230
- }), oe(o, t, e, a, r);
226
+ }), ae(o, t, e, a, r);
227
+ }) : Object.entries(e).forEach(([o, a]) => {
228
+ t(a, (c) => {
229
+ e[o] = c;
230
+ }), ae(a, t, e, o, r);
231
231
  }));
232
232
  }
233
233
  function je(e) {
@@ -237,7 +237,7 @@ function Bt(e) {
237
237
  if (!e || !Object.getOwnPropertyNames(e).length)
238
238
  return !1;
239
239
  let t = !1;
240
- return oe(e, (n) => {
240
+ return ae(e, (n) => {
241
241
  if (je(n)) {
242
242
  t = !0;
243
243
  return;
@@ -245,7 +245,7 @@ function Bt(e) {
245
245
  }), t;
246
246
  }
247
247
  function Nt(e, t) {
248
- return !e || !Object.getOwnPropertyNames(e).length ? {} : (oe(e, (n, i) => {
248
+ return !e || !Object.getOwnPropertyNames(e).length ? {} : (ae(e, (n, i) => {
249
249
  var r;
250
250
  je(n) && i((r = n[t]) != null ? r : void 0);
251
251
  }), e);
@@ -258,7 +258,7 @@ const ve = (e) => JSON.parse(JSON.stringify(e)), ze = (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((r, a, o) => Object(r[a]) === r[a] ? r[a] : r[a] = Math.abs(Number(i[o + 1])) >> 0 === +i[o + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
261
+ return i.slice(0, -1).reduce((r, o, a) => Object(r[o]) === r[o] ? r[o] : r[o] = Math.abs(Number(i[a + 1])) >> 0 === +i[a + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
262
262
  };
263
263
  function be(e) {
264
264
  if (e === null || typeof e != "object")
@@ -272,7 +272,7 @@ function be(e) {
272
272
  n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = be(e[n]));
273
273
  return t;
274
274
  }
275
- const $t = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), Dt = (e) => {
275
+ const $t = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), Dt = (e) => {
276
276
  if ($t) {
277
277
  const t = ve(e);
278
278
  return {
@@ -307,18 +307,18 @@ const $t = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), Dt = (e) =
307
307
  }) => {
308
308
  if (!e.bindings)
309
309
  return e;
310
- const a = Dt(e);
311
- for (const o in e.bindings) {
312
- const l = e.bindings[o], c = G({
310
+ const o = Dt(e);
311
+ for (const a in e.bindings) {
312
+ const l = e.bindings[a], c = G({
313
313
  code: l,
314
314
  localState: n,
315
315
  rootState: i,
316
316
  rootSetState: r,
317
317
  context: t
318
318
  });
319
- ze(a, o, c);
319
+ ze(o, a, c);
320
320
  }
321
- return a;
321
+ return o;
322
322
  };
323
323
  function Ot({
324
324
  block: e,
@@ -327,9 +327,9 @@ function Ot({
327
327
  rootState: i,
328
328
  rootSetState: r
329
329
  }) {
330
- let a = Wt(e, i.locale);
331
- return a = a, Ft({
332
- block: a,
330
+ let o = Wt(e, i.locale);
331
+ return o = o, Ft({
332
+ block: o,
333
333
  localState: n,
334
334
  rootState: i,
335
335
  rootSetState: r,
@@ -338,15 +338,15 @@ function Ot({
338
338
  }
339
339
  const se = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
340
340
  function Lt(e, t, n = {}) {
341
- let i, r, a, o = null, l = 0;
341
+ let i, r, o, a = null, l = 0;
342
342
  const c = function() {
343
- l = n.leading === !1 ? 0 : Date.now(), o = null, a = e.apply(i, r), o || (i = r = null);
343
+ l = n.leading === !1 ? 0 : Date.now(), a = null, o = e.apply(i, r), a || (i = r = null);
344
344
  };
345
345
  return function() {
346
346
  const u = Date.now();
347
347
  !l && n.leading === !1 && (l = u);
348
348
  const f = t - (u - l);
349
- return i = this, r = arguments, f <= 0 || f > t ? (o && (clearTimeout(o), o = null), l = u, a = e.apply(i, r), o || (i = r = null)) : !o && n.trailing !== !1 && (o = setTimeout(c, f)), a;
349
+ 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;
350
350
  };
351
351
  }
352
352
  function X(e, ...t) {
@@ -354,8 +354,8 @@ function X(e, ...t) {
354
354
  for (let i = 1; i < arguments.length; i++) {
355
355
  const r = arguments[i];
356
356
  if (r != null)
357
- for (const a in r)
358
- Object.prototype.hasOwnProperty.call(r, a) && (n[a] = r[a]);
357
+ for (const o in r)
358
+ Object.prototype.hasOwnProperty.call(r, o) && (n[o] = r[o]);
359
359
  }
360
360
  return n;
361
361
  }
@@ -374,8 +374,8 @@ function Ke(e) {
374
374
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
375
375
  }
376
376
  function Je(e, t) {
377
- const n = Ut(e), i = getComputedStyle(t), r = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, o = [r, a];
378
- for (const l of o)
377
+ const n = Ut(e), i = getComputedStyle(t), r = e.steps[0].styles, o = e.steps[e.steps.length - 1].styles, a = [r, o];
378
+ for (const l of a)
379
379
  for (const c of n)
380
380
  c in l || (l[c] = i[c]);
381
381
  }
@@ -409,19 +409,19 @@ function Ht(e) {
409
409
  Array.from(t).forEach((n) => {
410
410
  Je(e, n);
411
411
  let i = !1, r = !1;
412
- function a() {
412
+ function o() {
413
413
  !i && l(n) ? (i = !0, r = !0, setTimeout(() => {
414
- X(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", o), setTimeout(() => {
414
+ X(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
415
415
  r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
416
416
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
417
417
  })) : e.repeat && i && !r && !l(n) && (i = !1, X(n.style, e.steps[0].styles));
418
418
  }
419
- const o = Lt(a, 200, {
419
+ const a = Lt(o, 200, {
420
420
  leading: !1
421
421
  });
422
422
  function l(f) {
423
- const g = f.getBoundingClientRect(), m = window.innerHeight, d = (e.thresholdPercent || 0) / 100 * m;
424
- return g.bottom > d && g.top < m - d;
423
+ const b = f.getBoundingClientRect(), m = window.innerHeight, d = (e.thresholdPercent || 0) / 100 * m;
424
+ return b.bottom > d && b.top < m - d;
425
425
  }
426
426
  const c = e.steps[0].styles;
427
427
  function u() {
@@ -429,16 +429,16 @@ function Ht(e) {
429
429
  }
430
430
  u(), setTimeout(() => {
431
431
  n.style.transition = `all ${e.duration}s ${se(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
432
- }), document.addEventListener("scroll", o, {
432
+ }), document.addEventListener("scroll", a, {
433
433
  capture: !0,
434
434
  passive: !0
435
- }), a();
435
+ }), o();
436
436
  });
437
437
  }
438
438
  const Qe = (e) => Object.entries(e).map(([n, i]) => {
439
439
  if (typeof i == "string")
440
440
  return `${se(n)}: ${i};`;
441
- }).filter(ae), Mt = (e) => Qe(e).join(`
441
+ }).filter(oe), Mt = (e) => Qe(e).join(`
442
442
  `), Y = ({
443
443
  mediaQuery: e,
444
444
  className: t,
@@ -465,7 +465,7 @@ const jt = ({
465
465
  block: e
466
466
  }));
467
467
  function Ye(e) {
468
- switch (D) {
468
+ switch (F) {
469
469
  case "svelte":
470
470
  case "vue":
471
471
  case "solid":
@@ -483,8 +483,8 @@ const Xe = (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
490
  const r = t[i];
@@ -514,7 +514,7 @@ const Xe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
514
514
  });
515
515
  if (!Array.isArray(r))
516
516
  return;
517
- const a = n.collection.split(".").pop(), o = n.itemName || (a ? a + "Item" : "item");
517
+ const o = n.collection.split(".").pop(), a = n.itemName || (o ? o + "Item" : "item");
518
518
  return r.map((c, u) => ({
519
519
  context: {
520
520
  ...t,
@@ -522,8 +522,8 @@ const Xe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
522
522
  ...t.localState,
523
523
  $index: u,
524
524
  $item: c,
525
- [o]: c,
526
- [`$${o}Index`]: u
525
+ [a]: c,
526
+ [`$${a}Index`]: u
527
527
  }
528
528
  },
529
529
  block: i
@@ -536,7 +536,7 @@ const Xe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
536
536
  }, Gt = (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, o]) => !Xe(o, n)))
539
+ builderComponents: Object.fromEntries(Object.entries(t).filter(([o, a]) => !Xe(a, n)))
540
540
  } : {};
541
541
  }, Qt = (e, t) => {
542
542
  var n;
@@ -588,17 +588,17 @@ const Xe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
588
588
  }
589
589
  if (!i || !r)
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
- const o = t.small.max + 1;
597
+ const a = t.small.max + 1;
598
598
  t.medium = {
599
599
  max: r,
600
- min: o,
601
- default: o + 1
600
+ min: a,
601
+ default: a + 1
602
602
  };
603
603
  const l = t.medium.max + 1;
604
604
  return t.large = {
@@ -621,13 +621,13 @@ function ee(e) {
621
621
  function Xt(e) {
622
622
  function t() {
623
623
  const i = e.block;
624
- return ae(i.hide) ? !i.hide : ae(i.show) ? i.show : !0;
624
+ return oe(i.hide) ? !i.hide : oe(i.show) ? i.show : !0;
625
625
  }
626
626
  function n() {
627
- var k, V, T, I, b;
628
- const i = e.block, r = i.responsiveStyles, a = e.context.content, o = et(
629
- ((k = a == null ? void 0 : a.meta) == null ? void 0 : k.breakpoints) || {}
630
- ), l = !!((T = (V = a == null ? void 0 : a.meta) == null ? void 0 : V.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, g = r == null ? void 0 : r.xsmall, m = i.id;
627
+ var k, A, T, I, g;
628
+ const i = e.block, r = i.responsiveStyles, o = e.context.content, a = et(
629
+ ((k = o == null ? void 0 : o.meta) == null ? void 0 : k.breakpoints) || {}
630
+ ), 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;
631
631
  if (!m)
632
632
  return "";
633
633
  const v = c ? Y({
@@ -638,30 +638,30 @@ function Xt(e) {
638
638
  styles: u,
639
639
  mediaQuery: ue(
640
640
  "medium",
641
- o
641
+ a
642
642
  )
643
643
  }) : "", h = f ? Y({
644
644
  className: m,
645
645
  styles: f,
646
646
  mediaQuery: ue(
647
647
  "small",
648
- o
648
+ a
649
649
  )
650
- }) : "", p = g && l ? Y({
650
+ }) : "", p = b && l ? Y({
651
651
  className: m,
652
- styles: g,
652
+ styles: b,
653
653
  mediaQuery: ue(
654
654
  "xsmall",
655
- o
655
+ a
656
656
  )
657
- }) : "", y = i.animations && i.animations.find((S) => S.trigger === "hover");
658
- let x = "";
657
+ }) : "", y = i.animations && i.animations.find((x) => x.trigger === "hover");
658
+ let S = "";
659
659
  if (y) {
660
- const S = ((b = (I = y.steps) == null ? void 0 : I[1]) == null ? void 0 : b.styles) || {};
661
- x = Y({
660
+ const x = ((g = (I = y.steps) == null ? void 0 : I[1]) == null ? void 0 : g.styles) || {};
661
+ S = Y({
662
662
  className: `${m}:hover`,
663
663
  styles: {
664
- ...S,
664
+ ...x,
665
665
  transition: `all ${y.duration}s ${se(
666
666
  y.easing
667
667
  )}`,
@@ -674,7 +674,7 @@ function Xt(e) {
674
674
  d,
675
675
  h,
676
676
  p,
677
- x
677
+ S
678
678
  ].join(" ");
679
679
  }
680
680
  return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
@@ -704,18 +704,18 @@ function tt(e) {
704
704
  for (const r in n) {
705
705
  if (!n.hasOwnProperty(r))
706
706
  continue;
707
- const a = n[r];
708
- let o = en(r);
707
+ const o = n[r];
708
+ let a = en(r);
709
709
  if (e.stripPrefix)
710
- switch (D) {
710
+ switch (F) {
711
711
  case "vue":
712
- o = o.replace("v-on:", "");
712
+ a = a.replace("v-on:", "");
713
713
  break;
714
714
  case "svelte":
715
- o = o.replace("on:", "");
715
+ a = a.replace("on:", "");
716
716
  break;
717
717
  }
718
- t[o] = tn(a, e);
718
+ t[a] = tn(o, e);
719
719
  }
720
720
  return t;
721
721
  }
@@ -748,7 +748,7 @@ function xe({
748
748
  block: e
749
749
  });
750
750
  }
751
- function an(e) {
751
+ function on(e) {
752
752
  return /* @__PURE__ */ s(
753
753
  ye,
754
754
  {
@@ -769,8 +769,8 @@ function an(e) {
769
769
  }
770
770
  );
771
771
  }
772
- function on(e) {
773
- return P(() => {
772
+ function an(e) {
773
+ return V(() => {
774
774
  }, []), /* @__PURE__ */ s(R, { children: e.children });
775
775
  }
776
776
  function ln(e) {
@@ -794,9 +794,9 @@ function ln(e) {
794
794
  function n() {
795
795
  return e.wrapperProps;
796
796
  }
797
- return P(() => {
797
+ return V(() => {
798
798
  }, [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(
799
- on,
799
+ an,
800
800
  {
801
801
  load: e.Wrapper.load,
802
802
  fallback: e.Wrapper.fallback,
@@ -812,8 +812,8 @@ const sn = ({
812
812
  context: n,
813
813
  componentRef: i,
814
814
  includeBlockProps: r,
815
- isInteractive: a,
816
- contextValue: o
815
+ isInteractive: o,
816
+ contextValue: a
817
817
  }) => {
818
818
  const l = {
819
819
  ...e,
@@ -824,11 +824,11 @@ const sn = ({
824
824
  ...r ? {
825
825
  attributes: xe({
826
826
  block: t,
827
- context: o
827
+ context: a
828
828
  })
829
829
  } : {}
830
830
  };
831
- return a ? {
831
+ return o ? {
832
832
  Wrapper: i,
833
833
  block: t,
834
834
  context: n,
@@ -842,7 +842,7 @@ function Pe(e) {
842
842
  const [t, n] = C(
843
843
  () => e.isInteractive ? ln : e.componentRef
844
844
  );
845
- return P(() => {
845
+ return V(() => {
846
846
  }, [e.componentOptions, e.blockChildren]), /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
847
847
  t,
848
848
  {
@@ -871,7 +871,7 @@ function Pe(e) {
871
871
  }
872
872
  function Ve(e) {
873
873
  const [t, n] = C(() => e.repeatContext);
874
- return P(() => {
874
+ return V(() => {
875
875
  n(e.repeatContext);
876
876
  }, [e.repeatContext]), /* @__PURE__ */ s(pe.Provider, { value: t, children: /* @__PURE__ */ s(
877
877
  ce,
@@ -884,7 +884,7 @@ function Ve(e) {
884
884
  ) });
885
885
  }
886
886
  function ce(e) {
887
- var f, g, m, v;
887
+ var f, b, m, v;
888
888
  function t() {
889
889
  return Kt({
890
890
  block: e.block,
@@ -908,14 +908,14 @@ function ce(e) {
908
908
  });
909
909
  return n.value = d, n.update = !1, d;
910
910
  }
911
- function a() {
911
+ function o() {
912
912
  return zt({
913
913
  block: r(),
914
914
  registeredComponents: e.registeredComponents,
915
915
  model: e.context.model
916
916
  });
917
917
  }
918
- function o() {
918
+ function a() {
919
919
  var h;
920
920
  return e.block.tagName === "a" || ((h = r().properties) == null ? void 0 : h.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
921
921
  }
@@ -928,20 +928,20 @@ function ce(e) {
928
928
  }
929
929
  function c() {
930
930
  var h, p;
931
- return !((h = a == null ? void 0 : a()) != null && h.component) && !t() ? (p = r().children) != null ? p : [] : [];
931
+ return !((h = o == null ? void 0 : o()) != null && h.component) && !t() ? (p = r().children) != null ? p : [] : [];
932
932
  }
933
933
  function u() {
934
934
  var d, h, p, y;
935
935
  return {
936
936
  blockChildren: (d = r().children) != null ? d : [],
937
- componentRef: (h = a == null ? void 0 : a()) == null ? void 0 : h.component,
937
+ componentRef: (h = o == null ? void 0 : o()) == null ? void 0 : h.component,
938
938
  componentOptions: {
939
939
  ...Pt(r(), e.context),
940
- ...Qt(a(), r()),
941
- ...Yt(a(), e.context),
942
- ...Jt(a(), e.linkComponent),
940
+ ...Qt(o(), r()),
941
+ ...Yt(o(), e.context),
942
+ ...Jt(o(), e.linkComponent),
943
943
  ...Gt(
944
- a(),
944
+ o(),
945
945
  e.registeredComponents,
946
946
  e.context.model
947
947
  )
@@ -950,11 +950,11 @@ function ce(e) {
950
950
  linkComponent: e.linkComponent,
951
951
  registeredComponents: e.registeredComponents,
952
952
  builderBlock: r(),
953
- includeBlockProps: ((p = a == null ? void 0 : a()) == null ? void 0 : p.noWrap) === !0,
954
- isInteractive: !((y = a == null ? void 0 : a()) != null && y.isRSC && D === "rsc")
953
+ includeBlockProps: ((p = o == null ? void 0 : o()) == null ? void 0 : p.noWrap) === !0,
954
+ isInteractive: !((y = o == null ? void 0 : o()) != null && y.isRSC && F === "rsc")
955
955
  };
956
956
  }
957
- return P(() => {
957
+ return V(() => {
958
958
  const d = r().id, h = r().animations;
959
959
  h && d && _t(
960
960
  h.map((p) => ({
@@ -962,11 +962,11 @@ function ce(e) {
962
962
  elementId: d
963
963
  }))
964
964
  );
965
- }, []), P(() => {
965
+ }, []), V(() => {
966
966
  n.update = !0;
967
967
  }), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ W(R, { children: [
968
968
  /* @__PURE__ */ s(Xt, { block: r(), context: e.context }),
969
- (f = a == null ? void 0 : a()) != null && f.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((d, h) => /* @__PURE__ */ s(
969
+ (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(
970
970
  Ve,
971
971
  {
972
972
  repeatContext: d.context,
@@ -998,9 +998,9 @@ function ce(e) {
998
998
  },
999
999
  Re(h)
1000
1000
  )) }) : /* @__PURE__ */ W(
1001
- an,
1001
+ on,
1002
1002
  {
1003
- Wrapper: o(),
1003
+ Wrapper: a(),
1004
1004
  block: r(),
1005
1005
  context: e.context,
1006
1006
  children: [
@@ -1018,7 +1018,7 @@ function ce(e) {
1018
1018
  isInteractive: u().isInteractive
1019
1019
  }
1020
1020
  ),
1021
- (g = c()) == null ? void 0 : g.map((d) => /* @__PURE__ */ s(
1021
+ (b = c()) == null ? void 0 : b.map((d) => /* @__PURE__ */ s(
1022
1022
  ce,
1023
1023
  {
1024
1024
  block: d,
@@ -1037,22 +1037,22 @@ function cn(e) {
1037
1037
  const t = H(null);
1038
1038
  C(() => !1);
1039
1039
  function n() {
1040
- var o;
1040
+ var a;
1041
1041
  return [
1042
1042
  "builder-blocks",
1043
- (o = e.blocks) != null && o.length ? "" : "no-blocks",
1043
+ (a = e.blocks) != null && a.length ? "" : "no-blocks",
1044
1044
  e.classNameProp
1045
1045
  ].filter(Boolean).join(" ");
1046
1046
  }
1047
1047
  function i() {
1048
1048
  if (!e.path)
1049
1049
  return;
1050
- const o = "this.", l = "component.options.";
1051
- return e.path.startsWith(o) ? e.path.replace(o, "") : e.path.startsWith(l) ? e.path : `${l}${e.path || ""}`;
1050
+ const a = "this.", l = "component.options.";
1051
+ return e.path.startsWith(a) ? e.path.replace(a, "") : e.path.startsWith(l) ? e.path : `${l}${e.path || ""}`;
1052
1052
  }
1053
1053
  function r() {
1054
- var o, l;
1055
- O() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
1054
+ var a, l;
1055
+ L() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
1056
1056
  {
1057
1057
  type: "builder.clickEmptyBlocks",
1058
1058
  data: {
@@ -1063,9 +1063,9 @@ function cn(e) {
1063
1063
  "*"
1064
1064
  ));
1065
1065
  }
1066
- function a() {
1067
- var o, l;
1068
- O() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
1066
+ function o() {
1067
+ var a, l;
1068
+ L() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
1069
1069
  {
1070
1070
  type: "builder.hoverEmptyBlocks",
1071
1071
  data: {
@@ -1076,8 +1076,8 @@ function cn(e) {
1076
1076
  "*"
1077
1077
  ));
1078
1078
  }
1079
- return P(() => {
1080
- }, []), P(() => {
1079
+ return V(() => {
1080
+ }, []), V(() => {
1081
1081
  }, [e.blocks]), /* @__PURE__ */ W(R, { children: [
1082
1082
  /* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-8834791c {
1083
1083
  display: flex;
@@ -1092,9 +1092,9 @@ function cn(e) {
1092
1092
  "builder-path": i(),
1093
1093
  "builder-parent-id": e.parent,
1094
1094
  style: e.styleProp,
1095
- onClick: (o) => r(),
1096
- onMouseEnter: (o) => a(),
1097
- onKeyPress: (o) => r(),
1095
+ onClick: (a) => r(),
1096
+ onMouseEnter: (a) => o(),
1097
+ onKeyPress: (a) => r(),
1098
1098
  ...e.BlocksWrapperProps,
1099
1099
  children: e.children
1100
1100
  }
@@ -1102,7 +1102,7 @@ function cn(e) {
1102
1102
  ] });
1103
1103
  }
1104
1104
  function _(e) {
1105
- var i, r, a;
1105
+ var i, r, o;
1106
1106
  const t = we(pe), n = we(He);
1107
1107
  return /* @__PURE__ */ W(
1108
1108
  cn,
@@ -1116,15 +1116,15 @@ function _(e) {
1116
1116
  BlocksWrapper: ((r = e.context) == null ? void 0 : r.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
1117
1117
  children: [
1118
1118
  e.children,
1119
- e.blocks ? /* @__PURE__ */ s(R, { children: (a = e.blocks) == null ? void 0 : a.map((o) => /* @__PURE__ */ s(
1119
+ e.blocks ? /* @__PURE__ */ s(R, { children: (o = e.blocks) == null ? void 0 : o.map((a) => /* @__PURE__ */ s(
1120
1120
  ce,
1121
1121
  {
1122
- block: o,
1122
+ block: a,
1123
1123
  linkComponent: e.linkComponent,
1124
1124
  context: e.context || t,
1125
1125
  registeredComponents: e.registeredComponents || (n == null ? void 0 : n.registeredComponents)
1126
1126
  },
1127
- o.id
1127
+ a.id
1128
1128
  )) }) : null
1129
1129
  ]
1130
1130
  }
@@ -1145,25 +1145,25 @@ function dn(e) {
1145
1145
  function r(y) {
1146
1146
  return y.link ? e.builderLinkComponent || "a" : "div";
1147
1147
  }
1148
- function a(y) {
1149
- var x;
1150
- return ((x = n()[y]) == null ? void 0 : x.width) || 100 / n().length;
1151
- }
1152
1148
  function o(y) {
1153
- const x = a(y), k = t() * (n().length - 1) * (x / 100);
1154
- return `calc(${x}% - ${k}px)`;
1149
+ var S;
1150
+ return ((S = n()[y]) == null ? void 0 : S.width) || 100 / n().length;
1151
+ }
1152
+ function a(y) {
1153
+ const S = o(y), k = t() * (n().length - 1) * (S / 100);
1154
+ return `calc(${S}% - ${k}px)`;
1155
1155
  }
1156
1156
  function l({
1157
1157
  stackedStyle: y,
1158
- desktopStyle: x
1158
+ desktopStyle: S
1159
1159
  }) {
1160
- return i() === "tablet" ? y : x;
1160
+ return i() === "tablet" ? y : S;
1161
1161
  }
1162
1162
  function c({
1163
1163
  stackedStyle: y,
1164
- desktopStyle: x
1164
+ desktopStyle: S
1165
1165
  }) {
1166
- return i() === "never" ? x : y;
1166
+ return i() === "never" ? S : y;
1167
1167
  }
1168
1168
  function u() {
1169
1169
  return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
@@ -1177,8 +1177,8 @@ function dn(e) {
1177
1177
  })
1178
1178
  };
1179
1179
  }
1180
- function g(y) {
1181
- const x = y === 0 ? 0 : t(), k = o(y), V = `${x}px`, T = "100%", I = 0;
1180
+ function b(y) {
1181
+ const S = y === 0 ? 0 : t(), k = a(y), A = `${S}px`, T = "100%", I = 0;
1182
1182
  return {
1183
1183
  ...{
1184
1184
  display: "flex",
@@ -1186,14 +1186,14 @@ function dn(e) {
1186
1186
  alignItems: "stretch"
1187
1187
  },
1188
1188
  width: k,
1189
- ["marginLeft"]: V,
1189
+ ["marginLeft"]: A,
1190
1190
  "--column-width-mobile": c({
1191
1191
  stackedStyle: T,
1192
1192
  desktopStyle: k
1193
1193
  }),
1194
1194
  "--column-margin-left-mobile": c({
1195
1195
  stackedStyle: I,
1196
- desktopStyle: V
1196
+ desktopStyle: A
1197
1197
  }),
1198
1198
  "--column-width-tablet": l({
1199
1199
  stackedStyle: T,
@@ -1201,14 +1201,14 @@ function dn(e) {
1201
1201
  }),
1202
1202
  "--column-margin-left-tablet": l({
1203
1203
  stackedStyle: I,
1204
- desktopStyle: V
1204
+ desktopStyle: A
1205
1205
  })
1206
1206
  };
1207
1207
  }
1208
1208
  function m(y) {
1209
- var k, V;
1209
+ var k, A;
1210
1210
  return et(
1211
- ((V = (k = e.builderContext.content) == null ? void 0 : k.meta) == null ? void 0 : V.breakpoints) || {}
1211
+ ((A = (k = e.builderContext.content) == null ? void 0 : k.meta) == null ? void 0 : A.breakpoints) || {}
1212
1212
  )[y].max;
1213
1213
  }
1214
1214
  function v() {
@@ -1239,13 +1239,13 @@ function dn(e) {
1239
1239
  },
1240
1240
  `;
1241
1241
  }
1242
- function d(y, x) {
1242
+ function d(y, S) {
1243
1243
  return {
1244
1244
  ...y.link ? {
1245
1245
  href: y.link
1246
1246
  } : {},
1247
1247
  [z()]: "builder-column",
1248
- style: Ye(g(x))
1248
+ style: Ye(b(S))
1249
1249
  };
1250
1250
  }
1251
1251
  return /* @__PURE__ */ W(R, { children: [
@@ -1268,16 +1268,16 @@ function dn(e) {
1268
1268
  nonce: e.builderContext.nonce
1269
1269
  }
1270
1270
  ),
1271
- (p = e.columns) == null ? void 0 : p.map((y, x) => /* @__PURE__ */ s(
1271
+ (p = e.columns) == null ? void 0 : p.map((y, S) => /* @__PURE__ */ s(
1272
1272
  ye,
1273
1273
  {
1274
1274
  TagName: r(y),
1275
1275
  actionAttributes: {},
1276
- attributes: d(y, x),
1276
+ attributes: d(y, S),
1277
1277
  children: /* @__PURE__ */ s(
1278
1278
  _,
1279
1279
  {
1280
- path: `columns.${x}.blocks`,
1280
+ path: `columns.${S}.blocks`,
1281
1281
  parent: e.builderBlock.id,
1282
1282
  context: e.builderContext,
1283
1283
  registeredComponents: e.builderComponents,
@@ -1289,7 +1289,7 @@ function dn(e) {
1289
1289
  }
1290
1290
  )
1291
1291
  },
1292
- x
1292
+ S
1293
1293
  ))
1294
1294
  ]
1295
1295
  }
@@ -1313,8 +1313,8 @@ function hn(e, t) {
1313
1313
  return Ae(e);
1314
1314
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1315
1315
  if (n) {
1316
- const i = e.split(n[0]), r = n[3], a = t.match("x") ? t : `${t}x`;
1317
- return Ae(`${i[0]}_${a}${r}`);
1316
+ const i = e.split(n[0]), r = n[3], o = t.match("x") ? t : `${t}x`;
1317
+ return Ae(`${i[0]}_${o}${r}`);
1318
1318
  }
1319
1319
  return null;
1320
1320
  }
@@ -1330,21 +1330,21 @@ function de(e) {
1330
1330
  return e.match(/cdn\.shopify\.com/) ? t.map((n) => [hn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1331
1331
  }
1332
1332
  function gn(e) {
1333
- var r, a, o, l, c, u;
1333
+ var r, o, a, l, c, u;
1334
1334
  function t() {
1335
1335
  var m;
1336
- const g = e.image || e.src;
1337
- if (!g || // We can auto add srcset for cdn.builder.io and shopify
1336
+ const b = e.image || e.src;
1337
+ if (!b || // We can auto add srcset for cdn.builder.io and shopify
1338
1338
  // images, otherwise you can supply this prop manually
1339
- !(typeof g == "string" && (g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/))))
1339
+ !(typeof b == "string" && (b.match(/builder\.io/) || b.match(/cdn\.shopify\.com/))))
1340
1340
  return e.srcset;
1341
1341
  if (!e.noWebp) {
1342
1342
  if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1343
1343
  if (!e.srcset.includes(e.image.split("?")[0]))
1344
- return console.debug("Removed given srcset"), de(g);
1344
+ return console.debug("Removed given srcset"), de(b);
1345
1345
  } else if (e.image && !e.srcset)
1346
- return de(g);
1347
- return de(g);
1346
+ return de(b);
1347
+ return de(b);
1348
1348
  }
1349
1349
  }
1350
1350
  function n() {
@@ -1361,7 +1361,7 @@ function gn(e) {
1361
1361
  };
1362
1362
  return e.aspectRatio ? f : void 0;
1363
1363
  }
1364
- return P(() => {
1364
+ return V(() => {
1365
1365
  }, []), /* @__PURE__ */ W(R, { children: [
1366
1366
  /* @__PURE__ */ s("style", { children: `.img-3cc22d08 {
1367
1367
  opacity: 1;
@@ -1403,7 +1403,7 @@ function gn(e) {
1403
1403
  }
1404
1404
  )
1405
1405
  ] }),
1406
- e.aspectRatio && !((a = (r = e.builderBlock) == null ? void 0 : r.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ s(
1406
+ e.aspectRatio && !((o = (r = e.builderBlock) == null ? void 0 : r.children) != null && o.length && e.fitContent) ? /* @__PURE__ */ s(
1407
1407
  "div",
1408
1408
  {
1409
1409
  className: "builder-image-sizer div-3cc22d08",
@@ -1412,7 +1412,7 @@ function gn(e) {
1412
1412
  }
1413
1413
  }
1414
1414
  ) : null,
1415
- (l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
1415
+ (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
1416
1416
  !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
1417
1417
  ] })
1418
1418
  ] });
@@ -1442,21 +1442,21 @@ function yn(e, t, n, i) {
1442
1442
  function r(u) {
1443
1443
  return typeof u == "string";
1444
1444
  }
1445
- function a(u) {
1445
+ function o(u) {
1446
1446
  return typeof u == "number";
1447
1447
  }
1448
- function o(u, f) {
1448
+ function a(u, f) {
1449
1449
  return (() => {
1450
1450
  const m = f.property, v = f.operator;
1451
1451
  let d = f.value;
1452
1452
  if (f && f.property === "urlPath" && f.value && typeof f.value == "string" && f.value !== "/" && f.value.endsWith("/") && (d = f.value.slice(0, -1)), !(m && v))
1453
1453
  return !0;
1454
1454
  if (Array.isArray(d))
1455
- return v === "isNot" ? d.every((p) => o(u, {
1455
+ return v === "isNot" ? d.every((p) => a(u, {
1456
1456
  property: m,
1457
1457
  operator: v,
1458
1458
  value: p
1459
- })) : !!d.find((p) => o(u, {
1459
+ })) : !!d.find((p) => a(u, {
1460
1460
  property: m,
1461
1461
  operator: v,
1462
1462
  value: p
@@ -1476,13 +1476,13 @@ function yn(e, t, n, i) {
1476
1476
  case "endsWith":
1477
1477
  return r(h) && h.endsWith(String(d));
1478
1478
  case "greaterThan":
1479
- return a(h) && a(d) && h > d;
1479
+ return o(h) && o(d) && h > d;
1480
1480
  case "lessThan":
1481
- return a(h) && a(d) && h < d;
1481
+ return o(h) && o(d) && h < d;
1482
1482
  case "greaterThanOrEqualTo":
1483
- return a(h) && a(d) && h >= d;
1483
+ return o(h) && o(d) && h >= d;
1484
1484
  case "lessThanOrEqualTo":
1485
- return a(h) && a(d) && h <= d;
1485
+ return o(h) && o(d) && h <= d;
1486
1486
  default:
1487
1487
  return !1;
1488
1488
  }
@@ -1493,7 +1493,7 @@ function yn(e, t, n, i) {
1493
1493
  startDate: n,
1494
1494
  endDate: i
1495
1495
  }, c = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
1496
- 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) => o(e, u));
1496
+ 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));
1497
1497
  }
1498
1498
  const pn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
1499
1499
  if (!navigator.cookieEnabled) {
@@ -1656,9 +1656,9 @@ const pn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
1656
1656
  visibilityStylesEl.innerHTML = newStyleStr;
1657
1657
  }
1658
1658
  }
1659
- }`, ne = "default", Sn = "filterWithCustomTargeting", nt = "builderIoPersonalization", it = "updateVisibilityStylesScript", rt = ["react", "vue", "svelte"], ie = ["vue", "svelte"];
1659
+ }`, ne = "default", Sn = "filterWithCustomTargeting", nt = "builderIoPersonalization", it = "updateVisibilityStylesScript", rt = ["react", "vue", "svelte", "qwik"], ie = ["vue", "svelte", "qwik"];
1660
1660
  function kn(e, t) {
1661
- return !(e && e.length > 0) || !t ? !1 : ie.includes(D) ? !0 : !M();
1661
+ return !(e && e.length > 0) || !t ? !1 : ie.includes(F) ? !0 : !M();
1662
1662
  }
1663
1663
  function Cn({
1664
1664
  variants: e,
@@ -1667,14 +1667,14 @@ function Cn({
1667
1667
  filteredVariants: i,
1668
1668
  fallbackBlocks: r
1669
1669
  }) {
1670
- var o;
1671
- const a = {
1670
+ var a;
1671
+ const o = {
1672
1672
  blocks: r != null ? r : [],
1673
1673
  path: "this.children",
1674
1674
  index: ne
1675
1675
  };
1676
- if (n && O()) {
1677
- if (typeof t == "number" && t < ((o = e == null ? void 0 : e.length) != null ? o : 0)) {
1676
+ if (n && L()) {
1677
+ if (typeof t == "number" && t < ((a = e == null ? void 0 : e.length) != null ? a : 0)) {
1678
1678
  const l = e == null ? void 0 : e[t];
1679
1679
  if (l)
1680
1680
  return {
@@ -1683,7 +1683,7 @@ function Cn({
1683
1683
  index: t
1684
1684
  };
1685
1685
  }
1686
- return a;
1686
+ return o;
1687
1687
  }
1688
1688
  if (M()) {
1689
1689
  const l = i == null ? void 0 : i[0];
@@ -1697,13 +1697,13 @@ function Cn({
1697
1697
  };
1698
1698
  }
1699
1699
  }
1700
- return a;
1700
+ return o;
1701
1701
  }
1702
1702
  const Tn = () => `
1703
1703
  window.${Sn} = ${vn}
1704
1704
  window.${nt} = ${pn}
1705
1705
  window.${it} = ${xn}
1706
- `, at = D === "react", In = (e, t, n) => `window.${nt}(${JSON.stringify(e)}, "${t}", ${at}${n ? `, "${n}"` : ""})`, wn = (e, t, n) => `window.${it}(${JSON.stringify(e)}, "${t}", ${at}${n ? `, "${n}"` : ""})`, me = {
1706
+ `, ot = F === "react", In = (e, t, n) => `window.${nt}(${JSON.stringify(e)}, "${t}", ${ot}${n ? `, "${n}"` : ""})`, wn = (e, t, n) => `window.${it}(${JSON.stringify(e)}, "${t}", ${ot}${n ? `, "${n}"` : ""})`, me = {
1707
1707
  "@type": "@builder.io/sdk:Element",
1708
1708
  layerName: "Accordion item title",
1709
1709
  responsiveStyles: {
@@ -1829,7 +1829,7 @@ const Tn = () => `
1829
1829
  }
1830
1830
  }, Be = (e) => e.toString();
1831
1831
  function Rn(e) {
1832
- var g;
1832
+ var b;
1833
1833
  const [t, n] = C(() => []);
1834
1834
  function i() {
1835
1835
  return !!(e.grid || e.oneAtATime);
@@ -1846,7 +1846,7 @@ function Rn(e) {
1846
1846
  }
1847
1847
  };
1848
1848
  }
1849
- function a() {
1849
+ function o() {
1850
1850
  const v = {
1851
1851
  ...{
1852
1852
  display: "flex",
@@ -1859,7 +1859,7 @@ function Rn(e) {
1859
1859
  Object.entries(v).filter(([d, h]) => h !== void 0)
1860
1860
  );
1861
1861
  }
1862
- function o(m) {
1862
+ function a(m) {
1863
1863
  return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
1864
1864
  }
1865
1865
  function l(m) {
@@ -1878,13 +1878,13 @@ function Rn(e) {
1878
1878
  if (p) {
1879
1879
  if (p.classList.contains("builder-accordion-detail"))
1880
1880
  continue;
1881
- const x = p.getBoundingClientRect();
1882
- if (x.left > y.left) {
1881
+ const S = p.getBoundingClientRect();
1882
+ if (S.left > y.left) {
1883
1883
  const k = parseInt(
1884
1884
  p.getAttribute("data-index") || "",
1885
1885
  10
1886
1886
  );
1887
- isNaN(k) || (y = x, m = k);
1887
+ isNaN(k) || (y = S, m = k);
1888
1888
  } else
1889
1889
  break;
1890
1890
  }
@@ -1906,13 +1906,13 @@ function Rn(e) {
1906
1906
  function f(m) {
1907
1907
  t.includes(m) ? n(i() ? [] : t.filter((v) => v !== m)) : n(i() ? [m] : t.concat(m));
1908
1908
  }
1909
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (g = e.items) == null ? void 0 : g.map((m, v) => /* @__PURE__ */ W(bt.Fragment, { children: [
1909
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (b = e.items) == null ? void 0 : b.map((m, v) => /* @__PURE__ */ W(bt.Fragment, { children: [
1910
1910
  /* @__PURE__ */ s(
1911
1911
  "div",
1912
1912
  {
1913
- className: o(v),
1913
+ className: a(v),
1914
1914
  style: {
1915
- ...a(),
1915
+ ...o(),
1916
1916
  ...e.grid && {
1917
1917
  width: e.gridRowWidth,
1918
1918
  order: c() !== null ? Be(v) : Be(v + 1)
@@ -2168,7 +2168,7 @@ const Pn = {
2168
2168
  });
2169
2169
  }
2170
2170
  const n = e.get("columns");
2171
- Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((l, c) => l + c.get("width"), 0) !== 100) && t();
2171
+ 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();
2172
2172
  }
2173
2173
  }, {
2174
2174
  name: "space",
@@ -2222,29 +2222,29 @@ const Pn = {
2222
2222
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
2223
2223
  onChange: (e) => {
2224
2224
  e.delete("srcset"), e.delete("noWebp");
2225
- function n(o, l = 6e4) {
2225
+ function n(a, l = 6e4) {
2226
2226
  return new Promise((c, u) => {
2227
2227
  const f = document.createElement("img");
2228
- let g = !1;
2228
+ let b = !1;
2229
2229
  f.onload = () => {
2230
- g = !0, c(f);
2230
+ b = !0, c(f);
2231
2231
  }, f.addEventListener("error", (m) => {
2232
2232
  console.warn("Image load failed", m.error), u(m.error);
2233
- }), f.src = o, setTimeout(() => {
2234
- g || u(new Error("Image load timed out"));
2233
+ }), f.src = a, setTimeout(() => {
2234
+ b || u(new Error("Image load timed out"));
2235
2235
  }, l);
2236
2236
  });
2237
2237
  }
2238
- function i(o) {
2239
- return Math.round(o * 1e3) / 1e3;
2238
+ function i(a) {
2239
+ return Math.round(a * 1e3) / 1e3;
2240
2240
  }
2241
- const r = e.get("image"), a = e.get("aspectRatio");
2242
- if (fetch(r).then((o) => o.blob()).then((o) => {
2243
- o.type.includes("svg") && e.set("noWebp", !0);
2244
- }), r && (!a || a === 0.7041))
2245
- return n(r).then((o) => {
2241
+ const r = e.get("image"), o = e.get("aspectRatio");
2242
+ if (fetch(r).then((a) => a.blob()).then((a) => {
2243
+ a.type.includes("svg") && e.set("noWebp", !0);
2244
+ }), r && (!o || o === 0.7041))
2245
+ return n(r).then((a) => {
2246
2246
  const l = e.get("aspectRatio");
2247
- e.get("image") === r && (!l || l === 0.7041) && o.width && o.height && (e.set("aspectRatio", i(o.height / o.width)), e.set("height", o.height), e.set("width", o.width));
2247
+ 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));
2248
2248
  });
2249
2249
  }
2250
2250
  }, {
@@ -2362,10 +2362,10 @@ function j(e) {
2362
2362
  );
2363
2363
  }
2364
2364
  function $n(e) {
2365
- var x, k, V, T, I, b, S, w, A, F, L, $, U;
2365
+ var S, k, A, T, I, g, x, w, D, O, $, P, U;
2366
2366
  const t = H(null), [n, i] = C(
2367
2367
  () => Ce.getUserAttributes()
2368
- ), [r, a] = C(
2368
+ ), [r, o] = C(
2369
2369
  () => {
2370
2370
  var E, B, N;
2371
2371
  return In(
@@ -2374,7 +2374,7 @@ function $n(e) {
2374
2374
  (N = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : N.locale
2375
2375
  );
2376
2376
  }
2377
- ), [o, l] = C(
2377
+ ), [a, l] = C(
2378
2378
  () => {
2379
2379
  var E, B, N;
2380
2380
  return wn(
@@ -2383,7 +2383,7 @@ function $n(e) {
2383
2383
  (N = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : N.locale
2384
2384
  );
2385
2385
  }
2386
- ), [c, u] = C(() => []), [f, g] = C(
2386
+ ), [c, u] = C(() => []), [f, b] = C(
2387
2387
  () => {
2388
2388
  var E;
2389
2389
  return kn(
@@ -2432,15 +2432,18 @@ function $n(e) {
2432
2432
  }
2433
2433
  ).join("");
2434
2434
  }
2435
- return P(() => {
2435
+ return V(() => {
2436
2436
  var B;
2437
2437
  v(!0);
2438
2438
  const E = Ce.subscribeOnUserAttributesChange(
2439
2439
  (N) => {
2440
2440
  i(N);
2441
+ },
2442
+ {
2443
+ fireImmediately: F === "qwik"
2441
2444
  }
2442
2445
  );
2443
- if (!(O() || le())) {
2446
+ if (!(L() || le())) {
2444
2447
  const N = h()[0];
2445
2448
  t.current && (t.current.dispatchEvent(
2446
2449
  new CustomEvent("builder.variantLoaded", {
@@ -2466,24 +2469,24 @@ function $n(e) {
2466
2469
  }).observe(t.current));
2467
2470
  }
2468
2471
  c.push(E);
2469
- }, []), P(() => () => {
2472
+ }, []), V(() => () => {
2470
2473
  c.forEach((E) => E());
2471
2474
  }, []), /* @__PURE__ */ W("div", { ref: t, ...d(), children: [
2472
- m && ie.includes(D) ? /* @__PURE__ */ s(
2475
+ m && ie.includes(F) ? /* @__PURE__ */ s(
2473
2476
  _,
2474
2477
  {
2475
2478
  blocks: p().blocks,
2476
- parent: (x = e.builderBlock) == null ? void 0 : x.id,
2479
+ parent: (S = e.builderBlock) == null ? void 0 : S.id,
2477
2480
  path: p().path,
2478
2481
  context: e.builderContext,
2479
2482
  registeredComponents: e.builderComponents,
2480
2483
  BlocksWrapperProps: {
2481
2484
  ...(k = e.builderContext) == null ? void 0 : k.BlocksWrapperProps,
2482
- "data-variant-id": `${(V = e.builderBlock) == null ? void 0 : V.id}-${p().index}`
2485
+ "data-variant-id": `${(A = e.builderBlock) == null ? void 0 : A.id}-${p().index}`
2483
2486
  }
2484
2487
  }
2485
2488
  ) : null,
2486
- !m && ie.includes(D) || !ie.includes(D) ? /* @__PURE__ */ W(R, { children: [
2489
+ !m && ie.includes(F) || !ie.includes(F) ? /* @__PURE__ */ W(R, { children: [
2487
2490
  f ? /* @__PURE__ */ W(R, { children: [
2488
2491
  /* @__PURE__ */ s(
2489
2492
  ee,
@@ -2496,9 +2499,9 @@ function $n(e) {
2496
2499
  /* @__PURE__ */ s(
2497
2500
  j,
2498
2501
  {
2499
- nonce: ((b = e.builderContext) == null ? void 0 : b.nonce) || "",
2500
- scriptStr: o,
2501
- id: `variants-visibility-script-${(S = e.builderBlock) == null ? void 0 : S.id}`
2502
+ nonce: ((g = e.builderContext) == null ? void 0 : g.nonce) || "",
2503
+ scriptStr: a,
2504
+ id: `variants-visibility-script-${(x = e.builderBlock) == null ? void 0 : x.id}`
2502
2505
  }
2503
2506
  ),
2504
2507
  (w = e.variants) == null ? void 0 : w.map((E, B) => {
@@ -2534,18 +2537,18 @@ function $n(e) {
2534
2537
  _,
2535
2538
  {
2536
2539
  blocks: p().blocks,
2537
- parent: (A = e.builderBlock) == null ? void 0 : A.id,
2540
+ parent: (D = e.builderBlock) == null ? void 0 : D.id,
2538
2541
  path: p().path,
2539
2542
  context: e.builderContext,
2540
2543
  registeredComponents: e.builderComponents,
2541
2544
  BlocksWrapperProps: {
2542
- ...(F = e.builderContext) == null ? void 0 : F.BlocksWrapperProps,
2543
- "data-variant-id": `${(L = e.builderBlock) == null ? void 0 : L.id}-${p().index}`
2545
+ ...(O = e.builderContext) == null ? void 0 : O.BlocksWrapperProps,
2546
+ "data-variant-id": `${($ = e.builderBlock) == null ? void 0 : $.id}-${p().index}`
2544
2547
  },
2545
2548
  children: f ? /* @__PURE__ */ s(
2546
2549
  j,
2547
2550
  {
2548
- nonce: (($ = e.builderContext) == null ? void 0 : $.nonce) || "",
2551
+ nonce: ((P = e.builderContext) == null ? void 0 : P.nonce) || "",
2549
2552
  scriptStr: r,
2550
2553
  id: `variants-script-${(U = e.builderBlock) == null ? void 0 : U.id}-${ne}`
2551
2554
  }
@@ -2818,15 +2821,15 @@ const Ln = {
2818
2821
  }
2819
2822
  };
2820
2823
  function Un(e) {
2821
- var a;
2824
+ var o;
2822
2825
  const [t, n] = C(
2823
2826
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
2824
2827
  );
2825
- function i(o) {
2826
- return e.tabs && e.tabs[o].content;
2828
+ function i(a) {
2829
+ return e.tabs && e.tabs[a].content;
2827
2830
  }
2828
- function r(o) {
2829
- o === t && e.collapsible ? n(-1) : n(o);
2831
+ function r(a) {
2832
+ a === t && e.collapsible ? n(-1) : n(a);
2830
2833
  }
2831
2834
  return /* @__PURE__ */ W("div", { children: [
2832
2835
  /* @__PURE__ */ s(
@@ -2839,7 +2842,7 @@ function Un(e) {
2839
2842
  justifyContent: e.tabHeaderLayout || "flex-start",
2840
2843
  overflow: "auto"
2841
2844
  },
2842
- children: (a = e.tabs) == null ? void 0 : a.map((o, l) => /* @__PURE__ */ s(
2845
+ children: (o = e.tabs) == null ? void 0 : o.map((a, l) => /* @__PURE__ */ s(
2843
2846
  "span",
2844
2847
  {
2845
2848
  className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
@@ -2852,7 +2855,7 @@ function Un(e) {
2852
2855
  {
2853
2856
  parent: e.builderBlock.id,
2854
2857
  path: `tabs.${l}.label`,
2855
- blocks: o.label,
2858
+ blocks: a.label,
2856
2859
  context: e.builderContext,
2857
2860
  registeredComponents: e.builderComponents,
2858
2861
  linkComponent: e.builderLinkComponent
@@ -2933,8 +2936,8 @@ const qn = {
2933
2936
  }]
2934
2937
  };
2935
2938
  function jn(e) {
2936
- const t = H(null), [n, i] = C(() => []), [r, a] = C(() => []);
2937
- function o() {
2939
+ const t = H(null), [n, i] = C(() => []), [r, o] = C(() => []);
2940
+ function a() {
2938
2941
  var c;
2939
2942
  if (!t.current || !((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
2940
2943
  return;
@@ -2945,8 +2948,8 @@ function jn(e) {
2945
2948
  if (n.includes(f.src))
2946
2949
  continue;
2947
2950
  n.push(f.src);
2948
- const g = document.createElement("script");
2949
- g.async = !0, g.src = f.src, document.head.appendChild(g);
2951
+ const b = document.createElement("script");
2952
+ b.async = !0, b.src = f.src, document.head.appendChild(b);
2950
2953
  } else if (!f.type || [
2951
2954
  "text/javascript",
2952
2955
  "application/javascript",
@@ -2956,19 +2959,19 @@ function jn(e) {
2956
2959
  continue;
2957
2960
  try {
2958
2961
  r.push(f.innerText), new Function(f.innerText)();
2959
- } catch (g) {
2962
+ } catch (b) {
2960
2963
  J.warn(
2961
2964
  "[BUILDER.IO] `CustomCode`: Error running script:",
2962
- g
2965
+ b
2963
2966
  );
2964
2967
  }
2965
2968
  }
2966
2969
  }
2967
2970
  }
2968
- return P(() => {
2969
- o();
2970
- }, []), P(() => {
2971
- O() && o();
2971
+ return V(() => {
2972
+ a();
2973
+ }, []), V(() => {
2974
+ L() && a();
2972
2975
  }, [e.code]), /* @__PURE__ */ s(
2973
2976
  "div",
2974
2977
  {
@@ -2995,28 +2998,28 @@ const zn = {
2995
2998
  }]
2996
2999
  }, Kn = ["text/javascript", "application/javascript", "application/ecmascript"], Jn = (e) => Kn.includes(e.type);
2997
3000
  function Gn(e) {
2998
- const t = H(null), [n, i] = C(() => []), [r, a] = C(() => []), [o, l] = C(() => !1);
3001
+ const t = H(null), [n, i] = C(() => []), [r, o] = C(() => []), [a, l] = C(() => !1);
2999
3002
  function c() {
3000
3003
  if (!t.current || !t.current.getElementsByTagName)
3001
3004
  return;
3002
3005
  const u = t.current.getElementsByTagName("script");
3003
3006
  for (let f = 0; f < u.length; f++) {
3004
- const g = u[f];
3005
- if (g.src && !n.includes(g.src)) {
3006
- n.push(g.src);
3007
+ const b = u[f];
3008
+ if (b.src && !n.includes(b.src)) {
3009
+ n.push(b.src);
3007
3010
  const m = document.createElement("script");
3008
- m.async = !0, m.src = g.src, document.head.appendChild(m);
3009
- } else if (Jn(g) && !r.includes(g.innerText))
3011
+ m.async = !0, m.src = b.src, document.head.appendChild(m);
3012
+ } else if (Jn(b) && !r.includes(b.innerText))
3010
3013
  try {
3011
- r.push(g.innerText), new Function(g.innerText)();
3014
+ r.push(b.innerText), new Function(b.innerText)();
3012
3015
  } catch (m) {
3013
3016
  J.warn("[BUILDER.IO] `Embed`: Error running script:", m);
3014
3017
  }
3015
3018
  }
3016
3019
  }
3017
- return P(() => {
3018
- t.current && !o && (l(!0), c());
3019
- }, [t.current, o]), /* @__PURE__ */ s(
3020
+ return V(() => {
3021
+ t.current && !a && (l(!0), c());
3022
+ }, [t.current, a]), /* @__PURE__ */ s(
3020
3023
  "div",
3021
3024
  {
3022
3025
  className: "builder-embed",
@@ -3267,113 +3270,125 @@ const Qn = {
3267
3270
  return Yn.includes(e) ? e : "production";
3268
3271
  };
3269
3272
  function Zn(e) {
3270
- const t = H(null), [n, i] = C(() => "unsubmitted"), [r, a] = C(() => null), [o, l] = C(() => "");
3271
- function c(g) {
3273
+ const t = H(null), [n, i] = C(() => "unsubmitted"), [r, o] = C(() => null), [a, l] = C(() => "");
3274
+ function c(b) {
3272
3275
  var v, d;
3273
3276
  const m = {
3274
3277
  ...e.builderContext.rootState,
3275
- ...g
3278
+ ...b
3276
3279
  };
3277
3280
  e.builderContext.rootSetState ? (d = (v = e.builderContext).rootSetState) == null || d.call(v, m) : e.builderContext.rootState = m;
3278
3281
  }
3279
3282
  function u() {
3280
- return O() && e.previewState || n;
3283
+ return L() && e.previewState || n;
3281
3284
  }
3282
- function f(g) {
3285
+ function f(b) {
3283
3286
  var v;
3284
3287
  const m = e.sendWithJs || e.sendSubmissionsTo === "email";
3285
3288
  if (e.sendSubmissionsTo === "zapier")
3286
- g.preventDefault();
3289
+ b.preventDefault();
3287
3290
  else if (m) {
3288
3291
  if (!(e.action || e.sendSubmissionsTo === "email")) {
3289
- g.preventDefault();
3292
+ b.preventDefault();
3290
3293
  return;
3291
3294
  }
3292
- g.preventDefault();
3293
- const d = g.currentTarget || g.target, h = e.customHeaders || {};
3295
+ b.preventDefault();
3296
+ const d = b.currentTarget || b.target, h = e.customHeaders || {};
3294
3297
  let p;
3295
- const y = new FormData(d), x = Array.from(d.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
3296
- let S;
3297
- const w = b.name;
3298
- if (b instanceof HTMLInputElement)
3299
- if (b.type === "radio") {
3300
- if (b.checked)
3301
- return S = b.name, {
3298
+ const y = new FormData(d), S = Array.from(d.querySelectorAll("input,select,textarea")).filter((g) => !!g.name).map((g) => {
3299
+ let x;
3300
+ const w = g.name;
3301
+ if (g instanceof HTMLInputElement)
3302
+ if (g.type === "radio") {
3303
+ if (g.checked)
3304
+ return x = g.name, {
3302
3305
  key: w,
3303
- value: S
3306
+ value: x
3304
3307
  };
3305
- } else if (b.type === "checkbox")
3306
- S = b.checked;
3307
- else if (b.type === "number" || b.type === "range") {
3308
- const A = b.valueAsNumber;
3309
- isNaN(A) || (S = A);
3308
+ } else if (g.type === "checkbox")
3309
+ x = g.checked;
3310
+ else if (g.type === "number" || g.type === "range") {
3311
+ const D = g.valueAsNumber;
3312
+ isNaN(D) || (x = D);
3310
3313
  } else
3311
- b.type === "file" ? S = b.files : S = b.value;
3314
+ g.type === "file" ? x = g.files : x = g.value;
3312
3315
  else
3313
- S = b.value;
3316
+ x = g.value;
3314
3317
  return {
3315
3318
  key: w,
3316
- value: S
3319
+ value: x
3317
3320
  };
3318
3321
  });
3319
3322
  let k = e.contentType;
3320
- if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(x).forEach(({ value: b }) => {
3321
- (b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (k = "multipart/form-data");
3323
+ if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(S).forEach(({ value: g }) => {
3324
+ (g instanceof File || Array.isArray(g) && g[0] instanceof File || g instanceof FileList) && (k = "multipart/form-data");
3322
3325
  }), k !== "application/json")
3323
3326
  p = y;
3324
3327
  else {
3325
- const b = {};
3326
- Array.from(x).forEach(({ value: S, key: w }) => {
3327
- ze(b, w, S);
3328
- }), p = JSON.stringify(b);
3328
+ const g = {};
3329
+ Array.from(S).forEach(({ value: x, key: w }) => {
3330
+ ze(g, w, x);
3331
+ }), p = JSON.stringify(g);
3329
3332
  }
3330
3333
  k && k !== "multipart/form-data" && (m && ((v = e.action) != null && v.includes("zapier.com")) || (h["content-type"] = k));
3331
- const V = new CustomEvent("presubmit", { detail: { body: p } });
3332
- if (t.current && (t.current.dispatchEvent(V), V.defaultPrevented))
3334
+ const A = new CustomEvent("presubmit", { detail: { body: p } });
3335
+ if (t.current && (t.current.dispatchEvent(A), A.defaultPrevented))
3333
3336
  return;
3334
- i("sending");
3337
+ if (i("sending"), e.sendSubmissionsTo === "email" && (e.sendSubmissionsToEmail === "your@email.com" || !e.sendSubmissionsToEmail)) {
3338
+ const g = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
3339
+ console.error(g), i("error"), c({ formErrorMessage: g });
3340
+ return;
3341
+ }
3335
3342
  const T = `${Xn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3336
3343
  e.sendSubmissionsToEmail || ""
3337
3344
  )}&name=${encodeURIComponent(e.name || "")}`, I = e.sendSubmissionsTo === "email" ? T : e.action;
3338
3345
  Oe(I), fetch(I, { body: p, headers: h, method: e.method || "post" }).then(
3339
- async (b) => {
3340
- let S;
3341
- const w = b.headers.get("content-type");
3342
- if (w && w.indexOf("application/json") !== -1 ? S = await b.json() : S = await b.text(), !b.ok && e.errorMessagePath) {
3343
- let A = Me(S, e.errorMessagePath);
3344
- A && (typeof A != "string" && (A = JSON.stringify(A)), l(A), c({ formErrorMessage: A }));
3346
+ async (g) => {
3347
+ var D, O;
3348
+ let x;
3349
+ const w = g.headers.get("content-type");
3350
+ if (w && w.indexOf("application/json") !== -1 ? x = await g.json() : x = await g.text(), !g.ok) {
3351
+ const $ = new CustomEvent("submit:error", {
3352
+ detail: { error: x, status: g.status }
3353
+ });
3354
+ if ((D = t.current) != null && D.nativeElement && ((O = t.current) == null || O.nativeElement.dispatchEvent($), $.defaultPrevented))
3355
+ return;
3356
+ o(x), i("error");
3357
+ let P = e.errorMessagePath ? Me(x, e.errorMessagePath) : x.message || x.error || x;
3358
+ typeof P != "string" && (P = JSON.stringify(P)), l(P), c({ formErrorMessage: P });
3359
+ return;
3345
3360
  }
3346
- if (a(S), i(b.ok ? "success" : "error"), b.ok) {
3347
- const A = new CustomEvent("submit:success", {
3348
- detail: { res: b, body: S }
3361
+ if (o(x), i(g.ok ? "success" : "error"), g.ok) {
3362
+ const $ = new CustomEvent("submit:success", {
3363
+ detail: { res: g, body: x }
3349
3364
  });
3350
3365
  if (t.current) {
3351
- if (t.current.dispatchEvent(A), A.defaultPrevented)
3366
+ if (t.current.dispatchEvent($), $.defaultPrevented)
3352
3367
  return;
3353
3368
  e.resetFormOnSubmit !== !1 && t.current.reset();
3354
3369
  }
3355
3370
  if (e.successUrl)
3356
3371
  if (t.current) {
3357
- const F = new CustomEvent("route", {
3372
+ const P = new CustomEvent("route", {
3358
3373
  detail: { url: e.successUrl }
3359
3374
  });
3360
- t.current.dispatchEvent(F), F.defaultPrevented || (location.href = e.successUrl);
3375
+ t.current.dispatchEvent(P), P.defaultPrevented || (location.href = e.successUrl);
3361
3376
  } else
3362
3377
  location.href = e.successUrl;
3363
3378
  }
3364
3379
  },
3365
- (b) => {
3366
- const S = new CustomEvent("submit:error", {
3367
- detail: { error: b }
3380
+ (g) => {
3381
+ const x = new CustomEvent("submit:error", {
3382
+ detail: { error: g }
3368
3383
  });
3369
- t.current && (t.current.dispatchEvent(S), S.defaultPrevented) || (a(b), i("error"));
3384
+ t.current && (t.current.dispatchEvent(x), x.defaultPrevented) || (o(g), i("error"));
3370
3385
  }
3371
3386
  );
3372
3387
  }
3373
3388
  }
3374
3389
  return /* @__PURE__ */ W(R, { children: [
3375
3390
  " ",
3376
- /* @__PURE__ */ s("style", { children: ".pre-7acc3b46 { padding: 10px; color: red; text-align: center; }" }),
3391
+ /* @__PURE__ */ s("style", { children: ".pre-7c90c93e { padding: 10px; color: red; text-align: center; }" }),
3377
3392
  " ",
3378
3393
  /* @__PURE__ */ W(
3379
3394
  "form",
@@ -3383,7 +3398,7 @@ function Zn(e) {
3383
3398
  action: !e.sendWithJs && e.action,
3384
3399
  method: e.method,
3385
3400
  name: e.name,
3386
- onSubmit: (g) => f(g),
3401
+ onSubmit: (b) => f(b),
3387
3402
  ...e.attributes,
3388
3403
  children: [
3389
3404
  e.children,
@@ -3403,7 +3418,7 @@ function Zn(e) {
3403
3418
  context: e.builderContext
3404
3419
  }
3405
3420
  ) : null,
3406
- u() === "error" && r ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7acc3b46", children: JSON.stringify(r, null, 2) }) : null,
3421
+ u() === "error" && r ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7c90c93e", children: JSON.stringify(r, null, 2) }) : null,
3407
3422
  u() === "success" ? /* @__PURE__ */ s(
3408
3423
  _,
3409
3424
  {
@@ -3475,7 +3490,7 @@ function ti(e) {
3475
3490
  "input",
3476
3491
  {
3477
3492
  ...e.attributes,
3478
- key: O() && e.defaultValue ? e.defaultValue : "default-key",
3493
+ key: L() && e.defaultValue ? e.defaultValue : "default-key",
3479
3494
  placeholder: e.placeholder,
3480
3495
  type: e.type,
3481
3496
  name: e.name,
@@ -3535,7 +3550,7 @@ function ii(e) {
3535
3550
  {
3536
3551
  ...e.attributes,
3537
3552
  value: e.value,
3538
- key: O() && e.defaultValue ? e.defaultValue : "default-key",
3553
+ key: L() && e.defaultValue ? e.defaultValue : "default-key",
3539
3554
  defaultValue: e.defaultValue,
3540
3555
  name: e.name,
3541
3556
  required: e.required
@@ -3569,10 +3584,10 @@ const ri = {
3569
3584
  // TODO: defaultChildren
3570
3585
  // canHaveChildren: true,
3571
3586
  };
3572
- function ai(e) {
3587
+ function oi(e) {
3573
3588
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
3574
3589
  }
3575
- const oi = {
3590
+ const ai = {
3576
3591
  name: "Form:TextArea",
3577
3592
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
3578
3593
  inputs: [{
@@ -3649,7 +3664,7 @@ function ci(e) {
3649
3664
  src: e.imgSrc || e.image,
3650
3665
  ...e.attributes
3651
3666
  },
3652
- O() && e.imgSrc || "default-key"
3667
+ L() && e.imgSrc || "default-key"
3653
3668
  );
3654
3669
  }
3655
3670
  const ui = {
@@ -3738,7 +3753,7 @@ const ui = {
3738
3753
  }
3739
3754
  };
3740
3755
  function di(e) {
3741
- var o, l, c, u, f, g, m;
3756
+ var a, l, c, u, f, b, m;
3742
3757
  const t = H(null);
3743
3758
  function n() {
3744
3759
  return {
@@ -3764,9 +3779,9 @@ function di(e) {
3764
3779
  ...n()
3765
3780
  };
3766
3781
  }
3767
- const [r, a] = C(() => {
3782
+ const [r, o] = C(() => {
3768
3783
  });
3769
- return P(() => {
3784
+ return V(() => {
3770
3785
  if (e.lazyLoad) {
3771
3786
  const v = new IntersectionObserver(function(d) {
3772
3787
  d.forEach(function(h) {
@@ -3777,17 +3792,17 @@ function di(e) {
3777
3792
  Array.from(p.children).filter(
3778
3793
  (y) => y instanceof HTMLElement && y.tagName === "SOURCE"
3779
3794
  ).forEach((y) => {
3780
- const x = y.dataset.src;
3781
- x && (y.src = x);
3795
+ const S = y.dataset.src;
3796
+ S && (y.src = S);
3782
3797
  }), p.load(), v.unobserve(p);
3783
3798
  } catch (y) {
3784
3799
  console.error("Error loading lazy video:", y);
3785
3800
  }
3786
3801
  });
3787
3802
  });
3788
- t.current && v.observe(t.current), a(v);
3803
+ t.current && v.observe(t.current), o(v);
3789
3804
  }
3790
- }, []), P(() => () => {
3805
+ }, []), V(() => () => {
3791
3806
  r && r.disconnect();
3792
3807
  }, []), /* @__PURE__ */ W(
3793
3808
  "div",
@@ -3806,7 +3821,7 @@ function di(e) {
3806
3821
  style: {
3807
3822
  width: "100%",
3808
3823
  height: "100%",
3809
- ...(o = e.attributes) == null ? void 0 : o.style,
3824
+ ...(a = e.attributes) == null ? void 0 : a.style,
3810
3825
  objectFit: e.fit,
3811
3826
  objectPosition: e.position,
3812
3827
  // Hack to get object fit to work as expected and
@@ -3852,7 +3867,7 @@ function di(e) {
3852
3867
  children: e.children
3853
3868
  }
3854
3869
  ) : null,
3855
- (m = (g = e.builderBlock) == null ? void 0 : g.children) != null && m.length && !e.fitContent ? /* @__PURE__ */ s(
3870
+ (m = (b = e.builderBlock) == null ? void 0 : b.children) != null && m.length && !e.fitContent ? /* @__PURE__ */ s(
3856
3871
  "div",
3857
3872
  {
3858
3873
  style: {
@@ -3886,14 +3901,14 @@ const mi = () => [{
3886
3901
  component: ti,
3887
3902
  ...ei
3888
3903
  }, {
3889
- component: ai,
3904
+ component: oi,
3890
3905
  ...ri
3891
3906
  }, {
3892
3907
  component: ii,
3893
3908
  ...ni
3894
3909
  }, {
3895
3910
  component: li,
3896
- ...oi
3911
+ ...ai
3897
3912
  }, {
3898
3913
  component: ci,
3899
3914
  ...si
@@ -3924,7 +3939,7 @@ const mi = () => [{
3924
3939
  }, {
3925
3940
  component: Mn,
3926
3941
  ...Hn
3927
- }, ...rt.includes(D) ? [{
3942
+ }, ...rt.includes(F) ? [{
3928
3943
  component: $n,
3929
3944
  ...Wn
3930
3945
  }] : [], {
@@ -4026,18 +4041,18 @@ const mi = () => [{
4026
4041
  thisScriptEl?.remove();
4027
4042
  }
4028
4043
  return;
4029
- }`, ot = "builderIoAbTest", lt = "builderIoRenderContent", re = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4044
+ }`, at = "builderIoAbTest", lt = "builderIoRenderContent", re = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4030
4045
  ...t,
4031
4046
  testVariationId: t.id,
4032
4047
  id: e == null ? void 0 : e.id
4033
4048
  })), gi = ({
4034
4049
  canTrack: e,
4035
4050
  content: t
4036
- }) => !(!(re(t).length > 0) || !e || M()), bi = (e) => e === "react" || e === "reactNative", yi = D === "angular", st = bi(D), pi = () => `
4037
- window.${ot} = ${fi}
4051
+ }) => !(!(re(t).length > 0) || !e || M()), bi = (e) => e === "react" || e === "reactNative", yi = F === "angular", st = bi(F), pi = () => `
4052
+ window.${at} = ${fi}
4038
4053
  window.${lt} = ${hi}
4039
4054
  `, vi = (e, t) => `
4040
- window.${ot}(
4055
+ window.${at}(
4041
4056
  "${t}",${JSON.stringify(e)}, ${st}, ${yi}
4042
4057
  )`, xi = ({
4043
4058
  contentId: e,
@@ -4066,10 +4081,10 @@ const Si = (e, t, n = !0) => {
4066
4081
  event: e,
4067
4082
  target: t
4068
4083
  }) => {
4069
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, r = e.clientY - n.top, a = We(i / n.width), o = We(r / n.height);
4084
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, r = e.clientY - n.top, o = We(i / n.width), a = We(r / n.height);
4070
4085
  return {
4071
- x: a,
4072
- y: o
4086
+ x: o,
4087
+ y: a
4073
4088
  };
4074
4089
  }, Ci = (e) => {
4075
4090
  const t = e.target, n = t && ki(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
@@ -4087,9 +4102,9 @@ const Si = (e, t, n = !0) => {
4087
4102
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
4088
4103
  }
4089
4104
  };
4090
- }, Ti = ["svelte", "qwik", "vue"], De = () => Ti.includes(D) && (O() || le()), Ii = (e) => {
4091
- var a, o;
4092
- const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (o = e.fileUrl) != null ? o : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
4105
+ }, Ti = ["svelte", "qwik", "vue"], De = () => Ti.includes(F) && (L() || le()), Ii = (e) => {
4106
+ var o, a;
4107
+ 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;
4093
4108
  let r = "";
4094
4109
  if (i && t && n && (r += `
4095
4110
  @font-face {
@@ -4140,37 +4155,37 @@ font-weight: ${l};
4140
4155
  }
4141
4156
  `, Pi = (e) => e ? "" : Ri, Vi = (e) => `variant-${e}`;
4142
4157
  function Ai(e) {
4143
- var x, k, V;
4158
+ var S, k, A;
4144
4159
  const t = H(null);
4145
4160
  C(() => !1);
4146
4161
  function n(T) {
4147
- var b, S;
4162
+ var g, x;
4148
4163
  const I = {
4149
4164
  ...e.builderContextSignal.rootState,
4150
4165
  ...T
4151
4166
  };
4152
- e.builderContextSignal.rootSetState ? (S = (b = e.builderContextSignal).rootSetState) == null || S.call(b, I) : e.setBuilderContextSignal((w) => ({
4167
+ e.builderContextSignal.rootSetState ? (x = (g = e.builderContextSignal).rootSetState) == null || x.call(g, I) : e.setBuilderContextSignal((w) => ({
4153
4168
  ...w,
4154
4169
  rootState: I
4155
4170
  }));
4156
4171
  }
4157
4172
  function i(T) {
4158
- var b, S, w, A, F;
4173
+ var g, x, w, D, O;
4159
4174
  const I = {
4160
4175
  ...e.builderContextSignal.content,
4161
4176
  ...T,
4162
4177
  data: {
4163
- ...(b = e.builderContextSignal.content) == null ? void 0 : b.data,
4178
+ ...(g = e.builderContextSignal.content) == null ? void 0 : g.data,
4164
4179
  ...T == null ? void 0 : T.data
4165
4180
  },
4166
4181
  meta: {
4167
- ...(S = e.builderContextSignal.content) == null ? void 0 : S.meta,
4182
+ ...(x = e.builderContextSignal.content) == null ? void 0 : x.meta,
4168
4183
  ...T == null ? void 0 : T.meta,
4169
- breakpoints: ((w = T == null ? void 0 : T.meta) == null ? void 0 : w.breakpoints) || ((F = (A = e.builderContextSignal.content) == null ? void 0 : A.meta) == null ? void 0 : F.breakpoints)
4184
+ breakpoints: ((w = T == null ? void 0 : T.meta) == null ? void 0 : w.breakpoints) || ((O = (D = e.builderContextSignal.content) == null ? void 0 : D.meta) == null ? void 0 : O.breakpoints)
4170
4185
  }
4171
4186
  };
4172
- e.setBuilderContextSignal((L) => ({
4173
- ...L,
4187
+ e.setBuilderContextSignal(($) => ({
4188
+ ...$,
4174
4189
  content: I
4175
4190
  }));
4176
4191
  }
@@ -4180,7 +4195,7 @@ function Ai(e) {
4180
4195
  "aria-hidden": !0
4181
4196
  };
4182
4197
  }
4183
- const [a, o] = C(
4198
+ const [o, a] = C(
4184
4199
  () => e.contentWrapper || "div"
4185
4200
  );
4186
4201
  function l(T) {
@@ -4190,10 +4205,10 @@ function Ai(e) {
4190
4205
  callbacks: {
4191
4206
  configureSdk: (I) => {
4192
4207
  var w;
4193
- const { breakpoints: b, contentId: S } = I;
4194
- !S || S !== ((w = e.builderContextSignal.content) == null ? void 0 : w.id) || b && i({
4208
+ const { breakpoints: g, contentId: x } = I;
4209
+ !x || x !== ((w = e.builderContextSignal.content) == null ? void 0 : w.id) || g && i({
4195
4210
  meta: {
4196
- breakpoints: b
4211
+ breakpoints: g
4197
4212
  }
4198
4213
  });
4199
4214
  },
@@ -4209,18 +4224,18 @@ function Ai(e) {
4209
4224
  }
4210
4225
  })(T);
4211
4226
  }
4212
- const [c, u] = C(() => ({})), [f, g] = C(() => ({})), [m, v] = C(() => !1);
4227
+ const [c, u] = C(() => ({})), [f, b] = C(() => ({})), [m, v] = C(() => !1);
4213
4228
  function d(T) {
4214
- var I, b;
4229
+ var I, g;
4215
4230
  if (e.builderContextSignal.content) {
4216
- const S = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, w = (b = e.builderContextSignal.content) == null ? void 0 : b.id;
4231
+ const x = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, w = (g = e.builderContextSignal.content) == null ? void 0 : g.id;
4217
4232
  Te({
4218
4233
  apiHost: e.apiHost,
4219
4234
  type: "click",
4220
4235
  canTrack: Z(e.canTrack),
4221
4236
  contentId: w,
4222
4237
  apiKey: e.apiKey,
4223
- variationId: S !== w ? S : void 0,
4238
+ variationId: x !== w ? x : void 0,
4224
4239
  ...Ci(T),
4225
4240
  unique: !m
4226
4241
  });
@@ -4228,17 +4243,17 @@ function Ai(e) {
4228
4243
  m || v(!0);
4229
4244
  }
4230
4245
  function h() {
4231
- var I, b, S;
4232
- const T = (S = (b = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : b.httpRequests) != null ? S : {};
4233
- Object.entries(T).forEach(([w, A]) => {
4234
- if (!A || f[w] || c[w] && !O())
4246
+ var I, g, x;
4247
+ const T = (x = (g = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : g.httpRequests) != null ? x : {};
4248
+ Object.entries(T).forEach(([w, D]) => {
4249
+ if (!D || f[w] || c[w] && !L())
4235
4250
  return;
4236
4251
  f[w] = !0;
4237
- const F = A.replace(
4252
+ const O = D.replace(
4238
4253
  /{{([^}]+)}}/g,
4239
- (L, $) => String(
4254
+ ($, P) => String(
4240
4255
  G({
4241
- code: $,
4256
+ code: P,
4242
4257
  context: e.context || {},
4243
4258
  localState: void 0,
4244
4259
  rootState: e.builderContextSignal.rootState,
@@ -4246,19 +4261,19 @@ function Ai(e) {
4246
4261
  })
4247
4262
  )
4248
4263
  );
4249
- Oe(F), fetch(F).then((L) => L.json()).then((L) => {
4264
+ Oe(O), fetch(O).then(($) => $.json()).then(($) => {
4250
4265
  n({
4251
- [w]: L
4266
+ [w]: $
4252
4267
  }), c[w] = !0;
4253
- }).catch((L) => {
4254
- console.error("error fetching dynamic data", A, L);
4268
+ }).catch(($) => {
4269
+ console.error("error fetching dynamic data", D, $);
4255
4270
  }).finally(() => {
4256
4271
  f[w] = !1;
4257
4272
  });
4258
4273
  });
4259
4274
  }
4260
4275
  function p() {
4261
- O() && window.dispatchEvent(
4276
+ L() && window.dispatchEvent(
4262
4277
  new CustomEvent(
4263
4278
  "builder:component:stateChange",
4264
4279
  {
@@ -4273,10 +4288,10 @@ function Ai(e) {
4273
4288
  );
4274
4289
  }
4275
4290
  const y = H(!1);
4276
- return y.current || (h(), p(), y.current = !0), P(() => {
4277
- var T, I, b, S, w;
4291
+ return y.current || (h(), p(), y.current = !0), V(() => {
4292
+ var T, I, g, x, w;
4278
4293
  if (M()) {
4279
- O() && !e.isNestedRender && (window.addEventListener("message", l), ut(), dt({
4294
+ L() && !e.isNestedRender && (window.addEventListener("message", l), ut(), dt({
4280
4295
  ...e.locale ? {
4281
4296
  locale: e.locale
4282
4297
  } : {},
@@ -4290,35 +4305,35 @@ function Ai(e) {
4290
4305
  apiKey: e.apiKey
4291
4306
  }), Object.values(
4292
4307
  e.builderContextSignal.componentInfos
4293
- ).forEach(($) => {
4308
+ ).forEach((P) => {
4294
4309
  var U, E;
4295
- if (!((U = $.models) != null && U.length) || $.models.includes(e.model)) {
4296
- const B = mt($);
4310
+ if (!((U = P.models) != null && U.length) || P.models.includes(e.model)) {
4311
+ const B = mt(P);
4297
4312
  (E = window.parent) == null || E.postMessage(B, "*");
4298
4313
  }
4299
4314
  }), window.addEventListener(
4300
4315
  "builder:component:stateChangeListenerActivated",
4301
4316
  p
4302
4317
  ));
4303
- const A = e.builderContextSignal.content && Z(e.canTrack), F = ft({
4318
+ const D = e.builderContextSignal.content && Z(e.canTrack), O = ft({
4304
4319
  name: `builder.tests.${(I = e.builderContextSignal.content) == null ? void 0 : I.id}`,
4305
4320
  canTrack: !0
4306
- }), L = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId;
4307
- if (A && L === F) {
4308
- const $ = (S = e.builderContextSignal.content) == null ? void 0 : S.id, U = e.apiKey;
4321
+ }), $ = (g = e.builderContextSignal.content) == null ? void 0 : g.testVariationId;
4322
+ if (D && $ === O) {
4323
+ const P = (x = e.builderContextSignal.content) == null ? void 0 : x.id, U = e.apiKey;
4309
4324
  Te({
4310
4325
  apiHost: e.apiHost,
4311
4326
  type: "impression",
4312
4327
  canTrack: !0,
4313
- contentId: $,
4328
+ contentId: P,
4314
4329
  apiKey: U,
4315
- variationId: F !== $ ? F : void 0
4330
+ variationId: O !== P ? O : void 0
4316
4331
  });
4317
4332
  }
4318
- if (le() && !O()) {
4319
- const $ = new URL(location.href).searchParams, U = $.get("builder.preview"), E = $.get(
4333
+ if (le() && !L()) {
4334
+ const P = new URL(location.href).searchParams, U = P.get("builder.preview"), E = P.get(
4320
4335
  `builder.overrides.${U}`
4321
- ), B = $.get("apiKey") || $.get("builder.space");
4336
+ ), B = P.get("apiKey") || P.get("builder.space");
4322
4337
  (U === "BUILDER_STUDIO" || U === e.model && B === e.apiKey && (!e.content || E === e.content.id)) && Le({
4323
4338
  model: e.model,
4324
4339
  apiKey: e.apiKey,
@@ -4333,30 +4348,30 @@ function Ai(e) {
4333
4348
  });
4334
4349
  }
4335
4350
  }
4336
- }, []), P(() => {
4351
+ }, []), V(() => {
4337
4352
  e.content && i(e.content);
4338
- }, [e.content]), P(() => {
4353
+ }, [e.content]), V(() => {
4339
4354
  p();
4340
- }, [e.builderContextSignal.rootState]), P(() => {
4355
+ }, [e.builderContextSignal.rootState]), V(() => {
4341
4356
  e.data && n(e.data);
4342
- }, [e.data]), P(() => {
4357
+ }, [e.data]), V(() => {
4343
4358
  e.locale && n({
4344
4359
  locale: e.locale
4345
4360
  });
4346
- }, [e.locale]), P(() => () => {
4361
+ }, [e.locale]), V(() => () => {
4347
4362
  M() && (window.removeEventListener("message", l), window.removeEventListener(
4348
4363
  "builder:component:stateChangeListenerActivated",
4349
4364
  p
4350
4365
  ));
4351
4366
  }, []), /* @__PURE__ */ s(pe.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || De() ? /* @__PURE__ */ s(
4352
- a,
4367
+ o,
4353
4368
  {
4354
4369
  ref: t,
4355
4370
  onClick: (T) => d(T),
4356
- "builder-content-id": (x = e.builderContextSignal.content) == null ? void 0 : x.id,
4371
+ "builder-content-id": (S = e.builderContextSignal.content) == null ? void 0 : S.id,
4357
4372
  "builder-model": e.model,
4358
4373
  className: Vi(
4359
- ((k = e.content) == null ? void 0 : k.testVariationId) || ((V = e.content) == null ? void 0 : V.id)
4374
+ ((k = e.content) == null ? void 0 : k.testVariationId) || ((A = e.content) == null ? void 0 : A.id)
4360
4375
  ),
4361
4376
  style: {
4362
4377
  display: !e.builderContextSignal.content && De() ? "none" : void 0
@@ -4394,9 +4409,9 @@ const Ni = ({
4394
4409
  data: t,
4395
4410
  locale: n
4396
4411
  }) => {
4397
- var a, o, l;
4398
- const i = {}, r = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
4399
- return (l = (o = e == null ? void 0 : e.data) == null ? void 0 : o.inputs) == null || l.forEach((c) => {
4412
+ var o, a, l;
4413
+ const i = {}, r = ((o = e == null ? void 0 : e.data) == null ? void 0 : o.state) || {};
4414
+ return (l = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || l.forEach((c) => {
4400
4415
  c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
4401
4416
  }), {
4402
4417
  ...i,
@@ -4418,39 +4433,39 @@ const Ni = ({
4418
4433
  meta: e == null ? void 0 : e.meta
4419
4434
  } : void 0;
4420
4435
  function Fe(e) {
4421
- var u, f, g, m, v, d, h, p, y;
4436
+ var u, f, b, m, v, d, h, p, y;
4422
4437
  const [t, n] = C(
4423
4438
  () => {
4424
- var x, k;
4439
+ var S, k;
4425
4440
  return xi({
4426
4441
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4427
- variationId: (x = e.content) == null ? void 0 : x.testVariationId,
4442
+ variationId: (S = e.content) == null ? void 0 : S.testVariationId,
4428
4443
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4429
4444
  contentId: (k = e.content) == null ? void 0 : k.id
4430
4445
  });
4431
4446
  }
4432
4447
  );
4433
- function i(x) {
4448
+ function i(S) {
4434
4449
  l((k) => ({
4435
4450
  ...k,
4436
- rootState: x
4451
+ rootState: S
4437
4452
  }));
4438
4453
  }
4439
- const [r, a] = C(
4454
+ const [r, o] = C(
4440
4455
  () => [
4441
4456
  ...Ne(),
4442
4457
  ...e.customComponents || []
4443
4458
  ].reduce(
4444
- (x, { component: k, ...V }) => ({
4445
- ...x,
4446
- [V.name]: {
4459
+ (S, { component: k, ...A }) => ({
4460
+ ...S,
4461
+ [A.name]: {
4447
4462
  component: k,
4448
- ...Ie(V)
4463
+ ...Ie(A)
4449
4464
  }
4450
4465
  }),
4451
4466
  {}
4452
4467
  )
4453
- ), [o, l] = C(() => ({
4468
+ ), [a, l] = C(() => ({
4454
4469
  content: Wi({
4455
4470
  content: e.content,
4456
4471
  data: e.data
@@ -4470,9 +4485,9 @@ function Fe(e) {
4470
4485
  ...Ne(),
4471
4486
  ...e.customComponents || []
4472
4487
  ].reduce(
4473
- (x, { component: k, ...V }) => ({
4474
- ...x,
4475
- [V.name]: Ie(V)
4488
+ (S, { component: k, ...A }) => ({
4489
+ ...S,
4490
+ [A.name]: Ie(A)
4476
4491
  }),
4477
4492
  {}
4478
4493
  ),
@@ -4486,14 +4501,14 @@ function Fe(e) {
4486
4501
  e.apiKey || J.error(
4487
4502
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4488
4503
  );
4489
- const x = (f = (u = o.content) == null ? void 0 : u.data) == null ? void 0 : f.jsCode;
4490
- x && G({
4491
- code: x,
4504
+ const S = (f = (u = a.content) == null ? void 0 : u.data) == null ? void 0 : f.jsCode;
4505
+ S && G({
4506
+ code: S,
4492
4507
  context: e.context || {},
4493
4508
  localState: void 0,
4494
- rootState: o.rootState,
4509
+ rootState: a.rootState,
4495
4510
  rootSetState: (k) => {
4496
- Object.assign(o.rootState, k);
4511
+ Object.assign(a.rootState, k);
4497
4512
  },
4498
4513
  isExpression: !1
4499
4514
  }), c.current = !0;
@@ -4518,7 +4533,7 @@ function Fe(e) {
4518
4533
  locale: e.locale,
4519
4534
  enrich: e.enrich,
4520
4535
  showContent: e.showContent,
4521
- builderContextSignal: o,
4536
+ builderContextSignal: a,
4522
4537
  contentWrapper: e.contentWrapper,
4523
4538
  contentWrapperProps: e.contentWrapperProps,
4524
4539
  trustedHosts: e.trustedHosts,
@@ -4538,16 +4553,16 @@ function Fe(e) {
4538
4553
  {
4539
4554
  nonce: e.nonce || "",
4540
4555
  isNestedRender: e.isNestedRender,
4541
- contentId: (g = o.content) == null ? void 0 : g.id,
4542
- cssCode: (v = (m = o.content) == null ? void 0 : m.data) == null ? void 0 : v.cssCode,
4543
- customFonts: (h = (d = o.content) == null ? void 0 : d.data) == null ? void 0 : h.customFonts
4556
+ contentId: (b = a.content) == null ? void 0 : b.id,
4557
+ cssCode: (v = (m = a.content) == null ? void 0 : m.data) == null ? void 0 : v.cssCode,
4558
+ customFonts: (h = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : h.customFonts
4544
4559
  }
4545
4560
  ),
4546
4561
  /* @__PURE__ */ s(
4547
4562
  _,
4548
4563
  {
4549
- blocks: (y = (p = o.content) == null ? void 0 : p.data) == null ? void 0 : y.blocks,
4550
- context: o,
4564
+ blocks: (y = (p = a.content) == null ? void 0 : p.data) == null ? void 0 : y.blocks,
4565
+ context: a,
4551
4566
  registeredComponents: r,
4552
4567
  linkComponent: e.linkComponent
4553
4568
  }
@@ -4559,7 +4574,7 @@ function Fe(e) {
4559
4574
  );
4560
4575
  }
4561
4576
  function $i(e) {
4562
- var o;
4577
+ var a;
4563
4578
  const [t, n] = C(
4564
4579
  () => gi({
4565
4580
  canTrack: Z(e.canTrack),
@@ -4579,7 +4594,7 @@ function $i(e) {
4579
4594
  function r() {
4580
4595
  return re(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
4581
4596
  }
4582
- function a() {
4597
+ function o() {
4583
4598
  var l;
4584
4599
  return t ? {
4585
4600
  ...e.content,
@@ -4589,9 +4604,9 @@ function $i(e) {
4589
4604
  canTrack: Z(e.canTrack)
4590
4605
  });
4591
4606
  }
4592
- return P(() => {
4607
+ return V(() => {
4593
4608
  }, []), /* @__PURE__ */ W(R, { children: [
4594
- !e.isNestedRender && D !== "reactNative" ? /* @__PURE__ */ W(R, { children: [
4609
+ !e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */ W(R, { children: [
4595
4610
  /* @__PURE__ */ s(
4596
4611
  j,
4597
4612
  {
@@ -4600,7 +4615,7 @@ function $i(e) {
4600
4615
  nonce: e.nonce || ""
4601
4616
  }
4602
4617
  ),
4603
- rt.includes(D) ? /* @__PURE__ */ s(
4618
+ rt.includes(F) ? /* @__PURE__ */ s(
4604
4619
  j,
4605
4620
  {
4606
4621
  id: "builderio-init-personalization-variants-fns",
@@ -4626,7 +4641,7 @@ function $i(e) {
4626
4641
  nonce: e.nonce || ""
4627
4642
  }
4628
4643
  ),
4629
- (o = re(e.content)) == null ? void 0 : o.map((l) => /* @__PURE__ */ s(
4644
+ (a = re(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
4630
4645
  Fe,
4631
4646
  {
4632
4647
  apiHost: e.apiHost,
@@ -4660,7 +4675,7 @@ function $i(e) {
4660
4675
  apiHost: e.apiHost,
4661
4676
  nonce: e.nonce,
4662
4677
  isNestedRender: e.isNestedRender,
4663
- content: a(),
4678
+ content: o(),
4664
4679
  showContent: !0,
4665
4680
  model: e.model,
4666
4681
  data: e.data,
@@ -4702,7 +4717,7 @@ const Di = async ({
4702
4717
  });
4703
4718
  };
4704
4719
  function Fi(e) {
4705
- var u, f, g, m, v;
4720
+ var u, f, b, m, v;
4706
4721
  function t() {
4707
4722
  return "div";
4708
4723
  }
@@ -4718,25 +4733,25 @@ function Fi(e) {
4718
4733
  (h = e.symbol) != null && h.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4719
4734
  ].filter(Boolean).join(" ");
4720
4735
  }
4721
- const [r, a] = C(() => {
4736
+ const [r, o] = C(() => {
4722
4737
  var d;
4723
4738
  return (d = e.symbol) == null ? void 0 : d.content;
4724
- }), [o, l] = C(() => {
4739
+ }), [a, l] = C(() => {
4725
4740
  var d;
4726
4741
  return (d = e.symbol) == null ? void 0 : d.entry;
4727
4742
  });
4728
4743
  function c() {
4729
4744
  var d;
4730
- r && o === ((d = e.symbol) == null ? void 0 : d.entry) || Di({
4745
+ r && a === ((d = e.symbol) == null ? void 0 : d.entry) || Di({
4731
4746
  symbol: e.symbol,
4732
4747
  builderContextValue: e.builderContext
4733
4748
  }).then((h) => {
4734
4749
  var p;
4735
- h && (a(h), l((p = e.symbol) == null ? void 0 : p.entry));
4750
+ h && (o(h), l((p = e.symbol) == null ? void 0 : p.entry));
4736
4751
  });
4737
4752
  }
4738
- return P(() => {
4739
- }, []), P(() => {
4753
+ return V(() => {
4754
+ }, []), V(() => {
4740
4755
  c();
4741
4756
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
4742
4757
  $i,
@@ -4753,7 +4768,7 @@ function Fi(e) {
4753
4768
  data: {
4754
4769
  ...(f = e.symbol) == null ? void 0 : f.data,
4755
4770
  ...e.builderContext.localState,
4756
- ...(g = r == null ? void 0 : r.data) == null ? void 0 : g.state
4771
+ ...(b = r == null ? void 0 : r.data) == null ? void 0 : b.state
4757
4772
  },
4758
4773
  canTrack: e.builderContext.canTrack,
4759
4774
  model: (v = (m = e.symbol) == null ? void 0 : m.model) != null ? v : "",