@builder.io/sdk-react 2.0.9 → 2.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/lib/browser/blocks-exports.cjs +30 -30
  2. package/lib/browser/blocks-exports.mjs +980 -955
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/init.cjs +3 -3
  6. package/lib/browser/init.mjs +3 -3
  7. package/lib/browser/server-entry-acf08871.cjs +2 -0
  8. package/lib/{node/server-entry-8bf52a55.js → browser/server-entry-dc66de59.js} +333 -330
  9. package/lib/browser/server-entry.cjs +1 -1
  10. package/lib/browser/server-entry.mjs +1 -1
  11. package/lib/edge/{accordion-589b3ac8.js → accordion-37ff8319.js} +1 -1
  12. package/lib/edge/{accordion-afed3bd3.cjs → accordion-b3b8c262.cjs} +1 -1
  13. package/lib/edge/blocks-793430a0.cjs +12 -0
  14. package/lib/edge/blocks-e0e60319.js +833 -0
  15. package/lib/edge/blocks-exports.cjs +1 -1
  16. package/lib/edge/blocks-exports.mjs +2 -2
  17. package/lib/edge/{button-08412b69.js → button-15992755.js} +2 -2
  18. package/lib/edge/{button-26b76a4a.cjs → button-875ac10b.cjs} +1 -1
  19. package/lib/edge/{columns-ccdafcc7.cjs → columns-11ead988.cjs} +1 -1
  20. package/lib/edge/{columns-bd2a004b.js → columns-cfe663b2.js} +4 -4
  21. package/lib/edge/{content-variants-dd7ea0f9.js → content-variants-e780597b.js} +11 -11
  22. package/lib/edge/{content-variants-fc207487.cjs → content-variants-f8ef104d.cjs} +1 -1
  23. package/lib/edge/{evaluate-e2f692df.js → evaluate-6408d64d.js} +87 -87
  24. package/lib/edge/{evaluate-3991fda5.cjs → evaluate-938a955e.cjs} +6 -6
  25. package/lib/edge/{form-5eb85abf.cjs → form-75a774bc.cjs} +1 -1
  26. package/lib/edge/{form-b9148162.js → form-7735178f.js} +4 -4
  27. package/lib/edge/{get-class-prop-name-0c783f8c.js → get-class-prop-name-d005a2bb.js} +1 -1
  28. package/lib/edge/{get-class-prop-name-2fa91d70.cjs → get-class-prop-name-e596650d.cjs} +1 -1
  29. package/lib/edge/{img-602f7d3a.js → img-045bb860.js} +1 -1
  30. package/lib/edge/{img-2f30658b.cjs → img-dd79e34b.cjs} +1 -1
  31. package/lib/edge/index.cjs +1 -1
  32. package/lib/edge/index.mjs +1 -1
  33. package/lib/edge/init.cjs +3 -3
  34. package/lib/edge/init.mjs +3 -3
  35. package/lib/edge/{input-551362f3.cjs → input-3bd0ac03.cjs} +1 -1
  36. package/lib/edge/{input-4c791db9.js → input-adf80016.js} +1 -1
  37. package/lib/edge/{select-eb26f837.cjs → select-882193d4.cjs} +1 -1
  38. package/lib/edge/{select-d1391d12.js → select-90b076db.js} +1 -1
  39. package/lib/edge/{server-entry-c537d834.js → server-entry-84c3cdd6.js} +1 -1
  40. package/lib/edge/{server-entry-7b4fa72f.cjs → server-entry-d5ae6221.cjs} +1 -1
  41. package/lib/edge/server-entry.cjs +1 -1
  42. package/lib/edge/server-entry.mjs +1 -1
  43. package/lib/edge/{slot-d375d5eb.js → slot-293114eb.js} +4 -4
  44. package/lib/edge/{slot-d723d000.cjs → slot-42b9b358.cjs} +1 -1
  45. package/lib/edge/{symbol-6c18ca90.cjs → symbol-3e0799b8.cjs} +1 -1
  46. package/lib/edge/{symbol-8b3a6b98.js → symbol-aed9cd2b.js} +2 -2
  47. package/lib/edge/{tabs-1e47cfd4.js → tabs-0cf37bf4.js} +4 -4
  48. package/lib/edge/{tabs-8296bce7.cjs → tabs-f5c4f350.cjs} +1 -1
  49. package/lib/edge/{text-d3c86634.js → text-9e2166c7.js} +2 -2
  50. package/lib/edge/{text-9eac9e4d.cjs → text-abb84188.cjs} +1 -1
  51. package/lib/node/blocks-exports.cjs +29 -29
  52. package/lib/node/blocks-exports.mjs +983 -958
  53. package/lib/node/index.cjs +1 -1
  54. package/lib/node/index.mjs +2 -2
  55. package/lib/node/init.cjs +1 -1
  56. package/lib/node/init.mjs +2 -2
  57. package/lib/node/{node-runtime-c7c85f6c.cjs → node-runtime-11912803.cjs} +4 -4
  58. package/lib/node/{node-runtime-e41e9eb6.js → node-runtime-49e4c6cb.js} +3 -3
  59. package/lib/node/server-entry-acf08871.cjs +2 -0
  60. package/lib/{browser/server-entry-8bf52a55.js → node/server-entry-dc66de59.js} +333 -330
  61. package/lib/node/server-entry.cjs +1 -1
  62. package/lib/node/server-entry.mjs +1 -1
  63. package/package.json +3 -3
  64. package/types/components/block/block.helpers.d.ts +1 -2
  65. package/types/constants/sdk-version.d.ts +1 -1
  66. package/types/functions/evaluate/node-runtime/init.d.ts +1 -0
  67. package/types/functions/get-processed-block.d.ts +1 -0
  68. package/lib/browser/server-entry-16fc27fe.cjs +0 -2
  69. package/lib/edge/blocks-854f4022.cjs +0 -12
  70. package/lib/edge/blocks-fdb24842.js +0 -808
  71. package/lib/node/server-entry-16fc27fe.cjs +0 -2
@@ -1,16 +1,16 @@
1
1
  "use client";
2
2
  var qe = Object.defineProperty;
3
- var Ke = (e, t, n) => t in e ? qe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
- var ie = (e, t, n) => (Ke(e, typeof t != "symbol" ? t + "" : t, n), n);
5
- import { jsx as s, Fragment as R, jsxs as V } from "react/jsx-runtime";
6
- import { TARGET as q, isEditing as $, isBrowser as M, getUserAttributes as ze, checkIsDefined as G, logger as Z, registerInsertMenu as _e, setupBrowserForEditing as Je, createRegisterComponentMessage as Ye, getDefaultCanTrack as Q, _track as he, isPreviewing as Ge, fetchOneEntry as we, createEditorListener as Qe, fetch as Xe, serializeIncludingFunctions as ge, handleABTestingSync as Ze } from "./server-entry-8bf52a55.js";
7
- import { createContext as Re, useState as T, useEffect as P, useContext as be, useRef as ee, createElement as Ee } from "react";
3
+ var _e = (e, t, n) => t in e ? qe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
+ var ne = (e, t, n) => (_e(e, typeof t != "symbol" ? t + "" : t, n), n);
5
+ import { jsx as l, Fragment as R, jsxs as V } from "react/jsx-runtime";
6
+ import { TARGET as U, isEditing as $, isBrowser as H, getUserAttributes as ze, checkIsDefined as Q, logger as Z, isPreviewing as we, registerInsertMenu as Je, setupBrowserForEditing as Ye, createRegisterComponentMessage as Ge, getDefaultCanTrack as X, _track as he, fetchOneEntry as Re, createEditorListener as Qe, fetch as Xe, serializeIncludingFunctions as ge, handleABTestingSync as Ze } from "./server-entry-dc66de59.js";
7
+ import { createContext as Ee, useState as T, useEffect as P, useRef as z, useContext as be, createElement as Be } from "react";
8
8
  const et = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), tt = (e) => typeof e == "string" && et.has(e.toLowerCase());
9
9
  function de(e) {
10
- return /* @__PURE__ */ s(R, { children: tt(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
10
+ return /* @__PURE__ */ l(R, { children: tt(e.TagName) ? /* @__PURE__ */ l(R, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
11
11
  }
12
- const z = () => {
13
- switch (q) {
12
+ const _ = () => {
13
+ switch (U) {
14
14
  case "react":
15
15
  case "reactNative":
16
16
  case "rsc":
@@ -27,7 +27,7 @@ function nt(e) {
27
27
  function t() {
28
28
  return {
29
29
  ...e.attributes,
30
- [z()]: `${e.link ? "" : "builder-button"} ${e.attributes[z()] || ""}`,
30
+ [_()]: `${e.link ? "" : "builder-button"} ${e.attributes[_()] || ""}`,
31
31
  ...e.link ? {
32
32
  href: e.link,
33
33
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -37,7 +37,7 @@ function nt(e) {
37
37
  }
38
38
  };
39
39
  }
40
- return /* @__PURE__ */ s(
40
+ return /* @__PURE__ */ l(
41
41
  de,
42
42
  {
43
43
  attributes: t(),
@@ -47,7 +47,7 @@ function nt(e) {
47
47
  }
48
48
  );
49
49
  }
50
- const ue = Re({
50
+ const ue = Ee({
51
51
  content: null,
52
52
  context: {},
53
53
  localState: void 0,
@@ -61,7 +61,7 @@ const ue = Re({
61
61
  BlocksWrapper: "div",
62
62
  BlocksWrapperProps: {},
63
63
  nonce: ""
64
- }), Be = Re({ registeredComponents: {} });
64
+ }), Pe = Ee({ registeredComponents: {} });
65
65
  function it(e) {
66
66
  var t;
67
67
  return {
@@ -69,7 +69,13 @@ function it(e) {
69
69
  ...e.options
70
70
  };
71
71
  }
72
- const ot = ({
72
+ function ot(e, ...t) {
73
+ const n = Object.assign({}, e);
74
+ for (const i of t)
75
+ delete n[i];
76
+ return n;
77
+ }
78
+ const at = ({
73
79
  builder: e,
74
80
  context: t,
75
81
  event: n,
@@ -81,12 +87,12 @@ const ot = ({
81
87
  builder: e,
82
88
  context: t,
83
89
  event: n
84
- }), at = () => ({
90
+ }), rt = () => ({
85
91
  isEditing: $(),
86
- isBrowser: M(),
87
- isServer: !M(),
92
+ isBrowser: H(),
93
+ isServer: !H(),
88
94
  getUserAttributes: () => ze()
89
- }), rt = (e, {
95
+ }), lt = (e, {
90
96
  isExpression: t = !0
91
97
  }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, pe = ({
92
98
  code: e,
@@ -94,22 +100,22 @@ const ot = ({
94
100
  context: n,
95
101
  event: i,
96
102
  localState: o,
97
- rootSetState: r,
98
- rootState: a
103
+ rootSetState: a,
104
+ rootState: r
99
105
  }) => {
100
- const l = ot({
106
+ const s = at({
101
107
  builder: t,
102
108
  context: n,
103
109
  event: i,
104
- state: Pe({
105
- rootState: a,
110
+ state: Ve({
111
+ rootState: r,
106
112
  localState: o,
107
- rootSetState: r
113
+ rootSetState: a
108
114
  })
109
115
  });
110
- return new Function(...l.map(([c]) => c), e)(...l.map(([, c]) => c));
116
+ return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
111
117
  };
112
- function Pe({
118
+ function Ve({
113
119
  rootState: e,
114
120
  localState: t,
115
121
  rootSetState: n
@@ -118,33 +124,33 @@ function Pe({
118
124
  get: (i, o) => {
119
125
  if (t && o in t)
120
126
  return t[o];
121
- const r = i[o];
122
- return typeof r == "object" && r !== null ? Pe({
123
- rootState: r,
127
+ const a = i[o];
128
+ return typeof a == "object" && a !== null ? Ve({
129
+ rootState: a,
124
130
  localState: void 0,
125
- rootSetState: n ? (a) => {
126
- i[o] = a, n(i);
131
+ rootSetState: n ? (r) => {
132
+ i[o] = r, n(i);
127
133
  } : void 0
128
- }) : r;
134
+ }) : a;
129
135
  },
130
- set: (i, o, r) => {
136
+ set: (i, o, a) => {
131
137
  if (t && o in t)
132
138
  throw new Error("Writing to local state is not allowed as it is read-only.");
133
- return i[o] = r, n == null || n(i), !0;
139
+ return i[o] = a, n == null || n(i), !0;
134
140
  }
135
141
  });
136
142
  }
137
- function lt() {
143
+ function st() {
138
144
  var e;
139
- return typeof process != "undefined" && G((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
145
+ return typeof process != "undefined" && Q((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
140
146
  }
141
- const st = () => {
147
+ const ct = () => {
142
148
  var i;
143
- if (!lt())
149
+ if (!st())
144
150
  return !1;
145
151
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
146
152
  return e && t && !n ? (Z.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
147
- }, ct = (e) => (M() || st(), pe(e)), L = class L {
153
+ }, dt = (e) => (H() || ct(), pe(e)), ut = !0, L = class L {
148
154
  static getCacheKey(t) {
149
155
  return JSON.stringify({
150
156
  ...t,
@@ -162,57 +168,95 @@ const st = () => {
162
168
  });
163
169
  }
164
170
  };
165
- ie(L, "cacheLimit", 20), ie(L, "cache", /* @__PURE__ */ new Map());
166
- let U = L;
167
- function H({
171
+ ne(L, "cacheLimit", 20), ne(L, "cache", /* @__PURE__ */ new Map());
172
+ let j = L;
173
+ function K({
168
174
  code: e,
169
175
  context: t,
170
176
  localState: n,
171
177
  rootState: i,
172
178
  rootSetState: o,
173
- event: r,
174
- isExpression: a = !0,
175
- enableCache: l
179
+ event: a,
180
+ isExpression: r = !0,
181
+ enableCache: s
176
182
  }) {
177
183
  if (e === "")
178
184
  return;
179
- const c = {
180
- code: rt(e, {
181
- isExpression: a
185
+ const d = {
186
+ code: lt(e, {
187
+ isExpression: r
182
188
  }),
183
- builder: at(),
189
+ builder: rt(),
184
190
  context: t,
185
- event: r,
191
+ event: a,
186
192
  rootSetState: o,
187
193
  rootState: i,
188
194
  localState: n
189
195
  };
190
- if (l) {
191
- const d = U.getCacheKey(c), f = U.getCachedValue(d);
192
- if (f)
193
- return f.value;
196
+ if (s && !ut) {
197
+ const c = j.getCacheKey(d), m = j.getCachedValue(c);
198
+ if (m)
199
+ return m.value;
194
200
  }
195
201
  try {
196
- const d = ct(c);
197
- if (l) {
198
- const f = U.getCacheKey(c);
199
- U.setCachedValue(f, d);
200
- }
201
- return d;
202
- } catch (d) {
203
- Z.error("Failed code evaluation: " + d.message, {
202
+ const c = dt(d);
203
+ if (s) {
204
+ const m = j.getCacheKey(d);
205
+ j.setCachedValue(m, c);
206
+ }
207
+ return c;
208
+ } catch (c) {
209
+ Z.error("Failed code evaluation: " + c.message, {
204
210
  code: e
205
211
  });
206
212
  return;
207
213
  }
208
214
  }
209
- const me = (e) => JSON.parse(JSON.stringify(e)), Ve = (e, t, n) => {
215
+ const me = (e) => JSON.parse(JSON.stringify(e)), Ae = (e, t, n) => {
210
216
  if (Object(e) !== e)
211
217
  return e;
212
218
  const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
213
- return i.slice(0, -1).reduce((o, r, a) => Object(o[r]) === o[r] ? o[r] : o[r] = Math.abs(Number(i[a + 1])) >> 0 === +i[a + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
219
+ return i.slice(0, -1).reduce((o, a, r) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
214
220
  };
215
- const dt = ({
221
+ function se(e) {
222
+ if (e === null || typeof e != "object")
223
+ return e;
224
+ if (Array.isArray(e))
225
+ return e.map((n) => se(n));
226
+ if (e["@type"] === "@builder.io/sdk:Element")
227
+ return e;
228
+ const t = {};
229
+ for (const n in e)
230
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = se(e[n]));
231
+ return t;
232
+ }
233
+ const mt = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ft = (e) => {
234
+ if (mt) {
235
+ const t = me(e);
236
+ return {
237
+ ...t,
238
+ properties: {
239
+ ...t.properties
240
+ },
241
+ actions: {
242
+ ...t.actions
243
+ }
244
+ };
245
+ } else {
246
+ const t = se(ot(e, "children", "meta"));
247
+ return {
248
+ ...t,
249
+ properties: {
250
+ ...t.properties
251
+ },
252
+ actions: {
253
+ ...t.actions
254
+ },
255
+ children: e.children,
256
+ meta: e.meta
257
+ };
258
+ }
259
+ }, ht = ({
216
260
  block: e,
217
261
  context: t,
218
262
  localState: n,
@@ -221,180 +265,172 @@ const dt = ({
221
265
  }) => {
222
266
  if (!e.bindings)
223
267
  return e;
224
- const r = me(e), a = {
225
- ...r,
226
- properties: {
227
- ...r.properties
228
- },
229
- actions: {
230
- ...r.actions
231
- }
232
- };
233
- for (const l in e.bindings) {
234
- const c = e.bindings[l], d = H({
235
- code: c,
268
+ const a = ft(e);
269
+ for (const r in e.bindings) {
270
+ const s = e.bindings[r], d = K({
271
+ code: s,
236
272
  localState: n,
237
273
  rootState: i,
238
274
  rootSetState: o,
239
275
  context: t,
240
276
  enableCache: !0
241
277
  });
242
- Ve(a, l, d);
278
+ Ae(a, r, d);
243
279
  }
244
280
  return a;
245
281
  };
246
- function X({
282
+ function gt({
247
283
  block: e,
248
284
  context: t,
249
285
  shouldEvaluateBindings: n,
250
286
  localState: i,
251
287
  rootState: o,
252
- rootSetState: r
288
+ rootSetState: a
253
289
  }) {
254
- const a = e;
255
- return n ? dt({
256
- block: a,
290
+ const r = e;
291
+ return n ? ht({
292
+ block: r,
257
293
  localState: i,
258
294
  rootState: o,
259
- rootSetState: r,
295
+ rootSetState: a,
260
296
  context: t
261
- }) : a;
297
+ }) : r;
262
298
  }
263
- const te = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
264
- function ut(e, t, n = {}) {
265
- let i, o, r, a = null, l = 0;
266
- const c = function() {
267
- l = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
299
+ const ee = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
300
+ function bt(e, t, n = {}) {
301
+ let i, o, a, r = null, s = 0;
302
+ const d = function() {
303
+ s = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
268
304
  };
269
305
  return function() {
270
- const d = Date.now();
271
- !l && n.leading === !1 && (l = d);
272
- const f = t - (d - l);
273
- return i = this, o = arguments, f <= 0 || f > t ? (a && (clearTimeout(a), a = null), l = d, r = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(c, f)), r;
306
+ const c = Date.now();
307
+ !s && n.leading === !1 && (s = c);
308
+ const m = t - (c - s);
309
+ return i = this, o = arguments, m <= 0 || m > t ? (r && (clearTimeout(r), r = null), s = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, m)), a;
274
310
  };
275
311
  }
276
- function K(e, ...t) {
312
+ function q(e, ...t) {
277
313
  const n = Object(e);
278
314
  for (let i = 1; i < arguments.length; i++) {
279
315
  const o = arguments[i];
280
316
  if (o != null)
281
- for (const r in o)
282
- Object.prototype.hasOwnProperty.call(o, r) && (n[r] = o[r]);
317
+ for (const a in o)
318
+ Object.prototype.hasOwnProperty.call(o, a) && (n[a] = o[a]);
283
319
  }
284
320
  return n;
285
321
  }
286
- function mt(e) {
322
+ function pt(e) {
287
323
  for (const t of e)
288
324
  switch (t.trigger) {
289
325
  case "pageLoad":
290
- We(t);
326
+ Fe(t);
291
327
  break;
292
328
  case "scrollInView":
293
- ht(t);
329
+ xt(t);
294
330
  break;
295
331
  }
296
332
  }
297
- function Ae(e) {
333
+ function Ne(e) {
298
334
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
299
335
  }
300
- function Ne(e, t) {
301
- const n = ft(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
302
- for (const l of a)
303
- for (const c of n)
304
- c in l || (l[c] = i[c]);
336
+ function We(e, t) {
337
+ const n = yt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
338
+ for (const s of r)
339
+ for (const d of n)
340
+ d in s || (s[d] = i[d]);
305
341
  }
306
- function ft(e) {
342
+ function yt(e) {
307
343
  const t = [];
308
344
  for (const n of e.steps)
309
345
  for (const i in n.styles)
310
346
  t.indexOf(i) === -1 && t.push(i);
311
347
  return t;
312
348
  }
313
- function We(e) {
349
+ function Fe(e) {
314
350
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
315
351
  if (!t.length) {
316
- Ae(e.elementId || e.id || "");
352
+ Ne(e.elementId || e.id || "");
317
353
  return;
318
354
  }
319
355
  Array.from(t).forEach((n) => {
320
- Ne(e, n), n.style.transition = "none", n.style.transitionDelay = "0", K(n.style, e.steps[0].styles), setTimeout(() => {
321
- n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), K(n.style, e.steps[1].styles), setTimeout(() => {
356
+ We(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
357
+ n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), q(n.style, e.steps[1].styles), setTimeout(() => {
322
358
  n.style.transition = "", n.style.transitionDelay = "";
323
359
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
324
360
  });
325
361
  });
326
362
  }
327
- function ht(e) {
363
+ function xt(e) {
328
364
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
329
365
  if (!t.length) {
330
- Ae(e.elementId || e.id || "");
366
+ Ne(e.elementId || e.id || "");
331
367
  return;
332
368
  }
333
369
  Array.from(t).forEach((n) => {
334
- Ne(e, n);
370
+ We(e, n);
335
371
  let i = !1, o = !1;
336
- function r() {
337
- !i && l(n) ? (i = !0, o = !0, setTimeout(() => {
338
- K(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
372
+ function a() {
373
+ !i && s(n) ? (i = !0, o = !0, setTimeout(() => {
374
+ q(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
339
375
  o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
340
376
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
341
- })) : e.repeat && i && !o && !l(n) && (i = !1, K(n.style, e.steps[0].styles));
377
+ })) : e.repeat && i && !o && !s(n) && (i = !1, q(n.style, e.steps[0].styles));
342
378
  }
343
- const a = ut(r, 200, {
379
+ const r = bt(a, 200, {
344
380
  leading: !1
345
381
  });
346
- function l(f) {
347
- const u = f.getBoundingClientRect(), m = window.innerHeight, y = (e.thresholdPercent || 0) / 100 * m;
348
- return u.bottom > y && u.top < m - y;
382
+ function s(m) {
383
+ const h = m.getBoundingClientRect(), f = window.innerHeight, g = (e.thresholdPercent || 0) / 100 * f;
384
+ return h.bottom > g && h.top < f - g;
349
385
  }
350
- const c = e.steps[0].styles;
351
- function d() {
352
- K(n.style, c);
386
+ const d = e.steps[0].styles;
387
+ function c() {
388
+ q(n.style, d);
353
389
  }
354
- d(), setTimeout(() => {
355
- n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
356
- }), document.addEventListener("scroll", a, {
390
+ c(), setTimeout(() => {
391
+ n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
392
+ }), document.addEventListener("scroll", r, {
357
393
  capture: !0,
358
394
  passive: !0
359
- }), r();
395
+ }), a();
360
396
  });
361
397
  }
362
- const Fe = (e) => Object.entries(e).map(([n, i]) => {
398
+ const $e = (e) => Object.entries(e).map(([n, i]) => {
363
399
  if (typeof i == "string")
364
- return `${te(n)}: ${i};`;
365
- }).filter(G), gt = (e) => Fe(e).join(`
366
- `), J = ({
400
+ return `${ee(n)}: ${i};`;
401
+ }).filter(Q), vt = (e) => $e(e).join(`
402
+ `), Y = ({
367
403
  mediaQuery: e,
368
404
  className: t,
369
405
  styles: n
370
406
  }) => {
371
407
  const i = `.${t} {
372
- ${gt(n)}
408
+ ${vt(n)}
373
409
  }`;
374
410
  return e ? `${e} {
375
411
  ${i}
376
412
  }` : i;
377
413
  };
378
- function bt({
414
+ function St({
379
415
  style: e
380
416
  }) {
381
417
  return e;
382
418
  }
383
- const pt = ({
419
+ const kt = ({
384
420
  block: e,
385
421
  context: t
386
- }) => $e(bt({
422
+ }) => De(St({
387
423
  style: e.style || {},
388
424
  context: t,
389
425
  block: e
390
426
  }));
391
- function $e(e) {
392
- switch (q) {
427
+ function De(e) {
428
+ switch (U) {
393
429
  case "svelte":
394
430
  case "vue":
395
431
  case "solid":
396
432
  case "angular":
397
- return Fe(e).join(" ");
433
+ return $e(e).join(" ");
398
434
  case "qwik":
399
435
  case "reactNative":
400
436
  case "react":
@@ -402,29 +438,21 @@ function $e(e) {
402
438
  return e;
403
439
  }
404
440
  }
405
- const yt = ({
441
+ const Ct = ({
406
442
  block: e,
407
- context: t,
408
- registeredComponents: n
443
+ registeredComponents: t
409
444
  }) => {
410
- var r;
411
- const i = (r = X({
412
- block: e,
413
- localState: t.localState,
414
- rootState: t.rootState,
415
- rootSetState: t.rootSetState,
416
- context: t.context,
417
- shouldEvaluateBindings: !1
418
- }).component) == null ? void 0 : r.name;
419
- if (!i)
445
+ var o;
446
+ const n = (o = e.component) == null ? void 0 : o.name;
447
+ if (!n)
420
448
  return null;
421
- const o = n[i];
422
- if (o)
423
- return o;
449
+ const i = t[n];
450
+ if (i)
451
+ return i;
424
452
  console.warn(`
425
- Could not find a registered component named "${i}".
453
+ Could not find a registered component named "${n}".
426
454
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
427
- }, xt = ({
455
+ }, Tt = ({
428
456
  block: e,
429
457
  context: t
430
458
  }) => {
@@ -434,7 +462,7 @@ const yt = ({
434
462
  } = e;
435
463
  if (!(n != null && n.collection))
436
464
  return;
437
- const o = H({
465
+ const o = K({
438
466
  code: n.collection,
439
467
  localState: t.localState,
440
468
  rootState: t.rootState,
@@ -444,41 +472,41 @@ const yt = ({
444
472
  });
445
473
  if (!Array.isArray(o))
446
474
  return;
447
- const r = n.collection.split(".").pop(), a = n.itemName || (r ? r + "Item" : "item");
448
- return o.map((c, d) => ({
475
+ const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
476
+ return o.map((d, c) => ({
449
477
  context: {
450
478
  ...t,
451
479
  localState: {
452
480
  ...t.localState,
453
- $index: d,
454
- $item: c,
455
- [a]: c,
456
- [`$${a}Index`]: d
481
+ $index: c,
482
+ $item: d,
483
+ [r]: d,
484
+ [`$${r}Index`]: c
457
485
  }
458
486
  },
459
487
  block: i
460
488
  }));
461
- }, vt = (e, t) => {
489
+ }, It = (e, t) => {
462
490
  var n;
463
491
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
464
492
  builderLinkComponent: t
465
493
  } : {};
466
- }, St = (e, t) => {
494
+ }, wt = (e, t) => {
467
495
  var n;
468
496
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
469
497
  builderComponents: t
470
498
  } : {};
471
- }, kt = (e, t) => {
499
+ }, Rt = (e, t) => {
472
500
  var n;
473
501
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
474
502
  builderBlock: t
475
503
  } : {};
476
- }, Ct = (e, t) => {
504
+ }, Et = (e, t) => {
477
505
  var n;
478
506
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
479
507
  builderContext: t
480
508
  } : {};
481
- }, De = {
509
+ }, Le = {
482
510
  small: {
483
511
  min: 320,
484
512
  default: 321,
@@ -494,11 +522,11 @@ const yt = ({
494
522
  default: 991,
495
523
  max: 1200
496
524
  }
497
- }, ye = (e, t = De) => `@media (max-width: ${t[e].max}px)`, Le = ({
525
+ }, ye = (e, t = Le) => `@media (max-width: ${t[e].max}px)`, Oe = ({
498
526
  small: e,
499
527
  medium: t
500
528
  }) => {
501
- const n = me(De);
529
+ const n = me(Le);
502
530
  if (!e || !t)
503
531
  return n;
504
532
  const i = Math.floor(e / 2);
@@ -513,16 +541,16 @@ const yt = ({
513
541
  min: o,
514
542
  default: o + 1
515
543
  };
516
- const r = n.medium.max + 1;
544
+ const a = n.medium.max + 1;
517
545
  return n.large = {
518
546
  max: 2e3,
519
547
  // TODO: decide upper limit
520
- min: r,
521
- default: r + 1
548
+ min: a,
549
+ default: a + 1
522
550
  }, n;
523
551
  };
524
- function ne(e) {
525
- return /* @__PURE__ */ s(
552
+ function te(e) {
553
+ return /* @__PURE__ */ l(
526
554
  "style",
527
555
  {
528
556
  dangerouslySetInnerHTML: { __html: e.styles },
@@ -531,73 +559,59 @@ function ne(e) {
531
559
  }
532
560
  );
533
561
  }
534
- function Tt(e) {
562
+ function Bt(e) {
535
563
  function t() {
536
- const i = X({
537
- block: e.block,
538
- localState: e.context.localState,
539
- rootState: e.context.rootState,
540
- rootSetState: e.context.rootSetState,
541
- context: e.context.context,
542
- shouldEvaluateBindings: !0
543
- });
544
- return G(i.hide) ? !i.hide : G(i.show) ? i.show : !0;
564
+ const i = e.block;
565
+ return Q(i.hide) ? !i.hide : Q(i.show) ? i.show : !0;
545
566
  }
546
567
  function n() {
547
- var p, B, E;
548
- const i = X({
549
- block: e.block,
550
- localState: e.context.localState,
551
- rootState: e.context.rootState,
552
- rootSetState: e.context.rootSetState,
553
- context: e.context.context,
554
- shouldEvaluateBindings: !0
555
- }), o = i.responsiveStyles, r = e.context.content, a = Le(
556
- ((p = r == null ? void 0 : r.meta) == null ? void 0 : p.breakpoints) || {}
557
- ), l = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, d = o == null ? void 0 : o.small, f = i.id;
558
- if (!f)
568
+ var b, B, E;
569
+ const i = e.block, o = i.responsiveStyles, a = e.context.content, r = Oe(
570
+ ((b = a == null ? void 0 : a.meta) == null ? void 0 : b.breakpoints) || {}
571
+ ), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, m = i.id;
572
+ if (!m)
559
573
  return "";
560
- const u = l ? J({
561
- className: f,
562
- styles: l
563
- }) : "", m = c ? J({
564
- className: f,
565
- styles: c,
574
+ const h = s ? Y({
575
+ className: m,
576
+ styles: s
577
+ }) : "", f = d ? Y({
578
+ className: m,
579
+ styles: d,
566
580
  mediaQuery: ye(
567
581
  "medium",
568
- a
582
+ r
569
583
  )
570
- }) : "", g = d ? J({
571
- className: f,
572
- styles: d,
584
+ }) : "", u = c ? Y({
585
+ className: m,
586
+ styles: c,
573
587
  mediaQuery: ye(
574
588
  "small",
575
- a
589
+ r
576
590
  )
577
- }) : "", y = i.animations && i.animations.find((A) => A.trigger === "hover");
578
- let C = "";
579
- if (y) {
580
- const A = ((E = (B = y.steps) == null ? void 0 : B[1]) == null ? void 0 : E.styles) || {};
581
- C = J({
582
- className: `${f}:hover`,
591
+ }) : "", g = i.animations && i.animations.find((A) => A.trigger === "hover");
592
+ let x = "";
593
+ if (g) {
594
+ const A = ((E = (B = g.steps) == null ? void 0 : B[1]) == null ? void 0 : E.styles) || {};
595
+ x = Y({
596
+ className: `${m}:hover`,
583
597
  styles: {
584
598
  ...A,
585
- transition: `all ${y.duration}s ${te(
586
- y.easing
599
+ transition: `all ${g.duration}s ${ee(
600
+ g.easing
587
601
  )}`,
588
- transitionDelay: y.delay ? `${y.delay}s` : "0s"
602
+ transitionDelay: g.delay ? `${g.delay}s` : "0s"
589
603
  }
590
604
  }) || "";
591
605
  }
592
606
  return [
607
+ h,
608
+ f,
593
609
  u,
594
- m,
595
- g,
596
- C
610
+ x
597
611
  ].join(" ");
598
612
  }
599
- return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
600
- ne,
613
+ return /* @__PURE__ */ l(R, { children: n() && t() ? /* @__PURE__ */ l(R, { children: /* @__PURE__ */ l(
614
+ te,
601
615
  {
602
616
  id: "builderio-block",
603
617
  styles: n(),
@@ -605,10 +619,10 @@ function Tt(e) {
605
619
  }
606
620
  ) }) : null });
607
621
  }
608
- function It(e) {
622
+ function Pt(e) {
609
623
  return e.charAt(0).toUpperCase() + e.slice(1);
610
624
  }
611
- const wt = (e) => `on${It(e)}`, Rt = (e, t) => (n) => H({
625
+ const Vt = (e) => `on${Pt(e)}`, At = (e, t) => (n) => K({
612
626
  code: e,
613
627
  context: t.context,
614
628
  localState: t.localState,
@@ -618,33 +632,33 @@ const wt = (e) => `on${It(e)}`, Rt = (e, t) => (n) => H({
618
632
  isExpression: !1,
619
633
  enableCache: !0
620
634
  });
621
- function Oe(e) {
635
+ function Ue(e) {
622
636
  var i;
623
637
  const t = {}, n = (i = e.block.actions) != null ? i : {};
624
638
  for (const o in n) {
625
639
  if (!n.hasOwnProperty(o))
626
640
  continue;
627
- const r = n[o];
628
- let a = wt(o);
641
+ const a = n[o];
642
+ let r = Vt(o);
629
643
  if (e.stripPrefix)
630
- switch (q) {
644
+ switch (U) {
631
645
  case "vue":
632
- a = a.replace("v-on:", "");
646
+ r = r.replace("v-on:", "");
633
647
  break;
634
648
  case "svelte":
635
- a = a.replace("on:", "");
649
+ r = r.replace("on:", "");
636
650
  break;
637
651
  }
638
- t[a] = Rt(r, e);
652
+ t[r] = At(a, e);
639
653
  }
640
654
  return t;
641
655
  }
642
- function Et({
656
+ function Nt({
643
657
  properties: e
644
658
  }) {
645
659
  return e;
646
660
  }
647
- const Bt = (e) => ({
661
+ const Wt = (e) => ({
648
662
  href: e.href
649
663
  });
650
664
  function fe({
@@ -653,23 +667,23 @@ function fe({
653
667
  }) {
654
668
  var i;
655
669
  const n = {
656
- ...Bt(e),
670
+ ...Wt(e),
657
671
  ...e.properties,
658
672
  "builder-id": e.id,
659
- style: pt({
673
+ style: kt({
660
674
  block: e,
661
675
  context: t
662
676
  }),
663
- [z()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
677
+ [_()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
664
678
  };
665
- return Et({
679
+ return Nt({
666
680
  properties: n,
667
681
  context: t,
668
682
  block: e
669
683
  });
670
684
  }
671
- function Pt(e) {
672
- return /* @__PURE__ */ s(
685
+ function Ft(e) {
686
+ return /* @__PURE__ */ l(
673
687
  de,
674
688
  {
675
689
  TagName: e.Wrapper,
@@ -677,7 +691,7 @@ function Pt(e) {
677
691
  block: e.block,
678
692
  context: e.context
679
693
  }),
680
- actionAttributes: Oe({
694
+ actionAttributes: Ue({
681
695
  block: e.block,
682
696
  rootState: e.context.rootState,
683
697
  rootSetState: e.context.rootSetState,
@@ -689,14 +703,14 @@ function Pt(e) {
689
703
  }
690
704
  );
691
705
  }
692
- function Vt(e) {
706
+ function $t(e) {
693
707
  function t() {
694
708
  return e.includeBlockProps ? {
695
709
  ...fe({
696
710
  block: e.block,
697
711
  context: e.context
698
712
  }),
699
- ...Oe({
713
+ ...Ue({
700
714
  block: e.block,
701
715
  rootState: e.context.rootState,
702
716
  rootSetState: e.context.rootSetState,
@@ -705,18 +719,18 @@ function Vt(e) {
705
719
  })
706
720
  } : {};
707
721
  }
708
- return /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
722
+ return /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
709
723
  }
710
- const At = ({
724
+ const Dt = ({
711
725
  componentOptions: e,
712
726
  builderBlock: t,
713
727
  context: n,
714
728
  componentRef: i,
715
729
  includeBlockProps: o,
716
- isInteractive: r,
717
- contextValue: a
730
+ isInteractive: a,
731
+ contextValue: r
718
732
  }) => {
719
- const l = {
733
+ const s = {
720
734
  ...e,
721
735
  /**
722
736
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
@@ -725,27 +739,27 @@ const At = ({
725
739
  ...o ? {
726
740
  attributes: fe({
727
741
  block: t,
728
- context: a
742
+ context: r
729
743
  })
730
744
  } : {}
731
745
  };
732
- return r ? {
746
+ return a ? {
733
747
  Wrapper: i,
734
748
  block: t,
735
749
  context: n,
736
750
  wrapperProps: e,
737
751
  includeBlockProps: o
738
- } : l;
752
+ } : s;
739
753
  };
740
754
  function xe(e) {
741
755
  var i;
742
756
  const [t, n] = T(
743
- () => e.isInteractive ? Vt : e.componentRef
757
+ () => e.isInteractive ? $t : e.componentRef
744
758
  );
745
- return /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
759
+ return /* @__PURE__ */ l(R, { children: e.componentRef ? /* @__PURE__ */ l(R, { children: /* @__PURE__ */ l(
746
760
  t,
747
761
  {
748
- ...At({
762
+ ...Dt({
749
763
  componentOptions: e.componentOptions,
750
764
  builderBlock: e.builderBlock,
751
765
  context: e.context,
@@ -755,8 +769,8 @@ function xe(e) {
755
769
  isInteractive: e.isInteractive,
756
770
  contextValue: e.context
757
771
  }),
758
- children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
759
- _,
772
+ children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
773
+ J,
760
774
  {
761
775
  block: o,
762
776
  context: e.context,
@@ -768,10 +782,10 @@ function xe(e) {
768
782
  }
769
783
  ) }) : null });
770
784
  }
771
- function Nt(e) {
785
+ function Lt(e) {
772
786
  const [t, n] = T(() => e.repeatContext);
773
- return /* @__PURE__ */ s(ue.Provider, { value: t, children: /* @__PURE__ */ s(
774
- _,
787
+ return /* @__PURE__ */ l(ue.Provider, { value: t, children: /* @__PURE__ */ l(
788
+ J,
775
789
  {
776
790
  block: e.block,
777
791
  context: t,
@@ -780,24 +794,23 @@ function Nt(e) {
780
794
  }
781
795
  ) });
782
796
  }
783
- function _(e) {
784
- var c, d, f;
797
+ function J(e) {
798
+ var m, h, f;
785
799
  function t() {
786
- return yt({
787
- block: e.block,
788
- context: e.context,
789
- registeredComponents: e.registeredComponents
790
- });
791
- }
792
- function n() {
793
- return xt({
800
+ return Tt({
794
801
  block: e.block,
795
802
  context: e.context
796
803
  });
797
804
  }
798
- function i() {
799
- var u;
800
- return (u = e.block.repeat) != null && u.collection ? e.block : X({
805
+ const [n, i] = T(() => ({
806
+ value: null,
807
+ update: !1
808
+ }));
809
+ function o() {
810
+ var g;
811
+ if (n.value && !n.update && !we())
812
+ return n.value;
813
+ const u = (g = e.block.repeat) != null && g.collection ? e.block : gt({
801
814
  block: e.block,
802
815
  localState: e.context.localState,
803
816
  rootState: e.context.rootState,
@@ -805,100 +818,109 @@ function _(e) {
805
818
  context: e.context.context,
806
819
  shouldEvaluateBindings: !0
807
820
  });
821
+ return n.value = u, n.update = !1, u;
808
822
  }
809
- function o() {
810
- var m;
811
- return e.block.tagName === "a" || ((m = i().properties) == null ? void 0 : m.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
823
+ function a() {
824
+ return Ct({
825
+ block: o(),
826
+ registeredComponents: e.registeredComponents
827
+ });
812
828
  }
813
829
  function r() {
814
- var g, y;
815
- if ((g = e.block.repeat) != null && g.collection)
816
- return !!((y = n == null ? void 0 : n()) != null && y.length);
817
- const u = "hide" in i() ? i().hide : !1;
818
- return ("show" in i() ? i().show : !0) && !u;
830
+ var g;
831
+ return e.block.tagName === "a" || ((g = o().properties) == null ? void 0 : g.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
819
832
  }
820
- function a() {
821
- var m, g;
822
- return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (g = i().children) != null ? g : [] : [];
833
+ function s() {
834
+ var x, b;
835
+ if ((x = e.block.repeat) != null && x.collection)
836
+ return !!((b = t == null ? void 0 : t()) != null && b.length);
837
+ const u = "hide" in o() ? o().hide : !1;
838
+ return ("show" in o() ? o().show : !0) && !u;
839
+ }
840
+ function d() {
841
+ var g, x;
842
+ return !((g = a == null ? void 0 : a()) != null && g.component) && !t() ? (x = o().children) != null ? x : [] : [];
823
843
  }
824
- function l() {
825
- var u, m, g, y;
844
+ function c() {
845
+ var u, g, x, b;
826
846
  return {
827
- blockChildren: (u = i().children) != null ? u : [],
828
- componentRef: (m = t == null ? void 0 : t()) == null ? void 0 : m.component,
847
+ blockChildren: (u = o().children) != null ? u : [],
848
+ componentRef: (g = a == null ? void 0 : a()) == null ? void 0 : g.component,
829
849
  componentOptions: {
830
- ...it(i()),
831
- ...kt(t(), i()),
832
- ...Ct(t(), e.context),
833
- ...vt(t(), e.linkComponent),
834
- ...St(
835
- t(),
850
+ ...it(o()),
851
+ ...Rt(a(), o()),
852
+ ...Et(a(), e.context),
853
+ ...It(a(), e.linkComponent),
854
+ ...wt(
855
+ a(),
836
856
  e.registeredComponents
837
857
  )
838
858
  },
839
859
  context: e.context,
840
860
  linkComponent: e.linkComponent,
841
861
  registeredComponents: e.registeredComponents,
842
- builderBlock: i(),
843
- includeBlockProps: ((g = t == null ? void 0 : t()) == null ? void 0 : g.noWrap) === !0,
844
- isInteractive: !((y = t == null ? void 0 : t()) != null && y.isRSC && q === "rsc")
862
+ builderBlock: o(),
863
+ includeBlockProps: ((x = a == null ? void 0 : a()) == null ? void 0 : x.noWrap) === !0,
864
+ isInteractive: !((b = a == null ? void 0 : a()) != null && b.isRSC && U === "rsc")
845
865
  };
846
866
  }
847
867
  return P(() => {
848
- const u = i().id, m = i().animations;
849
- m && u && mt(
850
- m.map((g) => ({
851
- ...g,
868
+ const u = o().id, g = o().animations;
869
+ g && u && pt(
870
+ g.map((x) => ({
871
+ ...x,
852
872
  elementId: u
853
873
  }))
854
874
  );
855
- }, []), /* @__PURE__ */ s(R, { children: r() ? /* @__PURE__ */ V(R, { children: [
856
- /* @__PURE__ */ s(Tt, { block: e.block, context: e.context }),
857
- (c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
875
+ }, []), P(() => {
876
+ n.update = !0;
877
+ }), /* @__PURE__ */ l(R, { children: s() ? /* @__PURE__ */ V(R, { children: [
878
+ /* @__PURE__ */ l(Bt, { block: o(), context: e.context }),
879
+ (m = a == null ? void 0 : a()) != null && m.noWrap ? /* @__PURE__ */ l(R, { children: /* @__PURE__ */ l(
858
880
  xe,
859
881
  {
860
- componentRef: l().componentRef,
861
- componentOptions: l().componentOptions,
862
- blockChildren: l().blockChildren,
863
- context: l().context,
864
- registeredComponents: l().registeredComponents,
865
- linkComponent: l().linkComponent,
866
- builderBlock: l().builderBlock,
867
- includeBlockProps: l().includeBlockProps,
868
- isInteractive: l().isInteractive
882
+ componentRef: c().componentRef,
883
+ componentOptions: c().componentOptions,
884
+ blockChildren: c().blockChildren,
885
+ context: c().context,
886
+ registeredComponents: c().registeredComponents,
887
+ linkComponent: c().linkComponent,
888
+ builderBlock: c().builderBlock,
889
+ includeBlockProps: c().includeBlockProps,
890
+ isInteractive: c().isInteractive
869
891
  }
870
- ) }) : /* @__PURE__ */ s(R, { children: n() ? /* @__PURE__ */ s(R, { children: (f = n()) == null ? void 0 : f.map((u, m) => /* @__PURE__ */ s(
871
- Nt,
892
+ ) }) : /* @__PURE__ */ l(R, { children: t() ? /* @__PURE__ */ l(R, { children: (f = t()) == null ? void 0 : f.map((u, g) => /* @__PURE__ */ l(
893
+ Lt,
872
894
  {
873
895
  repeatContext: u.context,
874
896
  block: u.block,
875
897
  registeredComponents: e.registeredComponents,
876
898
  linkComponent: e.linkComponent
877
899
  },
878
- m
900
+ g
879
901
  )) }) : /* @__PURE__ */ V(
880
- Pt,
902
+ Ft,
881
903
  {
882
- Wrapper: o(),
883
- block: i(),
904
+ Wrapper: r(),
905
+ block: o(),
884
906
  context: e.context,
885
907
  children: [
886
- /* @__PURE__ */ s(
908
+ /* @__PURE__ */ l(
887
909
  xe,
888
910
  {
889
- componentRef: l().componentRef,
890
- componentOptions: l().componentOptions,
891
- blockChildren: l().blockChildren,
892
- context: l().context,
893
- registeredComponents: l().registeredComponents,
894
- linkComponent: l().linkComponent,
895
- builderBlock: l().builderBlock,
896
- includeBlockProps: l().includeBlockProps,
897
- isInteractive: l().isInteractive
911
+ componentRef: c().componentRef,
912
+ componentOptions: c().componentOptions,
913
+ blockChildren: c().blockChildren,
914
+ context: c().context,
915
+ registeredComponents: c().registeredComponents,
916
+ linkComponent: c().linkComponent,
917
+ builderBlock: c().builderBlock,
918
+ includeBlockProps: c().includeBlockProps,
919
+ isInteractive: c().isInteractive
898
920
  }
899
921
  ),
900
- (d = a()) == null ? void 0 : d.map((u) => /* @__PURE__ */ s(
901
- _,
922
+ (h = d()) == null ? void 0 : h.map((u) => /* @__PURE__ */ l(
923
+ J,
902
924
  {
903
925
  block: u,
904
926
  registeredComponents: e.registeredComponents,
@@ -912,14 +934,15 @@ function _(e) {
912
934
  ) })
913
935
  ] }) : null });
914
936
  }
915
- function Wt(e) {
916
- function t() {
917
- var o;
918
- return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
919
- }
937
+ function Ot(e) {
938
+ const t = z(null);
920
939
  function n() {
921
- var o, r;
922
- $() && !((o = e.blocks) != null && o.length) && ((r = window.parent) == null || r.postMessage(
940
+ var a;
941
+ return "builder-blocks" + ((a = e.blocks) != null && a.length ? "" : " no-blocks");
942
+ }
943
+ function i() {
944
+ var a, r;
945
+ $() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
923
946
  {
924
947
  type: "builder.clickEmptyBlocks",
925
948
  data: {
@@ -930,9 +953,9 @@ function Wt(e) {
930
953
  "*"
931
954
  ));
932
955
  }
933
- function i() {
934
- var o, r;
935
- $() && !((o = e.blocks) != null && o.length) && ((r = window.parent) == null || r.postMessage(
956
+ function o() {
957
+ var a, r;
958
+ $() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
936
959
  {
937
960
  type: "builder.hoverEmptyBlocks",
938
961
  data: {
@@ -943,22 +966,24 @@ function Wt(e) {
943
966
  "*"
944
967
  ));
945
968
  }
946
- return /* @__PURE__ */ V(R, { children: [
947
- /* @__PURE__ */ s(
969
+ return P(() => {
970
+ }, []), /* @__PURE__ */ V(R, { children: [
971
+ /* @__PURE__ */ l(
948
972
  e.BlocksWrapper,
949
973
  {
950
- className: t() + " props-blocks-wrapper-7cd1560e",
974
+ ref: t,
975
+ className: n() + " props-blocks-wrapper-51ef31b4",
951
976
  "builder-path": e.path,
952
977
  "builder-parent-id": e.parent,
953
978
  style: e.styleProp,
954
- onClick: (o) => n(),
955
- onMouseEnter: (o) => i(),
956
- onKeyPress: (o) => n(),
979
+ onClick: (a) => i(),
980
+ onMouseEnter: (a) => o(),
981
+ onKeyPress: (a) => i(),
957
982
  ...e.BlocksWrapperProps,
958
983
  children: e.children
959
984
  }
960
985
  ),
961
- /* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-7cd1560e {
986
+ /* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-51ef31b4 {
962
987
  display: flex;
963
988
  flex-direction: column;
964
989
  align-items: stretch;
@@ -966,10 +991,10 @@ function Wt(e) {
966
991
  ] });
967
992
  }
968
993
  function D(e) {
969
- var i, o, r;
970
- const t = be(ue), n = be(Be);
971
- return /* @__PURE__ */ s(
972
- Wt,
994
+ var i, o, a;
995
+ const t = be(ue), n = be(Pe);
996
+ return /* @__PURE__ */ l(
997
+ Ot,
973
998
  {
974
999
  blocks: e.blocks,
975
1000
  parent: e.parent,
@@ -977,64 +1002,64 @@ function D(e) {
977
1002
  styleProp: e.styleProp,
978
1003
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
979
1004
  BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
980
- children: e.blocks ? /* @__PURE__ */ s(R, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ s(
981
- _,
1005
+ children: e.blocks ? /* @__PURE__ */ l(R, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
1006
+ J,
982
1007
  {
983
- block: a,
1008
+ block: r,
984
1009
  linkComponent: e.linkComponent,
985
1010
  context: e.context || t,
986
1011
  registeredComponents: e.registeredComponents || n.registeredComponents
987
1012
  },
988
- a.id
1013
+ r.id
989
1014
  )) }) : null
990
1015
  }
991
1016
  );
992
1017
  }
993
- const Ft = (e) => `builder-columns ${e}-breakpoints`;
994
- function $t(e) {
1018
+ const Ut = (e) => `builder-columns ${e}-breakpoints`;
1019
+ function Mt(e) {
995
1020
  var A, O;
996
1021
  const [t, n] = T(
997
1022
  () => typeof e.space == "number" ? e.space || 0 : 20
998
- ), [i, o] = T(() => e.columns || []), [r, a] = T(
1023
+ ), [i, o] = T(() => e.columns || []), [a, r] = T(
999
1024
  () => e.stackColumnsAt || "tablet"
1000
1025
  );
1001
- function l(x) {
1002
- return x.link ? e.builderLinkComponent || "a" : "div";
1026
+ function s(v) {
1027
+ return v.link ? e.builderLinkComponent || "a" : "div";
1003
1028
  }
1004
- function c(x) {
1029
+ function d(v) {
1005
1030
  var w;
1006
- return ((w = i[x]) == null ? void 0 : w.width) || 100 / i.length;
1031
+ return ((w = i[v]) == null ? void 0 : w.width) || 100 / i.length;
1007
1032
  }
1008
- function d(x) {
1009
- const w = c(x), N = t * (i.length - 1) * (w / 100);
1033
+ function c(v) {
1034
+ const w = d(v), N = t * (i.length - 1) * (w / 100);
1010
1035
  return `calc(${w}% - ${N}px)`;
1011
1036
  }
1012
- function f({
1013
- stackedStyle: x,
1037
+ function m({
1038
+ stackedStyle: v,
1014
1039
  desktopStyle: w
1015
1040
  }) {
1016
- return r === "tablet" ? x : w;
1041
+ return a === "tablet" ? v : w;
1017
1042
  }
1018
- function u({
1019
- stackedStyle: x,
1043
+ function h({
1044
+ stackedStyle: v,
1020
1045
  desktopStyle: w
1021
1046
  }) {
1022
- return r === "never" ? w : x;
1047
+ return a === "never" ? w : v;
1023
1048
  }
1024
- const [m, g] = T(
1049
+ const [f, u] = T(
1025
1050
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
1026
1051
  );
1027
- function y() {
1052
+ function g() {
1028
1053
  return {
1029
- "--flex-dir": m,
1030
- "--flex-dir-tablet": f({
1031
- stackedStyle: m,
1054
+ "--flex-dir": f,
1055
+ "--flex-dir-tablet": m({
1056
+ stackedStyle: f,
1032
1057
  desktopStyle: "row"
1033
1058
  })
1034
1059
  };
1035
1060
  }
1036
- function C(x) {
1037
- const w = x === 0 ? 0 : t, N = d(x), b = `${w}px`, h = "100%", v = 0;
1061
+ function x(v) {
1062
+ const w = v === 0 ? 0 : t, N = c(v), y = `${w}px`, p = "100%", S = 0;
1038
1063
  return {
1039
1064
  ...{
1040
1065
  display: "flex",
@@ -1042,90 +1067,90 @@ function $t(e) {
1042
1067
  alignItems: "stretch"
1043
1068
  },
1044
1069
  width: N,
1045
- ["marginLeft"]: b,
1046
- "--column-width-mobile": u({
1047
- stackedStyle: h,
1070
+ ["marginLeft"]: y,
1071
+ "--column-width-mobile": h({
1072
+ stackedStyle: p,
1048
1073
  desktopStyle: N
1049
1074
  }),
1050
- "--column-margin-left-mobile": u({
1051
- stackedStyle: v,
1052
- desktopStyle: b
1075
+ "--column-margin-left-mobile": h({
1076
+ stackedStyle: S,
1077
+ desktopStyle: y
1053
1078
  }),
1054
- "--column-width-tablet": f({
1055
- stackedStyle: h,
1079
+ "--column-width-tablet": m({
1080
+ stackedStyle: p,
1056
1081
  desktopStyle: N
1057
1082
  }),
1058
- "--column-margin-left-tablet": f({
1059
- stackedStyle: v,
1060
- desktopStyle: b
1083
+ "--column-margin-left-tablet": m({
1084
+ stackedStyle: S,
1085
+ desktopStyle: y
1061
1086
  })
1062
1087
  };
1063
1088
  }
1064
- function p(x) {
1065
- var N, b;
1066
- return Le(
1067
- ((b = (N = e.builderContext.content) == null ? void 0 : N.meta) == null ? void 0 : b.breakpoints) || {}
1068
- )[x].max;
1089
+ function b(v) {
1090
+ var N, y;
1091
+ return Oe(
1092
+ ((y = (N = e.builderContext.content) == null ? void 0 : N.meta) == null ? void 0 : y.breakpoints) || {}
1093
+ )[v].max;
1069
1094
  }
1070
1095
  function B() {
1071
- const x = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1096
+ const v = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1072
1097
  return `
1073
- @media (max-width: ${p("medium")}px) {
1098
+ @media (max-width: ${b("medium")}px) {
1074
1099
  .${e.builderBlock.id}-breakpoints {
1075
1100
  flex-direction: var(--flex-dir-tablet);
1076
1101
  align-items: stretch;
1077
1102
  }
1078
1103
 
1079
- ${x} {
1104
+ ${v} {
1080
1105
  width: var(--column-width-tablet) !important;
1081
1106
  margin-left: var(--column-margin-left-tablet) !important;
1082
1107
  }
1083
1108
  }
1084
1109
 
1085
- @media (max-width: ${p("small")}px) {
1110
+ @media (max-width: ${b("small")}px) {
1086
1111
  .${e.builderBlock.id}-breakpoints {
1087
1112
  flex-direction: var(--flex-dir);
1088
1113
  align-items: stretch;
1089
1114
  }
1090
1115
 
1091
- ${x} {
1116
+ ${v} {
1092
1117
  width: var(--column-width-mobile) !important;
1093
1118
  margin-left: var(--column-margin-left-mobile) !important;
1094
1119
  }
1095
1120
  },
1096
1121
  `;
1097
1122
  }
1098
- function E(x, w) {
1123
+ function E(v, w) {
1099
1124
  return {
1100
- ...x.link ? {
1101
- href: x.link
1125
+ ...v.link ? {
1126
+ href: v.link
1102
1127
  } : {},
1103
- [z()]: "builder-column",
1104
- style: $e(C(w))
1128
+ [_()]: "builder-column",
1129
+ style: De(x(w))
1105
1130
  };
1106
1131
  }
1107
1132
  return /* @__PURE__ */ V(R, { children: [
1108
1133
  /* @__PURE__ */ V(
1109
1134
  "div",
1110
1135
  {
1111
- className: Ft((A = e.builderBlock) == null ? void 0 : A.id) + " div-34f576bb",
1112
- style: y(),
1136
+ className: Ut((A = e.builderBlock) == null ? void 0 : A.id) + " div-34f576bb",
1137
+ style: g(),
1113
1138
  children: [
1114
- /* @__PURE__ */ s(
1115
- ne,
1139
+ /* @__PURE__ */ l(
1140
+ te,
1116
1141
  {
1117
1142
  id: "builderio-columns",
1118
1143
  styles: B(),
1119
1144
  nonce: e.builderContext.nonce
1120
1145
  }
1121
1146
  ),
1122
- (O = e.columns) == null ? void 0 : O.map((x, w) => /* @__PURE__ */ s(
1147
+ (O = e.columns) == null ? void 0 : O.map((v, w) => /* @__PURE__ */ l(
1123
1148
  de,
1124
1149
  {
1125
- TagName: l(x),
1150
+ TagName: s(v),
1126
1151
  actionAttributes: {},
1127
- attributes: E(x, w),
1128
- children: /* @__PURE__ */ s(
1152
+ attributes: E(v, w),
1153
+ children: /* @__PURE__ */ l(
1129
1154
  D,
1130
1155
  {
1131
1156
  path: `component.options.columns.${w}.blocks`,
@@ -1136,7 +1161,7 @@ function $t(e) {
1136
1161
  context: e.builderContext,
1137
1162
  registeredComponents: e.builderComponents,
1138
1163
  linkComponent: e.builderLinkComponent,
1139
- blocks: x.blocks
1164
+ blocks: v.blocks
1140
1165
  }
1141
1166
  )
1142
1167
  },
@@ -1145,83 +1170,83 @@ function $t(e) {
1145
1170
  ]
1146
1171
  }
1147
1172
  ),
1148
- /* @__PURE__ */ s("style", { children: `.div-34f576bb {
1173
+ /* @__PURE__ */ l("style", { children: `.div-34f576bb {
1149
1174
  display: flex;
1150
1175
  line-height: normal;
1151
1176
  }` })
1152
1177
  ] });
1153
1178
  }
1154
- function Dt(e) {
1155
- return /* @__PURE__ */ s("span", { children: e.children });
1179
+ function jt(e) {
1180
+ return /* @__PURE__ */ l("span", { children: e.children });
1156
1181
  }
1157
1182
  function ve(e) {
1158
1183
  return e.replace(/http(s)?:/, "");
1159
1184
  }
1160
- function Lt(e = "", t, n) {
1185
+ function Ht(e = "", t, n) {
1161
1186
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1162
1187
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1163
1188
  }
1164
- function Ot(e, t) {
1189
+ function Kt(e, t) {
1165
1190
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1166
1191
  return e;
1167
1192
  if (t === "master")
1168
1193
  return ve(e);
1169
1194
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1170
1195
  if (n) {
1171
- const i = e.split(n[0]), o = n[3], r = t.match("x") ? t : `${t}x`;
1172
- return ve(`${i[0]}_${r}${o}`);
1196
+ const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
1197
+ return ve(`${i[0]}_${a}${o}`);
1173
1198
  }
1174
1199
  return null;
1175
1200
  }
1176
- function oe(e) {
1201
+ function ie(e) {
1177
1202
  if (!e)
1178
1203
  return e;
1179
1204
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1180
1205
  if (e.match(/builder\.io/)) {
1181
1206
  let n = e;
1182
1207
  const i = Number(e.split("?width=")[1]);
1183
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Lt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1208
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Ht(e, "width", o)} ${o}w`).concat([n]).join(", ");
1184
1209
  }
1185
- 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;
1210
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Kt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1186
1211
  }
1187
- function jt(e) {
1188
- var o, r, a, l, c, d;
1212
+ function qt(e) {
1213
+ var o, a, r, s, d, c;
1189
1214
  function t() {
1190
- var m;
1191
- const u = e.image || e.src;
1192
- if (!u || // We can auto add srcset for cdn.builder.io and shopify
1215
+ var f;
1216
+ const h = e.image || e.src;
1217
+ if (!h || // We can auto add srcset for cdn.builder.io and shopify
1193
1218
  // images, otherwise you can supply this prop manually
1194
- !(u.match(/builder\.io/) || u.match(/cdn\.shopify\.com/)))
1219
+ !(h.match(/builder\.io/) || h.match(/cdn\.shopify\.com/)))
1195
1220
  return e.srcset;
1196
1221
  if (!e.noWebp) {
1197
- if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1222
+ if (e.srcset && ((f = e.image) != null && f.includes("builder.io/api/v1/image"))) {
1198
1223
  if (!e.srcset.includes(e.image.split("?")[0]))
1199
- return console.debug("Removed given srcset"), oe(u);
1224
+ return console.debug("Removed given srcset"), ie(h);
1200
1225
  } else if (e.image && !e.srcset)
1201
- return oe(u);
1202
- return oe(u);
1226
+ return ie(h);
1227
+ return ie(h);
1203
1228
  }
1204
1229
  }
1205
1230
  function n() {
1206
- var f;
1207
- return (f = t == null ? void 0 : t()) != null && f.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
1231
+ var m;
1232
+ return (m = t == null ? void 0 : t()) != null && m.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
1208
1233
  }
1209
1234
  function i() {
1210
- const f = {
1235
+ const m = {
1211
1236
  position: "absolute",
1212
1237
  height: "100%",
1213
1238
  width: "100%",
1214
1239
  left: "0px",
1215
1240
  top: "0px"
1216
1241
  };
1217
- return e.aspectRatio ? f : void 0;
1242
+ return e.aspectRatio ? m : void 0;
1218
1243
  }
1219
1244
  return P(() => {
1220
1245
  }, []), /* @__PURE__ */ V(R, { children: [
1221
1246
  /* @__PURE__ */ V(R, { children: [
1222
1247
  /* @__PURE__ */ V("picture", { children: [
1223
- n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1224
- /* @__PURE__ */ s(
1248
+ n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
1249
+ /* @__PURE__ */ l(
1225
1250
  "img",
1226
1251
  {
1227
1252
  loading: e.highPriority ? "eager" : "lazy",
@@ -1240,7 +1265,7 @@ function jt(e) {
1240
1265
  }
1241
1266
  )
1242
1267
  ] }),
1243
- e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
1268
+ e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(
1244
1269
  "div",
1245
1270
  {
1246
1271
  className: "builder-image-sizer div-2d6925f2",
@@ -1249,10 +1274,10 @@ function jt(e) {
1249
1274
  }
1250
1275
  }
1251
1276
  ) : null,
1252
- (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
1253
- !e.fitContent && ((d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length) ? /* @__PURE__ */ s("div", { className: "div-2d6925f2-2", children: e.children }) : null
1277
+ (s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(R, { children: e.children }) : null,
1278
+ !e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ l("div", { className: "div-2d6925f2-2", children: e.children }) : null
1254
1279
  ] }),
1255
- /* @__PURE__ */ s("style", { children: `.img-2d6925f2 {
1280
+ /* @__PURE__ */ l("style", { children: `.img-2d6925f2 {
1256
1281
  opacity: 1;
1257
1282
  transition: opacity 0.2s ease-in-out;
1258
1283
  }.div-2d6925f2 {
@@ -1271,8 +1296,8 @@ function jt(e) {
1271
1296
  }` })
1272
1297
  ] });
1273
1298
  }
1274
- function Ut(e) {
1275
- return /* @__PURE__ */ s(
1299
+ function _t(e) {
1300
+ return /* @__PURE__ */ l(
1276
1301
  "section",
1277
1302
  {
1278
1303
  ...e.attributes,
@@ -1292,7 +1317,7 @@ function Ut(e) {
1292
1317
  }
1293
1318
  );
1294
1319
  }
1295
- const ae = {
1320
+ const oe = {
1296
1321
  "@type": "@builder.io/sdk:Element",
1297
1322
  layerName: "Accordion item title",
1298
1323
  responsiveStyles: {
@@ -1321,7 +1346,7 @@ const ae = {
1321
1346
  }
1322
1347
  }
1323
1348
  }]
1324
- }, re = {
1349
+ }, ae = {
1325
1350
  "@type": "@builder.io/sdk:Element",
1326
1351
  layerName: "Accordion item detail",
1327
1352
  responsiveStyles: {
@@ -1352,7 +1377,7 @@ const ae = {
1352
1377
  }
1353
1378
  }
1354
1379
  }]
1355
- }, Mt = {
1380
+ }, zt = {
1356
1381
  name: "Builder:Accordion",
1357
1382
  canHaveChildren: !0,
1358
1383
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1369,19 +1394,19 @@ const ae = {
1369
1394
  name: "title",
1370
1395
  type: "uiBlocks",
1371
1396
  hideFromUI: !0,
1372
- defaultValue: [ae]
1397
+ defaultValue: [oe]
1373
1398
  }, {
1374
1399
  name: "detail",
1375
1400
  type: "uiBlocks",
1376
1401
  hideFromUI: !0,
1377
- defaultValue: [re]
1402
+ defaultValue: [ae]
1378
1403
  }],
1379
1404
  defaultValue: [{
1380
- title: [ae],
1381
- detail: [re]
1405
+ title: [oe],
1406
+ detail: [ae]
1382
1407
  }, {
1383
- title: [ae],
1384
- detail: [re]
1408
+ title: [oe],
1409
+ detail: [ae]
1385
1410
  }],
1386
1411
  showIf: (e) => !e.get("useChildrenForItems")
1387
1412
  }, {
@@ -1417,8 +1442,8 @@ const ae = {
1417
1442
  builderLinkComponent: !0
1418
1443
  }
1419
1444
  }, Se = (e) => e.toString();
1420
- function Ht(e) {
1421
- var u;
1445
+ function Jt(e) {
1446
+ var h;
1422
1447
  const [t, n] = T(() => []);
1423
1448
  function i() {
1424
1449
  return !!(e.grid || e.oneAtATime);
@@ -1435,8 +1460,8 @@ function Ht(e) {
1435
1460
  }
1436
1461
  };
1437
1462
  }
1438
- function r() {
1439
- const g = {
1463
+ function a() {
1464
+ const u = {
1440
1465
  ...{
1441
1466
  display: "flex",
1442
1467
  flexDirection: "column"
@@ -1445,73 +1470,73 @@ function Ht(e) {
1445
1470
  cursor: "pointer"
1446
1471
  };
1447
1472
  return Object.fromEntries(
1448
- Object.entries(g).filter(([y, C]) => C !== void 0)
1473
+ Object.entries(u).filter(([g, x]) => x !== void 0)
1449
1474
  );
1450
1475
  }
1451
- function a(m) {
1452
- return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
1476
+ function r(f) {
1477
+ return `builder-accordion-title builder-accordion-title-${t.includes(f) ? "open" : "closed"}`;
1453
1478
  }
1454
- function l(m) {
1455
- return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
1479
+ function s(f) {
1480
+ return `builder-accordion-detail builder-accordion-detail-${t.includes(f) ? "open" : "closed"}`;
1456
1481
  }
1457
- function c() {
1458
- let m = null;
1482
+ function d() {
1483
+ let f = null;
1459
1484
  if (e.grid && t.length && document) {
1460
- const y = t[0];
1461
- let p = document.querySelector(
1462
- `.builder-accordion-title[data-index="${y}"]`
1485
+ const g = t[0];
1486
+ let b = document.querySelector(
1487
+ `.builder-accordion-title[data-index="${g}"]`
1463
1488
  );
1464
- if (m = y, p) {
1465
- let B = p.getBoundingClientRect();
1466
- for (; p = p && p.nextElementSibling; )
1467
- if (p) {
1468
- if (p.classList.contains("builder-accordion-detail"))
1489
+ if (f = g, b) {
1490
+ let B = b.getBoundingClientRect();
1491
+ for (; b = b && b.nextElementSibling; )
1492
+ if (b) {
1493
+ if (b.classList.contains("builder-accordion-detail"))
1469
1494
  continue;
1470
- const E = p.getBoundingClientRect();
1495
+ const E = b.getBoundingClientRect();
1471
1496
  if (E.left > B.left) {
1472
1497
  const A = parseInt(
1473
- p.getAttribute("data-index") || "",
1498
+ b.getAttribute("data-index") || "",
1474
1499
  10
1475
1500
  );
1476
- isNaN(A) || (B = E, m = A);
1501
+ isNaN(A) || (B = E, f = A);
1477
1502
  } else
1478
1503
  break;
1479
1504
  }
1480
1505
  }
1481
1506
  }
1482
- return typeof m == "number" && (m = m + 1), m;
1507
+ return typeof f == "number" && (f = f + 1), f;
1483
1508
  }
1484
- function d() {
1485
- const m = {
1486
- order: typeof c() == "number" ? c() : void 0,
1509
+ function c() {
1510
+ const f = {
1511
+ order: typeof d() == "number" ? d() : void 0,
1487
1512
  ...e.grid && {
1488
1513
  width: "100%"
1489
1514
  }
1490
1515
  };
1491
1516
  return Object.fromEntries(
1492
- Object.entries(m).filter(([g, y]) => y !== void 0)
1517
+ Object.entries(f).filter(([u, g]) => g !== void 0)
1493
1518
  );
1494
1519
  }
1495
- function f(m) {
1496
- t.includes(m) ? n(i() ? [] : t.filter((g) => g !== m)) : n(i() ? [m] : t.concat(m));
1520
+ function m(f) {
1521
+ t.includes(f) ? n(i() ? [] : t.filter((u) => u !== f)) : n(i() ? [f] : t.concat(f));
1497
1522
  }
1498
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (u = e.items) == null ? void 0 : u.map((m, g) => /* @__PURE__ */ V(R, { children: [
1499
- /* @__PURE__ */ s(
1523
+ return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (h = e.items) == null ? void 0 : h.map((f, u) => /* @__PURE__ */ V(R, { children: [
1524
+ /* @__PURE__ */ l(
1500
1525
  "div",
1501
1526
  {
1502
- className: a(g),
1527
+ className: r(u),
1503
1528
  style: {
1504
- ...r(),
1529
+ ...a(),
1505
1530
  width: e.grid ? e.gridRowWidth : void 0,
1506
- order: c() !== null ? Se(g) : Se(g + 1)
1531
+ order: d() !== null ? Se(u) : Se(u + 1)
1507
1532
  },
1508
- "data-index": g,
1509
- onClick: (y) => f(g),
1510
- children: /* @__PURE__ */ s(
1533
+ "data-index": u,
1534
+ onClick: (g) => m(u),
1535
+ children: /* @__PURE__ */ l(
1511
1536
  D,
1512
1537
  {
1513
- blocks: m.title,
1514
- path: `items.${g}.title`,
1538
+ blocks: f.title,
1539
+ path: `items.${u}.title`,
1515
1540
  parent: e.builderBlock.id,
1516
1541
  context: e.builderContext,
1517
1542
  registeredComponents: e.builderComponents,
@@ -1520,16 +1545,16 @@ function Ht(e) {
1520
1545
  )
1521
1546
  }
1522
1547
  ),
1523
- t.includes(g) ? /* @__PURE__ */ s(
1548
+ t.includes(u) ? /* @__PURE__ */ l(
1524
1549
  "div",
1525
1550
  {
1526
- className: l(g),
1527
- style: d(),
1528
- children: /* @__PURE__ */ s(
1551
+ className: s(u),
1552
+ style: c(),
1553
+ children: /* @__PURE__ */ l(
1529
1554
  D,
1530
1555
  {
1531
- blocks: m.detail,
1532
- path: `items.${g}.detail`,
1556
+ blocks: f.detail,
1557
+ path: `items.${u}.detail`,
1533
1558
  parent: e.builderBlock.id,
1534
1559
  context: e.builderContext,
1535
1560
  registeredComponents: e.builderComponents,
@@ -1540,7 +1565,7 @@ function Ht(e) {
1540
1565
  ) : null
1541
1566
  ] })) });
1542
1567
  }
1543
- const qt = {
1568
+ const Yt = {
1544
1569
  name: "Core:Button",
1545
1570
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1546
1571
  defaultStyles: {
@@ -1576,7 +1601,7 @@ const qt = {
1576
1601
  shouldReceiveBuilderProps: {
1577
1602
  builderLinkComponent: !0
1578
1603
  }
1579
- }, Kt = {
1604
+ }, Gt = {
1580
1605
  // TODO: ways to statically preprocess JSON for references, functions, etc
1581
1606
  name: "Columns",
1582
1607
  isRSC: !0,
@@ -1755,7 +1780,7 @@ const qt = {
1755
1780
  });
1756
1781
  }
1757
1782
  const n = e.get("columns");
1758
- Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((l, c) => l + c.get("width"), 0) !== 100) && t();
1783
+ Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((s, d) => s + d.get("width"), 0) !== 100) && t();
1759
1784
  }
1760
1785
  }, {
1761
1786
  name: "space",
@@ -1783,13 +1808,13 @@ const qt = {
1783
1808
  builderComponents: !0,
1784
1809
  builderLinkComponent: !0
1785
1810
  }
1786
- }, zt = {
1811
+ }, Qt = {
1787
1812
  name: "Fragment",
1788
1813
  static: !0,
1789
1814
  hidden: !0,
1790
1815
  canHaveChildren: !0,
1791
1816
  noWrap: !0
1792
- }, _t = {
1817
+ }, Xt = {
1793
1818
  name: "Image",
1794
1819
  static: !0,
1795
1820
  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",
@@ -1809,29 +1834,29 @@ const qt = {
1809
1834
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1810
1835
  onChange: (e) => {
1811
1836
  e.delete("srcset"), e.delete("noWebp");
1812
- function n(a, l = 6e4) {
1813
- return new Promise((c, d) => {
1814
- const f = document.createElement("img");
1815
- let u = !1;
1816
- f.onload = () => {
1817
- u = !0, c(f);
1818
- }, f.addEventListener("error", (m) => {
1819
- console.warn("Image load failed", m.error), d(m.error);
1820
- }), f.src = a, setTimeout(() => {
1821
- u || d(new Error("Image load timed out"));
1822
- }, l);
1837
+ function n(r, s = 6e4) {
1838
+ return new Promise((d, c) => {
1839
+ const m = document.createElement("img");
1840
+ let h = !1;
1841
+ m.onload = () => {
1842
+ h = !0, d(m);
1843
+ }, m.addEventListener("error", (f) => {
1844
+ console.warn("Image load failed", f.error), c(f.error);
1845
+ }), m.src = r, setTimeout(() => {
1846
+ h || c(new Error("Image load timed out"));
1847
+ }, s);
1823
1848
  });
1824
1849
  }
1825
- function i(a) {
1826
- return Math.round(a * 1e3) / 1e3;
1850
+ function i(r) {
1851
+ return Math.round(r * 1e3) / 1e3;
1827
1852
  }
1828
- const o = e.get("image"), r = e.get("aspectRatio");
1829
- if (fetch(o).then((a) => a.blob()).then((a) => {
1830
- a.type.includes("svg") && e.set("noWebp", !0);
1831
- }), o && (!r || r === 0.7041))
1832
- return n(o).then((a) => {
1833
- const l = e.get("aspectRatio");
1834
- e.get("image") === o && (!l || l === 0.7041) && a.width && a.height && (e.set("aspectRatio", i(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
1853
+ const o = e.get("image"), a = e.get("aspectRatio");
1854
+ if (fetch(o).then((r) => r.blob()).then((r) => {
1855
+ r.type.includes("svg") && e.set("noWebp", !0);
1856
+ }), o && (!a || a === 0.7041))
1857
+ return n(o).then((r) => {
1858
+ const s = e.get("aspectRatio");
1859
+ e.get("image") === o && (!s || s === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
1835
1860
  });
1836
1861
  }
1837
1862
  }, {
@@ -1897,7 +1922,7 @@ const qt = {
1897
1922
  shouldReceiveBuilderProps: {
1898
1923
  builderBlock: !0
1899
1924
  }
1900
- }, Jt = {
1925
+ }, Zt = {
1901
1926
  name: "Core:Section",
1902
1927
  static: !0,
1903
1928
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1936,7 +1961,7 @@ const qt = {
1936
1961
  }
1937
1962
  }
1938
1963
  }]
1939
- }, Yt = {
1964
+ }, en = {
1940
1965
  name: "Slot",
1941
1966
  isRSC: !0,
1942
1967
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1953,9 +1978,9 @@ const qt = {
1953
1978
  builderContext: !0
1954
1979
  }
1955
1980
  };
1956
- function Gt(e) {
1981
+ function tn(e) {
1957
1982
  var t, n, i;
1958
- return /* @__PURE__ */ s(
1983
+ return /* @__PURE__ */ l(
1959
1984
  "div",
1960
1985
  {
1961
1986
  style: {
@@ -1964,7 +1989,7 @@ function Gt(e) {
1964
1989
  ...!((t = e.builderContext.context) != null && t.symbolId) && {
1965
1990
  "builder-slot": e.name
1966
1991
  },
1967
- children: /* @__PURE__ */ s(
1992
+ children: /* @__PURE__ */ l(
1968
1993
  D,
1969
1994
  {
1970
1995
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
@@ -1976,7 +2001,7 @@ function Gt(e) {
1976
2001
  }
1977
2002
  );
1978
2003
  }
1979
- const Qt = {
2004
+ const nn = {
1980
2005
  name: "Symbol",
1981
2006
  noWrap: !0,
1982
2007
  static: !0,
@@ -2015,7 +2040,7 @@ const Qt = {
2015
2040
  builderComponents: !0,
2016
2041
  builderLinkComponent: !0
2017
2042
  }
2018
- }, le = {
2043
+ }, re = {
2019
2044
  "@type": "@builder.io/sdk:Element",
2020
2045
  responsiveStyles: {
2021
2046
  large: {
@@ -2037,7 +2062,7 @@ const Qt = {
2037
2062
  text: "New tab"
2038
2063
  }
2039
2064
  }
2040
- }, se = {
2065
+ }, le = {
2041
2066
  "@type": "@builder.io/sdk:Element",
2042
2067
  responsiveStyles: {
2043
2068
  large: {
@@ -2053,7 +2078,7 @@ const Qt = {
2053
2078
  text: "New tab content "
2054
2079
  }
2055
2080
  }
2056
- }, Xt = {
2081
+ }, on = {
2057
2082
  name: "Builder: Tabs",
2058
2083
  inputs: [{
2059
2084
  name: "tabs",
@@ -2063,16 +2088,16 @@ const Qt = {
2063
2088
  name: "label",
2064
2089
  type: "uiBlocks",
2065
2090
  hideFromUI: !0,
2066
- defaultValue: [le]
2091
+ defaultValue: [re]
2067
2092
  }, {
2068
2093
  name: "content",
2069
2094
  type: "uiBlocks",
2070
2095
  hideFromUI: !0,
2071
- defaultValue: [se]
2096
+ defaultValue: [le]
2072
2097
  }],
2073
2098
  defaultValue: [{
2074
2099
  label: [{
2075
- ...le,
2100
+ ...re,
2076
2101
  component: {
2077
2102
  name: "Text",
2078
2103
  options: {
@@ -2081,7 +2106,7 @@ const Qt = {
2081
2106
  }
2082
2107
  }],
2083
2108
  content: [{
2084
- ...se,
2109
+ ...le,
2085
2110
  component: {
2086
2111
  name: "Text",
2087
2112
  options: {
@@ -2091,7 +2116,7 @@ const Qt = {
2091
2116
  }]
2092
2117
  }, {
2093
2118
  label: [{
2094
- ...le,
2119
+ ...re,
2095
2120
  component: {
2096
2121
  name: "Text",
2097
2122
  options: {
@@ -2100,7 +2125,7 @@ const Qt = {
2100
2125
  }
2101
2126
  }],
2102
2127
  content: [{
2103
- ...se,
2128
+ ...le,
2104
2129
  component: {
2105
2130
  name: "Text",
2106
2131
  options: {
@@ -2157,19 +2182,19 @@ const Qt = {
2157
2182
  builderLinkComponent: !0
2158
2183
  }
2159
2184
  };
2160
- function Zt(e) {
2161
- var r;
2185
+ function an(e) {
2186
+ var a;
2162
2187
  const [t, n] = T(
2163
2188
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
2164
2189
  );
2165
- function i(a) {
2166
- return e.tabs && e.tabs[a].content;
2190
+ function i(r) {
2191
+ return e.tabs && e.tabs[r].content;
2167
2192
  }
2168
- function o(a) {
2169
- a === t && e.collapsible ? n(-1) : n(a);
2193
+ function o(r) {
2194
+ r === t && e.collapsible ? n(-1) : n(r);
2170
2195
  }
2171
2196
  return /* @__PURE__ */ V("div", { children: [
2172
- /* @__PURE__ */ s(
2197
+ /* @__PURE__ */ l(
2173
2198
  "div",
2174
2199
  {
2175
2200
  className: "builder-tabs-wrap",
@@ -2179,31 +2204,31 @@ function Zt(e) {
2179
2204
  justifyContent: e.tabHeaderLayout || "flex-start",
2180
2205
  overflow: "auto"
2181
2206
  },
2182
- children: (r = e.tabs) == null ? void 0 : r.map((a, l) => /* @__PURE__ */ s(
2207
+ children: (a = e.tabs) == null ? void 0 : a.map((r, s) => /* @__PURE__ */ l(
2183
2208
  "span",
2184
2209
  {
2185
- className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
2210
+ className: `builder-tab-wrap ${t === s ? "builder-tab-active" : ""}`,
2186
2211
  style: {
2187
- ...t === l ? e.activeTabStyle : {}
2212
+ ...t === s ? e.activeTabStyle : {}
2188
2213
  },
2189
- onClick: (c) => o(l),
2190
- children: /* @__PURE__ */ s(
2214
+ onClick: (d) => o(s),
2215
+ children: /* @__PURE__ */ l(
2191
2216
  D,
2192
2217
  {
2193
2218
  parent: e.builderBlock.id,
2194
- path: `component.options.tabs.${l}.label`,
2195
- blocks: a.label,
2219
+ path: `component.options.tabs.${s}.label`,
2220
+ blocks: r.label,
2196
2221
  context: e.builderContext,
2197
2222
  registeredComponents: e.builderComponents,
2198
2223
  linkComponent: e.builderLinkComponent
2199
2224
  }
2200
2225
  )
2201
2226
  },
2202
- l
2227
+ s
2203
2228
  ))
2204
2229
  }
2205
2230
  ),
2206
- i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
2231
+ i(t) ? /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
2207
2232
  D,
2208
2233
  {
2209
2234
  parent: e.builderBlock.id,
@@ -2216,7 +2241,7 @@ function Zt(e) {
2216
2241
  ) }) : null
2217
2242
  ] });
2218
2243
  }
2219
- const en = {
2244
+ const rn = {
2220
2245
  shouldReceiveBuilderProps: {
2221
2246
  builderBlock: !1,
2222
2247
  builderContext: !0
@@ -2239,28 +2264,28 @@ const en = {
2239
2264
  textAlign: "center"
2240
2265
  }
2241
2266
  };
2242
- function tn(e) {
2267
+ function ln(e) {
2243
2268
  function t() {
2244
- var l;
2269
+ var s;
2245
2270
  const n = e.builderContext, {
2246
2271
  context: i,
2247
2272
  localState: o,
2248
- rootState: r,
2249
- rootSetState: a
2273
+ rootState: a,
2274
+ rootSetState: r
2250
2275
  } = n;
2251
- return String(((l = e.text) == null ? void 0 : l.toString()) || "").replace(
2276
+ return String(((s = e.text) == null ? void 0 : s.toString()) || "").replace(
2252
2277
  /{{([^}]+)}}/g,
2253
- (c, d) => H({
2254
- code: d,
2278
+ (d, c) => K({
2279
+ code: c,
2255
2280
  context: i,
2256
2281
  localState: o,
2257
- rootState: r,
2258
- rootSetState: a,
2282
+ rootState: a,
2283
+ rootSetState: r,
2259
2284
  enableCache: !1
2260
2285
  })
2261
2286
  );
2262
2287
  }
2263
- return /* @__PURE__ */ s(
2288
+ return /* @__PURE__ */ l(
2264
2289
  "div",
2265
2290
  {
2266
2291
  className: "builder-text",
@@ -2271,7 +2296,7 @@ function tn(e) {
2271
2296
  }
2272
2297
  );
2273
2298
  }
2274
- const nn = {
2299
+ const sn = {
2275
2300
  name: "Custom Code",
2276
2301
  static: !0,
2277
2302
  requiredPermissions: ["editCode"],
@@ -2294,36 +2319,36 @@ const nn = {
2294
2319
  advanced: !0
2295
2320
  }]
2296
2321
  };
2297
- function on(e) {
2298
- const t = ee(null), [n, i] = T(() => []), [o, r] = T(() => []);
2322
+ function cn(e) {
2323
+ const t = z(null), [n, i] = T(() => []), [o, a] = T(() => []);
2299
2324
  return P(() => {
2300
- var l;
2301
- if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
2325
+ var s;
2326
+ if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
2302
2327
  return;
2303
- const a = t.current.getElementsByTagName("script");
2304
- for (let c = 0; c < a.length; c++) {
2305
- const d = a[c];
2306
- if (d.src) {
2307
- if (n.includes(d.src))
2328
+ const r = t.current.getElementsByTagName("script");
2329
+ for (let d = 0; d < r.length; d++) {
2330
+ const c = r[d];
2331
+ if (c.src) {
2332
+ if (n.includes(c.src))
2308
2333
  continue;
2309
- n.push(d.src);
2310
- const f = document.createElement("script");
2311
- f.async = !0, f.src = d.src, document.head.appendChild(f);
2312
- } else if (!d.type || [
2334
+ n.push(c.src);
2335
+ const m = document.createElement("script");
2336
+ m.async = !0, m.src = c.src, document.head.appendChild(m);
2337
+ } else if (!c.type || [
2313
2338
  "text/javascript",
2314
2339
  "application/javascript",
2315
2340
  "application/ecmascript"
2316
- ].includes(d.type)) {
2317
- if (o.includes(d.innerText))
2341
+ ].includes(c.type)) {
2342
+ if (o.includes(c.innerText))
2318
2343
  continue;
2319
2344
  try {
2320
- o.push(d.innerText), new Function(d.innerText)();
2321
- } catch (f) {
2322
- console.warn("`CustomCode`: Error running script:", f);
2345
+ o.push(c.innerText), new Function(c.innerText)();
2346
+ } catch (m) {
2347
+ console.warn("`CustomCode`: Error running script:", m);
2323
2348
  }
2324
2349
  }
2325
2350
  }
2326
- }, []), /* @__PURE__ */ s(
2351
+ }, []), /* @__PURE__ */ l(
2327
2352
  "div",
2328
2353
  {
2329
2354
  ref: t,
@@ -2332,7 +2357,7 @@ function on(e) {
2332
2357
  }
2333
2358
  );
2334
2359
  }
2335
- const an = {
2360
+ const dn = {
2336
2361
  name: "Embed",
2337
2362
  static: !0,
2338
2363
  inputs: [{
@@ -2347,30 +2372,30 @@ const an = {
2347
2372
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2348
2373
  hideFromUI: !0
2349
2374
  }]
2350
- }, rn = ["text/javascript", "application/javascript", "application/ecmascript"], ln = (e) => rn.includes(e.type);
2351
- function sn(e) {
2352
- const t = ee(null), [n, i] = T(() => []), [o, r] = T(() => []), [a, l] = T(() => !1);
2353
- function c() {
2375
+ }, un = ["text/javascript", "application/javascript", "application/ecmascript"], mn = (e) => un.includes(e.type);
2376
+ function fn(e) {
2377
+ const t = z(null), [n, i] = T(() => []), [o, a] = T(() => []), [r, s] = T(() => !1);
2378
+ function d() {
2354
2379
  if (!t.current || !t.current.getElementsByTagName)
2355
2380
  return;
2356
- const d = t.current.getElementsByTagName("script");
2357
- for (let f = 0; f < d.length; f++) {
2358
- const u = d[f];
2359
- if (u.src && !n.includes(u.src)) {
2360
- n.push(u.src);
2361
- const m = document.createElement("script");
2362
- m.async = !0, m.src = u.src, document.head.appendChild(m);
2363
- } else if (ln(u) && !o.includes(u.innerText))
2381
+ const c = t.current.getElementsByTagName("script");
2382
+ for (let m = 0; m < c.length; m++) {
2383
+ const h = c[m];
2384
+ if (h.src && !n.includes(h.src)) {
2385
+ n.push(h.src);
2386
+ const f = document.createElement("script");
2387
+ f.async = !0, f.src = h.src, document.head.appendChild(f);
2388
+ } else if (mn(h) && !o.includes(h.innerText))
2364
2389
  try {
2365
- o.push(u.innerText), new Function(u.innerText)();
2366
- } catch (m) {
2367
- console.warn("`Embed`: Error running script:", m);
2390
+ o.push(h.innerText), new Function(h.innerText)();
2391
+ } catch (f) {
2392
+ console.warn("`Embed`: Error running script:", f);
2368
2393
  }
2369
2394
  }
2370
2395
  }
2371
2396
  return P(() => {
2372
- t.current && !a && (l(!0), c());
2373
- }, [t.current, a]), /* @__PURE__ */ s(
2397
+ t.current && !r && (s(!0), d());
2398
+ }, [t.current, r]), /* @__PURE__ */ l(
2374
2399
  "div",
2375
2400
  {
2376
2401
  className: "builder-embed",
@@ -2379,7 +2404,7 @@ function sn(e) {
2379
2404
  }
2380
2405
  );
2381
2406
  }
2382
- const cn = {
2407
+ const hn = {
2383
2408
  name: "Form:Form",
2384
2409
  // editableTags: ['builder-form-error']
2385
2410
  defaults: {
@@ -2616,118 +2641,118 @@ const cn = {
2616
2641
  builderComponents: !0,
2617
2642
  builderLinkComponent: !0
2618
2643
  }
2619
- }, dn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], un = () => {
2644
+ }, gn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], bn = () => {
2620
2645
  const e = process.env.NODE_ENV || "production";
2621
- return dn.includes(e) ? e : "production";
2622
- }, mn = (e, t, n) => {
2623
- const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, r) => o != null ? o[r] : o, e);
2646
+ return gn.includes(e) ? e : "production";
2647
+ }, pn = (e, t, n) => {
2648
+ const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
2624
2649
  return i === void 0 || i === e ? n : i;
2625
2650
  };
2626
- function fn(e) {
2627
- var u, m;
2628
- const t = ee(null), [n, i] = T(() => "unsubmitted"), [o, r] = T(() => null), [a, l] = T(() => "");
2629
- function c(g) {
2630
- var C, p;
2631
- const y = {
2651
+ function yn(e) {
2652
+ var h, f;
2653
+ const t = z(null), [n, i] = T(() => "unsubmitted"), [o, a] = T(() => null), [r, s] = T(() => "");
2654
+ function d(u) {
2655
+ var x, b;
2656
+ const g = {
2632
2657
  ...e.builderContext.rootState,
2633
- ...g
2658
+ ...u
2634
2659
  };
2635
- e.builderContext.rootSetState ? (p = (C = e.builderContext).rootSetState) == null || p.call(C, y) : e.builderContext.rootState = y;
2660
+ e.builderContext.rootSetState ? (b = (x = e.builderContext).rootSetState) == null || b.call(x, g) : e.builderContext.rootState = g;
2636
2661
  }
2637
- function d() {
2662
+ function c() {
2638
2663
  return $() && e.previewState || n;
2639
2664
  }
2640
- function f(g) {
2641
- var C;
2642
- const y = e.sendWithJs || e.sendSubmissionsTo === "email";
2665
+ function m(u) {
2666
+ var x;
2667
+ const g = e.sendWithJs || e.sendSubmissionsTo === "email";
2643
2668
  if (e.sendSubmissionsTo === "zapier")
2644
- g.preventDefault();
2645
- else if (y) {
2669
+ u.preventDefault();
2670
+ else if (g) {
2646
2671
  if (!(e.action || e.sendSubmissionsTo === "email")) {
2647
- g.preventDefault();
2672
+ u.preventDefault();
2648
2673
  return;
2649
2674
  }
2650
- g.preventDefault();
2651
- const p = g.currentTarget || g.target, B = e.customHeaders || {};
2675
+ u.preventDefault();
2676
+ const b = u.currentTarget || u.target, B = e.customHeaders || {};
2652
2677
  let E;
2653
- const A = new FormData(p), O = Array.from(p.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
2654
- let h;
2655
- const v = b.name;
2656
- if (b instanceof HTMLInputElement)
2657
- if (b.type === "radio") {
2658
- if (b.checked)
2659
- return h = b.name, {
2660
- key: v,
2661
- value: h
2678
+ const A = new FormData(b), O = Array.from(b.querySelectorAll("input,select,textarea")).filter((y) => !!y.name).map((y) => {
2679
+ let p;
2680
+ const S = y.name;
2681
+ if (y instanceof HTMLInputElement)
2682
+ if (y.type === "radio") {
2683
+ if (y.checked)
2684
+ return p = y.name, {
2685
+ key: S,
2686
+ value: p
2662
2687
  };
2663
- } else if (b.type === "checkbox")
2664
- h = b.checked;
2665
- else if (b.type === "number" || b.type === "range") {
2666
- const S = b.valueAsNumber;
2667
- isNaN(S) || (h = S);
2688
+ } else if (y.type === "checkbox")
2689
+ p = y.checked;
2690
+ else if (y.type === "number" || y.type === "range") {
2691
+ const k = y.valueAsNumber;
2692
+ isNaN(k) || (p = k);
2668
2693
  } else
2669
- b.type === "file" ? h = b.files : h = b.value;
2694
+ y.type === "file" ? p = y.files : p = y.value;
2670
2695
  else
2671
- h = b.value;
2696
+ p = y.value;
2672
2697
  return {
2673
- key: v,
2674
- value: h
2698
+ key: S,
2699
+ value: p
2675
2700
  };
2676
2701
  });
2677
- let x = e.contentType;
2678
- if (e.sendSubmissionsTo === "email" && (x = "multipart/form-data"), Array.from(O).forEach(({ value: b }) => {
2679
- (b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (x = "multipart/form-data");
2680
- }), x !== "application/json")
2702
+ let v = e.contentType;
2703
+ if (e.sendSubmissionsTo === "email" && (v = "multipart/form-data"), Array.from(O).forEach(({ value: y }) => {
2704
+ (y instanceof File || Array.isArray(y) && y[0] instanceof File || y instanceof FileList) && (v = "multipart/form-data");
2705
+ }), v !== "application/json")
2681
2706
  E = A;
2682
2707
  else {
2683
- const b = {};
2684
- Array.from(O).forEach(({ value: h, key: v }) => {
2685
- Ve(b, v, h);
2686
- }), E = JSON.stringify(b);
2708
+ const y = {};
2709
+ Array.from(O).forEach(({ value: p, key: S }) => {
2710
+ Ae(y, S, p);
2711
+ }), E = JSON.stringify(y);
2687
2712
  }
2688
- x && x !== "multipart/form-data" && (y && ((C = e.action) != null && C.includes("zapier.com")) || (B["content-type"] = x));
2713
+ v && v !== "multipart/form-data" && (g && ((x = e.action) != null && x.includes("zapier.com")) || (B["content-type"] = v));
2689
2714
  const w = new CustomEvent("presubmit", { detail: { body: E } });
2690
2715
  if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
2691
2716
  return;
2692
2717
  i("sending");
2693
- const N = `${un() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2718
+ const N = `${bn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2694
2719
  e.sendSubmissionsToEmail || ""
2695
2720
  )}&name=${encodeURIComponent(e.name || "")}`;
2696
2721
  fetch(
2697
2722
  e.sendSubmissionsTo === "email" ? N : e.action,
2698
2723
  { body: E, headers: B, method: e.method || "post" }
2699
2724
  ).then(
2700
- async (b) => {
2701
- let h;
2702
- const v = b.headers.get("content-type");
2703
- if (v && v.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
2704
- let S = mn(h, e.errorMessagePath);
2705
- S && (typeof S != "string" && (S = JSON.stringify(S)), l(S), c({ formErrorMessage: S }));
2725
+ async (y) => {
2726
+ let p;
2727
+ const S = y.headers.get("content-type");
2728
+ if (S && S.indexOf("application/json") !== -1 ? p = await y.json() : p = await y.text(), !y.ok && e.errorMessagePath) {
2729
+ let k = pn(p, e.errorMessagePath);
2730
+ k && (typeof k != "string" && (k = JSON.stringify(k)), s(k), d({ formErrorMessage: k }));
2706
2731
  }
2707
- if (r(h), i(b.ok ? "success" : "error"), b.ok) {
2708
- const S = new CustomEvent("submit:success", {
2709
- detail: { res: b, body: h }
2732
+ if (a(p), i(y.ok ? "success" : "error"), y.ok) {
2733
+ const k = new CustomEvent("submit:success", {
2734
+ detail: { res: y, body: p }
2710
2735
  });
2711
2736
  if (t.current) {
2712
- if (t.current.dispatchEvent(S), S.defaultPrevented)
2737
+ if (t.current.dispatchEvent(k), k.defaultPrevented)
2713
2738
  return;
2714
2739
  e.resetFormOnSubmit !== !1 && t.current.reset();
2715
2740
  }
2716
2741
  if (e.successUrl)
2717
2742
  if (t.current) {
2718
- const k = new CustomEvent("route", {
2743
+ const C = new CustomEvent("route", {
2719
2744
  detail: { url: e.successUrl }
2720
2745
  });
2721
- t.current.dispatchEvent(k), k.defaultPrevented || (location.href = e.successUrl);
2746
+ t.current.dispatchEvent(C), C.defaultPrevented || (location.href = e.successUrl);
2722
2747
  } else
2723
2748
  location.href = e.successUrl;
2724
2749
  }
2725
2750
  },
2726
- (b) => {
2727
- const h = new CustomEvent("submit:error", {
2728
- detail: { error: b }
2751
+ (y) => {
2752
+ const p = new CustomEvent("submit:error", {
2753
+ detail: { error: y }
2729
2754
  });
2730
- t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (r(b), i("error"));
2755
+ t.current && (t.current.dispatchEvent(p), p.defaultPrevented) || (a(y), i("error"));
2731
2756
  }
2732
2757
  );
2733
2758
  }
@@ -2742,20 +2767,20 @@ function fn(e) {
2742
2767
  action: !e.sendWithJs && e.action,
2743
2768
  method: e.method,
2744
2769
  name: e.name,
2745
- onSubmit: (g) => f(g),
2770
+ onSubmit: (u) => m(u),
2746
2771
  ...e.attributes,
2747
2772
  children: [
2748
- e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(R, { children: (m = (u = e.builderBlock) == null ? void 0 : u.children) == null ? void 0 : m.map((g, y) => /* @__PURE__ */ s(
2749
- _,
2773
+ e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(R, { children: (f = (h = e.builderBlock) == null ? void 0 : h.children) == null ? void 0 : f.map((u, g) => /* @__PURE__ */ l(
2774
+ J,
2750
2775
  {
2751
- block: g,
2776
+ block: u,
2752
2777
  context: e.builderContext,
2753
2778
  registeredComponents: e.builderComponents,
2754
2779
  linkComponent: e.builderLinkComponent
2755
2780
  },
2756
- `form-block-${y}`
2781
+ `form-block-${g}`
2757
2782
  )) }) : null,
2758
- d() === "error" ? /* @__PURE__ */ s(
2783
+ c() === "error" ? /* @__PURE__ */ l(
2759
2784
  D,
2760
2785
  {
2761
2786
  path: "errorMessage",
@@ -2763,7 +2788,7 @@ function fn(e) {
2763
2788
  context: e.builderContext
2764
2789
  }
2765
2790
  ) : null,
2766
- d() === "sending" ? /* @__PURE__ */ s(
2791
+ c() === "sending" ? /* @__PURE__ */ l(
2767
2792
  D,
2768
2793
  {
2769
2794
  path: "sendingMessage",
@@ -2771,8 +2796,8 @@ function fn(e) {
2771
2796
  context: e.builderContext
2772
2797
  }
2773
2798
  ) : null,
2774
- d() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
2775
- d() === "success" ? /* @__PURE__ */ s(
2799
+ c() === "error" && o ? /* @__PURE__ */ l("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
2800
+ c() === "success" ? /* @__PURE__ */ l(
2776
2801
  D,
2777
2802
  {
2778
2803
  path: "successMessage",
@@ -2784,11 +2809,11 @@ function fn(e) {
2784
2809
  }
2785
2810
  ),
2786
2811
  " ",
2787
- /* @__PURE__ */ s("style", { children: ".pre-3a20f614 { padding: 10px; color: red; text-align: center; }" }),
2812
+ /* @__PURE__ */ l("style", { children: ".pre-3a20f614 { padding: 10px; color: red; text-align: center; }" }),
2788
2813
  " "
2789
2814
  ] });
2790
2815
  }
2791
- const hn = {
2816
+ const xn = {
2792
2817
  name: "Form:Input",
2793
2818
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2794
2819
  inputs: [
@@ -2840,8 +2865,8 @@ const hn = {
2840
2865
  borderColor: "#ccc"
2841
2866
  }
2842
2867
  };
2843
- function gn(e) {
2844
- return /* @__PURE__ */ Ee(
2868
+ function vn(e) {
2869
+ return /* @__PURE__ */ Be(
2845
2870
  "input",
2846
2871
  {
2847
2872
  ...e.attributes,
@@ -2855,7 +2880,7 @@ function gn(e) {
2855
2880
  }
2856
2881
  );
2857
2882
  }
2858
- const bn = {
2883
+ const Sn = {
2859
2884
  name: "Form:Select",
2860
2885
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2861
2886
  defaultStyles: {
@@ -2898,9 +2923,9 @@ const bn = {
2898
2923
  static: !0,
2899
2924
  noWrap: !0
2900
2925
  };
2901
- function pn(e) {
2926
+ function kn(e) {
2902
2927
  var t;
2903
- return /* @__PURE__ */ Ee(
2928
+ return /* @__PURE__ */ Be(
2904
2929
  "select",
2905
2930
  {
2906
2931
  ...e.attributes,
@@ -2910,10 +2935,10 @@ function pn(e) {
2910
2935
  name: e.name,
2911
2936
  required: e.required
2912
2937
  },
2913
- (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2938
+ (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2914
2939
  );
2915
2940
  }
2916
- const yn = {
2941
+ const Cn = {
2917
2942
  name: "Form:SubmitButton",
2918
2943
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2919
2944
  defaultStyles: {
@@ -2939,10 +2964,10 @@ const yn = {
2939
2964
  // TODO: defaultChildren
2940
2965
  // canHaveChildren: true,
2941
2966
  };
2942
- function xn(e) {
2943
- return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
2967
+ function Tn(e) {
2968
+ return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
2944
2969
  }
2945
- const vn = {
2970
+ const In = {
2946
2971
  name: "Form:TextArea",
2947
2972
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
2948
2973
  inputs: [{
@@ -2979,8 +3004,8 @@ const vn = {
2979
3004
  static: !0,
2980
3005
  noWrap: !0
2981
3006
  };
2982
- function Sn(e) {
2983
- return /* @__PURE__ */ s(
3007
+ function wn(e) {
3008
+ return /* @__PURE__ */ l(
2984
3009
  "textarea",
2985
3010
  {
2986
3011
  ...e.attributes,
@@ -2992,7 +3017,7 @@ function Sn(e) {
2992
3017
  }
2993
3018
  );
2994
3019
  }
2995
- const kn = {
3020
+ const Rn = {
2996
3021
  // friendlyName?
2997
3022
  name: "Raw:Img",
2998
3023
  hideFromInsertMenu: !0,
@@ -3007,8 +3032,8 @@ const kn = {
3007
3032
  noWrap: !0,
3008
3033
  static: !0
3009
3034
  };
3010
- function Cn(e) {
3011
- return /* @__PURE__ */ s(
3035
+ function En(e) {
3036
+ return /* @__PURE__ */ l(
3012
3037
  "img",
3013
3038
  {
3014
3039
  style: {
@@ -3022,7 +3047,7 @@ function Cn(e) {
3022
3047
  $() && e.imgSrc || "default-key"
3023
3048
  );
3024
3049
  }
3025
- const Tn = {
3050
+ const Bn = {
3026
3051
  name: "Video",
3027
3052
  canHaveChildren: !0,
3028
3053
  defaultStyles: {
@@ -3107,8 +3132,8 @@ const Tn = {
3107
3132
  builderBlock: !0
3108
3133
  }
3109
3134
  };
3110
- function In(e) {
3111
- var i, o, r, a, l, c, d;
3135
+ function Pn(e) {
3136
+ var i, o, a, r, s, d, c;
3112
3137
  function t() {
3113
3138
  return {
3114
3139
  ...e.autoPlay === !0 ? {
@@ -3140,7 +3165,7 @@ function In(e) {
3140
3165
  position: "relative"
3141
3166
  },
3142
3167
  children: [
3143
- /* @__PURE__ */ s(
3168
+ /* @__PURE__ */ l(
3144
3169
  "video",
3145
3170
  {
3146
3171
  className: "builder-video",
@@ -3162,10 +3187,10 @@ function In(e) {
3162
3187
  },
3163
3188
  src: e.video || "no-src",
3164
3189
  poster: e.posterImage,
3165
- children: e.lazyLoad ? null : /* @__PURE__ */ s("source", { type: "video/mp4", src: e.video })
3190
+ children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
3166
3191
  }
3167
3192
  ),
3168
- e.aspectRatio && !(e.fitContent && ((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length)) ? /* @__PURE__ */ s(
3193
+ e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ l(
3169
3194
  "div",
3170
3195
  {
3171
3196
  style: {
@@ -3176,7 +3201,7 @@ function In(e) {
3176
3201
  }
3177
3202
  }
3178
3203
  ) : null,
3179
- (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
3204
+ (s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(
3180
3205
  "div",
3181
3206
  {
3182
3207
  style: {
@@ -3187,7 +3212,7 @@ function In(e) {
3187
3212
  children: e.children
3188
3213
  }
3189
3214
  ) : null,
3190
- (d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ s(
3215
+ (c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ l(
3191
3216
  "div",
3192
3217
  {
3193
3218
  style: {
@@ -3208,64 +3233,64 @@ function In(e) {
3208
3233
  }
3209
3234
  );
3210
3235
  }
3211
- const wn = () => [{
3212
- component: on,
3213
- ...nn
3214
- }, {
3215
- component: sn,
3216
- ...an
3236
+ const Vn = () => [{
3237
+ component: cn,
3238
+ ...sn
3217
3239
  }, {
3218
3240
  component: fn,
3219
- ...cn
3241
+ ...dn
3220
3242
  }, {
3221
- component: gn,
3243
+ component: yn,
3222
3244
  ...hn
3223
3245
  }, {
3224
- component: xn,
3225
- ...yn
3246
+ component: vn,
3247
+ ...xn
3248
+ }, {
3249
+ component: Tn,
3250
+ ...Cn
3226
3251
  }, {
3227
- component: pn,
3228
- ...bn
3252
+ component: kn,
3253
+ ...Sn
3229
3254
  }, {
3230
- component: Sn,
3231
- ...vn
3255
+ component: wn,
3256
+ ...In
3232
3257
  }, {
3233
- component: Cn,
3234
- ...kn
3258
+ component: En,
3259
+ ...Rn
3235
3260
  }, {
3236
- component: In,
3237
- ...Tn
3261
+ component: Pn,
3262
+ ...Bn
3238
3263
  }], ke = () => [{
3239
3264
  component: nt,
3240
- ...qt
3241
- }, {
3242
- component: $t,
3243
- ...Kt
3265
+ ...Yt
3244
3266
  }, {
3245
- component: Dt,
3246
- ...zt
3267
+ component: Mt,
3268
+ ...Gt
3247
3269
  }, {
3248
3270
  component: jt,
3249
- ..._t
3250
- }, {
3251
- component: Ut,
3252
- ...Jt
3271
+ ...Qt
3253
3272
  }, {
3254
- component: Gt,
3255
- ...Yt
3273
+ component: qt,
3274
+ ...Xt
3256
3275
  }, {
3257
- component: Yn,
3258
- ...Qt
3276
+ component: _t,
3277
+ ...Zt
3259
3278
  }, {
3260
3279
  component: tn,
3261
3280
  ...en
3262
3281
  }, {
3263
- component: Zt,
3264
- ...Xt
3282
+ component: ei,
3283
+ ...nn
3284
+ }, {
3285
+ component: ln,
3286
+ ...rn
3287
+ }, {
3288
+ component: an,
3289
+ ...on
3265
3290
  }, {
3266
- component: Ht,
3267
- ...Mt
3268
- }, ...wn()], Rn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3291
+ component: Jt,
3292
+ ...zt
3293
+ }, ...Vn()], An = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3269
3294
  function getAndSetVariantId() {
3270
3295
  function setCookie(name, value, days) {
3271
3296
  let expires = '';
@@ -3321,7 +3346,7 @@ const wn = () => [{
3321
3346
  }).join('');
3322
3347
  styleEl.innerHTML = newStyleStr;
3323
3348
  }
3324
- }`, En = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3349
+ }`, Nn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3325
3350
  if (!navigator.cookieEnabled) {
3326
3351
  return;
3327
3352
  }
@@ -3355,27 +3380,27 @@ const wn = () => [{
3355
3380
  thisScriptEl?.remove();
3356
3381
  }
3357
3382
  return;
3358
- }`, je = "builderIoAbTest", Ue = "builderIoRenderContent", Y = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3383
+ }`, Me = "builderIoAbTest", je = "builderIoRenderContent", G = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3359
3384
  ...t,
3360
3385
  testVariationId: t.id,
3361
3386
  id: e == null ? void 0 : e.id
3362
- })), Bn = ({
3387
+ })), Wn = ({
3363
3388
  canTrack: e,
3364
3389
  content: t
3365
- }) => !(!(Y(t).length > 0) || !e || M()), Pn = (e) => e === "react" || e === "reactNative", Me = Pn(q), Vn = () => `
3366
- window.${je} = ${Rn}
3367
- window.${Ue} = ${En}
3368
- `, An = (e, t) => `
3369
- window.${je}(
3370
- "${t}",${JSON.stringify(e)}, ${Me}
3371
- )`, Nn = ({
3390
+ }) => !(!(G(t).length > 0) || !e || H()), Fn = (e) => e === "react" || e === "reactNative", He = Fn(U), $n = () => `
3391
+ window.${Me} = ${An}
3392
+ window.${je} = ${Nn}
3393
+ `, Dn = (e, t) => `
3394
+ window.${Me}(
3395
+ "${t}",${JSON.stringify(e)}, ${He}
3396
+ )`, Ln = ({
3372
3397
  contentId: e,
3373
3398
  variationId: t
3374
- }) => `window.${Ue}(
3375
- "${t}", "${e}", ${Me}
3399
+ }) => `window.${je}(
3400
+ "${t}", "${e}", ${He}
3376
3401
  )`;
3377
3402
  function ce(e) {
3378
- return /* @__PURE__ */ s(
3403
+ return /* @__PURE__ */ l(
3379
3404
  "script",
3380
3405
  {
3381
3406
  dangerouslySetInnerHTML: { __html: e.scriptStr },
@@ -3387,7 +3412,7 @@ function ce(e) {
3387
3412
  function Ce(e) {
3388
3413
  return Math.round(e * 1e3) / 1e3;
3389
3414
  }
3390
- const Wn = (e, t, n = !0) => {
3415
+ const On = (e, t, n = !0) => {
3391
3416
  if (!(e instanceof HTMLElement))
3392
3417
  return null;
3393
3418
  let i = n ? e : e.parentElement;
@@ -3398,20 +3423,20 @@ const Wn = (e, t, n = !0) => {
3398
3423
  return i;
3399
3424
  } while (i = i.parentElement);
3400
3425
  return null;
3401
- }, Fn = (e) => Wn(e, (t) => {
3426
+ }, Un = (e) => On(e, (t) => {
3402
3427
  const n = t.getAttribute("builder-id") || t.id;
3403
3428
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3404
3429
  }), Te = ({
3405
3430
  event: e,
3406
3431
  target: t
3407
3432
  }) => {
3408
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r = Ce(i / n.width), a = Ce(o / n.height);
3433
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = Ce(i / n.width), r = Ce(o / n.height);
3409
3434
  return {
3410
- x: r,
3411
- y: a
3435
+ x: a,
3436
+ y: r
3412
3437
  };
3413
- }, $n = (e) => {
3414
- const t = e.target, n = t && Fn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3438
+ }, Mn = (e) => {
3439
+ const t = e.target, n = t && Un(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3415
3440
  return {
3416
3441
  targetBuilderElement: i || void 0,
3417
3442
  metadata: {
@@ -3426,9 +3451,9 @@ const Wn = (e, t, n = !0) => {
3426
3451
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3427
3452
  }
3428
3453
  };
3429
- }, Dn = (e) => {
3430
- var r, a;
3431
- const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
3454
+ }, jn = (e) => {
3455
+ var a, r;
3456
+ 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;
3432
3457
  let o = "";
3433
3458
  if (i && t && n && (o += `
3434
3459
  @font-face {
@@ -3438,29 +3463,29 @@ font-display: fallback;
3438
3463
  font-weight: 400;
3439
3464
  }
3440
3465
  `.trim()), e.files)
3441
- for (const l in e.files) {
3442
- if (!(String(Number(l)) === l))
3466
+ for (const s in e.files) {
3467
+ if (!(String(Number(s)) === s))
3443
3468
  continue;
3444
- const d = e.files[l];
3445
- d && d !== i && (o += `
3469
+ const c = e.files[s];
3470
+ c && c !== i && (o += `
3446
3471
  @font-face {
3447
3472
  font-family: "${t}";
3448
- src: url('${d}') format('woff2');
3473
+ src: url('${c}') format('woff2');
3449
3474
  font-display: fallback;
3450
- font-weight: ${l};
3475
+ font-weight: ${s};
3451
3476
  }
3452
3477
  `.trim());
3453
3478
  }
3454
3479
  return o;
3455
- }, Ln = ({
3480
+ }, Hn = ({
3456
3481
  customFonts: e
3457
3482
  }) => {
3458
3483
  var t;
3459
- return ((t = e == null ? void 0 : e.map((n) => Dn(n))) == null ? void 0 : t.join(" ")) || "";
3460
- }, On = ({
3484
+ return ((t = e == null ? void 0 : e.map((n) => jn(n))) == null ? void 0 : t.join(" ")) || "";
3485
+ }, Kn = ({
3461
3486
  cssCode: e,
3462
3487
  contentId: t
3463
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", jn = `
3488
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", qn = `
3464
3489
  .builder-button {
3465
3490
  all: unset;
3466
3491
  }
@@ -3477,39 +3502,39 @@ font-weight: ${l};
3477
3502
  text-align: inherit;
3478
3503
  font-family: inherit;
3479
3504
  }
3480
- `, Un = (e) => e ? "" : jn, Mn = (e) => `variant-${e}`;
3481
- function Hn(e) {
3482
- var E, A, O, x, w, N, b;
3483
- const t = ee(null);
3484
- function n(h) {
3485
- var S, k;
3486
- const v = {
3505
+ `, _n = (e) => e ? "" : qn, zn = (e) => `variant-${e}`;
3506
+ function Jn(e) {
3507
+ var E, A, O, v, w, N, y;
3508
+ const t = z(null);
3509
+ function n(p) {
3510
+ var k, C;
3511
+ const S = {
3487
3512
  ...e.builderContextSignal.rootState,
3488
- ...h
3513
+ ...p
3489
3514
  };
3490
- e.builderContextSignal.rootSetState ? (k = (S = e.builderContextSignal).rootSetState) == null || k.call(S, v) : e.setBuilderContextSignal((I) => ({
3515
+ e.builderContextSignal.rootSetState ? (C = (k = e.builderContextSignal).rootSetState) == null || C.call(k, S) : e.setBuilderContextSignal((I) => ({
3491
3516
  ...I,
3492
- rootState: v
3517
+ rootState: S
3493
3518
  }));
3494
3519
  }
3495
- function i(h) {
3496
- var S, k, I, W, j;
3497
- const v = {
3520
+ function i(p) {
3521
+ var k, C, I, W, M;
3522
+ const S = {
3498
3523
  ...e.builderContextSignal.content,
3499
- ...h,
3524
+ ...p,
3500
3525
  data: {
3501
- ...(S = e.builderContextSignal.content) == null ? void 0 : S.data,
3502
- ...h == null ? void 0 : h.data
3526
+ ...(k = e.builderContextSignal.content) == null ? void 0 : k.data,
3527
+ ...p == null ? void 0 : p.data
3503
3528
  },
3504
3529
  meta: {
3505
- ...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
3506
- ...h == null ? void 0 : h.meta,
3507
- breakpoints: ((I = h == null ? void 0 : h.meta) == null ? void 0 : I.breakpoints) || ((j = (W = e.builderContextSignal.content) == null ? void 0 : W.meta) == null ? void 0 : j.breakpoints)
3530
+ ...(C = e.builderContextSignal.content) == null ? void 0 : C.meta,
3531
+ ...p == null ? void 0 : p.meta,
3532
+ breakpoints: ((I = p == null ? void 0 : p.meta) == null ? void 0 : I.breakpoints) || ((M = (W = e.builderContextSignal.content) == null ? void 0 : W.meta) == null ? void 0 : M.breakpoints)
3508
3533
  }
3509
3534
  };
3510
3535
  e.setBuilderContextSignal((F) => ({
3511
3536
  ...F,
3512
- content: v
3537
+ content: S
3513
3538
  }));
3514
3539
  }
3515
3540
  function o() {
@@ -3518,37 +3543,37 @@ function Hn(e) {
3518
3543
  "aria-hidden": !0
3519
3544
  };
3520
3545
  }
3521
- const [r, a] = T(
3546
+ const [a, r] = T(
3522
3547
  () => e.contentWrapper || "div"
3523
3548
  );
3524
- function l(h) {
3549
+ function s(p) {
3525
3550
  return Qe({
3526
3551
  model: e.model,
3527
3552
  trustedHosts: e.trustedHosts,
3528
3553
  callbacks: {
3529
- configureSdk: (v) => {
3554
+ configureSdk: (S) => {
3530
3555
  var I;
3531
- const { breakpoints: S, contentId: k } = v;
3532
- !k || k !== ((I = e.builderContextSignal.content) == null ? void 0 : I.id) || S && i({
3556
+ const { breakpoints: k, contentId: C } = S;
3557
+ !C || C !== ((I = e.builderContextSignal.content) == null ? void 0 : I.id) || k && i({
3533
3558
  meta: {
3534
- breakpoints: S
3559
+ breakpoints: k
3535
3560
  }
3536
3561
  });
3537
3562
  },
3538
- animation: (v) => {
3539
- We(v);
3563
+ animation: (S) => {
3564
+ Fe(S);
3540
3565
  },
3541
- contentUpdate: (v) => {
3542
- i(v);
3566
+ contentUpdate: (S) => {
3567
+ i(S);
3543
3568
  }
3544
3569
  }
3545
- })(h);
3570
+ })(p);
3546
3571
  }
3547
- function c() {
3548
- var v, S;
3549
- const h = (S = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : S.jsCode;
3550
- h && H({
3551
- code: h,
3572
+ function d() {
3573
+ var S, k;
3574
+ const p = (k = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : k.jsCode;
3575
+ p && K({
3576
+ code: p,
3552
3577
  context: e.context || {},
3553
3578
  localState: void 0,
3554
3579
  rootState: e.builderContextSignal.rootState,
@@ -3559,35 +3584,35 @@ function Hn(e) {
3559
3584
  enableCache: !1
3560
3585
  });
3561
3586
  }
3562
- const [d, f] = T(() => ({})), [u, m] = T(() => ({})), [g, y] = T(() => !1);
3563
- function C(h) {
3564
- var v, S;
3587
+ const [c, m] = T(() => ({})), [h, f] = T(() => ({})), [u, g] = T(() => !1);
3588
+ function x(p) {
3589
+ var S, k;
3565
3590
  if (e.builderContextSignal.content) {
3566
- const k = (v = e.builderContextSignal.content) == null ? void 0 : v.testVariationId, I = (S = e.builderContextSignal.content) == null ? void 0 : S.id;
3591
+ const C = (S = e.builderContextSignal.content) == null ? void 0 : S.testVariationId, I = (k = e.builderContextSignal.content) == null ? void 0 : k.id;
3567
3592
  he({
3568
3593
  type: "click",
3569
- canTrack: Q(e.canTrack),
3594
+ canTrack: X(e.canTrack),
3570
3595
  contentId: I,
3571
3596
  apiKey: e.apiKey,
3572
- variationId: k !== I ? k : void 0,
3573
- ...$n(h),
3574
- unique: !g
3597
+ variationId: C !== I ? C : void 0,
3598
+ ...Mn(p),
3599
+ unique: !u
3575
3600
  });
3576
3601
  }
3577
- g || y(!0);
3602
+ u || g(!0);
3578
3603
  }
3579
- function p() {
3580
- var v, S, k;
3581
- const h = (k = (S = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : S.httpRequests) != null ? k : {};
3582
- Object.entries(h).forEach(([I, W]) => {
3583
- if (!W || u[I] || d[I] && !$())
3604
+ function b() {
3605
+ var S, k, C;
3606
+ const p = (C = (k = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : k.httpRequests) != null ? C : {};
3607
+ Object.entries(p).forEach(([I, W]) => {
3608
+ if (!W || h[I] || c[I] && !$())
3584
3609
  return;
3585
- u[I] = !0;
3586
- const j = W.replace(
3610
+ h[I] = !0;
3611
+ const M = W.replace(
3587
3612
  /{{([^}]+)}}/g,
3588
- (F, He) => String(
3589
- H({
3590
- code: He,
3613
+ (F, Ke) => String(
3614
+ K({
3615
+ code: Ke,
3591
3616
  context: e.context || {},
3592
3617
  localState: void 0,
3593
3618
  rootState: e.builderContextSignal.rootState,
@@ -3596,14 +3621,14 @@ function Hn(e) {
3596
3621
  })
3597
3622
  )
3598
3623
  );
3599
- Xe(j).then((F) => F.json()).then((F) => {
3624
+ Xe(M).then((F) => F.json()).then((F) => {
3600
3625
  n({
3601
3626
  [I]: F
3602
- }), d[I] = !0;
3627
+ }), c[I] = !0;
3603
3628
  }).catch((F) => {
3604
3629
  console.error("error fetching dynamic data", W, F);
3605
3630
  }).finally(() => {
3606
- u[I] = !1;
3631
+ h[I] = !1;
3607
3632
  });
3608
3633
  });
3609
3634
  }
@@ -3623,9 +3648,9 @@ function Hn(e) {
3623
3648
  );
3624
3649
  }
3625
3650
  return P(() => {
3626
- var h, v;
3627
- if (M()) {
3628
- if ($() && (window.addEventListener("message", l), _e(), Je({
3651
+ var p, S;
3652
+ if (H()) {
3653
+ if ($() && (window.addEventListener("message", s), Je(), Ye({
3629
3654
  ...e.locale ? {
3630
3655
  locale: e.locale
3631
3656
  } : {},
@@ -3637,28 +3662,28 @@ function Hn(e) {
3637
3662
  } : {}
3638
3663
  }), Object.values(
3639
3664
  e.builderContextSignal.componentInfos
3640
- ).forEach((k) => {
3665
+ ).forEach((C) => {
3641
3666
  var W;
3642
- const I = Ye(k);
3667
+ const I = Ge(C);
3643
3668
  (W = window.parent) == null || W.postMessage(I, "*");
3644
3669
  }), window.addEventListener(
3645
3670
  "builder:component:stateChangeListenerActivated",
3646
3671
  B
3647
- )), e.builderContextSignal.content && Q(e.canTrack)) {
3648
- const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, I = (v = e.builderContextSignal.content) == null ? void 0 : v.id, W = e.apiKey;
3672
+ )), e.builderContextSignal.content && X(e.canTrack)) {
3673
+ const C = (p = e.builderContextSignal.content) == null ? void 0 : p.testVariationId, I = (S = e.builderContextSignal.content) == null ? void 0 : S.id, W = e.apiKey;
3649
3674
  he({
3650
3675
  type: "impression",
3651
3676
  canTrack: !0,
3652
3677
  contentId: I,
3653
3678
  apiKey: W,
3654
- variationId: k !== I ? k : void 0
3679
+ variationId: C !== I ? C : void 0
3655
3680
  });
3656
3681
  }
3657
- if (Ge() && !$()) {
3658
- const k = new URL(location.href).searchParams, I = k.get("builder.preview"), W = k.get(
3682
+ if (we() && !$()) {
3683
+ const C = new URL(location.href).searchParams, I = C.get("builder.preview"), W = C.get(
3659
3684
  `builder.overrides.${I}`
3660
- ), j = k.get("apiKey") || k.get("builder.space");
3661
- I === e.model && j === e.apiKey && (!e.content || W === e.content.id) && we({
3685
+ ), M = C.get("apiKey") || C.get("builder.space");
3686
+ I === e.model && M === e.apiKey && (!e.content || W === e.content.id) && Re({
3662
3687
  model: e.model,
3663
3688
  apiKey: e.apiKey,
3664
3689
  apiVersion: e.builderContextSignal.apiVersion
@@ -3670,14 +3695,14 @@ function Hn(e) {
3670
3695
  }, []), P(() => {
3671
3696
  e.apiKey || Z.error(
3672
3697
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3673
- ), c(), p(), B();
3698
+ ), d(), b(), B();
3674
3699
  }, []), P(() => {
3675
3700
  e.content && i(e.content);
3676
3701
  }, [e.content]), P(() => {
3677
- c();
3702
+ d();
3678
3703
  }, [(A = (E = e.builderContextSignal.content) == null ? void 0 : E.data) == null ? void 0 : A.jsCode]), P(() => {
3679
- p();
3680
- }, [(x = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : x.httpRequests]), P(() => {
3704
+ b();
3705
+ }, [(v = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : v.httpRequests]), P(() => {
3681
3706
  B();
3682
3707
  }, [e.builderContextSignal.rootState]), P(() => {
3683
3708
  e.data && n(e.data);
@@ -3686,41 +3711,41 @@ function Hn(e) {
3686
3711
  locale: e.locale
3687
3712
  });
3688
3713
  }, [e.locale]), P(() => () => {
3689
- M() && (window.removeEventListener("message", l), window.removeEventListener(
3714
+ H() && (window.removeEventListener("message", s), window.removeEventListener(
3690
3715
  "builder:component:stateChangeListenerActivated",
3691
3716
  B
3692
3717
  ));
3693
- }, []), /* @__PURE__ */ s(ue.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3694
- r,
3718
+ }, []), /* @__PURE__ */ l(ue.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
3719
+ a,
3695
3720
  {
3696
3721
  ref: t,
3697
- onClick: (h) => C(h),
3722
+ onClick: (p) => x(p),
3698
3723
  "builder-content-id": (w = e.builderContextSignal.content) == null ? void 0 : w.id,
3699
3724
  "builder-model": e.model,
3700
3725
  ...o(),
3701
3726
  ...e.contentWrapperProps,
3702
- className: Mn(
3703
- ((N = e.content) == null ? void 0 : N.testVariationId) || ((b = e.content) == null ? void 0 : b.id)
3727
+ className: zn(
3728
+ ((N = e.content) == null ? void 0 : N.testVariationId) || ((y = e.content) == null ? void 0 : y.id)
3704
3729
  ),
3705
3730
  children: e.children
3706
3731
  }
3707
3732
  ) : null });
3708
3733
  }
3709
- function qn(e) {
3734
+ function Yn(e) {
3710
3735
  const [t, n] = T(
3711
3736
  () => `
3712
- ${On({
3737
+ ${Kn({
3713
3738
  cssCode: e.cssCode,
3714
3739
  contentId: e.contentId
3715
3740
  })}
3716
- ${Ln({
3741
+ ${Hn({
3717
3742
  customFonts: e.customFonts
3718
3743
  })}
3719
- ${Un(e.isNestedRender)}
3744
+ ${_n(e.isNestedRender)}
3720
3745
  `.trim()
3721
3746
  );
3722
- return /* @__PURE__ */ s(
3723
- ne,
3747
+ return /* @__PURE__ */ l(
3748
+ te,
3724
3749
  {
3725
3750
  id: "builderio-content",
3726
3751
  styles: t,
@@ -3728,15 +3753,15 @@ ${Un(e.isNestedRender)}
3728
3753
  }
3729
3754
  );
3730
3755
  }
3731
- const Kn = ({
3756
+ const Gn = ({
3732
3757
  content: e,
3733
3758
  data: t,
3734
3759
  locale: n
3735
3760
  }) => {
3736
- var r, a, l;
3737
- const i = {}, o = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
3738
- return (l = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || l.forEach((c) => {
3739
- c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
3761
+ var a, r, s;
3762
+ const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
3763
+ return (s = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || s.forEach((d) => {
3764
+ d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
3740
3765
  }), {
3741
3766
  ...i,
3742
3767
  ...o,
@@ -3745,7 +3770,7 @@ const Kn = ({
3745
3770
  locale: n
3746
3771
  } : {}
3747
3772
  };
3748
- }, zn = ({
3773
+ }, Qn = ({
3749
3774
  content: e,
3750
3775
  data: t
3751
3776
  }) => e ? {
@@ -3757,33 +3782,33 @@ const Kn = ({
3757
3782
  meta: e == null ? void 0 : e.meta
3758
3783
  } : void 0;
3759
3784
  function Ie(e) {
3760
- var c, d, f, u, m, g, y;
3785
+ var d, c, m, h, f, u, g;
3761
3786
  const [t, n] = T(
3762
3787
  () => {
3763
- var C, p;
3764
- return Nn({
3788
+ var x, b;
3789
+ return Ln({
3765
3790
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3766
- variationId: (C = e.content) == null ? void 0 : C.testVariationId,
3791
+ variationId: (x = e.content) == null ? void 0 : x.testVariationId,
3767
3792
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3768
- contentId: (p = e.content) == null ? void 0 : p.id
3793
+ contentId: (b = e.content) == null ? void 0 : b.id
3769
3794
  });
3770
3795
  }
3771
3796
  );
3772
- function i(C) {
3773
- l((p) => ({
3774
- ...p,
3775
- rootState: C
3797
+ function i(x) {
3798
+ s((b) => ({
3799
+ ...b,
3800
+ rootState: x
3776
3801
  }));
3777
3802
  }
3778
- const [o, r] = T(
3803
+ const [o, a] = T(
3779
3804
  () => {
3780
- var C;
3805
+ var x;
3781
3806
  return [
3782
3807
  ...ke(),
3783
- ...((C = e.customComponents) == null ? void 0 : C.filter(({ models: p }) => !(p != null && p.length) || !e.model ? !0 : p.includes(e.model))) || []
3808
+ ...((x = e.customComponents) == null ? void 0 : x.filter(({ models: b }) => !(b != null && b.length) || !e.model ? !0 : b.includes(e.model))) || []
3784
3809
  ].reduce(
3785
- (p, { component: B, ...E }) => ({
3786
- ...p,
3810
+ (b, { component: B, ...E }) => ({
3811
+ ...b,
3787
3812
  [E.name]: {
3788
3813
  component: B,
3789
3814
  ...ge(E)
@@ -3792,15 +3817,15 @@ function Ie(e) {
3792
3817
  {}
3793
3818
  );
3794
3819
  }
3795
- ), [a, l] = T(() => {
3796
- var C;
3820
+ ), [r, s] = T(() => {
3821
+ var x;
3797
3822
  return {
3798
- content: zn({
3823
+ content: Qn({
3799
3824
  content: e.content,
3800
3825
  data: e.data
3801
3826
  }),
3802
3827
  localState: void 0,
3803
- rootState: Kn({
3828
+ rootState: Gn({
3804
3829
  content: e.content,
3805
3830
  data: e.data,
3806
3831
  locale: e.locale
@@ -3812,10 +3837,10 @@ function Ie(e) {
3812
3837
  apiVersion: e.apiVersion,
3813
3838
  componentInfos: [
3814
3839
  ...ke(),
3815
- ...((C = e.customComponents) == null ? void 0 : C.filter(({ models: p }) => !(p != null && p.length) || !e.model ? !0 : p.includes(e.model))) || []
3840
+ ...((x = e.customComponents) == null ? void 0 : x.filter(({ models: b }) => !(b != null && b.length) || !e.model ? !0 : b.includes(e.model))) || []
3816
3841
  ].reduce(
3817
- (p, { component: B, ...E }) => ({
3818
- ...p,
3842
+ (b, { component: B, ...E }) => ({
3843
+ ...b,
3819
3844
  [E.name]: ge(E)
3820
3845
  }),
3821
3846
  {}
@@ -3826,14 +3851,14 @@ function Ie(e) {
3826
3851
  nonce: e.nonce || ""
3827
3852
  };
3828
3853
  });
3829
- return /* @__PURE__ */ s(
3830
- Be.Provider,
3854
+ return /* @__PURE__ */ l(
3855
+ Pe.Provider,
3831
3856
  {
3832
3857
  value: {
3833
3858
  registeredComponents: o
3834
3859
  },
3835
3860
  children: /* @__PURE__ */ V(
3836
- Hn,
3861
+ Jn,
3837
3862
  {
3838
3863
  nonce: e.nonce,
3839
3864
  content: e.content,
@@ -3845,13 +3870,13 @@ function Ie(e) {
3845
3870
  locale: e.locale,
3846
3871
  enrich: e.enrich,
3847
3872
  showContent: e.showContent,
3848
- builderContextSignal: a,
3873
+ builderContextSignal: r,
3849
3874
  contentWrapper: e.contentWrapper,
3850
3875
  contentWrapperProps: e.contentWrapperProps,
3851
3876
  trustedHosts: e.trustedHosts,
3852
- setBuilderContextSignal: l,
3877
+ setBuilderContextSignal: s,
3853
3878
  children: [
3854
- e.isSsrAbTest ? /* @__PURE__ */ s(
3879
+ e.isSsrAbTest ? /* @__PURE__ */ l(
3855
3880
  ce,
3856
3881
  {
3857
3882
  id: "builderio-variant-visibility",
@@ -3859,21 +3884,21 @@ function Ie(e) {
3859
3884
  nonce: e.nonce || ""
3860
3885
  }
3861
3886
  ) : null,
3862
- /* @__PURE__ */ s(
3863
- qn,
3887
+ /* @__PURE__ */ l(
3888
+ Yn,
3864
3889
  {
3865
3890
  nonce: e.nonce || "",
3866
3891
  isNestedRender: e.isNestedRender,
3867
- contentId: (c = a.content) == null ? void 0 : c.id,
3868
- cssCode: (f = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : f.cssCode,
3869
- customFonts: (m = (u = a.content) == null ? void 0 : u.data) == null ? void 0 : m.customFonts
3892
+ contentId: (d = r.content) == null ? void 0 : d.id,
3893
+ cssCode: (m = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : m.cssCode,
3894
+ customFonts: (f = (h = r.content) == null ? void 0 : h.data) == null ? void 0 : f.customFonts
3870
3895
  }
3871
3896
  ),
3872
- /* @__PURE__ */ s(
3897
+ /* @__PURE__ */ l(
3873
3898
  D,
3874
3899
  {
3875
- blocks: (y = (g = a.content) == null ? void 0 : g.data) == null ? void 0 : y.blocks,
3876
- context: a,
3900
+ blocks: (g = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : g.blocks,
3901
+ context: r,
3877
3902
  registeredComponents: o,
3878
3903
  linkComponent: e.linkComponent
3879
3904
  }
@@ -3884,57 +3909,57 @@ function Ie(e) {
3884
3909
  }
3885
3910
  );
3886
3911
  }
3887
- function _n(e) {
3888
- var a;
3912
+ function Xn(e) {
3913
+ var r;
3889
3914
  const [t, n] = T(
3890
- () => Bn({
3891
- canTrack: Q(e.canTrack),
3915
+ () => Wn({
3916
+ canTrack: X(e.canTrack),
3892
3917
  content: e.content
3893
3918
  })
3894
3919
  );
3895
3920
  function i() {
3896
- var l;
3897
- return An(
3898
- Y(e.content).map((c) => ({
3899
- id: c.testVariationId,
3900
- testRatio: c.testRatio
3921
+ var s;
3922
+ return Dn(
3923
+ G(e.content).map((d) => ({
3924
+ id: d.testVariationId,
3925
+ testRatio: d.testRatio
3901
3926
  })),
3902
- ((l = e.content) == null ? void 0 : l.id) || ""
3927
+ ((s = e.content) == null ? void 0 : s.id) || ""
3903
3928
  );
3904
3929
  }
3905
3930
  function o() {
3906
- return Y(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
3931
+ return G(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
3907
3932
  }
3908
- function r() {
3909
- var l;
3933
+ function a() {
3934
+ var s;
3910
3935
  return t ? {
3911
3936
  ...e.content,
3912
- testVariationId: (l = e.content) == null ? void 0 : l.id
3937
+ testVariationId: (s = e.content) == null ? void 0 : s.id
3913
3938
  } : Ze({
3914
3939
  item: e.content,
3915
- canTrack: Q(e.canTrack)
3940
+ canTrack: X(e.canTrack)
3916
3941
  });
3917
3942
  }
3918
3943
  return P(() => {
3919
3944
  }, []), /* @__PURE__ */ V(R, { children: [
3920
- !e.isNestedRender && q !== "reactNative" ? /* @__PURE__ */ s(
3945
+ !e.isNestedRender && U !== "reactNative" ? /* @__PURE__ */ l(
3921
3946
  ce,
3922
3947
  {
3923
3948
  id: "builderio-init-variants-fns",
3924
- scriptStr: Vn(),
3949
+ scriptStr: $n(),
3925
3950
  nonce: e.nonce || ""
3926
3951
  }
3927
3952
  ) : null,
3928
3953
  t ? /* @__PURE__ */ V(R, { children: [
3929
- /* @__PURE__ */ s(
3930
- ne,
3954
+ /* @__PURE__ */ l(
3955
+ te,
3931
3956
  {
3932
3957
  id: "builderio-variants",
3933
3958
  styles: o(),
3934
3959
  nonce: e.nonce || ""
3935
3960
  }
3936
3961
  ),
3937
- /* @__PURE__ */ s(
3962
+ /* @__PURE__ */ l(
3938
3963
  ce,
3939
3964
  {
3940
3965
  id: "builderio-variants-visibility",
@@ -3942,12 +3967,12 @@ function _n(e) {
3942
3967
  nonce: e.nonce || ""
3943
3968
  }
3944
3969
  ),
3945
- (a = Y(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
3970
+ (r = G(e.content)) == null ? void 0 : r.map((s) => /* @__PURE__ */ l(
3946
3971
  Ie,
3947
3972
  {
3948
3973
  isNestedRender: e.isNestedRender,
3949
3974
  nonce: e.nonce,
3950
- content: l,
3975
+ content: s,
3951
3976
  showContent: !1,
3952
3977
  model: e.model,
3953
3978
  data: e.data,
@@ -3966,15 +3991,15 @@ function _n(e) {
3966
3991
  contentWrapperProps: e.contentWrapperProps,
3967
3992
  trustedHosts: e.trustedHosts
3968
3993
  },
3969
- l.testVariationId
3994
+ s.testVariationId
3970
3995
  ))
3971
3996
  ] }) : null,
3972
- /* @__PURE__ */ s(
3997
+ /* @__PURE__ */ l(
3973
3998
  Ie,
3974
3999
  {
3975
4000
  nonce: e.nonce,
3976
4001
  isNestedRender: e.isNestedRender,
3977
- content: r(),
4002
+ content: a(),
3978
4003
  showContent: !0,
3979
4004
  model: e.model,
3980
4005
  data: e.data,
@@ -3996,13 +4021,13 @@ function _n(e) {
3996
4021
  )
3997
4022
  ] });
3998
4023
  }
3999
- const Jn = async ({
4024
+ const Zn = async ({
4000
4025
  builderContextValue: e,
4001
4026
  symbol: t
4002
4027
  }) => {
4003
4028
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4004
4029
  (e != null && e.apiKey))
4005
- return we({
4030
+ return Re({
4006
4031
  model: t.model,
4007
4032
  apiKey: e.apiKey,
4008
4033
  apiVersion: e.apiVersion,
@@ -4015,8 +4040,8 @@ const Jn = async ({
4015
4040
  Z.error("Could not fetch symbol content: ", n);
4016
4041
  });
4017
4042
  };
4018
- function Yn(e) {
4019
- var l, c, d, f;
4043
+ function ei(e) {
4044
+ var s, d, c, m;
4020
4045
  function t() {
4021
4046
  return "div";
4022
4047
  }
@@ -4024,31 +4049,31 @@ function Yn(e) {
4024
4049
  return "div";
4025
4050
  }
4026
4051
  function i() {
4027
- var u, m;
4052
+ var h, f;
4028
4053
  return [
4029
- e.attributes[z()],
4054
+ e.attributes[_()],
4030
4055
  "builder-symbol",
4031
- (u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
4032
- (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4056
+ (h = e.symbol) != null && h.inline ? "builder-inline-symbol" : void 0,
4057
+ (f = e.symbol) != null && f.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4033
4058
  ].filter(Boolean).join(" ");
4034
4059
  }
4035
- const [o, r] = T(() => {
4036
- var u;
4037
- return (u = e.symbol) == null ? void 0 : u.content;
4060
+ const [o, a] = T(() => {
4061
+ var h;
4062
+ return (h = e.symbol) == null ? void 0 : h.content;
4038
4063
  });
4039
- function a() {
4040
- o || Jn({
4064
+ function r() {
4065
+ o || Zn({
4041
4066
  symbol: e.symbol,
4042
4067
  builderContextValue: e.builderContext
4043
- }).then((u) => {
4044
- u && r(u);
4068
+ }).then((h) => {
4069
+ h && a(h);
4045
4070
  });
4046
4071
  }
4047
4072
  return P(() => {
4048
4073
  }, []), P(() => {
4049
- a();
4050
- }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
4051
- _n,
4074
+ r();
4075
+ }, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
4076
+ Xn,
4052
4077
  {
4053
4078
  nonce: e.builderContext.nonce,
4054
4079
  isNestedRender: !0,
@@ -4056,16 +4081,16 @@ function Yn(e) {
4056
4081
  apiKey: e.builderContext.apiKey,
4057
4082
  context: {
4058
4083
  ...e.builderContext.context,
4059
- symbolId: (l = e.builderBlock) == null ? void 0 : l.id
4084
+ symbolId: (s = e.builderBlock) == null ? void 0 : s.id
4060
4085
  },
4061
4086
  customComponents: Object.values(e.builderComponents),
4062
4087
  data: {
4063
- ...(c = e.symbol) == null ? void 0 : c.data,
4088
+ ...(d = e.symbol) == null ? void 0 : d.data,
4064
4089
  ...e.builderContext.localState,
4065
- ...(d = o == null ? void 0 : o.data) == null ? void 0 : d.state
4090
+ ...(c = o == null ? void 0 : o.data) == null ? void 0 : c.state
4066
4091
  },
4067
4092
  canTrack: e.builderContext.canTrack,
4068
- model: (f = e.symbol) == null ? void 0 : f.model,
4093
+ model: (m = e.symbol) == null ? void 0 : m.model,
4069
4094
  content: o,
4070
4095
  linkComponent: e.builderLinkComponent,
4071
4096
  blocksWrapper: t(),
@@ -4077,12 +4102,12 @@ export {
4077
4102
  D as Blocks,
4078
4103
  ue as BuilderContext,
4079
4104
  nt as Button,
4080
- $t as Columns,
4081
- _n as Content,
4082
- Dt as Fragment,
4083
- jt as Image,
4084
- Ut as Section,
4085
- Yn as Symbol,
4086
- tn as Text,
4087
- In as Video
4105
+ Mt as Columns,
4106
+ Xn as Content,
4107
+ jt as Fragment,
4108
+ qt as Image,
4109
+ _t as Section,
4110
+ ei as Symbol,
4111
+ ln as Text,
4112
+ Pn as Video
4088
4113
  };