@builder.io/sdk-react 4.2.0 → 4.2.2

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 (78) hide show
  1. package/lib/browser/blocks-exports.cjs +17 -17
  2. package/lib/browser/blocks-exports.mjs +759 -740
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +6 -5
  5. package/lib/browser/server-entry-06504dba.cjs +2 -0
  6. package/lib/browser/{server-entry-065ec411.js → server-entry-074665de.js} +24 -13
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +7 -6
  9. package/lib/edge/{accordion-c239771d.cjs → accordion-0768e15a.cjs} +1 -1
  10. package/lib/edge/{accordion-79f6d62c.js → accordion-d3831f48.js} +1 -1
  11. package/lib/edge/{blocks-3cb3a9cd.js → blocks-0269007e.js} +105 -106
  12. package/lib/edge/{blocks-56f79850.cjs → blocks-2af1d7c9.cjs} +10 -10
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +2 -2
  15. package/lib/edge/{button-759b43fb.cjs → button-050f4fef.cjs} +1 -1
  16. package/lib/edge/{button-6dee05c9.js → button-a478ff1a.js} +2 -2
  17. package/lib/edge/{columns-2743498a.js → columns-0b3181f1.js} +3 -3
  18. package/lib/edge/{columns-a29ec0ac.cjs → columns-25375990.cjs} +1 -1
  19. package/lib/edge/{content-variants-4d5a1e3c.js → content-variants-0dd65b50.js} +426 -415
  20. package/lib/edge/content-variants-4cab7215.cjs +302 -0
  21. package/lib/edge/{custom-code-6129bd8c.cjs → custom-code-eb5aedd2.cjs} +1 -1
  22. package/lib/edge/{custom-code-8034fac0.js → custom-code-f7a0f1c1.js} +1 -1
  23. package/lib/edge/{embed-b2ea5150.cjs → embed-69114c35.cjs} +1 -1
  24. package/lib/edge/{embed-f5b10eeb.js → embed-e4979560.js} +1 -1
  25. package/lib/edge/{form-14942d4f.js → form-30fba682.js} +27 -22
  26. package/lib/edge/form-7b4bd399.cjs +1 -0
  27. package/lib/edge/{get-class-prop-name-f6a63f4a.js → get-class-prop-name-770bdff2.js} +1 -1
  28. package/lib/edge/{get-class-prop-name-7e739c9f.cjs → get-class-prop-name-f470d5ce.cjs} +1 -1
  29. package/lib/edge/{img-ba2ef9ee.js → img-3bb375bf.js} +1 -1
  30. package/lib/edge/{img-f33a2e42.cjs → img-ddf74e12.cjs} +1 -1
  31. package/lib/edge/index.cjs +1 -1
  32. package/lib/edge/index.mjs +4 -3
  33. package/lib/edge/{input-c2f95825.cjs → input-a6caf021.cjs} +1 -1
  34. package/lib/edge/{input-7089e95f.js → input-e4a9fe0b.js} +1 -1
  35. package/lib/edge/{personalization-container-eb1ecef2.js → personalization-container-64f3cd71.js} +4 -4
  36. package/lib/edge/{personalization-container-794b3939.cjs → personalization-container-f7030f08.cjs} +1 -1
  37. package/lib/edge/{select-af0bb9fe.cjs → select-c217566c.cjs} +1 -1
  38. package/lib/edge/{select-8f01592a.js → select-c59c9ac6.js} +1 -1
  39. package/lib/edge/server-entry-67200cf1.cjs +2 -0
  40. package/lib/edge/{server-entry-7c65c9a8.js → server-entry-fb5f2b80.js} +22 -11
  41. package/lib/edge/server-entry.cjs +1 -1
  42. package/lib/edge/server-entry.mjs +7 -6
  43. package/lib/edge/{slot-2638fd6d.js → slot-26ec2911.js} +3 -3
  44. package/lib/edge/{slot-db37860e.cjs → slot-ccd946e2.cjs} +1 -1
  45. package/lib/edge/{symbol-7faca118.js → symbol-10cb2f77.js} +26 -23
  46. package/lib/edge/symbol-4548e942.cjs +1 -0
  47. package/lib/edge/tabs-82a9170c.cjs +1 -0
  48. package/lib/edge/{tabs-2eee6422.js → tabs-f9110171.js} +24 -23
  49. package/lib/node/blocks-exports.cjs +20 -20
  50. package/lib/node/blocks-exports.mjs +919 -900
  51. package/lib/node/index.cjs +1 -1
  52. package/lib/node/index.mjs +6 -5
  53. package/lib/node/init.cjs +1 -1
  54. package/lib/node/init.mjs +3 -3
  55. package/lib/node/{server-entry-581dd491.js → server-entry-83d3751d.js} +24 -13
  56. package/lib/node/server-entry-d40e4b66.cjs +2 -0
  57. package/lib/node/server-entry.cjs +1 -1
  58. package/lib/node/server-entry.mjs +7 -6
  59. package/lib/node/{setIvm-2eb44b9d.cjs → setIvm-0a5b2ba2.cjs} +1 -1
  60. package/lib/node/{setIvm-8d02dc72.js → setIvm-596668c3.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-f461467e.js → should-force-browser-runtime-in-node-180c3315.js} +1 -1
  64. package/lib/node/{should-force-browser-runtime-in-node-ed3fa1f9.cjs → should-force-browser-runtime-in-node-5b9e373d.cjs} +1 -1
  65. package/package.json +1 -1
  66. package/types/blocks/symbol/symbol.types.d.ts +1 -2
  67. package/types/components/awaiter.d.ts +1 -11
  68. package/types/components/awaiter.types.d.ts +7 -0
  69. package/types/constants/sdk-version.d.ts +1 -1
  70. package/types/functions/register.d.ts +18 -0
  71. package/types/server-index.d.ts +1 -1
  72. package/lib/browser/server-entry-09953757.cjs +0 -2
  73. package/lib/edge/content-variants-bdf1748b.cjs +0 -302
  74. package/lib/edge/form-26c3a03e.cjs +0 -1
  75. package/lib/edge/server-entry-142a50e9.cjs +0 -2
  76. package/lib/edge/symbol-630b9a57.cjs +0 -1
  77. package/lib/edge/tabs-502123df.cjs +0 -1
  78. package/lib/node/server-entry-375d06e8.cjs +0 -2
@@ -1,16 +1,16 @@
1
1
  "use client";
2
- import { TARGET as F, isBrowser as K, logger as Z, checkIsDefined as ge, isPreviewing as le, isEditing as _, userAttributesService as Ce, getDefaultCanTrack as X, logFetch as Fe, setupBrowserForEditing as lt, createRegisterComponentMessage as st, getCookieSync as ct, _track as Te, fetchOneEntry as Oe, createEditorListener as ut, serializeIncludingFunctions as Ie, handleABTestingSync as dt } from "./server-entry-581dd491.js";
3
- import { setClientUserAttributes as Mi } from "./server-entry-581dd491.js";
4
- import { jsx as s, Fragment as R, jsxs as W } from "react/jsx-runtime";
2
+ import { TARGET as F, isBrowser as G, logger as ee, checkIsDefined as be, isPreviewing as le, isEditing as U, userAttributesService as Ce, getDefaultCanTrack as Z, logFetch as Fe, setupBrowserForEditing as lt, createRegisterComponentMessage as st, getCookieSync as ct, _track as Te, fetchOneEntry as Le, createEditorListener as ut, serializeIncludingFunctions as Ie, handleABTestingSync as dt } from "./server-entry-83d3751d.js";
3
+ import { setClientUserAttributes as Mi } from "./server-entry-83d3751d.js";
4
+ import { jsx as s, Fragment as P, jsxs as D } from "react/jsx-runtime";
5
5
  import * as mt from "react";
6
- import { createContext as Le, useEffect as V, useState as C, useRef as H, useContext as we, createElement as _e } from "react";
7
- import { getFunctionArguments as ft, flattenState as ht, runInNode as gt, parseCode as bt, getBuilderGlobals as yt, set as Ue, fastClone as ye } from "./setIvm-8d02dc72.js";
8
- import { shouldForceBrowserRuntimeInNode as pt } from "./should-force-browser-runtime-in-node-f461467e.js";
6
+ import { createContext as Oe, useEffect as N, useState as k, useRef as z, useContext as we, createElement as _e } from "react";
7
+ import { getFunctionArguments as ft, flattenState as ht, runInNode as bt, parseCode as gt, getBuilderGlobals as yt, set as Ue, fastClone as ye } from "./setIvm-596668c3.js";
8
+ import { shouldForceBrowserRuntimeInNode as pt } from "./should-force-browser-runtime-in-node-180c3315.js";
9
9
  const vt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), xt = (e) => typeof e == "string" && vt.has(e.toLowerCase());
10
10
  function pe(e) {
11
- return /* @__PURE__ */ s(R, { children: xt(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 }) }) });
11
+ return /* @__PURE__ */ s(P, { children: xt(e.TagName) ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(P, { 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 }) }) });
12
12
  }
13
- const j = () => {
13
+ const J = () => {
14
14
  switch (F) {
15
15
  case "react":
16
16
  case "reactNative":
@@ -28,7 +28,7 @@ function St(e) {
28
28
  function t() {
29
29
  return {
30
30
  ...e.attributes,
31
- [j()]: `${e.link ? "" : "builder-button"} ${e.attributes[j()] || ""}`,
31
+ [J()]: `${e.link ? "" : "builder-button"} ${e.attributes[J()] || ""}`,
32
32
  ...e.link ? {
33
33
  href: e.link,
34
34
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -48,7 +48,7 @@ function St(e) {
48
48
  }
49
49
  );
50
50
  }
51
- const ve = Le({
51
+ const ve = Oe({
52
52
  content: null,
53
53
  context: {},
54
54
  localState: void 0,
@@ -63,8 +63,8 @@ const ve = Le({
63
63
  BlocksWrapperProps: {},
64
64
  nonce: "",
65
65
  model: ""
66
- }), He = Le({ registeredComponents: {} }), Me = (e, t, n) => {
67
- const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, o) => r != null ? r[o] : r, e);
66
+ }), He = Oe({ registeredComponents: {} }), Me = (e, t, n) => {
67
+ const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, a) => r != null ? r[a] : r, e);
68
68
  return i === void 0 || i === e ? n : i;
69
69
  }, kt = ({
70
70
  code: e,
@@ -72,34 +72,34 @@ const ve = Le({
72
72
  context: n,
73
73
  event: i,
74
74
  localState: r,
75
- rootSetState: o,
76
- rootState: a
75
+ rootSetState: a,
76
+ rootState: o
77
77
  }) => {
78
78
  const l = ft({
79
79
  builder: t,
80
80
  context: n,
81
81
  event: i,
82
82
  state: ht({
83
- rootState: a,
83
+ rootState: o,
84
84
  localState: r,
85
- rootSetState: o
85
+ rootSetState: a
86
86
  })
87
87
  });
88
88
  return new Function(...l.map(([c]) => c), e)(...l.map(([, c]) => c));
89
- }, Ct = (e) => K() || pt({
89
+ }, Ct = (e) => G() || pt({
90
90
  shouldLogWarning: !0
91
- }) ? kt(e) : gt(e), Tt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, It = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, wt = (e) => {
92
- var t, n, i, r, o, a;
93
- return ((i = (n = (t = Tt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((a = (o = (r = It.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : o.getPath) == null ? void 0 : a.slice(1));
91
+ }) ? kt(e) : bt(e), Tt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, It = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, wt = (e) => {
92
+ var t, n, i, r, a, o;
93
+ return ((i = (n = (t = Tt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((o = (a = (r = It.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : a.getPath) == null ? void 0 : o.slice(1));
94
94
  };
95
- function J({
95
+ function Q({
96
96
  code: e,
97
97
  context: t,
98
98
  localState: n,
99
99
  rootState: i,
100
100
  rootSetState: r,
101
- event: o,
102
- isExpression: a = !0
101
+ event: a,
102
+ isExpression: o = !0
103
103
  }) {
104
104
  if (e.trim() === "")
105
105
  return;
@@ -110,20 +110,20 @@ function J({
110
110
  ...n
111
111
  }, l);
112
112
  const c = {
113
- code: bt(e, {
114
- isExpression: a
113
+ code: gt(e, {
114
+ isExpression: o
115
115
  }),
116
116
  builder: yt(),
117
117
  context: t,
118
- event: o,
118
+ event: a,
119
119
  rootSetState: r,
120
120
  rootState: i,
121
121
  localState: n
122
122
  };
123
123
  try {
124
124
  return Ct(c);
125
- } catch (u) {
126
- Z.error("Failed code evaluation: " + u.message, {
125
+ } catch (d) {
126
+ ee.error("Failed code evaluation: " + d.message, {
127
127
  code: e
128
128
  });
129
129
  return;
@@ -142,8 +142,8 @@ const Rt = (e, t) => {
142
142
  if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
143
143
  return {
144
144
  ...e.component.options,
145
- text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, o) => J({
146
- code: o,
145
+ text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, a) => Q({
146
+ code: a,
147
147
  context: t,
148
148
  localState: t.localState,
149
149
  rootState: t.rootState,
@@ -159,19 +159,19 @@ function Pt(e, ...t) {
159
159
  }
160
160
  function oe(e, t, n = null, i = null, r = /* @__PURE__ */ new WeakSet()) {
161
161
  if (e == null || typeof e != "object") {
162
- t(e, (o) => {
163
- n !== null && i !== null && (n[i] = o);
162
+ t(e, (a) => {
163
+ n !== null && i !== null && (n[i] = a);
164
164
  });
165
165
  return;
166
166
  }
167
- r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((o, a) => {
168
- t(o, (c) => {
169
- e[a] = c;
170
- }), oe(o, t, e, a, r);
171
- }) : Object.entries(e).forEach(([o, a]) => {
167
+ r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((a, o) => {
172
168
  t(a, (c) => {
173
169
  e[o] = c;
174
170
  }), oe(a, t, e, o, r);
171
+ }) : Object.entries(e).forEach(([a, o]) => {
172
+ t(o, (c) => {
173
+ e[a] = c;
174
+ }), oe(o, t, e, a, r);
175
175
  }));
176
176
  }
177
177
  function qe(e) {
@@ -198,16 +198,16 @@ function Bt(e, t) {
198
198
  var n, i;
199
199
  return (n = e.component) != null && n.options && Vt((i = e.component) == null ? void 0 : i.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = At(e.component.options, t != null ? t : "Default")), e;
200
200
  }
201
- function be(e) {
201
+ function ge(e) {
202
202
  if (e === null || typeof e != "object")
203
203
  return e;
204
204
  if (Array.isArray(e))
205
- return e.map((n) => be(n));
205
+ return e.map((n) => ge(n));
206
206
  if (e["@type"] === "@builder.io/sdk:Element")
207
207
  return e;
208
208
  const t = {};
209
209
  for (const n in e)
210
- n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = be(e[n]));
210
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ge(e[n]));
211
211
  return t;
212
212
  }
213
213
  const Nt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), $t = (e) => {
@@ -223,7 +223,7 @@ const Nt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), $t = (e) =
223
223
  }
224
224
  };
225
225
  } else {
226
- const t = be(Pt(e, "children", "meta"));
226
+ const t = ge(Pt(e, "children", "meta"));
227
227
  return {
228
228
  ...t,
229
229
  properties: {
@@ -245,18 +245,18 @@ const Nt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), $t = (e) =
245
245
  }) => {
246
246
  if (!e.bindings)
247
247
  return e;
248
- const o = $t(e);
249
- for (const a in e.bindings) {
250
- const l = e.bindings[a], c = J({
248
+ const a = $t(e);
249
+ for (const o in e.bindings) {
250
+ const l = e.bindings[o], c = Q({
251
251
  code: l,
252
252
  localState: n,
253
253
  rootState: i,
254
254
  rootSetState: r,
255
255
  context: t
256
256
  });
257
- Ue(o, a, c);
257
+ Ue(a, o, c);
258
258
  }
259
- return o;
259
+ return a;
260
260
  };
261
261
  function Dt({
262
262
  block: e,
@@ -265,39 +265,39 @@ function Dt({
265
265
  rootState: i,
266
266
  rootSetState: r
267
267
  }) {
268
- let o = e;
269
- return o = Wt({
270
- block: o,
268
+ let a = e;
269
+ return a = Wt({
270
+ block: a,
271
271
  localState: n,
272
272
  rootState: i,
273
273
  rootSetState: r,
274
274
  context: t
275
- }), o = Bt(o, i.locale), o;
275
+ }), a = Bt(a, i.locale), a;
276
276
  }
277
277
  const se = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
278
278
  function Ft(e, t, n = {}) {
279
- let i, r, o, a = null, l = 0;
279
+ let i, r, a, o = null, l = 0;
280
280
  const c = function() {
281
- l = n.leading === !1 ? 0 : Date.now(), a = null, o = e.apply(i, r), a || (i = r = null);
281
+ l = n.leading === !1 ? 0 : Date.now(), o = null, a = e.apply(i, r), o || (i = r = null);
282
282
  };
283
283
  return function() {
284
- const u = Date.now();
285
- !l && n.leading === !1 && (l = u);
286
- const f = t - (u - l);
287
- return i = this, r = arguments, f <= 0 || f > t ? (a && (clearTimeout(a), a = null), l = u, o = e.apply(i, r), a || (i = r = null)) : !a && n.trailing !== !1 && (a = setTimeout(c, f)), o;
284
+ const d = Date.now();
285
+ !l && n.leading === !1 && (l = d);
286
+ const h = t - (d - l);
287
+ return i = this, r = arguments, h <= 0 || h > t ? (o && (clearTimeout(o), o = null), l = d, a = e.apply(i, r), o || (i = r = null)) : !o && n.trailing !== !1 && (o = setTimeout(c, h)), a;
288
288
  };
289
289
  }
290
- function Y(e, ...t) {
290
+ function X(e, ...t) {
291
291
  const n = Object(e);
292
292
  for (let i = 1; i < arguments.length; i++) {
293
293
  const r = arguments[i];
294
294
  if (r != null)
295
- for (const o in r)
296
- Object.prototype.hasOwnProperty.call(r, o) && (n[o] = r[o]);
295
+ for (const a in r)
296
+ Object.prototype.hasOwnProperty.call(r, a) && (n[a] = r[a]);
297
297
  }
298
298
  return n;
299
299
  }
300
- function Ot(e) {
300
+ function Lt(e) {
301
301
  for (const t of e)
302
302
  switch (t.trigger) {
303
303
  case "pageLoad":
@@ -312,12 +312,12 @@ function je(e) {
312
312
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
313
313
  }
314
314
  function ze(e, t) {
315
- const n = Lt(e), i = getComputedStyle(t), r = e.steps[0].styles, o = e.steps[e.steps.length - 1].styles, a = [r, o];
316
- for (const l of a)
315
+ const n = Ot(e), i = getComputedStyle(t), r = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, o = [r, a];
316
+ for (const l of o)
317
317
  for (const c of n)
318
318
  c in l || (l[c] = i[c]);
319
319
  }
320
- function Lt(e) {
320
+ function Ot(e) {
321
321
  const t = [];
322
322
  for (const n of e.steps)
323
323
  for (const i in n.styles)
@@ -331,8 +331,8 @@ function Ke(e) {
331
331
  return;
332
332
  }
333
333
  Array.from(t).forEach((n) => {
334
- ze(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Y(n.style, e.steps[0].styles), setTimeout(() => {
335
- n.style.transition = `all ${e.duration}s ${se(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Y(n.style, e.steps[1].styles), setTimeout(() => {
334
+ ze(e, n), n.style.transition = "none", n.style.transitionDelay = "0", X(n.style, e.steps[0].styles), setTimeout(() => {
335
+ n.style.transition = `all ${e.duration}s ${se(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), X(n.style, e.steps[1].styles), setTimeout(() => {
336
336
  n.style.transition = "", n.style.transitionDelay = "";
337
337
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
338
338
  });
@@ -347,37 +347,37 @@ function _t(e) {
347
347
  Array.from(t).forEach((n) => {
348
348
  ze(e, n);
349
349
  let i = !1, r = !1;
350
- function o() {
350
+ function a() {
351
351
  !i && l(n) ? (i = !0, r = !0, setTimeout(() => {
352
- Y(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
352
+ X(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", o), setTimeout(() => {
353
353
  r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
354
354
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
355
- })) : e.repeat && i && !r && !l(n) && (i = !1, Y(n.style, e.steps[0].styles));
355
+ })) : e.repeat && i && !r && !l(n) && (i = !1, X(n.style, e.steps[0].styles));
356
356
  }
357
- const a = Ft(o, 200, {
357
+ const o = Ft(a, 200, {
358
358
  leading: !1
359
359
  });
360
- function l(f) {
361
- const b = f.getBoundingClientRect(), m = window.innerHeight, d = (e.thresholdPercent || 0) / 100 * m;
362
- return b.bottom > d && b.top < m - d;
360
+ function l(h) {
361
+ const g = h.getBoundingClientRect(), u = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * u;
362
+ return g.bottom > f && g.top < u - f;
363
363
  }
364
364
  const c = e.steps[0].styles;
365
- function u() {
366
- Y(n.style, c);
365
+ function d() {
366
+ X(n.style, c);
367
367
  }
368
- u(), setTimeout(() => {
368
+ d(), setTimeout(() => {
369
369
  n.style.transition = `all ${e.duration}s ${se(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
370
- }), document.addEventListener("scroll", a, {
370
+ }), document.addEventListener("scroll", o, {
371
371
  capture: !0,
372
372
  passive: !0
373
- }), o();
373
+ }), a();
374
374
  });
375
375
  }
376
376
  const Je = (e) => Object.entries(e).map(([n, i]) => {
377
377
  if (typeof i == "string")
378
378
  return `${se(n)}: ${i};`;
379
- }).filter(ge), Ut = (e) => Je(e).join(`
380
- `), Q = ({
379
+ }).filter(be), Ut = (e) => Je(e).join(`
380
+ `), Y = ({
381
381
  mediaQuery: e,
382
382
  className: t,
383
383
  styles: n
@@ -421,8 +421,8 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
421
421
  registeredComponents: t,
422
422
  model: n
423
423
  }) => {
424
- var o;
425
- const i = (o = e.component) == null ? void 0 : o.name;
424
+ var a;
425
+ const i = (a = e.component) == null ? void 0 : a.name;
426
426
  if (!i)
427
427
  return null;
428
428
  const r = t[i];
@@ -443,7 +443,7 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
443
443
  } = e;
444
444
  if (!(n != null && n.collection))
445
445
  return;
446
- const r = J({
446
+ const r = Q({
447
447
  code: n.collection,
448
448
  localState: t.localState,
449
449
  rootState: t.rootState,
@@ -452,16 +452,16 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
452
452
  });
453
453
  if (!Array.isArray(r))
454
454
  return;
455
- const o = n.collection.split(".").pop(), a = n.itemName || (o ? o + "Item" : "item");
456
- return r.map((c, u) => ({
455
+ const a = n.collection.split(".").pop(), o = n.itemName || (a ? a + "Item" : "item");
456
+ return r.map((c, d) => ({
457
457
  context: {
458
458
  ...t,
459
459
  localState: {
460
460
  ...t.localState,
461
- $index: u,
461
+ $index: d,
462
462
  $item: c,
463
- [a]: c,
464
- [`$${a}Index`]: u
463
+ [o]: c,
464
+ [`$${o}Index`]: d
465
465
  }
466
466
  },
467
467
  block: i
@@ -474,7 +474,7 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
474
474
  }, Kt = (e, t, n) => {
475
475
  var i;
476
476
  return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
477
- builderComponents: Object.fromEntries(Object.entries(t).filter(([o, a]) => !Qe(a, n)))
477
+ builderComponents: Object.fromEntries(Object.entries(t).filter(([a, o]) => !Qe(o, n)))
478
478
  } : {};
479
479
  }, Jt = (e, t) => {
480
480
  var n;
@@ -526,17 +526,17 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
526
526
  }
527
527
  if (!i || !r)
528
528
  return t;
529
- const o = n ? t.xsmall.max + 1 : Math.floor(i / 2);
529
+ const a = n ? t.xsmall.max + 1 : Math.floor(i / 2);
530
530
  t.small = {
531
531
  max: i,
532
- min: o,
533
- default: o + 1
532
+ min: a,
533
+ default: a + 1
534
534
  };
535
- const a = t.small.max + 1;
535
+ const o = t.small.max + 1;
536
536
  t.medium = {
537
537
  max: r,
538
- min: a,
539
- default: a + 1
538
+ min: o,
539
+ default: o + 1
540
540
  };
541
541
  const l = t.medium.max + 1;
542
542
  return t.large = {
@@ -546,7 +546,7 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
546
546
  default: l + 1
547
547
  }, t;
548
548
  };
549
- function ee(e) {
549
+ function te(e) {
550
550
  return /* @__PURE__ */ s(
551
551
  "style",
552
552
  {
@@ -559,64 +559,64 @@ function ee(e) {
559
559
  function Qt(e) {
560
560
  function t() {
561
561
  const i = e.block;
562
- return ge(i.hide) ? !i.hide : ge(i.show) ? i.show : !0;
562
+ return be(i.hide) ? !i.hide : be(i.show) ? i.show : !0;
563
563
  }
564
564
  function n() {
565
- var k, A, T, w, g;
566
- const i = e.block, r = i.responsiveStyles, o = e.context.content, a = Xe(
567
- ((k = o == null ? void 0 : o.meta) == null ? void 0 : k.breakpoints) || {}
568
- ), l = !!((T = (A = o == null ? void 0 : o.meta) == null ? void 0 : A.breakpoints) != null && T.xsmall), c = r == null ? void 0 : r.large, u = r == null ? void 0 : r.medium, f = r == null ? void 0 : r.small, b = r == null ? void 0 : r.xsmall, m = i.id;
569
- if (!m)
565
+ var T, E, _, H, q;
566
+ const i = e.block, r = i.responsiveStyles, a = e.context.content, o = Xe(
567
+ ((T = a == null ? void 0 : a.meta) == null ? void 0 : T.breakpoints) || {}
568
+ ), l = !!((_ = (E = a == null ? void 0 : a.meta) == null ? void 0 : E.breakpoints) != null && _.xsmall), c = r == null ? void 0 : r.large, d = r == null ? void 0 : r.medium, h = r == null ? void 0 : r.small, g = r == null ? void 0 : r.xsmall, u = i.id;
569
+ if (!u)
570
570
  return "";
571
- const v = c ? Q({
572
- className: m,
571
+ const x = c ? Y({
572
+ className: u,
573
573
  styles: c
574
- }) : "", d = u ? Q({
575
- className: m,
576
- styles: u,
574
+ }) : "", f = d ? Y({
575
+ className: u,
576
+ styles: d,
577
577
  mediaQuery: ue(
578
578
  "medium",
579
- a
579
+ o
580
580
  )
581
- }) : "", h = f ? Q({
582
- className: m,
583
- styles: f,
581
+ }) : "", m = h ? Y({
582
+ className: u,
583
+ styles: h,
584
584
  mediaQuery: ue(
585
585
  "small",
586
- a
586
+ o
587
587
  )
588
- }) : "", p = b && l ? Q({
589
- className: m,
590
- styles: b,
588
+ }) : "", y = g && l ? Y({
589
+ className: u,
590
+ styles: g,
591
591
  mediaQuery: ue(
592
592
  "xsmall",
593
- a
593
+ o
594
594
  )
595
- }) : "", y = i.animations && i.animations.find((x) => x.trigger === "hover");
595
+ }) : "", b = i.animations && i.animations.find((p) => p.trigger === "hover");
596
596
  let S = "";
597
- if (y) {
598
- const x = ((g = (w = y.steps) == null ? void 0 : w[1]) == null ? void 0 : g.styles) || {};
599
- S = Q({
600
- className: `${m}:hover`,
597
+ if (b) {
598
+ const p = ((q = (H = b.steps) == null ? void 0 : H[1]) == null ? void 0 : q.styles) || {};
599
+ S = Y({
600
+ className: `${u}:hover`,
601
601
  styles: {
602
- ...x,
603
- transition: `all ${y.duration}s ${se(
604
- y.easing
602
+ ...p,
603
+ transition: `all ${b.duration}s ${se(
604
+ b.easing
605
605
  )}`,
606
- transitionDelay: y.delay ? `${y.delay}s` : "0s"
606
+ transitionDelay: b.delay ? `${b.delay}s` : "0s"
607
607
  }
608
608
  }) || "";
609
609
  }
610
610
  return [
611
- v,
612
- d,
613
- h,
614
- p,
611
+ x,
612
+ f,
613
+ m,
614
+ y,
615
615
  S
616
616
  ].join(" ");
617
617
  }
618
- return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
619
- ee,
618
+ return /* @__PURE__ */ s(P, { children: n() && t() ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
619
+ te,
620
620
  {
621
621
  id: "builderio-block",
622
622
  styles: n(),
@@ -627,7 +627,7 @@ function Qt(e) {
627
627
  function Yt(e) {
628
628
  return e.charAt(0).toUpperCase() + e.slice(1);
629
629
  }
630
- const Xt = (e) => `on${Yt(e)}`, Zt = (e, t) => (n) => J({
630
+ const Xt = (e) => `on${Yt(e)}`, Zt = (e, t) => (n) => Q({
631
631
  code: e,
632
632
  context: t.context,
633
633
  localState: t.localState,
@@ -642,18 +642,18 @@ function Ze(e) {
642
642
  for (const r in n) {
643
643
  if (!n.hasOwnProperty(r))
644
644
  continue;
645
- const o = n[r];
646
- let a = Xt(r);
645
+ const a = n[r];
646
+ let o = Xt(r);
647
647
  if (e.stripPrefix)
648
648
  switch (F) {
649
649
  case "vue":
650
- a = a.replace("v-on:", "");
650
+ o = o.replace("v-on:", "");
651
651
  break;
652
652
  case "svelte":
653
- a = a.replace("on:", "");
653
+ o = o.replace("on:", "");
654
654
  break;
655
655
  }
656
- t[a] = Zt(o, e);
656
+ t[o] = Zt(a, e);
657
657
  }
658
658
  return t;
659
659
  }
@@ -678,7 +678,7 @@ function xe({
678
678
  block: e,
679
679
  context: t
680
680
  }),
681
- [j()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
681
+ [J()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
682
682
  };
683
683
  return en({
684
684
  properties: n,
@@ -708,12 +708,12 @@ function nn(e) {
708
708
  );
709
709
  }
710
710
  function rn(e) {
711
- return V(() => {
712
- }, []), /* @__PURE__ */ s(R, { children: e.children });
711
+ return N(() => {
712
+ }, []), /* @__PURE__ */ s(P, { children: e.children });
713
713
  }
714
714
  function an(e) {
715
715
  var i, r;
716
- C(() => 0);
716
+ k(() => 0);
717
717
  function t() {
718
718
  return e.includeBlockProps ? {
719
719
  ...xe({
@@ -732,8 +732,8 @@ function an(e) {
732
732
  function n() {
733
733
  return e.wrapperProps;
734
734
  }
735
- return V(() => {
736
- }, [e.wrapperProps, (r = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : r.options]), /* @__PURE__ */ s(R, { children: e.Wrapper.load ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
735
+ return N(() => {
736
+ }, [e.wrapperProps, (r = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : r.options]), /* @__PURE__ */ s(P, { children: e.Wrapper.load ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
737
737
  rn,
738
738
  {
739
739
  load: e.Wrapper.load,
@@ -750,8 +750,8 @@ const on = ({
750
750
  context: n,
751
751
  componentRef: i,
752
752
  includeBlockProps: r,
753
- isInteractive: o,
754
- contextValue: a
753
+ isInteractive: a,
754
+ contextValue: o
755
755
  }) => {
756
756
  const l = {
757
757
  ...e,
@@ -762,11 +762,11 @@ const on = ({
762
762
  ...r ? {
763
763
  attributes: xe({
764
764
  block: t,
765
- context: a
765
+ context: o
766
766
  })
767
767
  } : {}
768
768
  };
769
- return o ? {
769
+ return a ? {
770
770
  Wrapper: i,
771
771
  block: t,
772
772
  context: n,
@@ -776,12 +776,11 @@ const on = ({
776
776
  };
777
777
  function Re(e) {
778
778
  var i;
779
- C(() => !1);
780
- const [t, n] = C(
779
+ k(() => !1);
780
+ const [t, n] = k(
781
781
  () => e.isInteractive ? an : e.componentRef
782
782
  );
783
- return V(() => {
784
- }, [e.componentOptions, e.blockChildren]), /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
783
+ return /* @__PURE__ */ s(P, { children: e.componentRef ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
785
784
  t,
786
785
  {
787
786
  ...on({
@@ -794,7 +793,7 @@ function Re(e) {
794
793
  isInteractive: e.isInteractive,
795
794
  contextValue: e.context
796
795
  }),
797
- children: (i = e.blockChildren) == null ? void 0 : i.map((r) => /* @__PURE__ */ s(
796
+ children: e.componentRef ? /* @__PURE__ */ s(P, { children: (i = e.blockChildren) == null ? void 0 : i.map((r) => /* @__PURE__ */ s(
798
797
  ce,
799
798
  {
800
799
  block: r,
@@ -803,13 +802,13 @@ function Re(e) {
803
802
  linkComponent: e.linkComponent
804
803
  },
805
804
  r.id
806
- ))
805
+ )) }) : null
807
806
  }
808
807
  ) }) : null });
809
808
  }
810
809
  function Pe(e) {
811
- const [t, n] = C(() => e.repeatContext);
812
- return V(() => {
810
+ const [t, n] = k(() => e.repeatContext);
811
+ return N(() => {
813
812
  n(e.repeatContext);
814
813
  }, [e.repeatContext]), /* @__PURE__ */ s(ve.Provider, { value: t, children: /* @__PURE__ */ s(
815
814
  ce,
@@ -822,64 +821,64 @@ function Pe(e) {
822
821
  ) });
823
822
  }
824
823
  function ce(e) {
825
- var f, b, m, v;
824
+ var h, g, u, x;
826
825
  function t() {
827
826
  return jt({
828
827
  block: e.block,
829
828
  context: e.context
830
829
  });
831
830
  }
832
- const [n, i] = C(() => ({
831
+ const [n, i] = k(() => ({
833
832
  value: null,
834
833
  update: !1
835
834
  }));
836
835
  function r() {
837
- var h;
836
+ var m;
838
837
  if (n.value && !n.update && !le())
839
838
  return n.value;
840
- const d = (h = e.block.repeat) != null && h.collection ? e.block : Dt({
839
+ const f = (m = e.block.repeat) != null && m.collection ? e.block : Dt({
841
840
  block: e.block,
842
841
  localState: e.context.localState,
843
842
  rootState: e.context.rootState,
844
843
  rootSetState: e.context.rootSetState,
845
844
  context: e.context.context
846
845
  });
847
- return n.value = d, n.update = !1, d;
846
+ return n.value = f, n.update = !1, f;
848
847
  }
849
- function o() {
848
+ function a() {
850
849
  return qt({
851
850
  block: r(),
852
851
  registeredComponents: e.registeredComponents,
853
852
  model: e.context.model
854
853
  });
855
854
  }
856
- function a() {
857
- var h;
858
- return e.block.tagName === "a" || ((h = r().properties) == null ? void 0 : h.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
855
+ function o() {
856
+ var m;
857
+ return e.block.tagName === "a" || ((m = r().properties) == null ? void 0 : m.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
859
858
  }
860
859
  function l() {
861
- var p, y;
862
- if ((p = e.block.repeat) != null && p.collection)
863
- return !!((y = t == null ? void 0 : t()) != null && y.length);
864
- const d = "hide" in r() ? r().hide : !1;
865
- return ("show" in r() ? r().show : !0) && !d;
860
+ var y, b;
861
+ if ((y = e.block.repeat) != null && y.collection)
862
+ return !!((b = t == null ? void 0 : t()) != null && b.length);
863
+ const f = "hide" in r() ? r().hide : !1;
864
+ return ("show" in r() ? r().show : !0) && !f;
866
865
  }
867
866
  function c() {
868
- var h, p;
869
- return !((h = o == null ? void 0 : o()) != null && h.component) && !t() ? (p = r().children) != null ? p : [] : [];
867
+ var m, y;
868
+ return !((m = a == null ? void 0 : a()) != null && m.component) && !t() ? (y = r().children) != null ? y : [] : [];
870
869
  }
871
- function u() {
872
- var d, h, p, y;
870
+ function d() {
871
+ var f, m, y, b;
873
872
  return {
874
- blockChildren: (d = r().children) != null ? d : [],
875
- componentRef: (h = o == null ? void 0 : o()) == null ? void 0 : h.component,
873
+ blockChildren: (f = r().children) != null ? f : [],
874
+ componentRef: (m = a == null ? void 0 : a()) == null ? void 0 : m.component,
876
875
  componentOptions: {
877
876
  ...Et(r(), e.context),
878
- ...Jt(o(), r()),
879
- ...Gt(o(), e.context),
880
- ...zt(o(), e.linkComponent),
877
+ ...Jt(a(), r()),
878
+ ...Gt(a(), e.context),
879
+ ...zt(a(), e.linkComponent),
881
880
  ...Kt(
882
- o(),
881
+ a(),
883
882
  e.registeredComponents,
884
883
  e.context.model
885
884
  )
@@ -888,83 +887,83 @@ function ce(e) {
888
887
  linkComponent: e.linkComponent,
889
888
  registeredComponents: e.registeredComponents,
890
889
  builderBlock: r(),
891
- includeBlockProps: ((p = o == null ? void 0 : o()) == null ? void 0 : p.noWrap) === !0,
892
- isInteractive: !((y = o == null ? void 0 : o()) != null && y.isRSC && F === "rsc")
890
+ includeBlockProps: ((y = a == null ? void 0 : a()) == null ? void 0 : y.noWrap) === !0,
891
+ isInteractive: !((b = a == null ? void 0 : a()) != null && b.isRSC && F === "rsc")
893
892
  };
894
893
  }
895
- return V(() => {
896
- const d = r().id, h = r().animations;
897
- h && d && Ot(
898
- h.map((p) => ({
899
- ...p,
900
- elementId: d
894
+ return N(() => {
895
+ const f = r().id, m = r().animations;
896
+ m && f && Lt(
897
+ m.map((y) => ({
898
+ ...y,
899
+ elementId: f
901
900
  }))
902
901
  );
903
- }, []), V(() => {
902
+ }, []), N(() => {
904
903
  n.update = !0;
905
- }), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ W(R, { children: [
904
+ }), /* @__PURE__ */ s(P, { children: l() ? /* @__PURE__ */ D(P, { children: [
906
905
  /* @__PURE__ */ s(Qt, { block: r(), context: e.context }),
907
- (f = o == null ? void 0 : o()) != null && f.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((d, h) => /* @__PURE__ */ s(
906
+ (h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(P, { children: (x = t()) == null ? void 0 : x.map((f, m) => /* @__PURE__ */ s(
908
907
  Pe,
909
908
  {
910
- repeatContext: d.context,
911
- block: d.block,
909
+ repeatContext: f.context,
910
+ block: f.block,
912
911
  registeredComponents: e.registeredComponents,
913
912
  linkComponent: e.linkComponent
914
913
  },
915
- Ee(h)
914
+ Ee(m)
916
915
  )) }) : /* @__PURE__ */ s(
917
916
  Re,
918
917
  {
919
- componentRef: u().componentRef,
920
- componentOptions: u().componentOptions,
921
- blockChildren: u().blockChildren,
922
- context: u().context,
923
- registeredComponents: u().registeredComponents,
924
- linkComponent: u().linkComponent,
925
- builderBlock: u().builderBlock,
926
- includeBlockProps: u().includeBlockProps,
927
- isInteractive: u().isInteractive
918
+ componentRef: d().componentRef,
919
+ componentOptions: d().componentOptions,
920
+ blockChildren: d().blockChildren,
921
+ context: d().context,
922
+ registeredComponents: d().registeredComponents,
923
+ linkComponent: d().linkComponent,
924
+ builderBlock: d().builderBlock,
925
+ includeBlockProps: d().includeBlockProps,
926
+ isInteractive: d().isInteractive
928
927
  }
929
- ) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (m = t()) == null ? void 0 : m.map((d, h) => /* @__PURE__ */ s(
928
+ ) : /* @__PURE__ */ s(P, { children: t() ? /* @__PURE__ */ s(P, { children: (u = t()) == null ? void 0 : u.map((f, m) => /* @__PURE__ */ s(
930
929
  Pe,
931
930
  {
932
- repeatContext: d.context,
933
- block: d.block,
931
+ repeatContext: f.context,
932
+ block: f.block,
934
933
  registeredComponents: e.registeredComponents,
935
934
  linkComponent: e.linkComponent
936
935
  },
937
- Ee(h)
938
- )) }) : /* @__PURE__ */ W(
936
+ Ee(m)
937
+ )) }) : /* @__PURE__ */ D(
939
938
  nn,
940
939
  {
941
- Wrapper: a(),
940
+ Wrapper: o(),
942
941
  block: r(),
943
942
  context: e.context,
944
943
  children: [
945
944
  /* @__PURE__ */ s(
946
945
  Re,
947
946
  {
948
- componentRef: u().componentRef,
949
- componentOptions: u().componentOptions,
950
- blockChildren: u().blockChildren,
951
- context: u().context,
952
- registeredComponents: u().registeredComponents,
953
- linkComponent: u().linkComponent,
954
- builderBlock: u().builderBlock,
955
- includeBlockProps: u().includeBlockProps,
956
- isInteractive: u().isInteractive
947
+ componentRef: d().componentRef,
948
+ componentOptions: d().componentOptions,
949
+ blockChildren: d().blockChildren,
950
+ context: d().context,
951
+ registeredComponents: d().registeredComponents,
952
+ linkComponent: d().linkComponent,
953
+ builderBlock: d().builderBlock,
954
+ includeBlockProps: d().includeBlockProps,
955
+ isInteractive: d().isInteractive
957
956
  }
958
957
  ),
959
- (b = c()) == null ? void 0 : b.map((d) => /* @__PURE__ */ s(
958
+ (g = c()) == null ? void 0 : g.map((f) => /* @__PURE__ */ s(
960
959
  ce,
961
960
  {
962
- block: d,
961
+ block: f,
963
962
  registeredComponents: e.registeredComponents,
964
963
  linkComponent: e.linkComponent,
965
964
  context: e.context
966
965
  },
967
- d.id
966
+ f.id
968
967
  ))
969
968
  ]
970
969
  }
@@ -972,25 +971,25 @@ function ce(e) {
972
971
  ] }) : null });
973
972
  }
974
973
  function ln(e) {
975
- const t = H(null);
976
- C(() => !1);
974
+ const t = z(null);
975
+ k(() => !1);
977
976
  function n() {
978
- var a;
977
+ var o;
979
978
  return [
980
979
  "builder-blocks",
981
- (a = e.blocks) != null && a.length ? "" : "no-blocks",
980
+ (o = e.blocks) != null && o.length ? "" : "no-blocks",
982
981
  e.classNameProp
983
982
  ].filter(Boolean).join(" ");
984
983
  }
985
984
  function i() {
986
985
  if (!e.path)
987
986
  return;
988
- const a = "this.", l = "component.options.";
989
- return e.path.startsWith(a) ? e.path.replace(a, "") : e.path.startsWith(l) ? e.path : `${l}${e.path || ""}`;
987
+ const o = "this.", l = "component.options.";
988
+ return e.path.startsWith(o) ? e.path.replace(o, "") : e.path.startsWith(l) ? e.path : `${l}${e.path || ""}`;
990
989
  }
991
990
  function r() {
992
- var a, l;
993
- _() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
991
+ var o, l;
992
+ U() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
994
993
  {
995
994
  type: "builder.clickEmptyBlocks",
996
995
  data: {
@@ -1001,9 +1000,9 @@ function ln(e) {
1001
1000
  "*"
1002
1001
  ));
1003
1002
  }
1004
- function o() {
1005
- var a, l;
1006
- _() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
1003
+ function a() {
1004
+ var o, l;
1005
+ U() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
1007
1006
  {
1008
1007
  type: "builder.hoverEmptyBlocks",
1009
1008
  data: {
@@ -1014,10 +1013,10 @@ function ln(e) {
1014
1013
  "*"
1015
1014
  ));
1016
1015
  }
1017
- return V(() => {
1018
- }, []), V(() => {
1019
- }, [e.blocks]), /* @__PURE__ */ W(R, { children: [
1020
- /* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-8834791c {
1016
+ return N(() => {
1017
+ }, []), N(() => {
1018
+ }, [e.blocks]), /* @__PURE__ */ D(P, { children: [
1019
+ /* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-b46bf284 {
1021
1020
  display: flex;
1022
1021
  flex-direction: column;
1023
1022
  align-items: stretch;
@@ -1026,23 +1025,23 @@ function ln(e) {
1026
1025
  e.BlocksWrapper,
1027
1026
  {
1028
1027
  ref: t,
1029
- className: n() + " props-blocks-wrapper-8834791c",
1028
+ className: n() + " props-blocks-wrapper-b46bf284",
1030
1029
  "builder-path": i(),
1031
1030
  "builder-parent-id": e.parent,
1032
1031
  style: e.styleProp,
1033
- onClick: (a) => r(),
1034
- onMouseEnter: (a) => o(),
1035
- onKeyPress: (a) => r(),
1032
+ onClick: (o) => r(),
1033
+ onMouseEnter: (o) => a(),
1034
+ onKeyPress: (o) => r(),
1036
1035
  ...e.BlocksWrapperProps,
1037
1036
  children: e.children
1038
1037
  }
1039
1038
  )
1040
1039
  ] });
1041
1040
  }
1042
- function U(e) {
1043
- var i, r, o;
1041
+ function M(e) {
1042
+ var i, r, a;
1044
1043
  const t = we(ve), n = we(He);
1045
- return /* @__PURE__ */ W(
1044
+ return /* @__PURE__ */ D(
1046
1045
  ln,
1047
1046
  {
1048
1047
  blocks: e.blocks,
@@ -1054,15 +1053,15 @@ function U(e) {
1054
1053
  BlocksWrapper: ((r = e.context) == null ? void 0 : r.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
1055
1054
  children: [
1056
1055
  e.children,
1057
- e.blocks ? /* @__PURE__ */ s(R, { children: (o = e.blocks) == null ? void 0 : o.map((a) => /* @__PURE__ */ s(
1056
+ e.blocks ? /* @__PURE__ */ s(P, { children: (a = e.blocks) == null ? void 0 : a.map((o) => /* @__PURE__ */ s(
1058
1057
  ce,
1059
1058
  {
1060
- block: a,
1059
+ block: o,
1061
1060
  linkComponent: e.linkComponent,
1062
1061
  context: e.context || t,
1063
1062
  registeredComponents: e.registeredComponents || (n == null ? void 0 : n.registeredComponents)
1064
1063
  },
1065
- a.id
1064
+ o.id
1066
1065
  )) }) : null
1067
1066
  ]
1068
1067
  }
@@ -1070,7 +1069,7 @@ function U(e) {
1070
1069
  }
1071
1070
  const sn = (e) => `builder-columns ${e}-breakpoints`;
1072
1071
  function cn(e) {
1073
- var h, p;
1072
+ var m, y;
1074
1073
  function t() {
1075
1074
  return typeof e.space == "number" ? e.space || 0 : 20;
1076
1075
  }
@@ -1080,147 +1079,147 @@ function cn(e) {
1080
1079
  function i() {
1081
1080
  return e.stackColumnsAt || "tablet";
1082
1081
  }
1083
- function r(y) {
1084
- return y.link ? e.builderLinkComponent || "a" : "div";
1082
+ function r(b) {
1083
+ return b.link ? e.builderLinkComponent || "a" : "div";
1085
1084
  }
1086
- function o(y) {
1085
+ function a(b) {
1087
1086
  var S;
1088
- return ((S = n()[y]) == null ? void 0 : S.width) || 100 / n().length;
1087
+ return ((S = n()[b]) == null ? void 0 : S.width) || 100 / n().length;
1089
1088
  }
1090
- function a(y) {
1091
- const S = o(y), k = t() * (n().length - 1) * (S / 100);
1092
- return `calc(${S}% - ${k}px)`;
1089
+ function o(b) {
1090
+ const S = a(b), T = t() * (n().length - 1) * (S / 100);
1091
+ return `calc(${S}% - ${T}px)`;
1093
1092
  }
1094
1093
  function l({
1095
- stackedStyle: y,
1094
+ stackedStyle: b,
1096
1095
  desktopStyle: S
1097
1096
  }) {
1098
- return i() === "tablet" ? y : S;
1097
+ return i() === "tablet" ? b : S;
1099
1098
  }
1100
1099
  function c({
1101
- stackedStyle: y,
1100
+ stackedStyle: b,
1102
1101
  desktopStyle: S
1103
1102
  }) {
1104
- return i() === "never" ? S : y;
1103
+ return i() === "never" ? S : b;
1105
1104
  }
1106
- function u() {
1105
+ function d() {
1107
1106
  return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
1108
1107
  }
1109
- function f() {
1108
+ function h() {
1110
1109
  return {
1111
- "--flex-dir": u(),
1110
+ "--flex-dir": d(),
1112
1111
  "--flex-dir-tablet": l({
1113
- stackedStyle: u(),
1112
+ stackedStyle: d(),
1114
1113
  desktopStyle: "row"
1115
1114
  })
1116
1115
  };
1117
1116
  }
1118
- function b(y) {
1119
- const S = y === 0 ? 0 : t(), k = a(y), A = `${S}px`, T = "100%", w = 0;
1117
+ function g(b) {
1118
+ const S = b === 0 ? 0 : t(), T = o(b), E = `${S}px`, _ = "100%", H = 0;
1120
1119
  return {
1121
1120
  ...{
1122
1121
  display: "flex",
1123
1122
  flexDirection: "column",
1124
1123
  alignItems: "stretch"
1125
1124
  },
1126
- width: k,
1127
- ["marginLeft"]: A,
1125
+ width: T,
1126
+ ["marginLeft"]: E,
1128
1127
  "--column-width-mobile": c({
1129
- stackedStyle: T,
1130
- desktopStyle: k
1128
+ stackedStyle: _,
1129
+ desktopStyle: T
1131
1130
  }),
1132
1131
  "--column-margin-left-mobile": c({
1133
- stackedStyle: w,
1134
- desktopStyle: A
1132
+ stackedStyle: H,
1133
+ desktopStyle: E
1135
1134
  }),
1136
1135
  "--column-width-tablet": l({
1137
- stackedStyle: T,
1138
- desktopStyle: k
1136
+ stackedStyle: _,
1137
+ desktopStyle: T
1139
1138
  }),
1140
1139
  "--column-margin-left-tablet": l({
1141
- stackedStyle: w,
1142
- desktopStyle: A
1140
+ stackedStyle: H,
1141
+ desktopStyle: E
1143
1142
  })
1144
1143
  };
1145
1144
  }
1146
- function m(y) {
1147
- var k, A;
1145
+ function u(b) {
1146
+ var T, E;
1148
1147
  return Xe(
1149
- ((A = (k = e.builderContext.content) == null ? void 0 : k.meta) == null ? void 0 : A.breakpoints) || {}
1150
- )[y].max;
1148
+ ((E = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : E.breakpoints) || {}
1149
+ )[b].max;
1151
1150
  }
1152
- function v() {
1153
- const y = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1151
+ function x() {
1152
+ const b = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1154
1153
  return `
1155
- @media (max-width: ${m("medium")}px) {
1154
+ @media (max-width: ${u("medium")}px) {
1156
1155
  .${e.builderBlock.id}-breakpoints {
1157
1156
  flex-direction: var(--flex-dir-tablet);
1158
1157
  align-items: stretch;
1159
1158
  }
1160
1159
 
1161
- ${y} {
1160
+ ${b} {
1162
1161
  width: var(--column-width-tablet) !important;
1163
1162
  margin-left: var(--column-margin-left-tablet) !important;
1164
1163
  }
1165
1164
  }
1166
1165
 
1167
- @media (max-width: ${m("small")}px) {
1166
+ @media (max-width: ${u("small")}px) {
1168
1167
  .${e.builderBlock.id}-breakpoints {
1169
1168
  flex-direction: var(--flex-dir);
1170
1169
  align-items: stretch;
1171
1170
  }
1172
1171
 
1173
- ${y} {
1172
+ ${b} {
1174
1173
  width: var(--column-width-mobile) !important;
1175
1174
  margin-left: var(--column-margin-left-mobile) !important;
1176
1175
  }
1177
1176
  },
1178
1177
  `;
1179
1178
  }
1180
- function d(y, S) {
1179
+ function f(b, S) {
1181
1180
  return {
1182
- ...y.link ? {
1183
- href: y.link
1181
+ ...b.link ? {
1182
+ href: b.link
1184
1183
  } : {},
1185
- [j()]: "builder-column",
1186
- style: Ge(b(S))
1184
+ [J()]: "builder-column",
1185
+ style: Ge(g(S))
1187
1186
  };
1188
1187
  }
1189
- return /* @__PURE__ */ W(R, { children: [
1188
+ return /* @__PURE__ */ D(P, { children: [
1190
1189
  /* @__PURE__ */ s("style", { children: `.div-0369db37 {
1191
1190
  display: flex;
1192
1191
  line-height: normal;
1193
1192
  height: 100%;
1194
1193
  }` }),
1195
- /* @__PURE__ */ W(
1194
+ /* @__PURE__ */ D(
1196
1195
  "div",
1197
1196
  {
1198
- className: sn((h = e.builderBlock) == null ? void 0 : h.id) + " div-0369db37",
1199
- style: f(),
1197
+ className: sn((m = e.builderBlock) == null ? void 0 : m.id) + " div-0369db37",
1198
+ style: h(),
1200
1199
  children: [
1201
1200
  /* @__PURE__ */ s(
1202
- ee,
1201
+ te,
1203
1202
  {
1204
1203
  id: "builderio-columns",
1205
- styles: v(),
1204
+ styles: x(),
1206
1205
  nonce: e.builderContext.nonce
1207
1206
  }
1208
1207
  ),
1209
- (p = e.columns) == null ? void 0 : p.map((y, S) => /* @__PURE__ */ s(
1208
+ (y = e.columns) == null ? void 0 : y.map((b, S) => /* @__PURE__ */ s(
1210
1209
  pe,
1211
1210
  {
1212
- TagName: r(y),
1211
+ TagName: r(b),
1213
1212
  actionAttributes: {},
1214
- attributes: d(y, S),
1213
+ attributes: f(b, S),
1215
1214
  children: /* @__PURE__ */ s(
1216
- U,
1215
+ M,
1217
1216
  {
1218
1217
  path: `columns.${S}.blocks`,
1219
1218
  parent: e.builderBlock.id,
1220
1219
  context: e.builderContext,
1221
1220
  registeredComponents: e.builderComponents,
1222
1221
  linkComponent: e.builderLinkComponent,
1223
- blocks: y.blocks,
1222
+ blocks: b.blocks,
1224
1223
  styleProp: {
1225
1224
  flexGrow: "1"
1226
1225
  }
@@ -1251,8 +1250,8 @@ function mn(e, t) {
1251
1250
  return Ve(e);
1252
1251
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1253
1252
  if (n) {
1254
- const i = e.split(n[0]), r = n[3], o = t.match("x") ? t : `${t}x`;
1255
- return Ve(`${i[0]}_${o}${r}`);
1253
+ const i = e.split(n[0]), r = n[3], a = t.match("x") ? t : `${t}x`;
1254
+ return Ve(`${i[0]}_${a}${r}`);
1256
1255
  }
1257
1256
  return null;
1258
1257
  }
@@ -1268,39 +1267,39 @@ function ne(e) {
1268
1267
  return e.match(/cdn\.shopify\.com/) ? t.map((n) => [mn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1269
1268
  }
1270
1269
  function fn(e) {
1271
- var r, o, a, l, c, u;
1270
+ var r, a, o, l, c, d;
1272
1271
  function t() {
1273
- var m;
1274
- const b = e.image || e.src;
1275
- if (!b || // We can auto add srcset for cdn.builder.io and shopify
1272
+ var u;
1273
+ const g = e.image || e.src;
1274
+ if (!g || // We can auto add srcset for cdn.builder.io and shopify
1276
1275
  // images, otherwise you can supply this prop manually
1277
- !(typeof b == "string" && (b.match(/builder\.io/) || b.match(/cdn\.shopify\.com/))))
1276
+ !(typeof g == "string" && (g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/))))
1278
1277
  return e.srcset;
1279
1278
  if (!e.noWebp) {
1280
- if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1279
+ if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
1281
1280
  if (!e.srcset.includes(e.image.split("?")[0]))
1282
- return console.debug("Removed given srcset"), ne(b);
1281
+ return console.debug("Removed given srcset"), ne(g);
1283
1282
  } else if (e.image && !e.srcset)
1284
- return ne(b);
1285
- return ne(b);
1283
+ return ne(g);
1284
+ return ne(g);
1286
1285
  }
1287
1286
  }
1288
1287
  function n() {
1289
- var f;
1290
- return (f = t == null ? void 0 : t()) != null && f.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
1288
+ var h;
1289
+ return (h = t == null ? void 0 : t()) != null && h.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
1291
1290
  }
1292
1291
  function i() {
1293
- const f = {
1292
+ const h = {
1294
1293
  position: "absolute",
1295
1294
  height: "100%",
1296
1295
  width: "100%",
1297
1296
  left: "0px",
1298
1297
  top: "0px"
1299
1298
  };
1300
- return e.aspectRatio ? f : void 0;
1299
+ return e.aspectRatio ? h : void 0;
1301
1300
  }
1302
- return V(() => {
1303
- }, []), /* @__PURE__ */ W(R, { children: [
1301
+ return N(() => {
1302
+ }, []), /* @__PURE__ */ D(P, { children: [
1304
1303
  /* @__PURE__ */ s("style", { children: `.img-3cc22d08 {
1305
1304
  opacity: 1;
1306
1305
  transition: opacity 0.2s ease-in-out;
@@ -1318,8 +1317,8 @@ function fn(e) {
1318
1317
  width: 100%;
1319
1318
  height: 100%;
1320
1319
  }` }),
1321
- /* @__PURE__ */ W(R, { children: [
1322
- /* @__PURE__ */ W("picture", { children: [
1320
+ /* @__PURE__ */ D(P, { children: [
1321
+ /* @__PURE__ */ D("picture", { children: [
1323
1322
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1324
1323
  /* @__PURE__ */ s(
1325
1324
  "img",
@@ -1341,7 +1340,7 @@ function fn(e) {
1341
1340
  }
1342
1341
  )
1343
1342
  ] }),
1344
- e.aspectRatio && !((o = (r = e.builderBlock) == null ? void 0 : r.children) != null && o.length && e.fitContent) ? /* @__PURE__ */ s(
1343
+ e.aspectRatio && !((a = (r = e.builderBlock) == null ? void 0 : r.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ s(
1345
1344
  "div",
1346
1345
  {
1347
1346
  className: "builder-image-sizer div-3cc22d08",
@@ -1350,8 +1349,8 @@ function fn(e) {
1350
1349
  }
1351
1350
  }
1352
1351
  ) : null,
1353
- (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
1354
- !e.fitContent && ((u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-3cc22d08-2", children: e.children }) : null
1352
+ (l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(P, { children: e.children }) : null,
1353
+ !e.fitContent && ((d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length) ? /* @__PURE__ */ s("div", { className: "div-3cc22d08-2", children: e.children }) : null
1355
1354
  ] })
1356
1355
  ] });
1357
1356
  }
@@ -1376,51 +1375,51 @@ function hn(e) {
1376
1375
  }
1377
1376
  );
1378
1377
  }
1379
- function gn(e, t, n, i) {
1380
- function r(u) {
1381
- return typeof u == "string";
1378
+ function bn(e, t, n, i) {
1379
+ function r(d) {
1380
+ return typeof d == "string";
1382
1381
  }
1383
- function o(u) {
1384
- return typeof u == "number";
1382
+ function a(d) {
1383
+ return typeof d == "number";
1385
1384
  }
1386
- function a(u, f) {
1385
+ function o(d, h) {
1387
1386
  return (() => {
1388
- const m = f.property, v = f.operator;
1389
- let d = f.value;
1390
- if (f && f.property === "urlPath" && f.value && typeof f.value == "string" && f.value !== "/" && f.value.endsWith("/") && (d = f.value.slice(0, -1)), !(m && v))
1387
+ const u = h.property, x = h.operator;
1388
+ let f = h.value;
1389
+ if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(u && x))
1391
1390
  return !0;
1392
- if (Array.isArray(d))
1393
- return v === "isNot" ? d.every((p) => a(u, {
1394
- property: m,
1395
- operator: v,
1396
- value: p
1397
- })) : !!d.find((p) => a(u, {
1398
- property: m,
1399
- operator: v,
1400
- value: p
1391
+ if (Array.isArray(f))
1392
+ return x === "isNot" ? f.every((y) => o(d, {
1393
+ property: u,
1394
+ operator: x,
1395
+ value: y
1396
+ })) : !!f.find((y) => o(d, {
1397
+ property: u,
1398
+ operator: x,
1399
+ value: y
1401
1400
  }));
1402
- const h = u[m];
1403
- if (Array.isArray(h))
1404
- return h.includes(d);
1405
- switch (v) {
1401
+ const m = d[u];
1402
+ if (Array.isArray(m))
1403
+ return m.includes(f);
1404
+ switch (x) {
1406
1405
  case "is":
1407
- return h === d;
1406
+ return m === f;
1408
1407
  case "isNot":
1409
- return h !== d;
1408
+ return m !== f;
1410
1409
  case "contains":
1411
- return (r(h) || Array.isArray(h)) && h.includes(String(d));
1410
+ return (r(m) || Array.isArray(m)) && m.includes(String(f));
1412
1411
  case "startsWith":
1413
- return r(h) && h.startsWith(String(d));
1412
+ return r(m) && m.startsWith(String(f));
1414
1413
  case "endsWith":
1415
- return r(h) && h.endsWith(String(d));
1414
+ return r(m) && m.endsWith(String(f));
1416
1415
  case "greaterThan":
1417
- return o(h) && o(d) && h > d;
1416
+ return a(m) && a(f) && m > f;
1418
1417
  case "lessThan":
1419
- return o(h) && o(d) && h < d;
1418
+ return a(m) && a(f) && m < f;
1420
1419
  case "greaterThanOrEqualTo":
1421
- return o(h) && o(d) && h >= d;
1420
+ return a(m) && a(f) && m >= f;
1422
1421
  case "lessThanOrEqualTo":
1423
- return o(h) && o(d) && h <= d;
1422
+ return a(m) && a(f) && m <= f;
1424
1423
  default:
1425
1424
  return !1;
1426
1425
  }
@@ -1431,9 +1430,9 @@ function gn(e, t, n, i) {
1431
1430
  startDate: n,
1432
1431
  endDate: i
1433
1432
  }, c = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
1434
- return l.startDate && new Date(l.startDate) > c || l.endDate && new Date(l.endDate) < c ? !1 : !l.query || !l.query.length ? !0 : l.query.every((u) => a(e, u));
1433
+ 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((d) => o(e, d));
1435
1434
  }
1436
- const bn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
1435
+ const gn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
1437
1436
  if (!navigator.cookieEnabled) {
1438
1437
  return;
1439
1438
  }
@@ -1596,7 +1595,7 @@ const bn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
1596
1595
  }
1597
1596
  }`, ie = "default", vn = "filterWithCustomTargeting", et = "builderIoPersonalization", tt = "updateVisibilityStylesScript", nt = ["react", "vue", "svelte", "qwik"], re = ["vue", "svelte", "qwik"];
1598
1597
  function xn(e, t) {
1599
- return !(e && e.length > 0) || !t ? !1 : re.includes(F) ? !0 : !K();
1598
+ return !(e && e.length > 0) || !t ? !1 : re.includes(F) ? !0 : !G();
1600
1599
  }
1601
1600
  function Sn({
1602
1601
  variants: e,
@@ -1605,14 +1604,14 @@ function Sn({
1605
1604
  filteredVariants: i,
1606
1605
  fallbackBlocks: r
1607
1606
  }) {
1608
- var a;
1609
- const o = {
1607
+ var o;
1608
+ const a = {
1610
1609
  blocks: r != null ? r : [],
1611
1610
  path: "this.children",
1612
1611
  index: ie
1613
1612
  };
1614
- if (n && _()) {
1615
- if (typeof t == "number" && t < ((a = e == null ? void 0 : e.length) != null ? a : 0)) {
1613
+ if (n && U()) {
1614
+ if (typeof t == "number" && t < ((o = e == null ? void 0 : e.length) != null ? o : 0)) {
1616
1615
  const l = e == null ? void 0 : e[t];
1617
1616
  if (l)
1618
1617
  return {
@@ -1621,9 +1620,9 @@ function Sn({
1621
1620
  index: t
1622
1621
  };
1623
1622
  }
1624
- return o;
1623
+ return a;
1625
1624
  }
1626
- if (K()) {
1625
+ if (G()) {
1627
1626
  const l = i == null ? void 0 : i[0];
1628
1627
  if (l && e) {
1629
1628
  const c = e.indexOf(l);
@@ -1635,11 +1634,11 @@ function Sn({
1635
1634
  };
1636
1635
  }
1637
1636
  }
1638
- return o;
1637
+ return a;
1639
1638
  }
1640
1639
  const kn = () => `
1641
1640
  window.${vn} = ${yn}
1642
- window.${et} = ${bn}
1641
+ window.${et} = ${gn}
1643
1642
  window.${tt} = ${pn}
1644
1643
  `, it = F === "react", Cn = (e, t, n) => `window.${et}(${JSON.stringify(e)}, "${t}", ${it}${n ? `, "${n}"` : ""})`, Tn = (e, t, n) => `window.${tt}(${JSON.stringify(e)}, "${t}", ${it}${n ? `, "${n}"` : ""})`, de = {
1645
1644
  "@type": "@builder.io/sdk:Element",
@@ -1767,8 +1766,8 @@ const kn = () => `
1767
1766
  }
1768
1767
  }, Ae = (e) => e.toString();
1769
1768
  function wn(e) {
1770
- var b;
1771
- const [t, n] = C(() => []);
1769
+ var g;
1770
+ const [t, n] = k(() => []);
1772
1771
  function i() {
1773
1772
  return !!(e.grid || e.oneAtATime);
1774
1773
  }
@@ -1784,8 +1783,8 @@ function wn(e) {
1784
1783
  }
1785
1784
  };
1786
1785
  }
1787
- function o() {
1788
- const v = {
1786
+ function a() {
1787
+ const x = {
1789
1788
  ...{
1790
1789
  display: "flex",
1791
1790
  flexDirection: "column"
@@ -1794,75 +1793,75 @@ function wn(e) {
1794
1793
  cursor: "pointer"
1795
1794
  };
1796
1795
  return Object.fromEntries(
1797
- Object.entries(v).filter(([d, h]) => h !== void 0)
1796
+ Object.entries(x).filter(([f, m]) => m !== void 0)
1798
1797
  );
1799
1798
  }
1800
- function a(m) {
1801
- return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
1799
+ function o(u) {
1800
+ return `builder-accordion-title builder-accordion-title-${t.includes(u) ? "open" : "closed"}`;
1802
1801
  }
1803
- function l(m) {
1804
- return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
1802
+ function l(u) {
1803
+ return `builder-accordion-detail builder-accordion-detail-${t.includes(u) ? "open" : "closed"}`;
1805
1804
  }
1806
1805
  function c() {
1807
- let m = null;
1806
+ let u = null;
1808
1807
  if (e.grid && t.length && document) {
1809
- const d = t[0];
1810
- let p = document.querySelector(
1811
- `.builder-accordion-title[data-index="${d}"]`
1808
+ const f = t[0];
1809
+ let y = document.querySelector(
1810
+ `.builder-accordion-title[data-index="${f}"]`
1812
1811
  );
1813
- if (m = d, p) {
1814
- let y = p.getBoundingClientRect();
1815
- for (; p = p && p.nextElementSibling; )
1816
- if (p) {
1817
- if (p.classList.contains("builder-accordion-detail"))
1812
+ if (u = f, y) {
1813
+ let b = y.getBoundingClientRect();
1814
+ for (; y = y && y.nextElementSibling; )
1815
+ if (y) {
1816
+ if (y.classList.contains("builder-accordion-detail"))
1818
1817
  continue;
1819
- const S = p.getBoundingClientRect();
1820
- if (S.left > y.left) {
1821
- const k = parseInt(
1822
- p.getAttribute("data-index") || "",
1818
+ const S = y.getBoundingClientRect();
1819
+ if (S.left > b.left) {
1820
+ const T = parseInt(
1821
+ y.getAttribute("data-index") || "",
1823
1822
  10
1824
1823
  );
1825
- isNaN(k) || (y = S, m = k);
1824
+ isNaN(T) || (b = S, u = T);
1826
1825
  } else
1827
1826
  break;
1828
1827
  }
1829
1828
  }
1830
1829
  }
1831
- return typeof m == "number" && (m = m + 1), m;
1830
+ return typeof u == "number" && (u = u + 1), u;
1832
1831
  }
1833
- function u() {
1834
- const m = {
1832
+ function d() {
1833
+ const u = {
1835
1834
  order: typeof c() == "number" ? c() : void 0,
1836
1835
  ...e.grid && {
1837
1836
  width: "100%"
1838
1837
  }
1839
1838
  };
1840
1839
  return Object.fromEntries(
1841
- Object.entries(m).filter(([v, d]) => d !== void 0)
1840
+ Object.entries(u).filter(([x, f]) => f !== void 0)
1842
1841
  );
1843
1842
  }
1844
- function f(m) {
1845
- t.includes(m) ? n(i() ? [] : t.filter((v) => v !== m)) : n(i() ? [m] : t.concat(m));
1843
+ function h(u) {
1844
+ t.includes(u) ? n(i() ? [] : t.filter((x) => x !== u)) : n(i() ? [u] : t.concat(u));
1846
1845
  }
1847
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (b = e.items) == null ? void 0 : b.map((m, v) => /* @__PURE__ */ W(mt.Fragment, { children: [
1846
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (g = e.items) == null ? void 0 : g.map((u, x) => /* @__PURE__ */ D(mt.Fragment, { children: [
1848
1847
  /* @__PURE__ */ s(
1849
1848
  "div",
1850
1849
  {
1851
- className: a(v),
1850
+ className: o(x),
1852
1851
  style: {
1853
- ...o(),
1852
+ ...a(),
1854
1853
  ...e.grid && {
1855
1854
  width: e.gridRowWidth,
1856
- order: c() !== null ? Ae(v) : Ae(v + 1)
1855
+ order: c() !== null ? Ae(x) : Ae(x + 1)
1857
1856
  }
1858
1857
  },
1859
- "data-index": v,
1860
- onClick: (d) => f(v),
1858
+ "data-index": x,
1859
+ onClick: (f) => h(x),
1861
1860
  children: /* @__PURE__ */ s(
1862
- U,
1861
+ M,
1863
1862
  {
1864
- blocks: m.title,
1865
- path: `items.${v}.title`,
1863
+ blocks: u.title,
1864
+ path: `items.${x}.title`,
1866
1865
  parent: e.builderBlock.id,
1867
1866
  context: e.builderContext,
1868
1867
  registeredComponents: e.builderComponents,
@@ -1871,16 +1870,16 @@ function wn(e) {
1871
1870
  )
1872
1871
  }
1873
1872
  ),
1874
- t.includes(v) ? /* @__PURE__ */ s(
1873
+ t.includes(x) ? /* @__PURE__ */ s(
1875
1874
  "div",
1876
1875
  {
1877
- className: l(v),
1878
- style: u(),
1876
+ className: l(x),
1877
+ style: d(),
1879
1878
  children: /* @__PURE__ */ s(
1880
- U,
1879
+ M,
1881
1880
  {
1882
- blocks: m.detail,
1883
- path: `items.${v}.detail`,
1881
+ blocks: u.detail,
1882
+ path: `items.${x}.detail`,
1884
1883
  parent: e.builderBlock.id,
1885
1884
  context: e.builderContext,
1886
1885
  registeredComponents: e.builderComponents,
@@ -1889,7 +1888,7 @@ function wn(e) {
1889
1888
  )
1890
1889
  }
1891
1890
  ) : null
1892
- ] }, v)) });
1891
+ ] }, x)) });
1893
1892
  }
1894
1893
  const En = {
1895
1894
  name: "Core:Button",
@@ -2106,7 +2105,7 @@ const En = {
2106
2105
  });
2107
2106
  }
2108
2107
  const n = e.get("columns");
2109
- Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((o) => !o.get("width")) || n.reduce((l, c) => l + c.get("width"), 0) !== 100) && t();
2108
+ 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();
2110
2109
  }
2111
2110
  }, {
2112
2111
  name: "space",
@@ -2160,29 +2159,29 @@ const En = {
2160
2159
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
2161
2160
  onChange: (e) => {
2162
2161
  e.delete("srcset"), e.delete("noWebp");
2163
- function n(a, l = 6e4) {
2164
- return new Promise((c, u) => {
2165
- const f = document.createElement("img");
2166
- let b = !1;
2167
- f.onload = () => {
2168
- b = !0, c(f);
2169
- }, f.addEventListener("error", (m) => {
2170
- console.warn("Image load failed", m.error), u(m.error);
2171
- }), f.src = a, setTimeout(() => {
2172
- b || u(new Error("Image load timed out"));
2162
+ function n(o, l = 6e4) {
2163
+ return new Promise((c, d) => {
2164
+ const h = document.createElement("img");
2165
+ let g = !1;
2166
+ h.onload = () => {
2167
+ g = !0, c(h);
2168
+ }, h.addEventListener("error", (u) => {
2169
+ console.warn("Image load failed", u.error), d(u.error);
2170
+ }), h.src = o, setTimeout(() => {
2171
+ g || d(new Error("Image load timed out"));
2173
2172
  }, l);
2174
2173
  });
2175
2174
  }
2176
- function i(a) {
2177
- return Math.round(a * 1e3) / 1e3;
2175
+ function i(o) {
2176
+ return Math.round(o * 1e3) / 1e3;
2178
2177
  }
2179
- const r = e.get("image"), o = e.get("aspectRatio");
2180
- if (fetch(r).then((a) => a.blob()).then((a) => {
2181
- a.type.includes("svg") && e.set("noWebp", !0);
2182
- }), r && (!o || o === 0.7041))
2183
- return n(r).then((a) => {
2178
+ const r = e.get("image"), a = e.get("aspectRatio");
2179
+ if (fetch(r).then((o) => o.blob()).then((o) => {
2180
+ o.type.includes("svg") && e.set("noWebp", !0);
2181
+ }), r && (!a || a === 0.7041))
2182
+ return n(r).then((o) => {
2184
2183
  const l = e.get("aspectRatio");
2185
- e.get("image") === r && (!l || l === 0.7041) && a.width && a.height && (e.set("aspectRatio", i(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
2184
+ 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));
2186
2185
  });
2187
2186
  }
2188
2187
  }, {
@@ -2289,7 +2288,7 @@ const En = {
2289
2288
  }]
2290
2289
  }]
2291
2290
  };
2292
- function q(e) {
2291
+ function K(e) {
2293
2292
  return /* @__PURE__ */ s(
2294
2293
  "script",
2295
2294
  {
@@ -2300,105 +2299,105 @@ function q(e) {
2300
2299
  );
2301
2300
  }
2302
2301
  function Nn(e) {
2303
- var S, k, A, T, w, g, x, E, N, O, L, P, D;
2304
- const t = H(null), [n, i] = C(
2302
+ var S, T, E, _, H, q, p, v, I, V, $, R, A;
2303
+ const t = z(null), [n, i] = k(
2305
2304
  () => Ce.getUserAttributes()
2306
- ), [r, o] = C(
2305
+ ), [r, a] = k(
2307
2306
  () => {
2308
- var I, B, $;
2307
+ var w, B, C;
2309
2308
  return Cn(
2310
2309
  e.variants,
2311
- ((I = e.builderBlock) == null ? void 0 : I.id) || "none",
2312
- ($ = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : $.locale
2310
+ ((w = e.builderBlock) == null ? void 0 : w.id) || "none",
2311
+ (C = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : C.locale
2313
2312
  );
2314
2313
  }
2315
- ), [a, l] = C(
2314
+ ), [o, l] = k(
2316
2315
  () => {
2317
- var I, B, $;
2316
+ var w, B, C;
2318
2317
  return Tn(
2319
2318
  e.variants,
2320
- ((I = e.builderBlock) == null ? void 0 : I.id) || "none",
2321
- ($ = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : $.locale
2319
+ ((w = e.builderBlock) == null ? void 0 : w.id) || "none",
2320
+ (C = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : C.locale
2322
2321
  );
2323
2322
  }
2324
- ), [c, u] = C(() => []), [f, b] = C(
2323
+ ), [c, d] = k(() => []), [h, g] = k(
2325
2324
  () => {
2326
- var I;
2325
+ var w;
2327
2326
  return xn(
2328
2327
  e.variants,
2329
- X((I = e.builderContext) == null ? void 0 : I.canTrack)
2328
+ Z((w = e.builderContext) == null ? void 0 : w.canTrack)
2330
2329
  );
2331
2330
  }
2332
- ), [m, v] = C(() => !1);
2333
- function d() {
2331
+ ), [u, x] = k(() => !1);
2332
+ function f() {
2334
2333
  return {
2335
2334
  ...e.attributes,
2336
- [j()]: `builder-personalization-container ${e.attributes[j()] || ""}`
2335
+ [J()]: `builder-personalization-container ${e.attributes[J()] || ""}`
2337
2336
  };
2338
2337
  }
2339
- function h() {
2340
- return (e.variants || []).filter((I) => {
2341
- var B, $, z, M;
2342
- return gn(
2338
+ function m() {
2339
+ return (e.variants || []).filter((w) => {
2340
+ var B, C, W, L;
2341
+ return bn(
2343
2342
  {
2344
- ...($ = (B = e.builderContext) == null ? void 0 : B.rootState) != null && $.locale ? {
2345
- locale: (M = (z = e.builderContext) == null ? void 0 : z.rootState) == null ? void 0 : M.locale
2343
+ ...(C = (B = e.builderContext) == null ? void 0 : B.rootState) != null && C.locale ? {
2344
+ locale: (L = (W = e.builderContext) == null ? void 0 : W.rootState) == null ? void 0 : L.locale
2346
2345
  } : {},
2347
2346
  ...n
2348
2347
  },
2349
- I.query,
2350
- I.startDate,
2351
- I.endDate
2348
+ w.query,
2349
+ w.startDate,
2350
+ w.endDate
2352
2351
  );
2353
2352
  });
2354
2353
  }
2355
- function p() {
2356
- var I;
2354
+ function y() {
2355
+ var w;
2357
2356
  return Sn({
2358
2357
  variants: e.variants,
2359
- fallbackBlocks: (I = e.builderBlock) == null ? void 0 : I.children,
2360
- isHydrated: m,
2361
- filteredVariants: h(),
2358
+ fallbackBlocks: (w = e.builderBlock) == null ? void 0 : w.children,
2359
+ isHydrated: u,
2360
+ filteredVariants: m(),
2362
2361
  previewingIndex: e.previewingIndex
2363
2362
  });
2364
2363
  }
2365
- function y() {
2364
+ function b() {
2366
2365
  return (e.variants || []).map(
2367
- (I, B) => {
2368
- var $;
2369
- return `div[data-variant-id="${($ = e.builderBlock) == null ? void 0 : $.id}-${B}"] { display: none !important; } `;
2366
+ (w, B) => {
2367
+ var C;
2368
+ return `div[data-variant-id="${(C = e.builderBlock) == null ? void 0 : C.id}-${B}"] { display: none !important; } `;
2370
2369
  }
2371
2370
  ).join("");
2372
2371
  }
2373
- return V(() => {
2372
+ return N(() => {
2374
2373
  var B;
2375
- v(!0);
2376
- const I = Ce.subscribeOnUserAttributesChange(
2377
- ($) => {
2378
- i($);
2374
+ x(!0);
2375
+ const w = Ce.subscribeOnUserAttributesChange(
2376
+ (C) => {
2377
+ i(C);
2379
2378
  },
2380
2379
  {
2381
2380
  fireImmediately: F === "qwik"
2382
2381
  }
2383
2382
  );
2384
- if (!(_() || le())) {
2385
- const $ = h()[0];
2383
+ if (!(U() || le())) {
2384
+ const C = m()[0];
2386
2385
  t.current && (t.current.dispatchEvent(
2387
2386
  new CustomEvent("builder.variantLoaded", {
2388
2387
  detail: {
2389
- variant: $ || ie,
2388
+ variant: C || ie,
2390
2389
  content: (B = e.builderContext) == null ? void 0 : B.content
2391
2390
  },
2392
2391
  bubbles: !0
2393
2392
  })
2394
- ), new IntersectionObserver((M) => {
2395
- M.forEach((te) => {
2396
- var G;
2397
- te.isIntersecting && t.current && t.current.dispatchEvent(
2393
+ ), new IntersectionObserver((L) => {
2394
+ L.forEach((O) => {
2395
+ var j;
2396
+ O.isIntersecting && t.current && t.current.dispatchEvent(
2398
2397
  new CustomEvent("builder.variantDisplayed", {
2399
2398
  detail: {
2400
- variant: $ || ie,
2401
- content: (G = e.builderContext) == null ? void 0 : G.content
2399
+ variant: C || ie,
2400
+ content: (j = e.builderContext) == null ? void 0 : j.content
2402
2401
  },
2403
2402
  bubbles: !0
2404
2403
  })
@@ -2406,64 +2405,64 @@ function Nn(e) {
2406
2405
  });
2407
2406
  }).observe(t.current));
2408
2407
  }
2409
- c.push(I);
2410
- }, []), V(() => () => {
2411
- c.forEach((I) => I());
2412
- }, []), /* @__PURE__ */ W("div", { ref: t, ...d(), children: [
2413
- m && re.includes(F) ? /* @__PURE__ */ s(
2414
- U,
2408
+ c.push(w);
2409
+ }, []), N(() => () => {
2410
+ c.forEach((w) => w());
2411
+ }, []), /* @__PURE__ */ D("div", { ref: t, ...f(), children: [
2412
+ u && re.includes(F) ? /* @__PURE__ */ s(
2413
+ M,
2415
2414
  {
2416
- blocks: p().blocks,
2415
+ blocks: y().blocks,
2417
2416
  parent: (S = e.builderBlock) == null ? void 0 : S.id,
2418
- path: p().path,
2417
+ path: y().path,
2419
2418
  context: e.builderContext,
2420
2419
  registeredComponents: e.builderComponents,
2421
2420
  BlocksWrapperProps: {
2422
- ...(k = e.builderContext) == null ? void 0 : k.BlocksWrapperProps,
2423
- "data-variant-id": `${(A = e.builderBlock) == null ? void 0 : A.id}-${p().index}`
2421
+ ...(T = e.builderContext) == null ? void 0 : T.BlocksWrapperProps,
2422
+ "data-variant-id": `${(E = e.builderBlock) == null ? void 0 : E.id}-${y().index}`
2424
2423
  }
2425
2424
  }
2426
2425
  ) : null,
2427
- !m && re.includes(F) || !re.includes(F) ? /* @__PURE__ */ W(R, { children: [
2428
- f ? /* @__PURE__ */ W(R, { children: [
2426
+ !u && re.includes(F) || !re.includes(F) ? /* @__PURE__ */ D(P, { children: [
2427
+ h ? /* @__PURE__ */ D(P, { children: [
2429
2428
  /* @__PURE__ */ s(
2430
- ee,
2429
+ te,
2431
2430
  {
2432
- nonce: ((T = e.builderContext) == null ? void 0 : T.nonce) || "",
2433
- styles: y(),
2434
- id: `variants-styles-${(w = e.builderBlock) == null ? void 0 : w.id}`
2431
+ nonce: ((_ = e.builderContext) == null ? void 0 : _.nonce) || "",
2432
+ styles: b(),
2433
+ id: `variants-styles-${(H = e.builderBlock) == null ? void 0 : H.id}`
2435
2434
  }
2436
2435
  ),
2437
2436
  /* @__PURE__ */ s(
2438
- q,
2437
+ K,
2439
2438
  {
2440
- nonce: ((g = e.builderContext) == null ? void 0 : g.nonce) || "",
2441
- scriptStr: a,
2442
- id: `variants-visibility-script-${(x = e.builderBlock) == null ? void 0 : x.id}`
2439
+ nonce: ((q = e.builderContext) == null ? void 0 : q.nonce) || "",
2440
+ scriptStr: o,
2441
+ id: `variants-visibility-script-${(p = e.builderBlock) == null ? void 0 : p.id}`
2443
2442
  }
2444
2443
  ),
2445
- (E = e.variants) == null ? void 0 : E.map((I, B) => {
2446
- var $, z, M, te, G, ke;
2444
+ (v = e.variants) == null ? void 0 : v.map((w, B) => {
2445
+ var C, W, L, O, j, ke;
2447
2446
  return /* @__PURE__ */ s(
2448
- U,
2447
+ M,
2449
2448
  {
2450
2449
  BlocksWrapperProps: {
2451
- ...($ = e.builderContext) == null ? void 0 : $.BlocksWrapperProps,
2450
+ ...(C = e.builderContext) == null ? void 0 : C.BlocksWrapperProps,
2452
2451
  "aria-hidden": !0,
2453
2452
  hidden: !0,
2454
- "data-variant-id": `${(z = e.builderBlock) == null ? void 0 : z.id}-${B}`
2453
+ "data-variant-id": `${(W = e.builderBlock) == null ? void 0 : W.id}-${B}`
2455
2454
  },
2456
- blocks: I.blocks,
2457
- parent: (M = e.builderBlock) == null ? void 0 : M.id,
2455
+ blocks: w.blocks,
2456
+ parent: (L = e.builderBlock) == null ? void 0 : L.id,
2458
2457
  path: `component.options.variants.${B}.blocks`,
2459
2458
  context: e.builderContext,
2460
2459
  registeredComponents: e.builderComponents,
2461
2460
  children: /* @__PURE__ */ s(
2462
- q,
2461
+ K,
2463
2462
  {
2464
- nonce: ((te = e.builderContext) == null ? void 0 : te.nonce) || "",
2463
+ nonce: ((O = e.builderContext) == null ? void 0 : O.nonce) || "",
2465
2464
  scriptStr: r,
2466
- id: `variants-script-${(G = e.builderBlock) == null ? void 0 : G.id}-${B}`
2465
+ id: `variants-script-${(j = e.builderBlock) == null ? void 0 : j.id}-${B}`
2467
2466
  }
2468
2467
  )
2469
2468
  },
@@ -2472,23 +2471,23 @@ function Nn(e) {
2472
2471
  })
2473
2472
  ] }) : null,
2474
2473
  /* @__PURE__ */ s(
2475
- U,
2474
+ M,
2476
2475
  {
2477
- blocks: p().blocks,
2478
- parent: (N = e.builderBlock) == null ? void 0 : N.id,
2479
- path: p().path,
2476
+ blocks: y().blocks,
2477
+ parent: (I = e.builderBlock) == null ? void 0 : I.id,
2478
+ path: y().path,
2480
2479
  context: e.builderContext,
2481
2480
  registeredComponents: e.builderComponents,
2482
2481
  BlocksWrapperProps: {
2483
- ...(O = e.builderContext) == null ? void 0 : O.BlocksWrapperProps,
2484
- "data-variant-id": `${(L = e.builderBlock) == null ? void 0 : L.id}-${p().index}`
2482
+ ...(V = e.builderContext) == null ? void 0 : V.BlocksWrapperProps,
2483
+ "data-variant-id": `${($ = e.builderBlock) == null ? void 0 : $.id}-${y().index}`
2485
2484
  },
2486
- children: f ? /* @__PURE__ */ s(
2487
- q,
2485
+ children: h ? /* @__PURE__ */ s(
2486
+ K,
2488
2487
  {
2489
- nonce: ((P = e.builderContext) == null ? void 0 : P.nonce) || "",
2488
+ nonce: ((R = e.builderContext) == null ? void 0 : R.nonce) || "",
2490
2489
  scriptStr: r,
2491
- id: `variants-script-${(D = e.builderBlock) == null ? void 0 : D.id}-${ie}`
2490
+ id: `variants-script-${(A = e.builderBlock) == null ? void 0 : A.id}-${ie}`
2492
2491
  }
2493
2492
  ) : null
2494
2493
  }
@@ -2565,7 +2564,7 @@ function Dn(e) {
2565
2564
  "builder-slot": e.name
2566
2565
  },
2567
2566
  children: /* @__PURE__ */ s(
2568
- U,
2567
+ M,
2569
2568
  {
2570
2569
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
2571
2570
  path: `symbol.data.${e.name}`,
@@ -2654,7 +2653,7 @@ const Fn = {
2654
2653
  text: "New tab content "
2655
2654
  }
2656
2655
  }
2657
- }, On = {
2656
+ }, Ln = {
2658
2657
  name: "Builder: Tabs",
2659
2658
  inputs: [{
2660
2659
  name: "tabs",
@@ -2758,18 +2757,21 @@ const Fn = {
2758
2757
  builderLinkComponent: !0
2759
2758
  }
2760
2759
  };
2761
- function Ln(e) {
2760
+ function On(e) {
2762
2761
  var o;
2763
- const [t, n] = C(
2762
+ const [t, n] = k(
2764
2763
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
2765
2764
  );
2766
- function i(a) {
2767
- return e.tabs && e.tabs[a].content;
2765
+ function i(l) {
2766
+ return e.tabs && e.tabs[l].content;
2767
+ }
2768
+ function r(l) {
2769
+ return l === t ? e.activeTabStyle : {};
2768
2770
  }
2769
- function r(a) {
2770
- a === t && e.collapsible ? n(-1) : n(a);
2771
+ function a(l) {
2772
+ l === t && e.collapsible ? n(-1) : n(l);
2771
2773
  }
2772
- return /* @__PURE__ */ W("div", { children: [
2774
+ return /* @__PURE__ */ D("div", { children: [
2773
2775
  /* @__PURE__ */ s(
2774
2776
  "div",
2775
2777
  {
@@ -2780,32 +2782,30 @@ function Ln(e) {
2780
2782
  justifyContent: e.tabHeaderLayout || "flex-start",
2781
2783
  overflow: "auto"
2782
2784
  },
2783
- children: (o = e.tabs) == null ? void 0 : o.map((a, l) => /* @__PURE__ */ s(
2785
+ children: (o = e.tabs) == null ? void 0 : o.map((l, c) => /* @__PURE__ */ s(
2784
2786
  "span",
2785
2787
  {
2786
- className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
2787
- style: {
2788
- ...t === l ? e.activeTabStyle : {}
2789
- },
2790
- onClick: (c) => r(l),
2788
+ className: `builder-tab-wrap ${t === c ? "builder-tab-active" : ""}`,
2789
+ style: r(c),
2790
+ onClick: (d) => a(c),
2791
2791
  children: /* @__PURE__ */ s(
2792
- U,
2792
+ M,
2793
2793
  {
2794
2794
  parent: e.builderBlock.id,
2795
- path: `tabs.${l}.label`,
2796
- blocks: a.label,
2795
+ path: `tabs.${c}.label`,
2796
+ blocks: l.label,
2797
2797
  context: e.builderContext,
2798
2798
  registeredComponents: e.builderComponents,
2799
2799
  linkComponent: e.builderLinkComponent
2800
2800
  }
2801
2801
  )
2802
2802
  },
2803
- l
2803
+ c
2804
2804
  ))
2805
2805
  }
2806
2806
  ),
2807
2807
  i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
2808
- U,
2808
+ M,
2809
2809
  {
2810
2810
  parent: e.builderBlock.id,
2811
2811
  path: `tabs.${t}.content`,
@@ -2874,42 +2874,42 @@ const Hn = {
2874
2874
  }]
2875
2875
  };
2876
2876
  function Mn(e) {
2877
- const t = H(null), [n, i] = C(() => []), [r, o] = C(() => []);
2878
- function a() {
2877
+ const t = z(null), [n, i] = k(() => []), [r, a] = k(() => []);
2878
+ function o() {
2879
2879
  var c;
2880
2880
  if (!t.current || !((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
2881
2881
  return;
2882
2882
  const l = t.current.getElementsByTagName("script");
2883
- for (let u = 0; u < l.length; u++) {
2884
- const f = l[u];
2885
- if (f.src) {
2886
- if (n.includes(f.src))
2883
+ for (let d = 0; d < l.length; d++) {
2884
+ const h = l[d];
2885
+ if (h.src) {
2886
+ if (n.includes(h.src))
2887
2887
  continue;
2888
- n.push(f.src);
2889
- const b = document.createElement("script");
2890
- b.async = !0, b.src = f.src, document.head.appendChild(b);
2891
- } else if (!f.type || [
2888
+ n.push(h.src);
2889
+ const g = document.createElement("script");
2890
+ g.async = !0, g.src = h.src, document.head.appendChild(g);
2891
+ } else if (!h.type || [
2892
2892
  "text/javascript",
2893
2893
  "application/javascript",
2894
2894
  "application/ecmascript"
2895
- ].includes(f.type)) {
2896
- if (r.includes(f.innerText))
2895
+ ].includes(h.type)) {
2896
+ if (r.includes(h.innerText))
2897
2897
  continue;
2898
2898
  try {
2899
- r.push(f.innerText), new Function(f.innerText)();
2900
- } catch (b) {
2901
- Z.warn(
2899
+ r.push(h.innerText), new Function(h.innerText)();
2900
+ } catch (g) {
2901
+ ee.warn(
2902
2902
  "[BUILDER.IO] `CustomCode`: Error running script:",
2903
- b
2903
+ g
2904
2904
  );
2905
2905
  }
2906
2906
  }
2907
2907
  }
2908
2908
  }
2909
- return V(() => {
2910
- a();
2911
- }, []), V(() => {
2912
- _() && a();
2909
+ return N(() => {
2910
+ o();
2911
+ }, []), N(() => {
2912
+ U() && o();
2913
2913
  }, [e.code]), /* @__PURE__ */ s(
2914
2914
  "div",
2915
2915
  {
@@ -2936,28 +2936,28 @@ const qn = {
2936
2936
  }]
2937
2937
  }, jn = ["text/javascript", "application/javascript", "application/ecmascript"], zn = (e) => jn.includes(e.type);
2938
2938
  function Kn(e) {
2939
- const t = H(null), [n, i] = C(() => []), [r, o] = C(() => []), [a, l] = C(() => !1);
2939
+ const t = z(null), [n, i] = k(() => []), [r, a] = k(() => []), [o, l] = k(() => !1);
2940
2940
  function c() {
2941
2941
  if (!t.current || !t.current.getElementsByTagName)
2942
2942
  return;
2943
- const u = t.current.getElementsByTagName("script");
2944
- for (let f = 0; f < u.length; f++) {
2945
- const b = u[f];
2946
- if (b.src && !n.includes(b.src)) {
2947
- n.push(b.src);
2948
- const m = document.createElement("script");
2949
- m.async = !0, m.src = b.src, document.head.appendChild(m);
2950
- } else if (zn(b) && !r.includes(b.innerText))
2943
+ const d = t.current.getElementsByTagName("script");
2944
+ for (let h = 0; h < d.length; h++) {
2945
+ const g = d[h];
2946
+ if (g.src && !n.includes(g.src)) {
2947
+ n.push(g.src);
2948
+ const u = document.createElement("script");
2949
+ u.async = !0, u.src = g.src, document.head.appendChild(u);
2950
+ } else if (zn(g) && !r.includes(g.innerText))
2951
2951
  try {
2952
- r.push(b.innerText), new Function(b.innerText)();
2953
- } catch (m) {
2954
- Z.warn("[BUILDER.IO] `Embed`: Error running script:", m);
2952
+ r.push(g.innerText), new Function(g.innerText)();
2953
+ } catch (u) {
2954
+ ee.warn("[BUILDER.IO] `Embed`: Error running script:", u);
2955
2955
  }
2956
2956
  }
2957
2957
  }
2958
- return V(() => {
2959
- t.current && !a && (l(!0), c());
2960
- }, [t.current, a]), /* @__PURE__ */ s(
2958
+ return N(() => {
2959
+ t.current && !o && (l(!0), c());
2960
+ }, [t.current, o]), /* @__PURE__ */ s(
2961
2961
  "div",
2962
2962
  {
2963
2963
  className: "builder-embed",
@@ -3208,127 +3208,132 @@ const Jn = {
3208
3208
  return Gn.includes(e) ? e : "production";
3209
3209
  };
3210
3210
  function Yn(e) {
3211
- const t = H(null), [n, i] = C(() => "unsubmitted"), [r, o] = C(() => null), [a, l] = C(() => "");
3212
- function c(b) {
3213
- var v, d;
3214
- const m = {
3211
+ const t = z(null), [n, i] = k(() => "unsubmitted"), [r, a] = k(() => null), [o, l] = k(() => "");
3212
+ function c(u) {
3213
+ var f, m;
3214
+ const x = {
3215
3215
  ...e.builderContext.rootState,
3216
- ...b
3216
+ ...u
3217
3217
  };
3218
- e.builderContext.rootSetState ? (d = (v = e.builderContext).rootSetState) == null || d.call(v, m) : e.builderContext.rootState = m;
3218
+ e.builderContext.rootSetState ? (m = (f = e.builderContext).rootSetState) == null || m.call(f, x) : e.builderContext.rootState = x;
3219
+ }
3220
+ function d() {
3221
+ return U() && e.previewState || n;
3219
3222
  }
3220
- function u() {
3221
- return _() && e.previewState || n;
3223
+ function h(u) {
3224
+ return JSON.stringify(u, null, 2);
3222
3225
  }
3223
- function f(b) {
3224
- var v;
3225
- const m = e.sendWithJs || e.sendSubmissionsTo === "email";
3226
+ function g(u) {
3227
+ var f;
3228
+ const x = e.sendWithJs || e.sendSubmissionsTo === "email";
3226
3229
  if (e.sendSubmissionsTo === "zapier")
3227
- b.preventDefault();
3228
- else if (m) {
3230
+ u.preventDefault();
3231
+ else if (x) {
3229
3232
  if (!(e.action || e.sendSubmissionsTo === "email")) {
3230
- b.preventDefault();
3233
+ u.preventDefault();
3231
3234
  return;
3232
3235
  }
3233
- b.preventDefault();
3234
- const d = b.currentTarget || b.target, h = e.customHeaders || {};
3235
- let p;
3236
- const y = new FormData(d), S = Array.from(d.querySelectorAll("input,select,textarea")).filter((g) => !!g.name).map((g) => {
3237
- let x;
3238
- const E = g.name;
3239
- if (g instanceof HTMLInputElement)
3240
- if (g.type === "radio") {
3241
- if (g.checked)
3242
- return x = g.name, {
3243
- key: E,
3244
- value: x
3236
+ u.preventDefault();
3237
+ const m = u.currentTarget || u.target, y = e.customHeaders || {};
3238
+ let b;
3239
+ const S = new FormData(m), T = Array.from(m.querySelectorAll("input,select,textarea")).filter((p) => !!p.name).filter(
3240
+ (p) => !!p.name && (p.type !== "radio" || p.checked)
3241
+ ).map((p) => {
3242
+ let v;
3243
+ const I = p.name;
3244
+ if (p instanceof HTMLInputElement)
3245
+ if (p.type === "radio") {
3246
+ if (p.checked)
3247
+ return v = p.value, {
3248
+ key: I,
3249
+ value: v
3245
3250
  };
3246
- } else if (g.type === "checkbox")
3247
- x = g.checked;
3248
- else if (g.type === "number" || g.type === "range") {
3249
- const N = g.valueAsNumber;
3250
- isNaN(N) || (x = N);
3251
+ } else if (p.type === "checkbox")
3252
+ v = p.checked;
3253
+ else if (p.type === "number" || p.type === "range") {
3254
+ const V = p.valueAsNumber;
3255
+ isNaN(V) || (v = V);
3251
3256
  } else
3252
- g.type === "file" ? x = g.files : x = g.value;
3257
+ p.type === "file" ? v = p.files : v = p.value;
3253
3258
  else
3254
- x = g.value;
3259
+ v = p.value;
3255
3260
  return {
3256
- key: E,
3257
- value: x
3261
+ key: I,
3262
+ value: v
3258
3263
  };
3259
3264
  });
3260
- let k = e.contentType;
3261
- if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(S).forEach(({ value: g }) => {
3262
- (g instanceof File || Array.isArray(g) && g[0] instanceof File || g instanceof FileList) && (k = "multipart/form-data");
3263
- }), k !== "application/json")
3264
- p = y;
3265
+ let E = e.contentType;
3266
+ if (e.sendSubmissionsTo === "email" && (E = "multipart/form-data"), Array.from(T).forEach(({ value: p }) => {
3267
+ (p instanceof File || Array.isArray(p) && p[0] instanceof File || p instanceof FileList) && (E = "multipart/form-data");
3268
+ }), E !== "application/json")
3269
+ b = S;
3265
3270
  else {
3266
- const g = {};
3267
- Array.from(S).forEach(({ value: x, key: E }) => {
3268
- Ue(g, E, x);
3269
- }), p = JSON.stringify(g);
3271
+ const p = {};
3272
+ Array.from(T).forEach(({ value: v, key: I }) => {
3273
+ Ue(p, I, v);
3274
+ }), b = JSON.stringify(p);
3270
3275
  }
3271
- k && k !== "multipart/form-data" && (m && ((v = e.action) != null && v.includes("zapier.com")) || (h["content-type"] = k));
3272
- const A = new CustomEvent("presubmit", { detail: { body: p } });
3273
- if (t.current && (t.current.dispatchEvent(A), A.defaultPrevented))
3276
+ E && E !== "multipart/form-data" && (x && ((f = e.action) != null && f.includes("zapier.com")) || (y["content-type"] = E));
3277
+ const _ = new CustomEvent("presubmit", { detail: { body: b } });
3278
+ if (t.current && (t.current.dispatchEvent(_), _.defaultPrevented))
3274
3279
  return;
3275
3280
  if (i("sending"), e.sendSubmissionsTo === "email" && (e.sendSubmissionsToEmail === "your@email.com" || !e.sendSubmissionsToEmail)) {
3276
- const g = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
3277
- console.error(g), i("error"), c({ formErrorMessage: g });
3281
+ const p = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
3282
+ console.error(p), i("error"), c({ formErrorMessage: p });
3278
3283
  return;
3279
3284
  }
3280
- const T = `${Qn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3285
+ const H = `${Qn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3281
3286
  e.sendSubmissionsToEmail || ""
3282
- )}&name=${encodeURIComponent(e.name || "")}`, w = e.sendSubmissionsTo === "email" ? T : e.action;
3283
- Fe(w), fetch(w, { body: p, headers: h, method: e.method || "post" }).then(
3284
- async (g) => {
3285
- var N, O;
3286
- let x;
3287
- const E = g.headers.get("content-type");
3288
- if (E && E.indexOf("application/json") !== -1 ? x = await g.json() : x = await g.text(), !g.ok) {
3289
- const L = new CustomEvent("submit:error", {
3290
- detail: { error: x, status: g.status }
3287
+ )}&name=${encodeURIComponent(e.name || "")}`, q = e.sendSubmissionsTo === "email" ? H : e.action;
3288
+ Fe(q), fetch(q, { body: b, headers: y, method: e.method || "post" }).then(
3289
+ async (p) => {
3290
+ var V, $;
3291
+ let v;
3292
+ const I = p.headers.get("content-type");
3293
+ if (I && I.indexOf("application/json") !== -1 ? v = await p.json() : v = await p.text(), !p.ok) {
3294
+ const R = new CustomEvent("submit:error", {
3295
+ detail: { error: v, status: p.status }
3291
3296
  });
3292
- if ((N = t.current) != null && N.nativeElement && ((O = t.current) == null || O.nativeElement.dispatchEvent(L), L.defaultPrevented))
3297
+ if ((V = t.current) != null && V.nativeElement && (($ = t.current) == null || $.nativeElement.dispatchEvent(R), R.defaultPrevented))
3293
3298
  return;
3294
- o(x), i("error");
3295
- let P = e.errorMessagePath ? Me(x, e.errorMessagePath) : x.message || x.error || x;
3296
- typeof P != "string" && (P = JSON.stringify(P)), l(P), c({ formErrorMessage: P });
3299
+ a(v), i("error");
3300
+ let A = e.errorMessagePath ? Me(v, e.errorMessagePath) : v.message || v.error || v;
3301
+ typeof A != "string" && (A = JSON.stringify(A)), l(A), c({ formErrorMessage: A });
3297
3302
  return;
3298
3303
  }
3299
- if (o(x), i(g.ok ? "success" : "error"), g.ok) {
3300
- const L = new CustomEvent("submit:success", {
3301
- detail: { res: g, body: x }
3304
+ if (a(v), i(p.ok ? "success" : "error"), p.ok) {
3305
+ const R = new CustomEvent("submit:success", {
3306
+ detail: { res: p, body: v }
3302
3307
  });
3303
3308
  if (t.current) {
3304
- if (t.current.dispatchEvent(L), L.defaultPrevented)
3309
+ if (t.current.dispatchEvent(R), R.defaultPrevented)
3305
3310
  return;
3306
3311
  e.resetFormOnSubmit !== !1 && t.current.reset();
3307
3312
  }
3308
3313
  if (e.successUrl)
3309
3314
  if (t.current) {
3310
- const P = new CustomEvent("route", {
3315
+ const A = new CustomEvent("route", {
3311
3316
  detail: { url: e.successUrl }
3312
3317
  });
3313
- t.current.dispatchEvent(P), P.defaultPrevented || (location.href = e.successUrl);
3318
+ t.current.dispatchEvent(A), A.defaultPrevented || (location.href = e.successUrl);
3314
3319
  } else
3315
3320
  location.href = e.successUrl;
3316
3321
  }
3317
3322
  },
3318
- (g) => {
3319
- const x = new CustomEvent("submit:error", {
3320
- detail: { error: g }
3323
+ (p) => {
3324
+ const v = new CustomEvent("submit:error", {
3325
+ detail: { error: p }
3321
3326
  });
3322
- t.current && (t.current.dispatchEvent(x), x.defaultPrevented) || (o(g), i("error"));
3327
+ t.current && (t.current.dispatchEvent(v), v.defaultPrevented) || (a(p), i("error"));
3323
3328
  }
3324
3329
  );
3325
3330
  }
3326
3331
  }
3327
- return /* @__PURE__ */ W(R, { children: [
3332
+ return /* @__PURE__ */ D(P, { children: [
3328
3333
  " ",
3329
- /* @__PURE__ */ s("style", { children: ".pre-7c90c93e { padding: 10px; color: red; text-align: center; }" }),
3334
+ /* @__PURE__ */ s("style", { children: ".pre-abc898ba { padding: 10px; color: red; text-align: center; }" }),
3330
3335
  " ",
3331
- /* @__PURE__ */ W(
3336
+ /* @__PURE__ */ D(
3332
3337
  "form",
3333
3338
  {
3334
3339
  validate: e.validate,
@@ -3336,29 +3341,29 @@ function Yn(e) {
3336
3341
  action: !e.sendWithJs && e.action,
3337
3342
  method: e.method,
3338
3343
  name: e.name,
3339
- onSubmit: (b) => f(b),
3344
+ onSubmit: (u) => g(u),
3340
3345
  ...e.attributes,
3341
3346
  children: [
3342
3347
  e.children,
3343
- u() === "error" ? /* @__PURE__ */ s(
3344
- U,
3348
+ d() === "error" ? /* @__PURE__ */ s(
3349
+ M,
3345
3350
  {
3346
3351
  path: "errorMessage",
3347
3352
  blocks: e.errorMessage,
3348
3353
  context: e.builderContext
3349
3354
  }
3350
3355
  ) : null,
3351
- u() === "sending" ? /* @__PURE__ */ s(
3352
- U,
3356
+ d() === "sending" ? /* @__PURE__ */ s(
3357
+ M,
3353
3358
  {
3354
3359
  path: "sendingMessage",
3355
3360
  blocks: e.sendingMessage,
3356
3361
  context: e.builderContext
3357
3362
  }
3358
3363
  ) : null,
3359
- u() === "error" && r ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7c90c93e", children: JSON.stringify(r, null, 2) }) : null,
3360
- u() === "success" ? /* @__PURE__ */ s(
3361
- U,
3364
+ d() === "error" && r ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-abc898ba", children: h(r) }) : null,
3365
+ d() === "success" ? /* @__PURE__ */ s(
3366
+ M,
3362
3367
  {
3363
3368
  path: "successMessage",
3364
3369
  blocks: e.successMessage,
@@ -3428,7 +3433,7 @@ function Zn(e) {
3428
3433
  "input",
3429
3434
  {
3430
3435
  ...e.attributes,
3431
- key: _() && e.defaultValue ? e.defaultValue : "default-key",
3436
+ key: U() && e.defaultValue ? e.defaultValue : "default-key",
3432
3437
  placeholder: e.placeholder,
3433
3438
  type: e.type,
3434
3439
  name: e.name,
@@ -3488,7 +3493,7 @@ function ti(e) {
3488
3493
  {
3489
3494
  ...e.attributes,
3490
3495
  value: e.value,
3491
- key: _() && e.defaultValue ? e.defaultValue : "default-key",
3496
+ key: U() && e.defaultValue ? e.defaultValue : "default-key",
3492
3497
  defaultValue: e.defaultValue,
3493
3498
  name: e.name,
3494
3499
  required: e.required
@@ -3609,7 +3614,7 @@ function li(e) {
3609
3614
  srcSet: t(),
3610
3615
  ...e.attributes
3611
3616
  },
3612
- _() && e.imgSrc || "default-key"
3617
+ U() && e.imgSrc || "default-key"
3613
3618
  );
3614
3619
  }
3615
3620
  const si = {
@@ -3698,8 +3703,8 @@ const si = {
3698
3703
  }
3699
3704
  };
3700
3705
  function ci(e) {
3701
- var a, l, c, u, f, b, m;
3702
- const t = H(null);
3706
+ var o, l, c, d, h, g, u;
3707
+ const t = z(null);
3703
3708
  function n() {
3704
3709
  return {
3705
3710
  ...e.autoPlay === !0 ? {
@@ -3724,32 +3729,32 @@ function ci(e) {
3724
3729
  ...n()
3725
3730
  };
3726
3731
  }
3727
- const [r, o] = C(() => {
3732
+ const [r, a] = k(() => {
3728
3733
  });
3729
- return V(() => {
3734
+ return N(() => {
3730
3735
  if (e.lazyLoad) {
3731
- const v = new IntersectionObserver(function(d) {
3732
- d.forEach(function(h) {
3733
- if (!h.isIntersecting)
3736
+ const x = new IntersectionObserver(function(f) {
3737
+ f.forEach(function(m) {
3738
+ if (!m.isIntersecting)
3734
3739
  return;
3735
- const p = h.target;
3740
+ const y = m.target;
3736
3741
  try {
3737
- Array.from(p.children).filter(
3738
- (y) => y instanceof HTMLElement && y.tagName === "SOURCE"
3739
- ).forEach((y) => {
3740
- const S = y.dataset.src;
3741
- S && (y.src = S);
3742
- }), p.load(), v.unobserve(p);
3743
- } catch (y) {
3744
- console.error("Error loading lazy video:", y);
3742
+ Array.from(y.children).filter(
3743
+ (b) => b instanceof HTMLElement && b.tagName === "SOURCE"
3744
+ ).forEach((b) => {
3745
+ const S = b.dataset.src;
3746
+ S && (b.src = S);
3747
+ }), y.load(), x.unobserve(y);
3748
+ } catch (b) {
3749
+ console.error("Error loading lazy video:", b);
3745
3750
  }
3746
3751
  });
3747
3752
  });
3748
- t.current && v.observe(t.current), o(v);
3753
+ t.current && x.observe(t.current), a(x);
3749
3754
  }
3750
- }, []), V(() => () => {
3755
+ }, []), N(() => () => {
3751
3756
  r && r.disconnect();
3752
- }, []), /* @__PURE__ */ W(
3757
+ }, []), /* @__PURE__ */ D(
3753
3758
  "div",
3754
3759
  {
3755
3760
  style: {
@@ -3766,7 +3771,7 @@ function ci(e) {
3766
3771
  style: {
3767
3772
  width: "100%",
3768
3773
  height: "100%",
3769
- ...(a = e.attributes) == null ? void 0 : a.style,
3774
+ ...(o = e.attributes) == null ? void 0 : o.style,
3770
3775
  objectFit: e.fit,
3771
3776
  objectPosition: e.position,
3772
3777
  // Hack to get object fit to work as expected and
@@ -3801,7 +3806,7 @@ function ci(e) {
3801
3806
  }
3802
3807
  }
3803
3808
  ) : null,
3804
- (f = (u = e.builderBlock) == null ? void 0 : u.children) != null && f.length && e.fitContent ? /* @__PURE__ */ s(
3809
+ (h = (d = e.builderBlock) == null ? void 0 : d.children) != null && h.length && e.fitContent ? /* @__PURE__ */ s(
3805
3810
  "div",
3806
3811
  {
3807
3812
  style: {
@@ -3812,7 +3817,7 @@ function ci(e) {
3812
3817
  children: e.children
3813
3818
  }
3814
3819
  ) : null,
3815
- (m = (b = e.builderBlock) == null ? void 0 : b.children) != null && m.length && !e.fitContent ? /* @__PURE__ */ s(
3820
+ (u = (g = e.builderBlock) == null ? void 0 : g.children) != null && u.length && !e.fitContent ? /* @__PURE__ */ s(
3816
3821
  "div",
3817
3822
  {
3818
3823
  style: {
@@ -3888,8 +3893,8 @@ const ui = () => [{
3888
3893
  component: Nn,
3889
3894
  ...Bn
3890
3895
  }] : [], {
3891
- component: Ln,
3892
- ...On
3896
+ component: On,
3897
+ ...Ln
3893
3898
  }, {
3894
3899
  component: wn,
3895
3900
  ...In
@@ -3993,12 +3998,12 @@ const ui = () => [{
3993
3998
  })), fi = ({
3994
3999
  canTrack: e,
3995
4000
  content: t
3996
- }) => !(!(ae(t).length > 0) || !e || K()), hi = (e) => e === "react" || e === "reactNative", gi = F === "angular", ot = hi(F), bi = () => `
4001
+ }) => !(!(ae(t).length > 0) || !e || G()), hi = (e) => e === "react" || e === "reactNative", bi = F === "angular", ot = hi(F), gi = () => `
3997
4002
  window.${rt} = ${di}
3998
4003
  window.${at} = ${mi}
3999
4004
  `, yi = (e, t) => `
4000
4005
  window.${rt}(
4001
- "${t}",${JSON.stringify(e)}, ${ot}, ${gi}
4006
+ "${t}",${JSON.stringify(e)}, ${ot}, ${bi}
4002
4007
  )`, pi = ({
4003
4008
  contentId: e,
4004
4009
  variationId: t
@@ -4026,10 +4031,10 @@ const vi = (e, t, n = !0) => {
4026
4031
  event: e,
4027
4032
  target: t
4028
4033
  }) => {
4029
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, r = e.clientY - n.top, o = Ne(i / n.width), a = Ne(r / n.height);
4034
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, r = e.clientY - n.top, a = Ne(i / n.width), o = Ne(r / n.height);
4030
4035
  return {
4031
- x: o,
4032
- y: a
4036
+ x: a,
4037
+ y: o
4033
4038
  };
4034
4039
  }, Si = (e) => {
4035
4040
  const t = e.target, n = t && xi(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
@@ -4047,9 +4052,9 @@ const vi = (e, t, n = !0) => {
4047
4052
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
4048
4053
  }
4049
4054
  };
4050
- }, ki = ["svelte", "qwik", "vue"], We = () => ki.includes(F) && (_() || le()), Ci = (e) => {
4051
- var o, a;
4052
- const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
4055
+ }, ki = ["svelte", "qwik", "vue"], We = () => ki.includes(F) && (U() || le()), Ci = (e) => {
4056
+ var a, o;
4057
+ 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;
4053
4058
  let r = "";
4054
4059
  if (i && t && n && (r += `
4055
4060
  @font-face {
@@ -4062,11 +4067,11 @@ font-weight: 400;
4062
4067
  for (const l in e.files) {
4063
4068
  if (!(String(Number(l)) === l))
4064
4069
  continue;
4065
- const u = e.files[l];
4066
- u && u !== i && (r += `
4070
+ const d = e.files[l];
4071
+ d && d !== i && (r += `
4067
4072
  @font-face {
4068
4073
  font-family: "${t}";
4069
- src: url('${u}') format('woff2');
4074
+ src: url('${d}') format('woff2');
4070
4075
  font-display: fallback;
4071
4076
  font-weight: ${l};
4072
4077
  }
@@ -4100,147 +4105,150 @@ font-weight: ${l};
4100
4105
  }
4101
4106
  `, Ei = (e) => e ? "" : wi, Ri = (e) => `variant-${e}`;
4102
4107
  function Pi(e) {
4103
- var S, k, A;
4104
- const t = H(null);
4105
- C(() => !1);
4106
- function n(T) {
4107
- var g, x;
4108
- const w = {
4108
+ var H, q, p;
4109
+ const t = z(null);
4110
+ k(() => !1);
4111
+ const [n, i] = k(() => null), [r, a] = k(() => "");
4112
+ function o(v) {
4113
+ var V, $;
4114
+ const I = {
4109
4115
  ...e.builderContextSignal.rootState,
4110
- ...T
4116
+ ...v
4111
4117
  };
4112
- e.builderContextSignal.rootSetState ? (x = (g = e.builderContextSignal).rootSetState) == null || x.call(g, w) : e.setBuilderContextSignal((E) => ({
4113
- ...E,
4114
- rootState: w
4118
+ e.builderContextSignal.rootSetState ? ($ = (V = e.builderContextSignal).rootSetState) == null || $.call(V, I) : e.setBuilderContextSignal((R) => ({
4119
+ ...R,
4120
+ rootState: I
4115
4121
  }));
4116
4122
  }
4117
- function i(T) {
4118
- var g, x, E, N, O;
4119
- const w = {
4123
+ function l(v) {
4124
+ var V, $, R, A, w;
4125
+ const I = {
4120
4126
  ...e.builderContextSignal.content,
4121
- ...T,
4127
+ ...v,
4122
4128
  data: {
4123
- ...(g = e.builderContextSignal.content) == null ? void 0 : g.data,
4124
- ...T == null ? void 0 : T.data
4129
+ ...(V = e.builderContextSignal.content) == null ? void 0 : V.data,
4130
+ ...v == null ? void 0 : v.data
4125
4131
  },
4126
4132
  meta: {
4127
- ...(x = e.builderContextSignal.content) == null ? void 0 : x.meta,
4128
- ...T == null ? void 0 : T.meta,
4129
- breakpoints: ((E = T == null ? void 0 : T.meta) == null ? void 0 : E.breakpoints) || ((O = (N = e.builderContextSignal.content) == null ? void 0 : N.meta) == null ? void 0 : O.breakpoints)
4133
+ ...($ = e.builderContextSignal.content) == null ? void 0 : $.meta,
4134
+ ...v == null ? void 0 : v.meta,
4135
+ breakpoints: ((R = v == null ? void 0 : v.meta) == null ? void 0 : R.breakpoints) || ((w = (A = e.builderContextSignal.content) == null ? void 0 : A.meta) == null ? void 0 : w.breakpoints)
4130
4136
  }
4131
4137
  };
4132
- e.setBuilderContextSignal((L) => ({
4133
- ...L,
4134
- content: w
4138
+ e.setBuilderContextSignal((B) => ({
4139
+ ...B,
4140
+ content: I
4135
4141
  }));
4136
4142
  }
4137
- function r() {
4143
+ function c() {
4138
4144
  return e.showContent ? {} : {
4139
4145
  hidden: !0,
4140
4146
  "aria-hidden": !0
4141
4147
  };
4142
4148
  }
4143
- const [o, a] = C(
4149
+ const [d, h] = k(
4144
4150
  () => e.contentWrapper || "div"
4145
4151
  );
4146
- function l(T) {
4152
+ function g(v) {
4147
4153
  return ut({
4148
4154
  model: e.model,
4149
4155
  trustedHosts: e.trustedHosts,
4150
4156
  callbacks: {
4151
- configureSdk: (w) => {
4152
- var E;
4153
- const { breakpoints: g, contentId: x } = w;
4154
- !x || x !== ((E = e.builderContextSignal.content) == null ? void 0 : E.id) || g && i({
4157
+ configureSdk: (I) => {
4158
+ var R;
4159
+ const { breakpoints: V, contentId: $ } = I;
4160
+ !$ || $ !== ((R = e.builderContextSignal.content) == null ? void 0 : R.id) || V && l({
4155
4161
  meta: {
4156
- breakpoints: g
4162
+ breakpoints: V
4157
4163
  }
4158
4164
  });
4159
4165
  },
4160
- animation: (w) => {
4161
- Ke(w);
4166
+ animation: (I) => {
4167
+ Ke(I);
4162
4168
  },
4163
- contentUpdate: (w) => {
4164
- i(w);
4169
+ contentUpdate: (I) => {
4170
+ l(I);
4165
4171
  },
4166
- stateUpdate: (w) => {
4167
- n(w);
4172
+ stateUpdate: (I) => {
4173
+ o(I);
4168
4174
  }
4169
4175
  }
4170
- })(T);
4176
+ })(v);
4171
4177
  }
4172
- const [c, u] = C(() => ({})), [f, b] = C(() => ({})), [m, v] = C(() => !1);
4173
- function d(T) {
4174
- var w, g;
4178
+ const [u, x] = k(() => ({})), [f, m] = k(() => ({})), [y, b] = k(() => !1);
4179
+ function S(v) {
4180
+ var I, V;
4175
4181
  if (e.builderContextSignal.content) {
4176
- const x = (w = e.builderContextSignal.content) == null ? void 0 : w.testVariationId, E = (g = e.builderContextSignal.content) == null ? void 0 : g.id;
4182
+ const $ = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, R = (V = e.builderContextSignal.content) == null ? void 0 : V.id;
4177
4183
  Te({
4178
4184
  apiHost: e.apiHost,
4179
4185
  type: "click",
4180
- canTrack: X(e.canTrack),
4181
- contentId: E,
4186
+ canTrack: Z(e.canTrack),
4187
+ contentId: R,
4182
4188
  apiKey: e.apiKey,
4183
- variationId: x !== E ? x : void 0,
4184
- ...Si(T),
4185
- unique: !m
4189
+ variationId: $ !== R ? $ : void 0,
4190
+ ...Si(v),
4191
+ unique: !y
4186
4192
  });
4187
4193
  }
4188
- m || v(!0);
4194
+ y || b(!0);
4189
4195
  }
4190
- function h() {
4191
- var w, g, x;
4192
- const T = (x = (g = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : g.httpRequests) != null ? x : {};
4193
- Object.entries(T).forEach(
4194
- ([E, N]) => {
4195
- if (!N)
4196
+ function T() {
4197
+ var I, V, $;
4198
+ const v = ($ = (V = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : V.httpRequests) != null ? $ : {};
4199
+ Object.entries(v).forEach(
4200
+ ([R, A]) => {
4201
+ if (!A)
4196
4202
  return;
4197
- const O = typeof N == "object" && N["@type"] === "@builder.io/core:Request";
4198
- if (f[E] || c[E] && !_())
4203
+ const w = typeof A == "object" && A["@type"] === "@builder.io/core:Request";
4204
+ if (f[R] || u[R] && !U())
4199
4205
  return;
4200
- const L = O ? N.request.url : N;
4201
- f[E] = !0;
4202
- const P = L.replace(
4206
+ const B = w ? A.request.url : A;
4207
+ f[R] = !0;
4208
+ const C = B.replace(
4203
4209
  /{{([^}]+)}}/g,
4204
- (I, B) => String(
4205
- J({
4206
- code: B,
4210
+ (O, j) => String(
4211
+ Q({
4212
+ code: j,
4207
4213
  context: e.context || {},
4208
4214
  localState: void 0,
4209
4215
  rootState: e.builderContextSignal.rootState,
4210
4216
  rootSetState: e.builderContextSignal.rootSetState
4211
4217
  })
4212
4218
  )
4213
- ), D = O ? {
4214
- url: P,
4215
- method: N.request.method,
4216
- headers: N.request.headers,
4217
- body: N.request.body
4219
+ ), W = w ? {
4220
+ url: C,
4221
+ method: A.request.method,
4222
+ headers: A.request.headers,
4223
+ body: A.request.body
4218
4224
  } : {
4219
- url: P,
4225
+ url: C,
4220
4226
  method: "GET"
4221
4227
  };
4222
- Fe(JSON.stringify(D)), fetch(D.url, {
4223
- method: D.method,
4224
- headers: D.headers,
4225
- body: D.body
4226
- }).then((I) => I.json()).then((I) => {
4227
- n({
4228
- [E]: I
4229
- }), c[E] = !0;
4230
- }).catch((I) => {
4228
+ Fe(JSON.stringify(W));
4229
+ const L = {
4230
+ method: W.method,
4231
+ headers: W.headers,
4232
+ body: W.body
4233
+ };
4234
+ W.method === "GET" && delete L.body, fetch(W.url, L).then((O) => O.json()).then((O) => {
4235
+ o({
4236
+ [R]: O
4237
+ }), u[R] = !0;
4238
+ }).catch((O) => {
4231
4239
  console.error(
4232
4240
  "error fetching dynamic data",
4233
- JSON.stringify(N),
4234
- I
4241
+ JSON.stringify(A),
4242
+ O
4235
4243
  );
4236
4244
  }).finally(() => {
4237
- f[E] = !1;
4245
+ f[R] = !1;
4238
4246
  });
4239
4247
  }
4240
4248
  );
4241
4249
  }
4242
- function p() {
4243
- _() && window.dispatchEvent(
4250
+ function E() {
4251
+ U() && window.dispatchEvent(
4244
4252
  new CustomEvent(
4245
4253
  "builder:component:stateChange",
4246
4254
  {
@@ -4254,11 +4262,11 @@ function Pi(e) {
4254
4262
  )
4255
4263
  );
4256
4264
  }
4257
- const y = H(!1);
4258
- return y.current || (h(), p(), y.current = !0), V(() => {
4259
- var T, w, g, x, E;
4260
- if (K()) {
4261
- _() && !e.isNestedRender && (window.addEventListener("message", l), lt({
4265
+ const _ = z(!1);
4266
+ return _.current || (T(), E(), _.current = !0), N(() => {
4267
+ var v, I, V, $, R;
4268
+ if (G()) {
4269
+ U() && !e.isNestedRender && (window.addEventListener("message", g), lt({
4262
4270
  ...e.locale ? {
4263
4271
  locale: e.locale
4264
4272
  } : {},
@@ -4268,89 +4276,97 @@ function Pi(e) {
4268
4276
  ...e.trustedHosts ? {
4269
4277
  trustedHosts: e.trustedHosts
4270
4278
  } : {},
4271
- modelName: (T = e.model) != null ? T : "",
4279
+ modelName: (v = e.model) != null ? v : "",
4272
4280
  apiKey: e.apiKey
4273
4281
  }), Object.values(
4274
4282
  e.builderContextSignal.componentInfos
4275
- ).forEach((P) => {
4276
- var D, I;
4277
- if (!((D = P.models) != null && D.length) || P.models.includes(e.model)) {
4278
- const B = st(P);
4279
- (I = window.parent) == null || I.postMessage(B, "*");
4283
+ ).forEach((C) => {
4284
+ var W, L;
4285
+ if (!((W = C.models) != null && W.length) || C.models.includes(e.model)) {
4286
+ const O = st(C);
4287
+ (L = window.parent) == null || L.postMessage(O, "*");
4280
4288
  }
4281
4289
  }), window.addEventListener(
4282
4290
  "builder:component:stateChangeListenerActivated",
4283
- p
4291
+ E
4284
4292
  ));
4285
- const N = e.builderContextSignal.content && X(e.canTrack), O = ct({
4286
- name: `builder.tests.${(w = e.builderContextSignal.content) == null ? void 0 : w.id}`,
4293
+ const A = e.builderContextSignal.content && Z(e.canTrack), w = ct({
4294
+ name: `builder.tests.${(I = e.builderContextSignal.content) == null ? void 0 : I.id}`,
4287
4295
  canTrack: !0
4288
- }), L = (g = e.builderContextSignal.content) == null ? void 0 : g.testVariationId;
4289
- if (N && L === O) {
4290
- const P = (x = e.builderContextSignal.content) == null ? void 0 : x.id, D = e.apiKey;
4296
+ }), B = (V = e.builderContextSignal.content) == null ? void 0 : V.testVariationId;
4297
+ if (A && B === w) {
4298
+ const C = ($ = e.builderContextSignal.content) == null ? void 0 : $.id, W = e.apiKey;
4291
4299
  Te({
4292
4300
  apiHost: e.apiHost,
4293
4301
  type: "impression",
4294
4302
  canTrack: !0,
4295
- contentId: P,
4296
- apiKey: D,
4297
- variationId: O !== P ? O : void 0
4303
+ contentId: C,
4304
+ apiKey: W,
4305
+ variationId: w !== C ? w : void 0
4298
4306
  });
4299
4307
  }
4300
- if (le() && !_()) {
4301
- const P = new URL(location.href).searchParams, D = P.get("builder.preview"), I = P.get(
4302
- `builder.overrides.${D}`
4303
- ), B = P.get("apiKey") || P.get("builder.space");
4304
- (D === "BUILDER_STUDIO" || D === e.model && B === e.apiKey && (!e.content || I === e.content.id)) && Oe({
4308
+ if (le() && !U()) {
4309
+ const C = new URL(location.href).searchParams, W = C.get("builder.preview"), L = C.get(
4310
+ `builder.overrides.${W}`
4311
+ ), O = C.get("apiKey") || C.get("builder.space");
4312
+ (W === "BUILDER_STUDIO" || W === e.model && O === e.apiKey && (!e.content || L === e.content.id)) && Le({
4305
4313
  model: e.model,
4306
4314
  apiKey: e.apiKey,
4307
4315
  apiVersion: e.builderContextSignal.apiVersion,
4308
- ...D === "BUILDER_STUDIO" && ((E = e.context) != null && E.symbolId) ? {
4316
+ ...W === "BUILDER_STUDIO" && ((R = e.context) != null && R.symbolId) ? {
4309
4317
  query: {
4310
4318
  id: e.context.symbolId
4311
4319
  }
4312
4320
  } : {}
4313
- }).then(($) => {
4314
- $ && i($);
4321
+ }).then((j) => {
4322
+ j && l(j);
4315
4323
  });
4316
4324
  }
4317
4325
  }
4318
- }, []), V(() => {
4319
- e.content && i(e.content);
4320
- }, [e.content]), V(() => {
4321
- p();
4322
- }, [e.builderContextSignal.rootState]), V(() => {
4323
- e.data && n(e.data);
4324
- }, [e.data]), V(() => {
4325
- e.locale && n({
4326
- locale: e.locale
4327
- });
4328
- }, [e.locale]), V(() => () => {
4329
- K() && (window.removeEventListener("message", l), window.removeEventListener(
4326
+ }, []), N(() => {
4327
+ e.content && l(e.content);
4328
+ }, [e.content]), N(() => {
4329
+ E();
4330
+ }, [e.builderContextSignal.rootState]), N(() => {
4331
+ if (e.data) {
4332
+ if (n === e.data)
4333
+ return;
4334
+ o(e.data), i(e.data);
4335
+ }
4336
+ }, [e.data]), N(() => {
4337
+ if (e.locale) {
4338
+ if (r === e.locale)
4339
+ return;
4340
+ o({
4341
+ locale: e.locale
4342
+ }), a(e.locale);
4343
+ }
4344
+ }, [e.locale]), N(() => () => {
4345
+ G() && (window.removeEventListener("message", g), window.removeEventListener(
4330
4346
  "builder:component:stateChangeListenerActivated",
4331
- p
4347
+ E
4332
4348
  ));
4333
4349
  }, []), /* @__PURE__ */ s(ve.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || We() ? /* @__PURE__ */ s(
4334
- o,
4350
+ d,
4335
4351
  {
4336
4352
  ref: t,
4337
- onClick: (T) => d(T),
4338
- "builder-content-id": (S = e.builderContextSignal.content) == null ? void 0 : S.id,
4353
+ onClick: (v) => S(v),
4354
+ "builder-content-id": (H = e.builderContextSignal.content) == null ? void 0 : H.id,
4339
4355
  "builder-model": e.model,
4340
4356
  className: Ri(
4341
- ((k = e.content) == null ? void 0 : k.testVariationId) || ((A = e.content) == null ? void 0 : A.id)
4357
+ ((q = e.content) == null ? void 0 : q.testVariationId) || ((p = e.content) == null ? void 0 : p.id)
4342
4358
  ),
4343
4359
  style: {
4344
4360
  display: !e.builderContextSignal.content && We() ? "none" : void 0
4345
4361
  },
4346
- ...r(),
4362
+ ...c(),
4347
4363
  ...e.contentWrapperProps,
4348
4364
  children: e.children
4349
4365
  }
4350
4366
  ) : null });
4351
4367
  }
4352
4368
  function Vi(e) {
4353
- const [t, n] = C(
4369
+ const [t, n] = k(
4354
4370
  () => `
4355
4371
  ${Ii({
4356
4372
  cssCode: e.cssCode,
@@ -4363,7 +4379,7 @@ ${Ei(e.isNestedRender)}
4363
4379
  `.trim()
4364
4380
  );
4365
4381
  return /* @__PURE__ */ s(
4366
- ee,
4382
+ te,
4367
4383
  {
4368
4384
  id: "builderio-content",
4369
4385
  styles: t,
@@ -4376,9 +4392,9 @@ const Ai = ({
4376
4392
  data: t,
4377
4393
  locale: n
4378
4394
  }) => {
4379
- var o, a, l;
4380
- const i = {}, r = ((o = e == null ? void 0 : e.data) == null ? void 0 : o.state) || {};
4381
- return (l = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || l.forEach((c) => {
4395
+ var a, o, l;
4396
+ const i = {}, r = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
4397
+ return (l = (o = e == null ? void 0 : e.data) == null ? void 0 : o.inputs) == null || l.forEach((c) => {
4382
4398
  c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
4383
4399
  }), {
4384
4400
  ...i,
@@ -4400,39 +4416,39 @@ const Ai = ({
4400
4416
  meta: e == null ? void 0 : e.meta
4401
4417
  } : void 0;
4402
4418
  function De(e) {
4403
- var u, f, b, m, v, d, h, p, y;
4404
- const [t, n] = C(
4419
+ var d, h, g, u, x, f, m, y, b;
4420
+ const [t, n] = k(
4405
4421
  () => {
4406
- var S, k;
4422
+ var S, T;
4407
4423
  return pi({
4408
4424
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4409
4425
  variationId: (S = e.content) == null ? void 0 : S.testVariationId,
4410
4426
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4411
- contentId: (k = e.content) == null ? void 0 : k.id
4427
+ contentId: (T = e.content) == null ? void 0 : T.id
4412
4428
  });
4413
4429
  }
4414
4430
  );
4415
4431
  function i(S) {
4416
- l((k) => ({
4417
- ...k,
4432
+ l((T) => ({
4433
+ ...T,
4418
4434
  rootState: S
4419
4435
  }));
4420
4436
  }
4421
- const [r, o] = C(
4437
+ const [r, a] = k(
4422
4438
  () => [
4423
4439
  ...Be(),
4424
4440
  ...e.customComponents || []
4425
4441
  ].reduce(
4426
- (S, { component: k, ...A }) => ({
4442
+ (S, { component: T, ...E }) => ({
4427
4443
  ...S,
4428
- [A.name]: {
4429
- component: k,
4430
- ...Ie(A)
4444
+ [E.name]: {
4445
+ component: T,
4446
+ ...Ie(E)
4431
4447
  }
4432
4448
  }),
4433
4449
  {}
4434
4450
  )
4435
- ), [a, l] = C(() => ({
4451
+ ), [o, l] = k(() => ({
4436
4452
  content: Bi({
4437
4453
  content: e.content,
4438
4454
  data: e.data
@@ -4452,9 +4468,9 @@ function De(e) {
4452
4468
  ...Be(),
4453
4469
  ...e.customComponents || []
4454
4470
  ].reduce(
4455
- (S, { component: k, ...A }) => ({
4471
+ (S, { component: T, ...E }) => ({
4456
4472
  ...S,
4457
- [A.name]: Ie(A)
4473
+ [E.name]: Ie(E)
4458
4474
  }),
4459
4475
  {}
4460
4476
  ),
@@ -4463,19 +4479,19 @@ function De(e) {
4463
4479
  BlocksWrapperProps: e.blocksWrapperProps || {},
4464
4480
  nonce: e.nonce || "",
4465
4481
  model: e.model
4466
- })), c = H(!1);
4482
+ })), c = z(!1);
4467
4483
  if (!c.current) {
4468
- e.apiKey || Z.error(
4484
+ e.apiKey || ee.error(
4469
4485
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4470
4486
  );
4471
- const S = (f = (u = a.content) == null ? void 0 : u.data) == null ? void 0 : f.jsCode;
4472
- S && J({
4487
+ const S = (h = (d = o.content) == null ? void 0 : d.data) == null ? void 0 : h.jsCode;
4488
+ S && Q({
4473
4489
  code: S,
4474
4490
  context: e.context || {},
4475
4491
  localState: void 0,
4476
- rootState: a.rootState,
4477
- rootSetState: (k) => {
4478
- Object.assign(a.rootState, k);
4492
+ rootState: o.rootState,
4493
+ rootSetState: (T) => {
4494
+ Object.assign(o.rootState, T);
4479
4495
  },
4480
4496
  isExpression: !1
4481
4497
  }), c.current = !0;
@@ -4486,7 +4502,7 @@ function De(e) {
4486
4502
  value: {
4487
4503
  registeredComponents: r
4488
4504
  },
4489
- children: /* @__PURE__ */ W(
4505
+ children: /* @__PURE__ */ D(
4490
4506
  Pi,
4491
4507
  {
4492
4508
  apiHost: e.apiHost,
@@ -4500,7 +4516,7 @@ function De(e) {
4500
4516
  locale: e.locale,
4501
4517
  enrich: e.enrich,
4502
4518
  showContent: e.showContent,
4503
- builderContextSignal: a,
4519
+ builderContextSignal: o,
4504
4520
  contentWrapper: e.contentWrapper,
4505
4521
  contentWrapperProps: e.contentWrapperProps,
4506
4522
  trustedHosts: e.trustedHosts,
@@ -4508,7 +4524,7 @@ function De(e) {
4508
4524
  setBuilderContextSignal: l,
4509
4525
  children: [
4510
4526
  e.isSsrAbTest ? /* @__PURE__ */ s(
4511
- q,
4527
+ K,
4512
4528
  {
4513
4529
  id: "builderio-variant-visibility",
4514
4530
  scriptStr: t,
@@ -4520,16 +4536,16 @@ function De(e) {
4520
4536
  {
4521
4537
  nonce: e.nonce || "",
4522
4538
  isNestedRender: e.isNestedRender,
4523
- contentId: (b = a.content) == null ? void 0 : b.id,
4524
- cssCode: (v = (m = a.content) == null ? void 0 : m.data) == null ? void 0 : v.cssCode,
4525
- customFonts: (h = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : h.customFonts
4539
+ contentId: (g = o.content) == null ? void 0 : g.id,
4540
+ cssCode: (x = (u = o.content) == null ? void 0 : u.data) == null ? void 0 : x.cssCode,
4541
+ customFonts: (m = (f = o.content) == null ? void 0 : f.data) == null ? void 0 : m.customFonts
4526
4542
  }
4527
4543
  ),
4528
4544
  /* @__PURE__ */ s(
4529
- U,
4545
+ M,
4530
4546
  {
4531
- blocks: (y = (p = a.content) == null ? void 0 : p.data) == null ? void 0 : y.blocks,
4532
- context: a,
4547
+ blocks: (b = (y = o.content) == null ? void 0 : y.data) == null ? void 0 : b.blocks,
4548
+ context: o,
4533
4549
  registeredComponents: r,
4534
4550
  linkComponent: e.linkComponent
4535
4551
  }
@@ -4541,10 +4557,10 @@ function De(e) {
4541
4557
  );
4542
4558
  }
4543
4559
  function Ni(e) {
4544
- var a;
4545
- const [t, n] = C(
4560
+ var o;
4561
+ const [t, n] = k(
4546
4562
  () => fi({
4547
- canTrack: X(e.canTrack),
4563
+ canTrack: Z(e.canTrack),
4548
4564
  content: e.content
4549
4565
  })
4550
4566
  );
@@ -4561,29 +4577,29 @@ function Ni(e) {
4561
4577
  function r() {
4562
4578
  return ae(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
4563
4579
  }
4564
- function o() {
4580
+ function a() {
4565
4581
  var l;
4566
4582
  return t ? {
4567
4583
  ...e.content,
4568
4584
  testVariationId: (l = e.content) == null ? void 0 : l.id
4569
4585
  } : dt({
4570
4586
  item: e.content,
4571
- canTrack: X(e.canTrack)
4587
+ canTrack: Z(e.canTrack)
4572
4588
  });
4573
4589
  }
4574
- return V(() => {
4575
- }, []), /* @__PURE__ */ W(R, { children: [
4576
- !e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */ W(R, { children: [
4590
+ return N(() => {
4591
+ }, []), /* @__PURE__ */ D(P, { children: [
4592
+ !e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */ D(P, { children: [
4577
4593
  /* @__PURE__ */ s(
4578
- q,
4594
+ K,
4579
4595
  {
4580
4596
  id: "builderio-init-variants-fns",
4581
- scriptStr: bi(),
4597
+ scriptStr: gi(),
4582
4598
  nonce: e.nonce || ""
4583
4599
  }
4584
4600
  ),
4585
4601
  nt.includes(F) ? /* @__PURE__ */ s(
4586
- q,
4602
+ K,
4587
4603
  {
4588
4604
  id: "builderio-init-personalization-variants-fns",
4589
4605
  nonce: e.nonce || "",
@@ -4591,9 +4607,9 @@ function Ni(e) {
4591
4607
  }
4592
4608
  ) : null
4593
4609
  ] }) : null,
4594
- t ? /* @__PURE__ */ W(R, { children: [
4610
+ t ? /* @__PURE__ */ D(P, { children: [
4595
4611
  /* @__PURE__ */ s(
4596
- ee,
4612
+ te,
4597
4613
  {
4598
4614
  id: "builderio-variants",
4599
4615
  styles: r(),
@@ -4601,14 +4617,14 @@ function Ni(e) {
4601
4617
  }
4602
4618
  ),
4603
4619
  /* @__PURE__ */ s(
4604
- q,
4620
+ K,
4605
4621
  {
4606
4622
  id: "builderio-variants-visibility",
4607
4623
  scriptStr: i(),
4608
4624
  nonce: e.nonce || ""
4609
4625
  }
4610
4626
  ),
4611
- (a = ae(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
4627
+ (o = ae(e.content)) == null ? void 0 : o.map((l) => /* @__PURE__ */ s(
4612
4628
  De,
4613
4629
  {
4614
4630
  apiHost: e.apiHost,
@@ -4642,7 +4658,7 @@ function Ni(e) {
4642
4658
  apiHost: e.apiHost,
4643
4659
  nonce: e.nonce,
4644
4660
  isNestedRender: e.isNestedRender,
4645
- content: o(),
4661
+ content: a(),
4646
4662
  showContent: !0,
4647
4663
  model: e.model,
4648
4664
  data: e.data,
@@ -4670,7 +4686,7 @@ const $i = async ({
4670
4686
  }) => {
4671
4687
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4672
4688
  (e != null && e.apiKey))
4673
- return Oe({
4689
+ return Le({
4674
4690
  model: t.model,
4675
4691
  apiKey: e.apiKey,
4676
4692
  apiVersion: e.apiVersion,
@@ -4680,11 +4696,11 @@ const $i = async ({
4680
4696
  }
4681
4697
  }
4682
4698
  }).catch((n) => {
4683
- Z.error("Could not fetch symbol content: ", n);
4699
+ ee.error("Could not fetch symbol content: ", n);
4684
4700
  });
4685
4701
  };
4686
4702
  function Wi(e) {
4687
- var u, f, b, m, v;
4703
+ var h, g, u, x, f;
4688
4704
  function t() {
4689
4705
  return "div";
4690
4706
  }
@@ -4692,35 +4708,38 @@ function Wi(e) {
4692
4708
  return "div";
4693
4709
  }
4694
4710
  function i() {
4695
- var d, h;
4711
+ return Object.values(e.builderComponents);
4712
+ }
4713
+ function r() {
4714
+ var m, y;
4696
4715
  return [
4697
- e.attributes[j()],
4716
+ e.attributes[J()],
4698
4717
  "builder-symbol",
4699
- (d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
4700
- (h = e.symbol) != null && h.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4718
+ (m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
4719
+ (y = e.symbol) != null && y.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4701
4720
  ].filter(Boolean).join(" ");
4702
4721
  }
4703
- const [r, o] = C(() => {
4704
- var d;
4705
- return (d = e.symbol) == null ? void 0 : d.content;
4706
- }), [a, l] = C(() => {
4707
- var d;
4708
- return (d = e.symbol) == null ? void 0 : d.entry;
4722
+ const [a, o] = k(() => {
4723
+ var m;
4724
+ return (m = e.symbol) == null ? void 0 : m.content;
4725
+ }), [l, c] = k(() => {
4726
+ var m;
4727
+ return (m = e.symbol) == null ? void 0 : m.entry;
4709
4728
  });
4710
- function c() {
4711
- var d;
4712
- r && a === ((d = e.symbol) == null ? void 0 : d.entry) || $i({
4729
+ function d() {
4730
+ var m;
4731
+ a && l === ((m = e.symbol) == null ? void 0 : m.entry) || $i({
4713
4732
  symbol: e.symbol,
4714
4733
  builderContextValue: e.builderContext
4715
- }).then((h) => {
4716
- var p;
4717
- h && (o(h), l((p = e.symbol) == null ? void 0 : p.entry));
4734
+ }).then((y) => {
4735
+ var b;
4736
+ y && (o(y), c((b = e.symbol) == null ? void 0 : b.entry));
4718
4737
  });
4719
4738
  }
4720
- return V(() => {
4721
- }, []), V(() => {
4722
- c();
4723
- }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
4739
+ return N(() => {
4740
+ }, []), N(() => {
4741
+ d();
4742
+ }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: r(), children: /* @__PURE__ */ s(
4724
4743
  Ni,
4725
4744
  {
4726
4745
  nonce: e.builderContext.nonce,
@@ -4729,17 +4748,17 @@ function Wi(e) {
4729
4748
  apiKey: e.builderContext.apiKey,
4730
4749
  context: {
4731
4750
  ...e.builderContext.context,
4732
- symbolId: (u = e.builderBlock) == null ? void 0 : u.id
4751
+ symbolId: (h = e.builderBlock) == null ? void 0 : h.id
4733
4752
  },
4734
- customComponents: Object.values(e.builderComponents),
4753
+ customComponents: i(),
4735
4754
  data: {
4736
- ...(f = e.symbol) == null ? void 0 : f.data,
4755
+ ...(g = e.symbol) == null ? void 0 : g.data,
4737
4756
  ...e.builderContext.localState,
4738
- ...(b = r == null ? void 0 : r.data) == null ? void 0 : b.state
4757
+ ...(u = a == null ? void 0 : a.data) == null ? void 0 : u.state
4739
4758
  },
4740
4759
  canTrack: e.builderContext.canTrack,
4741
- model: (v = (m = e.symbol) == null ? void 0 : m.model) != null ? v : "",
4742
- content: r,
4760
+ model: (f = (x = e.symbol) == null ? void 0 : x.model) != null ? f : "",
4761
+ content: a,
4743
4762
  linkComponent: e.builderLinkComponent,
4744
4763
  blocksWrapper: t(),
4745
4764
  contentWrapper: n()
@@ -4747,7 +4766,7 @@ function Wi(e) {
4747
4766
  ) });
4748
4767
  }
4749
4768
  export {
4750
- U as Blocks,
4769
+ M as Blocks,
4751
4770
  ve as BuilderContext,
4752
4771
  St as Button,
4753
4772
  cn as Columns,