@builder.io/sdk-react 2.0.22 → 2.0.23

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 (66) hide show
  1. package/lib/browser/blocks-exports.cjs +25 -25
  2. package/lib/browser/blocks-exports.mjs +509 -542
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/{server-entry-5770bca9.cjs → server-entry-3855428f.cjs} +1 -1
  6. package/lib/browser/{server-entry-b83ba684.js → server-entry-e7cbd2fc.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-78c3d81b.js → accordion-57df597a.js} +1 -1
  10. package/lib/edge/{accordion-80133dd8.cjs → accordion-91147fe9.cjs} +1 -1
  11. package/lib/edge/{blocks-852d317b.js → blocks-263c1bb6.js} +6 -9
  12. package/lib/edge/blocks-98b19deb.cjs +12 -0
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +2 -2
  15. package/lib/edge/{button-0a729557.js → button-d681583e.js} +2 -2
  16. package/lib/edge/{button-a97c0d05.cjs → button-ff78ab2a.cjs} +1 -1
  17. package/lib/edge/{columns-1149d23a.js → columns-a50c2c9f.js} +4 -4
  18. package/lib/edge/{columns-2bd50130.cjs → columns-d6892637.cjs} +1 -1
  19. package/lib/edge/{content-variants-cbd84920.cjs → content-variants-83a1241a.cjs} +4 -4
  20. package/lib/edge/{content-variants-86962b96.js → content-variants-978a8be6.js} +13 -18
  21. package/lib/edge/{evaluate-46f56681.js → evaluate-b7da3191.js} +706 -726
  22. package/lib/edge/{evaluate-617e3bee.cjs → evaluate-f8347208.cjs} +11 -11
  23. package/lib/edge/form-32085b13.js +180 -0
  24. package/lib/edge/form-bb1f8672.cjs +1 -0
  25. package/lib/edge/{get-class-prop-name-6e4205e7.js → get-class-prop-name-8c8a1b1c.js} +1 -1
  26. package/lib/edge/{get-class-prop-name-dc89023a.cjs → get-class-prop-name-956dc1ac.cjs} +1 -1
  27. package/lib/edge/{img-70b9d719.cjs → img-9e702744.cjs} +1 -1
  28. package/lib/edge/{img-0bc990ef.js → img-ce324880.js} +1 -1
  29. package/lib/edge/index.cjs +1 -1
  30. package/lib/edge/index.mjs +1 -1
  31. package/lib/edge/{input-21071030.cjs → input-09bbebbb.cjs} +1 -1
  32. package/lib/edge/{input-3689c63d.js → input-c5dda333.js} +1 -1
  33. package/lib/edge/{select-cb7c2f44.cjs → select-235baf48.cjs} +1 -1
  34. package/lib/edge/{select-65ebd3fd.js → select-8936ea79.js} +1 -1
  35. package/lib/edge/{server-entry-9d83b8e5.js → server-entry-b3befa52.js} +1 -1
  36. package/lib/edge/{server-entry-8ce6f347.cjs → server-entry-f0d7962f.cjs} +1 -1
  37. package/lib/edge/server-entry.cjs +1 -1
  38. package/lib/edge/server-entry.mjs +1 -1
  39. package/lib/edge/{slot-e5f3b92d.js → slot-30e6c2aa.js} +4 -4
  40. package/lib/edge/{slot-21cc91d8.cjs → slot-375680d2.cjs} +1 -1
  41. package/lib/edge/{symbol-56e5b927.js → symbol-0deda8a7.js} +2 -2
  42. package/lib/edge/{symbol-0cc07e41.cjs → symbol-73a9d7cb.cjs} +1 -1
  43. package/lib/edge/{tabs-0e6f6b5b.js → tabs-577ba54e.js} +4 -4
  44. package/lib/edge/{tabs-9390d611.cjs → tabs-ffc5ae5d.cjs} +1 -1
  45. package/lib/edge/{text-b68c0d5a.js → text-0a14d566.js} +8 -9
  46. package/lib/edge/text-3dd73c6e.cjs +1 -0
  47. package/lib/node/blocks-exports.cjs +25 -25
  48. package/lib/node/blocks-exports.mjs +528 -561
  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/{server-entry-52b8f10a.cjs → server-entry-a7139d8f.cjs} +1 -1
  54. package/lib/node/{server-entry-5b32494d.js → server-entry-fa11b353.js} +1 -1
  55. package/lib/node/server-entry.cjs +1 -1
  56. package/lib/node/server-entry.mjs +1 -1
  57. package/lib/node/{should-force-browser-runtime-in-node-253f1726.cjs → should-force-browser-runtime-in-node-0bf7076b.cjs} +1 -1
  58. package/lib/node/{should-force-browser-runtime-in-node-68bc74aa.js → should-force-browser-runtime-in-node-ddb84649.js} +1 -1
  59. package/package.json +1 -1
  60. package/types/constants/sdk-version.d.ts +1 -1
  61. package/types/functions/evaluate/evaluate.d.ts +2 -1
  62. package/types/functions/evaluate/helpers.d.ts +0 -1
  63. package/lib/edge/blocks-5084bbec.cjs +0 -12
  64. package/lib/edge/form-1811c08f.js +0 -183
  65. package/lib/edge/form-c42561fb.cjs +0 -1
  66. package/lib/edge/text-baaedac7.cjs +0 -1
@@ -1,17 +1,14 @@
1
1
  "use client";
2
- var Ue = Object.defineProperty;
3
- var je = (e, t, n) => t in e ? Ue(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
- var G = (e, t, n) => (je(e, typeof t != "symbol" ? t + "" : t, n), n);
5
2
  import { jsx as l, Fragment as w, jsxs as V } from "react/jsx-runtime";
6
- import { TARGET as L, isBrowser as _, logger as ae, checkIsDefined as ne, isPreviewing as ke, isEditing as F, registerInsertMenu as Me, setupBrowserForEditing as He, createRegisterComponentMessage as Ke, getDefaultCanTrack as z, _track as de, fetchOneEntry as Ce, createEditorListener as qe, serializeIncludingFunctions as ue, handleABTestingSync as _e } from "./server-entry-5b32494d.js";
7
- import { createContext as Te, useEffect as P, useState as T, useRef as D, useContext as me, createElement as Ie } from "react";
8
- import { getFunctionArguments as ze, flattenState as Je, shouldForceBrowserRuntimeInNode as Ye, runInNode as Ge, parseCode as Qe, getBuilderGlobals as Xe, set as we, fastClone as re } from "./should-force-browser-runtime-in-node-68bc74aa.js";
9
- 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());
10
- function le(e) {
11
- return /* @__PURE__ */ l(w, { children: et(e.TagName) ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(w, { 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 }) }) });
12
- }
13
- const M = () => {
14
- switch (L) {
3
+ import { TARGET as D, isBrowser as H, logger as ne, checkIsDefined as Z, isPreviewing as xe, isEditing as F, registerInsertMenu as Le, setupBrowserForEditing as Oe, createRegisterComponentMessage as Ue, getDefaultCanTrack as q, _track as le, fetchOneEntry as ve, createEditorListener as je, serializeIncludingFunctions as se, handleABTestingSync as Me } from "./server-entry-fa11b353.js";
4
+ import { createContext as Se, useEffect as B, useState as T, useRef as $, useContext as ce, createElement as ke } from "react";
5
+ import { getFunctionArguments as _e, flattenState as He, shouldForceBrowserRuntimeInNode as qe, runInNode as Ke, parseCode as ze, getBuilderGlobals as Je, set as Ce, fastClone as ie } from "./should-force-browser-runtime-in-node-ddb84649.js";
6
+ const Ge = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ye = (e) => typeof e == "string" && Ge.has(e.toLowerCase());
7
+ function oe(e) {
8
+ return /* @__PURE__ */ l(w, { children: Ye(e.TagName) ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(w, { 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 }) }) });
9
+ }
10
+ const U = () => {
11
+ switch (D) {
15
12
  case "react":
16
13
  case "reactNative":
17
14
  case "rsc":
@@ -24,11 +21,11 @@ const M = () => {
24
21
  return "class";
25
22
  }
26
23
  };
27
- function tt(e) {
24
+ function Qe(e) {
28
25
  function t() {
29
26
  return {
30
27
  ...e.attributes,
31
- [M()]: `${e.link ? "" : "builder-button"} ${e.attributes[M()] || ""}`,
28
+ [U()]: `${e.link ? "" : "builder-button"} ${e.attributes[U()] || ""}`,
32
29
  ...e.link ? {
33
30
  href: e.link,
34
31
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -39,7 +36,7 @@ function tt(e) {
39
36
  };
40
37
  }
41
38
  return /* @__PURE__ */ l(
42
- le,
39
+ oe,
43
40
  {
44
41
  attributes: t(),
45
42
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
@@ -48,7 +45,7 @@ function tt(e) {
48
45
  }
49
46
  );
50
47
  }
51
- const se = Te({
48
+ const ae = Se({
52
49
  content: null,
53
50
  context: {},
54
51
  localState: void 0,
@@ -62,21 +59,24 @@ const se = Te({
62
59
  BlocksWrapper: "div",
63
60
  BlocksWrapperProps: {},
64
61
  nonce: ""
65
- }), Re = Te({ registeredComponents: {} });
66
- function nt(e) {
62
+ }), Te = Se({ registeredComponents: {} });
63
+ function Xe(e) {
67
64
  var t;
68
65
  return {
69
66
  ...(t = e.component) == null ? void 0 : t.options,
70
67
  ...e.options
71
68
  };
72
69
  }
73
- function it(e, ...t) {
70
+ function Ze(e, ...t) {
74
71
  const n = Object.assign({}, e);
75
72
  for (const i of t)
76
73
  delete n[i];
77
74
  return n;
78
75
  }
79
- const ot = ({
76
+ const Ie = (e, t, n) => {
77
+ const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
78
+ return i === void 0 || i === e ? n : i;
79
+ }, et = ({
80
80
  code: e,
81
81
  builder: t,
82
82
  context: n,
@@ -85,96 +85,75 @@ const ot = ({
85
85
  rootSetState: a,
86
86
  rootState: r
87
87
  }) => {
88
- const s = ze({
88
+ const s = _e({
89
89
  builder: t,
90
90
  context: n,
91
91
  event: i,
92
- state: Je({
92
+ state: He({
93
93
  rootState: r,
94
94
  localState: o,
95
95
  rootSetState: a
96
96
  })
97
97
  });
98
98
  return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
99
- }, at = (e) => _() || Ye({
99
+ }, tt = (e) => H() || qe({
100
100
  shouldLogWarning: !0
101
- }) ? ot(e) : Ge(e), rt = !0, $ = class $ {
102
- static getCacheKey(t) {
103
- return JSON.stringify({
104
- ...t,
105
- // replace the event with a random number to break cache
106
- // thats because we can't serialize the event object due to circular refs in DOM node refs.
107
- event: t.event ? Math.random() : void 0
108
- });
109
- }
110
- static getCachedValue(t) {
111
- return $.cache.get(t);
112
- }
113
- static setCachedValue(t, n) {
114
- $.cache.size > 20 && $.cache.delete($.cache.keys().next().value), $.cache.set(t, {
115
- value: n
116
- });
117
- }
101
+ }) ? et(e) : Ke(e), nt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, it = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, ot = (e) => {
102
+ var t, n, i, o, a, r;
103
+ return ((i = (n = (t = nt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((r = (a = (o = it.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : a.getPath) == null ? void 0 : r.slice(1));
118
104
  };
119
- G($, "cacheLimit", 20), G($, "cache", /* @__PURE__ */ new Map());
120
- let O = $;
121
- function U({
105
+ function L({
122
106
  code: e,
123
107
  context: t,
124
108
  localState: n,
125
109
  rootState: i,
126
110
  rootSetState: o,
127
111
  event: a,
128
- isExpression: r = !0,
129
- enableCache: s
112
+ isExpression: r = !0
130
113
  }) {
131
- if (e === "")
114
+ if (e.trim() === "")
132
115
  return;
116
+ const s = ot(e.trim());
117
+ if (s)
118
+ return Ie({
119
+ ...i,
120
+ ...n
121
+ }, s);
133
122
  const d = {
134
- code: Qe(e, {
123
+ code: ze(e, {
135
124
  isExpression: r
136
125
  }),
137
- builder: Xe(),
126
+ builder: Je(),
138
127
  context: t,
139
128
  event: a,
140
129
  rootSetState: o,
141
130
  rootState: i,
142
131
  localState: n
143
132
  };
144
- if (s && !rt) {
145
- const c = O.getCacheKey(d), f = O.getCachedValue(c);
146
- if (f)
147
- return f.value;
148
- }
149
133
  try {
150
- const c = at(d);
151
- if (s) {
152
- const f = O.getCacheKey(d);
153
- O.setCachedValue(f, c);
154
- }
155
- return c;
134
+ return tt(d);
156
135
  } catch (c) {
157
- ae.error("Failed code evaluation: " + c.message, {
136
+ ne.error("Failed code evaluation: " + c.message, {
158
137
  code: e
159
138
  });
160
139
  return;
161
140
  }
162
141
  }
163
- function ie(e) {
142
+ function ee(e) {
164
143
  if (e === null || typeof e != "object")
165
144
  return e;
166
145
  if (Array.isArray(e))
167
- return e.map((n) => ie(n));
146
+ return e.map((n) => ee(n));
168
147
  if (e["@type"] === "@builder.io/sdk:Element")
169
148
  return e;
170
149
  const t = {};
171
150
  for (const n in e)
172
- n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ie(e[n]));
151
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ee(e[n]));
173
152
  return t;
174
153
  }
175
- const lt = ["svelte", "vue", "angular", "qwik", "solid"].includes(L), st = (e) => {
176
- if (lt) {
177
- const t = re(e);
154
+ const at = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), rt = (e) => {
155
+ if (at) {
156
+ const t = ie(e);
178
157
  return {
179
158
  ...t,
180
159
  properties: {
@@ -185,7 +164,7 @@ const lt = ["svelte", "vue", "angular", "qwik", "solid"].includes(L), st = (e) =
185
164
  }
186
165
  };
187
166
  } else {
188
- const t = ie(it(e, "children", "meta"));
167
+ const t = ee(Ze(e, "children", "meta"));
189
168
  return {
190
169
  ...t,
191
170
  properties: {
@@ -198,7 +177,7 @@ const lt = ["svelte", "vue", "angular", "qwik", "solid"].includes(L), st = (e) =
198
177
  meta: e.meta
199
178
  };
200
179
  }
201
- }, ct = ({
180
+ }, lt = ({
202
181
  block: e,
203
182
  context: t,
204
183
  localState: n,
@@ -207,21 +186,20 @@ const lt = ["svelte", "vue", "angular", "qwik", "solid"].includes(L), st = (e) =
207
186
  }) => {
208
187
  if (!e.bindings)
209
188
  return e;
210
- const a = st(e);
189
+ const a = rt(e);
211
190
  for (const r in e.bindings) {
212
- const s = e.bindings[r], d = U({
191
+ const s = e.bindings[r], d = L({
213
192
  code: s,
214
193
  localState: n,
215
194
  rootState: i,
216
195
  rootSetState: o,
217
- context: t,
218
- enableCache: !0
196
+ context: t
219
197
  });
220
- we(a, r, d);
198
+ Ce(a, r, d);
221
199
  }
222
200
  return a;
223
201
  };
224
- function dt({
202
+ function st({
225
203
  block: e,
226
204
  context: t,
227
205
  shouldEvaluateBindings: n,
@@ -230,7 +208,7 @@ function dt({
230
208
  rootSetState: a
231
209
  }) {
232
210
  const r = e;
233
- return n ? ct({
211
+ return n ? lt({
234
212
  block: r,
235
213
  localState: i,
236
214
  rootState: o,
@@ -238,8 +216,8 @@ function dt({
238
216
  context: t
239
217
  }) : r;
240
218
  }
241
- const J = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
242
- function ut(e, t, n = {}) {
219
+ const K = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
220
+ function ct(e, t, n = {}) {
243
221
  let i, o, a, r = null, s = 0;
244
222
  const d = function() {
245
223
  s = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
@@ -247,11 +225,11 @@ function ut(e, t, n = {}) {
247
225
  return function() {
248
226
  const c = Date.now();
249
227
  !s && n.leading === !1 && (s = c);
250
- const f = t - (c - s);
251
- return i = this, o = arguments, f <= 0 || f > t ? (r && (clearTimeout(r), r = null), s = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, f)), a;
228
+ const h = t - (c - s);
229
+ return i = this, o = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), s = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, h)), a;
252
230
  };
253
231
  }
254
- function j(e, ...t) {
232
+ function O(e, ...t) {
255
233
  const n = Object(e);
256
234
  for (let i = 1; i < arguments.length; i++) {
257
235
  const o = arguments[i];
@@ -261,118 +239,118 @@ function j(e, ...t) {
261
239
  }
262
240
  return n;
263
241
  }
264
- function mt(e) {
242
+ function dt(e) {
265
243
  for (const t of e)
266
244
  switch (t.trigger) {
267
245
  case "pageLoad":
268
- Pe(t);
246
+ Re(t);
269
247
  break;
270
248
  case "scrollInView":
271
- ht(t);
249
+ mt(t);
272
250
  break;
273
251
  }
274
252
  }
275
- function Ee(e) {
253
+ function we(e) {
276
254
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
277
255
  }
278
- function Be(e, t) {
279
- const n = ft(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
256
+ function Ee(e, t) {
257
+ const n = ut(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
280
258
  for (const s of r)
281
259
  for (const d of n)
282
260
  d in s || (s[d] = i[d]);
283
261
  }
284
- function ft(e) {
262
+ function ut(e) {
285
263
  const t = [];
286
264
  for (const n of e.steps)
287
265
  for (const i in n.styles)
288
266
  t.indexOf(i) === -1 && t.push(i);
289
267
  return t;
290
268
  }
291
- function Pe(e) {
269
+ function Re(e) {
292
270
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
293
271
  if (!t.length) {
294
- Ee(e.elementId || e.id || "");
272
+ we(e.elementId || e.id || "");
295
273
  return;
296
274
  }
297
275
  Array.from(t).forEach((n) => {
298
- Be(e, n), n.style.transition = "none", n.style.transitionDelay = "0", j(n.style, e.steps[0].styles), setTimeout(() => {
299
- n.style.transition = `all ${e.duration}s ${J(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), j(n.style, e.steps[1].styles), setTimeout(() => {
276
+ Ee(e, n), n.style.transition = "none", n.style.transitionDelay = "0", O(n.style, e.steps[0].styles), setTimeout(() => {
277
+ n.style.transition = `all ${e.duration}s ${K(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), O(n.style, e.steps[1].styles), setTimeout(() => {
300
278
  n.style.transition = "", n.style.transitionDelay = "";
301
279
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
302
280
  });
303
281
  });
304
282
  }
305
- function ht(e) {
283
+ function mt(e) {
306
284
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
307
285
  if (!t.length) {
308
- Ee(e.elementId || e.id || "");
286
+ we(e.elementId || e.id || "");
309
287
  return;
310
288
  }
311
289
  Array.from(t).forEach((n) => {
312
- Be(e, n);
290
+ Ee(e, n);
313
291
  let i = !1, o = !1;
314
292
  function a() {
315
293
  !i && s(n) ? (i = !0, o = !0, setTimeout(() => {
316
- j(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
294
+ O(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
317
295
  o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
318
296
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
319
- })) : e.repeat && i && !o && !s(n) && (i = !1, j(n.style, e.steps[0].styles));
297
+ })) : e.repeat && i && !o && !s(n) && (i = !1, O(n.style, e.steps[0].styles));
320
298
  }
321
- const r = ut(a, 200, {
299
+ const r = ct(a, 200, {
322
300
  leading: !1
323
301
  });
324
- function s(f) {
325
- const b = f.getBoundingClientRect(), h = window.innerHeight, g = (e.thresholdPercent || 0) / 100 * h;
326
- return b.bottom > g && b.top < h - g;
302
+ function s(h) {
303
+ const b = h.getBoundingClientRect(), f = window.innerHeight, g = (e.thresholdPercent || 0) / 100 * f;
304
+ return b.bottom > g && b.top < f - g;
327
305
  }
328
306
  const d = e.steps[0].styles;
329
307
  function c() {
330
- j(n.style, d);
308
+ O(n.style, d);
331
309
  }
332
310
  c(), setTimeout(() => {
333
- n.style.transition = `all ${e.duration}s ${J(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
311
+ n.style.transition = `all ${e.duration}s ${K(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
334
312
  }), document.addEventListener("scroll", r, {
335
313
  capture: !0,
336
314
  passive: !0
337
315
  }), a();
338
316
  });
339
317
  }
340
- const Ve = (e) => Object.entries(e).map(([n, i]) => {
318
+ const Pe = (e) => Object.entries(e).map(([n, i]) => {
341
319
  if (typeof i == "string")
342
- return `${J(n)}: ${i};`;
343
- }).filter(ne), gt = (e) => Ve(e).join(`
344
- `), K = ({
320
+ return `${K(n)}: ${i};`;
321
+ }).filter(Z), ft = (e) => Pe(e).join(`
322
+ `), M = ({
345
323
  mediaQuery: e,
346
324
  className: t,
347
325
  styles: n
348
326
  }) => {
349
327
  const i = `.${t} {
350
- ${gt(n)}
328
+ ${ft(n)}
351
329
  }`;
352
330
  return e ? `${e} {
353
331
  ${i}
354
332
  }` : i;
355
333
  };
356
- function bt({
334
+ function ht({
357
335
  style: e
358
336
  }) {
359
337
  return e;
360
338
  }
361
- const pt = ({
339
+ const gt = ({
362
340
  block: e,
363
341
  context: t
364
- }) => Ae(bt({
342
+ }) => Be(ht({
365
343
  style: e.style || {},
366
344
  context: t,
367
345
  block: e
368
346
  }));
369
- function Ae(e) {
370
- switch (L) {
347
+ function Be(e) {
348
+ switch (D) {
371
349
  case "svelte":
372
350
  case "vue":
373
351
  case "solid":
374
352
  case "angular":
375
- return Ve(e).join(" ");
353
+ return Pe(e).join(" ");
376
354
  case "qwik":
377
355
  case "reactNative":
378
356
  case "react":
@@ -380,7 +358,7 @@ function Ae(e) {
380
358
  return e;
381
359
  }
382
360
  }
383
- const yt = ({
361
+ const bt = ({
384
362
  block: e,
385
363
  registeredComponents: t
386
364
  }) => {
@@ -394,7 +372,7 @@ const yt = ({
394
372
  console.warn(`
395
373
  Could not find a registered component named "${n}".
396
374
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
397
- }, xt = ({
375
+ }, pt = ({
398
376
  block: e,
399
377
  context: t
400
378
  }) => {
@@ -404,13 +382,12 @@ const yt = ({
404
382
  } = e;
405
383
  if (!(n != null && n.collection))
406
384
  return;
407
- const o = U({
385
+ const o = L({
408
386
  code: n.collection,
409
387
  localState: t.localState,
410
388
  rootState: t.rootState,
411
389
  rootSetState: t.rootSetState,
412
- context: t.context,
413
- enableCache: !0
390
+ context: t.context
414
391
  });
415
392
  if (!Array.isArray(o))
416
393
  return;
@@ -428,27 +405,27 @@ const yt = ({
428
405
  },
429
406
  block: i
430
407
  }));
431
- }, vt = (e, t) => {
408
+ }, yt = (e, t) => {
432
409
  var n;
433
410
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
434
411
  builderLinkComponent: t
435
412
  } : {};
436
- }, St = (e, t) => {
413
+ }, xt = (e, t) => {
437
414
  var n;
438
415
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
439
416
  builderComponents: t
440
417
  } : {};
441
- }, kt = (e, t) => {
418
+ }, vt = (e, t) => {
442
419
  var n;
443
420
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
444
421
  builderBlock: t
445
422
  } : {};
446
- }, Ct = (e, t) => {
423
+ }, St = (e, t) => {
447
424
  var n;
448
425
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
449
426
  builderContext: t
450
427
  } : {};
451
- }, We = {
428
+ }, Ve = {
452
429
  small: {
453
430
  min: 320,
454
431
  default: 321,
@@ -464,11 +441,11 @@ const yt = ({
464
441
  default: 991,
465
442
  max: 1200
466
443
  }
467
- }, fe = (e, t = We) => `@media (max-width: ${t[e].max}px)`, Fe = ({
444
+ }, de = (e, t = Ve) => `@media (max-width: ${t[e].max}px)`, Ae = ({
468
445
  small: e,
469
446
  medium: t
470
447
  }) => {
471
- const n = re(We);
448
+ const n = ie(Ve);
472
449
  if (!e || !t)
473
450
  return n;
474
451
  const i = Math.floor(e / 2);
@@ -491,7 +468,7 @@ const yt = ({
491
468
  default: a + 1
492
469
  }, n;
493
470
  };
494
- function Y(e) {
471
+ function z(e) {
495
472
  return /* @__PURE__ */ l(
496
473
  "style",
497
474
  {
@@ -501,44 +478,44 @@ function Y(e) {
501
478
  }
502
479
  );
503
480
  }
504
- function Tt(e) {
481
+ function kt(e) {
505
482
  function t() {
506
483
  const i = e.block;
507
- return ne(i.hide) ? !i.hide : ne(i.show) ? i.show : !0;
484
+ return Z(i.hide) ? !i.hide : Z(i.show) ? i.show : !0;
508
485
  }
509
486
  function n() {
510
- var x, E, C;
511
- const i = e.block, o = i.responsiveStyles, a = e.context.content, r = Fe(
487
+ var x, R, C;
488
+ const i = e.block, o = i.responsiveStyles, a = e.context.content, r = Ae(
512
489
  ((x = a == null ? void 0 : a.meta) == null ? void 0 : x.breakpoints) || {}
513
- ), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, f = i.id;
514
- if (!f)
490
+ ), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
491
+ if (!h)
515
492
  return "";
516
- const b = s ? K({
517
- className: f,
493
+ const b = s ? M({
494
+ className: h,
518
495
  styles: s
519
- }) : "", h = d ? K({
520
- className: f,
496
+ }) : "", f = d ? M({
497
+ className: h,
521
498
  styles: d,
522
- mediaQuery: fe(
499
+ mediaQuery: de(
523
500
  "medium",
524
501
  r
525
502
  )
526
- }) : "", v = c ? K({
527
- className: f,
503
+ }) : "", v = c ? M({
504
+ className: h,
528
505
  styles: c,
529
- mediaQuery: fe(
506
+ mediaQuery: de(
530
507
  "small",
531
508
  r
532
509
  )
533
510
  }) : "", g = i.animations && i.animations.find((k) => k.trigger === "hover");
534
511
  let S = "";
535
512
  if (g) {
536
- const k = ((C = (E = g.steps) == null ? void 0 : E[1]) == null ? void 0 : C.styles) || {};
537
- S = K({
538
- className: `${f}:hover`,
513
+ const k = ((C = (R = g.steps) == null ? void 0 : R[1]) == null ? void 0 : C.styles) || {};
514
+ S = M({
515
+ className: `${h}:hover`,
539
516
  styles: {
540
517
  ...k,
541
- transition: `all ${g.duration}s ${J(
518
+ transition: `all ${g.duration}s ${K(
542
519
  g.easing
543
520
  )}`,
544
521
  transitionDelay: g.delay ? `${g.delay}s` : "0s"
@@ -547,13 +524,13 @@ function Tt(e) {
547
524
  }
548
525
  return [
549
526
  b,
550
- h,
527
+ f,
551
528
  v,
552
529
  S
553
530
  ].join(" ");
554
531
  }
555
532
  return /* @__PURE__ */ l(w, { children: n() && t() ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
556
- Y,
533
+ z,
557
534
  {
558
535
  id: "builderio-block",
559
536
  styles: n(),
@@ -561,29 +538,28 @@ function Tt(e) {
561
538
  }
562
539
  ) }) : null });
563
540
  }
564
- function It(e) {
541
+ function Ct(e) {
565
542
  return e.charAt(0).toUpperCase() + e.slice(1);
566
543
  }
567
- const wt = (e) => `on${It(e)}`, Rt = (e, t) => (n) => U({
544
+ const Tt = (e) => `on${Ct(e)}`, It = (e, t) => (n) => L({
568
545
  code: e,
569
546
  context: t.context,
570
547
  localState: t.localState,
571
548
  rootState: t.rootState,
572
549
  rootSetState: t.rootSetState,
573
550
  event: n,
574
- isExpression: !1,
575
- enableCache: !0
551
+ isExpression: !1
576
552
  });
577
- function Ne(e) {
553
+ function We(e) {
578
554
  var i;
579
555
  const t = {}, n = (i = e.block.actions) != null ? i : {};
580
556
  for (const o in n) {
581
557
  if (!n.hasOwnProperty(o))
582
558
  continue;
583
559
  const a = n[o];
584
- let r = wt(o);
560
+ let r = Tt(o);
585
561
  if (e.stripPrefix)
586
- switch (L) {
562
+ switch (D) {
587
563
  case "vue":
588
564
  r = r.replace("v-on:", "");
589
565
  break;
@@ -591,49 +567,49 @@ function Ne(e) {
591
567
  r = r.replace("on:", "");
592
568
  break;
593
569
  }
594
- t[r] = Rt(a, e);
570
+ t[r] = It(a, e);
595
571
  }
596
572
  return t;
597
573
  }
598
- function Et({
574
+ function wt({
599
575
  properties: e
600
576
  }) {
601
577
  return e;
602
578
  }
603
- const Bt = (e) => ({
579
+ const Et = (e) => ({
604
580
  href: e.href
605
581
  });
606
- function ce({
582
+ function re({
607
583
  block: e,
608
584
  context: t
609
585
  }) {
610
586
  var i;
611
587
  const n = {
612
- ...Bt(e),
588
+ ...Et(e),
613
589
  ...e.properties,
614
590
  "builder-id": e.id,
615
- style: pt({
591
+ style: gt({
616
592
  block: e,
617
593
  context: t
618
594
  }),
619
- [M()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
595
+ [U()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
620
596
  };
621
- return Et({
597
+ return wt({
622
598
  properties: n,
623
599
  context: t,
624
600
  block: e
625
601
  });
626
602
  }
627
- function Pt(e) {
603
+ function Rt(e) {
628
604
  return /* @__PURE__ */ l(
629
- le,
605
+ oe,
630
606
  {
631
607
  TagName: e.Wrapper,
632
- attributes: ce({
608
+ attributes: re({
633
609
  block: e.block,
634
610
  context: e.context
635
611
  }),
636
- actionAttributes: Ne({
612
+ actionAttributes: We({
637
613
  block: e.block,
638
614
  rootState: e.context.rootState,
639
615
  rootSetState: e.context.rootSetState,
@@ -645,18 +621,18 @@ function Pt(e) {
645
621
  }
646
622
  );
647
623
  }
648
- function Vt(e) {
649
- return P(() => {
624
+ function Pt(e) {
625
+ return B(() => {
650
626
  }, []), /* @__PURE__ */ l(w, { children: e.children });
651
627
  }
652
- function At(e) {
628
+ function Bt(e) {
653
629
  function t() {
654
630
  return e.includeBlockProps ? {
655
- ...ce({
631
+ ...re({
656
632
  block: e.block,
657
633
  context: e.context
658
634
  }),
659
- ...Ne({
635
+ ...We({
660
636
  block: e.block,
661
637
  rootState: e.context.rootState,
662
638
  rootSetState: e.context.rootSetState,
@@ -666,7 +642,7 @@ function At(e) {
666
642
  } : {};
667
643
  }
668
644
  return /* @__PURE__ */ l(w, { children: e.Wrapper.load ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
669
- Vt,
645
+ Pt,
670
646
  {
671
647
  load: e.Wrapper.load,
672
648
  fallback: e.Wrapper.fallback,
@@ -676,7 +652,7 @@ function At(e) {
676
652
  }
677
653
  ) }) : /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
678
654
  }
679
- const Wt = ({
655
+ const Vt = ({
680
656
  componentOptions: e,
681
657
  builderBlock: t,
682
658
  context: n,
@@ -692,7 +668,7 @@ const Wt = ({
692
668
  * component itself directly. Otherwise, they are provided to the wrapper element.
693
669
  */
694
670
  ...o ? {
695
- attributes: ce({
671
+ attributes: re({
696
672
  block: t,
697
673
  context: r
698
674
  })
@@ -706,15 +682,15 @@ const Wt = ({
706
682
  includeBlockProps: o
707
683
  } : s;
708
684
  };
709
- function he(e) {
685
+ function ue(e) {
710
686
  var i;
711
687
  const [t, n] = T(
712
- () => e.isInteractive ? At : e.componentRef
688
+ () => e.isInteractive ? Bt : e.componentRef
713
689
  );
714
690
  return /* @__PURE__ */ l(w, { children: e.componentRef ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
715
691
  t,
716
692
  {
717
- ...Wt({
693
+ ...Vt({
718
694
  componentOptions: e.componentOptions,
719
695
  builderBlock: e.builderBlock,
720
696
  context: e.context,
@@ -725,7 +701,7 @@ function he(e) {
725
701
  contextValue: e.context
726
702
  }),
727
703
  children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
728
- H,
704
+ j,
729
705
  {
730
706
  block: o,
731
707
  context: e.context,
@@ -737,10 +713,10 @@ function he(e) {
737
713
  }
738
714
  ) }) : null });
739
715
  }
740
- function ge(e) {
716
+ function me(e) {
741
717
  const [t, n] = T(() => e.repeatContext);
742
- return /* @__PURE__ */ l(se.Provider, { value: t, children: /* @__PURE__ */ l(
743
- H,
718
+ return /* @__PURE__ */ l(ae.Provider, { value: t, children: /* @__PURE__ */ l(
719
+ j,
744
720
  {
745
721
  block: e.block,
746
722
  context: t,
@@ -749,10 +725,10 @@ function ge(e) {
749
725
  }
750
726
  ) });
751
727
  }
752
- function H(e) {
753
- var f, b, h, v;
728
+ function j(e) {
729
+ var h, b, f, v;
754
730
  function t() {
755
- return xt({
731
+ return pt({
756
732
  block: e.block,
757
733
  context: e.context
758
734
  });
@@ -763,9 +739,9 @@ function H(e) {
763
739
  }));
764
740
  function o() {
765
741
  var S;
766
- if (n.value && !n.update && !ke())
742
+ if (n.value && !n.update && !xe())
767
743
  return n.value;
768
- const g = (S = e.block.repeat) != null && S.collection ? e.block : dt({
744
+ const g = (S = e.block.repeat) != null && S.collection ? e.block : st({
769
745
  block: e.block,
770
746
  localState: e.context.localState,
771
747
  rootState: e.context.rootState,
@@ -776,7 +752,7 @@ function H(e) {
776
752
  return n.value = g, n.update = !1, g;
777
753
  }
778
754
  function a() {
779
- return yt({
755
+ return bt({
780
756
  block: o(),
781
757
  registeredComponents: e.registeredComponents
782
758
  });
@@ -786,9 +762,9 @@ function H(e) {
786
762
  return e.block.tagName === "a" || ((S = o().properties) == null ? void 0 : S.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
787
763
  }
788
764
  function s() {
789
- var x, E;
765
+ var x, R;
790
766
  if ((x = e.block.repeat) != null && x.collection)
791
- return !!((E = t == null ? void 0 : t()) != null && E.length);
767
+ return !!((R = t == null ? void 0 : t()) != null && R.length);
792
768
  const g = "hide" in o() ? o().hide : !1;
793
769
  return ("show" in o() ? o().show : !0) && !g;
794
770
  }
@@ -797,16 +773,16 @@ function H(e) {
797
773
  return !((S = a == null ? void 0 : a()) != null && S.component) && !t() ? (x = o().children) != null ? x : [] : [];
798
774
  }
799
775
  function c() {
800
- var g, S, x, E;
776
+ var g, S, x, R;
801
777
  return {
802
778
  blockChildren: (g = o().children) != null ? g : [],
803
779
  componentRef: (S = a == null ? void 0 : a()) == null ? void 0 : S.component,
804
780
  componentOptions: {
805
- ...nt(o()),
806
- ...kt(a(), o()),
807
- ...Ct(a(), e.context),
808
- ...vt(a(), e.linkComponent),
809
- ...St(
781
+ ...Xe(o()),
782
+ ...vt(a(), o()),
783
+ ...St(a(), e.context),
784
+ ...yt(a(), e.linkComponent),
785
+ ...xt(
810
786
  a(),
811
787
  e.registeredComponents
812
788
  )
@@ -816,23 +792,23 @@ function H(e) {
816
792
  registeredComponents: e.registeredComponents,
817
793
  builderBlock: o(),
818
794
  includeBlockProps: ((x = a == null ? void 0 : a()) == null ? void 0 : x.noWrap) === !0,
819
- isInteractive: !((E = a == null ? void 0 : a()) != null && E.isRSC && L === "rsc")
795
+ isInteractive: !((R = a == null ? void 0 : a()) != null && R.isRSC && D === "rsc")
820
796
  };
821
797
  }
822
- return P(() => {
798
+ return B(() => {
823
799
  const g = o().id, S = o().animations;
824
- S && g && mt(
800
+ S && g && dt(
825
801
  S.map((x) => ({
826
802
  ...x,
827
803
  elementId: g
828
804
  }))
829
805
  );
830
- }, []), P(() => {
806
+ }, []), B(() => {
831
807
  n.update = !0;
832
808
  }), /* @__PURE__ */ l(w, { children: s() ? /* @__PURE__ */ V(w, { children: [
833
- /* @__PURE__ */ l(Tt, { block: o(), context: e.context }),
834
- (f = a == null ? void 0 : a()) != null && f.noWrap ? t() ? /* @__PURE__ */ l(w, { children: (v = t()) == null ? void 0 : v.map((g, S) => /* @__PURE__ */ l(
835
- ge,
809
+ /* @__PURE__ */ l(kt, { block: o(), context: e.context }),
810
+ (h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ l(w, { children: (v = t()) == null ? void 0 : v.map((g, S) => /* @__PURE__ */ l(
811
+ me,
836
812
  {
837
813
  repeatContext: g.context,
838
814
  block: g.block,
@@ -841,7 +817,7 @@ function H(e) {
841
817
  },
842
818
  S
843
819
  )) }) : /* @__PURE__ */ l(
844
- he,
820
+ ue,
845
821
  {
846
822
  componentRef: c().componentRef,
847
823
  componentOptions: c().componentOptions,
@@ -853,8 +829,8 @@ function H(e) {
853
829
  includeBlockProps: c().includeBlockProps,
854
830
  isInteractive: c().isInteractive
855
831
  }
856
- ) : /* @__PURE__ */ l(w, { children: t() ? /* @__PURE__ */ l(w, { children: (h = t()) == null ? void 0 : h.map((g, S) => /* @__PURE__ */ l(
857
- ge,
832
+ ) : /* @__PURE__ */ l(w, { children: t() ? /* @__PURE__ */ l(w, { children: (f = t()) == null ? void 0 : f.map((g, S) => /* @__PURE__ */ l(
833
+ me,
858
834
  {
859
835
  repeatContext: g.context,
860
836
  block: g.block,
@@ -863,14 +839,14 @@ function H(e) {
863
839
  },
864
840
  S
865
841
  )) }) : /* @__PURE__ */ V(
866
- Pt,
842
+ Rt,
867
843
  {
868
844
  Wrapper: r(),
869
845
  block: o(),
870
846
  context: e.context,
871
847
  children: [
872
848
  /* @__PURE__ */ l(
873
- he,
849
+ ue,
874
850
  {
875
851
  componentRef: c().componentRef,
876
852
  componentOptions: c().componentOptions,
@@ -884,7 +860,7 @@ function H(e) {
884
860
  }
885
861
  ),
886
862
  (b = d()) == null ? void 0 : b.map((g) => /* @__PURE__ */ l(
887
- H,
863
+ j,
888
864
  {
889
865
  block: g,
890
866
  registeredComponents: e.registeredComponents,
@@ -898,8 +874,8 @@ function H(e) {
898
874
  ) })
899
875
  ] }) : null });
900
876
  }
901
- function Ft(e) {
902
- const t = D(null);
877
+ function At(e) {
878
+ const t = $(null);
903
879
  function n() {
904
880
  var a;
905
881
  return "builder-blocks" + ((a = e.blocks) != null && a.length ? "" : " no-blocks");
@@ -930,7 +906,7 @@ function Ft(e) {
930
906
  "*"
931
907
  ));
932
908
  }
933
- return P(() => {
909
+ return B(() => {
934
910
  }, []), /* @__PURE__ */ V(w, { children: [
935
911
  /* @__PURE__ */ l(
936
912
  e.BlocksWrapper,
@@ -956,9 +932,9 @@ function Ft(e) {
956
932
  }
957
933
  function N(e) {
958
934
  var i, o, a;
959
- const t = me(se), n = me(Re);
935
+ const t = ce(ae), n = ce(Te);
960
936
  return /* @__PURE__ */ l(
961
- Ft,
937
+ At,
962
938
  {
963
939
  blocks: e.blocks,
964
940
  parent: e.parent,
@@ -967,7 +943,7 @@ function N(e) {
967
943
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
968
944
  BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
969
945
  children: e.blocks ? /* @__PURE__ */ l(w, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
970
- H,
946
+ j,
971
947
  {
972
948
  block: r,
973
949
  linkComponent: e.linkComponent,
@@ -979,8 +955,8 @@ function N(e) {
979
955
  }
980
956
  );
981
957
  }
982
- const Nt = (e) => `builder-columns ${e}-breakpoints`;
983
- function $t(e) {
958
+ const Wt = (e) => `builder-columns ${e}-breakpoints`;
959
+ function Ft(e) {
984
960
  var k, W;
985
961
  const [t, n] = T(
986
962
  () => typeof e.space == "number" ? e.space || 0 : 20
@@ -998,7 +974,7 @@ function $t(e) {
998
974
  const y = d(m), I = t * (i.length - 1) * (y / 100);
999
975
  return `calc(${y}% - ${I}px)`;
1000
976
  }
1001
- function f({
977
+ function h({
1002
978
  stackedStyle: m,
1003
979
  desktopStyle: y
1004
980
  }) {
@@ -1010,20 +986,20 @@ function $t(e) {
1010
986
  }) {
1011
987
  return a === "never" ? y : m;
1012
988
  }
1013
- const [h, v] = T(
989
+ const [f, v] = T(
1014
990
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
1015
991
  );
1016
992
  function g() {
1017
993
  return {
1018
- "--flex-dir": h,
1019
- "--flex-dir-tablet": f({
1020
- stackedStyle: h,
994
+ "--flex-dir": f,
995
+ "--flex-dir-tablet": h({
996
+ stackedStyle: f,
1021
997
  desktopStyle: "row"
1022
998
  })
1023
999
  };
1024
1000
  }
1025
1001
  function S(m) {
1026
- const y = m === 0 ? 0 : t, I = c(m), u = `${y}px`, p = "100%", R = 0;
1002
+ const y = m === 0 ? 0 : t, I = c(m), u = `${y}px`, p = "100%", E = 0;
1027
1003
  return {
1028
1004
  ...{
1029
1005
  display: "flex",
@@ -1037,26 +1013,26 @@ function $t(e) {
1037
1013
  desktopStyle: I
1038
1014
  }),
1039
1015
  "--column-margin-left-mobile": b({
1040
- stackedStyle: R,
1016
+ stackedStyle: E,
1041
1017
  desktopStyle: u
1042
1018
  }),
1043
- "--column-width-tablet": f({
1019
+ "--column-width-tablet": h({
1044
1020
  stackedStyle: p,
1045
1021
  desktopStyle: I
1046
1022
  }),
1047
- "--column-margin-left-tablet": f({
1048
- stackedStyle: R,
1023
+ "--column-margin-left-tablet": h({
1024
+ stackedStyle: E,
1049
1025
  desktopStyle: u
1050
1026
  })
1051
1027
  };
1052
1028
  }
1053
1029
  function x(m) {
1054
1030
  var I, u;
1055
- return Fe(
1031
+ return Ae(
1056
1032
  ((u = (I = e.builderContext.content) == null ? void 0 : I.meta) == null ? void 0 : u.breakpoints) || {}
1057
1033
  )[m].max;
1058
1034
  }
1059
- function E() {
1035
+ function R() {
1060
1036
  const m = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1061
1037
  return `
1062
1038
  @media (max-width: ${x("medium")}px) {
@@ -1089,27 +1065,27 @@ function $t(e) {
1089
1065
  ...m.link ? {
1090
1066
  href: m.link
1091
1067
  } : {},
1092
- [M()]: "builder-column",
1093
- style: Ae(S(y))
1068
+ [U()]: "builder-column",
1069
+ style: Be(S(y))
1094
1070
  };
1095
1071
  }
1096
1072
  return /* @__PURE__ */ V(w, { children: [
1097
1073
  /* @__PURE__ */ V(
1098
1074
  "div",
1099
1075
  {
1100
- className: Nt((k = e.builderBlock) == null ? void 0 : k.id) + " div-3b0f6fe2",
1076
+ className: Wt((k = e.builderBlock) == null ? void 0 : k.id) + " div-3b0f6fe2",
1101
1077
  style: g(),
1102
1078
  children: [
1103
1079
  /* @__PURE__ */ l(
1104
- Y,
1080
+ z,
1105
1081
  {
1106
1082
  id: "builderio-columns",
1107
- styles: E(),
1083
+ styles: R(),
1108
1084
  nonce: e.builderContext.nonce
1109
1085
  }
1110
1086
  ),
1111
1087
  (W = e.columns) == null ? void 0 : W.map((m, y) => /* @__PURE__ */ l(
1112
- le,
1088
+ oe,
1113
1089
  {
1114
1090
  TagName: s(m),
1115
1091
  actionAttributes: {},
@@ -1140,72 +1116,72 @@ function $t(e) {
1140
1116
  }` })
1141
1117
  ] });
1142
1118
  }
1143
- function Dt(e) {
1119
+ function Nt(e) {
1144
1120
  return /* @__PURE__ */ l("span", { children: e.children });
1145
1121
  }
1146
- function be(e) {
1122
+ function fe(e) {
1147
1123
  return e.replace(/http(s)?:/, "");
1148
1124
  }
1149
- function Lt(e = "", t, n) {
1125
+ function $t(e = "", t, n) {
1150
1126
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1151
1127
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1152
1128
  }
1153
- function Ot(e, t) {
1129
+ function Dt(e, t) {
1154
1130
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1155
1131
  return e;
1156
1132
  if (t === "master")
1157
- return be(e);
1133
+ return fe(e);
1158
1134
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1159
1135
  if (n) {
1160
1136
  const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
1161
- return be(`${i[0]}_${a}${o}`);
1137
+ return fe(`${i[0]}_${a}${o}`);
1162
1138
  }
1163
1139
  return null;
1164
1140
  }
1165
- function Q(e) {
1141
+ function J(e) {
1166
1142
  if (!e)
1167
1143
  return e;
1168
1144
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1169
1145
  if (e.match(/builder\.io/)) {
1170
1146
  let n = e;
1171
1147
  const i = Number(e.split("?width=")[1]);
1172
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Lt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1148
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${$t(e, "width", o)} ${o}w`).concat([n]).join(", ");
1173
1149
  }
1174
- 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;
1150
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Dt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1175
1151
  }
1176
- function Ut(e) {
1152
+ function Lt(e) {
1177
1153
  var o, a, r, s, d, c;
1178
1154
  function t() {
1179
- var h;
1155
+ var f;
1180
1156
  const b = e.image || e.src;
1181
1157
  if (!b || // We can auto add srcset for cdn.builder.io and shopify
1182
1158
  // images, otherwise you can supply this prop manually
1183
1159
  !(b.match(/builder\.io/) || b.match(/cdn\.shopify\.com/)))
1184
1160
  return e.srcset;
1185
1161
  if (!e.noWebp) {
1186
- if (e.srcset && ((h = e.image) != null && h.includes("builder.io/api/v1/image"))) {
1162
+ if (e.srcset && ((f = e.image) != null && f.includes("builder.io/api/v1/image"))) {
1187
1163
  if (!e.srcset.includes(e.image.split("?")[0]))
1188
- return console.debug("Removed given srcset"), Q(b);
1164
+ return console.debug("Removed given srcset"), J(b);
1189
1165
  } else if (e.image && !e.srcset)
1190
- return Q(b);
1191
- return Q(b);
1166
+ return J(b);
1167
+ return J(b);
1192
1168
  }
1193
1169
  }
1194
1170
  function n() {
1195
- var f;
1196
- return (f = t == null ? void 0 : t()) != null && f.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
1171
+ var h;
1172
+ return (h = t == null ? void 0 : t()) != null && h.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
1197
1173
  }
1198
1174
  function i() {
1199
- const f = {
1175
+ const h = {
1200
1176
  position: "absolute",
1201
1177
  height: "100%",
1202
1178
  width: "100%",
1203
1179
  left: "0px",
1204
1180
  top: "0px"
1205
1181
  };
1206
- return e.aspectRatio ? f : void 0;
1182
+ return e.aspectRatio ? h : void 0;
1207
1183
  }
1208
- return P(() => {
1184
+ return B(() => {
1209
1185
  }, []), /* @__PURE__ */ V(w, { children: [
1210
1186
  /* @__PURE__ */ V(w, { children: [
1211
1187
  /* @__PURE__ */ V("picture", { children: [
@@ -1260,7 +1236,7 @@ function Ut(e) {
1260
1236
  }` })
1261
1237
  ] });
1262
1238
  }
1263
- function jt(e) {
1239
+ function Ot(e) {
1264
1240
  return /* @__PURE__ */ l(
1265
1241
  "section",
1266
1242
  {
@@ -1281,7 +1257,7 @@ function jt(e) {
1281
1257
  }
1282
1258
  );
1283
1259
  }
1284
- const X = {
1260
+ const G = {
1285
1261
  "@type": "@builder.io/sdk:Element",
1286
1262
  layerName: "Accordion item title",
1287
1263
  responsiveStyles: {
@@ -1310,7 +1286,7 @@ const X = {
1310
1286
  }
1311
1287
  }
1312
1288
  }]
1313
- }, Z = {
1289
+ }, Y = {
1314
1290
  "@type": "@builder.io/sdk:Element",
1315
1291
  layerName: "Accordion item detail",
1316
1292
  responsiveStyles: {
@@ -1341,7 +1317,7 @@ const X = {
1341
1317
  }
1342
1318
  }
1343
1319
  }]
1344
- }, Mt = {
1320
+ }, Ut = {
1345
1321
  name: "Builder:Accordion",
1346
1322
  canHaveChildren: !0,
1347
1323
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1358,19 +1334,19 @@ const X = {
1358
1334
  name: "title",
1359
1335
  type: "uiBlocks",
1360
1336
  hideFromUI: !0,
1361
- defaultValue: [X]
1337
+ defaultValue: [G]
1362
1338
  }, {
1363
1339
  name: "detail",
1364
1340
  type: "uiBlocks",
1365
1341
  hideFromUI: !0,
1366
- defaultValue: [Z]
1342
+ defaultValue: [Y]
1367
1343
  }],
1368
1344
  defaultValue: [{
1369
- title: [X],
1370
- detail: [Z]
1345
+ title: [G],
1346
+ detail: [Y]
1371
1347
  }, {
1372
- title: [X],
1373
- detail: [Z]
1348
+ title: [G],
1349
+ detail: [Y]
1374
1350
  }],
1375
1351
  showIf: (e) => !e.get("useChildrenForItems")
1376
1352
  }, {
@@ -1405,8 +1381,8 @@ const X = {
1405
1381
  builderComponents: !0,
1406
1382
  builderLinkComponent: !0
1407
1383
  }
1408
- }, pe = (e) => e.toString();
1409
- function Ht(e) {
1384
+ }, he = (e) => e.toString();
1385
+ function jt(e) {
1410
1386
  var b;
1411
1387
  const [t, n] = T(() => []);
1412
1388
  function i() {
@@ -1437,54 +1413,54 @@ function Ht(e) {
1437
1413
  Object.entries(v).filter(([g, S]) => S !== void 0)
1438
1414
  );
1439
1415
  }
1440
- function r(h) {
1441
- return `builder-accordion-title builder-accordion-title-${t.includes(h) ? "open" : "closed"}`;
1416
+ function r(f) {
1417
+ return `builder-accordion-title builder-accordion-title-${t.includes(f) ? "open" : "closed"}`;
1442
1418
  }
1443
- function s(h) {
1444
- return `builder-accordion-detail builder-accordion-detail-${t.includes(h) ? "open" : "closed"}`;
1419
+ function s(f) {
1420
+ return `builder-accordion-detail builder-accordion-detail-${t.includes(f) ? "open" : "closed"}`;
1445
1421
  }
1446
1422
  function d() {
1447
- let h = null;
1423
+ let f = null;
1448
1424
  if (e.grid && t.length && document) {
1449
1425
  const g = t[0];
1450
1426
  let x = document.querySelector(
1451
1427
  `.builder-accordion-title[data-index="${g}"]`
1452
1428
  );
1453
- if (h = g, x) {
1454
- let E = x.getBoundingClientRect();
1429
+ if (f = g, x) {
1430
+ let R = x.getBoundingClientRect();
1455
1431
  for (; x = x && x.nextElementSibling; )
1456
1432
  if (x) {
1457
1433
  if (x.classList.contains("builder-accordion-detail"))
1458
1434
  continue;
1459
1435
  const C = x.getBoundingClientRect();
1460
- if (C.left > E.left) {
1436
+ if (C.left > R.left) {
1461
1437
  const k = parseInt(
1462
1438
  x.getAttribute("data-index") || "",
1463
1439
  10
1464
1440
  );
1465
- isNaN(k) || (E = C, h = k);
1441
+ isNaN(k) || (R = C, f = k);
1466
1442
  } else
1467
1443
  break;
1468
1444
  }
1469
1445
  }
1470
1446
  }
1471
- return typeof h == "number" && (h = h + 1), h;
1447
+ return typeof f == "number" && (f = f + 1), f;
1472
1448
  }
1473
1449
  function c() {
1474
- const h = {
1450
+ const f = {
1475
1451
  order: typeof d() == "number" ? d() : void 0,
1476
1452
  ...e.grid && {
1477
1453
  width: "100%"
1478
1454
  }
1479
1455
  };
1480
1456
  return Object.fromEntries(
1481
- Object.entries(h).filter(([v, g]) => g !== void 0)
1457
+ Object.entries(f).filter(([v, g]) => g !== void 0)
1482
1458
  );
1483
1459
  }
1484
- function f(h) {
1485
- t.includes(h) ? n(i() ? [] : t.filter((v) => v !== h)) : n(i() ? [h] : t.concat(h));
1460
+ function h(f) {
1461
+ t.includes(f) ? n(i() ? [] : t.filter((v) => v !== f)) : n(i() ? [f] : t.concat(f));
1486
1462
  }
1487
- return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (b = e.items) == null ? void 0 : b.map((h, v) => /* @__PURE__ */ V(w, { children: [
1463
+ return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (b = e.items) == null ? void 0 : b.map((f, v) => /* @__PURE__ */ V(w, { children: [
1488
1464
  /* @__PURE__ */ l(
1489
1465
  "div",
1490
1466
  {
@@ -1492,14 +1468,14 @@ function Ht(e) {
1492
1468
  style: {
1493
1469
  ...a(),
1494
1470
  width: e.grid ? e.gridRowWidth : void 0,
1495
- order: d() !== null ? pe(v) : pe(v + 1)
1471
+ order: d() !== null ? he(v) : he(v + 1)
1496
1472
  },
1497
1473
  "data-index": v,
1498
- onClick: (g) => f(v),
1474
+ onClick: (g) => h(v),
1499
1475
  children: /* @__PURE__ */ l(
1500
1476
  N,
1501
1477
  {
1502
- blocks: h.title,
1478
+ blocks: f.title,
1503
1479
  path: `items.${v}.title`,
1504
1480
  parent: e.builderBlock.id,
1505
1481
  context: e.builderContext,
@@ -1517,7 +1493,7 @@ function Ht(e) {
1517
1493
  children: /* @__PURE__ */ l(
1518
1494
  N,
1519
1495
  {
1520
- blocks: h.detail,
1496
+ blocks: f.detail,
1521
1497
  path: `items.${v}.detail`,
1522
1498
  parent: e.builderBlock.id,
1523
1499
  context: e.builderContext,
@@ -1529,7 +1505,7 @@ function Ht(e) {
1529
1505
  ) : null
1530
1506
  ] })) });
1531
1507
  }
1532
- const Kt = {
1508
+ const Mt = {
1533
1509
  name: "Core:Button",
1534
1510
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1535
1511
  defaultStyles: {
@@ -1565,7 +1541,7 @@ const Kt = {
1565
1541
  shouldReceiveBuilderProps: {
1566
1542
  builderLinkComponent: !0
1567
1543
  }
1568
- }, qt = {
1544
+ }, _t = {
1569
1545
  // TODO: ways to statically preprocess JSON for references, functions, etc
1570
1546
  name: "Columns",
1571
1547
  isRSC: !0,
@@ -1772,13 +1748,13 @@ const Kt = {
1772
1748
  builderComponents: !0,
1773
1749
  builderLinkComponent: !0
1774
1750
  }
1775
- }, _t = {
1751
+ }, Ht = {
1776
1752
  name: "Fragment",
1777
1753
  static: !0,
1778
1754
  hidden: !0,
1779
1755
  canHaveChildren: !0,
1780
1756
  noWrap: !0
1781
- }, zt = {
1757
+ }, qt = {
1782
1758
  name: "Image",
1783
1759
  static: !0,
1784
1760
  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",
@@ -1800,13 +1776,13 @@ const Kt = {
1800
1776
  e.delete("srcset"), e.delete("noWebp");
1801
1777
  function n(r, s = 6e4) {
1802
1778
  return new Promise((d, c) => {
1803
- const f = document.createElement("img");
1779
+ const h = document.createElement("img");
1804
1780
  let b = !1;
1805
- f.onload = () => {
1806
- b = !0, d(f);
1807
- }, f.addEventListener("error", (h) => {
1808
- console.warn("Image load failed", h.error), c(h.error);
1809
- }), f.src = r, setTimeout(() => {
1781
+ h.onload = () => {
1782
+ b = !0, d(h);
1783
+ }, h.addEventListener("error", (f) => {
1784
+ console.warn("Image load failed", f.error), c(f.error);
1785
+ }), h.src = r, setTimeout(() => {
1810
1786
  b || c(new Error("Image load timed out"));
1811
1787
  }, s);
1812
1788
  });
@@ -1886,7 +1862,7 @@ const Kt = {
1886
1862
  shouldReceiveBuilderProps: {
1887
1863
  builderBlock: !0
1888
1864
  }
1889
- }, Jt = {
1865
+ }, Kt = {
1890
1866
  name: "Core:Section",
1891
1867
  static: !0,
1892
1868
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1925,7 +1901,7 @@ const Kt = {
1925
1901
  }
1926
1902
  }
1927
1903
  }]
1928
- }, Yt = {
1904
+ }, zt = {
1929
1905
  name: "Slot",
1930
1906
  isRSC: !0,
1931
1907
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1943,7 +1919,7 @@ const Kt = {
1943
1919
  builderComponents: !0
1944
1920
  }
1945
1921
  };
1946
- function Gt(e) {
1922
+ function Jt(e) {
1947
1923
  var t, n, i;
1948
1924
  return /* @__PURE__ */ l(
1949
1925
  "div",
@@ -1967,7 +1943,7 @@ function Gt(e) {
1967
1943
  }
1968
1944
  );
1969
1945
  }
1970
- const Qt = {
1946
+ const Gt = {
1971
1947
  name: "Symbol",
1972
1948
  noWrap: !0,
1973
1949
  static: !0,
@@ -2006,7 +1982,7 @@ const Qt = {
2006
1982
  builderComponents: !0,
2007
1983
  builderLinkComponent: !0
2008
1984
  }
2009
- }, ee = {
1985
+ }, Q = {
2010
1986
  "@type": "@builder.io/sdk:Element",
2011
1987
  responsiveStyles: {
2012
1988
  large: {
@@ -2028,7 +2004,7 @@ const Qt = {
2028
2004
  text: "New tab"
2029
2005
  }
2030
2006
  }
2031
- }, te = {
2007
+ }, X = {
2032
2008
  "@type": "@builder.io/sdk:Element",
2033
2009
  responsiveStyles: {
2034
2010
  large: {
@@ -2044,7 +2020,7 @@ const Qt = {
2044
2020
  text: "New tab content "
2045
2021
  }
2046
2022
  }
2047
- }, Xt = {
2023
+ }, Yt = {
2048
2024
  name: "Builder: Tabs",
2049
2025
  inputs: [{
2050
2026
  name: "tabs",
@@ -2054,16 +2030,16 @@ const Qt = {
2054
2030
  name: "label",
2055
2031
  type: "uiBlocks",
2056
2032
  hideFromUI: !0,
2057
- defaultValue: [ee]
2033
+ defaultValue: [Q]
2058
2034
  }, {
2059
2035
  name: "content",
2060
2036
  type: "uiBlocks",
2061
2037
  hideFromUI: !0,
2062
- defaultValue: [te]
2038
+ defaultValue: [X]
2063
2039
  }],
2064
2040
  defaultValue: [{
2065
2041
  label: [{
2066
- ...ee,
2042
+ ...Q,
2067
2043
  component: {
2068
2044
  name: "Text",
2069
2045
  options: {
@@ -2072,7 +2048,7 @@ const Qt = {
2072
2048
  }
2073
2049
  }],
2074
2050
  content: [{
2075
- ...te,
2051
+ ...X,
2076
2052
  component: {
2077
2053
  name: "Text",
2078
2054
  options: {
@@ -2082,7 +2058,7 @@ const Qt = {
2082
2058
  }]
2083
2059
  }, {
2084
2060
  label: [{
2085
- ...ee,
2061
+ ...Q,
2086
2062
  component: {
2087
2063
  name: "Text",
2088
2064
  options: {
@@ -2091,7 +2067,7 @@ const Qt = {
2091
2067
  }
2092
2068
  }],
2093
2069
  content: [{
2094
- ...te,
2070
+ ...X,
2095
2071
  component: {
2096
2072
  name: "Text",
2097
2073
  options: {
@@ -2148,7 +2124,7 @@ const Qt = {
2148
2124
  builderLinkComponent: !0
2149
2125
  }
2150
2126
  };
2151
- function Zt(e) {
2127
+ function Qt(e) {
2152
2128
  var a;
2153
2129
  const [t, n] = T(
2154
2130
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
@@ -2207,7 +2183,7 @@ function Zt(e) {
2207
2183
  ) }) : null
2208
2184
  ] });
2209
2185
  }
2210
- const en = {
2186
+ const Xt = {
2211
2187
  shouldReceiveBuilderProps: {
2212
2188
  builderBlock: !1,
2213
2189
  builderContext: !0
@@ -2230,7 +2206,7 @@ const en = {
2230
2206
  textAlign: "center"
2231
2207
  }
2232
2208
  };
2233
- function tn(e) {
2209
+ function Zt(e) {
2234
2210
  function t() {
2235
2211
  var s;
2236
2212
  const n = e.builderContext, {
@@ -2241,13 +2217,12 @@ function tn(e) {
2241
2217
  } = n;
2242
2218
  return String(((s = e.text) == null ? void 0 : s.toString()) || "").replace(
2243
2219
  /{{([^}]+)}}/g,
2244
- (d, c) => U({
2220
+ (d, c) => L({
2245
2221
  code: c,
2246
2222
  context: i,
2247
2223
  localState: o,
2248
2224
  rootState: a,
2249
- rootSetState: r,
2250
- enableCache: !1
2225
+ rootSetState: r
2251
2226
  })
2252
2227
  );
2253
2228
  }
@@ -2262,7 +2237,7 @@ function tn(e) {
2262
2237
  }
2263
2238
  );
2264
2239
  }
2265
- const nn = {
2240
+ const en = {
2266
2241
  name: "Custom Code",
2267
2242
  static: !0,
2268
2243
  requiredPermissions: ["editCode"],
@@ -2285,9 +2260,9 @@ const nn = {
2285
2260
  advanced: !0
2286
2261
  }]
2287
2262
  };
2288
- function on(e) {
2289
- const t = D(null), [n, i] = T(() => []), [o, a] = T(() => []);
2290
- return P(() => {
2263
+ function tn(e) {
2264
+ const t = $(null), [n, i] = T(() => []), [o, a] = T(() => []);
2265
+ return B(() => {
2291
2266
  var s;
2292
2267
  if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
2293
2268
  return;
@@ -2298,8 +2273,8 @@ function on(e) {
2298
2273
  if (n.includes(c.src))
2299
2274
  continue;
2300
2275
  n.push(c.src);
2301
- const f = document.createElement("script");
2302
- f.async = !0, f.src = c.src, document.head.appendChild(f);
2276
+ const h = document.createElement("script");
2277
+ h.async = !0, h.src = c.src, document.head.appendChild(h);
2303
2278
  } else if (!c.type || [
2304
2279
  "text/javascript",
2305
2280
  "application/javascript",
@@ -2309,8 +2284,8 @@ function on(e) {
2309
2284
  continue;
2310
2285
  try {
2311
2286
  o.push(c.innerText), new Function(c.innerText)();
2312
- } catch (f) {
2313
- console.warn("`CustomCode`: Error running script:", f);
2287
+ } catch (h) {
2288
+ console.warn("`CustomCode`: Error running script:", h);
2314
2289
  }
2315
2290
  }
2316
2291
  }
@@ -2323,7 +2298,7 @@ function on(e) {
2323
2298
  }
2324
2299
  );
2325
2300
  }
2326
- const an = {
2301
+ const nn = {
2327
2302
  name: "Embed",
2328
2303
  static: !0,
2329
2304
  inputs: [{
@@ -2338,28 +2313,28 @@ const an = {
2338
2313
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2339
2314
  hideFromUI: !0
2340
2315
  }]
2341
- }, rn = ["text/javascript", "application/javascript", "application/ecmascript"], ln = (e) => rn.includes(e.type);
2342
- function sn(e) {
2343
- const t = D(null), [n, i] = T(() => []), [o, a] = T(() => []), [r, s] = T(() => !1);
2316
+ }, on = ["text/javascript", "application/javascript", "application/ecmascript"], an = (e) => on.includes(e.type);
2317
+ function rn(e) {
2318
+ const t = $(null), [n, i] = T(() => []), [o, a] = T(() => []), [r, s] = T(() => !1);
2344
2319
  function d() {
2345
2320
  if (!t.current || !t.current.getElementsByTagName)
2346
2321
  return;
2347
2322
  const c = t.current.getElementsByTagName("script");
2348
- for (let f = 0; f < c.length; f++) {
2349
- const b = c[f];
2323
+ for (let h = 0; h < c.length; h++) {
2324
+ const b = c[h];
2350
2325
  if (b.src && !n.includes(b.src)) {
2351
2326
  n.push(b.src);
2352
- const h = document.createElement("script");
2353
- h.async = !0, h.src = b.src, document.head.appendChild(h);
2354
- } else if (ln(b) && !o.includes(b.innerText))
2327
+ const f = document.createElement("script");
2328
+ f.async = !0, f.src = b.src, document.head.appendChild(f);
2329
+ } else if (an(b) && !o.includes(b.innerText))
2355
2330
  try {
2356
2331
  o.push(b.innerText), new Function(b.innerText)();
2357
- } catch (h) {
2358
- console.warn("`Embed`: Error running script:", h);
2332
+ } catch (f) {
2333
+ console.warn("`Embed`: Error running script:", f);
2359
2334
  }
2360
2335
  }
2361
2336
  }
2362
- return P(() => {
2337
+ return B(() => {
2363
2338
  t.current && !r && (s(!0), d());
2364
2339
  }, [t.current, r]), /* @__PURE__ */ l(
2365
2340
  "div",
@@ -2370,7 +2345,7 @@ function sn(e) {
2370
2345
  }
2371
2346
  );
2372
2347
  }
2373
- const cn = {
2348
+ const ln = {
2374
2349
  name: "Form:Form",
2375
2350
  // editableTags: ['builder-form-error']
2376
2351
  defaults: {
@@ -2607,16 +2582,13 @@ const cn = {
2607
2582
  builderComponents: !0,
2608
2583
  builderLinkComponent: !0
2609
2584
  }
2610
- }, dn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], un = () => {
2585
+ }, sn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], cn = () => {
2611
2586
  const e = process.env.NODE_ENV || "production";
2612
- return dn.includes(e) ? e : "production";
2613
- }, mn = (e, t, n) => {
2614
- const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
2615
- return i === void 0 || i === e ? n : i;
2587
+ return sn.includes(e) ? e : "production";
2616
2588
  };
2617
- function fn(e) {
2618
- var b, h;
2619
- const t = D(null), [n, i] = T(() => "unsubmitted"), [o, a] = T(() => null), [r, s] = T(() => "");
2589
+ function dn(e) {
2590
+ var b, f;
2591
+ const t = $(null), [n, i] = T(() => "unsubmitted"), [o, a] = T(() => null), [r, s] = T(() => "");
2620
2592
  function d(v) {
2621
2593
  var S, x;
2622
2594
  const g = {
@@ -2628,7 +2600,7 @@ function fn(e) {
2628
2600
  function c() {
2629
2601
  return F() && e.previewState || n;
2630
2602
  }
2631
- function f(v) {
2603
+ function h(v) {
2632
2604
  var S;
2633
2605
  const g = e.sendWithJs || e.sendSubmissionsTo === "email";
2634
2606
  if (e.sendSubmissionsTo === "zapier")
@@ -2639,29 +2611,29 @@ function fn(e) {
2639
2611
  return;
2640
2612
  }
2641
2613
  v.preventDefault();
2642
- const x = v.currentTarget || v.target, E = e.customHeaders || {};
2614
+ const x = v.currentTarget || v.target, R = e.customHeaders || {};
2643
2615
  let C;
2644
2616
  const k = new FormData(x), W = Array.from(x.querySelectorAll("input,select,textarea")).filter((u) => !!u.name).map((u) => {
2645
2617
  let p;
2646
- const R = u.name;
2618
+ const E = u.name;
2647
2619
  if (u instanceof HTMLInputElement)
2648
2620
  if (u.type === "radio") {
2649
2621
  if (u.checked)
2650
2622
  return p = u.name, {
2651
- key: R,
2623
+ key: E,
2652
2624
  value: p
2653
2625
  };
2654
2626
  } else if (u.type === "checkbox")
2655
2627
  p = u.checked;
2656
2628
  else if (u.type === "number" || u.type === "range") {
2657
- const B = u.valueAsNumber;
2658
- isNaN(B) || (p = B);
2629
+ const P = u.valueAsNumber;
2630
+ isNaN(P) || (p = P);
2659
2631
  } else
2660
2632
  u.type === "file" ? p = u.files : p = u.value;
2661
2633
  else
2662
2634
  p = u.value;
2663
2635
  return {
2664
- key: R,
2636
+ key: E,
2665
2637
  value: p
2666
2638
  };
2667
2639
  });
@@ -2672,35 +2644,35 @@ function fn(e) {
2672
2644
  C = k;
2673
2645
  else {
2674
2646
  const u = {};
2675
- Array.from(W).forEach(({ value: p, key: R }) => {
2676
- we(u, R, p);
2647
+ Array.from(W).forEach(({ value: p, key: E }) => {
2648
+ Ce(u, E, p);
2677
2649
  }), C = JSON.stringify(u);
2678
2650
  }
2679
- m && m !== "multipart/form-data" && (g && ((S = e.action) != null && S.includes("zapier.com")) || (E["content-type"] = m));
2651
+ m && m !== "multipart/form-data" && (g && ((S = e.action) != null && S.includes("zapier.com")) || (R["content-type"] = m));
2680
2652
  const y = new CustomEvent("presubmit", { detail: { body: C } });
2681
2653
  if (t.current && (t.current.dispatchEvent(y), y.defaultPrevented))
2682
2654
  return;
2683
2655
  i("sending");
2684
- const I = `${un() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2656
+ const I = `${cn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2685
2657
  e.sendSubmissionsToEmail || ""
2686
2658
  )}&name=${encodeURIComponent(e.name || "")}`;
2687
2659
  fetch(
2688
2660
  e.sendSubmissionsTo === "email" ? I : e.action,
2689
- { body: C, headers: E, method: e.method || "post" }
2661
+ { body: C, headers: R, method: e.method || "post" }
2690
2662
  ).then(
2691
2663
  async (u) => {
2692
2664
  let p;
2693
- const R = u.headers.get("content-type");
2694
- if (R && R.indexOf("application/json") !== -1 ? p = await u.json() : p = await u.text(), !u.ok && e.errorMessagePath) {
2695
- let B = mn(p, e.errorMessagePath);
2696
- B && (typeof B != "string" && (B = JSON.stringify(B)), s(B), d({ formErrorMessage: B }));
2665
+ const E = u.headers.get("content-type");
2666
+ if (E && E.indexOf("application/json") !== -1 ? p = await u.json() : p = await u.text(), !u.ok && e.errorMessagePath) {
2667
+ let P = Ie(p, e.errorMessagePath);
2668
+ P && (typeof P != "string" && (P = JSON.stringify(P)), s(P), d({ formErrorMessage: P }));
2697
2669
  }
2698
2670
  if (a(p), i(u.ok ? "success" : "error"), u.ok) {
2699
- const B = new CustomEvent("submit:success", {
2671
+ const P = new CustomEvent("submit:success", {
2700
2672
  detail: { res: u, body: p }
2701
2673
  });
2702
2674
  if (t.current) {
2703
- if (t.current.dispatchEvent(B), B.defaultPrevented)
2675
+ if (t.current.dispatchEvent(P), P.defaultPrevented)
2704
2676
  return;
2705
2677
  e.resetFormOnSubmit !== !1 && t.current.reset();
2706
2678
  }
@@ -2733,11 +2705,11 @@ function fn(e) {
2733
2705
  action: !e.sendWithJs && e.action,
2734
2706
  method: e.method,
2735
2707
  name: e.name,
2736
- onSubmit: (v) => f(v),
2708
+ onSubmit: (v) => h(v),
2737
2709
  ...e.attributes,
2738
2710
  children: [
2739
- e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(w, { children: (h = (b = e.builderBlock) == null ? void 0 : b.children) == null ? void 0 : h.map((v, g) => /* @__PURE__ */ l(
2740
- H,
2711
+ e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(w, { children: (f = (b = e.builderBlock) == null ? void 0 : b.children) == null ? void 0 : f.map((v, g) => /* @__PURE__ */ l(
2712
+ j,
2741
2713
  {
2742
2714
  block: v,
2743
2715
  context: e.builderContext,
@@ -2779,7 +2751,7 @@ function fn(e) {
2779
2751
  " "
2780
2752
  ] });
2781
2753
  }
2782
- const hn = {
2754
+ const un = {
2783
2755
  name: "Form:Input",
2784
2756
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2785
2757
  inputs: [
@@ -2831,8 +2803,8 @@ const hn = {
2831
2803
  borderColor: "#ccc"
2832
2804
  }
2833
2805
  };
2834
- function gn(e) {
2835
- return /* @__PURE__ */ Ie(
2806
+ function mn(e) {
2807
+ return /* @__PURE__ */ ke(
2836
2808
  "input",
2837
2809
  {
2838
2810
  ...e.attributes,
@@ -2846,7 +2818,7 @@ function gn(e) {
2846
2818
  }
2847
2819
  );
2848
2820
  }
2849
- const bn = {
2821
+ const fn = {
2850
2822
  name: "Form:Select",
2851
2823
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2852
2824
  defaultStyles: {
@@ -2889,9 +2861,9 @@ const bn = {
2889
2861
  static: !0,
2890
2862
  noWrap: !0
2891
2863
  };
2892
- function pn(e) {
2864
+ function hn(e) {
2893
2865
  var t;
2894
- return /* @__PURE__ */ Ie(
2866
+ return /* @__PURE__ */ ke(
2895
2867
  "select",
2896
2868
  {
2897
2869
  ...e.attributes,
@@ -2904,7 +2876,7 @@ function pn(e) {
2904
2876
  (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2905
2877
  );
2906
2878
  }
2907
- const yn = {
2879
+ const gn = {
2908
2880
  name: "Form:SubmitButton",
2909
2881
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2910
2882
  defaultStyles: {
@@ -2930,10 +2902,10 @@ const yn = {
2930
2902
  // TODO: defaultChildren
2931
2903
  // canHaveChildren: true,
2932
2904
  };
2933
- function xn(e) {
2905
+ function bn(e) {
2934
2906
  return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
2935
2907
  }
2936
- const vn = {
2908
+ const pn = {
2937
2909
  name: "Form:TextArea",
2938
2910
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
2939
2911
  inputs: [{
@@ -2970,7 +2942,7 @@ const vn = {
2970
2942
  static: !0,
2971
2943
  noWrap: !0
2972
2944
  };
2973
- function Sn(e) {
2945
+ function yn(e) {
2974
2946
  return /* @__PURE__ */ l(
2975
2947
  "textarea",
2976
2948
  {
@@ -2983,7 +2955,7 @@ function Sn(e) {
2983
2955
  }
2984
2956
  );
2985
2957
  }
2986
- const kn = {
2958
+ const xn = {
2987
2959
  // friendlyName?
2988
2960
  name: "Raw:Img",
2989
2961
  hideFromInsertMenu: !0,
@@ -2998,7 +2970,7 @@ const kn = {
2998
2970
  noWrap: !0,
2999
2971
  static: !0
3000
2972
  };
3001
- function Cn(e) {
2973
+ function vn(e) {
3002
2974
  return /* @__PURE__ */ l(
3003
2975
  "img",
3004
2976
  {
@@ -3013,7 +2985,7 @@ function Cn(e) {
3013
2985
  F() && e.imgSrc || "default-key"
3014
2986
  );
3015
2987
  }
3016
- const Tn = {
2988
+ const Sn = {
3017
2989
  name: "Video",
3018
2990
  canHaveChildren: !0,
3019
2991
  defaultStyles: {
@@ -3098,7 +3070,7 @@ const Tn = {
3098
3070
  builderBlock: !0
3099
3071
  }
3100
3072
  };
3101
- function In(e) {
3073
+ function kn(e) {
3102
3074
  var i, o, a, r, s, d, c;
3103
3075
  function t() {
3104
3076
  return {
@@ -3199,64 +3171,64 @@ function In(e) {
3199
3171
  }
3200
3172
  );
3201
3173
  }
3202
- const wn = () => [{
3203
- component: on,
3204
- ...nn
3205
- }, {
3206
- component: sn,
3207
- ...an
3174
+ const Cn = () => [{
3175
+ component: tn,
3176
+ ...en
3208
3177
  }, {
3209
- component: fn,
3210
- ...cn
3178
+ component: rn,
3179
+ ...nn
3211
3180
  }, {
3212
- component: gn,
3213
- ...hn
3181
+ component: dn,
3182
+ ...ln
3214
3183
  }, {
3215
- component: xn,
3216
- ...yn
3184
+ component: mn,
3185
+ ...un
3217
3186
  }, {
3218
- component: pn,
3219
- ...bn
3187
+ component: bn,
3188
+ ...gn
3220
3189
  }, {
3221
- component: Sn,
3222
- ...vn
3190
+ component: hn,
3191
+ ...fn
3223
3192
  }, {
3224
- component: Cn,
3225
- ...kn
3193
+ component: yn,
3194
+ ...pn
3226
3195
  }, {
3227
- component: In,
3228
- ...Tn
3229
- }], ye = () => [{
3230
- component: tt,
3231
- ...Kt
3196
+ component: vn,
3197
+ ...xn
3232
3198
  }, {
3233
- component: $t,
3234
- ...qt
3199
+ component: kn,
3200
+ ...Sn
3201
+ }], ge = () => [{
3202
+ component: Qe,
3203
+ ...Mt
3235
3204
  }, {
3236
- component: Dt,
3205
+ component: Ft,
3237
3206
  ..._t
3238
3207
  }, {
3239
- component: Ut,
3240
- ...zt
3208
+ component: Nt,
3209
+ ...Ht
3241
3210
  }, {
3242
- component: jt,
3243
- ...Jt
3211
+ component: Lt,
3212
+ ...qt
3244
3213
  }, {
3245
- component: Gt,
3246
- ...Yt
3214
+ component: Ot,
3215
+ ...Kt
3247
3216
  }, {
3248
- component: Yn,
3249
- ...Qt
3217
+ component: Jt,
3218
+ ...zt
3250
3219
  }, {
3251
- component: tn,
3252
- ...en
3220
+ component: Kn,
3221
+ ...Gt
3253
3222
  }, {
3254
3223
  component: Zt,
3255
3224
  ...Xt
3256
3225
  }, {
3257
- component: Ht,
3258
- ...Mt
3259
- }, ...wn()], Rn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3226
+ component: Qt,
3227
+ ...Yt
3228
+ }, {
3229
+ component: jt,
3230
+ ...Ut
3231
+ }, ...Cn()], Tn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3260
3232
  function getAndSetVariantId() {
3261
3233
  function setCookie(name, value, days) {
3262
3234
  let expires = '';
@@ -3312,7 +3284,7 @@ const wn = () => [{
3312
3284
  }).join('');
3313
3285
  styleEl.innerHTML = newStyleStr;
3314
3286
  }
3315
- }`, En = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3287
+ }`, In = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3316
3288
  if (!navigator.cookieEnabled) {
3317
3289
  return;
3318
3290
  }
@@ -3346,26 +3318,26 @@ const wn = () => [{
3346
3318
  thisScriptEl?.remove();
3347
3319
  }
3348
3320
  return;
3349
- }`, $e = "builderIoAbTest", De = "builderIoRenderContent", q = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3321
+ }`, Fe = "builderIoAbTest", Ne = "builderIoRenderContent", _ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3350
3322
  ...t,
3351
3323
  testVariationId: t.id,
3352
3324
  id: e == null ? void 0 : e.id
3353
- })), Bn = ({
3325
+ })), wn = ({
3354
3326
  canTrack: e,
3355
3327
  content: t
3356
- }) => !(!(q(t).length > 0) || !e || _()), Pn = (e) => e === "react" || e === "reactNative", Le = Pn(L), Vn = () => `
3357
- window.${$e} = ${Rn}
3358
- window.${De} = ${En}
3359
- `, An = (e, t) => `
3360
- window.${$e}(
3361
- "${t}",${JSON.stringify(e)}, ${Le}
3362
- )`, Wn = ({
3328
+ }) => !(!(_(t).length > 0) || !e || H()), En = (e) => e === "react" || e === "reactNative", $e = En(D), Rn = () => `
3329
+ window.${Fe} = ${Tn}
3330
+ window.${Ne} = ${In}
3331
+ `, Pn = (e, t) => `
3332
+ window.${Fe}(
3333
+ "${t}",${JSON.stringify(e)}, ${$e}
3334
+ )`, Bn = ({
3363
3335
  contentId: e,
3364
3336
  variationId: t
3365
- }) => `window.${De}(
3366
- "${t}", "${e}", ${Le}
3337
+ }) => `window.${Ne}(
3338
+ "${t}", "${e}", ${$e}
3367
3339
  )`;
3368
- function oe(e) {
3340
+ function te(e) {
3369
3341
  return /* @__PURE__ */ l(
3370
3342
  "script",
3371
3343
  {
@@ -3375,10 +3347,10 @@ function oe(e) {
3375
3347
  }
3376
3348
  );
3377
3349
  }
3378
- function xe(e) {
3350
+ function be(e) {
3379
3351
  return Math.round(e * 1e3) / 1e3;
3380
3352
  }
3381
- const Fn = (e, t, n = !0) => {
3353
+ const Vn = (e, t, n = !0) => {
3382
3354
  if (!(e instanceof HTMLElement))
3383
3355
  return null;
3384
3356
  let i = n ? e : e.parentElement;
@@ -3389,35 +3361,35 @@ const Fn = (e, t, n = !0) => {
3389
3361
  return i;
3390
3362
  } while (i = i.parentElement);
3391
3363
  return null;
3392
- }, Nn = (e) => Fn(e, (t) => {
3364
+ }, An = (e) => Vn(e, (t) => {
3393
3365
  const n = t.getAttribute("builder-id") || t.id;
3394
3366
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3395
- }), ve = ({
3367
+ }), pe = ({
3396
3368
  event: e,
3397
3369
  target: t
3398
3370
  }) => {
3399
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = xe(i / n.width), r = xe(o / n.height);
3371
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = be(i / n.width), r = be(o / n.height);
3400
3372
  return {
3401
3373
  x: a,
3402
3374
  y: r
3403
3375
  };
3404
- }, $n = (e) => {
3405
- const t = e.target, n = t && Nn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3376
+ }, Wn = (e) => {
3377
+ const t = e.target, n = t && An(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3406
3378
  return {
3407
3379
  targetBuilderElement: i || void 0,
3408
3380
  metadata: {
3409
- targetOffset: t ? ve({
3381
+ targetOffset: t ? pe({
3410
3382
  event: e,
3411
3383
  target: t
3412
3384
  }) : void 0,
3413
- builderTargetOffset: n ? ve({
3385
+ builderTargetOffset: n ? pe({
3414
3386
  event: e,
3415
3387
  target: n
3416
3388
  }) : void 0,
3417
3389
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3418
3390
  }
3419
3391
  };
3420
- }, Dn = (e) => {
3392
+ }, Fn = (e) => {
3421
3393
  var a, r;
3422
3394
  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;
3423
3395
  let o = "";
@@ -3443,15 +3415,15 @@ font-weight: ${s};
3443
3415
  `.trim());
3444
3416
  }
3445
3417
  return o;
3446
- }, Ln = ({
3418
+ }, Nn = ({
3447
3419
  customFonts: e
3448
3420
  }) => {
3449
3421
  var t;
3450
- return ((t = e == null ? void 0 : e.map((n) => Dn(n))) == null ? void 0 : t.join(" ")) || "";
3451
- }, On = ({
3422
+ return ((t = e == null ? void 0 : e.map((n) => Fn(n))) == null ? void 0 : t.join(" ")) || "";
3423
+ }, $n = ({
3452
3424
  cssCode: e,
3453
3425
  contentId: t
3454
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Un = `
3426
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Dn = `
3455
3427
  .builder-button {
3456
3428
  all: unset;
3457
3429
  }
@@ -3468,10 +3440,10 @@ font-weight: ${s};
3468
3440
  text-align: inherit;
3469
3441
  font-family: inherit;
3470
3442
  }
3471
- `, jn = (e) => e ? "" : Un, Mn = (e) => `variant-${e}`;
3472
- function Hn(e) {
3443
+ `, Ln = (e) => e ? "" : Dn, On = (e) => `variant-${e}`;
3444
+ function Un(e) {
3473
3445
  var C, k, W;
3474
- const t = D(null);
3446
+ const t = $(null);
3475
3447
  function n(m) {
3476
3448
  var I, u;
3477
3449
  const y = {
@@ -3484,7 +3456,7 @@ function Hn(e) {
3484
3456
  }));
3485
3457
  }
3486
3458
  function i(m) {
3487
- var I, u, p, R, B;
3459
+ var I, u, p, E, P;
3488
3460
  const y = {
3489
3461
  ...e.builderContextSignal.content,
3490
3462
  ...m,
@@ -3495,7 +3467,7 @@ function Hn(e) {
3495
3467
  meta: {
3496
3468
  ...(u = e.builderContextSignal.content) == null ? void 0 : u.meta,
3497
3469
  ...m == null ? void 0 : m.meta,
3498
- breakpoints: ((p = m == null ? void 0 : m.meta) == null ? void 0 : p.breakpoints) || ((B = (R = e.builderContextSignal.content) == null ? void 0 : R.meta) == null ? void 0 : B.breakpoints)
3470
+ breakpoints: ((p = m == null ? void 0 : m.meta) == null ? void 0 : p.breakpoints) || ((P = (E = e.builderContextSignal.content) == null ? void 0 : E.meta) == null ? void 0 : P.breakpoints)
3499
3471
  }
3500
3472
  };
3501
3473
  e.setBuilderContextSignal((A) => ({
@@ -3513,7 +3485,7 @@ function Hn(e) {
3513
3485
  () => e.contentWrapper || "div"
3514
3486
  );
3515
3487
  function s(m) {
3516
- return qe({
3488
+ return je({
3517
3489
  model: e.model,
3518
3490
  trustedHosts: e.trustedHosts,
3519
3491
  callbacks: {
@@ -3527,7 +3499,7 @@ function Hn(e) {
3527
3499
  });
3528
3500
  },
3529
3501
  animation: (y) => {
3530
- Pe(y);
3502
+ Re(y);
3531
3503
  },
3532
3504
  contentUpdate: (y) => {
3533
3505
  i(y);
@@ -3535,51 +3507,50 @@ function Hn(e) {
3535
3507
  }
3536
3508
  })(m);
3537
3509
  }
3538
- const [d, c] = T(() => ({})), [f, b] = T(() => ({})), [h, v] = T(() => !1);
3510
+ const [d, c] = T(() => ({})), [h, b] = T(() => ({})), [f, v] = T(() => !1);
3539
3511
  function g(m) {
3540
3512
  var y, I;
3541
3513
  if (e.builderContextSignal.content) {
3542
3514
  const u = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, p = (I = e.builderContextSignal.content) == null ? void 0 : I.id;
3543
- de({
3515
+ le({
3544
3516
  type: "click",
3545
- canTrack: z(e.canTrack),
3517
+ canTrack: q(e.canTrack),
3546
3518
  contentId: p,
3547
3519
  apiKey: e.apiKey,
3548
3520
  variationId: u !== p ? u : void 0,
3549
- ...$n(m),
3550
- unique: !h
3521
+ ...Wn(m),
3522
+ unique: !f
3551
3523
  });
3552
3524
  }
3553
- h || v(!0);
3525
+ f || v(!0);
3554
3526
  }
3555
3527
  function S() {
3556
3528
  var y, I, u;
3557
3529
  const m = (u = (I = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : I.httpRequests) != null ? u : {};
3558
- Object.entries(m).forEach(([p, R]) => {
3559
- if (!R || f[p] || d[p] && !F())
3530
+ Object.entries(m).forEach(([p, E]) => {
3531
+ if (!E || h[p] || d[p] && !F())
3560
3532
  return;
3561
- f[p] = !0;
3562
- const B = R.replace(
3533
+ h[p] = !0;
3534
+ const P = E.replace(
3563
3535
  /{{([^}]+)}}/g,
3564
- (A, Oe) => String(
3565
- U({
3566
- code: Oe,
3536
+ (A, De) => String(
3537
+ L({
3538
+ code: De,
3567
3539
  context: e.context || {},
3568
3540
  localState: void 0,
3569
3541
  rootState: e.builderContextSignal.rootState,
3570
- rootSetState: e.builderContextSignal.rootSetState,
3571
- enableCache: !0
3542
+ rootSetState: e.builderContextSignal.rootSetState
3572
3543
  })
3573
3544
  )
3574
3545
  );
3575
- fetch(B).then((A) => A.json()).then((A) => {
3546
+ fetch(P).then((A) => A.json()).then((A) => {
3576
3547
  n({
3577
3548
  [p]: A
3578
3549
  }), d[p] = !0;
3579
3550
  }).catch((A) => {
3580
- console.error("error fetching dynamic data", R, A);
3551
+ console.error("error fetching dynamic data", E, A);
3581
3552
  }).finally(() => {
3582
- f[p] = !1;
3553
+ h[p] = !1;
3583
3554
  });
3584
3555
  });
3585
3556
  }
@@ -3589,7 +3560,7 @@ function Hn(e) {
3589
3560
  "builder:component:stateChange",
3590
3561
  {
3591
3562
  detail: {
3592
- state: re(e.builderContextSignal.rootState),
3563
+ state: ie(e.builderContextSignal.rootState),
3593
3564
  ref: {
3594
3565
  name: e.model
3595
3566
  }
@@ -3598,11 +3569,11 @@ function Hn(e) {
3598
3569
  )
3599
3570
  );
3600
3571
  }
3601
- const E = D(!1);
3602
- return E.current || (S(), x(), E.current = !0), P(() => {
3572
+ const R = $(!1);
3573
+ return R.current || (S(), x(), R.current = !0), B(() => {
3603
3574
  var m, y;
3604
- if (_()) {
3605
- if (F() && (window.addEventListener("message", s), Me(), He({
3575
+ if (H()) {
3576
+ if (F() && (window.addEventListener("message", s), Le(), Oe({
3606
3577
  ...e.locale ? {
3607
3578
  locale: e.locale
3608
3579
  } : {},
@@ -3615,27 +3586,27 @@ function Hn(e) {
3615
3586
  }), Object.values(
3616
3587
  e.builderContextSignal.componentInfos
3617
3588
  ).forEach((u) => {
3618
- var R;
3619
- const p = Ke(u);
3620
- (R = window.parent) == null || R.postMessage(p, "*");
3589
+ var E;
3590
+ const p = Ue(u);
3591
+ (E = window.parent) == null || E.postMessage(p, "*");
3621
3592
  }), window.addEventListener(
3622
3593
  "builder:component:stateChangeListenerActivated",
3623
3594
  x
3624
- )), e.builderContextSignal.content && z(e.canTrack)) {
3625
- const u = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId, p = (y = e.builderContextSignal.content) == null ? void 0 : y.id, R = e.apiKey;
3626
- de({
3595
+ )), e.builderContextSignal.content && q(e.canTrack)) {
3596
+ const u = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId, p = (y = e.builderContextSignal.content) == null ? void 0 : y.id, E = e.apiKey;
3597
+ le({
3627
3598
  type: "impression",
3628
3599
  canTrack: !0,
3629
3600
  contentId: p,
3630
- apiKey: R,
3601
+ apiKey: E,
3631
3602
  variationId: u !== p ? u : void 0
3632
3603
  });
3633
3604
  }
3634
- if (ke() && !F()) {
3635
- const u = new URL(location.href).searchParams, p = u.get("builder.preview"), R = u.get(
3605
+ if (xe() && !F()) {
3606
+ const u = new URL(location.href).searchParams, p = u.get("builder.preview"), E = u.get(
3636
3607
  `builder.overrides.${p}`
3637
- ), B = u.get("apiKey") || u.get("builder.space");
3638
- p === e.model && B === e.apiKey && (!e.content || R === e.content.id) && Ce({
3608
+ ), P = u.get("apiKey") || u.get("builder.space");
3609
+ p === e.model && P === e.apiKey && (!e.content || E === e.content.id) && ve({
3639
3610
  model: e.model,
3640
3611
  apiKey: e.apiKey,
3641
3612
  apiVersion: e.builderContextSignal.apiVersion
@@ -3644,29 +3615,29 @@ function Hn(e) {
3644
3615
  });
3645
3616
  }
3646
3617
  }
3647
- }, []), P(() => {
3618
+ }, []), B(() => {
3648
3619
  e.content && i(e.content);
3649
- }, [e.content]), P(() => {
3620
+ }, [e.content]), B(() => {
3650
3621
  x();
3651
- }, [e.builderContextSignal.rootState]), P(() => {
3622
+ }, [e.builderContextSignal.rootState]), B(() => {
3652
3623
  e.data && n(e.data);
3653
- }, [e.data]), P(() => {
3624
+ }, [e.data]), B(() => {
3654
3625
  e.locale && n({
3655
3626
  locale: e.locale
3656
3627
  });
3657
- }, [e.locale]), P(() => () => {
3658
- _() && (window.removeEventListener("message", s), window.removeEventListener(
3628
+ }, [e.locale]), B(() => () => {
3629
+ H() && (window.removeEventListener("message", s), window.removeEventListener(
3659
3630
  "builder:component:stateChangeListenerActivated",
3660
3631
  x
3661
3632
  ));
3662
- }, []), /* @__PURE__ */ l(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
3633
+ }, []), /* @__PURE__ */ l(ae.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
3663
3634
  a,
3664
3635
  {
3665
3636
  ref: t,
3666
3637
  onClick: (m) => g(m),
3667
3638
  "builder-content-id": (C = e.builderContextSignal.content) == null ? void 0 : C.id,
3668
3639
  "builder-model": e.model,
3669
- className: Mn(
3640
+ className: On(
3670
3641
  ((k = e.content) == null ? void 0 : k.testVariationId) || ((W = e.content) == null ? void 0 : W.id)
3671
3642
  ),
3672
3643
  ...o(),
@@ -3675,21 +3646,21 @@ function Hn(e) {
3675
3646
  }
3676
3647
  ) : null });
3677
3648
  }
3678
- function Kn(e) {
3649
+ function jn(e) {
3679
3650
  const [t, n] = T(
3680
3651
  () => `
3681
- ${On({
3652
+ ${$n({
3682
3653
  cssCode: e.cssCode,
3683
3654
  contentId: e.contentId
3684
3655
  })}
3685
- ${Ln({
3656
+ ${Nn({
3686
3657
  customFonts: e.customFonts
3687
3658
  })}
3688
- ${jn(e.isNestedRender)}
3659
+ ${Ln(e.isNestedRender)}
3689
3660
  `.trim()
3690
3661
  );
3691
3662
  return /* @__PURE__ */ l(
3692
- Y,
3663
+ z,
3693
3664
  {
3694
3665
  id: "builderio-content",
3695
3666
  styles: t,
@@ -3697,7 +3668,7 @@ ${jn(e.isNestedRender)}
3697
3668
  }
3698
3669
  );
3699
3670
  }
3700
- const qn = ({
3671
+ const Mn = ({
3701
3672
  content: e,
3702
3673
  data: t,
3703
3674
  locale: n
@@ -3725,12 +3696,12 @@ const qn = ({
3725
3696
  },
3726
3697
  meta: e == null ? void 0 : e.meta
3727
3698
  } : void 0;
3728
- function Se(e) {
3729
- var c, f, b, h, v, g, S, x, E;
3699
+ function ye(e) {
3700
+ var c, h, b, f, v, g, S, x, R;
3730
3701
  const [t, n] = T(
3731
3702
  () => {
3732
3703
  var C, k;
3733
- return Wn({
3704
+ return Bn({
3734
3705
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3735
3706
  variationId: (C = e.content) == null ? void 0 : C.testVariationId,
3736
3707
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -3748,14 +3719,14 @@ function Se(e) {
3748
3719
  () => {
3749
3720
  var C;
3750
3721
  return [
3751
- ...ye(),
3722
+ ...ge(),
3752
3723
  ...((C = e.customComponents) == null ? void 0 : C.filter(({ models: k }) => !(k != null && k.length) || !e.model ? !0 : k.includes(e.model))) || []
3753
3724
  ].reduce(
3754
3725
  (k, { component: W, ...m }) => ({
3755
3726
  ...k,
3756
3727
  [m.name]: {
3757
3728
  component: W,
3758
- ...ue(m)
3729
+ ...se(m)
3759
3730
  }
3760
3731
  }),
3761
3732
  {}
@@ -3769,7 +3740,7 @@ function Se(e) {
3769
3740
  data: e.data
3770
3741
  }),
3771
3742
  localState: void 0,
3772
- rootState: qn({
3743
+ rootState: Mn({
3773
3744
  content: e.content,
3774
3745
  data: e.data,
3775
3746
  locale: e.locale
@@ -3780,12 +3751,12 @@ function Se(e) {
3780
3751
  apiKey: e.apiKey,
3781
3752
  apiVersion: e.apiVersion,
3782
3753
  componentInfos: [
3783
- ...ye(),
3754
+ ...ge(),
3784
3755
  ...((C = e.customComponents) == null ? void 0 : C.filter(({ models: k }) => !(k != null && k.length) || !e.model ? !0 : k.includes(e.model))) || []
3785
3756
  ].reduce(
3786
3757
  (k, { component: W, ...m }) => ({
3787
3758
  ...k,
3788
- [m.name]: ue(m)
3759
+ [m.name]: se(m)
3789
3760
  }),
3790
3761
  {}
3791
3762
  ),
@@ -3794,13 +3765,13 @@ function Se(e) {
3794
3765
  BlocksWrapperProps: e.blocksWrapperProps || {},
3795
3766
  nonce: e.nonce || ""
3796
3767
  };
3797
- }), d = D(!1);
3768
+ }), d = $(!1);
3798
3769
  if (!d.current) {
3799
- e.apiKey || ae.error(
3770
+ e.apiKey || ne.error(
3800
3771
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3801
3772
  );
3802
- const C = (f = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : f.jsCode;
3803
- C && U({
3773
+ const C = (h = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
3774
+ C && L({
3804
3775
  code: C,
3805
3776
  context: e.context || {},
3806
3777
  localState: void 0,
@@ -3808,21 +3779,17 @@ function Se(e) {
3808
3779
  rootSetState: (k) => {
3809
3780
  Object.assign(r.rootState, k);
3810
3781
  },
3811
- isExpression: !1,
3812
- /**
3813
- * We don't want to cache the result of the JS code, since it's arbitrary side effect code.
3814
- */
3815
- enableCache: !1
3782
+ isExpression: !1
3816
3783
  }), d.current = !0;
3817
3784
  }
3818
3785
  return /* @__PURE__ */ l(
3819
- Re.Provider,
3786
+ Te.Provider,
3820
3787
  {
3821
3788
  value: {
3822
3789
  registeredComponents: o
3823
3790
  },
3824
3791
  children: /* @__PURE__ */ V(
3825
- Hn,
3792
+ Un,
3826
3793
  {
3827
3794
  nonce: e.nonce,
3828
3795
  content: e.content,
@@ -3841,7 +3808,7 @@ function Se(e) {
3841
3808
  setBuilderContextSignal: s,
3842
3809
  children: [
3843
3810
  e.isSsrAbTest ? /* @__PURE__ */ l(
3844
- oe,
3811
+ te,
3845
3812
  {
3846
3813
  id: "builderio-variant-visibility",
3847
3814
  scriptStr: t,
@@ -3849,19 +3816,19 @@ function Se(e) {
3849
3816
  }
3850
3817
  ) : null,
3851
3818
  /* @__PURE__ */ l(
3852
- Kn,
3819
+ jn,
3853
3820
  {
3854
3821
  nonce: e.nonce || "",
3855
3822
  isNestedRender: e.isNestedRender,
3856
3823
  contentId: (b = r.content) == null ? void 0 : b.id,
3857
- cssCode: (v = (h = r.content) == null ? void 0 : h.data) == null ? void 0 : v.cssCode,
3824
+ cssCode: (v = (f = r.content) == null ? void 0 : f.data) == null ? void 0 : v.cssCode,
3858
3825
  customFonts: (S = (g = r.content) == null ? void 0 : g.data) == null ? void 0 : S.customFonts
3859
3826
  }
3860
3827
  ),
3861
3828
  /* @__PURE__ */ l(
3862
3829
  N,
3863
3830
  {
3864
- blocks: (E = (x = r.content) == null ? void 0 : x.data) == null ? void 0 : E.blocks,
3831
+ blocks: (R = (x = r.content) == null ? void 0 : x.data) == null ? void 0 : R.blocks,
3865
3832
  context: r,
3866
3833
  registeredComponents: o,
3867
3834
  linkComponent: e.linkComponent
@@ -3873,18 +3840,18 @@ function Se(e) {
3873
3840
  }
3874
3841
  );
3875
3842
  }
3876
- function zn(e) {
3843
+ function Hn(e) {
3877
3844
  var r;
3878
3845
  const [t, n] = T(
3879
- () => Bn({
3880
- canTrack: z(e.canTrack),
3846
+ () => wn({
3847
+ canTrack: q(e.canTrack),
3881
3848
  content: e.content
3882
3849
  })
3883
3850
  );
3884
3851
  function i() {
3885
3852
  var s;
3886
- return An(
3887
- q(e.content).map((d) => ({
3853
+ return Pn(
3854
+ _(e.content).map((d) => ({
3888
3855
  id: d.testVariationId,
3889
3856
  testRatio: d.testRatio
3890
3857
  })),
@@ -3892,31 +3859,31 @@ function zn(e) {
3892
3859
  );
3893
3860
  }
3894
3861
  function o() {
3895
- return q(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
3862
+ return _(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
3896
3863
  }
3897
3864
  function a() {
3898
3865
  var s;
3899
3866
  return t ? {
3900
3867
  ...e.content,
3901
3868
  testVariationId: (s = e.content) == null ? void 0 : s.id
3902
- } : _e({
3869
+ } : Me({
3903
3870
  item: e.content,
3904
- canTrack: z(e.canTrack)
3871
+ canTrack: q(e.canTrack)
3905
3872
  });
3906
3873
  }
3907
- return P(() => {
3874
+ return B(() => {
3908
3875
  }, []), /* @__PURE__ */ V(w, { children: [
3909
- !e.isNestedRender && L !== "reactNative" ? /* @__PURE__ */ l(
3910
- oe,
3876
+ !e.isNestedRender && D !== "reactNative" ? /* @__PURE__ */ l(
3877
+ te,
3911
3878
  {
3912
3879
  id: "builderio-init-variants-fns",
3913
- scriptStr: Vn(),
3880
+ scriptStr: Rn(),
3914
3881
  nonce: e.nonce || ""
3915
3882
  }
3916
3883
  ) : null,
3917
3884
  t ? /* @__PURE__ */ V(w, { children: [
3918
3885
  /* @__PURE__ */ l(
3919
- Y,
3886
+ z,
3920
3887
  {
3921
3888
  id: "builderio-variants",
3922
3889
  styles: o(),
@@ -3924,15 +3891,15 @@ function zn(e) {
3924
3891
  }
3925
3892
  ),
3926
3893
  /* @__PURE__ */ l(
3927
- oe,
3894
+ te,
3928
3895
  {
3929
3896
  id: "builderio-variants-visibility",
3930
3897
  scriptStr: i(),
3931
3898
  nonce: e.nonce || ""
3932
3899
  }
3933
3900
  ),
3934
- (r = q(e.content)) == null ? void 0 : r.map((s) => /* @__PURE__ */ l(
3935
- Se,
3901
+ (r = _(e.content)) == null ? void 0 : r.map((s) => /* @__PURE__ */ l(
3902
+ ye,
3936
3903
  {
3937
3904
  isNestedRender: e.isNestedRender,
3938
3905
  nonce: e.nonce,
@@ -3959,7 +3926,7 @@ function zn(e) {
3959
3926
  ))
3960
3927
  ] }) : null,
3961
3928
  /* @__PURE__ */ l(
3962
- Se,
3929
+ ye,
3963
3930
  {
3964
3931
  nonce: e.nonce,
3965
3932
  isNestedRender: e.isNestedRender,
@@ -3985,13 +3952,13 @@ function zn(e) {
3985
3952
  )
3986
3953
  ] });
3987
3954
  }
3988
- const Jn = async ({
3955
+ const qn = async ({
3989
3956
  builderContextValue: e,
3990
3957
  symbol: t
3991
3958
  }) => {
3992
3959
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
3993
3960
  (e != null && e.apiKey))
3994
- return Ce({
3961
+ return ve({
3995
3962
  model: t.model,
3996
3963
  apiKey: e.apiKey,
3997
3964
  apiVersion: e.apiVersion,
@@ -4001,11 +3968,11 @@ const Jn = async ({
4001
3968
  }
4002
3969
  }
4003
3970
  }).catch((n) => {
4004
- ae.error("Could not fetch symbol content: ", n);
3971
+ ne.error("Could not fetch symbol content: ", n);
4005
3972
  });
4006
3973
  };
4007
- function Yn(e) {
4008
- var s, d, c, f;
3974
+ function Kn(e) {
3975
+ var s, d, c, h;
4009
3976
  function t() {
4010
3977
  return "div";
4011
3978
  }
@@ -4013,12 +3980,12 @@ function Yn(e) {
4013
3980
  return "div";
4014
3981
  }
4015
3982
  function i() {
4016
- var b, h;
3983
+ var b, f;
4017
3984
  return [
4018
- e.attributes[M()],
3985
+ e.attributes[U()],
4019
3986
  "builder-symbol",
4020
3987
  (b = e.symbol) != null && b.inline ? "builder-inline-symbol" : void 0,
4021
- (h = e.symbol) != null && h.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
3988
+ (f = e.symbol) != null && f.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4022
3989
  ].filter(Boolean).join(" ");
4023
3990
  }
4024
3991
  const [o, a] = T(() => {
@@ -4026,18 +3993,18 @@ function Yn(e) {
4026
3993
  return (b = e.symbol) == null ? void 0 : b.content;
4027
3994
  });
4028
3995
  function r() {
4029
- o || Jn({
3996
+ o || qn({
4030
3997
  symbol: e.symbol,
4031
3998
  builderContextValue: e.builderContext
4032
3999
  }).then((b) => {
4033
4000
  b && a(b);
4034
4001
  });
4035
4002
  }
4036
- return P(() => {
4037
- }, []), P(() => {
4003
+ return B(() => {
4004
+ }, []), B(() => {
4038
4005
  r();
4039
4006
  }, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
4040
- zn,
4007
+ Hn,
4041
4008
  {
4042
4009
  nonce: e.builderContext.nonce,
4043
4010
  isNestedRender: !0,
@@ -4054,7 +4021,7 @@ function Yn(e) {
4054
4021
  ...(c = o == null ? void 0 : o.data) == null ? void 0 : c.state
4055
4022
  },
4056
4023
  canTrack: e.builderContext.canTrack,
4057
- model: (f = e.symbol) == null ? void 0 : f.model,
4024
+ model: (h = e.symbol) == null ? void 0 : h.model,
4058
4025
  content: o,
4059
4026
  linkComponent: e.builderLinkComponent,
4060
4027
  blocksWrapper: t(),
@@ -4064,14 +4031,14 @@ function Yn(e) {
4064
4031
  }
4065
4032
  export {
4066
4033
  N as Blocks,
4067
- se as BuilderContext,
4068
- tt as Button,
4069
- $t as Columns,
4070
- zn as Content,
4071
- Dt as Fragment,
4072
- Ut as Image,
4073
- jt as Section,
4074
- Yn as Symbol,
4075
- tn as Text,
4076
- In as Video
4034
+ ae as BuilderContext,
4035
+ Qe as Button,
4036
+ Ft as Columns,
4037
+ Hn as Content,
4038
+ Nt as Fragment,
4039
+ Lt as Image,
4040
+ Ot as Section,
4041
+ Kn as Symbol,
4042
+ Zt as Text,
4043
+ kn as Video
4077
4044
  };