@builder.io/sdk-react 2.0.29 → 2.0.31

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 (69) hide show
  1. package/lib/browser/blocks-exports.cjs +18 -18
  2. package/lib/browser/blocks-exports.mjs +584 -587
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/{edge/server-entry-05dd3f4b.js → browser/server-entry-77f4513c.js} +245 -228
  6. package/lib/browser/server-entry-d7a13b14.cjs +2 -0
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/{accordion-200ac141.cjs → accordion-696fad97.cjs} +1 -1
  10. package/lib/edge/{accordion-1fae9bd5.js → accordion-d1213549.js} +1 -1
  11. package/lib/edge/{blocks-b47cd3fc.js → blocks-9ef79098.js} +3 -3
  12. package/lib/edge/{blocks-fd9e445c.cjs → blocks-aa67fee8.cjs} +1 -1
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +2 -2
  15. package/lib/edge/{button-ffe70d17.cjs → button-2ed05d22.cjs} +1 -1
  16. package/lib/edge/{button-5cc9a94f.js → button-b41f1129.js} +2 -2
  17. package/lib/edge/{columns-9ad996bb.js → columns-5f8497fb.js} +4 -4
  18. package/lib/edge/{columns-7651ba21.cjs → columns-ca9ac444.cjs} +1 -1
  19. package/lib/edge/{content-variants-a9017964.cjs → content-variants-2f5a6ccd.cjs} +4 -4
  20. package/lib/edge/{content-variants-0ece6057.js → content-variants-9c4db669.js} +118 -118
  21. package/lib/edge/{evaluate-73e0df40.cjs → evaluate-8453ffc0.cjs} +1 -1
  22. package/lib/edge/{evaluate-5cfe10b0.js → evaluate-f626f584.js} +1 -1
  23. package/lib/edge/{form-186bf59f.js → form-a5407307.js} +30 -33
  24. package/lib/edge/form-b0c5418b.cjs +1 -0
  25. package/lib/edge/{get-class-prop-name-7d6a77a4.js → get-class-prop-name-40d6defb.js} +1 -1
  26. package/lib/edge/{get-class-prop-name-11734dbc.cjs → get-class-prop-name-86f0330a.cjs} +1 -1
  27. package/lib/edge/{img-ef160d2b.cjs → img-83ed868e.cjs} +1 -1
  28. package/lib/edge/{img-6c1f4ea4.js → img-fa36f926.js} +1 -1
  29. package/lib/edge/index.cjs +1 -1
  30. package/lib/edge/index.mjs +1 -1
  31. package/lib/edge/{input-97dc199a.cjs → input-3106b577.cjs} +1 -1
  32. package/lib/edge/{input-b4ee4339.js → input-93e42e28.js} +1 -1
  33. package/lib/edge/{select-2cdf2c8f.cjs → select-29495824.cjs} +1 -1
  34. package/lib/edge/{select-e79d6e1b.js → select-4cf4356a.js} +1 -1
  35. package/lib/edge/server-entry-4cd5389e.cjs +2 -0
  36. package/lib/{node/server-entry-00c52924.js → edge/server-entry-ea35faa6.js} +243 -231
  37. package/lib/edge/server-entry.cjs +1 -1
  38. package/lib/edge/server-entry.mjs +1 -1
  39. package/lib/edge/{slot-680234a8.js → slot-6ad4152e.js} +4 -4
  40. package/lib/edge/{slot-66ba436b.cjs → slot-c8ab71b6.cjs} +1 -1
  41. package/lib/edge/{symbol-4d0b1228.cjs → symbol-74313a4b.cjs} +1 -1
  42. package/lib/edge/{symbol-e920f028.js → symbol-d2b48e54.js} +2 -2
  43. package/lib/edge/{tabs-1bea88d1.js → tabs-6d924c90.js} +4 -4
  44. package/lib/edge/{tabs-1f3f45cf.cjs → tabs-f699b318.cjs} +1 -1
  45. package/lib/edge/{text-9533b278.cjs → text-7120ee0c.cjs} +1 -1
  46. package/lib/edge/{text-fd78274f.js → text-7137a306.js} +2 -2
  47. package/lib/node/blocks-exports.cjs +20 -20
  48. package/lib/node/blocks-exports.mjs +576 -579
  49. package/lib/node/index.cjs +1 -1
  50. package/lib/node/index.mjs +3 -3
  51. package/lib/node/init.cjs +1 -1
  52. package/lib/node/init.mjs +3 -3
  53. package/lib/{browser/server-entry-712b1faa.js → node/server-entry-32ef60c0.js} +213 -197
  54. package/lib/node/server-entry-9c026e49.cjs +2 -0
  55. package/lib/node/server-entry.cjs +1 -1
  56. package/lib/node/server-entry.mjs +1 -1
  57. package/lib/node/{setIvm-156def75.js → setIvm-26e65816.js} +1 -1
  58. package/lib/node/{setIvm-ca4d1590.cjs → setIvm-bf1ad328.cjs} +1 -1
  59. package/lib/node/setIvm.cjs +1 -1
  60. package/lib/node/setIvm.mjs +2 -2
  61. package/lib/node/{should-force-browser-runtime-in-node-bc24fcdd.cjs → should-force-browser-runtime-in-node-000957e3.cjs} +1 -1
  62. package/lib/node/{should-force-browser-runtime-in-node-eb3eac6a.js → should-force-browser-runtime-in-node-343fd6c7.js} +1 -1
  63. package/package.json +1 -1
  64. package/types/constants/sdk-version.d.ts +1 -1
  65. package/types/functions/log-fetch.d.ts +1 -0
  66. package/lib/browser/server-entry-3e3279b7.cjs +0 -2
  67. package/lib/edge/form-c98c7fc1.cjs +0 -1
  68. package/lib/edge/server-entry-0224e0bb.cjs +0 -2
  69. package/lib/node/server-entry-0b1fe826.cjs +0 -2
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import { jsx as s, Fragment as T, jsxs as V } from "react/jsx-runtime";
3
- import { TARGET as D, isEditing as W, isBrowser as L, getUserAttributes as Ue, checkIsDefined as q, logger as z, isPreviewing as ve, registerInsertMenu as He, setupBrowserForEditing as je, createRegisterComponentMessage as Me, getDefaultCanTrack as K, _track as le, fetchOneEntry as Se, createEditorListener as _e, serializeIncludingFunctions as se, handleABTestingSync as qe } from "./server-entry-712b1faa.js";
4
- import { createContext as ke, useEffect as B, useState as w, useRef as $, useContext as ce, createElement as Ce } from "react";
5
- const Ke = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ze = (e) => typeof e == "string" && Ke.has(e.toLowerCase());
6
- function ie(e) {
7
- return /* @__PURE__ */ s(T, { children: ze(e.TagName) ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(T, { 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 { jsx as s, Fragment as I, jsxs as V } from "react/jsx-runtime";
3
+ import { TARGET as D, isEditing as W, isBrowser as L, getUserAttributes as He, checkIsDefined as K, logger as J, isPreviewing as Se, logFetch as ke, registerInsertMenu as je, setupBrowserForEditing as Me, createRegisterComponentMessage as _e, getDefaultCanTrack as z, _track as se, fetchOneEntry as Ce, createEditorListener as qe, serializeIncludingFunctions as ce, handleABTestingSync as Ke } from "./server-entry-77f4513c.js";
4
+ import { createContext as Te, useEffect as B, useState as R, useRef as $, useContext as de, createElement as Ie } from "react";
5
+ const ze = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Je = (e) => typeof e == "string" && ze.has(e.toLowerCase());
6
+ function oe(e) {
7
+ return /* @__PURE__ */ s(I, { children: Je(e.TagName) ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(I, { 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 }) }) });
8
8
  }
9
9
  const H = () => {
10
10
  switch (D) {
@@ -20,7 +20,7 @@ const H = () => {
20
20
  return "class";
21
21
  }
22
22
  };
23
- function Je(e) {
23
+ function Ge(e) {
24
24
  function t() {
25
25
  return {
26
26
  ...e.attributes,
@@ -35,7 +35,7 @@ function Je(e) {
35
35
  };
36
36
  }
37
37
  return /* @__PURE__ */ s(
38
- ie,
38
+ oe,
39
39
  {
40
40
  attributes: t(),
41
41
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
@@ -44,7 +44,7 @@ function Je(e) {
44
44
  }
45
45
  );
46
46
  }
47
- const oe = ke({
47
+ const ae = Te({
48
48
  content: null,
49
49
  context: {},
50
50
  localState: void 0,
@@ -58,24 +58,24 @@ const oe = ke({
58
58
  BlocksWrapper: "div",
59
59
  BlocksWrapperProps: {},
60
60
  nonce: ""
61
- }), Te = ke({ registeredComponents: {} });
62
- function Ge(e) {
61
+ }), we = Te({ registeredComponents: {} });
62
+ function Ye(e) {
63
63
  var t;
64
64
  return {
65
65
  ...(t = e.component) == null ? void 0 : t.options,
66
66
  ...e.options
67
67
  };
68
68
  }
69
- function Ye(e, ...t) {
69
+ function Qe(e, ...t) {
70
70
  const n = Object.assign({}, e);
71
71
  for (const i of t)
72
72
  delete n[i];
73
73
  return n;
74
74
  }
75
- const Ie = (e, t, n) => {
75
+ const Ee = (e, t, n) => {
76
76
  const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, r) => o != null ? o[r] : o, e);
77
77
  return i === void 0 || i === e ? n : i;
78
- }, Qe = ({
78
+ }, Xe = ({
79
79
  builder: e,
80
80
  context: t,
81
81
  event: n,
@@ -87,15 +87,15 @@ const Ie = (e, t, n) => {
87
87
  builder: e,
88
88
  context: t,
89
89
  event: n
90
- }), Xe = () => ({
90
+ }), Ze = () => ({
91
91
  isEditing: W(),
92
92
  isBrowser: L(),
93
93
  isServer: !L(),
94
- getUserAttributes: () => Ue()
95
- }), Ze = (e, {
94
+ getUserAttributes: () => He()
95
+ }), et = (e, {
96
96
  isExpression: t = !0
97
97
  }) => /* 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;
98
- function we({
98
+ function Re({
99
99
  rootState: e,
100
100
  localState: t,
101
101
  rootSetState: n
@@ -105,7 +105,7 @@ function we({
105
105
  if (t && o in t)
106
106
  return t[o];
107
107
  const r = i[o];
108
- return typeof r == "object" && r !== null ? we({
108
+ return typeof r == "object" && r !== null ? Re({
109
109
  rootState: r,
110
110
  localState: void 0,
111
111
  rootSetState: n ? (a) => {
@@ -120,7 +120,7 @@ function we({
120
120
  }
121
121
  });
122
122
  }
123
- const de = ({
123
+ const ue = ({
124
124
  code: e,
125
125
  builder: t,
126
126
  context: n,
@@ -129,11 +129,11 @@ const de = ({
129
129
  rootSetState: r,
130
130
  rootState: a
131
131
  }) => {
132
- const l = Qe({
132
+ const l = Xe({
133
133
  builder: t,
134
134
  context: n,
135
135
  event: i,
136
- state: we({
136
+ state: Re({
137
137
  rootState: a,
138
138
  localState: o,
139
139
  rootSetState: r
@@ -141,23 +141,23 @@ const de = ({
141
141
  });
142
142
  return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
143
143
  };
144
- function et() {
144
+ function tt() {
145
145
  var e;
146
- return typeof process != "undefined" && q((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
146
+ return typeof process != "undefined" && K((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
147
147
  }
148
- const tt = ({
148
+ const nt = ({
149
149
  shouldLogWarning: e
150
150
  }) => {
151
151
  var o;
152
- if (!et())
152
+ if (!tt())
153
153
  return !1;
154
154
  const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
155
- return t && n && !i ? (e && z.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;
156
- }, nt = (e) => (L() || tt({
155
+ return t && n && !i ? (e && J.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;
156
+ }, it = (e) => (L() || nt({
157
157
  shouldLogWarning: !0
158
- }), de(e)), it = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, ot = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, at = (e) => {
158
+ }), ue(e)), ot = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, at = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, rt = (e) => {
159
159
  var t, n, i, o, r, a;
160
- return ((i = (n = (t = it.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((a = (r = (o = ot.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : r.getPath) == null ? void 0 : a.slice(1));
160
+ return ((i = (n = (t = ot.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((a = (r = (o = at.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : r.getPath) == null ? void 0 : a.slice(1));
161
161
  };
162
162
  function O({
163
163
  code: e,
@@ -170,17 +170,17 @@ function O({
170
170
  }) {
171
171
  if (e.trim() === "")
172
172
  return;
173
- const l = at(e.trim());
173
+ const l = rt(e.trim());
174
174
  if (l)
175
- return Ie({
175
+ return Ee({
176
176
  ...i,
177
177
  ...n
178
178
  }, l);
179
179
  const d = {
180
- code: Ze(e, {
180
+ code: et(e, {
181
181
  isExpression: a
182
182
  }),
183
- builder: Xe(),
183
+ builder: Ze(),
184
184
  context: t,
185
185
  event: r,
186
186
  rootSetState: o,
@@ -188,35 +188,35 @@ function O({
188
188
  localState: n
189
189
  };
190
190
  try {
191
- return nt(d);
191
+ return it(d);
192
192
  } catch (c) {
193
- z.error("Failed code evaluation: " + c.message, {
193
+ J.error("Failed code evaluation: " + c.message, {
194
194
  code: e
195
195
  });
196
196
  return;
197
197
  }
198
198
  }
199
- const ae = (e) => JSON.parse(JSON.stringify(e)), Ee = (e, t, n) => {
199
+ const re = (e) => JSON.parse(JSON.stringify(e)), Pe = (e, t, n) => {
200
200
  if (Object(e) !== e)
201
201
  return e;
202
202
  const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
203
203
  return i.slice(0, -1).reduce((o, r, a) => Object(o[r]) === o[r] ? o[r] : o[r] = Math.abs(Number(i[a + 1])) >> 0 === +i[a + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
204
204
  };
205
- function te(e) {
205
+ function ne(e) {
206
206
  if (e === null || typeof e != "object")
207
207
  return e;
208
208
  if (Array.isArray(e))
209
- return e.map((n) => te(n));
209
+ return e.map((n) => ne(n));
210
210
  if (e["@type"] === "@builder.io/sdk:Element")
211
211
  return e;
212
212
  const t = {};
213
213
  for (const n in e)
214
- n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = te(e[n]));
214
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ne(e[n]));
215
215
  return t;
216
216
  }
217
- const rt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), lt = (e) => {
218
- if (rt) {
219
- const t = ae(e);
217
+ const lt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), st = (e) => {
218
+ if (lt) {
219
+ const t = re(e);
220
220
  return {
221
221
  ...t,
222
222
  properties: {
@@ -227,7 +227,7 @@ const rt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), lt = (e) =
227
227
  }
228
228
  };
229
229
  } else {
230
- const t = te(Ye(e, "children", "meta"));
230
+ const t = ne(Qe(e, "children", "meta"));
231
231
  return {
232
232
  ...t,
233
233
  properties: {
@@ -240,7 +240,7 @@ const rt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), lt = (e) =
240
240
  meta: e.meta
241
241
  };
242
242
  }
243
- }, st = ({
243
+ }, ct = ({
244
244
  block: e,
245
245
  context: t,
246
246
  localState: n,
@@ -249,7 +249,7 @@ const rt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), lt = (e) =
249
249
  }) => {
250
250
  if (!e.bindings)
251
251
  return e;
252
- const r = lt(e);
252
+ const r = st(e);
253
253
  for (const a in e.bindings) {
254
254
  const l = e.bindings[a], d = O({
255
255
  code: l,
@@ -258,11 +258,11 @@ const rt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), lt = (e) =
258
258
  rootSetState: o,
259
259
  context: t
260
260
  });
261
- Ee(r, a, d);
261
+ Pe(r, a, d);
262
262
  }
263
263
  return r;
264
264
  };
265
- function ct({
265
+ function dt({
266
266
  block: e,
267
267
  context: t,
268
268
  shouldEvaluateBindings: n,
@@ -271,7 +271,7 @@ function ct({
271
271
  rootSetState: r
272
272
  }) {
273
273
  const a = e;
274
- return n ? st({
274
+ return n ? ct({
275
275
  block: a,
276
276
  localState: i,
277
277
  rootState: o,
@@ -279,8 +279,8 @@ function ct({
279
279
  context: t
280
280
  }) : a;
281
281
  }
282
- const J = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
283
- function dt(e, t, n = {}) {
282
+ const G = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
283
+ function ut(e, t, n = {}) {
284
284
  let i, o, r, a = null, l = 0;
285
285
  const d = function() {
286
286
  l = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
@@ -302,55 +302,55 @@ function U(e, ...t) {
302
302
  }
303
303
  return n;
304
304
  }
305
- function ut(e) {
305
+ function mt(e) {
306
306
  for (const t of e)
307
307
  switch (t.trigger) {
308
308
  case "pageLoad":
309
- Be(t);
309
+ Ae(t);
310
310
  break;
311
311
  case "scrollInView":
312
- ft(t);
312
+ ht(t);
313
313
  break;
314
314
  }
315
315
  }
316
- function Re(e) {
316
+ function Be(e) {
317
317
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
318
318
  }
319
- function Pe(e, t) {
320
- const n = mt(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
319
+ function Ve(e, t) {
320
+ const n = ft(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
321
321
  for (const l of a)
322
322
  for (const d of n)
323
323
  d in l || (l[d] = i[d]);
324
324
  }
325
- function mt(e) {
325
+ function ft(e) {
326
326
  const t = [];
327
327
  for (const n of e.steps)
328
328
  for (const i in n.styles)
329
329
  t.indexOf(i) === -1 && t.push(i);
330
330
  return t;
331
331
  }
332
- function Be(e) {
332
+ function Ae(e) {
333
333
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
334
334
  if (!t.length) {
335
- Re(e.elementId || e.id || "");
335
+ Be(e.elementId || e.id || "");
336
336
  return;
337
337
  }
338
338
  Array.from(t).forEach((n) => {
339
- Pe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", U(n.style, e.steps[0].styles), setTimeout(() => {
340
- n.style.transition = `all ${e.duration}s ${J(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), U(n.style, e.steps[1].styles), setTimeout(() => {
339
+ Ve(e, n), n.style.transition = "none", n.style.transitionDelay = "0", U(n.style, e.steps[0].styles), setTimeout(() => {
340
+ n.style.transition = `all ${e.duration}s ${G(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), U(n.style, e.steps[1].styles), setTimeout(() => {
341
341
  n.style.transition = "", n.style.transitionDelay = "";
342
342
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
343
343
  });
344
344
  });
345
345
  }
346
- function ft(e) {
346
+ function ht(e) {
347
347
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
348
348
  if (!t.length) {
349
- Re(e.elementId || e.id || "");
349
+ Be(e.elementId || e.id || "");
350
350
  return;
351
351
  }
352
352
  Array.from(t).forEach((n) => {
353
- Pe(e, n);
353
+ Ve(e, n);
354
354
  let i = !1, o = !1;
355
355
  function r() {
356
356
  !i && l(n) ? (i = !0, o = !0, setTimeout(() => {
@@ -359,7 +359,7 @@ function ft(e) {
359
359
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
360
360
  })) : e.repeat && i && !o && !l(n) && (i = !1, U(n.style, e.steps[0].styles));
361
361
  }
362
- const a = dt(r, 200, {
362
+ const a = ut(r, 200, {
363
363
  leading: !1
364
364
  });
365
365
  function l(h) {
@@ -371,49 +371,49 @@ function ft(e) {
371
371
  U(n.style, d);
372
372
  }
373
373
  c(), setTimeout(() => {
374
- n.style.transition = `all ${e.duration}s ${J(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
374
+ n.style.transition = `all ${e.duration}s ${G(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
375
375
  }), document.addEventListener("scroll", a, {
376
376
  capture: !0,
377
377
  passive: !0
378
378
  }), r();
379
379
  });
380
380
  }
381
- const Ve = (e) => Object.entries(e).map(([n, i]) => {
381
+ const Ne = (e) => Object.entries(e).map(([n, i]) => {
382
382
  if (typeof i == "string")
383
- return `${J(n)}: ${i};`;
384
- }).filter(q), ht = (e) => Ve(e).join(`
385
- `), M = ({
383
+ return `${G(n)}: ${i};`;
384
+ }).filter(K), gt = (e) => Ne(e).join(`
385
+ `), _ = ({
386
386
  mediaQuery: e,
387
387
  className: t,
388
388
  styles: n
389
389
  }) => {
390
390
  const i = `.${t} {
391
- ${ht(n)}
391
+ ${gt(n)}
392
392
  }`;
393
393
  return e ? `${e} {
394
394
  ${i}
395
395
  }` : i;
396
396
  };
397
- function gt({
397
+ function bt({
398
398
  style: e
399
399
  }) {
400
400
  return e;
401
401
  }
402
- const bt = ({
402
+ const pt = ({
403
403
  block: e,
404
404
  context: t
405
- }) => Ae(gt({
405
+ }) => We(bt({
406
406
  style: e.style || {},
407
407
  context: t,
408
408
  block: e
409
409
  }));
410
- function Ae(e) {
410
+ function We(e) {
411
411
  switch (D) {
412
412
  case "svelte":
413
413
  case "vue":
414
414
  case "solid":
415
415
  case "angular":
416
- return Ve(e).join(" ");
416
+ return Ne(e).join(" ");
417
417
  case "qwik":
418
418
  case "reactNative":
419
419
  case "react":
@@ -421,7 +421,7 @@ function Ae(e) {
421
421
  return e;
422
422
  }
423
423
  }
424
- const pt = ({
424
+ const yt = ({
425
425
  block: e,
426
426
  registeredComponents: t
427
427
  }) => {
@@ -435,7 +435,7 @@ const pt = ({
435
435
  console.warn(`
436
436
  Could not find a registered component named "${n}".
437
437
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
438
- }, yt = ({
438
+ }, xt = ({
439
439
  block: e,
440
440
  context: t
441
441
  }) => {
@@ -468,27 +468,27 @@ const pt = ({
468
468
  },
469
469
  block: i
470
470
  }));
471
- }, xt = (e, t) => {
471
+ }, vt = (e, t) => {
472
472
  var n;
473
473
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
474
474
  builderLinkComponent: t
475
475
  } : {};
476
- }, vt = (e, t) => {
476
+ }, St = (e, t) => {
477
477
  var n;
478
478
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
479
479
  builderComponents: t
480
480
  } : {};
481
- }, St = (e, t) => {
481
+ }, kt = (e, t) => {
482
482
  var n;
483
483
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
484
484
  builderBlock: t
485
485
  } : {};
486
- }, kt = (e, t) => {
486
+ }, Ct = (e, t) => {
487
487
  var n;
488
488
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
489
489
  builderContext: t
490
490
  } : {};
491
- }, Ne = {
491
+ }, Fe = {
492
492
  small: {
493
493
  min: 320,
494
494
  default: 321,
@@ -504,11 +504,11 @@ const pt = ({
504
504
  default: 991,
505
505
  max: 1200
506
506
  }
507
- }, ue = (e, t = Ne) => `@media (max-width: ${t[e].max}px)`, We = ({
507
+ }, me = (e, t = Fe) => `@media (max-width: ${t[e].max}px)`, $e = ({
508
508
  small: e,
509
509
  medium: t
510
510
  }) => {
511
- const n = ae(Ne);
511
+ const n = re(Fe);
512
512
  if (!e || !t)
513
513
  return n;
514
514
  const i = Math.floor(e / 2);
@@ -531,7 +531,7 @@ const pt = ({
531
531
  default: r + 1
532
532
  }, n;
533
533
  };
534
- function G(e) {
534
+ function Y(e) {
535
535
  return /* @__PURE__ */ s(
536
536
  "style",
537
537
  {
@@ -541,44 +541,44 @@ function G(e) {
541
541
  }
542
542
  );
543
543
  }
544
- function Ct(e) {
544
+ function Tt(e) {
545
545
  function t() {
546
546
  const i = e.block;
547
- return q(i.hide) ? !i.hide : q(i.show) ? i.show : !0;
547
+ return K(i.hide) ? !i.hide : K(i.show) ? i.show : !0;
548
548
  }
549
549
  function n() {
550
- var S, p, b;
551
- const i = e.block, o = i.responsiveStyles, r = e.context.content, a = We(
552
- ((S = r == null ? void 0 : r.meta) == null ? void 0 : S.breakpoints) || {}
550
+ var v, p, b;
551
+ const i = e.block, o = i.responsiveStyles, r = e.context.content, a = $e(
552
+ ((v = r == null ? void 0 : r.meta) == null ? void 0 : v.breakpoints) || {}
553
553
  ), l = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
554
554
  if (!h)
555
555
  return "";
556
- const g = l ? M({
556
+ const g = l ? _({
557
557
  className: h,
558
558
  styles: l
559
- }) : "", m = d ? M({
559
+ }) : "", m = d ? _({
560
560
  className: h,
561
561
  styles: d,
562
- mediaQuery: ue(
562
+ mediaQuery: me(
563
563
  "medium",
564
564
  a
565
565
  )
566
- }) : "", v = c ? M({
566
+ }) : "", x = c ? _({
567
567
  className: h,
568
568
  styles: c,
569
- mediaQuery: ue(
569
+ mediaQuery: me(
570
570
  "small",
571
571
  a
572
572
  )
573
- }) : "", f = i.animations && i.animations.find((x) => x.trigger === "hover");
574
- let k = "";
573
+ }) : "", f = i.animations && i.animations.find((y) => y.trigger === "hover");
574
+ let S = "";
575
575
  if (f) {
576
- const x = ((b = (p = f.steps) == null ? void 0 : p[1]) == null ? void 0 : b.styles) || {};
577
- k = M({
576
+ const y = ((b = (p = f.steps) == null ? void 0 : p[1]) == null ? void 0 : b.styles) || {};
577
+ S = _({
578
578
  className: `${h}:hover`,
579
579
  styles: {
580
- ...x,
581
- transition: `all ${f.duration}s ${J(
580
+ ...y,
581
+ transition: `all ${f.duration}s ${G(
582
582
  f.easing
583
583
  )}`,
584
584
  transitionDelay: f.delay ? `${f.delay}s` : "0s"
@@ -588,12 +588,12 @@ function Ct(e) {
588
588
  return [
589
589
  g,
590
590
  m,
591
- v,
592
- k
591
+ x,
592
+ S
593
593
  ].join(" ");
594
594
  }
595
- return /* @__PURE__ */ s(T, { children: n() && t() ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
596
- G,
595
+ return /* @__PURE__ */ s(I, { children: n() && t() ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(
596
+ Y,
597
597
  {
598
598
  id: "builderio-block",
599
599
  styles: n(),
@@ -601,10 +601,10 @@ function Ct(e) {
601
601
  }
602
602
  ) }) : null });
603
603
  }
604
- function Tt(e) {
604
+ function It(e) {
605
605
  return e.charAt(0).toUpperCase() + e.slice(1);
606
606
  }
607
- const It = (e) => `on${Tt(e)}`, wt = (e, t) => (n) => O({
607
+ const wt = (e) => `on${It(e)}`, Et = (e, t) => (n) => O({
608
608
  code: e,
609
609
  context: t.context,
610
610
  localState: t.localState,
@@ -613,14 +613,14 @@ const It = (e) => `on${Tt(e)}`, wt = (e, t) => (n) => O({
613
613
  event: n,
614
614
  isExpression: !1
615
615
  });
616
- function Fe(e) {
616
+ function De(e) {
617
617
  var i;
618
618
  const t = {}, n = (i = e.block.actions) != null ? i : {};
619
619
  for (const o in n) {
620
620
  if (!n.hasOwnProperty(o))
621
621
  continue;
622
622
  const r = n[o];
623
- let a = It(o);
623
+ let a = wt(o);
624
624
  if (e.stripPrefix)
625
625
  switch (D) {
626
626
  case "vue":
@@ -630,49 +630,49 @@ function Fe(e) {
630
630
  a = a.replace("on:", "");
631
631
  break;
632
632
  }
633
- t[a] = wt(r, e);
633
+ t[a] = Et(r, e);
634
634
  }
635
635
  return t;
636
636
  }
637
- function Et({
637
+ function Rt({
638
638
  properties: e
639
639
  }) {
640
640
  return e;
641
641
  }
642
- const Rt = (e) => ({
642
+ const Pt = (e) => ({
643
643
  href: e.href
644
644
  });
645
- function re({
645
+ function le({
646
646
  block: e,
647
647
  context: t
648
648
  }) {
649
649
  var i;
650
650
  const n = {
651
- ...Rt(e),
651
+ ...Pt(e),
652
652
  ...e.properties,
653
653
  "builder-id": e.id,
654
- style: bt({
654
+ style: pt({
655
655
  block: e,
656
656
  context: t
657
657
  }),
658
658
  [H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
659
659
  };
660
- return Et({
660
+ return Rt({
661
661
  properties: n,
662
662
  context: t,
663
663
  block: e
664
664
  });
665
665
  }
666
- function Pt(e) {
666
+ function Bt(e) {
667
667
  return /* @__PURE__ */ s(
668
- ie,
668
+ oe,
669
669
  {
670
670
  TagName: e.Wrapper,
671
- attributes: re({
671
+ attributes: le({
672
672
  block: e.block,
673
673
  context: e.context
674
674
  }),
675
- actionAttributes: Fe({
675
+ actionAttributes: De({
676
676
  block: e.block,
677
677
  rootState: e.context.rootState,
678
678
  rootSetState: e.context.rootSetState,
@@ -684,18 +684,18 @@ function Pt(e) {
684
684
  }
685
685
  );
686
686
  }
687
- function Bt(e) {
687
+ function Vt(e) {
688
688
  return B(() => {
689
- }, []), /* @__PURE__ */ s(T, { children: e.children });
689
+ }, []), /* @__PURE__ */ s(I, { children: e.children });
690
690
  }
691
- function Vt(e) {
691
+ function At(e) {
692
692
  function t() {
693
693
  return e.includeBlockProps ? {
694
- ...re({
694
+ ...le({
695
695
  block: e.block,
696
696
  context: e.context
697
697
  }),
698
- ...Fe({
698
+ ...De({
699
699
  block: e.block,
700
700
  rootState: e.context.rootState,
701
701
  rootSetState: e.context.rootSetState,
@@ -704,8 +704,8 @@ function Vt(e) {
704
704
  })
705
705
  } : {};
706
706
  }
707
- return /* @__PURE__ */ s(T, { children: e.Wrapper.load ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
708
- Bt,
707
+ return /* @__PURE__ */ s(I, { children: e.Wrapper.load ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(
708
+ Vt,
709
709
  {
710
710
  load: e.Wrapper.load,
711
711
  fallback: e.Wrapper.fallback,
@@ -715,7 +715,7 @@ function Vt(e) {
715
715
  }
716
716
  ) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
717
717
  }
718
- const At = ({
718
+ const Nt = ({
719
719
  componentOptions: e,
720
720
  builderBlock: t,
721
721
  context: n,
@@ -731,7 +731,7 @@ const At = ({
731
731
  * component itself directly. Otherwise, they are provided to the wrapper element.
732
732
  */
733
733
  ...o ? {
734
- attributes: re({
734
+ attributes: le({
735
735
  block: t,
736
736
  context: a
737
737
  })
@@ -745,15 +745,15 @@ const At = ({
745
745
  includeBlockProps: o
746
746
  } : l;
747
747
  };
748
- function me(e) {
748
+ function fe(e) {
749
749
  var i;
750
- const [t, n] = w(
751
- () => e.isInteractive ? Vt : e.componentRef
750
+ const [t, n] = R(
751
+ () => e.isInteractive ? At : e.componentRef
752
752
  );
753
- return /* @__PURE__ */ s(T, { children: e.componentRef ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
753
+ return /* @__PURE__ */ s(I, { children: e.componentRef ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(
754
754
  t,
755
755
  {
756
- ...At({
756
+ ...Nt({
757
757
  componentOptions: e.componentOptions,
758
758
  builderBlock: e.builderBlock,
759
759
  context: e.context,
@@ -776,9 +776,9 @@ function me(e) {
776
776
  }
777
777
  ) }) : null });
778
778
  }
779
- function fe(e) {
780
- const [t, n] = w(() => e.repeatContext);
781
- return /* @__PURE__ */ s(oe.Provider, { value: t, children: /* @__PURE__ */ s(
779
+ function he(e) {
780
+ const [t, n] = R(() => e.repeatContext);
781
+ return /* @__PURE__ */ s(ae.Provider, { value: t, children: /* @__PURE__ */ s(
782
782
  j,
783
783
  {
784
784
  block: e.block,
@@ -789,22 +789,22 @@ function fe(e) {
789
789
  ) });
790
790
  }
791
791
  function j(e) {
792
- var h, g, m, v;
792
+ var h, g, m, x;
793
793
  function t() {
794
- return yt({
794
+ return xt({
795
795
  block: e.block,
796
796
  context: e.context
797
797
  });
798
798
  }
799
- const [n, i] = w(() => ({
799
+ const [n, i] = R(() => ({
800
800
  value: null,
801
801
  update: !1
802
802
  }));
803
803
  function o() {
804
- var k;
805
- if (n.value && !n.update && !ve())
804
+ var S;
805
+ if (n.value && !n.update && !Se())
806
806
  return n.value;
807
- const f = (k = e.block.repeat) != null && k.collection ? e.block : ct({
807
+ const f = (S = e.block.repeat) != null && S.collection ? e.block : dt({
808
808
  block: e.block,
809
809
  localState: e.context.localState,
810
810
  rootState: e.context.rootState,
@@ -815,37 +815,37 @@ function j(e) {
815
815
  return n.value = f, n.update = !1, f;
816
816
  }
817
817
  function r() {
818
- return pt({
818
+ return yt({
819
819
  block: o(),
820
820
  registeredComponents: e.registeredComponents
821
821
  });
822
822
  }
823
823
  function a() {
824
- var k;
825
- return e.block.tagName === "a" || ((k = o().properties) == null ? void 0 : k.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
824
+ var S;
825
+ return e.block.tagName === "a" || ((S = o().properties) == null ? void 0 : S.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
826
826
  }
827
827
  function l() {
828
- var S, p;
829
- if ((S = e.block.repeat) != null && S.collection)
828
+ var v, p;
829
+ if ((v = e.block.repeat) != null && v.collection)
830
830
  return !!((p = t == null ? void 0 : t()) != null && p.length);
831
831
  const f = "hide" in o() ? o().hide : !1;
832
832
  return ("show" in o() ? o().show : !0) && !f;
833
833
  }
834
834
  function d() {
835
- var k, S;
836
- return !((k = r == null ? void 0 : r()) != null && k.component) && !t() ? (S = o().children) != null ? S : [] : [];
835
+ var S, v;
836
+ return !((S = r == null ? void 0 : r()) != null && S.component) && !t() ? (v = o().children) != null ? v : [] : [];
837
837
  }
838
838
  function c() {
839
- var f, k, S, p;
839
+ var f, S, v, p;
840
840
  return {
841
841
  blockChildren: (f = o().children) != null ? f : [],
842
- componentRef: (k = r == null ? void 0 : r()) == null ? void 0 : k.component,
842
+ componentRef: (S = r == null ? void 0 : r()) == null ? void 0 : S.component,
843
843
  componentOptions: {
844
- ...Ge(o()),
845
- ...St(r(), o()),
846
- ...kt(r(), e.context),
847
- ...xt(r(), e.linkComponent),
848
- ...vt(
844
+ ...Ye(o()),
845
+ ...kt(r(), o()),
846
+ ...Ct(r(), e.context),
847
+ ...vt(r(), e.linkComponent),
848
+ ...St(
849
849
  r(),
850
850
  e.registeredComponents
851
851
  )
@@ -854,33 +854,33 @@ function j(e) {
854
854
  linkComponent: e.linkComponent,
855
855
  registeredComponents: e.registeredComponents,
856
856
  builderBlock: o(),
857
- includeBlockProps: ((S = r == null ? void 0 : r()) == null ? void 0 : S.noWrap) === !0,
857
+ includeBlockProps: ((v = r == null ? void 0 : r()) == null ? void 0 : v.noWrap) === !0,
858
858
  isInteractive: !((p = r == null ? void 0 : r()) != null && p.isRSC && D === "rsc")
859
859
  };
860
860
  }
861
861
  return B(() => {
862
- const f = o().id, k = o().animations;
863
- k && f && ut(
864
- k.map((S) => ({
865
- ...S,
862
+ const f = o().id, S = o().animations;
863
+ S && f && mt(
864
+ S.map((v) => ({
865
+ ...v,
866
866
  elementId: f
867
867
  }))
868
868
  );
869
869
  }, []), B(() => {
870
870
  n.update = !0;
871
- }), /* @__PURE__ */ s(T, { children: l() ? /* @__PURE__ */ V(T, { children: [
872
- /* @__PURE__ */ s(Ct, { block: o(), context: e.context }),
873
- (h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(T, { children: (v = t()) == null ? void 0 : v.map((f, k) => /* @__PURE__ */ s(
874
- fe,
871
+ }), /* @__PURE__ */ s(I, { children: l() ? /* @__PURE__ */ V(I, { children: [
872
+ /* @__PURE__ */ s(Tt, { block: o(), context: e.context }),
873
+ (h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(I, { children: (x = t()) == null ? void 0 : x.map((f, S) => /* @__PURE__ */ s(
874
+ he,
875
875
  {
876
876
  repeatContext: f.context,
877
877
  block: f.block,
878
878
  registeredComponents: e.registeredComponents,
879
879
  linkComponent: e.linkComponent
880
880
  },
881
- k
881
+ S
882
882
  )) }) : /* @__PURE__ */ s(
883
- me,
883
+ fe,
884
884
  {
885
885
  componentRef: c().componentRef,
886
886
  componentOptions: c().componentOptions,
@@ -892,24 +892,24 @@ function j(e) {
892
892
  includeBlockProps: c().includeBlockProps,
893
893
  isInteractive: c().isInteractive
894
894
  }
895
- ) : /* @__PURE__ */ s(T, { children: t() ? /* @__PURE__ */ s(T, { children: (m = t()) == null ? void 0 : m.map((f, k) => /* @__PURE__ */ s(
896
- fe,
895
+ ) : /* @__PURE__ */ s(I, { children: t() ? /* @__PURE__ */ s(I, { children: (m = t()) == null ? void 0 : m.map((f, S) => /* @__PURE__ */ s(
896
+ he,
897
897
  {
898
898
  repeatContext: f.context,
899
899
  block: f.block,
900
900
  registeredComponents: e.registeredComponents,
901
901
  linkComponent: e.linkComponent
902
902
  },
903
- k
903
+ S
904
904
  )) }) : /* @__PURE__ */ V(
905
- Pt,
905
+ Bt,
906
906
  {
907
907
  Wrapper: a(),
908
908
  block: o(),
909
909
  context: e.context,
910
910
  children: [
911
911
  /* @__PURE__ */ s(
912
- me,
912
+ fe,
913
913
  {
914
914
  componentRef: c().componentRef,
915
915
  componentOptions: c().componentOptions,
@@ -937,7 +937,7 @@ function j(e) {
937
937
  ) })
938
938
  ] }) : null });
939
939
  }
940
- function Nt(e) {
940
+ function Wt(e) {
941
941
  const t = $(null);
942
942
  function n() {
943
943
  var a;
@@ -980,7 +980,7 @@ function Nt(e) {
980
980
  ));
981
981
  }
982
982
  return B(() => {
983
- }, []), /* @__PURE__ */ V(T, { children: [
983
+ }, []), /* @__PURE__ */ V(I, { children: [
984
984
  /* @__PURE__ */ s(
985
985
  e.BlocksWrapper,
986
986
  {
@@ -1005,9 +1005,9 @@ function Nt(e) {
1005
1005
  }
1006
1006
  function F(e) {
1007
1007
  var i, o, r;
1008
- const t = ce(oe), n = ce(Te);
1008
+ const t = de(ae), n = de(we);
1009
1009
  return /* @__PURE__ */ s(
1010
- Nt,
1010
+ Wt,
1011
1011
  {
1012
1012
  blocks: e.blocks,
1013
1013
  parent: e.parent,
@@ -1016,7 +1016,7 @@ function F(e) {
1016
1016
  classNameProp: e.className,
1017
1017
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
1018
1018
  BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
1019
- children: e.blocks ? /* @__PURE__ */ s(T, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ s(
1019
+ children: e.blocks ? /* @__PURE__ */ s(I, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ s(
1020
1020
  j,
1021
1021
  {
1022
1022
  block: a,
@@ -1029,9 +1029,9 @@ function F(e) {
1029
1029
  }
1030
1030
  );
1031
1031
  }
1032
- const Wt = (e) => `builder-columns ${e}-breakpoints`;
1033
- function Ft(e) {
1034
- var k, S;
1032
+ const Ft = (e) => `builder-columns ${e}-breakpoints`;
1033
+ function $t(e) {
1034
+ var S, v;
1035
1035
  function t() {
1036
1036
  return typeof e.space == "number" ? e.space || 0 : 20;
1037
1037
  }
@@ -1049,8 +1049,8 @@ function Ft(e) {
1049
1049
  return ((b = n()[p]) == null ? void 0 : b.width) || 100 / n().length;
1050
1050
  }
1051
1051
  function a(p) {
1052
- const b = r(p), x = t() * (n().length - 1) * (b / 100);
1053
- return `calc(${b}% - ${x}px)`;
1052
+ const b = r(p), y = t() * (n().length - 1) * (b / 100);
1053
+ return `calc(${b}% - ${y}px)`;
1054
1054
  }
1055
1055
  function l({
1056
1056
  stackedStyle: p,
@@ -1077,40 +1077,40 @@ function Ft(e) {
1077
1077
  };
1078
1078
  }
1079
1079
  function g(p) {
1080
- const b = p === 0 ? 0 : t(), x = a(p), A = `${b}px`, C = "100%", I = 0;
1080
+ const b = p === 0 ? 0 : t(), y = a(p), A = `${b}px`, k = "100%", w = 0;
1081
1081
  return {
1082
1082
  ...{
1083
1083
  display: "flex",
1084
1084
  flexDirection: "column",
1085
1085
  alignItems: "stretch"
1086
1086
  },
1087
- width: x,
1087
+ width: y,
1088
1088
  ["marginLeft"]: A,
1089
1089
  "--column-width-mobile": d({
1090
- stackedStyle: C,
1091
- desktopStyle: x
1090
+ stackedStyle: k,
1091
+ desktopStyle: y
1092
1092
  }),
1093
1093
  "--column-margin-left-mobile": d({
1094
- stackedStyle: I,
1094
+ stackedStyle: w,
1095
1095
  desktopStyle: A
1096
1096
  }),
1097
1097
  "--column-width-tablet": l({
1098
- stackedStyle: C,
1099
- desktopStyle: x
1098
+ stackedStyle: k,
1099
+ desktopStyle: y
1100
1100
  }),
1101
1101
  "--column-margin-left-tablet": l({
1102
- stackedStyle: I,
1102
+ stackedStyle: w,
1103
1103
  desktopStyle: A
1104
1104
  })
1105
1105
  };
1106
1106
  }
1107
1107
  function m(p) {
1108
- var x, A;
1109
- return We(
1110
- ((A = (x = e.builderContext.content) == null ? void 0 : x.meta) == null ? void 0 : A.breakpoints) || {}
1108
+ var y, A;
1109
+ return $e(
1110
+ ((A = (y = e.builderContext.content) == null ? void 0 : y.meta) == null ? void 0 : A.breakpoints) || {}
1111
1111
  )[p].max;
1112
1112
  }
1113
- function v() {
1113
+ function x() {
1114
1114
  const p = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1115
1115
  return `
1116
1116
  @media (max-width: ${m("medium")}px) {
@@ -1144,26 +1144,26 @@ function Ft(e) {
1144
1144
  href: p.link
1145
1145
  } : {},
1146
1146
  [H()]: "builder-column",
1147
- style: Ae(g(b))
1147
+ style: We(g(b))
1148
1148
  };
1149
1149
  }
1150
- return /* @__PURE__ */ V(T, { children: [
1150
+ return /* @__PURE__ */ V(I, { children: [
1151
1151
  /* @__PURE__ */ V(
1152
1152
  "div",
1153
1153
  {
1154
- className: Wt((k = e.builderBlock) == null ? void 0 : k.id) + " div-49f40bae",
1154
+ className: Ft((S = e.builderBlock) == null ? void 0 : S.id) + " div-49f40bae",
1155
1155
  style: h(),
1156
1156
  children: [
1157
1157
  /* @__PURE__ */ s(
1158
- G,
1158
+ Y,
1159
1159
  {
1160
1160
  id: "builderio-columns",
1161
- styles: v(),
1161
+ styles: x(),
1162
1162
  nonce: e.builderContext.nonce
1163
1163
  }
1164
1164
  ),
1165
- (S = e.columns) == null ? void 0 : S.map((p, b) => /* @__PURE__ */ s(
1166
- ie,
1165
+ (v = e.columns) == null ? void 0 : v.map((p, b) => /* @__PURE__ */ s(
1166
+ oe,
1167
1167
  {
1168
1168
  TagName: o(p),
1169
1169
  actionAttributes: {},
@@ -1194,40 +1194,40 @@ function Ft(e) {
1194
1194
  }` })
1195
1195
  ] });
1196
1196
  }
1197
- function $t(e) {
1197
+ function Dt(e) {
1198
1198
  return /* @__PURE__ */ s("span", { children: e.children });
1199
1199
  }
1200
- function he(e) {
1200
+ function ge(e) {
1201
1201
  return e.replace(/http(s)?:/, "");
1202
1202
  }
1203
- function Dt(e = "", t, n) {
1203
+ function Lt(e = "", t, n) {
1204
1204
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1205
1205
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1206
1206
  }
1207
- function Lt(e, t) {
1207
+ function Ot(e, t) {
1208
1208
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1209
1209
  return e;
1210
1210
  if (t === "master")
1211
- return he(e);
1211
+ return ge(e);
1212
1212
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1213
1213
  if (n) {
1214
1214
  const i = e.split(n[0]), o = n[3], r = t.match("x") ? t : `${t}x`;
1215
- return he(`${i[0]}_${r}${o}`);
1215
+ return ge(`${i[0]}_${r}${o}`);
1216
1216
  }
1217
1217
  return null;
1218
1218
  }
1219
- function Y(e) {
1219
+ function Q(e) {
1220
1220
  if (!e)
1221
1221
  return e;
1222
1222
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1223
1223
  if (e.match(/builder\.io/)) {
1224
1224
  let n = e;
1225
1225
  const i = Number(e.split("?width=")[1]);
1226
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Dt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1226
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Lt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1227
1227
  }
1228
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Lt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1228
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ot(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1229
1229
  }
1230
- function Ot(e) {
1230
+ function Ut(e) {
1231
1231
  var o, r, a, l, d, c;
1232
1232
  function t() {
1233
1233
  var m;
@@ -1239,10 +1239,10 @@ function Ot(e) {
1239
1239
  if (!e.noWebp) {
1240
1240
  if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1241
1241
  if (!e.srcset.includes(e.image.split("?")[0]))
1242
- return console.debug("Removed given srcset"), Y(g);
1242
+ return console.debug("Removed given srcset"), Q(g);
1243
1243
  } else if (e.image && !e.srcset)
1244
- return Y(g);
1245
- return Y(g);
1244
+ return Q(g);
1245
+ return Q(g);
1246
1246
  }
1247
1247
  }
1248
1248
  function n() {
@@ -1260,8 +1260,8 @@ function Ot(e) {
1260
1260
  return e.aspectRatio ? h : void 0;
1261
1261
  }
1262
1262
  return B(() => {
1263
- }, []), /* @__PURE__ */ V(T, { children: [
1264
- /* @__PURE__ */ V(T, { children: [
1263
+ }, []), /* @__PURE__ */ V(I, { children: [
1264
+ /* @__PURE__ */ V(I, { children: [
1265
1265
  /* @__PURE__ */ V("picture", { children: [
1266
1266
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1267
1267
  /* @__PURE__ */ s(
@@ -1292,7 +1292,7 @@ function Ot(e) {
1292
1292
  }
1293
1293
  }
1294
1294
  ) : null,
1295
- (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(T, { children: e.children }) : null,
1295
+ (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(I, { children: e.children }) : null,
1296
1296
  !e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-7a292ab8-2", children: e.children }) : null
1297
1297
  ] }),
1298
1298
  /* @__PURE__ */ s("style", { children: `.img-7a292ab8 {
@@ -1314,7 +1314,7 @@ function Ot(e) {
1314
1314
  }` })
1315
1315
  ] });
1316
1316
  }
1317
- function Ut(e) {
1317
+ function Ht(e) {
1318
1318
  return /* @__PURE__ */ s(
1319
1319
  "section",
1320
1320
  {
@@ -1335,7 +1335,7 @@ function Ut(e) {
1335
1335
  }
1336
1336
  );
1337
1337
  }
1338
- const Q = {
1338
+ const X = {
1339
1339
  "@type": "@builder.io/sdk:Element",
1340
1340
  layerName: "Accordion item title",
1341
1341
  responsiveStyles: {
@@ -1364,7 +1364,7 @@ const Q = {
1364
1364
  }
1365
1365
  }
1366
1366
  }]
1367
- }, X = {
1367
+ }, Z = {
1368
1368
  "@type": "@builder.io/sdk:Element",
1369
1369
  layerName: "Accordion item detail",
1370
1370
  responsiveStyles: {
@@ -1395,7 +1395,7 @@ const Q = {
1395
1395
  }
1396
1396
  }
1397
1397
  }]
1398
- }, Ht = {
1398
+ }, jt = {
1399
1399
  name: "Builder:Accordion",
1400
1400
  canHaveChildren: !0,
1401
1401
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1412,19 +1412,19 @@ const Q = {
1412
1412
  name: "title",
1413
1413
  type: "uiBlocks",
1414
1414
  hideFromUI: !0,
1415
- defaultValue: [Q]
1415
+ defaultValue: [X]
1416
1416
  }, {
1417
1417
  name: "detail",
1418
1418
  type: "uiBlocks",
1419
1419
  hideFromUI: !0,
1420
- defaultValue: [X]
1420
+ defaultValue: [Z]
1421
1421
  }],
1422
1422
  defaultValue: [{
1423
- title: [Q],
1424
- detail: [X]
1423
+ title: [X],
1424
+ detail: [Z]
1425
1425
  }, {
1426
- title: [Q],
1427
- detail: [X]
1426
+ title: [X],
1427
+ detail: [Z]
1428
1428
  }],
1429
1429
  showIf: (e) => !e.get("useChildrenForItems")
1430
1430
  }, {
@@ -1459,10 +1459,10 @@ const Q = {
1459
1459
  builderComponents: !0,
1460
1460
  builderLinkComponent: !0
1461
1461
  }
1462
- }, ge = (e) => e.toString();
1463
- function jt(e) {
1462
+ }, be = (e) => e.toString();
1463
+ function Mt(e) {
1464
1464
  var g;
1465
- const [t, n] = w(() => []);
1465
+ const [t, n] = R(() => []);
1466
1466
  function i() {
1467
1467
  return !!(e.grid || e.oneAtATime);
1468
1468
  }
@@ -1479,7 +1479,7 @@ function jt(e) {
1479
1479
  };
1480
1480
  }
1481
1481
  function r() {
1482
- const v = {
1482
+ const x = {
1483
1483
  ...{
1484
1484
  display: "flex",
1485
1485
  flexDirection: "column"
@@ -1488,7 +1488,7 @@ function jt(e) {
1488
1488
  cursor: "pointer"
1489
1489
  };
1490
1490
  return Object.fromEntries(
1491
- Object.entries(v).filter(([f, k]) => k !== void 0)
1491
+ Object.entries(x).filter(([f, S]) => S !== void 0)
1492
1492
  );
1493
1493
  }
1494
1494
  function a(m) {
@@ -1501,22 +1501,22 @@ function jt(e) {
1501
1501
  let m = null;
1502
1502
  if (e.grid && t.length && document) {
1503
1503
  const f = t[0];
1504
- let S = document.querySelector(
1504
+ let v = document.querySelector(
1505
1505
  `.builder-accordion-title[data-index="${f}"]`
1506
1506
  );
1507
- if (m = f, S) {
1508
- let p = S.getBoundingClientRect();
1509
- for (; S = S && S.nextElementSibling; )
1510
- if (S) {
1511
- if (S.classList.contains("builder-accordion-detail"))
1507
+ if (m = f, v) {
1508
+ let p = v.getBoundingClientRect();
1509
+ for (; v = v && v.nextElementSibling; )
1510
+ if (v) {
1511
+ if (v.classList.contains("builder-accordion-detail"))
1512
1512
  continue;
1513
- const b = S.getBoundingClientRect();
1513
+ const b = v.getBoundingClientRect();
1514
1514
  if (b.left > p.left) {
1515
- const x = parseInt(
1516
- S.getAttribute("data-index") || "",
1515
+ const y = parseInt(
1516
+ v.getAttribute("data-index") || "",
1517
1517
  10
1518
1518
  );
1519
- isNaN(x) || (p = b, m = x);
1519
+ isNaN(y) || (p = b, m = y);
1520
1520
  } else
1521
1521
  break;
1522
1522
  }
@@ -1532,31 +1532,31 @@ function jt(e) {
1532
1532
  }
1533
1533
  };
1534
1534
  return Object.fromEntries(
1535
- Object.entries(m).filter(([v, f]) => f !== void 0)
1535
+ Object.entries(m).filter(([x, f]) => f !== void 0)
1536
1536
  );
1537
1537
  }
1538
1538
  function h(m) {
1539
- t.includes(m) ? n(i() ? [] : t.filter((v) => v !== m)) : n(i() ? [m] : t.concat(m));
1539
+ t.includes(m) ? n(i() ? [] : t.filter((x) => x !== m)) : n(i() ? [m] : t.concat(m));
1540
1540
  }
1541
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, v) => /* @__PURE__ */ V(T, { children: [
1541
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, x) => /* @__PURE__ */ V(I, { children: [
1542
1542
  /* @__PURE__ */ s(
1543
1543
  "div",
1544
1544
  {
1545
- className: a(v),
1545
+ className: a(x),
1546
1546
  style: {
1547
1547
  ...r(),
1548
1548
  ...e.grid && {
1549
1549
  width: e.gridRowWidth,
1550
- order: d() !== null ? ge(v) : ge(v + 1)
1550
+ order: d() !== null ? be(x) : be(x + 1)
1551
1551
  }
1552
1552
  },
1553
- "data-index": v,
1554
- onClick: (f) => h(v),
1553
+ "data-index": x,
1554
+ onClick: (f) => h(x),
1555
1555
  children: /* @__PURE__ */ s(
1556
1556
  F,
1557
1557
  {
1558
1558
  blocks: m.title,
1559
- path: `items.${v}.title`,
1559
+ path: `items.${x}.title`,
1560
1560
  parent: e.builderBlock.id,
1561
1561
  context: e.builderContext,
1562
1562
  registeredComponents: e.builderComponents,
@@ -1565,16 +1565,16 @@ function jt(e) {
1565
1565
  )
1566
1566
  }
1567
1567
  ),
1568
- t.includes(v) ? /* @__PURE__ */ s(
1568
+ t.includes(x) ? /* @__PURE__ */ s(
1569
1569
  "div",
1570
1570
  {
1571
- className: l(v),
1571
+ className: l(x),
1572
1572
  style: c(),
1573
1573
  children: /* @__PURE__ */ s(
1574
1574
  F,
1575
1575
  {
1576
1576
  blocks: m.detail,
1577
- path: `items.${v}.detail`,
1577
+ path: `items.${x}.detail`,
1578
1578
  parent: e.builderBlock.id,
1579
1579
  context: e.builderContext,
1580
1580
  registeredComponents: e.builderComponents,
@@ -1585,7 +1585,7 @@ function jt(e) {
1585
1585
  ) : null
1586
1586
  ] })) });
1587
1587
  }
1588
- const Mt = {
1588
+ const _t = {
1589
1589
  name: "Core:Button",
1590
1590
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1591
1591
  defaultStyles: {
@@ -1621,7 +1621,7 @@ const Mt = {
1621
1621
  shouldReceiveBuilderProps: {
1622
1622
  builderLinkComponent: !0
1623
1623
  }
1624
- }, _t = {
1624
+ }, qt = {
1625
1625
  // TODO: ways to statically preprocess JSON for references, functions, etc
1626
1626
  name: "Columns",
1627
1627
  isRSC: !0,
@@ -1828,13 +1828,13 @@ const Mt = {
1828
1828
  builderComponents: !0,
1829
1829
  builderLinkComponent: !0
1830
1830
  }
1831
- }, qt = {
1831
+ }, Kt = {
1832
1832
  name: "Fragment",
1833
1833
  static: !0,
1834
1834
  hidden: !0,
1835
1835
  canHaveChildren: !0,
1836
1836
  noWrap: !0
1837
- }, Kt = {
1837
+ }, zt = {
1838
1838
  name: "Image",
1839
1839
  static: !0,
1840
1840
  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",
@@ -1942,7 +1942,7 @@ const Mt = {
1942
1942
  shouldReceiveBuilderProps: {
1943
1943
  builderBlock: !0
1944
1944
  }
1945
- }, zt = {
1945
+ }, Jt = {
1946
1946
  name: "Core:Section",
1947
1947
  static: !0,
1948
1948
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1981,7 +1981,7 @@ const Mt = {
1981
1981
  }
1982
1982
  }
1983
1983
  }]
1984
- }, Jt = {
1984
+ }, Gt = {
1985
1985
  name: "Slot",
1986
1986
  isRSC: !0,
1987
1987
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1999,7 +1999,7 @@ const Mt = {
1999
1999
  builderComponents: !0
2000
2000
  }
2001
2001
  };
2002
- function Gt(e) {
2002
+ function Yt(e) {
2003
2003
  var t, n, i;
2004
2004
  return /* @__PURE__ */ s(
2005
2005
  "div",
@@ -2023,7 +2023,7 @@ function Gt(e) {
2023
2023
  }
2024
2024
  );
2025
2025
  }
2026
- const Yt = {
2026
+ const Qt = {
2027
2027
  name: "Symbol",
2028
2028
  noWrap: !0,
2029
2029
  static: !0,
@@ -2062,7 +2062,7 @@ const Yt = {
2062
2062
  builderComponents: !0,
2063
2063
  builderLinkComponent: !0
2064
2064
  }
2065
- }, Z = {
2065
+ }, ee = {
2066
2066
  "@type": "@builder.io/sdk:Element",
2067
2067
  responsiveStyles: {
2068
2068
  large: {
@@ -2084,7 +2084,7 @@ const Yt = {
2084
2084
  text: "New tab"
2085
2085
  }
2086
2086
  }
2087
- }, ee = {
2087
+ }, te = {
2088
2088
  "@type": "@builder.io/sdk:Element",
2089
2089
  responsiveStyles: {
2090
2090
  large: {
@@ -2100,7 +2100,7 @@ const Yt = {
2100
2100
  text: "New tab content "
2101
2101
  }
2102
2102
  }
2103
- }, Qt = {
2103
+ }, Xt = {
2104
2104
  name: "Builder: Tabs",
2105
2105
  inputs: [{
2106
2106
  name: "tabs",
@@ -2110,16 +2110,16 @@ const Yt = {
2110
2110
  name: "label",
2111
2111
  type: "uiBlocks",
2112
2112
  hideFromUI: !0,
2113
- defaultValue: [Z]
2113
+ defaultValue: [ee]
2114
2114
  }, {
2115
2115
  name: "content",
2116
2116
  type: "uiBlocks",
2117
2117
  hideFromUI: !0,
2118
- defaultValue: [ee]
2118
+ defaultValue: [te]
2119
2119
  }],
2120
2120
  defaultValue: [{
2121
2121
  label: [{
2122
- ...Z,
2122
+ ...ee,
2123
2123
  component: {
2124
2124
  name: "Text",
2125
2125
  options: {
@@ -2128,7 +2128,7 @@ const Yt = {
2128
2128
  }
2129
2129
  }],
2130
2130
  content: [{
2131
- ...ee,
2131
+ ...te,
2132
2132
  component: {
2133
2133
  name: "Text",
2134
2134
  options: {
@@ -2138,7 +2138,7 @@ const Yt = {
2138
2138
  }]
2139
2139
  }, {
2140
2140
  label: [{
2141
- ...Z,
2141
+ ...ee,
2142
2142
  component: {
2143
2143
  name: "Text",
2144
2144
  options: {
@@ -2147,7 +2147,7 @@ const Yt = {
2147
2147
  }
2148
2148
  }],
2149
2149
  content: [{
2150
- ...ee,
2150
+ ...te,
2151
2151
  component: {
2152
2152
  name: "Text",
2153
2153
  options: {
@@ -2204,9 +2204,9 @@ const Yt = {
2204
2204
  builderLinkComponent: !0
2205
2205
  }
2206
2206
  };
2207
- function Xt(e) {
2207
+ function Zt(e) {
2208
2208
  var r;
2209
- const [t, n] = w(
2209
+ const [t, n] = R(
2210
2210
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
2211
2211
  );
2212
2212
  function i(a) {
@@ -2263,7 +2263,7 @@ function Xt(e) {
2263
2263
  ) }) : null
2264
2264
  ] });
2265
2265
  }
2266
- const Zt = {
2266
+ const en = {
2267
2267
  shouldReceiveBuilderProps: {
2268
2268
  builderBlock: !1,
2269
2269
  builderContext: !0
@@ -2286,7 +2286,7 @@ const Zt = {
2286
2286
  textAlign: "center"
2287
2287
  }
2288
2288
  };
2289
- function en(e) {
2289
+ function tn(e) {
2290
2290
  function t() {
2291
2291
  var l;
2292
2292
  const n = e.builderContext, {
@@ -2317,7 +2317,7 @@ function en(e) {
2317
2317
  }
2318
2318
  );
2319
2319
  }
2320
- const tn = {
2320
+ const nn = {
2321
2321
  name: "Custom Code",
2322
2322
  static: !0,
2323
2323
  requiredPermissions: ["editCode"],
@@ -2340,8 +2340,8 @@ const tn = {
2340
2340
  advanced: !0
2341
2341
  }]
2342
2342
  };
2343
- function nn(e) {
2344
- const t = $(null), [n, i] = w(() => []), [o, r] = w(() => []);
2343
+ function on(e) {
2344
+ const t = $(null), [n, i] = R(() => []), [o, r] = R(() => []);
2345
2345
  return B(() => {
2346
2346
  var l;
2347
2347
  if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
@@ -2378,7 +2378,7 @@ function nn(e) {
2378
2378
  }
2379
2379
  );
2380
2380
  }
2381
- const on = {
2381
+ const an = {
2382
2382
  name: "Embed",
2383
2383
  static: !0,
2384
2384
  inputs: [{
@@ -2393,9 +2393,9 @@ const on = {
2393
2393
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2394
2394
  hideFromUI: !0
2395
2395
  }]
2396
- }, an = ["text/javascript", "application/javascript", "application/ecmascript"], rn = (e) => an.includes(e.type);
2397
- function ln(e) {
2398
- const t = $(null), [n, i] = w(() => []), [o, r] = w(() => []), [a, l] = w(() => !1);
2396
+ }, rn = ["text/javascript", "application/javascript", "application/ecmascript"], ln = (e) => rn.includes(e.type);
2397
+ function sn(e) {
2398
+ const t = $(null), [n, i] = R(() => []), [o, r] = R(() => []), [a, l] = R(() => !1);
2399
2399
  function d() {
2400
2400
  if (!t.current || !t.current.getElementsByTagName)
2401
2401
  return;
@@ -2406,7 +2406,7 @@ function ln(e) {
2406
2406
  n.push(g.src);
2407
2407
  const m = document.createElement("script");
2408
2408
  m.async = !0, m.src = g.src, document.head.appendChild(m);
2409
- } else if (rn(g) && !o.includes(g.innerText))
2409
+ } else if (ln(g) && !o.includes(g.innerText))
2410
2410
  try {
2411
2411
  o.push(g.innerText), new Function(g.innerText)();
2412
2412
  } catch (m) {
@@ -2425,7 +2425,7 @@ function ln(e) {
2425
2425
  }
2426
2426
  );
2427
2427
  }
2428
- const sn = {
2428
+ const cn = {
2429
2429
  name: "Form:Form",
2430
2430
  // editableTags: ['builder-form-error']
2431
2431
  defaults: {
@@ -2662,120 +2662,117 @@ const sn = {
2662
2662
  builderComponents: !0,
2663
2663
  builderLinkComponent: !0
2664
2664
  }
2665
- }, cn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], dn = () => {
2665
+ }, dn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], un = () => {
2666
2666
  const e = process.env.NODE_ENV || "production";
2667
- return cn.includes(e) ? e : "production";
2667
+ return dn.includes(e) ? e : "production";
2668
2668
  };
2669
- function un(e) {
2669
+ function mn(e) {
2670
2670
  var g, m;
2671
- const t = $(null), [n, i] = w(() => "unsubmitted"), [o, r] = w(() => null), [a, l] = w(() => "");
2672
- function d(v) {
2673
- var k, S;
2671
+ const t = $(null), [n, i] = R(() => "unsubmitted"), [o, r] = R(() => null), [a, l] = R(() => "");
2672
+ function d(x) {
2673
+ var S, v;
2674
2674
  const f = {
2675
2675
  ...e.builderContext.rootState,
2676
- ...v
2676
+ ...x
2677
2677
  };
2678
- e.builderContext.rootSetState ? (S = (k = e.builderContext).rootSetState) == null || S.call(k, f) : e.builderContext.rootState = f;
2678
+ e.builderContext.rootSetState ? (v = (S = e.builderContext).rootSetState) == null || v.call(S, f) : e.builderContext.rootState = f;
2679
2679
  }
2680
2680
  function c() {
2681
2681
  return W() && e.previewState || n;
2682
2682
  }
2683
- function h(v) {
2684
- var k;
2683
+ function h(x) {
2684
+ var S;
2685
2685
  const f = e.sendWithJs || e.sendSubmissionsTo === "email";
2686
2686
  if (e.sendSubmissionsTo === "zapier")
2687
- v.preventDefault();
2687
+ x.preventDefault();
2688
2688
  else if (f) {
2689
2689
  if (!(e.action || e.sendSubmissionsTo === "email")) {
2690
- v.preventDefault();
2690
+ x.preventDefault();
2691
2691
  return;
2692
2692
  }
2693
- v.preventDefault();
2694
- const S = v.currentTarget || v.target, p = e.customHeaders || {};
2693
+ x.preventDefault();
2694
+ const v = x.currentTarget || x.target, p = e.customHeaders || {};
2695
2695
  let b;
2696
- const x = new FormData(S), A = Array.from(S.querySelectorAll("input,select,textarea")).filter((u) => !!u.name).map((u) => {
2697
- let y;
2698
- const E = u.name;
2696
+ const y = new FormData(v), A = Array.from(v.querySelectorAll("input,select,textarea")).filter((u) => !!u.name).map((u) => {
2697
+ let C;
2698
+ const N = u.name;
2699
2699
  if (u instanceof HTMLInputElement)
2700
2700
  if (u.type === "radio") {
2701
2701
  if (u.checked)
2702
- return y = u.name, {
2703
- key: E,
2704
- value: y
2702
+ return C = u.name, {
2703
+ key: N,
2704
+ value: C
2705
2705
  };
2706
2706
  } else if (u.type === "checkbox")
2707
- y = u.checked;
2707
+ C = u.checked;
2708
2708
  else if (u.type === "number" || u.type === "range") {
2709
- const R = u.valueAsNumber;
2710
- isNaN(R) || (y = R);
2709
+ const E = u.valueAsNumber;
2710
+ isNaN(E) || (C = E);
2711
2711
  } else
2712
- u.type === "file" ? y = u.files : y = u.value;
2712
+ u.type === "file" ? C = u.files : C = u.value;
2713
2713
  else
2714
- y = u.value;
2714
+ C = u.value;
2715
2715
  return {
2716
- key: E,
2717
- value: y
2716
+ key: N,
2717
+ value: C
2718
2718
  };
2719
2719
  });
2720
- let C = e.contentType;
2721
- if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(A).forEach(({ value: u }) => {
2722
- (u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (C = "multipart/form-data");
2723
- }), C !== "application/json")
2724
- b = x;
2720
+ let k = e.contentType;
2721
+ if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(A).forEach(({ value: u }) => {
2722
+ (u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (k = "multipart/form-data");
2723
+ }), k !== "application/json")
2724
+ b = y;
2725
2725
  else {
2726
2726
  const u = {};
2727
- Array.from(A).forEach(({ value: y, key: E }) => {
2728
- Ee(u, E, y);
2727
+ Array.from(A).forEach(({ value: C, key: N }) => {
2728
+ Pe(u, N, C);
2729
2729
  }), b = JSON.stringify(u);
2730
2730
  }
2731
- C && C !== "multipart/form-data" && (f && ((k = e.action) != null && k.includes("zapier.com")) || (p["content-type"] = C));
2732
- const I = new CustomEvent("presubmit", { detail: { body: b } });
2733
- if (t.current && (t.current.dispatchEvent(I), I.defaultPrevented))
2731
+ k && k !== "multipart/form-data" && (f && ((S = e.action) != null && S.includes("zapier.com")) || (p["content-type"] = k));
2732
+ const w = new CustomEvent("presubmit", { detail: { body: b } });
2733
+ if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
2734
2734
  return;
2735
2735
  i("sending");
2736
- const P = `${dn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2736
+ const P = `${un() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2737
2737
  e.sendSubmissionsToEmail || ""
2738
- )}&name=${encodeURIComponent(e.name || "")}`;
2739
- fetch(
2740
- e.sendSubmissionsTo === "email" ? P : e.action,
2741
- { body: b, headers: p, method: e.method || "post" }
2742
- ).then(
2738
+ )}&name=${encodeURIComponent(e.name || "")}`, T = e.sendSubmissionsTo === "email" ? P : e.action;
2739
+ ke(T), fetch(T, { body: b, headers: p, method: e.method || "post" }).then(
2743
2740
  async (u) => {
2744
- let y;
2745
- const E = u.headers.get("content-type");
2746
- if (E && E.indexOf("application/json") !== -1 ? y = await u.json() : y = await u.text(), !u.ok && e.errorMessagePath) {
2747
- let R = Ie(y, e.errorMessagePath);
2748
- R && (typeof R != "string" && (R = JSON.stringify(R)), l(R), d({ formErrorMessage: R }));
2741
+ let C;
2742
+ const N = u.headers.get("content-type");
2743
+ if (N && N.indexOf("application/json") !== -1 ? C = await u.json() : C = await u.text(), !u.ok && e.errorMessagePath) {
2744
+ let E = Ee(C, e.errorMessagePath);
2745
+ E && (typeof E != "string" && (E = JSON.stringify(E)), l(E), d({ formErrorMessage: E }));
2749
2746
  }
2750
- if (r(y), i(u.ok ? "success" : "error"), u.ok) {
2751
- const R = new CustomEvent("submit:success", {
2752
- detail: { res: u, body: y }
2747
+ if (r(C), i(u.ok ? "success" : "error"), u.ok) {
2748
+ const E = new CustomEvent("submit:success", {
2749
+ detail: { res: u, body: C }
2753
2750
  });
2754
2751
  if (t.current) {
2755
- if (t.current.dispatchEvent(R), R.defaultPrevented)
2752
+ if (t.current.dispatchEvent(E), E.defaultPrevented)
2756
2753
  return;
2757
2754
  e.resetFormOnSubmit !== !1 && t.current.reset();
2758
2755
  }
2759
2756
  if (e.successUrl)
2760
2757
  if (t.current) {
2761
- const N = new CustomEvent("route", {
2758
+ const M = new CustomEvent("route", {
2762
2759
  detail: { url: e.successUrl }
2763
2760
  });
2764
- t.current.dispatchEvent(N), N.defaultPrevented || (location.href = e.successUrl);
2761
+ t.current.dispatchEvent(M), M.defaultPrevented || (location.href = e.successUrl);
2765
2762
  } else
2766
2763
  location.href = e.successUrl;
2767
2764
  }
2768
2765
  },
2769
2766
  (u) => {
2770
- const y = new CustomEvent("submit:error", {
2767
+ const C = new CustomEvent("submit:error", {
2771
2768
  detail: { error: u }
2772
2769
  });
2773
- t.current && (t.current.dispatchEvent(y), y.defaultPrevented) || (r(u), i("error"));
2770
+ t.current && (t.current.dispatchEvent(C), C.defaultPrevented) || (r(u), i("error"));
2774
2771
  }
2775
2772
  );
2776
2773
  }
2777
2774
  }
2778
- return /* @__PURE__ */ V(T, { children: [
2775
+ return /* @__PURE__ */ V(I, { children: [
2779
2776
  " ",
2780
2777
  /* @__PURE__ */ V(
2781
2778
  "form",
@@ -2785,13 +2782,13 @@ function un(e) {
2785
2782
  action: !e.sendWithJs && e.action,
2786
2783
  method: e.method,
2787
2784
  name: e.name,
2788
- onSubmit: (v) => h(v),
2785
+ onSubmit: (x) => h(x),
2789
2786
  ...e.attributes,
2790
2787
  children: [
2791
- e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(T, { children: (m = (g = e.builderBlock) == null ? void 0 : g.children) == null ? void 0 : m.map((v, f) => /* @__PURE__ */ s(
2788
+ e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(I, { children: (m = (g = e.builderBlock) == null ? void 0 : g.children) == null ? void 0 : m.map((x, f) => /* @__PURE__ */ s(
2792
2789
  j,
2793
2790
  {
2794
- block: v,
2791
+ block: x,
2795
2792
  context: e.builderContext,
2796
2793
  registeredComponents: e.builderComponents,
2797
2794
  linkComponent: e.builderLinkComponent
@@ -2814,7 +2811,7 @@ function un(e) {
2814
2811
  context: e.builderContext
2815
2812
  }
2816
2813
  ) : null,
2817
- c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
2814
+ c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-135d4696", children: JSON.stringify(o, null, 2) }) : null,
2818
2815
  c() === "success" ? /* @__PURE__ */ s(
2819
2816
  F,
2820
2817
  {
@@ -2827,11 +2824,11 @@ function un(e) {
2827
2824
  }
2828
2825
  ),
2829
2826
  " ",
2830
- /* @__PURE__ */ s("style", { children: ".pre-3a20f614 { padding: 10px; color: red; text-align: center; }" }),
2827
+ /* @__PURE__ */ s("style", { children: ".pre-135d4696 { padding: 10px; color: red; text-align: center; }" }),
2831
2828
  " "
2832
2829
  ] });
2833
2830
  }
2834
- const mn = {
2831
+ const fn = {
2835
2832
  name: "Form:Input",
2836
2833
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2837
2834
  inputs: [
@@ -2883,8 +2880,8 @@ const mn = {
2883
2880
  borderColor: "#ccc"
2884
2881
  }
2885
2882
  };
2886
- function fn(e) {
2887
- return /* @__PURE__ */ Ce(
2883
+ function hn(e) {
2884
+ return /* @__PURE__ */ Ie(
2888
2885
  "input",
2889
2886
  {
2890
2887
  ...e.attributes,
@@ -2898,7 +2895,7 @@ function fn(e) {
2898
2895
  }
2899
2896
  );
2900
2897
  }
2901
- const hn = {
2898
+ const gn = {
2902
2899
  name: "Form:Select",
2903
2900
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2904
2901
  defaultStyles: {
@@ -2941,9 +2938,9 @@ const hn = {
2941
2938
  static: !0,
2942
2939
  noWrap: !0
2943
2940
  };
2944
- function gn(e) {
2941
+ function bn(e) {
2945
2942
  var t;
2946
- return /* @__PURE__ */ Ce(
2943
+ return /* @__PURE__ */ Ie(
2947
2944
  "select",
2948
2945
  {
2949
2946
  ...e.attributes,
@@ -2956,7 +2953,7 @@ function gn(e) {
2956
2953
  (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2957
2954
  );
2958
2955
  }
2959
- const bn = {
2956
+ const pn = {
2960
2957
  name: "Form:SubmitButton",
2961
2958
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2962
2959
  defaultStyles: {
@@ -2982,10 +2979,10 @@ const bn = {
2982
2979
  // TODO: defaultChildren
2983
2980
  // canHaveChildren: true,
2984
2981
  };
2985
- function pn(e) {
2982
+ function yn(e) {
2986
2983
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
2987
2984
  }
2988
- const yn = {
2985
+ const xn = {
2989
2986
  name: "Form:TextArea",
2990
2987
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
2991
2988
  inputs: [{
@@ -3022,7 +3019,7 @@ const yn = {
3022
3019
  static: !0,
3023
3020
  noWrap: !0
3024
3021
  };
3025
- function xn(e) {
3022
+ function vn(e) {
3026
3023
  return /* @__PURE__ */ s(
3027
3024
  "textarea",
3028
3025
  {
@@ -3035,7 +3032,7 @@ function xn(e) {
3035
3032
  }
3036
3033
  );
3037
3034
  }
3038
- const vn = {
3035
+ const Sn = {
3039
3036
  // friendlyName?
3040
3037
  name: "Raw:Img",
3041
3038
  hideFromInsertMenu: !0,
@@ -3050,7 +3047,7 @@ const vn = {
3050
3047
  noWrap: !0,
3051
3048
  static: !0
3052
3049
  };
3053
- function Sn(e) {
3050
+ function kn(e) {
3054
3051
  return /* @__PURE__ */ s(
3055
3052
  "img",
3056
3053
  {
@@ -3065,7 +3062,7 @@ function Sn(e) {
3065
3062
  W() && e.imgSrc || "default-key"
3066
3063
  );
3067
3064
  }
3068
- const kn = {
3065
+ const Cn = {
3069
3066
  name: "Video",
3070
3067
  canHaveChildren: !0,
3071
3068
  defaultStyles: {
@@ -3150,7 +3147,7 @@ const kn = {
3150
3147
  builderBlock: !0
3151
3148
  }
3152
3149
  };
3153
- function Cn(e) {
3150
+ function Tn(e) {
3154
3151
  var i, o, r, a, l, d, c;
3155
3152
  function t() {
3156
3153
  return {
@@ -3251,64 +3248,64 @@ function Cn(e) {
3251
3248
  }
3252
3249
  );
3253
3250
  }
3254
- const Tn = () => [{
3255
- component: nn,
3256
- ...tn
3257
- }, {
3258
- component: ln,
3259
- ...on
3251
+ const In = () => [{
3252
+ component: on,
3253
+ ...nn
3260
3254
  }, {
3261
- component: un,
3262
- ...sn
3255
+ component: sn,
3256
+ ...an
3263
3257
  }, {
3264
- component: fn,
3265
- ...mn
3258
+ component: mn,
3259
+ ...cn
3266
3260
  }, {
3267
- component: pn,
3268
- ...bn
3261
+ component: hn,
3262
+ ...fn
3269
3263
  }, {
3270
- component: gn,
3271
- ...hn
3264
+ component: yn,
3265
+ ...pn
3272
3266
  }, {
3273
- component: xn,
3274
- ...yn
3267
+ component: bn,
3268
+ ...gn
3275
3269
  }, {
3276
- component: Sn,
3277
- ...vn
3270
+ component: vn,
3271
+ ...xn
3278
3272
  }, {
3279
- component: Cn,
3280
- ...kn
3281
- }], be = () => [{
3282
- component: Je,
3283
- ...Mt
3273
+ component: kn,
3274
+ ...Sn
3284
3275
  }, {
3285
- component: Ft,
3276
+ component: Tn,
3277
+ ...Cn
3278
+ }], pe = () => [{
3279
+ component: Ge,
3286
3280
  ..._t
3287
3281
  }, {
3288
3282
  component: $t,
3289
3283
  ...qt
3290
3284
  }, {
3291
- component: Ot,
3285
+ component: Dt,
3292
3286
  ...Kt
3293
3287
  }, {
3294
3288
  component: Ut,
3295
3289
  ...zt
3296
3290
  }, {
3297
- component: Gt,
3291
+ component: Ht,
3298
3292
  ...Jt
3299
3293
  }, {
3300
- component: zn,
3301
- ...Yt
3302
- }, {
3303
- component: en,
3304
- ...Zt
3294
+ component: Yt,
3295
+ ...Gt
3305
3296
  }, {
3306
- component: Xt,
3297
+ component: Jn,
3307
3298
  ...Qt
3308
3299
  }, {
3309
- component: jt,
3310
- ...Ht
3311
- }, ...Tn()], In = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3300
+ component: tn,
3301
+ ...en
3302
+ }, {
3303
+ component: Zt,
3304
+ ...Xt
3305
+ }, {
3306
+ component: Mt,
3307
+ ...jt
3308
+ }, ...In()], wn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3312
3309
  function getAndSetVariantId() {
3313
3310
  function setCookie(name, value, days) {
3314
3311
  let expires = '';
@@ -3364,7 +3361,7 @@ const Tn = () => [{
3364
3361
  }).join('');
3365
3362
  styleEl.innerHTML = newStyleStr;
3366
3363
  }
3367
- }`, wn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3364
+ }`, En = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3368
3365
  if (!navigator.cookieEnabled) {
3369
3366
  return;
3370
3367
  }
@@ -3398,26 +3395,26 @@ const Tn = () => [{
3398
3395
  thisScriptEl?.remove();
3399
3396
  }
3400
3397
  return;
3401
- }`, $e = "builderIoAbTest", De = "builderIoRenderContent", _ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3398
+ }`, Le = "builderIoAbTest", Oe = "builderIoRenderContent", q = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3402
3399
  ...t,
3403
3400
  testVariationId: t.id,
3404
3401
  id: e == null ? void 0 : e.id
3405
- })), En = ({
3402
+ })), Rn = ({
3406
3403
  canTrack: e,
3407
3404
  content: t
3408
- }) => !(!(_(t).length > 0) || !e || L()), Rn = (e) => e === "react" || e === "reactNative", Le = Rn(D), Pn = () => `
3409
- window.${$e} = ${In}
3410
- window.${De} = ${wn}
3411
- `, Bn = (e, t) => `
3412
- window.${$e}(
3413
- "${t}",${JSON.stringify(e)}, ${Le}
3414
- )`, Vn = ({
3405
+ }) => !(!(q(t).length > 0) || !e || L()), Pn = (e) => e === "react" || e === "reactNative", Ue = Pn(D), Bn = () => `
3406
+ window.${Le} = ${wn}
3407
+ window.${Oe} = ${En}
3408
+ `, Vn = (e, t) => `
3409
+ window.${Le}(
3410
+ "${t}",${JSON.stringify(e)}, ${Ue}
3411
+ )`, An = ({
3415
3412
  contentId: e,
3416
3413
  variationId: t
3417
- }) => `window.${De}(
3418
- "${t}", "${e}", ${Le}
3414
+ }) => `window.${Oe}(
3415
+ "${t}", "${e}", ${Ue}
3419
3416
  )`;
3420
- function ne(e) {
3417
+ function ie(e) {
3421
3418
  return /* @__PURE__ */ s(
3422
3419
  "script",
3423
3420
  {
@@ -3427,10 +3424,10 @@ function ne(e) {
3427
3424
  }
3428
3425
  );
3429
3426
  }
3430
- function pe(e) {
3427
+ function ye(e) {
3431
3428
  return Math.round(e * 1e3) / 1e3;
3432
3429
  }
3433
- const An = (e, t, n = !0) => {
3430
+ const Nn = (e, t, n = !0) => {
3434
3431
  if (!(e instanceof HTMLElement))
3435
3432
  return null;
3436
3433
  let i = n ? e : e.parentElement;
@@ -3441,35 +3438,35 @@ const An = (e, t, n = !0) => {
3441
3438
  return i;
3442
3439
  } while (i = i.parentElement);
3443
3440
  return null;
3444
- }, Nn = (e) => An(e, (t) => {
3441
+ }, Wn = (e) => Nn(e, (t) => {
3445
3442
  const n = t.getAttribute("builder-id") || t.id;
3446
3443
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3447
- }), ye = ({
3444
+ }), xe = ({
3448
3445
  event: e,
3449
3446
  target: t
3450
3447
  }) => {
3451
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r = pe(i / n.width), a = pe(o / n.height);
3448
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r = ye(i / n.width), a = ye(o / n.height);
3452
3449
  return {
3453
3450
  x: r,
3454
3451
  y: a
3455
3452
  };
3456
- }, Wn = (e) => {
3457
- const t = e.target, n = t && Nn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3453
+ }, Fn = (e) => {
3454
+ const t = e.target, n = t && Wn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3458
3455
  return {
3459
3456
  targetBuilderElement: i || void 0,
3460
3457
  metadata: {
3461
- targetOffset: t ? ye({
3458
+ targetOffset: t ? xe({
3462
3459
  event: e,
3463
3460
  target: t
3464
3461
  }) : void 0,
3465
- builderTargetOffset: n ? ye({
3462
+ builderTargetOffset: n ? xe({
3466
3463
  event: e,
3467
3464
  target: n
3468
3465
  }) : void 0,
3469
3466
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3470
3467
  }
3471
3468
  };
3472
- }, Fn = (e) => {
3469
+ }, $n = (e) => {
3473
3470
  var r, a;
3474
3471
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
3475
3472
  let o = "";
@@ -3495,15 +3492,15 @@ font-weight: ${l};
3495
3492
  `.trim());
3496
3493
  }
3497
3494
  return o;
3498
- }, $n = ({
3495
+ }, Dn = ({
3499
3496
  customFonts: e
3500
3497
  }) => {
3501
3498
  var t;
3502
- return ((t = e == null ? void 0 : e.map((n) => Fn(n))) == null ? void 0 : t.join(" ")) || "";
3503
- }, Dn = ({
3499
+ return ((t = e == null ? void 0 : e.map((n) => $n(n))) == null ? void 0 : t.join(" ")) || "";
3500
+ }, Ln = ({
3504
3501
  cssCode: e,
3505
3502
  contentId: t
3506
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ln = `
3503
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", On = `
3507
3504
  .builder-button {
3508
3505
  all: unset;
3509
3506
  }
@@ -3520,39 +3517,39 @@ font-weight: ${l};
3520
3517
  text-align: inherit;
3521
3518
  font-family: inherit;
3522
3519
  }
3523
- `, On = (e) => e ? "" : Ln, Un = (e) => `variant-${e}`;
3524
- function Hn(e) {
3525
- var b, x, A;
3520
+ `, Un = (e) => e ? "" : On, Hn = (e) => `variant-${e}`;
3521
+ function jn(e) {
3522
+ var b, y, A;
3526
3523
  const t = $(null);
3527
- function n(C) {
3528
- var P, u;
3529
- const I = {
3524
+ function n(k) {
3525
+ var P, T;
3526
+ const w = {
3530
3527
  ...e.builderContextSignal.rootState,
3531
- ...C
3528
+ ...k
3532
3529
  };
3533
- e.builderContextSignal.rootSetState ? (u = (P = e.builderContextSignal).rootSetState) == null || u.call(P, I) : e.setBuilderContextSignal((y) => ({
3534
- ...y,
3535
- rootState: I
3530
+ e.builderContextSignal.rootSetState ? (T = (P = e.builderContextSignal).rootSetState) == null || T.call(P, w) : e.setBuilderContextSignal((u) => ({
3531
+ ...u,
3532
+ rootState: w
3536
3533
  }));
3537
3534
  }
3538
- function i(C) {
3539
- var P, u, y, E, R;
3540
- const I = {
3535
+ function i(k) {
3536
+ var P, T, u, C, N;
3537
+ const w = {
3541
3538
  ...e.builderContextSignal.content,
3542
- ...C,
3539
+ ...k,
3543
3540
  data: {
3544
3541
  ...(P = e.builderContextSignal.content) == null ? void 0 : P.data,
3545
- ...C == null ? void 0 : C.data
3542
+ ...k == null ? void 0 : k.data
3546
3543
  },
3547
3544
  meta: {
3548
- ...(u = e.builderContextSignal.content) == null ? void 0 : u.meta,
3549
- ...C == null ? void 0 : C.meta,
3550
- breakpoints: ((y = C == null ? void 0 : C.meta) == null ? void 0 : y.breakpoints) || ((R = (E = e.builderContextSignal.content) == null ? void 0 : E.meta) == null ? void 0 : R.breakpoints)
3545
+ ...(T = e.builderContextSignal.content) == null ? void 0 : T.meta,
3546
+ ...k == null ? void 0 : k.meta,
3547
+ breakpoints: ((u = k == null ? void 0 : k.meta) == null ? void 0 : u.breakpoints) || ((N = (C = e.builderContextSignal.content) == null ? void 0 : C.meta) == null ? void 0 : N.breakpoints)
3551
3548
  }
3552
3549
  };
3553
- e.setBuilderContextSignal((N) => ({
3554
- ...N,
3555
- content: I
3550
+ e.setBuilderContextSignal((E) => ({
3551
+ ...E,
3552
+ content: w
3556
3553
  }));
3557
3554
  }
3558
3555
  function o() {
@@ -3561,62 +3558,62 @@ function Hn(e) {
3561
3558
  "aria-hidden": !0
3562
3559
  };
3563
3560
  }
3564
- const [r, a] = w(
3561
+ const [r, a] = R(
3565
3562
  () => e.contentWrapper || "div"
3566
3563
  );
3567
- function l(C) {
3568
- return _e({
3564
+ function l(k) {
3565
+ return qe({
3569
3566
  model: e.model,
3570
3567
  trustedHosts: e.trustedHosts,
3571
3568
  callbacks: {
3572
- configureSdk: (I) => {
3573
- var y;
3574
- const { breakpoints: P, contentId: u } = I;
3575
- !u || u !== ((y = e.builderContextSignal.content) == null ? void 0 : y.id) || P && i({
3569
+ configureSdk: (w) => {
3570
+ var u;
3571
+ const { breakpoints: P, contentId: T } = w;
3572
+ !T || T !== ((u = e.builderContextSignal.content) == null ? void 0 : u.id) || P && i({
3576
3573
  meta: {
3577
3574
  breakpoints: P
3578
3575
  }
3579
3576
  });
3580
3577
  },
3581
- animation: (I) => {
3582
- Be(I);
3578
+ animation: (w) => {
3579
+ Ae(w);
3583
3580
  },
3584
- contentUpdate: (I) => {
3585
- i(I);
3581
+ contentUpdate: (w) => {
3582
+ i(w);
3586
3583
  }
3587
3584
  }
3588
- })(C);
3585
+ })(k);
3589
3586
  }
3590
- const [d, c] = w(() => ({})), [h, g] = w(() => ({})), [m, v] = w(() => !1);
3591
- function f(C) {
3592
- var I, P;
3587
+ const [d, c] = R(() => ({})), [h, g] = R(() => ({})), [m, x] = R(() => !1);
3588
+ function f(k) {
3589
+ var w, P;
3593
3590
  if (e.builderContextSignal.content) {
3594
- const u = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, y = (P = e.builderContextSignal.content) == null ? void 0 : P.id;
3595
- le({
3591
+ const T = (w = e.builderContextSignal.content) == null ? void 0 : w.testVariationId, u = (P = e.builderContextSignal.content) == null ? void 0 : P.id;
3592
+ se({
3596
3593
  apiHost: e.apiHost,
3597
3594
  type: "click",
3598
- canTrack: K(e.canTrack),
3599
- contentId: y,
3595
+ canTrack: z(e.canTrack),
3596
+ contentId: u,
3600
3597
  apiKey: e.apiKey,
3601
- variationId: u !== y ? u : void 0,
3602
- ...Wn(C),
3598
+ variationId: T !== u ? T : void 0,
3599
+ ...Fn(k),
3603
3600
  unique: !m
3604
3601
  });
3605
3602
  }
3606
- m || v(!0);
3603
+ m || x(!0);
3607
3604
  }
3608
- function k() {
3609
- var I, P, u;
3610
- const C = (u = (P = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : P.httpRequests) != null ? u : {};
3611
- Object.entries(C).forEach(([y, E]) => {
3612
- if (!E || h[y] || d[y] && !W())
3605
+ function S() {
3606
+ var w, P, T;
3607
+ const k = (T = (P = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : P.httpRequests) != null ? T : {};
3608
+ Object.entries(k).forEach(([u, C]) => {
3609
+ if (!C || h[u] || d[u] && !W())
3613
3610
  return;
3614
- h[y] = !0;
3615
- const R = E.replace(
3611
+ h[u] = !0;
3612
+ const N = C.replace(
3616
3613
  /{{([^}]+)}}/g,
3617
- (N, Oe) => String(
3614
+ (E, M) => String(
3618
3615
  O({
3619
- code: Oe,
3616
+ code: M,
3620
3617
  context: e.context || {},
3621
3618
  localState: void 0,
3622
3619
  rootState: e.builderContextSignal.rootState,
@@ -3624,24 +3621,24 @@ function Hn(e) {
3624
3621
  })
3625
3622
  )
3626
3623
  );
3627
- fetch(R).then((N) => N.json()).then((N) => {
3624
+ ke(N), fetch(N).then((E) => E.json()).then((E) => {
3628
3625
  n({
3629
- [y]: N
3630
- }), d[y] = !0;
3631
- }).catch((N) => {
3632
- console.error("error fetching dynamic data", E, N);
3626
+ [u]: E
3627
+ }), d[u] = !0;
3628
+ }).catch((E) => {
3629
+ console.error("error fetching dynamic data", C, E);
3633
3630
  }).finally(() => {
3634
- h[y] = !1;
3631
+ h[u] = !1;
3635
3632
  });
3636
3633
  });
3637
3634
  }
3638
- function S() {
3635
+ function v() {
3639
3636
  W() && window.dispatchEvent(
3640
3637
  new CustomEvent(
3641
3638
  "builder:component:stateChange",
3642
3639
  {
3643
3640
  detail: {
3644
- state: ae(e.builderContextSignal.rootState),
3641
+ state: re(e.builderContextSignal.rootState),
3645
3642
  ref: {
3646
3643
  name: e.model
3647
3644
  }
@@ -3651,10 +3648,10 @@ function Hn(e) {
3651
3648
  );
3652
3649
  }
3653
3650
  const p = $(!1);
3654
- return p.current || (k(), S(), p.current = !0), B(() => {
3655
- var C, I;
3651
+ return p.current || (S(), v(), p.current = !0), B(() => {
3652
+ var k, w;
3656
3653
  if (L()) {
3657
- if (W() && !e.isNestedRender && (window.addEventListener("message", l), He(), je({
3654
+ if (W() && !e.isNestedRender && (window.addEventListener("message", l), je(), Me({
3658
3655
  ...e.locale ? {
3659
3656
  locale: e.locale
3660
3657
  } : {},
@@ -3666,41 +3663,41 @@ function Hn(e) {
3666
3663
  } : {}
3667
3664
  }), Object.values(
3668
3665
  e.builderContextSignal.componentInfos
3669
- ).forEach((u) => {
3670
- var E;
3671
- const y = Me(u);
3672
- (E = window.parent) == null || E.postMessage(y, "*");
3666
+ ).forEach((T) => {
3667
+ var C;
3668
+ const u = _e(T);
3669
+ (C = window.parent) == null || C.postMessage(u, "*");
3673
3670
  }), window.addEventListener(
3674
3671
  "builder:component:stateChangeListenerActivated",
3675
- S
3676
- )), e.builderContextSignal.content && K(e.canTrack)) {
3677
- const u = (C = e.builderContextSignal.content) == null ? void 0 : C.testVariationId, y = (I = e.builderContextSignal.content) == null ? void 0 : I.id, E = e.apiKey;
3678
- le({
3672
+ v
3673
+ )), e.builderContextSignal.content && z(e.canTrack)) {
3674
+ const T = (k = e.builderContextSignal.content) == null ? void 0 : k.testVariationId, u = (w = e.builderContextSignal.content) == null ? void 0 : w.id, C = e.apiKey;
3675
+ se({
3679
3676
  apiHost: e.apiHost,
3680
3677
  type: "impression",
3681
3678
  canTrack: !0,
3682
- contentId: y,
3683
- apiKey: E,
3684
- variationId: u !== y ? u : void 0
3679
+ contentId: u,
3680
+ apiKey: C,
3681
+ variationId: T !== u ? T : void 0
3685
3682
  });
3686
3683
  }
3687
- if (ve() && !W()) {
3688
- const u = new URL(location.href).searchParams, y = u.get("builder.preview"), E = u.get(
3689
- `builder.overrides.${y}`
3690
- ), R = u.get("apiKey") || u.get("builder.space");
3691
- y === e.model && R === e.apiKey && (!e.content || E === e.content.id) && Se({
3684
+ if (Se() && !W()) {
3685
+ const T = new URL(location.href).searchParams, u = T.get("builder.preview"), C = T.get(
3686
+ `builder.overrides.${u}`
3687
+ ), N = T.get("apiKey") || T.get("builder.space");
3688
+ u === e.model && N === e.apiKey && (!e.content || C === e.content.id) && Ce({
3692
3689
  model: e.model,
3693
3690
  apiKey: e.apiKey,
3694
3691
  apiVersion: e.builderContextSignal.apiVersion
3695
- }).then((N) => {
3696
- N && i(N);
3692
+ }).then((E) => {
3693
+ E && i(E);
3697
3694
  });
3698
3695
  }
3699
3696
  }
3700
3697
  }, []), B(() => {
3701
3698
  e.content && i(e.content);
3702
3699
  }, [e.content]), B(() => {
3703
- S();
3700
+ v();
3704
3701
  }, [e.builderContextSignal.rootState]), B(() => {
3705
3702
  e.data && n(e.data);
3706
3703
  }, [e.data]), B(() => {
@@ -3710,17 +3707,17 @@ function Hn(e) {
3710
3707
  }, [e.locale]), B(() => () => {
3711
3708
  L() && (window.removeEventListener("message", l), window.removeEventListener(
3712
3709
  "builder:component:stateChangeListenerActivated",
3713
- S
3710
+ v
3714
3711
  ));
3715
- }, []), /* @__PURE__ */ s(oe.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3712
+ }, []), /* @__PURE__ */ s(ae.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3716
3713
  r,
3717
3714
  {
3718
3715
  ref: t,
3719
- onClick: (C) => f(C),
3716
+ onClick: (k) => f(k),
3720
3717
  "builder-content-id": (b = e.builderContextSignal.content) == null ? void 0 : b.id,
3721
3718
  "builder-model": e.model,
3722
- className: Un(
3723
- ((x = e.content) == null ? void 0 : x.testVariationId) || ((A = e.content) == null ? void 0 : A.id)
3719
+ className: Hn(
3720
+ ((y = e.content) == null ? void 0 : y.testVariationId) || ((A = e.content) == null ? void 0 : A.id)
3724
3721
  ),
3725
3722
  ...o(),
3726
3723
  ...e.contentWrapperProps,
@@ -3728,21 +3725,21 @@ function Hn(e) {
3728
3725
  }
3729
3726
  ) : null });
3730
3727
  }
3731
- function jn(e) {
3732
- const [t, n] = w(
3728
+ function Mn(e) {
3729
+ const [t, n] = R(
3733
3730
  () => `
3734
- ${Dn({
3731
+ ${Ln({
3735
3732
  cssCode: e.cssCode,
3736
3733
  contentId: e.contentId
3737
3734
  })}
3738
- ${$n({
3735
+ ${Dn({
3739
3736
  customFonts: e.customFonts
3740
3737
  })}
3741
- ${On(e.isNestedRender)}
3738
+ ${Un(e.isNestedRender)}
3742
3739
  `.trim()
3743
3740
  );
3744
3741
  return /* @__PURE__ */ s(
3745
- G,
3742
+ Y,
3746
3743
  {
3747
3744
  id: "builderio-content",
3748
3745
  styles: t,
@@ -3750,7 +3747,7 @@ ${On(e.isNestedRender)}
3750
3747
  }
3751
3748
  );
3752
3749
  }
3753
- const Mn = ({
3750
+ const _n = ({
3754
3751
  content: e,
3755
3752
  data: t,
3756
3753
  locale: n
@@ -3767,7 +3764,7 @@ const Mn = ({
3767
3764
  locale: n
3768
3765
  } : {}
3769
3766
  };
3770
- }, _n = ({
3767
+ }, qn = ({
3771
3768
  content: e,
3772
3769
  data: t
3773
3770
  }) => e ? {
@@ -3778,51 +3775,51 @@ const Mn = ({
3778
3775
  },
3779
3776
  meta: e == null ? void 0 : e.meta
3780
3777
  } : void 0;
3781
- function xe(e) {
3782
- var c, h, g, m, v, f, k, S, p;
3783
- const [t, n] = w(
3778
+ function ve(e) {
3779
+ var c, h, g, m, x, f, S, v, p;
3780
+ const [t, n] = R(
3784
3781
  () => {
3785
- var b, x;
3786
- return Vn({
3782
+ var b, y;
3783
+ return An({
3787
3784
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3788
3785
  variationId: (b = e.content) == null ? void 0 : b.testVariationId,
3789
3786
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3790
- contentId: (x = e.content) == null ? void 0 : x.id
3787
+ contentId: (y = e.content) == null ? void 0 : y.id
3791
3788
  });
3792
3789
  }
3793
3790
  );
3794
3791
  function i(b) {
3795
- l((x) => ({
3796
- ...x,
3792
+ l((y) => ({
3793
+ ...y,
3797
3794
  rootState: b
3798
3795
  }));
3799
3796
  }
3800
- const [o, r] = w(
3797
+ const [o, r] = R(
3801
3798
  () => {
3802
3799
  var b;
3803
3800
  return [
3804
- ...be(),
3805
- ...((b = e.customComponents) == null ? void 0 : b.filter(({ models: x }) => !(x != null && x.length) || !e.model ? !0 : x.includes(e.model))) || []
3801
+ ...pe(),
3802
+ ...((b = e.customComponents) == null ? void 0 : b.filter(({ models: y }) => !(y != null && y.length) || !e.model ? !0 : y.includes(e.model))) || []
3806
3803
  ].reduce(
3807
- (x, { component: A, ...C }) => ({
3808
- ...x,
3809
- [C.name]: {
3804
+ (y, { component: A, ...k }) => ({
3805
+ ...y,
3806
+ [k.name]: {
3810
3807
  component: A,
3811
- ...se(C)
3808
+ ...ce(k)
3812
3809
  }
3813
3810
  }),
3814
3811
  {}
3815
3812
  );
3816
3813
  }
3817
- ), [a, l] = w(() => {
3814
+ ), [a, l] = R(() => {
3818
3815
  var b;
3819
3816
  return {
3820
- content: _n({
3817
+ content: qn({
3821
3818
  content: e.content,
3822
3819
  data: e.data
3823
3820
  }),
3824
3821
  localState: void 0,
3825
- rootState: Mn({
3822
+ rootState: _n({
3826
3823
  content: e.content,
3827
3824
  data: e.data,
3828
3825
  locale: e.locale
@@ -3833,12 +3830,12 @@ function xe(e) {
3833
3830
  apiKey: e.apiKey,
3834
3831
  apiVersion: e.apiVersion,
3835
3832
  componentInfos: [
3836
- ...be(),
3837
- ...((b = e.customComponents) == null ? void 0 : b.filter(({ models: x }) => !(x != null && x.length) || !e.model ? !0 : x.includes(e.model))) || []
3833
+ ...pe(),
3834
+ ...((b = e.customComponents) == null ? void 0 : b.filter(({ models: y }) => !(y != null && y.length) || !e.model ? !0 : y.includes(e.model))) || []
3838
3835
  ].reduce(
3839
- (x, { component: A, ...C }) => ({
3840
- ...x,
3841
- [C.name]: se(C)
3836
+ (y, { component: A, ...k }) => ({
3837
+ ...y,
3838
+ [k.name]: ce(k)
3842
3839
  }),
3843
3840
  {}
3844
3841
  ),
@@ -3849,7 +3846,7 @@ function xe(e) {
3849
3846
  };
3850
3847
  }), d = $(!1);
3851
3848
  if (!d.current) {
3852
- e.apiKey || z.error(
3849
+ e.apiKey || J.error(
3853
3850
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3854
3851
  );
3855
3852
  const b = (h = (c = a.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
@@ -3858,20 +3855,20 @@ function xe(e) {
3858
3855
  context: e.context || {},
3859
3856
  localState: void 0,
3860
3857
  rootState: a.rootState,
3861
- rootSetState: (x) => {
3862
- Object.assign(a.rootState, x);
3858
+ rootSetState: (y) => {
3859
+ Object.assign(a.rootState, y);
3863
3860
  },
3864
3861
  isExpression: !1
3865
3862
  }), d.current = !0;
3866
3863
  }
3867
3864
  return /* @__PURE__ */ s(
3868
- Te.Provider,
3865
+ we.Provider,
3869
3866
  {
3870
3867
  value: {
3871
3868
  registeredComponents: o
3872
3869
  },
3873
3870
  children: /* @__PURE__ */ V(
3874
- Hn,
3871
+ jn,
3875
3872
  {
3876
3873
  apiHost: e.apiHost,
3877
3874
  nonce: e.nonce,
@@ -3892,7 +3889,7 @@ function xe(e) {
3892
3889
  setBuilderContextSignal: l,
3893
3890
  children: [
3894
3891
  e.isSsrAbTest ? /* @__PURE__ */ s(
3895
- ne,
3892
+ ie,
3896
3893
  {
3897
3894
  id: "builderio-variant-visibility",
3898
3895
  scriptStr: t,
@@ -3900,19 +3897,19 @@ function xe(e) {
3900
3897
  }
3901
3898
  ) : null,
3902
3899
  /* @__PURE__ */ s(
3903
- jn,
3900
+ Mn,
3904
3901
  {
3905
3902
  nonce: e.nonce || "",
3906
3903
  isNestedRender: e.isNestedRender,
3907
3904
  contentId: (g = a.content) == null ? void 0 : g.id,
3908
- cssCode: (v = (m = a.content) == null ? void 0 : m.data) == null ? void 0 : v.cssCode,
3909
- customFonts: (k = (f = a.content) == null ? void 0 : f.data) == null ? void 0 : k.customFonts
3905
+ cssCode: (x = (m = a.content) == null ? void 0 : m.data) == null ? void 0 : x.cssCode,
3906
+ customFonts: (S = (f = a.content) == null ? void 0 : f.data) == null ? void 0 : S.customFonts
3910
3907
  }
3911
3908
  ),
3912
3909
  /* @__PURE__ */ s(
3913
3910
  F,
3914
3911
  {
3915
- blocks: (p = (S = a.content) == null ? void 0 : S.data) == null ? void 0 : p.blocks,
3912
+ blocks: (p = (v = a.content) == null ? void 0 : v.data) == null ? void 0 : p.blocks,
3916
3913
  context: a,
3917
3914
  registeredComponents: o,
3918
3915
  linkComponent: e.linkComponent
@@ -3924,18 +3921,18 @@ function xe(e) {
3924
3921
  }
3925
3922
  );
3926
3923
  }
3927
- function qn(e) {
3924
+ function Kn(e) {
3928
3925
  var a;
3929
- const [t, n] = w(
3930
- () => En({
3931
- canTrack: K(e.canTrack),
3926
+ const [t, n] = R(
3927
+ () => Rn({
3928
+ canTrack: z(e.canTrack),
3932
3929
  content: e.content
3933
3930
  })
3934
3931
  );
3935
3932
  function i() {
3936
3933
  var l;
3937
- return Bn(
3938
- _(e.content).map((d) => ({
3934
+ return Vn(
3935
+ q(e.content).map((d) => ({
3939
3936
  id: d.testVariationId,
3940
3937
  testRatio: d.testRatio
3941
3938
  })),
@@ -3943,31 +3940,31 @@ function qn(e) {
3943
3940
  );
3944
3941
  }
3945
3942
  function o() {
3946
- return _(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
3943
+ return q(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
3947
3944
  }
3948
3945
  function r() {
3949
3946
  var l;
3950
3947
  return t ? {
3951
3948
  ...e.content,
3952
3949
  testVariationId: (l = e.content) == null ? void 0 : l.id
3953
- } : qe({
3950
+ } : Ke({
3954
3951
  item: e.content,
3955
- canTrack: K(e.canTrack)
3952
+ canTrack: z(e.canTrack)
3956
3953
  });
3957
3954
  }
3958
3955
  return B(() => {
3959
- }, []), /* @__PURE__ */ V(T, { children: [
3956
+ }, []), /* @__PURE__ */ V(I, { children: [
3960
3957
  !e.isNestedRender && D !== "reactNative" ? /* @__PURE__ */ s(
3961
- ne,
3958
+ ie,
3962
3959
  {
3963
3960
  id: "builderio-init-variants-fns",
3964
- scriptStr: Pn(),
3961
+ scriptStr: Bn(),
3965
3962
  nonce: e.nonce || ""
3966
3963
  }
3967
3964
  ) : null,
3968
- t ? /* @__PURE__ */ V(T, { children: [
3965
+ t ? /* @__PURE__ */ V(I, { children: [
3969
3966
  /* @__PURE__ */ s(
3970
- G,
3967
+ Y,
3971
3968
  {
3972
3969
  id: "builderio-variants",
3973
3970
  styles: o(),
@@ -3975,15 +3972,15 @@ function qn(e) {
3975
3972
  }
3976
3973
  ),
3977
3974
  /* @__PURE__ */ s(
3978
- ne,
3975
+ ie,
3979
3976
  {
3980
3977
  id: "builderio-variants-visibility",
3981
3978
  scriptStr: i(),
3982
3979
  nonce: e.nonce || ""
3983
3980
  }
3984
3981
  ),
3985
- (a = _(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
3986
- xe,
3982
+ (a = q(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
3983
+ ve,
3987
3984
  {
3988
3985
  apiHost: e.apiHost,
3989
3986
  isNestedRender: e.isNestedRender,
@@ -4011,7 +4008,7 @@ function qn(e) {
4011
4008
  ))
4012
4009
  ] }) : null,
4013
4010
  /* @__PURE__ */ s(
4014
- xe,
4011
+ ve,
4015
4012
  {
4016
4013
  apiHost: e.apiHost,
4017
4014
  nonce: e.nonce,
@@ -4038,13 +4035,13 @@ function qn(e) {
4038
4035
  )
4039
4036
  ] });
4040
4037
  }
4041
- const Kn = async ({
4038
+ const zn = async ({
4042
4039
  builderContextValue: e,
4043
4040
  symbol: t
4044
4041
  }) => {
4045
4042
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4046
4043
  (e != null && e.apiKey))
4047
- return Se({
4044
+ return Ce({
4048
4045
  model: t.model,
4049
4046
  apiKey: e.apiKey,
4050
4047
  apiVersion: e.apiVersion,
@@ -4054,10 +4051,10 @@ const Kn = async ({
4054
4051
  }
4055
4052
  }
4056
4053
  }).catch((n) => {
4057
- z.error("Could not fetch symbol content: ", n);
4054
+ J.error("Could not fetch symbol content: ", n);
4058
4055
  });
4059
4056
  };
4060
- function zn(e) {
4057
+ function Jn(e) {
4061
4058
  var l, d, c, h;
4062
4059
  function t() {
4063
4060
  return "div";
@@ -4074,12 +4071,12 @@ function zn(e) {
4074
4071
  (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4075
4072
  ].filter(Boolean).join(" ");
4076
4073
  }
4077
- const [o, r] = w(() => {
4074
+ const [o, r] = R(() => {
4078
4075
  var g;
4079
4076
  return (g = e.symbol) == null ? void 0 : g.content;
4080
4077
  });
4081
4078
  function a() {
4082
- o || Kn({
4079
+ o || zn({
4083
4080
  symbol: e.symbol,
4084
4081
  builderContextValue: e.builderContext
4085
4082
  }).then((g) => {
@@ -4090,7 +4087,7 @@ function zn(e) {
4090
4087
  }, []), B(() => {
4091
4088
  a();
4092
4089
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
4093
- qn,
4090
+ Kn,
4094
4091
  {
4095
4092
  nonce: e.builderContext.nonce,
4096
4093
  isNestedRender: !0,
@@ -4117,14 +4114,14 @@ function zn(e) {
4117
4114
  }
4118
4115
  export {
4119
4116
  F as Blocks,
4120
- oe as BuilderContext,
4121
- Je as Button,
4122
- Ft as Columns,
4123
- qn as Content,
4124
- $t as Fragment,
4125
- Ot as Image,
4126
- Ut as Section,
4127
- zn as Symbol,
4128
- en as Text,
4129
- Cn as Video
4117
+ ae as BuilderContext,
4118
+ Ge as Button,
4119
+ $t as Columns,
4120
+ Kn as Content,
4121
+ Dt as Fragment,
4122
+ Ut as Image,
4123
+ Ht as Section,
4124
+ Jn as Symbol,
4125
+ tn as Text,
4126
+ Tn as Video
4130
4127
  };