@builder.io/sdk-react 4.0.1 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/lib/browser/blocks-exports.cjs +30 -30
  2. package/lib/browser/blocks-exports.mjs +567 -561
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/{node/server-entry-a017e97a.js → browser/server-entry-25e49efc.js} +2 -2
  6. package/lib/browser/{server-entry-0e0758cb.cjs → server-entry-9e5daeda.cjs} +2 -2
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/{accordion-46e5b47a.js → accordion-5063d748.js} +1 -1
  10. package/lib/edge/{accordion-02a74a7b.cjs → accordion-f5e5687b.cjs} +1 -1
  11. package/lib/edge/{blocks-43b7cd64.cjs → blocks-d690074d.cjs} +1 -1
  12. package/lib/edge/blocks-exports.cjs +1 -1
  13. package/lib/edge/blocks-exports.mjs +2 -2
  14. package/lib/edge/{blocks-27f4c960.js → blocks-f3b2fbd5.js} +2 -2
  15. package/lib/edge/{button-c26a8cc8.js → button-0d0430e9.js} +2 -2
  16. package/lib/edge/{button-b1f2e20e.cjs → button-7cac2c65.cjs} +1 -1
  17. package/lib/edge/{columns-9a6cd1b4.js → columns-19b22772.js} +3 -3
  18. package/lib/edge/{columns-5a3e9ac8.cjs → columns-87b82f2f.cjs} +1 -1
  19. package/lib/edge/{content-variants-3085ec74.js → content-variants-0f0a71cb.js} +313 -307
  20. package/lib/edge/content-variants-80fc28d8.cjs +134 -0
  21. package/lib/edge/{form-bf3ca65d.cjs → form-0b5bd2e3.cjs} +1 -1
  22. package/lib/edge/{form-f2aa1c12.js → form-b8f74b68.js} +3 -3
  23. package/lib/edge/{get-class-prop-name-7cdcaf94.cjs → get-class-prop-name-6ef08339.cjs} +1 -1
  24. package/lib/edge/{get-class-prop-name-e41a3976.js → get-class-prop-name-f3ce6ca4.js} +1 -1
  25. package/lib/edge/{img-2c718c5f.cjs → img-20126279.cjs} +1 -1
  26. package/lib/edge/{img-2a060e61.js → img-4becc0d4.js} +1 -1
  27. package/lib/edge/index.cjs +1 -1
  28. package/lib/edge/index.mjs +1 -1
  29. package/lib/edge/{input-213f973c.cjs → input-6884ec2d.cjs} +1 -1
  30. package/lib/edge/{input-f270ae3b.js → input-768a5984.js} +1 -1
  31. package/lib/edge/{personalization-container-b03bc073.cjs → personalization-container-8b32ce9d.cjs} +1 -1
  32. package/lib/edge/{personalization-container-b85b14c3.js → personalization-container-b581d0f6.js} +4 -4
  33. package/lib/edge/{select-d6ff55b2.cjs → select-ac5b39d8.cjs} +1 -1
  34. package/lib/edge/{select-e12e1a87.js → select-e54dc6bc.js} +1 -1
  35. package/lib/edge/{server-entry-b94c45af.js → server-entry-818ae9c6.js} +2 -1
  36. package/lib/edge/{server-entry-d0313f00.cjs → server-entry-a60fb569.cjs} +2 -2
  37. package/lib/edge/server-entry.cjs +1 -1
  38. package/lib/edge/server-entry.mjs +1 -1
  39. package/lib/edge/{slot-2670ac48.js → slot-05218273.js} +3 -3
  40. package/lib/edge/{slot-5ee0ac5d.cjs → slot-5dba6213.cjs} +1 -1
  41. package/lib/edge/{symbol-a0b2e083.js → symbol-9f247918.js} +2 -2
  42. package/lib/edge/{symbol-7e58faf5.cjs → symbol-f4b09828.cjs} +1 -1
  43. package/lib/edge/{tabs-1f475bd4.cjs → tabs-02960a8c.cjs} +1 -1
  44. package/lib/edge/{tabs-931291c4.js → tabs-a0b38dde.js} +3 -3
  45. package/lib/node/blocks-exports.cjs +30 -30
  46. package/lib/node/blocks-exports.mjs +568 -562
  47. package/lib/node/index.cjs +1 -1
  48. package/lib/node/index.mjs +3 -3
  49. package/lib/node/init.cjs +1 -1
  50. package/lib/node/init.mjs +3 -3
  51. package/lib/node/{server-entry-24943b12.cjs → server-entry-2a2cad4a.cjs} +2 -2
  52. package/lib/{browser/server-entry-403d3877.js → node/server-entry-702b1a29.js} +3 -1
  53. package/lib/node/server-entry.cjs +1 -1
  54. package/lib/node/server-entry.mjs +1 -1
  55. package/lib/node/{setIvm-0a7e7bf0.js → setIvm-0a6b0788.js} +1 -1
  56. package/lib/node/{setIvm-dcd69a69.cjs → setIvm-9cddfc1a.cjs} +1 -1
  57. package/lib/node/setIvm.cjs +1 -1
  58. package/lib/node/setIvm.mjs +2 -2
  59. package/lib/node/{should-force-browser-runtime-in-node-0ca8d8b1.cjs → should-force-browser-runtime-in-node-d6c9e985.cjs} +1 -1
  60. package/lib/node/{should-force-browser-runtime-in-node-c51ac820.js → should-force-browser-runtime-in-node-dfff7f8f.js} +1 -1
  61. package/package.json +1 -1
  62. package/types/constants/sdk-version.d.ts +1 -1
  63. package/lib/edge/content-variants-eff73ca9.cjs +0 -134
@@ -1,17 +1,17 @@
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 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-a017e97a.js";
3
- import { setClientUserAttributes as Ci } from "./server-entry-a017e97a.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-0a7e7bf0.js";
8
- import { shouldForceBrowserRuntimeInNode as it } from "./should-force-browser-runtime-in-node-c51ac820.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
- function se(e) {
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 }) }) });
2
+ import { TARGET as O, isBrowser as U, logger as ce, checkIsDefined as le, isPreviewing as Y, isEditing as $, userAttributesService as be, getDefaultCanTrack as M, logFetch as Ve, registerInsertMenu as Ge, setupBrowserForEditing as Qe, createRegisterComponentMessage as Ye, getCookieSync as Xe, _track as pe, fetchOneEntry as Pe, createEditorListener as Ze, serializeIncludingFunctions as ye, handleABTestingSync as et } from "./server-entry-702b1a29.js";
3
+ import { setClientUserAttributes as Ei } from "./server-entry-702b1a29.js";
4
+ import { jsx as s, Fragment as R, jsxs as B } from "react/jsx-runtime";
5
+ import * as tt from "react";
6
+ import { createContext as Be, useEffect as P, useState as I, useRef as L, useContext as ve, createElement as Ae } from "react";
7
+ import { getFunctionArguments as nt, flattenState as it, runInNode as at, parseCode as ot, getBuilderGlobals as rt, set as Ne, fastClone as ue } from "./setIvm-0a6b0788.js";
8
+ import { shouldForceBrowserRuntimeInNode as lt } from "./should-force-browser-runtime-in-node-dfff7f8f.js";
9
+ const st = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ct = (e) => typeof e == "string" && st.has(e.toLowerCase());
10
+ function de(e) {
11
+ return /* @__PURE__ */ s(R, { children: ct(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 M = () => {
14
- switch (F) {
13
+ const j = () => {
14
+ switch (O) {
15
15
  case "react":
16
16
  case "reactNative":
17
17
  case "rsc":
@@ -24,11 +24,11 @@ const M = () => {
24
24
  return "class";
25
25
  }
26
26
  };
27
- function rt(e) {
27
+ function ut(e) {
28
28
  function t() {
29
29
  return {
30
30
  ...e.attributes,
31
- [M()]: `${e.link ? "" : "builder-button"} ${e.attributes[M()] || ""}`,
31
+ [j()]: `${e.link ? "" : "builder-button"} ${e.attributes[j()] || ""}`,
32
32
  ...e.link ? {
33
33
  href: e.link,
34
34
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -39,7 +39,7 @@ function rt(e) {
39
39
  };
40
40
  }
41
41
  return /* @__PURE__ */ s(
42
- se,
42
+ de,
43
43
  {
44
44
  attributes: t(),
45
45
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
@@ -48,7 +48,7 @@ function rt(e) {
48
48
  }
49
49
  );
50
50
  }
51
- const ce = Re({
51
+ const me = Be({
52
52
  content: null,
53
53
  context: {},
54
54
  localState: void 0,
@@ -63,10 +63,10 @@ const ce = Re({
63
63
  BlocksWrapperProps: {},
64
64
  nonce: "",
65
65
  model: ""
66
- }), Be = Re({ registeredComponents: {} }), Ae = (e, t, n) => {
66
+ }), We = Be({ registeredComponents: {} }), $e = (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
- }, lt = ({
69
+ }, dt = ({
70
70
  code: e,
71
71
  builder: t,
72
72
  context: n,
@@ -75,24 +75,24 @@ const ce = Re({
75
75
  rootSetState: r,
76
76
  rootState: o
77
77
  }) => {
78
- const l = Xe({
78
+ const l = nt({
79
79
  builder: t,
80
80
  context: n,
81
81
  event: i,
82
- state: Ze({
82
+ state: it({
83
83
  rootState: o,
84
84
  localState: a,
85
85
  rootSetState: r
86
86
  })
87
87
  });
88
88
  return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
89
- }, st = (e) => L() || it({
89
+ }, mt = (e) => U() || lt({
90
90
  shouldLogWarning: !0
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) => {
91
+ }) ? dt(e) : at(e), ft = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, ht = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, gt = (e) => {
92
92
  var t, n, i, a, r, o;
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));
93
+ return ((i = (n = (t = ft.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((o = (r = (a = ht.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : r.getPath) == null ? void 0 : o.slice(1));
94
94
  };
95
- function O({
95
+ function _({
96
96
  code: e,
97
97
  context: t,
98
98
  localState: n,
@@ -103,17 +103,17 @@ function O({
103
103
  }) {
104
104
  if (e.trim() === "")
105
105
  return;
106
- const l = dt(e.trim());
106
+ const l = gt(e.trim());
107
107
  if (l)
108
- return Ae({
108
+ return $e({
109
109
  ...i,
110
110
  ...n
111
111
  }, l);
112
112
  const d = {
113
- code: tt(e, {
113
+ code: ot(e, {
114
114
  isExpression: o
115
115
  }),
116
- builder: nt(),
116
+ builder: rt(),
117
117
  context: t,
118
118
  event: r,
119
119
  rootSetState: a,
@@ -121,28 +121,28 @@ function O({
121
121
  localState: n
122
122
  };
123
123
  try {
124
- return st(d);
124
+ return mt(d);
125
125
  } catch (c) {
126
- re.error("Failed code evaluation: " + c.message, {
126
+ ce.error("Failed code evaluation: " + c.message, {
127
127
  code: e
128
128
  });
129
129
  return;
130
130
  }
131
131
  }
132
- function mt(e, t) {
132
+ function bt(e, t) {
133
133
  var n;
134
134
  return {
135
135
  ...(n = e.component) == null ? void 0 : n.options,
136
136
  ...e.options,
137
- ...ft(e, t)
137
+ ...pt(e, t)
138
138
  };
139
139
  }
140
- const ft = (e, t) => {
140
+ const pt = (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 {
144
144
  ...e.component.options,
145
- text: e.component.options.text.replace(/{{([^}]+)}}/g, (a, r) => O({
145
+ text: e.component.options.text.replace(/{{([^}]+)}}/g, (a, r) => _({
146
146
  code: r,
147
147
  context: t,
148
148
  localState: t.localState,
@@ -151,13 +151,13 @@ const ft = (e, t) => {
151
151
  }))
152
152
  };
153
153
  };
154
- function ht(e, ...t) {
154
+ function yt(e, ...t) {
155
155
  const n = Object.assign({}, e);
156
156
  for (const i of t)
157
157
  delete n[i];
158
158
  return n;
159
159
  }
160
- function K(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
160
+ function G(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
161
161
  if (e == null || typeof e != "object") {
162
162
  t(e, (r) => {
163
163
  n !== null && i !== null && (n[i] = r);
@@ -167,52 +167,52 @@ function K(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
167
167
  a.has(e) || (a.add(e), Array.isArray(e) ? e.forEach((r, o) => {
168
168
  t(r, (d) => {
169
169
  e[o] = d;
170
- }), K(r, t, e, o, a);
170
+ }), G(r, t, e, o, a);
171
171
  }) : Object.entries(e).forEach(([r, o]) => {
172
172
  t(o, (d) => {
173
173
  e[r] = d;
174
- }), K(o, t, e, r, a);
174
+ }), G(o, t, e, r, a);
175
175
  }));
176
176
  }
177
- function Ne(e) {
177
+ function De(e) {
178
178
  return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
179
179
  }
180
- function gt(e) {
180
+ function vt(e) {
181
181
  if (!e || !Object.getOwnPropertyNames(e).length)
182
182
  return !1;
183
183
  let t = !1;
184
- return K(e, (n) => {
185
- if (Ne(n)) {
184
+ return G(e, (n) => {
185
+ if (De(n)) {
186
186
  t = !0;
187
187
  return;
188
188
  }
189
189
  }), t;
190
190
  }
191
- function bt(e, t) {
192
- return !e || !Object.getOwnPropertyNames(e).length ? {} : (K(e, (n, i) => {
191
+ function xt(e, t) {
192
+ return !e || !Object.getOwnPropertyNames(e).length ? {} : (G(e, (n, i) => {
193
193
  var a;
194
- Ne(n) && i((a = n[t]) != null ? a : void 0);
194
+ De(n) && i((a = n[t]) != null ? a : void 0);
195
195
  }), e);
196
196
  }
197
- function pt(e, t) {
197
+ function St(e, t) {
198
198
  var n, i;
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;
199
+ return (n = e.component) != null && n.options && vt((i = e.component) == null ? void 0 : i.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = xt(e.component.options, t != null ? t : "Default")), e;
200
200
  }
201
- function oe(e) {
201
+ function se(e) {
202
202
  if (e === null || typeof e != "object")
203
203
  return e;
204
204
  if (Array.isArray(e))
205
- return e.map((n) => oe(n));
205
+ return e.map((n) => se(n));
206
206
  if (e["@type"] === "@builder.io/sdk:Element")
207
207
  return e;
208
208
  const t = {};
209
209
  for (const n in e)
210
- n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = oe(e[n]));
210
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = se(e[n]));
211
211
  return t;
212
212
  }
213
- const yt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), vt = (e) => {
214
- if (yt) {
215
- const t = le(e);
213
+ const kt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Ct = (e) => {
214
+ if (kt) {
215
+ const t = ue(e);
216
216
  return {
217
217
  ...t,
218
218
  properties: {
@@ -223,7 +223,7 @@ const yt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), vt = (e) =
223
223
  }
224
224
  };
225
225
  } else {
226
- const t = oe(ht(e, "children", "meta"));
226
+ const t = se(yt(e, "children", "meta"));
227
227
  return {
228
228
  ...t,
229
229
  properties: {
@@ -236,7 +236,7 @@ const yt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), vt = (e) =
236
236
  meta: e.meta
237
237
  };
238
238
  }
239
- }, xt = ({
239
+ }, Tt = ({
240
240
  block: e,
241
241
  context: t,
242
242
  localState: n,
@@ -245,28 +245,28 @@ const yt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), vt = (e) =
245
245
  }) => {
246
246
  if (!e.bindings)
247
247
  return e;
248
- const r = vt(e);
248
+ const r = Ct(e);
249
249
  for (const o in e.bindings) {
250
- const l = e.bindings[o], d = O({
250
+ const l = e.bindings[o], d = _({
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, d);
257
+ Ne(r, o, d);
258
258
  }
259
259
  return r;
260
260
  };
261
- function St({
261
+ function wt({
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 = pt(e, i.locale);
269
- return r = r, xt({
268
+ let r = St(e, i.locale);
269
+ return r = r, Tt({
270
270
  block: r,
271
271
  localState: n,
272
272
  rootState: i,
@@ -274,8 +274,8 @@ function St({
274
274
  context: t
275
275
  });
276
276
  }
277
- const Q = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
278
- function kt(e, t, n = {}) {
277
+ const X = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
278
+ function It(e, t, n = {}) {
279
279
  let i, a, r, o = null, l = 0;
280
280
  const d = function() {
281
281
  l = n.leading === !1 ? 0 : Date.now(), o = null, r = e.apply(i, a), o || (i = a = null);
@@ -287,7 +287,7 @@ function kt(e, t, n = {}) {
287
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 q(e, ...t) {
290
+ function H(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,64 +297,64 @@ function q(e, ...t) {
297
297
  }
298
298
  return n;
299
299
  }
300
- function Ct(e) {
300
+ function Et(e) {
301
301
  for (const t of e)
302
302
  switch (t.trigger) {
303
303
  case "pageLoad":
304
- De(t);
304
+ Oe(t);
305
305
  break;
306
306
  case "scrollInView":
307
- wt(t);
307
+ Vt(t);
308
308
  break;
309
309
  }
310
310
  }
311
- function We(e) {
311
+ function Fe(e) {
312
312
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
313
313
  }
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];
314
+ function Le(e, t) {
315
+ const n = Rt(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
317
  for (const d of n)
318
318
  d in l || (l[d] = i[d]);
319
319
  }
320
- function Tt(e) {
320
+ function Rt(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 De(e) {
327
+ function Oe(e) {
328
328
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
329
329
  if (!t.length) {
330
- We(e.elementId || e.id || "");
330
+ Fe(e.elementId || e.id || "");
331
331
  return;
332
332
  }
333
333
  Array.from(t).forEach((n) => {
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(() => {
334
+ Le(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
335
+ n.style.transition = `all ${e.duration}s ${X(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(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 wt(e) {
341
+ function Vt(e) {
342
342
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
343
343
  if (!t.length) {
344
- We(e.elementId || e.id || "");
344
+ Fe(e.elementId || e.id || "");
345
345
  return;
346
346
  }
347
347
  Array.from(t).forEach((n) => {
348
- $e(e, n);
348
+ Le(e, n);
349
349
  let i = !1, a = !1;
350
350
  function r() {
351
351
  !i && l(n) ? (i = !0, a = !0, setTimeout(() => {
352
- q(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", o), setTimeout(() => {
352
+ H(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, q(n.style, e.steps[0].styles));
355
+ })) : e.repeat && i && !a && !l(n) && (i = !1, H(n.style, e.steps[0].styles));
356
356
  }
357
- const o = kt(r, 200, {
357
+ const o = It(r, 200, {
358
358
  leading: !1
359
359
  });
360
360
  function l(h) {
@@ -363,52 +363,52 @@ function wt(e) {
363
363
  }
364
364
  const d = e.steps[0].styles;
365
365
  function c() {
366
- q(n.style, d);
366
+ H(n.style, d);
367
367
  }
368
368
  c(), setTimeout(() => {
369
- n.style.transition = `all ${e.duration}s ${Q(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
369
+ n.style.transition = `all ${e.duration}s ${X(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
370
370
  }), document.addEventListener("scroll", o, {
371
371
  capture: !0,
372
372
  passive: !0
373
373
  }), r();
374
374
  });
375
375
  }
376
- const Fe = (e) => Object.entries(e).map(([n, i]) => {
376
+ const Ue = (e) => Object.entries(e).map(([n, i]) => {
377
377
  if (typeof i == "string")
378
- return `${Q(n)}: ${i};`;
379
- }).filter(ae), It = (e) => Fe(e).join(`
380
- `), _ = ({
378
+ return `${X(n)}: ${i};`;
379
+ }).filter(le), Pt = (e) => Ue(e).join(`
380
+ `), q = ({
381
381
  mediaQuery: e,
382
382
  className: t,
383
383
  styles: n
384
384
  }) => {
385
385
  const i = `.${t} {
386
- ${It(n)}
386
+ ${Pt(n)}
387
387
  }`;
388
388
  return e ? `${e} {
389
389
  ${i}
390
390
  }` : i;
391
391
  };
392
- function Et({
392
+ function Bt({
393
393
  style: e
394
394
  }) {
395
395
  return e;
396
396
  }
397
- const Rt = ({
397
+ const At = ({
398
398
  block: e,
399
399
  context: t
400
- }) => Le(Et({
400
+ }) => _e(Bt({
401
401
  style: e.style || {},
402
402
  context: t,
403
403
  block: e
404
404
  }));
405
- function Le(e) {
406
- switch (F) {
405
+ function _e(e) {
406
+ switch (O) {
407
407
  case "svelte":
408
408
  case "vue":
409
409
  case "solid":
410
410
  case "angular":
411
- return Fe(e).join(" ");
411
+ return Ue(e).join(" ");
412
412
  case "qwik":
413
413
  case "reactNative":
414
414
  case "react":
@@ -416,7 +416,7 @@ function Le(e) {
416
416
  return e;
417
417
  }
418
418
  }
419
- const Oe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Vt = ({
419
+ const qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Nt = ({
420
420
  block: e,
421
421
  registeredComponents: t,
422
422
  model: n
@@ -426,14 +426,14 @@ const Oe = (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 || Oe(a, n)) {
429
+ if (!a || qe(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?`);
433
433
  return;
434
434
  } else
435
435
  return a;
436
- }, Pt = ({
436
+ }, Wt = ({
437
437
  block: e,
438
438
  context: t
439
439
  }) => {
@@ -443,7 +443,7 @@ const Oe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
443
443
  } = e;
444
444
  if (!(n != null && n.collection))
445
445
  return;
446
- const a = O({
446
+ const a = _({
447
447
  code: n.collection,
448
448
  localState: t.localState,
449
449
  rootState: t.rootState,
@@ -466,27 +466,27 @@ const Oe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
466
466
  },
467
467
  block: i
468
468
  }));
469
- }, Bt = (e, t) => {
469
+ }, $t = (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
- }, At = (e, t, n) => {
474
+ }, Dt = (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]) => !Oe(o, n)))
477
+ builderComponents: Object.fromEntries(Object.entries(t).filter(([r, o]) => !qe(o, n)))
478
478
  } : {};
479
- }, Nt = (e, t) => {
479
+ }, Ft = (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
- }, Wt = (e, t) => {
484
+ }, Lt = (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
- }, Ue = {
489
+ }, He = {
490
490
  xsmall: {
491
491
  min: 0,
492
492
  default: 160,
@@ -507,8 +507,8 @@ const Oe = (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 = Ue) => `@media (max-width: ${t[e].max}px)`, _e = (e) => {
511
- const t = le(Ue);
510
+ }, te = (e, t = He) => `@media (max-width: ${t[e].max}px)`, Me = (e) => {
511
+ const t = ue(He);
512
512
  if (!e)
513
513
  return t;
514
514
  const {
@@ -546,7 +546,7 @@ const Oe = (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 j(e) {
549
+ function z(e) {
550
550
  return /* @__PURE__ */ s(
551
551
  "style",
552
552
  {
@@ -556,39 +556,39 @@ function j(e) {
556
556
  }
557
557
  );
558
558
  }
559
- function $t(e) {
559
+ function Ot(e) {
560
560
  function t() {
561
561
  const i = e.block;
562
- return ae(i.hide) ? !i.hide : ae(i.show) ? i.show : !0;
562
+ return le(i.hide) ? !i.hide : le(i.show) ? i.show : !0;
563
563
  }
564
564
  function n() {
565
565
  var C, V, w, x, m;
566
- const i = e.block, a = i.responsiveStyles, r = e.context.content, o = _e(
566
+ const i = e.block, a = i.responsiveStyles, r = e.context.content, o = Me(
567
567
  ((C = r == null ? void 0 : r.meta) == null ? void 0 : C.breakpoints) || {}
568
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
569
  if (!u)
570
570
  return "";
571
- const v = d ? _({
571
+ const v = d ? q({
572
572
  className: u,
573
573
  styles: d
574
- }) : "", f = c ? _({
574
+ }) : "", f = c ? q({
575
575
  className: u,
576
576
  styles: c,
577
- mediaQuery: X(
577
+ mediaQuery: te(
578
578
  "medium",
579
579
  o
580
580
  )
581
- }) : "", g = h ? _({
581
+ }) : "", g = h ? q({
582
582
  className: u,
583
583
  styles: h,
584
- mediaQuery: X(
584
+ mediaQuery: te(
585
585
  "small",
586
586
  o
587
587
  )
588
- }) : "", S = y && l ? _({
588
+ }) : "", S = y && l ? q({
589
589
  className: u,
590
590
  styles: y,
591
- mediaQuery: X(
591
+ mediaQuery: te(
592
592
  "xsmall",
593
593
  o
594
594
  )
@@ -596,11 +596,11 @@ function $t(e) {
596
596
  let k = "";
597
597
  if (b) {
598
598
  const p = ((m = (x = b.steps) == null ? void 0 : x[1]) == null ? void 0 : m.styles) || {};
599
- k = _({
599
+ k = q({
600
600
  className: `${u}:hover`,
601
601
  styles: {
602
602
  ...p,
603
- transition: `all ${b.duration}s ${Q(
603
+ transition: `all ${b.duration}s ${X(
604
604
  b.easing
605
605
  )}`,
606
606
  transitionDelay: b.delay ? `${b.delay}s` : "0s"
@@ -616,7 +616,7 @@ function $t(e) {
616
616
  ].join(" ");
617
617
  }
618
618
  return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
619
- j,
619
+ z,
620
620
  {
621
621
  id: "builderio-block",
622
622
  styles: n(),
@@ -624,10 +624,10 @@ function $t(e) {
624
624
  }
625
625
  ) }) : null });
626
626
  }
627
- function Dt(e) {
627
+ function Ut(e) {
628
628
  return e.charAt(0).toUpperCase() + e.slice(1);
629
629
  }
630
- const Ft = (e) => `on${Dt(e)}`, Lt = (e, t) => (n) => O({
630
+ const _t = (e) => `on${Ut(e)}`, qt = (e, t) => (n) => _({
631
631
  code: e,
632
632
  context: t.context,
633
633
  localState: t.localState,
@@ -636,16 +636,16 @@ const Ft = (e) => `on${Dt(e)}`, Lt = (e, t) => (n) => O({
636
636
  event: n,
637
637
  isExpression: !1
638
638
  });
639
- function qe(e) {
639
+ function je(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 = Ft(a);
646
+ let o = _t(a);
647
647
  if (e.stripPrefix)
648
- switch (F) {
648
+ switch (O) {
649
649
  case "vue":
650
650
  o = o.replace("v-on:", "");
651
651
  break;
@@ -653,49 +653,49 @@ function qe(e) {
653
653
  o = o.replace("on:", "");
654
654
  break;
655
655
  }
656
- t[o] = Lt(r, e);
656
+ t[o] = qt(r, e);
657
657
  }
658
658
  return t;
659
659
  }
660
- function Ot({
660
+ function Ht({
661
661
  properties: e
662
662
  }) {
663
663
  return e;
664
664
  }
665
- const Ut = (e) => ({
665
+ const Mt = (e) => ({
666
666
  href: e.href
667
667
  });
668
- function ue({
668
+ function fe({
669
669
  block: e,
670
670
  context: t
671
671
  }) {
672
672
  var i;
673
673
  const n = {
674
- ...Ut(e),
674
+ ...Mt(e),
675
675
  ...e.properties,
676
676
  "builder-id": e.id,
677
- style: Rt({
677
+ style: At({
678
678
  block: e,
679
679
  context: t
680
680
  }),
681
- [M()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
681
+ [j()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
682
682
  };
683
- return Ot({
683
+ return Ht({
684
684
  properties: n,
685
685
  context: t,
686
686
  block: e
687
687
  });
688
688
  }
689
- function _t(e) {
689
+ function jt(e) {
690
690
  return /* @__PURE__ */ s(
691
- se,
691
+ de,
692
692
  {
693
693
  TagName: e.Wrapper,
694
- attributes: ue({
694
+ attributes: fe({
695
695
  block: e.block,
696
696
  context: e.context
697
697
  }),
698
- actionAttributes: qe({
698
+ actionAttributes: je({
699
699
  block: e.block,
700
700
  rootState: e.context.rootState,
701
701
  rootSetState: e.context.rootSetState,
@@ -707,18 +707,18 @@ function _t(e) {
707
707
  }
708
708
  );
709
709
  }
710
- function qt(e) {
711
- return B(() => {
710
+ function zt(e) {
711
+ return P(() => {
712
712
  }, []), /* @__PURE__ */ s(R, { children: e.children });
713
713
  }
714
- function Ht(e) {
714
+ function Kt(e) {
715
715
  function t() {
716
716
  return e.includeBlockProps ? {
717
- ...ue({
717
+ ...fe({
718
718
  block: e.block,
719
719
  context: e.context
720
720
  }),
721
- ...qe({
721
+ ...je({
722
722
  block: e.block,
723
723
  rootState: e.context.rootState,
724
724
  rootSetState: e.context.rootSetState,
@@ -728,7 +728,7 @@ function Ht(e) {
728
728
  } : {};
729
729
  }
730
730
  return /* @__PURE__ */ s(R, { children: e.Wrapper.load ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
731
- qt,
731
+ zt,
732
732
  {
733
733
  load: e.Wrapper.load,
734
734
  fallback: e.Wrapper.fallback,
@@ -738,7 +738,7 @@ function Ht(e) {
738
738
  }
739
739
  ) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
740
740
  }
741
- const Mt = ({
741
+ const Jt = ({
742
742
  componentOptions: e,
743
743
  builderBlock: t,
744
744
  context: n,
@@ -754,7 +754,7 @@ const Mt = ({
754
754
  * component itself directly. Otherwise, they are provided to the wrapper element.
755
755
  */
756
756
  ...a ? {
757
- attributes: ue({
757
+ attributes: fe({
758
758
  block: t,
759
759
  context: o
760
760
  })
@@ -768,15 +768,15 @@ const Mt = ({
768
768
  includeBlockProps: a
769
769
  } : l;
770
770
  };
771
- function pe(e) {
771
+ function xe(e) {
772
772
  var i;
773
- const [t, n] = E(
774
- () => e.isInteractive ? Ht : e.componentRef
773
+ const [t, n] = I(
774
+ () => e.isInteractive ? Kt : 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
- ...Mt({
779
+ ...Jt({
780
780
  componentOptions: e.componentOptions,
781
781
  builderBlock: e.builderBlock,
782
782
  context: e.context,
@@ -787,7 +787,7 @@ function pe(e) {
787
787
  contextValue: e.context
788
788
  }),
789
789
  children: (i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ s(
790
- Y,
790
+ Z,
791
791
  {
792
792
  block: a,
793
793
  context: e.context,
@@ -799,10 +799,10 @@ function pe(e) {
799
799
  }
800
800
  ) }) : null });
801
801
  }
802
- function ye(e) {
803
- const [t, n] = E(() => e.repeatContext);
804
- return /* @__PURE__ */ s(ce.Provider, { value: t, children: /* @__PURE__ */ s(
805
- Y,
802
+ function Se(e) {
803
+ const [t, n] = I(() => e.repeatContext);
804
+ return /* @__PURE__ */ s(me.Provider, { value: t, children: /* @__PURE__ */ s(
805
+ Z,
806
806
  {
807
807
  block: e.block,
808
808
  context: t,
@@ -811,23 +811,23 @@ function ye(e) {
811
811
  }
812
812
  ) });
813
813
  }
814
- function Y(e) {
814
+ function Z(e) {
815
815
  var h, y, u, v;
816
816
  function t() {
817
- return Pt({
817
+ return Wt({
818
818
  block: e.block,
819
819
  context: e.context
820
820
  });
821
821
  }
822
- const [n, i] = E(() => ({
822
+ const [n, i] = I(() => ({
823
823
  value: null,
824
824
  update: !1
825
825
  }));
826
826
  function a() {
827
827
  var g;
828
- if (n.value && !n.update && !G())
828
+ if (n.value && !n.update && !Y())
829
829
  return n.value;
830
- const f = (g = e.block.repeat) != null && g.collection ? e.block : St({
830
+ const f = (g = e.block.repeat) != null && g.collection ? e.block : wt({
831
831
  block: e.block,
832
832
  localState: e.context.localState,
833
833
  rootState: e.context.rootState,
@@ -837,7 +837,7 @@ function Y(e) {
837
837
  return n.value = f, n.update = !1, f;
838
838
  }
839
839
  function r() {
840
- return Vt({
840
+ return Nt({
841
841
  block: a(),
842
842
  registeredComponents: e.registeredComponents,
843
843
  model: e.context.model
@@ -864,11 +864,11 @@ function Y(e) {
864
864
  blockChildren: (f = a().children) != null ? f : [],
865
865
  componentRef: (g = r == null ? void 0 : r()) == null ? void 0 : g.component,
866
866
  componentOptions: {
867
- ...mt(a(), e.context),
868
- ...Nt(r(), a()),
869
- ...Wt(r(), e.context),
870
- ...Bt(r(), e.linkComponent),
871
- ...At(
867
+ ...bt(a(), e.context),
868
+ ...Ft(r(), a()),
869
+ ...Lt(r(), e.context),
870
+ ...$t(r(), e.linkComponent),
871
+ ...Dt(
872
872
  r(),
873
873
  e.registeredComponents,
874
874
  e.context.model
@@ -879,23 +879,23 @@ function Y(e) {
879
879
  registeredComponents: e.registeredComponents,
880
880
  builderBlock: a(),
881
881
  includeBlockProps: ((S = r == null ? void 0 : r()) == null ? void 0 : S.noWrap) === !0,
882
- isInteractive: !((b = r == null ? void 0 : r()) != null && b.isRSC && F === "rsc")
882
+ isInteractive: !((b = r == null ? void 0 : r()) != null && b.isRSC && O === "rsc")
883
883
  };
884
884
  }
885
- return B(() => {
885
+ return P(() => {
886
886
  const f = a().id, g = a().animations;
887
- g && f && Ct(
887
+ g && f && Et(
888
888
  g.map((S) => ({
889
889
  ...S,
890
890
  elementId: f
891
891
  }))
892
892
  );
893
- }, []), B(() => {
893
+ }, []), P(() => {
894
894
  n.update = !0;
895
- }), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ N(R, { children: [
896
- /* @__PURE__ */ s($t, { block: a(), context: e.context }),
895
+ }), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ B(R, { children: [
896
+ /* @__PURE__ */ s(Ot, { block: a(), context: e.context }),
897
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,
898
+ Se,
899
899
  {
900
900
  repeatContext: f.context,
901
901
  block: f.block,
@@ -904,7 +904,7 @@ function Y(e) {
904
904
  },
905
905
  g
906
906
  )) }) : /* @__PURE__ */ s(
907
- pe,
907
+ xe,
908
908
  {
909
909
  componentRef: c().componentRef,
910
910
  componentOptions: c().componentOptions,
@@ -917,7 +917,7 @@ function Y(e) {
917
917
  isInteractive: c().isInteractive
918
918
  }
919
919
  ) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (u = t()) == null ? void 0 : u.map((f, g) => /* @__PURE__ */ s(
920
- ye,
920
+ Se,
921
921
  {
922
922
  repeatContext: f.context,
923
923
  block: f.block,
@@ -925,15 +925,15 @@ function Y(e) {
925
925
  linkComponent: e.linkComponent
926
926
  },
927
927
  g
928
- )) }) : /* @__PURE__ */ N(
929
- _t,
928
+ )) }) : /* @__PURE__ */ B(
929
+ jt,
930
930
  {
931
931
  Wrapper: o(),
932
932
  block: a(),
933
933
  context: e.context,
934
934
  children: [
935
935
  /* @__PURE__ */ s(
936
- pe,
936
+ xe,
937
937
  {
938
938
  componentRef: c().componentRef,
939
939
  componentOptions: c().componentOptions,
@@ -947,7 +947,7 @@ function Y(e) {
947
947
  }
948
948
  ),
949
949
  (y = d()) == null ? void 0 : y.map((f) => /* @__PURE__ */ s(
950
- Y,
950
+ Z,
951
951
  {
952
952
  block: f,
953
953
  registeredComponents: e.registeredComponents,
@@ -961,8 +961,8 @@ function Y(e) {
961
961
  ) })
962
962
  ] }) : null });
963
963
  }
964
- function jt(e) {
965
- const t = D(null);
964
+ function Gt(e) {
965
+ const t = L(null);
966
966
  function n() {
967
967
  var o;
968
968
  return [
@@ -979,7 +979,7 @@ function jt(e) {
979
979
  }
980
980
  function a() {
981
981
  var o, l;
982
- W() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
982
+ $() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
983
983
  {
984
984
  type: "builder.clickEmptyBlocks",
985
985
  data: {
@@ -992,7 +992,7 @@ function jt(e) {
992
992
  }
993
993
  function r() {
994
994
  var o, l;
995
- W() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
995
+ $() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
996
996
  {
997
997
  type: "builder.hoverEmptyBlocks",
998
998
  data: {
@@ -1003,8 +1003,8 @@ function jt(e) {
1003
1003
  "*"
1004
1004
  ));
1005
1005
  }
1006
- return B(() => {
1007
- }, []), /* @__PURE__ */ N(R, { children: [
1006
+ return P(() => {
1007
+ }, []), /* @__PURE__ */ B(R, { children: [
1008
1008
  /* @__PURE__ */ s(
1009
1009
  e.BlocksWrapper,
1010
1010
  {
@@ -1027,11 +1027,11 @@ function jt(e) {
1027
1027
  }` })
1028
1028
  ] });
1029
1029
  }
1030
- function $(e) {
1030
+ function D(e) {
1031
1031
  var i, a, r;
1032
- const t = be(ce), n = be(Be);
1032
+ const t = ve(me), n = ve(We);
1033
1033
  return /* @__PURE__ */ s(
1034
- jt,
1034
+ Gt,
1035
1035
  {
1036
1036
  blocks: e.blocks,
1037
1037
  parent: e.parent,
@@ -1041,7 +1041,7 @@ function $(e) {
1041
1041
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
1042
1042
  BlocksWrapperProps: ((a = e.context) == null ? void 0 : a.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
1043
1043
  children: e.blocks ? /* @__PURE__ */ s(R, { children: (r = e.blocks) == null ? void 0 : r.map((o) => /* @__PURE__ */ s(
1044
- Y,
1044
+ Z,
1045
1045
  {
1046
1046
  block: o,
1047
1047
  linkComponent: e.linkComponent,
@@ -1053,8 +1053,8 @@ function $(e) {
1053
1053
  }
1054
1054
  );
1055
1055
  }
1056
- const zt = (e) => `builder-columns ${e}-breakpoints`;
1057
- function Kt(e) {
1056
+ const Qt = (e) => `builder-columns ${e}-breakpoints`;
1057
+ function Yt(e) {
1058
1058
  var g, S;
1059
1059
  function t() {
1060
1060
  return typeof e.space == "number" ? e.space || 0 : 20;
@@ -1130,7 +1130,7 @@ function Kt(e) {
1130
1130
  }
1131
1131
  function u(b) {
1132
1132
  var C, V;
1133
- return _e(
1133
+ return Me(
1134
1134
  ((V = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : V.breakpoints) || {}
1135
1135
  )[b].max;
1136
1136
  }
@@ -1167,19 +1167,19 @@ function Kt(e) {
1167
1167
  ...b.link ? {
1168
1168
  href: b.link
1169
1169
  } : {},
1170
- [M()]: "builder-column",
1171
- style: Le(y(k))
1170
+ [j()]: "builder-column",
1171
+ style: _e(y(k))
1172
1172
  };
1173
1173
  }
1174
- return /* @__PURE__ */ N(R, { children: [
1175
- /* @__PURE__ */ N(
1174
+ return /* @__PURE__ */ B(R, { children: [
1175
+ /* @__PURE__ */ B(
1176
1176
  "div",
1177
1177
  {
1178
- className: zt((g = e.builderBlock) == null ? void 0 : g.id) + " div-a6f3faac",
1178
+ className: Qt((g = e.builderBlock) == null ? void 0 : g.id) + " div-a6f3faac",
1179
1179
  style: h(),
1180
1180
  children: [
1181
1181
  /* @__PURE__ */ s(
1182
- j,
1182
+ z,
1183
1183
  {
1184
1184
  id: "builderio-columns",
1185
1185
  styles: v(),
@@ -1187,13 +1187,13 @@ function Kt(e) {
1187
1187
  }
1188
1188
  ),
1189
1189
  (S = e.columns) == null ? void 0 : S.map((b, k) => /* @__PURE__ */ s(
1190
- se,
1190
+ de,
1191
1191
  {
1192
1192
  TagName: a(b),
1193
1193
  actionAttributes: {},
1194
1194
  attributes: f(b, k),
1195
1195
  children: /* @__PURE__ */ s(
1196
- $,
1196
+ D,
1197
1197
  {
1198
1198
  path: `columns.${k}.blocks`,
1199
1199
  parent: e.builderBlock.id,
@@ -1218,40 +1218,40 @@ function Kt(e) {
1218
1218
  }` })
1219
1219
  ] });
1220
1220
  }
1221
- function Jt(e) {
1221
+ function Xt(e) {
1222
1222
  return /* @__PURE__ */ s("span", { children: e.children });
1223
1223
  }
1224
- function ve(e) {
1224
+ function ke(e) {
1225
1225
  return e.replace(/http(s)?:/, "");
1226
1226
  }
1227
- function Gt(e = "", t, n) {
1227
+ function Zt(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 Qt(e, t) {
1231
+ function en(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 ve(e);
1235
+ return ke(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 ve(`${i[0]}_${r}${a}`);
1239
+ return ke(`${i[0]}_${r}${a}`);
1240
1240
  }
1241
1241
  return null;
1242
1242
  }
1243
- function Z(e) {
1243
+ function ne(e) {
1244
1244
  if (!e)
1245
1245
  return e;
1246
1246
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
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) => `${Gt(e, "width", a)} ${a}w`).concat([n]).join(", ");
1250
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${Zt(e, "width", a)} ${a}w`).concat([n]).join(", ");
1251
1251
  }
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;
1252
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [en(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1253
1253
  }
1254
- function Yt(e) {
1254
+ function tn(e) {
1255
1255
  var a, r, o, l, d, c;
1256
1256
  function t() {
1257
1257
  var u;
@@ -1263,10 +1263,10 @@ function Yt(e) {
1263
1263
  if (!e.noWebp) {
1264
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(y);
1266
+ return console.debug("Removed given srcset"), ne(y);
1267
1267
  } else if (e.image && !e.srcset)
1268
- return Z(y);
1269
- return Z(y);
1268
+ return ne(y);
1269
+ return ne(y);
1270
1270
  }
1271
1271
  }
1272
1272
  function n() {
@@ -1283,9 +1283,9 @@ function Yt(e) {
1283
1283
  };
1284
1284
  return e.aspectRatio ? h : void 0;
1285
1285
  }
1286
- return /* @__PURE__ */ N(R, { children: [
1287
- /* @__PURE__ */ N(R, { children: [
1288
- /* @__PURE__ */ N("picture", { children: [
1286
+ return /* @__PURE__ */ B(R, { children: [
1287
+ /* @__PURE__ */ B(R, { children: [
1288
+ /* @__PURE__ */ B("picture", { children: [
1289
1289
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1290
1290
  /* @__PURE__ */ s(
1291
1291
  "img",
@@ -1337,7 +1337,7 @@ function Yt(e) {
1337
1337
  }` })
1338
1338
  ] });
1339
1339
  }
1340
- function Xt(e) {
1340
+ function nn(e) {
1341
1341
  return /* @__PURE__ */ s(
1342
1342
  "section",
1343
1343
  {
@@ -1358,7 +1358,7 @@ function Xt(e) {
1358
1358
  }
1359
1359
  );
1360
1360
  }
1361
- const ee = {
1361
+ const ie = {
1362
1362
  "@type": "@builder.io/sdk:Element",
1363
1363
  layerName: "Accordion item title",
1364
1364
  responsiveStyles: {
@@ -1387,7 +1387,7 @@ const ee = {
1387
1387
  }
1388
1388
  }
1389
1389
  }]
1390
- }, te = {
1390
+ }, ae = {
1391
1391
  "@type": "@builder.io/sdk:Element",
1392
1392
  layerName: "Accordion item detail",
1393
1393
  responsiveStyles: {
@@ -1418,7 +1418,7 @@ const ee = {
1418
1418
  }
1419
1419
  }
1420
1420
  }]
1421
- }, Zt = {
1421
+ }, an = {
1422
1422
  name: "Builder:Accordion",
1423
1423
  canHaveChildren: !0,
1424
1424
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1435,19 +1435,19 @@ const ee = {
1435
1435
  name: "title",
1436
1436
  type: "uiBlocks",
1437
1437
  hideFromUI: !0,
1438
- defaultValue: [ee]
1438
+ defaultValue: [ie]
1439
1439
  }, {
1440
1440
  name: "detail",
1441
1441
  type: "uiBlocks",
1442
1442
  hideFromUI: !0,
1443
- defaultValue: [te]
1443
+ defaultValue: [ae]
1444
1444
  }],
1445
1445
  defaultValue: [{
1446
- title: [ee],
1447
- detail: [te]
1446
+ title: [ie],
1447
+ detail: [ae]
1448
1448
  }, {
1449
- title: [ee],
1450
- detail: [te]
1449
+ title: [ie],
1450
+ detail: [ae]
1451
1451
  }],
1452
1452
  showIf: (e) => !e.get("useChildrenForItems")
1453
1453
  }, {
@@ -1482,10 +1482,10 @@ const ee = {
1482
1482
  builderComponents: !0,
1483
1483
  builderLinkComponent: !0
1484
1484
  }
1485
- }, xe = (e) => e.toString();
1486
- function en(e) {
1485
+ }, Ce = (e) => e.toString();
1486
+ function on(e) {
1487
1487
  var y;
1488
- const [t, n] = E(() => []);
1488
+ const [t, n] = I(() => []);
1489
1489
  function i() {
1490
1490
  return !!(e.grid || e.oneAtATime);
1491
1491
  }
@@ -1561,7 +1561,7 @@ function en(e) {
1561
1561
  function h(u) {
1562
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: (y = e.items) == null ? void 0 : y.map((u, v) => /* @__PURE__ */ N(Ye.Fragment, { children: [
1564
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (y = e.items) == null ? void 0 : y.map((u, v) => /* @__PURE__ */ B(tt.Fragment, { children: [
1565
1565
  /* @__PURE__ */ s(
1566
1566
  "div",
1567
1567
  {
@@ -1570,13 +1570,13 @@ function en(e) {
1570
1570
  ...r(),
1571
1571
  ...e.grid && {
1572
1572
  width: e.gridRowWidth,
1573
- order: d() !== null ? xe(v) : xe(v + 1)
1573
+ order: d() !== null ? Ce(v) : Ce(v + 1)
1574
1574
  }
1575
1575
  },
1576
1576
  "data-index": v,
1577
1577
  onClick: (f) => h(v),
1578
1578
  children: /* @__PURE__ */ s(
1579
- $,
1579
+ D,
1580
1580
  {
1581
1581
  blocks: u.title,
1582
1582
  path: `items.${v}.title`,
@@ -1594,7 +1594,7 @@ function en(e) {
1594
1594
  className: l(v),
1595
1595
  style: c(),
1596
1596
  children: /* @__PURE__ */ s(
1597
- $,
1597
+ D,
1598
1598
  {
1599
1599
  blocks: u.detail,
1600
1600
  path: `items.${v}.detail`,
@@ -1608,7 +1608,7 @@ function en(e) {
1608
1608
  ) : null
1609
1609
  ] }, v)) });
1610
1610
  }
1611
- const tn = {
1611
+ const rn = {
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 tn = {
1644
1644
  shouldReceiveBuilderProps: {
1645
1645
  builderLinkComponent: !0
1646
1646
  }
1647
- }, nn = {
1647
+ }, ln = {
1648
1648
  // TODO: ways to statically preprocess JSON for references, functions, etc
1649
1649
  name: "Columns",
1650
1650
  isRSC: !0,
@@ -1851,13 +1851,13 @@ const tn = {
1851
1851
  builderComponents: !0,
1852
1852
  builderLinkComponent: !0
1853
1853
  }
1854
- }, an = {
1854
+ }, sn = {
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"], 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 = {
1860
+ }, he = ["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"], cn = ["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"], un = {
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",
@@ -1872,7 +1872,7 @@ const tn = {
1872
1872
  name: "image",
1873
1873
  type: "file",
1874
1874
  bubble: !0,
1875
- allowedFileTypes: de,
1875
+ allowedFileTypes: he,
1876
1876
  required: !0,
1877
1877
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1878
1878
  onChange: (e) => {
@@ -1965,7 +1965,7 @@ const tn = {
1965
1965
  shouldReceiveBuilderProps: {
1966
1966
  builderBlock: !0
1967
1967
  }
1968
- }, ln = {
1968
+ }, dn = {
1969
1969
  name: "PersonalizationContainer",
1970
1970
  shouldReceiveBuilderProps: {
1971
1971
  builderBlock: !0,
@@ -2001,7 +2001,7 @@ const tn = {
2001
2001
  }]
2002
2002
  }]
2003
2003
  };
2004
- function J(e) {
2004
+ function Q(e) {
2005
2005
  return /* @__PURE__ */ s(
2006
2006
  "script",
2007
2007
  {
@@ -2011,7 +2011,7 @@ function J(e) {
2011
2011
  }
2012
2012
  );
2013
2013
  }
2014
- function sn(e, t, n, i) {
2014
+ function mn(e, t, n, i) {
2015
2015
  function a(c) {
2016
2016
  return typeof c == "string";
2017
2017
  }
@@ -2068,7 +2068,7 @@ function sn(e, t, n, i) {
2068
2068
  }, d = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
2069
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 cn = `function getPersonalizedVariant(variants, blockId, locale) {
2071
+ const fn = `function getPersonalizedVariant(variants, blockId, locale) {
2072
2072
  if (!navigator.cookieEnabled) {
2073
2073
  return;
2074
2074
  }
@@ -2121,7 +2121,7 @@ const cn = `function getPersonalizedVariant(variants, blockId, locale) {
2121
2121
  } else if (variants && variants.length > 0) {
2122
2122
  removeVariants();
2123
2123
  }
2124
- }`, un = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
2124
+ }`, hn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
2125
2125
  function isString(val) {
2126
2126
  return typeof val === 'string';
2127
2127
  }
@@ -2200,10 +2200,10 @@ const cn = `function getPersonalizedVariant(variants, blockId, locale) {
2200
2200
  return objectMatchesQuery(userAttributes, filter);
2201
2201
  });
2202
2202
  }`;
2203
- function dn(e, t) {
2204
- return !(!(e && e.length > 0) || !t || L());
2203
+ function gn(e, t) {
2204
+ return !(!(e && e.length > 0) || !t || U());
2205
2205
  }
2206
- function mn({
2206
+ function bn({
2207
2207
  variants: e,
2208
2208
  previewingIndex: t,
2209
2209
  isHydrated: n,
@@ -2215,12 +2215,12 @@ function mn({
2215
2215
  blocks: a != null ? a : [],
2216
2216
  path: "this.children"
2217
2217
  };
2218
- if (n && W())
2218
+ if (n && $())
2219
2219
  return typeof t == "number" && t < ((o = e == null ? void 0 : e.length) != null ? o : 0) ? {
2220
2220
  blocks: e[t].blocks,
2221
2221
  path: `component.options.variants.${t}.blocks`
2222
2222
  } : r;
2223
- if (L()) {
2223
+ if (U()) {
2224
2224
  const l = i == null ? void 0 : i[0];
2225
2225
  if (l)
2226
2226
  return {
@@ -2230,42 +2230,42 @@ function mn({
2230
2230
  }
2231
2231
  return r;
2232
2232
  }
2233
- const fn = (e, t, n) => `
2233
+ const pn = (e, t, n) => `
2234
2234
  (function() {
2235
- ${un}
2236
- ${cn}
2235
+ ${hn}
2236
+ ${fn}
2237
2237
  getPersonalizedVariant(${JSON.stringify(e)}, "${t}"${n ? `, "${n}"` : ""})
2238
2238
  })();
2239
2239
  `;
2240
- function hn(e) {
2240
+ function yn(e) {
2241
2241
  var g, S, b, k, C, V, w;
2242
- const t = D(null), [n, i] = E(
2243
- () => fe.getUserAttributes()
2244
- ), [a, r] = E(
2242
+ const t = L(null), [n, i] = I(
2243
+ () => be.getUserAttributes()
2244
+ ), [a, r] = I(
2245
2245
  () => {
2246
2246
  var x, m, p;
2247
- return fn(
2247
+ return pn(
2248
2248
  e.variants,
2249
2249
  ((x = e.builderBlock) == null ? void 0 : x.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(() => []), [d, c] = E(
2253
+ ), [o, l] = I(() => []), [d, c] = I(
2254
2254
  () => {
2255
2255
  var x;
2256
- return dn(
2256
+ return gn(
2257
2257
  e.variants,
2258
- H((x = e.builderContext) == null ? void 0 : x.canTrack)
2258
+ M((x = e.builderContext) == null ? void 0 : x.canTrack)
2259
2259
  );
2260
2260
  }
2261
- ), [h, y] = E(() => !1);
2261
+ ), [h, y] = I(() => !1);
2262
2262
  function u() {
2263
2263
  return (e.variants || []).filter((x) => {
2264
- var m, p, I, T;
2265
- return sn(
2264
+ var m, p, T, E;
2265
+ return mn(
2266
2266
  {
2267
2267
  ...(p = (m = e.builderContext) == null ? void 0 : m.rootState) != null && p.locale ? {
2268
- locale: (T = (I = e.builderContext) == null ? void 0 : I.rootState) == null ? void 0 : T.locale
2268
+ locale: (E = (T = e.builderContext) == null ? void 0 : T.rootState) == null ? void 0 : E.locale
2269
2269
  } : {},
2270
2270
  ...n
2271
2271
  },
@@ -2277,7 +2277,7 @@ function hn(e) {
2277
2277
  }
2278
2278
  function v() {
2279
2279
  var x;
2280
- return mn({
2280
+ return bn({
2281
2281
  variants: e.variants,
2282
2282
  fallbackBlocks: (x = e.builderBlock) == null ? void 0 : x.children,
2283
2283
  isHydrated: h,
@@ -2293,15 +2293,15 @@ function hn(e) {
2293
2293
  }
2294
2294
  ).join("");
2295
2295
  }
2296
- return B(() => {
2296
+ return P(() => {
2297
2297
  var m;
2298
2298
  y(!0);
2299
- const x = fe.subscribeOnUserAttributesChange(
2299
+ const x = be.subscribeOnUserAttributesChange(
2300
2300
  (p) => {
2301
2301
  i(p);
2302
2302
  }
2303
2303
  );
2304
- if (!(W() || G())) {
2304
+ if (!($() || Y())) {
2305
2305
  const p = u()[0];
2306
2306
  t.current && (t.current.dispatchEvent(
2307
2307
  new CustomEvent("builder.variantLoaded", {
@@ -2311,14 +2311,14 @@ function hn(e) {
2311
2311
  },
2312
2312
  bubbles: !0
2313
2313
  })
2314
- ), new IntersectionObserver((T) => {
2315
- T.forEach((P) => {
2316
- var A;
2317
- P.isIntersecting && t.current && t.current.dispatchEvent(
2314
+ ), new IntersectionObserver((E) => {
2315
+ E.forEach((A) => {
2316
+ var N;
2317
+ A.isIntersecting && t.current && t.current.dispatchEvent(
2318
2318
  new CustomEvent("builder.variantDisplayed", {
2319
2319
  detail: {
2320
2320
  variant: p || "default",
2321
- content: (A = e.builderContext) == null ? void 0 : A.content
2321
+ content: (N = e.builderContext) == null ? void 0 : N.content
2322
2322
  },
2323
2323
  bubbles: !0
2324
2324
  })
@@ -2327,27 +2327,27 @@ function hn(e) {
2327
2327
  }).observe(t.current));
2328
2328
  }
2329
2329
  o.push(x);
2330
- }, []), B(() => () => {
2330
+ }, []), P(() => () => {
2331
2331
  o.forEach((x) => x());
2332
- }, []), /* @__PURE__ */ N(
2332
+ }, []), /* @__PURE__ */ B(
2333
2333
  "div",
2334
2334
  {
2335
2335
  ref: t,
2336
2336
  ...e.attributes,
2337
2337
  className: `builder-personalization-container ${((g = e.attributes) == null ? void 0 : g.className) || ""}`,
2338
2338
  children: [
2339
- d ? /* @__PURE__ */ N(R, { children: [
2339
+ d ? /* @__PURE__ */ B(R, { children: [
2340
2340
  (S = e.variants) == null ? void 0 : S.map((x, m) => {
2341
- var p, I;
2341
+ var p, T;
2342
2342
  return /* @__PURE__ */ s(
2343
2343
  "template",
2344
2344
  {
2345
2345
  "data-variant-id": `${(p = e.builderBlock) == null ? void 0 : p.id}-${m}`,
2346
2346
  children: /* @__PURE__ */ s(
2347
- $,
2347
+ D,
2348
2348
  {
2349
2349
  blocks: x.blocks,
2350
- parent: (I = e.builderBlock) == null ? void 0 : I.id,
2350
+ parent: (T = e.builderBlock) == null ? void 0 : T.id,
2351
2351
  path: `component.options.variants.${m}.blocks`
2352
2352
  }
2353
2353
  )
@@ -2356,7 +2356,7 @@ function hn(e) {
2356
2356
  );
2357
2357
  }),
2358
2358
  /* @__PURE__ */ s(
2359
- j,
2359
+ z,
2360
2360
  {
2361
2361
  nonce: ((b = e.builderContext) == null ? void 0 : b.nonce) || "",
2362
2362
  styles: f(),
@@ -2364,7 +2364,7 @@ function hn(e) {
2364
2364
  }
2365
2365
  ),
2366
2366
  /* @__PURE__ */ s(
2367
- J,
2367
+ Q,
2368
2368
  {
2369
2369
  nonce: ((C = e.builderContext) == null ? void 0 : C.nonce) || "",
2370
2370
  scriptStr: a,
@@ -2373,7 +2373,7 @@ function hn(e) {
2373
2373
  )
2374
2374
  ] }) : null,
2375
2375
  /* @__PURE__ */ s(
2376
- $,
2376
+ D,
2377
2377
  {
2378
2378
  blocks: v().blocks,
2379
2379
  parent: (w = e.builderBlock) == null ? void 0 : w.id,
@@ -2384,7 +2384,7 @@ function hn(e) {
2384
2384
  }
2385
2385
  );
2386
2386
  }
2387
- const gn = {
2387
+ const vn = {
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 gn = {
2423
2423
  }
2424
2424
  }
2425
2425
  }]
2426
- }, bn = {
2426
+ }, xn = {
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 gn = {
2441
2441
  builderComponents: !0
2442
2442
  }
2443
2443
  };
2444
- function pn(e) {
2444
+ function Sn(e) {
2445
2445
  var t, n, i;
2446
2446
  return /* @__PURE__ */ s(
2447
2447
  "div",
@@ -2453,7 +2453,7 @@ function pn(e) {
2453
2453
  "builder-slot": e.name
2454
2454
  },
2455
2455
  children: /* @__PURE__ */ s(
2456
- $,
2456
+ D,
2457
2457
  {
2458
2458
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
2459
2459
  path: `symbol.data.${e.name}`,
@@ -2465,7 +2465,7 @@ function pn(e) {
2465
2465
  }
2466
2466
  );
2467
2467
  }
2468
- const yn = {
2468
+ const kn = {
2469
2469
  name: "Symbol",
2470
2470
  noWrap: !0,
2471
2471
  static: !0,
@@ -2504,7 +2504,7 @@ const yn = {
2504
2504
  builderComponents: !0,
2505
2505
  builderLinkComponent: !0
2506
2506
  }
2507
- }, ne = {
2507
+ }, oe = {
2508
2508
  "@type": "@builder.io/sdk:Element",
2509
2509
  responsiveStyles: {
2510
2510
  large: {
@@ -2526,7 +2526,7 @@ const yn = {
2526
2526
  text: "New tab"
2527
2527
  }
2528
2528
  }
2529
- }, ie = {
2529
+ }, re = {
2530
2530
  "@type": "@builder.io/sdk:Element",
2531
2531
  responsiveStyles: {
2532
2532
  large: {
@@ -2542,7 +2542,7 @@ const yn = {
2542
2542
  text: "New tab content "
2543
2543
  }
2544
2544
  }
2545
- }, vn = {
2545
+ }, Cn = {
2546
2546
  name: "Builder: Tabs",
2547
2547
  inputs: [{
2548
2548
  name: "tabs",
@@ -2552,16 +2552,16 @@ const yn = {
2552
2552
  name: "label",
2553
2553
  type: "uiBlocks",
2554
2554
  hideFromUI: !0,
2555
- defaultValue: [ne]
2555
+ defaultValue: [oe]
2556
2556
  }, {
2557
2557
  name: "content",
2558
2558
  type: "uiBlocks",
2559
2559
  hideFromUI: !0,
2560
- defaultValue: [ie]
2560
+ defaultValue: [re]
2561
2561
  }],
2562
2562
  defaultValue: [{
2563
2563
  label: [{
2564
- ...ne,
2564
+ ...oe,
2565
2565
  component: {
2566
2566
  name: "Text",
2567
2567
  options: {
@@ -2570,7 +2570,7 @@ const yn = {
2570
2570
  }
2571
2571
  }],
2572
2572
  content: [{
2573
- ...ie,
2573
+ ...re,
2574
2574
  component: {
2575
2575
  name: "Text",
2576
2576
  options: {
@@ -2580,7 +2580,7 @@ const yn = {
2580
2580
  }]
2581
2581
  }, {
2582
2582
  label: [{
2583
- ...ne,
2583
+ ...oe,
2584
2584
  component: {
2585
2585
  name: "Text",
2586
2586
  options: {
@@ -2589,7 +2589,7 @@ const yn = {
2589
2589
  }
2590
2590
  }],
2591
2591
  content: [{
2592
- ...ie,
2592
+ ...re,
2593
2593
  component: {
2594
2594
  name: "Text",
2595
2595
  options: {
@@ -2646,9 +2646,9 @@ const yn = {
2646
2646
  builderLinkComponent: !0
2647
2647
  }
2648
2648
  };
2649
- function xn(e) {
2649
+ function Tn(e) {
2650
2650
  var r;
2651
- const [t, n] = E(
2651
+ const [t, n] = I(
2652
2652
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
2653
2653
  );
2654
2654
  function i(o) {
@@ -2657,7 +2657,7 @@ function xn(e) {
2657
2657
  function a(o) {
2658
2658
  o === t && e.collapsible ? n(-1) : n(o);
2659
2659
  }
2660
- return /* @__PURE__ */ N("div", { children: [
2660
+ return /* @__PURE__ */ B("div", { children: [
2661
2661
  /* @__PURE__ */ s(
2662
2662
  "div",
2663
2663
  {
@@ -2677,7 +2677,7 @@ function xn(e) {
2677
2677
  },
2678
2678
  onClick: (d) => a(l),
2679
2679
  children: /* @__PURE__ */ s(
2680
- $,
2680
+ D,
2681
2681
  {
2682
2682
  parent: e.builderBlock.id,
2683
2683
  path: `tabs.${l}.label`,
@@ -2693,7 +2693,7 @@ function xn(e) {
2693
2693
  }
2694
2694
  ),
2695
2695
  i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
2696
- $,
2696
+ D,
2697
2697
  {
2698
2698
  parent: e.builderBlock.id,
2699
2699
  path: `tabs.${t}.content`,
@@ -2705,7 +2705,7 @@ function xn(e) {
2705
2705
  ) }) : null
2706
2706
  ] });
2707
2707
  }
2708
- const Sn = {
2708
+ const wn = {
2709
2709
  shouldReceiveBuilderProps: {
2710
2710
  builderBlock: !1,
2711
2711
  builderContext: !0
@@ -2728,7 +2728,7 @@ const Sn = {
2728
2728
  textAlign: "center"
2729
2729
  }
2730
2730
  };
2731
- function kn(e) {
2731
+ function In(e) {
2732
2732
  var t;
2733
2733
  return /* @__PURE__ */ s(
2734
2734
  "div",
@@ -2741,7 +2741,7 @@ function kn(e) {
2741
2741
  }
2742
2742
  );
2743
2743
  }
2744
- const Cn = {
2744
+ const En = {
2745
2745
  name: "Custom Code",
2746
2746
  static: !0,
2747
2747
  requiredPermissions: ["editCode"],
@@ -2764,9 +2764,9 @@ const Cn = {
2764
2764
  advanced: !0
2765
2765
  }]
2766
2766
  };
2767
- function Tn(e) {
2768
- const t = D(null), [n, i] = E(() => []), [a, r] = E(() => []);
2769
- return B(() => {
2767
+ function Rn(e) {
2768
+ const t = L(null), [n, i] = I(() => []), [a, r] = I(() => []);
2769
+ return P(() => {
2770
2770
  var l;
2771
2771
  if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
2772
2772
  return;
@@ -2802,7 +2802,7 @@ function Tn(e) {
2802
2802
  }
2803
2803
  );
2804
2804
  }
2805
- const wn = {
2805
+ const Vn = {
2806
2806
  name: "Embed",
2807
2807
  static: !0,
2808
2808
  inputs: [{
@@ -2817,9 +2817,9 @@ const wn = {
2817
2817
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2818
2818
  hideFromUI: !0
2819
2819
  }]
2820
- }, In = ["text/javascript", "application/javascript", "application/ecmascript"], En = (e) => In.includes(e.type);
2821
- function Rn(e) {
2822
- const t = D(null), [n, i] = E(() => []), [a, r] = E(() => []), [o, l] = E(() => !1);
2820
+ }, Pn = ["text/javascript", "application/javascript", "application/ecmascript"], Bn = (e) => Pn.includes(e.type);
2821
+ function An(e) {
2822
+ const t = L(null), [n, i] = I(() => []), [a, r] = I(() => []), [o, l] = I(() => !1);
2823
2823
  function d() {
2824
2824
  if (!t.current || !t.current.getElementsByTagName)
2825
2825
  return;
@@ -2830,7 +2830,7 @@ function Rn(e) {
2830
2830
  n.push(y.src);
2831
2831
  const u = document.createElement("script");
2832
2832
  u.async = !0, u.src = y.src, document.head.appendChild(u);
2833
- } else if (En(y) && !a.includes(y.innerText))
2833
+ } else if (Bn(y) && !a.includes(y.innerText))
2834
2834
  try {
2835
2835
  a.push(y.innerText), new Function(y.innerText)();
2836
2836
  } catch (u) {
@@ -2838,7 +2838,7 @@ function Rn(e) {
2838
2838
  }
2839
2839
  }
2840
2840
  }
2841
- return B(() => {
2841
+ return P(() => {
2842
2842
  t.current && !o && (l(!0), d());
2843
2843
  }, [t.current, o]), /* @__PURE__ */ s(
2844
2844
  "div",
@@ -2849,7 +2849,7 @@ function Rn(e) {
2849
2849
  }
2850
2850
  );
2851
2851
  }
2852
- const Vn = {
2852
+ const Nn = {
2853
2853
  name: "Form:Form",
2854
2854
  // editableTags: ['builder-form-error']
2855
2855
  defaults: {
@@ -3086,12 +3086,12 @@ const Vn = {
3086
3086
  builderComponents: !0,
3087
3087
  builderLinkComponent: !0
3088
3088
  }
3089
- }, Pn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Bn = () => {
3089
+ }, Wn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], $n = () => {
3090
3090
  const e = process.env.NODE_ENV || "production";
3091
- return Pn.includes(e) ? e : "production";
3091
+ return Wn.includes(e) ? e : "production";
3092
3092
  };
3093
- function An(e) {
3094
- const t = D(null), [n, i] = E(() => "unsubmitted"), [a, r] = E(() => null), [o, l] = E(() => "");
3093
+ function Dn(e) {
3094
+ const t = L(null), [n, i] = I(() => "unsubmitted"), [a, r] = I(() => null), [o, l] = I(() => "");
3095
3095
  function d(y) {
3096
3096
  var v, f;
3097
3097
  const u = {
@@ -3101,7 +3101,7 @@ function An(e) {
3101
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
- return W() && e.previewState || n;
3104
+ return $() && e.previewState || n;
3105
3105
  }
3106
3106
  function h(y) {
3107
3107
  var v;
@@ -3118,25 +3118,25 @@ function An(e) {
3118
3118
  let S;
3119
3119
  const b = new FormData(f), k = Array.from(f.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
3120
3120
  let p;
3121
- const I = m.name;
3121
+ const T = 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: I,
3126
+ key: T,
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 T = m.valueAsNumber;
3133
- isNaN(T) || (p = T);
3132
+ const E = m.valueAsNumber;
3133
+ isNaN(E) || (p = E);
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: I,
3139
+ key: T,
3140
3140
  value: p
3141
3141
  };
3142
3142
  });
@@ -3147,8 +3147,8 @@ function An(e) {
3147
3147
  S = b;
3148
3148
  else {
3149
3149
  const m = {};
3150
- Array.from(k).forEach(({ value: p, key: I }) => {
3151
- Pe(m, I, p);
3150
+ Array.from(k).forEach(({ value: p, key: T }) => {
3151
+ Ne(m, T, p);
3152
3152
  }), S = JSON.stringify(m);
3153
3153
  }
3154
3154
  C && C !== "multipart/form-data" && (u && ((v = e.action) != null && v.includes("zapier.com")) || (g["content-type"] = C));
@@ -3156,32 +3156,32 @@ function An(e) {
3156
3156
  if (t.current && (t.current.dispatchEvent(V), V.defaultPrevented))
3157
3157
  return;
3158
3158
  i("sending");
3159
- const w = `${Bn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3159
+ const w = `${$n() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3160
3160
  e.sendSubmissionsToEmail || ""
3161
3161
  )}&name=${encodeURIComponent(e.name || "")}`, x = e.sendSubmissionsTo === "email" ? w : e.action;
3162
- Ie(x), fetch(x, { body: S, headers: g, method: e.method || "post" }).then(
3162
+ Ve(x), fetch(x, { body: S, headers: g, method: e.method || "post" }).then(
3163
3163
  async (m) => {
3164
3164
  let p;
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 }));
3165
+ const T = m.headers.get("content-type");
3166
+ if (T && T.indexOf("application/json") !== -1 ? p = await m.json() : p = await m.text(), !m.ok && e.errorMessagePath) {
3167
+ let E = $e(p, e.errorMessagePath);
3168
+ E && (typeof E != "string" && (E = JSON.stringify(E)), l(E), d({ formErrorMessage: E }));
3169
3169
  }
3170
3170
  if (r(p), i(m.ok ? "success" : "error"), m.ok) {
3171
- const T = new CustomEvent("submit:success", {
3171
+ const E = new CustomEvent("submit:success", {
3172
3172
  detail: { res: m, body: p }
3173
3173
  });
3174
3174
  if (t.current) {
3175
- if (t.current.dispatchEvent(T), T.defaultPrevented)
3175
+ if (t.current.dispatchEvent(E), E.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 P = new CustomEvent("route", {
3181
+ const A = new CustomEvent("route", {
3182
3182
  detail: { url: e.successUrl }
3183
3183
  });
3184
- t.current.dispatchEvent(P), P.defaultPrevented || (location.href = e.successUrl);
3184
+ t.current.dispatchEvent(A), A.defaultPrevented || (location.href = e.successUrl);
3185
3185
  } else
3186
3186
  location.href = e.successUrl;
3187
3187
  }
@@ -3195,9 +3195,9 @@ function An(e) {
3195
3195
  );
3196
3196
  }
3197
3197
  }
3198
- return /* @__PURE__ */ N(R, { children: [
3198
+ return /* @__PURE__ */ B(R, { children: [
3199
3199
  " ",
3200
- /* @__PURE__ */ N(
3200
+ /* @__PURE__ */ B(
3201
3201
  "form",
3202
3202
  {
3203
3203
  validate: e.validate,
@@ -3210,7 +3210,7 @@ function An(e) {
3210
3210
  children: [
3211
3211
  e.children,
3212
3212
  c() === "error" ? /* @__PURE__ */ s(
3213
- $,
3213
+ D,
3214
3214
  {
3215
3215
  path: "errorMessage",
3216
3216
  blocks: e.errorMessage,
@@ -3218,7 +3218,7 @@ function An(e) {
3218
3218
  }
3219
3219
  ) : null,
3220
3220
  c() === "sending" ? /* @__PURE__ */ s(
3221
- $,
3221
+ D,
3222
3222
  {
3223
3223
  path: "sendingMessage",
3224
3224
  blocks: e.sendingMessage,
@@ -3227,7 +3227,7 @@ function An(e) {
3227
3227
  ) : null,
3228
3228
  c() === "error" && a ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7acc3b46", children: JSON.stringify(a, null, 2) }) : null,
3229
3229
  c() === "success" ? /* @__PURE__ */ s(
3230
- $,
3230
+ D,
3231
3231
  {
3232
3232
  path: "successMessage",
3233
3233
  blocks: e.successMessage,
@@ -3242,7 +3242,7 @@ function An(e) {
3242
3242
  " "
3243
3243
  ] });
3244
3244
  }
3245
- const Nn = {
3245
+ const Fn = {
3246
3246
  name: "Form:Input",
3247
3247
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
3248
3248
  inputs: [
@@ -3294,12 +3294,12 @@ const Nn = {
3294
3294
  borderColor: "#ccc"
3295
3295
  }
3296
3296
  };
3297
- function Wn(e) {
3298
- return /* @__PURE__ */ Ve(
3297
+ function Ln(e) {
3298
+ return /* @__PURE__ */ Ae(
3299
3299
  "input",
3300
3300
  {
3301
3301
  ...e.attributes,
3302
- key: W() && e.defaultValue ? e.defaultValue : "default-key",
3302
+ key: $() && e.defaultValue ? e.defaultValue : "default-key",
3303
3303
  placeholder: e.placeholder,
3304
3304
  type: e.type,
3305
3305
  name: e.name,
@@ -3309,7 +3309,7 @@ function Wn(e) {
3309
3309
  }
3310
3310
  );
3311
3311
  }
3312
- const $n = {
3312
+ const On = {
3313
3313
  name: "Form:Select",
3314
3314
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
3315
3315
  defaultStyles: {
@@ -3352,14 +3352,14 @@ const $n = {
3352
3352
  static: !0,
3353
3353
  noWrap: !0
3354
3354
  };
3355
- function Dn(e) {
3355
+ function Un(e) {
3356
3356
  var t;
3357
- return /* @__PURE__ */ Ve(
3357
+ return /* @__PURE__ */ Ae(
3358
3358
  "select",
3359
3359
  {
3360
3360
  ...e.attributes,
3361
3361
  value: e.value,
3362
- key: W() && e.defaultValue ? e.defaultValue : "default-key",
3362
+ key: $() && e.defaultValue ? e.defaultValue : "default-key",
3363
3363
  defaultValue: e.defaultValue,
3364
3364
  name: e.name,
3365
3365
  required: e.required
@@ -3367,7 +3367,7 @@ function Dn(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 Fn = {
3370
+ const _n = {
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 Fn = {
3393
3393
  // TODO: defaultChildren
3394
3394
  // canHaveChildren: true,
3395
3395
  };
3396
- function Ln(e) {
3396
+ function qn(e) {
3397
3397
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
3398
3398
  }
3399
- const On = {
3399
+ const Hn = {
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 On = {
3433
3433
  static: !0,
3434
3434
  noWrap: !0
3435
3435
  };
3436
- function Un(e) {
3436
+ function Mn(e) {
3437
3437
  return /* @__PURE__ */ s(
3438
3438
  "textarea",
3439
3439
  {
@@ -3446,7 +3446,7 @@ function Un(e) {
3446
3446
  }
3447
3447
  );
3448
3448
  }
3449
- const _n = {
3449
+ const jn = {
3450
3450
  // friendlyName?
3451
3451
  name: "Raw:Img",
3452
3452
  hideFromInsertMenu: !0,
@@ -3455,13 +3455,13 @@ const _n = {
3455
3455
  name: "image",
3456
3456
  bubble: !0,
3457
3457
  type: "file",
3458
- allowedFileTypes: de,
3458
+ allowedFileTypes: he,
3459
3459
  required: !0
3460
3460
  }],
3461
3461
  noWrap: !0,
3462
3462
  static: !0
3463
3463
  };
3464
- function qn(e) {
3464
+ function zn(e) {
3465
3465
  return /* @__PURE__ */ s(
3466
3466
  "img",
3467
3467
  {
@@ -3473,10 +3473,10 @@ function qn(e) {
3473
3473
  src: e.imgSrc || e.image,
3474
3474
  ...e.attributes
3475
3475
  },
3476
- W() && e.imgSrc || "default-key"
3476
+ $() && e.imgSrc || "default-key"
3477
3477
  );
3478
3478
  }
3479
- const Hn = {
3479
+ const Kn = {
3480
3480
  name: "Video",
3481
3481
  canHaveChildren: !0,
3482
3482
  defaultStyles: {
@@ -3487,14 +3487,14 @@ const Hn = {
3487
3487
  inputs: [{
3488
3488
  name: "video",
3489
3489
  type: "file",
3490
- allowedFileTypes: on,
3490
+ allowedFileTypes: cn,
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
3494
3494
  }, {
3495
3495
  name: "posterImage",
3496
3496
  type: "file",
3497
- allowedFileTypes: de,
3497
+ allowedFileTypes: he,
3498
3498
  helperText: "Image to show before the video plays"
3499
3499
  }, {
3500
3500
  name: "autoPlay",
@@ -3561,9 +3561,9 @@ const Hn = {
3561
3561
  builderBlock: !0
3562
3562
  }
3563
3563
  };
3564
- function Mn(e) {
3564
+ function Jn(e) {
3565
3565
  var o, l, d, c, h, y, u;
3566
- const t = D(null);
3566
+ const t = L(null);
3567
3567
  function n() {
3568
3568
  return {
3569
3569
  ...e.autoPlay === !0 ? {
@@ -3588,9 +3588,9 @@ function Mn(e) {
3588
3588
  ...n()
3589
3589
  };
3590
3590
  }
3591
- const [a, r] = E(() => {
3591
+ const [a, r] = I(() => {
3592
3592
  });
3593
- return B(() => {
3593
+ return P(() => {
3594
3594
  if (e.lazyLoad) {
3595
3595
  const v = new IntersectionObserver(function(f) {
3596
3596
  f.forEach(function(g) {
@@ -3611,9 +3611,9 @@ function Mn(e) {
3611
3611
  });
3612
3612
  t.current && v.observe(t.current), r(v);
3613
3613
  }
3614
- }, []), B(() => () => {
3614
+ }, []), P(() => () => {
3615
3615
  a && a.disconnect();
3616
- }, []), /* @__PURE__ */ N(
3616
+ }, []), /* @__PURE__ */ B(
3617
3617
  "div",
3618
3618
  {
3619
3619
  style: {
@@ -3697,67 +3697,67 @@ function Mn(e) {
3697
3697
  }
3698
3698
  );
3699
3699
  }
3700
- const jn = () => [{
3701
- component: Tn,
3702
- ...Cn
3703
- }, {
3700
+ const Gn = () => [{
3704
3701
  component: Rn,
3705
- ...wn
3702
+ ...En
3706
3703
  }, {
3707
3704
  component: An,
3708
3705
  ...Vn
3709
3706
  }, {
3710
- component: Wn,
3707
+ component: Dn,
3711
3708
  ...Nn
3712
3709
  }, {
3713
3710
  component: Ln,
3714
3711
  ...Fn
3715
3712
  }, {
3716
- component: Dn,
3717
- ...$n
3713
+ component: qn,
3714
+ ..._n
3718
3715
  }, {
3719
3716
  component: Un,
3720
3717
  ...On
3721
- }, {
3722
- component: qn,
3723
- ..._n
3724
3718
  }, {
3725
3719
  component: Mn,
3726
3720
  ...Hn
3727
- }], Se = () => [{
3728
- component: rt,
3729
- ...tn
3730
3721
  }, {
3731
- component: Kt,
3732
- ...nn
3722
+ component: zn,
3723
+ ...jn
3733
3724
  }, {
3734
- component: Jt,
3735
- ...an
3725
+ component: Jn,
3726
+ ...Kn
3727
+ }], Te = () => [{
3728
+ component: ut,
3729
+ ...rn
3736
3730
  }, {
3737
3731
  component: Yt,
3738
- ...rn
3732
+ ...ln
3739
3733
  }, {
3740
3734
  component: Xt,
3741
- ...gn
3735
+ ...sn
3742
3736
  }, {
3743
- component: pn,
3744
- ...bn
3737
+ component: tn,
3738
+ ...un
3745
3739
  }, {
3746
- component: gi,
3747
- ...yn
3740
+ component: nn,
3741
+ ...vn
3748
3742
  }, {
3749
- component: kn,
3750
- ...Sn
3743
+ component: Sn,
3744
+ ...xn
3751
3745
  }, {
3752
- component: hn,
3753
- ...ln
3746
+ component: vi,
3747
+ ...kn
3754
3748
  }, {
3755
- component: xn,
3756
- ...vn
3749
+ component: In,
3750
+ ...wn
3757
3751
  }, {
3758
- component: en,
3759
- ...Zt
3760
- }, ...jn()], zn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3752
+ component: yn,
3753
+ ...dn
3754
+ }, {
3755
+ component: Tn,
3756
+ ...Cn
3757
+ }, {
3758
+ component: on,
3759
+ ...an
3760
+ }, ...Gn()], Qn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3761
3761
  function getAndSetVariantId() {
3762
3762
  function setCookie(name, value, days) {
3763
3763
  let expires = '';
@@ -3813,7 +3813,7 @@ const jn = () => [{
3813
3813
  }).join('');
3814
3814
  styleEl.innerHTML = newStyleStr;
3815
3815
  }
3816
- }`, Kn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3816
+ }`, Yn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3817
3817
  if (!navigator.cookieEnabled) {
3818
3818
  return;
3819
3819
  }
@@ -3847,29 +3847,29 @@ const jn = () => [{
3847
3847
  thisScriptEl?.remove();
3848
3848
  }
3849
3849
  return;
3850
- }`, He = "builderIoAbTest", Me = "builderIoRenderContent", z = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3850
+ }`, ze = "builderIoAbTest", Ke = "builderIoRenderContent", J = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3851
3851
  ...t,
3852
3852
  testVariationId: t.id,
3853
3853
  id: e == null ? void 0 : e.id
3854
- })), Jn = ({
3854
+ })), Xn = ({
3855
3855
  canTrack: e,
3856
3856
  content: t
3857
- }) => !(!(z(t).length > 0) || !e || L()), Gn = (e) => e === "react" || e === "reactNative", je = Gn(F), Qn = () => `
3858
- window.${He} = ${zn}
3859
- window.${Me} = ${Kn}
3860
- `, Yn = (e, t) => `
3861
- window.${He}(
3862
- "${t}",${JSON.stringify(e)}, ${je}
3863
- )`, Xn = ({
3857
+ }) => !(!(J(t).length > 0) || !e || U()), Zn = (e) => e === "react" || e === "reactNative", Je = Zn(O), ei = () => `
3858
+ window.${ze} = ${Qn}
3859
+ window.${Ke} = ${Yn}
3860
+ `, ti = (e, t) => `
3861
+ window.${ze}(
3862
+ "${t}",${JSON.stringify(e)}, ${Je}
3863
+ )`, ni = ({
3864
3864
  contentId: e,
3865
3865
  variationId: t
3866
- }) => `window.${Me}(
3867
- "${t}", "${e}", ${je}
3866
+ }) => `window.${Ke}(
3867
+ "${t}", "${e}", ${Je}
3868
3868
  )`;
3869
- function ke(e) {
3869
+ function we(e) {
3870
3870
  return Math.round(e * 1e3) / 1e3;
3871
3871
  }
3872
- const Zn = (e, t, n = !0) => {
3872
+ const ii = (e, t, n = !0) => {
3873
3873
  if (!(e instanceof HTMLElement))
3874
3874
  return null;
3875
3875
  let i = n ? e : e.parentElement;
@@ -3880,35 +3880,35 @@ const Zn = (e, t, n = !0) => {
3880
3880
  return i;
3881
3881
  } while (i = i.parentElement);
3882
3882
  return null;
3883
- }, ei = (e) => Zn(e, (t) => {
3883
+ }, ai = (e) => ii(e, (t) => {
3884
3884
  const n = t.getAttribute("builder-id") || t.id;
3885
3885
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3886
- }), Ce = ({
3886
+ }), Ie = ({
3887
3887
  event: e,
3888
3888
  target: t
3889
3889
  }) => {
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);
3890
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, r = we(i / n.width), o = we(a / n.height);
3891
3891
  return {
3892
3892
  x: r,
3893
3893
  y: o
3894
3894
  };
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);
3895
+ }, oi = (e) => {
3896
+ const t = e.target, n = t && ai(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3897
3897
  return {
3898
3898
  targetBuilderElement: i || void 0,
3899
3899
  metadata: {
3900
- targetOffset: t ? Ce({
3900
+ targetOffset: t ? Ie({
3901
3901
  event: e,
3902
3902
  target: t
3903
3903
  }) : void 0,
3904
- builderTargetOffset: n ? Ce({
3904
+ builderTargetOffset: n ? Ie({
3905
3905
  event: e,
3906
3906
  target: n
3907
3907
  }) : void 0,
3908
3908
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3909
3909
  }
3910
3910
  };
3911
- }, ni = ["svelte", "qwik", "vue"], Te = () => ni.includes(F) && (W() || G()), ii = (e) => {
3911
+ }, ri = ["svelte", "qwik", "vue"], Ee = () => ri.includes(O) && ($() || Y()), li = (e) => {
3912
3912
  var r, o;
3913
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;
3914
3914
  let a = "";
@@ -3934,15 +3934,15 @@ font-weight: ${l};
3934
3934
  `.trim());
3935
3935
  }
3936
3936
  return a;
3937
- }, ai = ({
3937
+ }, si = ({
3938
3938
  customFonts: e
3939
3939
  }) => {
3940
3940
  var t;
3941
- return ((t = e == null ? void 0 : e.map((n) => ii(n))) == null ? void 0 : t.join(" ")) || "";
3942
- }, oi = ({
3941
+ return ((t = e == null ? void 0 : e.map((n) => li(n))) == null ? void 0 : t.join(" ")) || "";
3942
+ }, ci = ({
3943
3943
  cssCode: e,
3944
3944
  contentId: t
3945
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", ri = `
3945
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", ui = `
3946
3946
  .builder-button {
3947
3947
  all: unset;
3948
3948
  }
@@ -3959,23 +3959,24 @@ font-weight: ${l};
3959
3959
  text-align: inherit;
3960
3960
  font-family: inherit;
3961
3961
  }
3962
- `, li = (e) => e ? "" : ri, si = (e) => `variant-${e}`;
3963
- function ci(e) {
3962
+ `, di = (e) => e ? "" : ui, mi = (e) => `variant-${e}`;
3963
+ function fi(e) {
3964
3964
  var k, C, V;
3965
- const t = D(null);
3965
+ const t = L(null);
3966
+ I(() => !1);
3966
3967
  function n(w) {
3967
3968
  var m, p;
3968
3969
  const x = {
3969
3970
  ...e.builderContextSignal.rootState,
3970
3971
  ...w
3971
3972
  };
3972
- e.builderContextSignal.rootSetState ? (p = (m = e.builderContextSignal).rootSetState) == null || p.call(m, x) : e.setBuilderContextSignal((I) => ({
3973
- ...I,
3973
+ e.builderContextSignal.rootSetState ? (p = (m = e.builderContextSignal).rootSetState) == null || p.call(m, x) : e.setBuilderContextSignal((T) => ({
3974
+ ...T,
3974
3975
  rootState: x
3975
3976
  }));
3976
3977
  }
3977
3978
  function i(w) {
3978
- var m, p, I, T, P;
3979
+ var m, p, T, E, A;
3979
3980
  const x = {
3980
3981
  ...e.builderContextSignal.content,
3981
3982
  ...w,
@@ -3986,11 +3987,11 @@ function ci(e) {
3986
3987
  meta: {
3987
3988
  ...(p = e.builderContextSignal.content) == null ? void 0 : p.meta,
3988
3989
  ...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)
3990
+ breakpoints: ((T = w == null ? void 0 : w.meta) == null ? void 0 : T.breakpoints) || ((A = (E = e.builderContextSignal.content) == null ? void 0 : E.meta) == null ? void 0 : A.breakpoints)
3990
3991
  }
3991
3992
  };
3992
- e.setBuilderContextSignal((A) => ({
3993
- ...A,
3993
+ e.setBuilderContextSignal((N) => ({
3994
+ ...N,
3994
3995
  content: x
3995
3996
  }));
3996
3997
  }
@@ -4000,25 +4001,25 @@ function ci(e) {
4000
4001
  "aria-hidden": !0
4001
4002
  };
4002
4003
  }
4003
- const [r, o] = E(
4004
+ const [r, o] = I(
4004
4005
  () => e.contentWrapper || "div"
4005
4006
  );
4006
4007
  function l(w) {
4007
- return Ge({
4008
+ return Ze({
4008
4009
  model: e.model,
4009
4010
  trustedHosts: e.trustedHosts,
4010
4011
  callbacks: {
4011
4012
  configureSdk: (x) => {
4012
- var I;
4013
+ var T;
4013
4014
  const { breakpoints: m, contentId: p } = x;
4014
- !p || p !== ((I = e.builderContextSignal.content) == null ? void 0 : I.id) || m && i({
4015
+ !p || p !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || m && i({
4015
4016
  meta: {
4016
4017
  breakpoints: m
4017
4018
  }
4018
4019
  });
4019
4020
  },
4020
4021
  animation: (x) => {
4021
- De(x);
4022
+ Oe(x);
4022
4023
  },
4023
4024
  contentUpdate: (x) => {
4024
4025
  i(x);
@@ -4029,19 +4030,19 @@ function ci(e) {
4029
4030
  }
4030
4031
  })(w);
4031
4032
  }
4032
- const [d, c] = E(() => ({})), [h, y] = E(() => ({})), [u, v] = E(() => !1);
4033
+ const [d, c] = I(() => ({})), [h, y] = I(() => ({})), [u, v] = I(() => !1);
4033
4034
  function f(w) {
4034
4035
  var x, m;
4035
4036
  if (e.builderContextSignal.content) {
4036
- const p = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, I = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
4037
- he({
4037
+ const p = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, T = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
4038
+ pe({
4038
4039
  apiHost: e.apiHost,
4039
4040
  type: "click",
4040
- canTrack: H(e.canTrack),
4041
- contentId: I,
4041
+ canTrack: M(e.canTrack),
4042
+ contentId: T,
4042
4043
  apiKey: e.apiKey,
4043
- variationId: p !== I ? p : void 0,
4044
- ...ti(w),
4044
+ variationId: p !== T ? p : void 0,
4045
+ ...oi(w),
4045
4046
  unique: !u
4046
4047
  });
4047
4048
  }
@@ -4050,15 +4051,15 @@ function ci(e) {
4050
4051
  function g() {
4051
4052
  var x, m, p;
4052
4053
  const w = (p = (m = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : m.httpRequests) != null ? p : {};
4053
- Object.entries(w).forEach(([I, T]) => {
4054
- if (!T || h[I] || d[I] && !W())
4054
+ Object.entries(w).forEach(([T, E]) => {
4055
+ if (!E || h[T] || d[T] && !$())
4055
4056
  return;
4056
- h[I] = !0;
4057
- const P = T.replace(
4057
+ h[T] = !0;
4058
+ const A = E.replace(
4058
4059
  /{{([^}]+)}}/g,
4059
- (A, U) => String(
4060
- O({
4061
- code: U,
4060
+ (N, W) => String(
4061
+ _({
4062
+ code: W,
4062
4063
  context: e.context || {},
4063
4064
  localState: void 0,
4064
4065
  rootState: e.builderContextSignal.rootState,
@@ -4066,24 +4067,24 @@ function ci(e) {
4066
4067
  })
4067
4068
  )
4068
4069
  );
4069
- Ie(P), fetch(P).then((A) => A.json()).then((A) => {
4070
+ Ve(A), fetch(A).then((N) => N.json()).then((N) => {
4070
4071
  n({
4071
- [I]: A
4072
- }), d[I] = !0;
4073
- }).catch((A) => {
4074
- console.error("error fetching dynamic data", T, A);
4072
+ [T]: N
4073
+ }), d[T] = !0;
4074
+ }).catch((N) => {
4075
+ console.error("error fetching dynamic data", E, N);
4075
4076
  }).finally(() => {
4076
- h[I] = !1;
4077
+ h[T] = !1;
4077
4078
  });
4078
4079
  });
4079
4080
  }
4080
4081
  function S() {
4081
- W() && window.dispatchEvent(
4082
+ $() && window.dispatchEvent(
4082
4083
  new CustomEvent(
4083
4084
  "builder:component:stateChange",
4084
4085
  {
4085
4086
  detail: {
4086
- state: le(e.builderContextSignal.rootState),
4087
+ state: ue(e.builderContextSignal.rootState),
4087
4088
  ref: {
4088
4089
  name: e.model
4089
4090
  }
@@ -4092,11 +4093,11 @@ function ci(e) {
4092
4093
  )
4093
4094
  );
4094
4095
  }
4095
- const b = D(!1);
4096
- return b.current || (g(), S(), b.current = !0), B(() => {
4097
- var w, x, m, p;
4098
- if (L()) {
4099
- if (W() && !e.isNestedRender && (window.addEventListener("message", l), ze(), Ke({
4096
+ const b = L(!1);
4097
+ return b.current || (g(), S(), b.current = !0), P(() => {
4098
+ var w, x, m, p, T;
4099
+ if (U()) {
4100
+ $() && !e.isNestedRender && (window.addEventListener("message", l), Ge(), Qe({
4100
4101
  ...e.locale ? {
4101
4102
  locale: e.locale
4102
4103
  } : {},
@@ -4110,71 +4111,76 @@ function ci(e) {
4110
4111
  apiKey: e.apiKey
4111
4112
  }), Object.values(
4112
4113
  e.builderContextSignal.componentInfos
4113
- ).forEach((T) => {
4114
- var P, A;
4115
- if (!((P = T.models) != null && P.length) || T.models.includes(e.model)) {
4116
- const U = Je(T);
4117
- (A = window.parent) == null || A.postMessage(U, "*");
4114
+ ).forEach((W) => {
4115
+ var F, K;
4116
+ if (!((F = W.models) != null && F.length) || W.models.includes(e.model)) {
4117
+ const ee = Ye(W);
4118
+ (K = window.parent) == null || K.postMessage(ee, "*");
4118
4119
  }
4119
4120
  }), window.addEventListener(
4120
4121
  "builder:component:stateChangeListenerActivated",
4121
4122
  S
4122
- )), e.builderContextSignal.content && H(e.canTrack)) {
4123
- const T = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, P = (m = e.builderContextSignal.content) == null ? void 0 : m.id, A = e.apiKey;
4124
- he({
4123
+ ));
4124
+ const E = e.builderContextSignal.content && M(e.canTrack), A = Xe({
4125
+ name: `builder.tests.${(x = e.builderContextSignal.content) == null ? void 0 : x.id}`,
4126
+ canTrack: !0
4127
+ }), N = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId;
4128
+ if (E && N === A) {
4129
+ const W = (p = e.builderContextSignal.content) == null ? void 0 : p.id, F = e.apiKey;
4130
+ pe({
4125
4131
  apiHost: e.apiHost,
4126
4132
  type: "impression",
4127
4133
  canTrack: !0,
4128
- contentId: P,
4129
- apiKey: A,
4130
- variationId: T !== P ? T : void 0
4134
+ contentId: W,
4135
+ apiKey: F,
4136
+ variationId: A !== W ? A : void 0
4131
4137
  });
4132
4138
  }
4133
- if (G() && !W()) {
4134
- const T = new URL(location.href).searchParams, P = T.get("builder.preview"), A = T.get(
4135
- `builder.overrides.${P}`
4136
- ), U = T.get("apiKey") || T.get("builder.space");
4137
- (P === "BUILDER_STUDIO" || P === e.model && U === e.apiKey && (!e.content || A === e.content.id)) && Ee({
4139
+ if (Y() && !$()) {
4140
+ const W = new URL(location.href).searchParams, F = W.get("builder.preview"), K = W.get(
4141
+ `builder.overrides.${F}`
4142
+ ), ee = W.get("apiKey") || W.get("builder.space");
4143
+ (F === "BUILDER_STUDIO" || F === e.model && ee === e.apiKey && (!e.content || K === e.content.id)) && Pe({
4138
4144
  model: e.model,
4139
4145
  apiKey: e.apiKey,
4140
4146
  apiVersion: e.builderContextSignal.apiVersion,
4141
- ...P === "BUILDER_STUDIO" && ((p = e.context) != null && p.symbolId) ? {
4147
+ ...F === "BUILDER_STUDIO" && ((T = e.context) != null && T.symbolId) ? {
4142
4148
  query: {
4143
4149
  id: e.context.symbolId
4144
4150
  }
4145
4151
  } : {}
4146
- }).then((me) => {
4147
- me && i(me);
4152
+ }).then((ge) => {
4153
+ ge && i(ge);
4148
4154
  });
4149
4155
  }
4150
4156
  }
4151
- }, []), B(() => {
4157
+ }, []), P(() => {
4152
4158
  e.content && i(e.content);
4153
- }, [e.content]), B(() => {
4159
+ }, [e.content]), P(() => {
4154
4160
  S();
4155
- }, [e.builderContextSignal.rootState]), B(() => {
4161
+ }, [e.builderContextSignal.rootState]), P(() => {
4156
4162
  e.data && n(e.data);
4157
- }, [e.data]), B(() => {
4163
+ }, [e.data]), P(() => {
4158
4164
  e.locale && n({
4159
4165
  locale: e.locale
4160
4166
  });
4161
- }, [e.locale]), B(() => () => {
4162
- L() && (window.removeEventListener("message", l), window.removeEventListener(
4167
+ }, [e.locale]), P(() => () => {
4168
+ U() && (window.removeEventListener("message", l), window.removeEventListener(
4163
4169
  "builder:component:stateChangeListenerActivated",
4164
4170
  S
4165
4171
  ));
4166
- }, []), /* @__PURE__ */ s(ce.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Te() ? /* @__PURE__ */ s(
4172
+ }, []), /* @__PURE__ */ s(me.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Ee() ? /* @__PURE__ */ s(
4167
4173
  r,
4168
4174
  {
4169
4175
  ref: t,
4170
4176
  onClick: (w) => f(w),
4171
4177
  "builder-content-id": (k = e.builderContextSignal.content) == null ? void 0 : k.id,
4172
4178
  "builder-model": e.model,
4173
- className: si(
4179
+ className: mi(
4174
4180
  ((C = e.content) == null ? void 0 : C.testVariationId) || ((V = e.content) == null ? void 0 : V.id)
4175
4181
  ),
4176
4182
  style: {
4177
- display: !e.builderContextSignal.content && Te() ? "none" : void 0
4183
+ display: !e.builderContextSignal.content && Ee() ? "none" : void 0
4178
4184
  },
4179
4185
  ...a(),
4180
4186
  ...e.contentWrapperProps,
@@ -4182,21 +4188,21 @@ function ci(e) {
4182
4188
  }
4183
4189
  ) : null });
4184
4190
  }
4185
- function ui(e) {
4186
- const [t, n] = E(
4191
+ function hi(e) {
4192
+ const [t, n] = I(
4187
4193
  () => `
4188
- ${oi({
4194
+ ${ci({
4189
4195
  cssCode: e.cssCode,
4190
4196
  contentId: e.contentId
4191
4197
  })}
4192
- ${ai({
4198
+ ${si({
4193
4199
  customFonts: e.customFonts
4194
4200
  })}
4195
- ${li(e.isNestedRender)}
4201
+ ${di(e.isNestedRender)}
4196
4202
  `.trim()
4197
4203
  );
4198
4204
  return /* @__PURE__ */ s(
4199
- j,
4205
+ z,
4200
4206
  {
4201
4207
  id: "builderio-content",
4202
4208
  styles: t,
@@ -4204,7 +4210,7 @@ ${li(e.isNestedRender)}
4204
4210
  }
4205
4211
  );
4206
4212
  }
4207
- const di = ({
4213
+ const gi = ({
4208
4214
  content: e,
4209
4215
  data: t,
4210
4216
  locale: n
@@ -4221,7 +4227,7 @@ const di = ({
4221
4227
  locale: n
4222
4228
  } : {}
4223
4229
  };
4224
- }, mi = ({
4230
+ }, bi = ({
4225
4231
  content: e,
4226
4232
  data: t
4227
4233
  }) => e ? {
@@ -4232,12 +4238,12 @@ const di = ({
4232
4238
  },
4233
4239
  meta: e == null ? void 0 : e.meta
4234
4240
  } : void 0;
4235
- function we(e) {
4241
+ function Re(e) {
4236
4242
  var c, h, y, u, v, f, g, S, b;
4237
- const [t, n] = E(
4243
+ const [t, n] = I(
4238
4244
  () => {
4239
4245
  var k, C;
4240
- return Xn({
4246
+ return ni({
4241
4247
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4242
4248
  variationId: (k = e.content) == null ? void 0 : k.testVariationId,
4243
4249
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -4251,27 +4257,27 @@ function we(e) {
4251
4257
  rootState: k
4252
4258
  }));
4253
4259
  }
4254
- const [a, r] = E(
4260
+ const [a, r] = I(
4255
4261
  () => [
4256
- ...Se(),
4262
+ ...Te(),
4257
4263
  ...e.customComponents || []
4258
4264
  ].reduce(
4259
4265
  (k, { component: C, ...V }) => ({
4260
4266
  ...k,
4261
4267
  [V.name]: {
4262
4268
  component: C,
4263
- ...ge(V)
4269
+ ...ye(V)
4264
4270
  }
4265
4271
  }),
4266
4272
  {}
4267
4273
  )
4268
- ), [o, l] = E(() => ({
4269
- content: mi({
4274
+ ), [o, l] = I(() => ({
4275
+ content: bi({
4270
4276
  content: e.content,
4271
4277
  data: e.data
4272
4278
  }),
4273
4279
  localState: void 0,
4274
- rootState: di({
4280
+ rootState: gi({
4275
4281
  content: e.content,
4276
4282
  data: e.data,
4277
4283
  locale: e.locale
@@ -4282,12 +4288,12 @@ function we(e) {
4282
4288
  apiKey: e.apiKey,
4283
4289
  apiVersion: e.apiVersion,
4284
4290
  componentInfos: [
4285
- ...Se(),
4291
+ ...Te(),
4286
4292
  ...e.customComponents || []
4287
4293
  ].reduce(
4288
4294
  (k, { component: C, ...V }) => ({
4289
4295
  ...k,
4290
- [V.name]: ge(V)
4296
+ [V.name]: ye(V)
4291
4297
  }),
4292
4298
  {}
4293
4299
  ),
@@ -4296,13 +4302,13 @@ function we(e) {
4296
4302
  BlocksWrapperProps: e.blocksWrapperProps || {},
4297
4303
  nonce: e.nonce || "",
4298
4304
  model: e.model
4299
- })), d = D(!1);
4305
+ })), d = L(!1);
4300
4306
  if (!d.current) {
4301
- e.apiKey || re.error(
4307
+ e.apiKey || ce.error(
4302
4308
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4303
4309
  );
4304
4310
  const k = (h = (c = o.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
4305
- k && O({
4311
+ k && _({
4306
4312
  code: k,
4307
4313
  context: e.context || {},
4308
4314
  localState: void 0,
@@ -4314,13 +4320,13 @@ function we(e) {
4314
4320
  }), d.current = !0;
4315
4321
  }
4316
4322
  return /* @__PURE__ */ s(
4317
- Be.Provider,
4323
+ We.Provider,
4318
4324
  {
4319
4325
  value: {
4320
4326
  registeredComponents: a
4321
4327
  },
4322
- children: /* @__PURE__ */ N(
4323
- ci,
4328
+ children: /* @__PURE__ */ B(
4329
+ fi,
4324
4330
  {
4325
4331
  apiHost: e.apiHost,
4326
4332
  nonce: e.nonce,
@@ -4341,7 +4347,7 @@ function we(e) {
4341
4347
  setBuilderContextSignal: l,
4342
4348
  children: [
4343
4349
  e.isSsrAbTest ? /* @__PURE__ */ s(
4344
- J,
4350
+ Q,
4345
4351
  {
4346
4352
  id: "builderio-variant-visibility",
4347
4353
  scriptStr: t,
@@ -4349,7 +4355,7 @@ function we(e) {
4349
4355
  }
4350
4356
  ) : null,
4351
4357
  /* @__PURE__ */ s(
4352
- ui,
4358
+ hi,
4353
4359
  {
4354
4360
  nonce: e.nonce || "",
4355
4361
  isNestedRender: e.isNestedRender,
@@ -4359,7 +4365,7 @@ function we(e) {
4359
4365
  }
4360
4366
  ),
4361
4367
  /* @__PURE__ */ s(
4362
- $,
4368
+ D,
4363
4369
  {
4364
4370
  blocks: (b = (S = o.content) == null ? void 0 : S.data) == null ? void 0 : b.blocks,
4365
4371
  context: o,
@@ -4373,18 +4379,18 @@ function we(e) {
4373
4379
  }
4374
4380
  );
4375
4381
  }
4376
- function fi(e) {
4382
+ function pi(e) {
4377
4383
  var o;
4378
- const [t, n] = E(
4379
- () => Jn({
4380
- canTrack: H(e.canTrack),
4384
+ const [t, n] = I(
4385
+ () => Xn({
4386
+ canTrack: M(e.canTrack),
4381
4387
  content: e.content
4382
4388
  })
4383
4389
  );
4384
4390
  function i() {
4385
4391
  var l;
4386
- return Yn(
4387
- z(e.content).map((d) => ({
4392
+ return ti(
4393
+ J(e.content).map((d) => ({
4388
4394
  id: d.testVariationId,
4389
4395
  testRatio: d.testRatio
4390
4396
  })),
@@ -4392,31 +4398,31 @@ function fi(e) {
4392
4398
  );
4393
4399
  }
4394
4400
  function a() {
4395
- return z(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
4401
+ return J(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
4396
4402
  }
4397
4403
  function r() {
4398
4404
  var l;
4399
4405
  return t ? {
4400
4406
  ...e.content,
4401
4407
  testVariationId: (l = e.content) == null ? void 0 : l.id
4402
- } : Qe({
4408
+ } : et({
4403
4409
  item: e.content,
4404
- canTrack: H(e.canTrack)
4410
+ canTrack: M(e.canTrack)
4405
4411
  });
4406
4412
  }
4407
- return B(() => {
4408
- }, []), /* @__PURE__ */ N(R, { children: [
4409
- !e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */ s(
4410
- J,
4413
+ return P(() => {
4414
+ }, []), /* @__PURE__ */ B(R, { children: [
4415
+ !e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */ s(
4416
+ Q,
4411
4417
  {
4412
4418
  id: "builderio-init-variants-fns",
4413
- scriptStr: Qn(),
4419
+ scriptStr: ei(),
4414
4420
  nonce: e.nonce || ""
4415
4421
  }
4416
4422
  ) : null,
4417
- t ? /* @__PURE__ */ N(R, { children: [
4423
+ t ? /* @__PURE__ */ B(R, { children: [
4418
4424
  /* @__PURE__ */ s(
4419
- j,
4425
+ z,
4420
4426
  {
4421
4427
  id: "builderio-variants",
4422
4428
  styles: a(),
@@ -4424,15 +4430,15 @@ function fi(e) {
4424
4430
  }
4425
4431
  ),
4426
4432
  /* @__PURE__ */ s(
4427
- J,
4433
+ Q,
4428
4434
  {
4429
4435
  id: "builderio-variants-visibility",
4430
4436
  scriptStr: i(),
4431
4437
  nonce: e.nonce || ""
4432
4438
  }
4433
4439
  ),
4434
- (o = z(e.content)) == null ? void 0 : o.map((l) => /* @__PURE__ */ s(
4435
- we,
4440
+ (o = J(e.content)) == null ? void 0 : o.map((l) => /* @__PURE__ */ s(
4441
+ Re,
4436
4442
  {
4437
4443
  apiHost: e.apiHost,
4438
4444
  isNestedRender: e.isNestedRender,
@@ -4460,7 +4466,7 @@ function fi(e) {
4460
4466
  ))
4461
4467
  ] }) : null,
4462
4468
  /* @__PURE__ */ s(
4463
- we,
4469
+ Re,
4464
4470
  {
4465
4471
  apiHost: e.apiHost,
4466
4472
  nonce: e.nonce,
@@ -4487,13 +4493,13 @@ function fi(e) {
4487
4493
  )
4488
4494
  ] });
4489
4495
  }
4490
- const hi = async ({
4496
+ const yi = async ({
4491
4497
  builderContextValue: e,
4492
4498
  symbol: t
4493
4499
  }) => {
4494
4500
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4495
4501
  (e != null && e.apiKey))
4496
- return Ee({
4502
+ return Pe({
4497
4503
  model: t.model,
4498
4504
  apiKey: e.apiKey,
4499
4505
  apiVersion: e.apiVersion,
@@ -4503,10 +4509,10 @@ const hi = async ({
4503
4509
  }
4504
4510
  }
4505
4511
  }).catch((n) => {
4506
- re.error("Could not fetch symbol content: ", n);
4512
+ ce.error("Could not fetch symbol content: ", n);
4507
4513
  });
4508
4514
  };
4509
- function gi(e) {
4515
+ function vi(e) {
4510
4516
  var l, d, c, h, y;
4511
4517
  function t() {
4512
4518
  return "div";
@@ -4517,29 +4523,29 @@ function gi(e) {
4517
4523
  function i() {
4518
4524
  var u, v;
4519
4525
  return [
4520
- e.attributes[M()],
4526
+ e.attributes[j()],
4521
4527
  "builder-symbol",
4522
4528
  (u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
4523
4529
  (v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4524
4530
  ].filter(Boolean).join(" ");
4525
4531
  }
4526
- const [a, r] = E(() => {
4532
+ const [a, r] = I(() => {
4527
4533
  var u;
4528
4534
  return (u = e.symbol) == null ? void 0 : u.content;
4529
4535
  });
4530
4536
  function o() {
4531
- a || hi({
4537
+ a || yi({
4532
4538
  symbol: e.symbol,
4533
4539
  builderContextValue: e.builderContext
4534
4540
  }).then((u) => {
4535
4541
  u && r(u);
4536
4542
  });
4537
4543
  }
4538
- return B(() => {
4539
- }, []), B(() => {
4544
+ return P(() => {
4545
+ }, []), P(() => {
4540
4546
  o();
4541
4547
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
4542
- fi,
4548
+ pi,
4543
4549
  {
4544
4550
  nonce: e.builderContext.nonce,
4545
4551
  isNestedRender: !0,
@@ -4565,16 +4571,16 @@ function gi(e) {
4565
4571
  ) });
4566
4572
  }
4567
4573
  export {
4568
- $ as Blocks,
4569
- ce as BuilderContext,
4570
- rt as Button,
4571
- Kt as Columns,
4572
- fi as Content,
4573
- Jt as Fragment,
4574
- Yt as Image,
4575
- Xt as Section,
4576
- gi as Symbol,
4577
- kn as Text,
4578
- Mn as Video,
4579
- Ci as setClientUserAttributes
4574
+ D as Blocks,
4575
+ me as BuilderContext,
4576
+ ut as Button,
4577
+ Yt as Columns,
4578
+ pi as Content,
4579
+ Xt as Fragment,
4580
+ tn as Image,
4581
+ nn as Section,
4582
+ vi as Symbol,
4583
+ In as Text,
4584
+ Jn as Video,
4585
+ Ei as setClientUserAttributes
4580
4586
  };