@builder.io/sdk-react 2.0.28 → 2.0.30

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 (70) hide show
  1. package/lib/browser/blocks-exports.cjs +18 -18
  2. package/lib/browser/blocks-exports.mjs +819 -814
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/{server-entry-ffd47885.js → server-entry-d133a206.js} +104 -95
  6. package/lib/browser/server-entry-d4ea1a12.cjs +2 -0
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/{accordion-616460c1.js → accordion-359367e6.js} +5 -3
  10. package/lib/edge/{accordion-7ef6a928.cjs → accordion-93512a19.cjs} +1 -1
  11. package/lib/edge/{blocks-896a56b0.cjs → blocks-44a0617b.cjs} +3 -3
  12. package/lib/edge/{blocks-dd91ae28.js → blocks-d7ba8f6a.js} +63 -57
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +2 -2
  15. package/lib/edge/{button-1fa8b647.cjs → button-0ae65c1d.cjs} +1 -1
  16. package/lib/edge/{button-f917a1c0.js → button-ae26a553.js} +2 -2
  17. package/lib/edge/{columns-dacb342b.js → columns-957c0468.js} +20 -20
  18. package/lib/edge/{columns-5756d7b8.cjs → columns-f7da8908.cjs} +3 -3
  19. package/lib/edge/{content-variants-afc4a718.cjs → content-variants-9bb0b7e9.cjs} +4 -4
  20. package/lib/edge/{content-variants-cd80b703.js → content-variants-d8a859a2.js} +118 -118
  21. package/lib/edge/{evaluate-2fcda9ec.cjs → evaluate-21c48a1d.cjs} +1 -1
  22. package/lib/edge/{evaluate-17c2cadd.js → evaluate-8e8c9fec.js} +1 -1
  23. package/lib/edge/form-0b09120c.cjs +1 -0
  24. package/lib/edge/{form-dc7f56c9.js → form-68fc4d5a.js} +30 -33
  25. package/lib/edge/{get-class-prop-name-5437ca23.js → get-class-prop-name-a6f0f92d.js} +1 -1
  26. package/lib/edge/{get-class-prop-name-2ce20e98.cjs → get-class-prop-name-ffeda28e.cjs} +1 -1
  27. package/lib/edge/{img-35a1343f.cjs → img-89e32a84.cjs} +1 -1
  28. package/lib/edge/{img-d187da14.js → img-912b190b.js} +1 -1
  29. package/lib/edge/index.cjs +1 -1
  30. package/lib/edge/index.mjs +1 -1
  31. package/lib/edge/{input-9a6498fd.cjs → input-5ff8ae2e.cjs} +1 -1
  32. package/lib/edge/{input-38f565ce.js → input-96ba83eb.js} +1 -1
  33. package/lib/edge/{select-135b7397.cjs → select-5f5fed1c.cjs} +1 -1
  34. package/lib/edge/{select-6cb0b4b7.js → select-f66026e1.js} +1 -1
  35. package/lib/edge/{server-entry-216eb1bf.js → server-entry-e26008c1.js} +110 -101
  36. package/lib/edge/server-entry-f09ee4f4.cjs +2 -0
  37. package/lib/edge/server-entry.cjs +1 -1
  38. package/lib/edge/server-entry.mjs +1 -1
  39. package/lib/edge/{slot-d692126c.js → slot-d09faa0a.js} +4 -4
  40. package/lib/edge/{slot-b0728030.cjs → slot-d3473421.cjs} +1 -1
  41. package/lib/edge/{symbol-df30241a.js → symbol-285d196c.js} +2 -2
  42. package/lib/edge/{symbol-0ac2655e.cjs → symbol-ebccca9b.cjs} +1 -1
  43. package/lib/edge/{tabs-b925777d.js → tabs-39d86f86.js} +15 -15
  44. package/lib/edge/tabs-61c59e0f.cjs +1 -0
  45. package/lib/edge/{text-0f85a76c.cjs → text-40a616f5.cjs} +1 -1
  46. package/lib/edge/{text-337389ba.js → text-dce27428.js} +2 -2
  47. package/lib/node/blocks-exports.cjs +20 -20
  48. package/lib/node/blocks-exports.mjs +802 -797
  49. package/lib/node/index.cjs +1 -1
  50. package/lib/node/index.mjs +3 -3
  51. package/lib/node/init.cjs +1 -1
  52. package/lib/node/init.mjs +3 -3
  53. package/lib/node/server-entry-8e901e75.cjs +2 -0
  54. package/lib/node/{server-entry-ca0dcb45.js → server-entry-c7147616.js} +104 -95
  55. package/lib/node/server-entry.cjs +1 -1
  56. package/lib/node/server-entry.mjs +1 -1
  57. package/lib/node/{setIvm-2100f4f5.js → setIvm-5ab140ad.js} +1 -1
  58. package/lib/node/{setIvm-2d47478e.cjs → setIvm-a85e255e.cjs} +1 -1
  59. package/lib/node/setIvm.cjs +1 -1
  60. package/lib/node/setIvm.mjs +2 -2
  61. package/lib/node/{should-force-browser-runtime-in-node-fd3ca2a8.cjs → should-force-browser-runtime-in-node-16ceec99.cjs} +1 -1
  62. package/lib/node/{should-force-browser-runtime-in-node-a77d7cfc.js → should-force-browser-runtime-in-node-1d3a044a.js} +1 -1
  63. package/package.json +1 -1
  64. package/types/constants/sdk-version.d.ts +1 -1
  65. package/types/functions/log-fetch.d.ts +1 -0
  66. package/lib/browser/server-entry-7260e494.cjs +0 -2
  67. package/lib/edge/form-efce5c78.cjs +0 -1
  68. package/lib/edge/server-entry-3e6518b6.cjs +0 -2
  69. package/lib/edge/tabs-47ed7dde.cjs +0 -1
  70. package/lib/node/server-entry-3e017173.cjs +0 -2
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { jsx as l, Fragment as T, jsxs as V } from "react/jsx-runtime";
3
- import { TARGET as D, isBrowser as _, logger as ne, checkIsDefined as Z, isPreviewing as xe, isEditing as N, registerInsertMenu as Le, setupBrowserForEditing as Oe, createRegisterComponentMessage as Ue, getDefaultCanTrack as q, _track as le, fetchOneEntry as ve, createEditorListener as He, serializeIncludingFunctions as se, handleABTestingSync as je } from "./server-entry-ca0dcb45.js";
4
- import { createContext as Se, useEffect as B, useState as w, useRef as $, useContext as ce, createElement as ke } from "react";
5
- import { getFunctionArguments as Me, flattenState as _e, runInNode as qe, parseCode as Ke, getBuilderGlobals as ze, set as Ce, fastClone as ie } from "./setIvm-2100f4f5.js";
6
- import { shouldForceBrowserRuntimeInNode as Je } from "./should-force-browser-runtime-in-node-a77d7cfc.js";
7
- const Ge = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ye = (e) => typeof e == "string" && Ge.has(e.toLowerCase());
8
- function oe(e) {
9
- return /* @__PURE__ */ l(T, { children: Ye(e.TagName) ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(T, { 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 }) }) });
2
+ import { jsx as s, Fragment as I, jsxs as V } from "react/jsx-runtime";
3
+ import { TARGET as D, isBrowser as q, logger as ie, checkIsDefined as ee, isPreviewing as ve, isEditing as N, logFetch as Se, registerInsertMenu as Oe, setupBrowserForEditing as Ue, createRegisterComponentMessage as He, getDefaultCanTrack as K, _track as se, fetchOneEntry as ke, createEditorListener as je, serializeIncludingFunctions as ce, handleABTestingSync as Me } from "./server-entry-c7147616.js";
4
+ import { createContext as Ce, useEffect as B, useState as R, useRef as $, useContext as de, createElement as Te } from "react";
5
+ import { getFunctionArguments as _e, flattenState as qe, runInNode as Ke, parseCode as ze, getBuilderGlobals as Je, set as Ie, fastClone as oe } from "./setIvm-5ab140ad.js";
6
+ import { shouldForceBrowserRuntimeInNode as Ge } from "./should-force-browser-runtime-in-node-1d3a044a.js";
7
+ const Ye = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Qe = (e) => typeof e == "string" && Ye.has(e.toLowerCase());
8
+ function ae(e) {
9
+ return /* @__PURE__ */ s(I, { children: Qe(e.TagName) ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(I, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
10
10
  }
11
11
  const U = () => {
12
12
  switch (D) {
@@ -22,7 +22,7 @@ const U = () => {
22
22
  return "class";
23
23
  }
24
24
  };
25
- function Qe(e) {
25
+ function Xe(e) {
26
26
  function t() {
27
27
  return {
28
28
  ...e.attributes,
@@ -36,8 +36,8 @@ function Qe(e) {
36
36
  }
37
37
  };
38
38
  }
39
- return /* @__PURE__ */ l(
40
- oe,
39
+ return /* @__PURE__ */ s(
40
+ ae,
41
41
  {
42
42
  attributes: t(),
43
43
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
@@ -46,7 +46,7 @@ function Qe(e) {
46
46
  }
47
47
  );
48
48
  }
49
- const ae = Se({
49
+ const re = Ce({
50
50
  content: null,
51
51
  context: {},
52
52
  localState: void 0,
@@ -60,48 +60,48 @@ const ae = Se({
60
60
  BlocksWrapper: "div",
61
61
  BlocksWrapperProps: {},
62
62
  nonce: ""
63
- }), Te = Se({ registeredComponents: {} });
64
- function Xe(e) {
63
+ }), we = Ce({ registeredComponents: {} });
64
+ function Ze(e) {
65
65
  var t;
66
66
  return {
67
67
  ...(t = e.component) == null ? void 0 : t.options,
68
68
  ...e.options
69
69
  };
70
70
  }
71
- function Ze(e, ...t) {
71
+ function et(e, ...t) {
72
72
  const n = Object.assign({}, e);
73
73
  for (const i of t)
74
74
  delete n[i];
75
75
  return n;
76
76
  }
77
- const Ie = (e, t, n) => {
78
- const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
77
+ const Ee = (e, t, n) => {
78
+ const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, r) => o != null ? o[r] : o, e);
79
79
  return i === void 0 || i === e ? n : i;
80
- }, et = ({
80
+ }, tt = ({
81
81
  code: e,
82
82
  builder: t,
83
83
  context: n,
84
84
  event: i,
85
85
  localState: o,
86
- rootSetState: a,
87
- rootState: r
86
+ rootSetState: r,
87
+ rootState: a
88
88
  }) => {
89
- const s = Me({
89
+ const l = _e({
90
90
  builder: t,
91
91
  context: n,
92
92
  event: i,
93
- state: _e({
94
- rootState: r,
93
+ state: qe({
94
+ rootState: a,
95
95
  localState: o,
96
- rootSetState: a
96
+ rootSetState: r
97
97
  })
98
98
  });
99
- return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
100
- }, tt = (e) => _() || Je({
99
+ return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
100
+ }, nt = (e) => q() || Ge({
101
101
  shouldLogWarning: !0
102
- }) ? et(e) : qe(e), nt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, it = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, ot = (e) => {
103
- var t, n, i, o, a, r;
104
- return ((i = (n = (t = nt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((r = (a = (o = it.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : a.getPath) == null ? void 0 : r.slice(1));
102
+ }) ? tt(e) : Ke(e), it = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, ot = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, at = (e) => {
103
+ var t, n, i, o, r, a;
104
+ return ((i = (n = (t = it.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((a = (r = (o = ot.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : r.getPath) == null ? void 0 : a.slice(1));
105
105
  };
106
106
  function L({
107
107
  code: e,
@@ -109,52 +109,52 @@ function L({
109
109
  localState: n,
110
110
  rootState: i,
111
111
  rootSetState: o,
112
- event: a,
113
- isExpression: r = !0
112
+ event: r,
113
+ isExpression: a = !0
114
114
  }) {
115
115
  if (e.trim() === "")
116
116
  return;
117
- const s = ot(e.trim());
118
- if (s)
119
- return Ie({
117
+ const l = at(e.trim());
118
+ if (l)
119
+ return Ee({
120
120
  ...i,
121
121
  ...n
122
- }, s);
122
+ }, l);
123
123
  const d = {
124
- code: Ke(e, {
125
- isExpression: r
124
+ code: ze(e, {
125
+ isExpression: a
126
126
  }),
127
- builder: ze(),
127
+ builder: Je(),
128
128
  context: t,
129
- event: a,
129
+ event: r,
130
130
  rootSetState: o,
131
131
  rootState: i,
132
132
  localState: n
133
133
  };
134
134
  try {
135
- return tt(d);
135
+ return nt(d);
136
136
  } catch (c) {
137
- ne.error("Failed code evaluation: " + c.message, {
137
+ ie.error("Failed code evaluation: " + c.message, {
138
138
  code: e
139
139
  });
140
140
  return;
141
141
  }
142
142
  }
143
- function ee(e) {
143
+ function te(e) {
144
144
  if (e === null || typeof e != "object")
145
145
  return e;
146
146
  if (Array.isArray(e))
147
- return e.map((n) => ee(n));
147
+ return e.map((n) => te(n));
148
148
  if (e["@type"] === "@builder.io/sdk:Element")
149
149
  return e;
150
150
  const t = {};
151
151
  for (const n in e)
152
- n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ee(e[n]));
152
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = te(e[n]));
153
153
  return t;
154
154
  }
155
- const at = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), rt = (e) => {
156
- if (at) {
157
- const t = ie(e);
155
+ const rt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), lt = (e) => {
156
+ if (rt) {
157
+ const t = oe(e);
158
158
  return {
159
159
  ...t,
160
160
  properties: {
@@ -165,7 +165,7 @@ const at = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), rt = (e) =
165
165
  }
166
166
  };
167
167
  } else {
168
- const t = ee(Ze(e, "children", "meta"));
168
+ const t = te(et(e, "children", "meta"));
169
169
  return {
170
170
  ...t,
171
171
  properties: {
@@ -178,7 +178,7 @@ const at = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), rt = (e) =
178
178
  meta: e.meta
179
179
  };
180
180
  }
181
- }, lt = ({
181
+ }, st = ({
182
182
  block: e,
183
183
  context: t,
184
184
  localState: n,
@@ -187,47 +187,47 @@ const at = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), rt = (e) =
187
187
  }) => {
188
188
  if (!e.bindings)
189
189
  return e;
190
- const a = rt(e);
191
- for (const r in e.bindings) {
192
- const s = e.bindings[r], d = L({
193
- code: s,
190
+ const r = lt(e);
191
+ for (const a in e.bindings) {
192
+ const l = e.bindings[a], d = L({
193
+ code: l,
194
194
  localState: n,
195
195
  rootState: i,
196
196
  rootSetState: o,
197
197
  context: t
198
198
  });
199
- Ce(a, r, d);
199
+ Ie(r, a, d);
200
200
  }
201
- return a;
201
+ return r;
202
202
  };
203
- function st({
203
+ function ct({
204
204
  block: e,
205
205
  context: t,
206
206
  shouldEvaluateBindings: n,
207
207
  localState: i,
208
208
  rootState: o,
209
- rootSetState: a
209
+ rootSetState: r
210
210
  }) {
211
- const r = e;
212
- return n ? lt({
213
- block: r,
211
+ const a = e;
212
+ return n ? st({
213
+ block: a,
214
214
  localState: i,
215
215
  rootState: o,
216
- rootSetState: a,
216
+ rootSetState: r,
217
217
  context: t
218
- }) : r;
218
+ }) : a;
219
219
  }
220
- const K = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
221
- function ct(e, t, n = {}) {
222
- let i, o, a, r = null, s = 0;
220
+ const z = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
221
+ function dt(e, t, n = {}) {
222
+ let i, o, r, a = null, l = 0;
223
223
  const d = function() {
224
- s = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
224
+ l = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
225
225
  };
226
226
  return function() {
227
227
  const c = Date.now();
228
- !s && n.leading === !1 && (s = c);
229
- const h = t - (c - s);
230
- return i = this, o = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), s = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, h)), a;
228
+ !l && n.leading === !1 && (l = c);
229
+ const h = t - (c - l);
230
+ return i = this, o = arguments, h <= 0 || h > t ? (a && (clearTimeout(a), a = null), l = c, r = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(d, h)), r;
231
231
  };
232
232
  }
233
233
  function O(e, ...t) {
@@ -235,72 +235,72 @@ function O(e, ...t) {
235
235
  for (let i = 1; i < arguments.length; i++) {
236
236
  const o = arguments[i];
237
237
  if (o != null)
238
- for (const a in o)
239
- Object.prototype.hasOwnProperty.call(o, a) && (n[a] = o[a]);
238
+ for (const r in o)
239
+ Object.prototype.hasOwnProperty.call(o, r) && (n[r] = o[r]);
240
240
  }
241
241
  return n;
242
242
  }
243
- function dt(e) {
243
+ function ut(e) {
244
244
  for (const t of e)
245
245
  switch (t.trigger) {
246
246
  case "pageLoad":
247
- Re(t);
247
+ Be(t);
248
248
  break;
249
249
  case "scrollInView":
250
- mt(t);
250
+ ft(t);
251
251
  break;
252
252
  }
253
253
  }
254
- function we(e) {
254
+ function Re(e) {
255
255
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
256
256
  }
257
- function Ee(e, t) {
258
- const n = ut(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
259
- for (const s of r)
257
+ function Pe(e, t) {
258
+ const n = mt(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
259
+ for (const l of a)
260
260
  for (const d of n)
261
- d in s || (s[d] = i[d]);
261
+ d in l || (l[d] = i[d]);
262
262
  }
263
- function ut(e) {
263
+ function mt(e) {
264
264
  const t = [];
265
265
  for (const n of e.steps)
266
266
  for (const i in n.styles)
267
267
  t.indexOf(i) === -1 && t.push(i);
268
268
  return t;
269
269
  }
270
- function Re(e) {
270
+ function Be(e) {
271
271
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
272
272
  if (!t.length) {
273
- we(e.elementId || e.id || "");
273
+ Re(e.elementId || e.id || "");
274
274
  return;
275
275
  }
276
276
  Array.from(t).forEach((n) => {
277
- Ee(e, n), n.style.transition = "none", n.style.transitionDelay = "0", O(n.style, e.steps[0].styles), setTimeout(() => {
278
- n.style.transition = `all ${e.duration}s ${K(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), O(n.style, e.steps[1].styles), setTimeout(() => {
277
+ Pe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", O(n.style, e.steps[0].styles), setTimeout(() => {
278
+ n.style.transition = `all ${e.duration}s ${z(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), O(n.style, e.steps[1].styles), setTimeout(() => {
279
279
  n.style.transition = "", n.style.transitionDelay = "";
280
280
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
281
281
  });
282
282
  });
283
283
  }
284
- function mt(e) {
284
+ function ft(e) {
285
285
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
286
286
  if (!t.length) {
287
- we(e.elementId || e.id || "");
287
+ Re(e.elementId || e.id || "");
288
288
  return;
289
289
  }
290
290
  Array.from(t).forEach((n) => {
291
- Ee(e, n);
291
+ Pe(e, n);
292
292
  let i = !1, o = !1;
293
- function a() {
294
- !i && s(n) ? (i = !0, o = !0, setTimeout(() => {
295
- O(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
293
+ function r() {
294
+ !i && l(n) ? (i = !0, o = !0, setTimeout(() => {
295
+ O(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
296
296
  o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
297
297
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
298
- })) : e.repeat && i && !o && !s(n) && (i = !1, O(n.style, e.steps[0].styles));
298
+ })) : e.repeat && i && !o && !l(n) && (i = !1, O(n.style, e.steps[0].styles));
299
299
  }
300
- const r = ct(a, 200, {
300
+ const a = dt(r, 200, {
301
301
  leading: !1
302
302
  });
303
- function s(h) {
303
+ function l(h) {
304
304
  const g = h.getBoundingClientRect(), m = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * m;
305
305
  return g.bottom > f && g.top < m - f;
306
306
  }
@@ -309,49 +309,49 @@ function mt(e) {
309
309
  O(n.style, d);
310
310
  }
311
311
  c(), setTimeout(() => {
312
- n.style.transition = `all ${e.duration}s ${K(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
313
- }), document.addEventListener("scroll", r, {
312
+ n.style.transition = `all ${e.duration}s ${z(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
313
+ }), document.addEventListener("scroll", a, {
314
314
  capture: !0,
315
315
  passive: !0
316
- }), a();
316
+ }), r();
317
317
  });
318
318
  }
319
- const Pe = (e) => Object.entries(e).map(([n, i]) => {
319
+ const Ve = (e) => Object.entries(e).map(([n, i]) => {
320
320
  if (typeof i == "string")
321
- return `${K(n)}: ${i};`;
322
- }).filter(Z), ft = (e) => Pe(e).join(`
323
- `), j = ({
321
+ return `${z(n)}: ${i};`;
322
+ }).filter(ee), ht = (e) => Ve(e).join(`
323
+ `), M = ({
324
324
  mediaQuery: e,
325
325
  className: t,
326
326
  styles: n
327
327
  }) => {
328
328
  const i = `.${t} {
329
- ${ft(n)}
329
+ ${ht(n)}
330
330
  }`;
331
331
  return e ? `${e} {
332
332
  ${i}
333
333
  }` : i;
334
334
  };
335
- function ht({
335
+ function gt({
336
336
  style: e
337
337
  }) {
338
338
  return e;
339
339
  }
340
- const gt = ({
340
+ const bt = ({
341
341
  block: e,
342
342
  context: t
343
- }) => Be(ht({
343
+ }) => Ae(gt({
344
344
  style: e.style || {},
345
345
  context: t,
346
346
  block: e
347
347
  }));
348
- function Be(e) {
348
+ function Ae(e) {
349
349
  switch (D) {
350
350
  case "svelte":
351
351
  case "vue":
352
352
  case "solid":
353
353
  case "angular":
354
- return Pe(e).join(" ");
354
+ return Ve(e).join(" ");
355
355
  case "qwik":
356
356
  case "reactNative":
357
357
  case "react":
@@ -359,7 +359,7 @@ function Be(e) {
359
359
  return e;
360
360
  }
361
361
  }
362
- const bt = ({
362
+ const pt = ({
363
363
  block: e,
364
364
  registeredComponents: t
365
365
  }) => {
@@ -373,7 +373,7 @@ const bt = ({
373
373
  console.warn(`
374
374
  Could not find a registered component named "${n}".
375
375
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
376
- }, pt = ({
376
+ }, yt = ({
377
377
  block: e,
378
378
  context: t
379
379
  }) => {
@@ -392,7 +392,7 @@ const bt = ({
392
392
  });
393
393
  if (!Array.isArray(o))
394
394
  return;
395
- const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
395
+ const r = n.collection.split(".").pop(), a = n.itemName || (r ? r + "Item" : "item");
396
396
  return o.map((d, c) => ({
397
397
  context: {
398
398
  ...t,
@@ -400,33 +400,33 @@ const bt = ({
400
400
  ...t.localState,
401
401
  $index: c,
402
402
  $item: d,
403
- [r]: d,
404
- [`$${r}Index`]: c
403
+ [a]: d,
404
+ [`$${a}Index`]: c
405
405
  }
406
406
  },
407
407
  block: i
408
408
  }));
409
- }, yt = (e, t) => {
409
+ }, xt = (e, t) => {
410
410
  var n;
411
411
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
412
412
  builderLinkComponent: t
413
413
  } : {};
414
- }, xt = (e, t) => {
414
+ }, vt = (e, t) => {
415
415
  var n;
416
416
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
417
417
  builderComponents: t
418
418
  } : {};
419
- }, vt = (e, t) => {
419
+ }, St = (e, t) => {
420
420
  var n;
421
421
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
422
422
  builderBlock: t
423
423
  } : {};
424
- }, St = (e, t) => {
424
+ }, kt = (e, t) => {
425
425
  var n;
426
426
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
427
427
  builderContext: t
428
428
  } : {};
429
- }, Ve = {
429
+ }, We = {
430
430
  small: {
431
431
  min: 320,
432
432
  default: 321,
@@ -442,11 +442,11 @@ const bt = ({
442
442
  default: 991,
443
443
  max: 1200
444
444
  }
445
- }, de = (e, t = Ve) => `@media (max-width: ${t[e].max}px)`, Ae = ({
445
+ }, ue = (e, t = We) => `@media (max-width: ${t[e].max}px)`, Ne = ({
446
446
  small: e,
447
447
  medium: t
448
448
  }) => {
449
- const n = ie(Ve);
449
+ const n = oe(We);
450
450
  if (!e || !t)
451
451
  return n;
452
452
  const i = Math.floor(e / 2);
@@ -461,16 +461,16 @@ const bt = ({
461
461
  min: o,
462
462
  default: o + 1
463
463
  };
464
- const a = n.medium.max + 1;
464
+ const r = n.medium.max + 1;
465
465
  return n.large = {
466
466
  max: 2e3,
467
467
  // TODO: decide upper limit
468
- min: a,
469
- default: a + 1
468
+ min: r,
469
+ default: r + 1
470
470
  }, n;
471
471
  };
472
- function z(e) {
473
- return /* @__PURE__ */ l(
472
+ function J(e) {
473
+ return /* @__PURE__ */ s(
474
474
  "style",
475
475
  {
476
476
  dangerouslySetInnerHTML: { __html: e.styles },
@@ -479,44 +479,44 @@ function z(e) {
479
479
  }
480
480
  );
481
481
  }
482
- function kt(e) {
482
+ function Ct(e) {
483
483
  function t() {
484
484
  const i = e.block;
485
- return Z(i.hide) ? !i.hide : Z(i.show) ? i.show : !0;
485
+ return ee(i.hide) ? !i.hide : ee(i.show) ? i.show : !0;
486
486
  }
487
487
  function n() {
488
- var S, p, b;
489
- const i = e.block, o = i.responsiveStyles, a = e.context.content, r = Ae(
490
- ((S = a == null ? void 0 : a.meta) == null ? void 0 : S.breakpoints) || {}
491
- ), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
488
+ var v, p, b;
489
+ const i = e.block, o = i.responsiveStyles, r = e.context.content, a = Ne(
490
+ ((v = r == null ? void 0 : r.meta) == null ? void 0 : v.breakpoints) || {}
491
+ ), l = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
492
492
  if (!h)
493
493
  return "";
494
- const g = s ? j({
494
+ const g = l ? M({
495
495
  className: h,
496
- styles: s
497
- }) : "", m = d ? j({
496
+ styles: l
497
+ }) : "", m = d ? M({
498
498
  className: h,
499
499
  styles: d,
500
- mediaQuery: de(
500
+ mediaQuery: ue(
501
501
  "medium",
502
- r
502
+ a
503
503
  )
504
- }) : "", v = c ? j({
504
+ }) : "", x = c ? M({
505
505
  className: h,
506
506
  styles: c,
507
- mediaQuery: de(
507
+ mediaQuery: ue(
508
508
  "small",
509
- r
509
+ a
510
510
  )
511
- }) : "", f = i.animations && i.animations.find((x) => x.trigger === "hover");
512
- let k = "";
511
+ }) : "", f = i.animations && i.animations.find((y) => y.trigger === "hover");
512
+ let S = "";
513
513
  if (f) {
514
- const x = ((b = (p = f.steps) == null ? void 0 : p[1]) == null ? void 0 : b.styles) || {};
515
- k = j({
514
+ const y = ((b = (p = f.steps) == null ? void 0 : p[1]) == null ? void 0 : b.styles) || {};
515
+ S = M({
516
516
  className: `${h}:hover`,
517
517
  styles: {
518
- ...x,
519
- transition: `all ${f.duration}s ${K(
518
+ ...y,
519
+ transition: `all ${f.duration}s ${z(
520
520
  f.easing
521
521
  )}`,
522
522
  transitionDelay: f.delay ? `${f.delay}s` : "0s"
@@ -526,12 +526,12 @@ function kt(e) {
526
526
  return [
527
527
  g,
528
528
  m,
529
- v,
530
- k
529
+ x,
530
+ S
531
531
  ].join(" ");
532
532
  }
533
- return /* @__PURE__ */ l(T, { children: n() && t() ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
534
- z,
533
+ return /* @__PURE__ */ s(I, { children: n() && t() ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(
534
+ J,
535
535
  {
536
536
  id: "builderio-block",
537
537
  styles: n(),
@@ -539,10 +539,10 @@ function kt(e) {
539
539
  }
540
540
  ) }) : null });
541
541
  }
542
- function Ct(e) {
542
+ function Tt(e) {
543
543
  return e.charAt(0).toUpperCase() + e.slice(1);
544
544
  }
545
- const Tt = (e) => `on${Ct(e)}`, It = (e, t) => (n) => L({
545
+ const It = (e) => `on${Tt(e)}`, wt = (e, t) => (n) => L({
546
546
  code: e,
547
547
  context: t.context,
548
548
  localState: t.localState,
@@ -551,66 +551,66 @@ const Tt = (e) => `on${Ct(e)}`, It = (e, t) => (n) => L({
551
551
  event: n,
552
552
  isExpression: !1
553
553
  });
554
- function We(e) {
554
+ function Fe(e) {
555
555
  var i;
556
556
  const t = {}, n = (i = e.block.actions) != null ? i : {};
557
557
  for (const o in n) {
558
558
  if (!n.hasOwnProperty(o))
559
559
  continue;
560
- const a = n[o];
561
- let r = Tt(o);
560
+ const r = n[o];
561
+ let a = It(o);
562
562
  if (e.stripPrefix)
563
563
  switch (D) {
564
564
  case "vue":
565
- r = r.replace("v-on:", "");
565
+ a = a.replace("v-on:", "");
566
566
  break;
567
567
  case "svelte":
568
- r = r.replace("on:", "");
568
+ a = a.replace("on:", "");
569
569
  break;
570
570
  }
571
- t[r] = It(a, e);
571
+ t[a] = wt(r, e);
572
572
  }
573
573
  return t;
574
574
  }
575
- function wt({
575
+ function Et({
576
576
  properties: e
577
577
  }) {
578
578
  return e;
579
579
  }
580
- const Et = (e) => ({
580
+ const Rt = (e) => ({
581
581
  href: e.href
582
582
  });
583
- function re({
583
+ function le({
584
584
  block: e,
585
585
  context: t
586
586
  }) {
587
587
  var i;
588
588
  const n = {
589
- ...Et(e),
589
+ ...Rt(e),
590
590
  ...e.properties,
591
591
  "builder-id": e.id,
592
- style: gt({
592
+ style: bt({
593
593
  block: e,
594
594
  context: t
595
595
  }),
596
596
  [U()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
597
597
  };
598
- return wt({
598
+ return Et({
599
599
  properties: n,
600
600
  context: t,
601
601
  block: e
602
602
  });
603
603
  }
604
- function Rt(e) {
605
- return /* @__PURE__ */ l(
606
- oe,
604
+ function Pt(e) {
605
+ return /* @__PURE__ */ s(
606
+ ae,
607
607
  {
608
608
  TagName: e.Wrapper,
609
- attributes: re({
609
+ attributes: le({
610
610
  block: e.block,
611
611
  context: e.context
612
612
  }),
613
- actionAttributes: We({
613
+ actionAttributes: Fe({
614
614
  block: e.block,
615
615
  rootState: e.context.rootState,
616
616
  rootSetState: e.context.rootSetState,
@@ -622,18 +622,18 @@ function Rt(e) {
622
622
  }
623
623
  );
624
624
  }
625
- function Pt(e) {
625
+ function Bt(e) {
626
626
  return B(() => {
627
- }, []), /* @__PURE__ */ l(T, { children: e.children });
627
+ }, []), /* @__PURE__ */ s(I, { children: e.children });
628
628
  }
629
- function Bt(e) {
629
+ function Vt(e) {
630
630
  function t() {
631
631
  return e.includeBlockProps ? {
632
- ...re({
632
+ ...le({
633
633
  block: e.block,
634
634
  context: e.context
635
635
  }),
636
- ...We({
636
+ ...Fe({
637
637
  block: e.block,
638
638
  rootState: e.context.rootState,
639
639
  rootSetState: e.context.rootSetState,
@@ -642,8 +642,8 @@ function Bt(e) {
642
642
  })
643
643
  } : {};
644
644
  }
645
- return /* @__PURE__ */ l(T, { children: e.Wrapper.load ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
646
- Pt,
645
+ return /* @__PURE__ */ s(I, { children: e.Wrapper.load ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(
646
+ Bt,
647
647
  {
648
648
  load: e.Wrapper.load,
649
649
  fallback: e.Wrapper.fallback,
@@ -651,47 +651,47 @@ function Bt(e) {
651
651
  attributes: t(),
652
652
  children: e.children
653
653
  }
654
- ) }) : /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
654
+ ) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
655
655
  }
656
- const Vt = ({
656
+ const At = ({
657
657
  componentOptions: e,
658
658
  builderBlock: t,
659
659
  context: n,
660
660
  componentRef: i,
661
661
  includeBlockProps: o,
662
- isInteractive: a,
663
- contextValue: r
662
+ isInteractive: r,
663
+ contextValue: a
664
664
  }) => {
665
- const s = {
665
+ const l = {
666
666
  ...e,
667
667
  /**
668
668
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
669
669
  * component itself directly. Otherwise, they are provided to the wrapper element.
670
670
  */
671
671
  ...o ? {
672
- attributes: re({
672
+ attributes: le({
673
673
  block: t,
674
- context: r
674
+ context: a
675
675
  })
676
676
  } : {}
677
677
  };
678
- return a ? {
678
+ return r ? {
679
679
  Wrapper: i,
680
680
  block: t,
681
681
  context: n,
682
682
  wrapperProps: e,
683
683
  includeBlockProps: o
684
- } : s;
684
+ } : l;
685
685
  };
686
- function ue(e) {
686
+ function me(e) {
687
687
  var i;
688
- const [t, n] = w(
689
- () => e.isInteractive ? Bt : e.componentRef
688
+ const [t, n] = R(
689
+ () => e.isInteractive ? Vt : e.componentRef
690
690
  );
691
- return /* @__PURE__ */ l(T, { children: e.componentRef ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
691
+ return /* @__PURE__ */ s(I, { children: e.componentRef ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(
692
692
  t,
693
693
  {
694
- ...Vt({
694
+ ...At({
695
695
  componentOptions: e.componentOptions,
696
696
  builderBlock: e.builderBlock,
697
697
  context: e.context,
@@ -701,7 +701,7 @@ function ue(e) {
701
701
  isInteractive: e.isInteractive,
702
702
  contextValue: e.context
703
703
  }),
704
- children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
704
+ children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
705
705
  H,
706
706
  {
707
707
  block: o,
@@ -714,9 +714,9 @@ function ue(e) {
714
714
  }
715
715
  ) }) : null });
716
716
  }
717
- function me(e) {
718
- const [t, n] = w(() => e.repeatContext);
719
- return /* @__PURE__ */ l(ae.Provider, { value: t, children: /* @__PURE__ */ l(
717
+ function fe(e) {
718
+ const [t, n] = R(() => e.repeatContext);
719
+ return /* @__PURE__ */ s(re.Provider, { value: t, children: /* @__PURE__ */ s(
720
720
  H,
721
721
  {
722
722
  block: e.block,
@@ -727,22 +727,22 @@ function me(e) {
727
727
  ) });
728
728
  }
729
729
  function H(e) {
730
- var h, g, m, v;
730
+ var h, g, m, x;
731
731
  function t() {
732
- return pt({
732
+ return yt({
733
733
  block: e.block,
734
734
  context: e.context
735
735
  });
736
736
  }
737
- const [n, i] = w(() => ({
737
+ const [n, i] = R(() => ({
738
738
  value: null,
739
739
  update: !1
740
740
  }));
741
741
  function o() {
742
- var k;
743
- if (n.value && !n.update && !xe())
742
+ var S;
743
+ if (n.value && !n.update && !ve())
744
744
  return n.value;
745
- const f = (k = e.block.repeat) != null && k.collection ? e.block : st({
745
+ const f = (S = e.block.repeat) != null && S.collection ? e.block : ct({
746
746
  block: e.block,
747
747
  localState: e.context.localState,
748
748
  rootState: e.context.rootState,
@@ -752,39 +752,39 @@ function H(e) {
752
752
  });
753
753
  return n.value = f, n.update = !1, f;
754
754
  }
755
- function a() {
756
- return bt({
755
+ function r() {
756
+ return pt({
757
757
  block: o(),
758
758
  registeredComponents: e.registeredComponents
759
759
  });
760
760
  }
761
- function r() {
762
- var k;
763
- return e.block.tagName === "a" || ((k = o().properties) == null ? void 0 : k.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
761
+ function a() {
762
+ var S;
763
+ return e.block.tagName === "a" || ((S = o().properties) == null ? void 0 : S.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
764
764
  }
765
- function s() {
766
- var S, p;
767
- if ((S = e.block.repeat) != null && S.collection)
765
+ function l() {
766
+ var v, p;
767
+ if ((v = e.block.repeat) != null && v.collection)
768
768
  return !!((p = t == null ? void 0 : t()) != null && p.length);
769
769
  const f = "hide" in o() ? o().hide : !1;
770
770
  return ("show" in o() ? o().show : !0) && !f;
771
771
  }
772
772
  function d() {
773
- var k, S;
774
- return !((k = a == null ? void 0 : a()) != null && k.component) && !t() ? (S = o().children) != null ? S : [] : [];
773
+ var S, v;
774
+ return !((S = r == null ? void 0 : r()) != null && S.component) && !t() ? (v = o().children) != null ? v : [] : [];
775
775
  }
776
776
  function c() {
777
- var f, k, S, p;
777
+ var f, S, v, p;
778
778
  return {
779
779
  blockChildren: (f = o().children) != null ? f : [],
780
- componentRef: (k = a == null ? void 0 : a()) == null ? void 0 : k.component,
780
+ componentRef: (S = r == null ? void 0 : r()) == null ? void 0 : S.component,
781
781
  componentOptions: {
782
- ...Xe(o()),
783
- ...vt(a(), o()),
784
- ...St(a(), e.context),
785
- ...yt(a(), e.linkComponent),
786
- ...xt(
787
- a(),
782
+ ...Ze(o()),
783
+ ...St(r(), o()),
784
+ ...kt(r(), e.context),
785
+ ...xt(r(), e.linkComponent),
786
+ ...vt(
787
+ r(),
788
788
  e.registeredComponents
789
789
  )
790
790
  },
@@ -792,33 +792,33 @@ function H(e) {
792
792
  linkComponent: e.linkComponent,
793
793
  registeredComponents: e.registeredComponents,
794
794
  builderBlock: o(),
795
- includeBlockProps: ((S = a == null ? void 0 : a()) == null ? void 0 : S.noWrap) === !0,
796
- isInteractive: !((p = a == null ? void 0 : a()) != null && p.isRSC && D === "rsc")
795
+ includeBlockProps: ((v = r == null ? void 0 : r()) == null ? void 0 : v.noWrap) === !0,
796
+ isInteractive: !((p = r == null ? void 0 : r()) != null && p.isRSC && D === "rsc")
797
797
  };
798
798
  }
799
799
  return B(() => {
800
- const f = o().id, k = o().animations;
801
- k && f && dt(
802
- k.map((S) => ({
803
- ...S,
800
+ const f = o().id, S = o().animations;
801
+ S && f && ut(
802
+ S.map((v) => ({
803
+ ...v,
804
804
  elementId: f
805
805
  }))
806
806
  );
807
807
  }, []), B(() => {
808
808
  n.update = !0;
809
- }), /* @__PURE__ */ l(T, { children: s() ? /* @__PURE__ */ V(T, { children: [
810
- /* @__PURE__ */ l(kt, { block: o(), context: e.context }),
811
- (h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ l(T, { children: (v = t()) == null ? void 0 : v.map((f, k) => /* @__PURE__ */ l(
812
- me,
809
+ }), /* @__PURE__ */ s(I, { children: l() ? /* @__PURE__ */ V(I, { children: [
810
+ /* @__PURE__ */ s(Ct, { block: o(), context: e.context }),
811
+ (h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(I, { children: (x = t()) == null ? void 0 : x.map((f, S) => /* @__PURE__ */ s(
812
+ fe,
813
813
  {
814
814
  repeatContext: f.context,
815
815
  block: f.block,
816
816
  registeredComponents: e.registeredComponents,
817
817
  linkComponent: e.linkComponent
818
818
  },
819
- k
820
- )) }) : /* @__PURE__ */ l(
821
- ue,
819
+ S
820
+ )) }) : /* @__PURE__ */ s(
821
+ me,
822
822
  {
823
823
  componentRef: c().componentRef,
824
824
  componentOptions: c().componentOptions,
@@ -830,24 +830,24 @@ function H(e) {
830
830
  includeBlockProps: c().includeBlockProps,
831
831
  isInteractive: c().isInteractive
832
832
  }
833
- ) : /* @__PURE__ */ l(T, { children: t() ? /* @__PURE__ */ l(T, { children: (m = t()) == null ? void 0 : m.map((f, k) => /* @__PURE__ */ l(
834
- me,
833
+ ) : /* @__PURE__ */ s(I, { children: t() ? /* @__PURE__ */ s(I, { children: (m = t()) == null ? void 0 : m.map((f, S) => /* @__PURE__ */ s(
834
+ fe,
835
835
  {
836
836
  repeatContext: f.context,
837
837
  block: f.block,
838
838
  registeredComponents: e.registeredComponents,
839
839
  linkComponent: e.linkComponent
840
840
  },
841
- k
841
+ S
842
842
  )) }) : /* @__PURE__ */ V(
843
- Rt,
843
+ Pt,
844
844
  {
845
- Wrapper: r(),
845
+ Wrapper: a(),
846
846
  block: o(),
847
847
  context: e.context,
848
848
  children: [
849
- /* @__PURE__ */ l(
850
- ue,
849
+ /* @__PURE__ */ s(
850
+ me,
851
851
  {
852
852
  componentRef: c().componentRef,
853
853
  componentOptions: c().componentOptions,
@@ -860,7 +860,7 @@ function H(e) {
860
860
  isInteractive: c().isInteractive
861
861
  }
862
862
  ),
863
- (g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */ l(
863
+ (g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */ s(
864
864
  H,
865
865
  {
866
866
  block: f,
@@ -875,7 +875,7 @@ function H(e) {
875
875
  ) })
876
876
  ] }) : null });
877
877
  }
878
- function At(e) {
878
+ function Wt(e) {
879
879
  const t = $(null);
880
880
  function n() {
881
881
  var a;
@@ -886,49 +886,55 @@ function At(e) {
886
886
  ].filter(Boolean).join(" ");
887
887
  }
888
888
  function i() {
889
- var a, r;
890
- N() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
889
+ if (!e.path)
890
+ return;
891
+ const a = "component.options.";
892
+ return e.path.startsWith(a) ? e.path : `${a}${e.path || ""}`;
893
+ }
894
+ function o() {
895
+ var a, l;
896
+ N() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
891
897
  {
892
898
  type: "builder.clickEmptyBlocks",
893
899
  data: {
894
900
  parentElementId: e.parent,
895
- dataPath: e.path
901
+ dataPath: i()
896
902
  }
897
903
  },
898
904
  "*"
899
905
  ));
900
906
  }
901
- function o() {
902
- var a, r;
903
- N() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
907
+ function r() {
908
+ var a, l;
909
+ N() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
904
910
  {
905
911
  type: "builder.hoverEmptyBlocks",
906
912
  data: {
907
913
  parentElementId: e.parent,
908
- dataPath: e.path
914
+ dataPath: i()
909
915
  }
910
916
  },
911
917
  "*"
912
918
  ));
913
919
  }
914
920
  return B(() => {
915
- }, []), /* @__PURE__ */ V(T, { children: [
916
- /* @__PURE__ */ l(
921
+ }, []), /* @__PURE__ */ V(I, { children: [
922
+ /* @__PURE__ */ s(
917
923
  e.BlocksWrapper,
918
924
  {
919
925
  ref: t,
920
- className: n() + " props-blocks-wrapper-43ec7ac8",
921
- "builder-path": e.path,
926
+ className: n() + " props-blocks-wrapper-215a41e0",
927
+ "builder-path": i(),
922
928
  "builder-parent-id": e.parent,
923
929
  style: e.styleProp,
924
- onClick: (a) => i(),
925
- onMouseEnter: (a) => o(),
926
- onKeyPress: (a) => i(),
930
+ onClick: (a) => o(),
931
+ onMouseEnter: (a) => r(),
932
+ onKeyPress: (a) => o(),
927
933
  ...e.BlocksWrapperProps,
928
934
  children: e.children
929
935
  }
930
936
  ),
931
- /* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-43ec7ac8 {
937
+ /* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-215a41e0 {
932
938
  display: flex;
933
939
  flex-direction: column;
934
940
  align-items: stretch;
@@ -936,10 +942,10 @@ function At(e) {
936
942
  ] });
937
943
  }
938
944
  function F(e) {
939
- var i, o, a;
940
- const t = ce(ae), n = ce(Te);
941
- return /* @__PURE__ */ l(
942
- At,
945
+ var i, o, r;
946
+ const t = de(re), n = de(we);
947
+ return /* @__PURE__ */ s(
948
+ Wt,
943
949
  {
944
950
  blocks: e.blocks,
945
951
  parent: e.parent,
@@ -948,22 +954,22 @@ function F(e) {
948
954
  classNameProp: e.className,
949
955
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
950
956
  BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
951
- children: e.blocks ? /* @__PURE__ */ l(T, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
957
+ children: e.blocks ? /* @__PURE__ */ s(I, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ s(
952
958
  H,
953
959
  {
954
- block: r,
960
+ block: a,
955
961
  linkComponent: e.linkComponent,
956
962
  context: e.context || t,
957
963
  registeredComponents: e.registeredComponents || (n == null ? void 0 : n.registeredComponents)
958
964
  },
959
- r.id
965
+ a.id
960
966
  )) }) : null
961
967
  }
962
968
  );
963
969
  }
964
- const Wt = (e) => `builder-columns ${e}-breakpoints`;
965
- function Nt(e) {
966
- var k, S;
970
+ const Nt = (e) => `builder-columns ${e}-breakpoints`;
971
+ function Ft(e) {
972
+ var S, v;
967
973
  function t() {
968
974
  return typeof e.space == "number" ? e.space || 0 : 20;
969
975
  }
@@ -976,15 +982,15 @@ function Nt(e) {
976
982
  function o(p) {
977
983
  return p.link ? e.builderLinkComponent || "a" : "div";
978
984
  }
979
- function a(p) {
985
+ function r(p) {
980
986
  var b;
981
987
  return ((b = n()[p]) == null ? void 0 : b.width) || 100 / n().length;
982
988
  }
983
- function r(p) {
984
- const b = a(p), x = t() * (n().length - 1) * (b / 100);
985
- return `calc(${b}% - ${x}px)`;
989
+ function a(p) {
990
+ const b = r(p), y = t() * (n().length - 1) * (b / 100);
991
+ return `calc(${b}% - ${y}px)`;
986
992
  }
987
- function s({
993
+ function l({
988
994
  stackedStyle: p,
989
995
  desktopStyle: b
990
996
  }) {
@@ -1002,47 +1008,47 @@ function Nt(e) {
1002
1008
  function h() {
1003
1009
  return {
1004
1010
  "--flex-dir": c(),
1005
- "--flex-dir-tablet": s({
1011
+ "--flex-dir-tablet": l({
1006
1012
  stackedStyle: c(),
1007
1013
  desktopStyle: "row"
1008
1014
  })
1009
1015
  };
1010
1016
  }
1011
1017
  function g(p) {
1012
- const b = p === 0 ? 0 : t(), x = r(p), A = `${b}px`, C = "100%", I = 0;
1018
+ const b = p === 0 ? 0 : t(), y = a(p), A = `${b}px`, k = "100%", w = 0;
1013
1019
  return {
1014
1020
  ...{
1015
1021
  display: "flex",
1016
1022
  flexDirection: "column",
1017
1023
  alignItems: "stretch"
1018
1024
  },
1019
- width: x,
1025
+ width: y,
1020
1026
  ["marginLeft"]: A,
1021
1027
  "--column-width-mobile": d({
1022
- stackedStyle: C,
1023
- desktopStyle: x
1028
+ stackedStyle: k,
1029
+ desktopStyle: y
1024
1030
  }),
1025
1031
  "--column-margin-left-mobile": d({
1026
- stackedStyle: I,
1032
+ stackedStyle: w,
1027
1033
  desktopStyle: A
1028
1034
  }),
1029
- "--column-width-tablet": s({
1030
- stackedStyle: C,
1031
- desktopStyle: x
1035
+ "--column-width-tablet": l({
1036
+ stackedStyle: k,
1037
+ desktopStyle: y
1032
1038
  }),
1033
- "--column-margin-left-tablet": s({
1034
- stackedStyle: I,
1039
+ "--column-margin-left-tablet": l({
1040
+ stackedStyle: w,
1035
1041
  desktopStyle: A
1036
1042
  })
1037
1043
  };
1038
1044
  }
1039
1045
  function m(p) {
1040
- var x, A;
1041
- return Ae(
1042
- ((A = (x = e.builderContext.content) == null ? void 0 : x.meta) == null ? void 0 : A.breakpoints) || {}
1046
+ var y, A;
1047
+ return Ne(
1048
+ ((A = (y = e.builderContext.content) == null ? void 0 : y.meta) == null ? void 0 : A.breakpoints) || {}
1043
1049
  )[p].max;
1044
1050
  }
1045
- function v() {
1051
+ function x() {
1046
1052
  const p = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1047
1053
  return `
1048
1054
  @media (max-width: ${m("medium")}px) {
@@ -1076,34 +1082,34 @@ function Nt(e) {
1076
1082
  href: p.link
1077
1083
  } : {},
1078
1084
  [U()]: "builder-column",
1079
- style: Be(g(b))
1085
+ style: Ae(g(b))
1080
1086
  };
1081
1087
  }
1082
- return /* @__PURE__ */ V(T, { children: [
1088
+ return /* @__PURE__ */ V(I, { children: [
1083
1089
  /* @__PURE__ */ V(
1084
1090
  "div",
1085
1091
  {
1086
- className: Wt((k = e.builderBlock) == null ? void 0 : k.id) + " div-424156c6",
1092
+ className: Nt((S = e.builderBlock) == null ? void 0 : S.id) + " div-49f40bae",
1087
1093
  style: h(),
1088
1094
  children: [
1089
- /* @__PURE__ */ l(
1090
- z,
1095
+ /* @__PURE__ */ s(
1096
+ J,
1091
1097
  {
1092
1098
  id: "builderio-columns",
1093
- styles: v(),
1099
+ styles: x(),
1094
1100
  nonce: e.builderContext.nonce
1095
1101
  }
1096
1102
  ),
1097
- (S = e.columns) == null ? void 0 : S.map((p, b) => /* @__PURE__ */ l(
1098
- oe,
1103
+ (v = e.columns) == null ? void 0 : v.map((p, b) => /* @__PURE__ */ s(
1104
+ ae,
1099
1105
  {
1100
1106
  TagName: o(p),
1101
1107
  actionAttributes: {},
1102
1108
  attributes: f(p, b),
1103
- children: /* @__PURE__ */ l(
1109
+ children: /* @__PURE__ */ s(
1104
1110
  F,
1105
1111
  {
1106
- path: `component.options.columns.${b}.blocks`,
1112
+ path: `columns.${b}.blocks`,
1107
1113
  parent: e.builderBlock.id,
1108
1114
  styleProp: {
1109
1115
  flexGrow: "1"
@@ -1120,47 +1126,47 @@ function Nt(e) {
1120
1126
  ]
1121
1127
  }
1122
1128
  ),
1123
- /* @__PURE__ */ l("style", { children: `.div-424156c6 {
1129
+ /* @__PURE__ */ s("style", { children: `.div-49f40bae {
1124
1130
  display: flex;
1125
1131
  line-height: normal;
1126
1132
  }` })
1127
1133
  ] });
1128
1134
  }
1129
- function Ft(e) {
1130
- return /* @__PURE__ */ l("span", { children: e.children });
1135
+ function $t(e) {
1136
+ return /* @__PURE__ */ s("span", { children: e.children });
1131
1137
  }
1132
- function fe(e) {
1138
+ function he(e) {
1133
1139
  return e.replace(/http(s)?:/, "");
1134
1140
  }
1135
- function $t(e = "", t, n) {
1141
+ function Dt(e = "", t, n) {
1136
1142
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1137
1143
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1138
1144
  }
1139
- function Dt(e, t) {
1145
+ function Lt(e, t) {
1140
1146
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1141
1147
  return e;
1142
1148
  if (t === "master")
1143
- return fe(e);
1149
+ return he(e);
1144
1150
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1145
1151
  if (n) {
1146
- const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
1147
- return fe(`${i[0]}_${a}${o}`);
1152
+ const i = e.split(n[0]), o = n[3], r = t.match("x") ? t : `${t}x`;
1153
+ return he(`${i[0]}_${r}${o}`);
1148
1154
  }
1149
1155
  return null;
1150
1156
  }
1151
- function J(e) {
1157
+ function G(e) {
1152
1158
  if (!e)
1153
1159
  return e;
1154
1160
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1155
1161
  if (e.match(/builder\.io/)) {
1156
1162
  let n = e;
1157
1163
  const i = Number(e.split("?width=")[1]);
1158
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${$t(e, "width", o)} ${o}w`).concat([n]).join(", ");
1164
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Dt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1159
1165
  }
1160
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Dt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1166
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Lt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1161
1167
  }
1162
- function Lt(e) {
1163
- var o, a, r, s, d, c;
1168
+ function Ot(e) {
1169
+ var o, r, a, l, d, c;
1164
1170
  function t() {
1165
1171
  var m;
1166
1172
  const g = e.image || e.src;
@@ -1171,10 +1177,10 @@ function Lt(e) {
1171
1177
  if (!e.noWebp) {
1172
1178
  if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1173
1179
  if (!e.srcset.includes(e.image.split("?")[0]))
1174
- return console.debug("Removed given srcset"), J(g);
1180
+ return console.debug("Removed given srcset"), G(g);
1175
1181
  } else if (e.image && !e.srcset)
1176
- return J(g);
1177
- return J(g);
1182
+ return G(g);
1183
+ return G(g);
1178
1184
  }
1179
1185
  }
1180
1186
  function n() {
@@ -1192,11 +1198,11 @@ function Lt(e) {
1192
1198
  return e.aspectRatio ? h : void 0;
1193
1199
  }
1194
1200
  return B(() => {
1195
- }, []), /* @__PURE__ */ V(T, { children: [
1196
- /* @__PURE__ */ V(T, { children: [
1201
+ }, []), /* @__PURE__ */ V(I, { children: [
1202
+ /* @__PURE__ */ V(I, { children: [
1197
1203
  /* @__PURE__ */ V("picture", { children: [
1198
- n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
1199
- /* @__PURE__ */ l(
1204
+ n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1205
+ /* @__PURE__ */ s(
1200
1206
  "img",
1201
1207
  {
1202
1208
  loading: e.highPriority ? "eager" : "lazy",
@@ -1215,7 +1221,7 @@ function Lt(e) {
1215
1221
  }
1216
1222
  )
1217
1223
  ] }),
1218
- e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(
1224
+ e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
1219
1225
  "div",
1220
1226
  {
1221
1227
  className: "builder-image-sizer div-7a292ab8",
@@ -1224,10 +1230,10 @@ function Lt(e) {
1224
1230
  }
1225
1231
  }
1226
1232
  ) : null,
1227
- (s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(T, { children: e.children }) : null,
1228
- !e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ l("div", { className: "div-7a292ab8-2", children: e.children }) : null
1233
+ (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(I, { children: e.children }) : null,
1234
+ !e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-7a292ab8-2", children: e.children }) : null
1229
1235
  ] }),
1230
- /* @__PURE__ */ l("style", { children: `.img-7a292ab8 {
1236
+ /* @__PURE__ */ s("style", { children: `.img-7a292ab8 {
1231
1237
  opacity: 1;
1232
1238
  transition: opacity 0.2s ease-in-out;
1233
1239
  }.div-7a292ab8 {
@@ -1246,8 +1252,8 @@ function Lt(e) {
1246
1252
  }` })
1247
1253
  ] });
1248
1254
  }
1249
- function Ot(e) {
1250
- return /* @__PURE__ */ l(
1255
+ function Ut(e) {
1256
+ return /* @__PURE__ */ s(
1251
1257
  "section",
1252
1258
  {
1253
1259
  ...e.attributes,
@@ -1267,7 +1273,7 @@ function Ot(e) {
1267
1273
  }
1268
1274
  );
1269
1275
  }
1270
- const G = {
1276
+ const Y = {
1271
1277
  "@type": "@builder.io/sdk:Element",
1272
1278
  layerName: "Accordion item title",
1273
1279
  responsiveStyles: {
@@ -1296,7 +1302,7 @@ const G = {
1296
1302
  }
1297
1303
  }
1298
1304
  }]
1299
- }, Y = {
1305
+ }, Q = {
1300
1306
  "@type": "@builder.io/sdk:Element",
1301
1307
  layerName: "Accordion item detail",
1302
1308
  responsiveStyles: {
@@ -1327,7 +1333,7 @@ const G = {
1327
1333
  }
1328
1334
  }
1329
1335
  }]
1330
- }, Ut = {
1336
+ }, Ht = {
1331
1337
  name: "Builder:Accordion",
1332
1338
  canHaveChildren: !0,
1333
1339
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1344,19 +1350,19 @@ const G = {
1344
1350
  name: "title",
1345
1351
  type: "uiBlocks",
1346
1352
  hideFromUI: !0,
1347
- defaultValue: [G]
1353
+ defaultValue: [Y]
1348
1354
  }, {
1349
1355
  name: "detail",
1350
1356
  type: "uiBlocks",
1351
1357
  hideFromUI: !0,
1352
- defaultValue: [Y]
1358
+ defaultValue: [Q]
1353
1359
  }],
1354
1360
  defaultValue: [{
1355
- title: [G],
1356
- detail: [Y]
1361
+ title: [Y],
1362
+ detail: [Q]
1357
1363
  }, {
1358
- title: [G],
1359
- detail: [Y]
1364
+ title: [Y],
1365
+ detail: [Q]
1360
1366
  }],
1361
1367
  showIf: (e) => !e.get("useChildrenForItems")
1362
1368
  }, {
@@ -1391,10 +1397,10 @@ const G = {
1391
1397
  builderComponents: !0,
1392
1398
  builderLinkComponent: !0
1393
1399
  }
1394
- }, he = (e) => e.toString();
1395
- function Ht(e) {
1400
+ }, ge = (e) => e.toString();
1401
+ function jt(e) {
1396
1402
  var g;
1397
- const [t, n] = w(() => []);
1403
+ const [t, n] = R(() => []);
1398
1404
  function i() {
1399
1405
  return !!(e.grid || e.oneAtATime);
1400
1406
  }
@@ -1410,8 +1416,8 @@ function Ht(e) {
1410
1416
  }
1411
1417
  };
1412
1418
  }
1413
- function a() {
1414
- const v = {
1419
+ function r() {
1420
+ const x = {
1415
1421
  ...{
1416
1422
  display: "flex",
1417
1423
  flexDirection: "column"
@@ -1420,35 +1426,35 @@ function Ht(e) {
1420
1426
  cursor: "pointer"
1421
1427
  };
1422
1428
  return Object.fromEntries(
1423
- Object.entries(v).filter(([f, k]) => k !== void 0)
1429
+ Object.entries(x).filter(([f, S]) => S !== void 0)
1424
1430
  );
1425
1431
  }
1426
- function r(m) {
1432
+ function a(m) {
1427
1433
  return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
1428
1434
  }
1429
- function s(m) {
1435
+ function l(m) {
1430
1436
  return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
1431
1437
  }
1432
1438
  function d() {
1433
1439
  let m = null;
1434
1440
  if (e.grid && t.length && document) {
1435
1441
  const f = t[0];
1436
- let S = document.querySelector(
1442
+ let v = document.querySelector(
1437
1443
  `.builder-accordion-title[data-index="${f}"]`
1438
1444
  );
1439
- if (m = f, S) {
1440
- let p = S.getBoundingClientRect();
1441
- for (; S = S && S.nextElementSibling; )
1442
- if (S) {
1443
- if (S.classList.contains("builder-accordion-detail"))
1445
+ if (m = f, v) {
1446
+ let p = v.getBoundingClientRect();
1447
+ for (; v = v && v.nextElementSibling; )
1448
+ if (v) {
1449
+ if (v.classList.contains("builder-accordion-detail"))
1444
1450
  continue;
1445
- const b = S.getBoundingClientRect();
1451
+ const b = v.getBoundingClientRect();
1446
1452
  if (b.left > p.left) {
1447
- const x = parseInt(
1448
- S.getAttribute("data-index") || "",
1453
+ const y = parseInt(
1454
+ v.getAttribute("data-index") || "",
1449
1455
  10
1450
1456
  );
1451
- isNaN(x) || (p = b, m = x);
1457
+ isNaN(y) || (p = b, m = y);
1452
1458
  } else
1453
1459
  break;
1454
1460
  }
@@ -1464,29 +1470,31 @@ function Ht(e) {
1464
1470
  }
1465
1471
  };
1466
1472
  return Object.fromEntries(
1467
- Object.entries(m).filter(([v, f]) => f !== void 0)
1473
+ Object.entries(m).filter(([x, f]) => f !== void 0)
1468
1474
  );
1469
1475
  }
1470
1476
  function h(m) {
1471
- t.includes(m) ? n(i() ? [] : t.filter((v) => v !== m)) : n(i() ? [m] : t.concat(m));
1477
+ t.includes(m) ? n(i() ? [] : t.filter((x) => x !== m)) : n(i() ? [m] : t.concat(m));
1472
1478
  }
1473
- return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, v) => /* @__PURE__ */ V(T, { children: [
1474
- /* @__PURE__ */ l(
1479
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, x) => /* @__PURE__ */ V(I, { children: [
1480
+ /* @__PURE__ */ s(
1475
1481
  "div",
1476
1482
  {
1477
- className: r(v),
1483
+ className: a(x),
1478
1484
  style: {
1479
- ...a(),
1480
- width: e.grid ? e.gridRowWidth : void 0,
1481
- order: d() !== null ? he(v) : he(v + 1)
1485
+ ...r(),
1486
+ ...e.grid && {
1487
+ width: e.gridRowWidth,
1488
+ order: d() !== null ? ge(x) : ge(x + 1)
1489
+ }
1482
1490
  },
1483
- "data-index": v,
1484
- onClick: (f) => h(v),
1485
- children: /* @__PURE__ */ l(
1491
+ "data-index": x,
1492
+ onClick: (f) => h(x),
1493
+ children: /* @__PURE__ */ s(
1486
1494
  F,
1487
1495
  {
1488
1496
  blocks: m.title,
1489
- path: `items.${v}.title`,
1497
+ path: `items.${x}.title`,
1490
1498
  parent: e.builderBlock.id,
1491
1499
  context: e.builderContext,
1492
1500
  registeredComponents: e.builderComponents,
@@ -1495,16 +1503,16 @@ function Ht(e) {
1495
1503
  )
1496
1504
  }
1497
1505
  ),
1498
- t.includes(v) ? /* @__PURE__ */ l(
1506
+ t.includes(x) ? /* @__PURE__ */ s(
1499
1507
  "div",
1500
1508
  {
1501
- className: s(v),
1509
+ className: l(x),
1502
1510
  style: c(),
1503
- children: /* @__PURE__ */ l(
1511
+ children: /* @__PURE__ */ s(
1504
1512
  F,
1505
1513
  {
1506
1514
  blocks: m.detail,
1507
- path: `items.${v}.detail`,
1515
+ path: `items.${x}.detail`,
1508
1516
  parent: e.builderBlock.id,
1509
1517
  context: e.builderContext,
1510
1518
  registeredComponents: e.builderComponents,
@@ -1515,7 +1523,7 @@ function Ht(e) {
1515
1523
  ) : null
1516
1524
  ] })) });
1517
1525
  }
1518
- const jt = {
1526
+ const Mt = {
1519
1527
  name: "Core:Button",
1520
1528
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1521
1529
  defaultStyles: {
@@ -1551,7 +1559,7 @@ const jt = {
1551
1559
  shouldReceiveBuilderProps: {
1552
1560
  builderLinkComponent: !0
1553
1561
  }
1554
- }, Mt = {
1562
+ }, _t = {
1555
1563
  // TODO: ways to statically preprocess JSON for references, functions, etc
1556
1564
  name: "Columns",
1557
1565
  isRSC: !0,
@@ -1730,7 +1738,7 @@ const jt = {
1730
1738
  });
1731
1739
  }
1732
1740
  const n = e.get("columns");
1733
- 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();
1741
+ Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((l, d) => l + d.get("width"), 0) !== 100) && t();
1734
1742
  }
1735
1743
  }, {
1736
1744
  name: "space",
@@ -1758,13 +1766,13 @@ const jt = {
1758
1766
  builderComponents: !0,
1759
1767
  builderLinkComponent: !0
1760
1768
  }
1761
- }, _t = {
1769
+ }, qt = {
1762
1770
  name: "Fragment",
1763
1771
  static: !0,
1764
1772
  hidden: !0,
1765
1773
  canHaveChildren: !0,
1766
1774
  noWrap: !0
1767
- }, qt = {
1775
+ }, Kt = {
1768
1776
  name: "Image",
1769
1777
  static: !0,
1770
1778
  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",
@@ -1784,7 +1792,7 @@ const jt = {
1784
1792
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1785
1793
  onChange: (e) => {
1786
1794
  e.delete("srcset"), e.delete("noWebp");
1787
- function n(r, s = 6e4) {
1795
+ function n(a, l = 6e4) {
1788
1796
  return new Promise((d, c) => {
1789
1797
  const h = document.createElement("img");
1790
1798
  let g = !1;
@@ -1792,21 +1800,21 @@ const jt = {
1792
1800
  g = !0, d(h);
1793
1801
  }, h.addEventListener("error", (m) => {
1794
1802
  console.warn("Image load failed", m.error), c(m.error);
1795
- }), h.src = r, setTimeout(() => {
1803
+ }), h.src = a, setTimeout(() => {
1796
1804
  g || c(new Error("Image load timed out"));
1797
- }, s);
1805
+ }, l);
1798
1806
  });
1799
1807
  }
1800
- function i(r) {
1801
- return Math.round(r * 1e3) / 1e3;
1808
+ function i(a) {
1809
+ return Math.round(a * 1e3) / 1e3;
1802
1810
  }
1803
- const o = e.get("image"), a = e.get("aspectRatio");
1804
- if (fetch(o).then((r) => r.blob()).then((r) => {
1805
- r.type.includes("svg") && e.set("noWebp", !0);
1806
- }), o && (!a || a === 0.7041))
1807
- return n(o).then((r) => {
1808
- const s = e.get("aspectRatio");
1809
- 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));
1811
+ const o = e.get("image"), r = e.get("aspectRatio");
1812
+ if (fetch(o).then((a) => a.blob()).then((a) => {
1813
+ a.type.includes("svg") && e.set("noWebp", !0);
1814
+ }), o && (!r || r === 0.7041))
1815
+ return n(o).then((a) => {
1816
+ const l = e.get("aspectRatio");
1817
+ 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));
1810
1818
  });
1811
1819
  }
1812
1820
  }, {
@@ -1872,7 +1880,7 @@ const jt = {
1872
1880
  shouldReceiveBuilderProps: {
1873
1881
  builderBlock: !0
1874
1882
  }
1875
- }, Kt = {
1883
+ }, zt = {
1876
1884
  name: "Core:Section",
1877
1885
  static: !0,
1878
1886
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1911,7 +1919,7 @@ const jt = {
1911
1919
  }
1912
1920
  }
1913
1921
  }]
1914
- }, zt = {
1922
+ }, Jt = {
1915
1923
  name: "Slot",
1916
1924
  isRSC: !0,
1917
1925
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1929,9 +1937,9 @@ const jt = {
1929
1937
  builderComponents: !0
1930
1938
  }
1931
1939
  };
1932
- function Jt(e) {
1940
+ function Gt(e) {
1933
1941
  var t, n, i;
1934
- return /* @__PURE__ */ l(
1942
+ return /* @__PURE__ */ s(
1935
1943
  "div",
1936
1944
  {
1937
1945
  style: {
@@ -1940,7 +1948,7 @@ function Jt(e) {
1940
1948
  ...!((t = e.builderContext.context) != null && t.symbolId) && {
1941
1949
  "builder-slot": e.name
1942
1950
  },
1943
- children: /* @__PURE__ */ l(
1951
+ children: /* @__PURE__ */ s(
1944
1952
  F,
1945
1953
  {
1946
1954
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
@@ -1953,7 +1961,7 @@ function Jt(e) {
1953
1961
  }
1954
1962
  );
1955
1963
  }
1956
- const Gt = {
1964
+ const Yt = {
1957
1965
  name: "Symbol",
1958
1966
  noWrap: !0,
1959
1967
  static: !0,
@@ -1992,7 +2000,7 @@ const Gt = {
1992
2000
  builderComponents: !0,
1993
2001
  builderLinkComponent: !0
1994
2002
  }
1995
- }, Q = {
2003
+ }, X = {
1996
2004
  "@type": "@builder.io/sdk:Element",
1997
2005
  responsiveStyles: {
1998
2006
  large: {
@@ -2014,7 +2022,7 @@ const Gt = {
2014
2022
  text: "New tab"
2015
2023
  }
2016
2024
  }
2017
- }, X = {
2025
+ }, Z = {
2018
2026
  "@type": "@builder.io/sdk:Element",
2019
2027
  responsiveStyles: {
2020
2028
  large: {
@@ -2030,7 +2038,7 @@ const Gt = {
2030
2038
  text: "New tab content "
2031
2039
  }
2032
2040
  }
2033
- }, Yt = {
2041
+ }, Qt = {
2034
2042
  name: "Builder: Tabs",
2035
2043
  inputs: [{
2036
2044
  name: "tabs",
@@ -2040,16 +2048,16 @@ const Gt = {
2040
2048
  name: "label",
2041
2049
  type: "uiBlocks",
2042
2050
  hideFromUI: !0,
2043
- defaultValue: [Q]
2051
+ defaultValue: [X]
2044
2052
  }, {
2045
2053
  name: "content",
2046
2054
  type: "uiBlocks",
2047
2055
  hideFromUI: !0,
2048
- defaultValue: [X]
2056
+ defaultValue: [Z]
2049
2057
  }],
2050
2058
  defaultValue: [{
2051
2059
  label: [{
2052
- ...Q,
2060
+ ...X,
2053
2061
  component: {
2054
2062
  name: "Text",
2055
2063
  options: {
@@ -2058,7 +2066,7 @@ const Gt = {
2058
2066
  }
2059
2067
  }],
2060
2068
  content: [{
2061
- ...X,
2069
+ ...Z,
2062
2070
  component: {
2063
2071
  name: "Text",
2064
2072
  options: {
@@ -2068,7 +2076,7 @@ const Gt = {
2068
2076
  }]
2069
2077
  }, {
2070
2078
  label: [{
2071
- ...Q,
2079
+ ...X,
2072
2080
  component: {
2073
2081
  name: "Text",
2074
2082
  options: {
@@ -2077,7 +2085,7 @@ const Gt = {
2077
2085
  }
2078
2086
  }],
2079
2087
  content: [{
2080
- ...X,
2088
+ ...Z,
2081
2089
  component: {
2082
2090
  name: "Text",
2083
2091
  options: {
@@ -2134,19 +2142,19 @@ const Gt = {
2134
2142
  builderLinkComponent: !0
2135
2143
  }
2136
2144
  };
2137
- function Qt(e) {
2138
- var a;
2139
- const [t, n] = w(
2145
+ function Xt(e) {
2146
+ var r;
2147
+ const [t, n] = R(
2140
2148
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
2141
2149
  );
2142
- function i(r) {
2143
- return e.tabs && e.tabs[r].content;
2150
+ function i(a) {
2151
+ return e.tabs && e.tabs[a].content;
2144
2152
  }
2145
- function o(r) {
2146
- r === t && e.collapsible ? n(-1) : n(r);
2153
+ function o(a) {
2154
+ a === t && e.collapsible ? n(-1) : n(a);
2147
2155
  }
2148
2156
  return /* @__PURE__ */ V("div", { children: [
2149
- /* @__PURE__ */ l(
2157
+ /* @__PURE__ */ s(
2150
2158
  "div",
2151
2159
  {
2152
2160
  className: "builder-tabs-wrap",
@@ -2156,35 +2164,35 @@ function Qt(e) {
2156
2164
  justifyContent: e.tabHeaderLayout || "flex-start",
2157
2165
  overflow: "auto"
2158
2166
  },
2159
- children: (a = e.tabs) == null ? void 0 : a.map((r, s) => /* @__PURE__ */ l(
2167
+ children: (r = e.tabs) == null ? void 0 : r.map((a, l) => /* @__PURE__ */ s(
2160
2168
  "span",
2161
2169
  {
2162
- className: `builder-tab-wrap ${t === s ? "builder-tab-active" : ""}`,
2170
+ className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
2163
2171
  style: {
2164
- ...t === s ? e.activeTabStyle : {}
2172
+ ...t === l ? e.activeTabStyle : {}
2165
2173
  },
2166
- onClick: (d) => o(s),
2167
- children: /* @__PURE__ */ l(
2174
+ onClick: (d) => o(l),
2175
+ children: /* @__PURE__ */ s(
2168
2176
  F,
2169
2177
  {
2170
2178
  parent: e.builderBlock.id,
2171
- path: `component.options.tabs.${s}.label`,
2172
- blocks: r.label,
2179
+ path: `tabs.${l}.label`,
2180
+ blocks: a.label,
2173
2181
  context: e.builderContext,
2174
2182
  registeredComponents: e.builderComponents,
2175
2183
  linkComponent: e.builderLinkComponent
2176
2184
  }
2177
2185
  )
2178
2186
  },
2179
- s
2187
+ l
2180
2188
  ))
2181
2189
  }
2182
2190
  ),
2183
- i(t) ? /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
2191
+ i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
2184
2192
  F,
2185
2193
  {
2186
2194
  parent: e.builderBlock.id,
2187
- path: `component.options.tabs.${t}.content`,
2195
+ path: `tabs.${t}.content`,
2188
2196
  blocks: i(t),
2189
2197
  context: e.builderContext,
2190
2198
  registeredComponents: e.builderComponents,
@@ -2193,7 +2201,7 @@ function Qt(e) {
2193
2201
  ) }) : null
2194
2202
  ] });
2195
2203
  }
2196
- const Xt = {
2204
+ const Zt = {
2197
2205
  shouldReceiveBuilderProps: {
2198
2206
  builderBlock: !1,
2199
2207
  builderContext: !0
@@ -2216,27 +2224,27 @@ const Xt = {
2216
2224
  textAlign: "center"
2217
2225
  }
2218
2226
  };
2219
- function Zt(e) {
2227
+ function en(e) {
2220
2228
  function t() {
2221
- var s;
2229
+ var l;
2222
2230
  const n = e.builderContext, {
2223
2231
  context: i,
2224
2232
  localState: o,
2225
- rootState: a,
2226
- rootSetState: r
2233
+ rootState: r,
2234
+ rootSetState: a
2227
2235
  } = n;
2228
- return String(((s = e.text) == null ? void 0 : s.toString()) || "").replace(
2236
+ return String(((l = e.text) == null ? void 0 : l.toString()) || "").replace(
2229
2237
  /{{([^}]+)}}/g,
2230
2238
  (d, c) => L({
2231
2239
  code: c,
2232
2240
  context: i,
2233
2241
  localState: o,
2234
- rootState: a,
2235
- rootSetState: r
2242
+ rootState: r,
2243
+ rootSetState: a
2236
2244
  })
2237
2245
  );
2238
2246
  }
2239
- return /* @__PURE__ */ l(
2247
+ return /* @__PURE__ */ s(
2240
2248
  "div",
2241
2249
  {
2242
2250
  className: "builder-text",
@@ -2247,7 +2255,7 @@ function Zt(e) {
2247
2255
  }
2248
2256
  );
2249
2257
  }
2250
- const en = {
2258
+ const tn = {
2251
2259
  name: "Custom Code",
2252
2260
  static: !0,
2253
2261
  requiredPermissions: ["editCode"],
@@ -2270,15 +2278,15 @@ const en = {
2270
2278
  advanced: !0
2271
2279
  }]
2272
2280
  };
2273
- function tn(e) {
2274
- const t = $(null), [n, i] = w(() => []), [o, a] = w(() => []);
2281
+ function nn(e) {
2282
+ const t = $(null), [n, i] = R(() => []), [o, r] = R(() => []);
2275
2283
  return B(() => {
2276
- var s;
2277
- if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
2284
+ var l;
2285
+ if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
2278
2286
  return;
2279
- const r = t.current.getElementsByTagName("script");
2280
- for (let d = 0; d < r.length; d++) {
2281
- const c = r[d];
2287
+ const a = t.current.getElementsByTagName("script");
2288
+ for (let d = 0; d < a.length; d++) {
2289
+ const c = a[d];
2282
2290
  if (c.src) {
2283
2291
  if (n.includes(c.src))
2284
2292
  continue;
@@ -2299,7 +2307,7 @@ function tn(e) {
2299
2307
  }
2300
2308
  }
2301
2309
  }
2302
- }, []), /* @__PURE__ */ l(
2310
+ }, []), /* @__PURE__ */ s(
2303
2311
  "div",
2304
2312
  {
2305
2313
  ref: t,
@@ -2308,7 +2316,7 @@ function tn(e) {
2308
2316
  }
2309
2317
  );
2310
2318
  }
2311
- const nn = {
2319
+ const on = {
2312
2320
  name: "Embed",
2313
2321
  static: !0,
2314
2322
  inputs: [{
@@ -2323,9 +2331,9 @@ const nn = {
2323
2331
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2324
2332
  hideFromUI: !0
2325
2333
  }]
2326
- }, on = ["text/javascript", "application/javascript", "application/ecmascript"], an = (e) => on.includes(e.type);
2327
- function rn(e) {
2328
- const t = $(null), [n, i] = w(() => []), [o, a] = w(() => []), [r, s] = w(() => !1);
2334
+ }, an = ["text/javascript", "application/javascript", "application/ecmascript"], rn = (e) => an.includes(e.type);
2335
+ function ln(e) {
2336
+ const t = $(null), [n, i] = R(() => []), [o, r] = R(() => []), [a, l] = R(() => !1);
2329
2337
  function d() {
2330
2338
  if (!t.current || !t.current.getElementsByTagName)
2331
2339
  return;
@@ -2336,7 +2344,7 @@ function rn(e) {
2336
2344
  n.push(g.src);
2337
2345
  const m = document.createElement("script");
2338
2346
  m.async = !0, m.src = g.src, document.head.appendChild(m);
2339
- } else if (an(g) && !o.includes(g.innerText))
2347
+ } else if (rn(g) && !o.includes(g.innerText))
2340
2348
  try {
2341
2349
  o.push(g.innerText), new Function(g.innerText)();
2342
2350
  } catch (m) {
@@ -2345,8 +2353,8 @@ function rn(e) {
2345
2353
  }
2346
2354
  }
2347
2355
  return B(() => {
2348
- t.current && !r && (s(!0), d());
2349
- }, [t.current, r]), /* @__PURE__ */ l(
2356
+ t.current && !a && (l(!0), d());
2357
+ }, [t.current, a]), /* @__PURE__ */ s(
2350
2358
  "div",
2351
2359
  {
2352
2360
  className: "builder-embed",
@@ -2355,7 +2363,7 @@ function rn(e) {
2355
2363
  }
2356
2364
  );
2357
2365
  }
2358
- const ln = {
2366
+ const sn = {
2359
2367
  name: "Form:Form",
2360
2368
  // editableTags: ['builder-form-error']
2361
2369
  defaults: {
@@ -2592,120 +2600,117 @@ const ln = {
2592
2600
  builderComponents: !0,
2593
2601
  builderLinkComponent: !0
2594
2602
  }
2595
- }, sn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], cn = () => {
2603
+ }, cn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], dn = () => {
2596
2604
  const e = process.env.NODE_ENV || "production";
2597
- return sn.includes(e) ? e : "production";
2605
+ return cn.includes(e) ? e : "production";
2598
2606
  };
2599
- function dn(e) {
2607
+ function un(e) {
2600
2608
  var g, m;
2601
- const t = $(null), [n, i] = w(() => "unsubmitted"), [o, a] = w(() => null), [r, s] = w(() => "");
2602
- function d(v) {
2603
- var k, S;
2609
+ const t = $(null), [n, i] = R(() => "unsubmitted"), [o, r] = R(() => null), [a, l] = R(() => "");
2610
+ function d(x) {
2611
+ var S, v;
2604
2612
  const f = {
2605
2613
  ...e.builderContext.rootState,
2606
- ...v
2614
+ ...x
2607
2615
  };
2608
- e.builderContext.rootSetState ? (S = (k = e.builderContext).rootSetState) == null || S.call(k, f) : e.builderContext.rootState = f;
2616
+ e.builderContext.rootSetState ? (v = (S = e.builderContext).rootSetState) == null || v.call(S, f) : e.builderContext.rootState = f;
2609
2617
  }
2610
2618
  function c() {
2611
2619
  return N() && e.previewState || n;
2612
2620
  }
2613
- function h(v) {
2614
- var k;
2621
+ function h(x) {
2622
+ var S;
2615
2623
  const f = e.sendWithJs || e.sendSubmissionsTo === "email";
2616
2624
  if (e.sendSubmissionsTo === "zapier")
2617
- v.preventDefault();
2625
+ x.preventDefault();
2618
2626
  else if (f) {
2619
2627
  if (!(e.action || e.sendSubmissionsTo === "email")) {
2620
- v.preventDefault();
2628
+ x.preventDefault();
2621
2629
  return;
2622
2630
  }
2623
- v.preventDefault();
2624
- const S = v.currentTarget || v.target, p = e.customHeaders || {};
2631
+ x.preventDefault();
2632
+ const v = x.currentTarget || x.target, p = e.customHeaders || {};
2625
2633
  let b;
2626
- const x = new FormData(S), A = Array.from(S.querySelectorAll("input,select,textarea")).filter((u) => !!u.name).map((u) => {
2627
- let y;
2628
- const E = u.name;
2634
+ const y = new FormData(v), A = Array.from(v.querySelectorAll("input,select,textarea")).filter((u) => !!u.name).map((u) => {
2635
+ let C;
2636
+ const W = u.name;
2629
2637
  if (u instanceof HTMLInputElement)
2630
2638
  if (u.type === "radio") {
2631
2639
  if (u.checked)
2632
- return y = u.name, {
2633
- key: E,
2634
- value: y
2640
+ return C = u.name, {
2641
+ key: W,
2642
+ value: C
2635
2643
  };
2636
2644
  } else if (u.type === "checkbox")
2637
- y = u.checked;
2645
+ C = u.checked;
2638
2646
  else if (u.type === "number" || u.type === "range") {
2639
- const R = u.valueAsNumber;
2640
- isNaN(R) || (y = R);
2647
+ const E = u.valueAsNumber;
2648
+ isNaN(E) || (C = E);
2641
2649
  } else
2642
- u.type === "file" ? y = u.files : y = u.value;
2650
+ u.type === "file" ? C = u.files : C = u.value;
2643
2651
  else
2644
- y = u.value;
2652
+ C = u.value;
2645
2653
  return {
2646
- key: E,
2647
- value: y
2654
+ key: W,
2655
+ value: C
2648
2656
  };
2649
2657
  });
2650
- let C = e.contentType;
2651
- if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(A).forEach(({ value: u }) => {
2652
- (u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (C = "multipart/form-data");
2653
- }), C !== "application/json")
2654
- b = x;
2658
+ let k = e.contentType;
2659
+ if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(A).forEach(({ value: u }) => {
2660
+ (u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (k = "multipart/form-data");
2661
+ }), k !== "application/json")
2662
+ b = y;
2655
2663
  else {
2656
2664
  const u = {};
2657
- Array.from(A).forEach(({ value: y, key: E }) => {
2658
- Ce(u, E, y);
2665
+ Array.from(A).forEach(({ value: C, key: W }) => {
2666
+ Ie(u, W, C);
2659
2667
  }), b = JSON.stringify(u);
2660
2668
  }
2661
- C && C !== "multipart/form-data" && (f && ((k = e.action) != null && k.includes("zapier.com")) || (p["content-type"] = C));
2662
- const I = new CustomEvent("presubmit", { detail: { body: b } });
2663
- if (t.current && (t.current.dispatchEvent(I), I.defaultPrevented))
2669
+ k && k !== "multipart/form-data" && (f && ((S = e.action) != null && S.includes("zapier.com")) || (p["content-type"] = k));
2670
+ const w = new CustomEvent("presubmit", { detail: { body: b } });
2671
+ if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
2664
2672
  return;
2665
2673
  i("sending");
2666
- const P = `${cn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2674
+ const P = `${dn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2667
2675
  e.sendSubmissionsToEmail || ""
2668
- )}&name=${encodeURIComponent(e.name || "")}`;
2669
- fetch(
2670
- e.sendSubmissionsTo === "email" ? P : e.action,
2671
- { body: b, headers: p, method: e.method || "post" }
2672
- ).then(
2676
+ )}&name=${encodeURIComponent(e.name || "")}`, T = e.sendSubmissionsTo === "email" ? P : e.action;
2677
+ Se(T), fetch(T, { body: b, headers: p, method: e.method || "post" }).then(
2673
2678
  async (u) => {
2674
- let y;
2675
- const E = u.headers.get("content-type");
2676
- if (E && E.indexOf("application/json") !== -1 ? y = await u.json() : y = await u.text(), !u.ok && e.errorMessagePath) {
2677
- let R = Ie(y, e.errorMessagePath);
2678
- R && (typeof R != "string" && (R = JSON.stringify(R)), s(R), d({ formErrorMessage: R }));
2679
+ let C;
2680
+ const W = u.headers.get("content-type");
2681
+ if (W && W.indexOf("application/json") !== -1 ? C = await u.json() : C = await u.text(), !u.ok && e.errorMessagePath) {
2682
+ let E = Ee(C, e.errorMessagePath);
2683
+ E && (typeof E != "string" && (E = JSON.stringify(E)), l(E), d({ formErrorMessage: E }));
2679
2684
  }
2680
- if (a(y), i(u.ok ? "success" : "error"), u.ok) {
2681
- const R = new CustomEvent("submit:success", {
2682
- detail: { res: u, body: y }
2685
+ if (r(C), i(u.ok ? "success" : "error"), u.ok) {
2686
+ const E = new CustomEvent("submit:success", {
2687
+ detail: { res: u, body: C }
2683
2688
  });
2684
2689
  if (t.current) {
2685
- if (t.current.dispatchEvent(R), R.defaultPrevented)
2690
+ if (t.current.dispatchEvent(E), E.defaultPrevented)
2686
2691
  return;
2687
2692
  e.resetFormOnSubmit !== !1 && t.current.reset();
2688
2693
  }
2689
2694
  if (e.successUrl)
2690
2695
  if (t.current) {
2691
- const W = new CustomEvent("route", {
2696
+ const j = new CustomEvent("route", {
2692
2697
  detail: { url: e.successUrl }
2693
2698
  });
2694
- t.current.dispatchEvent(W), W.defaultPrevented || (location.href = e.successUrl);
2699
+ t.current.dispatchEvent(j), j.defaultPrevented || (location.href = e.successUrl);
2695
2700
  } else
2696
2701
  location.href = e.successUrl;
2697
2702
  }
2698
2703
  },
2699
2704
  (u) => {
2700
- const y = new CustomEvent("submit:error", {
2705
+ const C = new CustomEvent("submit:error", {
2701
2706
  detail: { error: u }
2702
2707
  });
2703
- t.current && (t.current.dispatchEvent(y), y.defaultPrevented) || (a(u), i("error"));
2708
+ t.current && (t.current.dispatchEvent(C), C.defaultPrevented) || (r(u), i("error"));
2704
2709
  }
2705
2710
  );
2706
2711
  }
2707
2712
  }
2708
- return /* @__PURE__ */ V(T, { children: [
2713
+ return /* @__PURE__ */ V(I, { children: [
2709
2714
  " ",
2710
2715
  /* @__PURE__ */ V(
2711
2716
  "form",
@@ -2715,20 +2720,20 @@ function dn(e) {
2715
2720
  action: !e.sendWithJs && e.action,
2716
2721
  method: e.method,
2717
2722
  name: e.name,
2718
- onSubmit: (v) => h(v),
2723
+ onSubmit: (x) => h(x),
2719
2724
  ...e.attributes,
2720
2725
  children: [
2721
- e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(T, { children: (m = (g = e.builderBlock) == null ? void 0 : g.children) == null ? void 0 : m.map((v, f) => /* @__PURE__ */ l(
2726
+ e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(I, { children: (m = (g = e.builderBlock) == null ? void 0 : g.children) == null ? void 0 : m.map((x, f) => /* @__PURE__ */ s(
2722
2727
  H,
2723
2728
  {
2724
- block: v,
2729
+ block: x,
2725
2730
  context: e.builderContext,
2726
2731
  registeredComponents: e.builderComponents,
2727
2732
  linkComponent: e.builderLinkComponent
2728
2733
  },
2729
2734
  `form-block-${f}`
2730
2735
  )) }) : null,
2731
- c() === "error" ? /* @__PURE__ */ l(
2736
+ c() === "error" ? /* @__PURE__ */ s(
2732
2737
  F,
2733
2738
  {
2734
2739
  path: "errorMessage",
@@ -2736,7 +2741,7 @@ function dn(e) {
2736
2741
  context: e.builderContext
2737
2742
  }
2738
2743
  ) : null,
2739
- c() === "sending" ? /* @__PURE__ */ l(
2744
+ c() === "sending" ? /* @__PURE__ */ s(
2740
2745
  F,
2741
2746
  {
2742
2747
  path: "sendingMessage",
@@ -2744,8 +2749,8 @@ function dn(e) {
2744
2749
  context: e.builderContext
2745
2750
  }
2746
2751
  ) : null,
2747
- c() === "error" && o ? /* @__PURE__ */ l("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
2748
- c() === "success" ? /* @__PURE__ */ l(
2752
+ c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-135d4696", children: JSON.stringify(o, null, 2) }) : null,
2753
+ c() === "success" ? /* @__PURE__ */ s(
2749
2754
  F,
2750
2755
  {
2751
2756
  path: "successMessage",
@@ -2757,11 +2762,11 @@ function dn(e) {
2757
2762
  }
2758
2763
  ),
2759
2764
  " ",
2760
- /* @__PURE__ */ l("style", { children: ".pre-3a20f614 { padding: 10px; color: red; text-align: center; }" }),
2765
+ /* @__PURE__ */ s("style", { children: ".pre-135d4696 { padding: 10px; color: red; text-align: center; }" }),
2761
2766
  " "
2762
2767
  ] });
2763
2768
  }
2764
- const un = {
2769
+ const mn = {
2765
2770
  name: "Form:Input",
2766
2771
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2767
2772
  inputs: [
@@ -2813,8 +2818,8 @@ const un = {
2813
2818
  borderColor: "#ccc"
2814
2819
  }
2815
2820
  };
2816
- function mn(e) {
2817
- return /* @__PURE__ */ ke(
2821
+ function fn(e) {
2822
+ return /* @__PURE__ */ Te(
2818
2823
  "input",
2819
2824
  {
2820
2825
  ...e.attributes,
@@ -2828,7 +2833,7 @@ function mn(e) {
2828
2833
  }
2829
2834
  );
2830
2835
  }
2831
- const fn = {
2836
+ const hn = {
2832
2837
  name: "Form:Select",
2833
2838
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2834
2839
  defaultStyles: {
@@ -2871,9 +2876,9 @@ const fn = {
2871
2876
  static: !0,
2872
2877
  noWrap: !0
2873
2878
  };
2874
- function hn(e) {
2879
+ function gn(e) {
2875
2880
  var t;
2876
- return /* @__PURE__ */ ke(
2881
+ return /* @__PURE__ */ Te(
2877
2882
  "select",
2878
2883
  {
2879
2884
  ...e.attributes,
@@ -2883,10 +2888,10 @@ function hn(e) {
2883
2888
  name: e.name,
2884
2889
  required: e.required
2885
2890
  },
2886
- (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2891
+ (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2887
2892
  );
2888
2893
  }
2889
- const gn = {
2894
+ const bn = {
2890
2895
  name: "Form:SubmitButton",
2891
2896
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2892
2897
  defaultStyles: {
@@ -2912,10 +2917,10 @@ const gn = {
2912
2917
  // TODO: defaultChildren
2913
2918
  // canHaveChildren: true,
2914
2919
  };
2915
- function bn(e) {
2916
- return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
2920
+ function pn(e) {
2921
+ return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
2917
2922
  }
2918
- const pn = {
2923
+ const yn = {
2919
2924
  name: "Form:TextArea",
2920
2925
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
2921
2926
  inputs: [{
@@ -2952,8 +2957,8 @@ const pn = {
2952
2957
  static: !0,
2953
2958
  noWrap: !0
2954
2959
  };
2955
- function yn(e) {
2956
- return /* @__PURE__ */ l(
2960
+ function xn(e) {
2961
+ return /* @__PURE__ */ s(
2957
2962
  "textarea",
2958
2963
  {
2959
2964
  ...e.attributes,
@@ -2965,7 +2970,7 @@ function yn(e) {
2965
2970
  }
2966
2971
  );
2967
2972
  }
2968
- const xn = {
2973
+ const vn = {
2969
2974
  // friendlyName?
2970
2975
  name: "Raw:Img",
2971
2976
  hideFromInsertMenu: !0,
@@ -2980,8 +2985,8 @@ const xn = {
2980
2985
  noWrap: !0,
2981
2986
  static: !0
2982
2987
  };
2983
- function vn(e) {
2984
- return /* @__PURE__ */ l(
2988
+ function Sn(e) {
2989
+ return /* @__PURE__ */ s(
2985
2990
  "img",
2986
2991
  {
2987
2992
  style: {
@@ -2995,7 +3000,7 @@ function vn(e) {
2995
3000
  N() && e.imgSrc || "default-key"
2996
3001
  );
2997
3002
  }
2998
- const Sn = {
3003
+ const kn = {
2999
3004
  name: "Video",
3000
3005
  canHaveChildren: !0,
3001
3006
  defaultStyles: {
@@ -3080,8 +3085,8 @@ const Sn = {
3080
3085
  builderBlock: !0
3081
3086
  }
3082
3087
  };
3083
- function kn(e) {
3084
- var i, o, a, r, s, d, c;
3088
+ function Cn(e) {
3089
+ var i, o, r, a, l, d, c;
3085
3090
  function t() {
3086
3091
  return {
3087
3092
  ...e.autoPlay === !0 ? {
@@ -3113,7 +3118,7 @@ function kn(e) {
3113
3118
  position: "relative"
3114
3119
  },
3115
3120
  children: [
3116
- /* @__PURE__ */ l(
3121
+ /* @__PURE__ */ s(
3117
3122
  "video",
3118
3123
  {
3119
3124
  className: "builder-video",
@@ -3135,10 +3140,10 @@ function kn(e) {
3135
3140
  },
3136
3141
  src: e.video || "no-src",
3137
3142
  poster: e.posterImage,
3138
- children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
3143
+ children: e.lazyLoad ? null : /* @__PURE__ */ s("source", { type: "video/mp4", src: e.video })
3139
3144
  }
3140
3145
  ),
3141
- e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ l(
3146
+ e.aspectRatio && !(e.fitContent && ((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length)) ? /* @__PURE__ */ s(
3142
3147
  "div",
3143
3148
  {
3144
3149
  style: {
@@ -3149,7 +3154,7 @@ function kn(e) {
3149
3154
  }
3150
3155
  }
3151
3156
  ) : null,
3152
- (s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(
3157
+ (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
3153
3158
  "div",
3154
3159
  {
3155
3160
  style: {
@@ -3160,7 +3165,7 @@ function kn(e) {
3160
3165
  children: e.children
3161
3166
  }
3162
3167
  ) : null,
3163
- (c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ l(
3168
+ (c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
3164
3169
  "div",
3165
3170
  {
3166
3171
  style: {
@@ -3181,64 +3186,64 @@ function kn(e) {
3181
3186
  }
3182
3187
  );
3183
3188
  }
3184
- const Cn = () => [{
3185
- component: tn,
3186
- ...en
3189
+ const Tn = () => [{
3190
+ component: nn,
3191
+ ...tn
3187
3192
  }, {
3188
- component: rn,
3189
- ...nn
3193
+ component: ln,
3194
+ ...on
3190
3195
  }, {
3191
- component: dn,
3192
- ...ln
3196
+ component: un,
3197
+ ...sn
3193
3198
  }, {
3194
- component: mn,
3195
- ...un
3199
+ component: fn,
3200
+ ...mn
3196
3201
  }, {
3197
- component: bn,
3198
- ...gn
3202
+ component: pn,
3203
+ ...bn
3199
3204
  }, {
3200
- component: hn,
3201
- ...fn
3205
+ component: gn,
3206
+ ...hn
3202
3207
  }, {
3203
- component: yn,
3204
- ...pn
3208
+ component: xn,
3209
+ ...yn
3205
3210
  }, {
3206
- component: vn,
3207
- ...xn
3211
+ component: Sn,
3212
+ ...vn
3208
3213
  }, {
3209
- component: kn,
3210
- ...Sn
3211
- }], ge = () => [{
3212
- component: Qe,
3213
- ...jt
3214
- }, {
3215
- component: Nt,
3214
+ component: Cn,
3215
+ ...kn
3216
+ }], be = () => [{
3217
+ component: Xe,
3216
3218
  ...Mt
3217
3219
  }, {
3218
3220
  component: Ft,
3219
3221
  ..._t
3220
3222
  }, {
3221
- component: Lt,
3223
+ component: $t,
3222
3224
  ...qt
3223
3225
  }, {
3224
3226
  component: Ot,
3225
3227
  ...Kt
3226
3228
  }, {
3227
- component: Jt,
3229
+ component: Ut,
3228
3230
  ...zt
3229
3231
  }, {
3230
- component: Kn,
3231
- ...Gt
3232
- }, {
3233
- component: Zt,
3234
- ...Xt
3232
+ component: Gt,
3233
+ ...Jt
3235
3234
  }, {
3236
- component: Qt,
3235
+ component: zn,
3237
3236
  ...Yt
3238
3237
  }, {
3239
- component: Ht,
3240
- ...Ut
3241
- }, ...Cn()], Tn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3238
+ component: en,
3239
+ ...Zt
3240
+ }, {
3241
+ component: Xt,
3242
+ ...Qt
3243
+ }, {
3244
+ component: jt,
3245
+ ...Ht
3246
+ }, ...Tn()], In = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3242
3247
  function getAndSetVariantId() {
3243
3248
  function setCookie(name, value, days) {
3244
3249
  let expires = '';
@@ -3294,7 +3299,7 @@ const Cn = () => [{
3294
3299
  }).join('');
3295
3300
  styleEl.innerHTML = newStyleStr;
3296
3301
  }
3297
- }`, In = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3302
+ }`, wn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3298
3303
  if (!navigator.cookieEnabled) {
3299
3304
  return;
3300
3305
  }
@@ -3328,27 +3333,27 @@ const Cn = () => [{
3328
3333
  thisScriptEl?.remove();
3329
3334
  }
3330
3335
  return;
3331
- }`, Ne = "builderIoAbTest", Fe = "builderIoRenderContent", M = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3336
+ }`, $e = "builderIoAbTest", De = "builderIoRenderContent", _ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3332
3337
  ...t,
3333
3338
  testVariationId: t.id,
3334
3339
  id: e == null ? void 0 : e.id
3335
- })), wn = ({
3340
+ })), En = ({
3336
3341
  canTrack: e,
3337
3342
  content: t
3338
- }) => !(!(M(t).length > 0) || !e || _()), En = (e) => e === "react" || e === "reactNative", $e = En(D), Rn = () => `
3339
- window.${Ne} = ${Tn}
3340
- window.${Fe} = ${In}
3341
- `, Pn = (e, t) => `
3342
- window.${Ne}(
3343
- "${t}",${JSON.stringify(e)}, ${$e}
3344
- )`, Bn = ({
3343
+ }) => !(!(_(t).length > 0) || !e || q()), Rn = (e) => e === "react" || e === "reactNative", Le = Rn(D), Pn = () => `
3344
+ window.${$e} = ${In}
3345
+ window.${De} = ${wn}
3346
+ `, Bn = (e, t) => `
3347
+ window.${$e}(
3348
+ "${t}",${JSON.stringify(e)}, ${Le}
3349
+ )`, Vn = ({
3345
3350
  contentId: e,
3346
3351
  variationId: t
3347
- }) => `window.${Fe}(
3348
- "${t}", "${e}", ${$e}
3352
+ }) => `window.${De}(
3353
+ "${t}", "${e}", ${Le}
3349
3354
  )`;
3350
- function te(e) {
3351
- return /* @__PURE__ */ l(
3355
+ function ne(e) {
3356
+ return /* @__PURE__ */ s(
3352
3357
  "script",
3353
3358
  {
3354
3359
  dangerouslySetInnerHTML: { __html: e.scriptStr },
@@ -3357,10 +3362,10 @@ function te(e) {
3357
3362
  }
3358
3363
  );
3359
3364
  }
3360
- function be(e) {
3365
+ function pe(e) {
3361
3366
  return Math.round(e * 1e3) / 1e3;
3362
3367
  }
3363
- const Vn = (e, t, n = !0) => {
3368
+ const An = (e, t, n = !0) => {
3364
3369
  if (!(e instanceof HTMLElement))
3365
3370
  return null;
3366
3371
  let i = n ? e : e.parentElement;
@@ -3371,37 +3376,37 @@ const Vn = (e, t, n = !0) => {
3371
3376
  return i;
3372
3377
  } while (i = i.parentElement);
3373
3378
  return null;
3374
- }, An = (e) => Vn(e, (t) => {
3379
+ }, Wn = (e) => An(e, (t) => {
3375
3380
  const n = t.getAttribute("builder-id") || t.id;
3376
3381
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3377
- }), pe = ({
3382
+ }), ye = ({
3378
3383
  event: e,
3379
3384
  target: t
3380
3385
  }) => {
3381
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = be(i / n.width), r = be(o / n.height);
3386
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r = pe(i / n.width), a = pe(o / n.height);
3382
3387
  return {
3383
- x: a,
3384
- y: r
3388
+ x: r,
3389
+ y: a
3385
3390
  };
3386
- }, Wn = (e) => {
3387
- const t = e.target, n = t && An(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3391
+ }, Nn = (e) => {
3392
+ const t = e.target, n = t && Wn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3388
3393
  return {
3389
3394
  targetBuilderElement: i || void 0,
3390
3395
  metadata: {
3391
- targetOffset: t ? pe({
3396
+ targetOffset: t ? ye({
3392
3397
  event: e,
3393
3398
  target: t
3394
3399
  }) : void 0,
3395
- builderTargetOffset: n ? pe({
3400
+ builderTargetOffset: n ? ye({
3396
3401
  event: e,
3397
3402
  target: n
3398
3403
  }) : void 0,
3399
3404
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3400
3405
  }
3401
3406
  };
3402
- }, Nn = (e) => {
3403
- var a, r;
3404
- 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;
3407
+ }, Fn = (e) => {
3408
+ var r, a;
3409
+ 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;
3405
3410
  let o = "";
3406
3411
  if (i && t && n && (o += `
3407
3412
  @font-face {
@@ -3411,29 +3416,29 @@ font-display: fallback;
3411
3416
  font-weight: 400;
3412
3417
  }
3413
3418
  `.trim()), e.files)
3414
- for (const s in e.files) {
3415
- if (!(String(Number(s)) === s))
3419
+ for (const l in e.files) {
3420
+ if (!(String(Number(l)) === l))
3416
3421
  continue;
3417
- const c = e.files[s];
3422
+ const c = e.files[l];
3418
3423
  c && c !== i && (o += `
3419
3424
  @font-face {
3420
3425
  font-family: "${t}";
3421
3426
  src: url('${c}') format('woff2');
3422
3427
  font-display: fallback;
3423
- font-weight: ${s};
3428
+ font-weight: ${l};
3424
3429
  }
3425
3430
  `.trim());
3426
3431
  }
3427
3432
  return o;
3428
- }, Fn = ({
3433
+ }, $n = ({
3429
3434
  customFonts: e
3430
3435
  }) => {
3431
3436
  var t;
3432
- return ((t = e == null ? void 0 : e.map((n) => Nn(n))) == null ? void 0 : t.join(" ")) || "";
3433
- }, $n = ({
3437
+ return ((t = e == null ? void 0 : e.map((n) => Fn(n))) == null ? void 0 : t.join(" ")) || "";
3438
+ }, Dn = ({
3434
3439
  cssCode: e,
3435
3440
  contentId: t
3436
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Dn = `
3441
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ln = `
3437
3442
  .builder-button {
3438
3443
  all: unset;
3439
3444
  }
@@ -3450,39 +3455,39 @@ font-weight: ${s};
3450
3455
  text-align: inherit;
3451
3456
  font-family: inherit;
3452
3457
  }
3453
- `, Ln = (e) => e ? "" : Dn, On = (e) => `variant-${e}`;
3454
- function Un(e) {
3455
- var b, x, A;
3458
+ `, On = (e) => e ? "" : Ln, Un = (e) => `variant-${e}`;
3459
+ function Hn(e) {
3460
+ var b, y, A;
3456
3461
  const t = $(null);
3457
- function n(C) {
3458
- var P, u;
3459
- const I = {
3462
+ function n(k) {
3463
+ var P, T;
3464
+ const w = {
3460
3465
  ...e.builderContextSignal.rootState,
3461
- ...C
3466
+ ...k
3462
3467
  };
3463
- e.builderContextSignal.rootSetState ? (u = (P = e.builderContextSignal).rootSetState) == null || u.call(P, I) : e.setBuilderContextSignal((y) => ({
3464
- ...y,
3465
- rootState: I
3468
+ e.builderContextSignal.rootSetState ? (T = (P = e.builderContextSignal).rootSetState) == null || T.call(P, w) : e.setBuilderContextSignal((u) => ({
3469
+ ...u,
3470
+ rootState: w
3466
3471
  }));
3467
3472
  }
3468
- function i(C) {
3469
- var P, u, y, E, R;
3470
- const I = {
3473
+ function i(k) {
3474
+ var P, T, u, C, W;
3475
+ const w = {
3471
3476
  ...e.builderContextSignal.content,
3472
- ...C,
3477
+ ...k,
3473
3478
  data: {
3474
3479
  ...(P = e.builderContextSignal.content) == null ? void 0 : P.data,
3475
- ...C == null ? void 0 : C.data
3480
+ ...k == null ? void 0 : k.data
3476
3481
  },
3477
3482
  meta: {
3478
- ...(u = e.builderContextSignal.content) == null ? void 0 : u.meta,
3479
- ...C == null ? void 0 : C.meta,
3480
- breakpoints: ((y = C == null ? void 0 : C.meta) == null ? void 0 : y.breakpoints) || ((R = (E = e.builderContextSignal.content) == null ? void 0 : E.meta) == null ? void 0 : R.breakpoints)
3483
+ ...(T = e.builderContextSignal.content) == null ? void 0 : T.meta,
3484
+ ...k == null ? void 0 : k.meta,
3485
+ breakpoints: ((u = k == null ? void 0 : k.meta) == null ? void 0 : u.breakpoints) || ((W = (C = e.builderContextSignal.content) == null ? void 0 : C.meta) == null ? void 0 : W.breakpoints)
3481
3486
  }
3482
3487
  };
3483
- e.setBuilderContextSignal((W) => ({
3484
- ...W,
3485
- content: I
3488
+ e.setBuilderContextSignal((E) => ({
3489
+ ...E,
3490
+ content: w
3486
3491
  }));
3487
3492
  }
3488
3493
  function o() {
@@ -3491,62 +3496,62 @@ function Un(e) {
3491
3496
  "aria-hidden": !0
3492
3497
  };
3493
3498
  }
3494
- const [a, r] = w(
3499
+ const [r, a] = R(
3495
3500
  () => e.contentWrapper || "div"
3496
3501
  );
3497
- function s(C) {
3498
- return He({
3502
+ function l(k) {
3503
+ return je({
3499
3504
  model: e.model,
3500
3505
  trustedHosts: e.trustedHosts,
3501
3506
  callbacks: {
3502
- configureSdk: (I) => {
3503
- var y;
3504
- const { breakpoints: P, contentId: u } = I;
3505
- !u || u !== ((y = e.builderContextSignal.content) == null ? void 0 : y.id) || P && i({
3507
+ configureSdk: (w) => {
3508
+ var u;
3509
+ const { breakpoints: P, contentId: T } = w;
3510
+ !T || T !== ((u = e.builderContextSignal.content) == null ? void 0 : u.id) || P && i({
3506
3511
  meta: {
3507
3512
  breakpoints: P
3508
3513
  }
3509
3514
  });
3510
3515
  },
3511
- animation: (I) => {
3512
- Re(I);
3516
+ animation: (w) => {
3517
+ Be(w);
3513
3518
  },
3514
- contentUpdate: (I) => {
3515
- i(I);
3519
+ contentUpdate: (w) => {
3520
+ i(w);
3516
3521
  }
3517
3522
  }
3518
- })(C);
3523
+ })(k);
3519
3524
  }
3520
- const [d, c] = w(() => ({})), [h, g] = w(() => ({})), [m, v] = w(() => !1);
3521
- function f(C) {
3522
- var I, P;
3525
+ const [d, c] = R(() => ({})), [h, g] = R(() => ({})), [m, x] = R(() => !1);
3526
+ function f(k) {
3527
+ var w, P;
3523
3528
  if (e.builderContextSignal.content) {
3524
- const u = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, y = (P = e.builderContextSignal.content) == null ? void 0 : P.id;
3525
- le({
3529
+ const T = (w = e.builderContextSignal.content) == null ? void 0 : w.testVariationId, u = (P = e.builderContextSignal.content) == null ? void 0 : P.id;
3530
+ se({
3526
3531
  apiHost: e.apiHost,
3527
3532
  type: "click",
3528
- canTrack: q(e.canTrack),
3529
- contentId: y,
3533
+ canTrack: K(e.canTrack),
3534
+ contentId: u,
3530
3535
  apiKey: e.apiKey,
3531
- variationId: u !== y ? u : void 0,
3532
- ...Wn(C),
3536
+ variationId: T !== u ? T : void 0,
3537
+ ...Nn(k),
3533
3538
  unique: !m
3534
3539
  });
3535
3540
  }
3536
- m || v(!0);
3541
+ m || x(!0);
3537
3542
  }
3538
- function k() {
3539
- var I, P, u;
3540
- const C = (u = (P = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : P.httpRequests) != null ? u : {};
3541
- Object.entries(C).forEach(([y, E]) => {
3542
- if (!E || h[y] || d[y] && !N())
3543
+ function S() {
3544
+ var w, P, T;
3545
+ const k = (T = (P = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : P.httpRequests) != null ? T : {};
3546
+ Object.entries(k).forEach(([u, C]) => {
3547
+ if (!C || h[u] || d[u] && !N())
3543
3548
  return;
3544
- h[y] = !0;
3545
- const R = E.replace(
3549
+ h[u] = !0;
3550
+ const W = C.replace(
3546
3551
  /{{([^}]+)}}/g,
3547
- (W, De) => String(
3552
+ (E, j) => String(
3548
3553
  L({
3549
- code: De,
3554
+ code: j,
3550
3555
  context: e.context || {},
3551
3556
  localState: void 0,
3552
3557
  rootState: e.builderContextSignal.rootState,
@@ -3554,24 +3559,24 @@ function Un(e) {
3554
3559
  })
3555
3560
  )
3556
3561
  );
3557
- fetch(R).then((W) => W.json()).then((W) => {
3562
+ Se(W), fetch(W).then((E) => E.json()).then((E) => {
3558
3563
  n({
3559
- [y]: W
3560
- }), d[y] = !0;
3561
- }).catch((W) => {
3562
- console.error("error fetching dynamic data", E, W);
3564
+ [u]: E
3565
+ }), d[u] = !0;
3566
+ }).catch((E) => {
3567
+ console.error("error fetching dynamic data", C, E);
3563
3568
  }).finally(() => {
3564
- h[y] = !1;
3569
+ h[u] = !1;
3565
3570
  });
3566
3571
  });
3567
3572
  }
3568
- function S() {
3573
+ function v() {
3569
3574
  N() && window.dispatchEvent(
3570
3575
  new CustomEvent(
3571
3576
  "builder:component:stateChange",
3572
3577
  {
3573
3578
  detail: {
3574
- state: ie(e.builderContextSignal.rootState),
3579
+ state: oe(e.builderContextSignal.rootState),
3575
3580
  ref: {
3576
3581
  name: e.model
3577
3582
  }
@@ -3581,10 +3586,10 @@ function Un(e) {
3581
3586
  );
3582
3587
  }
3583
3588
  const p = $(!1);
3584
- return p.current || (k(), S(), p.current = !0), B(() => {
3585
- var C, I;
3586
- if (_()) {
3587
- if (N() && !e.isNestedRender && (window.addEventListener("message", s), Le(), Oe({
3589
+ return p.current || (S(), v(), p.current = !0), B(() => {
3590
+ var k, w;
3591
+ if (q()) {
3592
+ if (N() && !e.isNestedRender && (window.addEventListener("message", l), Oe(), Ue({
3588
3593
  ...e.locale ? {
3589
3594
  locale: e.locale
3590
3595
  } : {},
@@ -3596,41 +3601,41 @@ function Un(e) {
3596
3601
  } : {}
3597
3602
  }), Object.values(
3598
3603
  e.builderContextSignal.componentInfos
3599
- ).forEach((u) => {
3600
- var E;
3601
- const y = Ue(u);
3602
- (E = window.parent) == null || E.postMessage(y, "*");
3604
+ ).forEach((T) => {
3605
+ var C;
3606
+ const u = He(T);
3607
+ (C = window.parent) == null || C.postMessage(u, "*");
3603
3608
  }), window.addEventListener(
3604
3609
  "builder:component:stateChangeListenerActivated",
3605
- S
3606
- )), e.builderContextSignal.content && q(e.canTrack)) {
3607
- const u = (C = e.builderContextSignal.content) == null ? void 0 : C.testVariationId, y = (I = e.builderContextSignal.content) == null ? void 0 : I.id, E = e.apiKey;
3608
- le({
3610
+ v
3611
+ )), e.builderContextSignal.content && K(e.canTrack)) {
3612
+ const T = (k = e.builderContextSignal.content) == null ? void 0 : k.testVariationId, u = (w = e.builderContextSignal.content) == null ? void 0 : w.id, C = e.apiKey;
3613
+ se({
3609
3614
  apiHost: e.apiHost,
3610
3615
  type: "impression",
3611
3616
  canTrack: !0,
3612
- contentId: y,
3613
- apiKey: E,
3614
- variationId: u !== y ? u : void 0
3617
+ contentId: u,
3618
+ apiKey: C,
3619
+ variationId: T !== u ? T : void 0
3615
3620
  });
3616
3621
  }
3617
- if (xe() && !N()) {
3618
- const u = new URL(location.href).searchParams, y = u.get("builder.preview"), E = u.get(
3619
- `builder.overrides.${y}`
3620
- ), R = u.get("apiKey") || u.get("builder.space");
3621
- y === e.model && R === e.apiKey && (!e.content || E === e.content.id) && ve({
3622
+ if (ve() && !N()) {
3623
+ const T = new URL(location.href).searchParams, u = T.get("builder.preview"), C = T.get(
3624
+ `builder.overrides.${u}`
3625
+ ), W = T.get("apiKey") || T.get("builder.space");
3626
+ u === e.model && W === e.apiKey && (!e.content || C === e.content.id) && ke({
3622
3627
  model: e.model,
3623
3628
  apiKey: e.apiKey,
3624
3629
  apiVersion: e.builderContextSignal.apiVersion
3625
- }).then((W) => {
3626
- W && i(W);
3630
+ }).then((E) => {
3631
+ E && i(E);
3627
3632
  });
3628
3633
  }
3629
3634
  }
3630
3635
  }, []), B(() => {
3631
3636
  e.content && i(e.content);
3632
3637
  }, [e.content]), B(() => {
3633
- S();
3638
+ v();
3634
3639
  }, [e.builderContextSignal.rootState]), B(() => {
3635
3640
  e.data && n(e.data);
3636
3641
  }, [e.data]), B(() => {
@@ -3638,19 +3643,19 @@ function Un(e) {
3638
3643
  locale: e.locale
3639
3644
  });
3640
3645
  }, [e.locale]), B(() => () => {
3641
- _() && (window.removeEventListener("message", s), window.removeEventListener(
3646
+ q() && (window.removeEventListener("message", l), window.removeEventListener(
3642
3647
  "builder:component:stateChangeListenerActivated",
3643
- S
3648
+ v
3644
3649
  ));
3645
- }, []), /* @__PURE__ */ l(ae.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
3646
- a,
3650
+ }, []), /* @__PURE__ */ s(re.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3651
+ r,
3647
3652
  {
3648
3653
  ref: t,
3649
- onClick: (C) => f(C),
3654
+ onClick: (k) => f(k),
3650
3655
  "builder-content-id": (b = e.builderContextSignal.content) == null ? void 0 : b.id,
3651
3656
  "builder-model": e.model,
3652
- className: On(
3653
- ((x = e.content) == null ? void 0 : x.testVariationId) || ((A = e.content) == null ? void 0 : A.id)
3657
+ className: Un(
3658
+ ((y = e.content) == null ? void 0 : y.testVariationId) || ((A = e.content) == null ? void 0 : A.id)
3654
3659
  ),
3655
3660
  ...o(),
3656
3661
  ...e.contentWrapperProps,
@@ -3658,21 +3663,21 @@ function Un(e) {
3658
3663
  }
3659
3664
  ) : null });
3660
3665
  }
3661
- function Hn(e) {
3662
- const [t, n] = w(
3666
+ function jn(e) {
3667
+ const [t, n] = R(
3663
3668
  () => `
3664
- ${$n({
3669
+ ${Dn({
3665
3670
  cssCode: e.cssCode,
3666
3671
  contentId: e.contentId
3667
3672
  })}
3668
- ${Fn({
3673
+ ${$n({
3669
3674
  customFonts: e.customFonts
3670
3675
  })}
3671
- ${Ln(e.isNestedRender)}
3676
+ ${On(e.isNestedRender)}
3672
3677
  `.trim()
3673
3678
  );
3674
- return /* @__PURE__ */ l(
3675
- z,
3679
+ return /* @__PURE__ */ s(
3680
+ J,
3676
3681
  {
3677
3682
  id: "builderio-content",
3678
3683
  styles: t,
@@ -3680,14 +3685,14 @@ ${Ln(e.isNestedRender)}
3680
3685
  }
3681
3686
  );
3682
3687
  }
3683
- const jn = ({
3688
+ const Mn = ({
3684
3689
  content: e,
3685
3690
  data: t,
3686
3691
  locale: n
3687
3692
  }) => {
3688
- var a, r, s;
3689
- const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
3690
- return (s = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || s.forEach((d) => {
3693
+ var r, a, l;
3694
+ const i = {}, o = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
3695
+ return (l = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || l.forEach((d) => {
3691
3696
  d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
3692
3697
  }), {
3693
3698
  ...i,
@@ -3697,7 +3702,7 @@ const jn = ({
3697
3702
  locale: n
3698
3703
  } : {}
3699
3704
  };
3700
- }, Mn = ({
3705
+ }, _n = ({
3701
3706
  content: e,
3702
3707
  data: t
3703
3708
  }) => e ? {
@@ -3708,51 +3713,51 @@ const jn = ({
3708
3713
  },
3709
3714
  meta: e == null ? void 0 : e.meta
3710
3715
  } : void 0;
3711
- function ye(e) {
3712
- var c, h, g, m, v, f, k, S, p;
3713
- const [t, n] = w(
3716
+ function xe(e) {
3717
+ var c, h, g, m, x, f, S, v, p;
3718
+ const [t, n] = R(
3714
3719
  () => {
3715
- var b, x;
3716
- return Bn({
3720
+ var b, y;
3721
+ return Vn({
3717
3722
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3718
3723
  variationId: (b = e.content) == null ? void 0 : b.testVariationId,
3719
3724
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3720
- contentId: (x = e.content) == null ? void 0 : x.id
3725
+ contentId: (y = e.content) == null ? void 0 : y.id
3721
3726
  });
3722
3727
  }
3723
3728
  );
3724
3729
  function i(b) {
3725
- s((x) => ({
3726
- ...x,
3730
+ l((y) => ({
3731
+ ...y,
3727
3732
  rootState: b
3728
3733
  }));
3729
3734
  }
3730
- const [o, a] = w(
3735
+ const [o, r] = R(
3731
3736
  () => {
3732
3737
  var b;
3733
3738
  return [
3734
- ...ge(),
3735
- ...((b = e.customComponents) == null ? void 0 : b.filter(({ models: x }) => !(x != null && x.length) || !e.model ? !0 : x.includes(e.model))) || []
3739
+ ...be(),
3740
+ ...((b = e.customComponents) == null ? void 0 : b.filter(({ models: y }) => !(y != null && y.length) || !e.model ? !0 : y.includes(e.model))) || []
3736
3741
  ].reduce(
3737
- (x, { component: A, ...C }) => ({
3738
- ...x,
3739
- [C.name]: {
3742
+ (y, { component: A, ...k }) => ({
3743
+ ...y,
3744
+ [k.name]: {
3740
3745
  component: A,
3741
- ...se(C)
3746
+ ...ce(k)
3742
3747
  }
3743
3748
  }),
3744
3749
  {}
3745
3750
  );
3746
3751
  }
3747
- ), [r, s] = w(() => {
3752
+ ), [a, l] = R(() => {
3748
3753
  var b;
3749
3754
  return {
3750
- content: Mn({
3755
+ content: _n({
3751
3756
  content: e.content,
3752
3757
  data: e.data
3753
3758
  }),
3754
3759
  localState: void 0,
3755
- rootState: jn({
3760
+ rootState: Mn({
3756
3761
  content: e.content,
3757
3762
  data: e.data,
3758
3763
  locale: e.locale
@@ -3763,12 +3768,12 @@ function ye(e) {
3763
3768
  apiKey: e.apiKey,
3764
3769
  apiVersion: e.apiVersion,
3765
3770
  componentInfos: [
3766
- ...ge(),
3767
- ...((b = e.customComponents) == null ? void 0 : b.filter(({ models: x }) => !(x != null && x.length) || !e.model ? !0 : x.includes(e.model))) || []
3771
+ ...be(),
3772
+ ...((b = e.customComponents) == null ? void 0 : b.filter(({ models: y }) => !(y != null && y.length) || !e.model ? !0 : y.includes(e.model))) || []
3768
3773
  ].reduce(
3769
- (x, { component: A, ...C }) => ({
3770
- ...x,
3771
- [C.name]: se(C)
3774
+ (y, { component: A, ...k }) => ({
3775
+ ...y,
3776
+ [k.name]: ce(k)
3772
3777
  }),
3773
3778
  {}
3774
3779
  ),
@@ -3779,29 +3784,29 @@ function ye(e) {
3779
3784
  };
3780
3785
  }), d = $(!1);
3781
3786
  if (!d.current) {
3782
- e.apiKey || ne.error(
3787
+ e.apiKey || ie.error(
3783
3788
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3784
3789
  );
3785
- const b = (h = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
3790
+ const b = (h = (c = a.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
3786
3791
  b && L({
3787
3792
  code: b,
3788
3793
  context: e.context || {},
3789
3794
  localState: void 0,
3790
- rootState: r.rootState,
3791
- rootSetState: (x) => {
3792
- Object.assign(r.rootState, x);
3795
+ rootState: a.rootState,
3796
+ rootSetState: (y) => {
3797
+ Object.assign(a.rootState, y);
3793
3798
  },
3794
3799
  isExpression: !1
3795
3800
  }), d.current = !0;
3796
3801
  }
3797
- return /* @__PURE__ */ l(
3798
- Te.Provider,
3802
+ return /* @__PURE__ */ s(
3803
+ we.Provider,
3799
3804
  {
3800
3805
  value: {
3801
3806
  registeredComponents: o
3802
3807
  },
3803
3808
  children: /* @__PURE__ */ V(
3804
- Un,
3809
+ Hn,
3805
3810
  {
3806
3811
  apiHost: e.apiHost,
3807
3812
  nonce: e.nonce,
@@ -3814,36 +3819,36 @@ function ye(e) {
3814
3819
  locale: e.locale,
3815
3820
  enrich: e.enrich,
3816
3821
  showContent: e.showContent,
3817
- builderContextSignal: r,
3822
+ builderContextSignal: a,
3818
3823
  contentWrapper: e.contentWrapper,
3819
3824
  contentWrapperProps: e.contentWrapperProps,
3820
3825
  trustedHosts: e.trustedHosts,
3821
3826
  isNestedRender: e.isNestedRender,
3822
- setBuilderContextSignal: s,
3827
+ setBuilderContextSignal: l,
3823
3828
  children: [
3824
- e.isSsrAbTest ? /* @__PURE__ */ l(
3825
- te,
3829
+ e.isSsrAbTest ? /* @__PURE__ */ s(
3830
+ ne,
3826
3831
  {
3827
3832
  id: "builderio-variant-visibility",
3828
3833
  scriptStr: t,
3829
3834
  nonce: e.nonce || ""
3830
3835
  }
3831
3836
  ) : null,
3832
- /* @__PURE__ */ l(
3833
- Hn,
3837
+ /* @__PURE__ */ s(
3838
+ jn,
3834
3839
  {
3835
3840
  nonce: e.nonce || "",
3836
3841
  isNestedRender: e.isNestedRender,
3837
- contentId: (g = r.content) == null ? void 0 : g.id,
3838
- cssCode: (v = (m = r.content) == null ? void 0 : m.data) == null ? void 0 : v.cssCode,
3839
- customFonts: (k = (f = r.content) == null ? void 0 : f.data) == null ? void 0 : k.customFonts
3842
+ contentId: (g = a.content) == null ? void 0 : g.id,
3843
+ cssCode: (x = (m = a.content) == null ? void 0 : m.data) == null ? void 0 : x.cssCode,
3844
+ customFonts: (S = (f = a.content) == null ? void 0 : f.data) == null ? void 0 : S.customFonts
3840
3845
  }
3841
3846
  ),
3842
- /* @__PURE__ */ l(
3847
+ /* @__PURE__ */ s(
3843
3848
  F,
3844
3849
  {
3845
- blocks: (p = (S = r.content) == null ? void 0 : S.data) == null ? void 0 : p.blocks,
3846
- context: r,
3850
+ blocks: (p = (v = a.content) == null ? void 0 : v.data) == null ? void 0 : p.blocks,
3851
+ context: a,
3847
3852
  registeredComponents: o,
3848
3853
  linkComponent: e.linkComponent
3849
3854
  }
@@ -3854,71 +3859,71 @@ function ye(e) {
3854
3859
  }
3855
3860
  );
3856
3861
  }
3857
- function _n(e) {
3858
- var r;
3859
- const [t, n] = w(
3860
- () => wn({
3861
- canTrack: q(e.canTrack),
3862
+ function qn(e) {
3863
+ var a;
3864
+ const [t, n] = R(
3865
+ () => En({
3866
+ canTrack: K(e.canTrack),
3862
3867
  content: e.content
3863
3868
  })
3864
3869
  );
3865
3870
  function i() {
3866
- var s;
3867
- return Pn(
3868
- M(e.content).map((d) => ({
3871
+ var l;
3872
+ return Bn(
3873
+ _(e.content).map((d) => ({
3869
3874
  id: d.testVariationId,
3870
3875
  testRatio: d.testRatio
3871
3876
  })),
3872
- ((s = e.content) == null ? void 0 : s.id) || ""
3877
+ ((l = e.content) == null ? void 0 : l.id) || ""
3873
3878
  );
3874
3879
  }
3875
3880
  function o() {
3876
- return M(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
3881
+ return _(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
3877
3882
  }
3878
- function a() {
3879
- var s;
3883
+ function r() {
3884
+ var l;
3880
3885
  return t ? {
3881
3886
  ...e.content,
3882
- testVariationId: (s = e.content) == null ? void 0 : s.id
3883
- } : je({
3887
+ testVariationId: (l = e.content) == null ? void 0 : l.id
3888
+ } : Me({
3884
3889
  item: e.content,
3885
- canTrack: q(e.canTrack)
3890
+ canTrack: K(e.canTrack)
3886
3891
  });
3887
3892
  }
3888
3893
  return B(() => {
3889
- }, []), /* @__PURE__ */ V(T, { children: [
3890
- !e.isNestedRender && D !== "reactNative" ? /* @__PURE__ */ l(
3891
- te,
3894
+ }, []), /* @__PURE__ */ V(I, { children: [
3895
+ !e.isNestedRender && D !== "reactNative" ? /* @__PURE__ */ s(
3896
+ ne,
3892
3897
  {
3893
3898
  id: "builderio-init-variants-fns",
3894
- scriptStr: Rn(),
3899
+ scriptStr: Pn(),
3895
3900
  nonce: e.nonce || ""
3896
3901
  }
3897
3902
  ) : null,
3898
- t ? /* @__PURE__ */ V(T, { children: [
3899
- /* @__PURE__ */ l(
3900
- z,
3903
+ t ? /* @__PURE__ */ V(I, { children: [
3904
+ /* @__PURE__ */ s(
3905
+ J,
3901
3906
  {
3902
3907
  id: "builderio-variants",
3903
3908
  styles: o(),
3904
3909
  nonce: e.nonce || ""
3905
3910
  }
3906
3911
  ),
3907
- /* @__PURE__ */ l(
3908
- te,
3912
+ /* @__PURE__ */ s(
3913
+ ne,
3909
3914
  {
3910
3915
  id: "builderio-variants-visibility",
3911
3916
  scriptStr: i(),
3912
3917
  nonce: e.nonce || ""
3913
3918
  }
3914
3919
  ),
3915
- (r = M(e.content)) == null ? void 0 : r.map((s) => /* @__PURE__ */ l(
3916
- ye,
3920
+ (a = _(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
3921
+ xe,
3917
3922
  {
3918
3923
  apiHost: e.apiHost,
3919
3924
  isNestedRender: e.isNestedRender,
3920
3925
  nonce: e.nonce,
3921
- content: s,
3926
+ content: l,
3922
3927
  showContent: !1,
3923
3928
  model: e.model,
3924
3929
  data: e.data,
@@ -3937,16 +3942,16 @@ function _n(e) {
3937
3942
  contentWrapperProps: e.contentWrapperProps,
3938
3943
  trustedHosts: e.trustedHosts
3939
3944
  },
3940
- s.testVariationId
3945
+ l.testVariationId
3941
3946
  ))
3942
3947
  ] }) : null,
3943
- /* @__PURE__ */ l(
3944
- ye,
3948
+ /* @__PURE__ */ s(
3949
+ xe,
3945
3950
  {
3946
3951
  apiHost: e.apiHost,
3947
3952
  nonce: e.nonce,
3948
3953
  isNestedRender: e.isNestedRender,
3949
- content: a(),
3954
+ content: r(),
3950
3955
  showContent: !0,
3951
3956
  model: e.model,
3952
3957
  data: e.data,
@@ -3968,13 +3973,13 @@ function _n(e) {
3968
3973
  )
3969
3974
  ] });
3970
3975
  }
3971
- const qn = async ({
3976
+ const Kn = async ({
3972
3977
  builderContextValue: e,
3973
3978
  symbol: t
3974
3979
  }) => {
3975
3980
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
3976
3981
  (e != null && e.apiKey))
3977
- return ve({
3982
+ return ke({
3978
3983
  model: t.model,
3979
3984
  apiKey: e.apiKey,
3980
3985
  apiVersion: e.apiVersion,
@@ -3984,11 +3989,11 @@ const qn = async ({
3984
3989
  }
3985
3990
  }
3986
3991
  }).catch((n) => {
3987
- ne.error("Could not fetch symbol content: ", n);
3992
+ ie.error("Could not fetch symbol content: ", n);
3988
3993
  });
3989
3994
  };
3990
- function Kn(e) {
3991
- var s, d, c, h;
3995
+ function zn(e) {
3996
+ var l, d, c, h;
3992
3997
  function t() {
3993
3998
  return "div";
3994
3999
  }
@@ -4004,23 +4009,23 @@ function Kn(e) {
4004
4009
  (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4005
4010
  ].filter(Boolean).join(" ");
4006
4011
  }
4007
- const [o, a] = w(() => {
4012
+ const [o, r] = R(() => {
4008
4013
  var g;
4009
4014
  return (g = e.symbol) == null ? void 0 : g.content;
4010
4015
  });
4011
- function r() {
4012
- o || qn({
4016
+ function a() {
4017
+ o || Kn({
4013
4018
  symbol: e.symbol,
4014
4019
  builderContextValue: e.builderContext
4015
4020
  }).then((g) => {
4016
- g && a(g);
4021
+ g && r(g);
4017
4022
  });
4018
4023
  }
4019
4024
  return B(() => {
4020
4025
  }, []), B(() => {
4021
- r();
4022
- }, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
4023
- _n,
4026
+ a();
4027
+ }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
4028
+ qn,
4024
4029
  {
4025
4030
  nonce: e.builderContext.nonce,
4026
4031
  isNestedRender: !0,
@@ -4028,7 +4033,7 @@ function Kn(e) {
4028
4033
  apiKey: e.builderContext.apiKey,
4029
4034
  context: {
4030
4035
  ...e.builderContext.context,
4031
- symbolId: (s = e.builderBlock) == null ? void 0 : s.id
4036
+ symbolId: (l = e.builderBlock) == null ? void 0 : l.id
4032
4037
  },
4033
4038
  customComponents: Object.values(e.builderComponents),
4034
4039
  data: {
@@ -4047,14 +4052,14 @@ function Kn(e) {
4047
4052
  }
4048
4053
  export {
4049
4054
  F as Blocks,
4050
- ae as BuilderContext,
4051
- Qe as Button,
4052
- Nt as Columns,
4053
- _n as Content,
4054
- Ft as Fragment,
4055
- Lt as Image,
4056
- Ot as Section,
4057
- Kn as Symbol,
4058
- Zt as Text,
4059
- kn as Video
4055
+ re as BuilderContext,
4056
+ Xe as Button,
4057
+ Ft as Columns,
4058
+ qn as Content,
4059
+ $t as Fragment,
4060
+ Ot as Image,
4061
+ Ut as Section,
4062
+ zn as Symbol,
4063
+ en as Text,
4064
+ Cn as Video
4060
4065
  };