@builder.io/sdk-react 2.0.31 → 3.0.1

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 (79) hide show
  1. package/lib/browser/blocks-exports.cjs +31 -31
  2. package/lib/browser/blocks-exports.mjs +743 -696
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/{server-entry-77f4513c.js → server-entry-017b8439.js} +24 -26
  6. package/lib/browser/server-entry-9f80066e.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-d1213549.js → accordion-1572cb0d.js} +1 -1
  10. package/lib/edge/{accordion-696fad97.cjs → accordion-decb24cf.cjs} +1 -1
  11. package/lib/edge/{blocks-9ef79098.js → blocks-9c35be74.js} +314 -268
  12. package/lib/edge/blocks-d3823063.cjs +12 -0
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +8 -7
  15. package/lib/edge/{button-b41f1129.js → button-0709893d.js} +2 -2
  16. package/lib/edge/{button-2ed05d22.cjs → button-cf66cf8d.cjs} +1 -1
  17. package/lib/edge/{columns-ca9ac444.cjs → columns-2fdf0656.cjs} +1 -1
  18. package/lib/edge/{columns-5f8497fb.js → columns-e234acc6.js} +4 -4
  19. package/lib/edge/{content-variants-9c4db669.js → content-variants-3ab9230f.js} +323 -323
  20. package/lib/edge/content-variants-616a6c0f.cjs +134 -0
  21. package/lib/edge/{evaluate-8453ffc0.cjs → evaluate-ccf1ad96.cjs} +1 -1
  22. package/lib/edge/{evaluate-f626f584.js → evaluate-f0b82ede.js} +1 -1
  23. package/lib/edge/{form-a5407307.js → form-27bcc23a.js} +4 -4
  24. package/lib/edge/{form-b0c5418b.cjs → form-7c61693d.cjs} +1 -1
  25. package/lib/edge/{get-class-prop-name-86f0330a.cjs → get-class-prop-name-0b3d48a4.cjs} +1 -1
  26. package/lib/edge/{get-class-prop-name-40d6defb.js → get-class-prop-name-a3bd113c.js} +1 -1
  27. package/lib/edge/{image-6970c193.js → image-5c9e156f.js} +28 -28
  28. package/lib/edge/image-94922c87.cjs +17 -0
  29. package/lib/edge/{img-fa36f926.js → img-80be6914.js} +1 -1
  30. package/lib/edge/{img-83ed868e.cjs → img-e0c8f7f9.cjs} +1 -1
  31. package/lib/edge/index.cjs +1 -1
  32. package/lib/edge/index.mjs +1 -1
  33. package/lib/edge/{input-93e42e28.js → input-920922d5.js} +1 -1
  34. package/lib/edge/{input-3106b577.cjs → input-f5ba6b1e.cjs} +1 -1
  35. package/lib/edge/{select-29495824.cjs → select-2ced1aca.cjs} +1 -1
  36. package/lib/edge/{select-4cf4356a.js → select-673864b7.js} +1 -1
  37. package/lib/edge/{server-entry-ea35faa6.js → server-entry-6c0047ea.js} +24 -26
  38. package/lib/edge/server-entry-de142ee8.cjs +2 -0
  39. package/lib/edge/server-entry.cjs +1 -1
  40. package/lib/edge/server-entry.mjs +1 -1
  41. package/lib/edge/{slot-6ad4152e.js → slot-68f2b177.js} +4 -4
  42. package/lib/edge/{slot-c8ab71b6.cjs → slot-cc8b4e5b.cjs} +1 -1
  43. package/lib/edge/{symbol-d2b48e54.js → symbol-7e260a70.js} +2 -2
  44. package/lib/edge/{symbol-74313a4b.cjs → symbol-ded9dba9.cjs} +1 -1
  45. package/lib/edge/{tabs-6d924c90.js → tabs-5156494d.js} +4 -4
  46. package/lib/edge/{tabs-f699b318.cjs → tabs-d422921f.cjs} +1 -1
  47. package/lib/edge/{text-7137a306.js → text-27a917c0.js} +2 -2
  48. package/lib/edge/{text-7120ee0c.cjs → text-5796f488.cjs} +1 -1
  49. package/lib/node/blocks-exports.cjs +30 -30
  50. package/lib/node/blocks-exports.mjs +710 -663
  51. package/lib/node/index.cjs +1 -1
  52. package/lib/node/index.mjs +3 -3
  53. package/lib/node/init.cjs +1 -1
  54. package/lib/node/init.mjs +3 -3
  55. package/lib/node/server-entry-e91e06a3.cjs +2 -0
  56. package/lib/node/{server-entry-32ef60c0.js → server-entry-fdedc1aa.js} +24 -26
  57. package/lib/node/server-entry.cjs +1 -1
  58. package/lib/node/server-entry.mjs +1 -1
  59. package/lib/node/{setIvm-26e65816.js → setIvm-8b303d4e.js} +1 -1
  60. package/lib/node/{setIvm-bf1ad328.cjs → setIvm-aba1bed8.cjs} +1 -1
  61. package/lib/node/setIvm.cjs +1 -1
  62. package/lib/node/setIvm.mjs +2 -2
  63. package/lib/node/{should-force-browser-runtime-in-node-343fd6c7.js → should-force-browser-runtime-in-node-0a037bde.js} +1 -1
  64. package/lib/node/{should-force-browser-runtime-in-node-000957e3.cjs → should-force-browser-runtime-in-node-491a9b55.cjs} +1 -1
  65. package/package.json +1 -1
  66. package/types/components/block/block.helpers.d.ts +6 -3
  67. package/types/components/content/components/enable-editor.helpers.d.ts +11 -0
  68. package/types/constants/file-types.d.ts +2 -0
  69. package/types/constants/sdk-version.d.ts +1 -1
  70. package/types/context/types.d.ts +1 -0
  71. package/types/functions/extract-localized-values.d.ts +2 -0
  72. package/types/functions/traverse.d.ts +34 -0
  73. package/types/types/components.d.ts +3 -0
  74. package/lib/browser/server-entry-d7a13b14.cjs +0 -2
  75. package/lib/edge/blocks-aa67fee8.cjs +0 -12
  76. package/lib/edge/content-variants-2f5a6ccd.cjs +0 -134
  77. package/lib/edge/image-54d2f755.cjs +0 -17
  78. package/lib/edge/server-entry-4cd5389e.cjs +0 -2
  79. package/lib/node/server-entry-9c026e49.cjs +0 -2
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- import { jsx as s, Fragment as I, jsxs as V } from "react/jsx-runtime";
3
- import { TARGET as D, isEditing as W, isBrowser as L, getUserAttributes as He, checkIsDefined as K, logger as J, isPreviewing as Se, logFetch as ke, registerInsertMenu as je, setupBrowserForEditing as Me, createRegisterComponentMessage as _e, getDefaultCanTrack as z, _track as se, fetchOneEntry as Ce, createEditorListener as qe, serializeIncludingFunctions as ce, handleABTestingSync as Ke } from "./server-entry-77f4513c.js";
4
- import { createContext as Te, useEffect as B, useState as R, useRef as $, useContext as de, createElement as Ie } from "react";
5
- const ze = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Je = (e) => typeof e == "string" && ze.has(e.toLowerCase());
6
- function oe(e) {
7
- return /* @__PURE__ */ s(I, { children: Je(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 }) }) });
2
+ import { jsx as s, Fragment as w, jsxs as N } from "react/jsx-runtime";
3
+ import { TARGET as $, isEditing as W, isBrowser as O, getUserAttributes as ze, checkIsDefined as z, logger as G, isPreviewing as ae, logFetch as we, registerInsertMenu as Ke, setupBrowserForEditing as Je, createRegisterComponentMessage as Ge, getDefaultCanTrack as K, _track as ue, fetchOneEntry as Ie, createEditorListener as Ye, serializeIncludingFunctions as me, handleABTestingSync as Qe } from "./server-entry-017b8439.js";
4
+ import { createContext as Ee, useEffect as A, useState as R, useRef as L, useContext as fe, createElement as Re } from "react";
5
+ const Xe = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ze = (e) => typeof e == "string" && Xe.has(e.toLowerCase());
6
+ function re(e) {
7
+ return /* @__PURE__ */ s(w, { children: Ze(e.TagName) ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(w, { 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 }) }) });
8
8
  }
9
9
  const H = () => {
10
- switch (D) {
10
+ switch ($) {
11
11
  case "react":
12
12
  case "reactNative":
13
13
  case "rsc":
@@ -20,7 +20,7 @@ const H = () => {
20
20
  return "class";
21
21
  }
22
22
  };
23
- function Ge(e) {
23
+ function et(e) {
24
24
  function t() {
25
25
  return {
26
26
  ...e.attributes,
@@ -35,7 +35,7 @@ function Ge(e) {
35
35
  };
36
36
  }
37
37
  return /* @__PURE__ */ s(
38
- oe,
38
+ re,
39
39
  {
40
40
  attributes: t(),
41
41
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
@@ -44,7 +44,7 @@ function Ge(e) {
44
44
  }
45
45
  );
46
46
  }
47
- const ae = Te({
47
+ const le = Ee({
48
48
  content: null,
49
49
  context: {},
50
50
  localState: void 0,
@@ -57,25 +57,26 @@ const ae = Te({
57
57
  inheritedStyles: {},
58
58
  BlocksWrapper: "div",
59
59
  BlocksWrapperProps: {},
60
- nonce: ""
61
- }), we = Te({ registeredComponents: {} });
62
- function Ye(e) {
60
+ nonce: "",
61
+ model: ""
62
+ }), Pe = Ee({ registeredComponents: {} });
63
+ function tt(e) {
63
64
  var t;
64
65
  return {
65
66
  ...(t = e.component) == null ? void 0 : t.options,
66
67
  ...e.options
67
68
  };
68
69
  }
69
- function Qe(e, ...t) {
70
+ function nt(e, ...t) {
70
71
  const n = Object.assign({}, e);
71
72
  for (const i of t)
72
73
  delete n[i];
73
74
  return n;
74
75
  }
75
- const Ee = (e, t, n) => {
76
+ const Be = (e, t, n) => {
76
77
  const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, r) => o != null ? o[r] : o, e);
77
78
  return i === void 0 || i === e ? n : i;
78
- }, Xe = ({
79
+ }, it = ({
79
80
  builder: e,
80
81
  context: t,
81
82
  event: n,
@@ -87,15 +88,15 @@ const Ee = (e, t, n) => {
87
88
  builder: e,
88
89
  context: t,
89
90
  event: n
90
- }), Ze = () => ({
91
+ }), ot = () => ({
91
92
  isEditing: W(),
92
- isBrowser: L(),
93
- isServer: !L(),
94
- getUserAttributes: () => He()
95
- }), et = (e, {
93
+ isBrowser: O(),
94
+ isServer: !O(),
95
+ getUserAttributes: () => ze()
96
+ }), at = (e, {
96
97
  isExpression: t = !0
97
98
  }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
98
- function Re({
99
+ function Ve({
99
100
  rootState: e,
100
101
  localState: t,
101
102
  rootSetState: n
@@ -105,7 +106,7 @@ function Re({
105
106
  if (t && o in t)
106
107
  return t[o];
107
108
  const r = i[o];
108
- return typeof r == "object" && r !== null ? Re({
109
+ return typeof r == "object" && r !== null ? Ve({
109
110
  rootState: r,
110
111
  localState: void 0,
111
112
  rootSetState: n ? (a) => {
@@ -120,7 +121,7 @@ function Re({
120
121
  }
121
122
  });
122
123
  }
123
- const ue = ({
124
+ const he = ({
124
125
  code: e,
125
126
  builder: t,
126
127
  context: n,
@@ -129,11 +130,11 @@ const ue = ({
129
130
  rootSetState: r,
130
131
  rootState: a
131
132
  }) => {
132
- const l = Xe({
133
+ const l = it({
133
134
  builder: t,
134
135
  context: n,
135
136
  event: i,
136
- state: Re({
137
+ state: Ve({
137
138
  rootState: a,
138
139
  localState: o,
139
140
  rootSetState: r
@@ -141,25 +142,25 @@ const ue = ({
141
142
  });
142
143
  return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
143
144
  };
144
- function tt() {
145
+ function rt() {
145
146
  var e;
146
- return typeof process != "undefined" && K((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
147
+ return typeof process != "undefined" && z((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
147
148
  }
148
- const nt = ({
149
+ const lt = ({
149
150
  shouldLogWarning: e
150
151
  }) => {
151
152
  var o;
152
- if (!tt())
153
+ if (!rt())
153
154
  return !1;
154
155
  const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
155
- return t && n && !i ? (e && J.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
156
- }, it = (e) => (L() || nt({
156
+ return t && n && !i ? (e && G.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
157
+ }, st = (e) => (O() || lt({
157
158
  shouldLogWarning: !0
158
- }), ue(e)), ot = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, at = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, rt = (e) => {
159
+ }), he(e)), ct = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, dt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, ut = (e) => {
159
160
  var t, n, i, o, r, a;
160
- return ((i = (n = (t = ot.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((a = (r = (o = at.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : r.getPath) == null ? void 0 : a.slice(1));
161
+ return ((i = (n = (t = ct.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((a = (r = (o = dt.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : r.getPath) == null ? void 0 : a.slice(1));
161
162
  };
162
- function O({
163
+ function D({
163
164
  code: e,
164
165
  context: t,
165
166
  localState: n,
@@ -170,17 +171,17 @@ function O({
170
171
  }) {
171
172
  if (e.trim() === "")
172
173
  return;
173
- const l = rt(e.trim());
174
+ const l = ut(e.trim());
174
175
  if (l)
175
- return Ee({
176
+ return Be({
176
177
  ...i,
177
178
  ...n
178
179
  }, l);
179
180
  const d = {
180
- code: et(e, {
181
+ code: at(e, {
181
182
  isExpression: a
182
183
  }),
183
- builder: Ze(),
184
+ builder: ot(),
184
185
  context: t,
185
186
  event: r,
186
187
  rootSetState: o,
@@ -188,35 +189,76 @@ function O({
188
189
  localState: n
189
190
  };
190
191
  try {
191
- return it(d);
192
+ return st(d);
192
193
  } catch (c) {
193
- J.error("Failed code evaluation: " + c.message, {
194
+ G.error("Failed code evaluation: " + c.message, {
194
195
  code: e
195
196
  });
196
197
  return;
197
198
  }
198
199
  }
199
- const re = (e) => JSON.parse(JSON.stringify(e)), Pe = (e, t, n) => {
200
+ function J(e, t, n = null, i = null, o = /* @__PURE__ */ new WeakSet()) {
201
+ if (e == null || typeof e != "object") {
202
+ t(e, (r) => {
203
+ n !== null && i !== null && (n[i] = r);
204
+ });
205
+ return;
206
+ }
207
+ o.has(e) || (o.add(e), Array.isArray(e) ? e.forEach((r, a) => {
208
+ t(r, (d) => {
209
+ e[a] = d;
210
+ }), J(r, t, e, a, o);
211
+ }) : Object.entries(e).forEach(([r, a]) => {
212
+ t(a, (d) => {
213
+ e[r] = d;
214
+ }), J(a, t, e, r, o);
215
+ }));
216
+ }
217
+ function Ae(e) {
218
+ return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
219
+ }
220
+ function mt(e) {
221
+ if (!e || !Object.getOwnPropertyNames(e).length)
222
+ return !1;
223
+ let t = !1;
224
+ return J(e, (n) => {
225
+ if (Ae(n)) {
226
+ t = !0;
227
+ return;
228
+ }
229
+ }), t;
230
+ }
231
+ function ft(e, t) {
232
+ return !e || !Object.getOwnPropertyNames(e).length ? {} : (J(e, (n, i) => {
233
+ var o;
234
+ Ae(n) && i((o = n[t]) != null ? o : void 0);
235
+ }), e);
236
+ }
237
+ function ht(e, t) {
238
+ var n, i;
239
+ return (n = e.component) != null && n.options && mt((i = e.component) == null ? void 0 : i.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = ft(e.component.options, t != null ? t : "Default")), e;
240
+ }
241
+ const se = (e) => JSON.parse(JSON.stringify(e)), Ne = (e, t, n) => {
200
242
  if (Object(e) !== e)
201
243
  return e;
202
244
  const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
203
245
  return i.slice(0, -1).reduce((o, r, a) => Object(o[r]) === o[r] ? o[r] : o[r] = Math.abs(Number(i[a + 1])) >> 0 === +i[a + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
204
246
  };
205
- function ne(e) {
247
+ function ie(e) {
206
248
  if (e === null || typeof e != "object")
207
249
  return e;
208
250
  if (Array.isArray(e))
209
- return e.map((n) => ne(n));
251
+ return e.map((n) => ie(n));
210
252
  if (e["@type"] === "@builder.io/sdk:Element")
211
253
  return e;
212
254
  const t = {};
213
255
  for (const n in e)
214
- n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ne(e[n]));
256
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ie(e[n]));
215
257
  return t;
216
258
  }
217
- const lt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), st = (e) => {
218
- if (lt) {
219
- const t = re(e);
259
+ const gt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), bt = (e) => {
260
+ if (gt) {
261
+ const t = se(e);
220
262
  return {
221
263
  ...t,
222
264
  properties: {
@@ -227,7 +269,7 @@ const lt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), st = (e) =
227
269
  }
228
270
  };
229
271
  } else {
230
- const t = ne(Qe(e, "children", "meta"));
272
+ const t = ie(nt(e, "children", "meta"));
231
273
  return {
232
274
  ...t,
233
275
  properties: {
@@ -240,7 +282,7 @@ const lt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), st = (e) =
240
282
  meta: e.meta
241
283
  };
242
284
  }
243
- }, ct = ({
285
+ }, pt = ({
244
286
  block: e,
245
287
  context: t,
246
288
  localState: n,
@@ -249,20 +291,20 @@ const lt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), st = (e) =
249
291
  }) => {
250
292
  if (!e.bindings)
251
293
  return e;
252
- const r = st(e);
294
+ const r = bt(e);
253
295
  for (const a in e.bindings) {
254
- const l = e.bindings[a], d = O({
296
+ const l = e.bindings[a], d = D({
255
297
  code: l,
256
298
  localState: n,
257
299
  rootState: i,
258
300
  rootSetState: o,
259
301
  context: t
260
302
  });
261
- Pe(r, a, d);
303
+ Ne(r, a, d);
262
304
  }
263
305
  return r;
264
306
  };
265
- function dt({
307
+ function yt({
266
308
  block: e,
267
309
  context: t,
268
310
  shouldEvaluateBindings: n,
@@ -270,8 +312,8 @@ function dt({
270
312
  rootState: o,
271
313
  rootSetState: r
272
314
  }) {
273
- const a = e;
274
- return n ? ct({
315
+ let a = ht(e, o.locale);
316
+ return a = a, n ? pt({
275
317
  block: a,
276
318
  localState: i,
277
319
  rootState: o,
@@ -279,8 +321,8 @@ function dt({
279
321
  context: t
280
322
  }) : a;
281
323
  }
282
- const G = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
283
- function ut(e, t, n = {}) {
324
+ const Y = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
325
+ function xt(e, t, n = {}) {
284
326
  let i, o, r, a = null, l = 0;
285
327
  const d = function() {
286
328
  l = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
@@ -302,55 +344,55 @@ function U(e, ...t) {
302
344
  }
303
345
  return n;
304
346
  }
305
- function mt(e) {
347
+ function vt(e) {
306
348
  for (const t of e)
307
349
  switch (t.trigger) {
308
350
  case "pageLoad":
309
- Ae(t);
351
+ $e(t);
310
352
  break;
311
353
  case "scrollInView":
312
- ht(t);
354
+ kt(t);
313
355
  break;
314
356
  }
315
357
  }
316
- function Be(e) {
358
+ function We(e) {
317
359
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
318
360
  }
319
- function Ve(e, t) {
320
- const n = ft(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
361
+ function Fe(e, t) {
362
+ const n = St(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
321
363
  for (const l of a)
322
364
  for (const d of n)
323
365
  d in l || (l[d] = i[d]);
324
366
  }
325
- function ft(e) {
367
+ function St(e) {
326
368
  const t = [];
327
369
  for (const n of e.steps)
328
370
  for (const i in n.styles)
329
371
  t.indexOf(i) === -1 && t.push(i);
330
372
  return t;
331
373
  }
332
- function Ae(e) {
374
+ function $e(e) {
333
375
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
334
376
  if (!t.length) {
335
- Be(e.elementId || e.id || "");
377
+ We(e.elementId || e.id || "");
336
378
  return;
337
379
  }
338
380
  Array.from(t).forEach((n) => {
339
- Ve(e, n), n.style.transition = "none", n.style.transitionDelay = "0", U(n.style, e.steps[0].styles), setTimeout(() => {
340
- n.style.transition = `all ${e.duration}s ${G(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), U(n.style, e.steps[1].styles), setTimeout(() => {
381
+ Fe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", U(n.style, e.steps[0].styles), setTimeout(() => {
382
+ n.style.transition = `all ${e.duration}s ${Y(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), U(n.style, e.steps[1].styles), setTimeout(() => {
341
383
  n.style.transition = "", n.style.transitionDelay = "";
342
384
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
343
385
  });
344
386
  });
345
387
  }
346
- function ht(e) {
388
+ function kt(e) {
347
389
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
348
390
  if (!t.length) {
349
- Be(e.elementId || e.id || "");
391
+ We(e.elementId || e.id || "");
350
392
  return;
351
393
  }
352
394
  Array.from(t).forEach((n) => {
353
- Ve(e, n);
395
+ Fe(e, n);
354
396
  let i = !1, o = !1;
355
397
  function r() {
356
398
  !i && l(n) ? (i = !0, o = !0, setTimeout(() => {
@@ -359,7 +401,7 @@ function ht(e) {
359
401
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
360
402
  })) : e.repeat && i && !o && !l(n) && (i = !1, U(n.style, e.steps[0].styles));
361
403
  }
362
- const a = ut(r, 200, {
404
+ const a = xt(r, 200, {
363
405
  leading: !1
364
406
  });
365
407
  function l(h) {
@@ -371,49 +413,49 @@ function ht(e) {
371
413
  U(n.style, d);
372
414
  }
373
415
  c(), setTimeout(() => {
374
- n.style.transition = `all ${e.duration}s ${G(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
416
+ n.style.transition = `all ${e.duration}s ${Y(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
375
417
  }), document.addEventListener("scroll", a, {
376
418
  capture: !0,
377
419
  passive: !0
378
420
  }), r();
379
421
  });
380
422
  }
381
- const Ne = (e) => Object.entries(e).map(([n, i]) => {
423
+ const Le = (e) => Object.entries(e).map(([n, i]) => {
382
424
  if (typeof i == "string")
383
- return `${G(n)}: ${i};`;
384
- }).filter(K), gt = (e) => Ne(e).join(`
385
- `), _ = ({
425
+ return `${Y(n)}: ${i};`;
426
+ }).filter(z), Ct = (e) => Le(e).join(`
427
+ `), j = ({
386
428
  mediaQuery: e,
387
429
  className: t,
388
430
  styles: n
389
431
  }) => {
390
432
  const i = `.${t} {
391
- ${gt(n)}
433
+ ${Ct(n)}
392
434
  }`;
393
435
  return e ? `${e} {
394
436
  ${i}
395
437
  }` : i;
396
438
  };
397
- function bt({
439
+ function Tt({
398
440
  style: e
399
441
  }) {
400
442
  return e;
401
443
  }
402
- const pt = ({
444
+ const wt = ({
403
445
  block: e,
404
446
  context: t
405
- }) => We(bt({
447
+ }) => Oe(Tt({
406
448
  style: e.style || {},
407
449
  context: t,
408
450
  block: e
409
451
  }));
410
- function We(e) {
411
- switch (D) {
452
+ function Oe(e) {
453
+ switch ($) {
412
454
  case "svelte":
413
455
  case "vue":
414
456
  case "solid":
415
457
  case "angular":
416
- return Ne(e).join(" ");
458
+ return Le(e).join(" ");
417
459
  case "qwik":
418
460
  case "reactNative":
419
461
  case "react":
@@ -421,21 +463,24 @@ function We(e) {
421
463
  return e;
422
464
  }
423
465
  }
424
- const yt = ({
466
+ const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, It = ({
425
467
  block: e,
426
- registeredComponents: t
468
+ registeredComponents: t,
469
+ model: n
427
470
  }) => {
428
- var o;
429
- const n = (o = e.component) == null ? void 0 : o.name;
430
- if (!n)
471
+ var r;
472
+ const i = (r = e.component) == null ? void 0 : r.name;
473
+ if (!i)
431
474
  return null;
432
- const i = t[n];
433
- if (i)
434
- return i;
435
- console.warn(`
436
- Could not find a registered component named "${n}".
475
+ const o = t[i];
476
+ if (!o || De(o, n)) {
477
+ console.warn(`
478
+ Could not find a registered component named "${i}".
437
479
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
438
- }, xt = ({
480
+ return;
481
+ } else
482
+ return o;
483
+ }, Et = ({
439
484
  block: e,
440
485
  context: t
441
486
  }) => {
@@ -445,7 +490,7 @@ const yt = ({
445
490
  } = e;
446
491
  if (!(n != null && n.collection))
447
492
  return;
448
- const o = O({
493
+ const o = D({
449
494
  code: n.collection,
450
495
  localState: t.localState,
451
496
  rootState: t.rootState,
@@ -468,27 +513,27 @@ const yt = ({
468
513
  },
469
514
  block: i
470
515
  }));
471
- }, vt = (e, t) => {
516
+ }, Rt = (e, t) => {
472
517
  var n;
473
518
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
474
519
  builderLinkComponent: t
475
520
  } : {};
476
- }, St = (e, t) => {
477
- var n;
478
- return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
479
- builderComponents: t
521
+ }, Pt = (e, t, n) => {
522
+ var i;
523
+ return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
524
+ builderComponents: Object.fromEntries(Object.entries(t).filter(([r, a]) => !De(a, n)))
480
525
  } : {};
481
- }, kt = (e, t) => {
526
+ }, Bt = (e, t) => {
482
527
  var n;
483
528
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
484
529
  builderBlock: t
485
530
  } : {};
486
- }, Ct = (e, t) => {
531
+ }, Vt = (e, t) => {
487
532
  var n;
488
533
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
489
534
  builderContext: t
490
535
  } : {};
491
- }, Fe = {
536
+ }, Ue = {
492
537
  small: {
493
538
  min: 320,
494
539
  default: 321,
@@ -504,11 +549,11 @@ const yt = ({
504
549
  default: 991,
505
550
  max: 1200
506
551
  }
507
- }, me = (e, t = Fe) => `@media (max-width: ${t[e].max}px)`, $e = ({
552
+ }, ge = (e, t = Ue) => `@media (max-width: ${t[e].max}px)`, He = ({
508
553
  small: e,
509
554
  medium: t
510
555
  }) => {
511
- const n = re(Fe);
556
+ const n = se(Ue);
512
557
  if (!e || !t)
513
558
  return n;
514
559
  const i = Math.floor(e / 2);
@@ -531,7 +576,7 @@ const yt = ({
531
576
  default: r + 1
532
577
  }, n;
533
578
  };
534
- function Y(e) {
579
+ function Q(e) {
535
580
  return /* @__PURE__ */ s(
536
581
  "style",
537
582
  {
@@ -541,44 +586,44 @@ function Y(e) {
541
586
  }
542
587
  );
543
588
  }
544
- function Tt(e) {
589
+ function At(e) {
545
590
  function t() {
546
591
  const i = e.block;
547
- return K(i.hide) ? !i.hide : K(i.show) ? i.show : !0;
592
+ return z(i.hide) ? !i.hide : z(i.show) ? i.show : !0;
548
593
  }
549
594
  function n() {
550
- var v, p, b;
551
- const i = e.block, o = i.responsiveStyles, r = e.context.content, a = $e(
552
- ((v = r == null ? void 0 : r.meta) == null ? void 0 : v.breakpoints) || {}
595
+ var x, b, p;
596
+ const i = e.block, o = i.responsiveStyles, r = e.context.content, a = He(
597
+ ((x = r == null ? void 0 : r.meta) == null ? void 0 : x.breakpoints) || {}
553
598
  ), l = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
554
599
  if (!h)
555
600
  return "";
556
- const g = l ? _({
601
+ const g = l ? j({
557
602
  className: h,
558
603
  styles: l
559
- }) : "", m = d ? _({
604
+ }) : "", m = d ? j({
560
605
  className: h,
561
606
  styles: d,
562
- mediaQuery: me(
607
+ mediaQuery: ge(
563
608
  "medium",
564
609
  a
565
610
  )
566
- }) : "", x = c ? _({
611
+ }) : "", y = c ? j({
567
612
  className: h,
568
613
  styles: c,
569
- mediaQuery: me(
614
+ mediaQuery: ge(
570
615
  "small",
571
616
  a
572
617
  )
573
- }) : "", f = i.animations && i.animations.find((y) => y.trigger === "hover");
574
- let S = "";
618
+ }) : "", f = i.animations && i.animations.find((C) => C.trigger === "hover");
619
+ let v = "";
575
620
  if (f) {
576
- const y = ((b = (p = f.steps) == null ? void 0 : p[1]) == null ? void 0 : b.styles) || {};
577
- S = _({
621
+ const C = ((p = (b = f.steps) == null ? void 0 : b[1]) == null ? void 0 : p.styles) || {};
622
+ v = j({
578
623
  className: `${h}:hover`,
579
624
  styles: {
580
- ...y,
581
- transition: `all ${f.duration}s ${G(
625
+ ...C,
626
+ transition: `all ${f.duration}s ${Y(
582
627
  f.easing
583
628
  )}`,
584
629
  transitionDelay: f.delay ? `${f.delay}s` : "0s"
@@ -588,12 +633,12 @@ function Tt(e) {
588
633
  return [
589
634
  g,
590
635
  m,
591
- x,
592
- S
636
+ y,
637
+ v
593
638
  ].join(" ");
594
639
  }
595
- return /* @__PURE__ */ s(I, { children: n() && t() ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(
596
- Y,
640
+ return /* @__PURE__ */ s(w, { children: n() && t() ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
641
+ Q,
597
642
  {
598
643
  id: "builderio-block",
599
644
  styles: n(),
@@ -601,10 +646,10 @@ function Tt(e) {
601
646
  }
602
647
  ) }) : null });
603
648
  }
604
- function It(e) {
649
+ function Nt(e) {
605
650
  return e.charAt(0).toUpperCase() + e.slice(1);
606
651
  }
607
- const wt = (e) => `on${It(e)}`, Et = (e, t) => (n) => O({
652
+ const Wt = (e) => `on${Nt(e)}`, Ft = (e, t) => (n) => D({
608
653
  code: e,
609
654
  context: t.context,
610
655
  localState: t.localState,
@@ -613,16 +658,16 @@ const wt = (e) => `on${It(e)}`, Et = (e, t) => (n) => O({
613
658
  event: n,
614
659
  isExpression: !1
615
660
  });
616
- function De(e) {
661
+ function _e(e) {
617
662
  var i;
618
663
  const t = {}, n = (i = e.block.actions) != null ? i : {};
619
664
  for (const o in n) {
620
665
  if (!n.hasOwnProperty(o))
621
666
  continue;
622
667
  const r = n[o];
623
- let a = wt(o);
668
+ let a = Wt(o);
624
669
  if (e.stripPrefix)
625
- switch (D) {
670
+ switch ($) {
626
671
  case "vue":
627
672
  a = a.replace("v-on:", "");
628
673
  break;
@@ -630,49 +675,49 @@ function De(e) {
630
675
  a = a.replace("on:", "");
631
676
  break;
632
677
  }
633
- t[a] = Et(r, e);
678
+ t[a] = Ft(r, e);
634
679
  }
635
680
  return t;
636
681
  }
637
- function Rt({
682
+ function $t({
638
683
  properties: e
639
684
  }) {
640
685
  return e;
641
686
  }
642
- const Pt = (e) => ({
687
+ const Lt = (e) => ({
643
688
  href: e.href
644
689
  });
645
- function le({
690
+ function ce({
646
691
  block: e,
647
692
  context: t
648
693
  }) {
649
694
  var i;
650
695
  const n = {
651
- ...Pt(e),
696
+ ...Lt(e),
652
697
  ...e.properties,
653
698
  "builder-id": e.id,
654
- style: pt({
699
+ style: wt({
655
700
  block: e,
656
701
  context: t
657
702
  }),
658
703
  [H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
659
704
  };
660
- return Rt({
705
+ return $t({
661
706
  properties: n,
662
707
  context: t,
663
708
  block: e
664
709
  });
665
710
  }
666
- function Bt(e) {
711
+ function Ot(e) {
667
712
  return /* @__PURE__ */ s(
668
- oe,
713
+ re,
669
714
  {
670
715
  TagName: e.Wrapper,
671
- attributes: le({
716
+ attributes: ce({
672
717
  block: e.block,
673
718
  context: e.context
674
719
  }),
675
- actionAttributes: De({
720
+ actionAttributes: _e({
676
721
  block: e.block,
677
722
  rootState: e.context.rootState,
678
723
  rootSetState: e.context.rootSetState,
@@ -684,18 +729,18 @@ function Bt(e) {
684
729
  }
685
730
  );
686
731
  }
687
- function Vt(e) {
688
- return B(() => {
689
- }, []), /* @__PURE__ */ s(I, { children: e.children });
732
+ function Dt(e) {
733
+ return A(() => {
734
+ }, []), /* @__PURE__ */ s(w, { children: e.children });
690
735
  }
691
- function At(e) {
736
+ function Ut(e) {
692
737
  function t() {
693
738
  return e.includeBlockProps ? {
694
- ...le({
739
+ ...ce({
695
740
  block: e.block,
696
741
  context: e.context
697
742
  }),
698
- ...De({
743
+ ..._e({
699
744
  block: e.block,
700
745
  rootState: e.context.rootState,
701
746
  rootSetState: e.context.rootSetState,
@@ -704,8 +749,8 @@ function At(e) {
704
749
  })
705
750
  } : {};
706
751
  }
707
- return /* @__PURE__ */ s(I, { children: e.Wrapper.load ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(
708
- Vt,
752
+ return /* @__PURE__ */ s(w, { children: e.Wrapper.load ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
753
+ Dt,
709
754
  {
710
755
  load: e.Wrapper.load,
711
756
  fallback: e.Wrapper.fallback,
@@ -715,7 +760,7 @@ function At(e) {
715
760
  }
716
761
  ) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
717
762
  }
718
- const Nt = ({
763
+ const Ht = ({
719
764
  componentOptions: e,
720
765
  builderBlock: t,
721
766
  context: n,
@@ -731,7 +776,7 @@ const Nt = ({
731
776
  * component itself directly. Otherwise, they are provided to the wrapper element.
732
777
  */
733
778
  ...o ? {
734
- attributes: le({
779
+ attributes: ce({
735
780
  block: t,
736
781
  context: a
737
782
  })
@@ -745,15 +790,15 @@ const Nt = ({
745
790
  includeBlockProps: o
746
791
  } : l;
747
792
  };
748
- function fe(e) {
793
+ function be(e) {
749
794
  var i;
750
795
  const [t, n] = R(
751
- () => e.isInteractive ? At : e.componentRef
796
+ () => e.isInteractive ? Ut : e.componentRef
752
797
  );
753
- return /* @__PURE__ */ s(I, { children: e.componentRef ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(
798
+ return /* @__PURE__ */ s(w, { children: e.componentRef ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
754
799
  t,
755
800
  {
756
- ...Nt({
801
+ ...Ht({
757
802
  componentOptions: e.componentOptions,
758
803
  builderBlock: e.builderBlock,
759
804
  context: e.context,
@@ -764,7 +809,7 @@ function fe(e) {
764
809
  contextValue: e.context
765
810
  }),
766
811
  children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
767
- j,
812
+ _,
768
813
  {
769
814
  block: o,
770
815
  context: e.context,
@@ -776,10 +821,10 @@ function fe(e) {
776
821
  }
777
822
  ) }) : null });
778
823
  }
779
- function he(e) {
824
+ function pe(e) {
780
825
  const [t, n] = R(() => e.repeatContext);
781
- return /* @__PURE__ */ s(ae.Provider, { value: t, children: /* @__PURE__ */ s(
782
- j,
826
+ return /* @__PURE__ */ s(le.Provider, { value: t, children: /* @__PURE__ */ s(
827
+ _,
783
828
  {
784
829
  block: e.block,
785
830
  context: t,
@@ -788,10 +833,10 @@ function he(e) {
788
833
  }
789
834
  ) });
790
835
  }
791
- function j(e) {
792
- var h, g, m, x;
836
+ function _(e) {
837
+ var h, g, m, y;
793
838
  function t() {
794
- return xt({
839
+ return Et({
795
840
  block: e.block,
796
841
  context: e.context
797
842
  });
@@ -801,10 +846,10 @@ function j(e) {
801
846
  update: !1
802
847
  }));
803
848
  function o() {
804
- var S;
805
- if (n.value && !n.update && !Se())
849
+ var v;
850
+ if (n.value && !n.update && !ae())
806
851
  return n.value;
807
- const f = (S = e.block.repeat) != null && S.collection ? e.block : dt({
852
+ const f = (v = e.block.repeat) != null && v.collection ? e.block : yt({
808
853
  block: e.block,
809
854
  localState: e.context.localState,
810
855
  rootState: e.context.rootState,
@@ -815,72 +860,74 @@ function j(e) {
815
860
  return n.value = f, n.update = !1, f;
816
861
  }
817
862
  function r() {
818
- return yt({
863
+ return It({
819
864
  block: o(),
820
- registeredComponents: e.registeredComponents
865
+ registeredComponents: e.registeredComponents,
866
+ model: e.context.model
821
867
  });
822
868
  }
823
869
  function a() {
824
- var S;
825
- return e.block.tagName === "a" || ((S = o().properties) == null ? void 0 : S.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
870
+ var v;
871
+ return e.block.tagName === "a" || ((v = o().properties) == null ? void 0 : v.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
826
872
  }
827
873
  function l() {
828
- var v, p;
829
- if ((v = e.block.repeat) != null && v.collection)
830
- return !!((p = t == null ? void 0 : t()) != null && p.length);
874
+ var x, b;
875
+ if ((x = e.block.repeat) != null && x.collection)
876
+ return !!((b = t == null ? void 0 : t()) != null && b.length);
831
877
  const f = "hide" in o() ? o().hide : !1;
832
878
  return ("show" in o() ? o().show : !0) && !f;
833
879
  }
834
880
  function d() {
835
- var S, v;
836
- return !((S = r == null ? void 0 : r()) != null && S.component) && !t() ? (v = o().children) != null ? v : [] : [];
881
+ var v, x;
882
+ return !((v = r == null ? void 0 : r()) != null && v.component) && !t() ? (x = o().children) != null ? x : [] : [];
837
883
  }
838
884
  function c() {
839
- var f, S, v, p;
885
+ var f, v, x, b;
840
886
  return {
841
887
  blockChildren: (f = o().children) != null ? f : [],
842
- componentRef: (S = r == null ? void 0 : r()) == null ? void 0 : S.component,
888
+ componentRef: (v = r == null ? void 0 : r()) == null ? void 0 : v.component,
843
889
  componentOptions: {
844
- ...Ye(o()),
845
- ...kt(r(), o()),
846
- ...Ct(r(), e.context),
847
- ...vt(r(), e.linkComponent),
848
- ...St(
890
+ ...tt(o()),
891
+ ...Bt(r(), o()),
892
+ ...Vt(r(), e.context),
893
+ ...Rt(r(), e.linkComponent),
894
+ ...Pt(
849
895
  r(),
850
- e.registeredComponents
896
+ e.registeredComponents,
897
+ e.context.model
851
898
  )
852
899
  },
853
900
  context: e.context,
854
901
  linkComponent: e.linkComponent,
855
902
  registeredComponents: e.registeredComponents,
856
903
  builderBlock: o(),
857
- includeBlockProps: ((v = r == null ? void 0 : r()) == null ? void 0 : v.noWrap) === !0,
858
- isInteractive: !((p = r == null ? void 0 : r()) != null && p.isRSC && D === "rsc")
904
+ includeBlockProps: ((x = r == null ? void 0 : r()) == null ? void 0 : x.noWrap) === !0,
905
+ isInteractive: !((b = r == null ? void 0 : r()) != null && b.isRSC && $ === "rsc")
859
906
  };
860
907
  }
861
- return B(() => {
862
- const f = o().id, S = o().animations;
863
- S && f && mt(
864
- S.map((v) => ({
865
- ...v,
908
+ return A(() => {
909
+ const f = o().id, v = o().animations;
910
+ v && f && vt(
911
+ v.map((x) => ({
912
+ ...x,
866
913
  elementId: f
867
914
  }))
868
915
  );
869
- }, []), B(() => {
916
+ }, []), A(() => {
870
917
  n.update = !0;
871
- }), /* @__PURE__ */ s(I, { children: l() ? /* @__PURE__ */ V(I, { children: [
872
- /* @__PURE__ */ s(Tt, { block: o(), context: e.context }),
873
- (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(
874
- he,
918
+ }), /* @__PURE__ */ s(w, { children: l() ? /* @__PURE__ */ N(w, { children: [
919
+ /* @__PURE__ */ s(At, { block: o(), context: e.context }),
920
+ (h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(w, { children: (y = t()) == null ? void 0 : y.map((f, v) => /* @__PURE__ */ s(
921
+ pe,
875
922
  {
876
923
  repeatContext: f.context,
877
924
  block: f.block,
878
925
  registeredComponents: e.registeredComponents,
879
926
  linkComponent: e.linkComponent
880
927
  },
881
- S
928
+ v
882
929
  )) }) : /* @__PURE__ */ s(
883
- fe,
930
+ be,
884
931
  {
885
932
  componentRef: c().componentRef,
886
933
  componentOptions: c().componentOptions,
@@ -892,24 +939,24 @@ function j(e) {
892
939
  includeBlockProps: c().includeBlockProps,
893
940
  isInteractive: c().isInteractive
894
941
  }
895
- ) : /* @__PURE__ */ s(I, { children: t() ? /* @__PURE__ */ s(I, { children: (m = t()) == null ? void 0 : m.map((f, S) => /* @__PURE__ */ s(
896
- he,
942
+ ) : /* @__PURE__ */ s(w, { children: t() ? /* @__PURE__ */ s(w, { children: (m = t()) == null ? void 0 : m.map((f, v) => /* @__PURE__ */ s(
943
+ pe,
897
944
  {
898
945
  repeatContext: f.context,
899
946
  block: f.block,
900
947
  registeredComponents: e.registeredComponents,
901
948
  linkComponent: e.linkComponent
902
949
  },
903
- S
904
- )) }) : /* @__PURE__ */ V(
905
- Bt,
950
+ v
951
+ )) }) : /* @__PURE__ */ N(
952
+ Ot,
906
953
  {
907
954
  Wrapper: a(),
908
955
  block: o(),
909
956
  context: e.context,
910
957
  children: [
911
958
  /* @__PURE__ */ s(
912
- fe,
959
+ be,
913
960
  {
914
961
  componentRef: c().componentRef,
915
962
  componentOptions: c().componentOptions,
@@ -923,7 +970,7 @@ function j(e) {
923
970
  }
924
971
  ),
925
972
  (g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */ s(
926
- j,
973
+ _,
927
974
  {
928
975
  block: f,
929
976
  registeredComponents: e.registeredComponents,
@@ -937,8 +984,8 @@ function j(e) {
937
984
  ) })
938
985
  ] }) : null });
939
986
  }
940
- function Wt(e) {
941
- const t = $(null);
987
+ function _t(e) {
988
+ const t = L(null);
942
989
  function n() {
943
990
  var a;
944
991
  return [
@@ -979,8 +1026,8 @@ function Wt(e) {
979
1026
  "*"
980
1027
  ));
981
1028
  }
982
- return B(() => {
983
- }, []), /* @__PURE__ */ V(I, { children: [
1029
+ return A(() => {
1030
+ }, []), /* @__PURE__ */ N(w, { children: [
984
1031
  /* @__PURE__ */ s(
985
1032
  e.BlocksWrapper,
986
1033
  {
@@ -1005,9 +1052,9 @@ function Wt(e) {
1005
1052
  }
1006
1053
  function F(e) {
1007
1054
  var i, o, r;
1008
- const t = de(ae), n = de(we);
1055
+ const t = fe(le), n = fe(Pe);
1009
1056
  return /* @__PURE__ */ s(
1010
- Wt,
1057
+ _t,
1011
1058
  {
1012
1059
  blocks: e.blocks,
1013
1060
  parent: e.parent,
@@ -1016,8 +1063,8 @@ function F(e) {
1016
1063
  classNameProp: e.className,
1017
1064
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
1018
1065
  BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
1019
- children: e.blocks ? /* @__PURE__ */ s(I, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ s(
1020
- j,
1066
+ children: e.blocks ? /* @__PURE__ */ s(w, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ s(
1067
+ _,
1021
1068
  {
1022
1069
  block: a,
1023
1070
  linkComponent: e.linkComponent,
@@ -1029,9 +1076,9 @@ function F(e) {
1029
1076
  }
1030
1077
  );
1031
1078
  }
1032
- const Ft = (e) => `builder-columns ${e}-breakpoints`;
1033
- function $t(e) {
1034
- var S, v;
1079
+ const Mt = (e) => `builder-columns ${e}-breakpoints`;
1080
+ function jt(e) {
1081
+ var v, x;
1035
1082
  function t() {
1036
1083
  return typeof e.space == "number" ? e.space || 0 : 20;
1037
1084
  }
@@ -1041,28 +1088,28 @@ function $t(e) {
1041
1088
  function i() {
1042
1089
  return e.stackColumnsAt || "tablet";
1043
1090
  }
1044
- function o(p) {
1045
- return p.link ? e.builderLinkComponent || "a" : "div";
1091
+ function o(b) {
1092
+ return b.link ? e.builderLinkComponent || "a" : "div";
1046
1093
  }
1047
- function r(p) {
1048
- var b;
1049
- return ((b = n()[p]) == null ? void 0 : b.width) || 100 / n().length;
1094
+ function r(b) {
1095
+ var p;
1096
+ return ((p = n()[b]) == null ? void 0 : p.width) || 100 / n().length;
1050
1097
  }
1051
- function a(p) {
1052
- const b = r(p), y = t() * (n().length - 1) * (b / 100);
1053
- return `calc(${b}% - ${y}px)`;
1098
+ function a(b) {
1099
+ const p = r(b), C = t() * (n().length - 1) * (p / 100);
1100
+ return `calc(${p}% - ${C}px)`;
1054
1101
  }
1055
1102
  function l({
1056
- stackedStyle: p,
1057
- desktopStyle: b
1103
+ stackedStyle: b,
1104
+ desktopStyle: p
1058
1105
  }) {
1059
- return i() === "tablet" ? p : b;
1106
+ return i() === "tablet" ? b : p;
1060
1107
  }
1061
1108
  function d({
1062
- stackedStyle: p,
1063
- desktopStyle: b
1109
+ stackedStyle: b,
1110
+ desktopStyle: p
1064
1111
  }) {
1065
- return i() === "never" ? b : p;
1112
+ return i() === "never" ? p : b;
1066
1113
  }
1067
1114
  function c() {
1068
1115
  return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
@@ -1076,42 +1123,42 @@ function $t(e) {
1076
1123
  })
1077
1124
  };
1078
1125
  }
1079
- function g(p) {
1080
- const b = p === 0 ? 0 : t(), y = a(p), A = `${b}px`, k = "100%", w = 0;
1126
+ function g(b) {
1127
+ const p = b === 0 ? 0 : t(), C = a(b), P = `${p}px`, S = "100%", I = 0;
1081
1128
  return {
1082
1129
  ...{
1083
1130
  display: "flex",
1084
1131
  flexDirection: "column",
1085
1132
  alignItems: "stretch"
1086
1133
  },
1087
- width: y,
1088
- ["marginLeft"]: A,
1134
+ width: C,
1135
+ ["marginLeft"]: P,
1089
1136
  "--column-width-mobile": d({
1090
- stackedStyle: k,
1091
- desktopStyle: y
1137
+ stackedStyle: S,
1138
+ desktopStyle: C
1092
1139
  }),
1093
1140
  "--column-margin-left-mobile": d({
1094
- stackedStyle: w,
1095
- desktopStyle: A
1141
+ stackedStyle: I,
1142
+ desktopStyle: P
1096
1143
  }),
1097
1144
  "--column-width-tablet": l({
1098
- stackedStyle: k,
1099
- desktopStyle: y
1145
+ stackedStyle: S,
1146
+ desktopStyle: C
1100
1147
  }),
1101
1148
  "--column-margin-left-tablet": l({
1102
- stackedStyle: w,
1103
- desktopStyle: A
1149
+ stackedStyle: I,
1150
+ desktopStyle: P
1104
1151
  })
1105
1152
  };
1106
1153
  }
1107
- function m(p) {
1108
- var y, A;
1109
- return $e(
1110
- ((A = (y = e.builderContext.content) == null ? void 0 : y.meta) == null ? void 0 : A.breakpoints) || {}
1111
- )[p].max;
1154
+ function m(b) {
1155
+ var C, P;
1156
+ return He(
1157
+ ((P = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : P.breakpoints) || {}
1158
+ )[b].max;
1112
1159
  }
1113
- function x() {
1114
- const p = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1160
+ function y() {
1161
+ const b = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1115
1162
  return `
1116
1163
  @media (max-width: ${m("medium")}px) {
1117
1164
  .${e.builderBlock.id}-breakpoints {
@@ -1119,7 +1166,7 @@ function $t(e) {
1119
1166
  align-items: stretch;
1120
1167
  }
1121
1168
 
1122
- ${p} {
1169
+ ${b} {
1123
1170
  width: var(--column-width-tablet) !important;
1124
1171
  margin-left: var(--column-margin-left-tablet) !important;
1125
1172
  }
@@ -1131,47 +1178,47 @@ function $t(e) {
1131
1178
  align-items: stretch;
1132
1179
  }
1133
1180
 
1134
- ${p} {
1181
+ ${b} {
1135
1182
  width: var(--column-width-mobile) !important;
1136
1183
  margin-left: var(--column-margin-left-mobile) !important;
1137
1184
  }
1138
1185
  },
1139
1186
  `;
1140
1187
  }
1141
- function f(p, b) {
1188
+ function f(b, p) {
1142
1189
  return {
1143
- ...p.link ? {
1144
- href: p.link
1190
+ ...b.link ? {
1191
+ href: b.link
1145
1192
  } : {},
1146
1193
  [H()]: "builder-column",
1147
- style: We(g(b))
1194
+ style: Oe(g(p))
1148
1195
  };
1149
1196
  }
1150
- return /* @__PURE__ */ V(I, { children: [
1151
- /* @__PURE__ */ V(
1197
+ return /* @__PURE__ */ N(w, { children: [
1198
+ /* @__PURE__ */ N(
1152
1199
  "div",
1153
1200
  {
1154
- className: Ft((S = e.builderBlock) == null ? void 0 : S.id) + " div-49f40bae",
1201
+ className: Mt((v = e.builderBlock) == null ? void 0 : v.id) + " div-49f40bae",
1155
1202
  style: h(),
1156
1203
  children: [
1157
1204
  /* @__PURE__ */ s(
1158
- Y,
1205
+ Q,
1159
1206
  {
1160
1207
  id: "builderio-columns",
1161
- styles: x(),
1208
+ styles: y(),
1162
1209
  nonce: e.builderContext.nonce
1163
1210
  }
1164
1211
  ),
1165
- (v = e.columns) == null ? void 0 : v.map((p, b) => /* @__PURE__ */ s(
1166
- oe,
1212
+ (x = e.columns) == null ? void 0 : x.map((b, p) => /* @__PURE__ */ s(
1213
+ re,
1167
1214
  {
1168
- TagName: o(p),
1215
+ TagName: o(b),
1169
1216
  actionAttributes: {},
1170
- attributes: f(p, b),
1217
+ attributes: f(b, p),
1171
1218
  children: /* @__PURE__ */ s(
1172
1219
  F,
1173
1220
  {
1174
- path: `columns.${b}.blocks`,
1221
+ path: `columns.${p}.blocks`,
1175
1222
  parent: e.builderBlock.id,
1176
1223
  styleProp: {
1177
1224
  flexGrow: "1"
@@ -1179,11 +1226,11 @@ function $t(e) {
1179
1226
  context: e.builderContext,
1180
1227
  registeredComponents: e.builderComponents,
1181
1228
  linkComponent: e.builderLinkComponent,
1182
- blocks: p.blocks
1229
+ blocks: b.blocks
1183
1230
  }
1184
1231
  )
1185
1232
  },
1186
- b
1233
+ p
1187
1234
  ))
1188
1235
  ]
1189
1236
  }
@@ -1194,55 +1241,55 @@ function $t(e) {
1194
1241
  }` })
1195
1242
  ] });
1196
1243
  }
1197
- function Dt(e) {
1244
+ function qt(e) {
1198
1245
  return /* @__PURE__ */ s("span", { children: e.children });
1199
1246
  }
1200
- function ge(e) {
1247
+ function ye(e) {
1201
1248
  return e.replace(/http(s)?:/, "");
1202
1249
  }
1203
- function Lt(e = "", t, n) {
1250
+ function zt(e = "", t, n) {
1204
1251
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1205
1252
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1206
1253
  }
1207
- function Ot(e, t) {
1254
+ function Kt(e, t) {
1208
1255
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1209
1256
  return e;
1210
1257
  if (t === "master")
1211
- return ge(e);
1258
+ return ye(e);
1212
1259
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1213
1260
  if (n) {
1214
1261
  const i = e.split(n[0]), o = n[3], r = t.match("x") ? t : `${t}x`;
1215
- return ge(`${i[0]}_${r}${o}`);
1262
+ return ye(`${i[0]}_${r}${o}`);
1216
1263
  }
1217
1264
  return null;
1218
1265
  }
1219
- function Q(e) {
1266
+ function X(e) {
1220
1267
  if (!e)
1221
1268
  return e;
1222
1269
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1223
1270
  if (e.match(/builder\.io/)) {
1224
1271
  let n = e;
1225
1272
  const i = Number(e.split("?width=")[1]);
1226
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Lt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1273
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${zt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1227
1274
  }
1228
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ot(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1275
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Kt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1229
1276
  }
1230
- function Ut(e) {
1277
+ function Jt(e) {
1231
1278
  var o, r, a, l, d, c;
1232
1279
  function t() {
1233
1280
  var m;
1234
1281
  const g = e.image || e.src;
1235
1282
  if (!g || // We can auto add srcset for cdn.builder.io and shopify
1236
1283
  // images, otherwise you can supply this prop manually
1237
- !(g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/)))
1284
+ !(typeof g == "string" && (g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/))))
1238
1285
  return e.srcset;
1239
1286
  if (!e.noWebp) {
1240
1287
  if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1241
1288
  if (!e.srcset.includes(e.image.split("?")[0]))
1242
- return console.debug("Removed given srcset"), Q(g);
1289
+ return console.debug("Removed given srcset"), X(g);
1243
1290
  } else if (e.image && !e.srcset)
1244
- return Q(g);
1245
- return Q(g);
1291
+ return X(g);
1292
+ return X(g);
1246
1293
  }
1247
1294
  }
1248
1295
  function n() {
@@ -1259,10 +1306,10 @@ function Ut(e) {
1259
1306
  };
1260
1307
  return e.aspectRatio ? h : void 0;
1261
1308
  }
1262
- return B(() => {
1263
- }, []), /* @__PURE__ */ V(I, { children: [
1264
- /* @__PURE__ */ V(I, { children: [
1265
- /* @__PURE__ */ V("picture", { children: [
1309
+ return A(() => {
1310
+ }, []), /* @__PURE__ */ N(w, { children: [
1311
+ /* @__PURE__ */ N(w, { children: [
1312
+ /* @__PURE__ */ N("picture", { children: [
1266
1313
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1267
1314
  /* @__PURE__ */ s(
1268
1315
  "img",
@@ -1276,7 +1323,7 @@ function Ut(e) {
1276
1323
  objectFit: e.backgroundSize || "cover",
1277
1324
  ...i()
1278
1325
  },
1279
- className: "builder-image" + (e.className ? " " + e.className : "") + " img-7a292ab8",
1326
+ className: "builder-image" + (e.className ? " " + e.className : "") + " img-c071ff08",
1280
1327
  src: e.image,
1281
1328
  srcSet: t(),
1282
1329
  sizes: e.sizes
@@ -1286,23 +1333,23 @@ function Ut(e) {
1286
1333
  e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
1287
1334
  "div",
1288
1335
  {
1289
- className: "builder-image-sizer div-7a292ab8",
1336
+ className: "builder-image-sizer div-c071ff08",
1290
1337
  style: {
1291
1338
  paddingTop: e.aspectRatio * 100 + "%"
1292
1339
  }
1293
1340
  }
1294
1341
  ) : null,
1295
- (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(I, { children: e.children }) : null,
1296
- !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
1342
+ (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(w, { children: e.children }) : null,
1343
+ !e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-c071ff08-2", children: e.children }) : null
1297
1344
  ] }),
1298
- /* @__PURE__ */ s("style", { children: `.img-7a292ab8 {
1345
+ /* @__PURE__ */ s("style", { children: `.img-c071ff08 {
1299
1346
  opacity: 1;
1300
1347
  transition: opacity 0.2s ease-in-out;
1301
- }.div-7a292ab8 {
1348
+ }.div-c071ff08 {
1302
1349
  width: 100%;
1303
1350
  pointer-events: none;
1304
1351
  font-size: 0;
1305
- }.div-7a292ab8-2 {
1352
+ }.div-c071ff08-2 {
1306
1353
  display: flex;
1307
1354
  flex-direction: column;
1308
1355
  align-items: stretch;
@@ -1314,7 +1361,7 @@ function Ut(e) {
1314
1361
  }` })
1315
1362
  ] });
1316
1363
  }
1317
- function Ht(e) {
1364
+ function Gt(e) {
1318
1365
  return /* @__PURE__ */ s(
1319
1366
  "section",
1320
1367
  {
@@ -1335,7 +1382,7 @@ function Ht(e) {
1335
1382
  }
1336
1383
  );
1337
1384
  }
1338
- const X = {
1385
+ const Z = {
1339
1386
  "@type": "@builder.io/sdk:Element",
1340
1387
  layerName: "Accordion item title",
1341
1388
  responsiveStyles: {
@@ -1364,7 +1411,7 @@ const X = {
1364
1411
  }
1365
1412
  }
1366
1413
  }]
1367
- }, Z = {
1414
+ }, ee = {
1368
1415
  "@type": "@builder.io/sdk:Element",
1369
1416
  layerName: "Accordion item detail",
1370
1417
  responsiveStyles: {
@@ -1395,7 +1442,7 @@ const X = {
1395
1442
  }
1396
1443
  }
1397
1444
  }]
1398
- }, jt = {
1445
+ }, Yt = {
1399
1446
  name: "Builder:Accordion",
1400
1447
  canHaveChildren: !0,
1401
1448
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1412,19 +1459,19 @@ const X = {
1412
1459
  name: "title",
1413
1460
  type: "uiBlocks",
1414
1461
  hideFromUI: !0,
1415
- defaultValue: [X]
1462
+ defaultValue: [Z]
1416
1463
  }, {
1417
1464
  name: "detail",
1418
1465
  type: "uiBlocks",
1419
1466
  hideFromUI: !0,
1420
- defaultValue: [Z]
1467
+ defaultValue: [ee]
1421
1468
  }],
1422
1469
  defaultValue: [{
1423
- title: [X],
1424
- detail: [Z]
1470
+ title: [Z],
1471
+ detail: [ee]
1425
1472
  }, {
1426
- title: [X],
1427
- detail: [Z]
1473
+ title: [Z],
1474
+ detail: [ee]
1428
1475
  }],
1429
1476
  showIf: (e) => !e.get("useChildrenForItems")
1430
1477
  }, {
@@ -1459,8 +1506,8 @@ const X = {
1459
1506
  builderComponents: !0,
1460
1507
  builderLinkComponent: !0
1461
1508
  }
1462
- }, be = (e) => e.toString();
1463
- function Mt(e) {
1509
+ }, xe = (e) => e.toString();
1510
+ function Qt(e) {
1464
1511
  var g;
1465
1512
  const [t, n] = R(() => []);
1466
1513
  function i() {
@@ -1479,7 +1526,7 @@ function Mt(e) {
1479
1526
  };
1480
1527
  }
1481
1528
  function r() {
1482
- const x = {
1529
+ const y = {
1483
1530
  ...{
1484
1531
  display: "flex",
1485
1532
  flexDirection: "column"
@@ -1488,7 +1535,7 @@ function Mt(e) {
1488
1535
  cursor: "pointer"
1489
1536
  };
1490
1537
  return Object.fromEntries(
1491
- Object.entries(x).filter(([f, S]) => S !== void 0)
1538
+ Object.entries(y).filter(([f, v]) => v !== void 0)
1492
1539
  );
1493
1540
  }
1494
1541
  function a(m) {
@@ -1501,22 +1548,22 @@ function Mt(e) {
1501
1548
  let m = null;
1502
1549
  if (e.grid && t.length && document) {
1503
1550
  const f = t[0];
1504
- let v = document.querySelector(
1551
+ let x = document.querySelector(
1505
1552
  `.builder-accordion-title[data-index="${f}"]`
1506
1553
  );
1507
- if (m = f, v) {
1508
- let p = v.getBoundingClientRect();
1509
- for (; v = v && v.nextElementSibling; )
1510
- if (v) {
1511
- if (v.classList.contains("builder-accordion-detail"))
1554
+ if (m = f, x) {
1555
+ let b = x.getBoundingClientRect();
1556
+ for (; x = x && x.nextElementSibling; )
1557
+ if (x) {
1558
+ if (x.classList.contains("builder-accordion-detail"))
1512
1559
  continue;
1513
- const b = v.getBoundingClientRect();
1514
- if (b.left > p.left) {
1515
- const y = parseInt(
1516
- v.getAttribute("data-index") || "",
1560
+ const p = x.getBoundingClientRect();
1561
+ if (p.left > b.left) {
1562
+ const C = parseInt(
1563
+ x.getAttribute("data-index") || "",
1517
1564
  10
1518
1565
  );
1519
- isNaN(y) || (p = b, m = y);
1566
+ isNaN(C) || (b = p, m = C);
1520
1567
  } else
1521
1568
  break;
1522
1569
  }
@@ -1532,31 +1579,31 @@ function Mt(e) {
1532
1579
  }
1533
1580
  };
1534
1581
  return Object.fromEntries(
1535
- Object.entries(m).filter(([x, f]) => f !== void 0)
1582
+ Object.entries(m).filter(([y, f]) => f !== void 0)
1536
1583
  );
1537
1584
  }
1538
1585
  function h(m) {
1539
- t.includes(m) ? n(i() ? [] : t.filter((x) => x !== m)) : n(i() ? [m] : t.concat(m));
1586
+ t.includes(m) ? n(i() ? [] : t.filter((y) => y !== m)) : n(i() ? [m] : t.concat(m));
1540
1587
  }
1541
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, x) => /* @__PURE__ */ V(I, { children: [
1588
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, y) => /* @__PURE__ */ N(w, { children: [
1542
1589
  /* @__PURE__ */ s(
1543
1590
  "div",
1544
1591
  {
1545
- className: a(x),
1592
+ className: a(y),
1546
1593
  style: {
1547
1594
  ...r(),
1548
1595
  ...e.grid && {
1549
1596
  width: e.gridRowWidth,
1550
- order: d() !== null ? be(x) : be(x + 1)
1597
+ order: d() !== null ? xe(y) : xe(y + 1)
1551
1598
  }
1552
1599
  },
1553
- "data-index": x,
1554
- onClick: (f) => h(x),
1600
+ "data-index": y,
1601
+ onClick: (f) => h(y),
1555
1602
  children: /* @__PURE__ */ s(
1556
1603
  F,
1557
1604
  {
1558
1605
  blocks: m.title,
1559
- path: `items.${x}.title`,
1606
+ path: `items.${y}.title`,
1560
1607
  parent: e.builderBlock.id,
1561
1608
  context: e.builderContext,
1562
1609
  registeredComponents: e.builderComponents,
@@ -1565,16 +1612,16 @@ function Mt(e) {
1565
1612
  )
1566
1613
  }
1567
1614
  ),
1568
- t.includes(x) ? /* @__PURE__ */ s(
1615
+ t.includes(y) ? /* @__PURE__ */ s(
1569
1616
  "div",
1570
1617
  {
1571
- className: l(x),
1618
+ className: l(y),
1572
1619
  style: c(),
1573
1620
  children: /* @__PURE__ */ s(
1574
1621
  F,
1575
1622
  {
1576
1623
  blocks: m.detail,
1577
- path: `items.${x}.detail`,
1624
+ path: `items.${y}.detail`,
1578
1625
  parent: e.builderBlock.id,
1579
1626
  context: e.builderContext,
1580
1627
  registeredComponents: e.builderComponents,
@@ -1585,7 +1632,7 @@ function Mt(e) {
1585
1632
  ) : null
1586
1633
  ] })) });
1587
1634
  }
1588
- const _t = {
1635
+ const Xt = {
1589
1636
  name: "Core:Button",
1590
1637
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1591
1638
  defaultStyles: {
@@ -1621,7 +1668,7 @@ const _t = {
1621
1668
  shouldReceiveBuilderProps: {
1622
1669
  builderLinkComponent: !0
1623
1670
  }
1624
- }, qt = {
1671
+ }, Zt = {
1625
1672
  // TODO: ways to statically preprocess JSON for references, functions, etc
1626
1673
  name: "Columns",
1627
1674
  isRSC: !0,
@@ -1828,13 +1875,13 @@ const _t = {
1828
1875
  builderComponents: !0,
1829
1876
  builderLinkComponent: !0
1830
1877
  }
1831
- }, Kt = {
1878
+ }, en = {
1832
1879
  name: "Fragment",
1833
1880
  static: !0,
1834
1881
  hidden: !0,
1835
1882
  canHaveChildren: !0,
1836
1883
  noWrap: !0
1837
- }, zt = {
1884
+ }, de = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], tn = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], nn = {
1838
1885
  name: "Image",
1839
1886
  static: !0,
1840
1887
  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",
@@ -1849,7 +1896,7 @@ const _t = {
1849
1896
  name: "image",
1850
1897
  type: "file",
1851
1898
  bubble: !0,
1852
- allowedFileTypes: ["jpeg", "jpg", "png", "svg", "webp"],
1899
+ allowedFileTypes: de,
1853
1900
  required: !0,
1854
1901
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1855
1902
  onChange: (e) => {
@@ -1942,7 +1989,7 @@ const _t = {
1942
1989
  shouldReceiveBuilderProps: {
1943
1990
  builderBlock: !0
1944
1991
  }
1945
- }, Jt = {
1992
+ }, on = {
1946
1993
  name: "Core:Section",
1947
1994
  static: !0,
1948
1995
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1981,7 +2028,7 @@ const _t = {
1981
2028
  }
1982
2029
  }
1983
2030
  }]
1984
- }, Gt = {
2031
+ }, an = {
1985
2032
  name: "Slot",
1986
2033
  isRSC: !0,
1987
2034
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1999,7 +2046,7 @@ const _t = {
1999
2046
  builderComponents: !0
2000
2047
  }
2001
2048
  };
2002
- function Yt(e) {
2049
+ function rn(e) {
2003
2050
  var t, n, i;
2004
2051
  return /* @__PURE__ */ s(
2005
2052
  "div",
@@ -2023,7 +2070,7 @@ function Yt(e) {
2023
2070
  }
2024
2071
  );
2025
2072
  }
2026
- const Qt = {
2073
+ const ln = {
2027
2074
  name: "Symbol",
2028
2075
  noWrap: !0,
2029
2076
  static: !0,
@@ -2062,7 +2109,7 @@ const Qt = {
2062
2109
  builderComponents: !0,
2063
2110
  builderLinkComponent: !0
2064
2111
  }
2065
- }, ee = {
2112
+ }, te = {
2066
2113
  "@type": "@builder.io/sdk:Element",
2067
2114
  responsiveStyles: {
2068
2115
  large: {
@@ -2084,7 +2131,7 @@ const Qt = {
2084
2131
  text: "New tab"
2085
2132
  }
2086
2133
  }
2087
- }, te = {
2134
+ }, ne = {
2088
2135
  "@type": "@builder.io/sdk:Element",
2089
2136
  responsiveStyles: {
2090
2137
  large: {
@@ -2100,7 +2147,7 @@ const Qt = {
2100
2147
  text: "New tab content "
2101
2148
  }
2102
2149
  }
2103
- }, Xt = {
2150
+ }, sn = {
2104
2151
  name: "Builder: Tabs",
2105
2152
  inputs: [{
2106
2153
  name: "tabs",
@@ -2110,16 +2157,16 @@ const Qt = {
2110
2157
  name: "label",
2111
2158
  type: "uiBlocks",
2112
2159
  hideFromUI: !0,
2113
- defaultValue: [ee]
2160
+ defaultValue: [te]
2114
2161
  }, {
2115
2162
  name: "content",
2116
2163
  type: "uiBlocks",
2117
2164
  hideFromUI: !0,
2118
- defaultValue: [te]
2165
+ defaultValue: [ne]
2119
2166
  }],
2120
2167
  defaultValue: [{
2121
2168
  label: [{
2122
- ...ee,
2169
+ ...te,
2123
2170
  component: {
2124
2171
  name: "Text",
2125
2172
  options: {
@@ -2128,7 +2175,7 @@ const Qt = {
2128
2175
  }
2129
2176
  }],
2130
2177
  content: [{
2131
- ...te,
2178
+ ...ne,
2132
2179
  component: {
2133
2180
  name: "Text",
2134
2181
  options: {
@@ -2138,7 +2185,7 @@ const Qt = {
2138
2185
  }]
2139
2186
  }, {
2140
2187
  label: [{
2141
- ...ee,
2188
+ ...te,
2142
2189
  component: {
2143
2190
  name: "Text",
2144
2191
  options: {
@@ -2147,7 +2194,7 @@ const Qt = {
2147
2194
  }
2148
2195
  }],
2149
2196
  content: [{
2150
- ...te,
2197
+ ...ne,
2151
2198
  component: {
2152
2199
  name: "Text",
2153
2200
  options: {
@@ -2204,7 +2251,7 @@ const Qt = {
2204
2251
  builderLinkComponent: !0
2205
2252
  }
2206
2253
  };
2207
- function Zt(e) {
2254
+ function cn(e) {
2208
2255
  var r;
2209
2256
  const [t, n] = R(
2210
2257
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
@@ -2215,7 +2262,7 @@ function Zt(e) {
2215
2262
  function o(a) {
2216
2263
  a === t && e.collapsible ? n(-1) : n(a);
2217
2264
  }
2218
- return /* @__PURE__ */ V("div", { children: [
2265
+ return /* @__PURE__ */ N("div", { children: [
2219
2266
  /* @__PURE__ */ s(
2220
2267
  "div",
2221
2268
  {
@@ -2263,7 +2310,7 @@ function Zt(e) {
2263
2310
  ) }) : null
2264
2311
  ] });
2265
2312
  }
2266
- const en = {
2313
+ const dn = {
2267
2314
  shouldReceiveBuilderProps: {
2268
2315
  builderBlock: !1,
2269
2316
  builderContext: !0
@@ -2286,7 +2333,7 @@ const en = {
2286
2333
  textAlign: "center"
2287
2334
  }
2288
2335
  };
2289
- function tn(e) {
2336
+ function un(e) {
2290
2337
  function t() {
2291
2338
  var l;
2292
2339
  const n = e.builderContext, {
@@ -2297,7 +2344,7 @@ function tn(e) {
2297
2344
  } = n;
2298
2345
  return String(((l = e.text) == null ? void 0 : l.toString()) || "").replace(
2299
2346
  /{{([^}]+)}}/g,
2300
- (d, c) => O({
2347
+ (d, c) => D({
2301
2348
  code: c,
2302
2349
  context: i,
2303
2350
  localState: o,
@@ -2317,7 +2364,7 @@ function tn(e) {
2317
2364
  }
2318
2365
  );
2319
2366
  }
2320
- const nn = {
2367
+ const mn = {
2321
2368
  name: "Custom Code",
2322
2369
  static: !0,
2323
2370
  requiredPermissions: ["editCode"],
@@ -2340,9 +2387,9 @@ const nn = {
2340
2387
  advanced: !0
2341
2388
  }]
2342
2389
  };
2343
- function on(e) {
2344
- const t = $(null), [n, i] = R(() => []), [o, r] = R(() => []);
2345
- return B(() => {
2390
+ function fn(e) {
2391
+ const t = L(null), [n, i] = R(() => []), [o, r] = R(() => []);
2392
+ return A(() => {
2346
2393
  var l;
2347
2394
  if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
2348
2395
  return;
@@ -2378,7 +2425,7 @@ function on(e) {
2378
2425
  }
2379
2426
  );
2380
2427
  }
2381
- const an = {
2428
+ const hn = {
2382
2429
  name: "Embed",
2383
2430
  static: !0,
2384
2431
  inputs: [{
@@ -2393,9 +2440,9 @@ const an = {
2393
2440
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2394
2441
  hideFromUI: !0
2395
2442
  }]
2396
- }, rn = ["text/javascript", "application/javascript", "application/ecmascript"], ln = (e) => rn.includes(e.type);
2397
- function sn(e) {
2398
- const t = $(null), [n, i] = R(() => []), [o, r] = R(() => []), [a, l] = R(() => !1);
2443
+ }, gn = ["text/javascript", "application/javascript", "application/ecmascript"], bn = (e) => gn.includes(e.type);
2444
+ function pn(e) {
2445
+ const t = L(null), [n, i] = R(() => []), [o, r] = R(() => []), [a, l] = R(() => !1);
2399
2446
  function d() {
2400
2447
  if (!t.current || !t.current.getElementsByTagName)
2401
2448
  return;
@@ -2406,7 +2453,7 @@ function sn(e) {
2406
2453
  n.push(g.src);
2407
2454
  const m = document.createElement("script");
2408
2455
  m.async = !0, m.src = g.src, document.head.appendChild(m);
2409
- } else if (ln(g) && !o.includes(g.innerText))
2456
+ } else if (bn(g) && !o.includes(g.innerText))
2410
2457
  try {
2411
2458
  o.push(g.innerText), new Function(g.innerText)();
2412
2459
  } catch (m) {
@@ -2414,7 +2461,7 @@ function sn(e) {
2414
2461
  }
2415
2462
  }
2416
2463
  }
2417
- return B(() => {
2464
+ return A(() => {
2418
2465
  t.current && !a && (l(!0), d());
2419
2466
  }, [t.current, a]), /* @__PURE__ */ s(
2420
2467
  "div",
@@ -2425,7 +2472,7 @@ function sn(e) {
2425
2472
  }
2426
2473
  );
2427
2474
  }
2428
- const cn = {
2475
+ const yn = {
2429
2476
  name: "Form:Form",
2430
2477
  // editableTags: ['builder-form-error']
2431
2478
  defaults: {
@@ -2662,91 +2709,91 @@ const cn = {
2662
2709
  builderComponents: !0,
2663
2710
  builderLinkComponent: !0
2664
2711
  }
2665
- }, dn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], un = () => {
2712
+ }, xn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], vn = () => {
2666
2713
  const e = process.env.NODE_ENV || "production";
2667
- return dn.includes(e) ? e : "production";
2714
+ return xn.includes(e) ? e : "production";
2668
2715
  };
2669
- function mn(e) {
2716
+ function Sn(e) {
2670
2717
  var g, m;
2671
- const t = $(null), [n, i] = R(() => "unsubmitted"), [o, r] = R(() => null), [a, l] = R(() => "");
2672
- function d(x) {
2673
- var S, v;
2718
+ const t = L(null), [n, i] = R(() => "unsubmitted"), [o, r] = R(() => null), [a, l] = R(() => "");
2719
+ function d(y) {
2720
+ var v, x;
2674
2721
  const f = {
2675
2722
  ...e.builderContext.rootState,
2676
- ...x
2723
+ ...y
2677
2724
  };
2678
- e.builderContext.rootSetState ? (v = (S = e.builderContext).rootSetState) == null || v.call(S, f) : e.builderContext.rootState = f;
2725
+ e.builderContext.rootSetState ? (x = (v = e.builderContext).rootSetState) == null || x.call(v, f) : e.builderContext.rootState = f;
2679
2726
  }
2680
2727
  function c() {
2681
2728
  return W() && e.previewState || n;
2682
2729
  }
2683
- function h(x) {
2684
- var S;
2730
+ function h(y) {
2731
+ var v;
2685
2732
  const f = e.sendWithJs || e.sendSubmissionsTo === "email";
2686
2733
  if (e.sendSubmissionsTo === "zapier")
2687
- x.preventDefault();
2734
+ y.preventDefault();
2688
2735
  else if (f) {
2689
2736
  if (!(e.action || e.sendSubmissionsTo === "email")) {
2690
- x.preventDefault();
2737
+ y.preventDefault();
2691
2738
  return;
2692
2739
  }
2693
- x.preventDefault();
2694
- const v = x.currentTarget || x.target, p = e.customHeaders || {};
2695
- let b;
2696
- const y = new FormData(v), A = Array.from(v.querySelectorAll("input,select,textarea")).filter((u) => !!u.name).map((u) => {
2697
- let C;
2698
- const N = u.name;
2740
+ y.preventDefault();
2741
+ const x = y.currentTarget || y.target, b = e.customHeaders || {};
2742
+ let p;
2743
+ const C = new FormData(x), P = Array.from(x.querySelectorAll("input,select,textarea")).filter((u) => !!u.name).map((u) => {
2744
+ let k;
2745
+ const V = u.name;
2699
2746
  if (u instanceof HTMLInputElement)
2700
2747
  if (u.type === "radio") {
2701
2748
  if (u.checked)
2702
- return C = u.name, {
2703
- key: N,
2704
- value: C
2749
+ return k = u.name, {
2750
+ key: V,
2751
+ value: k
2705
2752
  };
2706
2753
  } else if (u.type === "checkbox")
2707
- C = u.checked;
2754
+ k = u.checked;
2708
2755
  else if (u.type === "number" || u.type === "range") {
2709
2756
  const E = u.valueAsNumber;
2710
- isNaN(E) || (C = E);
2757
+ isNaN(E) || (k = E);
2711
2758
  } else
2712
- u.type === "file" ? C = u.files : C = u.value;
2759
+ u.type === "file" ? k = u.files : k = u.value;
2713
2760
  else
2714
- C = u.value;
2761
+ k = u.value;
2715
2762
  return {
2716
- key: N,
2717
- value: C
2763
+ key: V,
2764
+ value: k
2718
2765
  };
2719
2766
  });
2720
- let k = e.contentType;
2721
- if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(A).forEach(({ value: u }) => {
2722
- (u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (k = "multipart/form-data");
2723
- }), k !== "application/json")
2724
- b = y;
2767
+ let S = e.contentType;
2768
+ if (e.sendSubmissionsTo === "email" && (S = "multipart/form-data"), Array.from(P).forEach(({ value: u }) => {
2769
+ (u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (S = "multipart/form-data");
2770
+ }), S !== "application/json")
2771
+ p = C;
2725
2772
  else {
2726
2773
  const u = {};
2727
- Array.from(A).forEach(({ value: C, key: N }) => {
2728
- Pe(u, N, C);
2729
- }), b = JSON.stringify(u);
2774
+ Array.from(P).forEach(({ value: k, key: V }) => {
2775
+ Ne(u, V, k);
2776
+ }), p = JSON.stringify(u);
2730
2777
  }
2731
- k && k !== "multipart/form-data" && (f && ((S = e.action) != null && S.includes("zapier.com")) || (p["content-type"] = k));
2732
- const w = new CustomEvent("presubmit", { detail: { body: b } });
2733
- if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
2778
+ S && S !== "multipart/form-data" && (f && ((v = e.action) != null && v.includes("zapier.com")) || (b["content-type"] = S));
2779
+ const I = new CustomEvent("presubmit", { detail: { body: p } });
2780
+ if (t.current && (t.current.dispatchEvent(I), I.defaultPrevented))
2734
2781
  return;
2735
2782
  i("sending");
2736
- const P = `${un() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2783
+ const B = `${vn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2737
2784
  e.sendSubmissionsToEmail || ""
2738
- )}&name=${encodeURIComponent(e.name || "")}`, T = e.sendSubmissionsTo === "email" ? P : e.action;
2739
- ke(T), fetch(T, { body: b, headers: p, method: e.method || "post" }).then(
2785
+ )}&name=${encodeURIComponent(e.name || "")}`, T = e.sendSubmissionsTo === "email" ? B : e.action;
2786
+ we(T), fetch(T, { body: p, headers: b, method: e.method || "post" }).then(
2740
2787
  async (u) => {
2741
- let C;
2742
- const N = u.headers.get("content-type");
2743
- if (N && N.indexOf("application/json") !== -1 ? C = await u.json() : C = await u.text(), !u.ok && e.errorMessagePath) {
2744
- let E = Ee(C, e.errorMessagePath);
2788
+ let k;
2789
+ const V = u.headers.get("content-type");
2790
+ if (V && V.indexOf("application/json") !== -1 ? k = await u.json() : k = await u.text(), !u.ok && e.errorMessagePath) {
2791
+ let E = Be(k, e.errorMessagePath);
2745
2792
  E && (typeof E != "string" && (E = JSON.stringify(E)), l(E), d({ formErrorMessage: E }));
2746
2793
  }
2747
- if (r(C), i(u.ok ? "success" : "error"), u.ok) {
2794
+ if (r(k), i(u.ok ? "success" : "error"), u.ok) {
2748
2795
  const E = new CustomEvent("submit:success", {
2749
- detail: { res: u, body: C }
2796
+ detail: { res: u, body: k }
2750
2797
  });
2751
2798
  if (t.current) {
2752
2799
  if (t.current.dispatchEvent(E), E.defaultPrevented)
@@ -2764,17 +2811,17 @@ function mn(e) {
2764
2811
  }
2765
2812
  },
2766
2813
  (u) => {
2767
- const C = new CustomEvent("submit:error", {
2814
+ const k = new CustomEvent("submit:error", {
2768
2815
  detail: { error: u }
2769
2816
  });
2770
- t.current && (t.current.dispatchEvent(C), C.defaultPrevented) || (r(u), i("error"));
2817
+ t.current && (t.current.dispatchEvent(k), k.defaultPrevented) || (r(u), i("error"));
2771
2818
  }
2772
2819
  );
2773
2820
  }
2774
2821
  }
2775
- return /* @__PURE__ */ V(I, { children: [
2822
+ return /* @__PURE__ */ N(w, { children: [
2776
2823
  " ",
2777
- /* @__PURE__ */ V(
2824
+ /* @__PURE__ */ N(
2778
2825
  "form",
2779
2826
  {
2780
2827
  validate: e.validate,
@@ -2782,13 +2829,13 @@ function mn(e) {
2782
2829
  action: !e.sendWithJs && e.action,
2783
2830
  method: e.method,
2784
2831
  name: e.name,
2785
- onSubmit: (x) => h(x),
2832
+ onSubmit: (y) => h(y),
2786
2833
  ...e.attributes,
2787
2834
  children: [
2788
- 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(
2789
- j,
2835
+ e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(w, { children: (m = (g = e.builderBlock) == null ? void 0 : g.children) == null ? void 0 : m.map((y, f) => /* @__PURE__ */ s(
2836
+ _,
2790
2837
  {
2791
- block: x,
2838
+ block: y,
2792
2839
  context: e.builderContext,
2793
2840
  registeredComponents: e.builderComponents,
2794
2841
  linkComponent: e.builderLinkComponent
@@ -2828,7 +2875,7 @@ function mn(e) {
2828
2875
  " "
2829
2876
  ] });
2830
2877
  }
2831
- const fn = {
2878
+ const kn = {
2832
2879
  name: "Form:Input",
2833
2880
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2834
2881
  inputs: [
@@ -2880,8 +2927,8 @@ const fn = {
2880
2927
  borderColor: "#ccc"
2881
2928
  }
2882
2929
  };
2883
- function hn(e) {
2884
- return /* @__PURE__ */ Ie(
2930
+ function Cn(e) {
2931
+ return /* @__PURE__ */ Re(
2885
2932
  "input",
2886
2933
  {
2887
2934
  ...e.attributes,
@@ -2895,7 +2942,7 @@ function hn(e) {
2895
2942
  }
2896
2943
  );
2897
2944
  }
2898
- const gn = {
2945
+ const Tn = {
2899
2946
  name: "Form:Select",
2900
2947
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2901
2948
  defaultStyles: {
@@ -2938,9 +2985,9 @@ const gn = {
2938
2985
  static: !0,
2939
2986
  noWrap: !0
2940
2987
  };
2941
- function bn(e) {
2988
+ function wn(e) {
2942
2989
  var t;
2943
- return /* @__PURE__ */ Ie(
2990
+ return /* @__PURE__ */ Re(
2944
2991
  "select",
2945
2992
  {
2946
2993
  ...e.attributes,
@@ -2953,7 +3000,7 @@ function bn(e) {
2953
3000
  (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2954
3001
  );
2955
3002
  }
2956
- const pn = {
3003
+ const In = {
2957
3004
  name: "Form:SubmitButton",
2958
3005
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2959
3006
  defaultStyles: {
@@ -2979,10 +3026,10 @@ const pn = {
2979
3026
  // TODO: defaultChildren
2980
3027
  // canHaveChildren: true,
2981
3028
  };
2982
- function yn(e) {
3029
+ function En(e) {
2983
3030
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
2984
3031
  }
2985
- const xn = {
3032
+ const Rn = {
2986
3033
  name: "Form:TextArea",
2987
3034
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
2988
3035
  inputs: [{
@@ -3019,7 +3066,7 @@ const xn = {
3019
3066
  static: !0,
3020
3067
  noWrap: !0
3021
3068
  };
3022
- function vn(e) {
3069
+ function Pn(e) {
3023
3070
  return /* @__PURE__ */ s(
3024
3071
  "textarea",
3025
3072
  {
@@ -3032,7 +3079,7 @@ function vn(e) {
3032
3079
  }
3033
3080
  );
3034
3081
  }
3035
- const Sn = {
3082
+ const Bn = {
3036
3083
  // friendlyName?
3037
3084
  name: "Raw:Img",
3038
3085
  hideFromInsertMenu: !0,
@@ -3041,13 +3088,13 @@ const Sn = {
3041
3088
  name: "image",
3042
3089
  bubble: !0,
3043
3090
  type: "file",
3044
- allowedFileTypes: ["jpeg", "jpg", "png", "svg", "gif", "webp"],
3091
+ allowedFileTypes: de,
3045
3092
  required: !0
3046
3093
  }],
3047
3094
  noWrap: !0,
3048
3095
  static: !0
3049
3096
  };
3050
- function kn(e) {
3097
+ function Vn(e) {
3051
3098
  return /* @__PURE__ */ s(
3052
3099
  "img",
3053
3100
  {
@@ -3062,7 +3109,7 @@ function kn(e) {
3062
3109
  W() && e.imgSrc || "default-key"
3063
3110
  );
3064
3111
  }
3065
- const Cn = {
3112
+ const An = {
3066
3113
  name: "Video",
3067
3114
  canHaveChildren: !0,
3068
3115
  defaultStyles: {
@@ -3073,14 +3120,14 @@ const Cn = {
3073
3120
  inputs: [{
3074
3121
  name: "video",
3075
3122
  type: "file",
3076
- allowedFileTypes: ["mp4"],
3123
+ allowedFileTypes: tn,
3077
3124
  bubble: !0,
3078
3125
  defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
3079
3126
  required: !0
3080
3127
  }, {
3081
3128
  name: "posterImage",
3082
3129
  type: "file",
3083
- allowedFileTypes: ["jpeg", "png"],
3130
+ allowedFileTypes: de,
3084
3131
  helperText: "Image to show before the video plays"
3085
3132
  }, {
3086
3133
  name: "autoPlay",
@@ -3147,7 +3194,7 @@ const Cn = {
3147
3194
  builderBlock: !0
3148
3195
  }
3149
3196
  };
3150
- function Tn(e) {
3197
+ function Nn(e) {
3151
3198
  var i, o, r, a, l, d, c;
3152
3199
  function t() {
3153
3200
  return {
@@ -3173,7 +3220,7 @@ function Tn(e) {
3173
3220
  ...t()
3174
3221
  };
3175
3222
  }
3176
- return /* @__PURE__ */ V(
3223
+ return /* @__PURE__ */ N(
3177
3224
  "div",
3178
3225
  {
3179
3226
  style: {
@@ -3248,64 +3295,64 @@ function Tn(e) {
3248
3295
  }
3249
3296
  );
3250
3297
  }
3251
- const In = () => [{
3252
- component: on,
3253
- ...nn
3298
+ const Wn = () => [{
3299
+ component: fn,
3300
+ ...mn
3254
3301
  }, {
3255
- component: sn,
3256
- ...an
3302
+ component: pn,
3303
+ ...hn
3257
3304
  }, {
3258
- component: mn,
3259
- ...cn
3305
+ component: Sn,
3306
+ ...yn
3260
3307
  }, {
3261
- component: hn,
3262
- ...fn
3308
+ component: Cn,
3309
+ ...kn
3263
3310
  }, {
3264
- component: yn,
3265
- ...pn
3311
+ component: En,
3312
+ ...In
3266
3313
  }, {
3267
- component: bn,
3268
- ...gn
3314
+ component: wn,
3315
+ ...Tn
3269
3316
  }, {
3270
- component: vn,
3271
- ...xn
3317
+ component: Pn,
3318
+ ...Rn
3272
3319
  }, {
3273
- component: kn,
3274
- ...Sn
3320
+ component: Vn,
3321
+ ...Bn
3275
3322
  }, {
3276
- component: Tn,
3277
- ...Cn
3278
- }], pe = () => [{
3279
- component: Ge,
3280
- ..._t
3323
+ component: Nn,
3324
+ ...An
3325
+ }], ve = () => [{
3326
+ component: et,
3327
+ ...Xt
3281
3328
  }, {
3282
- component: $t,
3283
- ...qt
3329
+ component: jt,
3330
+ ...Zt
3284
3331
  }, {
3285
- component: Dt,
3286
- ...Kt
3332
+ component: qt,
3333
+ ...en
3287
3334
  }, {
3288
- component: Ut,
3289
- ...zt
3335
+ component: Jt,
3336
+ ...nn
3290
3337
  }, {
3291
- component: Ht,
3292
- ...Jt
3338
+ component: Gt,
3339
+ ...on
3293
3340
  }, {
3294
- component: Yt,
3295
- ...Gt
3341
+ component: rn,
3342
+ ...an
3296
3343
  }, {
3297
- component: Jn,
3298
- ...Qt
3344
+ component: oi,
3345
+ ...ln
3299
3346
  }, {
3300
- component: tn,
3301
- ...en
3347
+ component: un,
3348
+ ...dn
3302
3349
  }, {
3303
- component: Zt,
3304
- ...Xt
3350
+ component: cn,
3351
+ ...sn
3305
3352
  }, {
3306
- component: Mt,
3307
- ...jt
3308
- }, ...In()], wn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3353
+ component: Qt,
3354
+ ...Yt
3355
+ }, ...Wn()], Fn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3309
3356
  function getAndSetVariantId() {
3310
3357
  function setCookie(name, value, days) {
3311
3358
  let expires = '';
@@ -3361,7 +3408,7 @@ const In = () => [{
3361
3408
  }).join('');
3362
3409
  styleEl.innerHTML = newStyleStr;
3363
3410
  }
3364
- }`, En = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3411
+ }`, $n = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3365
3412
  if (!navigator.cookieEnabled) {
3366
3413
  return;
3367
3414
  }
@@ -3395,26 +3442,26 @@ const In = () => [{
3395
3442
  thisScriptEl?.remove();
3396
3443
  }
3397
3444
  return;
3398
- }`, Le = "builderIoAbTest", Oe = "builderIoRenderContent", q = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3445
+ }`, Me = "builderIoAbTest", je = "builderIoRenderContent", q = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3399
3446
  ...t,
3400
3447
  testVariationId: t.id,
3401
3448
  id: e == null ? void 0 : e.id
3402
- })), Rn = ({
3449
+ })), Ln = ({
3403
3450
  canTrack: e,
3404
3451
  content: t
3405
- }) => !(!(q(t).length > 0) || !e || L()), Pn = (e) => e === "react" || e === "reactNative", Ue = Pn(D), Bn = () => `
3406
- window.${Le} = ${wn}
3407
- window.${Oe} = ${En}
3408
- `, Vn = (e, t) => `
3409
- window.${Le}(
3410
- "${t}",${JSON.stringify(e)}, ${Ue}
3411
- )`, An = ({
3452
+ }) => !(!(q(t).length > 0) || !e || O()), On = (e) => e === "react" || e === "reactNative", qe = On($), Dn = () => `
3453
+ window.${Me} = ${Fn}
3454
+ window.${je} = ${$n}
3455
+ `, Un = (e, t) => `
3456
+ window.${Me}(
3457
+ "${t}",${JSON.stringify(e)}, ${qe}
3458
+ )`, Hn = ({
3412
3459
  contentId: e,
3413
3460
  variationId: t
3414
- }) => `window.${Oe}(
3415
- "${t}", "${e}", ${Ue}
3461
+ }) => `window.${je}(
3462
+ "${t}", "${e}", ${qe}
3416
3463
  )`;
3417
- function ie(e) {
3464
+ function oe(e) {
3418
3465
  return /* @__PURE__ */ s(
3419
3466
  "script",
3420
3467
  {
@@ -3424,10 +3471,10 @@ function ie(e) {
3424
3471
  }
3425
3472
  );
3426
3473
  }
3427
- function ye(e) {
3474
+ function Se(e) {
3428
3475
  return Math.round(e * 1e3) / 1e3;
3429
3476
  }
3430
- const Nn = (e, t, n = !0) => {
3477
+ const _n = (e, t, n = !0) => {
3431
3478
  if (!(e instanceof HTMLElement))
3432
3479
  return null;
3433
3480
  let i = n ? e : e.parentElement;
@@ -3438,35 +3485,35 @@ const Nn = (e, t, n = !0) => {
3438
3485
  return i;
3439
3486
  } while (i = i.parentElement);
3440
3487
  return null;
3441
- }, Wn = (e) => Nn(e, (t) => {
3488
+ }, Mn = (e) => _n(e, (t) => {
3442
3489
  const n = t.getAttribute("builder-id") || t.id;
3443
3490
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3444
- }), xe = ({
3491
+ }), ke = ({
3445
3492
  event: e,
3446
3493
  target: t
3447
3494
  }) => {
3448
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r = ye(i / n.width), a = ye(o / n.height);
3495
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r = Se(i / n.width), a = Se(o / n.height);
3449
3496
  return {
3450
3497
  x: r,
3451
3498
  y: a
3452
3499
  };
3453
- }, Fn = (e) => {
3454
- const t = e.target, n = t && Wn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3500
+ }, jn = (e) => {
3501
+ const t = e.target, n = t && Mn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3455
3502
  return {
3456
3503
  targetBuilderElement: i || void 0,
3457
3504
  metadata: {
3458
- targetOffset: t ? xe({
3505
+ targetOffset: t ? ke({
3459
3506
  event: e,
3460
3507
  target: t
3461
3508
  }) : void 0,
3462
- builderTargetOffset: n ? xe({
3509
+ builderTargetOffset: n ? ke({
3463
3510
  event: e,
3464
3511
  target: n
3465
3512
  }) : void 0,
3466
3513
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3467
3514
  }
3468
3515
  };
3469
- }, $n = (e) => {
3516
+ }, qn = ["svelte", "qwik", "vue"], Ce = () => qn.includes($) && (W() || ae()), zn = (e) => {
3470
3517
  var r, a;
3471
3518
  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;
3472
3519
  let o = "";
@@ -3492,15 +3539,15 @@ font-weight: ${l};
3492
3539
  `.trim());
3493
3540
  }
3494
3541
  return o;
3495
- }, Dn = ({
3542
+ }, Kn = ({
3496
3543
  customFonts: e
3497
3544
  }) => {
3498
3545
  var t;
3499
- return ((t = e == null ? void 0 : e.map((n) => $n(n))) == null ? void 0 : t.join(" ")) || "";
3500
- }, Ln = ({
3546
+ return ((t = e == null ? void 0 : e.map((n) => zn(n))) == null ? void 0 : t.join(" ")) || "";
3547
+ }, Jn = ({
3501
3548
  cssCode: e,
3502
3549
  contentId: t
3503
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", On = `
3550
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Gn = `
3504
3551
  .builder-button {
3505
3552
  all: unset;
3506
3553
  }
@@ -3517,39 +3564,39 @@ font-weight: ${l};
3517
3564
  text-align: inherit;
3518
3565
  font-family: inherit;
3519
3566
  }
3520
- `, Un = (e) => e ? "" : On, Hn = (e) => `variant-${e}`;
3521
- function jn(e) {
3522
- var b, y, A;
3523
- const t = $(null);
3524
- function n(k) {
3525
- var P, T;
3526
- const w = {
3567
+ `, Yn = (e) => e ? "" : Gn, Qn = (e) => `variant-${e}`;
3568
+ function Xn(e) {
3569
+ var p, C, P;
3570
+ const t = L(null);
3571
+ function n(S) {
3572
+ var B, T;
3573
+ const I = {
3527
3574
  ...e.builderContextSignal.rootState,
3528
- ...k
3575
+ ...S
3529
3576
  };
3530
- e.builderContextSignal.rootSetState ? (T = (P = e.builderContextSignal).rootSetState) == null || T.call(P, w) : e.setBuilderContextSignal((u) => ({
3577
+ e.builderContextSignal.rootSetState ? (T = (B = e.builderContextSignal).rootSetState) == null || T.call(B, I) : e.setBuilderContextSignal((u) => ({
3531
3578
  ...u,
3532
- rootState: w
3579
+ rootState: I
3533
3580
  }));
3534
3581
  }
3535
- function i(k) {
3536
- var P, T, u, C, N;
3537
- const w = {
3582
+ function i(S) {
3583
+ var B, T, u, k, V;
3584
+ const I = {
3538
3585
  ...e.builderContextSignal.content,
3539
- ...k,
3586
+ ...S,
3540
3587
  data: {
3541
- ...(P = e.builderContextSignal.content) == null ? void 0 : P.data,
3542
- ...k == null ? void 0 : k.data
3588
+ ...(B = e.builderContextSignal.content) == null ? void 0 : B.data,
3589
+ ...S == null ? void 0 : S.data
3543
3590
  },
3544
3591
  meta: {
3545
3592
  ...(T = e.builderContextSignal.content) == null ? void 0 : T.meta,
3546
- ...k == null ? void 0 : k.meta,
3547
- breakpoints: ((u = k == null ? void 0 : k.meta) == null ? void 0 : u.breakpoints) || ((N = (C = e.builderContextSignal.content) == null ? void 0 : C.meta) == null ? void 0 : N.breakpoints)
3593
+ ...S == null ? void 0 : S.meta,
3594
+ breakpoints: ((u = S == null ? void 0 : S.meta) == null ? void 0 : u.breakpoints) || ((V = (k = e.builderContextSignal.content) == null ? void 0 : k.meta) == null ? void 0 : V.breakpoints)
3548
3595
  }
3549
3596
  };
3550
3597
  e.setBuilderContextSignal((E) => ({
3551
3598
  ...E,
3552
- content: w
3599
+ content: I
3553
3600
  }));
3554
3601
  }
3555
3602
  function o() {
@@ -3561,58 +3608,58 @@ function jn(e) {
3561
3608
  const [r, a] = R(
3562
3609
  () => e.contentWrapper || "div"
3563
3610
  );
3564
- function l(k) {
3565
- return qe({
3611
+ function l(S) {
3612
+ return Ye({
3566
3613
  model: e.model,
3567
3614
  trustedHosts: e.trustedHosts,
3568
3615
  callbacks: {
3569
- configureSdk: (w) => {
3616
+ configureSdk: (I) => {
3570
3617
  var u;
3571
- const { breakpoints: P, contentId: T } = w;
3572
- !T || T !== ((u = e.builderContextSignal.content) == null ? void 0 : u.id) || P && i({
3618
+ const { breakpoints: B, contentId: T } = I;
3619
+ !T || T !== ((u = e.builderContextSignal.content) == null ? void 0 : u.id) || B && i({
3573
3620
  meta: {
3574
- breakpoints: P
3621
+ breakpoints: B
3575
3622
  }
3576
3623
  });
3577
3624
  },
3578
- animation: (w) => {
3579
- Ae(w);
3625
+ animation: (I) => {
3626
+ $e(I);
3580
3627
  },
3581
- contentUpdate: (w) => {
3582
- i(w);
3628
+ contentUpdate: (I) => {
3629
+ i(I);
3583
3630
  }
3584
3631
  }
3585
- })(k);
3632
+ })(S);
3586
3633
  }
3587
- const [d, c] = R(() => ({})), [h, g] = R(() => ({})), [m, x] = R(() => !1);
3588
- function f(k) {
3589
- var w, P;
3634
+ const [d, c] = R(() => ({})), [h, g] = R(() => ({})), [m, y] = R(() => !1);
3635
+ function f(S) {
3636
+ var I, B;
3590
3637
  if (e.builderContextSignal.content) {
3591
- const T = (w = e.builderContextSignal.content) == null ? void 0 : w.testVariationId, u = (P = e.builderContextSignal.content) == null ? void 0 : P.id;
3592
- se({
3638
+ const T = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, u = (B = e.builderContextSignal.content) == null ? void 0 : B.id;
3639
+ ue({
3593
3640
  apiHost: e.apiHost,
3594
3641
  type: "click",
3595
- canTrack: z(e.canTrack),
3642
+ canTrack: K(e.canTrack),
3596
3643
  contentId: u,
3597
3644
  apiKey: e.apiKey,
3598
3645
  variationId: T !== u ? T : void 0,
3599
- ...Fn(k),
3646
+ ...jn(S),
3600
3647
  unique: !m
3601
3648
  });
3602
3649
  }
3603
- m || x(!0);
3650
+ m || y(!0);
3604
3651
  }
3605
- function S() {
3606
- var w, P, T;
3607
- const k = (T = (P = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : P.httpRequests) != null ? T : {};
3608
- Object.entries(k).forEach(([u, C]) => {
3609
- if (!C || h[u] || d[u] && !W())
3652
+ function v() {
3653
+ var I, B, T;
3654
+ const S = (T = (B = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : B.httpRequests) != null ? T : {};
3655
+ Object.entries(S).forEach(([u, k]) => {
3656
+ if (!k || h[u] || d[u] && !W())
3610
3657
  return;
3611
3658
  h[u] = !0;
3612
- const N = C.replace(
3659
+ const V = k.replace(
3613
3660
  /{{([^}]+)}}/g,
3614
3661
  (E, M) => String(
3615
- O({
3662
+ D({
3616
3663
  code: M,
3617
3664
  context: e.context || {},
3618
3665
  localState: void 0,
@@ -3621,24 +3668,24 @@ function jn(e) {
3621
3668
  })
3622
3669
  )
3623
3670
  );
3624
- ke(N), fetch(N).then((E) => E.json()).then((E) => {
3671
+ we(V), fetch(V).then((E) => E.json()).then((E) => {
3625
3672
  n({
3626
3673
  [u]: E
3627
3674
  }), d[u] = !0;
3628
3675
  }).catch((E) => {
3629
- console.error("error fetching dynamic data", C, E);
3676
+ console.error("error fetching dynamic data", k, E);
3630
3677
  }).finally(() => {
3631
3678
  h[u] = !1;
3632
3679
  });
3633
3680
  });
3634
3681
  }
3635
- function v() {
3682
+ function x() {
3636
3683
  W() && window.dispatchEvent(
3637
3684
  new CustomEvent(
3638
3685
  "builder:component:stateChange",
3639
3686
  {
3640
3687
  detail: {
3641
- state: re(e.builderContextSignal.rootState),
3688
+ state: se(e.builderContextSignal.rootState),
3642
3689
  ref: {
3643
3690
  name: e.model
3644
3691
  }
@@ -3647,11 +3694,11 @@ function jn(e) {
3647
3694
  )
3648
3695
  );
3649
3696
  }
3650
- const p = $(!1);
3651
- return p.current || (S(), v(), p.current = !0), B(() => {
3652
- var k, w;
3653
- if (L()) {
3654
- if (W() && !e.isNestedRender && (window.addEventListener("message", l), je(), Me({
3697
+ const b = L(!1);
3698
+ return b.current || (v(), x(), b.current = !0), A(() => {
3699
+ var S, I;
3700
+ if (O()) {
3701
+ if (W() && !e.isNestedRender && (window.addEventListener("message", l), Ke(), Je({
3655
3702
  ...e.locale ? {
3656
3703
  locale: e.locale
3657
3704
  } : {},
@@ -3664,28 +3711,30 @@ function jn(e) {
3664
3711
  }), Object.values(
3665
3712
  e.builderContextSignal.componentInfos
3666
3713
  ).forEach((T) => {
3667
- var C;
3668
- const u = _e(T);
3669
- (C = window.parent) == null || C.postMessage(u, "*");
3714
+ var u, k;
3715
+ if (!e.model || !((u = T.models) != null && u.length) || T.models.includes(e.model)) {
3716
+ const V = Ge(T);
3717
+ (k = window.parent) == null || k.postMessage(V, "*");
3718
+ }
3670
3719
  }), window.addEventListener(
3671
3720
  "builder:component:stateChangeListenerActivated",
3672
- v
3673
- )), e.builderContextSignal.content && z(e.canTrack)) {
3674
- const T = (k = e.builderContextSignal.content) == null ? void 0 : k.testVariationId, u = (w = e.builderContextSignal.content) == null ? void 0 : w.id, C = e.apiKey;
3675
- se({
3721
+ x
3722
+ )), e.builderContextSignal.content && K(e.canTrack)) {
3723
+ const T = (S = e.builderContextSignal.content) == null ? void 0 : S.testVariationId, u = (I = e.builderContextSignal.content) == null ? void 0 : I.id, k = e.apiKey;
3724
+ ue({
3676
3725
  apiHost: e.apiHost,
3677
3726
  type: "impression",
3678
3727
  canTrack: !0,
3679
3728
  contentId: u,
3680
- apiKey: C,
3729
+ apiKey: k,
3681
3730
  variationId: T !== u ? T : void 0
3682
3731
  });
3683
3732
  }
3684
- if (Se() && !W()) {
3685
- const T = new URL(location.href).searchParams, u = T.get("builder.preview"), C = T.get(
3733
+ if (ae() && !W()) {
3734
+ const T = new URL(location.href).searchParams, u = T.get("builder.preview"), k = T.get(
3686
3735
  `builder.overrides.${u}`
3687
- ), N = T.get("apiKey") || T.get("builder.space");
3688
- u === e.model && N === e.apiKey && (!e.content || C === e.content.id) && Ce({
3736
+ ), V = T.get("apiKey") || T.get("builder.space");
3737
+ u === e.model && V === e.apiKey && (!e.content || k === e.content.id) && Ie({
3689
3738
  model: e.model,
3690
3739
  apiKey: e.apiKey,
3691
3740
  apiVersion: e.builderContextSignal.apiVersion
@@ -3694,52 +3743,55 @@ function jn(e) {
3694
3743
  });
3695
3744
  }
3696
3745
  }
3697
- }, []), B(() => {
3746
+ }, []), A(() => {
3698
3747
  e.content && i(e.content);
3699
- }, [e.content]), B(() => {
3700
- v();
3701
- }, [e.builderContextSignal.rootState]), B(() => {
3748
+ }, [e.content]), A(() => {
3749
+ x();
3750
+ }, [e.builderContextSignal.rootState]), A(() => {
3702
3751
  e.data && n(e.data);
3703
- }, [e.data]), B(() => {
3752
+ }, [e.data]), A(() => {
3704
3753
  e.locale && n({
3705
3754
  locale: e.locale
3706
3755
  });
3707
- }, [e.locale]), B(() => () => {
3708
- L() && (window.removeEventListener("message", l), window.removeEventListener(
3756
+ }, [e.locale]), A(() => () => {
3757
+ O() && (window.removeEventListener("message", l), window.removeEventListener(
3709
3758
  "builder:component:stateChangeListenerActivated",
3710
- v
3759
+ x
3711
3760
  ));
3712
- }, []), /* @__PURE__ */ s(ae.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3761
+ }, []), /* @__PURE__ */ s(le.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Ce() ? /* @__PURE__ */ s(
3713
3762
  r,
3714
3763
  {
3715
3764
  ref: t,
3716
- onClick: (k) => f(k),
3717
- "builder-content-id": (b = e.builderContextSignal.content) == null ? void 0 : b.id,
3765
+ onClick: (S) => f(S),
3766
+ "builder-content-id": (p = e.builderContextSignal.content) == null ? void 0 : p.id,
3718
3767
  "builder-model": e.model,
3719
- className: Hn(
3720
- ((y = e.content) == null ? void 0 : y.testVariationId) || ((A = e.content) == null ? void 0 : A.id)
3768
+ className: Qn(
3769
+ ((C = e.content) == null ? void 0 : C.testVariationId) || ((P = e.content) == null ? void 0 : P.id)
3721
3770
  ),
3771
+ style: {
3772
+ display: !e.builderContextSignal.content && Ce() ? "none" : void 0
3773
+ },
3722
3774
  ...o(),
3723
3775
  ...e.contentWrapperProps,
3724
3776
  children: e.children
3725
3777
  }
3726
3778
  ) : null });
3727
3779
  }
3728
- function Mn(e) {
3780
+ function Zn(e) {
3729
3781
  const [t, n] = R(
3730
3782
  () => `
3731
- ${Ln({
3783
+ ${Jn({
3732
3784
  cssCode: e.cssCode,
3733
3785
  contentId: e.contentId
3734
3786
  })}
3735
- ${Dn({
3787
+ ${Kn({
3736
3788
  customFonts: e.customFonts
3737
3789
  })}
3738
- ${Un(e.isNestedRender)}
3790
+ ${Yn(e.isNestedRender)}
3739
3791
  `.trim()
3740
3792
  );
3741
3793
  return /* @__PURE__ */ s(
3742
- Y,
3794
+ Q,
3743
3795
  {
3744
3796
  id: "builderio-content",
3745
3797
  styles: t,
@@ -3747,7 +3799,7 @@ ${Un(e.isNestedRender)}
3747
3799
  }
3748
3800
  );
3749
3801
  }
3750
- const _n = ({
3802
+ const ei = ({
3751
3803
  content: e,
3752
3804
  data: t,
3753
3805
  locale: n
@@ -3764,7 +3816,7 @@ const _n = ({
3764
3816
  locale: n
3765
3817
  } : {}
3766
3818
  };
3767
- }, qn = ({
3819
+ }, ti = ({
3768
3820
  content: e,
3769
3821
  data: t
3770
3822
  }) => e ? {
@@ -3775,100 +3827,95 @@ const _n = ({
3775
3827
  },
3776
3828
  meta: e == null ? void 0 : e.meta
3777
3829
  } : void 0;
3778
- function ve(e) {
3779
- var c, h, g, m, x, f, S, v, p;
3830
+ function Te(e) {
3831
+ var c, h, g, m, y, f, v, x, b;
3780
3832
  const [t, n] = R(
3781
3833
  () => {
3782
- var b, y;
3783
- return An({
3834
+ var p, C;
3835
+ return Hn({
3784
3836
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3785
- variationId: (b = e.content) == null ? void 0 : b.testVariationId,
3837
+ variationId: (p = e.content) == null ? void 0 : p.testVariationId,
3786
3838
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3787
- contentId: (y = e.content) == null ? void 0 : y.id
3839
+ contentId: (C = e.content) == null ? void 0 : C.id
3788
3840
  });
3789
3841
  }
3790
3842
  );
3791
- function i(b) {
3792
- l((y) => ({
3793
- ...y,
3794
- rootState: b
3843
+ function i(p) {
3844
+ l((C) => ({
3845
+ ...C,
3846
+ rootState: p
3795
3847
  }));
3796
3848
  }
3797
3849
  const [o, r] = R(
3798
- () => {
3799
- var b;
3800
- return [
3801
- ...pe(),
3802
- ...((b = e.customComponents) == null ? void 0 : b.filter(({ models: y }) => !(y != null && y.length) || !e.model ? !0 : y.includes(e.model))) || []
3803
- ].reduce(
3804
- (y, { component: A, ...k }) => ({
3805
- ...y,
3806
- [k.name]: {
3807
- component: A,
3808
- ...ce(k)
3809
- }
3810
- }),
3811
- {}
3812
- );
3813
- }
3814
- ), [a, l] = R(() => {
3815
- var b;
3816
- return {
3817
- content: qn({
3818
- content: e.content,
3819
- data: e.data
3850
+ () => [
3851
+ ...ve(),
3852
+ ...e.customComponents || []
3853
+ ].reduce(
3854
+ (p, { component: C, ...P }) => ({
3855
+ ...p,
3856
+ [P.name]: {
3857
+ component: C,
3858
+ ...me(P)
3859
+ }
3820
3860
  }),
3821
- localState: void 0,
3822
- rootState: _n({
3823
- content: e.content,
3824
- data: e.data,
3825
- locale: e.locale
3861
+ {}
3862
+ )
3863
+ ), [a, l] = R(() => ({
3864
+ content: ti({
3865
+ content: e.content,
3866
+ data: e.data
3867
+ }),
3868
+ localState: void 0,
3869
+ rootState: ei({
3870
+ content: e.content,
3871
+ data: e.data,
3872
+ locale: e.locale
3873
+ }),
3874
+ rootSetState: i,
3875
+ context: e.context || {},
3876
+ canTrack: e.canTrack,
3877
+ apiKey: e.apiKey,
3878
+ apiVersion: e.apiVersion,
3879
+ componentInfos: [
3880
+ ...ve(),
3881
+ ...e.customComponents || []
3882
+ ].reduce(
3883
+ (p, { component: C, ...P }) => ({
3884
+ ...p,
3885
+ [P.name]: me(P)
3826
3886
  }),
3827
- rootSetState: i,
3828
- context: e.context || {},
3829
- canTrack: e.canTrack,
3830
- apiKey: e.apiKey,
3831
- apiVersion: e.apiVersion,
3832
- componentInfos: [
3833
- ...pe(),
3834
- ...((b = e.customComponents) == null ? void 0 : b.filter(({ models: y }) => !(y != null && y.length) || !e.model ? !0 : y.includes(e.model))) || []
3835
- ].reduce(
3836
- (y, { component: A, ...k }) => ({
3837
- ...y,
3838
- [k.name]: ce(k)
3839
- }),
3840
- {}
3841
- ),
3842
- inheritedStyles: {},
3843
- BlocksWrapper: e.blocksWrapper || "div",
3844
- BlocksWrapperProps: e.blocksWrapperProps || {},
3845
- nonce: e.nonce || ""
3846
- };
3847
- }), d = $(!1);
3887
+ {}
3888
+ ),
3889
+ inheritedStyles: {},
3890
+ BlocksWrapper: e.blocksWrapper || "div",
3891
+ BlocksWrapperProps: e.blocksWrapperProps || {},
3892
+ nonce: e.nonce || "",
3893
+ model: e.model || ""
3894
+ })), d = L(!1);
3848
3895
  if (!d.current) {
3849
- e.apiKey || J.error(
3896
+ e.apiKey || G.error(
3850
3897
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3851
3898
  );
3852
- const b = (h = (c = a.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
3853
- b && O({
3854
- code: b,
3899
+ const p = (h = (c = a.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
3900
+ p && D({
3901
+ code: p,
3855
3902
  context: e.context || {},
3856
3903
  localState: void 0,
3857
3904
  rootState: a.rootState,
3858
- rootSetState: (y) => {
3859
- Object.assign(a.rootState, y);
3905
+ rootSetState: (C) => {
3906
+ Object.assign(a.rootState, C);
3860
3907
  },
3861
3908
  isExpression: !1
3862
3909
  }), d.current = !0;
3863
3910
  }
3864
3911
  return /* @__PURE__ */ s(
3865
- we.Provider,
3912
+ Pe.Provider,
3866
3913
  {
3867
3914
  value: {
3868
3915
  registeredComponents: o
3869
3916
  },
3870
- children: /* @__PURE__ */ V(
3871
- jn,
3917
+ children: /* @__PURE__ */ N(
3918
+ Xn,
3872
3919
  {
3873
3920
  apiHost: e.apiHost,
3874
3921
  nonce: e.nonce,
@@ -3889,7 +3936,7 @@ function ve(e) {
3889
3936
  setBuilderContextSignal: l,
3890
3937
  children: [
3891
3938
  e.isSsrAbTest ? /* @__PURE__ */ s(
3892
- ie,
3939
+ oe,
3893
3940
  {
3894
3941
  id: "builderio-variant-visibility",
3895
3942
  scriptStr: t,
@@ -3897,19 +3944,19 @@ function ve(e) {
3897
3944
  }
3898
3945
  ) : null,
3899
3946
  /* @__PURE__ */ s(
3900
- Mn,
3947
+ Zn,
3901
3948
  {
3902
3949
  nonce: e.nonce || "",
3903
3950
  isNestedRender: e.isNestedRender,
3904
3951
  contentId: (g = a.content) == null ? void 0 : g.id,
3905
- cssCode: (x = (m = a.content) == null ? void 0 : m.data) == null ? void 0 : x.cssCode,
3906
- customFonts: (S = (f = a.content) == null ? void 0 : f.data) == null ? void 0 : S.customFonts
3952
+ cssCode: (y = (m = a.content) == null ? void 0 : m.data) == null ? void 0 : y.cssCode,
3953
+ customFonts: (v = (f = a.content) == null ? void 0 : f.data) == null ? void 0 : v.customFonts
3907
3954
  }
3908
3955
  ),
3909
3956
  /* @__PURE__ */ s(
3910
3957
  F,
3911
3958
  {
3912
- blocks: (p = (v = a.content) == null ? void 0 : v.data) == null ? void 0 : p.blocks,
3959
+ blocks: (b = (x = a.content) == null ? void 0 : x.data) == null ? void 0 : b.blocks,
3913
3960
  context: a,
3914
3961
  registeredComponents: o,
3915
3962
  linkComponent: e.linkComponent
@@ -3921,17 +3968,17 @@ function ve(e) {
3921
3968
  }
3922
3969
  );
3923
3970
  }
3924
- function Kn(e) {
3971
+ function ni(e) {
3925
3972
  var a;
3926
3973
  const [t, n] = R(
3927
- () => Rn({
3928
- canTrack: z(e.canTrack),
3974
+ () => Ln({
3975
+ canTrack: K(e.canTrack),
3929
3976
  content: e.content
3930
3977
  })
3931
3978
  );
3932
3979
  function i() {
3933
3980
  var l;
3934
- return Vn(
3981
+ return Un(
3935
3982
  q(e.content).map((d) => ({
3936
3983
  id: d.testVariationId,
3937
3984
  testRatio: d.testRatio
@@ -3947,24 +3994,24 @@ function Kn(e) {
3947
3994
  return t ? {
3948
3995
  ...e.content,
3949
3996
  testVariationId: (l = e.content) == null ? void 0 : l.id
3950
- } : Ke({
3997
+ } : Qe({
3951
3998
  item: e.content,
3952
- canTrack: z(e.canTrack)
3999
+ canTrack: K(e.canTrack)
3953
4000
  });
3954
4001
  }
3955
- return B(() => {
3956
- }, []), /* @__PURE__ */ V(I, { children: [
3957
- !e.isNestedRender && D !== "reactNative" ? /* @__PURE__ */ s(
3958
- ie,
4002
+ return A(() => {
4003
+ }, []), /* @__PURE__ */ N(w, { children: [
4004
+ !e.isNestedRender && $ !== "reactNative" ? /* @__PURE__ */ s(
4005
+ oe,
3959
4006
  {
3960
4007
  id: "builderio-init-variants-fns",
3961
- scriptStr: Bn(),
4008
+ scriptStr: Dn(),
3962
4009
  nonce: e.nonce || ""
3963
4010
  }
3964
4011
  ) : null,
3965
- t ? /* @__PURE__ */ V(I, { children: [
4012
+ t ? /* @__PURE__ */ N(w, { children: [
3966
4013
  /* @__PURE__ */ s(
3967
- Y,
4014
+ Q,
3968
4015
  {
3969
4016
  id: "builderio-variants",
3970
4017
  styles: o(),
@@ -3972,7 +4019,7 @@ function Kn(e) {
3972
4019
  }
3973
4020
  ),
3974
4021
  /* @__PURE__ */ s(
3975
- ie,
4022
+ oe,
3976
4023
  {
3977
4024
  id: "builderio-variants-visibility",
3978
4025
  scriptStr: i(),
@@ -3980,7 +4027,7 @@ function Kn(e) {
3980
4027
  }
3981
4028
  ),
3982
4029
  (a = q(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
3983
- ve,
4030
+ Te,
3984
4031
  {
3985
4032
  apiHost: e.apiHost,
3986
4033
  isNestedRender: e.isNestedRender,
@@ -4008,7 +4055,7 @@ function Kn(e) {
4008
4055
  ))
4009
4056
  ] }) : null,
4010
4057
  /* @__PURE__ */ s(
4011
- ve,
4058
+ Te,
4012
4059
  {
4013
4060
  apiHost: e.apiHost,
4014
4061
  nonce: e.nonce,
@@ -4035,13 +4082,13 @@ function Kn(e) {
4035
4082
  )
4036
4083
  ] });
4037
4084
  }
4038
- const zn = async ({
4085
+ const ii = async ({
4039
4086
  builderContextValue: e,
4040
4087
  symbol: t
4041
4088
  }) => {
4042
4089
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4043
4090
  (e != null && e.apiKey))
4044
- return Ce({
4091
+ return Ie({
4045
4092
  model: t.model,
4046
4093
  apiKey: e.apiKey,
4047
4094
  apiVersion: e.apiVersion,
@@ -4051,10 +4098,10 @@ const zn = async ({
4051
4098
  }
4052
4099
  }
4053
4100
  }).catch((n) => {
4054
- J.error("Could not fetch symbol content: ", n);
4101
+ G.error("Could not fetch symbol content: ", n);
4055
4102
  });
4056
4103
  };
4057
- function Jn(e) {
4104
+ function oi(e) {
4058
4105
  var l, d, c, h;
4059
4106
  function t() {
4060
4107
  return "div";
@@ -4076,18 +4123,18 @@ function Jn(e) {
4076
4123
  return (g = e.symbol) == null ? void 0 : g.content;
4077
4124
  });
4078
4125
  function a() {
4079
- o || zn({
4126
+ o || ii({
4080
4127
  symbol: e.symbol,
4081
4128
  builderContextValue: e.builderContext
4082
4129
  }).then((g) => {
4083
4130
  g && r(g);
4084
4131
  });
4085
4132
  }
4086
- return B(() => {
4087
- }, []), B(() => {
4133
+ return A(() => {
4134
+ }, []), A(() => {
4088
4135
  a();
4089
4136
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
4090
- Kn,
4137
+ ni,
4091
4138
  {
4092
4139
  nonce: e.builderContext.nonce,
4093
4140
  isNestedRender: !0,
@@ -4114,14 +4161,14 @@ function Jn(e) {
4114
4161
  }
4115
4162
  export {
4116
4163
  F as Blocks,
4117
- ae as BuilderContext,
4118
- Ge as Button,
4119
- $t as Columns,
4120
- Kn as Content,
4121
- Dt as Fragment,
4122
- Ut as Image,
4123
- Ht as Section,
4124
- Jn as Symbol,
4125
- tn as Text,
4126
- Tn as Video
4164
+ le as BuilderContext,
4165
+ et as Button,
4166
+ jt as Columns,
4167
+ ni as Content,
4168
+ qt as Fragment,
4169
+ Jt as Image,
4170
+ Gt as Section,
4171
+ oi as Symbol,
4172
+ un as Text,
4173
+ Nn as Video
4127
4174
  };