@builder.io/sdk-react 3.0.0 → 3.0.2

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 (93) hide show
  1. package/lib/browser/blocks-exports.cjs +31 -31
  2. package/lib/browser/blocks-exports.mjs +1008 -962
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/server-entry-75ce8600.cjs +2 -0
  6. package/lib/browser/server-entry-a2495a20.js +748 -0
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/{accordion-98d9699d.cjs → accordion-1c16f65e.cjs} +1 -1
  10. package/lib/edge/{accordion-19141399.js → accordion-c020e15b.js} +1 -1
  11. package/lib/edge/blocks-27ac5b23.js +3534 -0
  12. package/lib/edge/blocks-cd946d16.cjs +30 -0
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +8 -7
  15. package/lib/edge/{button-a335b33d.js → button-5cdb4f26.js} +2 -2
  16. package/lib/edge/{button-90d3b8fd.cjs → button-8572fca5.cjs} +1 -1
  17. package/lib/edge/{columns-34eb4f77.js → columns-3ac1fa96.js} +5 -6
  18. package/lib/edge/columns-c8a9cb89.cjs +28 -0
  19. package/lib/edge/{content-variants-eb0b71da.js → content-variants-23c8eec6.js} +348 -344
  20. package/lib/edge/content-variants-caa23bf7.cjs +134 -0
  21. package/lib/edge/form-3d9bf265.cjs +1 -0
  22. package/lib/edge/{form-f468b835.js → form-7fc5691b.js} +14 -15
  23. package/lib/edge/{get-class-prop-name-f431302d.cjs → get-class-prop-name-29fd576a.cjs} +1 -1
  24. package/lib/edge/{get-class-prop-name-79a17608.js → get-class-prop-name-a4845b04.js} +1 -1
  25. package/lib/edge/{image-6970c193.js → image-5c9e156f.js} +28 -28
  26. package/lib/edge/image-94922c87.cjs +17 -0
  27. package/lib/edge/{img-da07f7ae.cjs → img-102acaa2.cjs} +1 -1
  28. package/lib/edge/{img-0d66e9e1.js → img-388698cb.js} +1 -1
  29. package/lib/edge/index.cjs +1 -1
  30. package/lib/edge/index.mjs +1 -1
  31. package/lib/edge/{input-f7f73607.cjs → input-10e350a9.cjs} +1 -1
  32. package/lib/edge/{input-5962ba3b.js → input-5484e9e7.js} +1 -1
  33. package/lib/edge/{select-74305b69.js → select-b8406bcf.js} +1 -1
  34. package/lib/edge/{select-1f1bb9a6.cjs → select-f11be7a7.cjs} +1 -1
  35. package/lib/edge/server-entry-1879cbc4.cjs +2 -0
  36. package/lib/edge/server-entry-7ce03a4e.js +746 -0
  37. package/lib/edge/server-entry.cjs +1 -1
  38. package/lib/edge/server-entry.mjs +1 -1
  39. package/lib/edge/{slot-ad2d5248.js → slot-23f75377.js} +5 -6
  40. package/lib/edge/slot-4ab390ec.cjs +1 -0
  41. package/lib/edge/{symbol-70bb59b7.js → symbol-2eafb4e0.js} +2 -2
  42. package/lib/edge/{symbol-5baac842.cjs → symbol-fa343d77.cjs} +1 -1
  43. package/lib/edge/{tabs-0244ee23.js → tabs-4c9c64f6.js} +15 -16
  44. package/lib/edge/tabs-7d258d82.cjs +1 -0
  45. package/lib/edge/text-5915f038.js +17 -0
  46. package/lib/edge/text-e6dbb721.cjs +1 -0
  47. package/lib/node/blocks-exports.cjs +29 -29
  48. package/lib/node/blocks-exports.mjs +903 -857
  49. package/lib/node/index.cjs +1 -1
  50. package/lib/node/index.mjs +3 -3
  51. package/lib/node/init.cjs +1 -1
  52. package/lib/node/init.mjs +3 -3
  53. package/lib/node/server-entry-2b263dde.js +749 -0
  54. package/lib/node/server-entry-ec330556.cjs +2 -0
  55. package/lib/node/server-entry.cjs +1 -1
  56. package/lib/node/server-entry.mjs +1 -1
  57. package/lib/node/{setIvm-97b6edac.cjs → setIvm-1e6f0b60.cjs} +1 -1
  58. package/lib/node/{setIvm-bcada801.js → setIvm-7eb67cd6.js} +1 -1
  59. package/lib/node/setIvm.cjs +1 -1
  60. package/lib/node/setIvm.mjs +2 -2
  61. package/lib/node/{should-force-browser-runtime-in-node-16d6b365.cjs → should-force-browser-runtime-in-node-23218b19.cjs} +1 -1
  62. package/lib/node/{should-force-browser-runtime-in-node-f1c78223.js → should-force-browser-runtime-in-node-cdae9360.js} +1 -1
  63. package/package.json +1 -1
  64. package/types/components/block/block.helpers.d.ts +6 -3
  65. package/types/components/content/components/enable-editor.helpers.d.ts +11 -0
  66. package/types/constants/file-types.d.ts +2 -0
  67. package/types/constants/sdk-version.d.ts +1 -1
  68. package/types/context/types.d.ts +1 -0
  69. package/types/functions/extract-localized-values.d.ts +2 -0
  70. package/types/functions/get-block-component-options.d.ts +2 -1
  71. package/types/functions/get-processed-block.d.ts +1 -6
  72. package/types/functions/traverse.d.ts +34 -0
  73. package/types/helpers/flatten.d.ts +6 -0
  74. package/types/server-index.d.ts +1 -1
  75. package/types/types/components.d.ts +3 -0
  76. package/lib/browser/server-entry-52c69986.js +0 -717
  77. package/lib/browser/server-entry-f3c2ac77.cjs +0 -2
  78. package/lib/edge/blocks-672d29ca.cjs +0 -12
  79. package/lib/edge/blocks-7299cf1f.js +0 -870
  80. package/lib/edge/columns-96859531.cjs +0 -28
  81. package/lib/edge/content-variants-30e475b2.cjs +0 -134
  82. package/lib/edge/evaluate-0793c18a.js +0 -2612
  83. package/lib/edge/evaluate-84062c52.cjs +0 -19
  84. package/lib/edge/form-99fe0879.cjs +0 -1
  85. package/lib/edge/image-54d2f755.cjs +0 -17
  86. package/lib/edge/server-entry-4f813956.cjs +0 -2
  87. package/lib/edge/server-entry-c793e7d2.js +0 -715
  88. package/lib/edge/slot-0add1d03.cjs +0 -1
  89. package/lib/edge/tabs-a4146223.cjs +0 -1
  90. package/lib/edge/text-214ed248.cjs +0 -1
  91. package/lib/edge/text-2e3cf22b.js +0 -37
  92. package/lib/node/server-entry-60acf7c6.js +0 -718
  93. package/lib/node/server-entry-e3ec26c9.cjs +0 -2
@@ -1,15 +1,15 @@
1
1
  "use client";
2
- import { jsx as s, Fragment as I, jsxs as V } from "react/jsx-runtime";
3
- import { TARGET as D, isBrowser as q, logger as ie, checkIsDefined as ee, isPreviewing as ve, isEditing as N, logFetch as Se, registerInsertMenu as Oe, setupBrowserForEditing as Ue, createRegisterComponentMessage as He, getDefaultCanTrack as K, _track as se, fetchOneEntry as ke, createEditorListener as je, serializeIncludingFunctions as ce, handleABTestingSync as Me } from "./server-entry-60acf7c6.js";
4
- import { createContext as Ce, useEffect as B, useState as R, useRef as $, useContext as de, createElement as Te } from "react";
5
- import { getFunctionArguments as _e, flattenState as qe, runInNode as Ke, parseCode as ze, getBuilderGlobals as Je, set as Ie, fastClone as oe } from "./setIvm-bcada801.js";
6
- import { shouldForceBrowserRuntimeInNode as Ge } from "./should-force-browser-runtime-in-node-f1c78223.js";
7
- const Ye = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Qe = (e) => typeof e == "string" && Ye.has(e.toLowerCase());
8
- function ae(e) {
9
- return /* @__PURE__ */ s(I, { children: Qe(e.TagName) ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(I, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
10
- }
11
- const U = () => {
12
- switch (D) {
2
+ import { jsx as l, Fragment as T, jsxs as W } from "react/jsx-runtime";
3
+ import { TARGET as $, isBrowser as q, logger as oe, checkIsDefined as te, isPreviewing as ae, isEditing as N, logFetch as Te, registerInsertMenu as je, setupBrowserForEditing as qe, createRegisterComponentMessage as ze, getDefaultCanTrack as z, _track as ue, fetchOneEntry as Ie, createEditorListener as Ke, serializeIncludingFunctions as me, handleABTestingSync as Je } from "./server-entry-2b263dde.js";
4
+ import { createContext as we, useEffect as A, useState as E, useRef as D, useContext as fe, createElement as Ee } from "react";
5
+ import { getFunctionArguments as Ge, flattenState as Ye, runInNode as Qe, parseCode as Xe, getBuilderGlobals as Ze, set as Re, fastClone as re } from "./setIvm-7eb67cd6.js";
6
+ import { shouldForceBrowserRuntimeInNode as et } from "./should-force-browser-runtime-in-node-cdae9360.js";
7
+ const tt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), nt = (e) => typeof e == "string" && tt.has(e.toLowerCase());
8
+ function le(e) {
9
+ return /* @__PURE__ */ l(T, { children: nt(e.TagName) ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(T, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
10
+ }
11
+ const _ = () => {
12
+ switch ($) {
13
13
  case "react":
14
14
  case "reactNative":
15
15
  case "rsc":
@@ -22,11 +22,11 @@ const U = () => {
22
22
  return "class";
23
23
  }
24
24
  };
25
- function Xe(e) {
25
+ function it(e) {
26
26
  function t() {
27
27
  return {
28
28
  ...e.attributes,
29
- [U()]: `${e.link ? "" : "builder-button"} ${e.attributes[U()] || ""}`,
29
+ [_()]: `${e.link ? "" : "builder-button"} ${e.attributes[_()] || ""}`,
30
30
  ...e.link ? {
31
31
  href: e.link,
32
32
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -36,8 +36,8 @@ function Xe(e) {
36
36
  }
37
37
  };
38
38
  }
39
- return /* @__PURE__ */ s(
40
- ae,
39
+ return /* @__PURE__ */ l(
40
+ le,
41
41
  {
42
42
  attributes: t(),
43
43
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
@@ -46,7 +46,7 @@ function Xe(e) {
46
46
  }
47
47
  );
48
48
  }
49
- const re = Ce({
49
+ const se = we({
50
50
  content: null,
51
51
  context: {},
52
52
  localState: void 0,
@@ -59,25 +59,12 @@ const re = Ce({
59
59
  inheritedStyles: {},
60
60
  BlocksWrapper: "div",
61
61
  BlocksWrapperProps: {},
62
- nonce: ""
63
- }), we = Ce({ registeredComponents: {} });
64
- function Ze(e) {
65
- var t;
66
- return {
67
- ...(t = e.component) == null ? void 0 : t.options,
68
- ...e.options
69
- };
70
- }
71
- function et(e, ...t) {
72
- const n = Object.assign({}, e);
73
- for (const i of t)
74
- delete n[i];
75
- return n;
76
- }
77
- const Ee = (e, t, n) => {
62
+ nonce: "",
63
+ model: ""
64
+ }), Pe = we({ registeredComponents: {} }), Be = (e, t, n) => {
78
65
  const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, r) => o != null ? o[r] : o, e);
79
66
  return i === void 0 || i === e ? n : i;
80
- }, tt = ({
67
+ }, ot = ({
81
68
  code: e,
82
69
  builder: t,
83
70
  context: n,
@@ -86,24 +73,24 @@ const Ee = (e, t, n) => {
86
73
  rootSetState: r,
87
74
  rootState: a
88
75
  }) => {
89
- const l = _e({
76
+ const s = Ge({
90
77
  builder: t,
91
78
  context: n,
92
79
  event: i,
93
- state: qe({
80
+ state: Ye({
94
81
  rootState: a,
95
82
  localState: o,
96
83
  rootSetState: r
97
84
  })
98
85
  });
99
- return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
100
- }, nt = (e) => q() || Ge({
86
+ return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
87
+ }, at = (e) => q() || et({
101
88
  shouldLogWarning: !0
102
- }) ? tt(e) : Ke(e), it = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, ot = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, at = (e) => {
89
+ }) ? ot(e) : Qe(e), rt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, lt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, st = (e) => {
103
90
  var t, n, i, o, r, a;
104
- return ((i = (n = (t = it.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((a = (r = (o = ot.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : r.getPath) == null ? void 0 : a.slice(1));
91
+ return ((i = (n = (t = rt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((a = (r = (o = lt.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : r.getPath) == null ? void 0 : a.slice(1));
105
92
  };
106
- function L({
93
+ function O({
107
94
  code: e,
108
95
  context: t,
109
96
  localState: n,
@@ -114,17 +101,17 @@ function L({
114
101
  }) {
115
102
  if (e.trim() === "")
116
103
  return;
117
- const l = at(e.trim());
118
- if (l)
119
- return Ee({
104
+ const s = st(e.trim());
105
+ if (s)
106
+ return Be({
120
107
  ...i,
121
108
  ...n
122
- }, l);
109
+ }, s);
123
110
  const d = {
124
- code: ze(e, {
111
+ code: Xe(e, {
125
112
  isExpression: a
126
113
  }),
127
- builder: Je(),
114
+ builder: Ze(),
128
115
  context: t,
129
116
  event: r,
130
117
  rootSetState: o,
@@ -132,29 +119,98 @@ function L({
132
119
  localState: n
133
120
  };
134
121
  try {
135
- return nt(d);
122
+ return at(d);
136
123
  } catch (c) {
137
- ie.error("Failed code evaluation: " + c.message, {
124
+ oe.error("Failed code evaluation: " + c.message, {
138
125
  code: e
139
126
  });
140
127
  return;
141
128
  }
142
129
  }
143
- function te(e) {
130
+ function ct(e, t) {
131
+ var n;
132
+ return {
133
+ ...(n = e.component) == null ? void 0 : n.options,
134
+ ...e.options,
135
+ ...dt(e, t)
136
+ };
137
+ }
138
+ const dt = (e, t) => {
139
+ var n, i;
140
+ if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
141
+ return {
142
+ ...e.component.options,
143
+ text: e.component.options.text.replace(/{{([^}]+)}}/g, (o, r) => O({
144
+ code: r,
145
+ context: t,
146
+ localState: t.localState,
147
+ rootState: t.rootState,
148
+ rootSetState: t.rootSetState
149
+ }))
150
+ };
151
+ };
152
+ function ut(e, ...t) {
153
+ const n = Object.assign({}, e);
154
+ for (const i of t)
155
+ delete n[i];
156
+ return n;
157
+ }
158
+ function K(e, t, n = null, i = null, o = /* @__PURE__ */ new WeakSet()) {
159
+ if (e == null || typeof e != "object") {
160
+ t(e, (r) => {
161
+ n !== null && i !== null && (n[i] = r);
162
+ });
163
+ return;
164
+ }
165
+ o.has(e) || (o.add(e), Array.isArray(e) ? e.forEach((r, a) => {
166
+ t(r, (d) => {
167
+ e[a] = d;
168
+ }), K(r, t, e, a, o);
169
+ }) : Object.entries(e).forEach(([r, a]) => {
170
+ t(a, (d) => {
171
+ e[r] = d;
172
+ }), K(a, t, e, r, o);
173
+ }));
174
+ }
175
+ function Ve(e) {
176
+ return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
177
+ }
178
+ function mt(e) {
179
+ if (!e || !Object.getOwnPropertyNames(e).length)
180
+ return !1;
181
+ let t = !1;
182
+ return K(e, (n) => {
183
+ if (Ve(n)) {
184
+ t = !0;
185
+ return;
186
+ }
187
+ }), t;
188
+ }
189
+ function ft(e, t) {
190
+ return !e || !Object.getOwnPropertyNames(e).length ? {} : (K(e, (n, i) => {
191
+ var o;
192
+ Ve(n) && i((o = n[t]) != null ? o : void 0);
193
+ }), e);
194
+ }
195
+ function ht(e, t) {
196
+ var n, i;
197
+ 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;
198
+ }
199
+ function ne(e) {
144
200
  if (e === null || typeof e != "object")
145
201
  return e;
146
202
  if (Array.isArray(e))
147
- return e.map((n) => te(n));
203
+ return e.map((n) => ne(n));
148
204
  if (e["@type"] === "@builder.io/sdk:Element")
149
205
  return e;
150
206
  const t = {};
151
207
  for (const n in e)
152
- n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = te(e[n]));
208
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ne(e[n]));
153
209
  return t;
154
210
  }
155
- const rt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), lt = (e) => {
156
- if (rt) {
157
- const t = oe(e);
211
+ const gt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), bt = (e) => {
212
+ if (gt) {
213
+ const t = re(e);
158
214
  return {
159
215
  ...t,
160
216
  properties: {
@@ -165,7 +221,7 @@ const rt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), lt = (e) =
165
221
  }
166
222
  };
167
223
  } else {
168
- const t = te(et(e, "children", "meta"));
224
+ const t = ne(ut(e, "children", "meta"));
169
225
  return {
170
226
  ...t,
171
227
  properties: {
@@ -178,7 +234,7 @@ const rt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), lt = (e) =
178
234
  meta: e.meta
179
235
  };
180
236
  }
181
- }, st = ({
237
+ }, pt = ({
182
238
  block: e,
183
239
  context: t,
184
240
  localState: n,
@@ -187,50 +243,49 @@ const rt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), lt = (e) =
187
243
  }) => {
188
244
  if (!e.bindings)
189
245
  return e;
190
- const r = lt(e);
246
+ const r = bt(e);
191
247
  for (const a in e.bindings) {
192
- const l = e.bindings[a], d = L({
193
- code: l,
248
+ const s = e.bindings[a], d = O({
249
+ code: s,
194
250
  localState: n,
195
251
  rootState: i,
196
252
  rootSetState: o,
197
253
  context: t
198
254
  });
199
- Ie(r, a, d);
255
+ Re(r, a, d);
200
256
  }
201
257
  return r;
202
258
  };
203
- function ct({
259
+ function yt({
204
260
  block: e,
205
261
  context: t,
206
- shouldEvaluateBindings: n,
207
- localState: i,
208
- rootState: o,
209
- rootSetState: r
262
+ localState: n,
263
+ rootState: i,
264
+ rootSetState: o
210
265
  }) {
211
- const a = e;
212
- return n ? st({
213
- block: a,
214
- localState: i,
215
- rootState: o,
216
- rootSetState: r,
266
+ let r = ht(e, i.locale);
267
+ return r = r, pt({
268
+ block: r,
269
+ localState: n,
270
+ rootState: i,
271
+ rootSetState: o,
217
272
  context: t
218
- }) : a;
273
+ });
219
274
  }
220
- const z = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
221
- function dt(e, t, n = {}) {
222
- let i, o, r, a = null, l = 0;
275
+ const J = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
276
+ function xt(e, t, n = {}) {
277
+ let i, o, r, a = null, s = 0;
223
278
  const d = function() {
224
- l = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
279
+ s = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
225
280
  };
226
281
  return function() {
227
282
  const c = Date.now();
228
- !l && n.leading === !1 && (l = c);
229
- const h = t - (c - l);
230
- return i = this, o = arguments, h <= 0 || h > t ? (a && (clearTimeout(a), a = null), l = c, r = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(d, h)), r;
283
+ !s && n.leading === !1 && (s = c);
284
+ const h = t - (c - s);
285
+ return i = this, o = arguments, h <= 0 || h > t ? (a && (clearTimeout(a), a = null), s = c, r = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(d, h)), r;
231
286
  };
232
287
  }
233
- function O(e, ...t) {
288
+ function U(e, ...t) {
234
289
  const n = Object(e);
235
290
  for (let i = 1; i < arguments.length; i++) {
236
291
  const o = arguments[i];
@@ -240,118 +295,118 @@ function O(e, ...t) {
240
295
  }
241
296
  return n;
242
297
  }
243
- function ut(e) {
298
+ function vt(e) {
244
299
  for (const t of e)
245
300
  switch (t.trigger) {
246
301
  case "pageLoad":
247
- Be(t);
302
+ Ne(t);
248
303
  break;
249
304
  case "scrollInView":
250
- ft(t);
305
+ kt(t);
251
306
  break;
252
307
  }
253
308
  }
254
- function Re(e) {
309
+ function Ae(e) {
255
310
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
256
311
  }
257
- function Pe(e, t) {
258
- const n = mt(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
259
- for (const l of a)
312
+ function We(e, t) {
313
+ const n = St(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
314
+ for (const s of a)
260
315
  for (const d of n)
261
- d in l || (l[d] = i[d]);
316
+ d in s || (s[d] = i[d]);
262
317
  }
263
- function mt(e) {
318
+ function St(e) {
264
319
  const t = [];
265
320
  for (const n of e.steps)
266
321
  for (const i in n.styles)
267
322
  t.indexOf(i) === -1 && t.push(i);
268
323
  return t;
269
324
  }
270
- function Be(e) {
325
+ function Ne(e) {
271
326
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
272
327
  if (!t.length) {
273
- Re(e.elementId || e.id || "");
328
+ Ae(e.elementId || e.id || "");
274
329
  return;
275
330
  }
276
331
  Array.from(t).forEach((n) => {
277
- Pe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", O(n.style, e.steps[0].styles), setTimeout(() => {
278
- n.style.transition = `all ${e.duration}s ${z(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), O(n.style, e.steps[1].styles), setTimeout(() => {
332
+ We(e, n), n.style.transition = "none", n.style.transitionDelay = "0", U(n.style, e.steps[0].styles), setTimeout(() => {
333
+ n.style.transition = `all ${e.duration}s ${J(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), U(n.style, e.steps[1].styles), setTimeout(() => {
279
334
  n.style.transition = "", n.style.transitionDelay = "";
280
335
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
281
336
  });
282
337
  });
283
338
  }
284
- function ft(e) {
339
+ function kt(e) {
285
340
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
286
341
  if (!t.length) {
287
- Re(e.elementId || e.id || "");
342
+ Ae(e.elementId || e.id || "");
288
343
  return;
289
344
  }
290
345
  Array.from(t).forEach((n) => {
291
- Pe(e, n);
346
+ We(e, n);
292
347
  let i = !1, o = !1;
293
348
  function r() {
294
- !i && l(n) ? (i = !0, o = !0, setTimeout(() => {
295
- O(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
349
+ !i && s(n) ? (i = !0, o = !0, setTimeout(() => {
350
+ U(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
296
351
  o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
297
352
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
298
- })) : e.repeat && i && !o && !l(n) && (i = !1, O(n.style, e.steps[0].styles));
353
+ })) : e.repeat && i && !o && !s(n) && (i = !1, U(n.style, e.steps[0].styles));
299
354
  }
300
- const a = dt(r, 200, {
355
+ const a = xt(r, 200, {
301
356
  leading: !1
302
357
  });
303
- function l(h) {
358
+ function s(h) {
304
359
  const g = h.getBoundingClientRect(), m = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * m;
305
360
  return g.bottom > f && g.top < m - f;
306
361
  }
307
362
  const d = e.steps[0].styles;
308
363
  function c() {
309
- O(n.style, d);
364
+ U(n.style, d);
310
365
  }
311
366
  c(), setTimeout(() => {
312
- n.style.transition = `all ${e.duration}s ${z(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
367
+ n.style.transition = `all ${e.duration}s ${J(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
313
368
  }), document.addEventListener("scroll", a, {
314
369
  capture: !0,
315
370
  passive: !0
316
371
  }), r();
317
372
  });
318
373
  }
319
- const Ve = (e) => Object.entries(e).map(([n, i]) => {
374
+ const Fe = (e) => Object.entries(e).map(([n, i]) => {
320
375
  if (typeof i == "string")
321
- return `${z(n)}: ${i};`;
322
- }).filter(ee), ht = (e) => Ve(e).join(`
376
+ return `${J(n)}: ${i};`;
377
+ }).filter(te), Ct = (e) => Fe(e).join(`
323
378
  `), M = ({
324
379
  mediaQuery: e,
325
380
  className: t,
326
381
  styles: n
327
382
  }) => {
328
383
  const i = `.${t} {
329
- ${ht(n)}
384
+ ${Ct(n)}
330
385
  }`;
331
386
  return e ? `${e} {
332
387
  ${i}
333
388
  }` : i;
334
389
  };
335
- function gt({
390
+ function Tt({
336
391
  style: e
337
392
  }) {
338
393
  return e;
339
394
  }
340
- const bt = ({
395
+ const It = ({
341
396
  block: e,
342
397
  context: t
343
- }) => Ae(gt({
398
+ }) => $e(Tt({
344
399
  style: e.style || {},
345
400
  context: t,
346
401
  block: e
347
402
  }));
348
- function Ae(e) {
349
- switch (D) {
403
+ function $e(e) {
404
+ switch ($) {
350
405
  case "svelte":
351
406
  case "vue":
352
407
  case "solid":
353
408
  case "angular":
354
- return Ve(e).join(" ");
409
+ return Fe(e).join(" ");
355
410
  case "qwik":
356
411
  case "reactNative":
357
412
  case "react":
@@ -359,21 +414,24 @@ function Ae(e) {
359
414
  return e;
360
415
  }
361
416
  }
362
- const pt = ({
417
+ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, wt = ({
363
418
  block: e,
364
- registeredComponents: t
419
+ registeredComponents: t,
420
+ model: n
365
421
  }) => {
366
- var o;
367
- const n = (o = e.component) == null ? void 0 : o.name;
368
- if (!n)
422
+ var r;
423
+ const i = (r = e.component) == null ? void 0 : r.name;
424
+ if (!i)
369
425
  return null;
370
- const i = t[n];
371
- if (i)
372
- return i;
373
- console.warn(`
374
- Could not find a registered component named "${n}".
426
+ const o = t[i];
427
+ if (!o || Le(o, n)) {
428
+ console.warn(`
429
+ Could not find a registered component named "${i}".
375
430
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
376
- }, yt = ({
431
+ return;
432
+ } else
433
+ return o;
434
+ }, Et = ({
377
435
  block: e,
378
436
  context: t
379
437
  }) => {
@@ -383,7 +441,7 @@ const pt = ({
383
441
  } = e;
384
442
  if (!(n != null && n.collection))
385
443
  return;
386
- const o = L({
444
+ const o = O({
387
445
  code: n.collection,
388
446
  localState: t.localState,
389
447
  rootState: t.rootState,
@@ -406,27 +464,27 @@ const pt = ({
406
464
  },
407
465
  block: i
408
466
  }));
409
- }, xt = (e, t) => {
467
+ }, Rt = (e, t) => {
410
468
  var n;
411
469
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
412
470
  builderLinkComponent: t
413
471
  } : {};
414
- }, vt = (e, t) => {
415
- var n;
416
- return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
417
- builderComponents: t
472
+ }, Pt = (e, t, n) => {
473
+ var i;
474
+ return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
475
+ builderComponents: Object.fromEntries(Object.entries(t).filter(([r, a]) => !Le(a, n)))
418
476
  } : {};
419
- }, St = (e, t) => {
477
+ }, Bt = (e, t) => {
420
478
  var n;
421
479
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
422
480
  builderBlock: t
423
481
  } : {};
424
- }, kt = (e, t) => {
482
+ }, Vt = (e, t) => {
425
483
  var n;
426
484
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
427
485
  builderContext: t
428
486
  } : {};
429
- }, We = {
487
+ }, De = {
430
488
  small: {
431
489
  min: 320,
432
490
  default: 321,
@@ -442,11 +500,11 @@ const pt = ({
442
500
  default: 991,
443
501
  max: 1200
444
502
  }
445
- }, ue = (e, t = We) => `@media (max-width: ${t[e].max}px)`, Ne = ({
503
+ }, he = (e, t = De) => `@media (max-width: ${t[e].max}px)`, Oe = ({
446
504
  small: e,
447
505
  medium: t
448
506
  }) => {
449
- const n = oe(We);
507
+ const n = re(De);
450
508
  if (!e || !t)
451
509
  return n;
452
510
  const i = Math.floor(e / 2);
@@ -469,8 +527,8 @@ const pt = ({
469
527
  default: r + 1
470
528
  }, n;
471
529
  };
472
- function J(e) {
473
- return /* @__PURE__ */ s(
530
+ function G(e) {
531
+ return /* @__PURE__ */ l(
474
532
  "style",
475
533
  {
476
534
  dangerouslySetInnerHTML: { __html: e.styles },
@@ -479,44 +537,44 @@ function J(e) {
479
537
  }
480
538
  );
481
539
  }
482
- function Ct(e) {
540
+ function At(e) {
483
541
  function t() {
484
542
  const i = e.block;
485
- return ee(i.hide) ? !i.hide : ee(i.show) ? i.show : !0;
543
+ return te(i.hide) ? !i.hide : te(i.show) ? i.show : !0;
486
544
  }
487
545
  function n() {
488
- var v, p, b;
489
- const i = e.block, o = i.responsiveStyles, r = e.context.content, a = Ne(
490
- ((v = r == null ? void 0 : r.meta) == null ? void 0 : v.breakpoints) || {}
491
- ), l = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
546
+ var x, b, p;
547
+ const i = e.block, o = i.responsiveStyles, r = e.context.content, a = Oe(
548
+ ((x = r == null ? void 0 : r.meta) == null ? void 0 : x.breakpoints) || {}
549
+ ), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
492
550
  if (!h)
493
551
  return "";
494
- const g = l ? M({
552
+ const g = s ? M({
495
553
  className: h,
496
- styles: l
554
+ styles: s
497
555
  }) : "", m = d ? M({
498
556
  className: h,
499
557
  styles: d,
500
- mediaQuery: ue(
558
+ mediaQuery: he(
501
559
  "medium",
502
560
  a
503
561
  )
504
- }) : "", x = c ? M({
562
+ }) : "", y = c ? M({
505
563
  className: h,
506
564
  styles: c,
507
- mediaQuery: ue(
565
+ mediaQuery: he(
508
566
  "small",
509
567
  a
510
568
  )
511
- }) : "", f = i.animations && i.animations.find((y) => y.trigger === "hover");
512
- let S = "";
569
+ }) : "", f = i.animations && i.animations.find((C) => C.trigger === "hover");
570
+ let v = "";
513
571
  if (f) {
514
- const y = ((b = (p = f.steps) == null ? void 0 : p[1]) == null ? void 0 : b.styles) || {};
515
- S = M({
572
+ const C = ((p = (b = f.steps) == null ? void 0 : b[1]) == null ? void 0 : p.styles) || {};
573
+ v = M({
516
574
  className: `${h}:hover`,
517
575
  styles: {
518
- ...y,
519
- transition: `all ${f.duration}s ${z(
576
+ ...C,
577
+ transition: `all ${f.duration}s ${J(
520
578
  f.easing
521
579
  )}`,
522
580
  transitionDelay: f.delay ? `${f.delay}s` : "0s"
@@ -526,12 +584,12 @@ function Ct(e) {
526
584
  return [
527
585
  g,
528
586
  m,
529
- x,
530
- S
587
+ y,
588
+ v
531
589
  ].join(" ");
532
590
  }
533
- return /* @__PURE__ */ s(I, { children: n() && t() ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(
534
- J,
591
+ return /* @__PURE__ */ l(T, { children: n() && t() ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
592
+ G,
535
593
  {
536
594
  id: "builderio-block",
537
595
  styles: n(),
@@ -539,10 +597,10 @@ function Ct(e) {
539
597
  }
540
598
  ) }) : null });
541
599
  }
542
- function Tt(e) {
600
+ function Wt(e) {
543
601
  return e.charAt(0).toUpperCase() + e.slice(1);
544
602
  }
545
- const It = (e) => `on${Tt(e)}`, wt = (e, t) => (n) => L({
603
+ const Nt = (e) => `on${Wt(e)}`, Ft = (e, t) => (n) => O({
546
604
  code: e,
547
605
  context: t.context,
548
606
  localState: t.localState,
@@ -551,16 +609,16 @@ const It = (e) => `on${Tt(e)}`, wt = (e, t) => (n) => L({
551
609
  event: n,
552
610
  isExpression: !1
553
611
  });
554
- function Fe(e) {
612
+ function Ue(e) {
555
613
  var i;
556
614
  const t = {}, n = (i = e.block.actions) != null ? i : {};
557
615
  for (const o in n) {
558
616
  if (!n.hasOwnProperty(o))
559
617
  continue;
560
618
  const r = n[o];
561
- let a = It(o);
619
+ let a = Nt(o);
562
620
  if (e.stripPrefix)
563
- switch (D) {
621
+ switch ($) {
564
622
  case "vue":
565
623
  a = a.replace("v-on:", "");
566
624
  break;
@@ -568,49 +626,49 @@ function Fe(e) {
568
626
  a = a.replace("on:", "");
569
627
  break;
570
628
  }
571
- t[a] = wt(r, e);
629
+ t[a] = Ft(r, e);
572
630
  }
573
631
  return t;
574
632
  }
575
- function Et({
633
+ function $t({
576
634
  properties: e
577
635
  }) {
578
636
  return e;
579
637
  }
580
- const Rt = (e) => ({
638
+ const Lt = (e) => ({
581
639
  href: e.href
582
640
  });
583
- function le({
641
+ function ce({
584
642
  block: e,
585
643
  context: t
586
644
  }) {
587
645
  var i;
588
646
  const n = {
589
- ...Rt(e),
647
+ ...Lt(e),
590
648
  ...e.properties,
591
649
  "builder-id": e.id,
592
- style: bt({
650
+ style: It({
593
651
  block: e,
594
652
  context: t
595
653
  }),
596
- [U()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
654
+ [_()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
597
655
  };
598
- return Et({
656
+ return $t({
599
657
  properties: n,
600
658
  context: t,
601
659
  block: e
602
660
  });
603
661
  }
604
- function Pt(e) {
605
- return /* @__PURE__ */ s(
606
- ae,
662
+ function Dt(e) {
663
+ return /* @__PURE__ */ l(
664
+ le,
607
665
  {
608
666
  TagName: e.Wrapper,
609
- attributes: le({
667
+ attributes: ce({
610
668
  block: e.block,
611
669
  context: e.context
612
670
  }),
613
- actionAttributes: Fe({
671
+ actionAttributes: Ue({
614
672
  block: e.block,
615
673
  rootState: e.context.rootState,
616
674
  rootSetState: e.context.rootSetState,
@@ -622,18 +680,18 @@ function Pt(e) {
622
680
  }
623
681
  );
624
682
  }
625
- function Bt(e) {
626
- return B(() => {
627
- }, []), /* @__PURE__ */ s(I, { children: e.children });
683
+ function Ot(e) {
684
+ return A(() => {
685
+ }, []), /* @__PURE__ */ l(T, { children: e.children });
628
686
  }
629
- function Vt(e) {
687
+ function Ut(e) {
630
688
  function t() {
631
689
  return e.includeBlockProps ? {
632
- ...le({
690
+ ...ce({
633
691
  block: e.block,
634
692
  context: e.context
635
693
  }),
636
- ...Fe({
694
+ ...Ue({
637
695
  block: e.block,
638
696
  rootState: e.context.rootState,
639
697
  rootSetState: e.context.rootSetState,
@@ -642,8 +700,8 @@ function Vt(e) {
642
700
  })
643
701
  } : {};
644
702
  }
645
- return /* @__PURE__ */ s(I, { children: e.Wrapper.load ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(
646
- Bt,
703
+ return /* @__PURE__ */ l(T, { children: e.Wrapper.load ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
704
+ Ot,
647
705
  {
648
706
  load: e.Wrapper.load,
649
707
  fallback: e.Wrapper.fallback,
@@ -651,9 +709,9 @@ function Vt(e) {
651
709
  attributes: t(),
652
710
  children: e.children
653
711
  }
654
- ) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
712
+ ) }) : /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
655
713
  }
656
- const At = ({
714
+ const _t = ({
657
715
  componentOptions: e,
658
716
  builderBlock: t,
659
717
  context: n,
@@ -662,14 +720,14 @@ const At = ({
662
720
  isInteractive: r,
663
721
  contextValue: a
664
722
  }) => {
665
- const l = {
723
+ const s = {
666
724
  ...e,
667
725
  /**
668
726
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
669
727
  * component itself directly. Otherwise, they are provided to the wrapper element.
670
728
  */
671
729
  ...o ? {
672
- attributes: le({
730
+ attributes: ce({
673
731
  block: t,
674
732
  context: a
675
733
  })
@@ -681,17 +739,17 @@ const At = ({
681
739
  context: n,
682
740
  wrapperProps: e,
683
741
  includeBlockProps: o
684
- } : l;
742
+ } : s;
685
743
  };
686
- function me(e) {
744
+ function ge(e) {
687
745
  var i;
688
- const [t, n] = R(
689
- () => e.isInteractive ? Vt : e.componentRef
746
+ const [t, n] = E(
747
+ () => e.isInteractive ? Ut : e.componentRef
690
748
  );
691
- return /* @__PURE__ */ s(I, { children: e.componentRef ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(
749
+ return /* @__PURE__ */ l(T, { children: e.componentRef ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
692
750
  t,
693
751
  {
694
- ...At({
752
+ ..._t({
695
753
  componentOptions: e.componentOptions,
696
754
  builderBlock: e.builderBlock,
697
755
  context: e.context,
@@ -701,7 +759,7 @@ function me(e) {
701
759
  isInteractive: e.isInteractive,
702
760
  contextValue: e.context
703
761
  }),
704
- children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
762
+ children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
705
763
  H,
706
764
  {
707
765
  block: o,
@@ -714,9 +772,9 @@ function me(e) {
714
772
  }
715
773
  ) }) : null });
716
774
  }
717
- function fe(e) {
718
- const [t, n] = R(() => e.repeatContext);
719
- return /* @__PURE__ */ s(re.Provider, { value: t, children: /* @__PURE__ */ s(
775
+ function be(e) {
776
+ const [t, n] = E(() => e.repeatContext);
777
+ return /* @__PURE__ */ l(se.Provider, { value: t, children: /* @__PURE__ */ l(
720
778
  H,
721
779
  {
722
780
  block: e.block,
@@ -727,98 +785,99 @@ function fe(e) {
727
785
  ) });
728
786
  }
729
787
  function H(e) {
730
- var h, g, m, x;
788
+ var h, g, m, y;
731
789
  function t() {
732
- return yt({
790
+ return Et({
733
791
  block: e.block,
734
792
  context: e.context
735
793
  });
736
794
  }
737
- const [n, i] = R(() => ({
795
+ const [n, i] = E(() => ({
738
796
  value: null,
739
797
  update: !1
740
798
  }));
741
799
  function o() {
742
- var S;
743
- if (n.value && !n.update && !ve())
800
+ var v;
801
+ if (n.value && !n.update && !ae())
744
802
  return n.value;
745
- const f = (S = e.block.repeat) != null && S.collection ? e.block : ct({
803
+ const f = (v = e.block.repeat) != null && v.collection ? e.block : yt({
746
804
  block: e.block,
747
805
  localState: e.context.localState,
748
806
  rootState: e.context.rootState,
749
807
  rootSetState: e.context.rootSetState,
750
- context: e.context.context,
751
- shouldEvaluateBindings: !0
808
+ context: e.context.context
752
809
  });
753
810
  return n.value = f, n.update = !1, f;
754
811
  }
755
812
  function r() {
756
- return pt({
813
+ return wt({
757
814
  block: o(),
758
- registeredComponents: e.registeredComponents
815
+ registeredComponents: e.registeredComponents,
816
+ model: e.context.model
759
817
  });
760
818
  }
761
819
  function a() {
762
- var S;
763
- return e.block.tagName === "a" || ((S = o().properties) == null ? void 0 : S.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
820
+ var v;
821
+ return e.block.tagName === "a" || ((v = o().properties) == null ? void 0 : v.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
764
822
  }
765
- function l() {
766
- var v, p;
767
- if ((v = e.block.repeat) != null && v.collection)
768
- return !!((p = t == null ? void 0 : t()) != null && p.length);
823
+ function s() {
824
+ var x, b;
825
+ if ((x = e.block.repeat) != null && x.collection)
826
+ return !!((b = t == null ? void 0 : t()) != null && b.length);
769
827
  const f = "hide" in o() ? o().hide : !1;
770
828
  return ("show" in o() ? o().show : !0) && !f;
771
829
  }
772
830
  function d() {
773
- var S, v;
774
- return !((S = r == null ? void 0 : r()) != null && S.component) && !t() ? (v = o().children) != null ? v : [] : [];
831
+ var v, x;
832
+ return !((v = r == null ? void 0 : r()) != null && v.component) && !t() ? (x = o().children) != null ? x : [] : [];
775
833
  }
776
834
  function c() {
777
- var f, S, v, p;
835
+ var f, v, x, b;
778
836
  return {
779
837
  blockChildren: (f = o().children) != null ? f : [],
780
- componentRef: (S = r == null ? void 0 : r()) == null ? void 0 : S.component,
838
+ componentRef: (v = r == null ? void 0 : r()) == null ? void 0 : v.component,
781
839
  componentOptions: {
782
- ...Ze(o()),
783
- ...St(r(), o()),
784
- ...kt(r(), e.context),
785
- ...xt(r(), e.linkComponent),
786
- ...vt(
840
+ ...ct(o(), e.context),
841
+ ...Bt(r(), o()),
842
+ ...Vt(r(), e.context),
843
+ ...Rt(r(), e.linkComponent),
844
+ ...Pt(
787
845
  r(),
788
- e.registeredComponents
846
+ e.registeredComponents,
847
+ e.context.model
789
848
  )
790
849
  },
791
850
  context: e.context,
792
851
  linkComponent: e.linkComponent,
793
852
  registeredComponents: e.registeredComponents,
794
853
  builderBlock: o(),
795
- includeBlockProps: ((v = r == null ? void 0 : r()) == null ? void 0 : v.noWrap) === !0,
796
- isInteractive: !((p = r == null ? void 0 : r()) != null && p.isRSC && D === "rsc")
854
+ includeBlockProps: ((x = r == null ? void 0 : r()) == null ? void 0 : x.noWrap) === !0,
855
+ isInteractive: !((b = r == null ? void 0 : r()) != null && b.isRSC && $ === "rsc")
797
856
  };
798
857
  }
799
- return B(() => {
800
- const f = o().id, S = o().animations;
801
- S && f && ut(
802
- S.map((v) => ({
803
- ...v,
858
+ return A(() => {
859
+ const f = o().id, v = o().animations;
860
+ v && f && vt(
861
+ v.map((x) => ({
862
+ ...x,
804
863
  elementId: f
805
864
  }))
806
865
  );
807
- }, []), B(() => {
866
+ }, []), A(() => {
808
867
  n.update = !0;
809
- }), /* @__PURE__ */ s(I, { children: l() ? /* @__PURE__ */ V(I, { children: [
810
- /* @__PURE__ */ s(Ct, { block: o(), context: e.context }),
811
- (h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(I, { children: (x = t()) == null ? void 0 : x.map((f, S) => /* @__PURE__ */ s(
812
- fe,
868
+ }), /* @__PURE__ */ l(T, { children: s() ? /* @__PURE__ */ W(T, { children: [
869
+ /* @__PURE__ */ l(At, { block: o(), context: e.context }),
870
+ (h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ l(T, { children: (y = t()) == null ? void 0 : y.map((f, v) => /* @__PURE__ */ l(
871
+ be,
813
872
  {
814
873
  repeatContext: f.context,
815
874
  block: f.block,
816
875
  registeredComponents: e.registeredComponents,
817
876
  linkComponent: e.linkComponent
818
877
  },
819
- S
820
- )) }) : /* @__PURE__ */ s(
821
- me,
878
+ v
879
+ )) }) : /* @__PURE__ */ l(
880
+ ge,
822
881
  {
823
882
  componentRef: c().componentRef,
824
883
  componentOptions: c().componentOptions,
@@ -830,24 +889,24 @@ function H(e) {
830
889
  includeBlockProps: c().includeBlockProps,
831
890
  isInteractive: c().isInteractive
832
891
  }
833
- ) : /* @__PURE__ */ s(I, { children: t() ? /* @__PURE__ */ s(I, { children: (m = t()) == null ? void 0 : m.map((f, S) => /* @__PURE__ */ s(
834
- fe,
892
+ ) : /* @__PURE__ */ l(T, { children: t() ? /* @__PURE__ */ l(T, { children: (m = t()) == null ? void 0 : m.map((f, v) => /* @__PURE__ */ l(
893
+ be,
835
894
  {
836
895
  repeatContext: f.context,
837
896
  block: f.block,
838
897
  registeredComponents: e.registeredComponents,
839
898
  linkComponent: e.linkComponent
840
899
  },
841
- S
842
- )) }) : /* @__PURE__ */ V(
843
- Pt,
900
+ v
901
+ )) }) : /* @__PURE__ */ W(
902
+ Dt,
844
903
  {
845
904
  Wrapper: a(),
846
905
  block: o(),
847
906
  context: e.context,
848
907
  children: [
849
- /* @__PURE__ */ s(
850
- me,
908
+ /* @__PURE__ */ l(
909
+ ge,
851
910
  {
852
911
  componentRef: c().componentRef,
853
912
  componentOptions: c().componentOptions,
@@ -860,7 +919,7 @@ function H(e) {
860
919
  isInteractive: c().isInteractive
861
920
  }
862
921
  ),
863
- (g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */ s(
922
+ (g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */ l(
864
923
  H,
865
924
  {
866
925
  block: f,
@@ -875,8 +934,8 @@ function H(e) {
875
934
  ) })
876
935
  ] }) : null });
877
936
  }
878
- function Wt(e) {
879
- const t = $(null);
937
+ function Ht(e) {
938
+ const t = D(null);
880
939
  function n() {
881
940
  var a;
882
941
  return [
@@ -892,8 +951,8 @@ function Wt(e) {
892
951
  return e.path.startsWith(a) ? e.path : `${a}${e.path || ""}`;
893
952
  }
894
953
  function o() {
895
- var a, l;
896
- N() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
954
+ var a, s;
955
+ N() && !((a = e.blocks) != null && a.length) && ((s = window.parent) == null || s.postMessage(
897
956
  {
898
957
  type: "builder.clickEmptyBlocks",
899
958
  data: {
@@ -905,8 +964,8 @@ function Wt(e) {
905
964
  ));
906
965
  }
907
966
  function r() {
908
- var a, l;
909
- N() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
967
+ var a, s;
968
+ N() && !((a = e.blocks) != null && a.length) && ((s = window.parent) == null || s.postMessage(
910
969
  {
911
970
  type: "builder.hoverEmptyBlocks",
912
971
  data: {
@@ -917,9 +976,9 @@ function Wt(e) {
917
976
  "*"
918
977
  ));
919
978
  }
920
- return B(() => {
921
- }, []), /* @__PURE__ */ V(I, { children: [
922
- /* @__PURE__ */ s(
979
+ return A(() => {
980
+ }, []), /* @__PURE__ */ W(T, { children: [
981
+ /* @__PURE__ */ l(
923
982
  e.BlocksWrapper,
924
983
  {
925
984
  ref: t,
@@ -934,7 +993,7 @@ function Wt(e) {
934
993
  children: e.children
935
994
  }
936
995
  ),
937
- /* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-215a41e0 {
996
+ /* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-215a41e0 {
938
997
  display: flex;
939
998
  flex-direction: column;
940
999
  align-items: stretch;
@@ -943,9 +1002,9 @@ function Wt(e) {
943
1002
  }
944
1003
  function F(e) {
945
1004
  var i, o, r;
946
- const t = de(re), n = de(we);
947
- return /* @__PURE__ */ s(
948
- Wt,
1005
+ const t = fe(se), n = fe(Pe);
1006
+ return /* @__PURE__ */ l(
1007
+ Ht,
949
1008
  {
950
1009
  blocks: e.blocks,
951
1010
  parent: e.parent,
@@ -954,7 +1013,7 @@ function F(e) {
954
1013
  classNameProp: e.className,
955
1014
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
956
1015
  BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
957
- children: e.blocks ? /* @__PURE__ */ s(I, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ s(
1016
+ children: e.blocks ? /* @__PURE__ */ l(T, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ l(
958
1017
  H,
959
1018
  {
960
1019
  block: a,
@@ -967,9 +1026,9 @@ function F(e) {
967
1026
  }
968
1027
  );
969
1028
  }
970
- const Nt = (e) => `builder-columns ${e}-breakpoints`;
971
- function Ft(e) {
972
- var S, v;
1029
+ const Mt = (e) => `builder-columns ${e}-breakpoints`;
1030
+ function jt(e) {
1031
+ var v, x;
973
1032
  function t() {
974
1033
  return typeof e.space == "number" ? e.space || 0 : 20;
975
1034
  }
@@ -979,28 +1038,28 @@ function Ft(e) {
979
1038
  function i() {
980
1039
  return e.stackColumnsAt || "tablet";
981
1040
  }
982
- function o(p) {
983
- return p.link ? e.builderLinkComponent || "a" : "div";
1041
+ function o(b) {
1042
+ return b.link ? e.builderLinkComponent || "a" : "div";
984
1043
  }
985
- function r(p) {
986
- var b;
987
- return ((b = n()[p]) == null ? void 0 : b.width) || 100 / n().length;
1044
+ function r(b) {
1045
+ var p;
1046
+ return ((p = n()[b]) == null ? void 0 : p.width) || 100 / n().length;
988
1047
  }
989
- function a(p) {
990
- const b = r(p), y = t() * (n().length - 1) * (b / 100);
991
- return `calc(${b}% - ${y}px)`;
1048
+ function a(b) {
1049
+ const p = r(b), C = t() * (n().length - 1) * (p / 100);
1050
+ return `calc(${p}% - ${C}px)`;
992
1051
  }
993
- function l({
994
- stackedStyle: p,
995
- desktopStyle: b
1052
+ function s({
1053
+ stackedStyle: b,
1054
+ desktopStyle: p
996
1055
  }) {
997
- return i() === "tablet" ? p : b;
1056
+ return i() === "tablet" ? b : p;
998
1057
  }
999
1058
  function d({
1000
- stackedStyle: p,
1001
- desktopStyle: b
1059
+ stackedStyle: b,
1060
+ desktopStyle: p
1002
1061
  }) {
1003
- return i() === "never" ? b : p;
1062
+ return i() === "never" ? p : b;
1004
1063
  }
1005
1064
  function c() {
1006
1065
  return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
@@ -1008,48 +1067,48 @@ function Ft(e) {
1008
1067
  function h() {
1009
1068
  return {
1010
1069
  "--flex-dir": c(),
1011
- "--flex-dir-tablet": l({
1070
+ "--flex-dir-tablet": s({
1012
1071
  stackedStyle: c(),
1013
1072
  desktopStyle: "row"
1014
1073
  })
1015
1074
  };
1016
1075
  }
1017
- function g(p) {
1018
- const b = p === 0 ? 0 : t(), y = a(p), A = `${b}px`, k = "100%", w = 0;
1076
+ function g(b) {
1077
+ const p = b === 0 ? 0 : t(), C = a(b), V = `${p}px`, k = "100%", I = 0;
1019
1078
  return {
1020
1079
  ...{
1021
1080
  display: "flex",
1022
1081
  flexDirection: "column",
1023
1082
  alignItems: "stretch"
1024
1083
  },
1025
- width: y,
1026
- ["marginLeft"]: A,
1084
+ width: C,
1085
+ ["marginLeft"]: V,
1027
1086
  "--column-width-mobile": d({
1028
1087
  stackedStyle: k,
1029
- desktopStyle: y
1088
+ desktopStyle: C
1030
1089
  }),
1031
1090
  "--column-margin-left-mobile": d({
1032
- stackedStyle: w,
1033
- desktopStyle: A
1091
+ stackedStyle: I,
1092
+ desktopStyle: V
1034
1093
  }),
1035
- "--column-width-tablet": l({
1094
+ "--column-width-tablet": s({
1036
1095
  stackedStyle: k,
1037
- desktopStyle: y
1096
+ desktopStyle: C
1038
1097
  }),
1039
- "--column-margin-left-tablet": l({
1040
- stackedStyle: w,
1041
- desktopStyle: A
1098
+ "--column-margin-left-tablet": s({
1099
+ stackedStyle: I,
1100
+ desktopStyle: V
1042
1101
  })
1043
1102
  };
1044
1103
  }
1045
- function m(p) {
1046
- var y, A;
1047
- return Ne(
1048
- ((A = (y = e.builderContext.content) == null ? void 0 : y.meta) == null ? void 0 : A.breakpoints) || {}
1049
- )[p].max;
1104
+ function m(b) {
1105
+ var C, V;
1106
+ return Oe(
1107
+ ((V = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : V.breakpoints) || {}
1108
+ )[b].max;
1050
1109
  }
1051
- function x() {
1052
- const p = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1110
+ function y() {
1111
+ const b = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1053
1112
  return `
1054
1113
  @media (max-width: ${m("medium")}px) {
1055
1114
  .${e.builderBlock.id}-breakpoints {
@@ -1057,7 +1116,7 @@ function Ft(e) {
1057
1116
  align-items: stretch;
1058
1117
  }
1059
1118
 
1060
- ${p} {
1119
+ ${b} {
1061
1120
  width: var(--column-width-tablet) !important;
1062
1121
  margin-left: var(--column-margin-left-tablet) !important;
1063
1122
  }
@@ -1069,47 +1128,47 @@ function Ft(e) {
1069
1128
  align-items: stretch;
1070
1129
  }
1071
1130
 
1072
- ${p} {
1131
+ ${b} {
1073
1132
  width: var(--column-width-mobile) !important;
1074
1133
  margin-left: var(--column-margin-left-mobile) !important;
1075
1134
  }
1076
1135
  },
1077
1136
  `;
1078
1137
  }
1079
- function f(p, b) {
1138
+ function f(b, p) {
1080
1139
  return {
1081
- ...p.link ? {
1082
- href: p.link
1140
+ ...b.link ? {
1141
+ href: b.link
1083
1142
  } : {},
1084
- [U()]: "builder-column",
1085
- style: Ae(g(b))
1143
+ [_()]: "builder-column",
1144
+ style: $e(g(p))
1086
1145
  };
1087
1146
  }
1088
- return /* @__PURE__ */ V(I, { children: [
1089
- /* @__PURE__ */ V(
1147
+ return /* @__PURE__ */ W(T, { children: [
1148
+ /* @__PURE__ */ W(
1090
1149
  "div",
1091
1150
  {
1092
- className: Nt((S = e.builderBlock) == null ? void 0 : S.id) + " div-49f40bae",
1151
+ className: Mt((v = e.builderBlock) == null ? void 0 : v.id) + " div-49f40bae",
1093
1152
  style: h(),
1094
1153
  children: [
1095
- /* @__PURE__ */ s(
1096
- J,
1154
+ /* @__PURE__ */ l(
1155
+ G,
1097
1156
  {
1098
1157
  id: "builderio-columns",
1099
- styles: x(),
1158
+ styles: y(),
1100
1159
  nonce: e.builderContext.nonce
1101
1160
  }
1102
1161
  ),
1103
- (v = e.columns) == null ? void 0 : v.map((p, b) => /* @__PURE__ */ s(
1104
- ae,
1162
+ (x = e.columns) == null ? void 0 : x.map((b, p) => /* @__PURE__ */ l(
1163
+ le,
1105
1164
  {
1106
- TagName: o(p),
1165
+ TagName: o(b),
1107
1166
  actionAttributes: {},
1108
- attributes: f(p, b),
1109
- children: /* @__PURE__ */ s(
1167
+ attributes: f(b, p),
1168
+ children: /* @__PURE__ */ l(
1110
1169
  F,
1111
1170
  {
1112
- path: `columns.${b}.blocks`,
1171
+ path: `columns.${p}.blocks`,
1113
1172
  parent: e.builderBlock.id,
1114
1173
  styleProp: {
1115
1174
  flexGrow: "1"
@@ -1117,70 +1176,70 @@ function Ft(e) {
1117
1176
  context: e.builderContext,
1118
1177
  registeredComponents: e.builderComponents,
1119
1178
  linkComponent: e.builderLinkComponent,
1120
- blocks: p.blocks
1179
+ blocks: b.blocks
1121
1180
  }
1122
1181
  )
1123
1182
  },
1124
- b
1183
+ p
1125
1184
  ))
1126
1185
  ]
1127
1186
  }
1128
1187
  ),
1129
- /* @__PURE__ */ s("style", { children: `.div-49f40bae {
1188
+ /* @__PURE__ */ l("style", { children: `.div-49f40bae {
1130
1189
  display: flex;
1131
1190
  line-height: normal;
1132
1191
  }` })
1133
1192
  ] });
1134
1193
  }
1135
- function $t(e) {
1136
- return /* @__PURE__ */ s("span", { children: e.children });
1194
+ function qt(e) {
1195
+ return /* @__PURE__ */ l("span", { children: e.children });
1137
1196
  }
1138
- function he(e) {
1197
+ function pe(e) {
1139
1198
  return e.replace(/http(s)?:/, "");
1140
1199
  }
1141
- function Dt(e = "", t, n) {
1200
+ function zt(e = "", t, n) {
1142
1201
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1143
1202
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1144
1203
  }
1145
- function Lt(e, t) {
1204
+ function Kt(e, t) {
1146
1205
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1147
1206
  return e;
1148
1207
  if (t === "master")
1149
- return he(e);
1208
+ return pe(e);
1150
1209
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1151
1210
  if (n) {
1152
1211
  const i = e.split(n[0]), o = n[3], r = t.match("x") ? t : `${t}x`;
1153
- return he(`${i[0]}_${r}${o}`);
1212
+ return pe(`${i[0]}_${r}${o}`);
1154
1213
  }
1155
1214
  return null;
1156
1215
  }
1157
- function G(e) {
1216
+ function Y(e) {
1158
1217
  if (!e)
1159
1218
  return e;
1160
1219
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1161
1220
  if (e.match(/builder\.io/)) {
1162
1221
  let n = e;
1163
1222
  const i = Number(e.split("?width=")[1]);
1164
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Dt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1223
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${zt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1165
1224
  }
1166
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Lt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1225
+ 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;
1167
1226
  }
1168
- function Ot(e) {
1169
- var o, r, a, l, d, c;
1227
+ function Jt(e) {
1228
+ var o, r, a, s, d, c;
1170
1229
  function t() {
1171
1230
  var m;
1172
1231
  const g = e.image || e.src;
1173
1232
  if (!g || // We can auto add srcset for cdn.builder.io and shopify
1174
1233
  // images, otherwise you can supply this prop manually
1175
- !(g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/)))
1234
+ !(typeof g == "string" && (g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/))))
1176
1235
  return e.srcset;
1177
1236
  if (!e.noWebp) {
1178
1237
  if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1179
1238
  if (!e.srcset.includes(e.image.split("?")[0]))
1180
- return console.debug("Removed given srcset"), G(g);
1239
+ return console.debug("Removed given srcset"), Y(g);
1181
1240
  } else if (e.image && !e.srcset)
1182
- return G(g);
1183
- return G(g);
1241
+ return Y(g);
1242
+ return Y(g);
1184
1243
  }
1185
1244
  }
1186
1245
  function n() {
@@ -1197,12 +1256,12 @@ function Ot(e) {
1197
1256
  };
1198
1257
  return e.aspectRatio ? h : void 0;
1199
1258
  }
1200
- return B(() => {
1201
- }, []), /* @__PURE__ */ V(I, { children: [
1202
- /* @__PURE__ */ V(I, { children: [
1203
- /* @__PURE__ */ V("picture", { children: [
1204
- n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1205
- /* @__PURE__ */ s(
1259
+ return A(() => {
1260
+ }, []), /* @__PURE__ */ W(T, { children: [
1261
+ /* @__PURE__ */ W(T, { children: [
1262
+ /* @__PURE__ */ W("picture", { children: [
1263
+ n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
1264
+ /* @__PURE__ */ l(
1206
1265
  "img",
1207
1266
  {
1208
1267
  loading: e.highPriority ? "eager" : "lazy",
@@ -1214,33 +1273,33 @@ function Ot(e) {
1214
1273
  objectFit: e.backgroundSize || "cover",
1215
1274
  ...i()
1216
1275
  },
1217
- className: "builder-image" + (e.className ? " " + e.className : "") + " img-7a292ab8",
1276
+ className: "builder-image" + (e.className ? " " + e.className : "") + " img-c071ff08",
1218
1277
  src: e.image,
1219
1278
  srcSet: t(),
1220
1279
  sizes: e.sizes
1221
1280
  }
1222
1281
  )
1223
1282
  ] }),
1224
- e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
1283
+ e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ l(
1225
1284
  "div",
1226
1285
  {
1227
- className: "builder-image-sizer div-7a292ab8",
1286
+ className: "builder-image-sizer div-c071ff08",
1228
1287
  style: {
1229
1288
  paddingTop: e.aspectRatio * 100 + "%"
1230
1289
  }
1231
1290
  }
1232
1291
  ) : null,
1233
- (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(I, { children: e.children }) : null,
1234
- !e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-7a292ab8-2", children: e.children }) : null
1292
+ (s = (a = e.builderBlock) == null ? void 0 : a.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(T, { children: e.children }) : null,
1293
+ !e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ l("div", { className: "div-c071ff08-2", children: e.children }) : null
1235
1294
  ] }),
1236
- /* @__PURE__ */ s("style", { children: `.img-7a292ab8 {
1295
+ /* @__PURE__ */ l("style", { children: `.img-c071ff08 {
1237
1296
  opacity: 1;
1238
1297
  transition: opacity 0.2s ease-in-out;
1239
- }.div-7a292ab8 {
1298
+ }.div-c071ff08 {
1240
1299
  width: 100%;
1241
1300
  pointer-events: none;
1242
1301
  font-size: 0;
1243
- }.div-7a292ab8-2 {
1302
+ }.div-c071ff08-2 {
1244
1303
  display: flex;
1245
1304
  flex-direction: column;
1246
1305
  align-items: stretch;
@@ -1252,8 +1311,8 @@ function Ot(e) {
1252
1311
  }` })
1253
1312
  ] });
1254
1313
  }
1255
- function Ut(e) {
1256
- return /* @__PURE__ */ s(
1314
+ function Gt(e) {
1315
+ return /* @__PURE__ */ l(
1257
1316
  "section",
1258
1317
  {
1259
1318
  ...e.attributes,
@@ -1273,7 +1332,7 @@ function Ut(e) {
1273
1332
  }
1274
1333
  );
1275
1334
  }
1276
- const Y = {
1335
+ const Q = {
1277
1336
  "@type": "@builder.io/sdk:Element",
1278
1337
  layerName: "Accordion item title",
1279
1338
  responsiveStyles: {
@@ -1302,7 +1361,7 @@ const Y = {
1302
1361
  }
1303
1362
  }
1304
1363
  }]
1305
- }, Q = {
1364
+ }, X = {
1306
1365
  "@type": "@builder.io/sdk:Element",
1307
1366
  layerName: "Accordion item detail",
1308
1367
  responsiveStyles: {
@@ -1333,7 +1392,7 @@ const Y = {
1333
1392
  }
1334
1393
  }
1335
1394
  }]
1336
- }, Ht = {
1395
+ }, Yt = {
1337
1396
  name: "Builder:Accordion",
1338
1397
  canHaveChildren: !0,
1339
1398
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1350,19 +1409,19 @@ const Y = {
1350
1409
  name: "title",
1351
1410
  type: "uiBlocks",
1352
1411
  hideFromUI: !0,
1353
- defaultValue: [Y]
1412
+ defaultValue: [Q]
1354
1413
  }, {
1355
1414
  name: "detail",
1356
1415
  type: "uiBlocks",
1357
1416
  hideFromUI: !0,
1358
- defaultValue: [Q]
1417
+ defaultValue: [X]
1359
1418
  }],
1360
1419
  defaultValue: [{
1361
- title: [Y],
1362
- detail: [Q]
1420
+ title: [Q],
1421
+ detail: [X]
1363
1422
  }, {
1364
- title: [Y],
1365
- detail: [Q]
1423
+ title: [Q],
1424
+ detail: [X]
1366
1425
  }],
1367
1426
  showIf: (e) => !e.get("useChildrenForItems")
1368
1427
  }, {
@@ -1397,10 +1456,10 @@ const Y = {
1397
1456
  builderComponents: !0,
1398
1457
  builderLinkComponent: !0
1399
1458
  }
1400
- }, ge = (e) => e.toString();
1401
- function jt(e) {
1459
+ }, ye = (e) => e.toString();
1460
+ function Qt(e) {
1402
1461
  var g;
1403
- const [t, n] = R(() => []);
1462
+ const [t, n] = E(() => []);
1404
1463
  function i() {
1405
1464
  return !!(e.grid || e.oneAtATime);
1406
1465
  }
@@ -1417,7 +1476,7 @@ function jt(e) {
1417
1476
  };
1418
1477
  }
1419
1478
  function r() {
1420
- const x = {
1479
+ const y = {
1421
1480
  ...{
1422
1481
  display: "flex",
1423
1482
  flexDirection: "column"
@@ -1426,35 +1485,35 @@ function jt(e) {
1426
1485
  cursor: "pointer"
1427
1486
  };
1428
1487
  return Object.fromEntries(
1429
- Object.entries(x).filter(([f, S]) => S !== void 0)
1488
+ Object.entries(y).filter(([f, v]) => v !== void 0)
1430
1489
  );
1431
1490
  }
1432
1491
  function a(m) {
1433
1492
  return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
1434
1493
  }
1435
- function l(m) {
1494
+ function s(m) {
1436
1495
  return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
1437
1496
  }
1438
1497
  function d() {
1439
1498
  let m = null;
1440
1499
  if (e.grid && t.length && document) {
1441
1500
  const f = t[0];
1442
- let v = document.querySelector(
1501
+ let x = document.querySelector(
1443
1502
  `.builder-accordion-title[data-index="${f}"]`
1444
1503
  );
1445
- if (m = f, v) {
1446
- let p = v.getBoundingClientRect();
1447
- for (; v = v && v.nextElementSibling; )
1448
- if (v) {
1449
- if (v.classList.contains("builder-accordion-detail"))
1504
+ if (m = f, x) {
1505
+ let b = x.getBoundingClientRect();
1506
+ for (; x = x && x.nextElementSibling; )
1507
+ if (x) {
1508
+ if (x.classList.contains("builder-accordion-detail"))
1450
1509
  continue;
1451
- const b = v.getBoundingClientRect();
1452
- if (b.left > p.left) {
1453
- const y = parseInt(
1454
- v.getAttribute("data-index") || "",
1510
+ const p = x.getBoundingClientRect();
1511
+ if (p.left > b.left) {
1512
+ const C = parseInt(
1513
+ x.getAttribute("data-index") || "",
1455
1514
  10
1456
1515
  );
1457
- isNaN(y) || (p = b, m = y);
1516
+ isNaN(C) || (b = p, m = C);
1458
1517
  } else
1459
1518
  break;
1460
1519
  }
@@ -1470,31 +1529,31 @@ function jt(e) {
1470
1529
  }
1471
1530
  };
1472
1531
  return Object.fromEntries(
1473
- Object.entries(m).filter(([x, f]) => f !== void 0)
1532
+ Object.entries(m).filter(([y, f]) => f !== void 0)
1474
1533
  );
1475
1534
  }
1476
1535
  function h(m) {
1477
- t.includes(m) ? n(i() ? [] : t.filter((x) => x !== m)) : n(i() ? [m] : t.concat(m));
1536
+ t.includes(m) ? n(i() ? [] : t.filter((y) => y !== m)) : n(i() ? [m] : t.concat(m));
1478
1537
  }
1479
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, x) => /* @__PURE__ */ V(I, { children: [
1480
- /* @__PURE__ */ s(
1538
+ return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, y) => /* @__PURE__ */ W(T, { children: [
1539
+ /* @__PURE__ */ l(
1481
1540
  "div",
1482
1541
  {
1483
- className: a(x),
1542
+ className: a(y),
1484
1543
  style: {
1485
1544
  ...r(),
1486
1545
  ...e.grid && {
1487
1546
  width: e.gridRowWidth,
1488
- order: d() !== null ? ge(x) : ge(x + 1)
1547
+ order: d() !== null ? ye(y) : ye(y + 1)
1489
1548
  }
1490
1549
  },
1491
- "data-index": x,
1492
- onClick: (f) => h(x),
1493
- children: /* @__PURE__ */ s(
1550
+ "data-index": y,
1551
+ onClick: (f) => h(y),
1552
+ children: /* @__PURE__ */ l(
1494
1553
  F,
1495
1554
  {
1496
1555
  blocks: m.title,
1497
- path: `items.${x}.title`,
1556
+ path: `items.${y}.title`,
1498
1557
  parent: e.builderBlock.id,
1499
1558
  context: e.builderContext,
1500
1559
  registeredComponents: e.builderComponents,
@@ -1503,16 +1562,16 @@ function jt(e) {
1503
1562
  )
1504
1563
  }
1505
1564
  ),
1506
- t.includes(x) ? /* @__PURE__ */ s(
1565
+ t.includes(y) ? /* @__PURE__ */ l(
1507
1566
  "div",
1508
1567
  {
1509
- className: l(x),
1568
+ className: s(y),
1510
1569
  style: c(),
1511
- children: /* @__PURE__ */ s(
1570
+ children: /* @__PURE__ */ l(
1512
1571
  F,
1513
1572
  {
1514
1573
  blocks: m.detail,
1515
- path: `items.${x}.detail`,
1574
+ path: `items.${y}.detail`,
1516
1575
  parent: e.builderBlock.id,
1517
1576
  context: e.builderContext,
1518
1577
  registeredComponents: e.builderComponents,
@@ -1523,7 +1582,7 @@ function jt(e) {
1523
1582
  ) : null
1524
1583
  ] })) });
1525
1584
  }
1526
- const Mt = {
1585
+ const Xt = {
1527
1586
  name: "Core:Button",
1528
1587
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1529
1588
  defaultStyles: {
@@ -1559,7 +1618,7 @@ const Mt = {
1559
1618
  shouldReceiveBuilderProps: {
1560
1619
  builderLinkComponent: !0
1561
1620
  }
1562
- }, _t = {
1621
+ }, Zt = {
1563
1622
  // TODO: ways to statically preprocess JSON for references, functions, etc
1564
1623
  name: "Columns",
1565
1624
  isRSC: !0,
@@ -1738,7 +1797,7 @@ const Mt = {
1738
1797
  });
1739
1798
  }
1740
1799
  const n = e.get("columns");
1741
- Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((l, d) => l + d.get("width"), 0) !== 100) && t();
1800
+ Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((s, d) => s + d.get("width"), 0) !== 100) && t();
1742
1801
  }
1743
1802
  }, {
1744
1803
  name: "space",
@@ -1766,13 +1825,13 @@ const Mt = {
1766
1825
  builderComponents: !0,
1767
1826
  builderLinkComponent: !0
1768
1827
  }
1769
- }, qt = {
1828
+ }, en = {
1770
1829
  name: "Fragment",
1771
1830
  static: !0,
1772
1831
  hidden: !0,
1773
1832
  canHaveChildren: !0,
1774
1833
  noWrap: !0
1775
- }, Kt = {
1834
+ }, 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 = {
1776
1835
  name: "Image",
1777
1836
  static: !0,
1778
1837
  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",
@@ -1787,12 +1846,12 @@ const Mt = {
1787
1846
  name: "image",
1788
1847
  type: "file",
1789
1848
  bubble: !0,
1790
- allowedFileTypes: ["jpeg", "jpg", "png", "svg", "webp"],
1849
+ allowedFileTypes: de,
1791
1850
  required: !0,
1792
1851
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1793
1852
  onChange: (e) => {
1794
1853
  e.delete("srcset"), e.delete("noWebp");
1795
- function n(a, l = 6e4) {
1854
+ function n(a, s = 6e4) {
1796
1855
  return new Promise((d, c) => {
1797
1856
  const h = document.createElement("img");
1798
1857
  let g = !1;
@@ -1802,7 +1861,7 @@ const Mt = {
1802
1861
  console.warn("Image load failed", m.error), c(m.error);
1803
1862
  }), h.src = a, setTimeout(() => {
1804
1863
  g || c(new Error("Image load timed out"));
1805
- }, l);
1864
+ }, s);
1806
1865
  });
1807
1866
  }
1808
1867
  function i(a) {
@@ -1813,8 +1872,8 @@ const Mt = {
1813
1872
  a.type.includes("svg") && e.set("noWebp", !0);
1814
1873
  }), o && (!r || r === 0.7041))
1815
1874
  return n(o).then((a) => {
1816
- const l = e.get("aspectRatio");
1817
- e.get("image") === o && (!l || l === 0.7041) && a.width && a.height && (e.set("aspectRatio", i(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
1875
+ const s = e.get("aspectRatio");
1876
+ e.get("image") === o && (!s || s === 0.7041) && a.width && a.height && (e.set("aspectRatio", i(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
1818
1877
  });
1819
1878
  }
1820
1879
  }, {
@@ -1880,7 +1939,7 @@ const Mt = {
1880
1939
  shouldReceiveBuilderProps: {
1881
1940
  builderBlock: !0
1882
1941
  }
1883
- }, zt = {
1942
+ }, on = {
1884
1943
  name: "Core:Section",
1885
1944
  static: !0,
1886
1945
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1919,7 +1978,7 @@ const Mt = {
1919
1978
  }
1920
1979
  }
1921
1980
  }]
1922
- }, Jt = {
1981
+ }, an = {
1923
1982
  name: "Slot",
1924
1983
  isRSC: !0,
1925
1984
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1937,9 +1996,9 @@ const Mt = {
1937
1996
  builderComponents: !0
1938
1997
  }
1939
1998
  };
1940
- function Gt(e) {
1999
+ function rn(e) {
1941
2000
  var t, n, i;
1942
- return /* @__PURE__ */ s(
2001
+ return /* @__PURE__ */ l(
1943
2002
  "div",
1944
2003
  {
1945
2004
  style: {
@@ -1948,7 +2007,7 @@ function Gt(e) {
1948
2007
  ...!((t = e.builderContext.context) != null && t.symbolId) && {
1949
2008
  "builder-slot": e.name
1950
2009
  },
1951
- children: /* @__PURE__ */ s(
2010
+ children: /* @__PURE__ */ l(
1952
2011
  F,
1953
2012
  {
1954
2013
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
@@ -1961,7 +2020,7 @@ function Gt(e) {
1961
2020
  }
1962
2021
  );
1963
2022
  }
1964
- const Yt = {
2023
+ const ln = {
1965
2024
  name: "Symbol",
1966
2025
  noWrap: !0,
1967
2026
  static: !0,
@@ -2000,7 +2059,7 @@ const Yt = {
2000
2059
  builderComponents: !0,
2001
2060
  builderLinkComponent: !0
2002
2061
  }
2003
- }, X = {
2062
+ }, Z = {
2004
2063
  "@type": "@builder.io/sdk:Element",
2005
2064
  responsiveStyles: {
2006
2065
  large: {
@@ -2022,7 +2081,7 @@ const Yt = {
2022
2081
  text: "New tab"
2023
2082
  }
2024
2083
  }
2025
- }, Z = {
2084
+ }, ee = {
2026
2085
  "@type": "@builder.io/sdk:Element",
2027
2086
  responsiveStyles: {
2028
2087
  large: {
@@ -2038,7 +2097,7 @@ const Yt = {
2038
2097
  text: "New tab content "
2039
2098
  }
2040
2099
  }
2041
- }, Qt = {
2100
+ }, sn = {
2042
2101
  name: "Builder: Tabs",
2043
2102
  inputs: [{
2044
2103
  name: "tabs",
@@ -2048,16 +2107,16 @@ const Yt = {
2048
2107
  name: "label",
2049
2108
  type: "uiBlocks",
2050
2109
  hideFromUI: !0,
2051
- defaultValue: [X]
2110
+ defaultValue: [Z]
2052
2111
  }, {
2053
2112
  name: "content",
2054
2113
  type: "uiBlocks",
2055
2114
  hideFromUI: !0,
2056
- defaultValue: [Z]
2115
+ defaultValue: [ee]
2057
2116
  }],
2058
2117
  defaultValue: [{
2059
2118
  label: [{
2060
- ...X,
2119
+ ...Z,
2061
2120
  component: {
2062
2121
  name: "Text",
2063
2122
  options: {
@@ -2066,7 +2125,7 @@ const Yt = {
2066
2125
  }
2067
2126
  }],
2068
2127
  content: [{
2069
- ...Z,
2128
+ ...ee,
2070
2129
  component: {
2071
2130
  name: "Text",
2072
2131
  options: {
@@ -2076,7 +2135,7 @@ const Yt = {
2076
2135
  }]
2077
2136
  }, {
2078
2137
  label: [{
2079
- ...X,
2138
+ ...Z,
2080
2139
  component: {
2081
2140
  name: "Text",
2082
2141
  options: {
@@ -2085,7 +2144,7 @@ const Yt = {
2085
2144
  }
2086
2145
  }],
2087
2146
  content: [{
2088
- ...Z,
2147
+ ...ee,
2089
2148
  component: {
2090
2149
  name: "Text",
2091
2150
  options: {
@@ -2142,9 +2201,9 @@ const Yt = {
2142
2201
  builderLinkComponent: !0
2143
2202
  }
2144
2203
  };
2145
- function Xt(e) {
2204
+ function cn(e) {
2146
2205
  var r;
2147
- const [t, n] = R(
2206
+ const [t, n] = E(
2148
2207
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
2149
2208
  );
2150
2209
  function i(a) {
@@ -2153,8 +2212,8 @@ function Xt(e) {
2153
2212
  function o(a) {
2154
2213
  a === t && e.collapsible ? n(-1) : n(a);
2155
2214
  }
2156
- return /* @__PURE__ */ V("div", { children: [
2157
- /* @__PURE__ */ s(
2215
+ return /* @__PURE__ */ W("div", { children: [
2216
+ /* @__PURE__ */ l(
2158
2217
  "div",
2159
2218
  {
2160
2219
  className: "builder-tabs-wrap",
@@ -2164,19 +2223,19 @@ function Xt(e) {
2164
2223
  justifyContent: e.tabHeaderLayout || "flex-start",
2165
2224
  overflow: "auto"
2166
2225
  },
2167
- children: (r = e.tabs) == null ? void 0 : r.map((a, l) => /* @__PURE__ */ s(
2226
+ children: (r = e.tabs) == null ? void 0 : r.map((a, s) => /* @__PURE__ */ l(
2168
2227
  "span",
2169
2228
  {
2170
- className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
2229
+ className: `builder-tab-wrap ${t === s ? "builder-tab-active" : ""}`,
2171
2230
  style: {
2172
- ...t === l ? e.activeTabStyle : {}
2231
+ ...t === s ? e.activeTabStyle : {}
2173
2232
  },
2174
- onClick: (d) => o(l),
2175
- children: /* @__PURE__ */ s(
2233
+ onClick: (d) => o(s),
2234
+ children: /* @__PURE__ */ l(
2176
2235
  F,
2177
2236
  {
2178
2237
  parent: e.builderBlock.id,
2179
- path: `tabs.${l}.label`,
2238
+ path: `tabs.${s}.label`,
2180
2239
  blocks: a.label,
2181
2240
  context: e.builderContext,
2182
2241
  registeredComponents: e.builderComponents,
@@ -2184,11 +2243,11 @@ function Xt(e) {
2184
2243
  }
2185
2244
  )
2186
2245
  },
2187
- l
2246
+ s
2188
2247
  ))
2189
2248
  }
2190
2249
  ),
2191
- i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
2250
+ i(t) ? /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
2192
2251
  F,
2193
2252
  {
2194
2253
  parent: e.builderBlock.id,
@@ -2201,7 +2260,7 @@ function Xt(e) {
2201
2260
  ) }) : null
2202
2261
  ] });
2203
2262
  }
2204
- const Zt = {
2263
+ const dn = {
2205
2264
  shouldReceiveBuilderProps: {
2206
2265
  builderBlock: !1,
2207
2266
  builderContext: !0
@@ -2224,38 +2283,20 @@ const Zt = {
2224
2283
  textAlign: "center"
2225
2284
  }
2226
2285
  };
2227
- function en(e) {
2228
- function t() {
2229
- var l;
2230
- const n = e.builderContext, {
2231
- context: i,
2232
- localState: o,
2233
- rootState: r,
2234
- rootSetState: a
2235
- } = n;
2236
- return String(((l = e.text) == null ? void 0 : l.toString()) || "").replace(
2237
- /{{([^}]+)}}/g,
2238
- (d, c) => L({
2239
- code: c,
2240
- context: i,
2241
- localState: o,
2242
- rootState: r,
2243
- rootSetState: a
2244
- })
2245
- );
2246
- }
2247
- return /* @__PURE__ */ s(
2286
+ function un(e) {
2287
+ var t;
2288
+ return /* @__PURE__ */ l(
2248
2289
  "div",
2249
2290
  {
2250
2291
  className: "builder-text",
2251
- dangerouslySetInnerHTML: { __html: t() },
2292
+ dangerouslySetInnerHTML: { __html: ((t = e.text) == null ? void 0 : t.toString()) || "" },
2252
2293
  style: {
2253
2294
  outline: "none"
2254
2295
  }
2255
2296
  }
2256
2297
  );
2257
2298
  }
2258
- const tn = {
2299
+ const mn = {
2259
2300
  name: "Custom Code",
2260
2301
  static: !0,
2261
2302
  requiredPermissions: ["editCode"],
@@ -2278,11 +2319,11 @@ const tn = {
2278
2319
  advanced: !0
2279
2320
  }]
2280
2321
  };
2281
- function nn(e) {
2282
- const t = $(null), [n, i] = R(() => []), [o, r] = R(() => []);
2283
- return B(() => {
2284
- var l;
2285
- if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
2322
+ function fn(e) {
2323
+ const t = D(null), [n, i] = E(() => []), [o, r] = E(() => []);
2324
+ return A(() => {
2325
+ var s;
2326
+ if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
2286
2327
  return;
2287
2328
  const a = t.current.getElementsByTagName("script");
2288
2329
  for (let d = 0; d < a.length; d++) {
@@ -2307,7 +2348,7 @@ function nn(e) {
2307
2348
  }
2308
2349
  }
2309
2350
  }
2310
- }, []), /* @__PURE__ */ s(
2351
+ }, []), /* @__PURE__ */ l(
2311
2352
  "div",
2312
2353
  {
2313
2354
  ref: t,
@@ -2316,7 +2357,7 @@ function nn(e) {
2316
2357
  }
2317
2358
  );
2318
2359
  }
2319
- const on = {
2360
+ const hn = {
2320
2361
  name: "Embed",
2321
2362
  static: !0,
2322
2363
  inputs: [{
@@ -2331,9 +2372,9 @@ const on = {
2331
2372
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2332
2373
  hideFromUI: !0
2333
2374
  }]
2334
- }, an = ["text/javascript", "application/javascript", "application/ecmascript"], rn = (e) => an.includes(e.type);
2335
- function ln(e) {
2336
- const t = $(null), [n, i] = R(() => []), [o, r] = R(() => []), [a, l] = R(() => !1);
2375
+ }, gn = ["text/javascript", "application/javascript", "application/ecmascript"], bn = (e) => gn.includes(e.type);
2376
+ function pn(e) {
2377
+ const t = D(null), [n, i] = E(() => []), [o, r] = E(() => []), [a, s] = E(() => !1);
2337
2378
  function d() {
2338
2379
  if (!t.current || !t.current.getElementsByTagName)
2339
2380
  return;
@@ -2344,7 +2385,7 @@ function ln(e) {
2344
2385
  n.push(g.src);
2345
2386
  const m = document.createElement("script");
2346
2387
  m.async = !0, m.src = g.src, document.head.appendChild(m);
2347
- } else if (rn(g) && !o.includes(g.innerText))
2388
+ } else if (bn(g) && !o.includes(g.innerText))
2348
2389
  try {
2349
2390
  o.push(g.innerText), new Function(g.innerText)();
2350
2391
  } catch (m) {
@@ -2352,9 +2393,9 @@ function ln(e) {
2352
2393
  }
2353
2394
  }
2354
2395
  }
2355
- return B(() => {
2356
- t.current && !a && (l(!0), d());
2357
- }, [t.current, a]), /* @__PURE__ */ s(
2396
+ return A(() => {
2397
+ t.current && !a && (s(!0), d());
2398
+ }, [t.current, a]), /* @__PURE__ */ l(
2358
2399
  "div",
2359
2400
  {
2360
2401
  className: "builder-embed",
@@ -2363,7 +2404,7 @@ function ln(e) {
2363
2404
  }
2364
2405
  );
2365
2406
  }
2366
- const sn = {
2407
+ const yn = {
2367
2408
  name: "Form:Form",
2368
2409
  // editableTags: ['builder-form-error']
2369
2410
  defaults: {
@@ -2600,119 +2641,119 @@ const sn = {
2600
2641
  builderComponents: !0,
2601
2642
  builderLinkComponent: !0
2602
2643
  }
2603
- }, cn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], dn = () => {
2644
+ }, xn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], vn = () => {
2604
2645
  const e = process.env.NODE_ENV || "production";
2605
- return cn.includes(e) ? e : "production";
2646
+ return xn.includes(e) ? e : "production";
2606
2647
  };
2607
- function un(e) {
2648
+ function Sn(e) {
2608
2649
  var g, m;
2609
- const t = $(null), [n, i] = R(() => "unsubmitted"), [o, r] = R(() => null), [a, l] = R(() => "");
2610
- function d(x) {
2611
- var S, v;
2650
+ const t = D(null), [n, i] = E(() => "unsubmitted"), [o, r] = E(() => null), [a, s] = E(() => "");
2651
+ function d(y) {
2652
+ var v, x;
2612
2653
  const f = {
2613
2654
  ...e.builderContext.rootState,
2614
- ...x
2655
+ ...y
2615
2656
  };
2616
- e.builderContext.rootSetState ? (v = (S = e.builderContext).rootSetState) == null || v.call(S, f) : e.builderContext.rootState = f;
2657
+ e.builderContext.rootSetState ? (x = (v = e.builderContext).rootSetState) == null || x.call(v, f) : e.builderContext.rootState = f;
2617
2658
  }
2618
2659
  function c() {
2619
2660
  return N() && e.previewState || n;
2620
2661
  }
2621
- function h(x) {
2622
- var S;
2662
+ function h(y) {
2663
+ var v;
2623
2664
  const f = e.sendWithJs || e.sendSubmissionsTo === "email";
2624
2665
  if (e.sendSubmissionsTo === "zapier")
2625
- x.preventDefault();
2666
+ y.preventDefault();
2626
2667
  else if (f) {
2627
2668
  if (!(e.action || e.sendSubmissionsTo === "email")) {
2628
- x.preventDefault();
2669
+ y.preventDefault();
2629
2670
  return;
2630
2671
  }
2631
- x.preventDefault();
2632
- const v = x.currentTarget || x.target, p = e.customHeaders || {};
2633
- let b;
2634
- const y = new FormData(v), A = Array.from(v.querySelectorAll("input,select,textarea")).filter((u) => !!u.name).map((u) => {
2635
- let C;
2636
- const W = u.name;
2672
+ y.preventDefault();
2673
+ const x = y.currentTarget || y.target, b = e.customHeaders || {};
2674
+ let p;
2675
+ const C = new FormData(x), V = Array.from(x.querySelectorAll("input,select,textarea")).filter((u) => !!u.name).map((u) => {
2676
+ let S;
2677
+ const P = u.name;
2637
2678
  if (u instanceof HTMLInputElement)
2638
2679
  if (u.type === "radio") {
2639
2680
  if (u.checked)
2640
- return C = u.name, {
2641
- key: W,
2642
- value: C
2681
+ return S = u.name, {
2682
+ key: P,
2683
+ value: S
2643
2684
  };
2644
2685
  } else if (u.type === "checkbox")
2645
- C = u.checked;
2686
+ S = u.checked;
2646
2687
  else if (u.type === "number" || u.type === "range") {
2647
- const E = u.valueAsNumber;
2648
- isNaN(E) || (C = E);
2688
+ const w = u.valueAsNumber;
2689
+ isNaN(w) || (S = w);
2649
2690
  } else
2650
- u.type === "file" ? C = u.files : C = u.value;
2691
+ u.type === "file" ? S = u.files : S = u.value;
2651
2692
  else
2652
- C = u.value;
2693
+ S = u.value;
2653
2694
  return {
2654
- key: W,
2655
- value: C
2695
+ key: P,
2696
+ value: S
2656
2697
  };
2657
2698
  });
2658
2699
  let k = e.contentType;
2659
- if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(A).forEach(({ value: u }) => {
2700
+ if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(V).forEach(({ value: u }) => {
2660
2701
  (u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (k = "multipart/form-data");
2661
2702
  }), k !== "application/json")
2662
- b = y;
2703
+ p = C;
2663
2704
  else {
2664
2705
  const u = {};
2665
- Array.from(A).forEach(({ value: C, key: W }) => {
2666
- Ie(u, W, C);
2667
- }), b = JSON.stringify(u);
2706
+ Array.from(V).forEach(({ value: S, key: P }) => {
2707
+ Re(u, P, S);
2708
+ }), p = JSON.stringify(u);
2668
2709
  }
2669
- k && k !== "multipart/form-data" && (f && ((S = e.action) != null && S.includes("zapier.com")) || (p["content-type"] = k));
2670
- const w = new CustomEvent("presubmit", { detail: { body: b } });
2671
- if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
2710
+ k && k !== "multipart/form-data" && (f && ((v = e.action) != null && v.includes("zapier.com")) || (b["content-type"] = k));
2711
+ const I = new CustomEvent("presubmit", { detail: { body: p } });
2712
+ if (t.current && (t.current.dispatchEvent(I), I.defaultPrevented))
2672
2713
  return;
2673
2714
  i("sending");
2674
- const P = `${dn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2715
+ const R = `${vn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2675
2716
  e.sendSubmissionsToEmail || ""
2676
- )}&name=${encodeURIComponent(e.name || "")}`, T = e.sendSubmissionsTo === "email" ? P : e.action;
2677
- Se(T), fetch(T, { body: b, headers: p, method: e.method || "post" }).then(
2717
+ )}&name=${encodeURIComponent(e.name || "")}`, B = e.sendSubmissionsTo === "email" ? R : e.action;
2718
+ Te(B), fetch(B, { body: p, headers: b, method: e.method || "post" }).then(
2678
2719
  async (u) => {
2679
- let C;
2680
- const W = u.headers.get("content-type");
2681
- if (W && W.indexOf("application/json") !== -1 ? C = await u.json() : C = await u.text(), !u.ok && e.errorMessagePath) {
2682
- let E = Ee(C, e.errorMessagePath);
2683
- E && (typeof E != "string" && (E = JSON.stringify(E)), l(E), d({ formErrorMessage: E }));
2720
+ let S;
2721
+ const P = u.headers.get("content-type");
2722
+ if (P && P.indexOf("application/json") !== -1 ? S = await u.json() : S = await u.text(), !u.ok && e.errorMessagePath) {
2723
+ let w = Be(S, e.errorMessagePath);
2724
+ w && (typeof w != "string" && (w = JSON.stringify(w)), s(w), d({ formErrorMessage: w }));
2684
2725
  }
2685
- if (r(C), i(u.ok ? "success" : "error"), u.ok) {
2686
- const E = new CustomEvent("submit:success", {
2687
- detail: { res: u, body: C }
2726
+ if (r(S), i(u.ok ? "success" : "error"), u.ok) {
2727
+ const w = new CustomEvent("submit:success", {
2728
+ detail: { res: u, body: S }
2688
2729
  });
2689
2730
  if (t.current) {
2690
- if (t.current.dispatchEvent(E), E.defaultPrevented)
2731
+ if (t.current.dispatchEvent(w), w.defaultPrevented)
2691
2732
  return;
2692
2733
  e.resetFormOnSubmit !== !1 && t.current.reset();
2693
2734
  }
2694
2735
  if (e.successUrl)
2695
2736
  if (t.current) {
2696
- const j = new CustomEvent("route", {
2737
+ const L = new CustomEvent("route", {
2697
2738
  detail: { url: e.successUrl }
2698
2739
  });
2699
- t.current.dispatchEvent(j), j.defaultPrevented || (location.href = e.successUrl);
2740
+ t.current.dispatchEvent(L), L.defaultPrevented || (location.href = e.successUrl);
2700
2741
  } else
2701
2742
  location.href = e.successUrl;
2702
2743
  }
2703
2744
  },
2704
2745
  (u) => {
2705
- const C = new CustomEvent("submit:error", {
2746
+ const S = new CustomEvent("submit:error", {
2706
2747
  detail: { error: u }
2707
2748
  });
2708
- t.current && (t.current.dispatchEvent(C), C.defaultPrevented) || (r(u), i("error"));
2749
+ t.current && (t.current.dispatchEvent(S), S.defaultPrevented) || (r(u), i("error"));
2709
2750
  }
2710
2751
  );
2711
2752
  }
2712
2753
  }
2713
- return /* @__PURE__ */ V(I, { children: [
2754
+ return /* @__PURE__ */ W(T, { children: [
2714
2755
  " ",
2715
- /* @__PURE__ */ V(
2756
+ /* @__PURE__ */ W(
2716
2757
  "form",
2717
2758
  {
2718
2759
  validate: e.validate,
@@ -2720,20 +2761,20 @@ function un(e) {
2720
2761
  action: !e.sendWithJs && e.action,
2721
2762
  method: e.method,
2722
2763
  name: e.name,
2723
- onSubmit: (x) => h(x),
2764
+ onSubmit: (y) => h(y),
2724
2765
  ...e.attributes,
2725
2766
  children: [
2726
- e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(I, { children: (m = (g = e.builderBlock) == null ? void 0 : g.children) == null ? void 0 : m.map((x, f) => /* @__PURE__ */ s(
2767
+ e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(T, { children: (m = (g = e.builderBlock) == null ? void 0 : g.children) == null ? void 0 : m.map((y, f) => /* @__PURE__ */ l(
2727
2768
  H,
2728
2769
  {
2729
- block: x,
2770
+ block: y,
2730
2771
  context: e.builderContext,
2731
2772
  registeredComponents: e.builderComponents,
2732
2773
  linkComponent: e.builderLinkComponent
2733
2774
  },
2734
2775
  `form-block-${f}`
2735
2776
  )) }) : null,
2736
- c() === "error" ? /* @__PURE__ */ s(
2777
+ c() === "error" ? /* @__PURE__ */ l(
2737
2778
  F,
2738
2779
  {
2739
2780
  path: "errorMessage",
@@ -2741,7 +2782,7 @@ function un(e) {
2741
2782
  context: e.builderContext
2742
2783
  }
2743
2784
  ) : null,
2744
- c() === "sending" ? /* @__PURE__ */ s(
2785
+ c() === "sending" ? /* @__PURE__ */ l(
2745
2786
  F,
2746
2787
  {
2747
2788
  path: "sendingMessage",
@@ -2749,8 +2790,8 @@ function un(e) {
2749
2790
  context: e.builderContext
2750
2791
  }
2751
2792
  ) : null,
2752
- c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-135d4696", children: JSON.stringify(o, null, 2) }) : null,
2753
- c() === "success" ? /* @__PURE__ */ s(
2793
+ c() === "error" && o ? /* @__PURE__ */ l("pre", { className: "builder-form-error-text pre-135d4696", children: JSON.stringify(o, null, 2) }) : null,
2794
+ c() === "success" ? /* @__PURE__ */ l(
2754
2795
  F,
2755
2796
  {
2756
2797
  path: "successMessage",
@@ -2762,11 +2803,11 @@ function un(e) {
2762
2803
  }
2763
2804
  ),
2764
2805
  " ",
2765
- /* @__PURE__ */ s("style", { children: ".pre-135d4696 { padding: 10px; color: red; text-align: center; }" }),
2806
+ /* @__PURE__ */ l("style", { children: ".pre-135d4696 { padding: 10px; color: red; text-align: center; }" }),
2766
2807
  " "
2767
2808
  ] });
2768
2809
  }
2769
- const mn = {
2810
+ const kn = {
2770
2811
  name: "Form:Input",
2771
2812
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2772
2813
  inputs: [
@@ -2818,8 +2859,8 @@ const mn = {
2818
2859
  borderColor: "#ccc"
2819
2860
  }
2820
2861
  };
2821
- function fn(e) {
2822
- return /* @__PURE__ */ Te(
2862
+ function Cn(e) {
2863
+ return /* @__PURE__ */ Ee(
2823
2864
  "input",
2824
2865
  {
2825
2866
  ...e.attributes,
@@ -2833,7 +2874,7 @@ function fn(e) {
2833
2874
  }
2834
2875
  );
2835
2876
  }
2836
- const hn = {
2877
+ const Tn = {
2837
2878
  name: "Form:Select",
2838
2879
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2839
2880
  defaultStyles: {
@@ -2876,9 +2917,9 @@ const hn = {
2876
2917
  static: !0,
2877
2918
  noWrap: !0
2878
2919
  };
2879
- function gn(e) {
2920
+ function In(e) {
2880
2921
  var t;
2881
- return /* @__PURE__ */ Te(
2922
+ return /* @__PURE__ */ Ee(
2882
2923
  "select",
2883
2924
  {
2884
2925
  ...e.attributes,
@@ -2888,10 +2929,10 @@ function gn(e) {
2888
2929
  name: e.name,
2889
2930
  required: e.required
2890
2931
  },
2891
- (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2932
+ (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2892
2933
  );
2893
2934
  }
2894
- const bn = {
2935
+ const wn = {
2895
2936
  name: "Form:SubmitButton",
2896
2937
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2897
2938
  defaultStyles: {
@@ -2917,10 +2958,10 @@ const bn = {
2917
2958
  // TODO: defaultChildren
2918
2959
  // canHaveChildren: true,
2919
2960
  };
2920
- function pn(e) {
2921
- return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
2961
+ function En(e) {
2962
+ return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
2922
2963
  }
2923
- const yn = {
2964
+ const Rn = {
2924
2965
  name: "Form:TextArea",
2925
2966
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
2926
2967
  inputs: [{
@@ -2957,8 +2998,8 @@ const yn = {
2957
2998
  static: !0,
2958
2999
  noWrap: !0
2959
3000
  };
2960
- function xn(e) {
2961
- return /* @__PURE__ */ s(
3001
+ function Pn(e) {
3002
+ return /* @__PURE__ */ l(
2962
3003
  "textarea",
2963
3004
  {
2964
3005
  ...e.attributes,
@@ -2970,7 +3011,7 @@ function xn(e) {
2970
3011
  }
2971
3012
  );
2972
3013
  }
2973
- const vn = {
3014
+ const Bn = {
2974
3015
  // friendlyName?
2975
3016
  name: "Raw:Img",
2976
3017
  hideFromInsertMenu: !0,
@@ -2979,14 +3020,14 @@ const vn = {
2979
3020
  name: "image",
2980
3021
  bubble: !0,
2981
3022
  type: "file",
2982
- allowedFileTypes: ["jpeg", "jpg", "png", "svg", "gif", "webp"],
3023
+ allowedFileTypes: de,
2983
3024
  required: !0
2984
3025
  }],
2985
3026
  noWrap: !0,
2986
3027
  static: !0
2987
3028
  };
2988
- function Sn(e) {
2989
- return /* @__PURE__ */ s(
3029
+ function Vn(e) {
3030
+ return /* @__PURE__ */ l(
2990
3031
  "img",
2991
3032
  {
2992
3033
  style: {
@@ -3000,7 +3041,7 @@ function Sn(e) {
3000
3041
  N() && e.imgSrc || "default-key"
3001
3042
  );
3002
3043
  }
3003
- const kn = {
3044
+ const An = {
3004
3045
  name: "Video",
3005
3046
  canHaveChildren: !0,
3006
3047
  defaultStyles: {
@@ -3011,14 +3052,14 @@ const kn = {
3011
3052
  inputs: [{
3012
3053
  name: "video",
3013
3054
  type: "file",
3014
- allowedFileTypes: ["mp4"],
3055
+ allowedFileTypes: tn,
3015
3056
  bubble: !0,
3016
3057
  defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
3017
3058
  required: !0
3018
3059
  }, {
3019
3060
  name: "posterImage",
3020
3061
  type: "file",
3021
- allowedFileTypes: ["jpeg", "png"],
3062
+ allowedFileTypes: de,
3022
3063
  helperText: "Image to show before the video plays"
3023
3064
  }, {
3024
3065
  name: "autoPlay",
@@ -3085,8 +3126,8 @@ const kn = {
3085
3126
  builderBlock: !0
3086
3127
  }
3087
3128
  };
3088
- function Cn(e) {
3089
- var i, o, r, a, l, d, c;
3129
+ function Wn(e) {
3130
+ var i, o, r, a, s, d, c;
3090
3131
  function t() {
3091
3132
  return {
3092
3133
  ...e.autoPlay === !0 ? {
@@ -3111,14 +3152,14 @@ function Cn(e) {
3111
3152
  ...t()
3112
3153
  };
3113
3154
  }
3114
- return /* @__PURE__ */ V(
3155
+ return /* @__PURE__ */ W(
3115
3156
  "div",
3116
3157
  {
3117
3158
  style: {
3118
3159
  position: "relative"
3119
3160
  },
3120
3161
  children: [
3121
- /* @__PURE__ */ s(
3162
+ /* @__PURE__ */ l(
3122
3163
  "video",
3123
3164
  {
3124
3165
  className: "builder-video",
@@ -3140,10 +3181,10 @@ function Cn(e) {
3140
3181
  },
3141
3182
  src: e.video || "no-src",
3142
3183
  poster: e.posterImage,
3143
- children: e.lazyLoad ? null : /* @__PURE__ */ s("source", { type: "video/mp4", src: e.video })
3184
+ children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
3144
3185
  }
3145
3186
  ),
3146
- e.aspectRatio && !(e.fitContent && ((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length)) ? /* @__PURE__ */ s(
3187
+ e.aspectRatio && !(e.fitContent && ((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length)) ? /* @__PURE__ */ l(
3147
3188
  "div",
3148
3189
  {
3149
3190
  style: {
@@ -3154,7 +3195,7 @@ function Cn(e) {
3154
3195
  }
3155
3196
  }
3156
3197
  ) : null,
3157
- (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
3198
+ (s = (a = e.builderBlock) == null ? void 0 : a.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(
3158
3199
  "div",
3159
3200
  {
3160
3201
  style: {
@@ -3165,7 +3206,7 @@ function Cn(e) {
3165
3206
  children: e.children
3166
3207
  }
3167
3208
  ) : null,
3168
- (c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
3209
+ (c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ l(
3169
3210
  "div",
3170
3211
  {
3171
3212
  style: {
@@ -3186,64 +3227,64 @@ function Cn(e) {
3186
3227
  }
3187
3228
  );
3188
3229
  }
3189
- const Tn = () => [{
3190
- component: nn,
3191
- ...tn
3192
- }, {
3193
- component: ln,
3194
- ...on
3195
- }, {
3196
- component: un,
3197
- ...sn
3198
- }, {
3230
+ const Nn = () => [{
3199
3231
  component: fn,
3200
3232
  ...mn
3201
3233
  }, {
3202
3234
  component: pn,
3203
- ...bn
3204
- }, {
3205
- component: gn,
3206
3235
  ...hn
3207
- }, {
3208
- component: xn,
3209
- ...yn
3210
3236
  }, {
3211
3237
  component: Sn,
3212
- ...vn
3238
+ ...yn
3213
3239
  }, {
3214
3240
  component: Cn,
3215
3241
  ...kn
3216
- }], be = () => [{
3217
- component: Xe,
3218
- ...Mt
3219
3242
  }, {
3220
- component: Ft,
3221
- ..._t
3243
+ component: En,
3244
+ ...wn
3222
3245
  }, {
3223
- component: $t,
3224
- ...qt
3246
+ component: In,
3247
+ ...Tn
3225
3248
  }, {
3226
- component: Ot,
3227
- ...Kt
3249
+ component: Pn,
3250
+ ...Rn
3251
+ }, {
3252
+ component: Vn,
3253
+ ...Bn
3254
+ }, {
3255
+ component: Wn,
3256
+ ...An
3257
+ }], xe = () => [{
3258
+ component: it,
3259
+ ...Xt
3260
+ }, {
3261
+ component: jt,
3262
+ ...Zt
3228
3263
  }, {
3229
- component: Ut,
3230
- ...zt
3264
+ component: qt,
3265
+ ...en
3266
+ }, {
3267
+ component: Jt,
3268
+ ...nn
3231
3269
  }, {
3232
3270
  component: Gt,
3233
- ...Jt
3271
+ ...on
3234
3272
  }, {
3235
- component: zn,
3236
- ...Yt
3273
+ component: rn,
3274
+ ...an
3237
3275
  }, {
3238
- component: en,
3239
- ...Zt
3276
+ component: oi,
3277
+ ...ln
3278
+ }, {
3279
+ component: un,
3280
+ ...dn
3240
3281
  }, {
3241
- component: Xt,
3242
- ...Qt
3282
+ component: cn,
3283
+ ...sn
3243
3284
  }, {
3244
- component: jt,
3245
- ...Ht
3246
- }, ...Tn()], In = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3285
+ component: Qt,
3286
+ ...Yt
3287
+ }, ...Nn()], Fn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3247
3288
  function getAndSetVariantId() {
3248
3289
  function setCookie(name, value, days) {
3249
3290
  let expires = '';
@@ -3299,7 +3340,7 @@ const Tn = () => [{
3299
3340
  }).join('');
3300
3341
  styleEl.innerHTML = newStyleStr;
3301
3342
  }
3302
- }`, wn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3343
+ }`, $n = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3303
3344
  if (!navigator.cookieEnabled) {
3304
3345
  return;
3305
3346
  }
@@ -3333,27 +3374,27 @@ const Tn = () => [{
3333
3374
  thisScriptEl?.remove();
3334
3375
  }
3335
3376
  return;
3336
- }`, $e = "builderIoAbTest", De = "builderIoRenderContent", _ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3377
+ }`, _e = "builderIoAbTest", He = "builderIoRenderContent", j = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3337
3378
  ...t,
3338
3379
  testVariationId: t.id,
3339
3380
  id: e == null ? void 0 : e.id
3340
- })), En = ({
3381
+ })), Ln = ({
3341
3382
  canTrack: e,
3342
3383
  content: t
3343
- }) => !(!(_(t).length > 0) || !e || q()), Rn = (e) => e === "react" || e === "reactNative", Le = Rn(D), Pn = () => `
3344
- window.${$e} = ${In}
3345
- window.${De} = ${wn}
3346
- `, Bn = (e, t) => `
3347
- window.${$e}(
3348
- "${t}",${JSON.stringify(e)}, ${Le}
3349
- )`, Vn = ({
3384
+ }) => !(!(j(t).length > 0) || !e || q()), Dn = (e) => e === "react" || e === "reactNative", Me = Dn($), On = () => `
3385
+ window.${_e} = ${Fn}
3386
+ window.${He} = ${$n}
3387
+ `, Un = (e, t) => `
3388
+ window.${_e}(
3389
+ "${t}",${JSON.stringify(e)}, ${Me}
3390
+ )`, _n = ({
3350
3391
  contentId: e,
3351
3392
  variationId: t
3352
- }) => `window.${De}(
3353
- "${t}", "${e}", ${Le}
3393
+ }) => `window.${He}(
3394
+ "${t}", "${e}", ${Me}
3354
3395
  )`;
3355
- function ne(e) {
3356
- return /* @__PURE__ */ s(
3396
+ function ie(e) {
3397
+ return /* @__PURE__ */ l(
3357
3398
  "script",
3358
3399
  {
3359
3400
  dangerouslySetInnerHTML: { __html: e.scriptStr },
@@ -3362,10 +3403,10 @@ function ne(e) {
3362
3403
  }
3363
3404
  );
3364
3405
  }
3365
- function pe(e) {
3406
+ function ve(e) {
3366
3407
  return Math.round(e * 1e3) / 1e3;
3367
3408
  }
3368
- const An = (e, t, n = !0) => {
3409
+ const Hn = (e, t, n = !0) => {
3369
3410
  if (!(e instanceof HTMLElement))
3370
3411
  return null;
3371
3412
  let i = n ? e : e.parentElement;
@@ -3376,35 +3417,35 @@ const An = (e, t, n = !0) => {
3376
3417
  return i;
3377
3418
  } while (i = i.parentElement);
3378
3419
  return null;
3379
- }, Wn = (e) => An(e, (t) => {
3420
+ }, Mn = (e) => Hn(e, (t) => {
3380
3421
  const n = t.getAttribute("builder-id") || t.id;
3381
3422
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3382
- }), ye = ({
3423
+ }), Se = ({
3383
3424
  event: e,
3384
3425
  target: t
3385
3426
  }) => {
3386
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r = pe(i / n.width), a = pe(o / n.height);
3427
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r = ve(i / n.width), a = ve(o / n.height);
3387
3428
  return {
3388
3429
  x: r,
3389
3430
  y: a
3390
3431
  };
3391
- }, Nn = (e) => {
3392
- const t = e.target, n = t && Wn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3432
+ }, jn = (e) => {
3433
+ const t = e.target, n = t && Mn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3393
3434
  return {
3394
3435
  targetBuilderElement: i || void 0,
3395
3436
  metadata: {
3396
- targetOffset: t ? ye({
3437
+ targetOffset: t ? Se({
3397
3438
  event: e,
3398
3439
  target: t
3399
3440
  }) : void 0,
3400
- builderTargetOffset: n ? ye({
3441
+ builderTargetOffset: n ? Se({
3401
3442
  event: e,
3402
3443
  target: n
3403
3444
  }) : void 0,
3404
3445
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3405
3446
  }
3406
3447
  };
3407
- }, Fn = (e) => {
3448
+ }, qn = ["svelte", "qwik", "vue"], ke = () => qn.includes($) && (N() || ae()), zn = (e) => {
3408
3449
  var r, a;
3409
3450
  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;
3410
3451
  let o = "";
@@ -3416,29 +3457,29 @@ font-display: fallback;
3416
3457
  font-weight: 400;
3417
3458
  }
3418
3459
  `.trim()), e.files)
3419
- for (const l in e.files) {
3420
- if (!(String(Number(l)) === l))
3460
+ for (const s in e.files) {
3461
+ if (!(String(Number(s)) === s))
3421
3462
  continue;
3422
- const c = e.files[l];
3463
+ const c = e.files[s];
3423
3464
  c && c !== i && (o += `
3424
3465
  @font-face {
3425
3466
  font-family: "${t}";
3426
3467
  src: url('${c}') format('woff2');
3427
3468
  font-display: fallback;
3428
- font-weight: ${l};
3469
+ font-weight: ${s};
3429
3470
  }
3430
3471
  `.trim());
3431
3472
  }
3432
3473
  return o;
3433
- }, $n = ({
3474
+ }, Kn = ({
3434
3475
  customFonts: e
3435
3476
  }) => {
3436
3477
  var t;
3437
- return ((t = e == null ? void 0 : e.map((n) => Fn(n))) == null ? void 0 : t.join(" ")) || "";
3438
- }, Dn = ({
3478
+ return ((t = e == null ? void 0 : e.map((n) => zn(n))) == null ? void 0 : t.join(" ")) || "";
3479
+ }, Jn = ({
3439
3480
  cssCode: e,
3440
3481
  contentId: t
3441
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ln = `
3482
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Gn = `
3442
3483
  .builder-button {
3443
3484
  all: unset;
3444
3485
  }
@@ -3455,39 +3496,39 @@ font-weight: ${l};
3455
3496
  text-align: inherit;
3456
3497
  font-family: inherit;
3457
3498
  }
3458
- `, On = (e) => e ? "" : Ln, Un = (e) => `variant-${e}`;
3459
- function Hn(e) {
3460
- var b, y, A;
3461
- const t = $(null);
3499
+ `, Yn = (e) => e ? "" : Gn, Qn = (e) => `variant-${e}`;
3500
+ function Xn(e) {
3501
+ var p, C, V;
3502
+ const t = D(null);
3462
3503
  function n(k) {
3463
- var P, T;
3464
- const w = {
3504
+ var R, B;
3505
+ const I = {
3465
3506
  ...e.builderContextSignal.rootState,
3466
3507
  ...k
3467
3508
  };
3468
- e.builderContextSignal.rootSetState ? (T = (P = e.builderContextSignal).rootSetState) == null || T.call(P, w) : e.setBuilderContextSignal((u) => ({
3509
+ e.builderContextSignal.rootSetState ? (B = (R = e.builderContextSignal).rootSetState) == null || B.call(R, I) : e.setBuilderContextSignal((u) => ({
3469
3510
  ...u,
3470
- rootState: w
3511
+ rootState: I
3471
3512
  }));
3472
3513
  }
3473
3514
  function i(k) {
3474
- var P, T, u, C, W;
3475
- const w = {
3515
+ var R, B, u, S, P;
3516
+ const I = {
3476
3517
  ...e.builderContextSignal.content,
3477
3518
  ...k,
3478
3519
  data: {
3479
- ...(P = e.builderContextSignal.content) == null ? void 0 : P.data,
3520
+ ...(R = e.builderContextSignal.content) == null ? void 0 : R.data,
3480
3521
  ...k == null ? void 0 : k.data
3481
3522
  },
3482
3523
  meta: {
3483
- ...(T = e.builderContextSignal.content) == null ? void 0 : T.meta,
3524
+ ...(B = e.builderContextSignal.content) == null ? void 0 : B.meta,
3484
3525
  ...k == null ? void 0 : k.meta,
3485
- breakpoints: ((u = k == null ? void 0 : k.meta) == null ? void 0 : u.breakpoints) || ((W = (C = e.builderContextSignal.content) == null ? void 0 : C.meta) == null ? void 0 : W.breakpoints)
3526
+ breakpoints: ((u = k == null ? void 0 : k.meta) == null ? void 0 : u.breakpoints) || ((P = (S = e.builderContextSignal.content) == null ? void 0 : S.meta) == null ? void 0 : P.breakpoints)
3486
3527
  }
3487
3528
  };
3488
- e.setBuilderContextSignal((E) => ({
3489
- ...E,
3490
- content: w
3529
+ e.setBuilderContextSignal((w) => ({
3530
+ ...w,
3531
+ content: I
3491
3532
  }));
3492
3533
  }
3493
3534
  function o() {
@@ -3496,62 +3537,62 @@ function Hn(e) {
3496
3537
  "aria-hidden": !0
3497
3538
  };
3498
3539
  }
3499
- const [r, a] = R(
3540
+ const [r, a] = E(
3500
3541
  () => e.contentWrapper || "div"
3501
3542
  );
3502
- function l(k) {
3503
- return je({
3543
+ function s(k) {
3544
+ return Ke({
3504
3545
  model: e.model,
3505
3546
  trustedHosts: e.trustedHosts,
3506
3547
  callbacks: {
3507
- configureSdk: (w) => {
3548
+ configureSdk: (I) => {
3508
3549
  var u;
3509
- const { breakpoints: P, contentId: T } = w;
3510
- !T || T !== ((u = e.builderContextSignal.content) == null ? void 0 : u.id) || P && i({
3550
+ const { breakpoints: R, contentId: B } = I;
3551
+ !B || B !== ((u = e.builderContextSignal.content) == null ? void 0 : u.id) || R && i({
3511
3552
  meta: {
3512
- breakpoints: P
3553
+ breakpoints: R
3513
3554
  }
3514
3555
  });
3515
3556
  },
3516
- animation: (w) => {
3517
- Be(w);
3557
+ animation: (I) => {
3558
+ Ne(I);
3518
3559
  },
3519
- contentUpdate: (w) => {
3520
- i(w);
3560
+ contentUpdate: (I) => {
3561
+ i(I);
3521
3562
  }
3522
3563
  }
3523
3564
  })(k);
3524
3565
  }
3525
- const [d, c] = R(() => ({})), [h, g] = R(() => ({})), [m, x] = R(() => !1);
3566
+ const [d, c] = E(() => ({})), [h, g] = E(() => ({})), [m, y] = E(() => !1);
3526
3567
  function f(k) {
3527
- var w, P;
3568
+ var I, R;
3528
3569
  if (e.builderContextSignal.content) {
3529
- const T = (w = e.builderContextSignal.content) == null ? void 0 : w.testVariationId, u = (P = e.builderContextSignal.content) == null ? void 0 : P.id;
3530
- se({
3570
+ const B = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, u = (R = e.builderContextSignal.content) == null ? void 0 : R.id;
3571
+ ue({
3531
3572
  apiHost: e.apiHost,
3532
3573
  type: "click",
3533
- canTrack: K(e.canTrack),
3574
+ canTrack: z(e.canTrack),
3534
3575
  contentId: u,
3535
3576
  apiKey: e.apiKey,
3536
- variationId: T !== u ? T : void 0,
3537
- ...Nn(k),
3577
+ variationId: B !== u ? B : void 0,
3578
+ ...jn(k),
3538
3579
  unique: !m
3539
3580
  });
3540
3581
  }
3541
- m || x(!0);
3582
+ m || y(!0);
3542
3583
  }
3543
- function S() {
3544
- var w, P, T;
3545
- const k = (T = (P = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : P.httpRequests) != null ? T : {};
3546
- Object.entries(k).forEach(([u, C]) => {
3547
- if (!C || h[u] || d[u] && !N())
3584
+ function v() {
3585
+ var I, R, B;
3586
+ const k = (B = (R = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : R.httpRequests) != null ? B : {};
3587
+ Object.entries(k).forEach(([u, S]) => {
3588
+ if (!S || h[u] || d[u] && !N())
3548
3589
  return;
3549
3590
  h[u] = !0;
3550
- const W = C.replace(
3591
+ const P = S.replace(
3551
3592
  /{{([^}]+)}}/g,
3552
- (E, j) => String(
3553
- L({
3554
- code: j,
3593
+ (w, L) => String(
3594
+ O({
3595
+ code: L,
3555
3596
  context: e.context || {},
3556
3597
  localState: void 0,
3557
3598
  rootState: e.builderContextSignal.rootState,
@@ -3559,24 +3600,24 @@ function Hn(e) {
3559
3600
  })
3560
3601
  )
3561
3602
  );
3562
- Se(W), fetch(W).then((E) => E.json()).then((E) => {
3603
+ Te(P), fetch(P).then((w) => w.json()).then((w) => {
3563
3604
  n({
3564
- [u]: E
3605
+ [u]: w
3565
3606
  }), d[u] = !0;
3566
- }).catch((E) => {
3567
- console.error("error fetching dynamic data", C, E);
3607
+ }).catch((w) => {
3608
+ console.error("error fetching dynamic data", S, w);
3568
3609
  }).finally(() => {
3569
3610
  h[u] = !1;
3570
3611
  });
3571
3612
  });
3572
3613
  }
3573
- function v() {
3614
+ function x() {
3574
3615
  N() && window.dispatchEvent(
3575
3616
  new CustomEvent(
3576
3617
  "builder:component:stateChange",
3577
3618
  {
3578
3619
  detail: {
3579
- state: oe(e.builderContextSignal.rootState),
3620
+ state: re(e.builderContextSignal.rootState),
3580
3621
  ref: {
3581
3622
  name: e.model
3582
3623
  }
@@ -3585,11 +3626,11 @@ function Hn(e) {
3585
3626
  )
3586
3627
  );
3587
3628
  }
3588
- const p = $(!1);
3589
- return p.current || (S(), v(), p.current = !0), B(() => {
3590
- var k, w;
3629
+ const b = D(!1);
3630
+ return b.current || (v(), x(), b.current = !0), A(() => {
3631
+ var k, I, R;
3591
3632
  if (q()) {
3592
- if (N() && !e.isNestedRender && (window.addEventListener("message", l), Oe(), Ue({
3633
+ if (N() && !e.isNestedRender && (window.addEventListener("message", s), je(), qe({
3593
3634
  ...e.locale ? {
3594
3635
  locale: e.locale
3595
3636
  } : {},
@@ -3601,83 +3642,93 @@ function Hn(e) {
3601
3642
  } : {}
3602
3643
  }), Object.values(
3603
3644
  e.builderContextSignal.componentInfos
3604
- ).forEach((T) => {
3605
- var C;
3606
- const u = He(T);
3607
- (C = window.parent) == null || C.postMessage(u, "*");
3645
+ ).forEach((u) => {
3646
+ var S, P;
3647
+ if (!e.model || !((S = u.models) != null && S.length) || u.models.includes(e.model)) {
3648
+ const w = ze(u);
3649
+ (P = window.parent) == null || P.postMessage(w, "*");
3650
+ }
3608
3651
  }), window.addEventListener(
3609
3652
  "builder:component:stateChangeListenerActivated",
3610
- v
3611
- )), e.builderContextSignal.content && K(e.canTrack)) {
3612
- const T = (k = e.builderContextSignal.content) == null ? void 0 : k.testVariationId, u = (w = e.builderContextSignal.content) == null ? void 0 : w.id, C = e.apiKey;
3613
- se({
3653
+ x
3654
+ )), e.builderContextSignal.content && z(e.canTrack)) {
3655
+ const u = (k = e.builderContextSignal.content) == null ? void 0 : k.testVariationId, S = (I = e.builderContextSignal.content) == null ? void 0 : I.id, P = e.apiKey;
3656
+ ue({
3614
3657
  apiHost: e.apiHost,
3615
3658
  type: "impression",
3616
3659
  canTrack: !0,
3617
- contentId: u,
3618
- apiKey: C,
3619
- variationId: T !== u ? T : void 0
3660
+ contentId: S,
3661
+ apiKey: P,
3662
+ variationId: u !== S ? u : void 0
3620
3663
  });
3621
3664
  }
3622
- if (ve() && !N()) {
3623
- const T = new URL(location.href).searchParams, u = T.get("builder.preview"), C = T.get(
3624
- `builder.overrides.${u}`
3625
- ), W = T.get("apiKey") || T.get("builder.space");
3626
- u === e.model && W === e.apiKey && (!e.content || C === e.content.id) && ke({
3627
- model: e.model,
3665
+ if (ae() && !N()) {
3666
+ const u = new URL(location.href).searchParams, S = u.get("builder.preview"), P = u.get(
3667
+ `builder.overrides.${S}`
3668
+ ), w = u.get("apiKey") || u.get("builder.space");
3669
+ (S === "BUILDER_STUDIO" || S === e.model && w === e.apiKey && (!e.content || P === e.content.id)) && Ie({
3670
+ model: e.model || "",
3628
3671
  apiKey: e.apiKey,
3629
- apiVersion: e.builderContextSignal.apiVersion
3630
- }).then((E) => {
3631
- E && i(E);
3672
+ apiVersion: e.builderContextSignal.apiVersion,
3673
+ ...S === "BUILDER_STUDIO" && ((R = e.context) != null && R.symbolId) ? {
3674
+ query: {
3675
+ id: e.context.symbolId
3676
+ }
3677
+ } : {}
3678
+ }).then((L) => {
3679
+ L && i(L);
3632
3680
  });
3633
3681
  }
3634
3682
  }
3635
- }, []), B(() => {
3683
+ }, []), A(() => {
3636
3684
  e.content && i(e.content);
3637
- }, [e.content]), B(() => {
3638
- v();
3639
- }, [e.builderContextSignal.rootState]), B(() => {
3685
+ }, [e.content]), A(() => {
3686
+ x();
3687
+ }, [e.builderContextSignal.rootState]), A(() => {
3640
3688
  e.data && n(e.data);
3641
- }, [e.data]), B(() => {
3689
+ }, [e.data]), A(() => {
3642
3690
  e.locale && n({
3643
3691
  locale: e.locale
3644
3692
  });
3645
- }, [e.locale]), B(() => () => {
3646
- q() && (window.removeEventListener("message", l), window.removeEventListener(
3693
+ }, [e.locale]), A(() => () => {
3694
+ q() && (window.removeEventListener("message", s), window.removeEventListener(
3647
3695
  "builder:component:stateChangeListenerActivated",
3648
- v
3696
+ x
3649
3697
  ));
3650
- }, []), /* @__PURE__ */ s(re.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3698
+ }, []), /* @__PURE__ */ l(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || ke() ? /* @__PURE__ */ l(
3651
3699
  r,
3652
3700
  {
3653
3701
  ref: t,
3654
3702
  onClick: (k) => f(k),
3655
- "builder-content-id": (b = e.builderContextSignal.content) == null ? void 0 : b.id,
3703
+ "builder-content-id": (p = e.builderContextSignal.content) == null ? void 0 : p.id,
3656
3704
  "builder-model": e.model,
3657
- className: Un(
3658
- ((y = e.content) == null ? void 0 : y.testVariationId) || ((A = e.content) == null ? void 0 : A.id)
3705
+ className: Qn(
3706
+ ((C = e.content) == null ? void 0 : C.testVariationId) || ((V = e.content) == null ? void 0 : V.id)
3659
3707
  ),
3708
+ style: {
3709
+ display: !e.builderContextSignal.content && ke() ? "none" : void 0
3710
+ },
3660
3711
  ...o(),
3661
3712
  ...e.contentWrapperProps,
3662
3713
  children: e.children
3663
3714
  }
3664
3715
  ) : null });
3665
3716
  }
3666
- function jn(e) {
3667
- const [t, n] = R(
3717
+ function Zn(e) {
3718
+ const [t, n] = E(
3668
3719
  () => `
3669
- ${Dn({
3720
+ ${Jn({
3670
3721
  cssCode: e.cssCode,
3671
3722
  contentId: e.contentId
3672
3723
  })}
3673
- ${$n({
3724
+ ${Kn({
3674
3725
  customFonts: e.customFonts
3675
3726
  })}
3676
- ${On(e.isNestedRender)}
3727
+ ${Yn(e.isNestedRender)}
3677
3728
  `.trim()
3678
3729
  );
3679
- return /* @__PURE__ */ s(
3680
- J,
3730
+ return /* @__PURE__ */ l(
3731
+ G,
3681
3732
  {
3682
3733
  id: "builderio-content",
3683
3734
  styles: t,
@@ -3685,14 +3736,14 @@ ${On(e.isNestedRender)}
3685
3736
  }
3686
3737
  );
3687
3738
  }
3688
- const Mn = ({
3739
+ const ei = ({
3689
3740
  content: e,
3690
3741
  data: t,
3691
3742
  locale: n
3692
3743
  }) => {
3693
- var r, a, l;
3744
+ var r, a, s;
3694
3745
  const i = {}, o = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
3695
- return (l = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || l.forEach((d) => {
3746
+ return (s = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || s.forEach((d) => {
3696
3747
  d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
3697
3748
  }), {
3698
3749
  ...i,
@@ -3702,7 +3753,7 @@ const Mn = ({
3702
3753
  locale: n
3703
3754
  } : {}
3704
3755
  };
3705
- }, _n = ({
3756
+ }, ti = ({
3706
3757
  content: e,
3707
3758
  data: t
3708
3759
  }) => e ? {
@@ -3713,100 +3764,95 @@ const Mn = ({
3713
3764
  },
3714
3765
  meta: e == null ? void 0 : e.meta
3715
3766
  } : void 0;
3716
- function xe(e) {
3717
- var c, h, g, m, x, f, S, v, p;
3718
- const [t, n] = R(
3767
+ function Ce(e) {
3768
+ var c, h, g, m, y, f, v, x, b;
3769
+ const [t, n] = E(
3719
3770
  () => {
3720
- var b, y;
3721
- return Vn({
3771
+ var p, C;
3772
+ return _n({
3722
3773
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3723
- variationId: (b = e.content) == null ? void 0 : b.testVariationId,
3774
+ variationId: (p = e.content) == null ? void 0 : p.testVariationId,
3724
3775
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3725
- contentId: (y = e.content) == null ? void 0 : y.id
3776
+ contentId: (C = e.content) == null ? void 0 : C.id
3726
3777
  });
3727
3778
  }
3728
3779
  );
3729
- function i(b) {
3730
- l((y) => ({
3731
- ...y,
3732
- rootState: b
3780
+ function i(p) {
3781
+ s((C) => ({
3782
+ ...C,
3783
+ rootState: p
3733
3784
  }));
3734
3785
  }
3735
- const [o, r] = R(
3736
- () => {
3737
- var b;
3738
- return [
3739
- ...be(),
3740
- ...((b = e.customComponents) == null ? void 0 : b.filter(({ models: y }) => !(y != null && y.length) || !e.model ? !0 : y.includes(e.model))) || []
3741
- ].reduce(
3742
- (y, { component: A, ...k }) => ({
3743
- ...y,
3744
- [k.name]: {
3745
- component: A,
3746
- ...ce(k)
3747
- }
3748
- }),
3749
- {}
3750
- );
3751
- }
3752
- ), [a, l] = R(() => {
3753
- var b;
3754
- return {
3755
- content: _n({
3756
- content: e.content,
3757
- data: e.data
3786
+ const [o, r] = E(
3787
+ () => [
3788
+ ...xe(),
3789
+ ...e.customComponents || []
3790
+ ].reduce(
3791
+ (p, { component: C, ...V }) => ({
3792
+ ...p,
3793
+ [V.name]: {
3794
+ component: C,
3795
+ ...me(V)
3796
+ }
3758
3797
  }),
3759
- localState: void 0,
3760
- rootState: Mn({
3761
- content: e.content,
3762
- data: e.data,
3763
- locale: e.locale
3798
+ {}
3799
+ )
3800
+ ), [a, s] = E(() => ({
3801
+ content: ti({
3802
+ content: e.content,
3803
+ data: e.data
3804
+ }),
3805
+ localState: void 0,
3806
+ rootState: ei({
3807
+ content: e.content,
3808
+ data: e.data,
3809
+ locale: e.locale
3810
+ }),
3811
+ rootSetState: i,
3812
+ context: e.context || {},
3813
+ canTrack: e.canTrack,
3814
+ apiKey: e.apiKey,
3815
+ apiVersion: e.apiVersion,
3816
+ componentInfos: [
3817
+ ...xe(),
3818
+ ...e.customComponents || []
3819
+ ].reduce(
3820
+ (p, { component: C, ...V }) => ({
3821
+ ...p,
3822
+ [V.name]: me(V)
3764
3823
  }),
3765
- rootSetState: i,
3766
- context: e.context || {},
3767
- canTrack: e.canTrack,
3768
- apiKey: e.apiKey,
3769
- apiVersion: e.apiVersion,
3770
- componentInfos: [
3771
- ...be(),
3772
- ...((b = e.customComponents) == null ? void 0 : b.filter(({ models: y }) => !(y != null && y.length) || !e.model ? !0 : y.includes(e.model))) || []
3773
- ].reduce(
3774
- (y, { component: A, ...k }) => ({
3775
- ...y,
3776
- [k.name]: ce(k)
3777
- }),
3778
- {}
3779
- ),
3780
- inheritedStyles: {},
3781
- BlocksWrapper: e.blocksWrapper || "div",
3782
- BlocksWrapperProps: e.blocksWrapperProps || {},
3783
- nonce: e.nonce || ""
3784
- };
3785
- }), d = $(!1);
3824
+ {}
3825
+ ),
3826
+ inheritedStyles: {},
3827
+ BlocksWrapper: e.blocksWrapper || "div",
3828
+ BlocksWrapperProps: e.blocksWrapperProps || {},
3829
+ nonce: e.nonce || "",
3830
+ model: e.model || ""
3831
+ })), d = D(!1);
3786
3832
  if (!d.current) {
3787
- e.apiKey || ie.error(
3833
+ e.apiKey || oe.error(
3788
3834
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3789
3835
  );
3790
- const b = (h = (c = a.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
3791
- b && L({
3792
- code: b,
3836
+ const p = (h = (c = a.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
3837
+ p && O({
3838
+ code: p,
3793
3839
  context: e.context || {},
3794
3840
  localState: void 0,
3795
3841
  rootState: a.rootState,
3796
- rootSetState: (y) => {
3797
- Object.assign(a.rootState, y);
3842
+ rootSetState: (C) => {
3843
+ Object.assign(a.rootState, C);
3798
3844
  },
3799
3845
  isExpression: !1
3800
3846
  }), d.current = !0;
3801
3847
  }
3802
- return /* @__PURE__ */ s(
3803
- we.Provider,
3848
+ return /* @__PURE__ */ l(
3849
+ Pe.Provider,
3804
3850
  {
3805
3851
  value: {
3806
3852
  registeredComponents: o
3807
3853
  },
3808
- children: /* @__PURE__ */ V(
3809
- Hn,
3854
+ children: /* @__PURE__ */ W(
3855
+ Xn,
3810
3856
  {
3811
3857
  apiHost: e.apiHost,
3812
3858
  nonce: e.nonce,
@@ -3824,30 +3870,30 @@ function xe(e) {
3824
3870
  contentWrapperProps: e.contentWrapperProps,
3825
3871
  trustedHosts: e.trustedHosts,
3826
3872
  isNestedRender: e.isNestedRender,
3827
- setBuilderContextSignal: l,
3873
+ setBuilderContextSignal: s,
3828
3874
  children: [
3829
- e.isSsrAbTest ? /* @__PURE__ */ s(
3830
- ne,
3875
+ e.isSsrAbTest ? /* @__PURE__ */ l(
3876
+ ie,
3831
3877
  {
3832
3878
  id: "builderio-variant-visibility",
3833
3879
  scriptStr: t,
3834
3880
  nonce: e.nonce || ""
3835
3881
  }
3836
3882
  ) : null,
3837
- /* @__PURE__ */ s(
3838
- jn,
3883
+ /* @__PURE__ */ l(
3884
+ Zn,
3839
3885
  {
3840
3886
  nonce: e.nonce || "",
3841
3887
  isNestedRender: e.isNestedRender,
3842
3888
  contentId: (g = a.content) == null ? void 0 : g.id,
3843
- cssCode: (x = (m = a.content) == null ? void 0 : m.data) == null ? void 0 : x.cssCode,
3844
- customFonts: (S = (f = a.content) == null ? void 0 : f.data) == null ? void 0 : S.customFonts
3889
+ cssCode: (y = (m = a.content) == null ? void 0 : m.data) == null ? void 0 : y.cssCode,
3890
+ customFonts: (v = (f = a.content) == null ? void 0 : f.data) == null ? void 0 : v.customFonts
3845
3891
  }
3846
3892
  ),
3847
- /* @__PURE__ */ s(
3893
+ /* @__PURE__ */ l(
3848
3894
  F,
3849
3895
  {
3850
- blocks: (p = (v = a.content) == null ? void 0 : v.data) == null ? void 0 : p.blocks,
3896
+ blocks: (b = (x = a.content) == null ? void 0 : x.data) == null ? void 0 : b.blocks,
3851
3897
  context: a,
3852
3898
  registeredComponents: o,
3853
3899
  linkComponent: e.linkComponent
@@ -3859,71 +3905,71 @@ function xe(e) {
3859
3905
  }
3860
3906
  );
3861
3907
  }
3862
- function qn(e) {
3908
+ function ni(e) {
3863
3909
  var a;
3864
- const [t, n] = R(
3865
- () => En({
3866
- canTrack: K(e.canTrack),
3910
+ const [t, n] = E(
3911
+ () => Ln({
3912
+ canTrack: z(e.canTrack),
3867
3913
  content: e.content
3868
3914
  })
3869
3915
  );
3870
3916
  function i() {
3871
- var l;
3872
- return Bn(
3873
- _(e.content).map((d) => ({
3917
+ var s;
3918
+ return Un(
3919
+ j(e.content).map((d) => ({
3874
3920
  id: d.testVariationId,
3875
3921
  testRatio: d.testRatio
3876
3922
  })),
3877
- ((l = e.content) == null ? void 0 : l.id) || ""
3923
+ ((s = e.content) == null ? void 0 : s.id) || ""
3878
3924
  );
3879
3925
  }
3880
3926
  function o() {
3881
- return _(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
3927
+ return j(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
3882
3928
  }
3883
3929
  function r() {
3884
- var l;
3930
+ var s;
3885
3931
  return t ? {
3886
3932
  ...e.content,
3887
- testVariationId: (l = e.content) == null ? void 0 : l.id
3888
- } : Me({
3933
+ testVariationId: (s = e.content) == null ? void 0 : s.id
3934
+ } : Je({
3889
3935
  item: e.content,
3890
- canTrack: K(e.canTrack)
3936
+ canTrack: z(e.canTrack)
3891
3937
  });
3892
3938
  }
3893
- return B(() => {
3894
- }, []), /* @__PURE__ */ V(I, { children: [
3895
- !e.isNestedRender && D !== "reactNative" ? /* @__PURE__ */ s(
3896
- ne,
3939
+ return A(() => {
3940
+ }, []), /* @__PURE__ */ W(T, { children: [
3941
+ !e.isNestedRender && $ !== "reactNative" ? /* @__PURE__ */ l(
3942
+ ie,
3897
3943
  {
3898
3944
  id: "builderio-init-variants-fns",
3899
- scriptStr: Pn(),
3945
+ scriptStr: On(),
3900
3946
  nonce: e.nonce || ""
3901
3947
  }
3902
3948
  ) : null,
3903
- t ? /* @__PURE__ */ V(I, { children: [
3904
- /* @__PURE__ */ s(
3905
- J,
3949
+ t ? /* @__PURE__ */ W(T, { children: [
3950
+ /* @__PURE__ */ l(
3951
+ G,
3906
3952
  {
3907
3953
  id: "builderio-variants",
3908
3954
  styles: o(),
3909
3955
  nonce: e.nonce || ""
3910
3956
  }
3911
3957
  ),
3912
- /* @__PURE__ */ s(
3913
- ne,
3958
+ /* @__PURE__ */ l(
3959
+ ie,
3914
3960
  {
3915
3961
  id: "builderio-variants-visibility",
3916
3962
  scriptStr: i(),
3917
3963
  nonce: e.nonce || ""
3918
3964
  }
3919
3965
  ),
3920
- (a = _(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
3921
- xe,
3966
+ (a = j(e.content)) == null ? void 0 : a.map((s) => /* @__PURE__ */ l(
3967
+ Ce,
3922
3968
  {
3923
3969
  apiHost: e.apiHost,
3924
3970
  isNestedRender: e.isNestedRender,
3925
3971
  nonce: e.nonce,
3926
- content: l,
3972
+ content: s,
3927
3973
  showContent: !1,
3928
3974
  model: e.model,
3929
3975
  data: e.data,
@@ -3942,11 +3988,11 @@ function qn(e) {
3942
3988
  contentWrapperProps: e.contentWrapperProps,
3943
3989
  trustedHosts: e.trustedHosts
3944
3990
  },
3945
- l.testVariationId
3991
+ s.testVariationId
3946
3992
  ))
3947
3993
  ] }) : null,
3948
- /* @__PURE__ */ s(
3949
- xe,
3994
+ /* @__PURE__ */ l(
3995
+ Ce,
3950
3996
  {
3951
3997
  apiHost: e.apiHost,
3952
3998
  nonce: e.nonce,
@@ -3973,13 +4019,13 @@ function qn(e) {
3973
4019
  )
3974
4020
  ] });
3975
4021
  }
3976
- const Kn = async ({
4022
+ const ii = async ({
3977
4023
  builderContextValue: e,
3978
4024
  symbol: t
3979
4025
  }) => {
3980
4026
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
3981
4027
  (e != null && e.apiKey))
3982
- return ke({
4028
+ return Ie({
3983
4029
  model: t.model,
3984
4030
  apiKey: e.apiKey,
3985
4031
  apiVersion: e.apiVersion,
@@ -3989,11 +4035,11 @@ const Kn = async ({
3989
4035
  }
3990
4036
  }
3991
4037
  }).catch((n) => {
3992
- ie.error("Could not fetch symbol content: ", n);
4038
+ oe.error("Could not fetch symbol content: ", n);
3993
4039
  });
3994
4040
  };
3995
- function zn(e) {
3996
- var l, d, c, h;
4041
+ function oi(e) {
4042
+ var s, d, c, h;
3997
4043
  function t() {
3998
4044
  return "div";
3999
4045
  }
@@ -4003,29 +4049,29 @@ function zn(e) {
4003
4049
  function i() {
4004
4050
  var g, m;
4005
4051
  return [
4006
- e.attributes[U()],
4052
+ e.attributes[_()],
4007
4053
  "builder-symbol",
4008
4054
  (g = e.symbol) != null && g.inline ? "builder-inline-symbol" : void 0,
4009
4055
  (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4010
4056
  ].filter(Boolean).join(" ");
4011
4057
  }
4012
- const [o, r] = R(() => {
4058
+ const [o, r] = E(() => {
4013
4059
  var g;
4014
4060
  return (g = e.symbol) == null ? void 0 : g.content;
4015
4061
  });
4016
4062
  function a() {
4017
- o || Kn({
4063
+ o || ii({
4018
4064
  symbol: e.symbol,
4019
4065
  builderContextValue: e.builderContext
4020
4066
  }).then((g) => {
4021
4067
  g && r(g);
4022
4068
  });
4023
4069
  }
4024
- return B(() => {
4025
- }, []), B(() => {
4070
+ return A(() => {
4071
+ }, []), A(() => {
4026
4072
  a();
4027
- }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
4028
- qn,
4073
+ }, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
4074
+ ni,
4029
4075
  {
4030
4076
  nonce: e.builderContext.nonce,
4031
4077
  isNestedRender: !0,
@@ -4033,7 +4079,7 @@ function zn(e) {
4033
4079
  apiKey: e.builderContext.apiKey,
4034
4080
  context: {
4035
4081
  ...e.builderContext.context,
4036
- symbolId: (l = e.builderBlock) == null ? void 0 : l.id
4082
+ symbolId: (s = e.builderBlock) == null ? void 0 : s.id
4037
4083
  },
4038
4084
  customComponents: Object.values(e.builderComponents),
4039
4085
  data: {
@@ -4052,14 +4098,14 @@ function zn(e) {
4052
4098
  }
4053
4099
  export {
4054
4100
  F as Blocks,
4055
- re as BuilderContext,
4056
- Xe as Button,
4057
- Ft as Columns,
4058
- qn as Content,
4059
- $t as Fragment,
4060
- Ot as Image,
4061
- Ut as Section,
4062
- zn as Symbol,
4063
- en as Text,
4064
- Cn as Video
4101
+ se as BuilderContext,
4102
+ it as Button,
4103
+ jt as Columns,
4104
+ ni as Content,
4105
+ qt as Fragment,
4106
+ Jt as Image,
4107
+ Gt as Section,
4108
+ oi as Symbol,
4109
+ un as Text,
4110
+ Wn as Video
4065
4111
  };