@builder.io/sdk-react 4.2.2 → 4.2.4

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 (85) hide show
  1. package/lib/browser/blocks-exports.cjs +30 -30
  2. package/lib/browser/blocks-exports.mjs +676 -623
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/{server-entry-074665de.js → server-entry-1c122812.js} +248 -246
  6. package/lib/browser/server-entry-4452b993.cjs +2 -0
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/{accordion-0768e15a.cjs → accordion-3f30d417.cjs} +1 -1
  10. package/lib/edge/{accordion-d3831f48.js → accordion-48a5b362.js} +1 -1
  11. package/lib/edge/{blocks-2af1d7c9.cjs → blocks-3024bb2c.cjs} +14 -14
  12. package/lib/edge/{blocks-0269007e.js → blocks-729e6331.js} +735 -721
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +2 -2
  15. package/lib/edge/{button-a478ff1a.js → button-36cacb47.js} +2 -2
  16. package/lib/edge/{button-050f4fef.cjs → button-8ab624e2.cjs} +1 -1
  17. package/lib/edge/{columns-25375990.cjs → columns-0d6d8b29.cjs} +1 -1
  18. package/lib/edge/{columns-0b3181f1.js → columns-597b4a0e.js} +3 -3
  19. package/lib/edge/{content-variants-0dd65b50.js → content-variants-78e04173.js} +142 -108
  20. package/lib/edge/{content-variants-4cab7215.cjs → content-variants-b2c99976.cjs} +3 -3
  21. package/lib/edge/{custom-code-f7a0f1c1.js → custom-code-0a11f81d.js} +1 -1
  22. package/lib/edge/{custom-code-eb5aedd2.cjs → custom-code-1d8040fe.cjs} +1 -1
  23. package/lib/edge/{embed-e4979560.js → embed-5b2461a4.js} +1 -1
  24. package/lib/edge/{embed-69114c35.cjs → embed-89e540df.cjs} +1 -1
  25. package/lib/edge/{form-7b4bd399.cjs → form-46264810.cjs} +1 -1
  26. package/lib/edge/{form-30fba682.js → form-4f5ea678.js} +3 -3
  27. package/lib/edge/{get-class-prop-name-f470d5ce.cjs → get-class-prop-name-a8c4e896.cjs} +1 -1
  28. package/lib/edge/{get-class-prop-name-770bdff2.js → get-class-prop-name-e31571bf.js} +1 -1
  29. package/lib/edge/image-cce92f6c.cjs +17 -0
  30. package/lib/edge/image-d87761af.js +123 -0
  31. package/lib/edge/img-194b08ce.js +33 -0
  32. package/lib/edge/img-821534bf.cjs +1 -0
  33. package/lib/edge/index.cjs +1 -1
  34. package/lib/edge/index.mjs +1 -1
  35. package/lib/edge/{input-a6caf021.cjs → input-6d65470b.cjs} +1 -1
  36. package/lib/edge/{input-e4a9fe0b.js → input-cfd5294a.js} +1 -1
  37. package/lib/edge/{personalization-container-64f3cd71.js → personalization-container-0d92ab21.js} +4 -4
  38. package/lib/edge/{personalization-container-f7030f08.cjs → personalization-container-74138dc4.cjs} +1 -1
  39. package/lib/edge/{select-c217566c.cjs → select-cec6b7d9.cjs} +1 -1
  40. package/lib/edge/{select-c59c9ac6.js → select-d665e4e4.js} +1 -1
  41. package/lib/edge/server-entry-d79ba493.cjs +2 -0
  42. package/lib/{node/server-entry-83d3751d.js → edge/server-entry-fec7344c.js} +307 -307
  43. package/lib/edge/server-entry.cjs +1 -1
  44. package/lib/edge/server-entry.mjs +1 -1
  45. package/lib/edge/{slot-ccd946e2.cjs → slot-4ad8e165.cjs} +1 -1
  46. package/lib/edge/{slot-26ec2911.js → slot-f2279693.js} +3 -3
  47. package/lib/edge/{symbol-4548e942.cjs → symbol-064c9433.cjs} +1 -1
  48. package/lib/edge/{symbol-10cb2f77.js → symbol-93b85799.js} +2 -2
  49. package/lib/edge/{tabs-f9110171.js → tabs-d87f99ab.js} +3 -3
  50. package/lib/edge/{tabs-82a9170c.cjs → tabs-f81e3a59.cjs} +1 -1
  51. package/lib/node/blocks-exports.cjs +32 -32
  52. package/lib/node/blocks-exports.mjs +821 -768
  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/{edge/server-entry-fb5f2b80.js → node/server-entry-b75016aa.js} +346 -342
  58. package/lib/node/server-entry-fec6b9d9.cjs +2 -0
  59. package/lib/node/server-entry.cjs +1 -1
  60. package/lib/node/server-entry.mjs +1 -1
  61. package/lib/node/{setIvm-596668c3.js → setIvm-6290921a.js} +1 -1
  62. package/lib/node/{setIvm-0a5b2ba2.cjs → setIvm-9ebbab5f.cjs} +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-5b9e373d.cjs → should-force-browser-runtime-in-node-209c023a.cjs} +1 -1
  66. package/lib/node/{should-force-browser-runtime-in-node-180c3315.js → should-force-browser-runtime-in-node-4ca1840a.js} +1 -1
  67. package/package.json +1 -1
  68. package/types/blocks/img/img.d.ts +2 -0
  69. package/types/components/block/components/live-edit-block-styles.d.ts +8 -0
  70. package/types/components/block/components/style-wrapper.d.ts +9 -0
  71. package/types/components/live-edit.d.ts +9 -0
  72. package/types/constants/sdk-version.d.ts +1 -1
  73. package/types/functions/get-builder-search-params/index.d.ts +8 -2
  74. package/types/functions/is-previewing.d.ts +11 -1
  75. package/types/helpers/find-block.d.ts +18 -0
  76. package/types/helpers/subscribe-to-editor.d.ts +3 -2
  77. package/lib/browser/server-entry-06504dba.cjs +0 -2
  78. package/lib/edge/image-209835f4.js +0 -94
  79. package/lib/edge/image-87a4e006.cjs +0 -17
  80. package/lib/edge/image.helpers-3e926d47.js +0 -33
  81. package/lib/edge/image.helpers-dba8a869.cjs +0 -1
  82. package/lib/edge/img-3bb375bf.js +0 -28
  83. package/lib/edge/img-ddf74e12.cjs +0 -1
  84. package/lib/edge/server-entry-67200cf1.cjs +0 -2
  85. package/lib/node/server-entry-d40e4b66.cjs +0 -2
@@ -1,14 +1,14 @@
1
1
  "use client";
2
- import { TARGET as O, isEditing as _, isBrowser as K, getUserAttributes as ct, checkIsDefined as ae, logger as Q, isPreviewing as se, userAttributesService as Ce, getDefaultCanTrack as ee, logFetch as Fe, setupBrowserForEditing as ut, createRegisterComponentMessage as dt, getCookieSync as mt, _track as Te, fetchOneEntry as Le, createEditorListener as ft, serializeIncludingFunctions as Ie, handleABTestingSync as ht } from "./server-entry-074665de.js";
3
- import { setClientUserAttributes as Hi } from "./server-entry-074665de.js";
4
- import { jsx as s, Fragment as P, jsxs as D } from "react/jsx-runtime";
5
- import * as gt from "react";
6
- import { createContext as _e, useEffect as N, useState as k, useRef as z, useContext as we, createElement as Ue } from "react";
7
- const bt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), yt = (e) => typeof e == "string" && bt.has(e.toLowerCase());
8
- function ye(e) {
9
- return /* @__PURE__ */ s(P, { children: yt(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 }) }) });
2
+ import { TARGET as O, isEditing as _, isBrowser as J, getUserAttributes as ut, checkIsDefined as oe, logger as Q, isPreviewing as le, userAttributesService as Te, getDefaultCanTrack as ee, logFetch as Le, setupBrowserForEditing as dt, createRegisterComponentMessage as mt, getCookieSync as ft, _track as Ie, fetchOneEntry as _e, createEditorListener as ht, serializeIncludingFunctions as we, handleABTestingSync as gt } from "./server-entry-1c122812.js";
3
+ import { setClientUserAttributes as Mi } from "./server-entry-1c122812.js";
4
+ import { jsx as s, Fragment as w, jsxs as D } from "react/jsx-runtime";
5
+ import * as bt from "react";
6
+ import { createContext as Ue, useEffect as N, useState as k, useContext as ye, useRef as z, createElement as He } from "react";
7
+ const yt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), pt = (e) => typeof e == "string" && yt.has(e.toLowerCase());
8
+ function ve(e) {
9
+ return /* @__PURE__ */ s(w, { children: pt(e.TagName) ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(w, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
10
10
  }
11
- const G = () => {
11
+ const K = () => {
12
12
  switch (O) {
13
13
  case "react":
14
14
  case "reactNative":
@@ -22,11 +22,11 @@ const G = () => {
22
22
  return "class";
23
23
  }
24
24
  };
25
- function pt(e) {
25
+ function vt(e) {
26
26
  function t() {
27
27
  return {
28
28
  ...e.attributes,
29
- [G()]: `${e.link ? "" : "builder-button"} ${e.attributes[G()] || ""}`,
29
+ [K()]: `${e.link ? "" : "builder-button"} ${e.attributes[K()] || ""}`,
30
30
  ...e.link ? {
31
31
  href: e.link,
32
32
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -37,7 +37,7 @@ function pt(e) {
37
37
  };
38
38
  }
39
39
  return /* @__PURE__ */ s(
40
- ye,
40
+ ve,
41
41
  {
42
42
  attributes: t(),
43
43
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
@@ -46,7 +46,7 @@ function pt(e) {
46
46
  }
47
47
  );
48
48
  }
49
- const pe = _e({
49
+ const se = Ue({
50
50
  content: null,
51
51
  context: {},
52
52
  localState: void 0,
@@ -61,10 +61,10 @@ const pe = _e({
61
61
  BlocksWrapperProps: {},
62
62
  nonce: "",
63
63
  model: ""
64
- }), He = _e({ registeredComponents: {} }), Me = (e, t, n) => {
64
+ }), Me = Ue({ registeredComponents: {} }), qe = (e, t, n) => {
65
65
  const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, o) => r != null ? r[o] : r, e);
66
66
  return i === void 0 || i === e ? n : i;
67
- }, vt = ({
67
+ }, xt = ({
68
68
  builder: e,
69
69
  context: t,
70
70
  event: n,
@@ -76,15 +76,15 @@ const pe = _e({
76
76
  builder: e,
77
77
  context: t,
78
78
  event: n
79
- }), xt = () => ({
79
+ }), St = () => ({
80
80
  isEditing: _(),
81
- isBrowser: K(),
82
- isServer: !K(),
83
- getUserAttributes: () => ct()
84
- }), St = (e, {
81
+ isBrowser: J(),
82
+ isServer: !J(),
83
+ getUserAttributes: () => ut()
84
+ }), kt = (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 qe({
87
+ function je({
88
88
  rootState: e,
89
89
  localState: t,
90
90
  rootSetState: n
@@ -94,7 +94,7 @@ function qe({
94
94
  if (t && r in t)
95
95
  return t[r];
96
96
  const o = i[r];
97
- return typeof o == "object" && o !== null ? qe({
97
+ return typeof o == "object" && o !== null ? je({
98
98
  rootState: o,
99
99
  localState: void 0,
100
100
  rootSetState: n ? (a) => {
@@ -118,11 +118,11 @@ const Ee = ({
118
118
  rootSetState: o,
119
119
  rootState: a
120
120
  }) => {
121
- const l = vt({
121
+ const l = xt({
122
122
  builder: t,
123
123
  context: n,
124
124
  event: i,
125
- state: qe({
125
+ state: je({
126
126
  rootState: a,
127
127
  localState: r,
128
128
  rootSetState: o
@@ -130,23 +130,23 @@ const Ee = ({
130
130
  });
131
131
  return new Function(...l.map(([c]) => c), e)(...l.map(([, c]) => c));
132
132
  };
133
- function kt() {
133
+ function Ct() {
134
134
  var e;
135
- return typeof process != "undefined" && ae((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
135
+ return typeof process != "undefined" && oe((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
136
136
  }
137
- const Ct = ({
137
+ const Tt = ({
138
138
  shouldLogWarning: e
139
139
  }) => {
140
140
  var r;
141
- if (!kt())
141
+ if (!Ct())
142
142
  return !1;
143
143
  const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
144
144
  return t && n && !i ? (e && Q.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
- }, Tt = (e) => (K() || Ct({
145
+ }, It = (e) => (J() || Tt({
146
146
  shouldLogWarning: !0
147
- }), Ee(e)), It = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, wt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Et = (e) => {
147
+ }), Ee(e)), wt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Et = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Rt = (e) => {
148
148
  var t, n, i, r, o, a;
149
- return ((i = (n = (t = It.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((a = (o = (r = wt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : o.getPath) == null ? void 0 : a.slice(1));
149
+ return ((i = (n = (t = wt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((a = (o = (r = Et.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : o.getPath) == null ? void 0 : a.slice(1));
150
150
  };
151
151
  function Y({
152
152
  code: e,
@@ -159,17 +159,17 @@ function Y({
159
159
  }) {
160
160
  if (e.trim() === "")
161
161
  return;
162
- const l = Et(e.trim());
162
+ const l = Rt(e.trim());
163
163
  if (l)
164
- return Me({
164
+ return qe({
165
165
  ...i,
166
166
  ...n
167
167
  }, l);
168
168
  const c = {
169
- code: St(e, {
169
+ code: kt(e, {
170
170
  isExpression: a
171
171
  }),
172
- builder: xt(),
172
+ builder: St(),
173
173
  context: t,
174
174
  event: o,
175
175
  rootSetState: r,
@@ -177,7 +177,7 @@ function Y({
177
177
  localState: n
178
178
  };
179
179
  try {
180
- return Tt(c);
180
+ return It(c);
181
181
  } catch (d) {
182
182
  Q.error("Failed code evaluation: " + d.message, {
183
183
  code: e
@@ -185,15 +185,15 @@ function Y({
185
185
  return;
186
186
  }
187
187
  }
188
- function Rt(e, t) {
188
+ function Pt(e, t) {
189
189
  var n;
190
190
  return {
191
191
  ...(n = e.component) == null ? void 0 : n.options,
192
192
  ...e.options,
193
- ...Pt(e, t)
193
+ ...Vt(e, t)
194
194
  };
195
195
  }
196
- const Pt = (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 {
@@ -207,13 +207,13 @@ const Pt = (e, t) => {
207
207
  }))
208
208
  };
209
209
  };
210
- function Vt(e, ...t) {
210
+ function At(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 le(e, t, n = null, i = null, r = /* @__PURE__ */ new WeakSet()) {
216
+ function ae(e, t, n = null, i = null, r = /* @__PURE__ */ new WeakSet()) {
217
217
  if (e == null || typeof e != "object") {
218
218
  t(e, (o) => {
219
219
  n !== null && i !== null && (n[i] = o);
@@ -223,58 +223,58 @@ function le(e, t, n = null, i = null, r = /* @__PURE__ */ new WeakSet()) {
223
223
  r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((o, a) => {
224
224
  t(o, (c) => {
225
225
  e[a] = c;
226
- }), le(o, t, e, a, r);
226
+ }), ae(o, t, e, a, r);
227
227
  }) : Object.entries(e).forEach(([o, a]) => {
228
228
  t(a, (c) => {
229
229
  e[o] = c;
230
- }), le(a, t, e, o, r);
230
+ }), ae(a, t, e, o, r);
231
231
  }));
232
232
  }
233
- function je(e) {
233
+ function ze(e) {
234
234
  return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
235
235
  }
236
- function At(e) {
236
+ function Bt(e) {
237
237
  if (!e || !Object.getOwnPropertyNames(e).length)
238
238
  return !1;
239
239
  let t = !1;
240
- return le(e, (n) => {
241
- if (je(n)) {
240
+ return ae(e, (n) => {
241
+ if (ze(n)) {
242
242
  t = !0;
243
243
  return;
244
244
  }
245
245
  }), t;
246
246
  }
247
- function Bt(e, t) {
248
- return !e || !Object.getOwnPropertyNames(e).length ? {} : (le(e, (n, i) => {
247
+ function Nt(e, t) {
248
+ return !e || !Object.getOwnPropertyNames(e).length ? {} : (ae(e, (n, i) => {
249
249
  var r;
250
- je(n) && i((r = n[t]) != null ? r : void 0);
250
+ ze(n) && i((r = n[t]) != null ? r : void 0);
251
251
  }), e);
252
252
  }
253
- function Nt(e, t) {
253
+ function Wt(e, t) {
254
254
  var n, i;
255
- return (n = e.component) != null && n.options && At((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 = Bt(e.component.options, t != null ? t : "Default")), e;
255
+ return (n = e.component) != null && n.options && Bt((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 = Nt(e.component.options, t != null ? t : "Default")), e;
256
256
  }
257
- const ve = (e) => JSON.parse(JSON.stringify(e)), ze = (e, t, n) => {
257
+ const xe = (e) => JSON.parse(JSON.stringify(e)), Ke = (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
261
  return i.slice(0, -1).reduce((r, o, a) => Object(r[o]) === r[o] ? r[o] : r[o] = Math.abs(Number(i[a + 1])) >> 0 === +i[a + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
262
262
  };
263
- function be(e) {
263
+ function pe(e) {
264
264
  if (e === null || typeof e != "object")
265
265
  return e;
266
266
  if (Array.isArray(e))
267
- return e.map((n) => be(n));
267
+ return e.map((n) => pe(n));
268
268
  if (e["@type"] === "@builder.io/sdk:Element")
269
269
  return e;
270
270
  const t = {};
271
271
  for (const n in e)
272
- n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = be(e[n]));
272
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = pe(e[n]));
273
273
  return t;
274
274
  }
275
- const Wt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), $t = (e) => {
276
- if (Wt) {
277
- const t = ve(e);
275
+ const $t = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Dt = (e) => {
276
+ if ($t) {
277
+ const t = xe(e);
278
278
  return {
279
279
  ...t,
280
280
  properties: {
@@ -285,7 +285,7 @@ const Wt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), $t = (e) =
285
285
  }
286
286
  };
287
287
  } else {
288
- const t = be(Vt(e, "children", "meta"));
288
+ const t = pe(At(e, "children", "meta"));
289
289
  return {
290
290
  ...t,
291
291
  properties: {
@@ -298,7 +298,7 @@ const Wt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), $t = (e) =
298
298
  meta: e.meta
299
299
  };
300
300
  }
301
- }, Dt = ({
301
+ }, Ot = ({
302
302
  block: e,
303
303
  context: t,
304
304
  localState: n,
@@ -307,7 +307,7 @@ const Wt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), $t = (e) =
307
307
  }) => {
308
308
  if (!e.bindings)
309
309
  return e;
310
- const o = $t(e);
310
+ const o = Dt(e);
311
311
  for (const a in e.bindings) {
312
312
  const l = e.bindings[a], c = Y({
313
313
  code: l,
@@ -316,11 +316,11 @@ const Wt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), $t = (e) =
316
316
  rootSetState: r,
317
317
  context: t
318
318
  });
319
- ze(o, a, c);
319
+ Ke(o, a, c);
320
320
  }
321
321
  return o;
322
322
  };
323
- function Ot({
323
+ function Ft({
324
324
  block: e,
325
325
  context: t,
326
326
  localState: n,
@@ -328,16 +328,16 @@ function Ot({
328
328
  rootSetState: r
329
329
  }) {
330
330
  let o = e;
331
- return o = Dt({
331
+ return o = Ot({
332
332
  block: o,
333
333
  localState: n,
334
334
  rootState: i,
335
335
  rootSetState: r,
336
336
  context: t
337
- }), o = Nt(o, i.locale), o;
337
+ }), o = Wt(o, i.locale), o;
338
338
  }
339
339
  const ce = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
340
- function Ft(e, t, n = {}) {
340
+ function Lt(e, t, n = {}) {
341
341
  let i, r, o, a = null, l = 0;
342
342
  const c = function() {
343
343
  l = n.leading === !1 ? 0 : Date.now(), a = null, o = e.apply(i, r), a || (i = r = null);
@@ -359,55 +359,55 @@ function Z(e, ...t) {
359
359
  }
360
360
  return n;
361
361
  }
362
- function Lt(e) {
362
+ function _t(e) {
363
363
  for (const t of e)
364
364
  switch (t.trigger) {
365
365
  case "pageLoad":
366
- Ge(t);
366
+ Qe(t);
367
367
  break;
368
368
  case "scrollInView":
369
- Ut(t);
369
+ Ht(t);
370
370
  break;
371
371
  }
372
372
  }
373
- function Ke(e) {
373
+ function Je(e) {
374
374
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
375
375
  }
376
- function Je(e, t) {
377
- const n = _t(e), i = getComputedStyle(t), r = e.steps[0].styles, o = e.steps[e.steps.length - 1].styles, a = [r, o];
376
+ function Ge(e, t) {
377
+ const n = Ut(e), i = getComputedStyle(t), r = e.steps[0].styles, o = e.steps[e.steps.length - 1].styles, a = [r, o];
378
378
  for (const l of a)
379
379
  for (const c of n)
380
380
  c in l || (l[c] = i[c]);
381
381
  }
382
- function _t(e) {
382
+ function Ut(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 Ge(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
- Ke(e.elementId || e.id || "");
392
+ Je(e.elementId || e.id || "");
393
393
  return;
394
394
  }
395
395
  Array.from(t).forEach((n) => {
396
- Je(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Z(n.style, e.steps[0].styles), setTimeout(() => {
396
+ Ge(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Z(n.style, e.steps[0].styles), setTimeout(() => {
397
397
  n.style.transition = `all ${e.duration}s ${ce(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Z(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 Ut(e) {
403
+ function Ht(e) {
404
404
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
405
405
  if (!t.length) {
406
- Ke(e.elementId || e.id || "");
406
+ Je(e.elementId || e.id || "");
407
407
  return;
408
408
  }
409
409
  Array.from(t).forEach((n) => {
410
- Je(e, n);
410
+ Ge(e, n);
411
411
  let i = !1, r = !1;
412
412
  function o() {
413
413
  !i && l(n) ? (i = !0, r = !0, setTimeout(() => {
@@ -416,7 +416,7 @@ function Ut(e) {
416
416
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
417
417
  })) : e.repeat && i && !r && !l(n) && (i = !1, Z(n.style, e.steps[0].styles));
418
418
  }
419
- const a = Ft(o, 200, {
419
+ const a = Lt(o, 200, {
420
420
  leading: !1
421
421
  });
422
422
  function l(h) {
@@ -435,42 +435,42 @@ function Ut(e) {
435
435
  }), o();
436
436
  });
437
437
  }
438
- const Qe = (e) => Object.entries(e).map(([n, i]) => {
438
+ const Ye = (e) => Object.entries(e).map(([n, i]) => {
439
439
  if (typeof i == "string")
440
440
  return `${ce(n)}: ${i};`;
441
- }).filter(ae), Ht = (e) => Qe(e).join(`
441
+ }).filter(oe), Mt = (e) => Ye(e).join(`
442
442
  `), X = ({
443
443
  mediaQuery: e,
444
444
  className: t,
445
445
  styles: n
446
446
  }) => {
447
447
  const i = `.${t} {
448
- ${Ht(n)}
448
+ ${Mt(n)}
449
449
  }`;
450
450
  return e ? `${e} {
451
451
  ${i}
452
452
  }` : i;
453
453
  };
454
- function Mt({
454
+ function qt({
455
455
  style: e
456
456
  }) {
457
457
  return e;
458
458
  }
459
- const qt = ({
459
+ const jt = ({
460
460
  block: e,
461
461
  context: t
462
- }) => Ye(Mt({
462
+ }) => Xe(qt({
463
463
  style: e.style || {},
464
464
  context: t,
465
465
  block: e
466
466
  }));
467
- function Ye(e) {
467
+ function Xe(e) {
468
468
  switch (O) {
469
469
  case "svelte":
470
470
  case "vue":
471
471
  case "solid":
472
472
  case "angular":
473
- return Qe(e).join(" ");
473
+ return Ye(e).join(" ");
474
474
  case "qwik":
475
475
  case "reactNative":
476
476
  case "react":
@@ -478,7 +478,7 @@ function Ye(e) {
478
478
  return e;
479
479
  }
480
480
  }
481
- const Xe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, jt = ({
481
+ const Ze = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, zt = ({
482
482
  block: e,
483
483
  registeredComponents: t,
484
484
  model: n
@@ -488,14 +488,14 @@ const Xe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
488
488
  if (!i)
489
489
  return null;
490
490
  const r = t[i];
491
- if (!r || Xe(r, n)) {
491
+ if (!r || Ze(r, 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
497
  return r;
498
- }, zt = ({
498
+ }, Kt = ({
499
499
  block: e,
500
500
  context: t
501
501
  }) => {
@@ -528,164 +528,27 @@ const Xe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
528
528
  },
529
529
  block: i
530
530
  }));
531
- }, Kt = (e, t) => {
531
+ }, Jt = (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
- }, Jt = (e, t, n) => {
536
+ }, Gt = (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, a]) => !Xe(a, n)))
539
+ builderComponents: Object.fromEntries(Object.entries(t).filter(([o, a]) => !Ze(a, n)))
540
540
  } : {};
541
- }, Gt = (e, t) => {
541
+ }, Qt = (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
- }, Qt = (e, t) => {
546
+ }, Yt = (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
- }, Re = (e) => e.toString(), Ze = {
552
- xsmall: {
553
- min: 0,
554
- default: 160,
555
- max: 320
556
- },
557
- small: {
558
- min: 321,
559
- default: 321,
560
- max: 640
561
- },
562
- medium: {
563
- min: 641,
564
- default: 642,
565
- max: 991
566
- },
567
- large: {
568
- min: 990,
569
- default: 991,
570
- max: 1200
571
- }
572
- }, de = (e, t = Ze) => `@media (max-width: ${t[e].max}px)`, et = (e) => {
573
- const t = ve(Ze);
574
- if (!e)
575
- return t;
576
- const {
577
- xsmall: n,
578
- small: i,
579
- medium: r
580
- } = e;
581
- if (n) {
582
- const c = Math.floor(n / 2);
583
- t.xsmall = {
584
- max: n,
585
- min: c,
586
- default: c + 1
587
- };
588
- }
589
- if (!i || !r)
590
- return t;
591
- const o = n ? t.xsmall.max + 1 : Math.floor(i / 2);
592
- t.small = {
593
- max: i,
594
- min: o,
595
- default: o + 1
596
- };
597
- const a = t.small.max + 1;
598
- t.medium = {
599
- max: r,
600
- min: a,
601
- default: a + 1
602
- };
603
- const l = t.medium.max + 1;
604
- return t.large = {
605
- max: 2e3,
606
- // TODO: decide upper limit
607
- min: l,
608
- default: l + 1
609
- }, t;
610
- };
611
- function te(e) {
612
- return /* @__PURE__ */ s(
613
- "style",
614
- {
615
- dangerouslySetInnerHTML: { __html: e.styles },
616
- "data-id": e.id,
617
- nonce: e.nonce
618
- }
619
- );
620
- }
621
- function Yt(e) {
622
- function t() {
623
- const i = e.block;
624
- return ae(i.hide) ? !i.hide : ae(i.show) ? i.show : !0;
625
- }
626
- function n() {
627
- var T, E, U, H, q;
628
- const i = e.block, r = i.responsiveStyles, o = e.context.content, a = et(
629
- ((T = o == null ? void 0 : o.meta) == null ? void 0 : T.breakpoints) || {}
630
- ), l = !!((U = (E = o == null ? void 0 : o.meta) == null ? void 0 : E.breakpoints) != null && U.xsmall), c = r == null ? void 0 : r.large, d = r == null ? void 0 : r.medium, h = r == null ? void 0 : r.small, b = r == null ? void 0 : r.xsmall, u = i.id;
631
- if (!u)
632
- return "";
633
- const x = c ? X({
634
- className: u,
635
- styles: c
636
- }) : "", f = d ? X({
637
- className: u,
638
- styles: d,
639
- mediaQuery: de(
640
- "medium",
641
- a
642
- )
643
- }) : "", m = h ? X({
644
- className: u,
645
- styles: h,
646
- mediaQuery: de(
647
- "small",
648
- a
649
- )
650
- }) : "", y = b && l ? X({
651
- className: u,
652
- styles: b,
653
- mediaQuery: de(
654
- "xsmall",
655
- a
656
- )
657
- }) : "", g = i.animations && i.animations.find((p) => p.trigger === "hover");
658
- let S = "";
659
- if (g) {
660
- const p = ((q = (H = g.steps) == null ? void 0 : H[1]) == null ? void 0 : q.styles) || {};
661
- S = X({
662
- className: `${u}:hover`,
663
- styles: {
664
- ...p,
665
- transition: `all ${g.duration}s ${ce(
666
- g.easing
667
- )}`,
668
- transitionDelay: g.delay ? `${g.delay}s` : "0s"
669
- }
670
- }) || "";
671
- }
672
- return [
673
- x,
674
- f,
675
- m,
676
- y,
677
- S
678
- ].join(" ");
679
- }
680
- return /* @__PURE__ */ s(P, { children: n() && t() ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
681
- te,
682
- {
683
- id: "builderio-block",
684
- styles: n(),
685
- nonce: e.context.nonce
686
- }
687
- ) }) : null });
688
- }
551
+ }, Re = (e) => e.toString();
689
552
  function Xt(e) {
690
553
  return e.charAt(0).toUpperCase() + e.slice(1);
691
554
  }
@@ -698,7 +561,7 @@ const Zt = (e) => `on${Xt(e)}`, en = (e, t) => (n) => Y({
698
561
  event: n,
699
562
  isExpression: !1
700
563
  });
701
- function tt(e) {
564
+ function et(e) {
702
565
  var i;
703
566
  const t = {}, n = (i = e.block.actions) != null ? i : {};
704
567
  for (const r in n) {
@@ -727,7 +590,7 @@ function tn({
727
590
  const nn = (e) => ({
728
591
  href: e.href
729
592
  });
730
- function xe({
593
+ function Se({
731
594
  block: e,
732
595
  context: t
733
596
  }) {
@@ -736,11 +599,11 @@ function xe({
736
599
  ...nn(e),
737
600
  ...e.properties,
738
601
  "builder-id": e.id,
739
- style: qt({
602
+ style: jt({
740
603
  block: e,
741
604
  context: t
742
605
  }),
743
- [G()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
606
+ [K()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
744
607
  };
745
608
  return tn({
746
609
  properties: n,
@@ -750,14 +613,14 @@ function xe({
750
613
  }
751
614
  function rn(e) {
752
615
  return /* @__PURE__ */ s(
753
- ye,
616
+ ve,
754
617
  {
755
618
  TagName: e.Wrapper,
756
- attributes: xe({
619
+ attributes: Se({
757
620
  block: e.block,
758
621
  context: e.context
759
622
  }),
760
- actionAttributes: tt({
623
+ actionAttributes: et({
761
624
  block: e.block,
762
625
  rootState: e.context.rootState,
763
626
  rootSetState: e.context.rootSetState,
@@ -771,18 +634,18 @@ function rn(e) {
771
634
  }
772
635
  function on(e) {
773
636
  return N(() => {
774
- }, []), /* @__PURE__ */ s(P, { children: e.children });
637
+ }, []), /* @__PURE__ */ s(w, { children: e.children });
775
638
  }
776
639
  function an(e) {
777
640
  var i, r;
778
641
  k(() => 0);
779
642
  function t() {
780
643
  return e.includeBlockProps ? {
781
- ...xe({
644
+ ...Se({
782
645
  block: e.block,
783
646
  context: e.context
784
647
  }),
785
- ...tt({
648
+ ...et({
786
649
  block: e.block,
787
650
  rootState: e.context.rootState,
788
651
  rootSetState: e.context.rootSetState,
@@ -795,7 +658,7 @@ function an(e) {
795
658
  return e.wrapperProps;
796
659
  }
797
660
  return N(() => {
798
- }, [e.wrapperProps, (r = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : r.options]), /* @__PURE__ */ s(P, { children: e.Wrapper.load ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
661
+ }, [e.wrapperProps, (r = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : r.options]), /* @__PURE__ */ s(w, { children: e.Wrapper.load ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
799
662
  on,
800
663
  {
801
664
  load: e.Wrapper.load,
@@ -822,7 +685,7 @@ const ln = ({
822
685
  * component itself directly. Otherwise, they are provided to the wrapper element.
823
686
  */
824
687
  ...r ? {
825
- attributes: xe({
688
+ attributes: Se({
826
689
  block: t,
827
690
  context: a
828
691
  })
@@ -842,7 +705,7 @@ function Pe(e) {
842
705
  const [t, n] = k(
843
706
  () => e.isInteractive ? an : e.componentRef
844
707
  );
845
- return /* @__PURE__ */ s(P, { children: e.componentRef ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
708
+ return /* @__PURE__ */ s(w, { children: e.componentRef ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
846
709
  t,
847
710
  {
848
711
  ...ln({
@@ -855,7 +718,7 @@ function Pe(e) {
855
718
  isInteractive: e.isInteractive,
856
719
  contextValue: e.context
857
720
  }),
858
- children: e.componentRef ? /* @__PURE__ */ s(P, { children: (i = e.blockChildren) == null ? void 0 : i.map((r) => /* @__PURE__ */ s(
721
+ children: e.componentRef ? /* @__PURE__ */ s(w, { children: (i = e.blockChildren) == null ? void 0 : i.map((r) => /* @__PURE__ */ s(
859
722
  ue,
860
723
  {
861
724
  block: r,
@@ -872,7 +735,7 @@ function Ve(e) {
872
735
  const [t, n] = k(() => e.repeatContext);
873
736
  return N(() => {
874
737
  n(e.repeatContext);
875
- }, [e.repeatContext]), /* @__PURE__ */ s(pe.Provider, { value: t, children: /* @__PURE__ */ s(
738
+ }, [e.repeatContext]), /* @__PURE__ */ s(se.Provider, { value: t, children: /* @__PURE__ */ s(
876
739
  ue,
877
740
  {
878
741
  block: e.block,
@@ -882,10 +745,154 @@ function Ve(e) {
882
745
  }
883
746
  ) });
884
747
  }
748
+ const tt = {
749
+ xsmall: {
750
+ min: 0,
751
+ default: 160,
752
+ max: 320
753
+ },
754
+ small: {
755
+ min: 321,
756
+ default: 321,
757
+ max: 640
758
+ },
759
+ medium: {
760
+ min: 641,
761
+ default: 642,
762
+ max: 991
763
+ },
764
+ large: {
765
+ min: 990,
766
+ default: 991,
767
+ max: 1200
768
+ }
769
+ }, de = (e, t = tt) => `@media (max-width: ${t[e].max}px)`, nt = (e) => {
770
+ const t = xe(tt);
771
+ if (!e)
772
+ return t;
773
+ const {
774
+ xsmall: n,
775
+ small: i,
776
+ medium: r
777
+ } = e;
778
+ if (n) {
779
+ const c = Math.floor(n / 2);
780
+ t.xsmall = {
781
+ max: n,
782
+ min: c,
783
+ default: c + 1
784
+ };
785
+ }
786
+ if (!i || !r)
787
+ return t;
788
+ const o = n ? t.xsmall.max + 1 : Math.floor(i / 2);
789
+ t.small = {
790
+ max: i,
791
+ min: o,
792
+ default: o + 1
793
+ };
794
+ const a = t.small.max + 1;
795
+ t.medium = {
796
+ max: r,
797
+ min: a,
798
+ default: a + 1
799
+ };
800
+ const l = t.medium.max + 1;
801
+ return t.large = {
802
+ max: 2e3,
803
+ // TODO: decide upper limit
804
+ min: l,
805
+ default: l + 1
806
+ }, t;
807
+ };
808
+ function te(e) {
809
+ return /* @__PURE__ */ s(
810
+ "style",
811
+ {
812
+ dangerouslySetInnerHTML: { __html: e.styles },
813
+ "data-id": e.id,
814
+ nonce: e.nonce
815
+ }
816
+ );
817
+ }
818
+ function Ae(e) {
819
+ function t() {
820
+ const i = e.block;
821
+ return oe(i.hide) ? !i.hide : oe(i.show) ? i.show : !0;
822
+ }
823
+ function n() {
824
+ var T, E, U, H, q;
825
+ const i = e.block, r = i.responsiveStyles, o = e.context.content, a = nt(
826
+ ((T = o == null ? void 0 : o.meta) == null ? void 0 : T.breakpoints) || {}
827
+ ), l = !!((U = (E = o == null ? void 0 : o.meta) == null ? void 0 : E.breakpoints) != null && U.xsmall), c = r == null ? void 0 : r.large, d = r == null ? void 0 : r.medium, h = r == null ? void 0 : r.small, b = r == null ? void 0 : r.xsmall, u = i.id;
828
+ if (!u)
829
+ return "";
830
+ const x = c ? X({
831
+ className: u,
832
+ styles: c
833
+ }) : "", f = d ? X({
834
+ className: u,
835
+ styles: d,
836
+ mediaQuery: de(
837
+ "medium",
838
+ a
839
+ )
840
+ }) : "", m = h ? X({
841
+ className: u,
842
+ styles: h,
843
+ mediaQuery: de(
844
+ "small",
845
+ a
846
+ )
847
+ }) : "", y = b && l ? X({
848
+ className: u,
849
+ styles: b,
850
+ mediaQuery: de(
851
+ "xsmall",
852
+ a
853
+ )
854
+ }) : "", g = i.animations && i.animations.find((p) => p.trigger === "hover");
855
+ let S = "";
856
+ if (g) {
857
+ const p = ((q = (H = g.steps) == null ? void 0 : H[1]) == null ? void 0 : q.styles) || {};
858
+ S = X({
859
+ className: `${u}:hover`,
860
+ styles: {
861
+ ...p,
862
+ transition: `all ${g.duration}s ${ce(
863
+ g.easing
864
+ )}`,
865
+ transitionDelay: g.delay ? `${g.delay}s` : "0s"
866
+ }
867
+ }) || "";
868
+ }
869
+ return [
870
+ x,
871
+ f,
872
+ m,
873
+ y,
874
+ S
875
+ ].join(" ");
876
+ }
877
+ return /* @__PURE__ */ s(w, { children: n() && t() ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
878
+ te,
879
+ {
880
+ id: "builderio-block",
881
+ styles: n(),
882
+ nonce: e.context.nonce
883
+ }
884
+ ) }) : null });
885
+ }
886
+ function sn(e) {
887
+ k(() => !1);
888
+ const [t, n] = k(() => !1);
889
+ return ye(se), N(() => {
890
+ }, []), /* @__PURE__ */ s(w, { children: t ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(Ae, { block: e.block, context: e.context }) }) }) : /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(Ae, { block: e.block, context: e.context }) }) });
891
+ }
885
892
  function ue(e) {
886
893
  var h, b, u, x;
887
894
  function t() {
888
- return zt({
895
+ return Kt({
889
896
  block: e.block,
890
897
  context: e.context
891
898
  });
@@ -896,9 +903,9 @@ function ue(e) {
896
903
  }));
897
904
  function r() {
898
905
  var m;
899
- if (n.value && !n.update && !se())
906
+ if (n.value && !n.update && !le())
900
907
  return n.value;
901
- const f = (m = e.block.repeat) != null && m.collection ? e.block : Ot({
908
+ const f = (m = e.block.repeat) != null && m.collection ? e.block : Ft({
902
909
  block: e.block,
903
910
  localState: e.context.localState,
904
911
  rootState: e.context.rootState,
@@ -908,7 +915,7 @@ function ue(e) {
908
915
  return n.value = f, n.update = !1, f;
909
916
  }
910
917
  function o() {
911
- return jt({
918
+ return zt({
912
919
  block: r(),
913
920
  registeredComponents: e.registeredComponents,
914
921
  model: e.context.model
@@ -935,11 +942,11 @@ function ue(e) {
935
942
  blockChildren: (f = r().children) != null ? f : [],
936
943
  componentRef: (m = o == null ? void 0 : o()) == null ? void 0 : m.component,
937
944
  componentOptions: {
938
- ...Rt(r(), e.context),
939
- ...Gt(o(), r()),
940
- ...Qt(o(), e.context),
941
- ...Kt(o(), e.linkComponent),
942
- ...Jt(
945
+ ...Pt(r(), e.context),
946
+ ...Qt(o(), r()),
947
+ ...Yt(o(), e.context),
948
+ ...Jt(o(), e.linkComponent),
949
+ ...Gt(
943
950
  o(),
944
951
  e.registeredComponents,
945
952
  e.context.model
@@ -955,7 +962,7 @@ function ue(e) {
955
962
  }
956
963
  return N(() => {
957
964
  const f = r().id, m = r().animations;
958
- m && f && Lt(
965
+ m && f && _t(
959
966
  m.map((y) => ({
960
967
  ...y,
961
968
  elementId: f
@@ -963,9 +970,16 @@ function ue(e) {
963
970
  );
964
971
  }, []), N(() => {
965
972
  n.update = !0;
966
- }), /* @__PURE__ */ s(P, { children: l() ? /* @__PURE__ */ D(P, { children: [
967
- /* @__PURE__ */ s(Yt, { block: r(), context: e.context }),
968
- (h = o == null ? void 0 : o()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(P, { children: (x = t()) == null ? void 0 : x.map((f, m) => /* @__PURE__ */ s(
973
+ }), /* @__PURE__ */ s(w, { children: l() ? /* @__PURE__ */ D(w, { children: [
974
+ /* @__PURE__ */ s(
975
+ sn,
976
+ {
977
+ block: r(),
978
+ context: e.context,
979
+ id: e.block.id
980
+ }
981
+ ),
982
+ (h = o == null ? void 0 : o()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(w, { children: (x = t()) == null ? void 0 : x.map((f, m) => /* @__PURE__ */ s(
969
983
  Ve,
970
984
  {
971
985
  repeatContext: f.context,
@@ -987,7 +1001,7 @@ function ue(e) {
987
1001
  includeBlockProps: d().includeBlockProps,
988
1002
  isInteractive: d().isInteractive
989
1003
  }
990
- ) : /* @__PURE__ */ s(P, { children: t() ? /* @__PURE__ */ s(P, { children: (u = t()) == null ? void 0 : u.map((f, m) => /* @__PURE__ */ s(
1004
+ ) : /* @__PURE__ */ s(w, { children: t() ? /* @__PURE__ */ s(w, { children: (u = t()) == null ? void 0 : u.map((f, m) => /* @__PURE__ */ s(
991
1005
  Ve,
992
1006
  {
993
1007
  repeatContext: f.context,
@@ -1032,7 +1046,7 @@ function ue(e) {
1032
1046
  ) })
1033
1047
  ] }) : null });
1034
1048
  }
1035
- function sn(e) {
1049
+ function cn(e) {
1036
1050
  const t = z(null);
1037
1051
  k(() => !1);
1038
1052
  function n() {
@@ -1077,7 +1091,7 @@ function sn(e) {
1077
1091
  }
1078
1092
  return N(() => {
1079
1093
  }, []), N(() => {
1080
- }, [e.blocks]), /* @__PURE__ */ D(P, { children: [
1094
+ }, [e.blocks]), /* @__PURE__ */ D(w, { children: [
1081
1095
  /* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-b46bf284 {
1082
1096
  display: flex;
1083
1097
  flex-direction: column;
@@ -1102,9 +1116,9 @@ function sn(e) {
1102
1116
  }
1103
1117
  function M(e) {
1104
1118
  var i, r, o;
1105
- const t = we(pe), n = we(He);
1119
+ const t = ye(se), n = ye(Me);
1106
1120
  return /* @__PURE__ */ D(
1107
- sn,
1121
+ cn,
1108
1122
  {
1109
1123
  blocks: e.blocks,
1110
1124
  parent: e.parent,
@@ -1115,7 +1129,7 @@ function M(e) {
1115
1129
  BlocksWrapper: ((r = e.context) == null ? void 0 : r.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
1116
1130
  children: [
1117
1131
  e.children,
1118
- e.blocks ? /* @__PURE__ */ s(P, { children: (o = e.blocks) == null ? void 0 : o.map((a) => /* @__PURE__ */ s(
1132
+ e.blocks ? /* @__PURE__ */ s(w, { children: (o = e.blocks) == null ? void 0 : o.map((a) => /* @__PURE__ */ s(
1119
1133
  ue,
1120
1134
  {
1121
1135
  block: a,
@@ -1129,8 +1143,8 @@ function M(e) {
1129
1143
  }
1130
1144
  );
1131
1145
  }
1132
- const cn = (e) => `builder-columns ${e}-breakpoints`;
1133
- function un(e) {
1146
+ const un = (e) => `builder-columns ${e}-breakpoints`;
1147
+ function dn(e) {
1134
1148
  var m, y;
1135
1149
  function t() {
1136
1150
  return typeof e.space == "number" ? e.space || 0 : 20;
@@ -1206,7 +1220,7 @@ function un(e) {
1206
1220
  }
1207
1221
  function u(g) {
1208
1222
  var T, E;
1209
- return et(
1223
+ return nt(
1210
1224
  ((E = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : E.breakpoints) || {}
1211
1225
  )[g].max;
1212
1226
  }
@@ -1243,11 +1257,11 @@ function un(e) {
1243
1257
  ...g.link ? {
1244
1258
  href: g.link
1245
1259
  } : {},
1246
- [G()]: "builder-column",
1247
- style: Ye(b(S))
1260
+ [K()]: "builder-column",
1261
+ style: Xe(b(S))
1248
1262
  };
1249
1263
  }
1250
- return /* @__PURE__ */ D(P, { children: [
1264
+ return /* @__PURE__ */ D(w, { children: [
1251
1265
  /* @__PURE__ */ s("style", { children: `.div-0369db37 {
1252
1266
  display: flex;
1253
1267
  line-height: normal;
@@ -1256,7 +1270,7 @@ function un(e) {
1256
1270
  /* @__PURE__ */ D(
1257
1271
  "div",
1258
1272
  {
1259
- className: cn((m = e.builderBlock) == null ? void 0 : m.id) + " div-0369db37",
1273
+ className: un((m = e.builderBlock) == null ? void 0 : m.id) + " div-0369db37",
1260
1274
  style: h(),
1261
1275
  children: [
1262
1276
  /* @__PURE__ */ s(
@@ -1268,7 +1282,7 @@ function un(e) {
1268
1282
  }
1269
1283
  ),
1270
1284
  (y = e.columns) == null ? void 0 : y.map((g, S) => /* @__PURE__ */ s(
1271
- ye,
1285
+ ve,
1272
1286
  {
1273
1287
  TagName: r(g),
1274
1288
  actionAttributes: {},
@@ -1295,40 +1309,40 @@ function un(e) {
1295
1309
  )
1296
1310
  ] });
1297
1311
  }
1298
- function dn(e) {
1312
+ function mn(e) {
1299
1313
  return /* @__PURE__ */ s("span", { children: e.children });
1300
1314
  }
1301
- function Ae(e) {
1315
+ function Be(e) {
1302
1316
  return e.replace(/http(s)?:/, "");
1303
1317
  }
1304
- function mn(e = "", t, n) {
1318
+ function fn(e = "", t, n) {
1305
1319
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
1306
1320
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
1307
1321
  }
1308
- function fn(e, t) {
1322
+ function hn(e, t) {
1309
1323
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1310
1324
  return e;
1311
1325
  if (t === "master")
1312
- return Ae(e);
1326
+ return Be(e);
1313
1327
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1314
1328
  if (n) {
1315
1329
  const i = e.split(n[0]), r = n[3], o = t.match("x") ? t : `${t}x`;
1316
- return Ae(`${i[0]}_${o}${r}`);
1330
+ return Be(`${i[0]}_${o}${r}`);
1317
1331
  }
1318
1332
  return null;
1319
1333
  }
1320
- function ne(e) {
1334
+ function me(e) {
1321
1335
  if (!e)
1322
1336
  return e;
1323
1337
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1324
1338
  if (e.match(/builder\.io/)) {
1325
1339
  let n = e;
1326
1340
  const i = Number(e.split("?width=")[1]);
1327
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((r) => r !== i).map((r) => `${mn(e, "width", r)} ${r}w`).concat([n]).join(", ");
1341
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((r) => r !== i).map((r) => `${fn(e, "width", r)} ${r}w`).concat([n]).join(", ");
1328
1342
  }
1329
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [fn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1343
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [hn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1330
1344
  }
1331
- function hn(e) {
1345
+ function gn(e) {
1332
1346
  var r, o, a, l, c, d;
1333
1347
  function t() {
1334
1348
  var u;
@@ -1340,10 +1354,10 @@ function hn(e) {
1340
1354
  if (!e.noWebp) {
1341
1355
  if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
1342
1356
  if (!e.srcset.includes(e.image.split("?")[0]))
1343
- return console.debug("Removed given srcset"), ne(b);
1357
+ return console.debug("Removed given srcset"), me(b);
1344
1358
  } else if (e.image && !e.srcset)
1345
- return ne(b);
1346
- return ne(b);
1359
+ return me(b);
1360
+ return me(b);
1347
1361
  }
1348
1362
  }
1349
1363
  function n() {
@@ -1361,7 +1375,7 @@ function hn(e) {
1361
1375
  return e.aspectRatio ? h : void 0;
1362
1376
  }
1363
1377
  return N(() => {
1364
- }, []), /* @__PURE__ */ D(P, { children: [
1378
+ }, []), /* @__PURE__ */ D(w, { children: [
1365
1379
  /* @__PURE__ */ s("style", { children: `.img-3cc22d08 {
1366
1380
  opacity: 1;
1367
1381
  transition: opacity 0.2s ease-in-out;
@@ -1379,7 +1393,7 @@ function hn(e) {
1379
1393
  width: 100%;
1380
1394
  height: 100%;
1381
1395
  }` }),
1382
- /* @__PURE__ */ D(P, { children: [
1396
+ /* @__PURE__ */ D(w, { children: [
1383
1397
  /* @__PURE__ */ D("picture", { children: [
1384
1398
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1385
1399
  /* @__PURE__ */ s(
@@ -1411,12 +1425,12 @@ function hn(e) {
1411
1425
  }
1412
1426
  }
1413
1427
  ) : null,
1414
- (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(P, { children: e.children }) : null,
1428
+ (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(w, { children: e.children }) : null,
1415
1429
  !e.fitContent && ((d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length) ? /* @__PURE__ */ s("div", { className: "div-3cc22d08-2", children: e.children }) : null
1416
1430
  ] })
1417
1431
  ] });
1418
1432
  }
1419
- function gn(e) {
1433
+ function bn(e) {
1420
1434
  return /* @__PURE__ */ s(
1421
1435
  "section",
1422
1436
  {
@@ -1437,7 +1451,7 @@ function gn(e) {
1437
1451
  }
1438
1452
  );
1439
1453
  }
1440
- function bn(e, t, n, i) {
1454
+ function yn(e, t, n, i) {
1441
1455
  function r(d) {
1442
1456
  return typeof d == "string";
1443
1457
  }
@@ -1494,7 +1508,7 @@ function bn(e, t, n, i) {
1494
1508
  }, c = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
1495
1509
  return l.startDate && new Date(l.startDate) > c || l.endDate && new Date(l.endDate) < c ? !1 : !l.query || !l.query.length ? !0 : l.query.every((d) => a(e, d));
1496
1510
  }
1497
- const yn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
1511
+ const pn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
1498
1512
  if (!navigator.cookieEnabled) {
1499
1513
  return;
1500
1514
  }
@@ -1539,7 +1553,7 @@ const yn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
1539
1553
  thisScript.remove();
1540
1554
  }
1541
1555
  }
1542
- }`, pn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
1556
+ }`, vn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
1543
1557
  function isString(val) {
1544
1558
  return typeof val === 'string';
1545
1559
  }
@@ -1617,7 +1631,7 @@ const yn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
1617
1631
  return item.query.every(filter => {
1618
1632
  return objectMatchesQuery(userAttributes, filter);
1619
1633
  });
1620
- }`, vn = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
1634
+ }`, xn = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
1621
1635
  function getCookie(name) {
1622
1636
  const nameEQ = name + '=';
1623
1637
  const ca = document.cookie.split(';');
@@ -1655,11 +1669,11 @@ const yn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
1655
1669
  visibilityStylesEl.innerHTML = newStyleStr;
1656
1670
  }
1657
1671
  }
1658
- }`, ie = "default", xn = "filterWithCustomTargeting", nt = "builderIoPersonalization", it = "updateVisibilityStylesScript", rt = ["react", "vue", "svelte", "qwik"], re = ["vue", "svelte", "qwik"];
1659
- function Sn(e, t) {
1660
- return !(e && e.length > 0) || !t ? !1 : re.includes(O) ? !0 : !K();
1672
+ }`, ne = "default", Sn = "filterWithCustomTargeting", it = "builderIoPersonalization", rt = "updateVisibilityStylesScript", ot = ["react", "vue", "svelte", "qwik"], ie = ["vue", "svelte", "qwik"];
1673
+ function kn(e, t) {
1674
+ return !(e && e.length > 0) || !t ? !1 : ie.includes(O) ? !0 : !J();
1661
1675
  }
1662
- function kn({
1676
+ function Cn({
1663
1677
  variants: e,
1664
1678
  previewingIndex: t,
1665
1679
  isHydrated: n,
@@ -1670,7 +1684,7 @@ function kn({
1670
1684
  const o = {
1671
1685
  blocks: r != null ? r : [],
1672
1686
  path: "this.children",
1673
- index: ie
1687
+ index: ne
1674
1688
  };
1675
1689
  if (n && _()) {
1676
1690
  if (typeof t == "number" && t < ((a = e == null ? void 0 : e.length) != null ? a : 0)) {
@@ -1684,7 +1698,7 @@ function kn({
1684
1698
  }
1685
1699
  return o;
1686
1700
  }
1687
- if (K()) {
1701
+ if (J()) {
1688
1702
  const l = i == null ? void 0 : i[0];
1689
1703
  if (l && e) {
1690
1704
  const c = e.indexOf(l);
@@ -1698,11 +1712,11 @@ function kn({
1698
1712
  }
1699
1713
  return o;
1700
1714
  }
1701
- const Cn = () => `
1702
- window.${xn} = ${pn}
1703
- window.${nt} = ${yn}
1704
- window.${it} = ${vn}
1705
- `, ot = O === "react", Tn = (e, t, n) => `window.${nt}(${JSON.stringify(e)}, "${t}", ${ot}${n ? `, "${n}"` : ""})`, In = (e, t, n) => `window.${it}(${JSON.stringify(e)}, "${t}", ${ot}${n ? `, "${n}"` : ""})`, me = {
1715
+ const Tn = () => `
1716
+ window.${Sn} = ${vn}
1717
+ window.${it} = ${pn}
1718
+ window.${rt} = ${xn}
1719
+ `, at = O === "react", In = (e, t, n) => `window.${it}(${JSON.stringify(e)}, "${t}", ${at}${n ? `, "${n}"` : ""})`, wn = (e, t, n) => `window.${rt}(${JSON.stringify(e)}, "${t}", ${at}${n ? `, "${n}"` : ""})`, fe = {
1706
1720
  "@type": "@builder.io/sdk:Element",
1707
1721
  layerName: "Accordion item title",
1708
1722
  responsiveStyles: {
@@ -1731,7 +1745,7 @@ const Cn = () => `
1731
1745
  }
1732
1746
  }
1733
1747
  }]
1734
- }, fe = {
1748
+ }, he = {
1735
1749
  "@type": "@builder.io/sdk:Element",
1736
1750
  layerName: "Accordion item detail",
1737
1751
  responsiveStyles: {
@@ -1762,7 +1776,7 @@ const Cn = () => `
1762
1776
  }
1763
1777
  }
1764
1778
  }]
1765
- }, wn = {
1779
+ }, En = {
1766
1780
  name: "Builder:Accordion",
1767
1781
  canHaveChildren: !0,
1768
1782
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1779,19 +1793,19 @@ const Cn = () => `
1779
1793
  name: "title",
1780
1794
  type: "uiBlocks",
1781
1795
  hideFromUI: !0,
1782
- defaultValue: [me]
1796
+ defaultValue: [fe]
1783
1797
  }, {
1784
1798
  name: "detail",
1785
1799
  type: "uiBlocks",
1786
1800
  hideFromUI: !0,
1787
- defaultValue: [fe]
1801
+ defaultValue: [he]
1788
1802
  }],
1789
1803
  defaultValue: [{
1790
- title: [me],
1791
- detail: [fe]
1804
+ title: [fe],
1805
+ detail: [he]
1792
1806
  }, {
1793
- title: [me],
1794
- detail: [fe]
1807
+ title: [fe],
1808
+ detail: [he]
1795
1809
  }],
1796
1810
  showIf: (e) => !e.get("useChildrenForItems")
1797
1811
  }, {
@@ -1826,8 +1840,8 @@ const Cn = () => `
1826
1840
  builderComponents: !0,
1827
1841
  builderLinkComponent: !0
1828
1842
  }
1829
- }, Be = (e) => e.toString();
1830
- function En(e) {
1843
+ }, Ne = (e) => e.toString();
1844
+ function Rn(e) {
1831
1845
  var b;
1832
1846
  const [t, n] = k(() => []);
1833
1847
  function i() {
@@ -1905,7 +1919,7 @@ function En(e) {
1905
1919
  function h(u) {
1906
1920
  t.includes(u) ? n(i() ? [] : t.filter((x) => x !== u)) : n(i() ? [u] : t.concat(u));
1907
1921
  }
1908
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (b = e.items) == null ? void 0 : b.map((u, x) => /* @__PURE__ */ D(gt.Fragment, { children: [
1922
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (b = e.items) == null ? void 0 : b.map((u, x) => /* @__PURE__ */ D(bt.Fragment, { children: [
1909
1923
  /* @__PURE__ */ s(
1910
1924
  "div",
1911
1925
  {
@@ -1914,7 +1928,7 @@ function En(e) {
1914
1928
  ...o(),
1915
1929
  ...e.grid && {
1916
1930
  width: e.gridRowWidth,
1917
- order: c() !== null ? Be(x) : Be(x + 1)
1931
+ order: c() !== null ? Ne(x) : Ne(x + 1)
1918
1932
  }
1919
1933
  },
1920
1934
  "data-index": x,
@@ -1952,7 +1966,7 @@ function En(e) {
1952
1966
  ) : null
1953
1967
  ] }, x)) });
1954
1968
  }
1955
- const Rn = {
1969
+ const Pn = {
1956
1970
  name: "Core:Button",
1957
1971
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1958
1972
  defaultStyles: {
@@ -1988,7 +2002,7 @@ const Rn = {
1988
2002
  shouldReceiveBuilderProps: {
1989
2003
  builderLinkComponent: !0
1990
2004
  }
1991
- }, Pn = {
2005
+ }, Vn = {
1992
2006
  // TODO: ways to statically preprocess JSON for references, functions, etc
1993
2007
  name: "Columns",
1994
2008
  isRSC: !0,
@@ -2195,13 +2209,13 @@ const Rn = {
2195
2209
  builderComponents: !0,
2196
2210
  builderLinkComponent: !0
2197
2211
  }
2198
- }, Vn = {
2212
+ }, An = {
2199
2213
  name: "Fragment",
2200
2214
  static: !0,
2201
2215
  hidden: !0,
2202
2216
  canHaveChildren: !0,
2203
2217
  noWrap: !0
2204
- }, Se = ["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"], An = ["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"], Bn = {
2218
+ }, ke = ["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"], Bn = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], Nn = {
2205
2219
  name: "Image",
2206
2220
  static: !0,
2207
2221
  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",
@@ -2216,7 +2230,7 @@ const Rn = {
2216
2230
  name: "image",
2217
2231
  type: "file",
2218
2232
  bubble: !0,
2219
- allowedFileTypes: Se,
2233
+ allowedFileTypes: ke,
2220
2234
  required: !0,
2221
2235
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
2222
2236
  onChange: (e) => {
@@ -2313,7 +2327,7 @@ const Rn = {
2313
2327
  shouldReceiveBuilderProps: {
2314
2328
  builderBlock: !0
2315
2329
  }
2316
- }, Nn = {
2330
+ }, Wn = {
2317
2331
  name: "PersonalizationContainer",
2318
2332
  shouldReceiveBuilderProps: {
2319
2333
  builderBlock: !0,
@@ -2350,7 +2364,7 @@ const Rn = {
2350
2364
  }]
2351
2365
  }]
2352
2366
  };
2353
- function J(e) {
2367
+ function G(e) {
2354
2368
  return /* @__PURE__ */ s(
2355
2369
  "script",
2356
2370
  {
@@ -2360,64 +2374,64 @@ function J(e) {
2360
2374
  }
2361
2375
  );
2362
2376
  }
2363
- function Wn(e) {
2364
- var S, T, E, U, H, q, p, v, I, V, W, R, A;
2377
+ function $n(e) {
2378
+ var S, T, E, U, H, q, p, v, V, A, W, R, P;
2365
2379
  const t = z(null), [n, i] = k(
2366
- () => Ce.getUserAttributes()
2380
+ () => Te.getUserAttributes()
2367
2381
  ), [r, o] = k(
2368
2382
  () => {
2369
- var w, B, C;
2370
- return Tn(
2383
+ var I, B, C;
2384
+ return In(
2371
2385
  e.variants,
2372
- ((w = e.builderBlock) == null ? void 0 : w.id) || "none",
2386
+ ((I = e.builderBlock) == null ? void 0 : I.id) || "none",
2373
2387
  (C = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : C.locale
2374
2388
  );
2375
2389
  }
2376
2390
  ), [a, l] = k(
2377
2391
  () => {
2378
- var w, B, C;
2379
- return In(
2392
+ var I, B, C;
2393
+ return wn(
2380
2394
  e.variants,
2381
- ((w = e.builderBlock) == null ? void 0 : w.id) || "none",
2395
+ ((I = e.builderBlock) == null ? void 0 : I.id) || "none",
2382
2396
  (C = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : C.locale
2383
2397
  );
2384
2398
  }
2385
2399
  ), [c, d] = k(() => []), [h, b] = k(
2386
2400
  () => {
2387
- var w;
2388
- return Sn(
2401
+ var I;
2402
+ return kn(
2389
2403
  e.variants,
2390
- ee((w = e.builderContext) == null ? void 0 : w.canTrack)
2404
+ ee((I = e.builderContext) == null ? void 0 : I.canTrack)
2391
2405
  );
2392
2406
  }
2393
2407
  ), [u, x] = k(() => !1);
2394
2408
  function f() {
2395
2409
  return {
2396
2410
  ...e.attributes,
2397
- [G()]: `builder-personalization-container ${e.attributes[G()] || ""}`
2411
+ [K()]: `builder-personalization-container ${e.attributes[K()] || ""}`
2398
2412
  };
2399
2413
  }
2400
2414
  function m() {
2401
- return (e.variants || []).filter((w) => {
2415
+ return (e.variants || []).filter((I) => {
2402
2416
  var B, C, $, F;
2403
- return bn(
2417
+ return yn(
2404
2418
  {
2405
2419
  ...(C = (B = e.builderContext) == null ? void 0 : B.rootState) != null && C.locale ? {
2406
2420
  locale: (F = ($ = e.builderContext) == null ? void 0 : $.rootState) == null ? void 0 : F.locale
2407
2421
  } : {},
2408
2422
  ...n
2409
2423
  },
2410
- w.query,
2411
- w.startDate,
2412
- w.endDate
2424
+ I.query,
2425
+ I.startDate,
2426
+ I.endDate
2413
2427
  );
2414
2428
  });
2415
2429
  }
2416
2430
  function y() {
2417
- var w;
2418
- return kn({
2431
+ var I;
2432
+ return Cn({
2419
2433
  variants: e.variants,
2420
- fallbackBlocks: (w = e.builderBlock) == null ? void 0 : w.children,
2434
+ fallbackBlocks: (I = e.builderBlock) == null ? void 0 : I.children,
2421
2435
  isHydrated: u,
2422
2436
  filteredVariants: m(),
2423
2437
  previewingIndex: e.previewingIndex
@@ -2425,7 +2439,7 @@ function Wn(e) {
2425
2439
  }
2426
2440
  function g() {
2427
2441
  return (e.variants || []).map(
2428
- (w, B) => {
2442
+ (I, B) => {
2429
2443
  var C;
2430
2444
  return `div[data-variant-id="${(C = e.builderBlock) == null ? void 0 : C.id}-${B}"] { display: none !important; } `;
2431
2445
  }
@@ -2434,7 +2448,7 @@ function Wn(e) {
2434
2448
  return N(() => {
2435
2449
  var B;
2436
2450
  x(!0);
2437
- const w = Ce.subscribeOnUserAttributesChange(
2451
+ const I = Te.subscribeOnUserAttributesChange(
2438
2452
  (C) => {
2439
2453
  i(C);
2440
2454
  },
@@ -2442,12 +2456,12 @@ function Wn(e) {
2442
2456
  fireImmediately: O === "qwik"
2443
2457
  }
2444
2458
  );
2445
- if (!(_() || se())) {
2459
+ if (!(_() || le())) {
2446
2460
  const C = m()[0];
2447
2461
  t.current && (t.current.dispatchEvent(
2448
2462
  new CustomEvent("builder.variantLoaded", {
2449
2463
  detail: {
2450
- variant: C || ie,
2464
+ variant: C || ne,
2451
2465
  content: (B = e.builderContext) == null ? void 0 : B.content
2452
2466
  },
2453
2467
  bubbles: !0
@@ -2458,7 +2472,7 @@ function Wn(e) {
2458
2472
  L.isIntersecting && t.current && t.current.dispatchEvent(
2459
2473
  new CustomEvent("builder.variantDisplayed", {
2460
2474
  detail: {
2461
- variant: C || ie,
2475
+ variant: C || ne,
2462
2476
  content: (j = e.builderContext) == null ? void 0 : j.content
2463
2477
  },
2464
2478
  bubbles: !0
@@ -2467,11 +2481,11 @@ function Wn(e) {
2467
2481
  });
2468
2482
  }).observe(t.current));
2469
2483
  }
2470
- c.push(w);
2484
+ c.push(I);
2471
2485
  }, []), N(() => () => {
2472
- c.forEach((w) => w());
2486
+ c.forEach((I) => I());
2473
2487
  }, []), /* @__PURE__ */ D("div", { ref: t, ...f(), children: [
2474
- u && re.includes(O) ? /* @__PURE__ */ s(
2488
+ u && ie.includes(O) ? /* @__PURE__ */ s(
2475
2489
  M,
2476
2490
  {
2477
2491
  blocks: y().blocks,
@@ -2485,8 +2499,8 @@ function Wn(e) {
2485
2499
  }
2486
2500
  }
2487
2501
  ) : null,
2488
- !u && re.includes(O) || !re.includes(O) ? /* @__PURE__ */ D(P, { children: [
2489
- h ? /* @__PURE__ */ D(P, { children: [
2502
+ !u && ie.includes(O) || !ie.includes(O) ? /* @__PURE__ */ D(w, { children: [
2503
+ h ? /* @__PURE__ */ D(w, { children: [
2490
2504
  /* @__PURE__ */ s(
2491
2505
  te,
2492
2506
  {
@@ -2496,15 +2510,15 @@ function Wn(e) {
2496
2510
  }
2497
2511
  ),
2498
2512
  /* @__PURE__ */ s(
2499
- J,
2513
+ G,
2500
2514
  {
2501
2515
  nonce: ((q = e.builderContext) == null ? void 0 : q.nonce) || "",
2502
2516
  scriptStr: a,
2503
2517
  id: `variants-visibility-script-${(p = e.builderBlock) == null ? void 0 : p.id}`
2504
2518
  }
2505
2519
  ),
2506
- (v = e.variants) == null ? void 0 : v.map((w, B) => {
2507
- var C, $, F, L, j, ke;
2520
+ (v = e.variants) == null ? void 0 : v.map((I, B) => {
2521
+ var C, $, F, L, j, Ce;
2508
2522
  return /* @__PURE__ */ s(
2509
2523
  M,
2510
2524
  {
@@ -2514,13 +2528,13 @@ function Wn(e) {
2514
2528
  hidden: !0,
2515
2529
  "data-variant-id": `${($ = e.builderBlock) == null ? void 0 : $.id}-${B}`
2516
2530
  },
2517
- blocks: w.blocks,
2531
+ blocks: I.blocks,
2518
2532
  parent: (F = e.builderBlock) == null ? void 0 : F.id,
2519
2533
  path: `component.options.variants.${B}.blocks`,
2520
2534
  context: e.builderContext,
2521
2535
  registeredComponents: e.builderComponents,
2522
2536
  children: /* @__PURE__ */ s(
2523
- J,
2537
+ G,
2524
2538
  {
2525
2539
  nonce: ((L = e.builderContext) == null ? void 0 : L.nonce) || "",
2526
2540
  scriptStr: r,
@@ -2528,7 +2542,7 @@ function Wn(e) {
2528
2542
  }
2529
2543
  )
2530
2544
  },
2531
- `${(ke = e.builderBlock) == null ? void 0 : ke.id}-${B}`
2545
+ `${(Ce = e.builderBlock) == null ? void 0 : Ce.id}-${B}`
2532
2546
  );
2533
2547
  })
2534
2548
  ] }) : null,
@@ -2536,20 +2550,20 @@ function Wn(e) {
2536
2550
  M,
2537
2551
  {
2538
2552
  blocks: y().blocks,
2539
- parent: (I = e.builderBlock) == null ? void 0 : I.id,
2553
+ parent: (V = e.builderBlock) == null ? void 0 : V.id,
2540
2554
  path: y().path,
2541
2555
  context: e.builderContext,
2542
2556
  registeredComponents: e.builderComponents,
2543
2557
  BlocksWrapperProps: {
2544
- ...(V = e.builderContext) == null ? void 0 : V.BlocksWrapperProps,
2558
+ ...(A = e.builderContext) == null ? void 0 : A.BlocksWrapperProps,
2545
2559
  "data-variant-id": `${(W = e.builderBlock) == null ? void 0 : W.id}-${y().index}`
2546
2560
  },
2547
2561
  children: h ? /* @__PURE__ */ s(
2548
- J,
2562
+ G,
2549
2563
  {
2550
2564
  nonce: ((R = e.builderContext) == null ? void 0 : R.nonce) || "",
2551
2565
  scriptStr: r,
2552
- id: `variants-script-${(A = e.builderBlock) == null ? void 0 : A.id}-${ie}`
2566
+ id: `variants-script-${(P = e.builderBlock) == null ? void 0 : P.id}-${ne}`
2553
2567
  }
2554
2568
  ) : null
2555
2569
  }
@@ -2557,7 +2571,7 @@ function Wn(e) {
2557
2571
  ] }) : null
2558
2572
  ] });
2559
2573
  }
2560
- const $n = {
2574
+ const Dn = {
2561
2575
  name: "Core:Section",
2562
2576
  static: !0,
2563
2577
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -2596,7 +2610,7 @@ const $n = {
2596
2610
  }
2597
2611
  }
2598
2612
  }]
2599
- }, Dn = {
2613
+ }, On = {
2600
2614
  name: "Slot",
2601
2615
  isRSC: !0,
2602
2616
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -2614,7 +2628,7 @@ const $n = {
2614
2628
  builderComponents: !0
2615
2629
  }
2616
2630
  };
2617
- function On(e) {
2631
+ function Fn(e) {
2618
2632
  var t, n, i;
2619
2633
  return /* @__PURE__ */ s(
2620
2634
  "div",
@@ -2638,7 +2652,7 @@ function On(e) {
2638
2652
  }
2639
2653
  );
2640
2654
  }
2641
- const Fn = {
2655
+ const Ln = {
2642
2656
  name: "Symbol",
2643
2657
  noWrap: !0,
2644
2658
  static: !0,
@@ -2677,7 +2691,7 @@ const Fn = {
2677
2691
  builderComponents: !0,
2678
2692
  builderLinkComponent: !0
2679
2693
  }
2680
- }, he = {
2694
+ }, ge = {
2681
2695
  "@type": "@builder.io/sdk:Element",
2682
2696
  responsiveStyles: {
2683
2697
  large: {
@@ -2699,7 +2713,7 @@ const Fn = {
2699
2713
  text: "New tab"
2700
2714
  }
2701
2715
  }
2702
- }, ge = {
2716
+ }, be = {
2703
2717
  "@type": "@builder.io/sdk:Element",
2704
2718
  responsiveStyles: {
2705
2719
  large: {
@@ -2715,7 +2729,7 @@ const Fn = {
2715
2729
  text: "New tab content "
2716
2730
  }
2717
2731
  }
2718
- }, Ln = {
2732
+ }, _n = {
2719
2733
  name: "Builder: Tabs",
2720
2734
  inputs: [{
2721
2735
  name: "tabs",
@@ -2725,16 +2739,16 @@ const Fn = {
2725
2739
  name: "label",
2726
2740
  type: "uiBlocks",
2727
2741
  hideFromUI: !0,
2728
- defaultValue: [he]
2742
+ defaultValue: [ge]
2729
2743
  }, {
2730
2744
  name: "content",
2731
2745
  type: "uiBlocks",
2732
2746
  hideFromUI: !0,
2733
- defaultValue: [ge]
2747
+ defaultValue: [be]
2734
2748
  }],
2735
2749
  defaultValue: [{
2736
2750
  label: [{
2737
- ...he,
2751
+ ...ge,
2738
2752
  component: {
2739
2753
  name: "Text",
2740
2754
  options: {
@@ -2743,7 +2757,7 @@ const Fn = {
2743
2757
  }
2744
2758
  }],
2745
2759
  content: [{
2746
- ...ge,
2760
+ ...be,
2747
2761
  component: {
2748
2762
  name: "Text",
2749
2763
  options: {
@@ -2753,7 +2767,7 @@ const Fn = {
2753
2767
  }]
2754
2768
  }, {
2755
2769
  label: [{
2756
- ...he,
2770
+ ...ge,
2757
2771
  component: {
2758
2772
  name: "Text",
2759
2773
  options: {
@@ -2762,7 +2776,7 @@ const Fn = {
2762
2776
  }
2763
2777
  }],
2764
2778
  content: [{
2765
- ...ge,
2779
+ ...be,
2766
2780
  component: {
2767
2781
  name: "Text",
2768
2782
  options: {
@@ -2819,7 +2833,7 @@ const Fn = {
2819
2833
  builderLinkComponent: !0
2820
2834
  }
2821
2835
  };
2822
- function _n(e) {
2836
+ function Un(e) {
2823
2837
  var a;
2824
2838
  const [t, n] = k(
2825
2839
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
@@ -2879,11 +2893,10 @@ function _n(e) {
2879
2893
  ) }) : null
2880
2894
  ] });
2881
2895
  }
2882
- const Un = {
2896
+ const Hn = {
2883
2897
  shouldReceiveBuilderProps: {},
2884
2898
  name: "Text",
2885
2899
  static: !0,
2886
- isRSC: !0,
2887
2900
  image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",
2888
2901
  inputs: [{
2889
2902
  name: "text",
@@ -2899,7 +2912,7 @@ const Un = {
2899
2912
  textAlign: "center"
2900
2913
  }
2901
2914
  };
2902
- function Hn(e) {
2915
+ function Mn(e) {
2903
2916
  var t;
2904
2917
  return /* @__PURE__ */ s(
2905
2918
  "div",
@@ -2912,7 +2925,7 @@ function Hn(e) {
2912
2925
  }
2913
2926
  );
2914
2927
  }
2915
- const Mn = {
2928
+ const qn = {
2916
2929
  name: "Custom Code",
2917
2930
  static: !0,
2918
2931
  requiredPermissions: ["editCode"],
@@ -2935,7 +2948,7 @@ const Mn = {
2935
2948
  advanced: !0
2936
2949
  }]
2937
2950
  };
2938
- function qn(e) {
2951
+ function jn(e) {
2939
2952
  const t = z(null), [n, i] = k(() => []), [r, o] = k(() => []);
2940
2953
  function a() {
2941
2954
  var c;
@@ -2981,7 +2994,7 @@ function qn(e) {
2981
2994
  }
2982
2995
  );
2983
2996
  }
2984
- const jn = {
2997
+ const zn = {
2985
2998
  name: "Embed",
2986
2999
  static: !0,
2987
3000
  inputs: [{
@@ -2996,8 +3009,8 @@ const jn = {
2996
3009
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2997
3010
  hideFromUI: !0
2998
3011
  }]
2999
- }, zn = ["text/javascript", "application/javascript", "application/ecmascript"], Kn = (e) => zn.includes(e.type);
3000
- function Jn(e) {
3012
+ }, Kn = ["text/javascript", "application/javascript", "application/ecmascript"], Jn = (e) => Kn.includes(e.type);
3013
+ function Gn(e) {
3001
3014
  const t = z(null), [n, i] = k(() => []), [r, o] = k(() => []), [a, l] = k(() => !1);
3002
3015
  function c() {
3003
3016
  if (!t.current || !t.current.getElementsByTagName)
@@ -3009,7 +3022,7 @@ function Jn(e) {
3009
3022
  n.push(b.src);
3010
3023
  const u = document.createElement("script");
3011
3024
  u.async = !0, u.src = b.src, document.head.appendChild(u);
3012
- } else if (Kn(b) && !r.includes(b.innerText))
3025
+ } else if (Jn(b) && !r.includes(b.innerText))
3013
3026
  try {
3014
3027
  r.push(b.innerText), new Function(b.innerText)();
3015
3028
  } catch (u) {
@@ -3028,7 +3041,7 @@ function Jn(e) {
3028
3041
  }
3029
3042
  );
3030
3043
  }
3031
- const Gn = {
3044
+ const Qn = {
3032
3045
  name: "Form:Form",
3033
3046
  // editableTags: ['builder-form-error']
3034
3047
  defaults: {
@@ -3265,11 +3278,11 @@ const Gn = {
3265
3278
  builderComponents: !0,
3266
3279
  builderLinkComponent: !0
3267
3280
  }
3268
- }, Qn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Yn = () => {
3281
+ }, Yn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Xn = () => {
3269
3282
  const e = process.env.NODE_ENV || "production";
3270
- return Qn.includes(e) ? e : "production";
3283
+ return Yn.includes(e) ? e : "production";
3271
3284
  };
3272
- function Xn(e) {
3285
+ function Zn(e) {
3273
3286
  const t = z(null), [n, i] = k(() => "unsubmitted"), [r, o] = k(() => null), [a, l] = k(() => "");
3274
3287
  function c(u) {
3275
3288
  var f, m;
@@ -3302,25 +3315,25 @@ function Xn(e) {
3302
3315
  (p) => !!p.name && (p.type !== "radio" || p.checked)
3303
3316
  ).map((p) => {
3304
3317
  let v;
3305
- const I = p.name;
3318
+ const V = p.name;
3306
3319
  if (p instanceof HTMLInputElement)
3307
3320
  if (p.type === "radio") {
3308
3321
  if (p.checked)
3309
3322
  return v = p.value, {
3310
- key: I,
3323
+ key: V,
3311
3324
  value: v
3312
3325
  };
3313
3326
  } else if (p.type === "checkbox")
3314
3327
  v = p.checked;
3315
3328
  else if (p.type === "number" || p.type === "range") {
3316
- const V = p.valueAsNumber;
3317
- isNaN(V) || (v = V);
3329
+ const A = p.valueAsNumber;
3330
+ isNaN(A) || (v = A);
3318
3331
  } else
3319
3332
  p.type === "file" ? v = p.files : v = p.value;
3320
3333
  else
3321
3334
  v = p.value;
3322
3335
  return {
3323
- key: I,
3336
+ key: V,
3324
3337
  value: v
3325
3338
  };
3326
3339
  });
@@ -3331,8 +3344,8 @@ function Xn(e) {
3331
3344
  g = S;
3332
3345
  else {
3333
3346
  const p = {};
3334
- Array.from(T).forEach(({ value: v, key: I }) => {
3335
- ze(p, I, v);
3347
+ Array.from(T).forEach(({ value: v, key: V }) => {
3348
+ Ke(p, V, v);
3336
3349
  }), g = JSON.stringify(p);
3337
3350
  }
3338
3351
  E && E !== "multipart/form-data" && (x && ((f = e.action) != null && f.includes("zapier.com")) || (y["content-type"] = E));
@@ -3344,23 +3357,23 @@ function Xn(e) {
3344
3357
  console.error(p), i("error"), c({ formErrorMessage: p });
3345
3358
  return;
3346
3359
  }
3347
- const H = `${Yn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3360
+ const H = `${Xn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3348
3361
  e.sendSubmissionsToEmail || ""
3349
3362
  )}&name=${encodeURIComponent(e.name || "")}`, q = e.sendSubmissionsTo === "email" ? H : e.action;
3350
- Fe(q), fetch(q, { body: g, headers: y, method: e.method || "post" }).then(
3363
+ Le(q), fetch(q, { body: g, headers: y, method: e.method || "post" }).then(
3351
3364
  async (p) => {
3352
- var V, W;
3365
+ var A, W;
3353
3366
  let v;
3354
- const I = p.headers.get("content-type");
3355
- if (I && I.indexOf("application/json") !== -1 ? v = await p.json() : v = await p.text(), !p.ok) {
3367
+ const V = p.headers.get("content-type");
3368
+ if (V && V.indexOf("application/json") !== -1 ? v = await p.json() : v = await p.text(), !p.ok) {
3356
3369
  const R = new CustomEvent("submit:error", {
3357
3370
  detail: { error: v, status: p.status }
3358
3371
  });
3359
- if ((V = t.current) != null && V.nativeElement && ((W = t.current) == null || W.nativeElement.dispatchEvent(R), R.defaultPrevented))
3372
+ if ((A = t.current) != null && A.nativeElement && ((W = t.current) == null || W.nativeElement.dispatchEvent(R), R.defaultPrevented))
3360
3373
  return;
3361
3374
  o(v), i("error");
3362
- let A = e.errorMessagePath ? Me(v, e.errorMessagePath) : v.message || v.error || v;
3363
- typeof A != "string" && (A = JSON.stringify(A)), l(A), c({ formErrorMessage: A });
3375
+ let P = e.errorMessagePath ? qe(v, e.errorMessagePath) : v.message || v.error || v;
3376
+ typeof P != "string" && (P = JSON.stringify(P)), l(P), c({ formErrorMessage: P });
3364
3377
  return;
3365
3378
  }
3366
3379
  if (o(v), i(p.ok ? "success" : "error"), p.ok) {
@@ -3374,10 +3387,10 @@ function Xn(e) {
3374
3387
  }
3375
3388
  if (e.successUrl)
3376
3389
  if (t.current) {
3377
- const A = new CustomEvent("route", {
3390
+ const P = new CustomEvent("route", {
3378
3391
  detail: { url: e.successUrl }
3379
3392
  });
3380
- t.current.dispatchEvent(A), A.defaultPrevented || (location.href = e.successUrl);
3393
+ t.current.dispatchEvent(P), P.defaultPrevented || (location.href = e.successUrl);
3381
3394
  } else
3382
3395
  location.href = e.successUrl;
3383
3396
  }
@@ -3391,7 +3404,7 @@ function Xn(e) {
3391
3404
  );
3392
3405
  }
3393
3406
  }
3394
- return /* @__PURE__ */ D(P, { children: [
3407
+ return /* @__PURE__ */ D(w, { children: [
3395
3408
  " ",
3396
3409
  /* @__PURE__ */ s("style", { children: ".pre-abc898ba { padding: 10px; color: red; text-align: center; }" }),
3397
3410
  " ",
@@ -3438,7 +3451,7 @@ function Xn(e) {
3438
3451
  " "
3439
3452
  ] });
3440
3453
  }
3441
- const Zn = {
3454
+ const ei = {
3442
3455
  name: "Form:Input",
3443
3456
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
3444
3457
  inputs: [
@@ -3490,8 +3503,8 @@ const Zn = {
3490
3503
  borderColor: "#ccc"
3491
3504
  }
3492
3505
  };
3493
- function ei(e) {
3494
- return /* @__PURE__ */ Ue(
3506
+ function ti(e) {
3507
+ return /* @__PURE__ */ He(
3495
3508
  "input",
3496
3509
  {
3497
3510
  ...e.attributes,
@@ -3505,7 +3518,7 @@ function ei(e) {
3505
3518
  }
3506
3519
  );
3507
3520
  }
3508
- const ti = {
3521
+ const ni = {
3509
3522
  name: "Form:Select",
3510
3523
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
3511
3524
  defaultStyles: {
@@ -3548,9 +3561,9 @@ const ti = {
3548
3561
  static: !0,
3549
3562
  noWrap: !0
3550
3563
  };
3551
- function ni(e) {
3564
+ function ii(e) {
3552
3565
  var t;
3553
- return /* @__PURE__ */ Ue(
3566
+ return /* @__PURE__ */ He(
3554
3567
  "select",
3555
3568
  {
3556
3569
  ...e.attributes,
@@ -3563,7 +3576,7 @@ function ni(e) {
3563
3576
  (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
3564
3577
  );
3565
3578
  }
3566
- const ii = {
3579
+ const ri = {
3567
3580
  name: "Form:SubmitButton",
3568
3581
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
3569
3582
  defaultStyles: {
@@ -3589,10 +3602,10 @@ const ii = {
3589
3602
  // TODO: defaultChildren
3590
3603
  // canHaveChildren: true,
3591
3604
  };
3592
- function ri(e) {
3605
+ function oi(e) {
3593
3606
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
3594
3607
  }
3595
- const oi = {
3608
+ const ai = {
3596
3609
  name: "Form:TextArea",
3597
3610
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
3598
3611
  inputs: [{
@@ -3629,7 +3642,7 @@ const oi = {
3629
3642
  static: !0,
3630
3643
  noWrap: !0
3631
3644
  };
3632
- function ai(e) {
3645
+ function li(e) {
3633
3646
  return /* @__PURE__ */ s(
3634
3647
  "textarea",
3635
3648
  {
@@ -3642,8 +3655,7 @@ function ai(e) {
3642
3655
  }
3643
3656
  );
3644
3657
  }
3645
- const li = {
3646
- // friendlyName?
3658
+ const si = {
3647
3659
  name: "Raw:Img",
3648
3660
  hideFromInsertMenu: !0,
3649
3661
  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",
@@ -3651,35 +3663,71 @@ const li = {
3651
3663
  name: "image",
3652
3664
  bubble: !0,
3653
3665
  type: "file",
3654
- allowedFileTypes: Se,
3666
+ allowedFileTypes: ke,
3655
3667
  required: !0
3668
+ }, {
3669
+ name: "backgroundSize",
3670
+ type: "text",
3671
+ defaultValue: "cover",
3672
+ enum: [{
3673
+ label: "contain",
3674
+ value: "contain",
3675
+ helperText: "The image should never get cropped"
3676
+ }, {
3677
+ label: "cover",
3678
+ value: "cover",
3679
+ helperText: "The image should fill it's box, cropping when needed"
3680
+ }]
3681
+ }, {
3682
+ name: "backgroundPosition",
3683
+ type: "text",
3684
+ defaultValue: "center",
3685
+ enum: ["center", "top", "left", "right", "bottom", "top left", "top right", "bottom left", "bottom right"]
3686
+ }, {
3687
+ name: "altText",
3688
+ type: "string",
3689
+ helperText: "Text to display when the user has images off"
3690
+ }, {
3691
+ name: "title",
3692
+ type: "string",
3693
+ helperText: "Text to display when hovering over the asset"
3694
+ }, {
3695
+ name: "aspectRatio",
3696
+ type: "number",
3697
+ helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
3698
+ advanced: !0,
3699
+ defaultValue: 0.7041
3656
3700
  }],
3657
- noWrap: !0,
3658
- static: !0
3701
+ noWrap: !0
3659
3702
  };
3660
- function si(e) {
3703
+ function ci(e) {
3704
+ var n;
3661
3705
  function t() {
3662
- const n = e.imgSrc || e.image;
3663
- if (!(!n || typeof n != "string") && n.match(/builder\.io/))
3664
- return ne(n);
3706
+ const i = {
3707
+ ...e.attributes,
3708
+ [K()]: `builder-raw-img ${e.attributes[K()] || ""}`
3709
+ };
3710
+ return delete i.style, i;
3665
3711
  }
3666
3712
  return /* @__PURE__ */ s(
3667
3713
  "img",
3668
3714
  {
3669
3715
  loading: "lazy",
3670
- style: {
3671
- objectFit: e.backgroundSize || "cover",
3672
- objectPosition: e.backgroundPosition || "center"
3673
- },
3674
3716
  alt: e.altText,
3717
+ title: e.title,
3675
3718
  src: e.imgSrc || e.image,
3676
- srcSet: t(),
3677
- ...e.attributes
3719
+ ...t(),
3720
+ style: {
3721
+ objectFit: e.backgroundSize || "cover",
3722
+ objectPosition: e.backgroundPosition || "center",
3723
+ aspectRatio: e.aspectRatio || void 0,
3724
+ ...((n = e.attributes) == null ? void 0 : n.style) || {}
3725
+ }
3678
3726
  },
3679
3727
  _() && e.imgSrc || "default-key"
3680
3728
  );
3681
3729
  }
3682
- const ci = {
3730
+ const ui = {
3683
3731
  name: "Video",
3684
3732
  canHaveChildren: !0,
3685
3733
  defaultStyles: {
@@ -3690,14 +3738,14 @@ const ci = {
3690
3738
  inputs: [{
3691
3739
  name: "video",
3692
3740
  type: "file",
3693
- allowedFileTypes: An,
3741
+ allowedFileTypes: Bn,
3694
3742
  bubble: !0,
3695
3743
  defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
3696
3744
  required: !0
3697
3745
  }, {
3698
3746
  name: "posterImage",
3699
3747
  type: "file",
3700
- allowedFileTypes: Se,
3748
+ allowedFileTypes: ke,
3701
3749
  helperText: "Image to show before the video plays"
3702
3750
  }, {
3703
3751
  name: "autoPlay",
@@ -3764,7 +3812,7 @@ const ci = {
3764
3812
  builderBlock: !0
3765
3813
  }
3766
3814
  };
3767
- function ui(e) {
3815
+ function di(e) {
3768
3816
  var a, l, c, d, h, b, u;
3769
3817
  const t = z(null);
3770
3818
  function n() {
@@ -3900,67 +3948,67 @@ function ui(e) {
3900
3948
  }
3901
3949
  );
3902
3950
  }
3903
- const di = () => [{
3904
- component: qn,
3905
- ...Mn
3906
- }, {
3907
- component: Jn,
3908
- ...jn
3951
+ const mi = () => [{
3952
+ component: jn,
3953
+ ...qn
3909
3954
  }, {
3910
- component: Xn,
3911
- ...Gn
3955
+ component: Gn,
3956
+ ...zn
3912
3957
  }, {
3913
- component: ei,
3914
- ...Zn
3958
+ component: Zn,
3959
+ ...Qn
3915
3960
  }, {
3916
- component: ri,
3917
- ...ii
3961
+ component: ti,
3962
+ ...ei
3918
3963
  }, {
3919
- component: ni,
3920
- ...ti
3964
+ component: oi,
3965
+ ...ri
3921
3966
  }, {
3922
- component: ai,
3923
- ...oi
3967
+ component: ii,
3968
+ ...ni
3924
3969
  }, {
3925
- component: si,
3926
- ...li
3970
+ component: li,
3971
+ ...ai
3927
3972
  }, {
3928
- component: ui,
3929
- ...ci
3930
- }], Ne = () => [{
3931
- component: pt,
3932
- ...Rn
3973
+ component: ci,
3974
+ ...si
3933
3975
  }, {
3934
- component: un,
3976
+ component: di,
3977
+ ...ui
3978
+ }], We = () => [{
3979
+ component: vt,
3935
3980
  ...Pn
3936
3981
  }, {
3937
3982
  component: dn,
3938
3983
  ...Vn
3939
3984
  }, {
3940
- component: hn,
3941
- ...Bn
3985
+ component: mn,
3986
+ ...An
3942
3987
  }, {
3943
3988
  component: gn,
3944
- ...$n
3989
+ ...Nn
3945
3990
  }, {
3946
- component: On,
3991
+ component: bn,
3947
3992
  ...Dn
3948
3993
  }, {
3949
- component: Di,
3950
- ...Fn
3994
+ component: Fn,
3995
+ ...On
3951
3996
  }, {
3952
- component: Hn,
3953
- ...Un
3954
- }, ...rt.includes(O) ? [{
3955
- component: Wn,
3956
- ...Nn
3957
- }] : [], {
3958
- component: _n,
3997
+ component: Oi,
3959
3998
  ...Ln
3960
3999
  }, {
3961
- component: En,
3962
- ...wn
3963
- }, ...di()], mi = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
4000
+ component: Mn,
4001
+ ...Hn
4002
+ }, ...ot.includes(O) ? [{
4003
+ component: $n,
4004
+ ...Wn
4005
+ }] : [], {
4006
+ component: Un,
4007
+ ..._n
4008
+ }, {
4009
+ component: Rn,
4010
+ ...En
4011
+ }, ...mi()], fi = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
3964
4012
  function getAndSetVariantId() {
3965
4013
  function setCookie(name, value, days) {
3966
4014
  let expires = '';
@@ -4019,7 +4067,7 @@ const di = () => [{
4019
4067
  }).join('');
4020
4068
  styleEl.innerHTML = newStyleStr;
4021
4069
  }
4022
- }`, fi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4070
+ }`, hi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4023
4071
  if (!navigator.cookieEnabled) {
4024
4072
  return;
4025
4073
  }
@@ -4053,29 +4101,29 @@ const di = () => [{
4053
4101
  thisScriptEl?.remove();
4054
4102
  }
4055
4103
  return;
4056
- }`, at = "builderIoAbTest", lt = "builderIoRenderContent", oe = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4104
+ }`, lt = "builderIoAbTest", st = "builderIoRenderContent", re = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4057
4105
  ...t,
4058
4106
  testVariationId: t.id,
4059
4107
  id: e == null ? void 0 : e.id
4060
- })), hi = ({
4108
+ })), gi = ({
4061
4109
  canTrack: e,
4062
4110
  content: t
4063
- }) => !(!(oe(t).length > 0) || !e || K()), gi = (e) => e === "react" || e === "reactNative", bi = O === "angular", st = gi(O), yi = () => `
4064
- window.${at} = ${mi}
4111
+ }) => !(!(re(t).length > 0) || !e || J()), bi = (e) => e === "react" || e === "reactNative", yi = O === "angular", ct = bi(O), pi = () => `
4065
4112
  window.${lt} = ${fi}
4066
- `, pi = (e, t) => `
4067
- window.${at}(
4068
- "${t}",${JSON.stringify(e)}, ${st}, ${bi}
4069
- )`, vi = ({
4113
+ window.${st} = ${hi}
4114
+ `, vi = (e, t) => `
4115
+ window.${lt}(
4116
+ "${t}",${JSON.stringify(e)}, ${ct}, ${yi}
4117
+ )`, xi = ({
4070
4118
  contentId: e,
4071
4119
  variationId: t
4072
- }) => `window.${lt}(
4073
- "${t}", "${e}", ${st}
4120
+ }) => `window.${st}(
4121
+ "${t}", "${e}", ${ct}
4074
4122
  )`;
4075
- function We(e) {
4123
+ function $e(e) {
4076
4124
  return Math.round(e * 1e3) / 1e3;
4077
4125
  }
4078
- const xi = (e, t, n = !0) => {
4126
+ const Si = (e, t, n = !0) => {
4079
4127
  if (!(e instanceof HTMLElement))
4080
4128
  return null;
4081
4129
  let i = n ? e : e.parentElement;
@@ -4086,35 +4134,35 @@ const xi = (e, t, n = !0) => {
4086
4134
  return i;
4087
4135
  } while (i = i.parentElement);
4088
4136
  return null;
4089
- }, Si = (e) => xi(e, (t) => {
4137
+ }, ki = (e) => Si(e, (t) => {
4090
4138
  const n = t.getAttribute("builder-id") || t.id;
4091
4139
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
4092
- }), $e = ({
4140
+ }), De = ({
4093
4141
  event: e,
4094
4142
  target: t
4095
4143
  }) => {
4096
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, r = e.clientY - n.top, o = We(i / n.width), a = We(r / n.height);
4144
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, r = e.clientY - n.top, o = $e(i / n.width), a = $e(r / n.height);
4097
4145
  return {
4098
4146
  x: o,
4099
4147
  y: a
4100
4148
  };
4101
- }, ki = (e) => {
4102
- const t = e.target, n = t && Si(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4149
+ }, Ci = (e) => {
4150
+ const t = e.target, n = t && ki(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4103
4151
  return {
4104
4152
  targetBuilderElement: i || void 0,
4105
4153
  metadata: {
4106
- targetOffset: t ? $e({
4154
+ targetOffset: t ? De({
4107
4155
  event: e,
4108
4156
  target: t
4109
4157
  }) : void 0,
4110
- builderTargetOffset: n ? $e({
4158
+ builderTargetOffset: n ? De({
4111
4159
  event: e,
4112
4160
  target: n
4113
4161
  }) : void 0,
4114
4162
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
4115
4163
  }
4116
4164
  };
4117
- }, Ci = ["svelte", "qwik", "vue"], De = () => Ci.includes(O) && (_() || se()), Ti = (e) => {
4165
+ }, Ti = ["svelte", "qwik", "vue"], Oe = () => Ti.includes(O) && (_() || le()), Ii = (e) => {
4118
4166
  var o, a;
4119
4167
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
4120
4168
  let r = "";
@@ -4140,15 +4188,15 @@ font-weight: ${l};
4140
4188
  `.trim());
4141
4189
  }
4142
4190
  return r;
4143
- }, Ii = ({
4191
+ }, wi = ({
4144
4192
  customFonts: e
4145
4193
  }) => {
4146
4194
  var t;
4147
- return ((t = e == null ? void 0 : e.map((n) => Ti(n))) == null ? void 0 : t.join(" ")) || "";
4148
- }, wi = ({
4195
+ return ((t = e == null ? void 0 : e.map((n) => Ii(n))) == null ? void 0 : t.join(" ")) || "";
4196
+ }, Ei = ({
4149
4197
  cssCode: e,
4150
4198
  contentId: t
4151
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ei = `
4199
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ri = `
4152
4200
  .builder-button {
4153
4201
  all: unset;
4154
4202
  }
@@ -4165,41 +4213,46 @@ font-weight: ${l};
4165
4213
  text-align: inherit;
4166
4214
  font-family: inherit;
4167
4215
  }
4168
- `, Ri = (e) => e ? "" : Ei, Pi = (e) => `variant-${e}`;
4169
- function Vi(e) {
4216
+ `, Pi = (e) => e ? "" : Ri, Vi = (e) => `variant-${e}`;
4217
+ function Ai(e) {
4170
4218
  var H, q, p;
4171
4219
  const t = z(null);
4172
- k(() => !1);
4220
+ k(() => !1), k(
4221
+ () => e.builderContextSignal
4222
+ );
4173
4223
  const [n, i] = k(() => null), [r, o] = k(() => "");
4174
- function a(v) {
4175
- var V, W;
4176
- const I = {
4224
+ function a(v, V) {
4225
+ var W, R;
4226
+ const A = {
4177
4227
  ...e.builderContextSignal.rootState,
4178
4228
  ...v
4179
4229
  };
4180
- e.builderContextSignal.rootSetState ? (W = (V = e.builderContextSignal).rootSetState) == null || W.call(V, I) : e.setBuilderContextSignal((R) => ({
4181
- ...R,
4182
- rootState: I
4230
+ e.builderContextSignal.rootSetState ? (R = (W = e.builderContextSignal).rootSetState) == null || R.call(W, A) : e.setBuilderContextSignal((P) => ({
4231
+ ...P,
4232
+ rootState: A
4233
+ })), e.builderContextSignal.rootSetState ? e.builderContextSignal.rootSetState(A) : e.setBuilderContextSignal((P) => ({
4234
+ ...P,
4235
+ rootState: A
4183
4236
  }));
4184
4237
  }
4185
- function l(v) {
4186
- var V, W, R, A, w;
4187
- const I = {
4238
+ function l(v, V) {
4239
+ var W, R, P, I, B;
4240
+ const A = {
4188
4241
  ...e.builderContextSignal.content,
4189
4242
  ...v,
4190
4243
  data: {
4191
- ...(V = e.builderContextSignal.content) == null ? void 0 : V.data,
4244
+ ...(W = e.builderContextSignal.content) == null ? void 0 : W.data,
4192
4245
  ...v == null ? void 0 : v.data
4193
4246
  },
4194
4247
  meta: {
4195
- ...(W = e.builderContextSignal.content) == null ? void 0 : W.meta,
4248
+ ...(R = e.builderContextSignal.content) == null ? void 0 : R.meta,
4196
4249
  ...v == null ? void 0 : v.meta,
4197
- breakpoints: ((R = v == null ? void 0 : v.meta) == null ? void 0 : R.breakpoints) || ((w = (A = e.builderContextSignal.content) == null ? void 0 : A.meta) == null ? void 0 : w.breakpoints)
4250
+ breakpoints: ((P = v == null ? void 0 : v.meta) == null ? void 0 : P.breakpoints) || ((B = (I = e.builderContextSignal.content) == null ? void 0 : I.meta) == null ? void 0 : B.breakpoints)
4198
4251
  }
4199
4252
  };
4200
- e.setBuilderContextSignal((B) => ({
4201
- ...B,
4202
- content: I
4253
+ e.setBuilderContextSignal((C) => ({
4254
+ ...C,
4255
+ content: A
4203
4256
  }));
4204
4257
  }
4205
4258
  function c() {
@@ -4212,60 +4265,60 @@ function Vi(e) {
4212
4265
  () => e.contentWrapper || "div"
4213
4266
  );
4214
4267
  function b(v) {
4215
- return ft({
4268
+ return ht({
4216
4269
  model: e.model,
4217
4270
  trustedHosts: e.trustedHosts,
4218
4271
  callbacks: {
4219
- configureSdk: (I) => {
4272
+ configureSdk: (V) => {
4220
4273
  var R;
4221
- const { breakpoints: V, contentId: W } = I;
4222
- !W || W !== ((R = e.builderContextSignal.content) == null ? void 0 : R.id) || V && l({
4274
+ const { breakpoints: A, contentId: W } = V;
4275
+ !W || W !== ((R = e.builderContextSignal.content) == null ? void 0 : R.id) || A && l({
4223
4276
  meta: {
4224
- breakpoints: V
4277
+ breakpoints: A
4225
4278
  }
4226
4279
  });
4227
4280
  },
4228
- animation: (I) => {
4229
- Ge(I);
4281
+ animation: (V) => {
4282
+ Qe(V);
4230
4283
  },
4231
- contentUpdate: (I) => {
4232
- l(I);
4284
+ contentUpdate: (V, A) => {
4285
+ l(V);
4233
4286
  },
4234
- stateUpdate: (I) => {
4235
- a(I);
4287
+ stateUpdate: (V, A) => {
4288
+ a(V);
4236
4289
  }
4237
4290
  }
4238
4291
  })(v);
4239
4292
  }
4240
4293
  const [u, x] = k(() => ({})), [f, m] = k(() => ({})), [y, g] = k(() => !1);
4241
4294
  function S(v) {
4242
- var I, V;
4295
+ var V, A;
4243
4296
  if (e.builderContextSignal.content) {
4244
- const W = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, R = (V = e.builderContextSignal.content) == null ? void 0 : V.id;
4245
- Te({
4297
+ const W = (V = e.builderContextSignal.content) == null ? void 0 : V.testVariationId, R = (A = e.builderContextSignal.content) == null ? void 0 : A.id;
4298
+ Ie({
4246
4299
  apiHost: e.apiHost,
4247
4300
  type: "click",
4248
4301
  canTrack: ee(e.canTrack),
4249
4302
  contentId: R,
4250
4303
  apiKey: e.apiKey,
4251
4304
  variationId: W !== R ? W : void 0,
4252
- ...ki(v),
4305
+ ...Ci(v),
4253
4306
  unique: !y
4254
4307
  });
4255
4308
  }
4256
4309
  y || g(!0);
4257
4310
  }
4258
4311
  function T() {
4259
- var I, V, W;
4260
- const v = (W = (V = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : V.httpRequests) != null ? W : {};
4312
+ var V, A, W;
4313
+ const v = (W = (A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.httpRequests) != null ? W : {};
4261
4314
  Object.entries(v).forEach(
4262
- ([R, A]) => {
4263
- if (!A)
4315
+ ([R, P]) => {
4316
+ if (!P)
4264
4317
  return;
4265
- const w = typeof A == "object" && A["@type"] === "@builder.io/core:Request";
4318
+ const I = typeof P == "object" && P["@type"] === "@builder.io/core:Request";
4266
4319
  if (f[R] || u[R] && !_())
4267
4320
  return;
4268
- const B = w ? A.request.url : A;
4321
+ const B = I ? P.request.url : P;
4269
4322
  f[R] = !0;
4270
4323
  const C = B.replace(
4271
4324
  /{{([^}]+)}}/g,
@@ -4278,16 +4331,16 @@ function Vi(e) {
4278
4331
  rootSetState: e.builderContextSignal.rootSetState
4279
4332
  })
4280
4333
  )
4281
- ), $ = w ? {
4334
+ ), $ = I ? {
4282
4335
  url: C,
4283
- method: A.request.method,
4284
- headers: A.request.headers,
4285
- body: A.request.body
4336
+ method: P.request.method,
4337
+ headers: P.request.headers,
4338
+ body: P.request.body
4286
4339
  } : {
4287
4340
  url: C,
4288
4341
  method: "GET"
4289
4342
  };
4290
- Fe(JSON.stringify($));
4343
+ Le(JSON.stringify($));
4291
4344
  const F = {
4292
4345
  method: $.method,
4293
4346
  headers: $.headers,
@@ -4300,7 +4353,7 @@ function Vi(e) {
4300
4353
  }).catch((L) => {
4301
4354
  console.error(
4302
4355
  "error fetching dynamic data",
4303
- JSON.stringify(A),
4356
+ JSON.stringify(P),
4304
4357
  L
4305
4358
  );
4306
4359
  }).finally(() => {
@@ -4315,7 +4368,7 @@ function Vi(e) {
4315
4368
  "builder:component:stateChange",
4316
4369
  {
4317
4370
  detail: {
4318
- state: ve(e.builderContextSignal.rootState),
4371
+ state: xe(e.builderContextSignal.rootState),
4319
4372
  ref: {
4320
4373
  name: e.model
4321
4374
  }
@@ -4326,9 +4379,9 @@ function Vi(e) {
4326
4379
  }
4327
4380
  const U = z(!1);
4328
4381
  return U.current || (T(), E(), U.current = !0), N(() => {
4329
- var v, I, V, W, R;
4330
- if (K()) {
4331
- _() && !e.isNestedRender && (window.addEventListener("message", b), ut({
4382
+ var v, V, A, W, R;
4383
+ if (J()) {
4384
+ _() && !e.isNestedRender && (window.addEventListener("message", b), dt({
4332
4385
  ...e.locale ? {
4333
4386
  locale: e.locale
4334
4387
  } : {},
@@ -4345,33 +4398,33 @@ function Vi(e) {
4345
4398
  ).forEach((C) => {
4346
4399
  var $, F;
4347
4400
  if (!(($ = C.models) != null && $.length) || C.models.includes(e.model)) {
4348
- const L = dt(C);
4401
+ const L = mt(C);
4349
4402
  (F = window.parent) == null || F.postMessage(L, "*");
4350
4403
  }
4351
4404
  }), window.addEventListener(
4352
4405
  "builder:component:stateChangeListenerActivated",
4353
4406
  E
4354
4407
  ));
4355
- const A = e.builderContextSignal.content && ee(e.canTrack), w = mt({
4356
- name: `builder.tests.${(I = e.builderContextSignal.content) == null ? void 0 : I.id}`,
4408
+ const P = e.builderContextSignal.content && ee(e.canTrack), I = ft({
4409
+ name: `builder.tests.${(V = e.builderContextSignal.content) == null ? void 0 : V.id}`,
4357
4410
  canTrack: !0
4358
- }), B = (V = e.builderContextSignal.content) == null ? void 0 : V.testVariationId;
4359
- if (A && B === w) {
4411
+ }), B = (A = e.builderContextSignal.content) == null ? void 0 : A.testVariationId;
4412
+ if (P && B === I) {
4360
4413
  const C = (W = e.builderContextSignal.content) == null ? void 0 : W.id, $ = e.apiKey;
4361
- Te({
4414
+ Ie({
4362
4415
  apiHost: e.apiHost,
4363
4416
  type: "impression",
4364
4417
  canTrack: !0,
4365
4418
  contentId: C,
4366
4419
  apiKey: $,
4367
- variationId: w !== C ? w : void 0
4420
+ variationId: I !== C ? I : void 0
4368
4421
  });
4369
4422
  }
4370
- if (se() && !_()) {
4423
+ if (le() && !_()) {
4371
4424
  const C = new URL(location.href).searchParams, $ = C.get("builder.preview"), F = C.get(
4372
4425
  `builder.overrides.${$}`
4373
4426
  ), L = C.get("apiKey") || C.get("builder.space");
4374
- ($ === "BUILDER_STUDIO" || $ === e.model && L === e.apiKey && (!e.content || F === e.content.id)) && Le({
4427
+ ($ === "BUILDER_STUDIO" || $ === e.model && L === e.apiKey && (!e.content || F === e.content.id)) && _e({
4375
4428
  model: e.model,
4376
4429
  apiKey: e.apiKey,
4377
4430
  apiVersion: e.builderContextSignal.apiVersion,
@@ -4404,22 +4457,22 @@ function Vi(e) {
4404
4457
  }), o(e.locale);
4405
4458
  }
4406
4459
  }, [e.locale]), N(() => () => {
4407
- K() && (window.removeEventListener("message", b), window.removeEventListener(
4460
+ J() && (window.removeEventListener("message", b), window.removeEventListener(
4408
4461
  "builder:component:stateChangeListenerActivated",
4409
4462
  E
4410
4463
  ));
4411
- }, []), /* @__PURE__ */ s(pe.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || De() ? /* @__PURE__ */ s(
4464
+ }, []), /* @__PURE__ */ s(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Oe() ? /* @__PURE__ */ s(
4412
4465
  d,
4413
4466
  {
4414
4467
  ref: t,
4415
4468
  onClick: (v) => S(v),
4416
4469
  "builder-content-id": (H = e.builderContextSignal.content) == null ? void 0 : H.id,
4417
4470
  "builder-model": e.model,
4418
- className: Pi(
4471
+ className: Vi(
4419
4472
  ((q = e.content) == null ? void 0 : q.testVariationId) || ((p = e.content) == null ? void 0 : p.id)
4420
4473
  ),
4421
4474
  style: {
4422
- display: !e.builderContextSignal.content && De() ? "none" : void 0
4475
+ display: !e.builderContextSignal.content && Oe() ? "none" : void 0
4423
4476
  },
4424
4477
  ...c(),
4425
4478
  ...e.contentWrapperProps,
@@ -4427,17 +4480,17 @@ function Vi(e) {
4427
4480
  }
4428
4481
  ) : null });
4429
4482
  }
4430
- function Ai(e) {
4483
+ function Bi(e) {
4431
4484
  const [t, n] = k(
4432
4485
  () => `
4433
- ${wi({
4486
+ ${Ei({
4434
4487
  cssCode: e.cssCode,
4435
4488
  contentId: e.contentId
4436
4489
  })}
4437
- ${Ii({
4490
+ ${wi({
4438
4491
  customFonts: e.customFonts
4439
4492
  })}
4440
- ${Ri(e.isNestedRender)}
4493
+ ${Pi(e.isNestedRender)}
4441
4494
  `.trim()
4442
4495
  );
4443
4496
  return /* @__PURE__ */ s(
@@ -4449,7 +4502,7 @@ ${Ri(e.isNestedRender)}
4449
4502
  }
4450
4503
  );
4451
4504
  }
4452
- const Bi = ({
4505
+ const Ni = ({
4453
4506
  content: e,
4454
4507
  data: t,
4455
4508
  locale: n
@@ -4466,7 +4519,7 @@ const Bi = ({
4466
4519
  locale: n
4467
4520
  } : {}
4468
4521
  };
4469
- }, Ni = ({
4522
+ }, Wi = ({
4470
4523
  content: e,
4471
4524
  data: t
4472
4525
  }) => e ? {
@@ -4477,12 +4530,12 @@ const Bi = ({
4477
4530
  },
4478
4531
  meta: e == null ? void 0 : e.meta
4479
4532
  } : void 0;
4480
- function Oe(e) {
4533
+ function Fe(e) {
4481
4534
  var d, h, b, u, x, f, m, y, g;
4482
4535
  const [t, n] = k(
4483
4536
  () => {
4484
4537
  var S, T;
4485
- return vi({
4538
+ return xi({
4486
4539
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4487
4540
  variationId: (S = e.content) == null ? void 0 : S.testVariationId,
4488
4541
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -4498,25 +4551,25 @@ function Oe(e) {
4498
4551
  }
4499
4552
  const [r, o] = k(
4500
4553
  () => [
4501
- ...Ne(),
4554
+ ...We(),
4502
4555
  ...e.customComponents || []
4503
4556
  ].reduce(
4504
4557
  (S, { component: T, ...E }) => ({
4505
4558
  ...S,
4506
4559
  [E.name]: {
4507
4560
  component: T,
4508
- ...Ie(E)
4561
+ ...we(E)
4509
4562
  }
4510
4563
  }),
4511
4564
  {}
4512
4565
  )
4513
4566
  ), [a, l] = k(() => ({
4514
- content: Ni({
4567
+ content: Wi({
4515
4568
  content: e.content,
4516
4569
  data: e.data
4517
4570
  }),
4518
4571
  localState: void 0,
4519
- rootState: Bi({
4572
+ rootState: Ni({
4520
4573
  content: e.content,
4521
4574
  data: e.data,
4522
4575
  locale: e.locale
@@ -4527,12 +4580,12 @@ function Oe(e) {
4527
4580
  apiKey: e.apiKey,
4528
4581
  apiVersion: e.apiVersion,
4529
4582
  componentInfos: [
4530
- ...Ne(),
4583
+ ...We(),
4531
4584
  ...e.customComponents || []
4532
4585
  ].reduce(
4533
4586
  (S, { component: T, ...E }) => ({
4534
4587
  ...S,
4535
- [E.name]: Ie(E)
4588
+ [E.name]: we(E)
4536
4589
  }),
4537
4590
  {}
4538
4591
  ),
@@ -4559,13 +4612,13 @@ function Oe(e) {
4559
4612
  }), c.current = !0;
4560
4613
  }
4561
4614
  return /* @__PURE__ */ s(
4562
- He.Provider,
4615
+ Me.Provider,
4563
4616
  {
4564
4617
  value: {
4565
4618
  registeredComponents: r
4566
4619
  },
4567
4620
  children: /* @__PURE__ */ D(
4568
- Vi,
4621
+ Ai,
4569
4622
  {
4570
4623
  apiHost: e.apiHost,
4571
4624
  nonce: e.nonce,
@@ -4586,7 +4639,7 @@ function Oe(e) {
4586
4639
  setBuilderContextSignal: l,
4587
4640
  children: [
4588
4641
  e.isSsrAbTest ? /* @__PURE__ */ s(
4589
- J,
4642
+ G,
4590
4643
  {
4591
4644
  id: "builderio-variant-visibility",
4592
4645
  scriptStr: t,
@@ -4594,7 +4647,7 @@ function Oe(e) {
4594
4647
  }
4595
4648
  ) : null,
4596
4649
  /* @__PURE__ */ s(
4597
- Ai,
4650
+ Bi,
4598
4651
  {
4599
4652
  nonce: e.nonce || "",
4600
4653
  isNestedRender: e.isNestedRender,
@@ -4618,18 +4671,18 @@ function Oe(e) {
4618
4671
  }
4619
4672
  );
4620
4673
  }
4621
- function Wi(e) {
4674
+ function $i(e) {
4622
4675
  var a;
4623
4676
  const [t, n] = k(
4624
- () => hi({
4677
+ () => gi({
4625
4678
  canTrack: ee(e.canTrack),
4626
4679
  content: e.content
4627
4680
  })
4628
4681
  );
4629
4682
  function i() {
4630
4683
  var l;
4631
- return pi(
4632
- oe(e.content).map((c) => ({
4684
+ return vi(
4685
+ re(e.content).map((c) => ({
4633
4686
  id: c.testVariationId,
4634
4687
  testRatio: c.testRatio
4635
4688
  })),
@@ -4637,39 +4690,39 @@ function Wi(e) {
4637
4690
  );
4638
4691
  }
4639
4692
  function r() {
4640
- return oe(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
4693
+ return re(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
4641
4694
  }
4642
4695
  function o() {
4643
4696
  var l;
4644
4697
  return t ? {
4645
4698
  ...e.content,
4646
4699
  testVariationId: (l = e.content) == null ? void 0 : l.id
4647
- } : ht({
4700
+ } : gt({
4648
4701
  item: e.content,
4649
4702
  canTrack: ee(e.canTrack)
4650
4703
  });
4651
4704
  }
4652
4705
  return N(() => {
4653
- }, []), /* @__PURE__ */ D(P, { children: [
4654
- !e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */ D(P, { children: [
4706
+ }, []), /* @__PURE__ */ D(w, { children: [
4707
+ !e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */ D(w, { children: [
4655
4708
  /* @__PURE__ */ s(
4656
- J,
4709
+ G,
4657
4710
  {
4658
4711
  id: "builderio-init-variants-fns",
4659
- scriptStr: yi(),
4712
+ scriptStr: pi(),
4660
4713
  nonce: e.nonce || ""
4661
4714
  }
4662
4715
  ),
4663
- rt.includes(O) ? /* @__PURE__ */ s(
4664
- J,
4716
+ ot.includes(O) ? /* @__PURE__ */ s(
4717
+ G,
4665
4718
  {
4666
4719
  id: "builderio-init-personalization-variants-fns",
4667
4720
  nonce: e.nonce || "",
4668
- scriptStr: Cn()
4721
+ scriptStr: Tn()
4669
4722
  }
4670
4723
  ) : null
4671
4724
  ] }) : null,
4672
- t ? /* @__PURE__ */ D(P, { children: [
4725
+ t ? /* @__PURE__ */ D(w, { children: [
4673
4726
  /* @__PURE__ */ s(
4674
4727
  te,
4675
4728
  {
@@ -4679,15 +4732,15 @@ function Wi(e) {
4679
4732
  }
4680
4733
  ),
4681
4734
  /* @__PURE__ */ s(
4682
- J,
4735
+ G,
4683
4736
  {
4684
4737
  id: "builderio-variants-visibility",
4685
4738
  scriptStr: i(),
4686
4739
  nonce: e.nonce || ""
4687
4740
  }
4688
4741
  ),
4689
- (a = oe(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
4690
- Oe,
4742
+ (a = re(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
4743
+ Fe,
4691
4744
  {
4692
4745
  apiHost: e.apiHost,
4693
4746
  isNestedRender: e.isNestedRender,
@@ -4715,7 +4768,7 @@ function Wi(e) {
4715
4768
  ))
4716
4769
  ] }) : null,
4717
4770
  /* @__PURE__ */ s(
4718
- Oe,
4771
+ Fe,
4719
4772
  {
4720
4773
  apiHost: e.apiHost,
4721
4774
  nonce: e.nonce,
@@ -4742,13 +4795,13 @@ function Wi(e) {
4742
4795
  )
4743
4796
  ] });
4744
4797
  }
4745
- const $i = async ({
4798
+ const Di = async ({
4746
4799
  builderContextValue: e,
4747
4800
  symbol: t
4748
4801
  }) => {
4749
4802
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4750
4803
  (e != null && e.apiKey))
4751
- return Le({
4804
+ return _e({
4752
4805
  model: t.model,
4753
4806
  apiKey: e.apiKey,
4754
4807
  apiVersion: e.apiVersion,
@@ -4761,7 +4814,7 @@ const $i = async ({
4761
4814
  Q.error("Could not fetch symbol content: ", n);
4762
4815
  });
4763
4816
  };
4764
- function Di(e) {
4817
+ function Oi(e) {
4765
4818
  var h, b, u, x, f;
4766
4819
  function t() {
4767
4820
  return "div";
@@ -4775,7 +4828,7 @@ function Di(e) {
4775
4828
  function r() {
4776
4829
  var m, y;
4777
4830
  return [
4778
- e.attributes[G()],
4831
+ e.attributes[K()],
4779
4832
  "builder-symbol",
4780
4833
  (m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
4781
4834
  (y = e.symbol) != null && y.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
@@ -4790,7 +4843,7 @@ function Di(e) {
4790
4843
  });
4791
4844
  function d() {
4792
4845
  var m;
4793
- o && l === ((m = e.symbol) == null ? void 0 : m.entry) || $i({
4846
+ o && l === ((m = e.symbol) == null ? void 0 : m.entry) || Di({
4794
4847
  symbol: e.symbol,
4795
4848
  builderContextValue: e.builderContext
4796
4849
  }).then((y) => {
@@ -4802,7 +4855,7 @@ function Di(e) {
4802
4855
  }, []), N(() => {
4803
4856
  d();
4804
4857
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: r(), children: /* @__PURE__ */ s(
4805
- Wi,
4858
+ $i,
4806
4859
  {
4807
4860
  nonce: e.builderContext.nonce,
4808
4861
  isNestedRender: !0,
@@ -4829,15 +4882,15 @@ function Di(e) {
4829
4882
  }
4830
4883
  export {
4831
4884
  M as Blocks,
4832
- pe as BuilderContext,
4833
- pt as Button,
4834
- un as Columns,
4835
- Wi as Content,
4836
- dn as Fragment,
4837
- hn as Image,
4838
- gn as Section,
4839
- Di as Symbol,
4840
- Hn as Text,
4841
- ui as Video,
4842
- Hi as setClientUserAttributes
4885
+ se as BuilderContext,
4886
+ vt as Button,
4887
+ dn as Columns,
4888
+ $i as Content,
4889
+ mn as Fragment,
4890
+ gn as Image,
4891
+ bn as Section,
4892
+ Oi as Symbol,
4893
+ Mn as Text,
4894
+ di as Video,
4895
+ Mi as setClientUserAttributes
4843
4896
  };