@builder.io/sdk-react 2.0.2-1 → 2.0.2-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/lib/browser/blocks-exports.cjs +24 -24
  2. package/lib/browser/blocks-exports.mjs +319 -299
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/init.cjs +1 -1
  6. package/lib/browser/init.mjs +1 -1
  7. package/lib/browser/{server-entry-45c77a86.js → server-entry-441053ba.js} +3 -3
  8. package/lib/browser/{server-entry-69a4d3c9.cjs → server-entry-56e8004a.cjs} +1 -1
  9. package/lib/browser/server-entry.cjs +1 -1
  10. package/lib/browser/server-entry.mjs +1 -1
  11. package/lib/edge/{accordion-ddf18178.js → accordion-24b26431.js} +1 -1
  12. package/lib/edge/{accordion-7896cae6.cjs → accordion-f87e2b96.cjs} +1 -1
  13. package/lib/edge/{blocks-10f68d94.js → blocks-53095100.js} +404 -384
  14. package/lib/edge/{blocks-03bf455b.cjs → blocks-802e3770.cjs} +13 -13
  15. package/lib/edge/blocks-exports.cjs +1 -1
  16. package/lib/edge/blocks-exports.mjs +2 -2
  17. package/lib/edge/{button-cba5f3f8.js → button-73485ccc.js} +2 -2
  18. package/lib/edge/{button-91e0aec2.cjs → button-b0f515b1.cjs} +1 -1
  19. package/lib/edge/{columns-080edf58.cjs → columns-1f80b3f3.cjs} +1 -1
  20. package/lib/edge/{columns-6bfc17df.js → columns-405f1d21.js} +3 -3
  21. package/lib/edge/{content-variants-d855ce6c.js → content-variants-579677ec.js} +10 -10
  22. package/lib/edge/{content-variants-65794f41.cjs → content-variants-f380acc1.cjs} +1 -1
  23. package/lib/edge/{form-23561b33.cjs → form-2862b060.cjs} +1 -1
  24. package/lib/edge/{form-f4cd948c.js → form-c2684aa9.js} +3 -3
  25. package/lib/edge/{get-class-prop-name-237cd359.cjs → get-class-prop-name-2d695e7d.cjs} +1 -1
  26. package/lib/edge/{get-class-prop-name-1928cf9f.js → get-class-prop-name-ade06415.js} +1 -1
  27. package/lib/edge/{img-86db320f.cjs → img-29a47783.cjs} +1 -1
  28. package/lib/edge/{img-f9ec8689.js → img-a605abb9.js} +1 -1
  29. package/lib/edge/index.cjs +1 -1
  30. package/lib/edge/index.mjs +1 -1
  31. package/lib/edge/init.cjs +1 -1
  32. package/lib/edge/init.mjs +1 -1
  33. package/lib/edge/{input-394e72b8.js → input-24ab9912.js} +1 -1
  34. package/lib/edge/{input-953ef2fe.cjs → input-afb0eaae.cjs} +1 -1
  35. package/lib/edge/{select-9bb6b8c1.cjs → select-542f9b0e.cjs} +1 -1
  36. package/lib/edge/{select-3e25848f.js → select-b7b61dde.js} +1 -1
  37. package/lib/edge/{server-entry-771d1637.js → server-entry-042bd6f0.js} +1 -1
  38. package/lib/edge/{server-entry-6bd1c4bc.cjs → server-entry-b32a9c32.cjs} +1 -1
  39. package/lib/edge/server-entry.cjs +1 -1
  40. package/lib/edge/server-entry.mjs +1 -1
  41. package/lib/edge/{slot-22940ad6.cjs → slot-19716d77.cjs} +1 -1
  42. package/lib/edge/{slot-881129c3.js → slot-d08698a2.js} +3 -3
  43. package/lib/edge/{symbol-faa97614.js → symbol-9aaa9700.js} +2 -2
  44. package/lib/edge/{symbol-58595a6d.cjs → symbol-be4081db.cjs} +1 -1
  45. package/lib/edge/{tabs-dc23d0fa.cjs → tabs-4cb2e700.cjs} +1 -1
  46. package/lib/edge/{tabs-f0ca75e4.js → tabs-e32544a6.js} +3 -3
  47. package/lib/node/blocks-exports.cjs +24 -24
  48. package/lib/node/blocks-exports.mjs +303 -283
  49. package/lib/node/index.cjs +1 -1
  50. package/lib/node/index.mjs +2 -2
  51. package/lib/node/init.cjs +1 -1
  52. package/lib/node/init.mjs +2 -2
  53. package/lib/node/{node-runtime-55fc8cd4.cjs → node-runtime-9af386e9.cjs} +1 -1
  54. package/lib/node/{node-runtime-46d21495.js → node-runtime-df1706b0.js} +1 -1
  55. package/lib/node/{server-entry-11eee7d8.cjs → server-entry-1224f4f2.cjs} +1 -1
  56. package/lib/node/{server-entry-d45c1bf6.js → server-entry-f7ab9ed1.js} +1 -1
  57. package/lib/node/server-entry.cjs +1 -1
  58. package/lib/node/server-entry.mjs +1 -1
  59. package/package.json +1 -1
  60. package/types/constants/sdk-version.d.ts +1 -1
  61. package/types/functions/get-processed-block.d.ts +1 -0
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- var qe = Object.defineProperty;
3
- var Ke = (e, t, n) => t in e ? qe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
- var ne = (e, t, n) => (Ke(e, typeof t != "symbol" ? t + "" : t, n), n);
2
+ var Ke = Object.defineProperty;
3
+ var ze = (e, t, n) => t in e ? Ke(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
+ var ne = (e, t, n) => (ze(e, typeof t != "symbol" ? t + "" : t, n), n);
5
5
  import { jsx as l, Fragment as R, jsxs as P } from "react/jsx-runtime";
6
- import { TARGET as z, isEditing as $, isBrowser as M, getUserAttributes as ze, checkIsDefined as G, logger as X, fastClone as ce, isPreviewing as Ie, registerInsertMenu as _e, setupBrowserForEditing as Je, createRegisterComponentMessage as Ye, getDefaultCanTrack as Q, _track as fe, fetchOneEntry as we, createEditorListener as Ge, fetch as Qe, serializeComponentInfo as he, handleABTestingSync as Xe } from "./server-entry-45c77a86.js";
7
- import { createContext as Re, useState as T, useEffect as B, useContext as ge, useRef as Z, createElement as Ee } from "react";
8
- const Ze = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), et = (e) => typeof e == "string" && Ze.has(e.toLowerCase());
6
+ import { TARGET as z, isEditing as $, isBrowser as j, getUserAttributes as _e, checkIsDefined as G, logger as X, fastClone as we, isPreviewing as Ie, registerInsertMenu as Je, setupBrowserForEditing as Ye, createRegisterComponentMessage as Ge, getDefaultCanTrack as Q, _track as fe, fetchOneEntry as Re, createEditorListener as Qe, fetch as Xe, serializeComponentInfo as he, handleABTestingSync as Ze } from "./server-entry-441053ba.js";
7
+ import { createContext as Ee, useState as T, useEffect as B, useContext as ge, useRef as Z, createElement as Be } from "react";
8
+ const et = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), tt = (e) => typeof e == "string" && et.has(e.toLowerCase());
9
9
  function de(e) {
10
- return /* @__PURE__ */ l(R, { children: et(e.TagName) ? /* @__PURE__ */ l(R, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
10
+ return /* @__PURE__ */ l(R, { children: tt(e.TagName) ? /* @__PURE__ */ l(R, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
11
11
  }
12
12
  const q = () => {
13
13
  switch (z) {
@@ -23,7 +23,7 @@ const q = () => {
23
23
  return "class";
24
24
  }
25
25
  };
26
- function tt(e) {
26
+ function nt(e) {
27
27
  function t() {
28
28
  return {
29
29
  ...e.attributes,
@@ -47,7 +47,7 @@ function tt(e) {
47
47
  }
48
48
  );
49
49
  }
50
- const ue = Re({
50
+ const ue = Ee({
51
51
  content: null,
52
52
  context: {},
53
53
  localState: void 0,
@@ -61,15 +61,21 @@ const ue = Re({
61
61
  BlocksWrapper: "div",
62
62
  BlocksWrapperProps: {},
63
63
  nonce: ""
64
- }), Be = Re({ registeredComponents: {} });
65
- function nt(e) {
64
+ }), Pe = Ee({ registeredComponents: {} });
65
+ function it(e) {
66
66
  var t;
67
67
  return {
68
68
  ...(t = e.component) == null ? void 0 : t.options,
69
69
  ...e.options
70
70
  };
71
71
  }
72
- const it = ({
72
+ function ot(e, ...t) {
73
+ const n = Object.assign({}, e);
74
+ for (const i of t)
75
+ delete n[i];
76
+ return n;
77
+ }
78
+ const at = ({
73
79
  builder: e,
74
80
  context: t,
75
81
  event: n,
@@ -81,12 +87,12 @@ const it = ({
81
87
  builder: e,
82
88
  context: t,
83
89
  event: n
84
- }), ot = () => ({
90
+ }), rt = () => ({
85
91
  isEditing: $(),
86
- isBrowser: M(),
87
- isServer: !M(),
88
- getUserAttributes: () => ze()
89
- }), at = (e, {
92
+ isBrowser: j(),
93
+ isServer: !j(),
94
+ getUserAttributes: () => _e()
95
+ }), lt = (e, {
90
96
  isExpression: t = !0
91
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, be = ({
92
98
  code: e,
@@ -97,11 +103,11 @@ const it = ({
97
103
  rootSetState: a,
98
104
  rootState: r
99
105
  }) => {
100
- const s = it({
106
+ const s = at({
101
107
  builder: t,
102
108
  context: n,
103
109
  event: i,
104
- state: Pe({
110
+ state: Ve({
105
111
  rootState: r,
106
112
  localState: o,
107
113
  rootSetState: a
@@ -109,7 +115,7 @@ const it = ({
109
115
  });
110
116
  return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
111
117
  };
112
- function Pe({
118
+ function Ve({
113
119
  rootState: e,
114
120
  localState: t,
115
121
  rootSetState: n
@@ -119,7 +125,7 @@ function Pe({
119
125
  if (t && o in t)
120
126
  return t[o];
121
127
  const a = i[o];
122
- return typeof a == "object" && a !== null ? Pe({
128
+ return typeof a == "object" && a !== null ? Ve({
123
129
  rootState: a,
124
130
  localState: void 0,
125
131
  rootSetState: n ? (r) => {
@@ -134,17 +140,17 @@ function Pe({
134
140
  }
135
141
  });
136
142
  }
137
- function rt() {
143
+ function st() {
138
144
  var e;
139
145
  return typeof process != "undefined" && G((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
140
146
  }
141
- const lt = () => {
147
+ const ct = () => {
142
148
  var i;
143
- if (!rt())
149
+ if (!st())
144
150
  return !1;
145
151
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
146
152
  return e && t && !n ? (X.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
147
- }, st = (e) => (M() || lt(), be(e)), L = class L {
153
+ }, dt = (e) => (j() || ct(), be(e)), L = class L {
148
154
  static getCacheKey(t) {
149
155
  return JSON.stringify({
150
156
  ...t,
@@ -163,7 +169,7 @@ const lt = () => {
163
169
  }
164
170
  };
165
171
  ne(L, "cacheLimit", 20), ne(L, "cache", /* @__PURE__ */ new Map());
166
- let U = L;
172
+ let M = L;
167
173
  function K({
168
174
  code: e,
169
175
  context: t,
@@ -177,10 +183,10 @@ function K({
177
183
  if (e === "")
178
184
  return;
179
185
  const d = {
180
- code: at(e, {
186
+ code: lt(e, {
181
187
  isExpression: r
182
188
  }),
183
- builder: ot(),
189
+ builder: rt(),
184
190
  context: t,
185
191
  event: a,
186
192
  rootSetState: o,
@@ -188,15 +194,15 @@ function K({
188
194
  localState: n
189
195
  };
190
196
  if (s) {
191
- const c = U.getCacheKey(d), m = U.getCachedValue(c);
197
+ const c = M.getCacheKey(d), m = M.getCachedValue(c);
192
198
  if (m)
193
199
  return m.value;
194
200
  }
195
201
  try {
196
- const c = st(d);
202
+ const c = dt(d);
197
203
  if (s) {
198
- const m = U.getCacheKey(d);
199
- U.setCachedValue(m, c);
204
+ const m = M.getCacheKey(d);
205
+ M.setCachedValue(m, c);
200
206
  }
201
207
  return c;
202
208
  } catch (c) {
@@ -206,13 +212,25 @@ function K({
206
212
  return;
207
213
  }
208
214
  }
209
- const Ve = (e, t, n) => {
215
+ const Ae = (e, t, n) => {
210
216
  if (Object(e) !== e)
211
217
  return e;
212
218
  const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
213
219
  return i.slice(0, -1).reduce((o, a, r) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
214
220
  };
215
- const ct = ({
221
+ function se(e) {
222
+ if (e === null || typeof e != "object")
223
+ return e;
224
+ if (Array.isArray(e))
225
+ return e.map((n) => se(n));
226
+ if (e["@type"] === "@builder.io/sdk:Element")
227
+ return e;
228
+ const t = {};
229
+ for (const n in e)
230
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = se(e[n]));
231
+ return t;
232
+ }
233
+ const ut = ({
216
234
  block: e,
217
235
  context: t,
218
236
  localState: n,
@@ -221,14 +239,16 @@ const ct = ({
221
239
  }) => {
222
240
  if (!e.bindings)
223
241
  return e;
224
- const a = ce(e), r = {
242
+ const a = se(ot(e, "children", "meta")), r = {
225
243
  ...a,
226
244
  properties: {
227
245
  ...a.properties
228
246
  },
229
247
  actions: {
230
248
  ...a.actions
231
- }
249
+ },
250
+ children: e.children,
251
+ meta: e.meta
232
252
  };
233
253
  for (const s in e.bindings) {
234
254
  const d = e.bindings[s], c = K({
@@ -237,13 +257,13 @@ const ct = ({
237
257
  rootState: i,
238
258
  rootSetState: o,
239
259
  context: t,
240
- enableCache: !0
260
+ enableCache: typeof window == "undefined"
241
261
  });
242
- Ve(r, s, c);
262
+ Ae(r, s, c);
243
263
  }
244
264
  return r;
245
265
  };
246
- function dt({
266
+ function mt({
247
267
  block: e,
248
268
  context: t,
249
269
  shouldEvaluateBindings: n,
@@ -252,7 +272,7 @@ function dt({
252
272
  rootSetState: a
253
273
  }) {
254
274
  const r = e;
255
- return n ? ct({
275
+ return n ? ut({
256
276
  block: r,
257
277
  localState: i,
258
278
  rootState: o,
@@ -261,7 +281,7 @@ function dt({
261
281
  }) : r;
262
282
  }
263
283
  const ee = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
264
- function ut(e, t, n = {}) {
284
+ function ft(e, t, n = {}) {
265
285
  let i, o, a, r = null, s = 0;
266
286
  const d = function() {
267
287
  s = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
@@ -283,55 +303,55 @@ function H(e, ...t) {
283
303
  }
284
304
  return n;
285
305
  }
286
- function mt(e) {
306
+ function ht(e) {
287
307
  for (const t of e)
288
308
  switch (t.trigger) {
289
309
  case "pageLoad":
290
- We(t);
310
+ Fe(t);
291
311
  break;
292
312
  case "scrollInView":
293
- ht(t);
313
+ bt(t);
294
314
  break;
295
315
  }
296
316
  }
297
- function Ae(e) {
317
+ function Ne(e) {
298
318
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
299
319
  }
300
- function Ne(e, t) {
301
- const n = ft(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
320
+ function We(e, t) {
321
+ const n = gt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
302
322
  for (const s of r)
303
323
  for (const d of n)
304
324
  d in s || (s[d] = i[d]);
305
325
  }
306
- function ft(e) {
326
+ function gt(e) {
307
327
  const t = [];
308
328
  for (const n of e.steps)
309
329
  for (const i in n.styles)
310
330
  t.indexOf(i) === -1 && t.push(i);
311
331
  return t;
312
332
  }
313
- function We(e) {
333
+ function Fe(e) {
314
334
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
315
335
  if (!t.length) {
316
- Ae(e.elementId || e.id || "");
336
+ Ne(e.elementId || e.id || "");
317
337
  return;
318
338
  }
319
339
  Array.from(t).forEach((n) => {
320
- Ne(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
340
+ We(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
321
341
  n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
322
342
  n.style.transition = "", n.style.transitionDelay = "";
323
343
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
324
344
  });
325
345
  });
326
346
  }
327
- function ht(e) {
347
+ function bt(e) {
328
348
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
329
349
  if (!t.length) {
330
- Ae(e.elementId || e.id || "");
350
+ Ne(e.elementId || e.id || "");
331
351
  return;
332
352
  }
333
353
  Array.from(t).forEach((n) => {
334
- Ne(e, n);
354
+ We(e, n);
335
355
  let i = !1, o = !1;
336
356
  function a() {
337
357
  !i && s(n) ? (i = !0, o = !0, setTimeout(() => {
@@ -340,7 +360,7 @@ function ht(e) {
340
360
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
341
361
  })) : e.repeat && i && !o && !s(n) && (i = !1, H(n.style, e.steps[0].styles));
342
362
  }
343
- const r = ut(a, 200, {
363
+ const r = ft(a, 200, {
344
364
  leading: !1
345
365
  });
346
366
  function s(m) {
@@ -359,42 +379,42 @@ function ht(e) {
359
379
  }), a();
360
380
  });
361
381
  }
362
- const Fe = (e) => Object.entries(e).map(([n, i]) => {
382
+ const $e = (e) => Object.entries(e).map(([n, i]) => {
363
383
  if (typeof i == "string")
364
384
  return `${ee(n)}: ${i};`;
365
- }).filter(G), gt = (e) => Fe(e).join(`
385
+ }).filter(G), pt = (e) => $e(e).join(`
366
386
  `), J = ({
367
387
  mediaQuery: e,
368
388
  className: t,
369
389
  styles: n
370
390
  }) => {
371
391
  const i = `.${t} {
372
- ${gt(n)}
392
+ ${pt(n)}
373
393
  }`;
374
394
  return e ? `${e} {
375
395
  ${i}
376
396
  }` : i;
377
397
  };
378
- function bt({
398
+ function yt({
379
399
  style: e
380
400
  }) {
381
401
  return e;
382
402
  }
383
- const pt = ({
403
+ const xt = ({
384
404
  block: e,
385
405
  context: t
386
- }) => $e(bt({
406
+ }) => De(yt({
387
407
  style: e.style || {},
388
408
  context: t,
389
409
  block: e
390
410
  }));
391
- function $e(e) {
411
+ function De(e) {
392
412
  switch (z) {
393
413
  case "svelte":
394
414
  case "vue":
395
415
  case "solid":
396
416
  case "angular":
397
- return Fe(e).join(" ");
417
+ return $e(e).join(" ");
398
418
  case "qwik":
399
419
  case "reactNative":
400
420
  case "react":
@@ -402,7 +422,7 @@ function $e(e) {
402
422
  return e;
403
423
  }
404
424
  }
405
- const yt = ({
425
+ const vt = ({
406
426
  block: e,
407
427
  registeredComponents: t
408
428
  }) => {
@@ -416,7 +436,7 @@ const yt = ({
416
436
  console.warn(`
417
437
  Could not find a registered component named "${n}".
418
438
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
419
- }, xt = ({
439
+ }, St = ({
420
440
  block: e,
421
441
  context: t
422
442
  }) => {
@@ -450,27 +470,27 @@ const yt = ({
450
470
  },
451
471
  block: i
452
472
  }));
453
- }, vt = (e, t) => {
473
+ }, kt = (e, t) => {
454
474
  var n;
455
475
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
456
476
  builderLinkComponent: t
457
477
  } : {};
458
- }, St = (e, t) => {
478
+ }, Ct = (e, t) => {
459
479
  var n;
460
480
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
461
481
  builderComponents: t
462
482
  } : {};
463
- }, kt = (e, t) => {
483
+ }, Tt = (e, t) => {
464
484
  var n;
465
485
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
466
486
  builderBlock: t
467
487
  } : {};
468
- }, Ct = (e, t) => {
488
+ }, wt = (e, t) => {
469
489
  var n;
470
490
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
471
491
  builderContext: t
472
492
  } : {};
473
- }, De = {
493
+ }, Le = {
474
494
  small: {
475
495
  min: 320,
476
496
  default: 321,
@@ -486,11 +506,11 @@ const yt = ({
486
506
  default: 991,
487
507
  max: 1200
488
508
  }
489
- }, pe = (e, t = De) => `@media (max-width: ${t[e].max}px)`, Le = ({
509
+ }, pe = (e, t = Le) => `@media (max-width: ${t[e].max}px)`, Oe = ({
490
510
  small: e,
491
511
  medium: t
492
512
  }) => {
493
- const n = ce(De);
513
+ const n = we(Le);
494
514
  if (!e || !t)
495
515
  return n;
496
516
  const i = Math.floor(e / 2);
@@ -523,14 +543,14 @@ function te(e) {
523
543
  }
524
544
  );
525
545
  }
526
- function Tt(e) {
546
+ function It(e) {
527
547
  function t() {
528
548
  const i = e.block;
529
549
  return G(i.hide) ? !i.hide : G(i.show) ? i.show : !0;
530
550
  }
531
551
  function n() {
532
552
  var y, E, V;
533
- const i = e.block, o = i.responsiveStyles, a = e.context.content, r = Le(
553
+ const i = e.block, o = i.responsiveStyles, a = e.context.content, r = Oe(
534
554
  ((y = a == null ? void 0 : a.meta) == null ? void 0 : y.breakpoints) || {}
535
555
  ), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, m = i.id;
536
556
  if (!m)
@@ -583,10 +603,10 @@ function Tt(e) {
583
603
  }
584
604
  ) }) : null });
585
605
  }
586
- function It(e) {
606
+ function Rt(e) {
587
607
  return e.charAt(0).toUpperCase() + e.slice(1);
588
608
  }
589
- const wt = (e) => `on${It(e)}`, Rt = (e, t) => (n) => K({
609
+ const Et = (e) => `on${Rt(e)}`, Bt = (e, t) => (n) => K({
590
610
  code: e,
591
611
  context: t.context,
592
612
  localState: t.localState,
@@ -596,14 +616,14 @@ const wt = (e) => `on${It(e)}`, Rt = (e, t) => (n) => K({
596
616
  isExpression: !1,
597
617
  enableCache: !0
598
618
  });
599
- function Oe(e) {
619
+ function Ue(e) {
600
620
  var i;
601
621
  const t = {}, n = (i = e.block.actions) != null ? i : {};
602
622
  for (const o in n) {
603
623
  if (!n.hasOwnProperty(o))
604
624
  continue;
605
625
  const a = n[o];
606
- let r = wt(o);
626
+ let r = Et(o);
607
627
  if (e.stripPrefix)
608
628
  switch (z) {
609
629
  case "vue":
@@ -613,16 +633,16 @@ function Oe(e) {
613
633
  r = r.replace("on:", "");
614
634
  break;
615
635
  }
616
- t[r] = Rt(a, e);
636
+ t[r] = Bt(a, e);
617
637
  }
618
638
  return t;
619
639
  }
620
- function Et({
640
+ function Pt({
621
641
  properties: e
622
642
  }) {
623
643
  return e;
624
644
  }
625
- const Bt = (e) => ({
645
+ const Vt = (e) => ({
626
646
  href: e.href
627
647
  });
628
648
  function me({
@@ -631,22 +651,22 @@ function me({
631
651
  }) {
632
652
  var i;
633
653
  const n = {
634
- ...Bt(e),
654
+ ...Vt(e),
635
655
  ...e.properties,
636
656
  "builder-id": e.id,
637
- style: pt({
657
+ style: xt({
638
658
  block: e,
639
659
  context: t
640
660
  }),
641
661
  [q()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
642
662
  };
643
- return Et({
663
+ return Pt({
644
664
  properties: n,
645
665
  context: t,
646
666
  block: e
647
667
  });
648
668
  }
649
- function Pt(e) {
669
+ function At(e) {
650
670
  return /* @__PURE__ */ l(
651
671
  de,
652
672
  {
@@ -655,7 +675,7 @@ function Pt(e) {
655
675
  block: e.block,
656
676
  context: e.context
657
677
  }),
658
- actionAttributes: Oe({
678
+ actionAttributes: Ue({
659
679
  block: e.block,
660
680
  rootState: e.context.rootState,
661
681
  rootSetState: e.context.rootSetState,
@@ -667,14 +687,14 @@ function Pt(e) {
667
687
  }
668
688
  );
669
689
  }
670
- function Vt(e) {
690
+ function Nt(e) {
671
691
  function t() {
672
692
  return e.includeBlockProps ? {
673
693
  ...me({
674
694
  block: e.block,
675
695
  context: e.context
676
696
  }),
677
- ...Oe({
697
+ ...Ue({
678
698
  block: e.block,
679
699
  rootState: e.context.rootState,
680
700
  rootSetState: e.context.rootSetState,
@@ -685,7 +705,7 @@ function Vt(e) {
685
705
  }
686
706
  return /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
687
707
  }
688
- const At = ({
708
+ const Wt = ({
689
709
  componentOptions: e,
690
710
  builderBlock: t,
691
711
  context: n,
@@ -718,12 +738,12 @@ const At = ({
718
738
  function ye(e) {
719
739
  var i;
720
740
  const [t, n] = T(
721
- () => e.isInteractive ? Vt : e.componentRef
741
+ () => e.isInteractive ? Nt : e.componentRef
722
742
  );
723
743
  return /* @__PURE__ */ l(R, { children: e.componentRef ? /* @__PURE__ */ l(R, { children: /* @__PURE__ */ l(
724
744
  t,
725
745
  {
726
- ...At({
746
+ ...Wt({
727
747
  componentOptions: e.componentOptions,
728
748
  builderBlock: e.builderBlock,
729
749
  context: e.context,
@@ -746,7 +766,7 @@ function ye(e) {
746
766
  }
747
767
  ) }) : null });
748
768
  }
749
- function Nt(e) {
769
+ function Ft(e) {
750
770
  const [t, n] = T(() => e.repeatContext);
751
771
  return /* @__PURE__ */ l(ue.Provider, { value: t, children: /* @__PURE__ */ l(
752
772
  _,
@@ -761,14 +781,14 @@ function Nt(e) {
761
781
  function _(e) {
762
782
  var m, h, f;
763
783
  function t() {
764
- return yt({
784
+ return vt({
765
785
  block: a(),
766
786
  context: e.context,
767
787
  registeredComponents: e.registeredComponents
768
788
  });
769
789
  }
770
790
  function n() {
771
- return xt({
791
+ return St({
772
792
  block: e.block,
773
793
  context: e.context
774
794
  });
@@ -781,7 +801,7 @@ function _(e) {
781
801
  var g;
782
802
  if (i.value && !i.update && !Ie())
783
803
  return i.value;
784
- const u = (g = e.block.repeat) != null && g.collection ? e.block : dt({
804
+ const u = (g = e.block.repeat) != null && g.collection ? e.block : mt({
785
805
  block: e.block,
786
806
  localState: e.context.localState,
787
807
  rootState: e.context.rootState,
@@ -812,11 +832,11 @@ function _(e) {
812
832
  blockChildren: (u = a().children) != null ? u : [],
813
833
  componentRef: (g = t == null ? void 0 : t()) == null ? void 0 : g.component,
814
834
  componentOptions: {
815
- ...nt(a()),
816
- ...kt(t(), a()),
817
- ...Ct(t(), e.context),
818
- ...vt(t(), e.linkComponent),
819
- ...St(
835
+ ...it(a()),
836
+ ...Tt(t(), a()),
837
+ ...wt(t(), e.context),
838
+ ...kt(t(), e.linkComponent),
839
+ ...Ct(
820
840
  t(),
821
841
  e.registeredComponents
822
842
  )
@@ -831,7 +851,7 @@ function _(e) {
831
851
  }
832
852
  return B(() => {
833
853
  const u = a().id, g = a().animations;
834
- g && u && mt(
854
+ g && u && ht(
835
855
  g.map((x) => ({
836
856
  ...x,
837
857
  elementId: u
@@ -840,7 +860,7 @@ function _(e) {
840
860
  }, []), B(() => {
841
861
  i.update = !0;
842
862
  }), /* @__PURE__ */ l(R, { children: s() ? /* @__PURE__ */ P(R, { children: [
843
- /* @__PURE__ */ l(Tt, { block: a(), context: e.context }),
863
+ /* @__PURE__ */ l(It, { block: a(), context: e.context }),
844
864
  (m = t == null ? void 0 : t()) != null && m.noWrap ? /* @__PURE__ */ l(R, { children: /* @__PURE__ */ l(
845
865
  ye,
846
866
  {
@@ -855,7 +875,7 @@ function _(e) {
855
875
  isInteractive: c().isInteractive
856
876
  }
857
877
  ) }) : /* @__PURE__ */ l(R, { children: n() ? /* @__PURE__ */ l(R, { children: (f = n()) == null ? void 0 : f.map((u, g) => /* @__PURE__ */ l(
858
- Nt,
878
+ Ft,
859
879
  {
860
880
  repeatContext: u.context,
861
881
  block: u.block,
@@ -864,7 +884,7 @@ function _(e) {
864
884
  },
865
885
  g
866
886
  )) }) : /* @__PURE__ */ P(
867
- Pt,
887
+ At,
868
888
  {
869
889
  Wrapper: r(),
870
890
  block: a(),
@@ -899,7 +919,7 @@ function _(e) {
899
919
  ) })
900
920
  ] }) : null });
901
921
  }
902
- function Wt(e) {
922
+ function $t(e) {
903
923
  function t() {
904
924
  var o;
905
925
  return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
@@ -954,9 +974,9 @@ function Wt(e) {
954
974
  }
955
975
  function D(e) {
956
976
  var i, o, a;
957
- const t = ge(ue), n = ge(Be);
977
+ const t = ge(ue), n = ge(Pe);
958
978
  return /* @__PURE__ */ l(
959
- Wt,
979
+ $t,
960
980
  {
961
981
  blocks: e.blocks,
962
982
  parent: e.parent,
@@ -977,8 +997,8 @@ function D(e) {
977
997
  }
978
998
  );
979
999
  }
980
- const Ft = (e) => `builder-columns ${e}-breakpoints`;
981
- function $t(e) {
1000
+ const Dt = (e) => `builder-columns ${e}-breakpoints`;
1001
+ function Lt(e) {
982
1002
  var A, O;
983
1003
  const [t, n] = T(
984
1004
  () => typeof e.space == "number" ? e.space || 0 : 20
@@ -989,24 +1009,24 @@ function $t(e) {
989
1009
  return k.link ? e.builderLinkComponent || "a" : "div";
990
1010
  }
991
1011
  function d(k) {
992
- var w;
993
- return ((w = i[k]) == null ? void 0 : w.width) || 100 / i.length;
1012
+ var I;
1013
+ return ((I = i[k]) == null ? void 0 : I.width) || 100 / i.length;
994
1014
  }
995
1015
  function c(k) {
996
- const w = d(k), N = t * (i.length - 1) * (w / 100);
997
- return `calc(${w}% - ${N}px)`;
1016
+ const I = d(k), N = t * (i.length - 1) * (I / 100);
1017
+ return `calc(${I}% - ${N}px)`;
998
1018
  }
999
1019
  function m({
1000
1020
  stackedStyle: k,
1001
- desktopStyle: w
1021
+ desktopStyle: I
1002
1022
  }) {
1003
- return a === "tablet" ? k : w;
1023
+ return a === "tablet" ? k : I;
1004
1024
  }
1005
1025
  function h({
1006
1026
  stackedStyle: k,
1007
- desktopStyle: w
1027
+ desktopStyle: I
1008
1028
  }) {
1009
- return a === "never" ? w : k;
1029
+ return a === "never" ? I : k;
1010
1030
  }
1011
1031
  const [f, u] = T(
1012
1032
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
@@ -1021,7 +1041,7 @@ function $t(e) {
1021
1041
  };
1022
1042
  }
1023
1043
  function x(k) {
1024
- const w = k === 0 ? 0 : t, N = c(k), p = `${w}px`, b = "100%", v = 0;
1044
+ const I = k === 0 ? 0 : t, N = c(k), p = `${I}px`, b = "100%", v = 0;
1025
1045
  return {
1026
1046
  ...{
1027
1047
  display: "flex",
@@ -1050,7 +1070,7 @@ function $t(e) {
1050
1070
  }
1051
1071
  function y(k) {
1052
1072
  var N, p;
1053
- return Le(
1073
+ return Oe(
1054
1074
  ((p = (N = e.builderContext.content) == null ? void 0 : N.meta) == null ? void 0 : p.breakpoints) || {}
1055
1075
  )[k].max;
1056
1076
  }
@@ -1081,20 +1101,20 @@ function $t(e) {
1081
1101
  },
1082
1102
  `;
1083
1103
  }
1084
- function V(k, w) {
1104
+ function V(k, I) {
1085
1105
  return {
1086
1106
  ...k.link ? {
1087
1107
  href: k.link
1088
1108
  } : {},
1089
1109
  [q()]: "builder-column",
1090
- style: $e(x(w))
1110
+ style: De(x(I))
1091
1111
  };
1092
1112
  }
1093
1113
  return /* @__PURE__ */ P(R, { children: [
1094
1114
  /* @__PURE__ */ P(
1095
1115
  "div",
1096
1116
  {
1097
- className: Ft((A = e.builderBlock) == null ? void 0 : A.id) + " div-fe220f58",
1117
+ className: Dt((A = e.builderBlock) == null ? void 0 : A.id) + " div-fe220f58",
1098
1118
  style: g(),
1099
1119
  children: [
1100
1120
  /* @__PURE__ */ l(
@@ -1105,16 +1125,16 @@ function $t(e) {
1105
1125
  nonce: e.builderContext.nonce
1106
1126
  }
1107
1127
  ),
1108
- (O = e.columns) == null ? void 0 : O.map((k, w) => /* @__PURE__ */ l(
1128
+ (O = e.columns) == null ? void 0 : O.map((k, I) => /* @__PURE__ */ l(
1109
1129
  de,
1110
1130
  {
1111
1131
  TagName: s(k),
1112
1132
  actionAttributes: {},
1113
- attributes: V(k, w),
1133
+ attributes: V(k, I),
1114
1134
  children: /* @__PURE__ */ l(
1115
1135
  D,
1116
1136
  {
1117
- path: `component.options.columns.${w}.blocks`,
1137
+ path: `component.options.columns.${I}.blocks`,
1118
1138
  parent: e.builderBlock.id,
1119
1139
  styleProp: {
1120
1140
  flexGrow: "1"
@@ -1126,7 +1146,7 @@ function $t(e) {
1126
1146
  }
1127
1147
  )
1128
1148
  },
1129
- w
1149
+ I
1130
1150
  ))
1131
1151
  ]
1132
1152
  }
@@ -1137,17 +1157,17 @@ function $t(e) {
1137
1157
  }` })
1138
1158
  ] });
1139
1159
  }
1140
- function Dt(e) {
1160
+ function Ot(e) {
1141
1161
  return /* @__PURE__ */ l("span", { children: e.children });
1142
1162
  }
1143
1163
  function xe(e) {
1144
1164
  return e.replace(/http(s)?:/, "");
1145
1165
  }
1146
- function Lt(e = "", t, n) {
1166
+ function Ut(e = "", t, n) {
1147
1167
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1148
1168
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1149
1169
  }
1150
- function Ot(e, t) {
1170
+ function Mt(e, t) {
1151
1171
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1152
1172
  return e;
1153
1173
  if (t === "master")
@@ -1166,9 +1186,9 @@ function ie(e) {
1166
1186
  if (e.match(/builder\.io/)) {
1167
1187
  let n = e;
1168
1188
  const i = Number(e.split("?width=")[1]);
1169
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Lt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1189
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Ut(e, "width", o)} ${o}w`).concat([n]).join(", ");
1170
1190
  }
1171
- 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;
1191
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Mt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1172
1192
  }
1173
1193
  function jt(e) {
1174
1194
  var o, a, r, s, d, c;
@@ -1254,7 +1274,7 @@ function jt(e) {
1254
1274
  }` })
1255
1275
  ] });
1256
1276
  }
1257
- function Ut(e) {
1277
+ function Ht(e) {
1258
1278
  return /* @__PURE__ */ l(
1259
1279
  "section",
1260
1280
  {
@@ -1335,7 +1355,7 @@ const oe = {
1335
1355
  }
1336
1356
  }
1337
1357
  }]
1338
- }, Mt = {
1358
+ }, qt = {
1339
1359
  name: "Builder:Accordion",
1340
1360
  canHaveChildren: !0,
1341
1361
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1400,7 +1420,7 @@ const oe = {
1400
1420
  builderLinkComponent: !0
1401
1421
  }
1402
1422
  }, ve = (e) => e.toString();
1403
- function Ht(e) {
1423
+ function Kt(e) {
1404
1424
  var h;
1405
1425
  const [t, n] = T(() => []);
1406
1426
  function i() {
@@ -1523,7 +1543,7 @@ function Ht(e) {
1523
1543
  ) : null
1524
1544
  ] })) });
1525
1545
  }
1526
- const qt = {
1546
+ const zt = {
1527
1547
  name: "Core:Button",
1528
1548
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1529
1549
  defaultStyles: {
@@ -1559,7 +1579,7 @@ const qt = {
1559
1579
  shouldReceiveBuilderProps: {
1560
1580
  builderLinkComponent: !0
1561
1581
  }
1562
- }, Kt = {
1582
+ }, _t = {
1563
1583
  // TODO: ways to statically preprocess JSON for references, functions, etc
1564
1584
  name: "Columns",
1565
1585
  isRSC: !0,
@@ -1766,13 +1786,13 @@ const qt = {
1766
1786
  builderComponents: !0,
1767
1787
  builderLinkComponent: !0
1768
1788
  }
1769
- }, zt = {
1789
+ }, Jt = {
1770
1790
  name: "Fragment",
1771
1791
  static: !0,
1772
1792
  hidden: !0,
1773
1793
  canHaveChildren: !0,
1774
1794
  noWrap: !0
1775
- }, _t = {
1795
+ }, Yt = {
1776
1796
  name: "Image",
1777
1797
  static: !0,
1778
1798
  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",
@@ -1880,7 +1900,7 @@ const qt = {
1880
1900
  shouldReceiveBuilderProps: {
1881
1901
  builderBlock: !0
1882
1902
  }
1883
- }, Jt = {
1903
+ }, Gt = {
1884
1904
  name: "Core:Section",
1885
1905
  static: !0,
1886
1906
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1919,7 +1939,7 @@ const qt = {
1919
1939
  }
1920
1940
  }
1921
1941
  }]
1922
- }, Yt = {
1942
+ }, Qt = {
1923
1943
  name: "Slot",
1924
1944
  isRSC: !0,
1925
1945
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1936,7 +1956,7 @@ const qt = {
1936
1956
  builderContext: !0
1937
1957
  }
1938
1958
  };
1939
- function Gt(e) {
1959
+ function Xt(e) {
1940
1960
  var t, n, i;
1941
1961
  return /* @__PURE__ */ l(
1942
1962
  "div",
@@ -1959,7 +1979,7 @@ function Gt(e) {
1959
1979
  }
1960
1980
  );
1961
1981
  }
1962
- const Qt = {
1982
+ const Zt = {
1963
1983
  name: "Symbol",
1964
1984
  noWrap: !0,
1965
1985
  static: !0,
@@ -2036,7 +2056,7 @@ const Qt = {
2036
2056
  text: "New tab content "
2037
2057
  }
2038
2058
  }
2039
- }, Xt = {
2059
+ }, en = {
2040
2060
  name: "Builder: Tabs",
2041
2061
  inputs: [{
2042
2062
  name: "tabs",
@@ -2140,7 +2160,7 @@ const Qt = {
2140
2160
  builderLinkComponent: !0
2141
2161
  }
2142
2162
  };
2143
- function Zt(e) {
2163
+ function tn(e) {
2144
2164
  var a;
2145
2165
  const [t, n] = T(
2146
2166
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
@@ -2199,7 +2219,7 @@ function Zt(e) {
2199
2219
  ) }) : null
2200
2220
  ] });
2201
2221
  }
2202
- const en = {
2222
+ const nn = {
2203
2223
  shouldReceiveBuilderProps: {
2204
2224
  builderBlock: !1
2205
2225
  },
@@ -2221,7 +2241,7 @@ const en = {
2221
2241
  textAlign: "center"
2222
2242
  }
2223
2243
  };
2224
- function tn(e) {
2244
+ function on(e) {
2225
2245
  var t;
2226
2246
  return /* @__PURE__ */ l(
2227
2247
  "div",
@@ -2234,7 +2254,7 @@ function tn(e) {
2234
2254
  }
2235
2255
  );
2236
2256
  }
2237
- const nn = {
2257
+ const an = {
2238
2258
  name: "Custom Code",
2239
2259
  static: !0,
2240
2260
  requiredPermissions: ["editCode"],
@@ -2257,7 +2277,7 @@ const nn = {
2257
2277
  advanced: !0
2258
2278
  }]
2259
2279
  };
2260
- function on(e) {
2280
+ function rn(e) {
2261
2281
  const t = Z(null), [n, i] = T(() => []), [o, a] = T(() => []);
2262
2282
  return B(() => {
2263
2283
  var s;
@@ -2295,7 +2315,7 @@ function on(e) {
2295
2315
  }
2296
2316
  );
2297
2317
  }
2298
- const an = {
2318
+ const ln = {
2299
2319
  name: "Embed",
2300
2320
  static: !0,
2301
2321
  inputs: [{
@@ -2310,8 +2330,8 @@ const an = {
2310
2330
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2311
2331
  hideFromUI: !0
2312
2332
  }]
2313
- }, rn = ["text/javascript", "application/javascript", "application/ecmascript"], ln = (e) => rn.includes(e.type);
2314
- function sn(e) {
2333
+ }, sn = ["text/javascript", "application/javascript", "application/ecmascript"], cn = (e) => sn.includes(e.type);
2334
+ function dn(e) {
2315
2335
  const t = Z(null), [n, i] = T(() => []), [o, a] = T(() => []), [r, s] = T(() => !1);
2316
2336
  function d() {
2317
2337
  if (!t.current || !t.current.getElementsByTagName)
@@ -2323,7 +2343,7 @@ function sn(e) {
2323
2343
  n.push(h.src);
2324
2344
  const f = document.createElement("script");
2325
2345
  f.async = !0, f.src = h.src, document.head.appendChild(f);
2326
- } else if (ln(h) && !o.includes(h.innerText))
2346
+ } else if (cn(h) && !o.includes(h.innerText))
2327
2347
  try {
2328
2348
  o.push(h.innerText), new Function(h.innerText)();
2329
2349
  } catch (f) {
@@ -2342,7 +2362,7 @@ function sn(e) {
2342
2362
  }
2343
2363
  );
2344
2364
  }
2345
- const cn = {
2365
+ const un = {
2346
2366
  name: "Form:Form",
2347
2367
  // editableTags: ['builder-form-error']
2348
2368
  defaults: {
@@ -2579,14 +2599,14 @@ const cn = {
2579
2599
  builderComponents: !0,
2580
2600
  builderLinkComponent: !0
2581
2601
  }
2582
- }, dn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], un = () => {
2602
+ }, mn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], fn = () => {
2583
2603
  const e = process.env.NODE_ENV || "production";
2584
- return dn.includes(e) ? e : "production";
2585
- }, mn = (e, t, n) => {
2604
+ return mn.includes(e) ? e : "production";
2605
+ }, hn = (e, t, n) => {
2586
2606
  const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
2587
2607
  return i === void 0 || i === e ? n : i;
2588
2608
  };
2589
- function fn(e) {
2609
+ function gn(e) {
2590
2610
  var h, f;
2591
2611
  const t = Z(null), [n, i] = T(() => "unsubmitted"), [o, a] = T(() => null), [r, s] = T(() => "");
2592
2612
  function d(u) {
@@ -2645,15 +2665,15 @@ function fn(e) {
2645
2665
  else {
2646
2666
  const p = {};
2647
2667
  Array.from(O).forEach(({ value: b, key: v }) => {
2648
- Ve(p, v, b);
2668
+ Ae(p, v, b);
2649
2669
  }), V = JSON.stringify(p);
2650
2670
  }
2651
2671
  k && k !== "multipart/form-data" && (g && ((x = e.action) != null && x.includes("zapier.com")) || (E["content-type"] = k));
2652
- const w = new CustomEvent("presubmit", { detail: { body: V } });
2653
- if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
2672
+ const I = new CustomEvent("presubmit", { detail: { body: V } });
2673
+ if (t.current && (t.current.dispatchEvent(I), I.defaultPrevented))
2654
2674
  return;
2655
2675
  i("sending");
2656
- const N = `${un() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2676
+ const N = `${fn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2657
2677
  e.sendSubmissionsToEmail || ""
2658
2678
  )}&name=${encodeURIComponent(e.name || "")}`;
2659
2679
  fetch(
@@ -2664,7 +2684,7 @@ function fn(e) {
2664
2684
  let b;
2665
2685
  const v = p.headers.get("content-type");
2666
2686
  if (v && v.indexOf("application/json") !== -1 ? b = await p.json() : b = await p.text(), !p.ok && e.errorMessagePath) {
2667
- let S = mn(b, e.errorMessagePath);
2687
+ let S = hn(b, e.errorMessagePath);
2668
2688
  S && (typeof S != "string" && (S = JSON.stringify(S)), s(S), d({ formErrorMessage: S }));
2669
2689
  }
2670
2690
  if (a(b), i(p.ok ? "success" : "error"), p.ok) {
@@ -2751,7 +2771,7 @@ function fn(e) {
2751
2771
  " "
2752
2772
  ] });
2753
2773
  }
2754
- const hn = {
2774
+ const bn = {
2755
2775
  name: "Form:Input",
2756
2776
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2757
2777
  inputs: [
@@ -2803,8 +2823,8 @@ const hn = {
2803
2823
  borderColor: "#ccc"
2804
2824
  }
2805
2825
  };
2806
- function gn(e) {
2807
- return /* @__PURE__ */ Ee(
2826
+ function pn(e) {
2827
+ return /* @__PURE__ */ Be(
2808
2828
  "input",
2809
2829
  {
2810
2830
  ...e.attributes,
@@ -2818,7 +2838,7 @@ function gn(e) {
2818
2838
  }
2819
2839
  );
2820
2840
  }
2821
- const bn = {
2841
+ const yn = {
2822
2842
  name: "Form:Select",
2823
2843
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2824
2844
  defaultStyles: {
@@ -2861,9 +2881,9 @@ const bn = {
2861
2881
  static: !0,
2862
2882
  noWrap: !0
2863
2883
  };
2864
- function pn(e) {
2884
+ function xn(e) {
2865
2885
  var t;
2866
- return /* @__PURE__ */ Ee(
2886
+ return /* @__PURE__ */ Be(
2867
2887
  "select",
2868
2888
  {
2869
2889
  ...e.attributes,
@@ -2876,7 +2896,7 @@ function pn(e) {
2876
2896
  (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2877
2897
  );
2878
2898
  }
2879
- const yn = {
2899
+ const vn = {
2880
2900
  name: "Form:SubmitButton",
2881
2901
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2882
2902
  defaultStyles: {
@@ -2902,10 +2922,10 @@ const yn = {
2902
2922
  // TODO: defaultChildren
2903
2923
  // canHaveChildren: true,
2904
2924
  };
2905
- function xn(e) {
2925
+ function Sn(e) {
2906
2926
  return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
2907
2927
  }
2908
- const vn = {
2928
+ const kn = {
2909
2929
  name: "Form:TextArea",
2910
2930
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
2911
2931
  inputs: [{
@@ -2942,7 +2962,7 @@ const vn = {
2942
2962
  static: !0,
2943
2963
  noWrap: !0
2944
2964
  };
2945
- function Sn(e) {
2965
+ function Cn(e) {
2946
2966
  return /* @__PURE__ */ l(
2947
2967
  "textarea",
2948
2968
  {
@@ -2955,7 +2975,7 @@ function Sn(e) {
2955
2975
  }
2956
2976
  );
2957
2977
  }
2958
- const kn = {
2978
+ const Tn = {
2959
2979
  // friendlyName?
2960
2980
  name: "Raw:Img",
2961
2981
  hideFromInsertMenu: !0,
@@ -2970,7 +2990,7 @@ const kn = {
2970
2990
  noWrap: !0,
2971
2991
  static: !0
2972
2992
  };
2973
- function Cn(e) {
2993
+ function wn(e) {
2974
2994
  return /* @__PURE__ */ l(
2975
2995
  "img",
2976
2996
  {
@@ -2985,7 +3005,7 @@ function Cn(e) {
2985
3005
  $() && e.imgSrc || "default-key"
2986
3006
  );
2987
3007
  }
2988
- const Tn = {
3008
+ const In = {
2989
3009
  name: "Video",
2990
3010
  canHaveChildren: !0,
2991
3011
  defaultStyles: {
@@ -3070,7 +3090,7 @@ const Tn = {
3070
3090
  builderBlock: !0
3071
3091
  }
3072
3092
  };
3073
- function In(e) {
3093
+ function Rn(e) {
3074
3094
  var i, o, a, r, s, d, c;
3075
3095
  function t() {
3076
3096
  return {
@@ -3171,64 +3191,64 @@ function In(e) {
3171
3191
  }
3172
3192
  );
3173
3193
  }
3174
- const wn = () => [{
3175
- component: on,
3176
- ...nn
3177
- }, {
3178
- component: sn,
3194
+ const En = () => [{
3195
+ component: rn,
3179
3196
  ...an
3180
3197
  }, {
3181
- component: fn,
3182
- ...cn
3198
+ component: dn,
3199
+ ...ln
3183
3200
  }, {
3184
3201
  component: gn,
3185
- ...hn
3186
- }, {
3187
- component: xn,
3188
- ...yn
3202
+ ...un
3189
3203
  }, {
3190
3204
  component: pn,
3191
3205
  ...bn
3192
3206
  }, {
3193
3207
  component: Sn,
3194
3208
  ...vn
3209
+ }, {
3210
+ component: xn,
3211
+ ...yn
3195
3212
  }, {
3196
3213
  component: Cn,
3197
3214
  ...kn
3198
3215
  }, {
3199
- component: In,
3216
+ component: wn,
3200
3217
  ...Tn
3201
- }], Se = () => [{
3202
- component: tt,
3203
- ...qt
3204
- }, {
3205
- component: $t,
3206
- ...Kt
3207
3218
  }, {
3208
- component: Dt,
3219
+ component: Rn,
3220
+ ...In
3221
+ }], Se = () => [{
3222
+ component: nt,
3209
3223
  ...zt
3210
3224
  }, {
3211
- component: jt,
3225
+ component: Lt,
3212
3226
  ..._t
3213
3227
  }, {
3214
- component: Ut,
3228
+ component: Ot,
3215
3229
  ...Jt
3216
3230
  }, {
3217
- component: Gt,
3231
+ component: jt,
3218
3232
  ...Yt
3219
3233
  }, {
3220
- component: Yn,
3234
+ component: Ht,
3235
+ ...Gt
3236
+ }, {
3237
+ component: Xt,
3221
3238
  ...Qt
3239
+ }, {
3240
+ component: Qn,
3241
+ ...Zt
3242
+ }, {
3243
+ component: on,
3244
+ ...nn
3222
3245
  }, {
3223
3246
  component: tn,
3224
3247
  ...en
3225
3248
  }, {
3226
- component: Zt,
3227
- ...Xt
3228
- }, {
3229
- component: Ht,
3230
- ...Mt
3231
- }, ...wn()], Rn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3249
+ component: Kt,
3250
+ ...qt
3251
+ }, ...En()], Bn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3232
3252
  function getAndSetVariantId() {
3233
3253
  function setCookie(name, value, days) {
3234
3254
  let expires = '';
@@ -3284,7 +3304,7 @@ const wn = () => [{
3284
3304
  }).join('');
3285
3305
  styleEl.innerHTML = newStyleStr;
3286
3306
  }
3287
- }`, En = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3307
+ }`, Pn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3288
3308
  if (!navigator.cookieEnabled) {
3289
3309
  return;
3290
3310
  }
@@ -3318,26 +3338,26 @@ const wn = () => [{
3318
3338
  thisScriptEl?.remove();
3319
3339
  }
3320
3340
  return;
3321
- }`, je = "builderIoAbTest", Ue = "builderIoRenderContent", Y = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3341
+ }`, Me = "builderIoAbTest", je = "builderIoRenderContent", Y = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3322
3342
  ...t,
3323
3343
  testVariationId: t.id,
3324
3344
  id: e == null ? void 0 : e.id
3325
- })), Bn = ({
3345
+ })), Vn = ({
3326
3346
  canTrack: e,
3327
3347
  content: t
3328
- }) => !(!(Y(t).length > 0) || !e || M()), Pn = (e) => e === "react" || e === "reactNative", Me = Pn(z), Vn = () => `
3329
- window.${je} = ${Rn}
3330
- window.${Ue} = ${En}
3331
- `, An = (e, t) => `
3332
- window.${je}(
3333
- "${t}",${JSON.stringify(e)}, ${Me}
3334
- )`, Nn = ({
3348
+ }) => !(!(Y(t).length > 0) || !e || j()), An = (e) => e === "react" || e === "reactNative", He = An(z), Nn = () => `
3349
+ window.${Me} = ${Bn}
3350
+ window.${je} = ${Pn}
3351
+ `, Wn = (e, t) => `
3352
+ window.${Me}(
3353
+ "${t}",${JSON.stringify(e)}, ${He}
3354
+ )`, Fn = ({
3335
3355
  contentId: e,
3336
3356
  variationId: t
3337
- }) => `window.${Ue}(
3338
- "${t}", "${e}", ${Me}
3357
+ }) => `window.${je}(
3358
+ "${t}", "${e}", ${He}
3339
3359
  )`;
3340
- function se(e) {
3360
+ function ce(e) {
3341
3361
  return /* @__PURE__ */ l(
3342
3362
  "script",
3343
3363
  {
@@ -3350,7 +3370,7 @@ function se(e) {
3350
3370
  function ke(e) {
3351
3371
  return Math.round(e * 1e3) / 1e3;
3352
3372
  }
3353
- const Wn = (e, t, n = !0) => {
3373
+ const $n = (e, t, n = !0) => {
3354
3374
  if (!(e instanceof HTMLElement))
3355
3375
  return null;
3356
3376
  let i = n ? e : e.parentElement;
@@ -3361,7 +3381,7 @@ const Wn = (e, t, n = !0) => {
3361
3381
  return i;
3362
3382
  } while (i = i.parentElement);
3363
3383
  return null;
3364
- }, Fn = (e) => Wn(e, (t) => {
3384
+ }, Dn = (e) => $n(e, (t) => {
3365
3385
  const n = t.getAttribute("builder-id") || t.id;
3366
3386
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3367
3387
  }), Ce = ({
@@ -3373,8 +3393,8 @@ const Wn = (e, t, n = !0) => {
3373
3393
  x: a,
3374
3394
  y: r
3375
3395
  };
3376
- }, $n = (e) => {
3377
- const t = e.target, n = t && Fn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3396
+ }, Ln = (e) => {
3397
+ const t = e.target, n = t && Dn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3378
3398
  return {
3379
3399
  targetBuilderElement: i || void 0,
3380
3400
  metadata: {
@@ -3389,7 +3409,7 @@ const Wn = (e, t, n = !0) => {
3389
3409
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3390
3410
  }
3391
3411
  };
3392
- }, Dn = (e) => {
3412
+ }, On = (e) => {
3393
3413
  var a, r;
3394
3414
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
3395
3415
  let o = "";
@@ -3415,12 +3435,12 @@ font-weight: ${s};
3415
3435
  `.trim());
3416
3436
  }
3417
3437
  return o;
3418
- }, Ln = ({
3438
+ }, Un = ({
3419
3439
  customFonts: e
3420
3440
  }) => {
3421
3441
  var t;
3422
- return ((t = e == null ? void 0 : e.map((n) => Dn(n))) == null ? void 0 : t.join(" ")) || "";
3423
- }, On = ({
3442
+ return ((t = e == null ? void 0 : e.map((n) => On(n))) == null ? void 0 : t.join(" ")) || "";
3443
+ }, Mn = ({
3424
3444
  cssCode: e,
3425
3445
  contentId: t
3426
3446
  }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", jn = `
@@ -3440,9 +3460,9 @@ font-weight: ${s};
3440
3460
  text-align: inherit;
3441
3461
  font-family: inherit;
3442
3462
  }
3443
- `, Un = (e) => e ? "" : jn, Mn = (e) => `variant-${e}`;
3444
- function Hn(e) {
3445
- var V, A, O, k, w, N, p;
3463
+ `, Hn = (e) => e ? "" : jn, qn = (e) => `variant-${e}`;
3464
+ function Kn(e) {
3465
+ var V, A, O, k, I, N, p;
3446
3466
  const t = Z(null);
3447
3467
  function n(b) {
3448
3468
  var S, C;
@@ -3450,13 +3470,13 @@ function Hn(e) {
3450
3470
  ...e.builderContextSignal.rootState,
3451
3471
  ...b
3452
3472
  };
3453
- e.builderContextSignal.rootSetState ? (C = (S = e.builderContextSignal).rootSetState) == null || C.call(S, v) : e.setBuilderContextSignal((I) => ({
3454
- ...I,
3473
+ e.builderContextSignal.rootSetState ? (C = (S = e.builderContextSignal).rootSetState) == null || C.call(S, v) : e.setBuilderContextSignal((w) => ({
3474
+ ...w,
3455
3475
  rootState: v
3456
3476
  }));
3457
3477
  }
3458
3478
  function i(b) {
3459
- var S, C, I, W, j;
3479
+ var S, C, w, W, U;
3460
3480
  const v = {
3461
3481
  ...e.builderContextSignal.content,
3462
3482
  ...b,
@@ -3467,7 +3487,7 @@ function Hn(e) {
3467
3487
  meta: {
3468
3488
  ...(C = e.builderContextSignal.content) == null ? void 0 : C.meta,
3469
3489
  ...b == null ? void 0 : b.meta,
3470
- breakpoints: ((I = b == null ? void 0 : b.meta) == null ? void 0 : I.breakpoints) || ((j = (W = e.builderContextSignal.content) == null ? void 0 : W.meta) == null ? void 0 : j.breakpoints)
3490
+ breakpoints: ((w = b == null ? void 0 : b.meta) == null ? void 0 : w.breakpoints) || ((U = (W = e.builderContextSignal.content) == null ? void 0 : W.meta) == null ? void 0 : U.breakpoints)
3471
3491
  }
3472
3492
  };
3473
3493
  e.setBuilderContextSignal((F) => ({
@@ -3485,21 +3505,21 @@ function Hn(e) {
3485
3505
  () => e.contentWrapper || "div"
3486
3506
  );
3487
3507
  function s(b) {
3488
- return Ge({
3508
+ return Qe({
3489
3509
  model: e.model,
3490
3510
  trustedHosts: e.trustedHosts,
3491
3511
  callbacks: {
3492
3512
  configureSdk: (v) => {
3493
- var I;
3513
+ var w;
3494
3514
  const { breakpoints: S, contentId: C } = v;
3495
- !C || C !== ((I = e.builderContextSignal.content) == null ? void 0 : I.id) || S && i({
3515
+ !C || C !== ((w = e.builderContextSignal.content) == null ? void 0 : w.id) || S && i({
3496
3516
  meta: {
3497
3517
  breakpoints: S
3498
3518
  }
3499
3519
  });
3500
3520
  },
3501
3521
  animation: (v) => {
3502
- We(v);
3522
+ Fe(v);
3503
3523
  },
3504
3524
  contentUpdate: (v) => {
3505
3525
  i(v);
@@ -3526,14 +3546,14 @@ function Hn(e) {
3526
3546
  function x(b) {
3527
3547
  var v, S;
3528
3548
  if (e.builderContextSignal.content) {
3529
- const C = (v = e.builderContextSignal.content) == null ? void 0 : v.testVariationId, I = (S = e.builderContextSignal.content) == null ? void 0 : S.id;
3549
+ const C = (v = e.builderContextSignal.content) == null ? void 0 : v.testVariationId, w = (S = e.builderContextSignal.content) == null ? void 0 : S.id;
3530
3550
  fe({
3531
3551
  type: "click",
3532
3552
  canTrack: Q(e.canTrack),
3533
- contentId: I,
3553
+ contentId: w,
3534
3554
  apiKey: e.apiKey,
3535
- variationId: C !== I ? C : void 0,
3536
- ...$n(b),
3555
+ variationId: C !== w ? C : void 0,
3556
+ ...Ln(b),
3537
3557
  unique: !u
3538
3558
  });
3539
3559
  }
@@ -3542,15 +3562,15 @@ function Hn(e) {
3542
3562
  function y() {
3543
3563
  var v, S, C;
3544
3564
  const b = (C = (S = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : S.httpRequests) != null ? C : {};
3545
- Object.entries(b).forEach(([I, W]) => {
3546
- if (!W || h[I] || c[I] && !$())
3565
+ Object.entries(b).forEach(([w, W]) => {
3566
+ if (!W || h[w] || c[w] && !$())
3547
3567
  return;
3548
- h[I] = !0;
3549
- const j = W.replace(
3568
+ h[w] = !0;
3569
+ const U = W.replace(
3550
3570
  /{{([^}]+)}}/g,
3551
- (F, He) => String(
3571
+ (F, qe) => String(
3552
3572
  K({
3553
- code: He,
3573
+ code: qe,
3554
3574
  context: e.context || {},
3555
3575
  localState: void 0,
3556
3576
  rootState: e.builderContextSignal.rootState,
@@ -3559,14 +3579,14 @@ function Hn(e) {
3559
3579
  })
3560
3580
  )
3561
3581
  );
3562
- Qe(j).then((F) => F.json()).then((F) => {
3582
+ Xe(U).then((F) => F.json()).then((F) => {
3563
3583
  n({
3564
- [I]: F
3565
- }), c[I] = !0;
3584
+ [w]: F
3585
+ }), c[w] = !0;
3566
3586
  }).catch((F) => {
3567
3587
  console.error("error fetching dynamic data", W, F);
3568
3588
  }).finally(() => {
3569
- h[I] = !1;
3589
+ h[w] = !1;
3570
3590
  });
3571
3591
  });
3572
3592
  }
@@ -3576,7 +3596,7 @@ function Hn(e) {
3576
3596
  "builder:component:stateChange",
3577
3597
  {
3578
3598
  detail: {
3579
- state: ce(e.builderContextSignal.rootState),
3599
+ state: we(e.builderContextSignal.rootState),
3580
3600
  ref: {
3581
3601
  name: e.model
3582
3602
  }
@@ -3587,8 +3607,8 @@ function Hn(e) {
3587
3607
  }
3588
3608
  return B(() => {
3589
3609
  var b, v;
3590
- if (M()) {
3591
- if ($() && (window.addEventListener("message", s), _e(), Je({
3610
+ if (j()) {
3611
+ if ($() && (window.addEventListener("message", s), Je(), Ye({
3592
3612
  ...e.locale ? {
3593
3613
  locale: e.locale
3594
3614
  } : {},
@@ -3602,26 +3622,26 @@ function Hn(e) {
3602
3622
  e.builderContextSignal.componentInfos
3603
3623
  ).forEach((C) => {
3604
3624
  var W;
3605
- const I = Ye(C);
3606
- (W = window.parent) == null || W.postMessage(I, "*");
3625
+ const w = Ge(C);
3626
+ (W = window.parent) == null || W.postMessage(w, "*");
3607
3627
  }), window.addEventListener(
3608
3628
  "builder:component:stateChangeListenerActivated",
3609
3629
  E
3610
3630
  )), e.builderContextSignal.content && Q(e.canTrack)) {
3611
- const C = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, I = (v = e.builderContextSignal.content) == null ? void 0 : v.id, W = e.apiKey;
3631
+ const C = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, w = (v = e.builderContextSignal.content) == null ? void 0 : v.id, W = e.apiKey;
3612
3632
  fe({
3613
3633
  type: "impression",
3614
3634
  canTrack: !0,
3615
- contentId: I,
3635
+ contentId: w,
3616
3636
  apiKey: W,
3617
- variationId: C !== I ? C : void 0
3637
+ variationId: C !== w ? C : void 0
3618
3638
  });
3619
3639
  }
3620
3640
  if (Ie() && !$()) {
3621
- const C = new URL(location.href).searchParams, I = C.get("builder.preview"), W = C.get(
3622
- `builder.overrides.${I}`
3623
- ), j = C.get("apiKey") || C.get("builder.space");
3624
- I === e.model && j === e.apiKey && (!e.content || W === e.content.id) && we({
3641
+ const C = new URL(location.href).searchParams, w = C.get("builder.preview"), W = C.get(
3642
+ `builder.overrides.${w}`
3643
+ ), U = C.get("apiKey") || C.get("builder.space");
3644
+ w === e.model && U === e.apiKey && (!e.content || W === e.content.id) && Re({
3625
3645
  model: e.model,
3626
3646
  apiKey: e.apiKey,
3627
3647
  apiVersion: e.builderContextSignal.apiVersion
@@ -3649,7 +3669,7 @@ function Hn(e) {
3649
3669
  locale: e.locale
3650
3670
  });
3651
3671
  }, [e.locale]), B(() => () => {
3652
- M() && (window.removeEventListener("message", s), window.removeEventListener(
3672
+ j() && (window.removeEventListener("message", s), window.removeEventListener(
3653
3673
  "builder:component:stateChangeListenerActivated",
3654
3674
  E
3655
3675
  ));
@@ -3658,28 +3678,28 @@ function Hn(e) {
3658
3678
  {
3659
3679
  ref: t,
3660
3680
  onClick: (b) => x(b),
3661
- "builder-content-id": (w = e.builderContextSignal.content) == null ? void 0 : w.id,
3681
+ "builder-content-id": (I = e.builderContextSignal.content) == null ? void 0 : I.id,
3662
3682
  "builder-model": e.model,
3663
3683
  ...o(),
3664
3684
  ...e.contentWrapperProps,
3665
- className: Mn(
3685
+ className: qn(
3666
3686
  ((N = e.content) == null ? void 0 : N.testVariationId) || ((p = e.content) == null ? void 0 : p.id)
3667
3687
  ),
3668
3688
  children: e.children
3669
3689
  }
3670
3690
  ) : null });
3671
3691
  }
3672
- function qn(e) {
3692
+ function zn(e) {
3673
3693
  const [t, n] = T(
3674
3694
  () => `
3675
- ${On({
3695
+ ${Mn({
3676
3696
  cssCode: e.cssCode,
3677
3697
  contentId: e.contentId
3678
3698
  })}
3679
- ${Ln({
3699
+ ${Un({
3680
3700
  customFonts: e.customFonts
3681
3701
  })}
3682
- ${Un(e.isNestedRender)}
3702
+ ${Hn(e.isNestedRender)}
3683
3703
  `.trim()
3684
3704
  );
3685
3705
  return /* @__PURE__ */ l(
@@ -3691,7 +3711,7 @@ ${Un(e.isNestedRender)}
3691
3711
  }
3692
3712
  );
3693
3713
  }
3694
- const Kn = ({
3714
+ const _n = ({
3695
3715
  content: e,
3696
3716
  data: t,
3697
3717
  locale: n
@@ -3708,7 +3728,7 @@ const Kn = ({
3708
3728
  locale: n
3709
3729
  } : {}
3710
3730
  };
3711
- }, zn = ({
3731
+ }, Jn = ({
3712
3732
  content: e,
3713
3733
  data: t
3714
3734
  }) => e ? {
@@ -3724,7 +3744,7 @@ function Te(e) {
3724
3744
  const [t, n] = T(
3725
3745
  () => {
3726
3746
  var x, y;
3727
- return Nn({
3747
+ return Fn({
3728
3748
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3729
3749
  variationId: (x = e.content) == null ? void 0 : x.testVariationId,
3730
3750
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -3753,12 +3773,12 @@ function Te(e) {
3753
3773
  {}
3754
3774
  )
3755
3775
  ), [r, s] = T(() => ({
3756
- content: zn({
3776
+ content: Jn({
3757
3777
  content: e.content,
3758
3778
  data: e.data
3759
3779
  }),
3760
3780
  localState: void 0,
3761
- rootState: Kn({
3781
+ rootState: _n({
3762
3782
  content: e.content,
3763
3783
  data: e.data,
3764
3784
  locale: e.locale
@@ -3784,13 +3804,13 @@ function Te(e) {
3784
3804
  nonce: e.nonce || ""
3785
3805
  }));
3786
3806
  return /* @__PURE__ */ l(
3787
- Be.Provider,
3807
+ Pe.Provider,
3788
3808
  {
3789
3809
  value: {
3790
3810
  registeredComponents: o
3791
3811
  },
3792
3812
  children: /* @__PURE__ */ P(
3793
- Hn,
3813
+ Kn,
3794
3814
  {
3795
3815
  nonce: e.nonce,
3796
3816
  content: e.content,
@@ -3809,7 +3829,7 @@ function Te(e) {
3809
3829
  setBuilderContextSignal: s,
3810
3830
  children: [
3811
3831
  e.isSsrAbTest ? /* @__PURE__ */ l(
3812
- se,
3832
+ ce,
3813
3833
  {
3814
3834
  id: "builderio-variant-visibility",
3815
3835
  scriptStr: t,
@@ -3817,7 +3837,7 @@ function Te(e) {
3817
3837
  }
3818
3838
  ) : null,
3819
3839
  /* @__PURE__ */ l(
3820
- qn,
3840
+ zn,
3821
3841
  {
3822
3842
  nonce: e.nonce || "",
3823
3843
  isNestedRender: e.isNestedRender,
@@ -3841,17 +3861,17 @@ function Te(e) {
3841
3861
  }
3842
3862
  );
3843
3863
  }
3844
- function _n(e) {
3864
+ function Yn(e) {
3845
3865
  var r;
3846
3866
  const [t, n] = T(
3847
- () => Bn({
3867
+ () => Vn({
3848
3868
  canTrack: Q(e.canTrack),
3849
3869
  content: e.content
3850
3870
  })
3851
3871
  );
3852
3872
  function i() {
3853
3873
  var s;
3854
- return An(
3874
+ return Wn(
3855
3875
  Y(e.content).map((d) => ({
3856
3876
  id: d.testVariationId,
3857
3877
  testRatio: d.testRatio
@@ -3867,7 +3887,7 @@ function _n(e) {
3867
3887
  return t ? {
3868
3888
  ...e.content,
3869
3889
  testVariationId: (s = e.content) == null ? void 0 : s.id
3870
- } : Xe({
3890
+ } : Ze({
3871
3891
  item: e.content,
3872
3892
  canTrack: Q(e.canTrack)
3873
3893
  });
@@ -3876,10 +3896,10 @@ function _n(e) {
3876
3896
  }, []), B(() => {
3877
3897
  }), /* @__PURE__ */ P(R, { children: [
3878
3898
  !e.isNestedRender && z !== "reactNative" ? /* @__PURE__ */ l(
3879
- se,
3899
+ ce,
3880
3900
  {
3881
3901
  id: "builderio-init-variants-fns",
3882
- scriptStr: Vn(),
3902
+ scriptStr: Nn(),
3883
3903
  nonce: e.nonce || ""
3884
3904
  }
3885
3905
  ) : null,
@@ -3893,7 +3913,7 @@ function _n(e) {
3893
3913
  }
3894
3914
  ),
3895
3915
  /* @__PURE__ */ l(
3896
- se,
3916
+ ce,
3897
3917
  {
3898
3918
  id: "builderio-variants-visibility",
3899
3919
  scriptStr: i(),
@@ -3954,13 +3974,13 @@ function _n(e) {
3954
3974
  )
3955
3975
  ] });
3956
3976
  }
3957
- const Jn = async ({
3977
+ const Gn = async ({
3958
3978
  builderContextValue: e,
3959
3979
  symbol: t
3960
3980
  }) => {
3961
3981
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
3962
3982
  (e != null && e.apiKey))
3963
- return we({
3983
+ return Re({
3964
3984
  model: t.model,
3965
3985
  apiKey: e.apiKey,
3966
3986
  apiVersion: e.apiVersion,
@@ -3973,7 +3993,7 @@ const Jn = async ({
3973
3993
  X.error("Could not fetch symbol content: ", n);
3974
3994
  });
3975
3995
  };
3976
- function Yn(e) {
3996
+ function Qn(e) {
3977
3997
  var s, d, c, m;
3978
3998
  function t() {
3979
3999
  return "div";
@@ -3995,7 +4015,7 @@ function Yn(e) {
3995
4015
  return (h = e.symbol) == null ? void 0 : h.content;
3996
4016
  });
3997
4017
  function r() {
3998
- o || Jn({
4018
+ o || Gn({
3999
4019
  symbol: e.symbol,
4000
4020
  builderContextValue: e.builderContext
4001
4021
  }).then((h) => {
@@ -4006,7 +4026,7 @@ function Yn(e) {
4006
4026
  }, []), B(() => {
4007
4027
  r();
4008
4028
  }, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
4009
- _n,
4029
+ Yn,
4010
4030
  {
4011
4031
  nonce: e.builderContext.nonce,
4012
4032
  isNestedRender: !0,
@@ -4034,13 +4054,13 @@ function Yn(e) {
4034
4054
  export {
4035
4055
  D as Blocks,
4036
4056
  ue as BuilderContext,
4037
- tt as Button,
4038
- $t as Columns,
4039
- _n as Content,
4040
- Dt as Fragment,
4057
+ nt as Button,
4058
+ Lt as Columns,
4059
+ Yn as Content,
4060
+ Ot as Fragment,
4041
4061
  jt as Image,
4042
- Ut as Section,
4043
- Yn as Symbol,
4044
- tn as Text,
4045
- In as Video
4062
+ Ht as Section,
4063
+ Qn as Symbol,
4064
+ on as Text,
4065
+ Rn as Video
4046
4066
  };