@builder.io/sdk-react 3.0.7 → 4.0.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 (73) hide show
  1. package/lib/browser/blocks-exports.cjs +32 -32
  2. package/lib/browser/blocks-exports.mjs +946 -908
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/{server-entry-20c79b90.js → server-entry-422fad84.js} +26 -16
  6. package/lib/browser/server-entry-916191b4.cjs +2 -0
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/{accordion-071aa4f9.cjs → accordion-2f83fc75.cjs} +1 -1
  10. package/lib/edge/{accordion-22c2c037.js → accordion-e1b77652.js} +1 -1
  11. package/lib/edge/{blocks-2989e629.js → blocks-0885e182.js} +2 -2
  12. package/lib/edge/{blocks-d3f37507.cjs → blocks-5165c164.cjs} +1 -1
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +2 -2
  15. package/lib/edge/{button-a2cc6565.cjs → button-d7197e96.cjs} +1 -1
  16. package/lib/edge/{button-2b5270c4.js → button-d878f35c.js} +2 -2
  17. package/lib/edge/{columns-b7240242.cjs → columns-46729516.cjs} +1 -1
  18. package/lib/edge/{columns-21b9be25.js → columns-b365c86a.js} +3 -3
  19. package/lib/edge/{content-variants-88f4dc64.js → content-variants-1594c868.js} +281 -279
  20. package/lib/edge/content-variants-c6cab1c3.cjs +134 -0
  21. package/lib/edge/{form-77687883.cjs → form-9844766c.cjs} +1 -1
  22. package/lib/edge/{form-d29f3cc0.js → form-b66c20a3.js} +3 -3
  23. package/lib/edge/{get-class-prop-name-f597545d.cjs → get-class-prop-name-0b992cfb.cjs} +1 -1
  24. package/lib/edge/{get-class-prop-name-dbc5d99c.js → get-class-prop-name-dac81472.js} +1 -1
  25. package/lib/edge/{img-fed70928.js → img-c4a772a8.js} +1 -1
  26. package/lib/edge/{img-03f9002b.cjs → img-fb35350a.cjs} +1 -1
  27. package/lib/edge/index.cjs +1 -1
  28. package/lib/edge/index.mjs +1 -1
  29. package/lib/edge/{input-1e548fd0.cjs → input-122768ac.cjs} +1 -1
  30. package/lib/edge/{input-083c3c35.js → input-57c5b097.js} +1 -1
  31. package/lib/edge/{personalization-container-bcff3433.js → personalization-container-7e63edce.js} +4 -4
  32. package/lib/edge/{personalization-container-dde10a09.cjs → personalization-container-a17ae615.cjs} +1 -1
  33. package/lib/edge/{select-9f22c2ba.js → select-3d4324ef.js} +1 -1
  34. package/lib/edge/{select-21e33225.cjs → select-7f750b70.cjs} +1 -1
  35. package/lib/edge/server-entry-77166102.cjs +2 -0
  36. package/lib/edge/{server-entry-43a6f5be.js → server-entry-c1673af2.js} +28 -18
  37. package/lib/edge/server-entry.cjs +1 -1
  38. package/lib/edge/server-entry.mjs +1 -1
  39. package/lib/edge/{slot-ca171e8c.js → slot-05ef18a0.js} +3 -3
  40. package/lib/edge/{slot-a9f5d6c0.cjs → slot-123c0993.cjs} +1 -1
  41. package/lib/edge/symbol-ee314d5a.cjs +1 -0
  42. package/lib/edge/{symbol-8f6ff028.js → symbol-f488bea0.js} +25 -25
  43. package/lib/edge/{tabs-6b67fca2.js → tabs-244d53fa.js} +3 -3
  44. package/lib/edge/{tabs-880c9088.cjs → tabs-edb82022.cjs} +1 -1
  45. package/lib/edge/{video-a3f10439.js → video-52df64e2.js} +54 -17
  46. package/lib/edge/video-cc58dd83.cjs +1 -0
  47. package/lib/node/blocks-exports.cjs +32 -32
  48. package/lib/node/blocks-exports.mjs +781 -743
  49. package/lib/node/index.cjs +1 -1
  50. package/lib/node/index.mjs +3 -3
  51. package/lib/node/init.cjs +1 -1
  52. package/lib/node/init.mjs +3 -3
  53. package/lib/node/{server-entry-6626257d.js → server-entry-4df60fc5.js} +26 -16
  54. package/lib/node/server-entry-8ab8c78b.cjs +2 -0
  55. package/lib/node/server-entry.cjs +1 -1
  56. package/lib/node/server-entry.mjs +1 -1
  57. package/lib/node/{setIvm-5cb298bf.js → setIvm-0edfc727.js} +1 -1
  58. package/lib/node/{setIvm-49abbae6.cjs → setIvm-6405aa63.cjs} +1 -1
  59. package/lib/node/setIvm.cjs +1 -1
  60. package/lib/node/setIvm.mjs +2 -2
  61. package/lib/node/{should-force-browser-runtime-in-node-11e8399e.cjs → should-force-browser-runtime-in-node-6d4dbff9.cjs} +1 -1
  62. package/lib/node/{should-force-browser-runtime-in-node-94f1a5b3.js → should-force-browser-runtime-in-node-7a39b073.js} +1 -1
  63. package/package.json +1 -1
  64. package/types/components/content-variants/content-variants.types.d.ts +2 -2
  65. package/types/constants/sdk-version.d.ts +1 -1
  66. package/types/helpers/subscribe-to-editor.d.ts +13 -13
  67. package/types/scripts/init-editing.d.ts +3 -1
  68. package/lib/browser/server-entry-762e29e0.cjs +0 -2
  69. package/lib/edge/content-variants-fdd5ee50.cjs +0 -134
  70. package/lib/edge/server-entry-ac35a5c8.cjs +0 -2
  71. package/lib/edge/symbol-a2015c7e.cjs +0 -1
  72. package/lib/edge/video-4ecfd08b.cjs +0 -1
  73. package/lib/node/server-entry-0b433783.cjs +0 -2
@@ -1,16 +1,16 @@
1
1
  "use client";
2
- import { TARGET as F, isBrowser as L, logger as re, checkIsDefined as ae, isPreviewing as G, isEditing as W, userAttributesService as me, getDefaultCanTrack as q, logFetch as we, registerInsertMenu as je, setupBrowserForEditing as ze, createRegisterComponentMessage as Ke, _track as fe, fetchOneEntry as Ie, createEditorListener as Je, serializeIncludingFunctions as he, handleABTestingSync as Ge } from "./server-entry-6626257d.js";
3
- import { setClientUserAttributes as ki } from "./server-entry-6626257d.js";
4
- import { jsx as s, Fragment as R, jsxs as V } from "react/jsx-runtime";
5
- import * as Qe from "react";
6
- import { createContext as Ee, useEffect as A, useState as E, useRef as D, useContext as ge, createElement as Re } from "react";
7
- import { getFunctionArguments as Ye, flattenState as Xe, runInNode as Ze, parseCode as et, getBuilderGlobals as tt, set as Pe, fastClone as le } from "./setIvm-5cb298bf.js";
8
- import { shouldForceBrowserRuntimeInNode as nt } from "./should-force-browser-runtime-in-node-94f1a5b3.js";
9
- const it = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), at = (e) => typeof e == "string" && it.has(e.toLowerCase());
2
+ import { TARGET as F, isBrowser as L, logger as re, checkIsDefined as ae, isPreviewing as G, isEditing as W, userAttributesService as fe, getDefaultCanTrack as H, logFetch as Ie, registerInsertMenu as ze, setupBrowserForEditing as Ke, createRegisterComponentMessage as Je, _track as he, fetchOneEntry as Ee, createEditorListener as Ge, serializeIncludingFunctions as ge, handleABTestingSync as Qe } from "./server-entry-4df60fc5.js";
3
+ import { setClientUserAttributes as Ci } from "./server-entry-4df60fc5.js";
4
+ import { jsx as s, Fragment as R, jsxs as N } from "react/jsx-runtime";
5
+ import * as Ye from "react";
6
+ import { createContext as Re, useEffect as B, useState as E, useRef as D, useContext as be, createElement as Ve } from "react";
7
+ import { getFunctionArguments as Xe, flattenState as Ze, runInNode as et, parseCode as tt, getBuilderGlobals as nt, set as Pe, fastClone as le } from "./setIvm-0edfc727.js";
8
+ import { shouldForceBrowserRuntimeInNode as it } from "./should-force-browser-runtime-in-node-7a39b073.js";
9
+ const at = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ot = (e) => typeof e == "string" && at.has(e.toLowerCase());
10
10
  function se(e) {
11
- return /* @__PURE__ */ s(R, { children: at(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
11
+ return /* @__PURE__ */ s(R, { children: ot(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
12
12
  }
13
- const H = () => {
13
+ const M = () => {
14
14
  switch (F) {
15
15
  case "react":
16
16
  case "reactNative":
@@ -24,11 +24,11 @@ const H = () => {
24
24
  return "class";
25
25
  }
26
26
  };
27
- function ot(e) {
27
+ function rt(e) {
28
28
  function t() {
29
29
  return {
30
30
  ...e.attributes,
31
- [H()]: `${e.link ? "" : "builder-button"} ${e.attributes[H()] || ""}`,
31
+ [M()]: `${e.link ? "" : "builder-button"} ${e.attributes[M()] || ""}`,
32
32
  ...e.link ? {
33
33
  href: e.link,
34
34
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -48,7 +48,7 @@ function ot(e) {
48
48
  }
49
49
  );
50
50
  }
51
- const ce = Ee({
51
+ const ce = Re({
52
52
  content: null,
53
53
  context: {},
54
54
  localState: void 0,
@@ -63,10 +63,10 @@ const ce = Ee({
63
63
  BlocksWrapperProps: {},
64
64
  nonce: "",
65
65
  model: ""
66
- }), Ve = Ee({ registeredComponents: {} }), Be = (e, t, n) => {
66
+ }), Be = Re({ registeredComponents: {} }), Ae = (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
- }, rt = ({
69
+ }, lt = ({
70
70
  code: e,
71
71
  builder: t,
72
72
  context: n,
@@ -75,22 +75,22 @@ const ce = Ee({
75
75
  rootSetState: r,
76
76
  rootState: o
77
77
  }) => {
78
- const l = Ye({
78
+ const l = Xe({
79
79
  builder: t,
80
80
  context: n,
81
81
  event: i,
82
- state: Xe({
82
+ state: Ze({
83
83
  rootState: o,
84
84
  localState: a,
85
85
  rootSetState: r
86
86
  })
87
87
  });
88
- return new Function(...l.map(([u]) => u), e)(...l.map(([, u]) => u));
89
- }, lt = (e) => L() || nt({
88
+ return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
89
+ }, st = (e) => L() || it({
90
90
  shouldLogWarning: !0
91
- }) ? rt(e) : Ze(e), st = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, ct = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, ut = (e) => {
91
+ }) ? lt(e) : et(e), ct = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, ut = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, dt = (e) => {
92
92
  var t, n, i, a, r, o;
93
- return ((i = (n = (t = st.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((o = (r = (a = ct.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : r.getPath) == null ? void 0 : o.slice(1));
93
+ return ((i = (n = (t = ct.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((o = (r = (a = ut.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : r.getPath) == null ? void 0 : o.slice(1));
94
94
  };
95
95
  function O({
96
96
  code: e,
@@ -103,17 +103,17 @@ function O({
103
103
  }) {
104
104
  if (e.trim() === "")
105
105
  return;
106
- const l = ut(e.trim());
106
+ const l = dt(e.trim());
107
107
  if (l)
108
- return Be({
108
+ return Ae({
109
109
  ...i,
110
110
  ...n
111
111
  }, l);
112
- const u = {
113
- code: et(e, {
112
+ const d = {
113
+ code: tt(e, {
114
114
  isExpression: o
115
115
  }),
116
- builder: tt(),
116
+ builder: nt(),
117
117
  context: t,
118
118
  event: r,
119
119
  rootSetState: a,
@@ -121,7 +121,7 @@ function O({
121
121
  localState: n
122
122
  };
123
123
  try {
124
- return lt(u);
124
+ return st(d);
125
125
  } catch (c) {
126
126
  re.error("Failed code evaluation: " + c.message, {
127
127
  code: e
@@ -129,15 +129,15 @@ function O({
129
129
  return;
130
130
  }
131
131
  }
132
- function dt(e, t) {
132
+ function mt(e, t) {
133
133
  var n;
134
134
  return {
135
135
  ...(n = e.component) == null ? void 0 : n.options,
136
136
  ...e.options,
137
- ...mt(e, t)
137
+ ...ft(e, t)
138
138
  };
139
139
  }
140
- const mt = (e, t) => {
140
+ const ft = (e, t) => {
141
141
  var n, i;
142
142
  if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
143
143
  return {
@@ -151,7 +151,7 @@ const mt = (e, t) => {
151
151
  }))
152
152
  };
153
153
  };
154
- function ft(e, ...t) {
154
+ function ht(e, ...t) {
155
155
  const n = Object.assign({}, e);
156
156
  for (const i of t)
157
157
  delete n[i];
@@ -165,38 +165,38 @@ function K(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
165
165
  return;
166
166
  }
167
167
  a.has(e) || (a.add(e), Array.isArray(e) ? e.forEach((r, o) => {
168
- t(r, (u) => {
169
- e[o] = u;
168
+ t(r, (d) => {
169
+ e[o] = d;
170
170
  }), K(r, t, e, o, a);
171
171
  }) : Object.entries(e).forEach(([r, o]) => {
172
- t(o, (u) => {
173
- e[r] = u;
172
+ t(o, (d) => {
173
+ e[r] = d;
174
174
  }), K(o, t, e, r, a);
175
175
  }));
176
176
  }
177
- function Ae(e) {
177
+ function Ne(e) {
178
178
  return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
179
179
  }
180
- function ht(e) {
180
+ function gt(e) {
181
181
  if (!e || !Object.getOwnPropertyNames(e).length)
182
182
  return !1;
183
183
  let t = !1;
184
184
  return K(e, (n) => {
185
- if (Ae(n)) {
185
+ if (Ne(n)) {
186
186
  t = !0;
187
187
  return;
188
188
  }
189
189
  }), t;
190
190
  }
191
- function gt(e, t) {
191
+ function bt(e, t) {
192
192
  return !e || !Object.getOwnPropertyNames(e).length ? {} : (K(e, (n, i) => {
193
193
  var a;
194
- Ae(n) && i((a = n[t]) != null ? a : void 0);
194
+ Ne(n) && i((a = n[t]) != null ? a : void 0);
195
195
  }), e);
196
196
  }
197
- function bt(e, t) {
197
+ function pt(e, t) {
198
198
  var n, i;
199
- return (n = e.component) != null && n.options && ht((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 = gt(e.component.options, t != null ? t : "Default")), e;
199
+ return (n = e.component) != null && n.options && gt((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;
200
200
  }
201
201
  function oe(e) {
202
202
  if (e === null || typeof e != "object")
@@ -210,8 +210,8 @@ function oe(e) {
210
210
  n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = oe(e[n]));
211
211
  return t;
212
212
  }
213
- const pt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), yt = (e) => {
214
- if (pt) {
213
+ const yt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), vt = (e) => {
214
+ if (yt) {
215
215
  const t = le(e);
216
216
  return {
217
217
  ...t,
@@ -223,7 +223,7 @@ const pt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), yt = (e) =
223
223
  }
224
224
  };
225
225
  } else {
226
- const t = oe(ft(e, "children", "meta"));
226
+ const t = oe(ht(e, "children", "meta"));
227
227
  return {
228
228
  ...t,
229
229
  properties: {
@@ -236,7 +236,7 @@ const pt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), yt = (e) =
236
236
  meta: e.meta
237
237
  };
238
238
  }
239
- }, vt = ({
239
+ }, xt = ({
240
240
  block: e,
241
241
  context: t,
242
242
  localState: n,
@@ -245,28 +245,28 @@ const pt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), yt = (e) =
245
245
  }) => {
246
246
  if (!e.bindings)
247
247
  return e;
248
- const r = yt(e);
248
+ const r = vt(e);
249
249
  for (const o in e.bindings) {
250
- const l = e.bindings[o], u = O({
250
+ const l = e.bindings[o], d = O({
251
251
  code: l,
252
252
  localState: n,
253
253
  rootState: i,
254
254
  rootSetState: a,
255
255
  context: t
256
256
  });
257
- Pe(r, o, u);
257
+ Pe(r, o, d);
258
258
  }
259
259
  return r;
260
260
  };
261
- function xt({
261
+ function St({
262
262
  block: e,
263
263
  context: t,
264
264
  localState: n,
265
265
  rootState: i,
266
266
  rootSetState: a
267
267
  }) {
268
- let r = bt(e, i.locale);
269
- return r = r, vt({
268
+ let r = pt(e, i.locale);
269
+ return r = r, xt({
270
270
  block: r,
271
271
  localState: n,
272
272
  rootState: i,
@@ -275,19 +275,19 @@ function xt({
275
275
  });
276
276
  }
277
277
  const Q = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
278
- function St(e, t, n = {}) {
278
+ function kt(e, t, n = {}) {
279
279
  let i, a, r, o = null, l = 0;
280
- const u = function() {
280
+ const d = function() {
281
281
  l = n.leading === !1 ? 0 : Date.now(), o = null, r = e.apply(i, a), o || (i = a = null);
282
282
  };
283
283
  return function() {
284
284
  const c = Date.now();
285
285
  !l && n.leading === !1 && (l = c);
286
286
  const h = t - (c - l);
287
- return i = this, a = arguments, h <= 0 || h > t ? (o && (clearTimeout(o), o = null), l = c, r = e.apply(i, a), o || (i = a = null)) : !o && n.trailing !== !1 && (o = setTimeout(u, h)), r;
287
+ return i = this, a = arguments, h <= 0 || h > t ? (o && (clearTimeout(o), o = null), l = c, r = e.apply(i, a), o || (i = a = null)) : !o && n.trailing !== !1 && (o = setTimeout(d, h)), r;
288
288
  };
289
289
  }
290
- function _(e, ...t) {
290
+ function q(e, ...t) {
291
291
  const n = Object(e);
292
292
  for (let i = 1; i < arguments.length; i++) {
293
293
  const a = arguments[i];
@@ -297,73 +297,73 @@ function _(e, ...t) {
297
297
  }
298
298
  return n;
299
299
  }
300
- function kt(e) {
300
+ function Ct(e) {
301
301
  for (const t of e)
302
302
  switch (t.trigger) {
303
303
  case "pageLoad":
304
- $e(t);
304
+ De(t);
305
305
  break;
306
306
  case "scrollInView":
307
- Tt(t);
307
+ wt(t);
308
308
  break;
309
309
  }
310
310
  }
311
- function Ne(e) {
311
+ function We(e) {
312
312
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
313
313
  }
314
- function We(e, t) {
315
- const n = Ct(e), i = getComputedStyle(t), a = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, o = [a, r];
314
+ function $e(e, t) {
315
+ const n = Tt(e), i = getComputedStyle(t), a = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, o = [a, r];
316
316
  for (const l of o)
317
- for (const u of n)
318
- u in l || (l[u] = i[u]);
317
+ for (const d of n)
318
+ d in l || (l[d] = i[d]);
319
319
  }
320
- function Ct(e) {
320
+ function Tt(e) {
321
321
  const t = [];
322
322
  for (const n of e.steps)
323
323
  for (const i in n.styles)
324
324
  t.indexOf(i) === -1 && t.push(i);
325
325
  return t;
326
326
  }
327
- function $e(e) {
327
+ function De(e) {
328
328
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
329
329
  if (!t.length) {
330
- Ne(e.elementId || e.id || "");
330
+ We(e.elementId || e.id || "");
331
331
  return;
332
332
  }
333
333
  Array.from(t).forEach((n) => {
334
- We(e, n), n.style.transition = "none", n.style.transitionDelay = "0", _(n.style, e.steps[0].styles), setTimeout(() => {
335
- n.style.transition = `all ${e.duration}s ${Q(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), _(n.style, e.steps[1].styles), setTimeout(() => {
334
+ $e(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
335
+ n.style.transition = `all ${e.duration}s ${Q(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), q(n.style, e.steps[1].styles), setTimeout(() => {
336
336
  n.style.transition = "", n.style.transitionDelay = "";
337
337
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
338
338
  });
339
339
  });
340
340
  }
341
- function Tt(e) {
341
+ function wt(e) {
342
342
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
343
343
  if (!t.length) {
344
- Ne(e.elementId || e.id || "");
344
+ We(e.elementId || e.id || "");
345
345
  return;
346
346
  }
347
347
  Array.from(t).forEach((n) => {
348
- We(e, n);
348
+ $e(e, n);
349
349
  let i = !1, a = !1;
350
350
  function r() {
351
351
  !i && l(n) ? (i = !0, a = !0, setTimeout(() => {
352
- _(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", o), setTimeout(() => {
352
+ q(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", o), setTimeout(() => {
353
353
  a = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
354
354
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
355
- })) : e.repeat && i && !a && !l(n) && (i = !1, _(n.style, e.steps[0].styles));
355
+ })) : e.repeat && i && !a && !l(n) && (i = !1, q(n.style, e.steps[0].styles));
356
356
  }
357
- const o = St(r, 200, {
357
+ const o = kt(r, 200, {
358
358
  leading: !1
359
359
  });
360
360
  function l(h) {
361
- const g = h.getBoundingClientRect(), d = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * d;
362
- return g.bottom > f && g.top < d - f;
361
+ const y = h.getBoundingClientRect(), u = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * u;
362
+ return y.bottom > f && y.top < u - f;
363
363
  }
364
- const u = e.steps[0].styles;
364
+ const d = e.steps[0].styles;
365
365
  function c() {
366
- _(n.style, u);
366
+ q(n.style, d);
367
367
  }
368
368
  c(), setTimeout(() => {
369
369
  n.style.transition = `all ${e.duration}s ${Q(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
@@ -373,42 +373,42 @@ function Tt(e) {
373
373
  }), r();
374
374
  });
375
375
  }
376
- const De = (e) => Object.entries(e).map(([n, i]) => {
376
+ const Fe = (e) => Object.entries(e).map(([n, i]) => {
377
377
  if (typeof i == "string")
378
378
  return `${Q(n)}: ${i};`;
379
- }).filter(ae), wt = (e) => De(e).join(`
380
- `), U = ({
379
+ }).filter(ae), It = (e) => Fe(e).join(`
380
+ `), _ = ({
381
381
  mediaQuery: e,
382
382
  className: t,
383
383
  styles: n
384
384
  }) => {
385
385
  const i = `.${t} {
386
- ${wt(n)}
386
+ ${It(n)}
387
387
  }`;
388
388
  return e ? `${e} {
389
389
  ${i}
390
390
  }` : i;
391
391
  };
392
- function It({
392
+ function Et({
393
393
  style: e
394
394
  }) {
395
395
  return e;
396
396
  }
397
- const Et = ({
397
+ const Rt = ({
398
398
  block: e,
399
399
  context: t
400
- }) => Fe(It({
400
+ }) => Le(Et({
401
401
  style: e.style || {},
402
402
  context: t,
403
403
  block: e
404
404
  }));
405
- function Fe(e) {
405
+ function Le(e) {
406
406
  switch (F) {
407
407
  case "svelte":
408
408
  case "vue":
409
409
  case "solid":
410
410
  case "angular":
411
- return De(e).join(" ");
411
+ return Fe(e).join(" ");
412
412
  case "qwik":
413
413
  case "reactNative":
414
414
  case "react":
@@ -416,7 +416,7 @@ function Fe(e) {
416
416
  return e;
417
417
  }
418
418
  }
419
- const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Rt = ({
419
+ const Oe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Vt = ({
420
420
  block: e,
421
421
  registeredComponents: t,
422
422
  model: n
@@ -426,7 +426,7 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
426
426
  if (!i)
427
427
  return null;
428
428
  const a = t[i];
429
- if (!a || Le(a, n)) {
429
+ if (!a || Oe(a, n)) {
430
430
  console.warn(`
431
431
  Could not find a registered component named "${i}".
432
432
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
@@ -453,40 +453,40 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
453
453
  if (!Array.isArray(a))
454
454
  return;
455
455
  const r = n.collection.split(".").pop(), o = n.itemName || (r ? r + "Item" : "item");
456
- return a.map((u, c) => ({
456
+ return a.map((d, c) => ({
457
457
  context: {
458
458
  ...t,
459
459
  localState: {
460
460
  ...t.localState,
461
461
  $index: c,
462
- $item: u,
463
- [o]: u,
462
+ $item: d,
463
+ [o]: d,
464
464
  [`$${o}Index`]: c
465
465
  }
466
466
  },
467
467
  block: i
468
468
  }));
469
- }, Vt = (e, t) => {
469
+ }, Bt = (e, t) => {
470
470
  var n;
471
471
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
472
472
  builderLinkComponent: t
473
473
  } : {};
474
- }, Bt = (e, t, n) => {
474
+ }, At = (e, t, n) => {
475
475
  var i;
476
476
  return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
477
- builderComponents: Object.fromEntries(Object.entries(t).filter(([r, o]) => !Le(o, n)))
477
+ builderComponents: Object.fromEntries(Object.entries(t).filter(([r, o]) => !Oe(o, n)))
478
478
  } : {};
479
- }, At = (e, t) => {
479
+ }, Nt = (e, t) => {
480
480
  var n;
481
481
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
482
482
  builderBlock: t
483
483
  } : {};
484
- }, Nt = (e, t) => {
484
+ }, Wt = (e, t) => {
485
485
  var n;
486
486
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
487
487
  builderContext: t
488
488
  } : {};
489
- }, Oe = {
489
+ }, Ue = {
490
490
  xsmall: {
491
491
  min: 0,
492
492
  default: 160,
@@ -507,8 +507,8 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
507
507
  default: 991,
508
508
  max: 1200
509
509
  }
510
- }, X = (e, t = Oe) => `@media (max-width: ${t[e].max}px)`, Ue = (e) => {
511
- const t = le(Oe);
510
+ }, X = (e, t = Ue) => `@media (max-width: ${t[e].max}px)`, _e = (e) => {
511
+ const t = le(Ue);
512
512
  if (!e)
513
513
  return t;
514
514
  const {
@@ -517,11 +517,11 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
517
517
  medium: a
518
518
  } = e;
519
519
  if (n) {
520
- const u = Math.floor(n / 2);
520
+ const d = Math.floor(n / 2);
521
521
  t.xsmall = {
522
522
  max: n,
523
- min: u,
524
- default: u + 1
523
+ min: d,
524
+ default: d + 1
525
525
  };
526
526
  }
527
527
  if (!i || !a)
@@ -546,7 +546,7 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
546
546
  default: l + 1
547
547
  }, t;
548
548
  };
549
- function M(e) {
549
+ function j(e) {
550
550
  return /* @__PURE__ */ s(
551
551
  "style",
552
552
  {
@@ -556,67 +556,67 @@ function M(e) {
556
556
  }
557
557
  );
558
558
  }
559
- function Wt(e) {
559
+ function $t(e) {
560
560
  function t() {
561
561
  const i = e.block;
562
562
  return ae(i.hide) ? !i.hide : ae(i.show) ? i.show : !0;
563
563
  }
564
564
  function n() {
565
- var T, P, I, v, m;
566
- const i = e.block, a = i.responsiveStyles, r = e.context.content, o = Ue(
567
- ((T = r == null ? void 0 : r.meta) == null ? void 0 : T.breakpoints) || {}
568
- ), l = !!((I = (P = r == null ? void 0 : r.meta) == null ? void 0 : P.breakpoints) != null && I.xsmall), u = a == null ? void 0 : a.large, c = a == null ? void 0 : a.medium, h = a == null ? void 0 : a.small, g = a == null ? void 0 : a.xsmall, d = i.id;
569
- if (!d)
565
+ var C, V, w, k, m;
566
+ const i = e.block, a = i.responsiveStyles, r = e.context.content, o = _e(
567
+ ((C = r == null ? void 0 : r.meta) == null ? void 0 : C.breakpoints) || {}
568
+ ), l = !!((w = (V = r == null ? void 0 : r.meta) == null ? void 0 : V.breakpoints) != null && w.xsmall), d = a == null ? void 0 : a.large, c = a == null ? void 0 : a.medium, h = a == null ? void 0 : a.small, y = a == null ? void 0 : a.xsmall, u = i.id;
569
+ if (!u)
570
570
  return "";
571
- const k = u ? U({
572
- className: d,
573
- styles: u
574
- }) : "", f = c ? U({
575
- className: d,
571
+ const v = d ? _({
572
+ className: u,
573
+ styles: d
574
+ }) : "", f = c ? _({
575
+ className: u,
576
576
  styles: c,
577
577
  mediaQuery: X(
578
578
  "medium",
579
579
  o
580
580
  )
581
- }) : "", b = h ? U({
582
- className: d,
581
+ }) : "", g = h ? _({
582
+ className: u,
583
583
  styles: h,
584
584
  mediaQuery: X(
585
585
  "small",
586
586
  o
587
587
  )
588
- }) : "", x = g && l ? U({
589
- className: d,
590
- styles: g,
588
+ }) : "", x = y && l ? _({
589
+ className: u,
590
+ styles: y,
591
591
  mediaQuery: X(
592
592
  "xsmall",
593
593
  o
594
594
  )
595
- }) : "", y = i.animations && i.animations.find((p) => p.trigger === "hover");
595
+ }) : "", b = i.animations && i.animations.find((p) => p.trigger === "hover");
596
596
  let S = "";
597
- if (y) {
598
- const p = ((m = (v = y.steps) == null ? void 0 : v[1]) == null ? void 0 : m.styles) || {};
599
- S = U({
600
- className: `${d}:hover`,
597
+ if (b) {
598
+ const p = ((m = (k = b.steps) == null ? void 0 : k[1]) == null ? void 0 : m.styles) || {};
599
+ S = _({
600
+ className: `${u}:hover`,
601
601
  styles: {
602
602
  ...p,
603
- transition: `all ${y.duration}s ${Q(
604
- y.easing
603
+ transition: `all ${b.duration}s ${Q(
604
+ b.easing
605
605
  )}`,
606
- transitionDelay: y.delay ? `${y.delay}s` : "0s"
606
+ transitionDelay: b.delay ? `${b.delay}s` : "0s"
607
607
  }
608
608
  }) || "";
609
609
  }
610
610
  return [
611
- k,
611
+ v,
612
612
  f,
613
- b,
613
+ g,
614
614
  x,
615
615
  S
616
616
  ].join(" ");
617
617
  }
618
618
  return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
619
- M,
619
+ j,
620
620
  {
621
621
  id: "builderio-block",
622
622
  styles: n(),
@@ -624,10 +624,10 @@ function Wt(e) {
624
624
  }
625
625
  ) }) : null });
626
626
  }
627
- function $t(e) {
627
+ function Dt(e) {
628
628
  return e.charAt(0).toUpperCase() + e.slice(1);
629
629
  }
630
- const Dt = (e) => `on${$t(e)}`, Ft = (e, t) => (n) => O({
630
+ const Ft = (e) => `on${Dt(e)}`, Lt = (e, t) => (n) => O({
631
631
  code: e,
632
632
  context: t.context,
633
633
  localState: t.localState,
@@ -636,14 +636,14 @@ const Dt = (e) => `on${$t(e)}`, Ft = (e, t) => (n) => O({
636
636
  event: n,
637
637
  isExpression: !1
638
638
  });
639
- function _e(e) {
639
+ function qe(e) {
640
640
  var i;
641
641
  const t = {}, n = (i = e.block.actions) != null ? i : {};
642
642
  for (const a in n) {
643
643
  if (!n.hasOwnProperty(a))
644
644
  continue;
645
645
  const r = n[a];
646
- let o = Dt(a);
646
+ let o = Ft(a);
647
647
  if (e.stripPrefix)
648
648
  switch (F) {
649
649
  case "vue":
@@ -653,16 +653,16 @@ function _e(e) {
653
653
  o = o.replace("on:", "");
654
654
  break;
655
655
  }
656
- t[o] = Ft(r, e);
656
+ t[o] = Lt(r, e);
657
657
  }
658
658
  return t;
659
659
  }
660
- function Lt({
660
+ function Ot({
661
661
  properties: e
662
662
  }) {
663
663
  return e;
664
664
  }
665
- const Ot = (e) => ({
665
+ const Ut = (e) => ({
666
666
  href: e.href
667
667
  });
668
668
  function ue({
@@ -671,22 +671,22 @@ function ue({
671
671
  }) {
672
672
  var i;
673
673
  const n = {
674
- ...Ot(e),
674
+ ...Ut(e),
675
675
  ...e.properties,
676
676
  "builder-id": e.id,
677
- style: Et({
677
+ style: Rt({
678
678
  block: e,
679
679
  context: t
680
680
  }),
681
- [H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
681
+ [M()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
682
682
  };
683
- return Lt({
683
+ return Ot({
684
684
  properties: n,
685
685
  context: t,
686
686
  block: e
687
687
  });
688
688
  }
689
- function Ut(e) {
689
+ function _t(e) {
690
690
  return /* @__PURE__ */ s(
691
691
  se,
692
692
  {
@@ -695,7 +695,7 @@ function Ut(e) {
695
695
  block: e.block,
696
696
  context: e.context
697
697
  }),
698
- actionAttributes: _e({
698
+ actionAttributes: qe({
699
699
  block: e.block,
700
700
  rootState: e.context.rootState,
701
701
  rootSetState: e.context.rootSetState,
@@ -707,18 +707,18 @@ function Ut(e) {
707
707
  }
708
708
  );
709
709
  }
710
- function _t(e) {
711
- return A(() => {
710
+ function qt(e) {
711
+ return B(() => {
712
712
  }, []), /* @__PURE__ */ s(R, { children: e.children });
713
713
  }
714
- function qt(e) {
714
+ function Ht(e) {
715
715
  function t() {
716
716
  return e.includeBlockProps ? {
717
717
  ...ue({
718
718
  block: e.block,
719
719
  context: e.context
720
720
  }),
721
- ..._e({
721
+ ...qe({
722
722
  block: e.block,
723
723
  rootState: e.context.rootState,
724
724
  rootSetState: e.context.rootSetState,
@@ -728,7 +728,7 @@ function qt(e) {
728
728
  } : {};
729
729
  }
730
730
  return /* @__PURE__ */ s(R, { children: e.Wrapper.load ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
731
- _t,
731
+ qt,
732
732
  {
733
733
  load: e.Wrapper.load,
734
734
  fallback: e.Wrapper.fallback,
@@ -738,7 +738,7 @@ function qt(e) {
738
738
  }
739
739
  ) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
740
740
  }
741
- const Ht = ({
741
+ const Mt = ({
742
742
  componentOptions: e,
743
743
  builderBlock: t,
744
744
  context: n,
@@ -768,15 +768,15 @@ const Ht = ({
768
768
  includeBlockProps: a
769
769
  } : l;
770
770
  };
771
- function be(e) {
771
+ function pe(e) {
772
772
  var i;
773
773
  const [t, n] = E(
774
- () => e.isInteractive ? qt : e.componentRef
774
+ () => e.isInteractive ? Ht : e.componentRef
775
775
  );
776
776
  return /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
777
777
  t,
778
778
  {
779
- ...Ht({
779
+ ...Mt({
780
780
  componentOptions: e.componentOptions,
781
781
  builderBlock: e.builderBlock,
782
782
  context: e.context,
@@ -799,7 +799,7 @@ function be(e) {
799
799
  }
800
800
  ) }) : null });
801
801
  }
802
- function pe(e) {
802
+ function ye(e) {
803
803
  const [t, n] = E(() => e.repeatContext);
804
804
  return /* @__PURE__ */ s(ce.Provider, { value: t, children: /* @__PURE__ */ s(
805
805
  Y,
@@ -812,7 +812,7 @@ function pe(e) {
812
812
  ) });
813
813
  }
814
814
  function Y(e) {
815
- var h, g, d, k;
815
+ var h, y, u, v;
816
816
  function t() {
817
817
  return Pt({
818
818
  block: e.block,
@@ -824,10 +824,10 @@ function Y(e) {
824
824
  update: !1
825
825
  }));
826
826
  function a() {
827
- var b;
827
+ var g;
828
828
  if (n.value && !n.update && !G())
829
829
  return n.value;
830
- const f = (b = e.block.repeat) != null && b.collection ? e.block : xt({
830
+ const f = (g = e.block.repeat) != null && g.collection ? e.block : St({
831
831
  block: e.block,
832
832
  localState: e.context.localState,
833
833
  rootState: e.context.rootState,
@@ -837,38 +837,38 @@ function Y(e) {
837
837
  return n.value = f, n.update = !1, f;
838
838
  }
839
839
  function r() {
840
- return Rt({
840
+ return Vt({
841
841
  block: a(),
842
842
  registeredComponents: e.registeredComponents,
843
843
  model: e.context.model
844
844
  });
845
845
  }
846
846
  function o() {
847
- var b;
848
- return e.block.tagName === "a" || ((b = a().properties) == null ? void 0 : b.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
847
+ var g;
848
+ return e.block.tagName === "a" || ((g = a().properties) == null ? void 0 : g.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
849
849
  }
850
850
  function l() {
851
- var x, y;
851
+ var x, b;
852
852
  if ((x = e.block.repeat) != null && x.collection)
853
- return !!((y = t == null ? void 0 : t()) != null && y.length);
853
+ return !!((b = t == null ? void 0 : t()) != null && b.length);
854
854
  const f = "hide" in a() ? a().hide : !1;
855
855
  return ("show" in a() ? a().show : !0) && !f;
856
856
  }
857
- function u() {
858
- var b, x;
859
- return !((b = r == null ? void 0 : r()) != null && b.component) && !t() ? (x = a().children) != null ? x : [] : [];
857
+ function d() {
858
+ var g, x;
859
+ return !((g = r == null ? void 0 : r()) != null && g.component) && !t() ? (x = a().children) != null ? x : [] : [];
860
860
  }
861
861
  function c() {
862
- var f, b, x, y;
862
+ var f, g, x, b;
863
863
  return {
864
864
  blockChildren: (f = a().children) != null ? f : [],
865
- componentRef: (b = r == null ? void 0 : r()) == null ? void 0 : b.component,
865
+ componentRef: (g = r == null ? void 0 : r()) == null ? void 0 : g.component,
866
866
  componentOptions: {
867
- ...dt(a(), e.context),
868
- ...At(r(), a()),
869
- ...Nt(r(), e.context),
870
- ...Vt(r(), e.linkComponent),
871
- ...Bt(
867
+ ...mt(a(), e.context),
868
+ ...Nt(r(), a()),
869
+ ...Wt(r(), e.context),
870
+ ...Bt(r(), e.linkComponent),
871
+ ...At(
872
872
  r(),
873
873
  e.registeredComponents,
874
874
  e.context.model
@@ -879,32 +879,32 @@ function Y(e) {
879
879
  registeredComponents: e.registeredComponents,
880
880
  builderBlock: a(),
881
881
  includeBlockProps: ((x = r == null ? void 0 : r()) == null ? void 0 : x.noWrap) === !0,
882
- isInteractive: !((y = r == null ? void 0 : r()) != null && y.isRSC && F === "rsc")
882
+ isInteractive: !((b = r == null ? void 0 : r()) != null && b.isRSC && F === "rsc")
883
883
  };
884
884
  }
885
- return A(() => {
886
- const f = a().id, b = a().animations;
887
- b && f && kt(
888
- b.map((x) => ({
885
+ return B(() => {
886
+ const f = a().id, g = a().animations;
887
+ g && f && Ct(
888
+ g.map((x) => ({
889
889
  ...x,
890
890
  elementId: f
891
891
  }))
892
892
  );
893
- }, []), A(() => {
893
+ }, []), B(() => {
894
894
  n.update = !0;
895
- }), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ V(R, { children: [
896
- /* @__PURE__ */ s(Wt, { block: a(), context: e.context }),
897
- (h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (k = t()) == null ? void 0 : k.map((f, b) => /* @__PURE__ */ s(
898
- pe,
895
+ }), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ N(R, { children: [
896
+ /* @__PURE__ */ s($t, { block: a(), context: e.context }),
897
+ (h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((f, g) => /* @__PURE__ */ s(
898
+ ye,
899
899
  {
900
900
  repeatContext: f.context,
901
901
  block: f.block,
902
902
  registeredComponents: e.registeredComponents,
903
903
  linkComponent: e.linkComponent
904
904
  },
905
- b
905
+ g
906
906
  )) }) : /* @__PURE__ */ s(
907
- be,
907
+ pe,
908
908
  {
909
909
  componentRef: c().componentRef,
910
910
  componentOptions: c().componentOptions,
@@ -916,24 +916,24 @@ function Y(e) {
916
916
  includeBlockProps: c().includeBlockProps,
917
917
  isInteractive: c().isInteractive
918
918
  }
919
- ) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (d = t()) == null ? void 0 : d.map((f, b) => /* @__PURE__ */ s(
920
- pe,
919
+ ) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (u = t()) == null ? void 0 : u.map((f, g) => /* @__PURE__ */ s(
920
+ ye,
921
921
  {
922
922
  repeatContext: f.context,
923
923
  block: f.block,
924
924
  registeredComponents: e.registeredComponents,
925
925
  linkComponent: e.linkComponent
926
926
  },
927
- b
928
- )) }) : /* @__PURE__ */ V(
929
- Ut,
927
+ g
928
+ )) }) : /* @__PURE__ */ N(
929
+ _t,
930
930
  {
931
931
  Wrapper: o(),
932
932
  block: a(),
933
933
  context: e.context,
934
934
  children: [
935
935
  /* @__PURE__ */ s(
936
- be,
936
+ pe,
937
937
  {
938
938
  componentRef: c().componentRef,
939
939
  componentOptions: c().componentOptions,
@@ -946,7 +946,7 @@ function Y(e) {
946
946
  isInteractive: c().isInteractive
947
947
  }
948
948
  ),
949
- (g = u()) == null ? void 0 : g.map((f) => /* @__PURE__ */ s(
949
+ (y = d()) == null ? void 0 : y.map((f) => /* @__PURE__ */ s(
950
950
  Y,
951
951
  {
952
952
  block: f,
@@ -961,7 +961,7 @@ function Y(e) {
961
961
  ) })
962
962
  ] }) : null });
963
963
  }
964
- function Mt(e) {
964
+ function jt(e) {
965
965
  const t = D(null);
966
966
  function n() {
967
967
  var o;
@@ -1003,8 +1003,8 @@ function Mt(e) {
1003
1003
  "*"
1004
1004
  ));
1005
1005
  }
1006
- return A(() => {
1007
- }, []), /* @__PURE__ */ V(R, { children: [
1006
+ return B(() => {
1007
+ }, []), /* @__PURE__ */ N(R, { children: [
1008
1008
  /* @__PURE__ */ s(
1009
1009
  e.BlocksWrapper,
1010
1010
  {
@@ -1029,9 +1029,9 @@ function Mt(e) {
1029
1029
  }
1030
1030
  function $(e) {
1031
1031
  var i, a, r;
1032
- const t = ge(ce), n = ge(Ve);
1032
+ const t = be(ce), n = be(Be);
1033
1033
  return /* @__PURE__ */ s(
1034
- Mt,
1034
+ jt,
1035
1035
  {
1036
1036
  blocks: e.blocks,
1037
1037
  parent: e.parent,
@@ -1053,9 +1053,9 @@ function $(e) {
1053
1053
  }
1054
1054
  );
1055
1055
  }
1056
- const jt = (e) => `builder-columns ${e}-breakpoints`;
1057
- function zt(e) {
1058
- var b, x;
1056
+ const zt = (e) => `builder-columns ${e}-breakpoints`;
1057
+ function Kt(e) {
1058
+ var g, x;
1059
1059
  function t() {
1060
1060
  return typeof e.space == "number" ? e.space || 0 : 20;
1061
1061
  }
@@ -1065,28 +1065,28 @@ function zt(e) {
1065
1065
  function i() {
1066
1066
  return e.stackColumnsAt || "tablet";
1067
1067
  }
1068
- function a(y) {
1069
- return y.link ? e.builderLinkComponent || "a" : "div";
1068
+ function a(b) {
1069
+ return b.link ? e.builderLinkComponent || "a" : "div";
1070
1070
  }
1071
- function r(y) {
1071
+ function r(b) {
1072
1072
  var S;
1073
- return ((S = n()[y]) == null ? void 0 : S.width) || 100 / n().length;
1073
+ return ((S = n()[b]) == null ? void 0 : S.width) || 100 / n().length;
1074
1074
  }
1075
- function o(y) {
1076
- const S = r(y), T = t() * (n().length - 1) * (S / 100);
1077
- return `calc(${S}% - ${T}px)`;
1075
+ function o(b) {
1076
+ const S = r(b), C = t() * (n().length - 1) * (S / 100);
1077
+ return `calc(${S}% - ${C}px)`;
1078
1078
  }
1079
1079
  function l({
1080
- stackedStyle: y,
1080
+ stackedStyle: b,
1081
1081
  desktopStyle: S
1082
1082
  }) {
1083
- return i() === "tablet" ? y : S;
1083
+ return i() === "tablet" ? b : S;
1084
1084
  }
1085
- function u({
1086
- stackedStyle: y,
1085
+ function d({
1086
+ stackedStyle: b,
1087
1087
  desktopStyle: S
1088
1088
  }) {
1089
- return i() === "never" ? S : y;
1089
+ return i() === "never" ? S : b;
1090
1090
  }
1091
1091
  function c() {
1092
1092
  return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
@@ -1100,98 +1100,98 @@ function zt(e) {
1100
1100
  })
1101
1101
  };
1102
1102
  }
1103
- function g(y) {
1104
- const S = y === 0 ? 0 : t(), T = o(y), P = `${S}px`, I = "100%", v = 0;
1103
+ function y(b) {
1104
+ const S = b === 0 ? 0 : t(), C = o(b), V = `${S}px`, w = "100%", k = 0;
1105
1105
  return {
1106
1106
  ...{
1107
1107
  display: "flex",
1108
1108
  flexDirection: "column",
1109
1109
  alignItems: "stretch"
1110
1110
  },
1111
- width: T,
1112
- ["marginLeft"]: P,
1113
- "--column-width-mobile": u({
1114
- stackedStyle: I,
1115
- desktopStyle: T
1111
+ width: C,
1112
+ ["marginLeft"]: V,
1113
+ "--column-width-mobile": d({
1114
+ stackedStyle: w,
1115
+ desktopStyle: C
1116
1116
  }),
1117
- "--column-margin-left-mobile": u({
1118
- stackedStyle: v,
1119
- desktopStyle: P
1117
+ "--column-margin-left-mobile": d({
1118
+ stackedStyle: k,
1119
+ desktopStyle: V
1120
1120
  }),
1121
1121
  "--column-width-tablet": l({
1122
- stackedStyle: I,
1123
- desktopStyle: T
1122
+ stackedStyle: w,
1123
+ desktopStyle: C
1124
1124
  }),
1125
1125
  "--column-margin-left-tablet": l({
1126
- stackedStyle: v,
1127
- desktopStyle: P
1126
+ stackedStyle: k,
1127
+ desktopStyle: V
1128
1128
  })
1129
1129
  };
1130
1130
  }
1131
- function d(y) {
1132
- var T, P;
1133
- return Ue(
1134
- ((P = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : P.breakpoints) || {}
1135
- )[y].max;
1131
+ function u(b) {
1132
+ var C, V;
1133
+ return _e(
1134
+ ((V = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : V.breakpoints) || {}
1135
+ )[b].max;
1136
1136
  }
1137
- function k() {
1138
- const y = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1137
+ function v() {
1138
+ const b = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1139
1139
  return `
1140
- @media (max-width: ${d("medium")}px) {
1140
+ @media (max-width: ${u("medium")}px) {
1141
1141
  .${e.builderBlock.id}-breakpoints {
1142
1142
  flex-direction: var(--flex-dir-tablet);
1143
1143
  align-items: stretch;
1144
1144
  }
1145
1145
 
1146
- ${y} {
1146
+ ${b} {
1147
1147
  width: var(--column-width-tablet) !important;
1148
1148
  margin-left: var(--column-margin-left-tablet) !important;
1149
1149
  }
1150
1150
  }
1151
1151
 
1152
- @media (max-width: ${d("small")}px) {
1152
+ @media (max-width: ${u("small")}px) {
1153
1153
  .${e.builderBlock.id}-breakpoints {
1154
1154
  flex-direction: var(--flex-dir);
1155
1155
  align-items: stretch;
1156
1156
  }
1157
1157
 
1158
- ${y} {
1158
+ ${b} {
1159
1159
  width: var(--column-width-mobile) !important;
1160
1160
  margin-left: var(--column-margin-left-mobile) !important;
1161
1161
  }
1162
1162
  },
1163
1163
  `;
1164
1164
  }
1165
- function f(y, S) {
1165
+ function f(b, S) {
1166
1166
  return {
1167
- ...y.link ? {
1168
- href: y.link
1167
+ ...b.link ? {
1168
+ href: b.link
1169
1169
  } : {},
1170
- [H()]: "builder-column",
1171
- style: Fe(g(S))
1170
+ [M()]: "builder-column",
1171
+ style: Le(y(S))
1172
1172
  };
1173
1173
  }
1174
- return /* @__PURE__ */ V(R, { children: [
1175
- /* @__PURE__ */ V(
1174
+ return /* @__PURE__ */ N(R, { children: [
1175
+ /* @__PURE__ */ N(
1176
1176
  "div",
1177
1177
  {
1178
- className: jt((b = e.builderBlock) == null ? void 0 : b.id) + " div-a6f3faac",
1178
+ className: zt((g = e.builderBlock) == null ? void 0 : g.id) + " div-a6f3faac",
1179
1179
  style: h(),
1180
1180
  children: [
1181
1181
  /* @__PURE__ */ s(
1182
- M,
1182
+ j,
1183
1183
  {
1184
1184
  id: "builderio-columns",
1185
- styles: k(),
1185
+ styles: v(),
1186
1186
  nonce: e.builderContext.nonce
1187
1187
  }
1188
1188
  ),
1189
- (x = e.columns) == null ? void 0 : x.map((y, S) => /* @__PURE__ */ s(
1189
+ (x = e.columns) == null ? void 0 : x.map((b, S) => /* @__PURE__ */ s(
1190
1190
  se,
1191
1191
  {
1192
- TagName: a(y),
1192
+ TagName: a(b),
1193
1193
  actionAttributes: {},
1194
- attributes: f(y, S),
1194
+ attributes: f(b, S),
1195
1195
  children: /* @__PURE__ */ s(
1196
1196
  $,
1197
1197
  {
@@ -1200,7 +1200,7 @@ function zt(e) {
1200
1200
  context: e.builderContext,
1201
1201
  registeredComponents: e.builderComponents,
1202
1202
  linkComponent: e.builderLinkComponent,
1203
- blocks: y.blocks,
1203
+ blocks: b.blocks,
1204
1204
  styleProp: {
1205
1205
  flexGrow: "1"
1206
1206
  }
@@ -1218,25 +1218,25 @@ function zt(e) {
1218
1218
  }` })
1219
1219
  ] });
1220
1220
  }
1221
- function Kt(e) {
1221
+ function Jt(e) {
1222
1222
  return /* @__PURE__ */ s("span", { children: e.children });
1223
1223
  }
1224
- function ye(e) {
1224
+ function ve(e) {
1225
1225
  return e.replace(/http(s)?:/, "");
1226
1226
  }
1227
- function Jt(e = "", t, n) {
1227
+ function Gt(e = "", t, n) {
1228
1228
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), a = e.indexOf("?") !== -1 ? "&" : "?";
1229
1229
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + a + t + "=" + encodeURIComponent(n);
1230
1230
  }
1231
- function Gt(e, t) {
1231
+ function Qt(e, t) {
1232
1232
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1233
1233
  return e;
1234
1234
  if (t === "master")
1235
- return ye(e);
1235
+ return ve(e);
1236
1236
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1237
1237
  if (n) {
1238
1238
  const i = e.split(n[0]), a = n[3], r = t.match("x") ? t : `${t}x`;
1239
- return ye(`${i[0]}_${r}${a}`);
1239
+ return ve(`${i[0]}_${r}${a}`);
1240
1240
  }
1241
1241
  return null;
1242
1242
  }
@@ -1247,26 +1247,26 @@ function Z(e) {
1247
1247
  if (e.match(/builder\.io/)) {
1248
1248
  let n = e;
1249
1249
  const i = Number(e.split("?width=")[1]);
1250
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${Jt(e, "width", a)} ${a}w`).concat([n]).join(", ");
1250
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${Gt(e, "width", a)} ${a}w`).concat([n]).join(", ");
1251
1251
  }
1252
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Gt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1252
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Qt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1253
1253
  }
1254
- function Qt(e) {
1255
- var a, r, o, l, u, c;
1254
+ function Yt(e) {
1255
+ var a, r, o, l, d, c;
1256
1256
  function t() {
1257
- var d;
1258
- const g = e.image || e.src;
1259
- if (!g || // We can auto add srcset for cdn.builder.io and shopify
1257
+ var u;
1258
+ const y = e.image || e.src;
1259
+ if (!y || // We can auto add srcset for cdn.builder.io and shopify
1260
1260
  // images, otherwise you can supply this prop manually
1261
- !(typeof g == "string" && (g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/))))
1261
+ !(typeof y == "string" && (y.match(/builder\.io/) || y.match(/cdn\.shopify\.com/))))
1262
1262
  return e.srcset;
1263
1263
  if (!e.noWebp) {
1264
- if (e.srcset && ((d = e.image) != null && d.includes("builder.io/api/v1/image"))) {
1264
+ if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
1265
1265
  if (!e.srcset.includes(e.image.split("?")[0]))
1266
- return console.debug("Removed given srcset"), Z(g);
1266
+ return console.debug("Removed given srcset"), Z(y);
1267
1267
  } else if (e.image && !e.srcset)
1268
- return Z(g);
1269
- return Z(g);
1268
+ return Z(y);
1269
+ return Z(y);
1270
1270
  }
1271
1271
  }
1272
1272
  function n() {
@@ -1283,9 +1283,9 @@ function Qt(e) {
1283
1283
  };
1284
1284
  return e.aspectRatio ? h : void 0;
1285
1285
  }
1286
- return /* @__PURE__ */ V(R, { children: [
1287
- /* @__PURE__ */ V(R, { children: [
1288
- /* @__PURE__ */ V("picture", { children: [
1286
+ return /* @__PURE__ */ N(R, { children: [
1287
+ /* @__PURE__ */ N(R, { children: [
1288
+ /* @__PURE__ */ N("picture", { children: [
1289
1289
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1290
1290
  /* @__PURE__ */ s(
1291
1291
  "img",
@@ -1316,7 +1316,7 @@ function Qt(e) {
1316
1316
  }
1317
1317
  ) : null,
1318
1318
  (l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
1319
- !e.fitContent && ((c = (u = e.builderBlock) == null ? void 0 : u.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-9dac2184-2", children: e.children }) : null
1319
+ !e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-9dac2184-2", children: e.children }) : null
1320
1320
  ] }),
1321
1321
  /* @__PURE__ */ s("style", { children: `.img-9dac2184 {
1322
1322
  opacity: 1;
@@ -1337,7 +1337,7 @@ function Qt(e) {
1337
1337
  }` })
1338
1338
  ] });
1339
1339
  }
1340
- function Yt(e) {
1340
+ function Xt(e) {
1341
1341
  return /* @__PURE__ */ s(
1342
1342
  "section",
1343
1343
  {
@@ -1418,7 +1418,7 @@ const ee = {
1418
1418
  }
1419
1419
  }
1420
1420
  }]
1421
- }, Xt = {
1421
+ }, Zt = {
1422
1422
  name: "Builder:Accordion",
1423
1423
  canHaveChildren: !0,
1424
1424
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1482,9 +1482,9 @@ const ee = {
1482
1482
  builderComponents: !0,
1483
1483
  builderLinkComponent: !0
1484
1484
  }
1485
- }, ve = (e) => e.toString();
1486
- function Zt(e) {
1487
- var g;
1485
+ }, xe = (e) => e.toString();
1486
+ function en(e) {
1487
+ var y;
1488
1488
  const [t, n] = E(() => []);
1489
1489
  function i() {
1490
1490
  return !!(e.grid || e.oneAtATime);
@@ -1502,7 +1502,7 @@ function Zt(e) {
1502
1502
  };
1503
1503
  }
1504
1504
  function r() {
1505
- const k = {
1505
+ const v = {
1506
1506
  ...{
1507
1507
  display: "flex",
1508
1508
  flexDirection: "column"
@@ -1511,75 +1511,75 @@ function Zt(e) {
1511
1511
  cursor: "pointer"
1512
1512
  };
1513
1513
  return Object.fromEntries(
1514
- Object.entries(k).filter(([f, b]) => b !== void 0)
1514
+ Object.entries(v).filter(([f, g]) => g !== void 0)
1515
1515
  );
1516
1516
  }
1517
- function o(d) {
1518
- return `builder-accordion-title builder-accordion-title-${t.includes(d) ? "open" : "closed"}`;
1517
+ function o(u) {
1518
+ return `builder-accordion-title builder-accordion-title-${t.includes(u) ? "open" : "closed"}`;
1519
1519
  }
1520
- function l(d) {
1521
- return `builder-accordion-detail builder-accordion-detail-${t.includes(d) ? "open" : "closed"}`;
1520
+ function l(u) {
1521
+ return `builder-accordion-detail builder-accordion-detail-${t.includes(u) ? "open" : "closed"}`;
1522
1522
  }
1523
- function u() {
1524
- let d = null;
1523
+ function d() {
1524
+ let u = null;
1525
1525
  if (e.grid && t.length && document) {
1526
1526
  const f = t[0];
1527
1527
  let x = document.querySelector(
1528
1528
  `.builder-accordion-title[data-index="${f}"]`
1529
1529
  );
1530
- if (d = f, x) {
1531
- let y = x.getBoundingClientRect();
1530
+ if (u = f, x) {
1531
+ let b = x.getBoundingClientRect();
1532
1532
  for (; x = x && x.nextElementSibling; )
1533
1533
  if (x) {
1534
1534
  if (x.classList.contains("builder-accordion-detail"))
1535
1535
  continue;
1536
1536
  const S = x.getBoundingClientRect();
1537
- if (S.left > y.left) {
1538
- const T = parseInt(
1537
+ if (S.left > b.left) {
1538
+ const C = parseInt(
1539
1539
  x.getAttribute("data-index") || "",
1540
1540
  10
1541
1541
  );
1542
- isNaN(T) || (y = S, d = T);
1542
+ isNaN(C) || (b = S, u = C);
1543
1543
  } else
1544
1544
  break;
1545
1545
  }
1546
1546
  }
1547
1547
  }
1548
- return typeof d == "number" && (d = d + 1), d;
1548
+ return typeof u == "number" && (u = u + 1), u;
1549
1549
  }
1550
1550
  function c() {
1551
- const d = {
1552
- order: typeof u() == "number" ? u() : void 0,
1551
+ const u = {
1552
+ order: typeof d() == "number" ? d() : void 0,
1553
1553
  ...e.grid && {
1554
1554
  width: "100%"
1555
1555
  }
1556
1556
  };
1557
1557
  return Object.fromEntries(
1558
- Object.entries(d).filter(([k, f]) => f !== void 0)
1558
+ Object.entries(u).filter(([v, f]) => f !== void 0)
1559
1559
  );
1560
1560
  }
1561
- function h(d) {
1562
- t.includes(d) ? n(i() ? [] : t.filter((k) => k !== d)) : n(i() ? [d] : t.concat(d));
1561
+ function h(u) {
1562
+ t.includes(u) ? n(i() ? [] : t.filter((v) => v !== u)) : n(i() ? [u] : t.concat(u));
1563
1563
  }
1564
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (g = e.items) == null ? void 0 : g.map((d, k) => /* @__PURE__ */ V(Qe.Fragment, { children: [
1564
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (y = e.items) == null ? void 0 : y.map((u, v) => /* @__PURE__ */ N(Ye.Fragment, { children: [
1565
1565
  /* @__PURE__ */ s(
1566
1566
  "div",
1567
1567
  {
1568
- className: o(k),
1568
+ className: o(v),
1569
1569
  style: {
1570
1570
  ...r(),
1571
1571
  ...e.grid && {
1572
1572
  width: e.gridRowWidth,
1573
- order: u() !== null ? ve(k) : ve(k + 1)
1573
+ order: d() !== null ? xe(v) : xe(v + 1)
1574
1574
  }
1575
1575
  },
1576
- "data-index": k,
1577
- onClick: (f) => h(k),
1576
+ "data-index": v,
1577
+ onClick: (f) => h(v),
1578
1578
  children: /* @__PURE__ */ s(
1579
1579
  $,
1580
1580
  {
1581
- blocks: d.title,
1582
- path: `items.${k}.title`,
1581
+ blocks: u.title,
1582
+ path: `items.${v}.title`,
1583
1583
  parent: e.builderBlock.id,
1584
1584
  context: e.builderContext,
1585
1585
  registeredComponents: e.builderComponents,
@@ -1588,16 +1588,16 @@ function Zt(e) {
1588
1588
  )
1589
1589
  }
1590
1590
  ),
1591
- t.includes(k) ? /* @__PURE__ */ s(
1591
+ t.includes(v) ? /* @__PURE__ */ s(
1592
1592
  "div",
1593
1593
  {
1594
- className: l(k),
1594
+ className: l(v),
1595
1595
  style: c(),
1596
1596
  children: /* @__PURE__ */ s(
1597
1597
  $,
1598
1598
  {
1599
- blocks: d.detail,
1600
- path: `items.${k}.detail`,
1599
+ blocks: u.detail,
1600
+ path: `items.${v}.detail`,
1601
1601
  parent: e.builderBlock.id,
1602
1602
  context: e.builderContext,
1603
1603
  registeredComponents: e.builderComponents,
@@ -1606,9 +1606,9 @@ function Zt(e) {
1606
1606
  )
1607
1607
  }
1608
1608
  ) : null
1609
- ] }, k)) });
1609
+ ] }, v)) });
1610
1610
  }
1611
- const en = {
1611
+ const tn = {
1612
1612
  name: "Core:Button",
1613
1613
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1614
1614
  defaultStyles: {
@@ -1644,7 +1644,7 @@ const en = {
1644
1644
  shouldReceiveBuilderProps: {
1645
1645
  builderLinkComponent: !0
1646
1646
  }
1647
- }, tn = {
1647
+ }, nn = {
1648
1648
  // TODO: ways to statically preprocess JSON for references, functions, etc
1649
1649
  name: "Columns",
1650
1650
  isRSC: !0,
@@ -1823,7 +1823,7 @@ const en = {
1823
1823
  });
1824
1824
  }
1825
1825
  const n = e.get("columns");
1826
- Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((l, u) => l + u.get("width"), 0) !== 100) && t();
1826
+ Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((l, d) => l + d.get("width"), 0) !== 100) && t();
1827
1827
  }
1828
1828
  }, {
1829
1829
  name: "space",
@@ -1851,13 +1851,13 @@ const en = {
1851
1851
  builderComponents: !0,
1852
1852
  builderLinkComponent: !0
1853
1853
  }
1854
- }, nn = {
1854
+ }, an = {
1855
1855
  name: "Fragment",
1856
1856
  static: !0,
1857
1857
  hidden: !0,
1858
1858
  canHaveChildren: !0,
1859
1859
  noWrap: !0
1860
- }, de = ["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"], on = {
1860
+ }, de = ["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"], on = ["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"], rn = {
1861
1861
  name: "Image",
1862
1862
  static: !0,
1863
1863
  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",
@@ -1878,15 +1878,15 @@ const en = {
1878
1878
  onChange: (e) => {
1879
1879
  e.delete("srcset"), e.delete("noWebp");
1880
1880
  function n(o, l = 6e4) {
1881
- return new Promise((u, c) => {
1881
+ return new Promise((d, c) => {
1882
1882
  const h = document.createElement("img");
1883
- let g = !1;
1883
+ let y = !1;
1884
1884
  h.onload = () => {
1885
- g = !0, u(h);
1886
- }, h.addEventListener("error", (d) => {
1887
- console.warn("Image load failed", d.error), c(d.error);
1885
+ y = !0, d(h);
1886
+ }, h.addEventListener("error", (u) => {
1887
+ console.warn("Image load failed", u.error), c(u.error);
1888
1888
  }), h.src = o, setTimeout(() => {
1889
- g || c(new Error("Image load timed out"));
1889
+ y || c(new Error("Image load timed out"));
1890
1890
  }, l);
1891
1891
  });
1892
1892
  }
@@ -1965,7 +1965,7 @@ const en = {
1965
1965
  shouldReceiveBuilderProps: {
1966
1966
  builderBlock: !0
1967
1967
  }
1968
- }, rn = {
1968
+ }, ln = {
1969
1969
  name: "PersonalizationContainer",
1970
1970
  shouldReceiveBuilderProps: {
1971
1971
  builderBlock: !0,
@@ -2011,7 +2011,7 @@ function J(e) {
2011
2011
  }
2012
2012
  );
2013
2013
  }
2014
- function ln(e, t, n, i) {
2014
+ function sn(e, t, n, i) {
2015
2015
  function a(c) {
2016
2016
  return typeof c == "string";
2017
2017
  }
@@ -2020,42 +2020,42 @@ function ln(e, t, n, i) {
2020
2020
  }
2021
2021
  function o(c, h) {
2022
2022
  return (() => {
2023
- const d = h.property, k = h.operator;
2023
+ const u = h.property, v = h.operator;
2024
2024
  let f = h.value;
2025
- if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(d && k))
2025
+ if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(u && v))
2026
2026
  return !0;
2027
2027
  if (Array.isArray(f))
2028
- return k === "isNot" ? f.every((x) => o(c, {
2029
- property: d,
2030
- operator: k,
2028
+ return v === "isNot" ? f.every((x) => o(c, {
2029
+ property: u,
2030
+ operator: v,
2031
2031
  value: x
2032
2032
  })) : !!f.find((x) => o(c, {
2033
- property: d,
2034
- operator: k,
2033
+ property: u,
2034
+ operator: v,
2035
2035
  value: x
2036
2036
  }));
2037
- const b = c[d];
2038
- if (Array.isArray(b))
2039
- return b.includes(f);
2040
- switch (k) {
2037
+ const g = c[u];
2038
+ if (Array.isArray(g))
2039
+ return g.includes(f);
2040
+ switch (v) {
2041
2041
  case "is":
2042
- return b === f;
2042
+ return g === f;
2043
2043
  case "isNot":
2044
- return b !== f;
2044
+ return g !== f;
2045
2045
  case "contains":
2046
- return (a(b) || Array.isArray(b)) && b.includes(String(f));
2046
+ return (a(g) || Array.isArray(g)) && g.includes(String(f));
2047
2047
  case "startsWith":
2048
- return a(b) && b.startsWith(String(f));
2048
+ return a(g) && g.startsWith(String(f));
2049
2049
  case "endsWith":
2050
- return a(b) && b.endsWith(String(f));
2050
+ return a(g) && g.endsWith(String(f));
2051
2051
  case "greaterThan":
2052
- return r(b) && r(f) && b > f;
2052
+ return r(g) && r(f) && g > f;
2053
2053
  case "lessThan":
2054
- return r(b) && r(f) && b < f;
2054
+ return r(g) && r(f) && g < f;
2055
2055
  case "greaterThanOrEqualTo":
2056
- return r(b) && r(f) && b >= f;
2056
+ return r(g) && r(f) && g >= f;
2057
2057
  case "lessThanOrEqualTo":
2058
- return r(b) && r(f) && b <= f;
2058
+ return r(g) && r(f) && g <= f;
2059
2059
  default:
2060
2060
  return !1;
2061
2061
  }
@@ -2065,10 +2065,10 @@ function ln(e, t, n, i) {
2065
2065
  query: t,
2066
2066
  startDate: n,
2067
2067
  endDate: i
2068
- }, u = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
2069
- return l.startDate && new Date(l.startDate) > u || l.endDate && new Date(l.endDate) < u ? !1 : !l.query || !l.query.length ? !0 : l.query.every((c) => o(e, c));
2068
+ }, d = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
2069
+ return l.startDate && new Date(l.startDate) > d || l.endDate && new Date(l.endDate) < d ? !1 : !l.query || !l.query.length ? !0 : l.query.every((c) => o(e, c));
2070
2070
  }
2071
- const sn = `function getPersonalizedVariant(variants, blockId, locale) {
2071
+ const cn = `function getPersonalizedVariant(variants, blockId, locale) {
2072
2072
  if (!navigator.cookieEnabled) {
2073
2073
  return;
2074
2074
  }
@@ -2121,7 +2121,7 @@ const sn = `function getPersonalizedVariant(variants, blockId, locale) {
2121
2121
  } else if (variants && variants.length > 0) {
2122
2122
  removeVariants();
2123
2123
  }
2124
- }`, cn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
2124
+ }`, un = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
2125
2125
  function isString(val) {
2126
2126
  return typeof val === 'string';
2127
2127
  }
@@ -2200,10 +2200,10 @@ const sn = `function getPersonalizedVariant(variants, blockId, locale) {
2200
2200
  return objectMatchesQuery(userAttributes, filter);
2201
2201
  });
2202
2202
  }`;
2203
- function un(e, t) {
2203
+ function dn(e, t) {
2204
2204
  return !(!(e && e.length > 0) || !t || L());
2205
2205
  }
2206
- function dn({
2206
+ function mn({
2207
2207
  variants: e,
2208
2208
  previewingIndex: t,
2209
2209
  isHydrated: n,
@@ -2230,79 +2230,79 @@ function dn({
2230
2230
  }
2231
2231
  return r;
2232
2232
  }
2233
- const mn = (e, t, n) => `
2233
+ const fn = (e, t, n) => `
2234
2234
  (function() {
2235
+ ${un}
2235
2236
  ${cn}
2236
- ${sn}
2237
2237
  getPersonalizedVariant(${JSON.stringify(e)}, "${t}"${n ? `, "${n}"` : ""})
2238
2238
  })();
2239
2239
  `;
2240
- function fn(e) {
2241
- var b, x, y, S, T, P, I;
2240
+ function hn(e) {
2241
+ var g, x, b, S, C, V, w;
2242
2242
  const t = D(null), [n, i] = E(
2243
- () => me.getUserAttributes()
2243
+ () => fe.getUserAttributes()
2244
2244
  ), [a, r] = E(
2245
2245
  () => {
2246
- var v, m, p;
2247
- return mn(
2246
+ var k, m, p;
2247
+ return fn(
2248
2248
  e.variants,
2249
- ((v = e.builderBlock) == null ? void 0 : v.id) || "none",
2249
+ ((k = e.builderBlock) == null ? void 0 : k.id) || "none",
2250
2250
  (p = (m = e.builderContext) == null ? void 0 : m.rootState) == null ? void 0 : p.locale
2251
2251
  );
2252
2252
  }
2253
- ), [o, l] = E(() => []), [u, c] = E(
2253
+ ), [o, l] = E(() => []), [d, c] = E(
2254
2254
  () => {
2255
- var v;
2256
- return un(
2255
+ var k;
2256
+ return dn(
2257
2257
  e.variants,
2258
- q((v = e.builderContext) == null ? void 0 : v.canTrack)
2258
+ H((k = e.builderContext) == null ? void 0 : k.canTrack)
2259
2259
  );
2260
2260
  }
2261
- ), [h, g] = E(() => !1);
2262
- function d() {
2263
- return (e.variants || []).filter((v) => {
2264
- var m, p, C, w;
2265
- return ln(
2261
+ ), [h, y] = E(() => !1);
2262
+ function u() {
2263
+ return (e.variants || []).filter((k) => {
2264
+ var m, p, I, T;
2265
+ return sn(
2266
2266
  {
2267
2267
  ...(p = (m = e.builderContext) == null ? void 0 : m.rootState) != null && p.locale ? {
2268
- locale: (w = (C = e.builderContext) == null ? void 0 : C.rootState) == null ? void 0 : w.locale
2268
+ locale: (T = (I = e.builderContext) == null ? void 0 : I.rootState) == null ? void 0 : T.locale
2269
2269
  } : {},
2270
2270
  ...n
2271
2271
  },
2272
- v.query,
2273
- v.startDate,
2274
- v.endDate
2272
+ k.query,
2273
+ k.startDate,
2274
+ k.endDate
2275
2275
  );
2276
2276
  });
2277
2277
  }
2278
- function k() {
2279
- var v;
2280
- return dn({
2278
+ function v() {
2279
+ var k;
2280
+ return mn({
2281
2281
  variants: e.variants,
2282
- fallbackBlocks: (v = e.builderBlock) == null ? void 0 : v.children,
2282
+ fallbackBlocks: (k = e.builderBlock) == null ? void 0 : k.children,
2283
2283
  isHydrated: h,
2284
- filteredVariants: d(),
2284
+ filteredVariants: u(),
2285
2285
  previewingIndex: e.previewingIndex
2286
2286
  });
2287
2287
  }
2288
2288
  function f() {
2289
2289
  return (e.variants || []).map(
2290
- (v, m) => {
2290
+ (k, m) => {
2291
2291
  var p;
2292
2292
  return `[data-variant-id="${(p = e.builderBlock) == null ? void 0 : p.id}-${m}"] { display: none; } `;
2293
2293
  }
2294
2294
  ).join("");
2295
2295
  }
2296
- return A(() => {
2296
+ return B(() => {
2297
2297
  var m;
2298
- g(!0);
2299
- const v = me.subscribeOnUserAttributesChange(
2298
+ y(!0);
2299
+ const k = fe.subscribeOnUserAttributesChange(
2300
2300
  (p) => {
2301
2301
  i(p);
2302
2302
  }
2303
2303
  );
2304
2304
  if (!(W() || G())) {
2305
- const p = d()[0];
2305
+ const p = u()[0];
2306
2306
  t.current && (t.current.dispatchEvent(
2307
2307
  new CustomEvent("builder.variantLoaded", {
2308
2308
  detail: {
@@ -2311,14 +2311,14 @@ function fn(e) {
2311
2311
  },
2312
2312
  bubbles: !0
2313
2313
  })
2314
- ), new IntersectionObserver((w) => {
2315
- w.forEach((B) => {
2316
- var N;
2317
- B.isIntersecting && t.current && t.current.dispatchEvent(
2314
+ ), new IntersectionObserver((T) => {
2315
+ T.forEach((P) => {
2316
+ var A;
2317
+ P.isIntersecting && t.current && t.current.dispatchEvent(
2318
2318
  new CustomEvent("builder.variantDisplayed", {
2319
2319
  detail: {
2320
2320
  variant: p || "default",
2321
- content: (N = e.builderContext) == null ? void 0 : N.content
2321
+ content: (A = e.builderContext) == null ? void 0 : A.content
2322
2322
  },
2323
2323
  bubbles: !0
2324
2324
  })
@@ -2326,19 +2326,19 @@ function fn(e) {
2326
2326
  });
2327
2327
  }).observe(t.current));
2328
2328
  }
2329
- o.push(v);
2330
- }, []), A(() => () => {
2331
- o.forEach((v) => v());
2332
- }, []), /* @__PURE__ */ V(
2329
+ o.push(k);
2330
+ }, []), B(() => () => {
2331
+ o.forEach((k) => k());
2332
+ }, []), /* @__PURE__ */ N(
2333
2333
  "div",
2334
2334
  {
2335
2335
  ref: t,
2336
2336
  ...e.attributes,
2337
- className: `builder-personalization-container ${((b = e.attributes) == null ? void 0 : b.className) || ""}`,
2337
+ className: `builder-personalization-container ${((g = e.attributes) == null ? void 0 : g.className) || ""}`,
2338
2338
  children: [
2339
- u ? /* @__PURE__ */ V(R, { children: [
2340
- (x = e.variants) == null ? void 0 : x.map((v, m) => {
2341
- var p, C;
2339
+ d ? /* @__PURE__ */ N(R, { children: [
2340
+ (x = e.variants) == null ? void 0 : x.map((k, m) => {
2341
+ var p, I;
2342
2342
  return /* @__PURE__ */ s(
2343
2343
  "template",
2344
2344
  {
@@ -2346,8 +2346,8 @@ function fn(e) {
2346
2346
  children: /* @__PURE__ */ s(
2347
2347
  $,
2348
2348
  {
2349
- blocks: v.blocks,
2350
- parent: (C = e.builderBlock) == null ? void 0 : C.id,
2349
+ blocks: k.blocks,
2350
+ parent: (I = e.builderBlock) == null ? void 0 : I.id,
2351
2351
  path: `component.options.variants.${m}.blocks`
2352
2352
  }
2353
2353
  )
@@ -2356,9 +2356,9 @@ function fn(e) {
2356
2356
  );
2357
2357
  }),
2358
2358
  /* @__PURE__ */ s(
2359
- M,
2359
+ j,
2360
2360
  {
2361
- nonce: ((y = e.builderContext) == null ? void 0 : y.nonce) || "",
2361
+ nonce: ((b = e.builderContext) == null ? void 0 : b.nonce) || "",
2362
2362
  styles: f(),
2363
2363
  id: `variants-styles-${(S = e.builderBlock) == null ? void 0 : S.id}`
2364
2364
  }
@@ -2366,25 +2366,25 @@ function fn(e) {
2366
2366
  /* @__PURE__ */ s(
2367
2367
  J,
2368
2368
  {
2369
- nonce: ((T = e.builderContext) == null ? void 0 : T.nonce) || "",
2369
+ nonce: ((C = e.builderContext) == null ? void 0 : C.nonce) || "",
2370
2370
  scriptStr: a,
2371
- id: `variants-script-${(P = e.builderBlock) == null ? void 0 : P.id}`
2371
+ id: `variants-script-${(V = e.builderBlock) == null ? void 0 : V.id}`
2372
2372
  }
2373
2373
  )
2374
2374
  ] }) : null,
2375
2375
  /* @__PURE__ */ s(
2376
2376
  $,
2377
2377
  {
2378
- blocks: k().blocks,
2379
- parent: (I = e.builderBlock) == null ? void 0 : I.id,
2380
- path: k().path
2378
+ blocks: v().blocks,
2379
+ parent: (w = e.builderBlock) == null ? void 0 : w.id,
2380
+ path: v().path
2381
2381
  }
2382
2382
  )
2383
2383
  ]
2384
2384
  }
2385
2385
  );
2386
2386
  }
2387
- const hn = {
2387
+ const gn = {
2388
2388
  name: "Core:Section",
2389
2389
  static: !0,
2390
2390
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -2423,7 +2423,7 @@ const hn = {
2423
2423
  }
2424
2424
  }
2425
2425
  }]
2426
- }, gn = {
2426
+ }, bn = {
2427
2427
  name: "Slot",
2428
2428
  isRSC: !0,
2429
2429
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -2441,7 +2441,7 @@ const hn = {
2441
2441
  builderComponents: !0
2442
2442
  }
2443
2443
  };
2444
- function bn(e) {
2444
+ function pn(e) {
2445
2445
  var t, n, i;
2446
2446
  return /* @__PURE__ */ s(
2447
2447
  "div",
@@ -2465,7 +2465,7 @@ function bn(e) {
2465
2465
  }
2466
2466
  );
2467
2467
  }
2468
- const pn = {
2468
+ const yn = {
2469
2469
  name: "Symbol",
2470
2470
  noWrap: !0,
2471
2471
  static: !0,
@@ -2542,7 +2542,7 @@ const pn = {
2542
2542
  text: "New tab content "
2543
2543
  }
2544
2544
  }
2545
- }, yn = {
2545
+ }, vn = {
2546
2546
  name: "Builder: Tabs",
2547
2547
  inputs: [{
2548
2548
  name: "tabs",
@@ -2646,7 +2646,7 @@ const pn = {
2646
2646
  builderLinkComponent: !0
2647
2647
  }
2648
2648
  };
2649
- function vn(e) {
2649
+ function xn(e) {
2650
2650
  var r;
2651
2651
  const [t, n] = E(
2652
2652
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
@@ -2657,7 +2657,7 @@ function vn(e) {
2657
2657
  function a(o) {
2658
2658
  o === t && e.collapsible ? n(-1) : n(o);
2659
2659
  }
2660
- return /* @__PURE__ */ V("div", { children: [
2660
+ return /* @__PURE__ */ N("div", { children: [
2661
2661
  /* @__PURE__ */ s(
2662
2662
  "div",
2663
2663
  {
@@ -2675,7 +2675,7 @@ function vn(e) {
2675
2675
  style: {
2676
2676
  ...t === l ? e.activeTabStyle : {}
2677
2677
  },
2678
- onClick: (u) => a(l),
2678
+ onClick: (d) => a(l),
2679
2679
  children: /* @__PURE__ */ s(
2680
2680
  $,
2681
2681
  {
@@ -2705,7 +2705,7 @@ function vn(e) {
2705
2705
  ) }) : null
2706
2706
  ] });
2707
2707
  }
2708
- const xn = {
2708
+ const Sn = {
2709
2709
  shouldReceiveBuilderProps: {
2710
2710
  builderBlock: !1,
2711
2711
  builderContext: !0
@@ -2728,7 +2728,7 @@ const xn = {
2728
2728
  textAlign: "center"
2729
2729
  }
2730
2730
  };
2731
- function Sn(e) {
2731
+ function kn(e) {
2732
2732
  var t;
2733
2733
  return /* @__PURE__ */ s(
2734
2734
  "div",
@@ -2741,7 +2741,7 @@ function Sn(e) {
2741
2741
  }
2742
2742
  );
2743
2743
  }
2744
- const kn = {
2744
+ const Cn = {
2745
2745
  name: "Custom Code",
2746
2746
  static: !0,
2747
2747
  requiredPermissions: ["editCode"],
@@ -2764,15 +2764,15 @@ const kn = {
2764
2764
  advanced: !0
2765
2765
  }]
2766
2766
  };
2767
- function Cn(e) {
2767
+ function Tn(e) {
2768
2768
  const t = D(null), [n, i] = E(() => []), [a, r] = E(() => []);
2769
- return A(() => {
2769
+ return B(() => {
2770
2770
  var l;
2771
2771
  if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
2772
2772
  return;
2773
2773
  const o = t.current.getElementsByTagName("script");
2774
- for (let u = 0; u < o.length; u++) {
2775
- const c = o[u];
2774
+ for (let d = 0; d < o.length; d++) {
2775
+ const c = o[d];
2776
2776
  if (c.src) {
2777
2777
  if (n.includes(c.src))
2778
2778
  continue;
@@ -2802,7 +2802,7 @@ function Cn(e) {
2802
2802
  }
2803
2803
  );
2804
2804
  }
2805
- const Tn = {
2805
+ const wn = {
2806
2806
  name: "Embed",
2807
2807
  static: !0,
2808
2808
  inputs: [{
@@ -2817,29 +2817,29 @@ const Tn = {
2817
2817
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2818
2818
  hideFromUI: !0
2819
2819
  }]
2820
- }, wn = ["text/javascript", "application/javascript", "application/ecmascript"], In = (e) => wn.includes(e.type);
2821
- function En(e) {
2820
+ }, In = ["text/javascript", "application/javascript", "application/ecmascript"], En = (e) => In.includes(e.type);
2821
+ function Rn(e) {
2822
2822
  const t = D(null), [n, i] = E(() => []), [a, r] = E(() => []), [o, l] = E(() => !1);
2823
- function u() {
2823
+ function d() {
2824
2824
  if (!t.current || !t.current.getElementsByTagName)
2825
2825
  return;
2826
2826
  const c = t.current.getElementsByTagName("script");
2827
2827
  for (let h = 0; h < c.length; h++) {
2828
- const g = c[h];
2829
- if (g.src && !n.includes(g.src)) {
2830
- n.push(g.src);
2831
- const d = document.createElement("script");
2832
- d.async = !0, d.src = g.src, document.head.appendChild(d);
2833
- } else if (In(g) && !a.includes(g.innerText))
2828
+ const y = c[h];
2829
+ if (y.src && !n.includes(y.src)) {
2830
+ n.push(y.src);
2831
+ const u = document.createElement("script");
2832
+ u.async = !0, u.src = y.src, document.head.appendChild(u);
2833
+ } else if (En(y) && !a.includes(y.innerText))
2834
2834
  try {
2835
- a.push(g.innerText), new Function(g.innerText)();
2836
- } catch (d) {
2837
- console.warn("`Embed`: Error running script:", d);
2835
+ a.push(y.innerText), new Function(y.innerText)();
2836
+ } catch (u) {
2837
+ console.warn("`Embed`: Error running script:", u);
2838
2838
  }
2839
2839
  }
2840
2840
  }
2841
- return A(() => {
2842
- t.current && !o && (l(!0), u());
2841
+ return B(() => {
2842
+ t.current && !o && (l(!0), d());
2843
2843
  }, [t.current, o]), /* @__PURE__ */ s(
2844
2844
  "div",
2845
2845
  {
@@ -2849,7 +2849,7 @@ function En(e) {
2849
2849
  }
2850
2850
  );
2851
2851
  }
2852
- const Rn = {
2852
+ const Vn = {
2853
2853
  name: "Form:Form",
2854
2854
  // editableTags: ['builder-form-error']
2855
2855
  defaults: {
@@ -3086,102 +3086,102 @@ const Rn = {
3086
3086
  builderComponents: !0,
3087
3087
  builderLinkComponent: !0
3088
3088
  }
3089
- }, Pn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Vn = () => {
3089
+ }, Pn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Bn = () => {
3090
3090
  const e = process.env.NODE_ENV || "production";
3091
3091
  return Pn.includes(e) ? e : "production";
3092
3092
  };
3093
- function Bn(e) {
3093
+ function An(e) {
3094
3094
  const t = D(null), [n, i] = E(() => "unsubmitted"), [a, r] = E(() => null), [o, l] = E(() => "");
3095
- function u(g) {
3096
- var k, f;
3097
- const d = {
3095
+ function d(y) {
3096
+ var v, f;
3097
+ const u = {
3098
3098
  ...e.builderContext.rootState,
3099
- ...g
3099
+ ...y
3100
3100
  };
3101
- e.builderContext.rootSetState ? (f = (k = e.builderContext).rootSetState) == null || f.call(k, d) : e.builderContext.rootState = d;
3101
+ e.builderContext.rootSetState ? (f = (v = e.builderContext).rootSetState) == null || f.call(v, u) : e.builderContext.rootState = u;
3102
3102
  }
3103
3103
  function c() {
3104
3104
  return W() && e.previewState || n;
3105
3105
  }
3106
- function h(g) {
3107
- var k;
3108
- const d = e.sendWithJs || e.sendSubmissionsTo === "email";
3106
+ function h(y) {
3107
+ var v;
3108
+ const u = e.sendWithJs || e.sendSubmissionsTo === "email";
3109
3109
  if (e.sendSubmissionsTo === "zapier")
3110
- g.preventDefault();
3111
- else if (d) {
3110
+ y.preventDefault();
3111
+ else if (u) {
3112
3112
  if (!(e.action || e.sendSubmissionsTo === "email")) {
3113
- g.preventDefault();
3113
+ y.preventDefault();
3114
3114
  return;
3115
3115
  }
3116
- g.preventDefault();
3117
- const f = g.currentTarget || g.target, b = e.customHeaders || {};
3116
+ y.preventDefault();
3117
+ const f = y.currentTarget || y.target, g = e.customHeaders || {};
3118
3118
  let x;
3119
- const y = new FormData(f), S = Array.from(f.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
3119
+ const b = new FormData(f), S = Array.from(f.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
3120
3120
  let p;
3121
- const C = m.name;
3121
+ const I = m.name;
3122
3122
  if (m instanceof HTMLInputElement)
3123
3123
  if (m.type === "radio") {
3124
3124
  if (m.checked)
3125
3125
  return p = m.name, {
3126
- key: C,
3126
+ key: I,
3127
3127
  value: p
3128
3128
  };
3129
3129
  } else if (m.type === "checkbox")
3130
3130
  p = m.checked;
3131
3131
  else if (m.type === "number" || m.type === "range") {
3132
- const w = m.valueAsNumber;
3133
- isNaN(w) || (p = w);
3132
+ const T = m.valueAsNumber;
3133
+ isNaN(T) || (p = T);
3134
3134
  } else
3135
3135
  m.type === "file" ? p = m.files : p = m.value;
3136
3136
  else
3137
3137
  p = m.value;
3138
3138
  return {
3139
- key: C,
3139
+ key: I,
3140
3140
  value: p
3141
3141
  };
3142
3142
  });
3143
- let T = e.contentType;
3144
- if (e.sendSubmissionsTo === "email" && (T = "multipart/form-data"), Array.from(S).forEach(({ value: m }) => {
3145
- (m instanceof File || Array.isArray(m) && m[0] instanceof File || m instanceof FileList) && (T = "multipart/form-data");
3146
- }), T !== "application/json")
3147
- x = y;
3143
+ let C = e.contentType;
3144
+ if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(S).forEach(({ value: m }) => {
3145
+ (m instanceof File || Array.isArray(m) && m[0] instanceof File || m instanceof FileList) && (C = "multipart/form-data");
3146
+ }), C !== "application/json")
3147
+ x = b;
3148
3148
  else {
3149
3149
  const m = {};
3150
- Array.from(S).forEach(({ value: p, key: C }) => {
3151
- Pe(m, C, p);
3150
+ Array.from(S).forEach(({ value: p, key: I }) => {
3151
+ Pe(m, I, p);
3152
3152
  }), x = JSON.stringify(m);
3153
3153
  }
3154
- T && T !== "multipart/form-data" && (d && ((k = e.action) != null && k.includes("zapier.com")) || (b["content-type"] = T));
3155
- const P = new CustomEvent("presubmit", { detail: { body: x } });
3156
- if (t.current && (t.current.dispatchEvent(P), P.defaultPrevented))
3154
+ C && C !== "multipart/form-data" && (u && ((v = e.action) != null && v.includes("zapier.com")) || (g["content-type"] = C));
3155
+ const V = new CustomEvent("presubmit", { detail: { body: x } });
3156
+ if (t.current && (t.current.dispatchEvent(V), V.defaultPrevented))
3157
3157
  return;
3158
3158
  i("sending");
3159
- const I = `${Vn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3159
+ const w = `${Bn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3160
3160
  e.sendSubmissionsToEmail || ""
3161
- )}&name=${encodeURIComponent(e.name || "")}`, v = e.sendSubmissionsTo === "email" ? I : e.action;
3162
- we(v), fetch(v, { body: x, headers: b, method: e.method || "post" }).then(
3161
+ )}&name=${encodeURIComponent(e.name || "")}`, k = e.sendSubmissionsTo === "email" ? w : e.action;
3162
+ Ie(k), fetch(k, { body: x, headers: g, method: e.method || "post" }).then(
3163
3163
  async (m) => {
3164
3164
  let p;
3165
- const C = m.headers.get("content-type");
3166
- if (C && C.indexOf("application/json") !== -1 ? p = await m.json() : p = await m.text(), !m.ok && e.errorMessagePath) {
3167
- let w = Be(p, e.errorMessagePath);
3168
- w && (typeof w != "string" && (w = JSON.stringify(w)), l(w), u({ formErrorMessage: w }));
3165
+ const I = m.headers.get("content-type");
3166
+ if (I && I.indexOf("application/json") !== -1 ? p = await m.json() : p = await m.text(), !m.ok && e.errorMessagePath) {
3167
+ let T = Ae(p, e.errorMessagePath);
3168
+ T && (typeof T != "string" && (T = JSON.stringify(T)), l(T), d({ formErrorMessage: T }));
3169
3169
  }
3170
3170
  if (r(p), i(m.ok ? "success" : "error"), m.ok) {
3171
- const w = new CustomEvent("submit:success", {
3171
+ const T = new CustomEvent("submit:success", {
3172
3172
  detail: { res: m, body: p }
3173
3173
  });
3174
3174
  if (t.current) {
3175
- if (t.current.dispatchEvent(w), w.defaultPrevented)
3175
+ if (t.current.dispatchEvent(T), T.defaultPrevented)
3176
3176
  return;
3177
3177
  e.resetFormOnSubmit !== !1 && t.current.reset();
3178
3178
  }
3179
3179
  if (e.successUrl)
3180
3180
  if (t.current) {
3181
- const B = new CustomEvent("route", {
3181
+ const P = new CustomEvent("route", {
3182
3182
  detail: { url: e.successUrl }
3183
3183
  });
3184
- t.current.dispatchEvent(B), B.defaultPrevented || (location.href = e.successUrl);
3184
+ t.current.dispatchEvent(P), P.defaultPrevented || (location.href = e.successUrl);
3185
3185
  } else
3186
3186
  location.href = e.successUrl;
3187
3187
  }
@@ -3195,9 +3195,9 @@ function Bn(e) {
3195
3195
  );
3196
3196
  }
3197
3197
  }
3198
- return /* @__PURE__ */ V(R, { children: [
3198
+ return /* @__PURE__ */ N(R, { children: [
3199
3199
  " ",
3200
- /* @__PURE__ */ V(
3200
+ /* @__PURE__ */ N(
3201
3201
  "form",
3202
3202
  {
3203
3203
  validate: e.validate,
@@ -3205,7 +3205,7 @@ function Bn(e) {
3205
3205
  action: !e.sendWithJs && e.action,
3206
3206
  method: e.method,
3207
3207
  name: e.name,
3208
- onSubmit: (g) => h(g),
3208
+ onSubmit: (y) => h(y),
3209
3209
  ...e.attributes,
3210
3210
  children: [
3211
3211
  e.children,
@@ -3242,7 +3242,7 @@ function Bn(e) {
3242
3242
  " "
3243
3243
  ] });
3244
3244
  }
3245
- const An = {
3245
+ const Nn = {
3246
3246
  name: "Form:Input",
3247
3247
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
3248
3248
  inputs: [
@@ -3294,8 +3294,8 @@ const An = {
3294
3294
  borderColor: "#ccc"
3295
3295
  }
3296
3296
  };
3297
- function Nn(e) {
3298
- return /* @__PURE__ */ Re(
3297
+ function Wn(e) {
3298
+ return /* @__PURE__ */ Ve(
3299
3299
  "input",
3300
3300
  {
3301
3301
  ...e.attributes,
@@ -3309,7 +3309,7 @@ function Nn(e) {
3309
3309
  }
3310
3310
  );
3311
3311
  }
3312
- const Wn = {
3312
+ const $n = {
3313
3313
  name: "Form:Select",
3314
3314
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
3315
3315
  defaultStyles: {
@@ -3352,9 +3352,9 @@ const Wn = {
3352
3352
  static: !0,
3353
3353
  noWrap: !0
3354
3354
  };
3355
- function $n(e) {
3355
+ function Dn(e) {
3356
3356
  var t;
3357
- return /* @__PURE__ */ Re(
3357
+ return /* @__PURE__ */ Ve(
3358
3358
  "select",
3359
3359
  {
3360
3360
  ...e.attributes,
@@ -3367,7 +3367,7 @@ function $n(e) {
3367
3367
  (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
3368
3368
  );
3369
3369
  }
3370
- const Dn = {
3370
+ const Fn = {
3371
3371
  name: "Form:SubmitButton",
3372
3372
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
3373
3373
  defaultStyles: {
@@ -3393,10 +3393,10 @@ const Dn = {
3393
3393
  // TODO: defaultChildren
3394
3394
  // canHaveChildren: true,
3395
3395
  };
3396
- function Fn(e) {
3396
+ function Ln(e) {
3397
3397
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
3398
3398
  }
3399
- const Ln = {
3399
+ const On = {
3400
3400
  name: "Form:TextArea",
3401
3401
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
3402
3402
  inputs: [{
@@ -3433,7 +3433,7 @@ const Ln = {
3433
3433
  static: !0,
3434
3434
  noWrap: !0
3435
3435
  };
3436
- function On(e) {
3436
+ function Un(e) {
3437
3437
  return /* @__PURE__ */ s(
3438
3438
  "textarea",
3439
3439
  {
@@ -3446,7 +3446,7 @@ function On(e) {
3446
3446
  }
3447
3447
  );
3448
3448
  }
3449
- const Un = {
3449
+ const _n = {
3450
3450
  // friendlyName?
3451
3451
  name: "Raw:Img",
3452
3452
  hideFromInsertMenu: !0,
@@ -3461,7 +3461,7 @@ const Un = {
3461
3461
  noWrap: !0,
3462
3462
  static: !0
3463
3463
  };
3464
- function _n(e) {
3464
+ function qn(e) {
3465
3465
  return /* @__PURE__ */ s(
3466
3466
  "img",
3467
3467
  {
@@ -3476,7 +3476,7 @@ function _n(e) {
3476
3476
  W() && e.imgSrc || "default-key"
3477
3477
  );
3478
3478
  }
3479
- const qn = {
3479
+ const Hn = {
3480
3480
  name: "Video",
3481
3481
  canHaveChildren: !0,
3482
3482
  defaultStyles: {
@@ -3487,7 +3487,7 @@ const qn = {
3487
3487
  inputs: [{
3488
3488
  name: "video",
3489
3489
  type: "file",
3490
- allowedFileTypes: an,
3490
+ allowedFileTypes: on,
3491
3491
  bubble: !0,
3492
3492
  defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
3493
3493
  required: !0
@@ -3561,9 +3561,10 @@ const qn = {
3561
3561
  builderBlock: !0
3562
3562
  }
3563
3563
  };
3564
- function Hn(e) {
3565
- var i, a, r, o, l, u, c;
3566
- function t() {
3564
+ function Mn(e) {
3565
+ var o, l, d, c, h, y, u;
3566
+ const t = D(null);
3567
+ function n() {
3567
3568
  return {
3568
3569
  ...e.autoPlay === !0 ? {
3569
3570
  autoPlay: !0
@@ -3582,12 +3583,37 @@ function Hn(e) {
3582
3583
  } : {}
3583
3584
  };
3584
3585
  }
3585
- function n() {
3586
+ function i() {
3586
3587
  return {
3587
- ...t()
3588
+ ...n()
3588
3589
  };
3589
3590
  }
3590
- return /* @__PURE__ */ V(
3591
+ const [a, r] = E(() => {
3592
+ });
3593
+ return B(() => {
3594
+ if (e.lazyLoad) {
3595
+ const v = new IntersectionObserver(function(f) {
3596
+ f.forEach(function(g) {
3597
+ if (!g.isIntersecting)
3598
+ return;
3599
+ const x = g.target;
3600
+ try {
3601
+ Array.from(x.children).filter(
3602
+ (b) => b instanceof HTMLElement && b.tagName === "SOURCE"
3603
+ ).forEach((b) => {
3604
+ const S = b.dataset.src;
3605
+ S && (b.src = S);
3606
+ }), x.load(), v.unobserve(x);
3607
+ } catch (b) {
3608
+ console.error("Error loading lazy video:", b);
3609
+ }
3610
+ });
3611
+ });
3612
+ t.current && v.observe(t.current), r(v);
3613
+ }
3614
+ }, []), B(() => () => {
3615
+ a && a.disconnect();
3616
+ }, []), /* @__PURE__ */ N(
3591
3617
  "div",
3592
3618
  {
3593
3619
  style: {
@@ -3598,12 +3624,13 @@ function Hn(e) {
3598
3624
  "video",
3599
3625
  {
3600
3626
  className: "builder-video",
3601
- ...n(),
3602
- preload: e.preload || "metadata",
3627
+ ...i(),
3628
+ ref: t,
3629
+ preload: e.lazyLoad ? "none" : e.preload || "metadata",
3603
3630
  style: {
3604
3631
  width: "100%",
3605
3632
  height: "100%",
3606
- ...(i = e.attributes) == null ? void 0 : i.style,
3633
+ ...(o = e.attributes) == null ? void 0 : o.style,
3607
3634
  objectFit: e.fit,
3608
3635
  objectPosition: e.position,
3609
3636
  // Hack to get object fit to work as expected and
@@ -3613,12 +3640,21 @@ function Hn(e) {
3613
3640
  position: "absolute"
3614
3641
  } : null
3615
3642
  },
3616
- src: e.video || "no-src",
3617
3643
  poster: e.posterImage,
3618
- children: e.lazyLoad ? null : /* @__PURE__ */ s("source", { type: "video/mp4", src: e.video })
3644
+ children: /* @__PURE__ */ s(
3645
+ "source",
3646
+ {
3647
+ type: "video/mp4",
3648
+ ...e.lazyLoad ? {
3649
+ "data-src": e.video
3650
+ } : {
3651
+ src: e.video
3652
+ }
3653
+ }
3654
+ )
3619
3655
  }
3620
3656
  ),
3621
- e.aspectRatio && !(e.fitContent && ((r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length)) ? /* @__PURE__ */ s(
3657
+ e.aspectRatio && !(e.fitContent && ((d = (l = e.builderBlock) == null ? void 0 : l.children) != null && d.length)) ? /* @__PURE__ */ s(
3622
3658
  "div",
3623
3659
  {
3624
3660
  style: {
@@ -3629,7 +3665,7 @@ function Hn(e) {
3629
3665
  }
3630
3666
  }
3631
3667
  ) : null,
3632
- (l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
3668
+ (h = (c = e.builderBlock) == null ? void 0 : c.children) != null && h.length && e.fitContent ? /* @__PURE__ */ s(
3633
3669
  "div",
3634
3670
  {
3635
3671
  style: {
@@ -3640,7 +3676,7 @@ function Hn(e) {
3640
3676
  children: e.children
3641
3677
  }
3642
3678
  ) : null,
3643
- (c = (u = e.builderBlock) == null ? void 0 : u.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
3679
+ (u = (y = e.builderBlock) == null ? void 0 : y.children) != null && u.length && !e.fitContent ? /* @__PURE__ */ s(
3644
3680
  "div",
3645
3681
  {
3646
3682
  style: {
@@ -3661,67 +3697,67 @@ function Hn(e) {
3661
3697
  }
3662
3698
  );
3663
3699
  }
3664
- const Mn = () => [{
3665
- component: Cn,
3666
- ...kn
3700
+ const jn = () => [{
3701
+ component: Tn,
3702
+ ...Cn
3667
3703
  }, {
3668
- component: En,
3669
- ...Tn
3704
+ component: Rn,
3705
+ ...wn
3670
3706
  }, {
3671
- component: Bn,
3672
- ...Rn
3707
+ component: An,
3708
+ ...Vn
3673
3709
  }, {
3674
- component: Nn,
3675
- ...An
3710
+ component: Wn,
3711
+ ...Nn
3676
3712
  }, {
3677
- component: Fn,
3678
- ...Dn
3713
+ component: Ln,
3714
+ ...Fn
3679
3715
  }, {
3680
- component: $n,
3681
- ...Wn
3716
+ component: Dn,
3717
+ ...$n
3682
3718
  }, {
3683
- component: On,
3684
- ...Ln
3719
+ component: Un,
3720
+ ...On
3685
3721
  }, {
3686
- component: _n,
3687
- ...Un
3722
+ component: qn,
3723
+ ..._n
3688
3724
  }, {
3689
- component: Hn,
3690
- ...qn
3691
- }], xe = () => [{
3692
- component: ot,
3693
- ...en
3694
- }, {
3695
- component: zt,
3725
+ component: Mn,
3726
+ ...Hn
3727
+ }], Se = () => [{
3728
+ component: rt,
3696
3729
  ...tn
3697
3730
  }, {
3698
3731
  component: Kt,
3699
3732
  ...nn
3700
3733
  }, {
3701
- component: Qt,
3702
- ...on
3734
+ component: Jt,
3735
+ ...an
3703
3736
  }, {
3704
3737
  component: Yt,
3705
- ...hn
3738
+ ...rn
3706
3739
  }, {
3707
- component: bn,
3740
+ component: Xt,
3708
3741
  ...gn
3709
3742
  }, {
3710
- component: hi,
3711
- ...pn
3743
+ component: pn,
3744
+ ...bn
3712
3745
  }, {
3713
- component: Sn,
3714
- ...xn
3746
+ component: gi,
3747
+ ...yn
3715
3748
  }, {
3716
- component: fn,
3717
- ...rn
3749
+ component: kn,
3750
+ ...Sn
3718
3751
  }, {
3719
- component: vn,
3720
- ...yn
3752
+ component: hn,
3753
+ ...ln
3721
3754
  }, {
3722
- component: Zt,
3723
- ...Xt
3724
- }, ...Mn()], jn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3755
+ component: xn,
3756
+ ...vn
3757
+ }, {
3758
+ component: en,
3759
+ ...Zt
3760
+ }, ...jn()], zn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3725
3761
  function getAndSetVariantId() {
3726
3762
  function setCookie(name, value, days) {
3727
3763
  let expires = '';
@@ -3777,7 +3813,7 @@ const Mn = () => [{
3777
3813
  }).join('');
3778
3814
  styleEl.innerHTML = newStyleStr;
3779
3815
  }
3780
- }`, zn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3816
+ }`, Kn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3781
3817
  if (!navigator.cookieEnabled) {
3782
3818
  return;
3783
3819
  }
@@ -3811,29 +3847,29 @@ const Mn = () => [{
3811
3847
  thisScriptEl?.remove();
3812
3848
  }
3813
3849
  return;
3814
- }`, qe = "builderIoAbTest", He = "builderIoRenderContent", z = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3850
+ }`, He = "builderIoAbTest", Me = "builderIoRenderContent", z = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3815
3851
  ...t,
3816
3852
  testVariationId: t.id,
3817
3853
  id: e == null ? void 0 : e.id
3818
- })), Kn = ({
3854
+ })), Jn = ({
3819
3855
  canTrack: e,
3820
3856
  content: t
3821
- }) => !(!(z(t).length > 0) || !e || L()), Jn = (e) => e === "react" || e === "reactNative", Me = Jn(F), Gn = () => `
3822
- window.${qe} = ${jn}
3857
+ }) => !(!(z(t).length > 0) || !e || L()), Gn = (e) => e === "react" || e === "reactNative", je = Gn(F), Qn = () => `
3823
3858
  window.${He} = ${zn}
3824
- `, Qn = (e, t) => `
3825
- window.${qe}(
3826
- "${t}",${JSON.stringify(e)}, ${Me}
3827
- )`, Yn = ({
3859
+ window.${Me} = ${Kn}
3860
+ `, Yn = (e, t) => `
3861
+ window.${He}(
3862
+ "${t}",${JSON.stringify(e)}, ${je}
3863
+ )`, Xn = ({
3828
3864
  contentId: e,
3829
3865
  variationId: t
3830
- }) => `window.${He}(
3831
- "${t}", "${e}", ${Me}
3866
+ }) => `window.${Me}(
3867
+ "${t}", "${e}", ${je}
3832
3868
  )`;
3833
- function Se(e) {
3869
+ function ke(e) {
3834
3870
  return Math.round(e * 1e3) / 1e3;
3835
3871
  }
3836
- const Xn = (e, t, n = !0) => {
3872
+ const Zn = (e, t, n = !0) => {
3837
3873
  if (!(e instanceof HTMLElement))
3838
3874
  return null;
3839
3875
  let i = n ? e : e.parentElement;
@@ -3844,35 +3880,35 @@ const Xn = (e, t, n = !0) => {
3844
3880
  return i;
3845
3881
  } while (i = i.parentElement);
3846
3882
  return null;
3847
- }, Zn = (e) => Xn(e, (t) => {
3883
+ }, ei = (e) => Zn(e, (t) => {
3848
3884
  const n = t.getAttribute("builder-id") || t.id;
3849
3885
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3850
- }), ke = ({
3886
+ }), Ce = ({
3851
3887
  event: e,
3852
3888
  target: t
3853
3889
  }) => {
3854
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, r = Se(i / n.width), o = Se(a / n.height);
3890
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, r = ke(i / n.width), o = ke(a / n.height);
3855
3891
  return {
3856
3892
  x: r,
3857
3893
  y: o
3858
3894
  };
3859
- }, ei = (e) => {
3860
- const t = e.target, n = t && Zn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3895
+ }, ti = (e) => {
3896
+ const t = e.target, n = t && ei(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3861
3897
  return {
3862
3898
  targetBuilderElement: i || void 0,
3863
3899
  metadata: {
3864
- targetOffset: t ? ke({
3900
+ targetOffset: t ? Ce({
3865
3901
  event: e,
3866
3902
  target: t
3867
3903
  }) : void 0,
3868
- builderTargetOffset: n ? ke({
3904
+ builderTargetOffset: n ? Ce({
3869
3905
  event: e,
3870
3906
  target: n
3871
3907
  }) : void 0,
3872
3908
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3873
3909
  }
3874
3910
  };
3875
- }, ti = ["svelte", "qwik", "vue"], Ce = () => ti.includes(F) && (W() || G()), ni = (e) => {
3911
+ }, ni = ["svelte", "qwik", "vue"], Te = () => ni.includes(F) && (W() || G()), ii = (e) => {
3876
3912
  var r, o;
3877
3913
  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;
3878
3914
  let a = "";
@@ -3898,15 +3934,15 @@ font-weight: ${l};
3898
3934
  `.trim());
3899
3935
  }
3900
3936
  return a;
3901
- }, ii = ({
3937
+ }, ai = ({
3902
3938
  customFonts: e
3903
3939
  }) => {
3904
3940
  var t;
3905
- return ((t = e == null ? void 0 : e.map((n) => ni(n))) == null ? void 0 : t.join(" ")) || "";
3906
- }, ai = ({
3941
+ return ((t = e == null ? void 0 : e.map((n) => ii(n))) == null ? void 0 : t.join(" ")) || "";
3942
+ }, oi = ({
3907
3943
  cssCode: e,
3908
3944
  contentId: t
3909
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", oi = `
3945
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", ri = `
3910
3946
  .builder-button {
3911
3947
  all: unset;
3912
3948
  }
@@ -3923,39 +3959,39 @@ font-weight: ${l};
3923
3959
  text-align: inherit;
3924
3960
  font-family: inherit;
3925
3961
  }
3926
- `, ri = (e) => e ? "" : oi, li = (e) => `variant-${e}`;
3927
- function si(e) {
3928
- var S, T, P;
3962
+ `, li = (e) => e ? "" : ri, si = (e) => `variant-${e}`;
3963
+ function ci(e) {
3964
+ var S, C, V;
3929
3965
  const t = D(null);
3930
- function n(I) {
3966
+ function n(w) {
3931
3967
  var m, p;
3932
- const v = {
3968
+ const k = {
3933
3969
  ...e.builderContextSignal.rootState,
3934
- ...I
3970
+ ...w
3935
3971
  };
3936
- e.builderContextSignal.rootSetState ? (p = (m = e.builderContextSignal).rootSetState) == null || p.call(m, v) : e.setBuilderContextSignal((C) => ({
3937
- ...C,
3938
- rootState: v
3972
+ e.builderContextSignal.rootSetState ? (p = (m = e.builderContextSignal).rootSetState) == null || p.call(m, k) : e.setBuilderContextSignal((I) => ({
3973
+ ...I,
3974
+ rootState: k
3939
3975
  }));
3940
3976
  }
3941
- function i(I) {
3942
- var m, p, C, w, B;
3943
- const v = {
3977
+ function i(w) {
3978
+ var m, p, I, T, P;
3979
+ const k = {
3944
3980
  ...e.builderContextSignal.content,
3945
- ...I,
3981
+ ...w,
3946
3982
  data: {
3947
3983
  ...(m = e.builderContextSignal.content) == null ? void 0 : m.data,
3948
- ...I == null ? void 0 : I.data
3984
+ ...w == null ? void 0 : w.data
3949
3985
  },
3950
3986
  meta: {
3951
3987
  ...(p = e.builderContextSignal.content) == null ? void 0 : p.meta,
3952
- ...I == null ? void 0 : I.meta,
3953
- breakpoints: ((C = I == null ? void 0 : I.meta) == null ? void 0 : C.breakpoints) || ((B = (w = e.builderContextSignal.content) == null ? void 0 : w.meta) == null ? void 0 : B.breakpoints)
3988
+ ...w == null ? void 0 : w.meta,
3989
+ breakpoints: ((I = w == null ? void 0 : w.meta) == null ? void 0 : I.breakpoints) || ((P = (T = e.builderContextSignal.content) == null ? void 0 : T.meta) == null ? void 0 : P.breakpoints)
3954
3990
  }
3955
3991
  };
3956
- e.setBuilderContextSignal((N) => ({
3957
- ...N,
3958
- content: v
3992
+ e.setBuilderContextSignal((A) => ({
3993
+ ...A,
3994
+ content: k
3959
3995
  }));
3960
3996
  }
3961
3997
  function a() {
@@ -3967,59 +4003,59 @@ function si(e) {
3967
4003
  const [r, o] = E(
3968
4004
  () => e.contentWrapper || "div"
3969
4005
  );
3970
- function l(I) {
3971
- return Je({
4006
+ function l(w) {
4007
+ return Ge({
3972
4008
  model: e.model,
3973
4009
  trustedHosts: e.trustedHosts,
3974
4010
  callbacks: {
3975
- configureSdk: (v) => {
3976
- var C;
3977
- const { breakpoints: m, contentId: p } = v;
3978
- !p || p !== ((C = e.builderContextSignal.content) == null ? void 0 : C.id) || m && i({
4011
+ configureSdk: (k) => {
4012
+ var I;
4013
+ const { breakpoints: m, contentId: p } = k;
4014
+ !p || p !== ((I = e.builderContextSignal.content) == null ? void 0 : I.id) || m && i({
3979
4015
  meta: {
3980
4016
  breakpoints: m
3981
4017
  }
3982
4018
  });
3983
4019
  },
3984
- animation: (v) => {
3985
- $e(v);
4020
+ animation: (k) => {
4021
+ De(k);
3986
4022
  },
3987
- contentUpdate: (v) => {
3988
- i(v);
4023
+ contentUpdate: (k) => {
4024
+ i(k);
3989
4025
  }
3990
4026
  }
3991
- })(I);
4027
+ })(w);
3992
4028
  }
3993
- const [u, c] = E(() => ({})), [h, g] = E(() => ({})), [d, k] = E(() => !1);
3994
- function f(I) {
3995
- var v, m;
4029
+ const [d, c] = E(() => ({})), [h, y] = E(() => ({})), [u, v] = E(() => !1);
4030
+ function f(w) {
4031
+ var k, m;
3996
4032
  if (e.builderContextSignal.content) {
3997
- const p = (v = e.builderContextSignal.content) == null ? void 0 : v.testVariationId, C = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
3998
- fe({
4033
+ const p = (k = e.builderContextSignal.content) == null ? void 0 : k.testVariationId, I = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
4034
+ he({
3999
4035
  apiHost: e.apiHost,
4000
4036
  type: "click",
4001
- canTrack: q(e.canTrack),
4002
- contentId: C,
4037
+ canTrack: H(e.canTrack),
4038
+ contentId: I,
4003
4039
  apiKey: e.apiKey,
4004
- variationId: p !== C ? p : void 0,
4005
- ...ei(I),
4006
- unique: !d
4040
+ variationId: p !== I ? p : void 0,
4041
+ ...ti(w),
4042
+ unique: !u
4007
4043
  });
4008
4044
  }
4009
- d || k(!0);
4045
+ u || v(!0);
4010
4046
  }
4011
- function b() {
4012
- var v, m, p;
4013
- const I = (p = (m = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : m.httpRequests) != null ? p : {};
4014
- Object.entries(I).forEach(([C, w]) => {
4015
- if (!w || h[C] || u[C] && !W())
4047
+ function g() {
4048
+ var k, m, p;
4049
+ const w = (p = (m = (k = e.builderContextSignal.content) == null ? void 0 : k.data) == null ? void 0 : m.httpRequests) != null ? p : {};
4050
+ Object.entries(w).forEach(([I, T]) => {
4051
+ if (!T || h[I] || d[I] && !W())
4016
4052
  return;
4017
- h[C] = !0;
4018
- const B = w.replace(
4053
+ h[I] = !0;
4054
+ const P = T.replace(
4019
4055
  /{{([^}]+)}}/g,
4020
- (N, j) => String(
4056
+ (A, U) => String(
4021
4057
  O({
4022
- code: j,
4058
+ code: U,
4023
4059
  context: e.context || {},
4024
4060
  localState: void 0,
4025
4061
  rootState: e.builderContextSignal.rootState,
@@ -4027,14 +4063,14 @@ function si(e) {
4027
4063
  })
4028
4064
  )
4029
4065
  );
4030
- we(B), fetch(B).then((N) => N.json()).then((N) => {
4066
+ Ie(P), fetch(P).then((A) => A.json()).then((A) => {
4031
4067
  n({
4032
- [C]: N
4033
- }), u[C] = !0;
4034
- }).catch((N) => {
4035
- console.error("error fetching dynamic data", w, N);
4068
+ [I]: A
4069
+ }), d[I] = !0;
4070
+ }).catch((A) => {
4071
+ console.error("error fetching dynamic data", T, A);
4036
4072
  }).finally(() => {
4037
- h[C] = !1;
4073
+ h[I] = !1;
4038
4074
  });
4039
4075
  });
4040
4076
  }
@@ -4053,11 +4089,11 @@ function si(e) {
4053
4089
  )
4054
4090
  );
4055
4091
  }
4056
- const y = D(!1);
4057
- return y.current || (b(), x(), y.current = !0), A(() => {
4058
- var I, v, m;
4092
+ const b = D(!1);
4093
+ return b.current || (g(), x(), b.current = !0), B(() => {
4094
+ var w, k, m, p;
4059
4095
  if (L()) {
4060
- if (W() && !e.isNestedRender && (window.addEventListener("message", l), je(), ze({
4096
+ if (W() && !e.isNestedRender && (window.addEventListener("message", l), ze(), Ke({
4061
4097
  ...e.locale ? {
4062
4098
  locale: e.locale
4063
4099
  } : {},
@@ -4066,74 +4102,76 @@ function si(e) {
4066
4102
  } : {},
4067
4103
  ...e.trustedHosts ? {
4068
4104
  trustedHosts: e.trustedHosts
4069
- } : {}
4105
+ } : {},
4106
+ modelName: (w = e.model) != null ? w : "",
4107
+ apiKey: e.apiKey
4070
4108
  }), Object.values(
4071
4109
  e.builderContextSignal.componentInfos
4072
- ).forEach((C) => {
4073
- var w, B;
4074
- if (!e.model || !((w = C.models) != null && w.length) || C.models.includes(e.model)) {
4075
- const N = Ke(C);
4076
- (B = window.parent) == null || B.postMessage(N, "*");
4110
+ ).forEach((T) => {
4111
+ var P, A;
4112
+ if (!((P = T.models) != null && P.length) || T.models.includes(e.model)) {
4113
+ const U = Je(T);
4114
+ (A = window.parent) == null || A.postMessage(U, "*");
4077
4115
  }
4078
4116
  }), window.addEventListener(
4079
4117
  "builder:component:stateChangeListenerActivated",
4080
4118
  x
4081
- )), e.builderContextSignal.content && q(e.canTrack)) {
4082
- const C = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, w = (v = e.builderContextSignal.content) == null ? void 0 : v.id, B = e.apiKey;
4083
- fe({
4119
+ )), e.builderContextSignal.content && H(e.canTrack)) {
4120
+ const T = (k = e.builderContextSignal.content) == null ? void 0 : k.testVariationId, P = (m = e.builderContextSignal.content) == null ? void 0 : m.id, A = e.apiKey;
4121
+ he({
4084
4122
  apiHost: e.apiHost,
4085
4123
  type: "impression",
4086
4124
  canTrack: !0,
4087
- contentId: w,
4088
- apiKey: B,
4089
- variationId: C !== w ? C : void 0
4125
+ contentId: P,
4126
+ apiKey: A,
4127
+ variationId: T !== P ? T : void 0
4090
4128
  });
4091
4129
  }
4092
4130
  if (G() && !W()) {
4093
- const C = new URL(location.href).searchParams, w = C.get("builder.preview"), B = C.get(
4094
- `builder.overrides.${w}`
4095
- ), N = C.get("apiKey") || C.get("builder.space");
4096
- (w === "BUILDER_STUDIO" || w === e.model && N === e.apiKey && (!e.content || B === e.content.id)) && Ie({
4097
- model: e.model || "",
4131
+ const T = new URL(location.href).searchParams, P = T.get("builder.preview"), A = T.get(
4132
+ `builder.overrides.${P}`
4133
+ ), U = T.get("apiKey") || T.get("builder.space");
4134
+ (P === "BUILDER_STUDIO" || P === e.model && U === e.apiKey && (!e.content || A === e.content.id)) && Ee({
4135
+ model: e.model,
4098
4136
  apiKey: e.apiKey,
4099
4137
  apiVersion: e.builderContextSignal.apiVersion,
4100
- ...w === "BUILDER_STUDIO" && ((m = e.context) != null && m.symbolId) ? {
4138
+ ...P === "BUILDER_STUDIO" && ((p = e.context) != null && p.symbolId) ? {
4101
4139
  query: {
4102
4140
  id: e.context.symbolId
4103
4141
  }
4104
4142
  } : {}
4105
- }).then((j) => {
4106
- j && i(j);
4143
+ }).then((me) => {
4144
+ me && i(me);
4107
4145
  });
4108
4146
  }
4109
4147
  }
4110
- }, []), A(() => {
4148
+ }, []), B(() => {
4111
4149
  e.content && i(e.content);
4112
- }, [e.content]), A(() => {
4150
+ }, [e.content]), B(() => {
4113
4151
  x();
4114
- }, [e.builderContextSignal.rootState]), A(() => {
4152
+ }, [e.builderContextSignal.rootState]), B(() => {
4115
4153
  e.data && n(e.data);
4116
- }, [e.data]), A(() => {
4154
+ }, [e.data]), B(() => {
4117
4155
  e.locale && n({
4118
4156
  locale: e.locale
4119
4157
  });
4120
- }, [e.locale]), A(() => () => {
4158
+ }, [e.locale]), B(() => () => {
4121
4159
  L() && (window.removeEventListener("message", l), window.removeEventListener(
4122
4160
  "builder:component:stateChangeListenerActivated",
4123
4161
  x
4124
4162
  ));
4125
- }, []), /* @__PURE__ */ s(ce.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Ce() ? /* @__PURE__ */ s(
4163
+ }, []), /* @__PURE__ */ s(ce.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Te() ? /* @__PURE__ */ s(
4126
4164
  r,
4127
4165
  {
4128
4166
  ref: t,
4129
- onClick: (I) => f(I),
4167
+ onClick: (w) => f(w),
4130
4168
  "builder-content-id": (S = e.builderContextSignal.content) == null ? void 0 : S.id,
4131
4169
  "builder-model": e.model,
4132
- className: li(
4133
- ((T = e.content) == null ? void 0 : T.testVariationId) || ((P = e.content) == null ? void 0 : P.id)
4170
+ className: si(
4171
+ ((C = e.content) == null ? void 0 : C.testVariationId) || ((V = e.content) == null ? void 0 : V.id)
4134
4172
  ),
4135
4173
  style: {
4136
- display: !e.builderContextSignal.content && Ce() ? "none" : void 0
4174
+ display: !e.builderContextSignal.content && Te() ? "none" : void 0
4137
4175
  },
4138
4176
  ...a(),
4139
4177
  ...e.contentWrapperProps,
@@ -4141,21 +4179,21 @@ function si(e) {
4141
4179
  }
4142
4180
  ) : null });
4143
4181
  }
4144
- function ci(e) {
4182
+ function ui(e) {
4145
4183
  const [t, n] = E(
4146
4184
  () => `
4147
- ${ai({
4185
+ ${oi({
4148
4186
  cssCode: e.cssCode,
4149
4187
  contentId: e.contentId
4150
4188
  })}
4151
- ${ii({
4189
+ ${ai({
4152
4190
  customFonts: e.customFonts
4153
4191
  })}
4154
- ${ri(e.isNestedRender)}
4192
+ ${li(e.isNestedRender)}
4155
4193
  `.trim()
4156
4194
  );
4157
4195
  return /* @__PURE__ */ s(
4158
- M,
4196
+ j,
4159
4197
  {
4160
4198
  id: "builderio-content",
4161
4199
  styles: t,
@@ -4163,15 +4201,15 @@ ${ri(e.isNestedRender)}
4163
4201
  }
4164
4202
  );
4165
4203
  }
4166
- const ui = ({
4204
+ const di = ({
4167
4205
  content: e,
4168
4206
  data: t,
4169
4207
  locale: n
4170
4208
  }) => {
4171
4209
  var r, o, l;
4172
4210
  const i = {}, a = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
4173
- return (l = (o = e == null ? void 0 : e.data) == null ? void 0 : o.inputs) == null || l.forEach((u) => {
4174
- u.name && u.defaultValue !== void 0 && (i[u.name] = u.defaultValue);
4211
+ return (l = (o = e == null ? void 0 : e.data) == null ? void 0 : o.inputs) == null || l.forEach((d) => {
4212
+ d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
4175
4213
  }), {
4176
4214
  ...i,
4177
4215
  ...a,
@@ -4180,7 +4218,7 @@ const ui = ({
4180
4218
  locale: n
4181
4219
  } : {}
4182
4220
  };
4183
- }, di = ({
4221
+ }, mi = ({
4184
4222
  content: e,
4185
4223
  data: t
4186
4224
  }) => e ? {
@@ -4191,46 +4229,46 @@ const ui = ({
4191
4229
  },
4192
4230
  meta: e == null ? void 0 : e.meta
4193
4231
  } : void 0;
4194
- function Te(e) {
4195
- var c, h, g, d, k, f, b, x, y;
4232
+ function we(e) {
4233
+ var c, h, y, u, v, f, g, x, b;
4196
4234
  const [t, n] = E(
4197
4235
  () => {
4198
- var S, T;
4199
- return Yn({
4236
+ var S, C;
4237
+ return Xn({
4200
4238
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4201
4239
  variationId: (S = e.content) == null ? void 0 : S.testVariationId,
4202
4240
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4203
- contentId: (T = e.content) == null ? void 0 : T.id
4241
+ contentId: (C = e.content) == null ? void 0 : C.id
4204
4242
  });
4205
4243
  }
4206
4244
  );
4207
4245
  function i(S) {
4208
- l((T) => ({
4209
- ...T,
4246
+ l((C) => ({
4247
+ ...C,
4210
4248
  rootState: S
4211
4249
  }));
4212
4250
  }
4213
4251
  const [a, r] = E(
4214
4252
  () => [
4215
- ...xe(),
4253
+ ...Se(),
4216
4254
  ...e.customComponents || []
4217
4255
  ].reduce(
4218
- (S, { component: T, ...P }) => ({
4256
+ (S, { component: C, ...V }) => ({
4219
4257
  ...S,
4220
- [P.name]: {
4221
- component: T,
4222
- ...he(P)
4258
+ [V.name]: {
4259
+ component: C,
4260
+ ...ge(V)
4223
4261
  }
4224
4262
  }),
4225
4263
  {}
4226
4264
  )
4227
4265
  ), [o, l] = E(() => ({
4228
- content: di({
4266
+ content: mi({
4229
4267
  content: e.content,
4230
4268
  data: e.data
4231
4269
  }),
4232
4270
  localState: void 0,
4233
- rootState: ui({
4271
+ rootState: di({
4234
4272
  content: e.content,
4235
4273
  data: e.data,
4236
4274
  locale: e.locale
@@ -4241,12 +4279,12 @@ function Te(e) {
4241
4279
  apiKey: e.apiKey,
4242
4280
  apiVersion: e.apiVersion,
4243
4281
  componentInfos: [
4244
- ...xe(),
4282
+ ...Se(),
4245
4283
  ...e.customComponents || []
4246
4284
  ].reduce(
4247
- (S, { component: T, ...P }) => ({
4285
+ (S, { component: C, ...V }) => ({
4248
4286
  ...S,
4249
- [P.name]: he(P)
4287
+ [V.name]: ge(V)
4250
4288
  }),
4251
4289
  {}
4252
4290
  ),
@@ -4254,9 +4292,9 @@ function Te(e) {
4254
4292
  BlocksWrapper: e.blocksWrapper || "div",
4255
4293
  BlocksWrapperProps: e.blocksWrapperProps || {},
4256
4294
  nonce: e.nonce || "",
4257
- model: e.model || ""
4258
- })), u = D(!1);
4259
- if (!u.current) {
4295
+ model: e.model
4296
+ })), d = D(!1);
4297
+ if (!d.current) {
4260
4298
  e.apiKey || re.error(
4261
4299
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4262
4300
  );
@@ -4266,20 +4304,20 @@ function Te(e) {
4266
4304
  context: e.context || {},
4267
4305
  localState: void 0,
4268
4306
  rootState: o.rootState,
4269
- rootSetState: (T) => {
4270
- Object.assign(o.rootState, T);
4307
+ rootSetState: (C) => {
4308
+ Object.assign(o.rootState, C);
4271
4309
  },
4272
4310
  isExpression: !1
4273
- }), u.current = !0;
4311
+ }), d.current = !0;
4274
4312
  }
4275
4313
  return /* @__PURE__ */ s(
4276
- Ve.Provider,
4314
+ Be.Provider,
4277
4315
  {
4278
4316
  value: {
4279
4317
  registeredComponents: a
4280
4318
  },
4281
- children: /* @__PURE__ */ V(
4282
- si,
4319
+ children: /* @__PURE__ */ N(
4320
+ ci,
4283
4321
  {
4284
4322
  apiHost: e.apiHost,
4285
4323
  nonce: e.nonce,
@@ -4308,19 +4346,19 @@ function Te(e) {
4308
4346
  }
4309
4347
  ) : null,
4310
4348
  /* @__PURE__ */ s(
4311
- ci,
4349
+ ui,
4312
4350
  {
4313
4351
  nonce: e.nonce || "",
4314
4352
  isNestedRender: e.isNestedRender,
4315
- contentId: (g = o.content) == null ? void 0 : g.id,
4316
- cssCode: (k = (d = o.content) == null ? void 0 : d.data) == null ? void 0 : k.cssCode,
4317
- customFonts: (b = (f = o.content) == null ? void 0 : f.data) == null ? void 0 : b.customFonts
4353
+ contentId: (y = o.content) == null ? void 0 : y.id,
4354
+ cssCode: (v = (u = o.content) == null ? void 0 : u.data) == null ? void 0 : v.cssCode,
4355
+ customFonts: (g = (f = o.content) == null ? void 0 : f.data) == null ? void 0 : g.customFonts
4318
4356
  }
4319
4357
  ),
4320
4358
  /* @__PURE__ */ s(
4321
4359
  $,
4322
4360
  {
4323
- blocks: (y = (x = o.content) == null ? void 0 : x.data) == null ? void 0 : y.blocks,
4361
+ blocks: (b = (x = o.content) == null ? void 0 : x.data) == null ? void 0 : b.blocks,
4324
4362
  context: o,
4325
4363
  registeredComponents: a,
4326
4364
  linkComponent: e.linkComponent
@@ -4332,20 +4370,20 @@ function Te(e) {
4332
4370
  }
4333
4371
  );
4334
4372
  }
4335
- function mi(e) {
4373
+ function fi(e) {
4336
4374
  var o;
4337
4375
  const [t, n] = E(
4338
- () => Kn({
4339
- canTrack: q(e.canTrack),
4376
+ () => Jn({
4377
+ canTrack: H(e.canTrack),
4340
4378
  content: e.content
4341
4379
  })
4342
4380
  );
4343
4381
  function i() {
4344
4382
  var l;
4345
- return Qn(
4346
- z(e.content).map((u) => ({
4347
- id: u.testVariationId,
4348
- testRatio: u.testRatio
4383
+ return Yn(
4384
+ z(e.content).map((d) => ({
4385
+ id: d.testVariationId,
4386
+ testRatio: d.testRatio
4349
4387
  })),
4350
4388
  ((l = e.content) == null ? void 0 : l.id) || ""
4351
4389
  );
@@ -4358,24 +4396,24 @@ function mi(e) {
4358
4396
  return t ? {
4359
4397
  ...e.content,
4360
4398
  testVariationId: (l = e.content) == null ? void 0 : l.id
4361
- } : Ge({
4399
+ } : Qe({
4362
4400
  item: e.content,
4363
- canTrack: q(e.canTrack)
4401
+ canTrack: H(e.canTrack)
4364
4402
  });
4365
4403
  }
4366
- return A(() => {
4367
- }, []), /* @__PURE__ */ V(R, { children: [
4404
+ return B(() => {
4405
+ }, []), /* @__PURE__ */ N(R, { children: [
4368
4406
  !e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */ s(
4369
4407
  J,
4370
4408
  {
4371
4409
  id: "builderio-init-variants-fns",
4372
- scriptStr: Gn(),
4410
+ scriptStr: Qn(),
4373
4411
  nonce: e.nonce || ""
4374
4412
  }
4375
4413
  ) : null,
4376
- t ? /* @__PURE__ */ V(R, { children: [
4414
+ t ? /* @__PURE__ */ N(R, { children: [
4377
4415
  /* @__PURE__ */ s(
4378
- M,
4416
+ j,
4379
4417
  {
4380
4418
  id: "builderio-variants",
4381
4419
  styles: a(),
@@ -4391,7 +4429,7 @@ function mi(e) {
4391
4429
  }
4392
4430
  ),
4393
4431
  (o = z(e.content)) == null ? void 0 : o.map((l) => /* @__PURE__ */ s(
4394
- Te,
4432
+ we,
4395
4433
  {
4396
4434
  apiHost: e.apiHost,
4397
4435
  isNestedRender: e.isNestedRender,
@@ -4419,7 +4457,7 @@ function mi(e) {
4419
4457
  ))
4420
4458
  ] }) : null,
4421
4459
  /* @__PURE__ */ s(
4422
- Te,
4460
+ we,
4423
4461
  {
4424
4462
  apiHost: e.apiHost,
4425
4463
  nonce: e.nonce,
@@ -4446,13 +4484,13 @@ function mi(e) {
4446
4484
  )
4447
4485
  ] });
4448
4486
  }
4449
- const fi = async ({
4487
+ const hi = async ({
4450
4488
  builderContextValue: e,
4451
4489
  symbol: t
4452
4490
  }) => {
4453
4491
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4454
4492
  (e != null && e.apiKey))
4455
- return Ie({
4493
+ return Ee({
4456
4494
  model: t.model,
4457
4495
  apiKey: e.apiKey,
4458
4496
  apiVersion: e.apiVersion,
@@ -4465,8 +4503,8 @@ const fi = async ({
4465
4503
  re.error("Could not fetch symbol content: ", n);
4466
4504
  });
4467
4505
  };
4468
- function hi(e) {
4469
- var l, u, c, h;
4506
+ function gi(e) {
4507
+ var l, d, c, h, y;
4470
4508
  function t() {
4471
4509
  return "div";
4472
4510
  }
@@ -4474,31 +4512,31 @@ function hi(e) {
4474
4512
  return "div";
4475
4513
  }
4476
4514
  function i() {
4477
- var g, d;
4515
+ var u, v;
4478
4516
  return [
4479
- e.attributes[H()],
4517
+ e.attributes[M()],
4480
4518
  "builder-symbol",
4481
- (g = e.symbol) != null && g.inline ? "builder-inline-symbol" : void 0,
4482
- (d = e.symbol) != null && d.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4519
+ (u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
4520
+ (v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4483
4521
  ].filter(Boolean).join(" ");
4484
4522
  }
4485
4523
  const [a, r] = E(() => {
4486
- var g;
4487
- return (g = e.symbol) == null ? void 0 : g.content;
4524
+ var u;
4525
+ return (u = e.symbol) == null ? void 0 : u.content;
4488
4526
  });
4489
4527
  function o() {
4490
- a || fi({
4528
+ a || hi({
4491
4529
  symbol: e.symbol,
4492
4530
  builderContextValue: e.builderContext
4493
- }).then((g) => {
4494
- g && r(g);
4531
+ }).then((u) => {
4532
+ u && r(u);
4495
4533
  });
4496
4534
  }
4497
- return A(() => {
4498
- }, []), A(() => {
4535
+ return B(() => {
4536
+ }, []), B(() => {
4499
4537
  o();
4500
4538
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
4501
- mi,
4539
+ fi,
4502
4540
  {
4503
4541
  nonce: e.builderContext.nonce,
4504
4542
  isNestedRender: !0,
@@ -4510,12 +4548,12 @@ function hi(e) {
4510
4548
  },
4511
4549
  customComponents: Object.values(e.builderComponents),
4512
4550
  data: {
4513
- ...(u = e.symbol) == null ? void 0 : u.data,
4551
+ ...(d = e.symbol) == null ? void 0 : d.data,
4514
4552
  ...e.builderContext.localState,
4515
4553
  ...(c = a == null ? void 0 : a.data) == null ? void 0 : c.state
4516
4554
  },
4517
4555
  canTrack: e.builderContext.canTrack,
4518
- model: (h = e.symbol) == null ? void 0 : h.model,
4556
+ model: (y = (h = e.symbol) == null ? void 0 : h.model) != null ? y : "",
4519
4557
  content: a,
4520
4558
  linkComponent: e.builderLinkComponent,
4521
4559
  blocksWrapper: t(),
@@ -4526,14 +4564,14 @@ function hi(e) {
4526
4564
  export {
4527
4565
  $ as Blocks,
4528
4566
  ce as BuilderContext,
4529
- ot as Button,
4530
- zt as Columns,
4531
- mi as Content,
4532
- Kt as Fragment,
4533
- Qt as Image,
4534
- Yt as Section,
4535
- hi as Symbol,
4536
- Sn as Text,
4537
- Hn as Video,
4538
- ki as setClientUserAttributes
4567
+ rt as Button,
4568
+ Kt as Columns,
4569
+ fi as Content,
4570
+ Jt as Fragment,
4571
+ Yt as Image,
4572
+ Xt as Section,
4573
+ gi as Symbol,
4574
+ kn as Text,
4575
+ Mn as Video,
4576
+ Ci as setClientUserAttributes
4539
4577
  };