@builder.io/sdk-react 4.0.6 → 4.0.7

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 (71) hide show
  1. package/lib/browser/blocks-exports.cjs +29 -29
  2. package/lib/browser/blocks-exports.mjs +330 -327
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/{server-entry-5449a575.cjs → server-entry-4c650ff5.cjs} +1 -1
  6. package/lib/browser/{server-entry-79285592.js → server-entry-e70c12ff.js} +1 -1
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/{accordion-87ad8263.js → accordion-742ca147.js} +1 -1
  10. package/lib/edge/{accordion-f7e030d5.cjs → accordion-c97e6506.cjs} +1 -1
  11. package/lib/edge/{blocks-a066bb29.js → blocks-2a015bd6.js} +995 -990
  12. package/lib/edge/blocks-70894a53.cjs +30 -0
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +2 -2
  15. package/lib/edge/{button-45c9b994.cjs → button-6a072716.cjs} +1 -1
  16. package/lib/edge/{button-1d265b68.js → button-deecd9b5.js} +2 -2
  17. package/lib/edge/{columns-2282e71d.cjs → columns-02352a9f.cjs} +1 -1
  18. package/lib/edge/{columns-6f323a60.js → columns-0e9b2bf4.js} +3 -3
  19. package/lib/edge/{content-variants-ea56e041.cjs → content-variants-41781d1f.cjs} +1 -1
  20. package/lib/edge/{content-variants-ddc4462d.js → content-variants-6948115a.js} +13 -16
  21. package/lib/edge/{custom-code-27f3a9d0.js → custom-code-73f76f76.js} +1 -1
  22. package/lib/edge/{custom-code-046c9e54.cjs → custom-code-77f98605.cjs} +1 -1
  23. package/lib/edge/{embed-962809ed.js → embed-26470ea1.js} +1 -1
  24. package/lib/edge/{embed-a90e1ebf.cjs → embed-9aaf87f9.cjs} +1 -1
  25. package/lib/edge/{form-2112cb80.cjs → form-0213200e.cjs} +1 -1
  26. package/lib/edge/{form-4fc6f70a.js → form-652ef8a9.js} +3 -3
  27. package/lib/edge/{get-class-prop-name-03e66a61.js → get-class-prop-name-1a003fac.js} +1 -1
  28. package/lib/edge/{get-class-prop-name-77a0b81b.cjs → get-class-prop-name-8647a440.cjs} +1 -1
  29. package/lib/edge/{image-1729f079.js → image-acc1c00c.js} +29 -27
  30. package/lib/edge/image-e38bd9e0.cjs +17 -0
  31. package/lib/edge/{img-95c678b5.js → img-2d35513d.js} +1 -1
  32. package/lib/edge/{img-5850d9d8.cjs → img-f0b9e982.cjs} +1 -1
  33. package/lib/edge/index.cjs +1 -1
  34. package/lib/edge/index.mjs +1 -1
  35. package/lib/edge/{input-7d147e6f.js → input-cdd96bc7.js} +1 -1
  36. package/lib/edge/{input-3937aa23.cjs → input-e61cf32f.cjs} +1 -1
  37. package/lib/edge/{personalization-container-aff166ba.cjs → personalization-container-4f73fbdf.cjs} +1 -1
  38. package/lib/edge/{personalization-container-d687ea13.js → personalization-container-e1f03976.js} +4 -4
  39. package/lib/edge/{select-bfca657e.js → select-de96bdc0.js} +1 -1
  40. package/lib/edge/{select-5bdfe568.cjs → select-f1165866.cjs} +1 -1
  41. package/lib/edge/{server-entry-e8854034.cjs → server-entry-10ca8502.cjs} +1 -1
  42. package/lib/edge/{server-entry-1d157602.js → server-entry-637ed5ff.js} +1 -1
  43. package/lib/edge/server-entry.cjs +1 -1
  44. package/lib/edge/server-entry.mjs +1 -1
  45. package/lib/edge/{slot-a4c97369.cjs → slot-3ecf31d9.cjs} +1 -1
  46. package/lib/edge/{slot-acb2aa8e.js → slot-72846242.js} +3 -3
  47. package/lib/edge/{symbol-33b65252.cjs → symbol-49ed2192.cjs} +1 -1
  48. package/lib/edge/{symbol-cc7e6b66.js → symbol-61a3651b.js} +2 -2
  49. package/lib/edge/{tabs-900d88a9.cjs → tabs-788974d9.cjs} +1 -1
  50. package/lib/edge/{tabs-9cbb5615.js → tabs-ea0258b8.js} +3 -3
  51. package/lib/node/blocks-exports.cjs +29 -29
  52. package/lib/node/blocks-exports.mjs +323 -320
  53. package/lib/node/index.cjs +1 -1
  54. package/lib/node/index.mjs +3 -3
  55. package/lib/node/init.cjs +1 -1
  56. package/lib/node/init.mjs +3 -3
  57. package/lib/node/{server-entry-ee54171f.js → server-entry-7167da7c.js} +1 -1
  58. package/lib/node/{server-entry-0dcb0303.cjs → server-entry-e76904a8.cjs} +1 -1
  59. package/lib/node/server-entry.cjs +1 -1
  60. package/lib/node/server-entry.mjs +1 -1
  61. package/lib/node/{setIvm-b773f3ba.js → setIvm-72c91afa.js} +1 -1
  62. package/lib/node/{setIvm-d479356f.cjs → setIvm-e89d1a08.cjs} +1 -1
  63. package/lib/node/setIvm.cjs +1 -1
  64. package/lib/node/setIvm.mjs +2 -2
  65. package/lib/node/{should-force-browser-runtime-in-node-bdb5bf58.js → should-force-browser-runtime-in-node-09a401d5.js} +1 -1
  66. package/lib/node/{should-force-browser-runtime-in-node-364ee049.cjs → should-force-browser-runtime-in-node-b3e23348.cjs} +1 -1
  67. package/package.json +1 -1
  68. package/types/components/block/block.helpers.d.ts +1 -0
  69. package/types/constants/sdk-version.d.ts +1 -1
  70. package/lib/edge/blocks-31199191.cjs +0 -30
  71. package/lib/edge/image-a6fbd15b.cjs +0 -17
@@ -1,14 +1,14 @@
1
1
  "use client";
2
- import { TARGET as O, isBrowser as U, logger as z, checkIsDefined as se, isPreviewing as X, isEditing as N, userAttributesService as be, getDefaultCanTrack as M, logFetch as Ve, registerInsertMenu as Ge, setupBrowserForEditing as Qe, createRegisterComponentMessage as Ye, getCookieSync as Xe, _track as pe, fetchOneEntry as Pe, createEditorListener as Ze, serializeIncludingFunctions as ye, handleABTestingSync as et } from "./server-entry-ee54171f.js";
3
- import { setClientUserAttributes as Ri } from "./server-entry-ee54171f.js";
2
+ import { TARGET as O, isBrowser as U, logger as z, checkIsDefined as se, isPreviewing as X, isEditing as N, userAttributesService as be, getDefaultCanTrack as M, logFetch as Pe, registerInsertMenu as Qe, setupBrowserForEditing as Ye, createRegisterComponentMessage as Xe, getCookieSync as Ze, _track as pe, fetchOneEntry as Be, createEditorListener as et, serializeIncludingFunctions as ye, handleABTestingSync as tt } from "./server-entry-7167da7c.js";
3
+ import { setClientUserAttributes as Vi } from "./server-entry-7167da7c.js";
4
4
  import { jsx as s, Fragment as R, jsxs as B } from "react/jsx-runtime";
5
- import * as tt from "react";
6
- import { createContext as Be, useEffect as P, useState as I, useRef as L, useContext as ve, createElement as Ae } from "react";
7
- import { getFunctionArguments as nt, flattenState as it, runInNode as at, parseCode as ot, getBuilderGlobals as rt, set as Ne, fastClone as ue } from "./setIvm-b773f3ba.js";
8
- import { shouldForceBrowserRuntimeInNode as lt } from "./should-force-browser-runtime-in-node-bdb5bf58.js";
9
- const st = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ct = (e) => typeof e == "string" && st.has(e.toLowerCase());
5
+ import * as nt from "react";
6
+ import { createContext as Ae, useEffect as P, useState as I, useRef as L, useContext as ve, createElement as Ne } from "react";
7
+ import { getFunctionArguments as it, flattenState as at, runInNode as ot, parseCode as rt, getBuilderGlobals as lt, set as We, fastClone as ue } from "./setIvm-72c91afa.js";
8
+ import { shouldForceBrowserRuntimeInNode as st } from "./should-force-browser-runtime-in-node-09a401d5.js";
9
+ const ct = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ut = (e) => typeof e == "string" && ct.has(e.toLowerCase());
10
10
  function de(e) {
11
- return /* @__PURE__ */ s(R, { children: ct(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
11
+ return /* @__PURE__ */ s(R, { children: ut(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
12
12
  }
13
13
  const j = () => {
14
14
  switch (O) {
@@ -24,7 +24,7 @@ const j = () => {
24
24
  return "class";
25
25
  }
26
26
  };
27
- function ut(e) {
27
+ function dt(e) {
28
28
  function t() {
29
29
  return {
30
30
  ...e.attributes,
@@ -48,7 +48,7 @@ function ut(e) {
48
48
  }
49
49
  );
50
50
  }
51
- const me = Be({
51
+ const me = Ae({
52
52
  content: null,
53
53
  context: {},
54
54
  localState: void 0,
@@ -63,10 +63,10 @@ const me = Be({
63
63
  BlocksWrapperProps: {},
64
64
  nonce: "",
65
65
  model: ""
66
- }), We = Be({ registeredComponents: {} }), De = (e, t, n) => {
66
+ }), De = Ae({ registeredComponents: {} }), $e = (e, t, n) => {
67
67
  const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((a, r) => a != null ? a[r] : a, e);
68
68
  return i === void 0 || i === e ? n : i;
69
- }, dt = ({
69
+ }, mt = ({
70
70
  code: e,
71
71
  builder: t,
72
72
  context: n,
@@ -75,22 +75,22 @@ const me = Be({
75
75
  rootSetState: r,
76
76
  rootState: o
77
77
  }) => {
78
- const l = nt({
78
+ const l = it({
79
79
  builder: t,
80
80
  context: n,
81
81
  event: i,
82
- state: it({
82
+ state: at({
83
83
  rootState: o,
84
84
  localState: a,
85
85
  rootSetState: r
86
86
  })
87
87
  });
88
88
  return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
89
- }, mt = (e) => U() || lt({
89
+ }, ft = (e) => U() || st({
90
90
  shouldLogWarning: !0
91
- }) ? dt(e) : at(e), ft = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, ht = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, gt = (e) => {
91
+ }) ? mt(e) : ot(e), ht = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, gt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, bt = (e) => {
92
92
  var t, n, i, a, r, o;
93
- return ((i = (n = (t = ft.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((o = (r = (a = ht.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : r.getPath) == null ? void 0 : o.slice(1));
93
+ return ((i = (n = (t = ht.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((o = (r = (a = gt.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : r.getPath) == null ? void 0 : o.slice(1));
94
94
  };
95
95
  function _({
96
96
  code: e,
@@ -103,17 +103,17 @@ function _({
103
103
  }) {
104
104
  if (e.trim() === "")
105
105
  return;
106
- const l = gt(e.trim());
106
+ const l = bt(e.trim());
107
107
  if (l)
108
- return De({
108
+ return $e({
109
109
  ...i,
110
110
  ...n
111
111
  }, l);
112
112
  const d = {
113
- code: ot(e, {
113
+ code: rt(e, {
114
114
  isExpression: o
115
115
  }),
116
- builder: rt(),
116
+ builder: lt(),
117
117
  context: t,
118
118
  event: r,
119
119
  rootSetState: a,
@@ -121,7 +121,7 @@ function _({
121
121
  localState: n
122
122
  };
123
123
  try {
124
- return mt(d);
124
+ return ft(d);
125
125
  } catch (u) {
126
126
  z.error("Failed code evaluation: " + u.message, {
127
127
  code: e
@@ -129,15 +129,15 @@ function _({
129
129
  return;
130
130
  }
131
131
  }
132
- function bt(e, t) {
132
+ function pt(e, t) {
133
133
  var n;
134
134
  return {
135
135
  ...(n = e.component) == null ? void 0 : n.options,
136
136
  ...e.options,
137
- ...pt(e, t)
137
+ ...yt(e, t)
138
138
  };
139
139
  }
140
- const pt = (e, t) => {
140
+ const yt = (e, t) => {
141
141
  var n, i;
142
142
  if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
143
143
  return {
@@ -151,7 +151,7 @@ const pt = (e, t) => {
151
151
  }))
152
152
  };
153
153
  };
154
- function yt(e, ...t) {
154
+ function vt(e, ...t) {
155
155
  const n = Object.assign({}, e);
156
156
  for (const i of t)
157
157
  delete n[i];
@@ -174,29 +174,29 @@ function Q(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
174
174
  }), Q(o, t, e, r, a);
175
175
  }));
176
176
  }
177
- function $e(e) {
177
+ function Fe(e) {
178
178
  return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
179
179
  }
180
- function vt(e) {
180
+ function xt(e) {
181
181
  if (!e || !Object.getOwnPropertyNames(e).length)
182
182
  return !1;
183
183
  let t = !1;
184
184
  return Q(e, (n) => {
185
- if ($e(n)) {
185
+ if (Fe(n)) {
186
186
  t = !0;
187
187
  return;
188
188
  }
189
189
  }), t;
190
190
  }
191
- function xt(e, t) {
191
+ function St(e, t) {
192
192
  return !e || !Object.getOwnPropertyNames(e).length ? {} : (Q(e, (n, i) => {
193
193
  var a;
194
- $e(n) && i((a = n[t]) != null ? a : void 0);
194
+ Fe(n) && i((a = n[t]) != null ? a : void 0);
195
195
  }), e);
196
196
  }
197
- function St(e, t) {
197
+ function kt(e, t) {
198
198
  var n, i;
199
- return (n = e.component) != null && n.options && vt((i = e.component) == null ? void 0 : i.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = xt(e.component.options, t != null ? t : "Default")), e;
199
+ return (n = e.component) != null && n.options && xt((i = e.component) == null ? void 0 : i.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = St(e.component.options, t != null ? t : "Default")), e;
200
200
  }
201
201
  function ce(e) {
202
202
  if (e === null || typeof e != "object")
@@ -210,8 +210,8 @@ function ce(e) {
210
210
  n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ce(e[n]));
211
211
  return t;
212
212
  }
213
- const kt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Ct = (e) => {
214
- if (kt) {
213
+ const Ct = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Tt = (e) => {
214
+ if (Ct) {
215
215
  const t = ue(e);
216
216
  return {
217
217
  ...t,
@@ -223,7 +223,7 @@ const kt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Ct = (e) =
223
223
  }
224
224
  };
225
225
  } else {
226
- const t = ce(yt(e, "children", "meta"));
226
+ const t = ce(vt(e, "children", "meta"));
227
227
  return {
228
228
  ...t,
229
229
  properties: {
@@ -236,7 +236,7 @@ const kt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Ct = (e) =
236
236
  meta: e.meta
237
237
  };
238
238
  }
239
- }, Tt = ({
239
+ }, wt = ({
240
240
  block: e,
241
241
  context: t,
242
242
  localState: n,
@@ -245,7 +245,7 @@ const kt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Ct = (e) =
245
245
  }) => {
246
246
  if (!e.bindings)
247
247
  return e;
248
- const r = Ct(e);
248
+ const r = Tt(e);
249
249
  for (const o in e.bindings) {
250
250
  const l = e.bindings[o], d = _({
251
251
  code: l,
@@ -254,19 +254,19 @@ const kt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Ct = (e) =
254
254
  rootSetState: a,
255
255
  context: t
256
256
  });
257
- Ne(r, o, d);
257
+ We(r, o, d);
258
258
  }
259
259
  return r;
260
260
  };
261
- function wt({
261
+ function It({
262
262
  block: e,
263
263
  context: t,
264
264
  localState: n,
265
265
  rootState: i,
266
266
  rootSetState: a
267
267
  }) {
268
- let r = St(e, i.locale);
269
- return r = r, Tt({
268
+ let r = kt(e, i.locale);
269
+ return r = r, wt({
270
270
  block: r,
271
271
  localState: n,
272
272
  rootState: i,
@@ -275,7 +275,7 @@ function wt({
275
275
  });
276
276
  }
277
277
  const Z = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
278
- function It(e, t, n = {}) {
278
+ function Et(e, t, n = {}) {
279
279
  let i, a, r, o = null, l = 0;
280
280
  const d = function() {
281
281
  l = n.leading === !1 ? 0 : Date.now(), o = null, r = e.apply(i, a), o || (i = a = null);
@@ -297,55 +297,55 @@ function H(e, ...t) {
297
297
  }
298
298
  return n;
299
299
  }
300
- function Et(e) {
300
+ function Rt(e) {
301
301
  for (const t of e)
302
302
  switch (t.trigger) {
303
303
  case "pageLoad":
304
- Oe(t);
304
+ Ue(t);
305
305
  break;
306
306
  case "scrollInView":
307
- Vt(t);
307
+ Pt(t);
308
308
  break;
309
309
  }
310
310
  }
311
- function Fe(e) {
311
+ function Le(e) {
312
312
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
313
313
  }
314
- function Le(e, t) {
315
- const n = Rt(e), i = getComputedStyle(t), a = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, o = [a, r];
314
+ function Oe(e, t) {
315
+ const n = Vt(e), i = getComputedStyle(t), a = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, o = [a, r];
316
316
  for (const l of o)
317
317
  for (const d of n)
318
318
  d in l || (l[d] = i[d]);
319
319
  }
320
- function Rt(e) {
320
+ function Vt(e) {
321
321
  const t = [];
322
322
  for (const n of e.steps)
323
323
  for (const i in n.styles)
324
324
  t.indexOf(i) === -1 && t.push(i);
325
325
  return t;
326
326
  }
327
- function Oe(e) {
327
+ function Ue(e) {
328
328
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
329
329
  if (!t.length) {
330
- Fe(e.elementId || e.id || "");
330
+ Le(e.elementId || e.id || "");
331
331
  return;
332
332
  }
333
333
  Array.from(t).forEach((n) => {
334
- Le(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
334
+ Oe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
335
335
  n.style.transition = `all ${e.duration}s ${Z(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
336
336
  n.style.transition = "", n.style.transitionDelay = "";
337
337
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
338
338
  });
339
339
  });
340
340
  }
341
- function Vt(e) {
341
+ function Pt(e) {
342
342
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
343
343
  if (!t.length) {
344
- Fe(e.elementId || e.id || "");
344
+ Le(e.elementId || e.id || "");
345
345
  return;
346
346
  }
347
347
  Array.from(t).forEach((n) => {
348
- Le(e, n);
348
+ Oe(e, n);
349
349
  let i = !1, a = !1;
350
350
  function r() {
351
351
  !i && l(n) ? (i = !0, a = !0, setTimeout(() => {
@@ -354,7 +354,7 @@ function Vt(e) {
354
354
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
355
355
  })) : e.repeat && i && !a && !l(n) && (i = !1, H(n.style, e.steps[0].styles));
356
356
  }
357
- const o = It(r, 200, {
357
+ const o = Et(r, 200, {
358
358
  leading: !1
359
359
  });
360
360
  function l(h) {
@@ -373,42 +373,42 @@ function Vt(e) {
373
373
  }), r();
374
374
  });
375
375
  }
376
- const Ue = (e) => Object.entries(e).map(([n, i]) => {
376
+ const _e = (e) => Object.entries(e).map(([n, i]) => {
377
377
  if (typeof i == "string")
378
378
  return `${Z(n)}: ${i};`;
379
- }).filter(se), Pt = (e) => Ue(e).join(`
379
+ }).filter(se), Bt = (e) => _e(e).join(`
380
380
  `), q = ({
381
381
  mediaQuery: e,
382
382
  className: t,
383
383
  styles: n
384
384
  }) => {
385
385
  const i = `.${t} {
386
- ${Pt(n)}
386
+ ${Bt(n)}
387
387
  }`;
388
388
  return e ? `${e} {
389
389
  ${i}
390
390
  }` : i;
391
391
  };
392
- function Bt({
392
+ function At({
393
393
  style: e
394
394
  }) {
395
395
  return e;
396
396
  }
397
- const At = ({
397
+ const Nt = ({
398
398
  block: e,
399
399
  context: t
400
- }) => _e(Bt({
400
+ }) => qe(At({
401
401
  style: e.style || {},
402
402
  context: t,
403
403
  block: e
404
404
  }));
405
- function _e(e) {
405
+ function qe(e) {
406
406
  switch (O) {
407
407
  case "svelte":
408
408
  case "vue":
409
409
  case "solid":
410
410
  case "angular":
411
- return Ue(e).join(" ");
411
+ return _e(e).join(" ");
412
412
  case "qwik":
413
413
  case "reactNative":
414
414
  case "react":
@@ -416,7 +416,7 @@ function _e(e) {
416
416
  return e;
417
417
  }
418
418
  }
419
- const qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Nt = ({
419
+ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Wt = ({
420
420
  block: e,
421
421
  registeredComponents: t,
422
422
  model: n
@@ -426,14 +426,14 @@ const qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
426
426
  if (!i)
427
427
  return null;
428
428
  const a = t[i];
429
- if (!a || qe(a, n)) {
429
+ if (!a || He(a, n)) {
430
430
  console.warn(`
431
431
  Could not find a registered component named "${i}".
432
432
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
433
433
  return;
434
434
  } else
435
435
  return a;
436
- }, Wt = ({
436
+ }, Dt = ({
437
437
  block: e,
438
438
  context: t
439
439
  }) => {
@@ -466,27 +466,27 @@ const qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
466
466
  },
467
467
  block: i
468
468
  }));
469
- }, Dt = (e, t) => {
469
+ }, $t = (e, t) => {
470
470
  var n;
471
471
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
472
472
  builderLinkComponent: t
473
473
  } : {};
474
- }, $t = (e, t, n) => {
474
+ }, Ft = (e, t, n) => {
475
475
  var i;
476
476
  return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
477
- builderComponents: Object.fromEntries(Object.entries(t).filter(([r, o]) => !qe(o, n)))
477
+ builderComponents: Object.fromEntries(Object.entries(t).filter(([r, o]) => !He(o, n)))
478
478
  } : {};
479
- }, Ft = (e, t) => {
479
+ }, Lt = (e, t) => {
480
480
  var n;
481
481
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
482
482
  builderBlock: t
483
483
  } : {};
484
- }, Lt = (e, t) => {
484
+ }, Ot = (e, t) => {
485
485
  var n;
486
486
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
487
487
  builderContext: t
488
488
  } : {};
489
- }, He = {
489
+ }, xe = (e) => e.toString(), Me = {
490
490
  xsmall: {
491
491
  min: 0,
492
492
  default: 160,
@@ -507,8 +507,8 @@ const qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
507
507
  default: 991,
508
508
  max: 1200
509
509
  }
510
- }, ne = (e, t = He) => `@media (max-width: ${t[e].max}px)`, Me = (e) => {
511
- const t = ue(He);
510
+ }, ne = (e, t = Me) => `@media (max-width: ${t[e].max}px)`, je = (e) => {
511
+ const t = ue(Me);
512
512
  if (!e)
513
513
  return t;
514
514
  const {
@@ -556,14 +556,14 @@ function K(e) {
556
556
  }
557
557
  );
558
558
  }
559
- function Ot(e) {
559
+ function Ut(e) {
560
560
  function t() {
561
561
  const i = e.block;
562
562
  return se(i.hide) ? !i.hide : se(i.show) ? i.show : !0;
563
563
  }
564
564
  function n() {
565
565
  var C, V, w, x, m;
566
- const i = e.block, a = i.responsiveStyles, r = e.context.content, o = Me(
566
+ const i = e.block, a = i.responsiveStyles, r = e.context.content, o = je(
567
567
  ((C = r == null ? void 0 : r.meta) == null ? void 0 : C.breakpoints) || {}
568
568
  ), l = !!((w = (V = r == null ? void 0 : r.meta) == null ? void 0 : V.breakpoints) != null && w.xsmall), d = a == null ? void 0 : a.large, u = a == null ? void 0 : a.medium, h = a == null ? void 0 : a.small, g = a == null ? void 0 : a.xsmall, c = i.id;
569
569
  if (!c)
@@ -624,10 +624,10 @@ function Ot(e) {
624
624
  }
625
625
  ) }) : null });
626
626
  }
627
- function Ut(e) {
627
+ function _t(e) {
628
628
  return e.charAt(0).toUpperCase() + e.slice(1);
629
629
  }
630
- const _t = (e) => `on${Ut(e)}`, qt = (e, t) => (n) => _({
630
+ const qt = (e) => `on${_t(e)}`, Ht = (e, t) => (n) => _({
631
631
  code: e,
632
632
  context: t.context,
633
633
  localState: t.localState,
@@ -636,14 +636,14 @@ const _t = (e) => `on${Ut(e)}`, qt = (e, t) => (n) => _({
636
636
  event: n,
637
637
  isExpression: !1
638
638
  });
639
- function je(e) {
639
+ function ze(e) {
640
640
  var i;
641
641
  const t = {}, n = (i = e.block.actions) != null ? i : {};
642
642
  for (const a in n) {
643
643
  if (!n.hasOwnProperty(a))
644
644
  continue;
645
645
  const r = n[a];
646
- let o = _t(a);
646
+ let o = qt(a);
647
647
  if (e.stripPrefix)
648
648
  switch (O) {
649
649
  case "vue":
@@ -653,16 +653,16 @@ function je(e) {
653
653
  o = o.replace("on:", "");
654
654
  break;
655
655
  }
656
- t[o] = qt(r, e);
656
+ t[o] = Ht(r, e);
657
657
  }
658
658
  return t;
659
659
  }
660
- function Ht({
660
+ function Mt({
661
661
  properties: e
662
662
  }) {
663
663
  return e;
664
664
  }
665
- const Mt = (e) => ({
665
+ const jt = (e) => ({
666
666
  href: e.href
667
667
  });
668
668
  function fe({
@@ -671,22 +671,22 @@ function fe({
671
671
  }) {
672
672
  var i;
673
673
  const n = {
674
- ...Mt(e),
674
+ ...jt(e),
675
675
  ...e.properties,
676
676
  "builder-id": e.id,
677
- style: At({
677
+ style: Nt({
678
678
  block: e,
679
679
  context: t
680
680
  }),
681
681
  [j()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
682
682
  };
683
- return Ht({
683
+ return Mt({
684
684
  properties: n,
685
685
  context: t,
686
686
  block: e
687
687
  });
688
688
  }
689
- function jt(e) {
689
+ function zt(e) {
690
690
  return /* @__PURE__ */ s(
691
691
  de,
692
692
  {
@@ -695,7 +695,7 @@ function jt(e) {
695
695
  block: e.block,
696
696
  context: e.context
697
697
  }),
698
- actionAttributes: je({
698
+ actionAttributes: ze({
699
699
  block: e.block,
700
700
  rootState: e.context.rootState,
701
701
  rootSetState: e.context.rootSetState,
@@ -707,18 +707,18 @@ function jt(e) {
707
707
  }
708
708
  );
709
709
  }
710
- function zt(e) {
710
+ function Kt(e) {
711
711
  return P(() => {
712
712
  }, []), /* @__PURE__ */ s(R, { children: e.children });
713
713
  }
714
- function Kt(e) {
714
+ function Jt(e) {
715
715
  function t() {
716
716
  return e.includeBlockProps ? {
717
717
  ...fe({
718
718
  block: e.block,
719
719
  context: e.context
720
720
  }),
721
- ...je({
721
+ ...ze({
722
722
  block: e.block,
723
723
  rootState: e.context.rootState,
724
724
  rootSetState: e.context.rootSetState,
@@ -727,8 +727,11 @@ function Kt(e) {
727
727
  })
728
728
  } : {};
729
729
  }
730
+ function n() {
731
+ return e.wrapperProps;
732
+ }
730
733
  return /* @__PURE__ */ s(R, { children: e.Wrapper.load ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
731
- zt,
734
+ Kt,
732
735
  {
733
736
  load: e.Wrapper.load,
734
737
  fallback: e.Wrapper.fallback,
@@ -736,9 +739,9 @@ function Kt(e) {
736
739
  attributes: t(),
737
740
  children: e.children
738
741
  }
739
- ) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
742
+ ) }) : /* @__PURE__ */ s(e.Wrapper, { ...n(), attributes: t(), children: e.children }) });
740
743
  }
741
- const Jt = ({
744
+ const Gt = ({
742
745
  componentOptions: e,
743
746
  builderBlock: t,
744
747
  context: n,
@@ -768,17 +771,17 @@ const Jt = ({
768
771
  includeBlockProps: a
769
772
  } : l;
770
773
  };
771
- function xe(e) {
774
+ function Se(e) {
772
775
  var i;
773
776
  I(() => !1);
774
777
  const [t, n] = I(
775
- () => e.isInteractive ? Kt : e.componentRef
778
+ () => e.isInteractive ? Jt : e.componentRef
776
779
  );
777
780
  return P(() => {
778
781
  }, [e.componentOptions, e.blockChildren]), /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
779
782
  t,
780
783
  {
781
- ...Jt({
784
+ ...Gt({
782
785
  componentOptions: e.componentOptions,
783
786
  builderBlock: e.builderBlock,
784
787
  context: e.context,
@@ -801,9 +804,11 @@ function xe(e) {
801
804
  }
802
805
  ) }) : null });
803
806
  }
804
- function Se(e) {
807
+ function ke(e) {
805
808
  const [t, n] = I(() => e.repeatContext);
806
- return /* @__PURE__ */ s(me.Provider, { value: t, children: /* @__PURE__ */ s(
809
+ return P(() => {
810
+ n(e.repeatContext);
811
+ }, [e.repeatContext]), /* @__PURE__ */ s(me.Provider, { value: t, children: /* @__PURE__ */ s(
807
812
  ee,
808
813
  {
809
814
  block: e.block,
@@ -816,7 +821,7 @@ function Se(e) {
816
821
  function ee(e) {
817
822
  var h, g, c, v;
818
823
  function t() {
819
- return Wt({
824
+ return Dt({
820
825
  block: e.block,
821
826
  context: e.context
822
827
  });
@@ -829,7 +834,7 @@ function ee(e) {
829
834
  var b;
830
835
  if (n.value && !n.update && !X())
831
836
  return n.value;
832
- const f = (b = e.block.repeat) != null && b.collection ? e.block : wt({
837
+ const f = (b = e.block.repeat) != null && b.collection ? e.block : It({
833
838
  block: e.block,
834
839
  localState: e.context.localState,
835
840
  rootState: e.context.rootState,
@@ -839,7 +844,7 @@ function ee(e) {
839
844
  return n.value = f, n.update = !1, f;
840
845
  }
841
846
  function r() {
842
- return Nt({
847
+ return Wt({
843
848
  block: a(),
844
849
  registeredComponents: e.registeredComponents,
845
850
  model: e.context.model
@@ -866,11 +871,11 @@ function ee(e) {
866
871
  blockChildren: (f = a().children) != null ? f : [],
867
872
  componentRef: (b = r == null ? void 0 : r()) == null ? void 0 : b.component,
868
873
  componentOptions: {
869
- ...bt(a(), e.context),
870
- ...Ft(r(), a()),
871
- ...Lt(r(), e.context),
872
- ...Dt(r(), e.linkComponent),
873
- ...$t(
874
+ ...pt(a(), e.context),
875
+ ...Lt(r(), a()),
876
+ ...Ot(r(), e.context),
877
+ ...$t(r(), e.linkComponent),
878
+ ...Ft(
874
879
  r(),
875
880
  e.registeredComponents,
876
881
  e.context.model
@@ -886,7 +891,7 @@ function ee(e) {
886
891
  }
887
892
  return P(() => {
888
893
  const f = a().id, b = a().animations;
889
- b && f && Et(
894
+ b && f && Rt(
890
895
  b.map((S) => ({
891
896
  ...S,
892
897
  elementId: f
@@ -895,18 +900,18 @@ function ee(e) {
895
900
  }, []), P(() => {
896
901
  n.update = !0;
897
902
  }), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ B(R, { children: [
898
- /* @__PURE__ */ s(Ot, { block: a(), context: e.context }),
903
+ /* @__PURE__ */ s(Ut, { block: a(), context: e.context }),
899
904
  (h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((f, b) => /* @__PURE__ */ s(
900
- Se,
905
+ ke,
901
906
  {
902
907
  repeatContext: f.context,
903
908
  block: f.block,
904
909
  registeredComponents: e.registeredComponents,
905
910
  linkComponent: e.linkComponent
906
911
  },
907
- b
912
+ xe(b)
908
913
  )) }) : /* @__PURE__ */ s(
909
- xe,
914
+ Se,
910
915
  {
911
916
  componentRef: u().componentRef,
912
917
  componentOptions: u().componentOptions,
@@ -919,23 +924,23 @@ function ee(e) {
919
924
  isInteractive: u().isInteractive
920
925
  }
921
926
  ) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (c = t()) == null ? void 0 : c.map((f, b) => /* @__PURE__ */ s(
922
- Se,
927
+ ke,
923
928
  {
924
929
  repeatContext: f.context,
925
930
  block: f.block,
926
931
  registeredComponents: e.registeredComponents,
927
932
  linkComponent: e.linkComponent
928
933
  },
929
- b
934
+ xe(b)
930
935
  )) }) : /* @__PURE__ */ B(
931
- jt,
936
+ zt,
932
937
  {
933
938
  Wrapper: o(),
934
939
  block: a(),
935
940
  context: e.context,
936
941
  children: [
937
942
  /* @__PURE__ */ s(
938
- xe,
943
+ Se,
939
944
  {
940
945
  componentRef: u().componentRef,
941
946
  componentOptions: u().componentOptions,
@@ -963,7 +968,7 @@ function ee(e) {
963
968
  ) })
964
969
  ] }) : null });
965
970
  }
966
- function Gt(e) {
971
+ function Qt(e) {
967
972
  const t = L(null);
968
973
  I(() => !1);
969
974
  function n() {
@@ -1033,9 +1038,9 @@ function Gt(e) {
1033
1038
  }
1034
1039
  function $(e) {
1035
1040
  var i, a, r;
1036
- const t = ve(me), n = ve(We);
1041
+ const t = ve(me), n = ve(De);
1037
1042
  return /* @__PURE__ */ s(
1038
- Gt,
1043
+ Qt,
1039
1044
  {
1040
1045
  blocks: e.blocks,
1041
1046
  parent: e.parent,
@@ -1057,8 +1062,8 @@ function $(e) {
1057
1062
  }
1058
1063
  );
1059
1064
  }
1060
- const Qt = (e) => `builder-columns ${e}-breakpoints`;
1061
- function Yt(e) {
1065
+ const Yt = (e) => `builder-columns ${e}-breakpoints`;
1066
+ function Xt(e) {
1062
1067
  var b, S;
1063
1068
  function t() {
1064
1069
  return typeof e.space == "number" ? e.space || 0 : 20;
@@ -1134,7 +1139,7 @@ function Yt(e) {
1134
1139
  }
1135
1140
  function c(p) {
1136
1141
  var C, V;
1137
- return Me(
1142
+ return je(
1138
1143
  ((V = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : V.breakpoints) || {}
1139
1144
  )[p].max;
1140
1145
  }
@@ -1172,14 +1177,14 @@ function Yt(e) {
1172
1177
  href: p.link
1173
1178
  } : {},
1174
1179
  [j()]: "builder-column",
1175
- style: _e(g(k))
1180
+ style: qe(g(k))
1176
1181
  };
1177
1182
  }
1178
1183
  return /* @__PURE__ */ B(R, { children: [
1179
1184
  /* @__PURE__ */ B(
1180
1185
  "div",
1181
1186
  {
1182
- className: Qt((b = e.builderBlock) == null ? void 0 : b.id) + " div-0369db37",
1187
+ className: Yt((b = e.builderBlock) == null ? void 0 : b.id) + " div-0369db37",
1183
1188
  style: h(),
1184
1189
  children: [
1185
1190
  /* @__PURE__ */ s(
@@ -1223,25 +1228,25 @@ function Yt(e) {
1223
1228
  }` })
1224
1229
  ] });
1225
1230
  }
1226
- function Xt(e) {
1231
+ function Zt(e) {
1227
1232
  return /* @__PURE__ */ s("span", { children: e.children });
1228
1233
  }
1229
- function ke(e) {
1234
+ function Ce(e) {
1230
1235
  return e.replace(/http(s)?:/, "");
1231
1236
  }
1232
- function Zt(e = "", t, n) {
1237
+ function en(e = "", t, n) {
1233
1238
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), a = e.indexOf("?") !== -1 ? "&" : "?";
1234
1239
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + a + t + "=" + encodeURIComponent(n);
1235
1240
  }
1236
- function en(e, t) {
1241
+ function tn(e, t) {
1237
1242
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1238
1243
  return e;
1239
1244
  if (t === "master")
1240
- return ke(e);
1245
+ return Ce(e);
1241
1246
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1242
1247
  if (n) {
1243
1248
  const i = e.split(n[0]), a = n[3], r = t.match("x") ? t : `${t}x`;
1244
- return ke(`${i[0]}_${r}${a}`);
1249
+ return Ce(`${i[0]}_${r}${a}`);
1245
1250
  }
1246
1251
  return null;
1247
1252
  }
@@ -1252,11 +1257,11 @@ function ie(e) {
1252
1257
  if (e.match(/builder\.io/)) {
1253
1258
  let n = e;
1254
1259
  const i = Number(e.split("?width=")[1]);
1255
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${Zt(e, "width", a)} ${a}w`).concat([n]).join(", ");
1260
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${en(e, "width", a)} ${a}w`).concat([n]).join(", ");
1256
1261
  }
1257
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [en(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1262
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [tn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1258
1263
  }
1259
- function tn(e) {
1264
+ function nn(e) {
1260
1265
  var a, r, o, l, d, u;
1261
1266
  function t() {
1262
1267
  var c;
@@ -1288,7 +1293,8 @@ function tn(e) {
1288
1293
  };
1289
1294
  return e.aspectRatio ? h : void 0;
1290
1295
  }
1291
- return /* @__PURE__ */ B(R, { children: [
1296
+ return P(() => {
1297
+ }, []), /* @__PURE__ */ B(R, { children: [
1292
1298
  /* @__PURE__ */ B(R, { children: [
1293
1299
  /* @__PURE__ */ B("picture", { children: [
1294
1300
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
@@ -1305,7 +1311,7 @@ function tn(e) {
1305
1311
  objectFit: e.backgroundSize || "cover",
1306
1312
  ...i()
1307
1313
  },
1308
- className: "builder-image" + (e.className ? " " + e.className : "") + " img-1aa8aba3",
1314
+ className: "builder-image" + (e.className ? " " + e.className : "") + " img-3cc22d08",
1309
1315
  src: e.image,
1310
1316
  srcSet: t(),
1311
1317
  sizes: e.sizes
@@ -1315,23 +1321,23 @@ function tn(e) {
1315
1321
  e.aspectRatio && !((r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
1316
1322
  "div",
1317
1323
  {
1318
- className: "builder-image-sizer div-1aa8aba3",
1324
+ className: "builder-image-sizer div-3cc22d08",
1319
1325
  style: {
1320
1326
  paddingTop: e.aspectRatio * 100 + "%"
1321
1327
  }
1322
1328
  }
1323
1329
  ) : null,
1324
1330
  (l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
1325
- !e.fitContent && ((u = (d = e.builderBlock) == null ? void 0 : d.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-1aa8aba3-2", children: e.children }) : null
1331
+ !e.fitContent && ((u = (d = e.builderBlock) == null ? void 0 : d.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-3cc22d08-2", children: e.children }) : null
1326
1332
  ] }),
1327
- /* @__PURE__ */ s("style", { children: `.img-1aa8aba3 {
1333
+ /* @__PURE__ */ s("style", { children: `.img-3cc22d08 {
1328
1334
  opacity: 1;
1329
1335
  transition: opacity 0.2s ease-in-out;
1330
- }.div-1aa8aba3 {
1336
+ }.div-3cc22d08 {
1331
1337
  width: 100%;
1332
1338
  pointer-events: none;
1333
1339
  font-size: 0;
1334
- }.div-1aa8aba3-2 {
1340
+ }.div-3cc22d08-2 {
1335
1341
  display: flex;
1336
1342
  flex-direction: column;
1337
1343
  align-items: stretch;
@@ -1343,7 +1349,7 @@ function tn(e) {
1343
1349
  }` })
1344
1350
  ] });
1345
1351
  }
1346
- function nn(e) {
1352
+ function an(e) {
1347
1353
  return /* @__PURE__ */ s(
1348
1354
  "section",
1349
1355
  {
@@ -1424,7 +1430,7 @@ const ae = {
1424
1430
  }
1425
1431
  }
1426
1432
  }]
1427
- }, an = {
1433
+ }, on = {
1428
1434
  name: "Builder:Accordion",
1429
1435
  canHaveChildren: !0,
1430
1436
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1488,8 +1494,8 @@ const ae = {
1488
1494
  builderComponents: !0,
1489
1495
  builderLinkComponent: !0
1490
1496
  }
1491
- }, Ce = (e) => e.toString();
1492
- function on(e) {
1497
+ }, Te = (e) => e.toString();
1498
+ function rn(e) {
1493
1499
  var g;
1494
1500
  const [t, n] = I(() => []);
1495
1501
  function i() {
@@ -1567,7 +1573,7 @@ function on(e) {
1567
1573
  function h(c) {
1568
1574
  t.includes(c) ? n(i() ? [] : t.filter((v) => v !== c)) : n(i() ? [c] : t.concat(c));
1569
1575
  }
1570
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (g = e.items) == null ? void 0 : g.map((c, v) => /* @__PURE__ */ B(tt.Fragment, { children: [
1576
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (g = e.items) == null ? void 0 : g.map((c, v) => /* @__PURE__ */ B(nt.Fragment, { children: [
1571
1577
  /* @__PURE__ */ s(
1572
1578
  "div",
1573
1579
  {
@@ -1576,7 +1582,7 @@ function on(e) {
1576
1582
  ...r(),
1577
1583
  ...e.grid && {
1578
1584
  width: e.gridRowWidth,
1579
- order: d() !== null ? Ce(v) : Ce(v + 1)
1585
+ order: d() !== null ? Te(v) : Te(v + 1)
1580
1586
  }
1581
1587
  },
1582
1588
  "data-index": v,
@@ -1614,7 +1620,7 @@ function on(e) {
1614
1620
  ) : null
1615
1621
  ] }, v)) });
1616
1622
  }
1617
- const rn = {
1623
+ const ln = {
1618
1624
  name: "Core:Button",
1619
1625
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1620
1626
  defaultStyles: {
@@ -1650,7 +1656,7 @@ const rn = {
1650
1656
  shouldReceiveBuilderProps: {
1651
1657
  builderLinkComponent: !0
1652
1658
  }
1653
- }, ln = {
1659
+ }, sn = {
1654
1660
  // TODO: ways to statically preprocess JSON for references, functions, etc
1655
1661
  name: "Columns",
1656
1662
  isRSC: !0,
@@ -1857,13 +1863,13 @@ const rn = {
1857
1863
  builderComponents: !0,
1858
1864
  builderLinkComponent: !0
1859
1865
  }
1860
- }, sn = {
1866
+ }, cn = {
1861
1867
  name: "Fragment",
1862
1868
  static: !0,
1863
1869
  hidden: !0,
1864
1870
  canHaveChildren: !0,
1865
1871
  noWrap: !0
1866
- }, he = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], cn = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], un = {
1872
+ }, he = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], un = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], dn = {
1867
1873
  name: "Image",
1868
1874
  static: !0,
1869
1875
  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",
@@ -1975,7 +1981,7 @@ const rn = {
1975
1981
  shouldReceiveBuilderProps: {
1976
1982
  builderBlock: !0
1977
1983
  }
1978
- }, dn = {
1984
+ }, mn = {
1979
1985
  name: "PersonalizationContainer",
1980
1986
  shouldReceiveBuilderProps: {
1981
1987
  builderBlock: !0,
@@ -2021,7 +2027,7 @@ function Y(e) {
2021
2027
  }
2022
2028
  );
2023
2029
  }
2024
- function mn(e, t, n, i) {
2030
+ function fn(e, t, n, i) {
2025
2031
  function a(u) {
2026
2032
  return typeof u == "string";
2027
2033
  }
@@ -2078,7 +2084,7 @@ function mn(e, t, n, i) {
2078
2084
  }, d = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
2079
2085
  return l.startDate && new Date(l.startDate) > d || l.endDate && new Date(l.endDate) < d ? !1 : !l.query || !l.query.length ? !0 : l.query.every((u) => o(e, u));
2080
2086
  }
2081
- const fn = `function getPersonalizedVariant(variants, blockId, locale) {
2087
+ const hn = `function getPersonalizedVariant(variants, blockId, locale) {
2082
2088
  if (!navigator.cookieEnabled) {
2083
2089
  return;
2084
2090
  }
@@ -2131,7 +2137,7 @@ const fn = `function getPersonalizedVariant(variants, blockId, locale) {
2131
2137
  } else if (variants && variants.length > 0) {
2132
2138
  removeVariants();
2133
2139
  }
2134
- }`, hn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
2140
+ }`, gn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
2135
2141
  function isString(val) {
2136
2142
  return typeof val === 'string';
2137
2143
  }
@@ -2210,10 +2216,10 @@ const fn = `function getPersonalizedVariant(variants, blockId, locale) {
2210
2216
  return objectMatchesQuery(userAttributes, filter);
2211
2217
  });
2212
2218
  }`;
2213
- function gn(e, t) {
2219
+ function bn(e, t) {
2214
2220
  return !(!(e && e.length > 0) || !t || U());
2215
2221
  }
2216
- function bn({
2222
+ function pn({
2217
2223
  variants: e,
2218
2224
  previewingIndex: t,
2219
2225
  isHydrated: n,
@@ -2240,21 +2246,21 @@ function bn({
2240
2246
  }
2241
2247
  return r;
2242
2248
  }
2243
- const pn = (e, t, n) => `
2249
+ const yn = (e, t, n) => `
2244
2250
  (function() {
2251
+ ${gn}
2245
2252
  ${hn}
2246
- ${fn}
2247
2253
  getPersonalizedVariant(${JSON.stringify(e)}, "${t}"${n ? `, "${n}"` : ""})
2248
2254
  })();
2249
2255
  `;
2250
- function yn(e) {
2256
+ function vn(e) {
2251
2257
  var b, S, p, k, C, V, w;
2252
2258
  const t = L(null), [n, i] = I(
2253
2259
  () => be.getUserAttributes()
2254
2260
  ), [a, r] = I(
2255
2261
  () => {
2256
2262
  var x, m, y;
2257
- return pn(
2263
+ return yn(
2258
2264
  e.variants,
2259
2265
  ((x = e.builderBlock) == null ? void 0 : x.id) || "none",
2260
2266
  (y = (m = e.builderContext) == null ? void 0 : m.rootState) == null ? void 0 : y.locale
@@ -2263,7 +2269,7 @@ function yn(e) {
2263
2269
  ), [o, l] = I(() => []), [d, u] = I(
2264
2270
  () => {
2265
2271
  var x;
2266
- return gn(
2272
+ return bn(
2267
2273
  e.variants,
2268
2274
  M((x = e.builderContext) == null ? void 0 : x.canTrack)
2269
2275
  );
@@ -2272,7 +2278,7 @@ function yn(e) {
2272
2278
  function c() {
2273
2279
  return (e.variants || []).filter((x) => {
2274
2280
  var m, y, T, E;
2275
- return mn(
2281
+ return fn(
2276
2282
  {
2277
2283
  ...(y = (m = e.builderContext) == null ? void 0 : m.rootState) != null && y.locale ? {
2278
2284
  locale: (E = (T = e.builderContext) == null ? void 0 : T.rootState) == null ? void 0 : E.locale
@@ -2287,7 +2293,7 @@ function yn(e) {
2287
2293
  }
2288
2294
  function v() {
2289
2295
  var x;
2290
- return bn({
2296
+ return pn({
2291
2297
  variants: e.variants,
2292
2298
  fallbackBlocks: (x = e.builderBlock) == null ? void 0 : x.children,
2293
2299
  isHydrated: h,
@@ -2394,7 +2400,7 @@ function yn(e) {
2394
2400
  }
2395
2401
  );
2396
2402
  }
2397
- const vn = {
2403
+ const xn = {
2398
2404
  name: "Core:Section",
2399
2405
  static: !0,
2400
2406
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -2433,7 +2439,7 @@ const vn = {
2433
2439
  }
2434
2440
  }
2435
2441
  }]
2436
- }, xn = {
2442
+ }, Sn = {
2437
2443
  name: "Slot",
2438
2444
  isRSC: !0,
2439
2445
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -2451,7 +2457,7 @@ const vn = {
2451
2457
  builderComponents: !0
2452
2458
  }
2453
2459
  };
2454
- function Sn(e) {
2460
+ function kn(e) {
2455
2461
  var t, n, i;
2456
2462
  return /* @__PURE__ */ s(
2457
2463
  "div",
@@ -2475,7 +2481,7 @@ function Sn(e) {
2475
2481
  }
2476
2482
  );
2477
2483
  }
2478
- const kn = {
2484
+ const Cn = {
2479
2485
  name: "Symbol",
2480
2486
  noWrap: !0,
2481
2487
  static: !0,
@@ -2552,7 +2558,7 @@ const kn = {
2552
2558
  text: "New tab content "
2553
2559
  }
2554
2560
  }
2555
- }, Cn = {
2561
+ }, Tn = {
2556
2562
  name: "Builder: Tabs",
2557
2563
  inputs: [{
2558
2564
  name: "tabs",
@@ -2656,7 +2662,7 @@ const kn = {
2656
2662
  builderLinkComponent: !0
2657
2663
  }
2658
2664
  };
2659
- function Tn(e) {
2665
+ function wn(e) {
2660
2666
  var r;
2661
2667
  const [t, n] = I(
2662
2668
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
@@ -2715,11 +2721,8 @@ function Tn(e) {
2715
2721
  ) }) : null
2716
2722
  ] });
2717
2723
  }
2718
- const wn = {
2719
- shouldReceiveBuilderProps: {
2720
- builderBlock: !1,
2721
- builderContext: !0
2722
- },
2724
+ const In = {
2725
+ shouldReceiveBuilderProps: {},
2723
2726
  name: "Text",
2724
2727
  static: !0,
2725
2728
  isRSC: !0,
@@ -2738,7 +2741,7 @@ const wn = {
2738
2741
  textAlign: "center"
2739
2742
  }
2740
2743
  };
2741
- function In(e) {
2744
+ function En(e) {
2742
2745
  var t;
2743
2746
  return /* @__PURE__ */ s(
2744
2747
  "div",
@@ -2751,7 +2754,7 @@ function In(e) {
2751
2754
  }
2752
2755
  );
2753
2756
  }
2754
- const En = {
2757
+ const Rn = {
2755
2758
  name: "Custom Code",
2756
2759
  static: !0,
2757
2760
  requiredPermissions: ["editCode"],
@@ -2774,7 +2777,7 @@ const En = {
2774
2777
  advanced: !0
2775
2778
  }]
2776
2779
  };
2777
- function Rn(e) {
2780
+ function Vn(e) {
2778
2781
  const t = L(null), [n, i] = I(() => []), [a, r] = I(() => []);
2779
2782
  function o() {
2780
2783
  var d;
@@ -2820,7 +2823,7 @@ function Rn(e) {
2820
2823
  }
2821
2824
  );
2822
2825
  }
2823
- const Vn = {
2826
+ const Pn = {
2824
2827
  name: "Embed",
2825
2828
  static: !0,
2826
2829
  inputs: [{
@@ -2835,8 +2838,8 @@ const Vn = {
2835
2838
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2836
2839
  hideFromUI: !0
2837
2840
  }]
2838
- }, Pn = ["text/javascript", "application/javascript", "application/ecmascript"], Bn = (e) => Pn.includes(e.type);
2839
- function An(e) {
2841
+ }, Bn = ["text/javascript", "application/javascript", "application/ecmascript"], An = (e) => Bn.includes(e.type);
2842
+ function Nn(e) {
2840
2843
  const t = L(null), [n, i] = I(() => []), [a, r] = I(() => []), [o, l] = I(() => !1);
2841
2844
  function d() {
2842
2845
  if (!t.current || !t.current.getElementsByTagName)
@@ -2848,7 +2851,7 @@ function An(e) {
2848
2851
  n.push(g.src);
2849
2852
  const c = document.createElement("script");
2850
2853
  c.async = !0, c.src = g.src, document.head.appendChild(c);
2851
- } else if (Bn(g) && !a.includes(g.innerText))
2854
+ } else if (An(g) && !a.includes(g.innerText))
2852
2855
  try {
2853
2856
  a.push(g.innerText), new Function(g.innerText)();
2854
2857
  } catch (c) {
@@ -2867,7 +2870,7 @@ function An(e) {
2867
2870
  }
2868
2871
  );
2869
2872
  }
2870
- const Nn = {
2873
+ const Wn = {
2871
2874
  name: "Form:Form",
2872
2875
  // editableTags: ['builder-form-error']
2873
2876
  defaults: {
@@ -3104,11 +3107,11 @@ const Nn = {
3104
3107
  builderComponents: !0,
3105
3108
  builderLinkComponent: !0
3106
3109
  }
3107
- }, Wn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Dn = () => {
3110
+ }, Dn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], $n = () => {
3108
3111
  const e = process.env.NODE_ENV || "production";
3109
- return Wn.includes(e) ? e : "production";
3112
+ return Dn.includes(e) ? e : "production";
3110
3113
  };
3111
- function $n(e) {
3114
+ function Fn(e) {
3112
3115
  const t = L(null), [n, i] = I(() => "unsubmitted"), [a, r] = I(() => null), [o, l] = I(() => "");
3113
3116
  function d(g) {
3114
3117
  var v, f;
@@ -3166,7 +3169,7 @@ function $n(e) {
3166
3169
  else {
3167
3170
  const m = {};
3168
3171
  Array.from(k).forEach(({ value: y, key: T }) => {
3169
- Ne(m, T, y);
3172
+ We(m, T, y);
3170
3173
  }), S = JSON.stringify(m);
3171
3174
  }
3172
3175
  C && C !== "multipart/form-data" && (c && ((v = e.action) != null && v.includes("zapier.com")) || (b["content-type"] = C));
@@ -3174,15 +3177,15 @@ function $n(e) {
3174
3177
  if (t.current && (t.current.dispatchEvent(V), V.defaultPrevented))
3175
3178
  return;
3176
3179
  i("sending");
3177
- const w = `${Dn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3180
+ const w = `${$n() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3178
3181
  e.sendSubmissionsToEmail || ""
3179
3182
  )}&name=${encodeURIComponent(e.name || "")}`, x = e.sendSubmissionsTo === "email" ? w : e.action;
3180
- Ve(x), fetch(x, { body: S, headers: b, method: e.method || "post" }).then(
3183
+ Pe(x), fetch(x, { body: S, headers: b, method: e.method || "post" }).then(
3181
3184
  async (m) => {
3182
3185
  let y;
3183
3186
  const T = m.headers.get("content-type");
3184
3187
  if (T && T.indexOf("application/json") !== -1 ? y = await m.json() : y = await m.text(), !m.ok && e.errorMessagePath) {
3185
- let E = De(y, e.errorMessagePath);
3188
+ let E = $e(y, e.errorMessagePath);
3186
3189
  E && (typeof E != "string" && (E = JSON.stringify(E)), l(E), d({ formErrorMessage: E }));
3187
3190
  }
3188
3191
  if (r(y), i(m.ok ? "success" : "error"), m.ok) {
@@ -3260,7 +3263,7 @@ function $n(e) {
3260
3263
  " "
3261
3264
  ] });
3262
3265
  }
3263
- const Fn = {
3266
+ const Ln = {
3264
3267
  name: "Form:Input",
3265
3268
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
3266
3269
  inputs: [
@@ -3312,8 +3315,8 @@ const Fn = {
3312
3315
  borderColor: "#ccc"
3313
3316
  }
3314
3317
  };
3315
- function Ln(e) {
3316
- return /* @__PURE__ */ Ae(
3318
+ function On(e) {
3319
+ return /* @__PURE__ */ Ne(
3317
3320
  "input",
3318
3321
  {
3319
3322
  ...e.attributes,
@@ -3327,7 +3330,7 @@ function Ln(e) {
3327
3330
  }
3328
3331
  );
3329
3332
  }
3330
- const On = {
3333
+ const Un = {
3331
3334
  name: "Form:Select",
3332
3335
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
3333
3336
  defaultStyles: {
@@ -3370,9 +3373,9 @@ const On = {
3370
3373
  static: !0,
3371
3374
  noWrap: !0
3372
3375
  };
3373
- function Un(e) {
3376
+ function _n(e) {
3374
3377
  var t;
3375
- return /* @__PURE__ */ Ae(
3378
+ return /* @__PURE__ */ Ne(
3376
3379
  "select",
3377
3380
  {
3378
3381
  ...e.attributes,
@@ -3385,7 +3388,7 @@ function Un(e) {
3385
3388
  (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
3386
3389
  );
3387
3390
  }
3388
- const _n = {
3391
+ const qn = {
3389
3392
  name: "Form:SubmitButton",
3390
3393
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
3391
3394
  defaultStyles: {
@@ -3411,10 +3414,10 @@ const _n = {
3411
3414
  // TODO: defaultChildren
3412
3415
  // canHaveChildren: true,
3413
3416
  };
3414
- function qn(e) {
3417
+ function Hn(e) {
3415
3418
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
3416
3419
  }
3417
- const Hn = {
3420
+ const Mn = {
3418
3421
  name: "Form:TextArea",
3419
3422
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
3420
3423
  inputs: [{
@@ -3451,7 +3454,7 @@ const Hn = {
3451
3454
  static: !0,
3452
3455
  noWrap: !0
3453
3456
  };
3454
- function Mn(e) {
3457
+ function jn(e) {
3455
3458
  return /* @__PURE__ */ s(
3456
3459
  "textarea",
3457
3460
  {
@@ -3464,7 +3467,7 @@ function Mn(e) {
3464
3467
  }
3465
3468
  );
3466
3469
  }
3467
- const jn = {
3470
+ const zn = {
3468
3471
  // friendlyName?
3469
3472
  name: "Raw:Img",
3470
3473
  hideFromInsertMenu: !0,
@@ -3479,7 +3482,7 @@ const jn = {
3479
3482
  noWrap: !0,
3480
3483
  static: !0
3481
3484
  };
3482
- function zn(e) {
3485
+ function Kn(e) {
3483
3486
  return /* @__PURE__ */ s(
3484
3487
  "img",
3485
3488
  {
@@ -3494,7 +3497,7 @@ function zn(e) {
3494
3497
  N() && e.imgSrc || "default-key"
3495
3498
  );
3496
3499
  }
3497
- const Kn = {
3500
+ const Jn = {
3498
3501
  name: "Video",
3499
3502
  canHaveChildren: !0,
3500
3503
  defaultStyles: {
@@ -3505,7 +3508,7 @@ const Kn = {
3505
3508
  inputs: [{
3506
3509
  name: "video",
3507
3510
  type: "file",
3508
- allowedFileTypes: cn,
3511
+ allowedFileTypes: un,
3509
3512
  bubble: !0,
3510
3513
  defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
3511
3514
  required: !0
@@ -3579,7 +3582,7 @@ const Kn = {
3579
3582
  builderBlock: !0
3580
3583
  }
3581
3584
  };
3582
- function Jn(e) {
3585
+ function Gn(e) {
3583
3586
  var o, l, d, u, h, g, c;
3584
3587
  const t = L(null);
3585
3588
  function n() {
@@ -3715,67 +3718,67 @@ function Jn(e) {
3715
3718
  }
3716
3719
  );
3717
3720
  }
3718
- const Gn = () => [{
3719
- component: Rn,
3720
- ...En
3721
- }, {
3722
- component: An,
3723
- ...Vn
3721
+ const Qn = () => [{
3722
+ component: Vn,
3723
+ ...Rn
3724
3724
  }, {
3725
- component: $n,
3726
- ...Nn
3725
+ component: Nn,
3726
+ ...Pn
3727
3727
  }, {
3728
- component: Ln,
3729
- ...Fn
3728
+ component: Fn,
3729
+ ...Wn
3730
3730
  }, {
3731
- component: qn,
3732
- ..._n
3731
+ component: On,
3732
+ ...Ln
3733
3733
  }, {
3734
- component: Un,
3735
- ...On
3734
+ component: Hn,
3735
+ ...qn
3736
3736
  }, {
3737
- component: Mn,
3738
- ...Hn
3737
+ component: _n,
3738
+ ...Un
3739
3739
  }, {
3740
- component: zn,
3741
- ...jn
3740
+ component: jn,
3741
+ ...Mn
3742
3742
  }, {
3743
- component: Jn,
3744
- ...Kn
3745
- }], Te = () => [{
3746
- component: ut,
3747
- ...rn
3743
+ component: Kn,
3744
+ ...zn
3748
3745
  }, {
3749
- component: Yt,
3746
+ component: Gn,
3747
+ ...Jn
3748
+ }], we = () => [{
3749
+ component: dt,
3750
3750
  ...ln
3751
3751
  }, {
3752
3752
  component: Xt,
3753
3753
  ...sn
3754
3754
  }, {
3755
- component: tn,
3756
- ...un
3755
+ component: Zt,
3756
+ ...cn
3757
3757
  }, {
3758
3758
  component: nn,
3759
- ...vn
3759
+ ...dn
3760
3760
  }, {
3761
- component: Sn,
3761
+ component: an,
3762
3762
  ...xn
3763
3763
  }, {
3764
- component: xi,
3765
- ...kn
3764
+ component: kn,
3765
+ ...Sn
3766
3766
  }, {
3767
- component: In,
3768
- ...wn
3767
+ component: Si,
3768
+ ...Cn
3769
3769
  }, {
3770
- component: yn,
3771
- ...dn
3770
+ component: En,
3771
+ ...In
3772
3772
  }, {
3773
- component: Tn,
3774
- ...Cn
3773
+ component: vn,
3774
+ ...mn
3775
+ }, {
3776
+ component: wn,
3777
+ ...Tn
3775
3778
  }, {
3776
- component: on,
3777
- ...an
3778
- }, ...Gn()], Qn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
3779
+ component: rn,
3780
+ ...on
3781
+ }, ...Qn()], Yn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
3779
3782
  function getAndSetVariantId() {
3780
3783
  function setCookie(name, value, days) {
3781
3784
  let expires = '';
@@ -3834,7 +3837,7 @@ const Gn = () => [{
3834
3837
  }).join('');
3835
3838
  styleEl.innerHTML = newStyleStr;
3836
3839
  }
3837
- }`, Yn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3840
+ }`, Xn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3838
3841
  if (!navigator.cookieEnabled) {
3839
3842
  return;
3840
3843
  }
@@ -3868,29 +3871,29 @@ const Gn = () => [{
3868
3871
  thisScriptEl?.remove();
3869
3872
  }
3870
3873
  return;
3871
- }`, ze = "builderIoAbTest", Ke = "builderIoRenderContent", G = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3874
+ }`, Ke = "builderIoAbTest", Je = "builderIoRenderContent", G = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3872
3875
  ...t,
3873
3876
  testVariationId: t.id,
3874
3877
  id: e == null ? void 0 : e.id
3875
- })), Xn = ({
3878
+ })), Zn = ({
3876
3879
  canTrack: e,
3877
3880
  content: t
3878
- }) => !(!(G(t).length > 0) || !e || U()), Zn = (e) => e === "react" || e === "reactNative", ei = O === "angular", Je = Zn(O), ti = () => `
3879
- window.${ze} = ${Qn}
3881
+ }) => !(!(G(t).length > 0) || !e || U()), ei = (e) => e === "react" || e === "reactNative", ti = O === "angular", Ge = ei(O), ni = () => `
3880
3882
  window.${Ke} = ${Yn}
3881
- `, ni = (e, t) => `
3882
- window.${ze}(
3883
- "${t}",${JSON.stringify(e)}, ${Je}, ${ei}
3884
- )`, ii = ({
3883
+ window.${Je} = ${Xn}
3884
+ `, ii = (e, t) => `
3885
+ window.${Ke}(
3886
+ "${t}",${JSON.stringify(e)}, ${Ge}, ${ti}
3887
+ )`, ai = ({
3885
3888
  contentId: e,
3886
3889
  variationId: t
3887
- }) => `window.${Ke}(
3888
- "${t}", "${e}", ${Je}
3890
+ }) => `window.${Je}(
3891
+ "${t}", "${e}", ${Ge}
3889
3892
  )`;
3890
- function we(e) {
3893
+ function Ie(e) {
3891
3894
  return Math.round(e * 1e3) / 1e3;
3892
3895
  }
3893
- const ai = (e, t, n = !0) => {
3896
+ const oi = (e, t, n = !0) => {
3894
3897
  if (!(e instanceof HTMLElement))
3895
3898
  return null;
3896
3899
  let i = n ? e : e.parentElement;
@@ -3901,35 +3904,35 @@ const ai = (e, t, n = !0) => {
3901
3904
  return i;
3902
3905
  } while (i = i.parentElement);
3903
3906
  return null;
3904
- }, oi = (e) => ai(e, (t) => {
3907
+ }, ri = (e) => oi(e, (t) => {
3905
3908
  const n = t.getAttribute("builder-id") || t.id;
3906
3909
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3907
- }), Ie = ({
3910
+ }), Ee = ({
3908
3911
  event: e,
3909
3912
  target: t
3910
3913
  }) => {
3911
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, r = we(i / n.width), o = we(a / n.height);
3914
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, r = Ie(i / n.width), o = Ie(a / n.height);
3912
3915
  return {
3913
3916
  x: r,
3914
3917
  y: o
3915
3918
  };
3916
- }, ri = (e) => {
3917
- const t = e.target, n = t && oi(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3919
+ }, li = (e) => {
3920
+ const t = e.target, n = t && ri(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3918
3921
  return {
3919
3922
  targetBuilderElement: i || void 0,
3920
3923
  metadata: {
3921
- targetOffset: t ? Ie({
3924
+ targetOffset: t ? Ee({
3922
3925
  event: e,
3923
3926
  target: t
3924
3927
  }) : void 0,
3925
- builderTargetOffset: n ? Ie({
3928
+ builderTargetOffset: n ? Ee({
3926
3929
  event: e,
3927
3930
  target: n
3928
3931
  }) : void 0,
3929
3932
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3930
3933
  }
3931
3934
  };
3932
- }, li = ["svelte", "qwik", "vue"], Ee = () => li.includes(O) && (N() || X()), si = (e) => {
3935
+ }, si = ["svelte", "qwik", "vue"], Re = () => si.includes(O) && (N() || X()), ci = (e) => {
3933
3936
  var r, o;
3934
3937
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (o = e.fileUrl) != null ? o : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
3935
3938
  let a = "";
@@ -3955,15 +3958,15 @@ font-weight: ${l};
3955
3958
  `.trim());
3956
3959
  }
3957
3960
  return a;
3958
- }, ci = ({
3961
+ }, ui = ({
3959
3962
  customFonts: e
3960
3963
  }) => {
3961
3964
  var t;
3962
- return ((t = e == null ? void 0 : e.map((n) => si(n))) == null ? void 0 : t.join(" ")) || "";
3963
- }, ui = ({
3965
+ return ((t = e == null ? void 0 : e.map((n) => ci(n))) == null ? void 0 : t.join(" ")) || "";
3966
+ }, di = ({
3964
3967
  cssCode: e,
3965
3968
  contentId: t
3966
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", di = `
3969
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", mi = `
3967
3970
  .builder-button {
3968
3971
  all: unset;
3969
3972
  }
@@ -3980,8 +3983,8 @@ font-weight: ${l};
3980
3983
  text-align: inherit;
3981
3984
  font-family: inherit;
3982
3985
  }
3983
- `, mi = (e) => e ? "" : di, fi = (e) => `variant-${e}`;
3984
- function hi(e) {
3986
+ `, fi = (e) => e ? "" : mi, hi = (e) => `variant-${e}`;
3987
+ function gi(e) {
3985
3988
  var k, C, V;
3986
3989
  const t = L(null);
3987
3990
  I(() => !1);
@@ -4026,7 +4029,7 @@ function hi(e) {
4026
4029
  () => e.contentWrapper || "div"
4027
4030
  );
4028
4031
  function l(w) {
4029
- return Ze({
4032
+ return et({
4030
4033
  model: e.model,
4031
4034
  trustedHosts: e.trustedHosts,
4032
4035
  callbacks: {
@@ -4040,7 +4043,7 @@ function hi(e) {
4040
4043
  });
4041
4044
  },
4042
4045
  animation: (x) => {
4043
- Oe(x);
4046
+ Ue(x);
4044
4047
  },
4045
4048
  contentUpdate: (x) => {
4046
4049
  i(x);
@@ -4063,7 +4066,7 @@ function hi(e) {
4063
4066
  contentId: T,
4064
4067
  apiKey: e.apiKey,
4065
4068
  variationId: y !== T ? y : void 0,
4066
- ...ri(w),
4069
+ ...li(w),
4067
4070
  unique: !c
4068
4071
  });
4069
4072
  }
@@ -4088,7 +4091,7 @@ function hi(e) {
4088
4091
  })
4089
4092
  )
4090
4093
  );
4091
- Ve(A), fetch(A).then((W) => W.json()).then((W) => {
4094
+ Pe(A), fetch(A).then((W) => W.json()).then((W) => {
4092
4095
  n({
4093
4096
  [T]: W
4094
4097
  }), d[T] = !0;
@@ -4118,7 +4121,7 @@ function hi(e) {
4118
4121
  return p.current || (b(), S(), p.current = !0), P(() => {
4119
4122
  var w, x, m, y, T;
4120
4123
  if (U()) {
4121
- N() && !e.isNestedRender && (window.addEventListener("message", l), Ge(), Qe({
4124
+ N() && !e.isNestedRender && (window.addEventListener("message", l), Qe(), Ye({
4122
4125
  ...e.locale ? {
4123
4126
  locale: e.locale
4124
4127
  } : {},
@@ -4135,14 +4138,14 @@ function hi(e) {
4135
4138
  ).forEach((D) => {
4136
4139
  var F, J;
4137
4140
  if (!((F = D.models) != null && F.length) || D.models.includes(e.model)) {
4138
- const te = Ye(D);
4141
+ const te = Xe(D);
4139
4142
  (J = window.parent) == null || J.postMessage(te, "*");
4140
4143
  }
4141
4144
  }), window.addEventListener(
4142
4145
  "builder:component:stateChangeListenerActivated",
4143
4146
  S
4144
4147
  ));
4145
- const E = e.builderContextSignal.content && M(e.canTrack), A = Xe({
4148
+ const E = e.builderContextSignal.content && M(e.canTrack), A = Ze({
4146
4149
  name: `builder.tests.${(x = e.builderContextSignal.content) == null ? void 0 : x.id}`,
4147
4150
  canTrack: !0
4148
4151
  }), W = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId;
@@ -4161,7 +4164,7 @@ function hi(e) {
4161
4164
  const D = new URL(location.href).searchParams, F = D.get("builder.preview"), J = D.get(
4162
4165
  `builder.overrides.${F}`
4163
4166
  ), te = D.get("apiKey") || D.get("builder.space");
4164
- (F === "BUILDER_STUDIO" || F === e.model && te === e.apiKey && (!e.content || J === e.content.id)) && Pe({
4167
+ (F === "BUILDER_STUDIO" || F === e.model && te === e.apiKey && (!e.content || J === e.content.id)) && Be({
4165
4168
  model: e.model,
4166
4169
  apiKey: e.apiKey,
4167
4170
  apiVersion: e.builderContextSignal.apiVersion,
@@ -4190,18 +4193,18 @@ function hi(e) {
4190
4193
  "builder:component:stateChangeListenerActivated",
4191
4194
  S
4192
4195
  ));
4193
- }, []), /* @__PURE__ */ s(me.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Ee() ? /* @__PURE__ */ s(
4196
+ }, []), /* @__PURE__ */ s(me.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Re() ? /* @__PURE__ */ s(
4194
4197
  r,
4195
4198
  {
4196
4199
  ref: t,
4197
4200
  onClick: (w) => f(w),
4198
4201
  "builder-content-id": (k = e.builderContextSignal.content) == null ? void 0 : k.id,
4199
4202
  "builder-model": e.model,
4200
- className: fi(
4203
+ className: hi(
4201
4204
  ((C = e.content) == null ? void 0 : C.testVariationId) || ((V = e.content) == null ? void 0 : V.id)
4202
4205
  ),
4203
4206
  style: {
4204
- display: !e.builderContextSignal.content && Ee() ? "none" : void 0
4207
+ display: !e.builderContextSignal.content && Re() ? "none" : void 0
4205
4208
  },
4206
4209
  ...a(),
4207
4210
  ...e.contentWrapperProps,
@@ -4209,17 +4212,17 @@ function hi(e) {
4209
4212
  }
4210
4213
  ) : null });
4211
4214
  }
4212
- function gi(e) {
4215
+ function bi(e) {
4213
4216
  const [t, n] = I(
4214
4217
  () => `
4215
- ${ui({
4218
+ ${di({
4216
4219
  cssCode: e.cssCode,
4217
4220
  contentId: e.contentId
4218
4221
  })}
4219
- ${ci({
4222
+ ${ui({
4220
4223
  customFonts: e.customFonts
4221
4224
  })}
4222
- ${mi(e.isNestedRender)}
4225
+ ${fi(e.isNestedRender)}
4223
4226
  `.trim()
4224
4227
  );
4225
4228
  return /* @__PURE__ */ s(
@@ -4231,7 +4234,7 @@ ${mi(e.isNestedRender)}
4231
4234
  }
4232
4235
  );
4233
4236
  }
4234
- const bi = ({
4237
+ const pi = ({
4235
4238
  content: e,
4236
4239
  data: t,
4237
4240
  locale: n
@@ -4248,7 +4251,7 @@ const bi = ({
4248
4251
  locale: n
4249
4252
  } : {}
4250
4253
  };
4251
- }, pi = ({
4254
+ }, yi = ({
4252
4255
  content: e,
4253
4256
  data: t
4254
4257
  }) => e ? {
@@ -4259,12 +4262,12 @@ const bi = ({
4259
4262
  },
4260
4263
  meta: e == null ? void 0 : e.meta
4261
4264
  } : void 0;
4262
- function Re(e) {
4265
+ function Ve(e) {
4263
4266
  var u, h, g, c, v, f, b, S, p;
4264
4267
  const [t, n] = I(
4265
4268
  () => {
4266
4269
  var k, C;
4267
- return ii({
4270
+ return ai({
4268
4271
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4269
4272
  variationId: (k = e.content) == null ? void 0 : k.testVariationId,
4270
4273
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -4280,7 +4283,7 @@ function Re(e) {
4280
4283
  }
4281
4284
  const [a, r] = I(
4282
4285
  () => [
4283
- ...Te(),
4286
+ ...we(),
4284
4287
  ...e.customComponents || []
4285
4288
  ].reduce(
4286
4289
  (k, { component: C, ...V }) => ({
@@ -4293,12 +4296,12 @@ function Re(e) {
4293
4296
  {}
4294
4297
  )
4295
4298
  ), [o, l] = I(() => ({
4296
- content: pi({
4299
+ content: yi({
4297
4300
  content: e.content,
4298
4301
  data: e.data
4299
4302
  }),
4300
4303
  localState: void 0,
4301
- rootState: bi({
4304
+ rootState: pi({
4302
4305
  content: e.content,
4303
4306
  data: e.data,
4304
4307
  locale: e.locale
@@ -4309,7 +4312,7 @@ function Re(e) {
4309
4312
  apiKey: e.apiKey,
4310
4313
  apiVersion: e.apiVersion,
4311
4314
  componentInfos: [
4312
- ...Te(),
4315
+ ...we(),
4313
4316
  ...e.customComponents || []
4314
4317
  ].reduce(
4315
4318
  (k, { component: C, ...V }) => ({
@@ -4341,13 +4344,13 @@ function Re(e) {
4341
4344
  }), d.current = !0;
4342
4345
  }
4343
4346
  return /* @__PURE__ */ s(
4344
- We.Provider,
4347
+ De.Provider,
4345
4348
  {
4346
4349
  value: {
4347
4350
  registeredComponents: a
4348
4351
  },
4349
4352
  children: /* @__PURE__ */ B(
4350
- hi,
4353
+ gi,
4351
4354
  {
4352
4355
  apiHost: e.apiHost,
4353
4356
  nonce: e.nonce,
@@ -4376,7 +4379,7 @@ function Re(e) {
4376
4379
  }
4377
4380
  ) : null,
4378
4381
  /* @__PURE__ */ s(
4379
- gi,
4382
+ bi,
4380
4383
  {
4381
4384
  nonce: e.nonce || "",
4382
4385
  isNestedRender: e.isNestedRender,
@@ -4400,17 +4403,17 @@ function Re(e) {
4400
4403
  }
4401
4404
  );
4402
4405
  }
4403
- function yi(e) {
4406
+ function vi(e) {
4404
4407
  var o;
4405
4408
  const [t, n] = I(
4406
- () => Xn({
4409
+ () => Zn({
4407
4410
  canTrack: M(e.canTrack),
4408
4411
  content: e.content
4409
4412
  })
4410
4413
  );
4411
4414
  function i() {
4412
4415
  var l;
4413
- return ni(
4416
+ return ii(
4414
4417
  G(e.content).map((d) => ({
4415
4418
  id: d.testVariationId,
4416
4419
  testRatio: d.testRatio
@@ -4426,7 +4429,7 @@ function yi(e) {
4426
4429
  return t ? {
4427
4430
  ...e.content,
4428
4431
  testVariationId: (l = e.content) == null ? void 0 : l.id
4429
- } : et({
4432
+ } : tt({
4430
4433
  item: e.content,
4431
4434
  canTrack: M(e.canTrack)
4432
4435
  });
@@ -4437,7 +4440,7 @@ function yi(e) {
4437
4440
  Y,
4438
4441
  {
4439
4442
  id: "builderio-init-variants-fns",
4440
- scriptStr: ti(),
4443
+ scriptStr: ni(),
4441
4444
  nonce: e.nonce || ""
4442
4445
  }
4443
4446
  ) : null,
@@ -4459,7 +4462,7 @@ function yi(e) {
4459
4462
  }
4460
4463
  ),
4461
4464
  (o = G(e.content)) == null ? void 0 : o.map((l) => /* @__PURE__ */ s(
4462
- Re,
4465
+ Ve,
4463
4466
  {
4464
4467
  apiHost: e.apiHost,
4465
4468
  isNestedRender: e.isNestedRender,
@@ -4487,7 +4490,7 @@ function yi(e) {
4487
4490
  ))
4488
4491
  ] }) : null,
4489
4492
  /* @__PURE__ */ s(
4490
- Re,
4493
+ Ve,
4491
4494
  {
4492
4495
  apiHost: e.apiHost,
4493
4496
  nonce: e.nonce,
@@ -4514,13 +4517,13 @@ function yi(e) {
4514
4517
  )
4515
4518
  ] });
4516
4519
  }
4517
- const vi = async ({
4520
+ const xi = async ({
4518
4521
  builderContextValue: e,
4519
4522
  symbol: t
4520
4523
  }) => {
4521
4524
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4522
4525
  (e != null && e.apiKey))
4523
- return Pe({
4526
+ return Be({
4524
4527
  model: t.model,
4525
4528
  apiKey: e.apiKey,
4526
4529
  apiVersion: e.apiVersion,
@@ -4533,7 +4536,7 @@ const vi = async ({
4533
4536
  z.error("Could not fetch symbol content: ", n);
4534
4537
  });
4535
4538
  };
4536
- function xi(e) {
4539
+ function Si(e) {
4537
4540
  var l, d, u, h, g;
4538
4541
  function t() {
4539
4542
  return "div";
@@ -4555,7 +4558,7 @@ function xi(e) {
4555
4558
  return (c = e.symbol) == null ? void 0 : c.content;
4556
4559
  });
4557
4560
  function o() {
4558
- a || vi({
4561
+ a || xi({
4559
4562
  symbol: e.symbol,
4560
4563
  builderContextValue: e.builderContext
4561
4564
  }).then((c) => {
@@ -4566,7 +4569,7 @@ function xi(e) {
4566
4569
  }, []), P(() => {
4567
4570
  o();
4568
4571
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
4569
- yi,
4572
+ vi,
4570
4573
  {
4571
4574
  nonce: e.builderContext.nonce,
4572
4575
  isNestedRender: !0,
@@ -4594,14 +4597,14 @@ function xi(e) {
4594
4597
  export {
4595
4598
  $ as Blocks,
4596
4599
  me as BuilderContext,
4597
- ut as Button,
4598
- Yt as Columns,
4599
- yi as Content,
4600
- Xt as Fragment,
4601
- tn as Image,
4602
- nn as Section,
4603
- xi as Symbol,
4604
- In as Text,
4605
- Jn as Video,
4606
- Ri as setClientUserAttributes
4600
+ dt as Button,
4601
+ Xt as Columns,
4602
+ vi as Content,
4603
+ Zt as Fragment,
4604
+ nn as Image,
4605
+ an as Section,
4606
+ Si as Symbol,
4607
+ En as Text,
4608
+ Gn as Video,
4609
+ Vi as setClientUserAttributes
4607
4610
  };