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