@builder.io/sdk-react 4.0.6 → 4.0.8

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 (72) hide show
  1. package/lib/browser/blocks-exports.cjs +33 -33
  2. package/lib/browser/blocks-exports.mjs +884 -873
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/{server-entry-5449a575.cjs → server-entry-8ea5d047.cjs} +1 -1
  6. package/lib/browser/{server-entry-79285592.js → server-entry-d0b98fb0.js} +1 -1
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/{accordion-87ad8263.js → accordion-8ef468e5.js} +1 -1
  10. package/lib/edge/{accordion-f7e030d5.cjs → accordion-94839d7d.cjs} +1 -1
  11. package/lib/edge/{blocks-a066bb29.js → blocks-548ec8c2.js} +425 -417
  12. package/lib/edge/{blocks-31199191.cjs → blocks-7e8837dc.cjs} +13 -13
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +2 -2
  15. package/lib/edge/{button-1d265b68.js → button-09f38c2e.js} +2 -2
  16. package/lib/edge/{button-45c9b994.cjs → button-66c37b9c.cjs} +1 -1
  17. package/lib/edge/{columns-6f323a60.js → columns-42cbe467.js} +3 -3
  18. package/lib/edge/{columns-2282e71d.cjs → columns-67ded4b4.cjs} +1 -1
  19. package/lib/edge/{content-variants-ddc4462d.js → content-variants-5a4eecaf.js} +13 -16
  20. package/lib/edge/{content-variants-ea56e041.cjs → content-variants-cf107f82.cjs} +1 -1
  21. package/lib/edge/{custom-code-27f3a9d0.js → custom-code-cf216b27.js} +1 -1
  22. package/lib/edge/{custom-code-046c9e54.cjs → custom-code-ea534e98.cjs} +1 -1
  23. package/lib/edge/{embed-962809ed.js → embed-12b85639.js} +1 -1
  24. package/lib/edge/{embed-a90e1ebf.cjs → embed-7ca4af6e.cjs} +1 -1
  25. package/lib/edge/{form-2112cb80.cjs → form-85ea06df.cjs} +1 -1
  26. package/lib/edge/{form-4fc6f70a.js → form-f1188ad2.js} +3 -3
  27. package/lib/edge/{get-class-prop-name-77a0b81b.cjs → get-class-prop-name-316a93c9.cjs} +1 -1
  28. package/lib/edge/{get-class-prop-name-03e66a61.js → get-class-prop-name-90df5962.js} +1 -1
  29. package/lib/edge/{image-1729f079.js → image-acc1c00c.js} +29 -27
  30. package/lib/edge/image-e38bd9e0.cjs +17 -0
  31. package/lib/edge/{img-5850d9d8.cjs → img-81a7f4d7.cjs} +1 -1
  32. package/lib/edge/{img-95c678b5.js → img-ee2838af.js} +1 -1
  33. package/lib/edge/index.cjs +1 -1
  34. package/lib/edge/index.mjs +1 -1
  35. package/lib/edge/{input-3937aa23.cjs → input-231ec63f.cjs} +1 -1
  36. package/lib/edge/{input-7d147e6f.js → input-b8907c7d.js} +1 -1
  37. package/lib/edge/{personalization-container-d687ea13.js → personalization-container-896a298a.js} +4 -4
  38. package/lib/edge/{personalization-container-aff166ba.cjs → personalization-container-95cba946.cjs} +1 -1
  39. package/lib/edge/{select-5bdfe568.cjs → select-b1650a75.cjs} +1 -1
  40. package/lib/edge/{select-bfca657e.js → select-ffee7a69.js} +1 -1
  41. package/lib/edge/{server-entry-e8854034.cjs → server-entry-1b560ddb.cjs} +1 -1
  42. package/lib/edge/{server-entry-1d157602.js → server-entry-e9974799.js} +1 -1
  43. package/lib/edge/server-entry.cjs +1 -1
  44. package/lib/edge/server-entry.mjs +1 -1
  45. package/lib/edge/{slot-a4c97369.cjs → slot-ddddba8d.cjs} +1 -1
  46. package/lib/edge/{slot-acb2aa8e.js → slot-fe93ec42.js} +3 -3
  47. package/lib/edge/symbol-c266ba83.js +90 -0
  48. package/lib/edge/symbol-d9175a66.cjs +1 -0
  49. package/lib/edge/{tabs-9cbb5615.js → tabs-3481a6f6.js} +3 -3
  50. package/lib/edge/{tabs-900d88a9.cjs → tabs-f76f757a.cjs} +1 -1
  51. package/lib/node/blocks-exports.cjs +33 -33
  52. package/lib/node/blocks-exports.mjs +708 -697
  53. package/lib/node/index.cjs +1 -1
  54. package/lib/node/index.mjs +3 -3
  55. package/lib/node/init.cjs +1 -1
  56. package/lib/node/init.mjs +3 -3
  57. package/lib/node/{server-entry-0dcb0303.cjs → server-entry-03fc1c6d.cjs} +1 -1
  58. package/lib/node/{server-entry-ee54171f.js → server-entry-2b91f2d9.js} +1 -1
  59. package/lib/node/server-entry.cjs +1 -1
  60. package/lib/node/server-entry.mjs +1 -1
  61. package/lib/node/{setIvm-d479356f.cjs → setIvm-26e766c5.cjs} +1 -1
  62. package/lib/node/{setIvm-b773f3ba.js → setIvm-419a94e0.js} +1 -1
  63. package/lib/node/setIvm.cjs +1 -1
  64. package/lib/node/setIvm.mjs +2 -2
  65. package/lib/node/{should-force-browser-runtime-in-node-bdb5bf58.js → should-force-browser-runtime-in-node-67506521.js} +1 -1
  66. package/lib/node/{should-force-browser-runtime-in-node-364ee049.cjs → should-force-browser-runtime-in-node-fe3d9cb0.cjs} +1 -1
  67. package/package.json +1 -1
  68. package/types/components/block/block.helpers.d.ts +1 -0
  69. package/types/constants/sdk-version.d.ts +1 -1
  70. package/lib/edge/image-a6fbd15b.cjs +0 -17
  71. package/lib/edge/symbol-33b65252.cjs +0 -1
  72. package/lib/edge/symbol-cc7e6b66.js +0 -85
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { TARGET as L, isEditing as A, isBrowser as U, getUserAttributes as Ye, checkIsDefined as Q, logger as _, isPreviewing as Z, userAttributesService as be, getDefaultCanTrack as j, logFetch as Ve, registerInsertMenu as Xe, setupBrowserForEditing as Ze, createRegisterComponentMessage as et, getCookieSync as tt, _track as pe, fetchOneEntry as Be, createEditorListener as nt, serializeIncludingFunctions as ye, handleABTestingSync as it } from "./server-entry-79285592.js";
3
- import { setClientUserAttributes as Ei } from "./server-entry-79285592.js";
4
- import { jsx as s, Fragment as R, jsxs as B } from "react/jsx-runtime";
2
+ import { TARGET as L, isEditing as A, isBrowser as U, getUserAttributes as Xe, checkIsDefined as Q, logger as _, isPreviewing as Z, userAttributesService as be, getDefaultCanTrack as j, logFetch as Be, registerInsertMenu as Ze, setupBrowserForEditing as et, createRegisterComponentMessage as tt, getCookieSync as nt, _track as pe, fetchOneEntry as Ae, createEditorListener as it, serializeIncludingFunctions as ye, handleABTestingSync as ot } from "./server-entry-d0b98fb0.js";
3
+ import { setClientUserAttributes as Ri } from "./server-entry-d0b98fb0.js";
4
+ import { jsx as s, Fragment as P, jsxs as B } from "react/jsx-runtime";
5
5
  import * as at from "react";
6
- import { createContext as Ae, useEffect as V, useState as I, useRef as O, useContext as ve, createElement as Ne } from "react";
7
- const ot = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), rt = (e) => typeof e == "string" && ot.has(e.toLowerCase());
6
+ import { createContext as Ne, useEffect as R, useState as I, useRef as O, useContext as ve, createElement as We } from "react";
7
+ const rt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), lt = (e) => typeof e == "string" && rt.has(e.toLowerCase());
8
8
  function ue(e) {
9
- return /* @__PURE__ */ s(R, { children: rt(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
9
+ return /* @__PURE__ */ s(P, { children: lt(e.TagName) ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(P, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
10
10
  }
11
11
  const z = () => {
12
12
  switch (L) {
@@ -22,7 +22,7 @@ const z = () => {
22
22
  return "class";
23
23
  }
24
24
  };
25
- function lt(e) {
25
+ function st(e) {
26
26
  function t() {
27
27
  return {
28
28
  ...e.attributes,
@@ -46,7 +46,7 @@ function lt(e) {
46
46
  }
47
47
  );
48
48
  }
49
- const de = Ae({
49
+ const de = Ne({
50
50
  content: null,
51
51
  context: {},
52
52
  localState: void 0,
@@ -61,10 +61,10 @@ const de = Ae({
61
61
  BlocksWrapperProps: {},
62
62
  nonce: "",
63
63
  model: ""
64
- }), We = Ae({ registeredComponents: {} }), De = (e, t, n) => {
65
- const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((a, o) => a != null ? a[o] : a, e);
64
+ }), De = Ne({ registeredComponents: {} }), $e = (e, t, n) => {
65
+ const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
66
66
  return i === void 0 || i === e ? n : i;
67
- }, st = ({
67
+ }, ct = ({
68
68
  builder: e,
69
69
  context: t,
70
70
  event: n,
@@ -76,36 +76,36 @@ const de = Ae({
76
76
  builder: e,
77
77
  context: t,
78
78
  event: n
79
- }), ct = () => ({
79
+ }), ut = () => ({
80
80
  isEditing: A(),
81
81
  isBrowser: U(),
82
82
  isServer: !U(),
83
- getUserAttributes: () => Ye()
84
- }), ut = (e, {
83
+ getUserAttributes: () => Xe()
84
+ }), dt = (e, {
85
85
  isExpression: t = !0
86
86
  }) => /* 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;
87
- function $e({
87
+ function Fe({
88
88
  rootState: e,
89
89
  localState: t,
90
90
  rootSetState: n
91
91
  }) {
92
92
  return new Proxy(e, {
93
- get: (i, a) => {
94
- if (t && a in t)
95
- return t[a];
96
- const o = i[a];
97
- return typeof o == "object" && o !== null ? $e({
98
- rootState: o,
93
+ get: (i, o) => {
94
+ if (t && o in t)
95
+ return t[o];
96
+ const a = i[o];
97
+ return typeof a == "object" && a !== null ? Fe({
98
+ rootState: a,
99
99
  localState: void 0,
100
100
  rootSetState: n ? (r) => {
101
- i[a] = r, n(i);
101
+ i[o] = r, n(i);
102
102
  } : void 0
103
- }) : o;
103
+ }) : a;
104
104
  },
105
- set: (i, a, o) => {
106
- if (t && a in t)
105
+ set: (i, o, a) => {
106
+ if (t && o in t)
107
107
  throw new Error("Writing to local state is not allowed as it is read-only.");
108
- return i[a] = o, n == null || n(i), !0;
108
+ return i[o] = a, n == null || n(i), !0;
109
109
  }
110
110
  });
111
111
  }
@@ -114,92 +114,92 @@ const xe = ({
114
114
  builder: t,
115
115
  context: n,
116
116
  event: i,
117
- localState: a,
118
- rootSetState: o,
117
+ localState: o,
118
+ rootSetState: a,
119
119
  rootState: r
120
120
  }) => {
121
- const l = st({
121
+ const l = ct({
122
122
  builder: t,
123
123
  context: n,
124
124
  event: i,
125
- state: $e({
125
+ state: Fe({
126
126
  rootState: r,
127
- localState: a,
128
- rootSetState: o
127
+ localState: o,
128
+ rootSetState: a
129
129
  })
130
130
  });
131
131
  return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
132
132
  };
133
- function dt() {
133
+ function mt() {
134
134
  var e;
135
135
  return typeof process != "undefined" && Q((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
136
136
  }
137
- const mt = ({
137
+ const ft = ({
138
138
  shouldLogWarning: e
139
139
  }) => {
140
- var a;
141
- if (!dt())
140
+ var o;
141
+ if (!mt())
142
142
  return !1;
143
- const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (a = process.env.NODE_OPTIONS) == null ? void 0 : a.includes("--no-node-snapshot");
143
+ const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
144
144
  return t && n && !i ? (e && _.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;
145
- }, ft = (e) => (U() || mt({
145
+ }, ht = (e) => (U() || ft({
146
146
  shouldLogWarning: !0
147
- }), xe(e)), ht = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, gt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, bt = (e) => {
148
- var t, n, i, a, o, r;
149
- return ((i = (n = (t = ht.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((r = (o = (a = gt.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : o.getPath) == null ? void 0 : r.slice(1));
147
+ }), xe(e)), gt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, bt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, pt = (e) => {
148
+ var t, n, i, o, a, r;
149
+ return ((i = (n = (t = gt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((r = (a = (o = bt.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : a.getPath) == null ? void 0 : r.slice(1));
150
150
  };
151
151
  function q({
152
152
  code: e,
153
153
  context: t,
154
154
  localState: n,
155
155
  rootState: i,
156
- rootSetState: a,
157
- event: o,
156
+ rootSetState: o,
157
+ event: a,
158
158
  isExpression: r = !0
159
159
  }) {
160
160
  if (e.trim() === "")
161
161
  return;
162
- const l = bt(e.trim());
162
+ const l = pt(e.trim());
163
163
  if (l)
164
- return De({
164
+ return $e({
165
165
  ...i,
166
166
  ...n
167
167
  }, l);
168
168
  const d = {
169
- code: ut(e, {
169
+ code: dt(e, {
170
170
  isExpression: r
171
171
  }),
172
- builder: ct(),
172
+ builder: ut(),
173
173
  context: t,
174
- event: o,
175
- rootSetState: a,
174
+ event: a,
175
+ rootSetState: o,
176
176
  rootState: i,
177
177
  localState: n
178
178
  };
179
179
  try {
180
- return ft(d);
181
- } catch (u) {
182
- _.error("Failed code evaluation: " + u.message, {
180
+ return ht(d);
181
+ } catch (c) {
182
+ _.error("Failed code evaluation: " + c.message, {
183
183
  code: e
184
184
  });
185
185
  return;
186
186
  }
187
187
  }
188
- function pt(e, t) {
188
+ function yt(e, t) {
189
189
  var n;
190
190
  return {
191
191
  ...(n = e.component) == null ? void 0 : n.options,
192
192
  ...e.options,
193
- ...yt(e, t)
193
+ ...vt(e, t)
194
194
  };
195
195
  }
196
- const yt = (e, t) => {
196
+ const vt = (e, t) => {
197
197
  var n, i;
198
198
  if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
199
199
  return {
200
200
  ...e.component.options,
201
- text: e.component.options.text.replace(/{{([^}]+)}}/g, (a, o) => q({
202
- code: o,
201
+ text: e.component.options.text.replace(/{{([^}]+)}}/g, (o, a) => q({
202
+ code: a,
203
203
  context: t,
204
204
  localState: t.localState,
205
205
  rootState: t.rootState,
@@ -207,58 +207,58 @@ const yt = (e, t) => {
207
207
  }))
208
208
  };
209
209
  };
210
- function vt(e, ...t) {
210
+ function xt(e, ...t) {
211
211
  const n = Object.assign({}, e);
212
212
  for (const i of t)
213
213
  delete n[i];
214
214
  return n;
215
215
  }
216
- function Y(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
216
+ function Y(e, t, n = null, i = null, o = /* @__PURE__ */ new WeakSet()) {
217
217
  if (e == null || typeof e != "object") {
218
- t(e, (o) => {
219
- n !== null && i !== null && (n[i] = o);
218
+ t(e, (a) => {
219
+ n !== null && i !== null && (n[i] = a);
220
220
  });
221
221
  return;
222
222
  }
223
- a.has(e) || (a.add(e), Array.isArray(e) ? e.forEach((o, r) => {
224
- t(o, (d) => {
223
+ o.has(e) || (o.add(e), Array.isArray(e) ? e.forEach((a, r) => {
224
+ t(a, (d) => {
225
225
  e[r] = d;
226
- }), Y(o, t, e, r, a);
227
- }) : Object.entries(e).forEach(([o, r]) => {
226
+ }), Y(a, t, e, r, o);
227
+ }) : Object.entries(e).forEach(([a, r]) => {
228
228
  t(r, (d) => {
229
- e[o] = d;
230
- }), Y(r, t, e, o, a);
229
+ e[a] = d;
230
+ }), Y(r, t, e, a, o);
231
231
  }));
232
232
  }
233
- function Fe(e) {
233
+ function Oe(e) {
234
234
  return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
235
235
  }
236
- function xt(e) {
236
+ function St(e) {
237
237
  if (!e || !Object.getOwnPropertyNames(e).length)
238
238
  return !1;
239
239
  let t = !1;
240
240
  return Y(e, (n) => {
241
- if (Fe(n)) {
241
+ if (Oe(n)) {
242
242
  t = !0;
243
243
  return;
244
244
  }
245
245
  }), t;
246
246
  }
247
- function St(e, t) {
247
+ function kt(e, t) {
248
248
  return !e || !Object.getOwnPropertyNames(e).length ? {} : (Y(e, (n, i) => {
249
- var a;
250
- Fe(n) && i((a = n[t]) != null ? a : void 0);
249
+ var o;
250
+ Oe(n) && i((o = n[t]) != null ? o : void 0);
251
251
  }), e);
252
252
  }
253
- function kt(e, t) {
253
+ function Ct(e, t) {
254
254
  var n, i;
255
- return (n = e.component) != null && n.options && xt((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 = St(e.component.options, t != null ? t : "Default")), e;
255
+ return (n = e.component) != null && n.options && St((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 = kt(e.component.options, t != null ? t : "Default")), e;
256
256
  }
257
- const me = (e) => JSON.parse(JSON.stringify(e)), Oe = (e, t, n) => {
257
+ const me = (e) => JSON.parse(JSON.stringify(e)), Le = (e, t, n) => {
258
258
  if (Object(e) !== e)
259
259
  return e;
260
260
  const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
261
- return i.slice(0, -1).reduce((a, o, r) => Object(a[o]) === a[o] ? a[o] : a[o] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
261
+ 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;
262
262
  };
263
263
  function ce(e) {
264
264
  if (e === null || typeof e != "object")
@@ -272,8 +272,8 @@ function ce(e) {
272
272
  n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ce(e[n]));
273
273
  return t;
274
274
  }
275
- const Ct = ["svelte", "vue", "angular", "qwik", "solid"].includes(L), Tt = (e) => {
276
- if (Ct) {
275
+ const Tt = ["svelte", "vue", "angular", "qwik", "solid"].includes(L), wt = (e) => {
276
+ if (Tt) {
277
277
  const t = me(e);
278
278
  return {
279
279
  ...t,
@@ -285,7 +285,7 @@ const Ct = ["svelte", "vue", "angular", "qwik", "solid"].includes(L), Tt = (e) =
285
285
  }
286
286
  };
287
287
  } else {
288
- const t = ce(vt(e, "children", "meta"));
288
+ const t = ce(xt(e, "children", "meta"));
289
289
  return {
290
290
  ...t,
291
291
  properties: {
@@ -298,179 +298,179 @@ const Ct = ["svelte", "vue", "angular", "qwik", "solid"].includes(L), Tt = (e) =
298
298
  meta: e.meta
299
299
  };
300
300
  }
301
- }, wt = ({
301
+ }, It = ({
302
302
  block: e,
303
303
  context: t,
304
304
  localState: n,
305
305
  rootState: i,
306
- rootSetState: a
306
+ rootSetState: o
307
307
  }) => {
308
308
  if (!e.bindings)
309
309
  return e;
310
- const o = Tt(e);
310
+ const a = wt(e);
311
311
  for (const r in e.bindings) {
312
312
  const l = e.bindings[r], d = q({
313
313
  code: l,
314
314
  localState: n,
315
315
  rootState: i,
316
- rootSetState: a,
316
+ rootSetState: o,
317
317
  context: t
318
318
  });
319
- Oe(o, r, d);
319
+ Le(a, r, d);
320
320
  }
321
- return o;
321
+ return a;
322
322
  };
323
- function It({
323
+ function Et({
324
324
  block: e,
325
325
  context: t,
326
326
  localState: n,
327
327
  rootState: i,
328
- rootSetState: a
328
+ rootSetState: o
329
329
  }) {
330
- let o = kt(e, i.locale);
331
- return o = o, wt({
332
- block: o,
330
+ let a = Ct(e, i.locale);
331
+ return a = a, It({
332
+ block: a,
333
333
  localState: n,
334
334
  rootState: i,
335
- rootSetState: a,
335
+ rootSetState: o,
336
336
  context: t
337
337
  });
338
338
  }
339
339
  const ee = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
340
- function Et(e, t, n = {}) {
341
- let i, a, o, r = null, l = 0;
340
+ function Rt(e, t, n = {}) {
341
+ let i, o, a, r = null, l = 0;
342
342
  const d = function() {
343
- l = n.leading === !1 ? 0 : Date.now(), r = null, o = e.apply(i, a), r || (i = a = null);
343
+ l = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
344
344
  };
345
345
  return function() {
346
- const u = Date.now();
347
- !l && n.leading === !1 && (l = u);
348
- const h = t - (u - l);
349
- return i = this, a = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), l = u, o = e.apply(i, a), r || (i = a = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, h)), o;
346
+ const c = Date.now();
347
+ !l && n.leading === !1 && (l = c);
348
+ const h = t - (c - l);
349
+ return i = this, o = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), l = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, h)), a;
350
350
  };
351
351
  }
352
352
  function H(e, ...t) {
353
353
  const n = Object(e);
354
354
  for (let i = 1; i < arguments.length; i++) {
355
- const a = arguments[i];
356
- if (a != null)
357
- for (const o in a)
358
- Object.prototype.hasOwnProperty.call(a, o) && (n[o] = a[o]);
355
+ const o = arguments[i];
356
+ if (o != null)
357
+ for (const a in o)
358
+ Object.prototype.hasOwnProperty.call(o, a) && (n[a] = o[a]);
359
359
  }
360
360
  return n;
361
361
  }
362
- function Rt(e) {
362
+ function Pt(e) {
363
363
  for (const t of e)
364
364
  switch (t.trigger) {
365
365
  case "pageLoad":
366
- _e(t);
366
+ qe(t);
367
367
  break;
368
368
  case "scrollInView":
369
- Vt(t);
369
+ Bt(t);
370
370
  break;
371
371
  }
372
372
  }
373
- function Le(e) {
373
+ function Ue(e) {
374
374
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
375
375
  }
376
- function Ue(e, t) {
377
- const n = Pt(e), i = getComputedStyle(t), a = e.steps[0].styles, o = e.steps[e.steps.length - 1].styles, r = [a, o];
376
+ function _e(e, t) {
377
+ const n = Vt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
378
378
  for (const l of r)
379
379
  for (const d of n)
380
380
  d in l || (l[d] = i[d]);
381
381
  }
382
- function Pt(e) {
382
+ function Vt(e) {
383
383
  const t = [];
384
384
  for (const n of e.steps)
385
385
  for (const i in n.styles)
386
386
  t.indexOf(i) === -1 && t.push(i);
387
387
  return t;
388
388
  }
389
- function _e(e) {
389
+ function qe(e) {
390
390
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
391
391
  if (!t.length) {
392
- Le(e.elementId || e.id || "");
392
+ Ue(e.elementId || e.id || "");
393
393
  return;
394
394
  }
395
395
  Array.from(t).forEach((n) => {
396
- Ue(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
396
+ _e(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
397
397
  n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
398
398
  n.style.transition = "", n.style.transitionDelay = "";
399
399
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
400
400
  });
401
401
  });
402
402
  }
403
- function Vt(e) {
403
+ function Bt(e) {
404
404
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
405
405
  if (!t.length) {
406
- Le(e.elementId || e.id || "");
406
+ Ue(e.elementId || e.id || "");
407
407
  return;
408
408
  }
409
409
  Array.from(t).forEach((n) => {
410
- Ue(e, n);
411
- let i = !1, a = !1;
412
- function o() {
413
- !i && l(n) ? (i = !0, a = !0, setTimeout(() => {
410
+ _e(e, n);
411
+ let i = !1, o = !1;
412
+ function a() {
413
+ !i && l(n) ? (i = !0, o = !0, setTimeout(() => {
414
414
  H(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
415
- a = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
415
+ o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
416
416
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
417
- })) : e.repeat && i && !a && !l(n) && (i = !1, H(n.style, e.steps[0].styles));
417
+ })) : e.repeat && i && !o && !l(n) && (i = !1, H(n.style, e.steps[0].styles));
418
418
  }
419
- const r = Et(o, 200, {
419
+ const r = Rt(a, 200, {
420
420
  leading: !1
421
421
  });
422
422
  function l(h) {
423
- const g = h.getBoundingClientRect(), c = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * c;
424
- return g.bottom > f && g.top < c - f;
423
+ const b = h.getBoundingClientRect(), m = window.innerHeight, u = (e.thresholdPercent || 0) / 100 * m;
424
+ return b.bottom > u && b.top < m - u;
425
425
  }
426
426
  const d = e.steps[0].styles;
427
- function u() {
427
+ function c() {
428
428
  H(n.style, d);
429
429
  }
430
- u(), setTimeout(() => {
430
+ c(), setTimeout(() => {
431
431
  n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
432
432
  }), document.addEventListener("scroll", r, {
433
433
  capture: !0,
434
434
  passive: !0
435
- }), o();
435
+ }), a();
436
436
  });
437
437
  }
438
- const qe = (e) => Object.entries(e).map(([n, i]) => {
438
+ const Me = (e) => Object.entries(e).map(([n, i]) => {
439
439
  if (typeof i == "string")
440
440
  return `${ee(n)}: ${i};`;
441
- }).filter(Q), Bt = (e) => qe(e).join(`
441
+ }).filter(Q), At = (e) => Me(e).join(`
442
442
  `), M = ({
443
443
  mediaQuery: e,
444
444
  className: t,
445
445
  styles: n
446
446
  }) => {
447
447
  const i = `.${t} {
448
- ${Bt(n)}
448
+ ${At(n)}
449
449
  }`;
450
450
  return e ? `${e} {
451
451
  ${i}
452
452
  }` : i;
453
453
  };
454
- function At({
454
+ function Nt({
455
455
  style: e
456
456
  }) {
457
457
  return e;
458
458
  }
459
- const Nt = ({
459
+ const Wt = ({
460
460
  block: e,
461
461
  context: t
462
- }) => Me(At({
462
+ }) => He(Nt({
463
463
  style: e.style || {},
464
464
  context: t,
465
465
  block: e
466
466
  }));
467
- function Me(e) {
467
+ function He(e) {
468
468
  switch (L) {
469
469
  case "svelte":
470
470
  case "vue":
471
471
  case "solid":
472
472
  case "angular":
473
- return qe(e).join(" ");
473
+ return Me(e).join(" ");
474
474
  case "qwik":
475
475
  case "reactNative":
476
476
  case "react":
@@ -478,24 +478,24 @@ function Me(e) {
478
478
  return e;
479
479
  }
480
480
  }
481
- const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Wt = ({
481
+ const je = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Dt = ({
482
482
  block: e,
483
483
  registeredComponents: t,
484
484
  model: n
485
485
  }) => {
486
- var o;
487
- const i = (o = e.component) == null ? void 0 : o.name;
486
+ var a;
487
+ const i = (a = e.component) == null ? void 0 : a.name;
488
488
  if (!i)
489
489
  return null;
490
- const a = t[i];
491
- if (!a || He(a, n)) {
490
+ const o = t[i];
491
+ if (!o || je(o, n)) {
492
492
  console.warn(`
493
493
  Could not find a registered component named "${i}".
494
494
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
495
495
  return;
496
496
  } else
497
- return a;
498
- }, Dt = ({
497
+ return o;
498
+ }, $t = ({
499
499
  block: e,
500
500
  context: t
501
501
  }) => {
@@ -505,50 +505,50 @@ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
505
505
  } = e;
506
506
  if (!(n != null && n.collection))
507
507
  return;
508
- const a = q({
508
+ const o = q({
509
509
  code: n.collection,
510
510
  localState: t.localState,
511
511
  rootState: t.rootState,
512
512
  rootSetState: t.rootSetState,
513
513
  context: t.context
514
514
  });
515
- if (!Array.isArray(a))
515
+ if (!Array.isArray(o))
516
516
  return;
517
- const o = n.collection.split(".").pop(), r = n.itemName || (o ? o + "Item" : "item");
518
- return a.map((d, u) => ({
517
+ const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
518
+ return o.map((d, c) => ({
519
519
  context: {
520
520
  ...t,
521
521
  localState: {
522
522
  ...t.localState,
523
- $index: u,
523
+ $index: c,
524
524
  $item: d,
525
525
  [r]: d,
526
- [`$${r}Index`]: u
526
+ [`$${r}Index`]: c
527
527
  }
528
528
  },
529
529
  block: i
530
530
  }));
531
- }, $t = (e, t) => {
531
+ }, Ft = (e, t) => {
532
532
  var n;
533
533
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
534
534
  builderLinkComponent: t
535
535
  } : {};
536
- }, Ft = (e, t, n) => {
536
+ }, Ot = (e, t, n) => {
537
537
  var i;
538
538
  return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
539
- builderComponents: Object.fromEntries(Object.entries(t).filter(([o, r]) => !He(r, n)))
539
+ builderComponents: Object.fromEntries(Object.entries(t).filter(([a, r]) => !je(r, n)))
540
540
  } : {};
541
- }, Ot = (e, t) => {
541
+ }, Lt = (e, t) => {
542
542
  var n;
543
543
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
544
544
  builderBlock: t
545
545
  } : {};
546
- }, Lt = (e, t) => {
546
+ }, Ut = (e, t) => {
547
547
  var n;
548
548
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
549
549
  builderContext: t
550
550
  } : {};
551
- }, je = {
551
+ }, Se = (e) => e.toString(), ze = {
552
552
  xsmall: {
553
553
  min: 0,
554
554
  default: 160,
@@ -569,14 +569,14 @@ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
569
569
  default: 991,
570
570
  max: 1200
571
571
  }
572
- }, ie = (e, t = je) => `@media (max-width: ${t[e].max}px)`, ze = (e) => {
573
- const t = me(je);
572
+ }, ie = (e, t = ze) => `@media (max-width: ${t[e].max}px)`, Ke = (e) => {
573
+ const t = me(ze);
574
574
  if (!e)
575
575
  return t;
576
576
  const {
577
577
  xsmall: n,
578
578
  small: i,
579
- medium: a
579
+ medium: o
580
580
  } = e;
581
581
  if (n) {
582
582
  const d = Math.floor(n / 2);
@@ -586,17 +586,17 @@ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
586
586
  default: d + 1
587
587
  };
588
588
  }
589
- if (!i || !a)
589
+ if (!i || !o)
590
590
  return t;
591
- const o = n ? t.xsmall.max + 1 : Math.floor(i / 2);
591
+ const a = n ? t.xsmall.max + 1 : Math.floor(i / 2);
592
592
  t.small = {
593
593
  max: i,
594
- min: o,
595
- default: o + 1
594
+ min: a,
595
+ default: a + 1
596
596
  };
597
597
  const r = t.small.max + 1;
598
598
  t.medium = {
599
- max: a,
599
+ max: o,
600
600
  min: r,
601
601
  default: r + 1
602
602
  };
@@ -618,38 +618,38 @@ function K(e) {
618
618
  }
619
619
  );
620
620
  }
621
- function Ut(e) {
621
+ function _t(e) {
622
622
  function t() {
623
623
  const i = e.block;
624
624
  return Q(i.hide) ? !i.hide : Q(i.show) ? i.show : !0;
625
625
  }
626
626
  function n() {
627
- var C, P, w, x, m;
628
- const i = e.block, a = i.responsiveStyles, o = e.context.content, r = ze(
629
- ((C = o == null ? void 0 : o.meta) == null ? void 0 : C.breakpoints) || {}
630
- ), l = !!((w = (P = o == null ? void 0 : o.meta) == null ? void 0 : P.breakpoints) != null && w.xsmall), d = a == null ? void 0 : a.large, u = a == null ? void 0 : a.medium, h = a == null ? void 0 : a.small, g = a == null ? void 0 : a.xsmall, c = i.id;
631
- if (!c)
627
+ var C, V, w, S, f;
628
+ const i = e.block, o = i.responsiveStyles, a = e.context.content, r = Ke(
629
+ ((C = a == null ? void 0 : a.meta) == null ? void 0 : C.breakpoints) || {}
630
+ ), l = !!((w = (V = a == null ? void 0 : a.meta) == null ? void 0 : V.breakpoints) != null && w.xsmall), d = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, h = o == null ? void 0 : o.small, b = o == null ? void 0 : o.xsmall, m = i.id;
631
+ if (!m)
632
632
  return "";
633
- const v = d ? M({
634
- className: c,
633
+ const x = d ? M({
634
+ className: m,
635
635
  styles: d
636
- }) : "", f = u ? M({
637
- className: c,
638
- styles: u,
636
+ }) : "", u = c ? M({
637
+ className: m,
638
+ styles: c,
639
639
  mediaQuery: ie(
640
640
  "medium",
641
641
  r
642
642
  )
643
- }) : "", b = h ? M({
644
- className: c,
643
+ }) : "", g = h ? M({
644
+ className: m,
645
645
  styles: h,
646
646
  mediaQuery: ie(
647
647
  "small",
648
648
  r
649
649
  )
650
- }) : "", S = g && l ? M({
651
- className: c,
652
- styles: g,
650
+ }) : "", v = b && l ? M({
651
+ className: m,
652
+ styles: b,
653
653
  mediaQuery: ie(
654
654
  "xsmall",
655
655
  r
@@ -657,9 +657,9 @@ function Ut(e) {
657
657
  }) : "", p = i.animations && i.animations.find((y) => y.trigger === "hover");
658
658
  let k = "";
659
659
  if (p) {
660
- const y = ((m = (x = p.steps) == null ? void 0 : x[1]) == null ? void 0 : m.styles) || {};
660
+ const y = ((f = (S = p.steps) == null ? void 0 : S[1]) == null ? void 0 : f.styles) || {};
661
661
  k = M({
662
- className: `${c}:hover`,
662
+ className: `${m}:hover`,
663
663
  styles: {
664
664
  ...y,
665
665
  transition: `all ${p.duration}s ${ee(
@@ -670,14 +670,14 @@ function Ut(e) {
670
670
  }) || "";
671
671
  }
672
672
  return [
673
+ x,
674
+ u,
675
+ g,
673
676
  v,
674
- f,
675
- b,
676
- S,
677
677
  k
678
678
  ].join(" ");
679
679
  }
680
- return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
680
+ return /* @__PURE__ */ s(P, { children: n() && t() ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
681
681
  K,
682
682
  {
683
683
  id: "builderio-block",
@@ -686,10 +686,10 @@ function Ut(e) {
686
686
  }
687
687
  ) }) : null });
688
688
  }
689
- function _t(e) {
689
+ function qt(e) {
690
690
  return e.charAt(0).toUpperCase() + e.slice(1);
691
691
  }
692
- const qt = (e) => `on${_t(e)}`, Mt = (e, t) => (n) => q({
692
+ const Mt = (e) => `on${qt(e)}`, Ht = (e, t) => (n) => q({
693
693
  code: e,
694
694
  context: t.context,
695
695
  localState: t.localState,
@@ -698,14 +698,14 @@ const qt = (e) => `on${_t(e)}`, Mt = (e, t) => (n) => q({
698
698
  event: n,
699
699
  isExpression: !1
700
700
  });
701
- function Ke(e) {
701
+ function Je(e) {
702
702
  var i;
703
703
  const t = {}, n = (i = e.block.actions) != null ? i : {};
704
- for (const a in n) {
705
- if (!n.hasOwnProperty(a))
704
+ for (const o in n) {
705
+ if (!n.hasOwnProperty(o))
706
706
  continue;
707
- const o = n[a];
708
- let r = qt(a);
707
+ const a = n[o];
708
+ let r = Mt(o);
709
709
  if (e.stripPrefix)
710
710
  switch (L) {
711
711
  case "vue":
@@ -715,16 +715,16 @@ function Ke(e) {
715
715
  r = r.replace("on:", "");
716
716
  break;
717
717
  }
718
- t[r] = Mt(o, e);
718
+ t[r] = Ht(a, e);
719
719
  }
720
720
  return t;
721
721
  }
722
- function Ht({
722
+ function jt({
723
723
  properties: e
724
724
  }) {
725
725
  return e;
726
726
  }
727
- const jt = (e) => ({
727
+ const zt = (e) => ({
728
728
  href: e.href
729
729
  });
730
730
  function fe({
@@ -733,22 +733,22 @@ function fe({
733
733
  }) {
734
734
  var i;
735
735
  const n = {
736
- ...jt(e),
736
+ ...zt(e),
737
737
  ...e.properties,
738
738
  "builder-id": e.id,
739
- style: Nt({
739
+ style: Wt({
740
740
  block: e,
741
741
  context: t
742
742
  }),
743
743
  [z()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
744
744
  };
745
- return Ht({
745
+ return jt({
746
746
  properties: n,
747
747
  context: t,
748
748
  block: e
749
749
  });
750
750
  }
751
- function zt(e) {
751
+ function Kt(e) {
752
752
  return /* @__PURE__ */ s(
753
753
  ue,
754
754
  {
@@ -757,7 +757,7 @@ function zt(e) {
757
757
  block: e.block,
758
758
  context: e.context
759
759
  }),
760
- actionAttributes: Ke({
760
+ actionAttributes: Je({
761
761
  block: e.block,
762
762
  rootState: e.context.rootState,
763
763
  rootSetState: e.context.rootSetState,
@@ -769,18 +769,20 @@ function zt(e) {
769
769
  }
770
770
  );
771
771
  }
772
- function Kt(e) {
773
- return V(() => {
774
- }, []), /* @__PURE__ */ s(R, { children: e.children });
775
- }
776
772
  function Jt(e) {
773
+ return R(() => {
774
+ }, []), /* @__PURE__ */ s(P, { children: e.children });
775
+ }
776
+ function Gt(e) {
777
+ var i, o;
778
+ I(() => 0);
777
779
  function t() {
778
780
  return e.includeBlockProps ? {
779
781
  ...fe({
780
782
  block: e.block,
781
783
  context: e.context
782
784
  }),
783
- ...Ke({
785
+ ...Je({
784
786
  block: e.block,
785
787
  rootState: e.context.rootState,
786
788
  rootSetState: e.context.rootSetState,
@@ -789,8 +791,12 @@ function Jt(e) {
789
791
  })
790
792
  } : {};
791
793
  }
792
- return /* @__PURE__ */ s(R, { children: e.Wrapper.load ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
793
- Kt,
794
+ function n() {
795
+ return e.wrapperProps;
796
+ }
797
+ return R(() => {
798
+ }, [e.wrapperProps, (o = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : o.options]), /* @__PURE__ */ s(P, { children: e.Wrapper.load ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
799
+ Jt,
794
800
  {
795
801
  load: e.Wrapper.load,
796
802
  fallback: e.Wrapper.fallback,
@@ -798,15 +804,15 @@ function Jt(e) {
798
804
  attributes: t(),
799
805
  children: e.children
800
806
  }
801
- ) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
807
+ ) }) : /* @__PURE__ */ s(e.Wrapper, { ...n(), attributes: t(), children: e.children }) });
802
808
  }
803
- const Gt = ({
809
+ const Qt = ({
804
810
  componentOptions: e,
805
811
  builderBlock: t,
806
812
  context: n,
807
813
  componentRef: i,
808
- includeBlockProps: a,
809
- isInteractive: o,
814
+ includeBlockProps: o,
815
+ isInteractive: a,
810
816
  contextValue: r
811
817
  }) => {
812
818
  const l = {
@@ -815,32 +821,32 @@ const Gt = ({
815
821
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
816
822
  * component itself directly. Otherwise, they are provided to the wrapper element.
817
823
  */
818
- ...a ? {
824
+ ...o ? {
819
825
  attributes: fe({
820
826
  block: t,
821
827
  context: r
822
828
  })
823
829
  } : {}
824
830
  };
825
- return o ? {
831
+ return a ? {
826
832
  Wrapper: i,
827
833
  block: t,
828
834
  context: n,
829
835
  wrapperProps: e,
830
- includeBlockProps: a
836
+ includeBlockProps: o
831
837
  } : l;
832
838
  };
833
- function Se(e) {
839
+ function ke(e) {
834
840
  var i;
835
841
  I(() => !1);
836
842
  const [t, n] = I(
837
- () => e.isInteractive ? Jt : e.componentRef
843
+ () => e.isInteractive ? Gt : e.componentRef
838
844
  );
839
- return V(() => {
840
- }, [e.componentOptions, e.blockChildren]), /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
845
+ return R(() => {
846
+ }, [e.componentOptions, e.blockChildren]), /* @__PURE__ */ s(P, { children: e.componentRef ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
841
847
  t,
842
848
  {
843
- ...Gt({
849
+ ...Qt({
844
850
  componentOptions: e.componentOptions,
845
851
  builderBlock: e.builderBlock,
846
852
  context: e.context,
@@ -850,22 +856,24 @@ function Se(e) {
850
856
  isInteractive: e.isInteractive,
851
857
  contextValue: e.context
852
858
  }),
853
- children: (i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ s(
859
+ children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
854
860
  te,
855
861
  {
856
- block: a,
862
+ block: o,
857
863
  context: e.context,
858
864
  registeredComponents: e.registeredComponents,
859
865
  linkComponent: e.linkComponent
860
866
  },
861
- a.id
867
+ o.id
862
868
  ))
863
869
  }
864
870
  ) }) : null });
865
871
  }
866
- function ke(e) {
872
+ function Ce(e) {
867
873
  const [t, n] = I(() => e.repeatContext);
868
- return /* @__PURE__ */ s(de.Provider, { value: t, children: /* @__PURE__ */ s(
874
+ return R(() => {
875
+ n(e.repeatContext);
876
+ }, [e.repeatContext]), /* @__PURE__ */ s(de.Provider, { value: t, children: /* @__PURE__ */ s(
869
877
  te,
870
878
  {
871
879
  block: e.block,
@@ -876,9 +884,9 @@ function ke(e) {
876
884
  ) });
877
885
  }
878
886
  function te(e) {
879
- var h, g, c, v;
887
+ var h, b, m, x;
880
888
  function t() {
881
- return Dt({
889
+ return $t({
882
890
  block: e.block,
883
891
  context: e.context
884
892
  });
@@ -887,53 +895,53 @@ function te(e) {
887
895
  value: null,
888
896
  update: !1
889
897
  }));
890
- function a() {
891
- var b;
898
+ function o() {
899
+ var g;
892
900
  if (n.value && !n.update && !Z())
893
901
  return n.value;
894
- const f = (b = e.block.repeat) != null && b.collection ? e.block : It({
902
+ const u = (g = e.block.repeat) != null && g.collection ? e.block : Et({
895
903
  block: e.block,
896
904
  localState: e.context.localState,
897
905
  rootState: e.context.rootState,
898
906
  rootSetState: e.context.rootSetState,
899
907
  context: e.context.context
900
908
  });
901
- return n.value = f, n.update = !1, f;
909
+ return n.value = u, n.update = !1, u;
902
910
  }
903
- function o() {
904
- return Wt({
905
- block: a(),
911
+ function a() {
912
+ return Dt({
913
+ block: o(),
906
914
  registeredComponents: e.registeredComponents,
907
915
  model: e.context.model
908
916
  });
909
917
  }
910
918
  function r() {
911
- var b;
912
- return e.block.tagName === "a" || ((b = a().properties) == null ? void 0 : b.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
919
+ var g;
920
+ return e.block.tagName === "a" || ((g = o().properties) == null ? void 0 : g.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
913
921
  }
914
922
  function l() {
915
- var S, p;
916
- if ((S = e.block.repeat) != null && S.collection)
923
+ var v, p;
924
+ if ((v = e.block.repeat) != null && v.collection)
917
925
  return !!((p = t == null ? void 0 : t()) != null && p.length);
918
- const f = "hide" in a() ? a().hide : !1;
919
- return ("show" in a() ? a().show : !0) && !f;
926
+ const u = "hide" in o() ? o().hide : !1;
927
+ return ("show" in o() ? o().show : !0) && !u;
920
928
  }
921
929
  function d() {
922
- var b, S;
923
- return !((b = o == null ? void 0 : o()) != null && b.component) && !t() ? (S = a().children) != null ? S : [] : [];
930
+ var g, v;
931
+ return !((g = a == null ? void 0 : a()) != null && g.component) && !t() ? (v = o().children) != null ? v : [] : [];
924
932
  }
925
- function u() {
926
- var f, b, S, p;
933
+ function c() {
934
+ var u, g, v, p;
927
935
  return {
928
- blockChildren: (f = a().children) != null ? f : [],
929
- componentRef: (b = o == null ? void 0 : o()) == null ? void 0 : b.component,
936
+ blockChildren: (u = o().children) != null ? u : [],
937
+ componentRef: (g = a == null ? void 0 : a()) == null ? void 0 : g.component,
930
938
  componentOptions: {
931
- ...pt(a(), e.context),
932
- ...Ot(o(), a()),
933
- ...Lt(o(), e.context),
934
- ...$t(o(), e.linkComponent),
935
- ...Ft(
936
- o(),
939
+ ...yt(o(), e.context),
940
+ ...Lt(a(), o()),
941
+ ...Ut(a(), e.context),
942
+ ...Ft(a(), e.linkComponent),
943
+ ...Ot(
944
+ a(),
937
945
  e.registeredComponents,
938
946
  e.context.model
939
947
  )
@@ -941,91 +949,91 @@ function te(e) {
941
949
  context: e.context,
942
950
  linkComponent: e.linkComponent,
943
951
  registeredComponents: e.registeredComponents,
944
- builderBlock: a(),
945
- includeBlockProps: ((S = o == null ? void 0 : o()) == null ? void 0 : S.noWrap) === !0,
946
- isInteractive: !((p = o == null ? void 0 : o()) != null && p.isRSC && L === "rsc")
952
+ builderBlock: o(),
953
+ includeBlockProps: ((v = a == null ? void 0 : a()) == null ? void 0 : v.noWrap) === !0,
954
+ isInteractive: !((p = a == null ? void 0 : a()) != null && p.isRSC && L === "rsc")
947
955
  };
948
956
  }
949
- return V(() => {
950
- const f = a().id, b = a().animations;
951
- b && f && Rt(
952
- b.map((S) => ({
953
- ...S,
954
- elementId: f
957
+ return R(() => {
958
+ const u = o().id, g = o().animations;
959
+ g && u && Pt(
960
+ g.map((v) => ({
961
+ ...v,
962
+ elementId: u
955
963
  }))
956
964
  );
957
- }, []), V(() => {
965
+ }, []), R(() => {
958
966
  n.update = !0;
959
- }), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ B(R, { children: [
960
- /* @__PURE__ */ s(Ut, { block: a(), context: e.context }),
961
- (h = o == null ? void 0 : o()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((f, b) => /* @__PURE__ */ s(
962
- ke,
967
+ }), /* @__PURE__ */ s(P, { children: l() ? /* @__PURE__ */ B(P, { children: [
968
+ /* @__PURE__ */ s(_t, { block: o(), context: e.context }),
969
+ (h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(P, { children: (x = t()) == null ? void 0 : x.map((u, g) => /* @__PURE__ */ s(
970
+ Ce,
963
971
  {
964
- repeatContext: f.context,
965
- block: f.block,
972
+ repeatContext: u.context,
973
+ block: u.block,
966
974
  registeredComponents: e.registeredComponents,
967
975
  linkComponent: e.linkComponent
968
976
  },
969
- b
977
+ Se(g)
970
978
  )) }) : /* @__PURE__ */ s(
971
- Se,
979
+ ke,
972
980
  {
973
- componentRef: u().componentRef,
974
- componentOptions: u().componentOptions,
975
- blockChildren: u().blockChildren,
976
- context: u().context,
977
- registeredComponents: u().registeredComponents,
978
- linkComponent: u().linkComponent,
979
- builderBlock: u().builderBlock,
980
- includeBlockProps: u().includeBlockProps,
981
- isInteractive: u().isInteractive
981
+ componentRef: c().componentRef,
982
+ componentOptions: c().componentOptions,
983
+ blockChildren: c().blockChildren,
984
+ context: c().context,
985
+ registeredComponents: c().registeredComponents,
986
+ linkComponent: c().linkComponent,
987
+ builderBlock: c().builderBlock,
988
+ includeBlockProps: c().includeBlockProps,
989
+ isInteractive: c().isInteractive
982
990
  }
983
- ) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (c = t()) == null ? void 0 : c.map((f, b) => /* @__PURE__ */ s(
984
- ke,
991
+ ) : /* @__PURE__ */ s(P, { children: t() ? /* @__PURE__ */ s(P, { children: (m = t()) == null ? void 0 : m.map((u, g) => /* @__PURE__ */ s(
992
+ Ce,
985
993
  {
986
- repeatContext: f.context,
987
- block: f.block,
994
+ repeatContext: u.context,
995
+ block: u.block,
988
996
  registeredComponents: e.registeredComponents,
989
997
  linkComponent: e.linkComponent
990
998
  },
991
- b
999
+ Se(g)
992
1000
  )) }) : /* @__PURE__ */ B(
993
- zt,
1001
+ Kt,
994
1002
  {
995
1003
  Wrapper: r(),
996
- block: a(),
1004
+ block: o(),
997
1005
  context: e.context,
998
1006
  children: [
999
1007
  /* @__PURE__ */ s(
1000
- Se,
1008
+ ke,
1001
1009
  {
1002
- componentRef: u().componentRef,
1003
- componentOptions: u().componentOptions,
1004
- blockChildren: u().blockChildren,
1005
- context: u().context,
1006
- registeredComponents: u().registeredComponents,
1007
- linkComponent: u().linkComponent,
1008
- builderBlock: u().builderBlock,
1009
- includeBlockProps: u().includeBlockProps,
1010
- isInteractive: u().isInteractive
1010
+ componentRef: c().componentRef,
1011
+ componentOptions: c().componentOptions,
1012
+ blockChildren: c().blockChildren,
1013
+ context: c().context,
1014
+ registeredComponents: c().registeredComponents,
1015
+ linkComponent: c().linkComponent,
1016
+ builderBlock: c().builderBlock,
1017
+ includeBlockProps: c().includeBlockProps,
1018
+ isInteractive: c().isInteractive
1011
1019
  }
1012
1020
  ),
1013
- (g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */ s(
1021
+ (b = d()) == null ? void 0 : b.map((u) => /* @__PURE__ */ s(
1014
1022
  te,
1015
1023
  {
1016
- block: f,
1024
+ block: u,
1017
1025
  registeredComponents: e.registeredComponents,
1018
1026
  linkComponent: e.linkComponent,
1019
1027
  context: e.context
1020
1028
  },
1021
- f.id
1029
+ u.id
1022
1030
  ))
1023
1031
  ]
1024
1032
  }
1025
1033
  ) })
1026
1034
  ] }) : null });
1027
1035
  }
1028
- function Qt(e) {
1036
+ function Yt(e) {
1029
1037
  const t = O(null);
1030
1038
  I(() => !1);
1031
1039
  function n() {
@@ -1042,7 +1050,7 @@ function Qt(e) {
1042
1050
  const r = "this.", l = "component.options.";
1043
1051
  return e.path.startsWith(r) ? e.path.replace(r, "") : e.path.startsWith(l) ? e.path : `${l}${e.path || ""}`;
1044
1052
  }
1045
- function a() {
1053
+ function o() {
1046
1054
  var r, l;
1047
1055
  A() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
1048
1056
  {
@@ -1055,7 +1063,7 @@ function Qt(e) {
1055
1063
  "*"
1056
1064
  ));
1057
1065
  }
1058
- function o() {
1066
+ function a() {
1059
1067
  var r, l;
1060
1068
  A() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
1061
1069
  {
@@ -1068,9 +1076,9 @@ function Qt(e) {
1068
1076
  "*"
1069
1077
  ));
1070
1078
  }
1071
- return V(() => {
1072
- }, []), V(() => {
1073
- }, [e.blocks]), /* @__PURE__ */ B(R, { children: [
1079
+ return R(() => {
1080
+ }, []), R(() => {
1081
+ }, [e.blocks]), /* @__PURE__ */ B(P, { children: [
1074
1082
  /* @__PURE__ */ s(
1075
1083
  e.BlocksWrapper,
1076
1084
  {
@@ -1079,9 +1087,9 @@ function Qt(e) {
1079
1087
  "builder-path": i(),
1080
1088
  "builder-parent-id": e.parent,
1081
1089
  style: e.styleProp,
1082
- onClick: (r) => a(),
1083
- onMouseEnter: (r) => o(),
1084
- onKeyPress: (r) => a(),
1090
+ onClick: (r) => o(),
1091
+ onMouseEnter: (r) => a(),
1092
+ onKeyPress: (r) => o(),
1085
1093
  ...e.BlocksWrapperProps,
1086
1094
  children: e.children
1087
1095
  }
@@ -1094,10 +1102,10 @@ function Qt(e) {
1094
1102
  ] });
1095
1103
  }
1096
1104
  function $(e) {
1097
- var i, a, o;
1098
- const t = ve(de), n = ve(We);
1105
+ var i, o, a;
1106
+ const t = ve(de), n = ve(De);
1099
1107
  return /* @__PURE__ */ s(
1100
- Qt,
1108
+ Yt,
1101
1109
  {
1102
1110
  blocks: e.blocks,
1103
1111
  parent: e.parent,
@@ -1105,8 +1113,8 @@ function $(e) {
1105
1113
  styleProp: e.styleProp,
1106
1114
  classNameProp: e.className,
1107
1115
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
1108
- BlocksWrapperProps: ((a = e.context) == null ? void 0 : a.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
1109
- children: e.blocks ? /* @__PURE__ */ s(R, { children: (o = e.blocks) == null ? void 0 : o.map((r) => /* @__PURE__ */ s(
1116
+ BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
1117
+ children: e.blocks ? /* @__PURE__ */ s(P, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ s(
1110
1118
  te,
1111
1119
  {
1112
1120
  block: r,
@@ -1119,9 +1127,9 @@ function $(e) {
1119
1127
  }
1120
1128
  );
1121
1129
  }
1122
- const Yt = (e) => `builder-columns ${e}-breakpoints`;
1123
- function Xt(e) {
1124
- var b, S;
1130
+ const Xt = (e) => `builder-columns ${e}-breakpoints`;
1131
+ function Zt(e) {
1132
+ var g, v;
1125
1133
  function t() {
1126
1134
  return typeof e.space == "number" ? e.space || 0 : 20;
1127
1135
  }
@@ -1131,15 +1139,15 @@ function Xt(e) {
1131
1139
  function i() {
1132
1140
  return e.stackColumnsAt || "tablet";
1133
1141
  }
1134
- function a(p) {
1142
+ function o(p) {
1135
1143
  return p.link ? e.builderLinkComponent || "a" : "div";
1136
1144
  }
1137
- function o(p) {
1145
+ function a(p) {
1138
1146
  var k;
1139
1147
  return ((k = n()[p]) == null ? void 0 : k.width) || 100 / n().length;
1140
1148
  }
1141
1149
  function r(p) {
1142
- const k = o(p), C = t() * (n().length - 1) * (k / 100);
1150
+ const k = a(p), C = t() * (n().length - 1) * (k / 100);
1143
1151
  return `calc(${k}% - ${C}px)`;
1144
1152
  }
1145
1153
  function l({
@@ -1154,20 +1162,20 @@ function Xt(e) {
1154
1162
  }) {
1155
1163
  return i() === "never" ? k : p;
1156
1164
  }
1157
- function u() {
1165
+ function c() {
1158
1166
  return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
1159
1167
  }
1160
1168
  function h() {
1161
1169
  return {
1162
- "--flex-dir": u(),
1170
+ "--flex-dir": c(),
1163
1171
  "--flex-dir-tablet": l({
1164
- stackedStyle: u(),
1172
+ stackedStyle: c(),
1165
1173
  desktopStyle: "row"
1166
1174
  })
1167
1175
  };
1168
1176
  }
1169
- function g(p) {
1170
- const k = p === 0 ? 0 : t(), C = r(p), P = `${k}px`, w = "100%", x = 0;
1177
+ function b(p) {
1178
+ const k = p === 0 ? 0 : t(), C = r(p), V = `${k}px`, w = "100%", S = 0;
1171
1179
  return {
1172
1180
  ...{
1173
1181
  display: "flex",
@@ -1175,35 +1183,35 @@ function Xt(e) {
1175
1183
  alignItems: "stretch"
1176
1184
  },
1177
1185
  width: C,
1178
- ["marginLeft"]: P,
1186
+ ["marginLeft"]: V,
1179
1187
  "--column-width-mobile": d({
1180
1188
  stackedStyle: w,
1181
1189
  desktopStyle: C
1182
1190
  }),
1183
1191
  "--column-margin-left-mobile": d({
1184
- stackedStyle: x,
1185
- desktopStyle: P
1192
+ stackedStyle: S,
1193
+ desktopStyle: V
1186
1194
  }),
1187
1195
  "--column-width-tablet": l({
1188
1196
  stackedStyle: w,
1189
1197
  desktopStyle: C
1190
1198
  }),
1191
1199
  "--column-margin-left-tablet": l({
1192
- stackedStyle: x,
1193
- desktopStyle: P
1200
+ stackedStyle: S,
1201
+ desktopStyle: V
1194
1202
  })
1195
1203
  };
1196
1204
  }
1197
- function c(p) {
1198
- var C, P;
1199
- return ze(
1200
- ((P = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : P.breakpoints) || {}
1205
+ function m(p) {
1206
+ var C, V;
1207
+ return Ke(
1208
+ ((V = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : V.breakpoints) || {}
1201
1209
  )[p].max;
1202
1210
  }
1203
- function v() {
1211
+ function x() {
1204
1212
  const p = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1205
1213
  return `
1206
- @media (max-width: ${c("medium")}px) {
1214
+ @media (max-width: ${m("medium")}px) {
1207
1215
  .${e.builderBlock.id}-breakpoints {
1208
1216
  flex-direction: var(--flex-dir-tablet);
1209
1217
  align-items: stretch;
@@ -1215,7 +1223,7 @@ function Xt(e) {
1215
1223
  }
1216
1224
  }
1217
1225
 
1218
- @media (max-width: ${c("small")}px) {
1226
+ @media (max-width: ${m("small")}px) {
1219
1227
  .${e.builderBlock.id}-breakpoints {
1220
1228
  flex-direction: var(--flex-dir);
1221
1229
  align-items: stretch;
@@ -1228,36 +1236,36 @@ function Xt(e) {
1228
1236
  },
1229
1237
  `;
1230
1238
  }
1231
- function f(p, k) {
1239
+ function u(p, k) {
1232
1240
  return {
1233
1241
  ...p.link ? {
1234
1242
  href: p.link
1235
1243
  } : {},
1236
1244
  [z()]: "builder-column",
1237
- style: Me(g(k))
1245
+ style: He(b(k))
1238
1246
  };
1239
1247
  }
1240
- return /* @__PURE__ */ B(R, { children: [
1248
+ return /* @__PURE__ */ B(P, { children: [
1241
1249
  /* @__PURE__ */ B(
1242
1250
  "div",
1243
1251
  {
1244
- className: Yt((b = e.builderBlock) == null ? void 0 : b.id) + " div-0369db37",
1252
+ className: Xt((g = e.builderBlock) == null ? void 0 : g.id) + " div-0369db37",
1245
1253
  style: h(),
1246
1254
  children: [
1247
1255
  /* @__PURE__ */ s(
1248
1256
  K,
1249
1257
  {
1250
1258
  id: "builderio-columns",
1251
- styles: v(),
1259
+ styles: x(),
1252
1260
  nonce: e.builderContext.nonce
1253
1261
  }
1254
1262
  ),
1255
- (S = e.columns) == null ? void 0 : S.map((p, k) => /* @__PURE__ */ s(
1263
+ (v = e.columns) == null ? void 0 : v.map((p, k) => /* @__PURE__ */ s(
1256
1264
  ue,
1257
1265
  {
1258
- TagName: a(p),
1266
+ TagName: o(p),
1259
1267
  actionAttributes: {},
1260
- attributes: f(p, k),
1268
+ attributes: u(p, k),
1261
1269
  children: /* @__PURE__ */ s(
1262
1270
  $,
1263
1271
  {
@@ -1285,55 +1293,55 @@ function Xt(e) {
1285
1293
  }` })
1286
1294
  ] });
1287
1295
  }
1288
- function Zt(e) {
1296
+ function en(e) {
1289
1297
  return /* @__PURE__ */ s("span", { children: e.children });
1290
1298
  }
1291
- function Ce(e) {
1299
+ function Te(e) {
1292
1300
  return e.replace(/http(s)?:/, "");
1293
1301
  }
1294
- function en(e = "", t, n) {
1295
- const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), a = e.indexOf("?") !== -1 ? "&" : "?";
1296
- return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + a + t + "=" + encodeURIComponent(n);
1302
+ function tn(e = "", t, n) {
1303
+ const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1304
+ return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1297
1305
  }
1298
- function tn(e, t) {
1306
+ function nn(e, t) {
1299
1307
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1300
1308
  return e;
1301
1309
  if (t === "master")
1302
- return Ce(e);
1310
+ return Te(e);
1303
1311
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1304
1312
  if (n) {
1305
- const i = e.split(n[0]), a = n[3], o = t.match("x") ? t : `${t}x`;
1306
- return Ce(`${i[0]}_${o}${a}`);
1313
+ const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
1314
+ return Te(`${i[0]}_${a}${o}`);
1307
1315
  }
1308
1316
  return null;
1309
1317
  }
1310
- function ae(e) {
1318
+ function oe(e) {
1311
1319
  if (!e)
1312
1320
  return e;
1313
1321
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1314
1322
  if (e.match(/builder\.io/)) {
1315
1323
  let n = e;
1316
1324
  const i = Number(e.split("?width=")[1]);
1317
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${en(e, "width", a)} ${a}w`).concat([n]).join(", ");
1325
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${tn(e, "width", o)} ${o}w`).concat([n]).join(", ");
1318
1326
  }
1319
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [tn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1327
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [nn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1320
1328
  }
1321
- function nn(e) {
1322
- var a, o, r, l, d, u;
1329
+ function on(e) {
1330
+ var o, a, r, l, d, c;
1323
1331
  function t() {
1324
- var c;
1325
- const g = e.image || e.src;
1326
- if (!g || // We can auto add srcset for cdn.builder.io and shopify
1332
+ var m;
1333
+ const b = e.image || e.src;
1334
+ if (!b || // We can auto add srcset for cdn.builder.io and shopify
1327
1335
  // images, otherwise you can supply this prop manually
1328
- !(typeof g == "string" && (g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/))))
1336
+ !(typeof b == "string" && (b.match(/builder\.io/) || b.match(/cdn\.shopify\.com/))))
1329
1337
  return e.srcset;
1330
1338
  if (!e.noWebp) {
1331
- if (e.srcset && ((c = e.image) != null && c.includes("builder.io/api/v1/image"))) {
1339
+ if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1332
1340
  if (!e.srcset.includes(e.image.split("?")[0]))
1333
- return console.debug("Removed given srcset"), ae(g);
1341
+ return console.debug("Removed given srcset"), oe(b);
1334
1342
  } else if (e.image && !e.srcset)
1335
- return ae(g);
1336
- return ae(g);
1343
+ return oe(b);
1344
+ return oe(b);
1337
1345
  }
1338
1346
  }
1339
1347
  function n() {
@@ -1350,8 +1358,9 @@ function nn(e) {
1350
1358
  };
1351
1359
  return e.aspectRatio ? h : void 0;
1352
1360
  }
1353
- return /* @__PURE__ */ B(R, { children: [
1354
- /* @__PURE__ */ B(R, { children: [
1361
+ return R(() => {
1362
+ }, []), /* @__PURE__ */ B(P, { children: [
1363
+ /* @__PURE__ */ B(P, { children: [
1355
1364
  /* @__PURE__ */ B("picture", { children: [
1356
1365
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1357
1366
  /* @__PURE__ */ s(
@@ -1367,33 +1376,33 @@ function nn(e) {
1367
1376
  objectFit: e.backgroundSize || "cover",
1368
1377
  ...i()
1369
1378
  },
1370
- className: "builder-image" + (e.className ? " " + e.className : "") + " img-1aa8aba3",
1379
+ className: "builder-image" + (e.className ? " " + e.className : "") + " img-3cc22d08",
1371
1380
  src: e.image,
1372
1381
  srcSet: t(),
1373
1382
  sizes: e.sizes
1374
1383
  }
1375
1384
  )
1376
1385
  ] }),
1377
- e.aspectRatio && !((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length && e.fitContent) ? /* @__PURE__ */ s(
1386
+ e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ s(
1378
1387
  "div",
1379
1388
  {
1380
- className: "builder-image-sizer div-1aa8aba3",
1389
+ className: "builder-image-sizer div-3cc22d08",
1381
1390
  style: {
1382
1391
  paddingTop: e.aspectRatio * 100 + "%"
1383
1392
  }
1384
1393
  }
1385
1394
  ) : null,
1386
- (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
1387
- !e.fitContent && ((u = (d = e.builderBlock) == null ? void 0 : d.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-1aa8aba3-2", children: e.children }) : null
1395
+ (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(P, { children: e.children }) : null,
1396
+ !e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-3cc22d08-2", children: e.children }) : null
1388
1397
  ] }),
1389
- /* @__PURE__ */ s("style", { children: `.img-1aa8aba3 {
1398
+ /* @__PURE__ */ s("style", { children: `.img-3cc22d08 {
1390
1399
  opacity: 1;
1391
1400
  transition: opacity 0.2s ease-in-out;
1392
- }.div-1aa8aba3 {
1401
+ }.div-3cc22d08 {
1393
1402
  width: 100%;
1394
1403
  pointer-events: none;
1395
1404
  font-size: 0;
1396
- }.div-1aa8aba3-2 {
1405
+ }.div-3cc22d08-2 {
1397
1406
  display: flex;
1398
1407
  flex-direction: column;
1399
1408
  align-items: stretch;
@@ -1426,7 +1435,7 @@ function an(e) {
1426
1435
  }
1427
1436
  );
1428
1437
  }
1429
- const oe = {
1438
+ const ae = {
1430
1439
  "@type": "@builder.io/sdk:Element",
1431
1440
  layerName: "Accordion item title",
1432
1441
  responsiveStyles: {
@@ -1486,7 +1495,7 @@ const oe = {
1486
1495
  }
1487
1496
  }
1488
1497
  }]
1489
- }, on = {
1498
+ }, rn = {
1490
1499
  name: "Builder:Accordion",
1491
1500
  canHaveChildren: !0,
1492
1501
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1503,7 +1512,7 @@ const oe = {
1503
1512
  name: "title",
1504
1513
  type: "uiBlocks",
1505
1514
  hideFromUI: !0,
1506
- defaultValue: [oe]
1515
+ defaultValue: [ae]
1507
1516
  }, {
1508
1517
  name: "detail",
1509
1518
  type: "uiBlocks",
@@ -1511,10 +1520,10 @@ const oe = {
1511
1520
  defaultValue: [re]
1512
1521
  }],
1513
1522
  defaultValue: [{
1514
- title: [oe],
1523
+ title: [ae],
1515
1524
  detail: [re]
1516
1525
  }, {
1517
- title: [oe],
1526
+ title: [ae],
1518
1527
  detail: [re]
1519
1528
  }],
1520
1529
  showIf: (e) => !e.get("useChildrenForItems")
@@ -1550,14 +1559,14 @@ const oe = {
1550
1559
  builderComponents: !0,
1551
1560
  builderLinkComponent: !0
1552
1561
  }
1553
- }, Te = (e) => e.toString();
1554
- function rn(e) {
1555
- var g;
1562
+ }, we = (e) => e.toString();
1563
+ function ln(e) {
1564
+ var b;
1556
1565
  const [t, n] = I(() => []);
1557
1566
  function i() {
1558
1567
  return !!(e.grid || e.oneAtATime);
1559
1568
  }
1560
- function a() {
1569
+ function o() {
1561
1570
  return {
1562
1571
  display: "flex",
1563
1572
  alignItems: "stretch",
@@ -1569,8 +1578,8 @@ function rn(e) {
1569
1578
  }
1570
1579
  };
1571
1580
  }
1572
- function o() {
1573
- const v = {
1581
+ function a() {
1582
+ const x = {
1574
1583
  ...{
1575
1584
  display: "flex",
1576
1585
  flexDirection: "column"
@@ -1579,75 +1588,75 @@ function rn(e) {
1579
1588
  cursor: "pointer"
1580
1589
  };
1581
1590
  return Object.fromEntries(
1582
- Object.entries(v).filter(([f, b]) => b !== void 0)
1591
+ Object.entries(x).filter(([u, g]) => g !== void 0)
1583
1592
  );
1584
1593
  }
1585
- function r(c) {
1586
- return `builder-accordion-title builder-accordion-title-${t.includes(c) ? "open" : "closed"}`;
1594
+ function r(m) {
1595
+ return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
1587
1596
  }
1588
- function l(c) {
1589
- return `builder-accordion-detail builder-accordion-detail-${t.includes(c) ? "open" : "closed"}`;
1597
+ function l(m) {
1598
+ return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
1590
1599
  }
1591
1600
  function d() {
1592
- let c = null;
1601
+ let m = null;
1593
1602
  if (e.grid && t.length && document) {
1594
- const f = t[0];
1595
- let S = document.querySelector(
1596
- `.builder-accordion-title[data-index="${f}"]`
1603
+ const u = t[0];
1604
+ let v = document.querySelector(
1605
+ `.builder-accordion-title[data-index="${u}"]`
1597
1606
  );
1598
- if (c = f, S) {
1599
- let p = S.getBoundingClientRect();
1600
- for (; S = S && S.nextElementSibling; )
1601
- if (S) {
1602
- if (S.classList.contains("builder-accordion-detail"))
1607
+ if (m = u, v) {
1608
+ let p = v.getBoundingClientRect();
1609
+ for (; v = v && v.nextElementSibling; )
1610
+ if (v) {
1611
+ if (v.classList.contains("builder-accordion-detail"))
1603
1612
  continue;
1604
- const k = S.getBoundingClientRect();
1613
+ const k = v.getBoundingClientRect();
1605
1614
  if (k.left > p.left) {
1606
1615
  const C = parseInt(
1607
- S.getAttribute("data-index") || "",
1616
+ v.getAttribute("data-index") || "",
1608
1617
  10
1609
1618
  );
1610
- isNaN(C) || (p = k, c = C);
1619
+ isNaN(C) || (p = k, m = C);
1611
1620
  } else
1612
1621
  break;
1613
1622
  }
1614
1623
  }
1615
1624
  }
1616
- return typeof c == "number" && (c = c + 1), c;
1625
+ return typeof m == "number" && (m = m + 1), m;
1617
1626
  }
1618
- function u() {
1619
- const c = {
1627
+ function c() {
1628
+ const m = {
1620
1629
  order: typeof d() == "number" ? d() : void 0,
1621
1630
  ...e.grid && {
1622
1631
  width: "100%"
1623
1632
  }
1624
1633
  };
1625
1634
  return Object.fromEntries(
1626
- Object.entries(c).filter(([v, f]) => f !== void 0)
1635
+ Object.entries(m).filter(([x, u]) => u !== void 0)
1627
1636
  );
1628
1637
  }
1629
- function h(c) {
1630
- t.includes(c) ? n(i() ? [] : t.filter((v) => v !== c)) : n(i() ? [c] : t.concat(c));
1638
+ function h(m) {
1639
+ t.includes(m) ? n(i() ? [] : t.filter((x) => x !== m)) : n(i() ? [m] : t.concat(m));
1631
1640
  }
1632
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (g = e.items) == null ? void 0 : g.map((c, v) => /* @__PURE__ */ B(at.Fragment, { children: [
1641
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (b = e.items) == null ? void 0 : b.map((m, x) => /* @__PURE__ */ B(at.Fragment, { children: [
1633
1642
  /* @__PURE__ */ s(
1634
1643
  "div",
1635
1644
  {
1636
- className: r(v),
1645
+ className: r(x),
1637
1646
  style: {
1638
- ...o(),
1647
+ ...a(),
1639
1648
  ...e.grid && {
1640
1649
  width: e.gridRowWidth,
1641
- order: d() !== null ? Te(v) : Te(v + 1)
1650
+ order: d() !== null ? we(x) : we(x + 1)
1642
1651
  }
1643
1652
  },
1644
- "data-index": v,
1645
- onClick: (f) => h(v),
1653
+ "data-index": x,
1654
+ onClick: (u) => h(x),
1646
1655
  children: /* @__PURE__ */ s(
1647
1656
  $,
1648
1657
  {
1649
- blocks: c.title,
1650
- path: `items.${v}.title`,
1658
+ blocks: m.title,
1659
+ path: `items.${x}.title`,
1651
1660
  parent: e.builderBlock.id,
1652
1661
  context: e.builderContext,
1653
1662
  registeredComponents: e.builderComponents,
@@ -1656,16 +1665,16 @@ function rn(e) {
1656
1665
  )
1657
1666
  }
1658
1667
  ),
1659
- t.includes(v) ? /* @__PURE__ */ s(
1668
+ t.includes(x) ? /* @__PURE__ */ s(
1660
1669
  "div",
1661
1670
  {
1662
- className: l(v),
1663
- style: u(),
1671
+ className: l(x),
1672
+ style: c(),
1664
1673
  children: /* @__PURE__ */ s(
1665
1674
  $,
1666
1675
  {
1667
- blocks: c.detail,
1668
- path: `items.${v}.detail`,
1676
+ blocks: m.detail,
1677
+ path: `items.${x}.detail`,
1669
1678
  parent: e.builderBlock.id,
1670
1679
  context: e.builderContext,
1671
1680
  registeredComponents: e.builderComponents,
@@ -1674,9 +1683,9 @@ function rn(e) {
1674
1683
  )
1675
1684
  }
1676
1685
  ) : null
1677
- ] }, v)) });
1686
+ ] }, x)) });
1678
1687
  }
1679
- const ln = {
1688
+ const sn = {
1680
1689
  name: "Core:Button",
1681
1690
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1682
1691
  defaultStyles: {
@@ -1712,7 +1721,7 @@ const ln = {
1712
1721
  shouldReceiveBuilderProps: {
1713
1722
  builderLinkComponent: !0
1714
1723
  }
1715
- }, sn = {
1724
+ }, cn = {
1716
1725
  // TODO: ways to statically preprocess JSON for references, functions, etc
1717
1726
  name: "Columns",
1718
1727
  isRSC: !0,
@@ -1891,7 +1900,7 @@ const ln = {
1891
1900
  });
1892
1901
  }
1893
1902
  const n = e.get("columns");
1894
- Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((o) => !o.get("width")) || n.reduce((l, d) => l + d.get("width"), 0) !== 100) && t();
1903
+ Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((l, d) => l + d.get("width"), 0) !== 100) && t();
1895
1904
  }
1896
1905
  }, {
1897
1906
  name: "space",
@@ -1919,13 +1928,13 @@ const ln = {
1919
1928
  builderComponents: !0,
1920
1929
  builderLinkComponent: !0
1921
1930
  }
1922
- }, cn = {
1931
+ }, un = {
1923
1932
  name: "Fragment",
1924
1933
  static: !0,
1925
1934
  hidden: !0,
1926
1935
  canHaveChildren: !0,
1927
1936
  noWrap: !0
1928
- }, he = ["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"], un = ["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"], dn = {
1937
+ }, he = ["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"], dn = ["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"], mn = {
1929
1938
  name: "Image",
1930
1939
  static: !0,
1931
1940
  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",
@@ -1946,28 +1955,28 @@ const ln = {
1946
1955
  onChange: (e) => {
1947
1956
  e.delete("srcset"), e.delete("noWebp");
1948
1957
  function n(r, l = 6e4) {
1949
- return new Promise((d, u) => {
1958
+ return new Promise((d, c) => {
1950
1959
  const h = document.createElement("img");
1951
- let g = !1;
1960
+ let b = !1;
1952
1961
  h.onload = () => {
1953
- g = !0, d(h);
1954
- }, h.addEventListener("error", (c) => {
1955
- console.warn("Image load failed", c.error), u(c.error);
1962
+ b = !0, d(h);
1963
+ }, h.addEventListener("error", (m) => {
1964
+ console.warn("Image load failed", m.error), c(m.error);
1956
1965
  }), h.src = r, setTimeout(() => {
1957
- g || u(new Error("Image load timed out"));
1966
+ b || c(new Error("Image load timed out"));
1958
1967
  }, l);
1959
1968
  });
1960
1969
  }
1961
1970
  function i(r) {
1962
1971
  return Math.round(r * 1e3) / 1e3;
1963
1972
  }
1964
- const a = e.get("image"), o = e.get("aspectRatio");
1965
- if (fetch(a).then((r) => r.blob()).then((r) => {
1973
+ const o = e.get("image"), a = e.get("aspectRatio");
1974
+ if (fetch(o).then((r) => r.blob()).then((r) => {
1966
1975
  r.type.includes("svg") && e.set("noWebp", !0);
1967
- }), a && (!o || o === 0.7041))
1968
- return n(a).then((r) => {
1976
+ }), o && (!a || a === 0.7041))
1977
+ return n(o).then((r) => {
1969
1978
  const l = e.get("aspectRatio");
1970
- e.get("image") === a && (!l || l === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
1979
+ e.get("image") === o && (!l || l === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
1971
1980
  });
1972
1981
  }
1973
1982
  }, {
@@ -2037,7 +2046,7 @@ const ln = {
2037
2046
  shouldReceiveBuilderProps: {
2038
2047
  builderBlock: !0
2039
2048
  }
2040
- }, mn = {
2049
+ }, fn = {
2041
2050
  name: "PersonalizationContainer",
2042
2051
  shouldReceiveBuilderProps: {
2043
2052
  builderBlock: !0,
@@ -2083,51 +2092,51 @@ function X(e) {
2083
2092
  }
2084
2093
  );
2085
2094
  }
2086
- function fn(e, t, n, i) {
2087
- function a(u) {
2088
- return typeof u == "string";
2095
+ function hn(e, t, n, i) {
2096
+ function o(c) {
2097
+ return typeof c == "string";
2089
2098
  }
2090
- function o(u) {
2091
- return typeof u == "number";
2099
+ function a(c) {
2100
+ return typeof c == "number";
2092
2101
  }
2093
- function r(u, h) {
2102
+ function r(c, h) {
2094
2103
  return (() => {
2095
- const c = h.property, v = h.operator;
2096
- let f = h.value;
2097
- if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(c && v))
2104
+ const m = h.property, x = h.operator;
2105
+ let u = h.value;
2106
+ if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (u = h.value.slice(0, -1)), !(m && x))
2098
2107
  return !0;
2099
- if (Array.isArray(f))
2100
- return v === "isNot" ? f.every((S) => r(u, {
2101
- property: c,
2102
- operator: v,
2103
- value: S
2104
- })) : !!f.find((S) => r(u, {
2105
- property: c,
2106
- operator: v,
2107
- value: S
2108
+ if (Array.isArray(u))
2109
+ return x === "isNot" ? u.every((v) => r(c, {
2110
+ property: m,
2111
+ operator: x,
2112
+ value: v
2113
+ })) : !!u.find((v) => r(c, {
2114
+ property: m,
2115
+ operator: x,
2116
+ value: v
2108
2117
  }));
2109
- const b = u[c];
2110
- if (Array.isArray(b))
2111
- return b.includes(f);
2112
- switch (v) {
2118
+ const g = c[m];
2119
+ if (Array.isArray(g))
2120
+ return g.includes(u);
2121
+ switch (x) {
2113
2122
  case "is":
2114
- return b === f;
2123
+ return g === u;
2115
2124
  case "isNot":
2116
- return b !== f;
2125
+ return g !== u;
2117
2126
  case "contains":
2118
- return (a(b) || Array.isArray(b)) && b.includes(String(f));
2127
+ return (o(g) || Array.isArray(g)) && g.includes(String(u));
2119
2128
  case "startsWith":
2120
- return a(b) && b.startsWith(String(f));
2129
+ return o(g) && g.startsWith(String(u));
2121
2130
  case "endsWith":
2122
- return a(b) && b.endsWith(String(f));
2131
+ return o(g) && g.endsWith(String(u));
2123
2132
  case "greaterThan":
2124
- return o(b) && o(f) && b > f;
2133
+ return a(g) && a(u) && g > u;
2125
2134
  case "lessThan":
2126
- return o(b) && o(f) && b < f;
2135
+ return a(g) && a(u) && g < u;
2127
2136
  case "greaterThanOrEqualTo":
2128
- return o(b) && o(f) && b >= f;
2137
+ return a(g) && a(u) && g >= u;
2129
2138
  case "lessThanOrEqualTo":
2130
- return o(b) && o(f) && b <= f;
2139
+ return a(g) && a(u) && g <= u;
2131
2140
  default:
2132
2141
  return !1;
2133
2142
  }
@@ -2138,9 +2147,9 @@ function fn(e, t, n, i) {
2138
2147
  startDate: n,
2139
2148
  endDate: i
2140
2149
  }, d = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
2141
- return l.startDate && new Date(l.startDate) > d || l.endDate && new Date(l.endDate) < d ? !1 : !l.query || !l.query.length ? !0 : l.query.every((u) => r(e, u));
2150
+ return l.startDate && new Date(l.startDate) > d || l.endDate && new Date(l.endDate) < d ? !1 : !l.query || !l.query.length ? !0 : l.query.every((c) => r(e, c));
2142
2151
  }
2143
- const hn = `function getPersonalizedVariant(variants, blockId, locale) {
2152
+ const gn = `function getPersonalizedVariant(variants, blockId, locale) {
2144
2153
  if (!navigator.cookieEnabled) {
2145
2154
  return;
2146
2155
  }
@@ -2193,7 +2202,7 @@ const hn = `function getPersonalizedVariant(variants, blockId, locale) {
2193
2202
  } else if (variants && variants.length > 0) {
2194
2203
  removeVariants();
2195
2204
  }
2196
- }`, gn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
2205
+ }`, bn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
2197
2206
  function isString(val) {
2198
2207
  return typeof val === 'string';
2199
2208
  }
@@ -2272,26 +2281,26 @@ const hn = `function getPersonalizedVariant(variants, blockId, locale) {
2272
2281
  return objectMatchesQuery(userAttributes, filter);
2273
2282
  });
2274
2283
  }`;
2275
- function bn(e, t) {
2284
+ function pn(e, t) {
2276
2285
  return !(!(e && e.length > 0) || !t || U());
2277
2286
  }
2278
- function pn({
2287
+ function yn({
2279
2288
  variants: e,
2280
2289
  previewingIndex: t,
2281
2290
  isHydrated: n,
2282
2291
  filteredVariants: i,
2283
- fallbackBlocks: a
2292
+ fallbackBlocks: o
2284
2293
  }) {
2285
2294
  var r;
2286
- const o = {
2287
- blocks: a != null ? a : [],
2295
+ const a = {
2296
+ blocks: o != null ? o : [],
2288
2297
  path: "this.children"
2289
2298
  };
2290
2299
  if (n && A())
2291
2300
  return typeof t == "number" && t < ((r = e == null ? void 0 : e.length) != null ? r : 0) ? {
2292
2301
  blocks: e[t].blocks,
2293
2302
  path: `component.options.variants.${t}.blocks`
2294
- } : o;
2303
+ } : a;
2295
2304
  if (U()) {
2296
2305
  const l = i == null ? void 0 : i[0];
2297
2306
  if (l)
@@ -2300,86 +2309,86 @@ function pn({
2300
2309
  path: `component.options.variants.${e == null ? void 0 : e.indexOf(l)}.blocks`
2301
2310
  };
2302
2311
  }
2303
- return o;
2312
+ return a;
2304
2313
  }
2305
- const yn = (e, t, n) => `
2314
+ const vn = (e, t, n) => `
2306
2315
  (function() {
2316
+ ${bn}
2307
2317
  ${gn}
2308
- ${hn}
2309
2318
  getPersonalizedVariant(${JSON.stringify(e)}, "${t}"${n ? `, "${n}"` : ""})
2310
2319
  })();
2311
2320
  `;
2312
- function vn(e) {
2313
- var b, S, p, k, C, P, w;
2321
+ function xn(e) {
2322
+ var g, v, p, k, C, V, w;
2314
2323
  const t = O(null), [n, i] = I(
2315
2324
  () => be.getUserAttributes()
2316
- ), [a, o] = I(
2325
+ ), [o, a] = I(
2317
2326
  () => {
2318
- var x, m, y;
2319
- return yn(
2327
+ var S, f, y;
2328
+ return vn(
2320
2329
  e.variants,
2321
- ((x = e.builderBlock) == null ? void 0 : x.id) || "none",
2322
- (y = (m = e.builderContext) == null ? void 0 : m.rootState) == null ? void 0 : y.locale
2330
+ ((S = e.builderBlock) == null ? void 0 : S.id) || "none",
2331
+ (y = (f = e.builderContext) == null ? void 0 : f.rootState) == null ? void 0 : y.locale
2323
2332
  );
2324
2333
  }
2325
- ), [r, l] = I(() => []), [d, u] = I(
2334
+ ), [r, l] = I(() => []), [d, c] = I(
2326
2335
  () => {
2327
- var x;
2328
- return bn(
2336
+ var S;
2337
+ return pn(
2329
2338
  e.variants,
2330
- j((x = e.builderContext) == null ? void 0 : x.canTrack)
2339
+ j((S = e.builderContext) == null ? void 0 : S.canTrack)
2331
2340
  );
2332
2341
  }
2333
- ), [h, g] = I(() => !1);
2334
- function c() {
2335
- return (e.variants || []).filter((x) => {
2336
- var m, y, T, E;
2337
- return fn(
2342
+ ), [h, b] = I(() => !1);
2343
+ function m() {
2344
+ return (e.variants || []).filter((S) => {
2345
+ var f, y, T, E;
2346
+ return hn(
2338
2347
  {
2339
- ...(y = (m = e.builderContext) == null ? void 0 : m.rootState) != null && y.locale ? {
2348
+ ...(y = (f = e.builderContext) == null ? void 0 : f.rootState) != null && y.locale ? {
2340
2349
  locale: (E = (T = e.builderContext) == null ? void 0 : T.rootState) == null ? void 0 : E.locale
2341
2350
  } : {},
2342
2351
  ...n
2343
2352
  },
2344
- x.query,
2345
- x.startDate,
2346
- x.endDate
2353
+ S.query,
2354
+ S.startDate,
2355
+ S.endDate
2347
2356
  );
2348
2357
  });
2349
2358
  }
2350
- function v() {
2351
- var x;
2352
- return pn({
2359
+ function x() {
2360
+ var S;
2361
+ return yn({
2353
2362
  variants: e.variants,
2354
- fallbackBlocks: (x = e.builderBlock) == null ? void 0 : x.children,
2363
+ fallbackBlocks: (S = e.builderBlock) == null ? void 0 : S.children,
2355
2364
  isHydrated: h,
2356
- filteredVariants: c(),
2365
+ filteredVariants: m(),
2357
2366
  previewingIndex: e.previewingIndex
2358
2367
  });
2359
2368
  }
2360
- function f() {
2369
+ function u() {
2361
2370
  return (e.variants || []).map(
2362
- (x, m) => {
2371
+ (S, f) => {
2363
2372
  var y;
2364
- return `[data-variant-id="${(y = e.builderBlock) == null ? void 0 : y.id}-${m}"] { display: none; } `;
2373
+ return `[data-variant-id="${(y = e.builderBlock) == null ? void 0 : y.id}-${f}"] { display: none; } `;
2365
2374
  }
2366
2375
  ).join("");
2367
2376
  }
2368
- return V(() => {
2369
- var m;
2370
- g(!0);
2371
- const x = be.subscribeOnUserAttributesChange(
2377
+ return R(() => {
2378
+ var f;
2379
+ b(!0);
2380
+ const S = be.subscribeOnUserAttributesChange(
2372
2381
  (y) => {
2373
2382
  i(y);
2374
2383
  }
2375
2384
  );
2376
2385
  if (!(A() || Z())) {
2377
- const y = c()[0];
2386
+ const y = m()[0];
2378
2387
  t.current && (t.current.dispatchEvent(
2379
2388
  new CustomEvent("builder.variantLoaded", {
2380
2389
  detail: {
2381
2390
  variant: y || "default",
2382
- content: (m = e.builderContext) == null ? void 0 : m.content
2391
+ content: (f = e.builderContext) == null ? void 0 : f.content
2383
2392
  },
2384
2393
  bubbles: !0
2385
2394
  })
@@ -2398,40 +2407,40 @@ function vn(e) {
2398
2407
  });
2399
2408
  }).observe(t.current));
2400
2409
  }
2401
- r.push(x);
2402
- }, []), V(() => () => {
2403
- r.forEach((x) => x());
2410
+ r.push(S);
2411
+ }, []), R(() => () => {
2412
+ r.forEach((S) => S());
2404
2413
  }, []), /* @__PURE__ */ B(
2405
2414
  "div",
2406
2415
  {
2407
2416
  ref: t,
2408
2417
  ...e.attributes,
2409
- className: `builder-personalization-container ${((b = e.attributes) == null ? void 0 : b.className) || ""}`,
2418
+ className: `builder-personalization-container ${((g = e.attributes) == null ? void 0 : g.className) || ""}`,
2410
2419
  children: [
2411
- d ? /* @__PURE__ */ B(R, { children: [
2412
- (S = e.variants) == null ? void 0 : S.map((x, m) => {
2420
+ d ? /* @__PURE__ */ B(P, { children: [
2421
+ (v = e.variants) == null ? void 0 : v.map((S, f) => {
2413
2422
  var y, T;
2414
2423
  return /* @__PURE__ */ s(
2415
2424
  "template",
2416
2425
  {
2417
- "data-variant-id": `${(y = e.builderBlock) == null ? void 0 : y.id}-${m}`,
2426
+ "data-variant-id": `${(y = e.builderBlock) == null ? void 0 : y.id}-${f}`,
2418
2427
  children: /* @__PURE__ */ s(
2419
2428
  $,
2420
2429
  {
2421
- blocks: x.blocks,
2430
+ blocks: S.blocks,
2422
2431
  parent: (T = e.builderBlock) == null ? void 0 : T.id,
2423
- path: `component.options.variants.${m}.blocks`
2432
+ path: `component.options.variants.${f}.blocks`
2424
2433
  }
2425
2434
  )
2426
2435
  },
2427
- m
2436
+ f
2428
2437
  );
2429
2438
  }),
2430
2439
  /* @__PURE__ */ s(
2431
2440
  K,
2432
2441
  {
2433
2442
  nonce: ((p = e.builderContext) == null ? void 0 : p.nonce) || "",
2434
- styles: f(),
2443
+ styles: u(),
2435
2444
  id: `variants-styles-${(k = e.builderBlock) == null ? void 0 : k.id}`
2436
2445
  }
2437
2446
  ),
@@ -2439,24 +2448,24 @@ function vn(e) {
2439
2448
  X,
2440
2449
  {
2441
2450
  nonce: ((C = e.builderContext) == null ? void 0 : C.nonce) || "",
2442
- scriptStr: a,
2443
- id: `variants-script-${(P = e.builderBlock) == null ? void 0 : P.id}`
2451
+ scriptStr: o,
2452
+ id: `variants-script-${(V = e.builderBlock) == null ? void 0 : V.id}`
2444
2453
  }
2445
2454
  )
2446
2455
  ] }) : null,
2447
2456
  /* @__PURE__ */ s(
2448
2457
  $,
2449
2458
  {
2450
- blocks: v().blocks,
2459
+ blocks: x().blocks,
2451
2460
  parent: (w = e.builderBlock) == null ? void 0 : w.id,
2452
- path: v().path
2461
+ path: x().path
2453
2462
  }
2454
2463
  )
2455
2464
  ]
2456
2465
  }
2457
2466
  );
2458
2467
  }
2459
- const xn = {
2468
+ const Sn = {
2460
2469
  name: "Core:Section",
2461
2470
  static: !0,
2462
2471
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -2495,7 +2504,7 @@ const xn = {
2495
2504
  }
2496
2505
  }
2497
2506
  }]
2498
- }, Sn = {
2507
+ }, kn = {
2499
2508
  name: "Slot",
2500
2509
  isRSC: !0,
2501
2510
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -2513,7 +2522,7 @@ const xn = {
2513
2522
  builderComponents: !0
2514
2523
  }
2515
2524
  };
2516
- function kn(e) {
2525
+ function Cn(e) {
2517
2526
  var t, n, i;
2518
2527
  return /* @__PURE__ */ s(
2519
2528
  "div",
@@ -2537,7 +2546,7 @@ function kn(e) {
2537
2546
  }
2538
2547
  );
2539
2548
  }
2540
- const Cn = {
2549
+ const Tn = {
2541
2550
  name: "Symbol",
2542
2551
  noWrap: !0,
2543
2552
  static: !0,
@@ -2614,7 +2623,7 @@ const Cn = {
2614
2623
  text: "New tab content "
2615
2624
  }
2616
2625
  }
2617
- }, Tn = {
2626
+ }, wn = {
2618
2627
  name: "Builder: Tabs",
2619
2628
  inputs: [{
2620
2629
  name: "tabs",
@@ -2718,15 +2727,15 @@ const Cn = {
2718
2727
  builderLinkComponent: !0
2719
2728
  }
2720
2729
  };
2721
- function wn(e) {
2722
- var o;
2730
+ function In(e) {
2731
+ var a;
2723
2732
  const [t, n] = I(
2724
2733
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
2725
2734
  );
2726
2735
  function i(r) {
2727
2736
  return e.tabs && e.tabs[r].content;
2728
2737
  }
2729
- function a(r) {
2738
+ function o(r) {
2730
2739
  r === t && e.collapsible ? n(-1) : n(r);
2731
2740
  }
2732
2741
  return /* @__PURE__ */ B("div", { children: [
@@ -2740,14 +2749,14 @@ function wn(e) {
2740
2749
  justifyContent: e.tabHeaderLayout || "flex-start",
2741
2750
  overflow: "auto"
2742
2751
  },
2743
- children: (o = e.tabs) == null ? void 0 : o.map((r, l) => /* @__PURE__ */ s(
2752
+ children: (a = e.tabs) == null ? void 0 : a.map((r, l) => /* @__PURE__ */ s(
2744
2753
  "span",
2745
2754
  {
2746
2755
  className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
2747
2756
  style: {
2748
2757
  ...t === l ? e.activeTabStyle : {}
2749
2758
  },
2750
- onClick: (d) => a(l),
2759
+ onClick: (d) => o(l),
2751
2760
  children: /* @__PURE__ */ s(
2752
2761
  $,
2753
2762
  {
@@ -2777,11 +2786,8 @@ function wn(e) {
2777
2786
  ) }) : null
2778
2787
  ] });
2779
2788
  }
2780
- const In = {
2781
- shouldReceiveBuilderProps: {
2782
- builderBlock: !1,
2783
- builderContext: !0
2784
- },
2789
+ const En = {
2790
+ shouldReceiveBuilderProps: {},
2785
2791
  name: "Text",
2786
2792
  static: !0,
2787
2793
  isRSC: !0,
@@ -2800,7 +2806,7 @@ const In = {
2800
2806
  textAlign: "center"
2801
2807
  }
2802
2808
  };
2803
- function En(e) {
2809
+ function Rn(e) {
2804
2810
  var t;
2805
2811
  return /* @__PURE__ */ s(
2806
2812
  "div",
@@ -2813,7 +2819,7 @@ function En(e) {
2813
2819
  }
2814
2820
  );
2815
2821
  }
2816
- const Rn = {
2822
+ const Pn = {
2817
2823
  name: "Custom Code",
2818
2824
  static: !0,
2819
2825
  requiredPermissions: ["editCode"],
@@ -2836,42 +2842,42 @@ const Rn = {
2836
2842
  advanced: !0
2837
2843
  }]
2838
2844
  };
2839
- function Pn(e) {
2840
- const t = O(null), [n, i] = I(() => []), [a, o] = I(() => []);
2845
+ function Vn(e) {
2846
+ const t = O(null), [n, i] = I(() => []), [o, a] = I(() => []);
2841
2847
  function r() {
2842
2848
  var d;
2843
2849
  if (!t.current || !((d = t.current) != null && d.getElementsByTagName) || typeof window == "undefined")
2844
2850
  return;
2845
2851
  const l = t.current.getElementsByTagName("script");
2846
- for (let u = 0; u < l.length; u++) {
2847
- const h = l[u];
2852
+ for (let c = 0; c < l.length; c++) {
2853
+ const h = l[c];
2848
2854
  if (h.src) {
2849
2855
  if (n.includes(h.src))
2850
2856
  continue;
2851
2857
  n.push(h.src);
2852
- const g = document.createElement("script");
2853
- g.async = !0, g.src = h.src, document.head.appendChild(g);
2858
+ const b = document.createElement("script");
2859
+ b.async = !0, b.src = h.src, document.head.appendChild(b);
2854
2860
  } else if (!h.type || [
2855
2861
  "text/javascript",
2856
2862
  "application/javascript",
2857
2863
  "application/ecmascript"
2858
2864
  ].includes(h.type)) {
2859
- if (a.includes(h.innerText))
2865
+ if (o.includes(h.innerText))
2860
2866
  continue;
2861
2867
  try {
2862
- a.push(h.innerText), new Function(h.innerText)();
2863
- } catch (g) {
2868
+ o.push(h.innerText), new Function(h.innerText)();
2869
+ } catch (b) {
2864
2870
  _.warn(
2865
2871
  "[BUILDER.IO] `CustomCode`: Error running script:",
2866
- g
2872
+ b
2867
2873
  );
2868
2874
  }
2869
2875
  }
2870
2876
  }
2871
2877
  }
2872
- return V(() => {
2878
+ return R(() => {
2873
2879
  r();
2874
- }, []), V(() => {
2880
+ }, []), R(() => {
2875
2881
  A() && r();
2876
2882
  }, [e.code]), /* @__PURE__ */ s(
2877
2883
  "div",
@@ -2882,7 +2888,7 @@ function Pn(e) {
2882
2888
  }
2883
2889
  );
2884
2890
  }
2885
- const Vn = {
2891
+ const Bn = {
2886
2892
  name: "Embed",
2887
2893
  static: !0,
2888
2894
  inputs: [{
@@ -2897,28 +2903,28 @@ const Vn = {
2897
2903
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2898
2904
  hideFromUI: !0
2899
2905
  }]
2900
- }, Bn = ["text/javascript", "application/javascript", "application/ecmascript"], An = (e) => Bn.includes(e.type);
2901
- function Nn(e) {
2902
- const t = O(null), [n, i] = I(() => []), [a, o] = I(() => []), [r, l] = I(() => !1);
2906
+ }, An = ["text/javascript", "application/javascript", "application/ecmascript"], Nn = (e) => An.includes(e.type);
2907
+ function Wn(e) {
2908
+ const t = O(null), [n, i] = I(() => []), [o, a] = I(() => []), [r, l] = I(() => !1);
2903
2909
  function d() {
2904
2910
  if (!t.current || !t.current.getElementsByTagName)
2905
2911
  return;
2906
- const u = t.current.getElementsByTagName("script");
2907
- for (let h = 0; h < u.length; h++) {
2908
- const g = u[h];
2909
- if (g.src && !n.includes(g.src)) {
2910
- n.push(g.src);
2911
- const c = document.createElement("script");
2912
- c.async = !0, c.src = g.src, document.head.appendChild(c);
2913
- } else if (An(g) && !a.includes(g.innerText))
2912
+ const c = t.current.getElementsByTagName("script");
2913
+ for (let h = 0; h < c.length; h++) {
2914
+ const b = c[h];
2915
+ if (b.src && !n.includes(b.src)) {
2916
+ n.push(b.src);
2917
+ const m = document.createElement("script");
2918
+ m.async = !0, m.src = b.src, document.head.appendChild(m);
2919
+ } else if (Nn(b) && !o.includes(b.innerText))
2914
2920
  try {
2915
- a.push(g.innerText), new Function(g.innerText)();
2916
- } catch (c) {
2917
- _.warn("[BUILDER.IO] `Embed`: Error running script:", c);
2921
+ o.push(b.innerText), new Function(b.innerText)();
2922
+ } catch (m) {
2923
+ _.warn("[BUILDER.IO] `Embed`: Error running script:", m);
2918
2924
  }
2919
2925
  }
2920
2926
  }
2921
- return V(() => {
2927
+ return R(() => {
2922
2928
  t.current && !r && (l(!0), d());
2923
2929
  }, [t.current, r]), /* @__PURE__ */ s(
2924
2930
  "div",
@@ -2929,7 +2935,7 @@ function Nn(e) {
2929
2935
  }
2930
2936
  );
2931
2937
  }
2932
- const Wn = {
2938
+ const Dn = {
2933
2939
  name: "Form:Form",
2934
2940
  // editableTags: ['builder-form-error']
2935
2941
  defaults: {
@@ -3166,90 +3172,90 @@ const Wn = {
3166
3172
  builderComponents: !0,
3167
3173
  builderLinkComponent: !0
3168
3174
  }
3169
- }, Dn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], $n = () => {
3175
+ }, $n = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Fn = () => {
3170
3176
  const e = process.env.NODE_ENV || "production";
3171
- return Dn.includes(e) ? e : "production";
3177
+ return $n.includes(e) ? e : "production";
3172
3178
  };
3173
- function Fn(e) {
3174
- const t = O(null), [n, i] = I(() => "unsubmitted"), [a, o] = I(() => null), [r, l] = I(() => "");
3175
- function d(g) {
3176
- var v, f;
3177
- const c = {
3179
+ function On(e) {
3180
+ const t = O(null), [n, i] = I(() => "unsubmitted"), [o, a] = I(() => null), [r, l] = I(() => "");
3181
+ function d(b) {
3182
+ var x, u;
3183
+ const m = {
3178
3184
  ...e.builderContext.rootState,
3179
- ...g
3185
+ ...b
3180
3186
  };
3181
- e.builderContext.rootSetState ? (f = (v = e.builderContext).rootSetState) == null || f.call(v, c) : e.builderContext.rootState = c;
3187
+ e.builderContext.rootSetState ? (u = (x = e.builderContext).rootSetState) == null || u.call(x, m) : e.builderContext.rootState = m;
3182
3188
  }
3183
- function u() {
3189
+ function c() {
3184
3190
  return A() && e.previewState || n;
3185
3191
  }
3186
- function h(g) {
3187
- var v;
3188
- const c = e.sendWithJs || e.sendSubmissionsTo === "email";
3192
+ function h(b) {
3193
+ var x;
3194
+ const m = e.sendWithJs || e.sendSubmissionsTo === "email";
3189
3195
  if (e.sendSubmissionsTo === "zapier")
3190
- g.preventDefault();
3191
- else if (c) {
3196
+ b.preventDefault();
3197
+ else if (m) {
3192
3198
  if (!(e.action || e.sendSubmissionsTo === "email")) {
3193
- g.preventDefault();
3199
+ b.preventDefault();
3194
3200
  return;
3195
3201
  }
3196
- g.preventDefault();
3197
- const f = g.currentTarget || g.target, b = e.customHeaders || {};
3198
- let S;
3199
- const p = new FormData(f), k = Array.from(f.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
3202
+ b.preventDefault();
3203
+ const u = b.currentTarget || b.target, g = e.customHeaders || {};
3204
+ let v;
3205
+ const p = new FormData(u), k = Array.from(u.querySelectorAll("input,select,textarea")).filter((f) => !!f.name).map((f) => {
3200
3206
  let y;
3201
- const T = m.name;
3202
- if (m instanceof HTMLInputElement)
3203
- if (m.type === "radio") {
3204
- if (m.checked)
3205
- return y = m.name, {
3207
+ const T = f.name;
3208
+ if (f instanceof HTMLInputElement)
3209
+ if (f.type === "radio") {
3210
+ if (f.checked)
3211
+ return y = f.name, {
3206
3212
  key: T,
3207
3213
  value: y
3208
3214
  };
3209
- } else if (m.type === "checkbox")
3210
- y = m.checked;
3211
- else if (m.type === "number" || m.type === "range") {
3212
- const E = m.valueAsNumber;
3215
+ } else if (f.type === "checkbox")
3216
+ y = f.checked;
3217
+ else if (f.type === "number" || f.type === "range") {
3218
+ const E = f.valueAsNumber;
3213
3219
  isNaN(E) || (y = E);
3214
3220
  } else
3215
- m.type === "file" ? y = m.files : y = m.value;
3221
+ f.type === "file" ? y = f.files : y = f.value;
3216
3222
  else
3217
- y = m.value;
3223
+ y = f.value;
3218
3224
  return {
3219
3225
  key: T,
3220
3226
  value: y
3221
3227
  };
3222
3228
  });
3223
3229
  let C = e.contentType;
3224
- if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(k).forEach(({ value: m }) => {
3225
- (m instanceof File || Array.isArray(m) && m[0] instanceof File || m instanceof FileList) && (C = "multipart/form-data");
3230
+ if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(k).forEach(({ value: f }) => {
3231
+ (f instanceof File || Array.isArray(f) && f[0] instanceof File || f instanceof FileList) && (C = "multipart/form-data");
3226
3232
  }), C !== "application/json")
3227
- S = p;
3233
+ v = p;
3228
3234
  else {
3229
- const m = {};
3235
+ const f = {};
3230
3236
  Array.from(k).forEach(({ value: y, key: T }) => {
3231
- Oe(m, T, y);
3232
- }), S = JSON.stringify(m);
3237
+ Le(f, T, y);
3238
+ }), v = JSON.stringify(f);
3233
3239
  }
3234
- C && C !== "multipart/form-data" && (c && ((v = e.action) != null && v.includes("zapier.com")) || (b["content-type"] = C));
3235
- const P = new CustomEvent("presubmit", { detail: { body: S } });
3236
- if (t.current && (t.current.dispatchEvent(P), P.defaultPrevented))
3240
+ C && C !== "multipart/form-data" && (m && ((x = e.action) != null && x.includes("zapier.com")) || (g["content-type"] = C));
3241
+ const V = new CustomEvent("presubmit", { detail: { body: v } });
3242
+ if (t.current && (t.current.dispatchEvent(V), V.defaultPrevented))
3237
3243
  return;
3238
3244
  i("sending");
3239
- const w = `${$n() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3245
+ const w = `${Fn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3240
3246
  e.sendSubmissionsToEmail || ""
3241
- )}&name=${encodeURIComponent(e.name || "")}`, x = e.sendSubmissionsTo === "email" ? w : e.action;
3242
- Ve(x), fetch(x, { body: S, headers: b, method: e.method || "post" }).then(
3243
- async (m) => {
3247
+ )}&name=${encodeURIComponent(e.name || "")}`, S = e.sendSubmissionsTo === "email" ? w : e.action;
3248
+ Be(S), fetch(S, { body: v, headers: g, method: e.method || "post" }).then(
3249
+ async (f) => {
3244
3250
  let y;
3245
- const T = m.headers.get("content-type");
3246
- if (T && T.indexOf("application/json") !== -1 ? y = await m.json() : y = await m.text(), !m.ok && e.errorMessagePath) {
3247
- let E = De(y, e.errorMessagePath);
3251
+ const T = f.headers.get("content-type");
3252
+ if (T && T.indexOf("application/json") !== -1 ? y = await f.json() : y = await f.text(), !f.ok && e.errorMessagePath) {
3253
+ let E = $e(y, e.errorMessagePath);
3248
3254
  E && (typeof E != "string" && (E = JSON.stringify(E)), l(E), d({ formErrorMessage: E }));
3249
3255
  }
3250
- if (o(y), i(m.ok ? "success" : "error"), m.ok) {
3256
+ if (a(y), i(f.ok ? "success" : "error"), f.ok) {
3251
3257
  const E = new CustomEvent("submit:success", {
3252
- detail: { res: m, body: y }
3258
+ detail: { res: f, body: y }
3253
3259
  });
3254
3260
  if (t.current) {
3255
3261
  if (t.current.dispatchEvent(E), E.defaultPrevented)
@@ -3266,16 +3272,16 @@ function Fn(e) {
3266
3272
  location.href = e.successUrl;
3267
3273
  }
3268
3274
  },
3269
- (m) => {
3275
+ (f) => {
3270
3276
  const y = new CustomEvent("submit:error", {
3271
- detail: { error: m }
3277
+ detail: { error: f }
3272
3278
  });
3273
- t.current && (t.current.dispatchEvent(y), y.defaultPrevented) || (o(m), i("error"));
3279
+ t.current && (t.current.dispatchEvent(y), y.defaultPrevented) || (a(f), i("error"));
3274
3280
  }
3275
3281
  );
3276
3282
  }
3277
3283
  }
3278
- return /* @__PURE__ */ B(R, { children: [
3284
+ return /* @__PURE__ */ B(P, { children: [
3279
3285
  " ",
3280
3286
  /* @__PURE__ */ B(
3281
3287
  "form",
@@ -3285,11 +3291,11 @@ function Fn(e) {
3285
3291
  action: !e.sendWithJs && e.action,
3286
3292
  method: e.method,
3287
3293
  name: e.name,
3288
- onSubmit: (g) => h(g),
3294
+ onSubmit: (b) => h(b),
3289
3295
  ...e.attributes,
3290
3296
  children: [
3291
3297
  e.children,
3292
- u() === "error" ? /* @__PURE__ */ s(
3298
+ c() === "error" ? /* @__PURE__ */ s(
3293
3299
  $,
3294
3300
  {
3295
3301
  path: "errorMessage",
@@ -3297,7 +3303,7 @@ function Fn(e) {
3297
3303
  context: e.builderContext
3298
3304
  }
3299
3305
  ) : null,
3300
- u() === "sending" ? /* @__PURE__ */ s(
3306
+ c() === "sending" ? /* @__PURE__ */ s(
3301
3307
  $,
3302
3308
  {
3303
3309
  path: "sendingMessage",
@@ -3305,8 +3311,8 @@ function Fn(e) {
3305
3311
  context: e.builderContext
3306
3312
  }
3307
3313
  ) : null,
3308
- u() === "error" && a ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7acc3b46", children: JSON.stringify(a, null, 2) }) : null,
3309
- u() === "success" ? /* @__PURE__ */ s(
3314
+ c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7acc3b46", children: JSON.stringify(o, null, 2) }) : null,
3315
+ c() === "success" ? /* @__PURE__ */ s(
3310
3316
  $,
3311
3317
  {
3312
3318
  path: "successMessage",
@@ -3322,7 +3328,7 @@ function Fn(e) {
3322
3328
  " "
3323
3329
  ] });
3324
3330
  }
3325
- const On = {
3331
+ const Ln = {
3326
3332
  name: "Form:Input",
3327
3333
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
3328
3334
  inputs: [
@@ -3374,8 +3380,8 @@ const On = {
3374
3380
  borderColor: "#ccc"
3375
3381
  }
3376
3382
  };
3377
- function Ln(e) {
3378
- return /* @__PURE__ */ Ne(
3383
+ function Un(e) {
3384
+ return /* @__PURE__ */ We(
3379
3385
  "input",
3380
3386
  {
3381
3387
  ...e.attributes,
@@ -3389,7 +3395,7 @@ function Ln(e) {
3389
3395
  }
3390
3396
  );
3391
3397
  }
3392
- const Un = {
3398
+ const _n = {
3393
3399
  name: "Form:Select",
3394
3400
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
3395
3401
  defaultStyles: {
@@ -3432,9 +3438,9 @@ const Un = {
3432
3438
  static: !0,
3433
3439
  noWrap: !0
3434
3440
  };
3435
- function _n(e) {
3441
+ function qn(e) {
3436
3442
  var t;
3437
- return /* @__PURE__ */ Ne(
3443
+ return /* @__PURE__ */ We(
3438
3444
  "select",
3439
3445
  {
3440
3446
  ...e.attributes,
@@ -3447,7 +3453,7 @@ function _n(e) {
3447
3453
  (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
3448
3454
  );
3449
3455
  }
3450
- const qn = {
3456
+ const Mn = {
3451
3457
  name: "Form:SubmitButton",
3452
3458
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
3453
3459
  defaultStyles: {
@@ -3473,10 +3479,10 @@ const qn = {
3473
3479
  // TODO: defaultChildren
3474
3480
  // canHaveChildren: true,
3475
3481
  };
3476
- function Mn(e) {
3482
+ function Hn(e) {
3477
3483
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
3478
3484
  }
3479
- const Hn = {
3485
+ const jn = {
3480
3486
  name: "Form:TextArea",
3481
3487
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
3482
3488
  inputs: [{
@@ -3513,7 +3519,7 @@ const Hn = {
3513
3519
  static: !0,
3514
3520
  noWrap: !0
3515
3521
  };
3516
- function jn(e) {
3522
+ function zn(e) {
3517
3523
  return /* @__PURE__ */ s(
3518
3524
  "textarea",
3519
3525
  {
@@ -3526,7 +3532,7 @@ function jn(e) {
3526
3532
  }
3527
3533
  );
3528
3534
  }
3529
- const zn = {
3535
+ const Kn = {
3530
3536
  // friendlyName?
3531
3537
  name: "Raw:Img",
3532
3538
  hideFromInsertMenu: !0,
@@ -3541,7 +3547,7 @@ const zn = {
3541
3547
  noWrap: !0,
3542
3548
  static: !0
3543
3549
  };
3544
- function Kn(e) {
3550
+ function Jn(e) {
3545
3551
  return /* @__PURE__ */ s(
3546
3552
  "img",
3547
3553
  {
@@ -3556,7 +3562,7 @@ function Kn(e) {
3556
3562
  A() && e.imgSrc || "default-key"
3557
3563
  );
3558
3564
  }
3559
- const Jn = {
3565
+ const Gn = {
3560
3566
  name: "Video",
3561
3567
  canHaveChildren: !0,
3562
3568
  defaultStyles: {
@@ -3567,7 +3573,7 @@ const Jn = {
3567
3573
  inputs: [{
3568
3574
  name: "video",
3569
3575
  type: "file",
3570
- allowedFileTypes: un,
3576
+ allowedFileTypes: dn,
3571
3577
  bubble: !0,
3572
3578
  defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
3573
3579
  required: !0
@@ -3641,8 +3647,8 @@ const Jn = {
3641
3647
  builderBlock: !0
3642
3648
  }
3643
3649
  };
3644
- function Gn(e) {
3645
- var r, l, d, u, h, g, c;
3650
+ function Qn(e) {
3651
+ var r, l, d, c, h, b, m;
3646
3652
  const t = O(null);
3647
3653
  function n() {
3648
3654
  return {
@@ -3668,31 +3674,31 @@ function Gn(e) {
3668
3674
  ...n()
3669
3675
  };
3670
3676
  }
3671
- const [a, o] = I(() => {
3677
+ const [o, a] = I(() => {
3672
3678
  });
3673
- return V(() => {
3679
+ return R(() => {
3674
3680
  if (e.lazyLoad) {
3675
- const v = new IntersectionObserver(function(f) {
3676
- f.forEach(function(b) {
3677
- if (!b.isIntersecting)
3681
+ const x = new IntersectionObserver(function(u) {
3682
+ u.forEach(function(g) {
3683
+ if (!g.isIntersecting)
3678
3684
  return;
3679
- const S = b.target;
3685
+ const v = g.target;
3680
3686
  try {
3681
- Array.from(S.children).filter(
3687
+ Array.from(v.children).filter(
3682
3688
  (p) => p instanceof HTMLElement && p.tagName === "SOURCE"
3683
3689
  ).forEach((p) => {
3684
3690
  const k = p.dataset.src;
3685
3691
  k && (p.src = k);
3686
- }), S.load(), v.unobserve(S);
3692
+ }), v.load(), x.unobserve(v);
3687
3693
  } catch (p) {
3688
3694
  console.error("Error loading lazy video:", p);
3689
3695
  }
3690
3696
  });
3691
3697
  });
3692
- t.current && v.observe(t.current), o(v);
3698
+ t.current && x.observe(t.current), a(x);
3693
3699
  }
3694
- }, []), V(() => () => {
3695
- a && a.disconnect();
3700
+ }, []), R(() => () => {
3701
+ o && o.disconnect();
3696
3702
  }, []), /* @__PURE__ */ B(
3697
3703
  "div",
3698
3704
  {
@@ -3745,7 +3751,7 @@ function Gn(e) {
3745
3751
  }
3746
3752
  }
3747
3753
  ) : null,
3748
- (h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? /* @__PURE__ */ s(
3754
+ (h = (c = e.builderBlock) == null ? void 0 : c.children) != null && h.length && e.fitContent ? /* @__PURE__ */ s(
3749
3755
  "div",
3750
3756
  {
3751
3757
  style: {
@@ -3756,7 +3762,7 @@ function Gn(e) {
3756
3762
  children: e.children
3757
3763
  }
3758
3764
  ) : null,
3759
- (c = (g = e.builderBlock) == null ? void 0 : g.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
3765
+ (m = (b = e.builderBlock) == null ? void 0 : b.children) != null && m.length && !e.fitContent ? /* @__PURE__ */ s(
3760
3766
  "div",
3761
3767
  {
3762
3768
  style: {
@@ -3777,67 +3783,67 @@ function Gn(e) {
3777
3783
  }
3778
3784
  );
3779
3785
  }
3780
- const Qn = () => [{
3781
- component: Pn,
3782
- ...Rn
3783
- }, {
3784
- component: Nn,
3785
- ...Vn
3786
+ const Yn = () => [{
3787
+ component: Vn,
3788
+ ...Pn
3786
3789
  }, {
3787
- component: Fn,
3788
- ...Wn
3790
+ component: Wn,
3791
+ ...Bn
3789
3792
  }, {
3790
- component: Ln,
3791
- ...On
3793
+ component: On,
3794
+ ...Dn
3792
3795
  }, {
3793
- component: Mn,
3794
- ...qn
3796
+ component: Un,
3797
+ ...Ln
3795
3798
  }, {
3796
- component: _n,
3797
- ...Un
3799
+ component: Hn,
3800
+ ...Mn
3798
3801
  }, {
3799
- component: jn,
3800
- ...Hn
3802
+ component: qn,
3803
+ ..._n
3801
3804
  }, {
3802
- component: Kn,
3803
- ...zn
3805
+ component: zn,
3806
+ ...jn
3804
3807
  }, {
3805
- component: Gn,
3806
- ...Jn
3807
- }], we = () => [{
3808
- component: lt,
3809
- ...ln
3808
+ component: Jn,
3809
+ ...Kn
3810
3810
  }, {
3811
- component: Xt,
3811
+ component: Qn,
3812
+ ...Gn
3813
+ }], Ie = () => [{
3814
+ component: st,
3812
3815
  ...sn
3813
3816
  }, {
3814
3817
  component: Zt,
3815
3818
  ...cn
3816
3819
  }, {
3817
- component: nn,
3818
- ...dn
3820
+ component: en,
3821
+ ...un
3819
3822
  }, {
3820
- component: an,
3821
- ...xn
3823
+ component: on,
3824
+ ...mn
3822
3825
  }, {
3823
- component: kn,
3826
+ component: an,
3824
3827
  ...Sn
3825
3828
  }, {
3826
- component: Si,
3827
- ...Cn
3829
+ component: Cn,
3830
+ ...kn
3828
3831
  }, {
3829
- component: En,
3830
- ...In
3832
+ component: ki,
3833
+ ...Tn
3831
3834
  }, {
3832
- component: vn,
3833
- ...mn
3835
+ component: Rn,
3836
+ ...En
3834
3837
  }, {
3835
- component: wn,
3836
- ...Tn
3838
+ component: xn,
3839
+ ...fn
3840
+ }, {
3841
+ component: In,
3842
+ ...wn
3837
3843
  }, {
3838
- component: rn,
3839
- ...on
3840
- }, ...Qn()], Yn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
3844
+ component: ln,
3845
+ ...rn
3846
+ }, ...Yn()], Xn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
3841
3847
  function getAndSetVariantId() {
3842
3848
  function setCookie(name, value, days) {
3843
3849
  let expires = '';
@@ -3896,7 +3902,7 @@ const Qn = () => [{
3896
3902
  }).join('');
3897
3903
  styleEl.innerHTML = newStyleStr;
3898
3904
  }
3899
- }`, Xn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3905
+ }`, Zn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3900
3906
  if (!navigator.cookieEnabled) {
3901
3907
  return;
3902
3908
  }
@@ -3930,29 +3936,29 @@ const Qn = () => [{
3930
3936
  thisScriptEl?.remove();
3931
3937
  }
3932
3938
  return;
3933
- }`, Je = "builderIoAbTest", Ge = "builderIoRenderContent", G = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3939
+ }`, Ge = "builderIoAbTest", Qe = "builderIoRenderContent", G = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3934
3940
  ...t,
3935
3941
  testVariationId: t.id,
3936
3942
  id: e == null ? void 0 : e.id
3937
- })), Zn = ({
3943
+ })), ei = ({
3938
3944
  canTrack: e,
3939
3945
  content: t
3940
- }) => !(!(G(t).length > 0) || !e || U()), ei = (e) => e === "react" || e === "reactNative", ti = L === "angular", Qe = ei(L), ni = () => `
3941
- window.${Je} = ${Yn}
3946
+ }) => !(!(G(t).length > 0) || !e || U()), ti = (e) => e === "react" || e === "reactNative", ni = L === "angular", Ye = ti(L), ii = () => `
3942
3947
  window.${Ge} = ${Xn}
3943
- `, ii = (e, t) => `
3944
- window.${Je}(
3945
- "${t}",${JSON.stringify(e)}, ${Qe}, ${ti}
3948
+ window.${Qe} = ${Zn}
3949
+ `, oi = (e, t) => `
3950
+ window.${Ge}(
3951
+ "${t}",${JSON.stringify(e)}, ${Ye}, ${ni}
3946
3952
  )`, ai = ({
3947
3953
  contentId: e,
3948
3954
  variationId: t
3949
- }) => `window.${Ge}(
3950
- "${t}", "${e}", ${Qe}
3955
+ }) => `window.${Qe}(
3956
+ "${t}", "${e}", ${Ye}
3951
3957
  )`;
3952
- function Ie(e) {
3958
+ function Ee(e) {
3953
3959
  return Math.round(e * 1e3) / 1e3;
3954
3960
  }
3955
- const oi = (e, t, n = !0) => {
3961
+ const ri = (e, t, n = !0) => {
3956
3962
  if (!(e instanceof HTMLElement))
3957
3963
  return null;
3958
3964
  let i = n ? e : e.parentElement;
@@ -3963,39 +3969,39 @@ const oi = (e, t, n = !0) => {
3963
3969
  return i;
3964
3970
  } while (i = i.parentElement);
3965
3971
  return null;
3966
- }, ri = (e) => oi(e, (t) => {
3972
+ }, li = (e) => ri(e, (t) => {
3967
3973
  const n = t.getAttribute("builder-id") || t.id;
3968
3974
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3969
- }), Ee = ({
3975
+ }), Re = ({
3970
3976
  event: e,
3971
3977
  target: t
3972
3978
  }) => {
3973
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, o = Ie(i / n.width), r = Ie(a / n.height);
3979
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = Ee(i / n.width), r = Ee(o / n.height);
3974
3980
  return {
3975
- x: o,
3981
+ x: a,
3976
3982
  y: r
3977
3983
  };
3978
- }, li = (e) => {
3979
- const t = e.target, n = t && ri(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3984
+ }, si = (e) => {
3985
+ const t = e.target, n = t && li(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3980
3986
  return {
3981
3987
  targetBuilderElement: i || void 0,
3982
3988
  metadata: {
3983
- targetOffset: t ? Ee({
3989
+ targetOffset: t ? Re({
3984
3990
  event: e,
3985
3991
  target: t
3986
3992
  }) : void 0,
3987
- builderTargetOffset: n ? Ee({
3993
+ builderTargetOffset: n ? Re({
3988
3994
  event: e,
3989
3995
  target: n
3990
3996
  }) : void 0,
3991
3997
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3992
3998
  }
3993
3999
  };
3994
- }, si = ["svelte", "qwik", "vue"], Re = () => si.includes(L) && (A() || Z()), ci = (e) => {
3995
- var o, r;
3996
- const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
3997
- let a = "";
3998
- if (i && t && n && (a += `
4000
+ }, ci = ["svelte", "qwik", "vue"], Pe = () => ci.includes(L) && (A() || Z()), ui = (e) => {
4001
+ var a, r;
4002
+ 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;
4003
+ let o = "";
4004
+ if (i && t && n && (o += `
3999
4005
  @font-face {
4000
4006
  font-family: "${t}";
4001
4007
  src: local("${n}"), url('${i}') format('woff2');
@@ -4006,26 +4012,26 @@ font-weight: 400;
4006
4012
  for (const l in e.files) {
4007
4013
  if (!(String(Number(l)) === l))
4008
4014
  continue;
4009
- const u = e.files[l];
4010
- u && u !== i && (a += `
4015
+ const c = e.files[l];
4016
+ c && c !== i && (o += `
4011
4017
  @font-face {
4012
4018
  font-family: "${t}";
4013
- src: url('${u}') format('woff2');
4019
+ src: url('${c}') format('woff2');
4014
4020
  font-display: fallback;
4015
4021
  font-weight: ${l};
4016
4022
  }
4017
4023
  `.trim());
4018
4024
  }
4019
- return a;
4020
- }, ui = ({
4025
+ return o;
4026
+ }, di = ({
4021
4027
  customFonts: e
4022
4028
  }) => {
4023
4029
  var t;
4024
- return ((t = e == null ? void 0 : e.map((n) => ci(n))) == null ? void 0 : t.join(" ")) || "";
4025
- }, di = ({
4030
+ return ((t = e == null ? void 0 : e.map((n) => ui(n))) == null ? void 0 : t.join(" ")) || "";
4031
+ }, mi = ({
4026
4032
  cssCode: e,
4027
4033
  contentId: t
4028
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", mi = `
4034
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", fi = `
4029
4035
  .builder-button {
4030
4036
  all: unset;
4031
4037
  }
@@ -4042,29 +4048,29 @@ font-weight: ${l};
4042
4048
  text-align: inherit;
4043
4049
  font-family: inherit;
4044
4050
  }
4045
- `, fi = (e) => e ? "" : mi, hi = (e) => `variant-${e}`;
4046
- function gi(e) {
4047
- var k, C, P;
4051
+ `, hi = (e) => e ? "" : fi, gi = (e) => `variant-${e}`;
4052
+ function bi(e) {
4053
+ var k, C, V;
4048
4054
  const t = O(null);
4049
4055
  I(() => !1);
4050
4056
  function n(w) {
4051
- var m, y;
4052
- const x = {
4057
+ var f, y;
4058
+ const S = {
4053
4059
  ...e.builderContextSignal.rootState,
4054
4060
  ...w
4055
4061
  };
4056
- e.builderContextSignal.rootSetState ? (y = (m = e.builderContextSignal).rootSetState) == null || y.call(m, x) : e.setBuilderContextSignal((T) => ({
4062
+ e.builderContextSignal.rootSetState ? (y = (f = e.builderContextSignal).rootSetState) == null || y.call(f, S) : e.setBuilderContextSignal((T) => ({
4057
4063
  ...T,
4058
- rootState: x
4064
+ rootState: S
4059
4065
  }));
4060
4066
  }
4061
4067
  function i(w) {
4062
- var m, y, T, E, N;
4063
- const x = {
4068
+ var f, y, T, E, N;
4069
+ const S = {
4064
4070
  ...e.builderContextSignal.content,
4065
4071
  ...w,
4066
4072
  data: {
4067
- ...(m = e.builderContextSignal.content) == null ? void 0 : m.data,
4073
+ ...(f = e.builderContextSignal.content) == null ? void 0 : f.data,
4068
4074
  ...w == null ? void 0 : w.data
4069
4075
  },
4070
4076
  meta: {
@@ -4075,49 +4081,49 @@ function gi(e) {
4075
4081
  };
4076
4082
  e.setBuilderContextSignal((W) => ({
4077
4083
  ...W,
4078
- content: x
4084
+ content: S
4079
4085
  }));
4080
4086
  }
4081
- function a() {
4087
+ function o() {
4082
4088
  return e.showContent ? {} : {
4083
4089
  hidden: !0,
4084
4090
  "aria-hidden": !0
4085
4091
  };
4086
4092
  }
4087
- const [o, r] = I(
4093
+ const [a, r] = I(
4088
4094
  () => e.contentWrapper || "div"
4089
4095
  );
4090
4096
  function l(w) {
4091
- return nt({
4097
+ return it({
4092
4098
  model: e.model,
4093
4099
  trustedHosts: e.trustedHosts,
4094
4100
  callbacks: {
4095
- configureSdk: (x) => {
4101
+ configureSdk: (S) => {
4096
4102
  var T;
4097
- const { breakpoints: m, contentId: y } = x;
4098
- !y || y !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || m && i({
4103
+ const { breakpoints: f, contentId: y } = S;
4104
+ !y || y !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || f && i({
4099
4105
  meta: {
4100
- breakpoints: m
4106
+ breakpoints: f
4101
4107
  }
4102
4108
  });
4103
4109
  },
4104
- animation: (x) => {
4105
- _e(x);
4110
+ animation: (S) => {
4111
+ qe(S);
4106
4112
  },
4107
- contentUpdate: (x) => {
4108
- i(x);
4113
+ contentUpdate: (S) => {
4114
+ i(S);
4109
4115
  },
4110
- stateUpdate: (x) => {
4111
- n(x);
4116
+ stateUpdate: (S) => {
4117
+ n(S);
4112
4118
  }
4113
4119
  }
4114
4120
  })(w);
4115
4121
  }
4116
- const [d, u] = I(() => ({})), [h, g] = I(() => ({})), [c, v] = I(() => !1);
4117
- function f(w) {
4118
- var x, m;
4122
+ const [d, c] = I(() => ({})), [h, b] = I(() => ({})), [m, x] = I(() => !1);
4123
+ function u(w) {
4124
+ var S, f;
4119
4125
  if (e.builderContextSignal.content) {
4120
- const y = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, T = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
4126
+ const y = (S = e.builderContextSignal.content) == null ? void 0 : S.testVariationId, T = (f = e.builderContextSignal.content) == null ? void 0 : f.id;
4121
4127
  pe({
4122
4128
  apiHost: e.apiHost,
4123
4129
  type: "click",
@@ -4125,15 +4131,15 @@ function gi(e) {
4125
4131
  contentId: T,
4126
4132
  apiKey: e.apiKey,
4127
4133
  variationId: y !== T ? y : void 0,
4128
- ...li(w),
4129
- unique: !c
4134
+ ...si(w),
4135
+ unique: !m
4130
4136
  });
4131
4137
  }
4132
- c || v(!0);
4138
+ m || x(!0);
4133
4139
  }
4134
- function b() {
4135
- var x, m, y;
4136
- const w = (y = (m = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : m.httpRequests) != null ? y : {};
4140
+ function g() {
4141
+ var S, f, y;
4142
+ const w = (y = (f = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : f.httpRequests) != null ? y : {};
4137
4143
  Object.entries(w).forEach(([T, E]) => {
4138
4144
  if (!E || h[T] || d[T] && !A())
4139
4145
  return;
@@ -4150,7 +4156,7 @@ function gi(e) {
4150
4156
  })
4151
4157
  )
4152
4158
  );
4153
- Ve(N), fetch(N).then((W) => W.json()).then((W) => {
4159
+ Be(N), fetch(N).then((W) => W.json()).then((W) => {
4154
4160
  n({
4155
4161
  [T]: W
4156
4162
  }), d[T] = !0;
@@ -4161,7 +4167,7 @@ function gi(e) {
4161
4167
  });
4162
4168
  });
4163
4169
  }
4164
- function S() {
4170
+ function v() {
4165
4171
  A() && window.dispatchEvent(
4166
4172
  new CustomEvent(
4167
4173
  "builder:component:stateChange",
@@ -4177,10 +4183,10 @@ function gi(e) {
4177
4183
  );
4178
4184
  }
4179
4185
  const p = O(!1);
4180
- return p.current || (b(), S(), p.current = !0), V(() => {
4181
- var w, x, m, y, T;
4186
+ return p.current || (g(), v(), p.current = !0), R(() => {
4187
+ var w, S, f, y, T;
4182
4188
  if (U()) {
4183
- A() && !e.isNestedRender && (window.addEventListener("message", l), Xe(), Ze({
4189
+ A() && !e.isNestedRender && (window.addEventListener("message", l), Ze(), et({
4184
4190
  ...e.locale ? {
4185
4191
  locale: e.locale
4186
4192
  } : {},
@@ -4197,17 +4203,17 @@ function gi(e) {
4197
4203
  ).forEach((D) => {
4198
4204
  var F, J;
4199
4205
  if (!((F = D.models) != null && F.length) || D.models.includes(e.model)) {
4200
- const ne = et(D);
4206
+ const ne = tt(D);
4201
4207
  (J = window.parent) == null || J.postMessage(ne, "*");
4202
4208
  }
4203
4209
  }), window.addEventListener(
4204
4210
  "builder:component:stateChangeListenerActivated",
4205
- S
4211
+ v
4206
4212
  ));
4207
- const E = e.builderContextSignal.content && j(e.canTrack), N = tt({
4208
- name: `builder.tests.${(x = e.builderContextSignal.content) == null ? void 0 : x.id}`,
4213
+ const E = e.builderContextSignal.content && j(e.canTrack), N = nt({
4214
+ name: `builder.tests.${(S = e.builderContextSignal.content) == null ? void 0 : S.id}`,
4209
4215
  canTrack: !0
4210
- }), W = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId;
4216
+ }), W = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId;
4211
4217
  if (E && W === N) {
4212
4218
  const D = (y = e.builderContextSignal.content) == null ? void 0 : y.id, F = e.apiKey;
4213
4219
  pe({
@@ -4223,7 +4229,7 @@ function gi(e) {
4223
4229
  const D = new URL(location.href).searchParams, F = D.get("builder.preview"), J = D.get(
4224
4230
  `builder.overrides.${F}`
4225
4231
  ), ne = D.get("apiKey") || D.get("builder.space");
4226
- (F === "BUILDER_STUDIO" || F === e.model && ne === e.apiKey && (!e.content || J === e.content.id)) && Be({
4232
+ (F === "BUILDER_STUDIO" || F === e.model && ne === e.apiKey && (!e.content || J === e.content.id)) && Ae({
4227
4233
  model: e.model,
4228
4234
  apiKey: e.apiKey,
4229
4235
  apiVersion: e.builderContextSignal.apiVersion,
@@ -4237,51 +4243,51 @@ function gi(e) {
4237
4243
  });
4238
4244
  }
4239
4245
  }
4240
- }, []), V(() => {
4246
+ }, []), R(() => {
4241
4247
  e.content && i(e.content);
4242
- }, [e.content]), V(() => {
4243
- S();
4244
- }, [e.builderContextSignal.rootState]), V(() => {
4248
+ }, [e.content]), R(() => {
4249
+ v();
4250
+ }, [e.builderContextSignal.rootState]), R(() => {
4245
4251
  e.data && n(e.data);
4246
- }, [e.data]), V(() => {
4252
+ }, [e.data]), R(() => {
4247
4253
  e.locale && n({
4248
4254
  locale: e.locale
4249
4255
  });
4250
- }, [e.locale]), V(() => () => {
4256
+ }, [e.locale]), R(() => () => {
4251
4257
  U() && (window.removeEventListener("message", l), window.removeEventListener(
4252
4258
  "builder:component:stateChangeListenerActivated",
4253
- S
4259
+ v
4254
4260
  ));
4255
- }, []), /* @__PURE__ */ s(de.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Re() ? /* @__PURE__ */ s(
4256
- o,
4261
+ }, []), /* @__PURE__ */ s(de.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Pe() ? /* @__PURE__ */ s(
4262
+ a,
4257
4263
  {
4258
4264
  ref: t,
4259
- onClick: (w) => f(w),
4265
+ onClick: (w) => u(w),
4260
4266
  "builder-content-id": (k = e.builderContextSignal.content) == null ? void 0 : k.id,
4261
4267
  "builder-model": e.model,
4262
- className: hi(
4263
- ((C = e.content) == null ? void 0 : C.testVariationId) || ((P = e.content) == null ? void 0 : P.id)
4268
+ className: gi(
4269
+ ((C = e.content) == null ? void 0 : C.testVariationId) || ((V = e.content) == null ? void 0 : V.id)
4264
4270
  ),
4265
4271
  style: {
4266
- display: !e.builderContextSignal.content && Re() ? "none" : void 0
4272
+ display: !e.builderContextSignal.content && Pe() ? "none" : void 0
4267
4273
  },
4268
- ...a(),
4274
+ ...o(),
4269
4275
  ...e.contentWrapperProps,
4270
4276
  children: e.children
4271
4277
  }
4272
4278
  ) : null });
4273
4279
  }
4274
- function bi(e) {
4280
+ function pi(e) {
4275
4281
  const [t, n] = I(
4276
4282
  () => `
4277
- ${di({
4283
+ ${mi({
4278
4284
  cssCode: e.cssCode,
4279
4285
  contentId: e.contentId
4280
4286
  })}
4281
- ${ui({
4287
+ ${di({
4282
4288
  customFonts: e.customFonts
4283
4289
  })}
4284
- ${fi(e.isNestedRender)}
4290
+ ${hi(e.isNestedRender)}
4285
4291
  `.trim()
4286
4292
  );
4287
4293
  return /* @__PURE__ */ s(
@@ -4293,24 +4299,24 @@ ${fi(e.isNestedRender)}
4293
4299
  }
4294
4300
  );
4295
4301
  }
4296
- const pi = ({
4302
+ const yi = ({
4297
4303
  content: e,
4298
4304
  data: t,
4299
4305
  locale: n
4300
4306
  }) => {
4301
- var o, r, l;
4302
- const i = {}, a = ((o = e == null ? void 0 : e.data) == null ? void 0 : o.state) || {};
4307
+ var a, r, l;
4308
+ const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
4303
4309
  return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((d) => {
4304
4310
  d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
4305
4311
  }), {
4306
4312
  ...i,
4307
- ...a,
4313
+ ...o,
4308
4314
  ...t,
4309
4315
  ...n ? {
4310
4316
  locale: n
4311
4317
  } : {}
4312
4318
  };
4313
- }, yi = ({
4319
+ }, vi = ({
4314
4320
  content: e,
4315
4321
  data: t
4316
4322
  }) => e ? {
@@ -4321,8 +4327,8 @@ const pi = ({
4321
4327
  },
4322
4328
  meta: e == null ? void 0 : e.meta
4323
4329
  } : void 0;
4324
- function Pe(e) {
4325
- var u, h, g, c, v, f, b, S, p;
4330
+ function Ve(e) {
4331
+ var c, h, b, m, x, u, g, v, p;
4326
4332
  const [t, n] = I(
4327
4333
  () => {
4328
4334
  var k, C;
@@ -4340,27 +4346,27 @@ function Pe(e) {
4340
4346
  rootState: k
4341
4347
  }));
4342
4348
  }
4343
- const [a, o] = I(
4349
+ const [o, a] = I(
4344
4350
  () => [
4345
- ...we(),
4351
+ ...Ie(),
4346
4352
  ...e.customComponents || []
4347
4353
  ].reduce(
4348
- (k, { component: C, ...P }) => ({
4354
+ (k, { component: C, ...V }) => ({
4349
4355
  ...k,
4350
- [P.name]: {
4356
+ [V.name]: {
4351
4357
  component: C,
4352
- ...ye(P)
4358
+ ...ye(V)
4353
4359
  }
4354
4360
  }),
4355
4361
  {}
4356
4362
  )
4357
4363
  ), [r, l] = I(() => ({
4358
- content: yi({
4364
+ content: vi({
4359
4365
  content: e.content,
4360
4366
  data: e.data
4361
4367
  }),
4362
4368
  localState: void 0,
4363
- rootState: pi({
4369
+ rootState: yi({
4364
4370
  content: e.content,
4365
4371
  data: e.data,
4366
4372
  locale: e.locale
@@ -4371,12 +4377,12 @@ function Pe(e) {
4371
4377
  apiKey: e.apiKey,
4372
4378
  apiVersion: e.apiVersion,
4373
4379
  componentInfos: [
4374
- ...we(),
4380
+ ...Ie(),
4375
4381
  ...e.customComponents || []
4376
4382
  ].reduce(
4377
- (k, { component: C, ...P }) => ({
4383
+ (k, { component: C, ...V }) => ({
4378
4384
  ...k,
4379
- [P.name]: ye(P)
4385
+ [V.name]: ye(V)
4380
4386
  }),
4381
4387
  {}
4382
4388
  ),
@@ -4390,7 +4396,7 @@ function Pe(e) {
4390
4396
  e.apiKey || _.error(
4391
4397
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4392
4398
  );
4393
- const k = (h = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : h.jsCode;
4399
+ const k = (h = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
4394
4400
  k && q({
4395
4401
  code: k,
4396
4402
  context: e.context || {},
@@ -4403,13 +4409,13 @@ function Pe(e) {
4403
4409
  }), d.current = !0;
4404
4410
  }
4405
4411
  return /* @__PURE__ */ s(
4406
- We.Provider,
4412
+ De.Provider,
4407
4413
  {
4408
4414
  value: {
4409
- registeredComponents: a
4415
+ registeredComponents: o
4410
4416
  },
4411
4417
  children: /* @__PURE__ */ B(
4412
- gi,
4418
+ bi,
4413
4419
  {
4414
4420
  apiHost: e.apiHost,
4415
4421
  nonce: e.nonce,
@@ -4438,21 +4444,21 @@ function Pe(e) {
4438
4444
  }
4439
4445
  ) : null,
4440
4446
  /* @__PURE__ */ s(
4441
- bi,
4447
+ pi,
4442
4448
  {
4443
4449
  nonce: e.nonce || "",
4444
4450
  isNestedRender: e.isNestedRender,
4445
- contentId: (g = r.content) == null ? void 0 : g.id,
4446
- cssCode: (v = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : v.cssCode,
4447
- customFonts: (b = (f = r.content) == null ? void 0 : f.data) == null ? void 0 : b.customFonts
4451
+ contentId: (b = r.content) == null ? void 0 : b.id,
4452
+ cssCode: (x = (m = r.content) == null ? void 0 : m.data) == null ? void 0 : x.cssCode,
4453
+ customFonts: (g = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : g.customFonts
4448
4454
  }
4449
4455
  ),
4450
4456
  /* @__PURE__ */ s(
4451
4457
  $,
4452
4458
  {
4453
- blocks: (p = (S = r.content) == null ? void 0 : S.data) == null ? void 0 : p.blocks,
4459
+ blocks: (p = (v = r.content) == null ? void 0 : v.data) == null ? void 0 : p.blocks,
4454
4460
  context: r,
4455
- registeredComponents: a,
4461
+ registeredComponents: o,
4456
4462
  linkComponent: e.linkComponent
4457
4463
  }
4458
4464
  )
@@ -4462,17 +4468,17 @@ function Pe(e) {
4462
4468
  }
4463
4469
  );
4464
4470
  }
4465
- function vi(e) {
4471
+ function xi(e) {
4466
4472
  var r;
4467
4473
  const [t, n] = I(
4468
- () => Zn({
4474
+ () => ei({
4469
4475
  canTrack: j(e.canTrack),
4470
4476
  content: e.content
4471
4477
  })
4472
4478
  );
4473
4479
  function i() {
4474
4480
  var l;
4475
- return ii(
4481
+ return oi(
4476
4482
  G(e.content).map((d) => ({
4477
4483
  id: d.testVariationId,
4478
4484
  testRatio: d.testRatio
@@ -4480,35 +4486,35 @@ function vi(e) {
4480
4486
  ((l = e.content) == null ? void 0 : l.id) || ""
4481
4487
  );
4482
4488
  }
4483
- function a() {
4489
+ function o() {
4484
4490
  return G(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
4485
4491
  }
4486
- function o() {
4492
+ function a() {
4487
4493
  var l;
4488
4494
  return t ? {
4489
4495
  ...e.content,
4490
4496
  testVariationId: (l = e.content) == null ? void 0 : l.id
4491
- } : it({
4497
+ } : ot({
4492
4498
  item: e.content,
4493
4499
  canTrack: j(e.canTrack)
4494
4500
  });
4495
4501
  }
4496
- return V(() => {
4497
- }, []), /* @__PURE__ */ B(R, { children: [
4502
+ return R(() => {
4503
+ }, []), /* @__PURE__ */ B(P, { children: [
4498
4504
  !e.isNestedRender && L !== "reactNative" ? /* @__PURE__ */ s(
4499
4505
  X,
4500
4506
  {
4501
4507
  id: "builderio-init-variants-fns",
4502
- scriptStr: ni(),
4508
+ scriptStr: ii(),
4503
4509
  nonce: e.nonce || ""
4504
4510
  }
4505
4511
  ) : null,
4506
- t ? /* @__PURE__ */ B(R, { children: [
4512
+ t ? /* @__PURE__ */ B(P, { children: [
4507
4513
  /* @__PURE__ */ s(
4508
4514
  K,
4509
4515
  {
4510
4516
  id: "builderio-variants",
4511
- styles: a(),
4517
+ styles: o(),
4512
4518
  nonce: e.nonce || ""
4513
4519
  }
4514
4520
  ),
@@ -4521,7 +4527,7 @@ function vi(e) {
4521
4527
  }
4522
4528
  ),
4523
4529
  (r = G(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
4524
- Pe,
4530
+ Ve,
4525
4531
  {
4526
4532
  apiHost: e.apiHost,
4527
4533
  isNestedRender: e.isNestedRender,
@@ -4549,12 +4555,12 @@ function vi(e) {
4549
4555
  ))
4550
4556
  ] }) : null,
4551
4557
  /* @__PURE__ */ s(
4552
- Pe,
4558
+ Ve,
4553
4559
  {
4554
4560
  apiHost: e.apiHost,
4555
4561
  nonce: e.nonce,
4556
4562
  isNestedRender: e.isNestedRender,
4557
- content: o(),
4563
+ content: a(),
4558
4564
  showContent: !0,
4559
4565
  model: e.model,
4560
4566
  data: e.data,
@@ -4576,13 +4582,13 @@ function vi(e) {
4576
4582
  )
4577
4583
  ] });
4578
4584
  }
4579
- const xi = async ({
4585
+ const Si = async ({
4580
4586
  builderContextValue: e,
4581
4587
  symbol: t
4582
4588
  }) => {
4583
4589
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4584
4590
  (e != null && e.apiKey))
4585
- return Be({
4591
+ return Ae({
4586
4592
  model: t.model,
4587
4593
  apiKey: e.apiKey,
4588
4594
  apiVersion: e.apiVersion,
@@ -4595,8 +4601,8 @@ const xi = async ({
4595
4601
  _.error("Could not fetch symbol content: ", n);
4596
4602
  });
4597
4603
  };
4598
- function Si(e) {
4599
- var l, d, u, h, g;
4604
+ function ki(e) {
4605
+ var c, h, b, m, x;
4600
4606
  function t() {
4601
4607
  return "div";
4602
4608
  }
@@ -4604,31 +4610,36 @@ function Si(e) {
4604
4610
  return "div";
4605
4611
  }
4606
4612
  function i() {
4607
- var c, v;
4613
+ var u, g;
4608
4614
  return [
4609
4615
  e.attributes[z()],
4610
4616
  "builder-symbol",
4611
- (c = e.symbol) != null && c.inline ? "builder-inline-symbol" : void 0,
4612
- (v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4617
+ (u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
4618
+ (g = e.symbol) != null && g.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4613
4619
  ].filter(Boolean).join(" ");
4614
4620
  }
4615
- const [a, o] = I(() => {
4616
- var c;
4617
- return (c = e.symbol) == null ? void 0 : c.content;
4621
+ const [o, a] = I(() => {
4622
+ var u;
4623
+ return (u = e.symbol) == null ? void 0 : u.content;
4624
+ }), [r, l] = I(() => {
4625
+ var u;
4626
+ return (u = e.symbol) == null ? void 0 : u.entry;
4618
4627
  });
4619
- function r() {
4620
- a || xi({
4628
+ function d() {
4629
+ var u;
4630
+ o && r === ((u = e.symbol) == null ? void 0 : u.entry) || Si({
4621
4631
  symbol: e.symbol,
4622
4632
  builderContextValue: e.builderContext
4623
- }).then((c) => {
4624
- c && o(c);
4633
+ }).then((g) => {
4634
+ var v;
4635
+ g && (a(g), l((v = e.symbol) == null ? void 0 : v.entry));
4625
4636
  });
4626
4637
  }
4627
- return V(() => {
4628
- }, []), V(() => {
4629
- r();
4638
+ return R(() => {
4639
+ }, []), R(() => {
4640
+ d();
4630
4641
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
4631
- vi,
4642
+ xi,
4632
4643
  {
4633
4644
  nonce: e.builderContext.nonce,
4634
4645
  isNestedRender: !0,
@@ -4636,17 +4647,17 @@ function Si(e) {
4636
4647
  apiKey: e.builderContext.apiKey,
4637
4648
  context: {
4638
4649
  ...e.builderContext.context,
4639
- symbolId: (l = e.builderBlock) == null ? void 0 : l.id
4650
+ symbolId: (c = e.builderBlock) == null ? void 0 : c.id
4640
4651
  },
4641
4652
  customComponents: Object.values(e.builderComponents),
4642
4653
  data: {
4643
- ...(d = e.symbol) == null ? void 0 : d.data,
4654
+ ...(h = e.symbol) == null ? void 0 : h.data,
4644
4655
  ...e.builderContext.localState,
4645
- ...(u = a == null ? void 0 : a.data) == null ? void 0 : u.state
4656
+ ...(b = o == null ? void 0 : o.data) == null ? void 0 : b.state
4646
4657
  },
4647
4658
  canTrack: e.builderContext.canTrack,
4648
- model: (g = (h = e.symbol) == null ? void 0 : h.model) != null ? g : "",
4649
- content: a,
4659
+ model: (x = (m = e.symbol) == null ? void 0 : m.model) != null ? x : "",
4660
+ content: o,
4650
4661
  linkComponent: e.builderLinkComponent,
4651
4662
  blocksWrapper: t(),
4652
4663
  contentWrapper: n()
@@ -4656,14 +4667,14 @@ function Si(e) {
4656
4667
  export {
4657
4668
  $ as Blocks,
4658
4669
  de as BuilderContext,
4659
- lt as Button,
4660
- Xt as Columns,
4661
- vi as Content,
4662
- Zt as Fragment,
4663
- nn as Image,
4670
+ st as Button,
4671
+ Zt as Columns,
4672
+ xi as Content,
4673
+ en as Fragment,
4674
+ on as Image,
4664
4675
  an as Section,
4665
- Si as Symbol,
4666
- En as Text,
4667
- Gn as Video,
4668
- Ei as setClientUserAttributes
4676
+ ki as Symbol,
4677
+ Rn as Text,
4678
+ Qn as Video,
4679
+ Ri as setClientUserAttributes
4669
4680
  };