@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,15 +1,15 @@
1
1
  "use client";
2
- import { TARGET as O, isEditing as W, isBrowser as F, getUserAttributes as Je, checkIsDefined as K, logger as Q, isPreviewing as Y, userAttributesService as fe, getDefaultCanTrack as M, logFetch as Ee, registerInsertMenu as Ge, setupBrowserForEditing as Qe, createRegisterComponentMessage as Ye, _track as he, fetchOneEntry as Re, createEditorListener as Xe, serializeIncludingFunctions as ge, handleABTestingSync as Ze } from "./server-entry-403d3877.js";
3
- import { setClientUserAttributes as ki } from "./server-entry-403d3877.js";
4
- import { jsx as s, Fragment as R, jsxs as A } from "react/jsx-runtime";
5
- import * as et from "react";
6
- import { createContext as Pe, useEffect as B, useState as E, useRef as $, useContext as be, createElement as Ve } from "react";
7
- const tt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), nt = (e) => typeof e == "string" && tt.has(e.toLowerCase());
8
- function le(e) {
9
- return /* @__PURE__ */ s(R, { children: nt(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 U, isEditing as A, isBrowser as L, getUserAttributes as Ye, checkIsDefined as G, logger as X, isPreviewing as Z, userAttributesService as be, getDefaultCanTrack as H, logFetch as Ve, registerInsertMenu as Xe, setupBrowserForEditing as Ze, createRegisterComponentMessage as et, getCookieSync as tt, _track as pe, fetchOneEntry as Be, createEditorListener as nt, serializeIncludingFunctions as ye, handleABTestingSync as it } from "./server-entry-25e49efc.js";
3
+ import { setClientUserAttributes as Ii } from "./server-entry-25e49efc.js";
4
+ import { jsx as s, Fragment as R, jsxs as B } from "react/jsx-runtime";
5
+ import * as at from "react";
6
+ import { createContext as Ne, useEffect as V, useState as I, useRef as O, useContext as ve, createElement as Ae } from "react";
7
+ const ot = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), rt = (e) => typeof e == "string" && ot.has(e.toLowerCase());
8
+ function ue(e) {
9
+ return /* @__PURE__ */ s(R, { children: rt(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
10
10
  }
11
- const H = () => {
12
- switch (O) {
11
+ const j = () => {
12
+ switch (U) {
13
13
  case "react":
14
14
  case "reactNative":
15
15
  case "rsc":
@@ -22,11 +22,11 @@ const H = () => {
22
22
  return "class";
23
23
  }
24
24
  };
25
- function it(e) {
25
+ function lt(e) {
26
26
  function t() {
27
27
  return {
28
28
  ...e.attributes,
29
- [H()]: `${e.link ? "" : "builder-button"} ${e.attributes[H()] || ""}`,
29
+ [j()]: `${e.link ? "" : "builder-button"} ${e.attributes[j()] || ""}`,
30
30
  ...e.link ? {
31
31
  href: e.link,
32
32
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -37,7 +37,7 @@ function it(e) {
37
37
  };
38
38
  }
39
39
  return /* @__PURE__ */ s(
40
- le,
40
+ ue,
41
41
  {
42
42
  attributes: t(),
43
43
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
@@ -46,7 +46,7 @@ function it(e) {
46
46
  }
47
47
  );
48
48
  }
49
- const se = Pe({
49
+ const de = Ne({
50
50
  content: null,
51
51
  context: {},
52
52
  localState: void 0,
@@ -61,10 +61,10 @@ const se = Pe({
61
61
  BlocksWrapperProps: {},
62
62
  nonce: "",
63
63
  model: ""
64
- }), Be = Pe({ registeredComponents: {} }), Ne = (e, t, n) => {
64
+ }), We = Ne({ registeredComponents: {} }), $e = (e, t, n) => {
65
65
  const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((a, o) => a != null ? a[o] : a, e);
66
66
  return i === void 0 || i === e ? n : i;
67
- }, at = ({
67
+ }, st = ({
68
68
  builder: e,
69
69
  context: t,
70
70
  event: n,
@@ -76,15 +76,15 @@ const se = Pe({
76
76
  builder: e,
77
77
  context: t,
78
78
  event: n
79
- }), ot = () => ({
80
- isEditing: W(),
81
- isBrowser: F(),
82
- isServer: !F(),
83
- getUserAttributes: () => Je()
84
- }), rt = (e, {
79
+ }), ct = () => ({
80
+ isEditing: A(),
81
+ isBrowser: L(),
82
+ isServer: !L(),
83
+ getUserAttributes: () => Ye()
84
+ }), ut = (e, {
85
85
  isExpression: t = !0
86
86
  }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
87
- function Ae({
87
+ function De({
88
88
  rootState: e,
89
89
  localState: t,
90
90
  rootSetState: n
@@ -94,7 +94,7 @@ function Ae({
94
94
  if (t && a in t)
95
95
  return t[a];
96
96
  const o = i[a];
97
- return typeof o == "object" && o !== null ? Ae({
97
+ return typeof o == "object" && o !== null ? De({
98
98
  rootState: o,
99
99
  localState: void 0,
100
100
  rootSetState: n ? (r) => {
@@ -109,7 +109,7 @@ function Ae({
109
109
  }
110
110
  });
111
111
  }
112
- const pe = ({
112
+ const xe = ({
113
113
  code: e,
114
114
  builder: t,
115
115
  context: n,
@@ -118,11 +118,11 @@ const pe = ({
118
118
  rootSetState: o,
119
119
  rootState: r
120
120
  }) => {
121
- const l = at({
121
+ const l = st({
122
122
  builder: t,
123
123
  context: n,
124
124
  event: i,
125
- state: Ae({
125
+ state: De({
126
126
  rootState: r,
127
127
  localState: a,
128
128
  rootSetState: o
@@ -130,25 +130,25 @@ const pe = ({
130
130
  });
131
131
  return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
132
132
  };
133
- function lt() {
133
+ function dt() {
134
134
  var e;
135
- return typeof process != "undefined" && K((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
135
+ return typeof process != "undefined" && G((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
136
136
  }
137
- const st = ({
137
+ const mt = ({
138
138
  shouldLogWarning: e
139
139
  }) => {
140
140
  var a;
141
- if (!lt())
141
+ if (!dt())
142
142
  return !1;
143
143
  const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (a = process.env.NODE_OPTIONS) == null ? void 0 : a.includes("--no-node-snapshot");
144
- return t && n && !i ? (e && Q.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
145
- }, ct = (e) => (F() || st({
144
+ return t && n && !i ? (e && X.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
145
+ }, ft = (e) => (L() || mt({
146
146
  shouldLogWarning: !0
147
- }), pe(e)), ut = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, dt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, mt = (e) => {
147
+ }), xe(e)), ht = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, gt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, bt = (e) => {
148
148
  var t, n, i, a, o, r;
149
- return ((i = (n = (t = ut.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((r = (o = (a = dt.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : o.getPath) == null ? void 0 : r.slice(1));
149
+ return ((i = (n = (t = ht.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((r = (o = (a = gt.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : o.getPath) == null ? void 0 : r.slice(1));
150
150
  };
151
- function L({
151
+ function _({
152
152
  code: e,
153
153
  context: t,
154
154
  localState: n,
@@ -159,17 +159,17 @@ function L({
159
159
  }) {
160
160
  if (e.trim() === "")
161
161
  return;
162
- const l = mt(e.trim());
162
+ const l = bt(e.trim());
163
163
  if (l)
164
- return Ne({
164
+ return $e({
165
165
  ...i,
166
166
  ...n
167
167
  }, l);
168
168
  const d = {
169
- code: rt(e, {
169
+ code: ut(e, {
170
170
  isExpression: r
171
171
  }),
172
- builder: ot(),
172
+ builder: ct(),
173
173
  context: t,
174
174
  event: o,
175
175
  rootSetState: a,
@@ -177,28 +177,28 @@ function L({
177
177
  localState: n
178
178
  };
179
179
  try {
180
- return ct(d);
180
+ return ft(d);
181
181
  } catch (c) {
182
- Q.error("Failed code evaluation: " + c.message, {
182
+ X.error("Failed code evaluation: " + c.message, {
183
183
  code: e
184
184
  });
185
185
  return;
186
186
  }
187
187
  }
188
- function ft(e, t) {
188
+ function pt(e, t) {
189
189
  var n;
190
190
  return {
191
191
  ...(n = e.component) == null ? void 0 : n.options,
192
192
  ...e.options,
193
- ...ht(e, t)
193
+ ...yt(e, t)
194
194
  };
195
195
  }
196
- const ht = (e, t) => {
196
+ const yt = (e, t) => {
197
197
  var n, i;
198
198
  if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
199
199
  return {
200
200
  ...e.component.options,
201
- text: e.component.options.text.replace(/{{([^}]+)}}/g, (a, o) => L({
201
+ text: e.component.options.text.replace(/{{([^}]+)}}/g, (a, o) => _({
202
202
  code: o,
203
203
  context: t,
204
204
  localState: t.localState,
@@ -207,13 +207,13 @@ const ht = (e, t) => {
207
207
  }))
208
208
  };
209
209
  };
210
- function gt(e, ...t) {
210
+ function vt(e, ...t) {
211
211
  const n = Object.assign({}, e);
212
212
  for (const i of t)
213
213
  delete n[i];
214
214
  return n;
215
215
  }
216
- function J(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
216
+ function Q(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
217
217
  if (e == null || typeof e != "object") {
218
218
  t(e, (o) => {
219
219
  n !== null && i !== null && (n[i] = o);
@@ -223,58 +223,58 @@ function J(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
223
223
  a.has(e) || (a.add(e), Array.isArray(e) ? e.forEach((o, r) => {
224
224
  t(o, (d) => {
225
225
  e[r] = d;
226
- }), J(o, t, e, r, a);
226
+ }), Q(o, t, e, r, a);
227
227
  }) : Object.entries(e).forEach(([o, r]) => {
228
228
  t(r, (d) => {
229
229
  e[o] = d;
230
- }), J(r, t, e, o, a);
230
+ }), Q(r, t, e, o, a);
231
231
  }));
232
232
  }
233
- function We(e) {
233
+ function Fe(e) {
234
234
  return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
235
235
  }
236
- function bt(e) {
236
+ function xt(e) {
237
237
  if (!e || !Object.getOwnPropertyNames(e).length)
238
238
  return !1;
239
239
  let t = !1;
240
- return J(e, (n) => {
241
- if (We(n)) {
240
+ return Q(e, (n) => {
241
+ if (Fe(n)) {
242
242
  t = !0;
243
243
  return;
244
244
  }
245
245
  }), t;
246
246
  }
247
- function pt(e, t) {
248
- return !e || !Object.getOwnPropertyNames(e).length ? {} : (J(e, (n, i) => {
247
+ function St(e, t) {
248
+ return !e || !Object.getOwnPropertyNames(e).length ? {} : (Q(e, (n, i) => {
249
249
  var a;
250
- We(n) && i((a = n[t]) != null ? a : void 0);
250
+ Fe(n) && i((a = n[t]) != null ? a : void 0);
251
251
  }), e);
252
252
  }
253
- function yt(e, t) {
253
+ function kt(e, t) {
254
254
  var n, i;
255
- return (n = e.component) != null && n.options && bt((i = e.component) == null ? void 0 : i.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = pt(e.component.options, t != null ? t : "Default")), e;
255
+ return (n = e.component) != null && n.options && xt((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 = St(e.component.options, t != null ? t : "Default")), e;
256
256
  }
257
- const ce = (e) => JSON.parse(JSON.stringify(e)), De = (e, t, n) => {
257
+ const me = (e) => JSON.parse(JSON.stringify(e)), Oe = (e, t, n) => {
258
258
  if (Object(e) !== e)
259
259
  return e;
260
260
  const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
261
261
  return i.slice(0, -1).reduce((a, o, r) => Object(a[o]) === a[o] ? a[o] : a[o] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
262
262
  };
263
- function re(e) {
263
+ function ce(e) {
264
264
  if (e === null || typeof e != "object")
265
265
  return e;
266
266
  if (Array.isArray(e))
267
- return e.map((n) => re(n));
267
+ return e.map((n) => ce(n));
268
268
  if (e["@type"] === "@builder.io/sdk:Element")
269
269
  return e;
270
270
  const t = {};
271
271
  for (const n in e)
272
- n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = re(e[n]));
272
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ce(e[n]));
273
273
  return t;
274
274
  }
275
- const vt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), xt = (e) => {
276
- if (vt) {
277
- const t = ce(e);
275
+ const Ct = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), Tt = (e) => {
276
+ if (Ct) {
277
+ const t = me(e);
278
278
  return {
279
279
  ...t,
280
280
  properties: {
@@ -285,7 +285,7 @@ const vt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), xt = (e) =
285
285
  }
286
286
  };
287
287
  } else {
288
- const t = re(gt(e, "children", "meta"));
288
+ const t = ce(vt(e, "children", "meta"));
289
289
  return {
290
290
  ...t,
291
291
  properties: {
@@ -298,7 +298,7 @@ const vt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), xt = (e) =
298
298
  meta: e.meta
299
299
  };
300
300
  }
301
- }, St = ({
301
+ }, wt = ({
302
302
  block: e,
303
303
  context: t,
304
304
  localState: n,
@@ -307,28 +307,28 @@ const vt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), xt = (e) =
307
307
  }) => {
308
308
  if (!e.bindings)
309
309
  return e;
310
- const o = xt(e);
310
+ const o = Tt(e);
311
311
  for (const r in e.bindings) {
312
- const l = e.bindings[r], d = L({
312
+ const l = e.bindings[r], d = _({
313
313
  code: l,
314
314
  localState: n,
315
315
  rootState: i,
316
316
  rootSetState: a,
317
317
  context: t
318
318
  });
319
- De(o, r, d);
319
+ Oe(o, r, d);
320
320
  }
321
321
  return o;
322
322
  };
323
- function kt({
323
+ function It({
324
324
  block: e,
325
325
  context: t,
326
326
  localState: n,
327
327
  rootState: i,
328
328
  rootSetState: a
329
329
  }) {
330
- let o = yt(e, i.locale);
331
- return o = o, St({
330
+ let o = kt(e, i.locale);
331
+ return o = o, wt({
332
332
  block: o,
333
333
  localState: n,
334
334
  rootState: i,
@@ -336,8 +336,8 @@ function kt({
336
336
  context: t
337
337
  });
338
338
  }
339
- const X = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
340
- function Ct(e, t, n = {}) {
339
+ const ee = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
340
+ function Et(e, t, n = {}) {
341
341
  let i, a, o, r = null, l = 0;
342
342
  const d = function() {
343
343
  l = n.leading === !1 ? 0 : Date.now(), r = null, o = e.apply(i, a), r || (i = a = null);
@@ -349,7 +349,7 @@ function Ct(e, t, n = {}) {
349
349
  return i = this, a = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), l = c, o = e.apply(i, a), r || (i = a = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, h)), o;
350
350
  };
351
351
  }
352
- function q(e, ...t) {
352
+ function M(e, ...t) {
353
353
  const n = Object(e);
354
354
  for (let i = 1; i < arguments.length; i++) {
355
355
  const a = arguments[i];
@@ -359,64 +359,64 @@ function q(e, ...t) {
359
359
  }
360
360
  return n;
361
361
  }
362
- function Tt(e) {
362
+ function Rt(e) {
363
363
  for (const t of e)
364
364
  switch (t.trigger) {
365
365
  case "pageLoad":
366
- Oe(t);
366
+ _e(t);
367
367
  break;
368
368
  case "scrollInView":
369
- It(t);
369
+ Vt(t);
370
370
  break;
371
371
  }
372
372
  }
373
- function $e(e) {
373
+ function Le(e) {
374
374
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
375
375
  }
376
- function Fe(e, t) {
377
- const n = wt(e), i = getComputedStyle(t), a = e.steps[0].styles, o = e.steps[e.steps.length - 1].styles, r = [a, o];
376
+ function Ue(e, t) {
377
+ const n = Pt(e), i = getComputedStyle(t), a = e.steps[0].styles, o = e.steps[e.steps.length - 1].styles, r = [a, o];
378
378
  for (const l of r)
379
379
  for (const d of n)
380
380
  d in l || (l[d] = i[d]);
381
381
  }
382
- function wt(e) {
382
+ function Pt(e) {
383
383
  const t = [];
384
384
  for (const n of e.steps)
385
385
  for (const i in n.styles)
386
386
  t.indexOf(i) === -1 && t.push(i);
387
387
  return t;
388
388
  }
389
- function Oe(e) {
389
+ function _e(e) {
390
390
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
391
391
  if (!t.length) {
392
- $e(e.elementId || e.id || "");
392
+ Le(e.elementId || e.id || "");
393
393
  return;
394
394
  }
395
395
  Array.from(t).forEach((n) => {
396
- Fe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
397
- n.style.transition = `all ${e.duration}s ${X(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), q(n.style, e.steps[1].styles), setTimeout(() => {
396
+ Ue(e, n), n.style.transition = "none", n.style.transitionDelay = "0", M(n.style, e.steps[0].styles), setTimeout(() => {
397
+ n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), M(n.style, e.steps[1].styles), setTimeout(() => {
398
398
  n.style.transition = "", n.style.transitionDelay = "";
399
399
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
400
400
  });
401
401
  });
402
402
  }
403
- function It(e) {
403
+ function Vt(e) {
404
404
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
405
405
  if (!t.length) {
406
- $e(e.elementId || e.id || "");
406
+ Le(e.elementId || e.id || "");
407
407
  return;
408
408
  }
409
409
  Array.from(t).forEach((n) => {
410
- Fe(e, n);
410
+ Ue(e, n);
411
411
  let i = !1, a = !1;
412
412
  function o() {
413
413
  !i && l(n) ? (i = !0, a = !0, setTimeout(() => {
414
- q(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
414
+ M(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
415
415
  a = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
416
416
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
417
- })) : e.repeat && i && !a && !l(n) && (i = !1, q(n.style, e.steps[0].styles));
417
+ })) : e.repeat && i && !a && !l(n) && (i = !1, M(n.style, e.steps[0].styles));
418
418
  }
419
- const r = Ct(o, 200, {
419
+ const r = Et(o, 200, {
420
420
  leading: !1
421
421
  });
422
422
  function l(h) {
@@ -425,52 +425,52 @@ function It(e) {
425
425
  }
426
426
  const d = e.steps[0].styles;
427
427
  function c() {
428
- q(n.style, d);
428
+ M(n.style, d);
429
429
  }
430
430
  c(), setTimeout(() => {
431
- n.style.transition = `all ${e.duration}s ${X(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
431
+ n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
432
432
  }), document.addEventListener("scroll", r, {
433
433
  capture: !0,
434
434
  passive: !0
435
435
  }), o();
436
436
  });
437
437
  }
438
- const Le = (e) => Object.entries(e).map(([n, i]) => {
438
+ const qe = (e) => Object.entries(e).map(([n, i]) => {
439
439
  if (typeof i == "string")
440
- return `${X(n)}: ${i};`;
441
- }).filter(K), Et = (e) => Le(e).join(`
442
- `), _ = ({
440
+ return `${ee(n)}: ${i};`;
441
+ }).filter(G), Bt = (e) => qe(e).join(`
442
+ `), q = ({
443
443
  mediaQuery: e,
444
444
  className: t,
445
445
  styles: n
446
446
  }) => {
447
447
  const i = `.${t} {
448
- ${Et(n)}
448
+ ${Bt(n)}
449
449
  }`;
450
450
  return e ? `${e} {
451
451
  ${i}
452
452
  }` : i;
453
453
  };
454
- function Rt({
454
+ function Nt({
455
455
  style: e
456
456
  }) {
457
457
  return e;
458
458
  }
459
- const Pt = ({
459
+ const At = ({
460
460
  block: e,
461
461
  context: t
462
- }) => Ue(Rt({
462
+ }) => Me(Nt({
463
463
  style: e.style || {},
464
464
  context: t,
465
465
  block: e
466
466
  }));
467
- function Ue(e) {
468
- switch (O) {
467
+ function Me(e) {
468
+ switch (U) {
469
469
  case "svelte":
470
470
  case "vue":
471
471
  case "solid":
472
472
  case "angular":
473
- return Le(e).join(" ");
473
+ return qe(e).join(" ");
474
474
  case "qwik":
475
475
  case "reactNative":
476
476
  case "react":
@@ -478,7 +478,7 @@ function Ue(e) {
478
478
  return e;
479
479
  }
480
480
  }
481
- const _e = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Vt = ({
481
+ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Wt = ({
482
482
  block: e,
483
483
  registeredComponents: t,
484
484
  model: n
@@ -488,14 +488,14 @@ const _e = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
488
488
  if (!i)
489
489
  return null;
490
490
  const a = t[i];
491
- if (!a || _e(a, n)) {
491
+ if (!a || He(a, n)) {
492
492
  console.warn(`
493
493
  Could not find a registered component named "${i}".
494
494
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
495
495
  return;
496
496
  } else
497
497
  return a;
498
- }, Bt = ({
498
+ }, $t = ({
499
499
  block: e,
500
500
  context: t
501
501
  }) => {
@@ -505,7 +505,7 @@ const _e = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
505
505
  } = e;
506
506
  if (!(n != null && n.collection))
507
507
  return;
508
- const a = L({
508
+ const a = _({
509
509
  code: n.collection,
510
510
  localState: t.localState,
511
511
  rootState: t.rootState,
@@ -528,27 +528,27 @@ const _e = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
528
528
  },
529
529
  block: i
530
530
  }));
531
- }, Nt = (e, t) => {
531
+ }, Dt = (e, t) => {
532
532
  var n;
533
533
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
534
534
  builderLinkComponent: t
535
535
  } : {};
536
- }, At = (e, t, n) => {
536
+ }, Ft = (e, t, n) => {
537
537
  var i;
538
538
  return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
539
- builderComponents: Object.fromEntries(Object.entries(t).filter(([o, r]) => !_e(r, n)))
539
+ builderComponents: Object.fromEntries(Object.entries(t).filter(([o, r]) => !He(r, n)))
540
540
  } : {};
541
- }, Wt = (e, t) => {
541
+ }, Ot = (e, t) => {
542
542
  var n;
543
543
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
544
544
  builderBlock: t
545
545
  } : {};
546
- }, Dt = (e, t) => {
546
+ }, Lt = (e, t) => {
547
547
  var n;
548
548
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
549
549
  builderContext: t
550
550
  } : {};
551
- }, qe = {
551
+ }, je = {
552
552
  xsmall: {
553
553
  min: 0,
554
554
  default: 160,
@@ -569,8 +569,8 @@ const _e = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
569
569
  default: 991,
570
570
  max: 1200
571
571
  }
572
- }, ee = (e, t = qe) => `@media (max-width: ${t[e].max}px)`, Me = (e) => {
573
- const t = ce(qe);
572
+ }, ie = (e, t = je) => `@media (max-width: ${t[e].max}px)`, ze = (e) => {
573
+ const t = me(je);
574
574
  if (!e)
575
575
  return t;
576
576
  const {
@@ -608,7 +608,7 @@ const _e = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
608
608
  default: l + 1
609
609
  }, t;
610
610
  };
611
- function j(e) {
611
+ function z(e) {
612
612
  return /* @__PURE__ */ s(
613
613
  "style",
614
614
  {
@@ -618,39 +618,39 @@ function j(e) {
618
618
  }
619
619
  );
620
620
  }
621
- function $t(e) {
621
+ function Ut(e) {
622
622
  function t() {
623
623
  const i = e.block;
624
- return K(i.hide) ? !i.hide : K(i.show) ? i.show : !0;
624
+ return G(i.hide) ? !i.hide : G(i.show) ? i.show : !0;
625
625
  }
626
626
  function n() {
627
627
  var C, P, w, x, m;
628
- const i = e.block, a = i.responsiveStyles, o = e.context.content, r = Me(
628
+ const i = e.block, a = i.responsiveStyles, o = e.context.content, r = ze(
629
629
  ((C = o == null ? void 0 : o.meta) == null ? void 0 : C.breakpoints) || {}
630
630
  ), l = !!((w = (P = o == null ? void 0 : o.meta) == null ? void 0 : P.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;
631
631
  if (!u)
632
632
  return "";
633
- const v = d ? _({
633
+ const v = d ? q({
634
634
  className: u,
635
635
  styles: d
636
- }) : "", f = c ? _({
636
+ }) : "", f = c ? q({
637
637
  className: u,
638
638
  styles: c,
639
- mediaQuery: ee(
639
+ mediaQuery: ie(
640
640
  "medium",
641
641
  r
642
642
  )
643
- }) : "", g = h ? _({
643
+ }) : "", g = h ? q({
644
644
  className: u,
645
645
  styles: h,
646
- mediaQuery: ee(
646
+ mediaQuery: ie(
647
647
  "small",
648
648
  r
649
649
  )
650
- }) : "", S = y && l ? _({
650
+ }) : "", S = y && l ? q({
651
651
  className: u,
652
652
  styles: y,
653
- mediaQuery: ee(
653
+ mediaQuery: ie(
654
654
  "xsmall",
655
655
  r
656
656
  )
@@ -658,11 +658,11 @@ function $t(e) {
658
658
  let k = "";
659
659
  if (b) {
660
660
  const p = ((m = (x = b.steps) == null ? void 0 : x[1]) == null ? void 0 : m.styles) || {};
661
- k = _({
661
+ k = q({
662
662
  className: `${u}:hover`,
663
663
  styles: {
664
664
  ...p,
665
- transition: `all ${b.duration}s ${X(
665
+ transition: `all ${b.duration}s ${ee(
666
666
  b.easing
667
667
  )}`,
668
668
  transitionDelay: b.delay ? `${b.delay}s` : "0s"
@@ -678,7 +678,7 @@ function $t(e) {
678
678
  ].join(" ");
679
679
  }
680
680
  return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
681
- j,
681
+ z,
682
682
  {
683
683
  id: "builderio-block",
684
684
  styles: n(),
@@ -686,10 +686,10 @@ function $t(e) {
686
686
  }
687
687
  ) }) : null });
688
688
  }
689
- function Ft(e) {
689
+ function _t(e) {
690
690
  return e.charAt(0).toUpperCase() + e.slice(1);
691
691
  }
692
- const Ot = (e) => `on${Ft(e)}`, Lt = (e, t) => (n) => L({
692
+ const qt = (e) => `on${_t(e)}`, Mt = (e, t) => (n) => _({
693
693
  code: e,
694
694
  context: t.context,
695
695
  localState: t.localState,
@@ -698,16 +698,16 @@ const Ot = (e) => `on${Ft(e)}`, Lt = (e, t) => (n) => L({
698
698
  event: n,
699
699
  isExpression: !1
700
700
  });
701
- function He(e) {
701
+ function Ke(e) {
702
702
  var i;
703
703
  const t = {}, n = (i = e.block.actions) != null ? i : {};
704
704
  for (const a in n) {
705
705
  if (!n.hasOwnProperty(a))
706
706
  continue;
707
707
  const o = n[a];
708
- let r = Ot(a);
708
+ let r = qt(a);
709
709
  if (e.stripPrefix)
710
- switch (O) {
710
+ switch (U) {
711
711
  case "vue":
712
712
  r = r.replace("v-on:", "");
713
713
  break;
@@ -715,49 +715,49 @@ function He(e) {
715
715
  r = r.replace("on:", "");
716
716
  break;
717
717
  }
718
- t[r] = Lt(o, e);
718
+ t[r] = Mt(o, e);
719
719
  }
720
720
  return t;
721
721
  }
722
- function Ut({
722
+ function Ht({
723
723
  properties: e
724
724
  }) {
725
725
  return e;
726
726
  }
727
- const _t = (e) => ({
727
+ const jt = (e) => ({
728
728
  href: e.href
729
729
  });
730
- function ue({
730
+ function fe({
731
731
  block: e,
732
732
  context: t
733
733
  }) {
734
734
  var i;
735
735
  const n = {
736
- ..._t(e),
736
+ ...jt(e),
737
737
  ...e.properties,
738
738
  "builder-id": e.id,
739
- style: Pt({
739
+ style: At({
740
740
  block: e,
741
741
  context: t
742
742
  }),
743
- [H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
743
+ [j()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
744
744
  };
745
- return Ut({
745
+ return Ht({
746
746
  properties: n,
747
747
  context: t,
748
748
  block: e
749
749
  });
750
750
  }
751
- function qt(e) {
751
+ function zt(e) {
752
752
  return /* @__PURE__ */ s(
753
- le,
753
+ ue,
754
754
  {
755
755
  TagName: e.Wrapper,
756
- attributes: ue({
756
+ attributes: fe({
757
757
  block: e.block,
758
758
  context: e.context
759
759
  }),
760
- actionAttributes: He({
760
+ actionAttributes: Ke({
761
761
  block: e.block,
762
762
  rootState: e.context.rootState,
763
763
  rootSetState: e.context.rootSetState,
@@ -769,18 +769,18 @@ function qt(e) {
769
769
  }
770
770
  );
771
771
  }
772
- function Mt(e) {
773
- return B(() => {
772
+ function Kt(e) {
773
+ return V(() => {
774
774
  }, []), /* @__PURE__ */ s(R, { children: e.children });
775
775
  }
776
- function Ht(e) {
776
+ function Jt(e) {
777
777
  function t() {
778
778
  return e.includeBlockProps ? {
779
- ...ue({
779
+ ...fe({
780
780
  block: e.block,
781
781
  context: e.context
782
782
  }),
783
- ...He({
783
+ ...Ke({
784
784
  block: e.block,
785
785
  rootState: e.context.rootState,
786
786
  rootSetState: e.context.rootSetState,
@@ -790,7 +790,7 @@ function Ht(e) {
790
790
  } : {};
791
791
  }
792
792
  return /* @__PURE__ */ s(R, { children: e.Wrapper.load ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
793
- Mt,
793
+ Kt,
794
794
  {
795
795
  load: e.Wrapper.load,
796
796
  fallback: e.Wrapper.fallback,
@@ -800,7 +800,7 @@ function Ht(e) {
800
800
  }
801
801
  ) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
802
802
  }
803
- const jt = ({
803
+ const Gt = ({
804
804
  componentOptions: e,
805
805
  builderBlock: t,
806
806
  context: n,
@@ -816,7 +816,7 @@ const jt = ({
816
816
  * component itself directly. Otherwise, they are provided to the wrapper element.
817
817
  */
818
818
  ...a ? {
819
- attributes: ue({
819
+ attributes: fe({
820
820
  block: t,
821
821
  context: r
822
822
  })
@@ -830,15 +830,15 @@ const jt = ({
830
830
  includeBlockProps: a
831
831
  } : l;
832
832
  };
833
- function ye(e) {
833
+ function Se(e) {
834
834
  var i;
835
- const [t, n] = E(
836
- () => e.isInteractive ? Ht : e.componentRef
835
+ const [t, n] = I(
836
+ () => e.isInteractive ? Jt : e.componentRef
837
837
  );
838
838
  return /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
839
839
  t,
840
840
  {
841
- ...jt({
841
+ ...Gt({
842
842
  componentOptions: e.componentOptions,
843
843
  builderBlock: e.builderBlock,
844
844
  context: e.context,
@@ -849,7 +849,7 @@ function ye(e) {
849
849
  contextValue: e.context
850
850
  }),
851
851
  children: (i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ s(
852
- Z,
852
+ te,
853
853
  {
854
854
  block: a,
855
855
  context: e.context,
@@ -861,10 +861,10 @@ function ye(e) {
861
861
  }
862
862
  ) }) : null });
863
863
  }
864
- function ve(e) {
865
- const [t, n] = E(() => e.repeatContext);
866
- return /* @__PURE__ */ s(se.Provider, { value: t, children: /* @__PURE__ */ s(
867
- Z,
864
+ function ke(e) {
865
+ const [t, n] = I(() => e.repeatContext);
866
+ return /* @__PURE__ */ s(de.Provider, { value: t, children: /* @__PURE__ */ s(
867
+ te,
868
868
  {
869
869
  block: e.block,
870
870
  context: t,
@@ -873,23 +873,23 @@ function ve(e) {
873
873
  }
874
874
  ) });
875
875
  }
876
- function Z(e) {
876
+ function te(e) {
877
877
  var h, y, u, v;
878
878
  function t() {
879
- return Bt({
879
+ return $t({
880
880
  block: e.block,
881
881
  context: e.context
882
882
  });
883
883
  }
884
- const [n, i] = E(() => ({
884
+ const [n, i] = I(() => ({
885
885
  value: null,
886
886
  update: !1
887
887
  }));
888
888
  function a() {
889
889
  var g;
890
- if (n.value && !n.update && !Y())
890
+ if (n.value && !n.update && !Z())
891
891
  return n.value;
892
- const f = (g = e.block.repeat) != null && g.collection ? e.block : kt({
892
+ const f = (g = e.block.repeat) != null && g.collection ? e.block : It({
893
893
  block: e.block,
894
894
  localState: e.context.localState,
895
895
  rootState: e.context.rootState,
@@ -899,7 +899,7 @@ function Z(e) {
899
899
  return n.value = f, n.update = !1, f;
900
900
  }
901
901
  function o() {
902
- return Vt({
902
+ return Wt({
903
903
  block: a(),
904
904
  registeredComponents: e.registeredComponents,
905
905
  model: e.context.model
@@ -926,11 +926,11 @@ function Z(e) {
926
926
  blockChildren: (f = a().children) != null ? f : [],
927
927
  componentRef: (g = o == null ? void 0 : o()) == null ? void 0 : g.component,
928
928
  componentOptions: {
929
- ...ft(a(), e.context),
930
- ...Wt(o(), a()),
931
- ...Dt(o(), e.context),
932
- ...Nt(o(), e.linkComponent),
933
- ...At(
929
+ ...pt(a(), e.context),
930
+ ...Ot(o(), a()),
931
+ ...Lt(o(), e.context),
932
+ ...Dt(o(), e.linkComponent),
933
+ ...Ft(
934
934
  o(),
935
935
  e.registeredComponents,
936
936
  e.context.model
@@ -941,23 +941,23 @@ function Z(e) {
941
941
  registeredComponents: e.registeredComponents,
942
942
  builderBlock: a(),
943
943
  includeBlockProps: ((S = o == null ? void 0 : o()) == null ? void 0 : S.noWrap) === !0,
944
- isInteractive: !((b = o == null ? void 0 : o()) != null && b.isRSC && O === "rsc")
944
+ isInteractive: !((b = o == null ? void 0 : o()) != null && b.isRSC && U === "rsc")
945
945
  };
946
946
  }
947
- return B(() => {
947
+ return V(() => {
948
948
  const f = a().id, g = a().animations;
949
- g && f && Tt(
949
+ g && f && Rt(
950
950
  g.map((S) => ({
951
951
  ...S,
952
952
  elementId: f
953
953
  }))
954
954
  );
955
- }, []), B(() => {
955
+ }, []), V(() => {
956
956
  n.update = !0;
957
- }), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ A(R, { children: [
958
- /* @__PURE__ */ s($t, { block: a(), context: e.context }),
957
+ }), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ B(R, { children: [
958
+ /* @__PURE__ */ s(Ut, { block: a(), context: e.context }),
959
959
  (h = o == null ? void 0 : o()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((f, g) => /* @__PURE__ */ s(
960
- ve,
960
+ ke,
961
961
  {
962
962
  repeatContext: f.context,
963
963
  block: f.block,
@@ -966,7 +966,7 @@ function Z(e) {
966
966
  },
967
967
  g
968
968
  )) }) : /* @__PURE__ */ s(
969
- ye,
969
+ Se,
970
970
  {
971
971
  componentRef: c().componentRef,
972
972
  componentOptions: c().componentOptions,
@@ -979,7 +979,7 @@ function Z(e) {
979
979
  isInteractive: c().isInteractive
980
980
  }
981
981
  ) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (u = t()) == null ? void 0 : u.map((f, g) => /* @__PURE__ */ s(
982
- ve,
982
+ ke,
983
983
  {
984
984
  repeatContext: f.context,
985
985
  block: f.block,
@@ -987,15 +987,15 @@ function Z(e) {
987
987
  linkComponent: e.linkComponent
988
988
  },
989
989
  g
990
- )) }) : /* @__PURE__ */ A(
991
- qt,
990
+ )) }) : /* @__PURE__ */ B(
991
+ zt,
992
992
  {
993
993
  Wrapper: r(),
994
994
  block: a(),
995
995
  context: e.context,
996
996
  children: [
997
997
  /* @__PURE__ */ s(
998
- ye,
998
+ Se,
999
999
  {
1000
1000
  componentRef: c().componentRef,
1001
1001
  componentOptions: c().componentOptions,
@@ -1009,7 +1009,7 @@ function Z(e) {
1009
1009
  }
1010
1010
  ),
1011
1011
  (y = d()) == null ? void 0 : y.map((f) => /* @__PURE__ */ s(
1012
- Z,
1012
+ te,
1013
1013
  {
1014
1014
  block: f,
1015
1015
  registeredComponents: e.registeredComponents,
@@ -1023,8 +1023,8 @@ function Z(e) {
1023
1023
  ) })
1024
1024
  ] }) : null });
1025
1025
  }
1026
- function zt(e) {
1027
- const t = $(null);
1026
+ function Qt(e) {
1027
+ const t = O(null);
1028
1028
  function n() {
1029
1029
  var r;
1030
1030
  return [
@@ -1041,7 +1041,7 @@ function zt(e) {
1041
1041
  }
1042
1042
  function a() {
1043
1043
  var r, l;
1044
- W() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
1044
+ A() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
1045
1045
  {
1046
1046
  type: "builder.clickEmptyBlocks",
1047
1047
  data: {
@@ -1054,7 +1054,7 @@ function zt(e) {
1054
1054
  }
1055
1055
  function o() {
1056
1056
  var r, l;
1057
- W() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
1057
+ A() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
1058
1058
  {
1059
1059
  type: "builder.hoverEmptyBlocks",
1060
1060
  data: {
@@ -1065,8 +1065,8 @@ function zt(e) {
1065
1065
  "*"
1066
1066
  ));
1067
1067
  }
1068
- return B(() => {
1069
- }, []), /* @__PURE__ */ A(R, { children: [
1068
+ return V(() => {
1069
+ }, []), /* @__PURE__ */ B(R, { children: [
1070
1070
  /* @__PURE__ */ s(
1071
1071
  e.BlocksWrapper,
1072
1072
  {
@@ -1091,9 +1091,9 @@ function zt(e) {
1091
1091
  }
1092
1092
  function D(e) {
1093
1093
  var i, a, o;
1094
- const t = be(se), n = be(Be);
1094
+ const t = ve(de), n = ve(We);
1095
1095
  return /* @__PURE__ */ s(
1096
- zt,
1096
+ Qt,
1097
1097
  {
1098
1098
  blocks: e.blocks,
1099
1099
  parent: e.parent,
@@ -1103,7 +1103,7 @@ function D(e) {
1103
1103
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
1104
1104
  BlocksWrapperProps: ((a = e.context) == null ? void 0 : a.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
1105
1105
  children: e.blocks ? /* @__PURE__ */ s(R, { children: (o = e.blocks) == null ? void 0 : o.map((r) => /* @__PURE__ */ s(
1106
- Z,
1106
+ te,
1107
1107
  {
1108
1108
  block: r,
1109
1109
  linkComponent: e.linkComponent,
@@ -1115,8 +1115,8 @@ function D(e) {
1115
1115
  }
1116
1116
  );
1117
1117
  }
1118
- const Kt = (e) => `builder-columns ${e}-breakpoints`;
1119
- function Jt(e) {
1118
+ const Yt = (e) => `builder-columns ${e}-breakpoints`;
1119
+ function Xt(e) {
1120
1120
  var g, S;
1121
1121
  function t() {
1122
1122
  return typeof e.space == "number" ? e.space || 0 : 20;
@@ -1192,7 +1192,7 @@ function Jt(e) {
1192
1192
  }
1193
1193
  function u(b) {
1194
1194
  var C, P;
1195
- return Me(
1195
+ return ze(
1196
1196
  ((P = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : P.breakpoints) || {}
1197
1197
  )[b].max;
1198
1198
  }
@@ -1229,19 +1229,19 @@ function Jt(e) {
1229
1229
  ...b.link ? {
1230
1230
  href: b.link
1231
1231
  } : {},
1232
- [H()]: "builder-column",
1233
- style: Ue(y(k))
1232
+ [j()]: "builder-column",
1233
+ style: Me(y(k))
1234
1234
  };
1235
1235
  }
1236
- return /* @__PURE__ */ A(R, { children: [
1237
- /* @__PURE__ */ A(
1236
+ return /* @__PURE__ */ B(R, { children: [
1237
+ /* @__PURE__ */ B(
1238
1238
  "div",
1239
1239
  {
1240
- className: Kt((g = e.builderBlock) == null ? void 0 : g.id) + " div-a6f3faac",
1240
+ className: Yt((g = e.builderBlock) == null ? void 0 : g.id) + " div-a6f3faac",
1241
1241
  style: h(),
1242
1242
  children: [
1243
1243
  /* @__PURE__ */ s(
1244
- j,
1244
+ z,
1245
1245
  {
1246
1246
  id: "builderio-columns",
1247
1247
  styles: v(),
@@ -1249,7 +1249,7 @@ function Jt(e) {
1249
1249
  }
1250
1250
  ),
1251
1251
  (S = e.columns) == null ? void 0 : S.map((b, k) => /* @__PURE__ */ s(
1252
- le,
1252
+ ue,
1253
1253
  {
1254
1254
  TagName: a(b),
1255
1255
  actionAttributes: {},
@@ -1280,40 +1280,40 @@ function Jt(e) {
1280
1280
  }` })
1281
1281
  ] });
1282
1282
  }
1283
- function Gt(e) {
1283
+ function Zt(e) {
1284
1284
  return /* @__PURE__ */ s("span", { children: e.children });
1285
1285
  }
1286
- function xe(e) {
1286
+ function Ce(e) {
1287
1287
  return e.replace(/http(s)?:/, "");
1288
1288
  }
1289
- function Qt(e = "", t, n) {
1289
+ function en(e = "", t, n) {
1290
1290
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), a = e.indexOf("?") !== -1 ? "&" : "?";
1291
1291
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + a + t + "=" + encodeURIComponent(n);
1292
1292
  }
1293
- function Yt(e, t) {
1293
+ function tn(e, t) {
1294
1294
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1295
1295
  return e;
1296
1296
  if (t === "master")
1297
- return xe(e);
1297
+ return Ce(e);
1298
1298
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1299
1299
  if (n) {
1300
1300
  const i = e.split(n[0]), a = n[3], o = t.match("x") ? t : `${t}x`;
1301
- return xe(`${i[0]}_${o}${a}`);
1301
+ return Ce(`${i[0]}_${o}${a}`);
1302
1302
  }
1303
1303
  return null;
1304
1304
  }
1305
- function te(e) {
1305
+ function ae(e) {
1306
1306
  if (!e)
1307
1307
  return e;
1308
1308
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1309
1309
  if (e.match(/builder\.io/)) {
1310
1310
  let n = e;
1311
1311
  const i = Number(e.split("?width=")[1]);
1312
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${Qt(e, "width", a)} ${a}w`).concat([n]).join(", ");
1312
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${en(e, "width", a)} ${a}w`).concat([n]).join(", ");
1313
1313
  }
1314
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Yt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1314
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [tn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1315
1315
  }
1316
- function Xt(e) {
1316
+ function nn(e) {
1317
1317
  var a, o, r, l, d, c;
1318
1318
  function t() {
1319
1319
  var u;
@@ -1325,10 +1325,10 @@ function Xt(e) {
1325
1325
  if (!e.noWebp) {
1326
1326
  if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
1327
1327
  if (!e.srcset.includes(e.image.split("?")[0]))
1328
- return console.debug("Removed given srcset"), te(y);
1328
+ return console.debug("Removed given srcset"), ae(y);
1329
1329
  } else if (e.image && !e.srcset)
1330
- return te(y);
1331
- return te(y);
1330
+ return ae(y);
1331
+ return ae(y);
1332
1332
  }
1333
1333
  }
1334
1334
  function n() {
@@ -1345,9 +1345,9 @@ function Xt(e) {
1345
1345
  };
1346
1346
  return e.aspectRatio ? h : void 0;
1347
1347
  }
1348
- return /* @__PURE__ */ A(R, { children: [
1349
- /* @__PURE__ */ A(R, { children: [
1350
- /* @__PURE__ */ A("picture", { children: [
1348
+ return /* @__PURE__ */ B(R, { children: [
1349
+ /* @__PURE__ */ B(R, { children: [
1350
+ /* @__PURE__ */ B("picture", { children: [
1351
1351
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1352
1352
  /* @__PURE__ */ s(
1353
1353
  "img",
@@ -1399,7 +1399,7 @@ function Xt(e) {
1399
1399
  }` })
1400
1400
  ] });
1401
1401
  }
1402
- function Zt(e) {
1402
+ function an(e) {
1403
1403
  return /* @__PURE__ */ s(
1404
1404
  "section",
1405
1405
  {
@@ -1420,7 +1420,7 @@ function Zt(e) {
1420
1420
  }
1421
1421
  );
1422
1422
  }
1423
- const ne = {
1423
+ const oe = {
1424
1424
  "@type": "@builder.io/sdk:Element",
1425
1425
  layerName: "Accordion item title",
1426
1426
  responsiveStyles: {
@@ -1449,7 +1449,7 @@ const ne = {
1449
1449
  }
1450
1450
  }
1451
1451
  }]
1452
- }, ie = {
1452
+ }, re = {
1453
1453
  "@type": "@builder.io/sdk:Element",
1454
1454
  layerName: "Accordion item detail",
1455
1455
  responsiveStyles: {
@@ -1480,7 +1480,7 @@ const ne = {
1480
1480
  }
1481
1481
  }
1482
1482
  }]
1483
- }, en = {
1483
+ }, on = {
1484
1484
  name: "Builder:Accordion",
1485
1485
  canHaveChildren: !0,
1486
1486
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1497,19 +1497,19 @@ const ne = {
1497
1497
  name: "title",
1498
1498
  type: "uiBlocks",
1499
1499
  hideFromUI: !0,
1500
- defaultValue: [ne]
1500
+ defaultValue: [oe]
1501
1501
  }, {
1502
1502
  name: "detail",
1503
1503
  type: "uiBlocks",
1504
1504
  hideFromUI: !0,
1505
- defaultValue: [ie]
1505
+ defaultValue: [re]
1506
1506
  }],
1507
1507
  defaultValue: [{
1508
- title: [ne],
1509
- detail: [ie]
1508
+ title: [oe],
1509
+ detail: [re]
1510
1510
  }, {
1511
- title: [ne],
1512
- detail: [ie]
1511
+ title: [oe],
1512
+ detail: [re]
1513
1513
  }],
1514
1514
  showIf: (e) => !e.get("useChildrenForItems")
1515
1515
  }, {
@@ -1544,10 +1544,10 @@ const ne = {
1544
1544
  builderComponents: !0,
1545
1545
  builderLinkComponent: !0
1546
1546
  }
1547
- }, Se = (e) => e.toString();
1548
- function tn(e) {
1547
+ }, Te = (e) => e.toString();
1548
+ function rn(e) {
1549
1549
  var y;
1550
- const [t, n] = E(() => []);
1550
+ const [t, n] = I(() => []);
1551
1551
  function i() {
1552
1552
  return !!(e.grid || e.oneAtATime);
1553
1553
  }
@@ -1623,7 +1623,7 @@ function tn(e) {
1623
1623
  function h(u) {
1624
1624
  t.includes(u) ? n(i() ? [] : t.filter((v) => v !== u)) : n(i() ? [u] : t.concat(u));
1625
1625
  }
1626
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (y = e.items) == null ? void 0 : y.map((u, v) => /* @__PURE__ */ A(et.Fragment, { children: [
1626
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (y = e.items) == null ? void 0 : y.map((u, v) => /* @__PURE__ */ B(at.Fragment, { children: [
1627
1627
  /* @__PURE__ */ s(
1628
1628
  "div",
1629
1629
  {
@@ -1632,7 +1632,7 @@ function tn(e) {
1632
1632
  ...o(),
1633
1633
  ...e.grid && {
1634
1634
  width: e.gridRowWidth,
1635
- order: d() !== null ? Se(v) : Se(v + 1)
1635
+ order: d() !== null ? Te(v) : Te(v + 1)
1636
1636
  }
1637
1637
  },
1638
1638
  "data-index": v,
@@ -1670,7 +1670,7 @@ function tn(e) {
1670
1670
  ) : null
1671
1671
  ] }, v)) });
1672
1672
  }
1673
- const nn = {
1673
+ const ln = {
1674
1674
  name: "Core:Button",
1675
1675
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1676
1676
  defaultStyles: {
@@ -1706,7 +1706,7 @@ const nn = {
1706
1706
  shouldReceiveBuilderProps: {
1707
1707
  builderLinkComponent: !0
1708
1708
  }
1709
- }, an = {
1709
+ }, sn = {
1710
1710
  // TODO: ways to statically preprocess JSON for references, functions, etc
1711
1711
  name: "Columns",
1712
1712
  isRSC: !0,
@@ -1913,13 +1913,13 @@ const nn = {
1913
1913
  builderComponents: !0,
1914
1914
  builderLinkComponent: !0
1915
1915
  }
1916
- }, on = {
1916
+ }, cn = {
1917
1917
  name: "Fragment",
1918
1918
  static: !0,
1919
1919
  hidden: !0,
1920
1920
  canHaveChildren: !0,
1921
1921
  noWrap: !0
1922
- }, 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"], rn = ["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"], ln = {
1922
+ }, 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"], un = ["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"], dn = {
1923
1923
  name: "Image",
1924
1924
  static: !0,
1925
1925
  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",
@@ -1934,7 +1934,7 @@ const nn = {
1934
1934
  name: "image",
1935
1935
  type: "file",
1936
1936
  bubble: !0,
1937
- allowedFileTypes: de,
1937
+ allowedFileTypes: he,
1938
1938
  required: !0,
1939
1939
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1940
1940
  onChange: (e) => {
@@ -2027,7 +2027,7 @@ const nn = {
2027
2027
  shouldReceiveBuilderProps: {
2028
2028
  builderBlock: !0
2029
2029
  }
2030
- }, sn = {
2030
+ }, mn = {
2031
2031
  name: "PersonalizationContainer",
2032
2032
  shouldReceiveBuilderProps: {
2033
2033
  builderBlock: !0,
@@ -2063,7 +2063,7 @@ const nn = {
2063
2063
  }]
2064
2064
  }]
2065
2065
  };
2066
- function G(e) {
2066
+ function Y(e) {
2067
2067
  return /* @__PURE__ */ s(
2068
2068
  "script",
2069
2069
  {
@@ -2073,7 +2073,7 @@ function G(e) {
2073
2073
  }
2074
2074
  );
2075
2075
  }
2076
- function cn(e, t, n, i) {
2076
+ function fn(e, t, n, i) {
2077
2077
  function a(c) {
2078
2078
  return typeof c == "string";
2079
2079
  }
@@ -2130,7 +2130,7 @@ function cn(e, t, n, i) {
2130
2130
  }, d = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
2131
2131
  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) => r(e, c));
2132
2132
  }
2133
- const un = `function getPersonalizedVariant(variants, blockId, locale) {
2133
+ const hn = `function getPersonalizedVariant(variants, blockId, locale) {
2134
2134
  if (!navigator.cookieEnabled) {
2135
2135
  return;
2136
2136
  }
@@ -2183,7 +2183,7 @@ const un = `function getPersonalizedVariant(variants, blockId, locale) {
2183
2183
  } else if (variants && variants.length > 0) {
2184
2184
  removeVariants();
2185
2185
  }
2186
- }`, dn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
2186
+ }`, gn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
2187
2187
  function isString(val) {
2188
2188
  return typeof val === 'string';
2189
2189
  }
@@ -2262,10 +2262,10 @@ const un = `function getPersonalizedVariant(variants, blockId, locale) {
2262
2262
  return objectMatchesQuery(userAttributes, filter);
2263
2263
  });
2264
2264
  }`;
2265
- function mn(e, t) {
2266
- return !(!(e && e.length > 0) || !t || F());
2265
+ function bn(e, t) {
2266
+ return !(!(e && e.length > 0) || !t || L());
2267
2267
  }
2268
- function fn({
2268
+ function pn({
2269
2269
  variants: e,
2270
2270
  previewingIndex: t,
2271
2271
  isHydrated: n,
@@ -2277,12 +2277,12 @@ function fn({
2277
2277
  blocks: a != null ? a : [],
2278
2278
  path: "this.children"
2279
2279
  };
2280
- if (n && W())
2280
+ if (n && A())
2281
2281
  return typeof t == "number" && t < ((r = e == null ? void 0 : e.length) != null ? r : 0) ? {
2282
2282
  blocks: e[t].blocks,
2283
2283
  path: `component.options.variants.${t}.blocks`
2284
2284
  } : o;
2285
- if (F()) {
2285
+ if (L()) {
2286
2286
  const l = i == null ? void 0 : i[0];
2287
2287
  if (l)
2288
2288
  return {
@@ -2292,42 +2292,42 @@ function fn({
2292
2292
  }
2293
2293
  return o;
2294
2294
  }
2295
- const hn = (e, t, n) => `
2295
+ const yn = (e, t, n) => `
2296
2296
  (function() {
2297
- ${dn}
2298
- ${un}
2297
+ ${gn}
2298
+ ${hn}
2299
2299
  getPersonalizedVariant(${JSON.stringify(e)}, "${t}"${n ? `, "${n}"` : ""})
2300
2300
  })();
2301
2301
  `;
2302
- function gn(e) {
2302
+ function vn(e) {
2303
2303
  var g, S, b, k, C, P, w;
2304
- const t = $(null), [n, i] = E(
2305
- () => fe.getUserAttributes()
2306
- ), [a, o] = E(
2304
+ const t = O(null), [n, i] = I(
2305
+ () => be.getUserAttributes()
2306
+ ), [a, o] = I(
2307
2307
  () => {
2308
2308
  var x, m, p;
2309
- return hn(
2309
+ return yn(
2310
2310
  e.variants,
2311
2311
  ((x = e.builderBlock) == null ? void 0 : x.id) || "none",
2312
2312
  (p = (m = e.builderContext) == null ? void 0 : m.rootState) == null ? void 0 : p.locale
2313
2313
  );
2314
2314
  }
2315
- ), [r, l] = E(() => []), [d, c] = E(
2315
+ ), [r, l] = I(() => []), [d, c] = I(
2316
2316
  () => {
2317
2317
  var x;
2318
- return mn(
2318
+ return bn(
2319
2319
  e.variants,
2320
- M((x = e.builderContext) == null ? void 0 : x.canTrack)
2320
+ H((x = e.builderContext) == null ? void 0 : x.canTrack)
2321
2321
  );
2322
2322
  }
2323
- ), [h, y] = E(() => !1);
2323
+ ), [h, y] = I(() => !1);
2324
2324
  function u() {
2325
2325
  return (e.variants || []).filter((x) => {
2326
- var m, p, I, T;
2327
- return cn(
2326
+ var m, p, T, E;
2327
+ return fn(
2328
2328
  {
2329
2329
  ...(p = (m = e.builderContext) == null ? void 0 : m.rootState) != null && p.locale ? {
2330
- locale: (T = (I = e.builderContext) == null ? void 0 : I.rootState) == null ? void 0 : T.locale
2330
+ locale: (E = (T = e.builderContext) == null ? void 0 : T.rootState) == null ? void 0 : E.locale
2331
2331
  } : {},
2332
2332
  ...n
2333
2333
  },
@@ -2339,7 +2339,7 @@ function gn(e) {
2339
2339
  }
2340
2340
  function v() {
2341
2341
  var x;
2342
- return fn({
2342
+ return pn({
2343
2343
  variants: e.variants,
2344
2344
  fallbackBlocks: (x = e.builderBlock) == null ? void 0 : x.children,
2345
2345
  isHydrated: h,
@@ -2355,15 +2355,15 @@ function gn(e) {
2355
2355
  }
2356
2356
  ).join("");
2357
2357
  }
2358
- return B(() => {
2358
+ return V(() => {
2359
2359
  var m;
2360
2360
  y(!0);
2361
- const x = fe.subscribeOnUserAttributesChange(
2361
+ const x = be.subscribeOnUserAttributesChange(
2362
2362
  (p) => {
2363
2363
  i(p);
2364
2364
  }
2365
2365
  );
2366
- if (!(W() || Y())) {
2366
+ if (!(A() || Z())) {
2367
2367
  const p = u()[0];
2368
2368
  t.current && (t.current.dispatchEvent(
2369
2369
  new CustomEvent("builder.variantLoaded", {
@@ -2373,14 +2373,14 @@ function gn(e) {
2373
2373
  },
2374
2374
  bubbles: !0
2375
2375
  })
2376
- ), new IntersectionObserver((T) => {
2377
- T.forEach((V) => {
2378
- var N;
2379
- V.isIntersecting && t.current && t.current.dispatchEvent(
2376
+ ), new IntersectionObserver((E) => {
2377
+ E.forEach((N) => {
2378
+ var W;
2379
+ N.isIntersecting && t.current && t.current.dispatchEvent(
2380
2380
  new CustomEvent("builder.variantDisplayed", {
2381
2381
  detail: {
2382
2382
  variant: p || "default",
2383
- content: (N = e.builderContext) == null ? void 0 : N.content
2383
+ content: (W = e.builderContext) == null ? void 0 : W.content
2384
2384
  },
2385
2385
  bubbles: !0
2386
2386
  })
@@ -2389,18 +2389,18 @@ function gn(e) {
2389
2389
  }).observe(t.current));
2390
2390
  }
2391
2391
  r.push(x);
2392
- }, []), B(() => () => {
2392
+ }, []), V(() => () => {
2393
2393
  r.forEach((x) => x());
2394
- }, []), /* @__PURE__ */ A(
2394
+ }, []), /* @__PURE__ */ B(
2395
2395
  "div",
2396
2396
  {
2397
2397
  ref: t,
2398
2398
  ...e.attributes,
2399
2399
  className: `builder-personalization-container ${((g = e.attributes) == null ? void 0 : g.className) || ""}`,
2400
2400
  children: [
2401
- d ? /* @__PURE__ */ A(R, { children: [
2401
+ d ? /* @__PURE__ */ B(R, { children: [
2402
2402
  (S = e.variants) == null ? void 0 : S.map((x, m) => {
2403
- var p, I;
2403
+ var p, T;
2404
2404
  return /* @__PURE__ */ s(
2405
2405
  "template",
2406
2406
  {
@@ -2409,7 +2409,7 @@ function gn(e) {
2409
2409
  D,
2410
2410
  {
2411
2411
  blocks: x.blocks,
2412
- parent: (I = e.builderBlock) == null ? void 0 : I.id,
2412
+ parent: (T = e.builderBlock) == null ? void 0 : T.id,
2413
2413
  path: `component.options.variants.${m}.blocks`
2414
2414
  }
2415
2415
  )
@@ -2418,7 +2418,7 @@ function gn(e) {
2418
2418
  );
2419
2419
  }),
2420
2420
  /* @__PURE__ */ s(
2421
- j,
2421
+ z,
2422
2422
  {
2423
2423
  nonce: ((b = e.builderContext) == null ? void 0 : b.nonce) || "",
2424
2424
  styles: f(),
@@ -2426,7 +2426,7 @@ function gn(e) {
2426
2426
  }
2427
2427
  ),
2428
2428
  /* @__PURE__ */ s(
2429
- G,
2429
+ Y,
2430
2430
  {
2431
2431
  nonce: ((C = e.builderContext) == null ? void 0 : C.nonce) || "",
2432
2432
  scriptStr: a,
@@ -2446,7 +2446,7 @@ function gn(e) {
2446
2446
  }
2447
2447
  );
2448
2448
  }
2449
- const bn = {
2449
+ const xn = {
2450
2450
  name: "Core:Section",
2451
2451
  static: !0,
2452
2452
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -2485,7 +2485,7 @@ const bn = {
2485
2485
  }
2486
2486
  }
2487
2487
  }]
2488
- }, pn = {
2488
+ }, Sn = {
2489
2489
  name: "Slot",
2490
2490
  isRSC: !0,
2491
2491
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -2503,7 +2503,7 @@ const bn = {
2503
2503
  builderComponents: !0
2504
2504
  }
2505
2505
  };
2506
- function yn(e) {
2506
+ function kn(e) {
2507
2507
  var t, n, i;
2508
2508
  return /* @__PURE__ */ s(
2509
2509
  "div",
@@ -2527,7 +2527,7 @@ function yn(e) {
2527
2527
  }
2528
2528
  );
2529
2529
  }
2530
- const vn = {
2530
+ const Cn = {
2531
2531
  name: "Symbol",
2532
2532
  noWrap: !0,
2533
2533
  static: !0,
@@ -2566,7 +2566,7 @@ const vn = {
2566
2566
  builderComponents: !0,
2567
2567
  builderLinkComponent: !0
2568
2568
  }
2569
- }, ae = {
2569
+ }, le = {
2570
2570
  "@type": "@builder.io/sdk:Element",
2571
2571
  responsiveStyles: {
2572
2572
  large: {
@@ -2588,7 +2588,7 @@ const vn = {
2588
2588
  text: "New tab"
2589
2589
  }
2590
2590
  }
2591
- }, oe = {
2591
+ }, se = {
2592
2592
  "@type": "@builder.io/sdk:Element",
2593
2593
  responsiveStyles: {
2594
2594
  large: {
@@ -2604,7 +2604,7 @@ const vn = {
2604
2604
  text: "New tab content "
2605
2605
  }
2606
2606
  }
2607
- }, xn = {
2607
+ }, Tn = {
2608
2608
  name: "Builder: Tabs",
2609
2609
  inputs: [{
2610
2610
  name: "tabs",
@@ -2614,16 +2614,16 @@ const vn = {
2614
2614
  name: "label",
2615
2615
  type: "uiBlocks",
2616
2616
  hideFromUI: !0,
2617
- defaultValue: [ae]
2617
+ defaultValue: [le]
2618
2618
  }, {
2619
2619
  name: "content",
2620
2620
  type: "uiBlocks",
2621
2621
  hideFromUI: !0,
2622
- defaultValue: [oe]
2622
+ defaultValue: [se]
2623
2623
  }],
2624
2624
  defaultValue: [{
2625
2625
  label: [{
2626
- ...ae,
2626
+ ...le,
2627
2627
  component: {
2628
2628
  name: "Text",
2629
2629
  options: {
@@ -2632,7 +2632,7 @@ const vn = {
2632
2632
  }
2633
2633
  }],
2634
2634
  content: [{
2635
- ...oe,
2635
+ ...se,
2636
2636
  component: {
2637
2637
  name: "Text",
2638
2638
  options: {
@@ -2642,7 +2642,7 @@ const vn = {
2642
2642
  }]
2643
2643
  }, {
2644
2644
  label: [{
2645
- ...ae,
2645
+ ...le,
2646
2646
  component: {
2647
2647
  name: "Text",
2648
2648
  options: {
@@ -2651,7 +2651,7 @@ const vn = {
2651
2651
  }
2652
2652
  }],
2653
2653
  content: [{
2654
- ...oe,
2654
+ ...se,
2655
2655
  component: {
2656
2656
  name: "Text",
2657
2657
  options: {
@@ -2708,9 +2708,9 @@ const vn = {
2708
2708
  builderLinkComponent: !0
2709
2709
  }
2710
2710
  };
2711
- function Sn(e) {
2711
+ function wn(e) {
2712
2712
  var o;
2713
- const [t, n] = E(
2713
+ const [t, n] = I(
2714
2714
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
2715
2715
  );
2716
2716
  function i(r) {
@@ -2719,7 +2719,7 @@ function Sn(e) {
2719
2719
  function a(r) {
2720
2720
  r === t && e.collapsible ? n(-1) : n(r);
2721
2721
  }
2722
- return /* @__PURE__ */ A("div", { children: [
2722
+ return /* @__PURE__ */ B("div", { children: [
2723
2723
  /* @__PURE__ */ s(
2724
2724
  "div",
2725
2725
  {
@@ -2767,7 +2767,7 @@ function Sn(e) {
2767
2767
  ) }) : null
2768
2768
  ] });
2769
2769
  }
2770
- const kn = {
2770
+ const In = {
2771
2771
  shouldReceiveBuilderProps: {
2772
2772
  builderBlock: !1,
2773
2773
  builderContext: !0
@@ -2790,7 +2790,7 @@ const kn = {
2790
2790
  textAlign: "center"
2791
2791
  }
2792
2792
  };
2793
- function Cn(e) {
2793
+ function En(e) {
2794
2794
  var t;
2795
2795
  return /* @__PURE__ */ s(
2796
2796
  "div",
@@ -2803,7 +2803,7 @@ function Cn(e) {
2803
2803
  }
2804
2804
  );
2805
2805
  }
2806
- const Tn = {
2806
+ const Rn = {
2807
2807
  name: "Custom Code",
2808
2808
  static: !0,
2809
2809
  requiredPermissions: ["editCode"],
@@ -2826,9 +2826,9 @@ const Tn = {
2826
2826
  advanced: !0
2827
2827
  }]
2828
2828
  };
2829
- function wn(e) {
2830
- const t = $(null), [n, i] = E(() => []), [a, o] = E(() => []);
2831
- return B(() => {
2829
+ function Pn(e) {
2830
+ const t = O(null), [n, i] = I(() => []), [a, o] = I(() => []);
2831
+ return V(() => {
2832
2832
  var l;
2833
2833
  if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
2834
2834
  return;
@@ -2864,7 +2864,7 @@ function wn(e) {
2864
2864
  }
2865
2865
  );
2866
2866
  }
2867
- const In = {
2867
+ const Vn = {
2868
2868
  name: "Embed",
2869
2869
  static: !0,
2870
2870
  inputs: [{
@@ -2879,9 +2879,9 @@ const In = {
2879
2879
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2880
2880
  hideFromUI: !0
2881
2881
  }]
2882
- }, En = ["text/javascript", "application/javascript", "application/ecmascript"], Rn = (e) => En.includes(e.type);
2883
- function Pn(e) {
2884
- const t = $(null), [n, i] = E(() => []), [a, o] = E(() => []), [r, l] = E(() => !1);
2882
+ }, Bn = ["text/javascript", "application/javascript", "application/ecmascript"], Nn = (e) => Bn.includes(e.type);
2883
+ function An(e) {
2884
+ const t = O(null), [n, i] = I(() => []), [a, o] = I(() => []), [r, l] = I(() => !1);
2885
2885
  function d() {
2886
2886
  if (!t.current || !t.current.getElementsByTagName)
2887
2887
  return;
@@ -2892,7 +2892,7 @@ function Pn(e) {
2892
2892
  n.push(y.src);
2893
2893
  const u = document.createElement("script");
2894
2894
  u.async = !0, u.src = y.src, document.head.appendChild(u);
2895
- } else if (Rn(y) && !a.includes(y.innerText))
2895
+ } else if (Nn(y) && !a.includes(y.innerText))
2896
2896
  try {
2897
2897
  a.push(y.innerText), new Function(y.innerText)();
2898
2898
  } catch (u) {
@@ -2900,7 +2900,7 @@ function Pn(e) {
2900
2900
  }
2901
2901
  }
2902
2902
  }
2903
- return B(() => {
2903
+ return V(() => {
2904
2904
  t.current && !r && (l(!0), d());
2905
2905
  }, [t.current, r]), /* @__PURE__ */ s(
2906
2906
  "div",
@@ -2911,7 +2911,7 @@ function Pn(e) {
2911
2911
  }
2912
2912
  );
2913
2913
  }
2914
- const Vn = {
2914
+ const Wn = {
2915
2915
  name: "Form:Form",
2916
2916
  // editableTags: ['builder-form-error']
2917
2917
  defaults: {
@@ -3148,12 +3148,12 @@ const Vn = {
3148
3148
  builderComponents: !0,
3149
3149
  builderLinkComponent: !0
3150
3150
  }
3151
- }, Bn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Nn = () => {
3151
+ }, $n = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Dn = () => {
3152
3152
  const e = process.env.NODE_ENV || "production";
3153
- return Bn.includes(e) ? e : "production";
3153
+ return $n.includes(e) ? e : "production";
3154
3154
  };
3155
- function An(e) {
3156
- const t = $(null), [n, i] = E(() => "unsubmitted"), [a, o] = E(() => null), [r, l] = E(() => "");
3155
+ function Fn(e) {
3156
+ const t = O(null), [n, i] = I(() => "unsubmitted"), [a, o] = I(() => null), [r, l] = I(() => "");
3157
3157
  function d(y) {
3158
3158
  var v, f;
3159
3159
  const u = {
@@ -3163,7 +3163,7 @@ function An(e) {
3163
3163
  e.builderContext.rootSetState ? (f = (v = e.builderContext).rootSetState) == null || f.call(v, u) : e.builderContext.rootState = u;
3164
3164
  }
3165
3165
  function c() {
3166
- return W() && e.previewState || n;
3166
+ return A() && e.previewState || n;
3167
3167
  }
3168
3168
  function h(y) {
3169
3169
  var v;
@@ -3180,25 +3180,25 @@ function An(e) {
3180
3180
  let S;
3181
3181
  const b = new FormData(f), k = Array.from(f.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
3182
3182
  let p;
3183
- const I = m.name;
3183
+ const T = m.name;
3184
3184
  if (m instanceof HTMLInputElement)
3185
3185
  if (m.type === "radio") {
3186
3186
  if (m.checked)
3187
3187
  return p = m.name, {
3188
- key: I,
3188
+ key: T,
3189
3189
  value: p
3190
3190
  };
3191
3191
  } else if (m.type === "checkbox")
3192
3192
  p = m.checked;
3193
3193
  else if (m.type === "number" || m.type === "range") {
3194
- const T = m.valueAsNumber;
3195
- isNaN(T) || (p = T);
3194
+ const E = m.valueAsNumber;
3195
+ isNaN(E) || (p = E);
3196
3196
  } else
3197
3197
  m.type === "file" ? p = m.files : p = m.value;
3198
3198
  else
3199
3199
  p = m.value;
3200
3200
  return {
3201
- key: I,
3201
+ key: T,
3202
3202
  value: p
3203
3203
  };
3204
3204
  });
@@ -3209,8 +3209,8 @@ function An(e) {
3209
3209
  S = b;
3210
3210
  else {
3211
3211
  const m = {};
3212
- Array.from(k).forEach(({ value: p, key: I }) => {
3213
- De(m, I, p);
3212
+ Array.from(k).forEach(({ value: p, key: T }) => {
3213
+ Oe(m, T, p);
3214
3214
  }), S = JSON.stringify(m);
3215
3215
  }
3216
3216
  C && C !== "multipart/form-data" && (u && ((v = e.action) != null && v.includes("zapier.com")) || (g["content-type"] = C));
@@ -3218,32 +3218,32 @@ function An(e) {
3218
3218
  if (t.current && (t.current.dispatchEvent(P), P.defaultPrevented))
3219
3219
  return;
3220
3220
  i("sending");
3221
- const w = `${Nn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3221
+ const w = `${Dn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3222
3222
  e.sendSubmissionsToEmail || ""
3223
3223
  )}&name=${encodeURIComponent(e.name || "")}`, x = e.sendSubmissionsTo === "email" ? w : e.action;
3224
- Ee(x), fetch(x, { body: S, headers: g, method: e.method || "post" }).then(
3224
+ Ve(x), fetch(x, { body: S, headers: g, method: e.method || "post" }).then(
3225
3225
  async (m) => {
3226
3226
  let p;
3227
- const I = m.headers.get("content-type");
3228
- if (I && I.indexOf("application/json") !== -1 ? p = await m.json() : p = await m.text(), !m.ok && e.errorMessagePath) {
3229
- let T = Ne(p, e.errorMessagePath);
3230
- T && (typeof T != "string" && (T = JSON.stringify(T)), l(T), d({ formErrorMessage: T }));
3227
+ const T = m.headers.get("content-type");
3228
+ if (T && T.indexOf("application/json") !== -1 ? p = await m.json() : p = await m.text(), !m.ok && e.errorMessagePath) {
3229
+ let E = $e(p, e.errorMessagePath);
3230
+ E && (typeof E != "string" && (E = JSON.stringify(E)), l(E), d({ formErrorMessage: E }));
3231
3231
  }
3232
3232
  if (o(p), i(m.ok ? "success" : "error"), m.ok) {
3233
- const T = new CustomEvent("submit:success", {
3233
+ const E = new CustomEvent("submit:success", {
3234
3234
  detail: { res: m, body: p }
3235
3235
  });
3236
3236
  if (t.current) {
3237
- if (t.current.dispatchEvent(T), T.defaultPrevented)
3237
+ if (t.current.dispatchEvent(E), E.defaultPrevented)
3238
3238
  return;
3239
3239
  e.resetFormOnSubmit !== !1 && t.current.reset();
3240
3240
  }
3241
3241
  if (e.successUrl)
3242
3242
  if (t.current) {
3243
- const V = new CustomEvent("route", {
3243
+ const N = new CustomEvent("route", {
3244
3244
  detail: { url: e.successUrl }
3245
3245
  });
3246
- t.current.dispatchEvent(V), V.defaultPrevented || (location.href = e.successUrl);
3246
+ t.current.dispatchEvent(N), N.defaultPrevented || (location.href = e.successUrl);
3247
3247
  } else
3248
3248
  location.href = e.successUrl;
3249
3249
  }
@@ -3257,9 +3257,9 @@ function An(e) {
3257
3257
  );
3258
3258
  }
3259
3259
  }
3260
- return /* @__PURE__ */ A(R, { children: [
3260
+ return /* @__PURE__ */ B(R, { children: [
3261
3261
  " ",
3262
- /* @__PURE__ */ A(
3262
+ /* @__PURE__ */ B(
3263
3263
  "form",
3264
3264
  {
3265
3265
  validate: e.validate,
@@ -3304,7 +3304,7 @@ function An(e) {
3304
3304
  " "
3305
3305
  ] });
3306
3306
  }
3307
- const Wn = {
3307
+ const On = {
3308
3308
  name: "Form:Input",
3309
3309
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
3310
3310
  inputs: [
@@ -3356,12 +3356,12 @@ const Wn = {
3356
3356
  borderColor: "#ccc"
3357
3357
  }
3358
3358
  };
3359
- function Dn(e) {
3360
- return /* @__PURE__ */ Ve(
3359
+ function Ln(e) {
3360
+ return /* @__PURE__ */ Ae(
3361
3361
  "input",
3362
3362
  {
3363
3363
  ...e.attributes,
3364
- key: W() && e.defaultValue ? e.defaultValue : "default-key",
3364
+ key: A() && e.defaultValue ? e.defaultValue : "default-key",
3365
3365
  placeholder: e.placeholder,
3366
3366
  type: e.type,
3367
3367
  name: e.name,
@@ -3371,7 +3371,7 @@ function Dn(e) {
3371
3371
  }
3372
3372
  );
3373
3373
  }
3374
- const $n = {
3374
+ const Un = {
3375
3375
  name: "Form:Select",
3376
3376
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
3377
3377
  defaultStyles: {
@@ -3414,14 +3414,14 @@ const $n = {
3414
3414
  static: !0,
3415
3415
  noWrap: !0
3416
3416
  };
3417
- function Fn(e) {
3417
+ function _n(e) {
3418
3418
  var t;
3419
- return /* @__PURE__ */ Ve(
3419
+ return /* @__PURE__ */ Ae(
3420
3420
  "select",
3421
3421
  {
3422
3422
  ...e.attributes,
3423
3423
  value: e.value,
3424
- key: W() && e.defaultValue ? e.defaultValue : "default-key",
3424
+ key: A() && e.defaultValue ? e.defaultValue : "default-key",
3425
3425
  defaultValue: e.defaultValue,
3426
3426
  name: e.name,
3427
3427
  required: e.required
@@ -3429,7 +3429,7 @@ function Fn(e) {
3429
3429
  (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
3430
3430
  );
3431
3431
  }
3432
- const On = {
3432
+ const qn = {
3433
3433
  name: "Form:SubmitButton",
3434
3434
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
3435
3435
  defaultStyles: {
@@ -3455,10 +3455,10 @@ const On = {
3455
3455
  // TODO: defaultChildren
3456
3456
  // canHaveChildren: true,
3457
3457
  };
3458
- function Ln(e) {
3458
+ function Mn(e) {
3459
3459
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
3460
3460
  }
3461
- const Un = {
3461
+ const Hn = {
3462
3462
  name: "Form:TextArea",
3463
3463
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
3464
3464
  inputs: [{
@@ -3495,7 +3495,7 @@ const Un = {
3495
3495
  static: !0,
3496
3496
  noWrap: !0
3497
3497
  };
3498
- function _n(e) {
3498
+ function jn(e) {
3499
3499
  return /* @__PURE__ */ s(
3500
3500
  "textarea",
3501
3501
  {
@@ -3508,7 +3508,7 @@ function _n(e) {
3508
3508
  }
3509
3509
  );
3510
3510
  }
3511
- const qn = {
3511
+ const zn = {
3512
3512
  // friendlyName?
3513
3513
  name: "Raw:Img",
3514
3514
  hideFromInsertMenu: !0,
@@ -3517,13 +3517,13 @@ const qn = {
3517
3517
  name: "image",
3518
3518
  bubble: !0,
3519
3519
  type: "file",
3520
- allowedFileTypes: de,
3520
+ allowedFileTypes: he,
3521
3521
  required: !0
3522
3522
  }],
3523
3523
  noWrap: !0,
3524
3524
  static: !0
3525
3525
  };
3526
- function Mn(e) {
3526
+ function Kn(e) {
3527
3527
  return /* @__PURE__ */ s(
3528
3528
  "img",
3529
3529
  {
@@ -3535,10 +3535,10 @@ function Mn(e) {
3535
3535
  src: e.imgSrc || e.image,
3536
3536
  ...e.attributes
3537
3537
  },
3538
- W() && e.imgSrc || "default-key"
3538
+ A() && e.imgSrc || "default-key"
3539
3539
  );
3540
3540
  }
3541
- const Hn = {
3541
+ const Jn = {
3542
3542
  name: "Video",
3543
3543
  canHaveChildren: !0,
3544
3544
  defaultStyles: {
@@ -3549,14 +3549,14 @@ const Hn = {
3549
3549
  inputs: [{
3550
3550
  name: "video",
3551
3551
  type: "file",
3552
- allowedFileTypes: rn,
3552
+ allowedFileTypes: un,
3553
3553
  bubble: !0,
3554
3554
  defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
3555
3555
  required: !0
3556
3556
  }, {
3557
3557
  name: "posterImage",
3558
3558
  type: "file",
3559
- allowedFileTypes: de,
3559
+ allowedFileTypes: he,
3560
3560
  helperText: "Image to show before the video plays"
3561
3561
  }, {
3562
3562
  name: "autoPlay",
@@ -3623,9 +3623,9 @@ const Hn = {
3623
3623
  builderBlock: !0
3624
3624
  }
3625
3625
  };
3626
- function jn(e) {
3626
+ function Gn(e) {
3627
3627
  var r, l, d, c, h, y, u;
3628
- const t = $(null);
3628
+ const t = O(null);
3629
3629
  function n() {
3630
3630
  return {
3631
3631
  ...e.autoPlay === !0 ? {
@@ -3650,9 +3650,9 @@ function jn(e) {
3650
3650
  ...n()
3651
3651
  };
3652
3652
  }
3653
- const [a, o] = E(() => {
3653
+ const [a, o] = I(() => {
3654
3654
  });
3655
- return B(() => {
3655
+ return V(() => {
3656
3656
  if (e.lazyLoad) {
3657
3657
  const v = new IntersectionObserver(function(f) {
3658
3658
  f.forEach(function(g) {
@@ -3673,9 +3673,9 @@ function jn(e) {
3673
3673
  });
3674
3674
  t.current && v.observe(t.current), o(v);
3675
3675
  }
3676
- }, []), B(() => () => {
3676
+ }, []), V(() => () => {
3677
3677
  a && a.disconnect();
3678
- }, []), /* @__PURE__ */ A(
3678
+ }, []), /* @__PURE__ */ B(
3679
3679
  "div",
3680
3680
  {
3681
3681
  style: {
@@ -3759,67 +3759,67 @@ function jn(e) {
3759
3759
  }
3760
3760
  );
3761
3761
  }
3762
- const zn = () => [{
3763
- component: wn,
3764
- ...Tn
3765
- }, {
3762
+ const Qn = () => [{
3766
3763
  component: Pn,
3767
- ...In
3764
+ ...Rn
3768
3765
  }, {
3769
3766
  component: An,
3770
3767
  ...Vn
3771
3768
  }, {
3772
- component: Dn,
3769
+ component: Fn,
3773
3770
  ...Wn
3774
3771
  }, {
3775
3772
  component: Ln,
3776
3773
  ...On
3777
3774
  }, {
3778
- component: Fn,
3779
- ...$n
3775
+ component: Mn,
3776
+ ...qn
3780
3777
  }, {
3781
3778
  component: _n,
3782
3779
  ...Un
3783
- }, {
3784
- component: Mn,
3785
- ...qn
3786
3780
  }, {
3787
3781
  component: jn,
3788
3782
  ...Hn
3789
- }], ke = () => [{
3790
- component: it,
3791
- ...nn
3792
3783
  }, {
3793
- component: Jt,
3794
- ...an
3784
+ component: Kn,
3785
+ ...zn
3795
3786
  }, {
3796
- component: Gt,
3797
- ...on
3787
+ component: Gn,
3788
+ ...Jn
3789
+ }], we = () => [{
3790
+ component: lt,
3791
+ ...ln
3798
3792
  }, {
3799
3793
  component: Xt,
3800
- ...ln
3794
+ ...sn
3801
3795
  }, {
3802
3796
  component: Zt,
3803
- ...bn
3797
+ ...cn
3804
3798
  }, {
3805
- component: yn,
3806
- ...pn
3799
+ component: nn,
3800
+ ...dn
3807
3801
  }, {
3808
- component: bi,
3809
- ...vn
3802
+ component: an,
3803
+ ...xn
3810
3804
  }, {
3811
- component: Cn,
3812
- ...kn
3805
+ component: kn,
3806
+ ...Sn
3813
3807
  }, {
3814
- component: gn,
3815
- ...sn
3808
+ component: xi,
3809
+ ...Cn
3816
3810
  }, {
3817
- component: Sn,
3818
- ...xn
3811
+ component: En,
3812
+ ...In
3819
3813
  }, {
3820
- component: tn,
3821
- ...en
3822
- }, ...zn()], Kn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3814
+ component: vn,
3815
+ ...mn
3816
+ }, {
3817
+ component: wn,
3818
+ ...Tn
3819
+ }, {
3820
+ component: rn,
3821
+ ...on
3822
+ }, ...Qn()], Yn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3823
3823
  function getAndSetVariantId() {
3824
3824
  function setCookie(name, value, days) {
3825
3825
  let expires = '';
@@ -3875,7 +3875,7 @@ const zn = () => [{
3875
3875
  }).join('');
3876
3876
  styleEl.innerHTML = newStyleStr;
3877
3877
  }
3878
- }`, Jn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3878
+ }`, Xn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3879
3879
  if (!navigator.cookieEnabled) {
3880
3880
  return;
3881
3881
  }
@@ -3909,29 +3909,29 @@ const zn = () => [{
3909
3909
  thisScriptEl?.remove();
3910
3910
  }
3911
3911
  return;
3912
- }`, je = "builderIoAbTest", ze = "builderIoRenderContent", z = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3912
+ }`, Je = "builderIoAbTest", Ge = "builderIoRenderContent", J = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3913
3913
  ...t,
3914
3914
  testVariationId: t.id,
3915
3915
  id: e == null ? void 0 : e.id
3916
- })), Gn = ({
3916
+ })), Zn = ({
3917
3917
  canTrack: e,
3918
3918
  content: t
3919
- }) => !(!(z(t).length > 0) || !e || F()), Qn = (e) => e === "react" || e === "reactNative", Ke = Qn(O), Yn = () => `
3920
- window.${je} = ${Kn}
3921
- window.${ze} = ${Jn}
3922
- `, Xn = (e, t) => `
3923
- window.${je}(
3924
- "${t}",${JSON.stringify(e)}, ${Ke}
3925
- )`, Zn = ({
3919
+ }) => !(!(J(t).length > 0) || !e || L()), ei = (e) => e === "react" || e === "reactNative", Qe = ei(U), ti = () => `
3920
+ window.${Je} = ${Yn}
3921
+ window.${Ge} = ${Xn}
3922
+ `, ni = (e, t) => `
3923
+ window.${Je}(
3924
+ "${t}",${JSON.stringify(e)}, ${Qe}
3925
+ )`, ii = ({
3926
3926
  contentId: e,
3927
3927
  variationId: t
3928
- }) => `window.${ze}(
3929
- "${t}", "${e}", ${Ke}
3928
+ }) => `window.${Ge}(
3929
+ "${t}", "${e}", ${Qe}
3930
3930
  )`;
3931
- function Ce(e) {
3931
+ function Ie(e) {
3932
3932
  return Math.round(e * 1e3) / 1e3;
3933
3933
  }
3934
- const ei = (e, t, n = !0) => {
3934
+ const ai = (e, t, n = !0) => {
3935
3935
  if (!(e instanceof HTMLElement))
3936
3936
  return null;
3937
3937
  let i = n ? e : e.parentElement;
@@ -3942,35 +3942,35 @@ const ei = (e, t, n = !0) => {
3942
3942
  return i;
3943
3943
  } while (i = i.parentElement);
3944
3944
  return null;
3945
- }, ti = (e) => ei(e, (t) => {
3945
+ }, oi = (e) => ai(e, (t) => {
3946
3946
  const n = t.getAttribute("builder-id") || t.id;
3947
3947
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3948
- }), Te = ({
3948
+ }), Ee = ({
3949
3949
  event: e,
3950
3950
  target: t
3951
3951
  }) => {
3952
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, o = Ce(i / n.width), r = Ce(a / n.height);
3952
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, o = Ie(i / n.width), r = Ie(a / n.height);
3953
3953
  return {
3954
3954
  x: o,
3955
3955
  y: r
3956
3956
  };
3957
- }, ni = (e) => {
3958
- const t = e.target, n = t && ti(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3957
+ }, ri = (e) => {
3958
+ const t = e.target, n = t && oi(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3959
3959
  return {
3960
3960
  targetBuilderElement: i || void 0,
3961
3961
  metadata: {
3962
- targetOffset: t ? Te({
3962
+ targetOffset: t ? Ee({
3963
3963
  event: e,
3964
3964
  target: t
3965
3965
  }) : void 0,
3966
- builderTargetOffset: n ? Te({
3966
+ builderTargetOffset: n ? Ee({
3967
3967
  event: e,
3968
3968
  target: n
3969
3969
  }) : void 0,
3970
3970
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3971
3971
  }
3972
3972
  };
3973
- }, ii = ["svelte", "qwik", "vue"], we = () => ii.includes(O) && (W() || Y()), ai = (e) => {
3973
+ }, li = ["svelte", "qwik", "vue"], Re = () => li.includes(U) && (A() || Z()), si = (e) => {
3974
3974
  var o, r;
3975
3975
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
3976
3976
  let a = "";
@@ -3996,15 +3996,15 @@ font-weight: ${l};
3996
3996
  `.trim());
3997
3997
  }
3998
3998
  return a;
3999
- }, oi = ({
3999
+ }, ci = ({
4000
4000
  customFonts: e
4001
4001
  }) => {
4002
4002
  var t;
4003
- return ((t = e == null ? void 0 : e.map((n) => ai(n))) == null ? void 0 : t.join(" ")) || "";
4004
- }, ri = ({
4003
+ return ((t = e == null ? void 0 : e.map((n) => si(n))) == null ? void 0 : t.join(" ")) || "";
4004
+ }, ui = ({
4005
4005
  cssCode: e,
4006
4006
  contentId: t
4007
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", li = `
4007
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", di = `
4008
4008
  .builder-button {
4009
4009
  all: unset;
4010
4010
  }
@@ -4021,23 +4021,24 @@ font-weight: ${l};
4021
4021
  text-align: inherit;
4022
4022
  font-family: inherit;
4023
4023
  }
4024
- `, si = (e) => e ? "" : li, ci = (e) => `variant-${e}`;
4025
- function ui(e) {
4024
+ `, mi = (e) => e ? "" : di, fi = (e) => `variant-${e}`;
4025
+ function hi(e) {
4026
4026
  var k, C, P;
4027
- const t = $(null);
4027
+ const t = O(null);
4028
+ I(() => !1);
4028
4029
  function n(w) {
4029
4030
  var m, p;
4030
4031
  const x = {
4031
4032
  ...e.builderContextSignal.rootState,
4032
4033
  ...w
4033
4034
  };
4034
- e.builderContextSignal.rootSetState ? (p = (m = e.builderContextSignal).rootSetState) == null || p.call(m, x) : e.setBuilderContextSignal((I) => ({
4035
- ...I,
4035
+ e.builderContextSignal.rootSetState ? (p = (m = e.builderContextSignal).rootSetState) == null || p.call(m, x) : e.setBuilderContextSignal((T) => ({
4036
+ ...T,
4036
4037
  rootState: x
4037
4038
  }));
4038
4039
  }
4039
4040
  function i(w) {
4040
- var m, p, I, T, V;
4041
+ var m, p, T, E, N;
4041
4042
  const x = {
4042
4043
  ...e.builderContextSignal.content,
4043
4044
  ...w,
@@ -4048,11 +4049,11 @@ function ui(e) {
4048
4049
  meta: {
4049
4050
  ...(p = e.builderContextSignal.content) == null ? void 0 : p.meta,
4050
4051
  ...w == null ? void 0 : w.meta,
4051
- breakpoints: ((I = w == null ? void 0 : w.meta) == null ? void 0 : I.breakpoints) || ((V = (T = e.builderContextSignal.content) == null ? void 0 : T.meta) == null ? void 0 : V.breakpoints)
4052
+ breakpoints: ((T = w == null ? void 0 : w.meta) == null ? void 0 : T.breakpoints) || ((N = (E = e.builderContextSignal.content) == null ? void 0 : E.meta) == null ? void 0 : N.breakpoints)
4052
4053
  }
4053
4054
  };
4054
- e.setBuilderContextSignal((N) => ({
4055
- ...N,
4055
+ e.setBuilderContextSignal((W) => ({
4056
+ ...W,
4056
4057
  content: x
4057
4058
  }));
4058
4059
  }
@@ -4062,25 +4063,25 @@ function ui(e) {
4062
4063
  "aria-hidden": !0
4063
4064
  };
4064
4065
  }
4065
- const [o, r] = E(
4066
+ const [o, r] = I(
4066
4067
  () => e.contentWrapper || "div"
4067
4068
  );
4068
4069
  function l(w) {
4069
- return Xe({
4070
+ return nt({
4070
4071
  model: e.model,
4071
4072
  trustedHosts: e.trustedHosts,
4072
4073
  callbacks: {
4073
4074
  configureSdk: (x) => {
4074
- var I;
4075
+ var T;
4075
4076
  const { breakpoints: m, contentId: p } = x;
4076
- !p || p !== ((I = e.builderContextSignal.content) == null ? void 0 : I.id) || m && i({
4077
+ !p || p !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || m && i({
4077
4078
  meta: {
4078
4079
  breakpoints: m
4079
4080
  }
4080
4081
  });
4081
4082
  },
4082
4083
  animation: (x) => {
4083
- Oe(x);
4084
+ _e(x);
4084
4085
  },
4085
4086
  contentUpdate: (x) => {
4086
4087
  i(x);
@@ -4091,19 +4092,19 @@ function ui(e) {
4091
4092
  }
4092
4093
  })(w);
4093
4094
  }
4094
- const [d, c] = E(() => ({})), [h, y] = E(() => ({})), [u, v] = E(() => !1);
4095
+ const [d, c] = I(() => ({})), [h, y] = I(() => ({})), [u, v] = I(() => !1);
4095
4096
  function f(w) {
4096
4097
  var x, m;
4097
4098
  if (e.builderContextSignal.content) {
4098
- const p = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, I = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
4099
- he({
4099
+ const p = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, T = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
4100
+ pe({
4100
4101
  apiHost: e.apiHost,
4101
4102
  type: "click",
4102
- canTrack: M(e.canTrack),
4103
- contentId: I,
4103
+ canTrack: H(e.canTrack),
4104
+ contentId: T,
4104
4105
  apiKey: e.apiKey,
4105
- variationId: p !== I ? p : void 0,
4106
- ...ni(w),
4106
+ variationId: p !== T ? p : void 0,
4107
+ ...ri(w),
4107
4108
  unique: !u
4108
4109
  });
4109
4110
  }
@@ -4112,15 +4113,15 @@ function ui(e) {
4112
4113
  function g() {
4113
4114
  var x, m, p;
4114
4115
  const w = (p = (m = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : m.httpRequests) != null ? p : {};
4115
- Object.entries(w).forEach(([I, T]) => {
4116
- if (!T || h[I] || d[I] && !W())
4116
+ Object.entries(w).forEach(([T, E]) => {
4117
+ if (!E || h[T] || d[T] && !A())
4117
4118
  return;
4118
- h[I] = !0;
4119
- const V = T.replace(
4119
+ h[T] = !0;
4120
+ const N = E.replace(
4120
4121
  /{{([^}]+)}}/g,
4121
- (N, U) => String(
4122
- L({
4123
- code: U,
4122
+ (W, $) => String(
4123
+ _({
4124
+ code: $,
4124
4125
  context: e.context || {},
4125
4126
  localState: void 0,
4126
4127
  rootState: e.builderContextSignal.rootState,
@@ -4128,24 +4129,24 @@ function ui(e) {
4128
4129
  })
4129
4130
  )
4130
4131
  );
4131
- Ee(V), fetch(V).then((N) => N.json()).then((N) => {
4132
+ Ve(N), fetch(N).then((W) => W.json()).then((W) => {
4132
4133
  n({
4133
- [I]: N
4134
- }), d[I] = !0;
4135
- }).catch((N) => {
4136
- console.error("error fetching dynamic data", T, N);
4134
+ [T]: W
4135
+ }), d[T] = !0;
4136
+ }).catch((W) => {
4137
+ console.error("error fetching dynamic data", E, W);
4137
4138
  }).finally(() => {
4138
- h[I] = !1;
4139
+ h[T] = !1;
4139
4140
  });
4140
4141
  });
4141
4142
  }
4142
4143
  function S() {
4143
- W() && window.dispatchEvent(
4144
+ A() && window.dispatchEvent(
4144
4145
  new CustomEvent(
4145
4146
  "builder:component:stateChange",
4146
4147
  {
4147
4148
  detail: {
4148
- state: ce(e.builderContextSignal.rootState),
4149
+ state: me(e.builderContextSignal.rootState),
4149
4150
  ref: {
4150
4151
  name: e.model
4151
4152
  }
@@ -4154,11 +4155,11 @@ function ui(e) {
4154
4155
  )
4155
4156
  );
4156
4157
  }
4157
- const b = $(!1);
4158
- return b.current || (g(), S(), b.current = !0), B(() => {
4159
- var w, x, m, p;
4160
- if (F()) {
4161
- if (W() && !e.isNestedRender && (window.addEventListener("message", l), Ge(), Qe({
4158
+ const b = O(!1);
4159
+ return b.current || (g(), S(), b.current = !0), V(() => {
4160
+ var w, x, m, p, T;
4161
+ if (L()) {
4162
+ A() && !e.isNestedRender && (window.addEventListener("message", l), Xe(), Ze({
4162
4163
  ...e.locale ? {
4163
4164
  locale: e.locale
4164
4165
  } : {},
@@ -4172,71 +4173,76 @@ function ui(e) {
4172
4173
  apiKey: e.apiKey
4173
4174
  }), Object.values(
4174
4175
  e.builderContextSignal.componentInfos
4175
- ).forEach((T) => {
4176
- var V, N;
4177
- if (!((V = T.models) != null && V.length) || T.models.includes(e.model)) {
4178
- const U = Ye(T);
4179
- (N = window.parent) == null || N.postMessage(U, "*");
4176
+ ).forEach(($) => {
4177
+ var F, K;
4178
+ if (!((F = $.models) != null && F.length) || $.models.includes(e.model)) {
4179
+ const ne = et($);
4180
+ (K = window.parent) == null || K.postMessage(ne, "*");
4180
4181
  }
4181
4182
  }), window.addEventListener(
4182
4183
  "builder:component:stateChangeListenerActivated",
4183
4184
  S
4184
- )), e.builderContextSignal.content && M(e.canTrack)) {
4185
- const T = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, V = (m = e.builderContextSignal.content) == null ? void 0 : m.id, N = e.apiKey;
4186
- he({
4185
+ ));
4186
+ const E = e.builderContextSignal.content && H(e.canTrack), N = tt({
4187
+ name: `builder.tests.${(x = e.builderContextSignal.content) == null ? void 0 : x.id}`,
4188
+ canTrack: !0
4189
+ }), W = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId;
4190
+ if (E && W === N) {
4191
+ const $ = (p = e.builderContextSignal.content) == null ? void 0 : p.id, F = e.apiKey;
4192
+ pe({
4187
4193
  apiHost: e.apiHost,
4188
4194
  type: "impression",
4189
4195
  canTrack: !0,
4190
- contentId: V,
4191
- apiKey: N,
4192
- variationId: T !== V ? T : void 0
4196
+ contentId: $,
4197
+ apiKey: F,
4198
+ variationId: N !== $ ? N : void 0
4193
4199
  });
4194
4200
  }
4195
- if (Y() && !W()) {
4196
- const T = new URL(location.href).searchParams, V = T.get("builder.preview"), N = T.get(
4197
- `builder.overrides.${V}`
4198
- ), U = T.get("apiKey") || T.get("builder.space");
4199
- (V === "BUILDER_STUDIO" || V === e.model && U === e.apiKey && (!e.content || N === e.content.id)) && Re({
4201
+ if (Z() && !A()) {
4202
+ const $ = new URL(location.href).searchParams, F = $.get("builder.preview"), K = $.get(
4203
+ `builder.overrides.${F}`
4204
+ ), ne = $.get("apiKey") || $.get("builder.space");
4205
+ (F === "BUILDER_STUDIO" || F === e.model && ne === e.apiKey && (!e.content || K === e.content.id)) && Be({
4200
4206
  model: e.model,
4201
4207
  apiKey: e.apiKey,
4202
4208
  apiVersion: e.builderContextSignal.apiVersion,
4203
- ...V === "BUILDER_STUDIO" && ((p = e.context) != null && p.symbolId) ? {
4209
+ ...F === "BUILDER_STUDIO" && ((T = e.context) != null && T.symbolId) ? {
4204
4210
  query: {
4205
4211
  id: e.context.symbolId
4206
4212
  }
4207
4213
  } : {}
4208
- }).then((me) => {
4209
- me && i(me);
4214
+ }).then((ge) => {
4215
+ ge && i(ge);
4210
4216
  });
4211
4217
  }
4212
4218
  }
4213
- }, []), B(() => {
4219
+ }, []), V(() => {
4214
4220
  e.content && i(e.content);
4215
- }, [e.content]), B(() => {
4221
+ }, [e.content]), V(() => {
4216
4222
  S();
4217
- }, [e.builderContextSignal.rootState]), B(() => {
4223
+ }, [e.builderContextSignal.rootState]), V(() => {
4218
4224
  e.data && n(e.data);
4219
- }, [e.data]), B(() => {
4225
+ }, [e.data]), V(() => {
4220
4226
  e.locale && n({
4221
4227
  locale: e.locale
4222
4228
  });
4223
- }, [e.locale]), B(() => () => {
4224
- F() && (window.removeEventListener("message", l), window.removeEventListener(
4229
+ }, [e.locale]), V(() => () => {
4230
+ L() && (window.removeEventListener("message", l), window.removeEventListener(
4225
4231
  "builder:component:stateChangeListenerActivated",
4226
4232
  S
4227
4233
  ));
4228
- }, []), /* @__PURE__ */ s(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || we() ? /* @__PURE__ */ s(
4234
+ }, []), /* @__PURE__ */ s(de.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Re() ? /* @__PURE__ */ s(
4229
4235
  o,
4230
4236
  {
4231
4237
  ref: t,
4232
4238
  onClick: (w) => f(w),
4233
4239
  "builder-content-id": (k = e.builderContextSignal.content) == null ? void 0 : k.id,
4234
4240
  "builder-model": e.model,
4235
- className: ci(
4241
+ className: fi(
4236
4242
  ((C = e.content) == null ? void 0 : C.testVariationId) || ((P = e.content) == null ? void 0 : P.id)
4237
4243
  ),
4238
4244
  style: {
4239
- display: !e.builderContextSignal.content && we() ? "none" : void 0
4245
+ display: !e.builderContextSignal.content && Re() ? "none" : void 0
4240
4246
  },
4241
4247
  ...a(),
4242
4248
  ...e.contentWrapperProps,
@@ -4244,21 +4250,21 @@ function ui(e) {
4244
4250
  }
4245
4251
  ) : null });
4246
4252
  }
4247
- function di(e) {
4248
- const [t, n] = E(
4253
+ function gi(e) {
4254
+ const [t, n] = I(
4249
4255
  () => `
4250
- ${ri({
4256
+ ${ui({
4251
4257
  cssCode: e.cssCode,
4252
4258
  contentId: e.contentId
4253
4259
  })}
4254
- ${oi({
4260
+ ${ci({
4255
4261
  customFonts: e.customFonts
4256
4262
  })}
4257
- ${si(e.isNestedRender)}
4263
+ ${mi(e.isNestedRender)}
4258
4264
  `.trim()
4259
4265
  );
4260
4266
  return /* @__PURE__ */ s(
4261
- j,
4267
+ z,
4262
4268
  {
4263
4269
  id: "builderio-content",
4264
4270
  styles: t,
@@ -4266,7 +4272,7 @@ ${si(e.isNestedRender)}
4266
4272
  }
4267
4273
  );
4268
4274
  }
4269
- const mi = ({
4275
+ const bi = ({
4270
4276
  content: e,
4271
4277
  data: t,
4272
4278
  locale: n
@@ -4283,7 +4289,7 @@ const mi = ({
4283
4289
  locale: n
4284
4290
  } : {}
4285
4291
  };
4286
- }, fi = ({
4292
+ }, pi = ({
4287
4293
  content: e,
4288
4294
  data: t
4289
4295
  }) => e ? {
@@ -4294,12 +4300,12 @@ const mi = ({
4294
4300
  },
4295
4301
  meta: e == null ? void 0 : e.meta
4296
4302
  } : void 0;
4297
- function Ie(e) {
4303
+ function Pe(e) {
4298
4304
  var c, h, y, u, v, f, g, S, b;
4299
- const [t, n] = E(
4305
+ const [t, n] = I(
4300
4306
  () => {
4301
4307
  var k, C;
4302
- return Zn({
4308
+ return ii({
4303
4309
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4304
4310
  variationId: (k = e.content) == null ? void 0 : k.testVariationId,
4305
4311
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -4313,27 +4319,27 @@ function Ie(e) {
4313
4319
  rootState: k
4314
4320
  }));
4315
4321
  }
4316
- const [a, o] = E(
4322
+ const [a, o] = I(
4317
4323
  () => [
4318
- ...ke(),
4324
+ ...we(),
4319
4325
  ...e.customComponents || []
4320
4326
  ].reduce(
4321
4327
  (k, { component: C, ...P }) => ({
4322
4328
  ...k,
4323
4329
  [P.name]: {
4324
4330
  component: C,
4325
- ...ge(P)
4331
+ ...ye(P)
4326
4332
  }
4327
4333
  }),
4328
4334
  {}
4329
4335
  )
4330
- ), [r, l] = E(() => ({
4331
- content: fi({
4336
+ ), [r, l] = I(() => ({
4337
+ content: pi({
4332
4338
  content: e.content,
4333
4339
  data: e.data
4334
4340
  }),
4335
4341
  localState: void 0,
4336
- rootState: mi({
4342
+ rootState: bi({
4337
4343
  content: e.content,
4338
4344
  data: e.data,
4339
4345
  locale: e.locale
@@ -4344,12 +4350,12 @@ function Ie(e) {
4344
4350
  apiKey: e.apiKey,
4345
4351
  apiVersion: e.apiVersion,
4346
4352
  componentInfos: [
4347
- ...ke(),
4353
+ ...we(),
4348
4354
  ...e.customComponents || []
4349
4355
  ].reduce(
4350
4356
  (k, { component: C, ...P }) => ({
4351
4357
  ...k,
4352
- [P.name]: ge(P)
4358
+ [P.name]: ye(P)
4353
4359
  }),
4354
4360
  {}
4355
4361
  ),
@@ -4358,13 +4364,13 @@ function Ie(e) {
4358
4364
  BlocksWrapperProps: e.blocksWrapperProps || {},
4359
4365
  nonce: e.nonce || "",
4360
4366
  model: e.model
4361
- })), d = $(!1);
4367
+ })), d = O(!1);
4362
4368
  if (!d.current) {
4363
- e.apiKey || Q.error(
4369
+ e.apiKey || X.error(
4364
4370
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4365
4371
  );
4366
4372
  const k = (h = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
4367
- k && L({
4373
+ k && _({
4368
4374
  code: k,
4369
4375
  context: e.context || {},
4370
4376
  localState: void 0,
@@ -4376,13 +4382,13 @@ function Ie(e) {
4376
4382
  }), d.current = !0;
4377
4383
  }
4378
4384
  return /* @__PURE__ */ s(
4379
- Be.Provider,
4385
+ We.Provider,
4380
4386
  {
4381
4387
  value: {
4382
4388
  registeredComponents: a
4383
4389
  },
4384
- children: /* @__PURE__ */ A(
4385
- ui,
4390
+ children: /* @__PURE__ */ B(
4391
+ hi,
4386
4392
  {
4387
4393
  apiHost: e.apiHost,
4388
4394
  nonce: e.nonce,
@@ -4403,7 +4409,7 @@ function Ie(e) {
4403
4409
  setBuilderContextSignal: l,
4404
4410
  children: [
4405
4411
  e.isSsrAbTest ? /* @__PURE__ */ s(
4406
- G,
4412
+ Y,
4407
4413
  {
4408
4414
  id: "builderio-variant-visibility",
4409
4415
  scriptStr: t,
@@ -4411,7 +4417,7 @@ function Ie(e) {
4411
4417
  }
4412
4418
  ) : null,
4413
4419
  /* @__PURE__ */ s(
4414
- di,
4420
+ gi,
4415
4421
  {
4416
4422
  nonce: e.nonce || "",
4417
4423
  isNestedRender: e.isNestedRender,
@@ -4435,18 +4441,18 @@ function Ie(e) {
4435
4441
  }
4436
4442
  );
4437
4443
  }
4438
- function hi(e) {
4444
+ function yi(e) {
4439
4445
  var r;
4440
- const [t, n] = E(
4441
- () => Gn({
4442
- canTrack: M(e.canTrack),
4446
+ const [t, n] = I(
4447
+ () => Zn({
4448
+ canTrack: H(e.canTrack),
4443
4449
  content: e.content
4444
4450
  })
4445
4451
  );
4446
4452
  function i() {
4447
4453
  var l;
4448
- return Xn(
4449
- z(e.content).map((d) => ({
4454
+ return ni(
4455
+ J(e.content).map((d) => ({
4450
4456
  id: d.testVariationId,
4451
4457
  testRatio: d.testRatio
4452
4458
  })),
@@ -4454,31 +4460,31 @@ function hi(e) {
4454
4460
  );
4455
4461
  }
4456
4462
  function a() {
4457
- return z(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
4463
+ return J(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
4458
4464
  }
4459
4465
  function o() {
4460
4466
  var l;
4461
4467
  return t ? {
4462
4468
  ...e.content,
4463
4469
  testVariationId: (l = e.content) == null ? void 0 : l.id
4464
- } : Ze({
4470
+ } : it({
4465
4471
  item: e.content,
4466
- canTrack: M(e.canTrack)
4472
+ canTrack: H(e.canTrack)
4467
4473
  });
4468
4474
  }
4469
- return B(() => {
4470
- }, []), /* @__PURE__ */ A(R, { children: [
4471
- !e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */ s(
4472
- G,
4475
+ return V(() => {
4476
+ }, []), /* @__PURE__ */ B(R, { children: [
4477
+ !e.isNestedRender && U !== "reactNative" ? /* @__PURE__ */ s(
4478
+ Y,
4473
4479
  {
4474
4480
  id: "builderio-init-variants-fns",
4475
- scriptStr: Yn(),
4481
+ scriptStr: ti(),
4476
4482
  nonce: e.nonce || ""
4477
4483
  }
4478
4484
  ) : null,
4479
- t ? /* @__PURE__ */ A(R, { children: [
4485
+ t ? /* @__PURE__ */ B(R, { children: [
4480
4486
  /* @__PURE__ */ s(
4481
- j,
4487
+ z,
4482
4488
  {
4483
4489
  id: "builderio-variants",
4484
4490
  styles: a(),
@@ -4486,15 +4492,15 @@ function hi(e) {
4486
4492
  }
4487
4493
  ),
4488
4494
  /* @__PURE__ */ s(
4489
- G,
4495
+ Y,
4490
4496
  {
4491
4497
  id: "builderio-variants-visibility",
4492
4498
  scriptStr: i(),
4493
4499
  nonce: e.nonce || ""
4494
4500
  }
4495
4501
  ),
4496
- (r = z(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
4497
- Ie,
4502
+ (r = J(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
4503
+ Pe,
4498
4504
  {
4499
4505
  apiHost: e.apiHost,
4500
4506
  isNestedRender: e.isNestedRender,
@@ -4522,7 +4528,7 @@ function hi(e) {
4522
4528
  ))
4523
4529
  ] }) : null,
4524
4530
  /* @__PURE__ */ s(
4525
- Ie,
4531
+ Pe,
4526
4532
  {
4527
4533
  apiHost: e.apiHost,
4528
4534
  nonce: e.nonce,
@@ -4549,13 +4555,13 @@ function hi(e) {
4549
4555
  )
4550
4556
  ] });
4551
4557
  }
4552
- const gi = async ({
4558
+ const vi = async ({
4553
4559
  builderContextValue: e,
4554
4560
  symbol: t
4555
4561
  }) => {
4556
4562
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4557
4563
  (e != null && e.apiKey))
4558
- return Re({
4564
+ return Be({
4559
4565
  model: t.model,
4560
4566
  apiKey: e.apiKey,
4561
4567
  apiVersion: e.apiVersion,
@@ -4565,10 +4571,10 @@ const gi = async ({
4565
4571
  }
4566
4572
  }
4567
4573
  }).catch((n) => {
4568
- Q.error("Could not fetch symbol content: ", n);
4574
+ X.error("Could not fetch symbol content: ", n);
4569
4575
  });
4570
4576
  };
4571
- function bi(e) {
4577
+ function xi(e) {
4572
4578
  var l, d, c, h, y;
4573
4579
  function t() {
4574
4580
  return "div";
@@ -4579,29 +4585,29 @@ function bi(e) {
4579
4585
  function i() {
4580
4586
  var u, v;
4581
4587
  return [
4582
- e.attributes[H()],
4588
+ e.attributes[j()],
4583
4589
  "builder-symbol",
4584
4590
  (u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
4585
4591
  (v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4586
4592
  ].filter(Boolean).join(" ");
4587
4593
  }
4588
- const [a, o] = E(() => {
4594
+ const [a, o] = I(() => {
4589
4595
  var u;
4590
4596
  return (u = e.symbol) == null ? void 0 : u.content;
4591
4597
  });
4592
4598
  function r() {
4593
- a || gi({
4599
+ a || vi({
4594
4600
  symbol: e.symbol,
4595
4601
  builderContextValue: e.builderContext
4596
4602
  }).then((u) => {
4597
4603
  u && o(u);
4598
4604
  });
4599
4605
  }
4600
- return B(() => {
4601
- }, []), B(() => {
4606
+ return V(() => {
4607
+ }, []), V(() => {
4602
4608
  r();
4603
4609
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
4604
- hi,
4610
+ yi,
4605
4611
  {
4606
4612
  nonce: e.builderContext.nonce,
4607
4613
  isNestedRender: !0,
@@ -4628,15 +4634,15 @@ function bi(e) {
4628
4634
  }
4629
4635
  export {
4630
4636
  D as Blocks,
4631
- se as BuilderContext,
4632
- it as Button,
4633
- Jt as Columns,
4634
- hi as Content,
4635
- Gt as Fragment,
4636
- Xt as Image,
4637
- Zt as Section,
4638
- bi as Symbol,
4639
- Cn as Text,
4640
- jn as Video,
4641
- ki as setClientUserAttributes
4637
+ de as BuilderContext,
4638
+ lt as Button,
4639
+ Xt as Columns,
4640
+ yi as Content,
4641
+ Zt as Fragment,
4642
+ nn as Image,
4643
+ an as Section,
4644
+ xi as Symbol,
4645
+ En as Text,
4646
+ Gn as Video,
4647
+ Ii as setClientUserAttributes
4642
4648
  };