@builder.io/sdk-react 5.2.2 → 5.2.4-dev.0

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 (70) hide show
  1. package/README.md +0 -4
  2. package/lib/browser/blocks-exports.cjs +36 -58
  3. package/lib/browser/blocks-exports.mjs +453 -481
  4. package/lib/browser/index.cjs +1 -1
  5. package/lib/browser/index.mjs +1 -1
  6. package/lib/browser/server-entry-32fde7d6.cjs +2 -0
  7. package/lib/browser/{server-entry-aff2c5ee.js → server-entry-3a0f3268.js} +1 -1
  8. package/lib/browser/server-entry.cjs +1 -1
  9. package/lib/browser/server-entry.mjs +1 -1
  10. package/lib/edge/{accordion-8b1afed8.cjs → accordion-0ac4b4bc.cjs} +1 -1
  11. package/lib/edge/{accordion-3144e69e.js → accordion-281685a7.js} +1 -1
  12. package/lib/edge/{blocks-5b2c456f.cjs → blocks-2bbe2b28.cjs} +1 -1
  13. package/lib/edge/{blocks-817f9485.js → blocks-ae2a49a7.js} +2 -2
  14. package/lib/edge/blocks-exports.cjs +1 -1
  15. package/lib/edge/blocks-exports.mjs +2 -2
  16. package/lib/edge/{button-ac5a0022.cjs → button-23adb9d5.cjs} +1 -1
  17. package/lib/edge/{button-cfe682cf.js → button-feb2e4c9.js} +2 -2
  18. package/lib/edge/{columns-1de197aa.js → columns-2bd52875.js} +3 -3
  19. package/lib/edge/{columns-e400b435.cjs → columns-def305cf.cjs} +1 -1
  20. package/lib/edge/{content-variants-c6ff157f.js → content-variants-415eac79.js} +303 -331
  21. package/lib/edge/{content-variants-7113e9cf.cjs → content-variants-ec418e63.cjs} +29 -51
  22. package/lib/edge/{custom-code-143b5a84.js → custom-code-14d05bee.js} +1 -1
  23. package/lib/edge/{custom-code-7616d00a.cjs → custom-code-e11c0386.cjs} +1 -1
  24. package/lib/edge/{embed-e6116e90.js → embed-16e83d02.js} +1 -1
  25. package/lib/edge/{embed-f68db9ab.cjs → embed-f9b142c0.cjs} +1 -1
  26. package/lib/edge/{form-bbe1e30e.js → form-74774087.js} +3 -3
  27. package/lib/edge/{form-3b66981f.cjs → form-9ffabbba.cjs} +1 -1
  28. package/lib/edge/{get-class-prop-name-13da1e6d.cjs → get-class-prop-name-2b1ea4eb.cjs} +1 -1
  29. package/lib/edge/{get-class-prop-name-541f7abc.js → get-class-prop-name-33cafbde.js} +1 -1
  30. package/lib/edge/{img-e4fe298b.cjs → img-1be5d2b3.cjs} +1 -1
  31. package/lib/edge/{img-89400807.js → img-8f36ecb0.js} +2 -2
  32. package/lib/edge/index.cjs +1 -1
  33. package/lib/edge/index.mjs +1 -1
  34. package/lib/edge/{input-4b0e20ac.js → input-11bbe245.js} +1 -1
  35. package/lib/edge/{input-9fd73d5f.cjs → input-8c205b02.cjs} +1 -1
  36. package/lib/edge/{personalization-container-adbe238a.cjs → personalization-container-22d0d6da.cjs} +1 -1
  37. package/lib/edge/{personalization-container-d4bfb7a9.js → personalization-container-9f86e2a4.js} +4 -4
  38. package/lib/edge/{select-53fe8822.js → select-badee915.js} +1 -1
  39. package/lib/edge/{select-93ec2e99.cjs → select-eadae9ec.cjs} +1 -1
  40. package/lib/edge/{server-entry-17b8ed52.js → server-entry-2c77147b.js} +1 -1
  41. package/lib/edge/{server-entry-92cd5eeb.cjs → server-entry-48caf9b2.cjs} +1 -1
  42. package/lib/edge/server-entry.cjs +1 -1
  43. package/lib/edge/server-entry.mjs +1 -1
  44. package/lib/edge/{slot-31cbb5b2.js → slot-0eab4674.js} +3 -3
  45. package/lib/edge/{slot-1d00a5ae.cjs → slot-7538f944.cjs} +1 -1
  46. package/lib/edge/{symbol-9aca7157.js → symbol-6e406f55.js} +2 -2
  47. package/lib/edge/{symbol-84c1857b.cjs → symbol-c8f06cf6.cjs} +1 -1
  48. package/lib/edge/{tabs-f8858f81.js → tabs-60cfbeee.js} +3 -3
  49. package/lib/edge/{tabs-a7d93c37.cjs → tabs-7bcc75e3.cjs} +1 -1
  50. package/lib/node/blocks-exports.cjs +36 -58
  51. package/lib/node/blocks-exports.mjs +538 -566
  52. package/lib/node/index.cjs +1 -1
  53. package/lib/node/index.mjs +3 -3
  54. package/lib/node/init.cjs +1 -1
  55. package/lib/node/init.mjs +3 -3
  56. package/lib/node/server-entry-519cd30a.cjs +2 -0
  57. package/lib/node/{server-entry-c3bc01a9.js → server-entry-91bd4af2.js} +1 -1
  58. package/lib/node/server-entry.cjs +1 -1
  59. package/lib/node/server-entry.mjs +1 -1
  60. package/lib/node/{setIvm-4dccb8f3.cjs → setIvm-c64cc674.cjs} +1 -1
  61. package/lib/node/{setIvm-f74f2921.js → setIvm-f5aa8580.js} +1 -1
  62. package/lib/node/setIvm.cjs +1 -1
  63. package/lib/node/setIvm.mjs +2 -2
  64. package/lib/node/{should-force-browser-runtime-in-node-1af30e6f.js → should-force-browser-runtime-in-node-098c4aa9.js} +1 -1
  65. package/lib/node/{should-force-browser-runtime-in-node-131d268b.cjs → should-force-browser-runtime-in-node-d60cd7d1.cjs} +1 -1
  66. package/package.json +1 -1
  67. package/types/components/content-variants/helpers.d.ts +0 -1
  68. package/types/constants/sdk-version.d.ts +1 -1
  69. package/lib/browser/server-entry-44ac782f.cjs +0 -2
  70. package/lib/node/server-entry-99ae937a.cjs +0 -2
@@ -1,16 +1,16 @@
1
1
  "use client";
2
- import { TARGET as F, isBrowser as G, logger as ee, checkIsDefined as ge, isPreviewing as oe, isEditing as U, userAttributesService as Te, getDefaultCanTrack as Z, logFetch as Le, setupBrowserForEditing as ct, createRegisterComponentMessage as ut, getCookieSync as dt, _track as Ie, fetchOneEntry as _e, createEditorListener as mt, serializeIncludingFunctions as we, handleABTestingSync as ft } from "./server-entry-c3bc01a9.js";
3
- import { setClientUserAttributes as ji } from "./server-entry-c3bc01a9.js";
4
- import { jsx as s, Fragment as P, jsxs as D } from "react/jsx-runtime";
5
- import * as ht from "react";
6
- import { createContext as Ue, useEffect as B, useState as k, useContext as ye, useRef as K, createElement as He } from "react";
7
- import { getFunctionArguments as bt, flattenState as gt, runInNode as yt, parseCode as pt, getBuilderGlobals as vt, set as Me, fastClone as ve } from "./setIvm-f74f2921.js";
8
- import { shouldForceBrowserRuntimeInNode as xt } from "./should-force-browser-runtime-in-node-1af30e6f.js";
9
- const St = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), kt = (e) => typeof e == "string" && St.has(e.toLowerCase());
10
- function xe(e) {
11
- return /* @__PURE__ */ s(P, { children: kt(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 }) }) });
2
+ import { TARGET as F, isBrowser as G, logger as ee, checkIsDefined as be, isPreviewing as oe, isEditing as U, userAttributesService as Ee, getDefaultCanTrack as Z, logFetch as Ue, setupBrowserForEditing as st, createRegisterComponentMessage as ct, getCookieSync as ut, _track as Re, fetchOneEntry as He, createEditorListener as dt, serializeIncludingFunctions as Pe, handleABTestingSync as mt } from "./server-entry-91bd4af2.js";
3
+ import { setClientUserAttributes as qi } from "./server-entry-91bd4af2.js";
4
+ import { jsx as s, Fragment as w, jsxs as D } from "react/jsx-runtime";
5
+ import * as ft from "react";
6
+ import { createContext as Me, useEffect as B, useState as k, useContext as ye, useRef as z, createElement as qe } from "react";
7
+ import { getFunctionArguments as ht, flattenState as gt, runInNode as bt, parseCode as yt, getBuilderGlobals as pt, set as je, fastClone as Se } from "./setIvm-f5aa8580.js";
8
+ import { shouldForceBrowserRuntimeInNode as vt } from "./should-force-browser-runtime-in-node-098c4aa9.js";
9
+ const xt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), St = (e) => typeof e == "string" && xt.has(e.toLowerCase());
10
+ function ke(e) {
11
+ return /* @__PURE__ */ s(w, { children: St(e.TagName) ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(w, { 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 z = () => {
13
+ const K = () => {
14
14
  switch (F) {
15
15
  case "react":
16
16
  case "reactNative":
@@ -24,11 +24,11 @@ const z = () => {
24
24
  return "class";
25
25
  }
26
26
  };
27
- function Ct(e) {
27
+ function kt(e) {
28
28
  function t() {
29
29
  return {
30
30
  ...e.attributes,
31
- [z()]: `${e.link ? "" : "builder-button"} ${e.attributes[z()] || ""}`,
31
+ [K()]: `${e.link ? "" : "builder-button"} ${e.attributes[K()] || ""}`,
32
32
  ...e.link ? {
33
33
  href: e.link,
34
34
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -39,7 +39,7 @@ function Ct(e) {
39
39
  };
40
40
  }
41
41
  return /* @__PURE__ */ s(
42
- xe,
42
+ ke,
43
43
  {
44
44
  attributes: t(),
45
45
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
@@ -48,7 +48,7 @@ function Ct(e) {
48
48
  }
49
49
  );
50
50
  }
51
- const le = Ue({
51
+ const le = Me({
52
52
  content: null,
53
53
  context: {},
54
54
  localState: void 0,
@@ -63,10 +63,10 @@ const le = Ue({
63
63
  BlocksWrapperProps: {},
64
64
  nonce: "",
65
65
  model: ""
66
- }), qe = Ue({ registeredComponents: {} }), je = (e, t, n) => {
66
+ }), ze = Me({ registeredComponents: {} }), Ke = (e, t, n) => {
67
67
  const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((a, r) => a != null ? a[r] : a, e);
68
68
  return i === void 0 || i === e ? n : i;
69
- }, Tt = ({
69
+ }, Ct = ({
70
70
  code: e,
71
71
  builder: t,
72
72
  context: n,
@@ -75,7 +75,7 @@ const le = Ue({
75
75
  rootSetState: r,
76
76
  rootState: o
77
77
  }) => {
78
- const l = bt({
78
+ const l = ht({
79
79
  builder: t,
80
80
  context: n,
81
81
  event: i,
@@ -86,11 +86,11 @@ const le = Ue({
86
86
  })
87
87
  });
88
88
  return new Function(...l.map(([c]) => c), e)(...l.map(([, c]) => c));
89
- }, It = (e) => G() || xt({
89
+ }, Tt = (e) => G() || vt({
90
90
  shouldLogWarning: !0
91
- }) ? Tt(e) : yt(e), wt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Et = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Rt = (e) => {
91
+ }) ? Ct(e) : bt(e), It = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, wt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Et = (e) => {
92
92
  var t, n, i, a, r, o;
93
- return ((i = (n = (t = wt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((o = (r = (a = Et.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : r.getPath) == null ? void 0 : o.slice(1));
93
+ return ((i = (n = (t = It.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((o = (r = (a = wt.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : r.getPath) == null ? void 0 : o.slice(1));
94
94
  };
95
95
  function Q({
96
96
  code: e,
@@ -104,17 +104,17 @@ function Q({
104
104
  }) {
105
105
  if (e.trim() === "")
106
106
  return;
107
- const c = Rt(e.trim());
107
+ const c = Et(e.trim());
108
108
  if (c)
109
- return je({
109
+ return Ke({
110
110
  ...i,
111
111
  ...n
112
112
  }, c);
113
113
  const d = {
114
- code: pt(e, {
114
+ code: yt(e, {
115
115
  isExpression: o
116
116
  }),
117
- builder: vt(l),
117
+ builder: pt(l),
118
118
  context: t,
119
119
  event: r,
120
120
  rootSetState: a,
@@ -122,7 +122,7 @@ function Q({
122
122
  localState: n
123
123
  };
124
124
  try {
125
- return It(d);
125
+ return Tt(d);
126
126
  } catch (h) {
127
127
  ee.error("Failed code evaluation: " + h.message, {
128
128
  code: e
@@ -130,15 +130,15 @@ function Q({
130
130
  return;
131
131
  }
132
132
  }
133
- function Pt(e, t) {
133
+ function Rt(e, t) {
134
134
  var n;
135
135
  return {
136
136
  ...(n = e.component) == null ? void 0 : n.options,
137
137
  ...e.options,
138
- ...Vt(e, t)
138
+ ...Pt(e, t)
139
139
  };
140
140
  }
141
- const Vt = (e, t) => {
141
+ const Pt = (e, t) => {
142
142
  var n, i;
143
143
  if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
144
144
  return {
@@ -152,7 +152,7 @@ const Vt = (e, t) => {
152
152
  }))
153
153
  };
154
154
  };
155
- function At(e, ...t) {
155
+ function Vt(e, ...t) {
156
156
  const n = Object.assign({}, e);
157
157
  for (const i of t)
158
158
  delete n[i];
@@ -175,29 +175,29 @@ function re(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
175
175
  }), re(o, t, e, r, a);
176
176
  }));
177
177
  }
178
- function Ke(e) {
178
+ function Je(e) {
179
179
  return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
180
180
  }
181
- function Bt(e) {
181
+ function At(e) {
182
182
  if (!e || !Object.getOwnPropertyNames(e).length)
183
183
  return !1;
184
184
  let t = !1;
185
185
  return re(e, (n) => {
186
- if (Ke(n)) {
186
+ if (Je(n)) {
187
187
  t = !0;
188
188
  return;
189
189
  }
190
190
  }), t;
191
191
  }
192
- function Nt(e, t) {
192
+ function Bt(e, t) {
193
193
  return !e || !Object.getOwnPropertyNames(e).length ? {} : (re(e, (n, i) => {
194
194
  var a;
195
- Ke(n) && i((a = n[t]) != null ? a : void 0);
195
+ Je(n) && i((a = n[t]) != null ? a : void 0);
196
196
  }), e);
197
197
  }
198
- function $t(e, t) {
198
+ function Nt(e, t) {
199
199
  var n, i;
200
- return (n = e.component) != null && n.options && Bt((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 = Nt(e.component.options, t != null ? t : "Default")), e;
200
+ return (n = e.component) != null && n.options && At((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 = Bt(e.component.options, t != null ? t : "Default")), e;
201
201
  }
202
202
  function pe(e) {
203
203
  if (e === null || typeof e != "object")
@@ -211,9 +211,9 @@ function pe(e) {
211
211
  n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = pe(e[n]));
212
212
  return t;
213
213
  }
214
- const Wt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), Dt = (e) => {
215
- if (Wt) {
216
- const t = ve(e);
214
+ const $t = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), Wt = (e) => {
215
+ if ($t) {
216
+ const t = Se(e);
217
217
  return {
218
218
  ...t,
219
219
  properties: {
@@ -224,7 +224,7 @@ const Wt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), Dt = (e) =
224
224
  }
225
225
  };
226
226
  } else {
227
- const t = pe(At(e, "children", "meta"));
227
+ const t = pe(Vt(e, "children", "meta"));
228
228
  return {
229
229
  ...t,
230
230
  properties: {
@@ -237,7 +237,7 @@ const Wt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), Dt = (e) =
237
237
  meta: e.meta
238
238
  };
239
239
  }
240
- }, Ft = ({
240
+ }, Dt = ({
241
241
  block: e,
242
242
  context: t,
243
243
  localState: n,
@@ -246,7 +246,7 @@ const Wt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), Dt = (e) =
246
246
  }) => {
247
247
  if (!e.bindings)
248
248
  return e;
249
- const r = Dt(e);
249
+ const r = Wt(e);
250
250
  for (const o in e.bindings) {
251
251
  const l = e.bindings[o], c = Q({
252
252
  code: l,
@@ -255,11 +255,11 @@ const Wt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), Dt = (e) =
255
255
  rootSetState: a,
256
256
  context: t
257
257
  });
258
- Me(r, o, c);
258
+ je(r, o, c);
259
259
  }
260
260
  return r;
261
261
  };
262
- function Ot({
262
+ function Ft({
263
263
  block: e,
264
264
  context: t,
265
265
  localState: n,
@@ -267,13 +267,13 @@ function Ot({
267
267
  rootSetState: a
268
268
  }) {
269
269
  let r = e;
270
- return r = Ft({
270
+ return r = Dt({
271
271
  block: r,
272
272
  localState: n,
273
273
  rootState: i,
274
274
  rootSetState: a,
275
275
  context: t
276
- }), r = $t(r, i.locale), r;
276
+ }), r = Nt(r, i.locale), r;
277
277
  }
278
278
  const se = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
279
279
  function Lt(e, t, n = {}) {
@@ -298,55 +298,55 @@ function X(e, ...t) {
298
298
  }
299
299
  return n;
300
300
  }
301
- function _t(e) {
301
+ function Ot(e) {
302
302
  for (const t of e)
303
303
  switch (t.trigger) {
304
304
  case "pageLoad":
305
- Ge(t);
305
+ Ye(t);
306
306
  break;
307
307
  case "scrollInView":
308
- Ht(t);
308
+ Ut(t);
309
309
  break;
310
310
  }
311
311
  }
312
- function ze(e) {
312
+ function Ge(e) {
313
313
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
314
314
  }
315
- function Je(e, t) {
316
- const n = Ut(e), i = getComputedStyle(t), a = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, o = [a, r];
315
+ function Qe(e, t) {
316
+ const n = _t(e), i = getComputedStyle(t), a = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, o = [a, r];
317
317
  for (const l of o)
318
318
  for (const c of n)
319
319
  c in l || (l[c] = i[c]);
320
320
  }
321
- function Ut(e) {
321
+ function _t(e) {
322
322
  const t = [];
323
323
  for (const n of e.steps)
324
324
  for (const i in n.styles)
325
325
  t.indexOf(i) === -1 && t.push(i);
326
326
  return t;
327
327
  }
328
- function Ge(e) {
328
+ function Ye(e) {
329
329
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
330
330
  if (!t.length) {
331
- ze(e.elementId || e.id || "");
331
+ Ge(e.elementId || e.id || "");
332
332
  return;
333
333
  }
334
334
  Array.from(t).forEach((n) => {
335
- Je(e, n), n.style.transition = "none", n.style.transitionDelay = "0", X(n.style, e.steps[0].styles), setTimeout(() => {
335
+ Qe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", X(n.style, e.steps[0].styles), setTimeout(() => {
336
336
  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(() => {
337
337
  n.style.transition = "", n.style.transitionDelay = "";
338
338
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
339
339
  });
340
340
  });
341
341
  }
342
- function Ht(e) {
342
+ function Ut(e) {
343
343
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
344
344
  if (!t.length) {
345
- ze(e.elementId || e.id || "");
345
+ Ge(e.elementId || e.id || "");
346
346
  return;
347
347
  }
348
348
  Array.from(t).forEach((n) => {
349
- Je(e, n);
349
+ Qe(e, n);
350
350
  let i = !1, a = !1;
351
351
  function r() {
352
352
  !i && l(n) ? (i = !0, a = !0, setTimeout(() => {
@@ -359,8 +359,8 @@ function Ht(e) {
359
359
  leading: !1
360
360
  });
361
361
  function l(h) {
362
- const g = h.getBoundingClientRect(), u = window.innerHeight, m = (e.thresholdPercent || 0) / 100 * u;
363
- return g.bottom > m && g.top < u - m;
362
+ const b = h.getBoundingClientRect(), u = window.innerHeight, m = (e.thresholdPercent || 0) / 100 * u;
363
+ return b.bottom > m && b.top < u - m;
364
364
  }
365
365
  const c = e.steps[0].styles;
366
366
  function d() {
@@ -374,42 +374,42 @@ function Ht(e) {
374
374
  }), r();
375
375
  });
376
376
  }
377
- const Qe = (e) => Object.entries(e).map(([n, i]) => {
377
+ const Xe = (e) => Object.entries(e).map(([n, i]) => {
378
378
  if (typeof i == "string")
379
379
  return `${se(n)}: ${i};`;
380
- }).filter(ge), Mt = (e) => Qe(e).join(`
380
+ }).filter(be), Ht = (e) => Xe(e).join(`
381
381
  `), Y = ({
382
382
  mediaQuery: e,
383
383
  className: t,
384
384
  styles: n
385
385
  }) => {
386
386
  const i = `.${t} {
387
- ${Mt(n)}
387
+ ${Ht(n)}
388
388
  }`;
389
389
  return e ? `${e} {
390
390
  ${i}
391
391
  }` : i;
392
392
  };
393
- function qt({
393
+ function Mt({
394
394
  style: e
395
395
  }) {
396
396
  return e;
397
397
  }
398
- const jt = ({
398
+ const qt = ({
399
399
  block: e,
400
400
  context: t
401
- }) => Ye(qt({
401
+ }) => Ze(Mt({
402
402
  style: e.style || {},
403
403
  context: t,
404
404
  block: e
405
405
  }));
406
- function Ye(e) {
406
+ function Ze(e) {
407
407
  switch (F) {
408
408
  case "svelte":
409
409
  case "vue":
410
410
  case "solid":
411
411
  case "angular":
412
- return Qe(e).join(" ");
412
+ return Xe(e).join(" ");
413
413
  case "qwik":
414
414
  case "reactNative":
415
415
  case "react":
@@ -417,7 +417,7 @@ function Ye(e) {
417
417
  return e;
418
418
  }
419
419
  }
420
- const Xe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Kt = ({
420
+ const et = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, jt = ({
421
421
  block: e,
422
422
  registeredComponents: t,
423
423
  model: n
@@ -427,7 +427,7 @@ const Xe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
427
427
  if (!i)
428
428
  return null;
429
429
  const a = t[i];
430
- if (!a || Xe(a, n)) {
430
+ if (!a || et(a, n)) {
431
431
  console.warn(`
432
432
  Could not find a registered component named "${i}".
433
433
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
@@ -467,31 +467,31 @@ const Xe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
467
467
  },
468
468
  block: i
469
469
  }));
470
- }, Jt = (e, t) => {
470
+ }, Kt = (e, t) => {
471
471
  var n;
472
472
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
473
473
  builderLinkComponent: t
474
474
  } : {};
475
- }, Gt = (e, t, n) => {
475
+ }, Jt = (e, t, n) => {
476
476
  var i;
477
477
  return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
478
- builderComponents: Object.fromEntries(Object.entries(t).filter(([r, o]) => !Xe(o, n)))
478
+ builderComponents: Object.fromEntries(Object.entries(t).filter(([r, o]) => !et(o, n)))
479
479
  } : {};
480
- }, Qt = (e, t) => {
480
+ }, Gt = (e, t) => {
481
481
  var n;
482
482
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
483
483
  builderBlock: t
484
484
  } : {};
485
- }, Yt = (e, t) => {
485
+ }, Qt = (e, t) => {
486
486
  var n;
487
487
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
488
488
  builderContext: t
489
489
  } : {};
490
- }, Ee = (e) => e.toString();
491
- function Xt(e) {
490
+ }, Ve = (e) => e.toString();
491
+ function Yt(e) {
492
492
  return e.charAt(0).toUpperCase() + e.slice(1);
493
493
  }
494
- const Zt = (e) => `on${Xt(e)}`, en = (e, t) => (n) => Q({
494
+ const Xt = (e) => `on${Yt(e)}`, Zt = (e, t) => (n) => Q({
495
495
  code: e,
496
496
  context: t.context,
497
497
  localState: t.localState,
@@ -501,14 +501,14 @@ const Zt = (e) => `on${Xt(e)}`, en = (e, t) => (n) => Q({
501
501
  isExpression: !1,
502
502
  trackingContext: t.trackingContext
503
503
  });
504
- function Ze(e) {
504
+ function tt(e) {
505
505
  var i;
506
506
  const t = {}, n = (i = e.block.actions) != null ? i : {};
507
507
  for (const a in n) {
508
508
  if (!n.hasOwnProperty(a))
509
509
  continue;
510
510
  const r = n[a];
511
- let o = Zt(a);
511
+ let o = Xt(a);
512
512
  if (e.stripPrefix)
513
513
  switch (F) {
514
514
  case "vue":
@@ -518,50 +518,50 @@ function Ze(e) {
518
518
  o = o.replace("on:", "");
519
519
  break;
520
520
  }
521
- t[o] = en(r, e);
521
+ t[o] = Zt(r, e);
522
522
  }
523
523
  return t;
524
524
  }
525
- function tn({
525
+ function en({
526
526
  properties: e
527
527
  }) {
528
528
  return e;
529
529
  }
530
- const nn = (e) => ({
530
+ const tn = (e) => ({
531
531
  href: e.href
532
532
  });
533
- function Se({
533
+ function Ce({
534
534
  block: e,
535
535
  context: t
536
536
  }) {
537
537
  var i;
538
538
  const n = {
539
- ...nn(e),
539
+ ...tn(e),
540
540
  ...e.properties,
541
541
  "builder-id": e.id,
542
- style: jt({
542
+ style: qt({
543
543
  block: e,
544
544
  context: t
545
545
  }),
546
- [z()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
546
+ [K()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
547
547
  };
548
- return tn({
548
+ return en({
549
549
  properties: n,
550
550
  context: t,
551
551
  block: e
552
552
  });
553
553
  }
554
- function an(e) {
554
+ function nn(e) {
555
555
  var t, n, i;
556
556
  return /* @__PURE__ */ s(
557
- xe,
557
+ ke,
558
558
  {
559
559
  TagName: e.Wrapper,
560
- attributes: Se({
560
+ attributes: Ce({
561
561
  block: e.block,
562
562
  context: e.context
563
563
  }),
564
- actionAttributes: Ze({
564
+ actionAttributes: tt({
565
565
  block: e.block,
566
566
  rootState: e.context.rootState,
567
567
  rootSetState: e.context.rootSetState,
@@ -579,21 +579,21 @@ function an(e) {
579
579
  }
580
580
  );
581
581
  }
582
- function rn(e) {
582
+ function an(e) {
583
583
  return B(() => {
584
- }, []), /* @__PURE__ */ s(P, { children: e.children });
584
+ }, []), /* @__PURE__ */ s(w, { children: e.children });
585
585
  }
586
- function on(e) {
586
+ function rn(e) {
587
587
  var i, a;
588
588
  k(() => 0);
589
589
  function t() {
590
590
  var r, o, l;
591
591
  return e.includeBlockProps ? {
592
- ...Se({
592
+ ...Ce({
593
593
  block: e.block,
594
594
  context: e.context
595
595
  }),
596
- ...Ze({
596
+ ...tt({
597
597
  block: e.block,
598
598
  rootState: e.context.rootState,
599
599
  rootSetState: e.context.rootSetState,
@@ -612,8 +612,8 @@ function on(e) {
612
612
  return e.wrapperProps;
613
613
  }
614
614
  return B(() => {
615
- }, [e.wrapperProps, (a = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : a.options]), /* @__PURE__ */ s(P, { children: e.Wrapper.load ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
616
- rn,
615
+ }, [e.wrapperProps, (a = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : a.options]), /* @__PURE__ */ s(w, { children: e.Wrapper.load ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
616
+ an,
617
617
  {
618
618
  load: e.Wrapper.load,
619
619
  fallback: e.Wrapper.fallback,
@@ -623,7 +623,7 @@ function on(e) {
623
623
  }
624
624
  ) }) : /* @__PURE__ */ s(e.Wrapper, { ...n(), attributes: t(), children: e.children }) });
625
625
  }
626
- const ln = ({
626
+ const on = ({
627
627
  componentOptions: e,
628
628
  builderBlock: t,
629
629
  context: n,
@@ -639,7 +639,7 @@ const ln = ({
639
639
  * component itself directly. Otherwise, they are provided to the wrapper element.
640
640
  */
641
641
  ...a ? {
642
- attributes: Se({
642
+ attributes: Ce({
643
643
  block: t,
644
644
  context: o
645
645
  })
@@ -653,19 +653,19 @@ const ln = ({
653
653
  includeBlockProps: a
654
654
  } : l;
655
655
  };
656
- function Re(e) {
656
+ function Ae(e) {
657
657
  var a;
658
658
  k(() => !1);
659
659
  const [t, n] = k(
660
- () => e.isInteractive ? on : e.componentRef
660
+ () => e.isInteractive ? rn : e.componentRef
661
661
  );
662
662
  function i() {
663
663
  return e.componentRef ? e.blockChildren : [];
664
664
  }
665
- return /* @__PURE__ */ s(P, { children: e.componentRef ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
665
+ return /* @__PURE__ */ s(w, { children: e.componentRef ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
666
666
  t,
667
667
  {
668
- ...ln({
668
+ ...on({
669
669
  componentOptions: e.componentOptions,
670
670
  builderBlock: e.builderBlock,
671
671
  context: e.context,
@@ -688,7 +688,7 @@ function Re(e) {
688
688
  }
689
689
  ) }) : null });
690
690
  }
691
- function Pe(e) {
691
+ function Be(e) {
692
692
  const [t, n] = k(() => e.repeatContext);
693
693
  return B(() => {
694
694
  n(e.repeatContext);
@@ -702,7 +702,7 @@ function Pe(e) {
702
702
  }
703
703
  ) });
704
704
  }
705
- const et = {
705
+ const nt = {
706
706
  xsmall: {
707
707
  min: 0,
708
708
  default: 160,
@@ -723,8 +723,8 @@ const et = {
723
723
  default: 991,
724
724
  max: 1200
725
725
  }
726
- }, ue = (e, t = et) => `@media (max-width: ${t[e].max}px)`, tt = (e) => {
727
- const t = ve(et);
726
+ }, ue = (e, t = nt) => `@media (max-width: ${t[e].max}px)`, it = (e) => {
727
+ const t = Se(nt);
728
728
  if (!e)
729
729
  return t;
730
730
  const {
@@ -772,16 +772,16 @@ function te(e) {
772
772
  }
773
773
  );
774
774
  }
775
- function Ve(e) {
775
+ function Ne(e) {
776
776
  function t() {
777
777
  const i = e.block;
778
- return ge(i.hide) ? !i.hide : ge(i.show) ? i.show : !0;
778
+ return be(i.hide) ? !i.hide : be(i.show) ? i.show : !0;
779
779
  }
780
780
  function n() {
781
- var T, w, _, H, q;
782
- const i = e.block, a = i.responsiveStyles, r = e.context.content, o = tt(
781
+ var T, E, _, H, q;
782
+ const i = e.block, a = i.responsiveStyles, r = e.context.content, o = it(
783
783
  ((T = r == null ? void 0 : r.meta) == null ? void 0 : T.breakpoints) || {}
784
- ), l = !!((_ = (w = r == null ? void 0 : r.meta) == null ? void 0 : w.breakpoints) != null && _.xsmall), c = a == null ? void 0 : a.large, d = a == null ? void 0 : a.medium, h = a == null ? void 0 : a.small, g = a == null ? void 0 : a.xsmall, u = i.id;
784
+ ), l = !!((_ = (E = r == null ? void 0 : r.meta) == null ? void 0 : E.breakpoints) != null && _.xsmall), c = a == null ? void 0 : a.large, d = a == null ? void 0 : a.medium, h = a == null ? void 0 : a.small, b = a == null ? void 0 : a.xsmall, u = i.id;
785
785
  if (!u)
786
786
  return "";
787
787
  const S = c ? Y({
@@ -794,16 +794,16 @@ function Ve(e) {
794
794
  "medium",
795
795
  o
796
796
  )
797
- }) : "", b = h ? Y({
797
+ }) : "", g = h ? Y({
798
798
  className: u,
799
799
  styles: h,
800
800
  mediaQuery: ue(
801
801
  "small",
802
802
  o
803
803
  )
804
- }) : "", p = g && l ? Y({
804
+ }) : "", p = b && l ? Y({
805
805
  className: u,
806
- styles: g,
806
+ styles: b,
807
807
  mediaQuery: ue(
808
808
  "xsmall",
809
809
  o
@@ -826,12 +826,12 @@ function Ve(e) {
826
826
  return [
827
827
  S,
828
828
  m,
829
- b,
829
+ g,
830
830
  p,
831
831
  v
832
832
  ].join(" ");
833
833
  }
834
- return /* @__PURE__ */ s(P, { children: n() && t() ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
834
+ return /* @__PURE__ */ s(w, { children: n() && t() ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
835
835
  te,
836
836
  {
837
837
  id: "builderio-block",
@@ -840,14 +840,14 @@ function Ve(e) {
840
840
  }
841
841
  ) }) : null });
842
842
  }
843
- function sn(e) {
843
+ function ln(e) {
844
844
  k(() => !1);
845
845
  const [t, n] = k(() => !1);
846
846
  return ye(le), B(() => {
847
- }, []), /* @__PURE__ */ s(P, { children: t ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(Ve, { block: e.block, context: e.context }) }) }) : /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(Ve, { block: e.block, context: e.context }) }) });
847
+ }, []), /* @__PURE__ */ s(w, { children: t ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(Ne, { block: e.block, context: e.context }) }) }) : /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(Ne, { block: e.block, context: e.context }) }) });
848
848
  }
849
849
  function ce(e) {
850
- var h, g, u, S;
850
+ var h, b, u, S;
851
851
  function t() {
852
852
  return zt({
853
853
  block: e.block,
@@ -859,10 +859,10 @@ function ce(e) {
859
859
  update: !1
860
860
  }));
861
861
  function a() {
862
- var b;
862
+ var g;
863
863
  if (n.value && !n.update && !oe())
864
864
  return n.value;
865
- const m = (b = e.block.repeat) != null && b.collection ? e.block : Ot({
865
+ const m = (g = e.block.repeat) != null && g.collection ? e.block : Ft({
866
866
  block: e.block,
867
867
  localState: e.context.localState,
868
868
  rootState: e.context.rootState,
@@ -872,15 +872,15 @@ function ce(e) {
872
872
  return n.value = m, n.update = !1, m;
873
873
  }
874
874
  function r() {
875
- return Kt({
875
+ return jt({
876
876
  block: a(),
877
877
  registeredComponents: e.registeredComponents,
878
878
  model: e.context.model
879
879
  });
880
880
  }
881
881
  function o() {
882
- var b;
883
- return e.block.tagName === "a" || ((b = a().properties) == null ? void 0 : b.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
882
+ var g;
883
+ return e.block.tagName === "a" || ((g = a().properties) == null ? void 0 : g.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
884
884
  }
885
885
  function l() {
886
886
  var p, f;
@@ -890,20 +890,20 @@ function ce(e) {
890
890
  return ("show" in a() ? a().show : !0) && !m;
891
891
  }
892
892
  function c() {
893
- var b, p;
894
- return !((b = r == null ? void 0 : r()) != null && b.component) && !t() ? (p = a().children) != null ? p : [] : [];
893
+ var g, p;
894
+ return !((g = r == null ? void 0 : r()) != null && g.component) && !t() ? (p = a().children) != null ? p : [] : [];
895
895
  }
896
896
  function d() {
897
- var m, b, p, f;
897
+ var m, g, p, f;
898
898
  return {
899
899
  blockChildren: (m = a().children) != null ? m : [],
900
- componentRef: (b = r == null ? void 0 : r()) == null ? void 0 : b.component,
900
+ componentRef: (g = r == null ? void 0 : r()) == null ? void 0 : g.component,
901
901
  componentOptions: {
902
- ...Pt(a(), e.context),
903
- ...Qt(r(), a()),
904
- ...Yt(r(), e.context),
905
- ...Jt(r(), e.linkComponent),
906
- ...Gt(
902
+ ...Rt(a(), e.context),
903
+ ...Gt(r(), a()),
904
+ ...Qt(r(), e.context),
905
+ ...Kt(r(), e.linkComponent),
906
+ ...Jt(
907
907
  r(),
908
908
  e.registeredComponents,
909
909
  e.context.model
@@ -918,35 +918,35 @@ function ce(e) {
918
918
  };
919
919
  }
920
920
  return B(() => {
921
- const m = a().id, b = a().animations;
922
- b && m && _t(
923
- b.map((p) => ({
921
+ const m = a().id, g = a().animations;
922
+ g && m && Ot(
923
+ g.map((p) => ({
924
924
  ...p,
925
925
  elementId: m
926
926
  }))
927
927
  );
928
928
  }, []), B(() => {
929
929
  n.update = !0;
930
- }), /* @__PURE__ */ s(P, { children: l() ? /* @__PURE__ */ D(P, { children: [
930
+ }), /* @__PURE__ */ s(w, { children: l() ? /* @__PURE__ */ D(w, { children: [
931
931
  /* @__PURE__ */ s(
932
- sn,
932
+ ln,
933
933
  {
934
934
  block: a(),
935
935
  context: e.context,
936
936
  id: e.block.id
937
937
  }
938
938
  ),
939
- (h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(P, { children: (S = t()) == null ? void 0 : S.map((m, b) => /* @__PURE__ */ s(
940
- Pe,
939
+ (h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(w, { children: (S = t()) == null ? void 0 : S.map((m, g) => /* @__PURE__ */ s(
940
+ Be,
941
941
  {
942
942
  repeatContext: m.context,
943
943
  block: m.block,
944
944
  registeredComponents: e.registeredComponents,
945
945
  linkComponent: e.linkComponent
946
946
  },
947
- Ee(b)
947
+ Ve(g)
948
948
  )) }) : /* @__PURE__ */ s(
949
- Re,
949
+ Ae,
950
950
  {
951
951
  componentRef: d().componentRef,
952
952
  componentOptions: d().componentOptions,
@@ -958,24 +958,24 @@ function ce(e) {
958
958
  includeBlockProps: d().includeBlockProps,
959
959
  isInteractive: d().isInteractive
960
960
  }
961
- ) : /* @__PURE__ */ s(P, { children: t() ? /* @__PURE__ */ s(P, { children: (u = t()) == null ? void 0 : u.map((m, b) => /* @__PURE__ */ s(
962
- Pe,
961
+ ) : /* @__PURE__ */ s(w, { children: t() ? /* @__PURE__ */ s(w, { children: (u = t()) == null ? void 0 : u.map((m, g) => /* @__PURE__ */ s(
962
+ Be,
963
963
  {
964
964
  repeatContext: m.context,
965
965
  block: m.block,
966
966
  registeredComponents: e.registeredComponents,
967
967
  linkComponent: e.linkComponent
968
968
  },
969
- Ee(b)
969
+ Ve(g)
970
970
  )) }) : /* @__PURE__ */ D(
971
- an,
971
+ nn,
972
972
  {
973
973
  Wrapper: o(),
974
974
  block: a(),
975
975
  context: e.context,
976
976
  children: [
977
977
  /* @__PURE__ */ s(
978
- Re,
978
+ Ae,
979
979
  {
980
980
  componentRef: d().componentRef,
981
981
  componentOptions: d().componentOptions,
@@ -988,7 +988,7 @@ function ce(e) {
988
988
  isInteractive: d().isInteractive
989
989
  }
990
990
  ),
991
- (g = c()) == null ? void 0 : g.map((m) => /* @__PURE__ */ s(
991
+ (b = c()) == null ? void 0 : b.map((m) => /* @__PURE__ */ s(
992
992
  ce,
993
993
  {
994
994
  block: m,
@@ -1003,8 +1003,8 @@ function ce(e) {
1003
1003
  ) })
1004
1004
  ] }) : null });
1005
1005
  }
1006
- function cn(e) {
1007
- const t = K(null);
1006
+ function sn(e) {
1007
+ const t = z(null);
1008
1008
  k(() => !1);
1009
1009
  function n() {
1010
1010
  var o;
@@ -1048,7 +1048,7 @@ function cn(e) {
1048
1048
  }
1049
1049
  return B(() => {
1050
1050
  }, []), B(() => {
1051
- }, [e.blocks]), /* @__PURE__ */ D(P, { children: [
1051
+ }, [e.blocks]), /* @__PURE__ */ D(w, { children: [
1052
1052
  /* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-b46bf284 {
1053
1053
  display: flex;
1054
1054
  flex-direction: column;
@@ -1073,9 +1073,9 @@ function cn(e) {
1073
1073
  }
1074
1074
  function M(e) {
1075
1075
  var i, a, r;
1076
- const t = ye(le), n = ye(qe);
1076
+ const t = ye(le), n = ye(ze);
1077
1077
  return /* @__PURE__ */ D(
1078
- cn,
1078
+ sn,
1079
1079
  {
1080
1080
  blocks: e.blocks,
1081
1081
  parent: e.parent,
@@ -1086,7 +1086,7 @@ function M(e) {
1086
1086
  BlocksWrapper: ((a = e.context) == null ? void 0 : a.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
1087
1087
  children: [
1088
1088
  e.children,
1089
- e.blocks ? /* @__PURE__ */ s(P, { children: (r = e.blocks) == null ? void 0 : r.map((o) => /* @__PURE__ */ s(
1089
+ e.blocks ? /* @__PURE__ */ s(w, { children: (r = e.blocks) == null ? void 0 : r.map((o) => /* @__PURE__ */ s(
1090
1090
  ce,
1091
1091
  {
1092
1092
  block: o,
@@ -1100,9 +1100,9 @@ function M(e) {
1100
1100
  }
1101
1101
  );
1102
1102
  }
1103
- const un = (e) => `builder-columns ${e}-breakpoints`;
1104
- function dn(e) {
1105
- var b, p;
1103
+ const cn = (e) => `builder-columns ${e}-breakpoints`;
1104
+ function un(e) {
1105
+ var g, p;
1106
1106
  function t() {
1107
1107
  return typeof e.space == "number" ? e.space || 0 : 20;
1108
1108
  }
@@ -1147,8 +1147,8 @@ function dn(e) {
1147
1147
  })
1148
1148
  };
1149
1149
  }
1150
- function g(f) {
1151
- const v = f === 0 ? 0 : t(), T = o(f), w = `${v}px`, _ = "100%", H = 0;
1150
+ function b(f) {
1151
+ const v = f === 0 ? 0 : t(), T = o(f), E = `${v}px`, _ = "100%", H = 0;
1152
1152
  return {
1153
1153
  ...{
1154
1154
  display: "flex",
@@ -1156,14 +1156,14 @@ function dn(e) {
1156
1156
  alignItems: "stretch"
1157
1157
  },
1158
1158
  width: T,
1159
- ["marginLeft"]: w,
1159
+ ["marginLeft"]: E,
1160
1160
  "--column-width-mobile": c({
1161
1161
  stackedStyle: _,
1162
1162
  desktopStyle: T
1163
1163
  }),
1164
1164
  "--column-margin-left-mobile": c({
1165
1165
  stackedStyle: H,
1166
- desktopStyle: w
1166
+ desktopStyle: E
1167
1167
  }),
1168
1168
  "--column-width-tablet": l({
1169
1169
  stackedStyle: _,
@@ -1171,14 +1171,14 @@ function dn(e) {
1171
1171
  }),
1172
1172
  "--column-margin-left-tablet": l({
1173
1173
  stackedStyle: H,
1174
- desktopStyle: w
1174
+ desktopStyle: E
1175
1175
  })
1176
1176
  };
1177
1177
  }
1178
1178
  function u(f) {
1179
- var T, w;
1180
- return tt(
1181
- ((w = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : w.breakpoints) || {}
1179
+ var T, E;
1180
+ return it(
1181
+ ((E = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : E.breakpoints) || {}
1182
1182
  )[f].max;
1183
1183
  }
1184
1184
  function S() {
@@ -1214,11 +1214,11 @@ function dn(e) {
1214
1214
  ...f.link ? {
1215
1215
  href: f.link
1216
1216
  } : {},
1217
- [z()]: "builder-column",
1218
- style: Ye(g(v))
1217
+ [K()]: "builder-column",
1218
+ style: Ze(b(v))
1219
1219
  };
1220
1220
  }
1221
- return /* @__PURE__ */ D(P, { children: [
1221
+ return /* @__PURE__ */ D(w, { children: [
1222
1222
  /* @__PURE__ */ s("style", { children: `.div-0369db37 {
1223
1223
  display: flex;
1224
1224
  line-height: normal;
@@ -1227,7 +1227,7 @@ function dn(e) {
1227
1227
  /* @__PURE__ */ D(
1228
1228
  "div",
1229
1229
  {
1230
- className: un((b = e.builderBlock) == null ? void 0 : b.id) + " div-0369db37",
1230
+ className: cn((g = e.builderBlock) == null ? void 0 : g.id) + " div-0369db37",
1231
1231
  style: h(),
1232
1232
  children: [
1233
1233
  /* @__PURE__ */ s(
@@ -1239,7 +1239,7 @@ function dn(e) {
1239
1239
  }
1240
1240
  ),
1241
1241
  (p = e.columns) == null ? void 0 : p.map((f, v) => /* @__PURE__ */ s(
1242
- xe,
1242
+ ke,
1243
1243
  {
1244
1244
  TagName: a(f),
1245
1245
  actionAttributes: {},
@@ -1266,25 +1266,25 @@ function dn(e) {
1266
1266
  )
1267
1267
  ] });
1268
1268
  }
1269
- function mn(e) {
1269
+ function dn(e) {
1270
1270
  return /* @__PURE__ */ s("span", { children: e.children });
1271
1271
  }
1272
- function Ae(e) {
1272
+ function $e(e) {
1273
1273
  return e.replace(/http(s)?:/, "");
1274
1274
  }
1275
- function fn(e = "", t, n) {
1275
+ function mn(e = "", t, n) {
1276
1276
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), a = e.indexOf("?") !== -1 ? "&" : "?";
1277
1277
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + a + t + "=" + encodeURIComponent(n);
1278
1278
  }
1279
- function hn(e, t) {
1279
+ function fn(e, t) {
1280
1280
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1281
1281
  return e;
1282
1282
  if (t === "master")
1283
- return Ae(e);
1283
+ return $e(e);
1284
1284
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1285
1285
  if (n) {
1286
1286
  const i = e.split(n[0]), a = n[3], r = t.match("x") ? t : `${t}x`;
1287
- return Ae(`${i[0]}_${r}${a}`);
1287
+ return $e(`${i[0]}_${r}${a}`);
1288
1288
  }
1289
1289
  return null;
1290
1290
  }
@@ -1295,26 +1295,26 @@ function de(e) {
1295
1295
  if (e.match(/builder\.io/)) {
1296
1296
  let n = e;
1297
1297
  const i = Number(e.split("?width=")[1]);
1298
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${fn(e, "width", a)} ${a}w`).concat([n]).join(", ");
1298
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${mn(e, "width", a)} ${a}w`).concat([n]).join(", ");
1299
1299
  }
1300
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [hn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1300
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [fn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1301
1301
  }
1302
- function bn(e) {
1302
+ function hn(e) {
1303
1303
  var a, r, o, l, c, d;
1304
1304
  function t() {
1305
1305
  var u;
1306
- const g = e.image || e.src;
1307
- if (!g || // We can auto add srcset for cdn.builder.io and shopify
1306
+ const b = e.image || e.src;
1307
+ if (!b || // We can auto add srcset for cdn.builder.io and shopify
1308
1308
  // images, otherwise you can supply this prop manually
1309
- !(typeof g == "string" && (g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/))))
1309
+ !(typeof b == "string" && (b.match(/builder\.io/) || b.match(/cdn\.shopify\.com/))))
1310
1310
  return e.srcset;
1311
1311
  if (!e.noWebp) {
1312
1312
  if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
1313
1313
  if (!e.srcset.includes(e.image.split("?")[0]))
1314
- return console.debug("Removed given srcset"), de(g);
1314
+ return console.debug("Removed given srcset"), de(b);
1315
1315
  } else if (e.image && !e.srcset)
1316
- return de(g);
1317
- return de(g);
1316
+ return de(b);
1317
+ return de(b);
1318
1318
  }
1319
1319
  }
1320
1320
  function n() {
@@ -1332,7 +1332,7 @@ function bn(e) {
1332
1332
  return e.aspectRatio ? h : void 0;
1333
1333
  }
1334
1334
  return B(() => {
1335
- }, []), /* @__PURE__ */ D(P, { children: [
1335
+ }, []), /* @__PURE__ */ D(w, { children: [
1336
1336
  /* @__PURE__ */ s("style", { children: `.img-3cc22d08 {
1337
1337
  opacity: 1;
1338
1338
  transition: opacity 0.2s ease-in-out;
@@ -1350,7 +1350,7 @@ function bn(e) {
1350
1350
  width: 100%;
1351
1351
  height: 100%;
1352
1352
  }` }),
1353
- /* @__PURE__ */ D(P, { children: [
1353
+ /* @__PURE__ */ D(w, { children: [
1354
1354
  /* @__PURE__ */ D("picture", { children: [
1355
1355
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1356
1356
  /* @__PURE__ */ s(
@@ -1382,7 +1382,7 @@ function bn(e) {
1382
1382
  }
1383
1383
  }
1384
1384
  ) : null,
1385
- (l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(P, { children: e.children }) : null,
1385
+ (l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(w, { children: e.children }) : null,
1386
1386
  !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
1387
1387
  ] })
1388
1388
  ] });
@@ -1408,7 +1408,7 @@ function gn(e) {
1408
1408
  }
1409
1409
  );
1410
1410
  }
1411
- function yn(e, t, n, i) {
1411
+ function bn(e, t, n, i) {
1412
1412
  function a(d) {
1413
1413
  return typeof d == "string";
1414
1414
  }
@@ -1431,28 +1431,28 @@ function yn(e, t, n, i) {
1431
1431
  operator: S,
1432
1432
  value: p
1433
1433
  }));
1434
- const b = d[u];
1435
- if (Array.isArray(b))
1436
- return b.includes(m);
1434
+ const g = d[u];
1435
+ if (Array.isArray(g))
1436
+ return g.includes(m);
1437
1437
  switch (S) {
1438
1438
  case "is":
1439
- return b === m;
1439
+ return g === m;
1440
1440
  case "isNot":
1441
- return b !== m;
1441
+ return g !== m;
1442
1442
  case "contains":
1443
- return (a(b) || Array.isArray(b)) && b.includes(String(m));
1443
+ return (a(g) || Array.isArray(g)) && g.includes(String(m));
1444
1444
  case "startsWith":
1445
- return a(b) && b.startsWith(String(m));
1445
+ return a(g) && g.startsWith(String(m));
1446
1446
  case "endsWith":
1447
- return a(b) && b.endsWith(String(m));
1447
+ return a(g) && g.endsWith(String(m));
1448
1448
  case "greaterThan":
1449
- return r(b) && r(m) && b > m;
1449
+ return r(g) && r(m) && g > m;
1450
1450
  case "lessThan":
1451
- return r(b) && r(m) && b < m;
1451
+ return r(g) && r(m) && g < m;
1452
1452
  case "greaterThanOrEqualTo":
1453
- return r(b) && r(m) && b >= m;
1453
+ return r(g) && r(m) && g >= m;
1454
1454
  case "lessThanOrEqualTo":
1455
- return r(b) && r(m) && b <= m;
1455
+ return r(g) && r(m) && g <= m;
1456
1456
  default:
1457
1457
  return !1;
1458
1458
  }
@@ -1465,7 +1465,7 @@ function yn(e, t, n, i) {
1465
1465
  }, c = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
1466
1466
  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));
1467
1467
  }
1468
- const pn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
1468
+ const yn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
1469
1469
  if (!navigator.cookieEnabled) {
1470
1470
  return;
1471
1471
  }
@@ -1510,7 +1510,7 @@ const pn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
1510
1510
  thisScript.remove();
1511
1511
  }
1512
1512
  }
1513
- }`, vn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
1513
+ }`, pn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
1514
1514
  function isString(val) {
1515
1515
  return typeof val === 'string';
1516
1516
  }
@@ -1588,7 +1588,7 @@ const pn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
1588
1588
  return item.query.every(filter => {
1589
1589
  return objectMatchesQuery(userAttributes, filter);
1590
1590
  });
1591
- }`, xn = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
1591
+ }`, vn = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
1592
1592
  function getCookie(name) {
1593
1593
  const nameEQ = name + '=';
1594
1594
  const ca = document.cookie.split(';');
@@ -1626,11 +1626,11 @@ const pn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
1626
1626
  visibilityStylesEl.innerHTML = newStyleStr;
1627
1627
  }
1628
1628
  }
1629
- }`, ne = "default", Sn = "filterWithCustomTargeting", nt = "builderIoPersonalization", it = "updateVisibilityStylesScript", at = ["react", "vue", "svelte", "qwik"], ie = ["vue", "svelte", "qwik"];
1630
- function kn(e, t) {
1629
+ }`, ne = "default", xn = "filterWithCustomTargeting", at = "builderIoPersonalization", rt = "updateVisibilityStylesScript", ot = ["react", "vue", "svelte", "qwik"], ie = ["vue", "svelte", "qwik"];
1630
+ function Sn(e, t) {
1631
1631
  return !(e && e.length > 0) || !t ? !1 : ie.includes(F) ? !0 : !G();
1632
1632
  }
1633
- function Cn({
1633
+ function kn({
1634
1634
  variants: e,
1635
1635
  previewingIndex: t,
1636
1636
  isHydrated: n,
@@ -1669,11 +1669,11 @@ function Cn({
1669
1669
  }
1670
1670
  return r;
1671
1671
  }
1672
- const Tn = () => `
1673
- window.${Sn} = ${vn}
1674
- window.${nt} = ${pn}
1675
- window.${it} = ${xn}
1676
- `, rt = F === "react", In = (e, t, n) => `window.${nt}(${JSON.stringify(e)}, "${t}", ${rt}${n ? `, "${n}"` : ""})`, wn = (e, t, n) => `window.${it}(${JSON.stringify(e)}, "${t}", ${rt}${n ? `, "${n}"` : ""})`, me = {
1672
+ const Cn = () => `
1673
+ window.${xn} = ${pn}
1674
+ window.${at} = ${yn}
1675
+ window.${rt} = ${vn}
1676
+ `, lt = F === "react", Tn = (e, t, n) => `window.${at}(${JSON.stringify(e)}, "${t}", ${lt}${n ? `, "${n}"` : ""})`, In = (e, t, n) => `window.${rt}(${JSON.stringify(e)}, "${t}", ${lt}${n ? `, "${n}"` : ""})`, me = {
1677
1677
  "@type": "@builder.io/sdk:Element",
1678
1678
  layerName: "Accordion item title",
1679
1679
  responsiveStyles: {
@@ -1733,7 +1733,7 @@ const Tn = () => `
1733
1733
  }
1734
1734
  }
1735
1735
  }]
1736
- }, En = {
1736
+ }, wn = {
1737
1737
  name: "Builder:Accordion",
1738
1738
  canHaveChildren: !0,
1739
1739
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1797,9 +1797,9 @@ const Tn = () => `
1797
1797
  builderComponents: !0,
1798
1798
  builderLinkComponent: !0
1799
1799
  }
1800
- }, Be = (e) => e.toString();
1801
- function Rn(e) {
1802
- var g;
1800
+ }, We = (e) => e.toString();
1801
+ function En(e) {
1802
+ var b;
1803
1803
  const [t, n] = k(() => []);
1804
1804
  function i() {
1805
1805
  return !!(e.grid || e.oneAtATime);
@@ -1826,7 +1826,7 @@ function Rn(e) {
1826
1826
  cursor: "pointer"
1827
1827
  };
1828
1828
  return Object.fromEntries(
1829
- Object.entries(S).filter(([m, b]) => b !== void 0)
1829
+ Object.entries(S).filter(([m, g]) => g !== void 0)
1830
1830
  );
1831
1831
  }
1832
1832
  function o(u) {
@@ -1876,7 +1876,7 @@ function Rn(e) {
1876
1876
  function h(u) {
1877
1877
  t.includes(u) ? n(i() ? [] : t.filter((S) => S !== u)) : n(i() ? [u] : t.concat(u));
1878
1878
  }
1879
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (g = e.items) == null ? void 0 : g.map((u, S) => /* @__PURE__ */ D(ht.Fragment, { children: [
1879
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (b = e.items) == null ? void 0 : b.map((u, S) => /* @__PURE__ */ D(ft.Fragment, { children: [
1880
1880
  /* @__PURE__ */ s(
1881
1881
  "div",
1882
1882
  {
@@ -1885,7 +1885,7 @@ function Rn(e) {
1885
1885
  ...r(),
1886
1886
  ...e.grid && {
1887
1887
  width: e.gridRowWidth,
1888
- order: c() !== null ? Be(S) : Be(S + 1)
1888
+ order: c() !== null ? We(S) : We(S + 1)
1889
1889
  }
1890
1890
  },
1891
1891
  "data-index": S,
@@ -1923,7 +1923,7 @@ function Rn(e) {
1923
1923
  ) : null
1924
1924
  ] }, S)) });
1925
1925
  }
1926
- const Pn = {
1926
+ const Rn = {
1927
1927
  name: "Core:Button",
1928
1928
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1929
1929
  defaultStyles: {
@@ -1959,7 +1959,7 @@ const Pn = {
1959
1959
  shouldReceiveBuilderProps: {
1960
1960
  builderLinkComponent: !0
1961
1961
  }
1962
- }, Vn = {
1962
+ }, Pn = {
1963
1963
  // TODO: ways to statically preprocess JSON for references, functions, etc
1964
1964
  name: "Columns",
1965
1965
  isRSC: !0,
@@ -2166,13 +2166,13 @@ const Pn = {
2166
2166
  builderComponents: !0,
2167
2167
  builderLinkComponent: !0
2168
2168
  }
2169
- }, An = {
2169
+ }, Vn = {
2170
2170
  name: "Fragment",
2171
2171
  static: !0,
2172
2172
  hidden: !0,
2173
2173
  canHaveChildren: !0,
2174
2174
  noWrap: !0
2175
- }, ke = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], Bn = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], Nn = {
2175
+ }, Te = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], An = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], Bn = {
2176
2176
  name: "Image",
2177
2177
  static: !0,
2178
2178
  image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
@@ -2187,7 +2187,7 @@ const Pn = {
2187
2187
  name: "image",
2188
2188
  type: "file",
2189
2189
  bubble: !0,
2190
- allowedFileTypes: ke,
2190
+ allowedFileTypes: Te,
2191
2191
  required: !0,
2192
2192
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
2193
2193
  onChange: (e) => {
@@ -2195,13 +2195,13 @@ const Pn = {
2195
2195
  function n(o, l = 6e4) {
2196
2196
  return new Promise((c, d) => {
2197
2197
  const h = document.createElement("img");
2198
- let g = !1;
2198
+ let b = !1;
2199
2199
  h.onload = () => {
2200
- g = !0, c(h);
2200
+ b = !0, c(h);
2201
2201
  }, h.addEventListener("error", (u) => {
2202
2202
  console.warn("Image load failed", u.error), d(u.error);
2203
2203
  }), h.src = o, setTimeout(() => {
2204
- g || d(new Error("Image load timed out"));
2204
+ b || d(new Error("Image load timed out"));
2205
2205
  }, l);
2206
2206
  });
2207
2207
  }
@@ -2284,7 +2284,7 @@ const Pn = {
2284
2284
  shouldReceiveBuilderProps: {
2285
2285
  builderBlock: !0
2286
2286
  }
2287
- }, $n = {
2287
+ }, Nn = {
2288
2288
  name: "PersonalizationContainer",
2289
2289
  shouldReceiveBuilderProps: {
2290
2290
  builderBlock: !0,
@@ -2331,14 +2331,14 @@ function J(e) {
2331
2331
  }
2332
2332
  );
2333
2333
  }
2334
- function Wn(e) {
2335
- var v, T, w, _, H, q, y, x, V, A, $, E, R;
2336
- const t = K(null), [n, i] = k(
2337
- () => Te.getUserAttributes()
2334
+ function $n(e) {
2335
+ var v, T, E, _, H, q, y, x, V, A, $, R, P;
2336
+ const t = z(null), [n, i] = k(
2337
+ () => Ee.getUserAttributes()
2338
2338
  ), [a, r] = k(
2339
2339
  () => {
2340
2340
  var I, N, C;
2341
- return In(
2341
+ return Tn(
2342
2342
  e.variants,
2343
2343
  ((I = e.builderBlock) == null ? void 0 : I.id) || "none",
2344
2344
  (C = (N = e.builderContext) == null ? void 0 : N.rootState) == null ? void 0 : C.locale
@@ -2347,16 +2347,16 @@ function Wn(e) {
2347
2347
  ), [o, l] = k(
2348
2348
  () => {
2349
2349
  var I, N, C;
2350
- return wn(
2350
+ return In(
2351
2351
  e.variants,
2352
2352
  ((I = e.builderBlock) == null ? void 0 : I.id) || "none",
2353
2353
  (C = (N = e.builderContext) == null ? void 0 : N.rootState) == null ? void 0 : C.locale
2354
2354
  );
2355
2355
  }
2356
- ), [c, d] = k(() => []), [h, g] = k(
2356
+ ), [c, d] = k(() => []), [h, b] = k(
2357
2357
  () => {
2358
2358
  var I;
2359
- return kn(
2359
+ return Sn(
2360
2360
  e.variants,
2361
2361
  Z((I = e.builderContext) == null ? void 0 : I.canTrack)
2362
2362
  );
@@ -2365,16 +2365,16 @@ function Wn(e) {
2365
2365
  function m() {
2366
2366
  return {
2367
2367
  ...e.attributes,
2368
- [z()]: `builder-personalization-container ${e.attributes[z()] || ""}`
2368
+ [K()]: `builder-personalization-container ${e.attributes[K()] || ""}`
2369
2369
  };
2370
2370
  }
2371
- function b() {
2371
+ function g() {
2372
2372
  return (e.variants || []).filter((I) => {
2373
- var N, C, W, O;
2374
- return yn(
2373
+ var N, C, W, L;
2374
+ return bn(
2375
2375
  {
2376
2376
  ...(C = (N = e.builderContext) == null ? void 0 : N.rootState) != null && C.locale ? {
2377
- locale: (O = (W = e.builderContext) == null ? void 0 : W.rootState) == null ? void 0 : O.locale
2377
+ locale: (L = (W = e.builderContext) == null ? void 0 : W.rootState) == null ? void 0 : L.locale
2378
2378
  } : {},
2379
2379
  ...n
2380
2380
  },
@@ -2386,11 +2386,11 @@ function Wn(e) {
2386
2386
  }
2387
2387
  function p() {
2388
2388
  var I;
2389
- return Cn({
2389
+ return kn({
2390
2390
  variants: e.variants,
2391
2391
  fallbackBlocks: (I = e.builderBlock) == null ? void 0 : I.children,
2392
2392
  isHydrated: u,
2393
- filteredVariants: b(),
2393
+ filteredVariants: g(),
2394
2394
  previewingIndex: e.previewingIndex
2395
2395
  });
2396
2396
  }
@@ -2405,7 +2405,7 @@ function Wn(e) {
2405
2405
  return B(() => {
2406
2406
  var N;
2407
2407
  S(!0);
2408
- const I = Te.subscribeOnUserAttributesChange(
2408
+ const I = Ee.subscribeOnUserAttributesChange(
2409
2409
  (C) => {
2410
2410
  i(C);
2411
2411
  },
@@ -2414,7 +2414,7 @@ function Wn(e) {
2414
2414
  }
2415
2415
  );
2416
2416
  if (!(U() || oe())) {
2417
- const C = b()[0];
2417
+ const C = g()[0];
2418
2418
  t.current && (t.current.dispatchEvent(
2419
2419
  new CustomEvent("builder.variantLoaded", {
2420
2420
  detail: {
@@ -2423,10 +2423,10 @@ function Wn(e) {
2423
2423
  },
2424
2424
  bubbles: !0
2425
2425
  })
2426
- ), new IntersectionObserver((O) => {
2427
- O.forEach((L) => {
2426
+ ), new IntersectionObserver((L) => {
2427
+ L.forEach((O) => {
2428
2428
  var j;
2429
- L.isIntersecting && t.current && t.current.dispatchEvent(
2429
+ O.isIntersecting && t.current && t.current.dispatchEvent(
2430
2430
  new CustomEvent("builder.variantDisplayed", {
2431
2431
  detail: {
2432
2432
  variant: C || ne,
@@ -2452,12 +2452,12 @@ function Wn(e) {
2452
2452
  registeredComponents: e.builderComponents,
2453
2453
  BlocksWrapperProps: {
2454
2454
  ...(T = e.builderContext) == null ? void 0 : T.BlocksWrapperProps,
2455
- "data-variant-id": `${(w = e.builderBlock) == null ? void 0 : w.id}-${p().index}`
2455
+ "data-variant-id": `${(E = e.builderBlock) == null ? void 0 : E.id}-${p().index}`
2456
2456
  }
2457
2457
  }
2458
2458
  ) : null,
2459
- !u && ie.includes(F) || !ie.includes(F) ? /* @__PURE__ */ D(P, { children: [
2460
- h ? /* @__PURE__ */ D(P, { children: [
2459
+ !u && ie.includes(F) || !ie.includes(F) ? /* @__PURE__ */ D(w, { children: [
2460
+ h ? /* @__PURE__ */ D(w, { children: [
2461
2461
  /* @__PURE__ */ s(
2462
2462
  te,
2463
2463
  {
@@ -2475,7 +2475,7 @@ function Wn(e) {
2475
2475
  }
2476
2476
  ),
2477
2477
  (x = e.variants) == null ? void 0 : x.map((I, N) => {
2478
- var C, W, O, L, j, Ce;
2478
+ var C, W, L, O, j, we;
2479
2479
  return /* @__PURE__ */ s(
2480
2480
  M,
2481
2481
  {
@@ -2486,20 +2486,20 @@ function Wn(e) {
2486
2486
  "data-variant-id": `${(W = e.builderBlock) == null ? void 0 : W.id}-${N}`
2487
2487
  },
2488
2488
  blocks: I.blocks,
2489
- parent: (O = e.builderBlock) == null ? void 0 : O.id,
2489
+ parent: (L = e.builderBlock) == null ? void 0 : L.id,
2490
2490
  path: `component.options.variants.${N}.blocks`,
2491
2491
  context: e.builderContext,
2492
2492
  registeredComponents: e.builderComponents,
2493
2493
  children: /* @__PURE__ */ s(
2494
2494
  J,
2495
2495
  {
2496
- nonce: ((L = e.builderContext) == null ? void 0 : L.nonce) || "",
2496
+ nonce: ((O = e.builderContext) == null ? void 0 : O.nonce) || "",
2497
2497
  scriptStr: a,
2498
2498
  id: `variants-script-${(j = e.builderBlock) == null ? void 0 : j.id}-${N}`
2499
2499
  }
2500
2500
  )
2501
2501
  },
2502
- `${(Ce = e.builderBlock) == null ? void 0 : Ce.id}-${N}`
2502
+ `${(we = e.builderBlock) == null ? void 0 : we.id}-${N}`
2503
2503
  );
2504
2504
  })
2505
2505
  ] }) : null,
@@ -2518,9 +2518,9 @@ function Wn(e) {
2518
2518
  children: h ? /* @__PURE__ */ s(
2519
2519
  J,
2520
2520
  {
2521
- nonce: ((E = e.builderContext) == null ? void 0 : E.nonce) || "",
2521
+ nonce: ((R = e.builderContext) == null ? void 0 : R.nonce) || "",
2522
2522
  scriptStr: a,
2523
- id: `variants-script-${(R = e.builderBlock) == null ? void 0 : R.id}-${ne}`
2523
+ id: `variants-script-${(P = e.builderBlock) == null ? void 0 : P.id}-${ne}`
2524
2524
  }
2525
2525
  ) : null
2526
2526
  }
@@ -2528,7 +2528,7 @@ function Wn(e) {
2528
2528
  ] }) : null
2529
2529
  ] });
2530
2530
  }
2531
- const Dn = {
2531
+ const Wn = {
2532
2532
  name: "Core:Section",
2533
2533
  static: !0,
2534
2534
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -2567,7 +2567,7 @@ const Dn = {
2567
2567
  }
2568
2568
  }
2569
2569
  }]
2570
- }, Fn = {
2570
+ }, Dn = {
2571
2571
  name: "Slot",
2572
2572
  isRSC: !0,
2573
2573
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -2585,7 +2585,7 @@ const Dn = {
2585
2585
  builderComponents: !0
2586
2586
  }
2587
2587
  };
2588
- function On(e) {
2588
+ function Fn(e) {
2589
2589
  var t, n, i;
2590
2590
  return /* @__PURE__ */ s(
2591
2591
  "div",
@@ -2670,7 +2670,7 @@ const Ln = {
2670
2670
  text: "New tab"
2671
2671
  }
2672
2672
  }
2673
- }, be = {
2673
+ }, ge = {
2674
2674
  "@type": "@builder.io/sdk:Element",
2675
2675
  responsiveStyles: {
2676
2676
  large: {
@@ -2686,7 +2686,7 @@ const Ln = {
2686
2686
  text: "New tab content "
2687
2687
  }
2688
2688
  }
2689
- }, _n = {
2689
+ }, On = {
2690
2690
  name: "Builder: Tabs",
2691
2691
  inputs: [{
2692
2692
  name: "tabs",
@@ -2701,7 +2701,7 @@ const Ln = {
2701
2701
  name: "content",
2702
2702
  type: "uiBlocks",
2703
2703
  hideFromUI: !0,
2704
- defaultValue: [be]
2704
+ defaultValue: [ge]
2705
2705
  }],
2706
2706
  defaultValue: [{
2707
2707
  label: [{
@@ -2714,7 +2714,7 @@ const Ln = {
2714
2714
  }
2715
2715
  }],
2716
2716
  content: [{
2717
- ...be,
2717
+ ...ge,
2718
2718
  component: {
2719
2719
  name: "Text",
2720
2720
  options: {
@@ -2733,7 +2733,7 @@ const Ln = {
2733
2733
  }
2734
2734
  }],
2735
2735
  content: [{
2736
- ...be,
2736
+ ...ge,
2737
2737
  component: {
2738
2738
  name: "Text",
2739
2739
  options: {
@@ -2790,7 +2790,7 @@ const Ln = {
2790
2790
  builderLinkComponent: !0
2791
2791
  }
2792
2792
  };
2793
- function Un(e) {
2793
+ function _n(e) {
2794
2794
  var o;
2795
2795
  const [t, n] = k(
2796
2796
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
@@ -2850,7 +2850,7 @@ function Un(e) {
2850
2850
  ) }) : null
2851
2851
  ] });
2852
2852
  }
2853
- const Hn = {
2853
+ const Un = {
2854
2854
  shouldReceiveBuilderProps: {},
2855
2855
  name: "Text",
2856
2856
  static: !0,
@@ -2869,7 +2869,7 @@ const Hn = {
2869
2869
  textAlign: "center"
2870
2870
  }
2871
2871
  };
2872
- function Mn(e) {
2872
+ function Hn(e) {
2873
2873
  var t;
2874
2874
  return /* @__PURE__ */ s(
2875
2875
  "div",
@@ -2882,7 +2882,7 @@ function Mn(e) {
2882
2882
  }
2883
2883
  );
2884
2884
  }
2885
- const qn = {
2885
+ const Mn = {
2886
2886
  name: "Custom Code",
2887
2887
  static: !0,
2888
2888
  requiredPermissions: ["editCode"],
@@ -2905,8 +2905,8 @@ const qn = {
2905
2905
  advanced: !0
2906
2906
  }]
2907
2907
  };
2908
- function jn(e) {
2909
- const t = K(null), [n, i] = k(() => []), [a, r] = k(() => []);
2908
+ function qn(e) {
2909
+ const t = z(null), [n, i] = k(() => []), [a, r] = k(() => []);
2910
2910
  function o() {
2911
2911
  var c;
2912
2912
  if (!t.current || !((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
@@ -2918,8 +2918,8 @@ function jn(e) {
2918
2918
  if (n.includes(h.src))
2919
2919
  continue;
2920
2920
  n.push(h.src);
2921
- const g = document.createElement("script");
2922
- g.async = !0, g.src = h.src, document.head.appendChild(g);
2921
+ const b = document.createElement("script");
2922
+ b.async = !0, b.src = h.src, document.head.appendChild(b);
2923
2923
  } else if (!h.type || [
2924
2924
  "text/javascript",
2925
2925
  "application/javascript",
@@ -2929,10 +2929,10 @@ function jn(e) {
2929
2929
  continue;
2930
2930
  try {
2931
2931
  a.push(h.innerText), new Function(h.innerText)();
2932
- } catch (g) {
2932
+ } catch (b) {
2933
2933
  ee.warn(
2934
2934
  "[BUILDER.IO] `CustomCode`: Error running script:",
2935
- g
2935
+ b
2936
2936
  );
2937
2937
  }
2938
2938
  }
@@ -2951,7 +2951,7 @@ function jn(e) {
2951
2951
  }
2952
2952
  );
2953
2953
  }
2954
- const Kn = {
2954
+ const jn = {
2955
2955
  name: "Embed",
2956
2956
  static: !0,
2957
2957
  inputs: [{
@@ -2966,22 +2966,22 @@ const Kn = {
2966
2966
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2967
2967
  hideFromUI: !0
2968
2968
  }]
2969
- }, zn = ["text/javascript", "application/javascript", "application/ecmascript"], Jn = (e) => zn.includes(e.type);
2970
- function Gn(e) {
2971
- const t = K(null), [n, i] = k(() => []), [a, r] = k(() => []), [o, l] = k(() => !1);
2969
+ }, zn = ["text/javascript", "application/javascript", "application/ecmascript"], Kn = (e) => zn.includes(e.type);
2970
+ function Jn(e) {
2971
+ const t = z(null), [n, i] = k(() => []), [a, r] = k(() => []), [o, l] = k(() => !1);
2972
2972
  function c() {
2973
2973
  if (!t.current || !t.current.getElementsByTagName)
2974
2974
  return;
2975
2975
  const d = t.current.getElementsByTagName("script");
2976
2976
  for (let h = 0; h < d.length; h++) {
2977
- const g = d[h];
2978
- if (g.src && !n.includes(g.src)) {
2979
- n.push(g.src);
2977
+ const b = d[h];
2978
+ if (b.src && !n.includes(b.src)) {
2979
+ n.push(b.src);
2980
2980
  const u = document.createElement("script");
2981
- u.async = !0, u.src = g.src, document.head.appendChild(u);
2982
- } else if (Jn(g) && !a.includes(g.innerText))
2981
+ u.async = !0, u.src = b.src, document.head.appendChild(u);
2982
+ } else if (Kn(b) && !a.includes(b.innerText))
2983
2983
  try {
2984
- a.push(g.innerText), new Function(g.innerText)();
2984
+ a.push(b.innerText), new Function(b.innerText)();
2985
2985
  } catch (u) {
2986
2986
  ee.warn("[BUILDER.IO] `Embed`: Error running script:", u);
2987
2987
  }
@@ -2998,7 +2998,7 @@ function Gn(e) {
2998
2998
  }
2999
2999
  );
3000
3000
  }
3001
- const Qn = {
3001
+ const Gn = {
3002
3002
  name: "Form:Form",
3003
3003
  // editableTags: ['builder-form-error']
3004
3004
  defaults: {
@@ -3235,19 +3235,19 @@ const Qn = {
3235
3235
  builderComponents: !0,
3236
3236
  builderLinkComponent: !0
3237
3237
  }
3238
- }, Yn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Xn = () => {
3238
+ }, Qn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Yn = () => {
3239
3239
  const e = process.env.NODE_ENV || "production";
3240
- return Yn.includes(e) ? e : "production";
3240
+ return Qn.includes(e) ? e : "production";
3241
3241
  };
3242
- function Zn(e) {
3243
- const t = K(null), [n, i] = k(() => "unsubmitted"), [a, r] = k(() => null), [o, l] = k(() => "");
3242
+ function Xn(e) {
3243
+ const t = z(null), [n, i] = k(() => "unsubmitted"), [a, r] = k(() => null), [o, l] = k(() => "");
3244
3244
  function c(u) {
3245
- var m, b;
3245
+ var m, g;
3246
3246
  const S = {
3247
3247
  ...e.builderContext.rootState,
3248
3248
  ...u
3249
3249
  };
3250
- e.builderContext.rootSetState ? (b = (m = e.builderContext).rootSetState) == null || b.call(m, S) : e.builderContext.rootState = S;
3250
+ e.builderContext.rootSetState ? (g = (m = e.builderContext).rootSetState) == null || g.call(m, S) : e.builderContext.rootState = S;
3251
3251
  }
3252
3252
  function d() {
3253
3253
  return U() && e.previewState || n;
@@ -3255,7 +3255,7 @@ function Zn(e) {
3255
3255
  function h(u) {
3256
3256
  return JSON.stringify(u, null, 2);
3257
3257
  }
3258
- function g(u) {
3258
+ function b(u) {
3259
3259
  var m;
3260
3260
  const S = e.sendWithJs || e.sendSubmissionsTo === "email";
3261
3261
  if (e.sendSubmissionsTo === "zapier")
@@ -3266,9 +3266,9 @@ function Zn(e) {
3266
3266
  return;
3267
3267
  }
3268
3268
  u.preventDefault();
3269
- const b = u.currentTarget || u.target, p = e.customHeaders || {};
3269
+ const g = u.currentTarget || u.target, p = e.customHeaders || {};
3270
3270
  let f;
3271
- const v = new FormData(b), T = Array.from(b.querySelectorAll("input,select,textarea")).filter((y) => !!y.name).filter(
3271
+ const v = new FormData(g), T = Array.from(g.querySelectorAll("input,select,textarea")).filter((y) => !!y.name).filter(
3272
3272
  (y) => !!y.name && (y.type !== "radio" || y.checked)
3273
3273
  ).map((y) => {
3274
3274
  let x;
@@ -3294,18 +3294,18 @@ function Zn(e) {
3294
3294
  value: x
3295
3295
  };
3296
3296
  });
3297
- let w = e.contentType;
3298
- if (e.sendSubmissionsTo === "email" && (w = "multipart/form-data"), Array.from(T).forEach(({ value: y }) => {
3299
- (y instanceof File || Array.isArray(y) && y[0] instanceof File || y instanceof FileList) && (w = "multipart/form-data");
3300
- }), w !== "application/json")
3297
+ let E = e.contentType;
3298
+ if (e.sendSubmissionsTo === "email" && (E = "multipart/form-data"), Array.from(T).forEach(({ value: y }) => {
3299
+ (y instanceof File || Array.isArray(y) && y[0] instanceof File || y instanceof FileList) && (E = "multipart/form-data");
3300
+ }), E !== "application/json")
3301
3301
  f = v;
3302
3302
  else {
3303
3303
  const y = {};
3304
3304
  Array.from(T).forEach(({ value: x, key: V }) => {
3305
- Me(y, V, x);
3305
+ je(y, V, x);
3306
3306
  }), f = JSON.stringify(y);
3307
3307
  }
3308
- w && w !== "multipart/form-data" && (S && ((m = e.action) != null && m.includes("zapier.com")) || (p["content-type"] = w));
3308
+ E && E !== "multipart/form-data" && (S && ((m = e.action) != null && m.includes("zapier.com")) || (p["content-type"] = E));
3309
3309
  const _ = new CustomEvent("presubmit", { detail: { body: f } });
3310
3310
  if (t.current && (t.current.dispatchEvent(_), _.defaultPrevented))
3311
3311
  return;
@@ -3314,40 +3314,40 @@ function Zn(e) {
3314
3314
  console.error(y), i("error"), c({ formErrorMessage: y });
3315
3315
  return;
3316
3316
  }
3317
- const H = `${Xn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3317
+ const H = `${Yn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3318
3318
  e.sendSubmissionsToEmail || ""
3319
3319
  )}&name=${encodeURIComponent(e.name || "")}`, q = e.sendSubmissionsTo === "email" ? H : e.action;
3320
- Le(q), fetch(q, { body: f, headers: p, method: e.method || "post" }).then(
3320
+ Ue(q), fetch(q, { body: f, headers: p, method: e.method || "post" }).then(
3321
3321
  async (y) => {
3322
3322
  var A, $;
3323
3323
  let x;
3324
3324
  const V = y.headers.get("content-type");
3325
3325
  if (V && V.indexOf("application/json") !== -1 ? x = await y.json() : x = await y.text(), !y.ok) {
3326
- const E = new CustomEvent("submit:error", {
3326
+ const R = new CustomEvent("submit:error", {
3327
3327
  detail: { error: x, status: y.status }
3328
3328
  });
3329
- if ((A = t.current) != null && A.nativeElement && (($ = t.current) == null || $.nativeElement.dispatchEvent(E), E.defaultPrevented))
3329
+ if ((A = t.current) != null && A.nativeElement && (($ = t.current) == null || $.nativeElement.dispatchEvent(R), R.defaultPrevented))
3330
3330
  return;
3331
3331
  r(x), i("error");
3332
- let R = e.errorMessagePath ? je(x, e.errorMessagePath) : x.message || x.error || x;
3333
- typeof R != "string" && (R = JSON.stringify(R)), l(R), c({ formErrorMessage: R });
3332
+ let P = e.errorMessagePath ? Ke(x, e.errorMessagePath) : x.message || x.error || x;
3333
+ typeof P != "string" && (P = JSON.stringify(P)), l(P), c({ formErrorMessage: P });
3334
3334
  return;
3335
3335
  }
3336
3336
  if (r(x), i(y.ok ? "success" : "error"), y.ok) {
3337
- const E = new CustomEvent("submit:success", {
3337
+ const R = new CustomEvent("submit:success", {
3338
3338
  detail: { res: y, body: x }
3339
3339
  });
3340
3340
  if (t.current) {
3341
- if (t.current.dispatchEvent(E), E.defaultPrevented)
3341
+ if (t.current.dispatchEvent(R), R.defaultPrevented)
3342
3342
  return;
3343
3343
  e.resetFormOnSubmit !== !1 && t.current.reset();
3344
3344
  }
3345
3345
  if (e.successUrl)
3346
3346
  if (t.current) {
3347
- const R = new CustomEvent("route", {
3347
+ const P = new CustomEvent("route", {
3348
3348
  detail: { url: e.successUrl }
3349
3349
  });
3350
- t.current.dispatchEvent(R), R.defaultPrevented || (location.href = e.successUrl);
3350
+ t.current.dispatchEvent(P), P.defaultPrevented || (location.href = e.successUrl);
3351
3351
  } else
3352
3352
  location.href = e.successUrl;
3353
3353
  }
@@ -3361,7 +3361,7 @@ function Zn(e) {
3361
3361
  );
3362
3362
  }
3363
3363
  }
3364
- return /* @__PURE__ */ D(P, { children: [
3364
+ return /* @__PURE__ */ D(w, { children: [
3365
3365
  " ",
3366
3366
  /* @__PURE__ */ s("style", { children: ".pre-abc898ba { padding: 10px; color: red; text-align: center; }" }),
3367
3367
  " ",
@@ -3373,7 +3373,7 @@ function Zn(e) {
3373
3373
  action: !e.sendWithJs && e.action,
3374
3374
  method: e.method,
3375
3375
  name: e.name,
3376
- onSubmit: (u) => g(u),
3376
+ onSubmit: (u) => b(u),
3377
3377
  ...e.attributes,
3378
3378
  children: [
3379
3379
  e.children,
@@ -3408,7 +3408,7 @@ function Zn(e) {
3408
3408
  " "
3409
3409
  ] });
3410
3410
  }
3411
- const ei = {
3411
+ const Zn = {
3412
3412
  name: "Form:Input",
3413
3413
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
3414
3414
  inputs: [
@@ -3460,8 +3460,8 @@ const ei = {
3460
3460
  borderColor: "#ccc"
3461
3461
  }
3462
3462
  };
3463
- function ti(e) {
3464
- return /* @__PURE__ */ He(
3463
+ function ei(e) {
3464
+ return /* @__PURE__ */ qe(
3465
3465
  "input",
3466
3466
  {
3467
3467
  ...e.attributes,
@@ -3475,7 +3475,7 @@ function ti(e) {
3475
3475
  }
3476
3476
  );
3477
3477
  }
3478
- const ni = {
3478
+ const ti = {
3479
3479
  name: "Form:Select",
3480
3480
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
3481
3481
  defaultStyles: {
@@ -3518,9 +3518,9 @@ const ni = {
3518
3518
  static: !0,
3519
3519
  noWrap: !0
3520
3520
  };
3521
- function ii(e) {
3521
+ function ni(e) {
3522
3522
  var t;
3523
- return /* @__PURE__ */ He(
3523
+ return /* @__PURE__ */ qe(
3524
3524
  "select",
3525
3525
  {
3526
3526
  ...e.attributes,
@@ -3533,7 +3533,7 @@ function ii(e) {
3533
3533
  (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
3534
3534
  );
3535
3535
  }
3536
- const ai = {
3536
+ const ii = {
3537
3537
  name: "Form:SubmitButton",
3538
3538
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
3539
3539
  defaultStyles: {
@@ -3559,10 +3559,10 @@ const ai = {
3559
3559
  // TODO: defaultChildren
3560
3560
  // canHaveChildren: true,
3561
3561
  };
3562
- function ri(e) {
3562
+ function ai(e) {
3563
3563
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
3564
3564
  }
3565
- const oi = {
3565
+ const ri = {
3566
3566
  name: "Form:TextArea",
3567
3567
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
3568
3568
  inputs: [{
@@ -3599,7 +3599,7 @@ const oi = {
3599
3599
  static: !0,
3600
3600
  noWrap: !0
3601
3601
  };
3602
- function li(e) {
3602
+ function oi(e) {
3603
3603
  return /* @__PURE__ */ s(
3604
3604
  "textarea",
3605
3605
  {
@@ -3612,7 +3612,7 @@ function li(e) {
3612
3612
  }
3613
3613
  );
3614
3614
  }
3615
- const si = {
3615
+ const li = {
3616
3616
  name: "Raw:Img",
3617
3617
  hideFromInsertMenu: !0,
3618
3618
  image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
@@ -3620,7 +3620,7 @@ const si = {
3620
3620
  name: "image",
3621
3621
  bubble: !0,
3622
3622
  type: "file",
3623
- allowedFileTypes: ke,
3623
+ allowedFileTypes: Te,
3624
3624
  required: !0
3625
3625
  }, {
3626
3626
  name: "backgroundSize",
@@ -3657,12 +3657,12 @@ const si = {
3657
3657
  }],
3658
3658
  noWrap: !0
3659
3659
  };
3660
- function ci(e) {
3660
+ function si(e) {
3661
3661
  var n;
3662
3662
  function t() {
3663
3663
  const i = {
3664
3664
  ...e.attributes,
3665
- [z()]: `builder-raw-img ${e.attributes[z()] || ""}`
3665
+ [K()]: `builder-raw-img ${e.attributes[K()] || ""}`
3666
3666
  };
3667
3667
  return delete i.style, i;
3668
3668
  }
@@ -3684,7 +3684,7 @@ function ci(e) {
3684
3684
  U() && e.imgSrc || "default-key"
3685
3685
  );
3686
3686
  }
3687
- const ui = {
3687
+ const ci = {
3688
3688
  name: "Video",
3689
3689
  canHaveChildren: !0,
3690
3690
  defaultStyles: {
@@ -3695,14 +3695,14 @@ const ui = {
3695
3695
  inputs: [{
3696
3696
  name: "video",
3697
3697
  type: "file",
3698
- allowedFileTypes: Bn,
3698
+ allowedFileTypes: An,
3699
3699
  bubble: !0,
3700
3700
  defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
3701
3701
  required: !0
3702
3702
  }, {
3703
3703
  name: "posterImage",
3704
3704
  type: "file",
3705
- allowedFileTypes: ke,
3705
+ allowedFileTypes: Te,
3706
3706
  helperText: "Image to show before the video plays"
3707
3707
  }, {
3708
3708
  name: "autoPlay",
@@ -3769,9 +3769,9 @@ const ui = {
3769
3769
  builderBlock: !0
3770
3770
  }
3771
3771
  };
3772
- function di(e) {
3773
- var o, l, c, d, h, g, u;
3774
- const t = K(null);
3772
+ function ui(e) {
3773
+ var o, l, c, d, h, b, u;
3774
+ const t = z(null);
3775
3775
  function n() {
3776
3776
  return {
3777
3777
  ...e.autoPlay === !0 ? {
@@ -3801,10 +3801,10 @@ function di(e) {
3801
3801
  return B(() => {
3802
3802
  if (e.lazyLoad) {
3803
3803
  const S = new IntersectionObserver(function(m) {
3804
- m.forEach(function(b) {
3805
- if (!b.isIntersecting)
3804
+ m.forEach(function(g) {
3805
+ if (!g.isIntersecting)
3806
3806
  return;
3807
- const p = b.target;
3807
+ const p = g.target;
3808
3808
  try {
3809
3809
  Array.from(p.children).filter(
3810
3810
  (f) => f instanceof HTMLElement && f.tagName === "SOURCE"
@@ -3884,7 +3884,7 @@ function di(e) {
3884
3884
  children: e.children
3885
3885
  }
3886
3886
  ) : null,
3887
- (u = (g = e.builderBlock) == null ? void 0 : g.children) != null && u.length && !e.fitContent ? /* @__PURE__ */ s(
3887
+ (u = (b = e.builderBlock) == null ? void 0 : b.children) != null && u.length && !e.fitContent ? /* @__PURE__ */ s(
3888
3888
  "div",
3889
3889
  {
3890
3890
  style: {
@@ -3905,67 +3905,67 @@ function di(e) {
3905
3905
  }
3906
3906
  );
3907
3907
  }
3908
- const mi = () => [{
3909
- component: jn,
3910
- ...qn
3908
+ const di = () => [{
3909
+ component: qn,
3910
+ ...Mn
3911
3911
  }, {
3912
- component: Gn,
3913
- ...Kn
3912
+ component: Jn,
3913
+ ...jn
3914
3914
  }, {
3915
- component: Zn,
3916
- ...Qn
3915
+ component: Xn,
3916
+ ...Gn
3917
3917
  }, {
3918
- component: ti,
3919
- ...ei
3918
+ component: ei,
3919
+ ...Zn
3920
3920
  }, {
3921
- component: ri,
3922
- ...ai
3921
+ component: ai,
3922
+ ...ii
3923
3923
  }, {
3924
- component: ii,
3925
- ...ni
3924
+ component: ni,
3925
+ ...ti
3926
3926
  }, {
3927
- component: li,
3928
- ...oi
3927
+ component: oi,
3928
+ ...ri
3929
3929
  }, {
3930
- component: ci,
3931
- ...si
3930
+ component: si,
3931
+ ...li
3932
3932
  }, {
3933
- component: di,
3934
- ...ui
3935
- }], Ne = () => [{
3936
- component: Ct,
3933
+ component: ui,
3934
+ ...ci
3935
+ }], De = () => [{
3936
+ component: kt,
3937
+ ...Rn
3938
+ }, {
3939
+ component: un,
3937
3940
  ...Pn
3938
3941
  }, {
3939
3942
  component: dn,
3940
3943
  ...Vn
3941
3944
  }, {
3942
- component: mn,
3943
- ...An
3944
- }, {
3945
- component: bn,
3946
- ...Nn
3945
+ component: hn,
3946
+ ...Bn
3947
3947
  }, {
3948
3948
  component: gn,
3949
- ...Dn
3949
+ ...Wn
3950
3950
  }, {
3951
- component: On,
3952
- ...Fn
3951
+ component: Fn,
3952
+ ...Dn
3953
3953
  }, {
3954
- component: Fi,
3954
+ component: Di,
3955
3955
  ...Ln
3956
3956
  }, {
3957
- component: Mn,
3958
- ...Hn
3959
- }, ...at.includes(F) ? [{
3960
- component: Wn,
3961
- ...$n
3957
+ component: Hn,
3958
+ ...Un
3959
+ }, ...ot.includes(F) ? [{
3960
+ component: $n,
3961
+ ...Nn
3962
3962
  }] : [], {
3963
- component: Un,
3964
- ..._n
3963
+ component: _n,
3964
+ ...On
3965
3965
  }, {
3966
- component: Rn,
3967
- ...En
3968
- }, ...mi()], fi = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
3966
+ component: En,
3967
+ ...wn
3968
+ }, ...di()], mi = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
3969
3969
  function getAndSetVariantId() {
3970
3970
  function setCookie(name, value, days) {
3971
3971
  let expires = '';
@@ -4024,7 +4024,7 @@ const mi = () => [{
4024
4024
  }).join('');
4025
4025
  styleEl.innerHTML = newStyleStr;
4026
4026
  }
4027
- }`, hi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4027
+ }`, fi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4028
4028
  if (!navigator.cookieEnabled) {
4029
4029
  return;
4030
4030
  }
@@ -4058,59 +4058,37 @@ const mi = () => [{
4058
4058
  thisScriptEl?.remove();
4059
4059
  }
4060
4060
  return;
4061
- }`, ot = "builderIoAbTest", lt = "builderIoRenderContent", ae = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4061
+ }`, ve = "builderIoAbTest", xe = "builderIoRenderContent", ae = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4062
4062
  ...t,
4063
4063
  testVariationId: t.id,
4064
4064
  id: e == null ? void 0 : e.id
4065
- })), bi = ({
4065
+ })), hi = ({
4066
4066
  canTrack: e,
4067
4067
  content: t
4068
- }) => !(!(ae(t).length > 0) || !e || G()), gi = (e) => e === "react" || e === "reactNative", yi = F === "angular", st = gi(F), $e = (e, t) => `
4068
+ }) => !(!(ae(t).length > 0) || !e || G()), gi = (e) => e === "react" || e === "reactNative", bi = F === "angular", Ie = gi(F), yi = () => `
4069
4069
  (function() {
4070
- var selector = 'script[data-id="${e}"]';
4071
- var scriptKey = '__builderioScriptInitialized_${e}';
4072
- var observerKey = '__builderioScriptObserver_${e}';
4073
-
4074
- // Synchronously remove any duplicates already in the DOM
4075
- var existing = document.querySelectorAll(selector);
4076
- existing.forEach(function(script, index) {
4077
- if (index > 0) {
4078
- script.parentNode && script.parentNode.removeChild(script);
4079
- }
4080
- });
4081
-
4082
- // Watch for duplicates added later (e.g. RSC streaming chunks)
4083
- if (!window[observerKey] && typeof MutationObserver !== 'undefined') {
4084
- window[observerKey] = new MutationObserver(function() {
4085
- var all = document.querySelectorAll(selector);
4086
- for (var i = 1; i < all.length; i++) {
4087
- all[i].parentNode && all[i].parentNode.removeChild(all[i]);
4088
- }
4089
- });
4090
- window[observerKey].observe(document.documentElement, { childList: true, subtree: true });
4091
- }
4092
-
4093
- if (!window[scriptKey]) {
4094
- window[scriptKey] = true;
4095
- ${t}
4070
+ if (!window.${ve}) {
4071
+ window.${ve} = ${mi};
4096
4072
  }
4073
+ if (!window.${xe}) {
4074
+ window.${xe} = ${fi};
4075
+ }${Ie ? `
4076
+ var thisScriptEl = document.currentScript;
4077
+ if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
4097
4078
  })();
4098
- `, pi = () => `
4099
- window.${ot} = ${fi}
4100
- window.${lt} = ${hi}
4101
- `, vi = (e, t) => `
4102
- window.${ot}(
4103
- "${t}",${JSON.stringify(e)}, ${st}, ${yi}
4104
- )`, xi = ({
4079
+ `, pi = (e, t) => `
4080
+ window.${ve}(
4081
+ "${t}",${JSON.stringify(e)}, ${Ie}, ${bi}
4082
+ )`, vi = ({
4105
4083
  contentId: e,
4106
4084
  variationId: t
4107
- }) => `window.${lt}(
4108
- "${t}", "${e}", ${st}
4085
+ }) => `window.${xe}(
4086
+ "${t}", "${e}", ${Ie}
4109
4087
  )`;
4110
- function We(e) {
4088
+ function Fe(e) {
4111
4089
  return Math.round(e * 1e3) / 1e3;
4112
4090
  }
4113
- const Si = (e, t, n = !0) => {
4091
+ const xi = (e, t, n = !0) => {
4114
4092
  if (!(e instanceof HTMLElement))
4115
4093
  return null;
4116
4094
  let i = n ? e : e.parentElement;
@@ -4121,35 +4099,35 @@ const Si = (e, t, n = !0) => {
4121
4099
  return i;
4122
4100
  } while (i = i.parentElement);
4123
4101
  return null;
4124
- }, ki = (e) => Si(e, (t) => {
4102
+ }, Si = (e) => xi(e, (t) => {
4125
4103
  const n = t.getAttribute("builder-id") || t.id;
4126
4104
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
4127
- }), De = ({
4105
+ }), Le = ({
4128
4106
  event: e,
4129
4107
  target: t
4130
4108
  }) => {
4131
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, r = We(i / n.width), o = We(a / n.height);
4109
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, r = Fe(i / n.width), o = Fe(a / n.height);
4132
4110
  return {
4133
4111
  x: r,
4134
4112
  y: o
4135
4113
  };
4136
- }, Ci = (e) => {
4137
- const t = e.target, n = t && ki(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4114
+ }, ki = (e) => {
4115
+ const t = e.target, n = t && Si(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4138
4116
  return {
4139
4117
  targetBuilderElement: i || void 0,
4140
4118
  metadata: {
4141
- targetOffset: t ? De({
4119
+ targetOffset: t ? Le({
4142
4120
  event: e,
4143
4121
  target: t
4144
4122
  }) : void 0,
4145
- builderTargetOffset: n ? De({
4123
+ builderTargetOffset: n ? Le({
4146
4124
  event: e,
4147
4125
  target: n
4148
4126
  }) : void 0,
4149
4127
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
4150
4128
  }
4151
4129
  };
4152
- }, Ti = ["svelte", "qwik", "vue"], Fe = () => Ti.includes(F) && (U() || oe()), Ii = (e) => {
4130
+ }, Ci = ["svelte", "qwik", "vue"], Oe = () => Ci.includes(F) && (U() || oe()), Ti = (e) => {
4153
4131
  var r, o;
4154
4132
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (o = e.fileUrl) != null ? o : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
4155
4133
  let a = "";
@@ -4175,15 +4153,15 @@ font-weight: ${l};
4175
4153
  `.trim());
4176
4154
  }
4177
4155
  return a;
4178
- }, wi = ({
4156
+ }, Ii = ({
4179
4157
  customFonts: e
4180
4158
  }) => {
4181
4159
  var t;
4182
- return ((t = e == null ? void 0 : e.map((n) => Ii(n))) == null ? void 0 : t.join(" ")) || "";
4183
- }, Ei = ({
4160
+ return ((t = e == null ? void 0 : e.map((n) => Ti(n))) == null ? void 0 : t.join(" ")) || "";
4161
+ }, wi = ({
4184
4162
  cssCode: e,
4185
4163
  contentId: t
4186
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ri = `
4164
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ei = `
4187
4165
  .builder-button {
4188
4166
  all: unset;
4189
4167
  }
@@ -4200,30 +4178,30 @@ font-weight: ${l};
4200
4178
  text-align: inherit;
4201
4179
  font-family: inherit;
4202
4180
  }
4203
- `, Pi = (e) => e ? "" : Ri, Vi = (e) => `variant-${e}`;
4204
- function Ai(e) {
4181
+ `, Ri = (e) => e ? "" : Ei, Pi = (e) => `variant-${e}`;
4182
+ function Vi(e) {
4205
4183
  var H, q, y;
4206
- const t = K(null);
4184
+ const t = z(null);
4207
4185
  k(() => !1), k(
4208
4186
  () => e.builderContextSignal
4209
4187
  );
4210
4188
  const [n, i] = k(() => null), [a, r] = k(() => "");
4211
4189
  function o(x, V) {
4212
- var $, E;
4190
+ var $, R;
4213
4191
  const A = {
4214
4192
  ...e.builderContextSignal.rootState,
4215
4193
  ...x
4216
4194
  };
4217
- e.builderContextSignal.rootSetState ? (E = ($ = e.builderContextSignal).rootSetState) == null || E.call($, A) : e.setBuilderContextSignal((R) => ({
4218
- ...R,
4195
+ e.builderContextSignal.rootSetState ? (R = ($ = e.builderContextSignal).rootSetState) == null || R.call($, A) : e.setBuilderContextSignal((P) => ({
4196
+ ...P,
4219
4197
  rootState: A
4220
- })), e.builderContextSignal.rootSetState ? e.builderContextSignal.rootSetState(A) : e.setBuilderContextSignal((R) => ({
4221
- ...R,
4198
+ })), e.builderContextSignal.rootSetState ? e.builderContextSignal.rootSetState(A) : e.setBuilderContextSignal((P) => ({
4199
+ ...P,
4222
4200
  rootState: A
4223
4201
  }));
4224
4202
  }
4225
4203
  function l(x, V) {
4226
- var $, E, R, I, N;
4204
+ var $, R, P, I, N;
4227
4205
  const A = {
4228
4206
  ...e.builderContextSignal.content,
4229
4207
  ...x,
@@ -4232,9 +4210,9 @@ function Ai(e) {
4232
4210
  ...x == null ? void 0 : x.data
4233
4211
  },
4234
4212
  meta: {
4235
- ...(E = e.builderContextSignal.content) == null ? void 0 : E.meta,
4213
+ ...(R = e.builderContextSignal.content) == null ? void 0 : R.meta,
4236
4214
  ...x == null ? void 0 : x.meta,
4237
- breakpoints: ((R = x == null ? void 0 : x.meta) == null ? void 0 : R.breakpoints) || ((N = (I = e.builderContextSignal.content) == null ? void 0 : I.meta) == null ? void 0 : N.breakpoints)
4215
+ breakpoints: ((P = x == null ? void 0 : x.meta) == null ? void 0 : P.breakpoints) || ((N = (I = e.builderContextSignal.content) == null ? void 0 : I.meta) == null ? void 0 : N.breakpoints)
4238
4216
  }
4239
4217
  };
4240
4218
  e.setBuilderContextSignal((C) => ({
@@ -4251,22 +4229,22 @@ function Ai(e) {
4251
4229
  const [d, h] = k(
4252
4230
  () => e.contentWrapper || "div"
4253
4231
  );
4254
- function g(x) {
4255
- return mt({
4232
+ function b(x) {
4233
+ return dt({
4256
4234
  model: e.model,
4257
4235
  trustedHosts: e.trustedHosts,
4258
4236
  callbacks: {
4259
4237
  configureSdk: (V) => {
4260
- var E;
4238
+ var R;
4261
4239
  const { breakpoints: A, contentId: $ } = V;
4262
- !$ || $ !== ((E = e.builderContextSignal.content) == null ? void 0 : E.id) || A && l({
4240
+ !$ || $ !== ((R = e.builderContextSignal.content) == null ? void 0 : R.id) || A && l({
4263
4241
  meta: {
4264
4242
  breakpoints: A
4265
4243
  }
4266
4244
  });
4267
4245
  },
4268
4246
  animation: (V) => {
4269
- Ge(V);
4247
+ Ye(V);
4270
4248
  },
4271
4249
  contentUpdate: (V, A) => {
4272
4250
  l(V);
@@ -4277,19 +4255,19 @@ function Ai(e) {
4277
4255
  }
4278
4256
  })(x);
4279
4257
  }
4280
- const [u, S] = k(() => ({})), [m, b] = k(() => ({})), [p, f] = k(() => !1);
4258
+ const [u, S] = k(() => ({})), [m, g] = k(() => ({})), [p, f] = k(() => !1);
4281
4259
  function v(x) {
4282
4260
  var V, A;
4283
4261
  if (e.builderContextSignal.content) {
4284
- const $ = (V = e.builderContextSignal.content) == null ? void 0 : V.testVariationId, E = (A = e.builderContextSignal.content) == null ? void 0 : A.id;
4285
- Ie({
4262
+ const $ = (V = e.builderContextSignal.content) == null ? void 0 : V.testVariationId, R = (A = e.builderContextSignal.content) == null ? void 0 : A.id;
4263
+ Re({
4286
4264
  apiHost: e.apiHost,
4287
4265
  type: "click",
4288
4266
  canTrack: Z(e.canTrack),
4289
- contentId: E,
4267
+ contentId: R,
4290
4268
  apiKey: e.apiKey,
4291
- variationId: $ !== E ? $ : void 0,
4292
- ...Ci(x),
4269
+ variationId: $ !== R ? $ : void 0,
4270
+ ...ki(x),
4293
4271
  unique: !p
4294
4272
  });
4295
4273
  }
@@ -4299,17 +4277,17 @@ function Ai(e) {
4299
4277
  var V, A, $;
4300
4278
  const x = ($ = (A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.httpRequests) != null ? $ : {};
4301
4279
  Object.entries(x).forEach(
4302
- ([E, R]) => {
4303
- if (!R)
4280
+ ([R, P]) => {
4281
+ if (!P)
4304
4282
  return;
4305
- const I = typeof R == "object" && R["@type"] === "@builder.io/core:Request";
4306
- if (m[E] || u[E] && !U())
4283
+ const I = typeof P == "object" && P["@type"] === "@builder.io/core:Request";
4284
+ if (m[R] || u[R] && !U())
4307
4285
  return;
4308
- const N = I ? R.request.url : R;
4309
- m[E] = !0;
4286
+ const N = I ? P.request.url : P;
4287
+ m[R] = !0;
4310
4288
  const C = N.replace(
4311
4289
  /{{([^}]+)}}/g,
4312
- (L, j) => String(
4290
+ (O, j) => String(
4313
4291
  Q({
4314
4292
  code: j,
4315
4293
  context: e.context || {},
@@ -4320,42 +4298,42 @@ function Ai(e) {
4320
4298
  )
4321
4299
  ), W = I ? {
4322
4300
  url: C,
4323
- method: R.request.method,
4324
- headers: R.request.headers,
4325
- body: R.request.body
4301
+ method: P.request.method,
4302
+ headers: P.request.headers,
4303
+ body: P.request.body
4326
4304
  } : {
4327
4305
  url: C,
4328
4306
  method: "GET"
4329
4307
  };
4330
- Le(JSON.stringify(W));
4331
- const O = {
4308
+ Ue(JSON.stringify(W));
4309
+ const L = {
4332
4310
  method: W.method,
4333
4311
  headers: W.headers,
4334
4312
  body: W.body
4335
4313
  };
4336
- W.method === "GET" && delete O.body, fetch(W.url, O).then((L) => L.json()).then((L) => {
4314
+ W.method === "GET" && delete L.body, fetch(W.url, L).then((O) => O.json()).then((O) => {
4337
4315
  o({
4338
- [E]: L
4339
- }), u[E] = !0;
4340
- }).catch((L) => {
4316
+ [R]: O
4317
+ }), u[R] = !0;
4318
+ }).catch((O) => {
4341
4319
  console.error(
4342
4320
  "error fetching dynamic data",
4343
- JSON.stringify(R),
4344
- L
4321
+ JSON.stringify(P),
4322
+ O
4345
4323
  );
4346
4324
  }).finally(() => {
4347
- m[E] = !1;
4325
+ m[R] = !1;
4348
4326
  });
4349
4327
  }
4350
4328
  );
4351
4329
  }
4352
- function w() {
4330
+ function E() {
4353
4331
  U() && window.dispatchEvent(
4354
4332
  new CustomEvent(
4355
4333
  "builder:component:stateChange",
4356
4334
  {
4357
4335
  detail: {
4358
- state: ve(e.builderContextSignal.rootState),
4336
+ state: Se(e.builderContextSignal.rootState),
4359
4337
  ref: {
4360
4338
  name: e.model
4361
4339
  }
@@ -4364,11 +4342,11 @@ function Ai(e) {
4364
4342
  )
4365
4343
  );
4366
4344
  }
4367
- const _ = K(!1);
4368
- return _.current || (T(), w(), _.current = !0), B(() => {
4369
- var x, V, A, $, E;
4345
+ const _ = z(!1);
4346
+ return _.current || (T(), E(), _.current = !0), B(() => {
4347
+ var x, V, A, $, R;
4370
4348
  if (G()) {
4371
- U() && !e.isNestedRender && (window.addEventListener("message", g), ct({
4349
+ U() && !e.isNestedRender && (window.addEventListener("message", b), st({
4372
4350
  ...e.locale ? {
4373
4351
  locale: e.locale
4374
4352
  } : {},
@@ -4383,22 +4361,22 @@ function Ai(e) {
4383
4361
  }), Object.values(
4384
4362
  e.builderContextSignal.componentInfos
4385
4363
  ).forEach((C) => {
4386
- var W, O;
4364
+ var W, L;
4387
4365
  if (!((W = C.models) != null && W.length) || C.models.includes(e.model)) {
4388
- const L = ut(C);
4389
- (O = window.parent) == null || O.postMessage(L, "*");
4366
+ const O = ct(C);
4367
+ (L = window.parent) == null || L.postMessage(O, "*");
4390
4368
  }
4391
4369
  }), window.addEventListener(
4392
4370
  "builder:component:stateChangeListenerActivated",
4393
- w
4371
+ E
4394
4372
  ));
4395
- const R = e.builderContextSignal.content && Z(e.canTrack), I = dt({
4373
+ const P = e.builderContextSignal.content && Z(e.canTrack), I = ut({
4396
4374
  name: `builder.tests.${(V = e.builderContextSignal.content) == null ? void 0 : V.id}`,
4397
4375
  canTrack: !0
4398
4376
  }), N = (A = e.builderContextSignal.content) == null ? void 0 : A.testVariationId;
4399
- if (R && N === I) {
4377
+ if (P && N === I) {
4400
4378
  const C = ($ = e.builderContextSignal.content) == null ? void 0 : $.id, W = e.apiKey;
4401
- Ie({
4379
+ Re({
4402
4380
  apiHost: e.apiHost,
4403
4381
  type: "impression",
4404
4382
  canTrack: !0,
@@ -4408,14 +4386,14 @@ function Ai(e) {
4408
4386
  });
4409
4387
  }
4410
4388
  if (oe() && !U()) {
4411
- const C = new URL(location.href).searchParams, W = C.get("builder.preview"), O = C.get(
4389
+ const C = new URL(location.href).searchParams, W = C.get("builder.preview"), L = C.get(
4412
4390
  `builder.overrides.${W}`
4413
- ), L = C.get("apiKey") || C.get("builder.space");
4414
- (W === "BUILDER_STUDIO" || W === e.model && L === e.apiKey && (!e.content || O === e.content.id)) && _e({
4391
+ ), O = C.get("apiKey") || C.get("builder.space");
4392
+ (W === "BUILDER_STUDIO" || W === e.model && O === e.apiKey && (!e.content || L === e.content.id)) && He({
4415
4393
  model: e.model,
4416
4394
  apiKey: e.apiKey,
4417
4395
  apiVersion: e.builderContextSignal.apiVersion,
4418
- ...W === "BUILDER_STUDIO" && ((E = e.context) != null && E.symbolId) ? {
4396
+ ...W === "BUILDER_STUDIO" && ((R = e.context) != null && R.symbolId) ? {
4419
4397
  query: {
4420
4398
  id: e.context.symbolId
4421
4399
  }
@@ -4428,7 +4406,7 @@ function Ai(e) {
4428
4406
  }, []), B(() => {
4429
4407
  e.content && l(e.content);
4430
4408
  }, [e.content]), B(() => {
4431
- w();
4409
+ E();
4432
4410
  }, [e.builderContextSignal.rootState]), B(() => {
4433
4411
  if (e.data) {
4434
4412
  if (n === e.data)
@@ -4444,22 +4422,22 @@ function Ai(e) {
4444
4422
  }), r(e.locale);
4445
4423
  }
4446
4424
  }, [e.locale]), B(() => () => {
4447
- G() && (window.removeEventListener("message", g), window.removeEventListener(
4425
+ G() && (window.removeEventListener("message", b), window.removeEventListener(
4448
4426
  "builder:component:stateChangeListenerActivated",
4449
- w
4427
+ E
4450
4428
  ));
4451
- }, []), /* @__PURE__ */ s(le.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Fe() ? /* @__PURE__ */ s(
4429
+ }, []), /* @__PURE__ */ s(le.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Oe() ? /* @__PURE__ */ s(
4452
4430
  d,
4453
4431
  {
4454
4432
  ref: t,
4455
4433
  onClick: (x) => v(x),
4456
4434
  "builder-content-id": (H = e.builderContextSignal.content) == null ? void 0 : H.id,
4457
4435
  "builder-model": e.model,
4458
- className: Vi(
4436
+ className: Pi(
4459
4437
  ((q = e.content) == null ? void 0 : q.testVariationId) || ((y = e.content) == null ? void 0 : y.id)
4460
4438
  ),
4461
4439
  style: {
4462
- display: !e.builderContextSignal.content && Fe() ? "none" : void 0
4440
+ display: !e.builderContextSignal.content && Oe() ? "none" : void 0
4463
4441
  },
4464
4442
  ...c(),
4465
4443
  ...e.contentWrapperProps,
@@ -4467,17 +4445,17 @@ function Ai(e) {
4467
4445
  }
4468
4446
  ) : null });
4469
4447
  }
4470
- function Bi(e) {
4448
+ function Ai(e) {
4471
4449
  const [t, n] = k(
4472
4450
  () => `
4473
- ${Ei({
4451
+ ${wi({
4474
4452
  cssCode: e.cssCode,
4475
4453
  contentId: e.contentId
4476
4454
  })}
4477
- ${wi({
4455
+ ${Ii({
4478
4456
  customFonts: e.customFonts
4479
4457
  })}
4480
- ${Pi(e.isNestedRender)}
4458
+ ${Ri(e.isNestedRender)}
4481
4459
  `.trim()
4482
4460
  );
4483
4461
  return /* @__PURE__ */ s(
@@ -4489,7 +4467,7 @@ ${Pi(e.isNestedRender)}
4489
4467
  }
4490
4468
  );
4491
4469
  }
4492
- const Ni = ({
4470
+ const Bi = ({
4493
4471
  content: e,
4494
4472
  data: t,
4495
4473
  locale: n
@@ -4506,7 +4484,7 @@ const Ni = ({
4506
4484
  locale: n
4507
4485
  } : {}
4508
4486
  };
4509
- }, $i = ({
4487
+ }, Ni = ({
4510
4488
  content: e,
4511
4489
  data: t
4512
4490
  }) => e ? {
@@ -4517,12 +4495,12 @@ const Ni = ({
4517
4495
  },
4518
4496
  meta: e == null ? void 0 : e.meta
4519
4497
  } : void 0;
4520
- function Oe(e) {
4521
- var d, h, g, u, S, m, b, p, f;
4498
+ function _e(e) {
4499
+ var d, h, b, u, S, m, g, p, f;
4522
4500
  const [t, n] = k(
4523
4501
  () => {
4524
4502
  var v, T;
4525
- return xi({
4503
+ return vi({
4526
4504
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4527
4505
  variationId: (v = e.content) == null ? void 0 : v.testVariationId,
4528
4506
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -4538,25 +4516,25 @@ function Oe(e) {
4538
4516
  }
4539
4517
  const [a, r] = k(
4540
4518
  () => [
4541
- ...Ne(),
4519
+ ...De(),
4542
4520
  ...e.customComponents || []
4543
4521
  ].reduce(
4544
- (v, { component: T, ...w }) => ({
4522
+ (v, { component: T, ...E }) => ({
4545
4523
  ...v,
4546
- [w.name]: {
4524
+ [E.name]: {
4547
4525
  component: T,
4548
- ...we(w)
4526
+ ...Pe(E)
4549
4527
  }
4550
4528
  }),
4551
4529
  {}
4552
4530
  )
4553
4531
  ), [o, l] = k(() => ({
4554
- content: $i({
4532
+ content: Ni({
4555
4533
  content: e.content,
4556
4534
  data: e.data
4557
4535
  }),
4558
4536
  localState: void 0,
4559
- rootState: Ni({
4537
+ rootState: Bi({
4560
4538
  content: e.content,
4561
4539
  data: e.data,
4562
4540
  locale: e.locale
@@ -4567,12 +4545,12 @@ function Oe(e) {
4567
4545
  apiKey: e.apiKey,
4568
4546
  apiVersion: e.apiVersion,
4569
4547
  componentInfos: [
4570
- ...Ne(),
4548
+ ...De(),
4571
4549
  ...e.customComponents || []
4572
4550
  ].reduce(
4573
- (v, { component: T, ...w }) => ({
4551
+ (v, { component: T, ...E }) => ({
4574
4552
  ...v,
4575
- [w.name]: we(w)
4553
+ [E.name]: Pe(E)
4576
4554
  }),
4577
4555
  {}
4578
4556
  ),
@@ -4581,7 +4559,7 @@ function Oe(e) {
4581
4559
  BlocksWrapperProps: e.blocksWrapperProps || {},
4582
4560
  nonce: e.nonce || "",
4583
4561
  model: e.model
4584
- })), c = K(!1);
4562
+ })), c = z(!1);
4585
4563
  if (!c.current) {
4586
4564
  e.apiKey || ee.error(
4587
4565
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
@@ -4600,13 +4578,13 @@ function Oe(e) {
4600
4578
  }
4601
4579
  return B(() => {
4602
4580
  }, [e.content, e.data, e.locale]), /* @__PURE__ */ s(
4603
- qe.Provider,
4581
+ ze.Provider,
4604
4582
  {
4605
4583
  value: {
4606
4584
  registeredComponents: a
4607
4585
  },
4608
4586
  children: /* @__PURE__ */ D(
4609
- Ai,
4587
+ Vi,
4610
4588
  {
4611
4589
  apiHost: e.apiHost,
4612
4590
  nonce: e.nonce,
@@ -4635,13 +4613,13 @@ function Oe(e) {
4635
4613
  }
4636
4614
  ) : null,
4637
4615
  /* @__PURE__ */ s(
4638
- Bi,
4616
+ Ai,
4639
4617
  {
4640
4618
  nonce: e.nonce || "",
4641
4619
  isNestedRender: e.isNestedRender,
4642
- contentId: (g = o.content) == null ? void 0 : g.id,
4620
+ contentId: (b = o.content) == null ? void 0 : b.id,
4643
4621
  cssCode: (S = (u = o.content) == null ? void 0 : u.data) == null ? void 0 : S.cssCode,
4644
- customFonts: (b = (m = o.content) == null ? void 0 : m.data) == null ? void 0 : b.customFonts
4622
+ customFonts: (g = (m = o.content) == null ? void 0 : m.data) == null ? void 0 : g.customFonts
4645
4623
  }
4646
4624
  ),
4647
4625
  /* @__PURE__ */ s(
@@ -4659,17 +4637,17 @@ function Oe(e) {
4659
4637
  }
4660
4638
  );
4661
4639
  }
4662
- function Wi(e) {
4640
+ function $i(e) {
4663
4641
  var o;
4664
4642
  const [t, n] = k(
4665
- () => bi({
4643
+ () => hi({
4666
4644
  canTrack: Z(e.canTrack),
4667
4645
  content: e.content
4668
4646
  })
4669
4647
  );
4670
4648
  function i() {
4671
4649
  var l;
4672
- return vi(
4650
+ return pi(
4673
4651
  ae(e.content).map((c) => ({
4674
4652
  id: c.testVariationId,
4675
4653
  testRatio: c.testRatio
@@ -4685,36 +4663,30 @@ function Wi(e) {
4685
4663
  return t ? {
4686
4664
  ...e.content,
4687
4665
  testVariationId: (l = e.content) == null ? void 0 : l.id
4688
- } : ft({
4666
+ } : mt({
4689
4667
  item: e.content,
4690
4668
  canTrack: Z(e.canTrack)
4691
4669
  });
4692
4670
  }
4693
4671
  return B(() => {
4694
- }, []), /* @__PURE__ */ D(P, { children: [
4695
- !e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */ s(
4696
- J,
4697
- {
4698
- id: "builderio-init-variants-fns",
4699
- scriptStr: $e(
4700
- "builderio-init-variants-fns",
4701
- pi()
4702
- ),
4703
- nonce: e.nonce || ""
4704
- }
4705
- ) : null,
4706
- !e.isNestedRender && F !== "reactNative" && at.includes(F) ? /* @__PURE__ */ s(
4672
+ }, []), /* @__PURE__ */ D(w, { children: [
4673
+ !e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */ s(w, { children: ot.includes(F) ? /* @__PURE__ */ s(
4707
4674
  J,
4708
4675
  {
4709
4676
  id: "builderio-init-personalization-variants-fns",
4710
4677
  nonce: e.nonce || "",
4711
- scriptStr: $e(
4712
- "builderio-init-personalization-variants-fns",
4713
- Tn()
4714
- )
4678
+ scriptStr: Cn()
4715
4679
  }
4716
- ) : null,
4717
- t ? /* @__PURE__ */ D(P, { children: [
4680
+ ) : null }) : null,
4681
+ t ? /* @__PURE__ */ D(w, { children: [
4682
+ /* @__PURE__ */ s(
4683
+ J,
4684
+ {
4685
+ id: "builderio-init-variants-fns",
4686
+ scriptStr: yi(),
4687
+ nonce: e.nonce || ""
4688
+ }
4689
+ ),
4718
4690
  /* @__PURE__ */ s(
4719
4691
  te,
4720
4692
  {
@@ -4732,7 +4704,7 @@ function Wi(e) {
4732
4704
  }
4733
4705
  ),
4734
4706
  (o = ae(e.content)) == null ? void 0 : o.map((l) => /* @__PURE__ */ s(
4735
- Oe,
4707
+ _e,
4736
4708
  {
4737
4709
  apiHost: e.apiHost,
4738
4710
  isNestedRender: e.isNestedRender,
@@ -4760,7 +4732,7 @@ function Wi(e) {
4760
4732
  ))
4761
4733
  ] }) : null,
4762
4734
  /* @__PURE__ */ s(
4763
- Oe,
4735
+ _e,
4764
4736
  {
4765
4737
  apiHost: e.apiHost,
4766
4738
  nonce: e.nonce,
@@ -4787,13 +4759,13 @@ function Wi(e) {
4787
4759
  )
4788
4760
  ] });
4789
4761
  }
4790
- const Di = async ({
4762
+ const Wi = async ({
4791
4763
  builderContextValue: e,
4792
4764
  symbol: t
4793
4765
  }) => {
4794
4766
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4795
4767
  (e != null && e.apiKey))
4796
- return _e({
4768
+ return He({
4797
4769
  model: t.model,
4798
4770
  apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
4799
4771
  apiVersion: e.apiVersion,
@@ -4806,8 +4778,8 @@ const Di = async ({
4806
4778
  ee.error("Could not fetch symbol content: ", n);
4807
4779
  });
4808
4780
  };
4809
- function Fi(e) {
4810
- var h, g, u, S, m, b, p;
4781
+ function Di(e) {
4782
+ var h, b, u, S, m, g, p;
4811
4783
  function t() {
4812
4784
  return "div";
4813
4785
  }
@@ -4820,7 +4792,7 @@ function Fi(e) {
4820
4792
  function a() {
4821
4793
  var f, v;
4822
4794
  return [
4823
- e.attributes[z()],
4795
+ e.attributes[K()],
4824
4796
  "builder-symbol",
4825
4797
  (f = e.symbol) != null && f.inline ? "builder-inline-symbol" : void 0,
4826
4798
  (v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
@@ -4835,7 +4807,7 @@ function Fi(e) {
4835
4807
  });
4836
4808
  function d() {
4837
4809
  var f;
4838
- r && l === ((f = e.symbol) == null ? void 0 : f.entry) || Di({
4810
+ r && l === ((f = e.symbol) == null ? void 0 : f.entry) || Wi({
4839
4811
  symbol: e.symbol,
4840
4812
  builderContextValue: e.builderContext
4841
4813
  }).then((v) => {
@@ -4847,12 +4819,12 @@ function Fi(e) {
4847
4819
  }, []), B(() => {
4848
4820
  d();
4849
4821
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: a(), children: /* @__PURE__ */ s(
4850
- Wi,
4822
+ $i,
4851
4823
  {
4852
4824
  nonce: e.builderContext.nonce,
4853
4825
  isNestedRender: !0,
4854
4826
  apiVersion: e.builderContext.apiVersion,
4855
- apiKey: (h = e.symbol) != null && h.global && ((g = e.symbol) != null && g.ownerId) ? e.symbol.ownerId : e.builderContext.apiKey,
4827
+ apiKey: (h = e.symbol) != null && h.global && ((b = e.symbol) != null && b.ownerId) ? e.symbol.ownerId : e.builderContext.apiKey,
4856
4828
  context: {
4857
4829
  ...e.builderContext.context,
4858
4830
  symbolId: (u = e.builderBlock) == null ? void 0 : u.id
@@ -4864,7 +4836,7 @@ function Fi(e) {
4864
4836
  ...(m = r == null ? void 0 : r.data) == null ? void 0 : m.state
4865
4837
  },
4866
4838
  canTrack: e.builderContext.canTrack,
4867
- model: (p = (b = e.symbol) == null ? void 0 : b.model) != null ? p : "",
4839
+ model: (p = (g = e.symbol) == null ? void 0 : g.model) != null ? p : "",
4868
4840
  content: r,
4869
4841
  linkComponent: e.builderLinkComponent,
4870
4842
  blocksWrapper: t(),
@@ -4875,14 +4847,14 @@ function Fi(e) {
4875
4847
  export {
4876
4848
  M as Blocks,
4877
4849
  le as BuilderContext,
4878
- Ct as Button,
4879
- dn as Columns,
4880
- Wi as Content,
4881
- mn as Fragment,
4882
- bn as Image,
4850
+ kt as Button,
4851
+ un as Columns,
4852
+ $i as Content,
4853
+ dn as Fragment,
4854
+ hn as Image,
4883
4855
  gn as Section,
4884
- Fi as Symbol,
4885
- Mn as Text,
4886
- di as Video,
4887
- ji as setClientUserAttributes
4856
+ Di as Symbol,
4857
+ Hn as Text,
4858
+ ui as Video,
4859
+ qi as setClientUserAttributes
4888
4860
  };