@builder.io/sdk-vue 4.0.9 → 4.0.10

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 (64) hide show
  1. package/lib/browser/{awaiter-NGUZx5Ql.js → awaiter-SGR-8Tyj.js} +1 -1
  2. package/lib/browser/{awaiter-QQ0ayrjs.cjs → awaiter-_QmjZdDa.cjs} +1 -1
  3. package/lib/browser/{block-styles-1ljGw6Mj.js → block-styles-9_PWytNG.js} +1 -1
  4. package/lib/browser/{block-styles-brcVdkhf.cjs → block-styles-GhS2Neb5.cjs} +1 -1
  5. package/lib/browser/{block-wrapper-Kqaoo_JN.cjs → block-wrapper-LRJ-a4Yv.cjs} +1 -1
  6. package/lib/browser/{block-wrapper-DtVkLhgy.js → block-wrapper-YBBdYoR2.js} +3 -3
  7. package/lib/browser/{component-ref-mlq-HO5q.cjs → component-ref-TrZpO6ax.cjs} +1 -1
  8. package/lib/browser/{component-ref-8jA-nznS.js → component-ref-aowMl_8a.js} +3 -3
  9. package/lib/browser/constants/sdk-version.d.ts +1 -1
  10. package/lib/browser/{get-block-properties-IBTEr28C.cjs → get-block-properties-ZMO5aCzy.cjs} +1 -1
  11. package/lib/browser/{get-block-properties-80VdsSqT.js → get-block-properties-cWyJs3dm.js} +1 -1
  12. package/lib/browser/helpers/no-serialize-wrapper.d.ts +1 -0
  13. package/lib/browser/helpers/user-attributes.d.ts +6 -2
  14. package/lib/browser/{index-KjzWfqlO.js → index-XGOQf5Zo.js} +890 -863
  15. package/lib/browser/index-ZOIaGZSB.cjs +334 -0
  16. package/lib/browser/index.cjs +1 -1
  17. package/lib/browser/index.mjs +1 -1
  18. package/lib/browser/{repeated-block-dPRvzhlz.js → repeated-block-Hv_GjZAU.js} +2 -2
  19. package/lib/browser/{repeated-block-O3ZIMaDN.cjs → repeated-block-RF3rdPho.cjs} +1 -1
  20. package/lib/browser/style.css +1 -1
  21. package/lib/edge/{awaiter-BmZPvTmY.js → awaiter-8DxOpj9t.js} +1 -1
  22. package/lib/edge/{awaiter-zZkUYGfP.cjs → awaiter-Jd_e61ZE.cjs} +1 -1
  23. package/lib/edge/{block-styles-lDMPr9Nu.cjs → block-styles-CBbRK24W.cjs} +1 -1
  24. package/lib/edge/{block-styles-md18lVIN.js → block-styles-alNWUQlB.js} +1 -1
  25. package/lib/{node/block-wrapper-hJaocbqY.cjs → edge/block-wrapper-7f07MDcC.cjs} +1 -1
  26. package/lib/{node/block-wrapper-gIzRaEXS.js → edge/block-wrapper-OGrsxDK8.js} +3 -3
  27. package/lib/edge/{component-ref-Fio8pmyO.cjs → component-ref-WcUEBxse.cjs} +1 -1
  28. package/lib/{node/component-ref-_nVVmv4u.js → edge/component-ref-qiOVFEA2.js} +3 -3
  29. package/lib/edge/constants/sdk-version.d.ts +1 -1
  30. package/lib/edge/{get-block-properties-pXjgMFIB.js → get-block-properties-BM_LURWO.js} +1 -1
  31. package/lib/edge/{get-block-properties-y7g7BBRa.cjs → get-block-properties-fHOkPyWO.cjs} +1 -1
  32. package/lib/edge/helpers/no-serialize-wrapper.d.ts +1 -0
  33. package/lib/edge/helpers/user-attributes.d.ts +6 -2
  34. package/lib/edge/{index-X90Q9UQG.js → index-9YK4Me2G.js} +1373 -1346
  35. package/lib/edge/index-ajjjq0JL.cjs +352 -0
  36. package/lib/edge/index.cjs +1 -1
  37. package/lib/edge/index.mjs +1 -1
  38. package/lib/{node/repeated-block-5x_zeXZk.js → edge/repeated-block-yuVnH3DH.js} +2 -2
  39. package/lib/{node/repeated-block-njhj1fu8.cjs → edge/repeated-block-z91UKOom.cjs} +1 -1
  40. package/lib/edge/style.css +1 -1
  41. package/lib/node/{awaiter-0qrXexFR.cjs → awaiter-oYZdOTCc.cjs} +1 -1
  42. package/lib/node/{awaiter-K4aVGux4.js → awaiter-zmPuC-98.js} +1 -1
  43. package/lib/node/{block-styles-R1qZ8Iq4.cjs → block-styles-Y8npu4LN.cjs} +1 -1
  44. package/lib/node/{block-styles-Oh7Ayznk.js → block-styles-jP9_QKN9.js} +1 -1
  45. package/lib/{edge/block-wrapper-S-4nMmEu.cjs → node/block-wrapper-jwKlwSSL.cjs} +1 -1
  46. package/lib/{edge/block-wrapper-BmDWBasR.js → node/block-wrapper-vSVxY0Wx.js} +3 -3
  47. package/lib/{edge/component-ref-uMAm0HOc.js → node/component-ref-9vbMmjMt.js} +3 -3
  48. package/lib/node/{component-ref-9IWpSBOs.cjs → component-ref-KhG0RJfO.cjs} +1 -1
  49. package/lib/node/constants/sdk-version.d.ts +1 -1
  50. package/lib/node/{get-block-properties-HwvhgeYy.js → get-block-properties-ThY3npVI.js} +1 -1
  51. package/lib/node/{get-block-properties-VA9jzftm.cjs → get-block-properties-V4NMvZLg.cjs} +1 -1
  52. package/lib/node/helpers/no-serialize-wrapper.d.ts +1 -0
  53. package/lib/node/helpers/user-attributes.d.ts +6 -2
  54. package/lib/node/index-ear7pTzY.cjs +334 -0
  55. package/lib/node/{index-MK7zO-UY.js → index-plSOyo89.js} +891 -864
  56. package/lib/node/index.cjs +1 -1
  57. package/lib/node/index.mjs +1 -1
  58. package/lib/{edge/repeated-block-ErVtBhOC.cjs → node/repeated-block-8KS-FGzb.cjs} +1 -1
  59. package/lib/{edge/repeated-block-KbgL394o.js → node/repeated-block-YIQ1YLOA.js} +2 -2
  60. package/lib/node/style.css +1 -1
  61. package/package.json +1 -1
  62. package/lib/browser/index-Vp6MzDwO.cjs +0 -334
  63. package/lib/edge/index-1mTahtIN.cjs +0 -352
  64. package/lib/node/index-99n7C6i4.cjs +0 -334
@@ -1,7 +1,7 @@
1
- import { defineComponent as y, openBlock as c, createElementBlock as m, Fragment as I, createBlock as k, resolveDynamicComponent as Y, mergeProps as w, toHandlers as D, withCtx as O, renderSlot as B, resolveComponent as S, createTextVNode as wt, toDisplayString as le, defineAsyncComponent as Q, createVNode as $, renderList as U, createCommentVNode as C, h as Me, createElementVNode as K, normalizeStyle as H, normalizeClass as Z, markRaw as $t } from "vue";
2
- import { T as E, g as Rt, f as Et, i as R, s as Pt, r as At, p as Bt, a as Vt, l as V, b as je, c as ke, d as Nt, n as Ke, e as M, h as P, j as Wt } from "./should-force-browser-runtime-in-node-ikxWrCvn.js";
3
- const xt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Dt = (e) => typeof e == "string" && xt.has(e.toLowerCase());
4
- function N(e = {}, t, n) {
1
+ import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as _, mergeProps as w, toHandlers as O, withCtx as U, renderSlot as V, resolveComponent as k, createTextVNode as Rt, toDisplayString as le, defineAsyncComponent as X, createVNode as E, renderList as L, createCommentVNode as C, h as Ke, createElementVNode as z, normalizeStyle as j, normalizeClass as ee, markRaw as Et } from "vue";
2
+ import { T as $, g as Pt, f as At, i as R, s as Bt, r as Vt, p as Nt, a as Wt, l as N, b as qe, c as ke, d as xt, n as ze, e as K, h as P, j as Dt } from "./should-force-browser-runtime-in-node-ikxWrCvn.js";
3
+ const Ot = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ut = (e) => typeof e == "string" && Ot.has(e.toLowerCase());
4
+ function W(e = {}, t, n) {
5
5
  const o = {};
6
6
  for (const r in e) {
7
7
  if (!e[r] || n && !r.startsWith(t))
@@ -11,11 +11,11 @@ function N(e = {}, t, n) {
11
11
  }
12
12
  return o;
13
13
  }
14
- const Ot = y({
14
+ const Ft = y({
15
15
  name: "dynamic-renderer",
16
16
  props: ["TagName", "attributes", "actionAttributes"],
17
17
  data() {
18
- return { isEmptyElement: Dt };
18
+ return { isEmptyElement: Ut };
19
19
  }
20
20
  }), v = (e, t) => {
21
21
  const n = e.__vccOpts || e;
@@ -23,26 +23,26 @@ const Ot = y({
23
23
  n[o] = r;
24
24
  return n;
25
25
  };
26
- function Ut(e, t, n, o, r, s) {
27
- return e.isEmptyElement(e.TagName) ? (c(), k(Y(e.TagName), w({ key: 1 }, e.attributes, D(e.actionAttributes)), null, 16)) : (c(), m(I, { key: 0 }, [
28
- typeof e.TagName == "string" ? (c(), k(Y(e.TagName), w({ key: 0 }, e.attributes, D(e.actionAttributes)), {
29
- default: O(() => [
30
- B(e.$slots, "default")
26
+ function Lt(e, t, n, o, r, s) {
27
+ return e.isEmptyElement(e.TagName) ? (d(), S(_(e.TagName), w({ key: 1 }, e.attributes, O(e.actionAttributes)), null, 16)) : (d(), h(I, { key: 0 }, [
28
+ typeof e.TagName == "string" ? (d(), S(_(e.TagName), w({ key: 0 }, e.attributes, O(e.actionAttributes)), {
29
+ default: U(() => [
30
+ V(e.$slots, "default")
31
31
  ]),
32
32
  _: 3
33
- }, 16)) : (c(), k(Y(e.TagName), w({ key: 1 }, e.attributes, D(e.actionAttributes)), {
34
- default: O(() => [
35
- B(e.$slots, "default")
33
+ }, 16)) : (d(), S(_(e.TagName), w({ key: 1 }, e.attributes, O(e.actionAttributes)), {
34
+ default: U(() => [
35
+ V(e.$slots, "default")
36
36
  ]),
37
37
  _: 3
38
38
  }, 16))
39
39
  ], 64));
40
40
  }
41
- const Se = /* @__PURE__ */ v(Ot, [["render", Ut]]), fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41
+ const Ce = /* @__PURE__ */ v(Ft, [["render", Lt]]), bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42
42
  __proto__: null,
43
- default: Se
44
- }, Symbol.toStringTag, { value: "Module" })), q = () => {
45
- switch (E) {
43
+ default: Ce
44
+ }, Symbol.toStringTag, { value: "Module" })), G = () => {
45
+ switch ($) {
46
46
  case "react":
47
47
  case "reactNative":
48
48
  case "rsc":
@@ -54,9 +54,9 @@ const Se = /* @__PURE__ */ v(Ot, [["render", Ut]]), fs = /* @__PURE__ */ Object.
54
54
  case "angular":
55
55
  return "class";
56
56
  }
57
- }, Ft = y({
57
+ }, Ht = y({
58
58
  name: "builder-button",
59
- components: { DynamicRenderer: Se },
59
+ components: { DynamicRenderer: Ce },
60
60
  props: [
61
61
  "attributes",
62
62
  "link",
@@ -65,13 +65,13 @@ const Se = /* @__PURE__ */ v(Ot, [["render", Ut]]), fs = /* @__PURE__ */ Object.
65
65
  "text"
66
66
  ],
67
67
  data() {
68
- return { filterAttrs: N };
68
+ return { filterAttrs: W };
69
69
  },
70
70
  methods: {
71
71
  attrs() {
72
72
  return {
73
- ...N(this.attributes, "v-on:", !1),
74
- [q()]: `${this.link ? "" : "builder-button"} ${this.attributes[q()] || ""}`,
73
+ ...W(this.attributes, "v-on:", !1),
74
+ [G()]: `${this.link ? "" : "builder-button"} ${this.attributes[G()] || ""}`,
75
75
  ...this.link ? {
76
76
  href: this.link,
77
77
  target: this.openLinkInNewTab ? "_blank" : void 0,
@@ -83,20 +83,20 @@ const Se = /* @__PURE__ */ v(Ot, [["render", Ut]]), fs = /* @__PURE__ */ Object.
83
83
  }
84
84
  }
85
85
  });
86
- function Lt(e, t, n, o, r, s) {
87
- const i = S("DynamicRenderer");
88
- return c(), k(i, {
86
+ function Mt(e, t, n, o, r, s) {
87
+ const i = k("DynamicRenderer");
88
+ return d(), S(i, {
89
89
  attributes: e.attrs(),
90
90
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
91
91
  actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
92
92
  }, {
93
- default: O(() => [
94
- wt(le(e.text), 1)
93
+ default: U(() => [
94
+ Rt(le(e.text), 1)
95
95
  ]),
96
96
  _: 1
97
97
  }, 8, ["attributes", "TagName", "actionAttributes"]);
98
98
  }
99
- const Ht = /* @__PURE__ */ v(Ft, [["render", Lt]]), Mt = Symbol(), be = {
99
+ const jt = /* @__PURE__ */ v(Ht, [["render", Mt]]), Kt = Symbol(), be = {
100
100
  Builder: {
101
101
  content: null,
102
102
  context: {},
@@ -113,14 +113,14 @@ const Ht = /* @__PURE__ */ v(Ft, [["render", Lt]]), Mt = Symbol(), be = {
113
113
  nonce: "",
114
114
  model: ""
115
115
  },
116
- key: Mt
117
- }, jt = Symbol(), qe = {
116
+ key: Kt
117
+ }, qt = Symbol(), Ge = {
118
118
  Components: { registeredComponents: {} },
119
- key: jt
120
- }, ze = (e, t, n) => {
119
+ key: qt
120
+ }, Je = (e, t, n) => {
121
121
  const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, s) => r != null ? r[s] : r, e);
122
122
  return o === void 0 || o === e ? n : o;
123
- }, Kt = ({
123
+ }, zt = ({
124
124
  code: e,
125
125
  builder: t,
126
126
  context: n,
@@ -129,24 +129,24 @@ const Ht = /* @__PURE__ */ v(Ft, [["render", Lt]]), Mt = Symbol(), be = {
129
129
  rootSetState: s,
130
130
  rootState: i
131
131
  }) => {
132
- const a = Rt({
132
+ const a = Pt({
133
133
  builder: t,
134
134
  context: n,
135
135
  event: o,
136
- state: Et({
136
+ state: At({
137
137
  rootState: i,
138
138
  localState: r,
139
139
  rootSetState: s
140
140
  })
141
141
  });
142
142
  return new Function(...a.map(([l]) => l), e)(...a.map(([, l]) => l));
143
- }, qt = (e) => R() || Pt({
143
+ }, Gt = (e) => R() || Bt({
144
144
  shouldLogWarning: !0
145
- }) ? Kt(e) : At(e), zt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Gt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Jt = (e) => {
145
+ }) ? zt(e) : Vt(e), Jt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Qt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Yt = (e) => {
146
146
  var t, n, o, r, s, i;
147
- return ((o = (n = (t = zt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((i = (s = (r = Gt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : s.getPath) == null ? void 0 : i.slice(1));
147
+ return ((o = (n = (t = Jt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((i = (s = (r = Qt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : s.getPath) == null ? void 0 : i.slice(1));
148
148
  };
149
- function _({
149
+ function te({
150
150
  code: e,
151
151
  context: t,
152
152
  localState: n,
@@ -157,17 +157,17 @@ function _({
157
157
  }) {
158
158
  if (e.trim() === "")
159
159
  return;
160
- const a = Jt(e.trim());
160
+ const a = Yt(e.trim());
161
161
  if (a)
162
- return ze({
162
+ return Je({
163
163
  ...o,
164
164
  ...n
165
165
  }, a);
166
166
  const l = {
167
- code: Bt(e, {
167
+ code: Nt(e, {
168
168
  isExpression: i
169
169
  }),
170
- builder: Vt(),
170
+ builder: Wt(),
171
171
  context: t,
172
172
  event: s,
173
173
  rootSetState: r,
@@ -175,28 +175,28 @@ function _({
175
175
  localState: n
176
176
  };
177
177
  try {
178
- return qt(l);
178
+ return Gt(l);
179
179
  } catch (u) {
180
- V.error("Failed code evaluation: " + u.message, {
180
+ N.error("Failed code evaluation: " + u.message, {
181
181
  code: e
182
182
  });
183
183
  return;
184
184
  }
185
185
  }
186
- function Qt(e, t) {
186
+ function Xt(e, t) {
187
187
  var n;
188
188
  return {
189
189
  ...(n = e.component) == null ? void 0 : n.options,
190
190
  ...e.options,
191
- ...Yt(e, t)
191
+ ..._t(e, t)
192
192
  };
193
193
  }
194
- const Yt = (e, t) => {
194
+ const _t = (e, t) => {
195
195
  var n, o;
196
196
  if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((o = e.component.options) != null && o.text) && typeof e.component.options.text == "string")
197
197
  return {
198
198
  ...e.component.options,
199
- text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, s) => _({
199
+ text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, s) => te({
200
200
  code: s,
201
201
  context: t,
202
202
  localState: t.localState,
@@ -205,7 +205,7 @@ const Yt = (e, t) => {
205
205
  }))
206
206
  };
207
207
  };
208
- function Xt(e, ...t) {
208
+ function Zt(e, ...t) {
209
209
  const n = Object.assign({}, e);
210
210
  for (const o of t)
211
211
  delete n[o];
@@ -228,28 +228,28 @@ function ie(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
228
228
  }), ie(i, t, e, s, r);
229
229
  }));
230
230
  }
231
- function Ge(e) {
231
+ function Qe(e) {
232
232
  return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
233
233
  }
234
- function Zt(e) {
234
+ function en(e) {
235
235
  if (!e || !Object.getOwnPropertyNames(e).length)
236
236
  return !1;
237
237
  let t = !1;
238
238
  return ie(e, (n) => {
239
- if (Ge(n)) {
239
+ if (Qe(n)) {
240
240
  t = !0;
241
241
  return;
242
242
  }
243
243
  }), t;
244
244
  }
245
- function _t(e, t) {
245
+ function tn(e, t) {
246
246
  return !e || !Object.getOwnPropertyNames(e).length ? {} : (ie(e, (n, o) => {
247
- Ge(n) && o(n[t] ?? void 0);
247
+ Qe(n) && o(n[t] ?? void 0);
248
248
  }), e);
249
249
  }
250
- function en(e, t) {
250
+ function nn(e, t) {
251
251
  var n, o;
252
- return (n = e.component) != null && n.options && Zt((o = e.component) == null ? void 0 : o.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 = _t(e.component.options, t ?? "Default")), e;
252
+ return (n = e.component) != null && n.options && en((o = e.component) == null ? void 0 : o.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 = tn(e.component.options, t ?? "Default")), e;
253
253
  }
254
254
  function ge(e) {
255
255
  if (e === null || typeof e != "object")
@@ -263,8 +263,8 @@ function ge(e) {
263
263
  n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ge(e[n]));
264
264
  return t;
265
265
  }
266
- const tn = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), nn = (e) => {
267
- if (tn) {
266
+ const on = ["svelte", "vue", "angular", "qwik", "solid"].includes($), rn = (e) => {
267
+ if (on) {
268
268
  const t = ke(e);
269
269
  return {
270
270
  ...t,
@@ -276,7 +276,7 @@ const tn = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), nn = (e) =
276
276
  }
277
277
  };
278
278
  } else {
279
- const t = ge(Xt(e, "children", "meta"));
279
+ const t = ge(Zt(e, "children", "meta"));
280
280
  return {
281
281
  ...t,
282
282
  properties: {
@@ -289,7 +289,7 @@ const tn = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), nn = (e) =
289
289
  meta: e.meta
290
290
  };
291
291
  }
292
- }, on = ({
292
+ }, sn = ({
293
293
  block: e,
294
294
  context: t,
295
295
  localState: n,
@@ -298,28 +298,28 @@ const tn = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), nn = (e) =
298
298
  }) => {
299
299
  if (!e.bindings)
300
300
  return e;
301
- const s = nn(e);
301
+ const s = rn(e);
302
302
  for (const i in e.bindings) {
303
- const a = e.bindings[i], l = _({
303
+ const a = e.bindings[i], l = te({
304
304
  code: a,
305
305
  localState: n,
306
306
  rootState: o,
307
307
  rootSetState: r,
308
308
  context: t
309
309
  });
310
- je(s, i, l);
310
+ qe(s, i, l);
311
311
  }
312
312
  return s;
313
313
  };
314
- function rn({
314
+ function an({
315
315
  block: e,
316
316
  context: t,
317
317
  localState: n,
318
318
  rootState: o,
319
319
  rootSetState: r
320
320
  }) {
321
- let s = en(e, o.locale);
322
- return s = s, on({
321
+ let s = nn(e, o.locale);
322
+ return s = s, sn({
323
323
  block: s,
324
324
  localState: n,
325
325
  rootState: o,
@@ -327,25 +327,25 @@ function rn({
327
327
  context: t
328
328
  });
329
329
  }
330
- function Ce(e) {
330
+ function Te(e) {
331
331
  const t = e || (R() ? window.location.search : void 0);
332
- return t ? Nt(t).indexOf("builder.preview=") !== -1 : !1;
332
+ return t ? xt(t).indexOf("builder.preview=") !== -1 : !1;
333
333
  }
334
- const sn = (e) => ({
334
+ const ln = (e) => ({
335
335
  type: "builder.registerComponent",
336
336
  data: se(e)
337
- }), an = (e) => {
337
+ }), cn = (e) => {
338
338
  const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
339
339
  return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
340
340
  };
341
341
  function se(e) {
342
- return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? an(n) : n));
342
+ return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? cn(n) : n));
343
343
  }
344
- const Ve = {};
345
- function ln(e, t) {
344
+ const Ne = {};
345
+ function dn(e, t) {
346
346
  e === "plugin" && (t = se(t));
347
- let n = Ve[e];
348
- if (n || (n = Ve[e] = []), n.push(t), R()) {
347
+ let n = Ne[e];
348
+ if (n || (n = Ne[e] = []), n.push(t), R()) {
349
349
  const o = {
350
350
  type: "builder.register",
351
351
  data: {
@@ -360,37 +360,37 @@ function ln(e, t) {
360
360
  }
361
361
  }
362
362
  }
363
- const Ne = {};
364
- function bs(e) {
363
+ const We = {};
364
+ function gs(e) {
365
365
  if (R()) {
366
- Object.assign(Ne, e);
366
+ Object.assign(We, e);
367
367
  const t = {
368
368
  type: "builder.settingsChange",
369
- data: Ne
369
+ data: We
370
370
  };
371
371
  parent.postMessage(t, "*");
372
372
  }
373
373
  }
374
- const We = "builder.", cn = "options.", Je = (e) => {
374
+ const xe = "builder.", un = "options.", Ye = (e) => {
375
375
  if (!e)
376
376
  return {};
377
- const t = Ke(e), n = {};
377
+ const t = ze(e), n = {};
378
378
  return Object.keys(t).forEach((o) => {
379
- if (o.startsWith(We)) {
380
- const r = o.replace(We, "").replace(cn, "");
379
+ if (o.startsWith(xe)) {
380
+ const r = o.replace(xe, "").replace(un, "");
381
381
  n[r] = t[o];
382
382
  }
383
383
  }), n;
384
- }, dn = () => {
384
+ }, pn = () => {
385
385
  if (!R())
386
386
  return {};
387
387
  const e = new URLSearchParams(window.location.search);
388
- return Je(e);
389
- }, Qe = "4.0.9", Ye = () => ({
390
- "X-Builder-SDK": E,
388
+ return Ye(e);
389
+ }, Xe = "4.0.10", _e = () => ({
390
+ "X-Builder-SDK": $,
391
391
  "X-Builder-SDK-GEN": "2",
392
- "X-Builder-SDK-Version": Qe
393
- }), un = (e) => {
392
+ "X-Builder-SDK-Version": Xe
393
+ }), mn = (e) => {
394
394
  if (e === "localhost" || e === "127.0.0.1")
395
395
  return e;
396
396
  const t = e.split(".");
@@ -403,17 +403,17 @@ const We = "builder.", cn = "options.", Je = (e) => {
403
403
  try {
404
404
  return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
405
405
  } catch (o) {
406
- V.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
406
+ N.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
407
407
  return;
408
408
  }
409
- }, Xe = async (e) => ce(e), pn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(M).join("; "), mn = [["secure", ""], ["SameSite", "None"]], hn = ({
409
+ }, Ze = async (e) => ce(e), hn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(K).join("; "), fn = [["secure", ""], ["SameSite", "None"]], bn = ({
410
410
  name: e,
411
411
  value: t,
412
412
  expires: n
413
413
  }) => {
414
- const r = (R() ? location.protocol === "https:" : !0) ? mn : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", un(window.location.hostname)], ...r];
415
- return pn(i);
416
- }, Te = async ({
414
+ const r = (R() ? location.protocol === "https:" : !0) ? fn : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", mn(window.location.hostname)], ...r];
415
+ return hn(i);
416
+ }, Ie = async ({
417
417
  name: e,
418
418
  value: t,
419
419
  expires: n,
@@ -422,103 +422,103 @@ const We = "builder.", cn = "options.", Je = (e) => {
422
422
  try {
423
423
  if (!o)
424
424
  return;
425
- const r = hn({
425
+ const r = bn({
426
426
  name: e,
427
427
  value: t,
428
428
  expires: n
429
429
  });
430
430
  document.cookie = r;
431
431
  } catch (r) {
432
- V.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
432
+ N.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
433
433
  }
434
434
  };
435
- function fn() {
435
+ function gn() {
436
436
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
437
437
  const t = Math.random() * 16 | 0;
438
438
  return (e == "x" ? t : t & 3 | 8).toString(16);
439
439
  });
440
440
  }
441
- function Ze() {
442
- return fn().replace(/-/g, "");
441
+ function et() {
442
+ return gn().replace(/-/g, "");
443
443
  }
444
- const _e = "builderSessionId", bn = async ({
444
+ const tt = "builderSessionId", yn = async ({
445
445
  canTrack: e
446
446
  }) => {
447
447
  if (!e)
448
448
  return;
449
- const t = await Xe({
450
- name: _e,
449
+ const t = await Ze({
450
+ name: tt,
451
451
  canTrack: e
452
452
  });
453
- if (M(t))
453
+ if (K(t))
454
454
  return t;
455
455
  {
456
- const n = gn();
457
- return yn({
456
+ const n = vn();
457
+ return Sn({
458
458
  id: n,
459
459
  canTrack: e
460
460
  }), n;
461
461
  }
462
- }, gn = () => Ze(), yn = ({
462
+ }, vn = () => et(), Sn = ({
463
463
  id: e,
464
464
  canTrack: t
465
- }) => Te({
466
- name: _e,
465
+ }) => Ie({
466
+ name: tt,
467
467
  value: e,
468
468
  canTrack: t
469
- }), et = () => R() && typeof localStorage < "u" ? localStorage : void 0, vn = ({
469
+ }), nt = () => R() && typeof localStorage < "u" ? localStorage : void 0, kn = ({
470
470
  key: e,
471
471
  canTrack: t
472
472
  }) => {
473
473
  var n;
474
474
  try {
475
- return t ? (n = et()) == null ? void 0 : n.getItem(e) : void 0;
475
+ return t ? (n = nt()) == null ? void 0 : n.getItem(e) : void 0;
476
476
  } catch (o) {
477
477
  console.debug("[LocalStorage] GET error: ", o);
478
478
  return;
479
479
  }
480
- }, kn = ({
480
+ }, Cn = ({
481
481
  key: e,
482
482
  canTrack: t,
483
483
  value: n
484
484
  }) => {
485
485
  var o;
486
486
  try {
487
- t && ((o = et()) == null || o.setItem(e, n));
487
+ t && ((o = nt()) == null || o.setItem(e, n));
488
488
  } catch (r) {
489
489
  console.debug("[LocalStorage] SET error: ", r);
490
490
  }
491
- }, tt = "builderVisitorId", Sn = ({
491
+ }, ot = "builderVisitorId", Tn = ({
492
492
  canTrack: e
493
493
  }) => {
494
494
  if (!e)
495
495
  return;
496
- const t = vn({
497
- key: tt,
496
+ const t = kn({
497
+ key: ot,
498
498
  canTrack: e
499
499
  });
500
- if (M(t))
500
+ if (K(t))
501
501
  return t;
502
502
  {
503
- const n = Cn();
504
- return Tn({
503
+ const n = In();
504
+ return wn({
505
505
  id: n,
506
506
  canTrack: e
507
507
  }), n;
508
508
  }
509
- }, Cn = () => Ze(), Tn = ({
509
+ }, In = () => et(), wn = ({
510
510
  id: e,
511
511
  canTrack: t
512
- }) => kn({
513
- key: tt,
512
+ }) => Cn({
513
+ key: ot,
514
514
  value: e,
515
515
  canTrack: t
516
516
  });
517
- function Ie(e) {
517
+ function we(e) {
518
518
  var t;
519
- typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && V.log(e);
519
+ typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && N.log(e);
520
520
  }
521
- const In = async ({
521
+ const $n = async ({
522
522
  canTrack: e
523
523
  }) => {
524
524
  if (!e)
@@ -526,16 +526,16 @@ const In = async ({
526
526
  visitorId: void 0,
527
527
  sessionId: void 0
528
528
  };
529
- const t = await bn({
529
+ const t = await yn({
530
530
  canTrack: e
531
- }), n = Sn({
531
+ }), n = Tn({
532
532
  canTrack: e
533
533
  });
534
534
  return {
535
535
  sessionId: t,
536
536
  visitorId: n
537
537
  };
538
- }, wn = async ({
538
+ }, Rn = async ({
539
539
  type: e,
540
540
  canTrack: t,
541
541
  apiKey: n,
@@ -549,10 +549,10 @@ const In = async ({
549
549
  url: location.href,
550
550
  ...o
551
551
  },
552
- ...await In({
552
+ ...await $n({
553
553
  canTrack: t
554
554
  }),
555
- userAttributes: Wt(),
555
+ userAttributes: Dt(),
556
556
  ownerId: n
557
557
  }
558
558
  });
@@ -561,38 +561,38 @@ async function ye({
561
561
  ...t
562
562
  }) {
563
563
  if (!t.apiKey) {
564
- V.error("Missing API key for track call. Please provide your API key.");
564
+ N.error("Missing API key for track call. Please provide your API key.");
565
565
  return;
566
566
  }
567
- if (!t.canTrack || P() || !(R() || E === "reactNative"))
567
+ if (!t.canTrack || P() || !(R() || $ === "reactNative"))
568
568
  return;
569
569
  const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
570
- return Ie(o), fetch(o, {
570
+ return we(o), fetch(o, {
571
571
  method: "POST",
572
572
  body: JSON.stringify({
573
- events: [await wn(t)]
573
+ events: [await Rn(t)]
574
574
  }),
575
575
  headers: {
576
576
  "content-type": "application/json",
577
- ...Ye()
577
+ ..._e()
578
578
  },
579
579
  mode: "cors"
580
580
  }).catch((r) => {
581
581
  console.error("Failed to track: ", r);
582
582
  });
583
583
  }
584
- const gs = (e) => ye({
584
+ const ys = (e) => ye({
585
585
  ...e,
586
586
  canTrack: !0
587
- }), $n = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
588
- function nt(e, t) {
587
+ }), En = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
588
+ function rt(e, t) {
589
589
  if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
590
590
  return !1;
591
591
  const n = new URL(t.origin), o = n.hostname;
592
- return (e || $n).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
592
+ return (e || En).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
593
593
  }
594
- const Rn = () => {
595
- ln("insertMenu", {
594
+ const Pn = () => {
595
+ dn("insertMenu", {
596
596
  name: "_default",
597
597
  default: !0,
598
598
  items: [{
@@ -614,14 +614,14 @@ const Rn = () => {
614
614
  }]
615
615
  });
616
616
  };
617
- let xe = !1;
618
- const ot = (e) => {
617
+ let De = !1;
618
+ const it = (e) => {
619
619
  var t, n;
620
- xe || (xe = !0, R() && ((t = window.parent) == null || t.postMessage({
620
+ De || (De = !0, R() && ((t = window.parent) == null || t.postMessage({
621
621
  type: "builder.sdkInfo",
622
622
  data: {
623
- target: E,
624
- version: Qe,
623
+ target: $,
624
+ version: Xe,
625
625
  supportsPatchUpdates: !1,
626
626
  // Supports builder-model="..." attribute which is needed to
627
627
  // scope our '+ add block' button styling
@@ -639,7 +639,7 @@ const ot = (e) => {
639
639
  }
640
640
  }, "*"), window.addEventListener("message", (o) => {
641
641
  var s, i;
642
- if (!nt(e.trustedHosts, o))
642
+ if (!rt(e.trustedHosts, o))
643
643
  return;
644
644
  const {
645
645
  data: r
@@ -648,25 +648,25 @@ const ot = (e) => {
648
648
  switch (r.type) {
649
649
  case "builder.evaluate": {
650
650
  const a = r.data.text, l = r.data.arguments || [], u = r.data.id, p = new Function(a);
651
- let f, d = null;
651
+ let f, c = null;
652
652
  try {
653
653
  f = p.apply(null, l);
654
- } catch (h) {
655
- d = h;
654
+ } catch (m) {
655
+ c = m;
656
656
  }
657
- d ? (s = window.parent) == null || s.postMessage({
657
+ c ? (s = window.parent) == null || s.postMessage({
658
658
  type: "builder.evaluateError",
659
659
  data: {
660
660
  id: u,
661
- error: d.message
661
+ error: c.message
662
662
  }
663
- }, "*") : f && typeof f.then == "function" ? f.then((h) => {
663
+ }, "*") : f && typeof f.then == "function" ? f.then((m) => {
664
664
  var b;
665
665
  (b = window.parent) == null || b.postMessage({
666
666
  type: "builder.evaluateResult",
667
667
  data: {
668
668
  id: u,
669
- result: h
669
+ result: m
670
670
  }
671
671
  }, "*");
672
672
  }).catch(console.error) : (i = window.parent) == null || i.postMessage({
@@ -680,12 +680,12 @@ const ot = (e) => {
680
680
  }
681
681
  }
682
682
  })));
683
- }, rt = ({
683
+ }, st = ({
684
684
  model: e,
685
685
  trustedHosts: t,
686
686
  callbacks: n
687
687
  }) => (o) => {
688
- if (!nt(t, o))
688
+ if (!rt(t, o))
689
689
  return;
690
690
  const {
691
691
  data: r
@@ -711,20 +711,20 @@ const ot = (e) => {
711
711
  break;
712
712
  }
713
713
  }
714
- }, ys = ({
714
+ }, vs = ({
715
715
  model: e,
716
716
  apiKey: t,
717
717
  callback: n,
718
718
  trustedHosts: o
719
719
  }) => {
720
720
  if (!R)
721
- return V.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
721
+ return N.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
722
722
  };
723
- ot({
723
+ it({
724
724
  modelName: e,
725
725
  apiKey: t
726
726
  });
727
- const r = rt({
727
+ const r = st({
728
728
  callbacks: {
729
729
  contentUpdate: n,
730
730
  animation: () => {
@@ -740,24 +740,24 @@ const ot = (e) => {
740
740
  return window.addEventListener("message", r), () => {
741
741
  window.removeEventListener("message", r);
742
742
  };
743
- }, En = "builder.tests", we = (e) => `${En}.${e}`, Pn = ({
743
+ }, An = "builder.tests", $e = (e) => `${An}.${e}`, Bn = ({
744
744
  contentId: e
745
- }) => Xe({
746
- name: we(e),
745
+ }) => Ze({
746
+ name: $e(e),
747
747
  canTrack: !0
748
- }), An = ({
748
+ }), Vn = ({
749
749
  contentId: e
750
750
  }) => ce({
751
- name: we(e),
751
+ name: $e(e),
752
752
  canTrack: !0
753
- }), Bn = ({
753
+ }), Nn = ({
754
754
  contentId: e,
755
755
  value: t
756
- }) => Te({
757
- name: we(e),
756
+ }) => Ie({
757
+ name: $e(e),
758
758
  value: t,
759
759
  canTrack: !0
760
- }), it = (e) => M(e.id) && M(e.variations) && Object.keys(e.variations).length > 0, Vn = ({
760
+ }), at = (e) => K(e.id) && K(e.variations) && Object.keys(e.variations).length > 0, Wn = ({
761
761
  id: e,
762
762
  variations: t
763
763
  }) => {
@@ -770,15 +770,15 @@ const ot = (e) => {
770
770
  return s;
771
771
  }
772
772
  return e;
773
- }, st = (e) => {
774
- const t = Vn(e);
775
- return Bn({
773
+ }, lt = (e) => {
774
+ const t = Wn(e);
775
+ return Nn({
776
776
  contentId: e.id,
777
777
  value: t
778
778
  }).catch((n) => {
779
- V.error("could not store A/B test variation: ", n);
779
+ N.error("could not store A/B test variation: ", n);
780
780
  }), t;
781
- }, at = ({
781
+ }, ct = ({
782
782
  item: e,
783
783
  testGroupId: t
784
784
  }) => {
@@ -792,7 +792,7 @@ const ot = (e) => {
792
792
  testVariationId: n.id,
793
793
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
794
794
  };
795
- }, Nn = ({
795
+ }, xn = ({
796
796
  item: e,
797
797
  canTrack: t
798
798
  }) => {
@@ -800,14 +800,14 @@ const ot = (e) => {
800
800
  return e;
801
801
  if (!e)
802
802
  return;
803
- if (!it(e))
803
+ if (!at(e))
804
804
  return e;
805
- const n = An({
805
+ const n = Vn({
806
806
  contentId: e.id
807
- }) || st({
807
+ }) || lt({
808
808
  variations: e.variations,
809
809
  id: e.id
810
- }), o = at({
810
+ }), o = ct({
811
811
  item: e,
812
812
  testGroupId: n
813
813
  });
@@ -815,18 +815,18 @@ const ot = (e) => {
815
815
  ...e,
816
816
  ...o
817
817
  };
818
- }, Wn = async ({
818
+ }, Dn = async ({
819
819
  item: e,
820
820
  canTrack: t
821
821
  }) => {
822
- if (!t || !it(e))
822
+ if (!t || !at(e))
823
823
  return e;
824
- const o = await Pn({
824
+ const o = await Bn({
825
825
  contentId: e.id
826
- }) || st({
826
+ }) || lt({
827
827
  variations: e.variations,
828
828
  id: e.id
829
- }), r = at({
829
+ }), r = ct({
830
830
  item: e,
831
831
  testGroupId: o
832
832
  });
@@ -834,8 +834,9 @@ const ot = (e) => {
834
834
  ...e,
835
835
  ...r
836
836
  };
837
- }, De = "builder.userAttributes";
838
- function xn() {
837
+ };
838
+ const Oe = "builder.userAttributes";
839
+ function Ue() {
839
840
  let e = !0;
840
841
  const t = /* @__PURE__ */ new Set();
841
842
  return {
@@ -846,20 +847,22 @@ function xn() {
846
847
  ...this.getUserAttributes(),
847
848
  ...n
848
849
  };
849
- Te({
850
- name: De,
850
+ Ie({
851
+ name: Oe,
851
852
  value: JSON.stringify(o),
852
853
  canTrack: e
853
854
  }), t.forEach((r) => r(o));
854
855
  },
855
856
  getUserAttributes() {
856
857
  return R() ? JSON.parse(ce({
857
- name: De,
858
+ name: Oe,
858
859
  canTrack: e
859
860
  }) || "{}") : {};
860
861
  },
861
- subscribeOnUserAttributesChange(n) {
862
- return t.add(n), () => {
862
+ subscribeOnUserAttributesChange(n, {
863
+ fireImmediately: o
864
+ } = {}) {
865
+ return t.add(n), o && n(this.getUserAttributes()), function() {
863
866
  t.delete(n);
864
867
  };
865
868
  },
@@ -868,43 +871,45 @@ function xn() {
868
871
  }
869
872
  };
870
873
  }
871
- const ae = xn(), vs = (e) => {
874
+ let ve;
875
+ R() && $ === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Ue()), ve = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : ve = Ue();
876
+ const ae = ve, Ss = (e) => {
872
877
  ae.setUserAttributes(e);
873
- }, z = (e) => {
874
- const t = M(e) ? e : !0;
878
+ }, J = (e) => {
879
+ const t = K(e) ? e : !0;
875
880
  return ae.setCanTrack(t), t;
876
881
  };
877
- function Dn() {
882
+ function On() {
878
883
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
879
884
  }
880
- function On() {
881
- const e = Dn().fetch;
885
+ function Un() {
886
+ const e = On().fetch;
882
887
  if (typeof e > "u")
883
888
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
884
889
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
885
890
  return e;
886
891
  }
887
- const Un = On();
888
- function ve(e, t = null, n = ".") {
892
+ const Fn = Un();
893
+ function Se(e, t = null, n = ".") {
889
894
  return Object.keys(e).reduce((o, r) => {
890
895
  const s = e[r], i = [t, r].filter(Boolean).join(n);
891
896
  return [typeof s == "object", s !== null, !(Array.isArray(s) && s.length === 0)].every(Boolean) ? {
892
897
  ...o,
893
- ...ve(s, i, n)
898
+ ...Se(s, i, n)
894
899
  } : {
895
900
  ...o,
896
901
  [i]: s
897
902
  };
898
903
  }, {});
899
904
  }
900
- function lt(e, t, n = {}) {
905
+ function dt(e, t, n = {}) {
901
906
  for (const o in e) {
902
907
  const r = e[o], s = t ? t + "." + o : o;
903
- r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((i) => i.startsWith("$")) ? lt(r, s, n) : n[s] = r;
908
+ r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((i) => i.startsWith("$")) ? dt(r, s, n) : n[s] = r;
904
909
  }
905
910
  return n;
906
911
  }
907
- function Fn(e) {
912
+ function Ln(e) {
908
913
  const t = {};
909
914
  for (const n in e) {
910
915
  const o = n.split(".");
@@ -916,7 +921,7 @@ function Fn(e) {
916
921
  }
917
922
  return t;
918
923
  }
919
- const Ln = "v3", Oe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, $e = (e) => {
924
+ const Hn = "v3", Fe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Re = (e) => {
920
925
  const {
921
926
  limit: t = 30,
922
927
  userAttributes: n,
@@ -925,12 +930,12 @@ const Ln = "v3", Oe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, $e = (
925
930
  apiKey: s,
926
931
  enrich: i,
927
932
  locale: a,
928
- apiVersion: l = Ln,
933
+ apiVersion: l = Hn,
929
934
  fields: u,
930
935
  omit: p,
931
936
  offset: f,
932
- cacheSeconds: d,
933
- staleCacheSeconds: h,
937
+ cacheSeconds: c,
938
+ staleCacheSeconds: m,
934
939
  sort: b,
935
940
  includeUnpublished: g,
936
941
  apiHost: A
@@ -939,97 +944,97 @@ const Ln = "v3", Oe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, $e = (
939
944
  throw new Error("Missing API key");
940
945
  if (!["v3"].includes(l))
941
946
  throw new Error(`Invalid apiVersion: expected 'v3', received '${l}'`);
942
- const te = t !== 1, ne = A || "https://cdn.builder.io", T = new URL(`${ne}/api/${l}/content/${r}`);
943
- T.searchParams.set("apiKey", s), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(te)), T.searchParams.set("includeRefs", String(!0));
944
- const W = a || (n == null ? void 0 : n.locale);
945
- let F = n || {};
946
- if (W && (T.searchParams.set("locale", W), F = {
947
- locale: W,
948
- ...F
949
- }), i && T.searchParams.set("enrich", String(i)), T.searchParams.set("omit", p ?? "meta.componentsUsed"), u && T.searchParams.set("fields", u), Number.isFinite(f) && f > -1 && T.searchParams.set("offset", String(Math.floor(f))), typeof g == "boolean" && T.searchParams.set("includeUnpublished", String(g)), d && Oe(d) && T.searchParams.set("cacheSeconds", String(d)), h && Oe(h) && T.searchParams.set("staleCacheSeconds", String(h)), b) {
950
- const x = ve({
947
+ const F = t !== 1, B = A || "https://cdn.builder.io", T = new URL(`${B}/api/${l}/content/${r}`);
948
+ T.searchParams.set("apiKey", s), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(F)), T.searchParams.set("includeRefs", String(!0));
949
+ const x = a || (n == null ? void 0 : n.locale);
950
+ let H = n || {};
951
+ if (x && (T.searchParams.set("locale", x), H = {
952
+ locale: x,
953
+ ...H
954
+ }), i && T.searchParams.set("enrich", String(i)), T.searchParams.set("omit", p ?? "meta.componentsUsed"), u && T.searchParams.set("fields", u), Number.isFinite(f) && f > -1 && T.searchParams.set("offset", String(Math.floor(f))), typeof g == "boolean" && T.searchParams.set("includeUnpublished", String(g)), c && Fe(c) && T.searchParams.set("cacheSeconds", String(c)), m && Fe(m) && T.searchParams.set("staleCacheSeconds", String(m)), b) {
955
+ const D = Se({
951
956
  sort: b
952
957
  });
953
- for (const L in x)
954
- T.searchParams.set(L, JSON.stringify(x[L]));
958
+ for (const M in D)
959
+ T.searchParams.set(M, JSON.stringify(D[M]));
955
960
  }
956
- const G = {
957
- ...dn(),
958
- ...Ke(e.options || {})
961
+ const Q = {
962
+ ...pn(),
963
+ ...ze(e.options || {})
959
964
  };
960
- F = {
961
- ...F,
962
- ...Mn(G)
965
+ H = {
966
+ ...H,
967
+ ...jn(Q)
963
968
  };
964
- const J = ve(G);
965
- for (const x in J)
966
- T.searchParams.set(x, String(J[x]));
967
- if (Object.keys(F).length > 0 && T.searchParams.set("userAttributes", JSON.stringify(F)), o) {
968
- const x = lt({
969
+ const Y = Se(Q);
970
+ for (const D in Y)
971
+ T.searchParams.set(D, String(Y[D]));
972
+ if (Object.keys(H).length > 0 && T.searchParams.set("userAttributes", JSON.stringify(H)), o) {
973
+ const D = dt({
969
974
  query: o
970
975
  });
971
- for (const L in x)
972
- T.searchParams.set(L, JSON.stringify(x[L]));
976
+ for (const M in D)
977
+ T.searchParams.set(M, JSON.stringify(D[M]));
973
978
  }
974
979
  return T;
975
- }, Hn = (e) => {
980
+ }, Mn = (e) => {
976
981
  const t = {};
977
982
  for (const n in e)
978
983
  n.startsWith("userAttributes.") && (t[n] = e[n], delete e[n]);
979
984
  return t;
980
- }, Mn = (e) => {
985
+ }, jn = (e) => {
981
986
  if (R() && e.preview === "BUILDER_STUDIO") {
982
987
  e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
983
- const t = Hn(e), {
988
+ const t = Mn(e), {
984
989
  userAttributes: n
985
- } = Fn(t);
990
+ } = Ln(t);
986
991
  return n;
987
992
  }
988
993
  return {};
989
- }, jn = (e) => "results" in e;
990
- async function Re(e) {
991
- const t = await zn({
994
+ }, Kn = (e) => "results" in e;
995
+ async function Ee(e) {
996
+ const t = await Gn({
992
997
  ...e,
993
998
  limit: 1
994
999
  });
995
1000
  return t && t[0] || null;
996
1001
  }
997
- const Kn = async (e) => {
1002
+ const qn = async (e) => {
998
1003
  var i;
999
- const t = $e(e), n = e.fetch ?? Un, o = {
1004
+ const t = Re(e), n = e.fetch ?? Fn, o = {
1000
1005
  ...e.fetchOptions,
1001
1006
  headers: {
1002
1007
  ...(i = e.fetchOptions) == null ? void 0 : i.headers,
1003
- ...Ye()
1008
+ ..._e()
1004
1009
  }
1005
1010
  };
1006
1011
  return await (await n(t.href, o)).json();
1007
- }, qn = async (e, t, n = $e(e)) => {
1008
- const o = z(e.canTrack);
1009
- if (n.search.includes("preview="), !o || !(R() || E === "reactNative"))
1012
+ }, zn = async (e, t, n = Re(e)) => {
1013
+ const o = J(e.canTrack);
1014
+ if (n.search.includes("preview="), !o || !(R() || $ === "reactNative"))
1010
1015
  return t.results;
1011
1016
  try {
1012
1017
  const r = [];
1013
1018
  for (const s of t.results)
1014
- r.push(await Wn({
1019
+ r.push(await Dn({
1015
1020
  item: s,
1016
1021
  canTrack: o
1017
1022
  }));
1018
1023
  t.results = r;
1019
1024
  } catch (r) {
1020
- V.error("Could not process A/B tests. ", r);
1025
+ N.error("Could not process A/B tests. ", r);
1021
1026
  }
1022
1027
  return t.results;
1023
1028
  };
1024
- async function zn(e) {
1025
- const t = $e(e), n = await Kn(e);
1026
- if (!jn(n))
1027
- throw V.error("Error fetching data. ", {
1029
+ async function Gn(e) {
1030
+ const t = Re(e), n = await qn(e);
1031
+ if (!Kn(n))
1032
+ throw N.error("Error fetching data. ", {
1028
1033
  url: t,
1029
1034
  content: n,
1030
1035
  options: e
1031
1036
  }), n;
1032
- return qn(e, n);
1037
+ return zn(e, n);
1033
1038
  }
1034
1039
  const ks = async (e) => {
1035
1040
  var o, r, s;
@@ -1043,15 +1048,15 @@ const ks = async (e) => {
1043
1048
  urlPath: t
1044
1049
  } : {}
1045
1050
  },
1046
- options: Je(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
1051
+ options: Ye(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
1047
1052
  };
1048
1053
  return {
1049
1054
  apiKey: n.apiKey,
1050
1055
  model: n.model,
1051
- content: await Re(n)
1056
+ content: await Ee(n)
1052
1057
  };
1053
- }, Ee = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
1054
- function Gn(e, t, n = {}) {
1058
+ }, Pe = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
1059
+ function Jn(e, t, n = {}) {
1055
1060
  let o, r, s, i = null, a = 0;
1056
1061
  const l = function() {
1057
1062
  a = n.leading === !1 ? 0 : Date.now(), i = null, s = e.apply(o, r), i || (o = r = null);
@@ -1063,7 +1068,7 @@ function Gn(e, t, n = {}) {
1063
1068
  return o = this, r = arguments, p <= 0 || p > t ? (i && (clearTimeout(i), i = null), a = u, s = e.apply(o, r), i || (o = r = null)) : !i && n.trailing !== !1 && (i = setTimeout(l, p)), s;
1064
1069
  };
1065
1070
  }
1066
- function X(e, ...t) {
1071
+ function Z(e, ...t) {
1067
1072
  const n = Object(e);
1068
1073
  for (let o = 1; o < arguments.length; o++) {
1069
1074
  const r = arguments[o];
@@ -1073,93 +1078,93 @@ function X(e, ...t) {
1073
1078
  }
1074
1079
  return n;
1075
1080
  }
1076
- function Jn(e) {
1081
+ function Qn(e) {
1077
1082
  for (const t of e)
1078
1083
  switch (t.trigger) {
1079
1084
  case "pageLoad":
1080
- ut(t);
1085
+ mt(t);
1081
1086
  break;
1082
1087
  case "scrollInView":
1083
- Yn(t);
1088
+ Xn(t);
1084
1089
  break;
1085
1090
  }
1086
1091
  }
1087
- function ct(e) {
1092
+ function ut(e) {
1088
1093
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
1089
1094
  }
1090
- function dt(e, t) {
1091
- const n = Qn(e), o = getComputedStyle(t), r = e.steps[0].styles, s = e.steps[e.steps.length - 1].styles, i = [r, s];
1095
+ function pt(e, t) {
1096
+ const n = Yn(e), o = getComputedStyle(t), r = e.steps[0].styles, s = e.steps[e.steps.length - 1].styles, i = [r, s];
1092
1097
  for (const a of i)
1093
1098
  for (const l of n)
1094
1099
  l in a || (a[l] = o[l]);
1095
1100
  }
1096
- function Qn(e) {
1101
+ function Yn(e) {
1097
1102
  const t = [];
1098
1103
  for (const n of e.steps)
1099
1104
  for (const o in n.styles)
1100
1105
  t.indexOf(o) === -1 && t.push(o);
1101
1106
  return t;
1102
1107
  }
1103
- function ut(e) {
1108
+ function mt(e) {
1104
1109
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
1105
1110
  if (!t.length) {
1106
- ct(e.elementId || e.id || "");
1111
+ ut(e.elementId || e.id || "");
1107
1112
  return;
1108
1113
  }
1109
1114
  Array.from(t).forEach((n) => {
1110
- dt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", X(n.style, e.steps[0].styles), setTimeout(() => {
1111
- n.style.transition = `all ${e.duration}s ${Ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), X(n.style, e.steps[1].styles), setTimeout(() => {
1115
+ pt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Z(n.style, e.steps[0].styles), setTimeout(() => {
1116
+ n.style.transition = `all ${e.duration}s ${Pe(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Z(n.style, e.steps[1].styles), setTimeout(() => {
1112
1117
  n.style.transition = "", n.style.transitionDelay = "";
1113
1118
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
1114
1119
  });
1115
1120
  });
1116
1121
  }
1117
- function Yn(e) {
1122
+ function Xn(e) {
1118
1123
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
1119
1124
  if (!t.length) {
1120
- ct(e.elementId || e.id || "");
1125
+ ut(e.elementId || e.id || "");
1121
1126
  return;
1122
1127
  }
1123
1128
  Array.from(t).forEach((n) => {
1124
- dt(e, n);
1129
+ pt(e, n);
1125
1130
  let o = !1, r = !1;
1126
1131
  function s() {
1127
1132
  !o && a(n) ? (o = !0, r = !0, setTimeout(() => {
1128
- X(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", i), setTimeout(() => {
1133
+ Z(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", i), setTimeout(() => {
1129
1134
  r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
1130
1135
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
1131
- })) : e.repeat && o && !r && !a(n) && (o = !1, X(n.style, e.steps[0].styles));
1136
+ })) : e.repeat && o && !r && !a(n) && (o = !1, Z(n.style, e.steps[0].styles));
1132
1137
  }
1133
- const i = Gn(s, 200, {
1138
+ const i = Jn(s, 200, {
1134
1139
  leading: !1
1135
1140
  });
1136
1141
  function a(p) {
1137
- const f = p.getBoundingClientRect(), d = window.innerHeight, b = (e.thresholdPercent || 0) / 100 * d;
1138
- return f.bottom > b && f.top < d - b;
1142
+ const f = p.getBoundingClientRect(), c = window.innerHeight, b = (e.thresholdPercent || 0) / 100 * c;
1143
+ return f.bottom > b && f.top < c - b;
1139
1144
  }
1140
1145
  const l = e.steps[0].styles;
1141
1146
  function u() {
1142
- X(n.style, l);
1147
+ Z(n.style, l);
1143
1148
  }
1144
1149
  u(), setTimeout(() => {
1145
- n.style.transition = `all ${e.duration}s ${Ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
1150
+ n.style.transition = `all ${e.duration}s ${Pe(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
1146
1151
  }), document.addEventListener("scroll", i, {
1147
1152
  capture: !0,
1148
1153
  passive: !0
1149
1154
  }), s();
1150
1155
  });
1151
1156
  }
1152
- const pt = (e) => Object.entries(e).map(([n, o]) => {
1157
+ const ht = (e) => Object.entries(e).map(([n, o]) => {
1153
1158
  if (typeof o == "string")
1154
- return `${Ee(n)}: ${o};`;
1155
- }).filter(M), Xn = (e) => pt(e).join(`
1156
- `), Ss = ({
1159
+ return `${Pe(n)}: ${o};`;
1160
+ }).filter(K), _n = (e) => ht(e).join(`
1161
+ `), Cs = ({
1157
1162
  mediaQuery: e,
1158
1163
  className: t,
1159
1164
  styles: n
1160
1165
  }) => {
1161
1166
  const o = `.${t} {
1162
- ${Xn(n)}
1167
+ ${_n(n)}
1163
1168
  }`;
1164
1169
  return e ? `${e} {
1165
1170
  ${o}
@@ -1170,21 +1175,21 @@ function Zn({
1170
1175
  }) {
1171
1176
  return e;
1172
1177
  }
1173
- const Cs = ({
1178
+ const Ts = ({
1174
1179
  block: e,
1175
1180
  context: t
1176
- }) => mt(Zn({
1181
+ }) => ft(Zn({
1177
1182
  style: e.style || {},
1178
1183
  context: t,
1179
1184
  block: e
1180
1185
  }));
1181
- function mt(e) {
1182
- switch (E) {
1186
+ function ft(e) {
1187
+ switch ($) {
1183
1188
  case "svelte":
1184
1189
  case "vue":
1185
1190
  case "solid":
1186
1191
  case "angular":
1187
- return pt(e).join(" ");
1192
+ return ht(e).join(" ");
1188
1193
  case "qwik":
1189
1194
  case "reactNative":
1190
1195
  case "react":
@@ -1192,7 +1197,7 @@ function mt(e) {
1192
1197
  return e;
1193
1198
  }
1194
1199
  }
1195
- const ht = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, _n = ({
1200
+ const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, eo = ({
1196
1201
  block: e,
1197
1202
  registeredComponents: t,
1198
1203
  model: n
@@ -1202,14 +1207,14 @@ const ht = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1202
1207
  if (!o)
1203
1208
  return null;
1204
1209
  const r = t[o];
1205
- if (!r || ht(r, n)) {
1210
+ if (!r || bt(r, n)) {
1206
1211
  console.warn(`
1207
1212
  Could not find a registered component named "${o}".
1208
1213
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
1209
1214
  return;
1210
1215
  } else
1211
1216
  return r;
1212
- }, eo = ({
1217
+ }, to = ({
1213
1218
  block: e,
1214
1219
  context: t
1215
1220
  }) => {
@@ -1219,7 +1224,7 @@ const ht = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1219
1224
  } = e;
1220
1225
  if (!(n != null && n.collection))
1221
1226
  return;
1222
- const r = _({
1227
+ const r = te({
1223
1228
  code: n.collection,
1224
1229
  localState: t.localState,
1225
1230
  rootState: t.rootState,
@@ -1242,59 +1247,59 @@ const ht = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1242
1247
  },
1243
1248
  block: o
1244
1249
  }));
1245
- }, to = (e, t) => {
1250
+ }, no = (e, t) => {
1246
1251
  var n;
1247
1252
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
1248
1253
  builderLinkComponent: t
1249
1254
  } : {};
1250
- }, no = (e, t, n) => {
1255
+ }, oo = (e, t, n) => {
1251
1256
  var o;
1252
1257
  return (o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents ? {
1253
- builderComponents: Object.fromEntries(Object.entries(t).filter(([s, i]) => !ht(i, n)))
1258
+ builderComponents: Object.fromEntries(Object.entries(t).filter(([s, i]) => !bt(i, n)))
1254
1259
  } : {};
1255
- }, oo = (e, t) => {
1260
+ }, ro = (e, t) => {
1256
1261
  var n;
1257
1262
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
1258
1263
  builderBlock: t
1259
1264
  } : {};
1260
- }, ro = (e, t) => {
1265
+ }, io = (e, t) => {
1261
1266
  var n;
1262
1267
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
1263
1268
  builderContext: t
1264
1269
  } : {};
1265
- }, io = (e) => e.toString(), so = () => Promise.resolve().then(() => So).then((e) => e.default).catch((e) => {
1270
+ }, so = (e) => e.toString(), ao = () => Promise.resolve().then(() => Co).then((e) => e.default).catch((e) => {
1266
1271
  throw console.error(
1267
1272
  "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
1268
1273
  e
1269
1274
  ), e;
1270
- }), ao = () => import("./block-styles-Oh7Ayznk.js").then((e) => e.default).catch((e) => {
1275
+ }), lo = () => import("./block-styles-jP9_QKN9.js").then((e) => e.default).catch((e) => {
1271
1276
  throw console.error(
1272
1277
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
1273
1278
  e
1274
1279
  ), e;
1275
- }), lo = () => import("./block-wrapper-gIzRaEXS.js").then((e) => e.default).catch((e) => {
1280
+ }), co = () => import("./block-wrapper-vSVxY0Wx.js").then((e) => e.default).catch((e) => {
1276
1281
  throw console.error(
1277
1282
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
1278
1283
  e
1279
1284
  ), e;
1280
- }), co = () => import("./component-ref-_nVVmv4u.js").then((e) => e.default).catch((e) => {
1285
+ }), uo = () => import("./component-ref-9vbMmjMt.js").then((e) => e.default).catch((e) => {
1281
1286
  throw console.error(
1282
1287
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
1283
1288
  e
1284
1289
  ), e;
1285
- }), uo = () => import("./repeated-block-5x_zeXZk.js").then((e) => e.default).catch((e) => {
1290
+ }), po = () => import("./repeated-block-YIQ1YLOA.js").then((e) => e.default).catch((e) => {
1286
1291
  throw console.error(
1287
1292
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
1288
1293
  e
1289
1294
  ), e;
1290
- }), po = y({
1295
+ }), mo = y({
1291
1296
  name: "block",
1292
1297
  components: {
1293
- BlockStyles: Q(ao),
1294
- RepeatedBlock: Q(uo),
1295
- ComponentRef: Q(co),
1296
- BlockWrapper: Q(lo),
1297
- DynamicDiv: Q(so)
1298
+ BlockStyles: X(lo),
1299
+ RepeatedBlock: X(po),
1300
+ ComponentRef: X(uo),
1301
+ BlockWrapper: X(co),
1302
+ DynamicDiv: X(ao)
1298
1303
  },
1299
1304
  props: ["block", "context", "registeredComponents", "linkComponent"],
1300
1305
  data() {
@@ -1303,12 +1308,12 @@ const ht = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1303
1308
  value: null,
1304
1309
  update: !1
1305
1310
  },
1306
- generateKey: io
1311
+ generateKey: so
1307
1312
  };
1308
1313
  },
1309
1314
  mounted() {
1310
1315
  const e = this.processedBlock.id, t = this.processedBlock.animations;
1311
- t && e && Jn(
1316
+ t && e && Qn(
1312
1317
  t.map((n) => ({
1313
1318
  ...n,
1314
1319
  elementId: e
@@ -1319,14 +1324,14 @@ const ht = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1319
1324
  },
1320
1325
  computed: {
1321
1326
  repeatItem() {
1322
- return eo({
1327
+ return to({
1323
1328
  block: this.block,
1324
1329
  context: this.context
1325
1330
  });
1326
1331
  },
1327
1332
  processedBlock() {
1328
1333
  var t;
1329
- return (t = this.block.repeat) != null && t.collection ? this.block : rn({
1334
+ return (t = this.block.repeat) != null && t.collection ? this.block : an({
1330
1335
  block: this.block,
1331
1336
  localState: this.context.localState,
1332
1337
  rootState: this.context.rootState,
@@ -1335,7 +1340,7 @@ const ht = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1335
1340
  });
1336
1341
  },
1337
1342
  blockComponent() {
1338
- return _n({
1343
+ return eo({
1339
1344
  block: this.processedBlock,
1340
1345
  registeredComponents: this.registeredComponents,
1341
1346
  model: this.context.model
@@ -1362,11 +1367,11 @@ const ht = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1362
1367
  blockChildren: this.processedBlock.children ?? [],
1363
1368
  componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
1364
1369
  componentOptions: {
1365
- ...Qt(this.processedBlock, this.context),
1366
- ...oo(this.blockComponent, this.processedBlock),
1367
- ...ro(this.blockComponent, this.context),
1368
- ...to(this.blockComponent, this.linkComponent),
1369
- ...no(
1370
+ ...Xt(this.processedBlock, this.context),
1371
+ ...ro(this.blockComponent, this.processedBlock),
1372
+ ...io(this.blockComponent, this.context),
1373
+ ...no(this.blockComponent, this.linkComponent),
1374
+ ...oo(
1370
1375
  this.blockComponent,
1371
1376
  this.registeredComponents,
1372
1377
  this.context.model
@@ -1377,27 +1382,27 @@ const ht = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1377
1382
  registeredComponents: this.registeredComponents,
1378
1383
  builderBlock: this.processedBlock,
1379
1384
  includeBlockProps: ((t = this.blockComponent) == null ? void 0 : t.noWrap) === !0,
1380
- isInteractive: !((n = this.blockComponent) != null && n.isRSC && E === "rsc")
1385
+ isInteractive: !((n = this.blockComponent) != null && n.isRSC && $ === "rsc")
1381
1386
  };
1382
1387
  }
1383
1388
  }
1384
1389
  });
1385
- function mo(e, t, n, o, r, s) {
1390
+ function ho(e, t, n, o, r, s) {
1386
1391
  var f;
1387
- const i = S("BlockStyles"), a = S("ComponentRef"), l = S("Block", !0), u = S("BlockWrapper"), p = S("RepeatedBlock");
1388
- return e.canShowBlock ? (c(), m(I, { key: 0 }, [
1389
- $(i, {
1392
+ const i = k("BlockStyles"), a = k("ComponentRef"), l = k("Block", !0), u = k("BlockWrapper"), p = k("RepeatedBlock");
1393
+ return e.canShowBlock ? (d(), h(I, { key: 0 }, [
1394
+ E(i, {
1390
1395
  block: e.processedBlock,
1391
1396
  context: e.context
1392
1397
  }, null, 8, ["block", "context"]),
1393
- (f = e.blockComponent) != null && f.noWrap ? (c(), m(I, { key: 1 }, [
1394
- e.repeatItem ? (c(!0), m(I, { key: 1 }, U(e.repeatItem, (d, h) => (c(), k(p, {
1395
- key: e.generateKey(h),
1396
- repeatContext: d.context,
1397
- block: d.block,
1398
+ (f = e.blockComponent) != null && f.noWrap ? (d(), h(I, { key: 1 }, [
1399
+ e.repeatItem ? (d(!0), h(I, { key: 1 }, L(e.repeatItem, (c, m) => (d(), S(p, {
1400
+ key: e.generateKey(m),
1401
+ repeatContext: c.context,
1402
+ block: c.block,
1398
1403
  registeredComponents: e.registeredComponents,
1399
1404
  linkComponent: e.linkComponent
1400
- }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (c(), k(a, {
1405
+ }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (d(), S(a, {
1401
1406
  key: 0,
1402
1407
  componentRef: e.componentRefProps.componentRef,
1403
1408
  componentOptions: e.componentRefProps.componentOptions,
@@ -1409,21 +1414,21 @@ function mo(e, t, n, o, r, s) {
1409
1414
  includeBlockProps: e.componentRefProps.includeBlockProps,
1410
1415
  isInteractive: e.componentRefProps.isInteractive
1411
1416
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
1412
- ], 64)) : (c(), m(I, { key: 0 }, [
1413
- e.repeatItem ? (c(!0), m(I, { key: 1 }, U(e.repeatItem, (d, h) => (c(), k(p, {
1414
- key: e.generateKey(h),
1415
- repeatContext: d.context,
1416
- block: d.block,
1417
+ ], 64)) : (d(), h(I, { key: 0 }, [
1418
+ e.repeatItem ? (d(!0), h(I, { key: 1 }, L(e.repeatItem, (c, m) => (d(), S(p, {
1419
+ key: e.generateKey(m),
1420
+ repeatContext: c.context,
1421
+ block: c.block,
1417
1422
  registeredComponents: e.registeredComponents,
1418
1423
  linkComponent: e.linkComponent
1419
- }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (c(), k(u, {
1424
+ }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (d(), S(u, {
1420
1425
  key: 0,
1421
1426
  Wrapper: e.Tag,
1422
1427
  block: e.processedBlock,
1423
1428
  context: e.context
1424
1429
  }, {
1425
- default: O(() => [
1426
- $(a, {
1430
+ default: U(() => [
1431
+ E(a, {
1427
1432
  componentRef: e.componentRefProps.componentRef,
1428
1433
  componentOptions: e.componentRefProps.componentOptions,
1429
1434
  blockChildren: e.componentRefProps.blockChildren,
@@ -1434,9 +1439,9 @@ function mo(e, t, n, o, r, s) {
1434
1439
  includeBlockProps: e.componentRefProps.includeBlockProps,
1435
1440
  isInteractive: e.componentRefProps.isInteractive
1436
1441
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
1437
- (c(!0), m(I, null, U(e.childrenWithoutParentComponent, (d, h) => (c(), k(l, {
1438
- key: d.id,
1439
- block: d,
1442
+ (d(!0), h(I, null, L(e.childrenWithoutParentComponent, (c, m) => (d(), S(l, {
1443
+ key: c.id,
1444
+ block: c,
1440
1445
  registeredComponents: e.registeredComponents,
1441
1446
  linkComponent: e.linkComponent,
1442
1447
  context: e.context
@@ -1447,10 +1452,10 @@ function mo(e, t, n, o, r, s) {
1447
1452
  ], 64))
1448
1453
  ], 64)) : C("", !0);
1449
1454
  }
1450
- const ft = /* @__PURE__ */ v(po, [["render", mo]]), Ts = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1455
+ const gt = /* @__PURE__ */ v(mo, [["render", ho]]), Is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1451
1456
  __proto__: null,
1452
- default: ft
1453
- }, Symbol.toStringTag, { value: "Module" })), ho = y({
1457
+ default: gt
1458
+ }, Symbol.toStringTag, { value: "Module" })), fo = y({
1454
1459
  name: "builder-blocks-wrapper",
1455
1460
  props: [
1456
1461
  "blocks",
@@ -1520,8 +1525,8 @@ const ft = /* @__PURE__ */ v(po, [["render", mo]]), Ts = /* @__PURE__ */ Object.
1520
1525
  }
1521
1526
  }
1522
1527
  });
1523
- function fo(e, t, n, o, r, s) {
1524
- return c(), k(Y(e.BlocksWrapper), w({
1528
+ function bo(e, t, n, o, r, s) {
1529
+ return d(), S(_(e.BlocksWrapper), w({
1525
1530
  ref: "blocksWrapperRef",
1526
1531
  class: e.className + " component-tqyw9m0iue",
1527
1532
  "builder-path": e.dataPath,
@@ -1531,15 +1536,15 @@ function fo(e, t, n, o, r, s) {
1531
1536
  onMouseEnter: (i) => e.onMouseEnter(),
1532
1537
  onKeyPress: (i) => e.onClick()
1533
1538
  }, { ...e.BlocksWrapperProps }), {
1534
- default: O(() => [
1535
- B(e.$slots, "default", {}, void 0, !0)
1539
+ default: U(() => [
1540
+ V(e.$slots, "default", {}, void 0, !0)
1536
1541
  ]),
1537
1542
  _: 3
1538
1543
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
1539
1544
  }
1540
- const bo = /* @__PURE__ */ v(ho, [["render", fo], ["__scopeId", "data-v-161c6b74"]]), go = y({
1545
+ const go = /* @__PURE__ */ v(fo, [["render", bo], ["__scopeId", "data-v-161c6b74"]]), yo = y({
1541
1546
  name: "builder-blocks",
1542
- components: { BlocksWrapper: bo, Block: ft },
1547
+ components: { BlocksWrapper: go, Block: gt },
1543
1548
  props: [
1544
1549
  "blocks",
1545
1550
  "parent",
@@ -1553,13 +1558,13 @@ const bo = /* @__PURE__ */ v(ho, [["render", fo], ["__scopeId", "data-v-161c6b74
1553
1558
  ],
1554
1559
  inject: {
1555
1560
  builderContext: be.key,
1556
- componentsContext: qe.key
1561
+ componentsContext: Ge.key
1557
1562
  }
1558
1563
  });
1559
- function yo(e, t, n, o, r, s) {
1564
+ function vo(e, t, n, o, r, s) {
1560
1565
  var l, u, p, f;
1561
- const i = S("Block"), a = S("BlocksWrapper");
1562
- return c(), k(a, {
1566
+ const i = k("Block"), a = k("BlocksWrapper");
1567
+ return d(), S(a, {
1563
1568
  blocks: e.blocks,
1564
1569
  parent: e.parent,
1565
1570
  path: e.path,
@@ -1568,13 +1573,13 @@ function yo(e, t, n, o, r, s) {
1568
1573
  classNameProp: e.className,
1569
1574
  BlocksWrapper: ((p = e.context) == null ? void 0 : p.BlocksWrapper) || ((f = e.builderContext) == null ? void 0 : f.BlocksWrapper)
1570
1575
  }, {
1571
- default: O(() => [
1572
- B(e.$slots, "default"),
1573
- e.blocks ? (c(!0), m(I, { key: 0 }, U(e.blocks, (d, h) => {
1576
+ default: U(() => [
1577
+ V(e.$slots, "default"),
1578
+ e.blocks ? (d(!0), h(I, { key: 0 }, L(e.blocks, (c, m) => {
1574
1579
  var b;
1575
- return c(), k(i, {
1576
- key: d.id,
1577
- block: d,
1580
+ return d(), S(i, {
1581
+ key: c.id,
1582
+ block: c,
1578
1583
  linkComponent: e.linkComponent,
1579
1584
  context: e.context || e.builderContext,
1580
1585
  registeredComponents: e.registeredComponents || ((b = e.componentsContext) == null ? void 0 : b.registeredComponents)
@@ -1584,21 +1589,21 @@ function yo(e, t, n, o, r, s) {
1584
1589
  _: 3
1585
1590
  }, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapperProps", "classNameProp", "BlocksWrapper"]);
1586
1591
  }
1587
- const j = /* @__PURE__ */ v(go, [["render", yo]]), vo = y({
1592
+ const q = /* @__PURE__ */ v(yo, [["render", vo]]), So = y({
1588
1593
  name: "dynamic-div",
1589
1594
  props: []
1590
1595
  });
1591
1596
  function ko(e, t, n, o, r, s) {
1592
- return c(), m("div", null, [
1593
- B(e.$slots, "default")
1597
+ return d(), h("div", null, [
1598
+ V(e.$slots, "default")
1594
1599
  ]);
1595
1600
  }
1596
- const ee = /* @__PURE__ */ v(vo, [["render", ko]]), So = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1601
+ const ne = /* @__PURE__ */ v(So, [["render", ko]]), Co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1597
1602
  __proto__: null,
1598
- default: ee
1603
+ default: ne
1599
1604
  }, Symbol.toStringTag, { value: "Module" })), de = y({
1600
1605
  render() {
1601
- return Me("style", {
1606
+ return Ke("style", {
1602
1607
  innerHTML: this.styles,
1603
1608
  "data-id": this.id,
1604
1609
  nonce: this.nonce
@@ -1606,7 +1611,7 @@ const ee = /* @__PURE__ */ v(vo, [["render", ko]]), So = /* @__PURE__ */ Object.
1606
1611
  },
1607
1612
  name: "inlined-styles",
1608
1613
  props: ["styles", "id", "nonce"]
1609
- }), bt = {
1614
+ }), yt = {
1610
1615
  xsmall: {
1611
1616
  min: 0,
1612
1617
  default: 160,
@@ -1627,8 +1632,8 @@ const ee = /* @__PURE__ */ v(vo, [["render", ko]]), So = /* @__PURE__ */ Object.
1627
1632
  default: 991,
1628
1633
  max: 1200
1629
1634
  }
1630
- }, Is = (e, t = bt) => `@media (max-width: ${t[e].max}px)`, Co = (e) => {
1631
- const t = ke(bt);
1635
+ }, ws = (e, t = yt) => `@media (max-width: ${t[e].max}px)`, To = (e) => {
1636
+ const t = ke(yt);
1632
1637
  if (!e)
1633
1638
  return t;
1634
1639
  const {
@@ -1665,13 +1670,13 @@ const ee = /* @__PURE__ */ v(vo, [["render", ko]]), So = /* @__PURE__ */ Object.
1665
1670
  min: a,
1666
1671
  default: a + 1
1667
1672
  }, t;
1668
- }, To = (e) => `builder-columns ${e}-breakpoints`, Io = y({
1673
+ }, Io = (e) => `builder-columns ${e}-breakpoints`, wo = y({
1669
1674
  name: "builder-columns",
1670
1675
  components: {
1671
1676
  InlinedStyles: de,
1672
- DynamicRenderer: Se,
1673
- Blocks: j,
1674
- DynamicDiv: ee
1677
+ DynamicRenderer: Ce,
1678
+ Blocks: q,
1679
+ DynamicDiv: ne
1675
1680
  },
1676
1681
  props: [
1677
1682
  "space",
@@ -1684,7 +1689,7 @@ const ee = /* @__PURE__ */ v(vo, [["render", ko]]), So = /* @__PURE__ */ Object.
1684
1689
  "builderComponents"
1685
1690
  ],
1686
1691
  data() {
1687
- return { TARGET: E, getColumnsClass: To };
1692
+ return { TARGET: $, getColumnsClass: Io };
1688
1693
  },
1689
1694
  computed: {
1690
1695
  gutterSize() {
@@ -1763,7 +1768,7 @@ const ee = /* @__PURE__ */ v(vo, [["render", ko]]), So = /* @__PURE__ */ Object.
1763
1768
  },
1764
1769
  getWidthForBreakpointSize(e) {
1765
1770
  var n, o;
1766
- return Co(
1771
+ return To(
1767
1772
  ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
1768
1773
  )[e].max;
1769
1774
  },
@@ -1800,33 +1805,33 @@ const ee = /* @__PURE__ */ v(vo, [["render", ko]]), So = /* @__PURE__ */ Object.
1800
1805
  ...e.link ? {
1801
1806
  href: e.link
1802
1807
  } : {},
1803
- [q()]: "builder-column",
1804
- style: mt(this.columnCssVars(t))
1808
+ [G()]: "builder-column",
1809
+ style: ft(this.columnCssVars(t))
1805
1810
  };
1806
1811
  }
1807
1812
  }
1808
1813
  });
1809
- function wo(e, t, n, o, r, s) {
1814
+ function $o(e, t, n, o, r, s) {
1810
1815
  var u;
1811
- const i = S("InlinedStyles"), a = S("Blocks"), l = S("DynamicRenderer");
1812
- return c(), m("div", w({
1816
+ const i = k("InlinedStyles"), a = k("Blocks"), l = k("DynamicRenderer");
1817
+ return d(), h("div", w({
1813
1818
  class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-4wbls88y960",
1814
1819
  style: e.columnsCssVars()
1815
1820
  }, {}), [
1816
- e.TARGET !== "reactNative" ? (c(), k(i, {
1821
+ e.TARGET !== "reactNative" ? (d(), S(i, {
1817
1822
  key: 0,
1818
1823
  id: "builderio-columns",
1819
1824
  styles: e.columnsStyles(),
1820
1825
  nonce: e.builderContext.nonce
1821
1826
  }, null, 8, ["styles", "nonce"])) : C("", !0),
1822
- (c(!0), m(I, null, U(e.columns, (p, f) => (c(), k(l, {
1827
+ (d(!0), h(I, null, L(e.columns, (p, f) => (d(), S(l, {
1823
1828
  key: f,
1824
1829
  TagName: e.getTagName(p),
1825
1830
  actionAttributes: {},
1826
1831
  attributes: e.getAttributes(p, f)
1827
1832
  }, {
1828
- default: O(() => [
1829
- $(a, {
1833
+ default: U(() => [
1834
+ E(a, {
1830
1835
  path: `columns.${f}.blocks`,
1831
1836
  parent: e.builderBlock.id,
1832
1837
  context: e.builderContext,
@@ -1842,32 +1847,32 @@ function wo(e, t, n, o, r, s) {
1842
1847
  }, 1032, ["TagName", "attributes"]))), 128))
1843
1848
  ], 16);
1844
1849
  }
1845
- const $o = /* @__PURE__ */ v(Io, [["render", wo], ["__scopeId", "data-v-459e0e34"]]), Ro = y({
1850
+ const Ro = /* @__PURE__ */ v(wo, [["render", $o], ["__scopeId", "data-v-459e0e34"]]), Eo = y({
1846
1851
  name: "builder-fragment-component",
1847
1852
  props: []
1848
1853
  });
1849
- function Eo(e, t, n, o, r, s) {
1850
- return c(), m("span", null, [
1851
- B(e.$slots, "default")
1854
+ function Po(e, t, n, o, r, s) {
1855
+ return d(), h("span", null, [
1856
+ V(e.$slots, "default")
1852
1857
  ]);
1853
1858
  }
1854
- const Po = /* @__PURE__ */ v(Ro, [["render", Eo]]);
1855
- function Ue(e) {
1859
+ const Ao = /* @__PURE__ */ v(Eo, [["render", Po]]);
1860
+ function Le(e) {
1856
1861
  return e.replace(/http(s)?:/, "");
1857
1862
  }
1858
- function Ao(e = "", t, n) {
1863
+ function Bo(e = "", t, n) {
1859
1864
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
1860
1865
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
1861
1866
  }
1862
- function Bo(e, t) {
1867
+ function Vo(e, t) {
1863
1868
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1864
1869
  return e;
1865
1870
  if (t === "master")
1866
- return Ue(e);
1871
+ return Le(e);
1867
1872
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1868
1873
  if (n) {
1869
1874
  const o = e.split(n[0]), r = n[3], s = t.match("x") ? t : `${t}x`;
1870
- return Ue(`${o[0]}_${s}${r}`);
1875
+ return Le(`${o[0]}_${s}${r}`);
1871
1876
  }
1872
1877
  return null;
1873
1878
  }
@@ -1878,11 +1883,11 @@ function ue(e) {
1878
1883
  if (e.match(/builder\.io/)) {
1879
1884
  let n = e;
1880
1885
  const o = Number(e.split("?width=")[1]);
1881
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Ao(e, "width", r)} ${r}w`).concat([n]).join(", ");
1886
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Bo(e, "width", r)} ${r}w`).concat([n]).join(", ");
1882
1887
  }
1883
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Bo(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1888
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Vo(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1884
1889
  }
1885
- const Vo = y({
1890
+ const No = y({
1886
1891
  name: "builder-image",
1887
1892
  props: [
1888
1893
  "lazy",
@@ -1933,60 +1938,60 @@ const Vo = y({
1933
1938
  return this.aspectRatio ? e : void 0;
1934
1939
  }
1935
1940
  }
1936
- }), No = ["srcset"], Wo = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], xo = {
1941
+ }), Wo = ["srcset"], xo = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], Do = {
1937
1942
  key: 2,
1938
1943
  class: "div-29wpyomtntv-2"
1939
1944
  };
1940
- function Do(e, t, n, o, r, s) {
1945
+ function Oo(e, t, n, o, r, s) {
1941
1946
  var i, a, l, u, p, f;
1942
- return c(), m(I, null, [
1943
- K("picture", null, [
1944
- e.webpSrcSet ? (c(), m("source", {
1947
+ return d(), h(I, null, [
1948
+ z("picture", null, [
1949
+ e.webpSrcSet ? (d(), h("source", {
1945
1950
  key: 0,
1946
1951
  type: "image/webp",
1947
1952
  srcset: e.webpSrcSet
1948
- }, null, 8, No)) : C("", !0),
1949
- K("img", {
1953
+ }, null, 8, Wo)) : C("", !0),
1954
+ z("img", {
1950
1955
  loading: e.highPriority ? "eager" : "lazy",
1951
1956
  fetchpriority: e.highPriority ? "high" : "auto",
1952
1957
  alt: e.altText,
1953
1958
  title: e.title,
1954
1959
  role: e.altText ? void 0 : "presentation",
1955
- style: H({
1960
+ style: j({
1956
1961
  objectPosition: e.backgroundPosition || "center",
1957
1962
  objectFit: e.backgroundSize || "cover",
1958
1963
  ...e.aspectRatioCss
1959
1964
  }),
1960
- class: Z(
1965
+ class: ee(
1961
1966
  "builder-image" + (e.className ? " " + e.className : "") + " img-29wpyomtntv"
1962
1967
  ),
1963
1968
  src: e.image,
1964
1969
  srcset: e.srcSetToUse,
1965
1970
  sizes: e.sizes
1966
- }, null, 14, Wo)
1971
+ }, null, 14, xo)
1967
1972
  ]),
1968
- e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? (c(), m("div", {
1973
+ e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? (d(), h("div", {
1969
1974
  key: 0,
1970
1975
  class: "builder-image-sizer div-29wpyomtntv",
1971
- style: H({
1976
+ style: j({
1972
1977
  paddingTop: e.aspectRatio * 100 + "%"
1973
1978
  })
1974
1979
  }, null, 4)) : C("", !0),
1975
- (u = (l = e.builderBlock) == null ? void 0 : l.children) != null && u.length && e.fitContent ? B(e.$slots, "default", { key: 1 }, void 0, !0) : C("", !0),
1976
- !e.fitContent && ((f = (p = e.builderBlock) == null ? void 0 : p.children) != null && f.length) ? (c(), m("div", xo, [
1977
- B(e.$slots, "default", {}, void 0, !0)
1980
+ (u = (l = e.builderBlock) == null ? void 0 : l.children) != null && u.length && e.fitContent ? V(e.$slots, "default", { key: 1 }, void 0, !0) : C("", !0),
1981
+ !e.fitContent && ((f = (p = e.builderBlock) == null ? void 0 : p.children) != null && f.length) ? (d(), h("div", Do, [
1982
+ V(e.$slots, "default", {}, void 0, !0)
1978
1983
  ])) : C("", !0)
1979
1984
  ], 64);
1980
1985
  }
1981
- const Oo = /* @__PURE__ */ v(Vo, [["render", Do], ["__scopeId", "data-v-e6416c92"]]), Uo = y({
1986
+ const Uo = /* @__PURE__ */ v(No, [["render", Oo], ["__scopeId", "data-v-e6416c92"]]), Fo = y({
1982
1987
  name: "builder-section-component",
1983
1988
  props: ["attributes", "maxWidth"],
1984
1989
  data() {
1985
- return { filterAttrs: N };
1990
+ return { filterAttrs: W };
1986
1991
  }
1987
1992
  });
1988
- function Fo(e, t, n, o, r, s) {
1989
- return c(), m("section", w({
1993
+ function Lo(e, t, n, o, r, s) {
1994
+ return d(), h("section", w({
1990
1995
  style: {
1991
1996
  width: "100%",
1992
1997
  alignSelf: "stretch",
@@ -1999,12 +2004,12 @@ function Fo(e, t, n, o, r, s) {
1999
2004
  marginLeft: "auto",
2000
2005
  marginRight: "auto"
2001
2006
  }
2002
- }, e.filterAttrs(e.attributes, "v-on:", !1), D(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
2003
- B(e.$slots, "default")
2007
+ }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
2008
+ V(e.$slots, "default")
2004
2009
  ], 16);
2005
2010
  }
2006
- const Lo = /* @__PURE__ */ v(Uo, [["render", Fo]]);
2007
- function Ho(e, t, n, o) {
2011
+ const Ho = /* @__PURE__ */ v(Fo, [["render", Lo]]);
2012
+ function Mo(e, t, n, o) {
2008
2013
  function r(u) {
2009
2014
  return typeof u == "string";
2010
2015
  }
@@ -2013,24 +2018,24 @@ function Ho(e, t, n, o) {
2013
2018
  }
2014
2019
  function i(u, p) {
2015
2020
  return (() => {
2016
- const d = p.property, h = p.operator;
2021
+ const c = p.property, m = p.operator;
2017
2022
  let b = p.value;
2018
- if (p && p.property === "urlPath" && p.value && typeof p.value == "string" && p.value !== "/" && p.value.endsWith("/") && (b = p.value.slice(0, -1)), !(d && h))
2023
+ if (p && p.property === "urlPath" && p.value && typeof p.value == "string" && p.value !== "/" && p.value.endsWith("/") && (b = p.value.slice(0, -1)), !(c && m))
2019
2024
  return !0;
2020
2025
  if (Array.isArray(b))
2021
- return h === "isNot" ? b.every((A) => i(u, {
2022
- property: d,
2023
- operator: h,
2026
+ return m === "isNot" ? b.every((A) => i(u, {
2027
+ property: c,
2028
+ operator: m,
2024
2029
  value: A
2025
2030
  })) : !!b.find((A) => i(u, {
2026
- property: d,
2027
- operator: h,
2031
+ property: c,
2032
+ operator: m,
2028
2033
  value: A
2029
2034
  }));
2030
- const g = u[d];
2035
+ const g = u[c];
2031
2036
  if (Array.isArray(g))
2032
2037
  return g.includes(b);
2033
- switch (h) {
2038
+ switch (m) {
2034
2039
  case "is":
2035
2040
  return g === b;
2036
2041
  case "isNot":
@@ -2061,7 +2066,7 @@ function Ho(e, t, n, o) {
2061
2066
  }, l = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
2062
2067
  return a.startDate && new Date(a.startDate) > l || a.endDate && new Date(a.endDate) < l ? !1 : !a.query || !a.query.length ? !0 : a.query.every((u) => i(e, u));
2063
2068
  }
2064
- const Mo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
2069
+ const jo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
2065
2070
  if (!navigator.cookieEnabled) {
2066
2071
  return;
2067
2072
  }
@@ -2106,7 +2111,7 @@ const Mo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
2106
2111
  thisScript.remove();
2107
2112
  }
2108
2113
  }
2109
- }`, jo = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
2114
+ }`, Ko = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
2110
2115
  function isString(val) {
2111
2116
  return typeof val === 'string';
2112
2117
  }
@@ -2184,7 +2189,7 @@ const Mo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
2184
2189
  return item.query.every(filter => {
2185
2190
  return objectMatchesQuery(userAttributes, filter);
2186
2191
  });
2187
- }`, Ko = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
2192
+ }`, qo = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
2188
2193
  function getCookie(name) {
2189
2194
  const nameEQ = name + '=';
2190
2195
  const ca = document.cookie.split(';');
@@ -2222,11 +2227,11 @@ const Mo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
2222
2227
  visibilityStylesEl.innerHTML = newStyleStr;
2223
2228
  }
2224
2229
  }
2225
- }`, oe = "default", qo = "filterWithCustomTargeting", gt = "builderIoPersonalization", yt = "updateVisibilityStylesScript", vt = ["react", "vue", "svelte"], kt = ["vue", "svelte"];
2226
- function zo(e, t) {
2227
- return !(e && e.length > 0) || !t ? !1 : kt.includes(E) ? !0 : !R();
2230
+ }`, oe = "default", zo = "filterWithCustomTargeting", vt = "builderIoPersonalization", St = "updateVisibilityStylesScript", kt = ["react", "vue", "svelte", "qwik"], Ct = ["vue", "svelte", "qwik"];
2231
+ function Go(e, t) {
2232
+ return !(e && e.length > 0) || !t ? !1 : Ct.includes($) ? !0 : !R();
2228
2233
  }
2229
- function Go({
2234
+ function Jo({
2230
2235
  variants: e,
2231
2236
  previewingIndex: t,
2232
2237
  isHydrated: n,
@@ -2264,11 +2269,11 @@ function Go({
2264
2269
  }
2265
2270
  return s;
2266
2271
  }
2267
- const Jo = () => `
2268
- window.${qo} = ${jo}
2269
- window.${gt} = ${Mo}
2270
- window.${yt} = ${Ko}
2271
- `, St = E === "react", Qo = (e, t, n) => `window.${gt}(${JSON.stringify(e)}, "${t}", ${St}${n ? `, "${n}"` : ""})`, Yo = (e, t, n) => `window.${yt}(${JSON.stringify(e)}, "${t}", ${St}${n ? `, "${n}"` : ""})`, pe = {
2272
+ const Qo = () => `
2273
+ window.${zo} = ${Ko}
2274
+ window.${vt} = ${jo}
2275
+ window.${St} = ${qo}
2276
+ `, Tt = $ === "react", Yo = (e, t, n) => `window.${vt}(${JSON.stringify(e)}, "${t}", ${Tt}${n ? `, "${n}"` : ""})`, Xo = (e, t, n) => `window.${St}(${JSON.stringify(e)}, "${t}", ${Tt}${n ? `, "${n}"` : ""})`, pe = {
2272
2277
  "@type": "@builder.io/sdk:Element",
2273
2278
  layerName: "Accordion item title",
2274
2279
  responsiveStyles: {
@@ -2328,7 +2333,7 @@ const Jo = () => `
2328
2333
  }
2329
2334
  }
2330
2335
  }]
2331
- }, Xo = {
2336
+ }, _o = {
2332
2337
  name: "Builder:Accordion",
2333
2338
  canHaveChildren: !0,
2334
2339
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -2392,9 +2397,9 @@ const Jo = () => `
2392
2397
  builderComponents: !0,
2393
2398
  builderLinkComponent: !0
2394
2399
  }
2395
- }, Zo = (e) => e.toString(), _o = y({
2400
+ }, Zo = (e) => e.toString(), er = y({
2396
2401
  name: "builder-accordion",
2397
- components: { Blocks: j },
2402
+ components: { Blocks: q },
2398
2403
  props: [
2399
2404
  "grid",
2400
2405
  "oneAtATime",
@@ -2487,17 +2492,17 @@ const Jo = () => `
2487
2492
  this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
2488
2493
  }
2489
2494
  }
2490
- }), er = ["data-index", "onClick"];
2491
- function tr(e, t, n, o, r, s) {
2492
- const i = S("Blocks");
2493
- return c(), m("div", {
2495
+ }), tr = ["data-index", "onClick"];
2496
+ function nr(e, t, n, o, r, s) {
2497
+ const i = k("Blocks");
2498
+ return d(), h("div", {
2494
2499
  class: "builder-accordion",
2495
- style: H(e.accordionStyles)
2500
+ style: j(e.accordionStyles)
2496
2501
  }, [
2497
- (c(!0), m(I, null, U(e.items, (a, l) => (c(), m(I, { key: l }, [
2498
- K("div", {
2499
- class: Z(e.getAccordionTitleClassName(l)),
2500
- style: H({
2502
+ (d(!0), h(I, null, L(e.items, (a, l) => (d(), h(I, { key: l }, [
2503
+ z("div", {
2504
+ class: ee(e.getAccordionTitleClassName(l)),
2505
+ style: j({
2501
2506
  ...e.accordionTitleStyles,
2502
2507
  ...e.grid && {
2503
2508
  width: e.gridRowWidth,
@@ -2507,7 +2512,7 @@ function tr(e, t, n, o, r, s) {
2507
2512
  "data-index": l,
2508
2513
  onClick: async (u) => e.onClick(l)
2509
2514
  }, [
2510
- $(i, {
2515
+ E(i, {
2511
2516
  blocks: a.title,
2512
2517
  path: `items.${l}.title`,
2513
2518
  parent: e.builderBlock.id,
@@ -2515,13 +2520,13 @@ function tr(e, t, n, o, r, s) {
2515
2520
  registeredComponents: e.builderComponents,
2516
2521
  linkComponent: e.builderLinkComponent
2517
2522
  }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
2518
- ], 14, er),
2519
- e.open.includes(l) ? (c(), m("div", {
2523
+ ], 14, tr),
2524
+ e.open.includes(l) ? (d(), h("div", {
2520
2525
  key: 0,
2521
- class: Z(e.getAccordionDetailClassName(l)),
2522
- style: H(e.accordionDetailStyles)
2526
+ class: ee(e.getAccordionDetailClassName(l)),
2527
+ style: j(e.accordionDetailStyles)
2523
2528
  }, [
2524
- $(i, {
2529
+ E(i, {
2525
2530
  blocks: a.detail,
2526
2531
  path: `items.${l}.detail`,
2527
2532
  parent: e.builderBlock.id,
@@ -2533,7 +2538,7 @@ function tr(e, t, n, o, r, s) {
2533
2538
  ], 64))), 128))
2534
2539
  ], 4);
2535
2540
  }
2536
- const nr = /* @__PURE__ */ v(_o, [["render", tr]]), or = {
2541
+ const or = /* @__PURE__ */ v(er, [["render", nr]]), rr = {
2537
2542
  name: "Core:Button",
2538
2543
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
2539
2544
  defaultStyles: {
@@ -2569,7 +2574,7 @@ const nr = /* @__PURE__ */ v(_o, [["render", tr]]), or = {
2569
2574
  shouldReceiveBuilderProps: {
2570
2575
  builderLinkComponent: !0
2571
2576
  }
2572
- }, rr = {
2577
+ }, ir = {
2573
2578
  // TODO: ways to statically preprocess JSON for references, functions, etc
2574
2579
  name: "Columns",
2575
2580
  isRSC: !0,
@@ -2776,13 +2781,13 @@ const nr = /* @__PURE__ */ v(_o, [["render", tr]]), or = {
2776
2781
  builderComponents: !0,
2777
2782
  builderLinkComponent: !0
2778
2783
  }
2779
- }, ir = {
2784
+ }, sr = {
2780
2785
  name: "Fragment",
2781
2786
  static: !0,
2782
2787
  hidden: !0,
2783
2788
  canHaveChildren: !0,
2784
2789
  noWrap: !0
2785
- }, Pe = ["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"], sr = ["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"], ar = {
2790
+ }, Ae = ["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"], ar = ["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"], lr = {
2786
2791
  name: "Image",
2787
2792
  static: !0,
2788
2793
  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",
@@ -2797,7 +2802,7 @@ const nr = /* @__PURE__ */ v(_o, [["render", tr]]), or = {
2797
2802
  name: "image",
2798
2803
  type: "file",
2799
2804
  bubble: !0,
2800
- allowedFileTypes: Pe,
2805
+ allowedFileTypes: Ae,
2801
2806
  required: !0,
2802
2807
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
2803
2808
  onChange: (e) => {
@@ -2808,8 +2813,8 @@ const nr = /* @__PURE__ */ v(_o, [["render", tr]]), or = {
2808
2813
  let f = !1;
2809
2814
  p.onload = () => {
2810
2815
  f = !0, l(p);
2811
- }, p.addEventListener("error", (d) => {
2812
- console.warn("Image load failed", d.error), u(d.error);
2816
+ }, p.addEventListener("error", (c) => {
2817
+ console.warn("Image load failed", c.error), u(c.error);
2813
2818
  }), p.src = i, setTimeout(() => {
2814
2819
  f || u(new Error("Image load timed out"));
2815
2820
  }, a);
@@ -2894,7 +2899,7 @@ const nr = /* @__PURE__ */ v(_o, [["render", tr]]), or = {
2894
2899
  shouldReceiveBuilderProps: {
2895
2900
  builderBlock: !0
2896
2901
  }
2897
- }, lr = {
2902
+ }, cr = {
2898
2903
  name: "PersonalizationContainer",
2899
2904
  shouldReceiveBuilderProps: {
2900
2905
  builderBlock: !0,
@@ -2930,9 +2935,9 @@ const nr = /* @__PURE__ */ v(_o, [["render", tr]]), or = {
2930
2935
  defaultValue: []
2931
2936
  }]
2932
2937
  }]
2933
- }, Ae = y({
2938
+ }, Be = y({
2934
2939
  render() {
2935
- return Me("script", {
2940
+ return Ke("script", {
2936
2941
  innerHTML: this.scriptStr,
2937
2942
  "data-id": this.id,
2938
2943
  nonce: this.nonce
@@ -2940,12 +2945,12 @@ const nr = /* @__PURE__ */ v(_o, [["render", tr]]), or = {
2940
2945
  },
2941
2946
  name: "inlined-script",
2942
2947
  props: ["scriptStr", "id", "nonce"]
2943
- }), cr = y({
2948
+ }), dr = y({
2944
2949
  name: "builder-personalization-container",
2945
2950
  components: {
2946
- Blocks: j,
2951
+ Blocks: q,
2947
2952
  InlinedStyles: de,
2948
- InlinedScript: Ae
2953
+ InlinedScript: Be
2949
2954
  },
2950
2955
  props: [
2951
2956
  "builderContext",
@@ -2959,25 +2964,25 @@ const nr = /* @__PURE__ */ v(_o, [["render", tr]]), or = {
2959
2964
  var e, t, n, o, r, s, i;
2960
2965
  return {
2961
2966
  userAttributes: ae.getUserAttributes(),
2962
- scriptStr: Qo(
2967
+ scriptStr: Yo(
2963
2968
  this.variants,
2964
2969
  ((e = this.builderBlock) == null ? void 0 : e.id) || "none",
2965
2970
  (n = (t = this.builderContext) == null ? void 0 : t.rootState) == null ? void 0 : n.locale
2966
2971
  ),
2967
- updateVisibilityStylesScript: Yo(
2972
+ updateVisibilityStylesScript: Xo(
2968
2973
  this.variants,
2969
2974
  ((o = this.builderBlock) == null ? void 0 : o.id) || "none",
2970
2975
  (s = (r = this.builderContext) == null ? void 0 : r.rootState) == null ? void 0 : s.locale
2971
2976
  ),
2972
2977
  unsubscribers: [],
2973
- shouldRenderVariants: zo(
2978
+ shouldRenderVariants: Go(
2974
2979
  this.variants,
2975
- z((i = this.builderContext) == null ? void 0 : i.canTrack)
2980
+ J((i = this.builderContext) == null ? void 0 : i.canTrack)
2976
2981
  ),
2977
2982
  shouldResetVariants: !1,
2978
- TARGET: E,
2983
+ TARGET: $,
2979
2984
  DEFAULT_INDEX: oe,
2980
- SDKS_REQUIRING_RESET_APPROACH: kt
2985
+ SDKS_REQUIRING_RESET_APPROACH: Ct
2981
2986
  };
2982
2987
  },
2983
2988
  mounted() {
@@ -2986,9 +2991,12 @@ const nr = /* @__PURE__ */ v(_o, [["render", tr]]), or = {
2986
2991
  const e = ae.subscribeOnUserAttributesChange(
2987
2992
  (n) => {
2988
2993
  this.userAttributes = n;
2994
+ },
2995
+ {
2996
+ fireImmediately: $ === "qwik"
2989
2997
  }
2990
2998
  );
2991
- if (!(P() || Ce())) {
2999
+ if (!(P() || Te())) {
2992
3000
  const n = this.filteredVariants[0];
2993
3001
  this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
2994
3002
  new CustomEvent("builder.variantLoaded", {
@@ -3021,15 +3029,15 @@ const nr = /* @__PURE__ */ v(_o, [["render", tr]]), or = {
3021
3029
  computed: {
3022
3030
  attrs() {
3023
3031
  return {
3024
- ...N(this.attributes, "v-on:", !1),
3025
- ...N(this.attributes, "v-on:", !0),
3026
- [q()]: `builder-personalization-container ${this.attributes[q()] || ""}`
3032
+ ...W(this.attributes, "v-on:", !1),
3033
+ ...W(this.attributes, "v-on:", !0),
3034
+ [G()]: `builder-personalization-container ${this.attributes[G()] || ""}`
3027
3035
  };
3028
3036
  },
3029
3037
  filteredVariants() {
3030
3038
  return (this.variants || []).filter((e) => {
3031
3039
  var t, n, o, r;
3032
- return Ho(
3040
+ return Mo(
3033
3041
  {
3034
3042
  ...(n = (t = this.builderContext) == null ? void 0 : t.rootState) != null && n.locale ? {
3035
3043
  locale: (r = (o = this.builderContext) == null ? void 0 : o.rootState) == null ? void 0 : r.locale
@@ -3044,7 +3052,7 @@ const nr = /* @__PURE__ */ v(_o, [["render", tr]]), or = {
3044
3052
  },
3045
3053
  blocksToRender() {
3046
3054
  var e;
3047
- return Go({
3055
+ return Jo({
3048
3056
  variants: this.variants,
3049
3057
  fallbackBlocks: (e = this.builderBlock) == null ? void 0 : e.children,
3050
3058
  isHydrated: this.shouldResetVariants,
@@ -3062,11 +3070,11 @@ const nr = /* @__PURE__ */ v(_o, [["render", tr]]), or = {
3062
3070
  }
3063
3071
  }
3064
3072
  });
3065
- function dr(e, t, n, o, r, s) {
3066
- var u, p, f, d, h, b, g, A, te, ne;
3067
- const i = S("Blocks"), a = S("InlinedStyles"), l = S("InlinedScript");
3068
- return c(), m("div", w({ ref: "rootRef" }, e.attrs), [
3069
- e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (c(), k(i, {
3073
+ function ur(e, t, n, o, r, s) {
3074
+ var u, p, f, c, m, b, g, A, F, B;
3075
+ const i = k("Blocks"), a = k("InlinedStyles"), l = k("InlinedScript");
3076
+ return d(), h("div", w({ ref: "rootRef" }, e.attrs), [
3077
+ e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), S(i, {
3070
3078
  key: 0,
3071
3079
  blocks: e.blocksToRender.blocks,
3072
3080
  parent: (u = e.builderBlock) == null ? void 0 : u.id,
@@ -3078,41 +3086,41 @@ function dr(e, t, n, o, r, s) {
3078
3086
  "data-variant-id": `${(f = e.builderBlock) == null ? void 0 : f.id}-${e.blocksToRender.index}`
3079
3087
  }
3080
3088
  }, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) : C("", !0),
3081
- !e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (c(), m(I, { key: 1 }, [
3082
- e.shouldRenderVariants ? (c(), m(I, { key: 0 }, [
3083
- $(a, {
3084
- nonce: ((d = e.builderContext) == null ? void 0 : d.nonce) || "",
3089
+ !e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), h(I, { key: 1 }, [
3090
+ e.shouldRenderVariants ? (d(), h(I, { key: 0 }, [
3091
+ E(a, {
3092
+ nonce: ((c = e.builderContext) == null ? void 0 : c.nonce) || "",
3085
3093
  styles: e.hideVariantsStyleString,
3086
- id: `variants-styles-${(h = e.builderBlock) == null ? void 0 : h.id}`
3094
+ id: `variants-styles-${(m = e.builderBlock) == null ? void 0 : m.id}`
3087
3095
  }, null, 8, ["nonce", "styles", "id"]),
3088
- $(l, {
3096
+ E(l, {
3089
3097
  nonce: ((b = e.builderContext) == null ? void 0 : b.nonce) || "",
3090
3098
  scriptStr: e.updateVisibilityStylesScript,
3091
3099
  id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
3092
3100
  }, null, 8, ["nonce", "scriptStr", "id"]),
3093
- (c(!0), m(I, null, U(e.variants, (T, W) => {
3094
- var F, G, J, x;
3095
- return c(), k(i, {
3096
- key: `${(F = e.builderBlock) == null ? void 0 : F.id}-${W}`,
3101
+ (d(!0), h(I, null, L(e.variants, (T, x) => {
3102
+ var H, Q, Y, D;
3103
+ return d(), S(i, {
3104
+ key: `${(H = e.builderBlock) == null ? void 0 : H.id}-${x}`,
3097
3105
  BlocksWrapperProps: {
3098
- ...(G = e.builderContext) == null ? void 0 : G.BlocksWrapperProps,
3106
+ ...(Q = e.builderContext) == null ? void 0 : Q.BlocksWrapperProps,
3099
3107
  "aria-hidden": !0,
3100
3108
  hidden: !0,
3101
- "data-variant-id": `${(J = e.builderBlock) == null ? void 0 : J.id}-${W}`
3109
+ "data-variant-id": `${(Y = e.builderBlock) == null ? void 0 : Y.id}-${x}`
3102
3110
  },
3103
3111
  blocks: T.blocks,
3104
- parent: (x = e.builderBlock) == null ? void 0 : x.id,
3105
- path: `component.options.variants.${W}.blocks`,
3112
+ parent: (D = e.builderBlock) == null ? void 0 : D.id,
3113
+ path: `component.options.variants.${x}.blocks`,
3106
3114
  context: e.builderContext,
3107
3115
  registeredComponents: e.builderComponents
3108
3116
  }, {
3109
- default: O(() => {
3110
- var L, Be;
3117
+ default: U(() => {
3118
+ var M, Ve;
3111
3119
  return [
3112
- $(l, {
3113
- nonce: ((L = e.builderContext) == null ? void 0 : L.nonce) || "",
3120
+ E(l, {
3121
+ nonce: ((M = e.builderContext) == null ? void 0 : M.nonce) || "",
3114
3122
  scriptStr: e.scriptStr,
3115
- id: `variants-script-${(Be = e.builderBlock) == null ? void 0 : Be.id}-${W}`
3123
+ id: `variants-script-${(Ve = e.builderBlock) == null ? void 0 : Ve.id}-${x}`
3116
3124
  }, null, 8, ["nonce", "scriptStr", "id"])
3117
3125
  ];
3118
3126
  }),
@@ -3120,25 +3128,25 @@ function dr(e, t, n, o, r, s) {
3120
3128
  }, 1032, ["BlocksWrapperProps", "blocks", "parent", "path", "context", "registeredComponents"]);
3121
3129
  }), 128))
3122
3130
  ], 64)) : C("", !0),
3123
- $(i, {
3131
+ E(i, {
3124
3132
  blocks: e.blocksToRender.blocks,
3125
3133
  parent: (A = e.builderBlock) == null ? void 0 : A.id,
3126
3134
  path: e.blocksToRender.path,
3127
3135
  context: e.builderContext,
3128
3136
  registeredComponents: e.builderComponents,
3129
3137
  BlocksWrapperProps: {
3130
- ...(te = e.builderContext) == null ? void 0 : te.BlocksWrapperProps,
3131
- "data-variant-id": `${(ne = e.builderBlock) == null ? void 0 : ne.id}-${e.blocksToRender.index}`
3138
+ ...(F = e.builderContext) == null ? void 0 : F.BlocksWrapperProps,
3139
+ "data-variant-id": `${(B = e.builderBlock) == null ? void 0 : B.id}-${e.blocksToRender.index}`
3132
3140
  }
3133
3141
  }, {
3134
- default: O(() => {
3135
- var T, W;
3142
+ default: U(() => {
3143
+ var T, x;
3136
3144
  return [
3137
- e.shouldRenderVariants ? (c(), k(l, {
3145
+ e.shouldRenderVariants ? (d(), S(l, {
3138
3146
  key: 0,
3139
3147
  nonce: ((T = e.builderContext) == null ? void 0 : T.nonce) || "",
3140
3148
  scriptStr: e.scriptStr,
3141
- id: `variants-script-${(W = e.builderBlock) == null ? void 0 : W.id}-${e.DEFAULT_INDEX}`
3149
+ id: `variants-script-${(x = e.builderBlock) == null ? void 0 : x.id}-${e.DEFAULT_INDEX}`
3142
3150
  }, null, 8, ["nonce", "scriptStr", "id"])) : C("", !0)
3143
3151
  ];
3144
3152
  }),
@@ -3147,7 +3155,7 @@ function dr(e, t, n, o, r, s) {
3147
3155
  ], 64)) : C("", !0)
3148
3156
  ], 16);
3149
3157
  }
3150
- const ur = /* @__PURE__ */ v(cr, [["render", dr]]), pr = {
3158
+ const pr = /* @__PURE__ */ v(dr, [["render", ur]]), mr = {
3151
3159
  name: "Core:Section",
3152
3160
  static: !0,
3153
3161
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -3186,7 +3194,7 @@ const ur = /* @__PURE__ */ v(cr, [["render", dr]]), pr = {
3186
3194
  }
3187
3195
  }
3188
3196
  }]
3189
- }, mr = {
3197
+ }, hr = {
3190
3198
  name: "Slot",
3191
3199
  isRSC: !0,
3192
3200
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -3203,15 +3211,15 @@ const ur = /* @__PURE__ */ v(cr, [["render", dr]]), pr = {
3203
3211
  builderContext: !0,
3204
3212
  builderComponents: !0
3205
3213
  }
3206
- }, hr = y({
3214
+ }, fr = y({
3207
3215
  name: "builder-slot",
3208
- components: { Blocks: j },
3216
+ components: { Blocks: q },
3209
3217
  props: ["builderContext", "name", "builderComponents"]
3210
3218
  });
3211
- function fr(e, t, n, o, r, s) {
3219
+ function br(e, t, n, o, r, s) {
3212
3220
  var a, l, u;
3213
- const i = S("Blocks");
3214
- return c(), m("div", w(
3221
+ const i = k("Blocks");
3222
+ return d(), h("div", w(
3215
3223
  { style: {
3216
3224
  pointerEvents: "auto"
3217
3225
  } },
@@ -3219,7 +3227,7 @@ function fr(e, t, n, o, r, s) {
3219
3227
  "builder-slot": e.name
3220
3228
  }
3221
3229
  ), [
3222
- $(i, {
3230
+ E(i, {
3223
3231
  parent: (l = e.builderContext.context) == null ? void 0 : l.symbolId,
3224
3232
  path: `symbol.data.${e.name}`,
3225
3233
  context: e.builderContext,
@@ -3228,7 +3236,7 @@ function fr(e, t, n, o, r, s) {
3228
3236
  }, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
3229
3237
  ], 16);
3230
3238
  }
3231
- const br = /* @__PURE__ */ v(hr, [["render", fr]]), gr = {
3239
+ const gr = /* @__PURE__ */ v(fr, [["render", br]]), yr = {
3232
3240
  name: "Symbol",
3233
3241
  noWrap: !0,
3234
3242
  static: !0,
@@ -3305,7 +3313,7 @@ const br = /* @__PURE__ */ v(hr, [["render", fr]]), gr = {
3305
3313
  text: "New tab content "
3306
3314
  }
3307
3315
  }
3308
- }, yr = {
3316
+ }, vr = {
3309
3317
  name: "Builder: Tabs",
3310
3318
  inputs: [{
3311
3319
  name: "tabs",
@@ -3408,9 +3416,9 @@ const br = /* @__PURE__ */ v(hr, [["render", fr]]), gr = {
3408
3416
  builderComponents: !0,
3409
3417
  builderLinkComponent: !0
3410
3418
  }
3411
- }, vr = y({
3419
+ }, Sr = y({
3412
3420
  name: "builder-tabs",
3413
- components: { Blocks: j },
3421
+ components: { Blocks: q },
3414
3422
  props: [
3415
3423
  "defaultActiveTab",
3416
3424
  "tabs",
@@ -3433,28 +3441,28 @@ const br = /* @__PURE__ */ v(hr, [["render", fr]]), gr = {
3433
3441
  e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
3434
3442
  }
3435
3443
  }
3436
- }), kr = ["onClick"], Sr = { key: 0 };
3437
- function Cr(e, t, n, o, r, s) {
3438
- const i = S("Blocks");
3439
- return c(), m("div", null, [
3440
- K("div", {
3444
+ }), kr = ["onClick"], Cr = { key: 0 };
3445
+ function Tr(e, t, n, o, r, s) {
3446
+ const i = k("Blocks");
3447
+ return d(), h("div", null, [
3448
+ z("div", {
3441
3449
  class: "builder-tabs-wrap",
3442
- style: H({
3450
+ style: j({
3443
3451
  display: "flex",
3444
3452
  flexDirection: "row",
3445
3453
  justifyContent: e.tabHeaderLayout || "flex-start",
3446
3454
  overflow: "auto"
3447
3455
  })
3448
3456
  }, [
3449
- (c(!0), m(I, null, U(e.tabs, (a, l) => (c(), m("span", {
3457
+ (d(!0), h(I, null, L(e.tabs, (a, l) => (d(), h("span", {
3450
3458
  key: l,
3451
- class: Z(`builder-tab-wrap ${e.activeTab === l ? "builder-tab-active" : ""}`),
3452
- style: H({
3459
+ class: ee(`builder-tab-wrap ${e.activeTab === l ? "builder-tab-active" : ""}`),
3460
+ style: j({
3453
3461
  ...e.activeTab === l ? e.activeTabStyle : {}
3454
3462
  }),
3455
3463
  onClick: async (u) => e.onClick(l)
3456
3464
  }, [
3457
- $(i, {
3465
+ E(i, {
3458
3466
  parent: e.builderBlock.id,
3459
3467
  path: `tabs.${l}.label`,
3460
3468
  blocks: a.label,
@@ -3464,8 +3472,8 @@ function Cr(e, t, n, o, r, s) {
3464
3472
  }, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
3465
3473
  ], 14, kr))), 128))
3466
3474
  ], 4),
3467
- e.activeTabContent(e.activeTab) ? (c(), m("div", Sr, [
3468
- $(i, {
3475
+ e.activeTabContent(e.activeTab) ? (d(), h("div", Cr, [
3476
+ E(i, {
3469
3477
  parent: e.builderBlock.id,
3470
3478
  path: `tabs.${e.activeTab}.content`,
3471
3479
  blocks: e.activeTabContent(e.activeTab),
@@ -3476,7 +3484,7 @@ function Cr(e, t, n, o, r, s) {
3476
3484
  ])) : C("", !0)
3477
3485
  ]);
3478
3486
  }
3479
- const Tr = /* @__PURE__ */ v(vr, [["render", Cr]]), Ir = {
3487
+ const Ir = /* @__PURE__ */ v(Sr, [["render", Tr]]), wr = {
3480
3488
  shouldReceiveBuilderProps: {},
3481
3489
  name: "Text",
3482
3490
  static: !0,
@@ -3495,21 +3503,21 @@ const Tr = /* @__PURE__ */ v(vr, [["render", Cr]]), Ir = {
3495
3503
  height: "auto",
3496
3504
  textAlign: "center"
3497
3505
  }
3498
- }, wr = y({
3506
+ }, $r = y({
3499
3507
  name: "builder-text",
3500
3508
  props: ["text"]
3501
- }), $r = ["innerHTML"];
3502
- function Rr(e, t, n, o, r, s) {
3509
+ }), Rr = ["innerHTML"];
3510
+ function Er(e, t, n, o, r, s) {
3503
3511
  var i;
3504
- return c(), m("div", {
3512
+ return d(), h("div", {
3505
3513
  class: "builder-text",
3506
3514
  innerHTML: ((i = e.text) == null ? void 0 : i.toString()) || "",
3507
3515
  style: {
3508
3516
  outline: "none"
3509
3517
  }
3510
- }, null, 8, $r);
3518
+ }, null, 8, Rr);
3511
3519
  }
3512
- const Er = /* @__PURE__ */ v(wr, [["render", Rr]]), Pr = {
3520
+ const Pr = /* @__PURE__ */ v($r, [["render", Er]]), Ar = {
3513
3521
  name: "Custom Code",
3514
3522
  static: !0,
3515
3523
  requiredPermissions: ["editCode"],
@@ -3531,7 +3539,7 @@ const Er = /* @__PURE__ */ v(wr, [["render", Rr]]), Pr = {
3531
3539
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
3532
3540
  advanced: !0
3533
3541
  }]
3534
- }, Ar = y({
3542
+ }, Br = y({
3535
3543
  name: "builder-custom-code",
3536
3544
  props: ["code", "replaceNodes"],
3537
3545
  data() {
@@ -3581,7 +3589,7 @@ const Er = /* @__PURE__ */ v(wr, [["render", Rr]]), Pr = {
3581
3589
  try {
3582
3590
  this.scriptsRun.push(o.innerText), new Function(o.innerText)();
3583
3591
  } catch (r) {
3584
- V.warn(
3592
+ N.warn(
3585
3593
  "[BUILDER.IO] `CustomCode`: Error running script:",
3586
3594
  r
3587
3595
  );
@@ -3590,15 +3598,15 @@ const Er = /* @__PURE__ */ v(wr, [["render", Rr]]), Pr = {
3590
3598
  }
3591
3599
  }
3592
3600
  }
3593
- }), Br = ["innerHTML"];
3594
- function Vr(e, t, n, o, r, s) {
3595
- return c(), m("div", {
3601
+ }), Vr = ["innerHTML"];
3602
+ function Nr(e, t, n, o, r, s) {
3603
+ return d(), h("div", {
3596
3604
  ref: "elementRef",
3597
- class: Z("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
3605
+ class: ee("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
3598
3606
  innerHTML: e.code
3599
- }, null, 10, Br);
3607
+ }, null, 10, Vr);
3600
3608
  }
3601
- const Nr = /* @__PURE__ */ v(Ar, [["render", Vr]]), Wr = {
3609
+ const Wr = /* @__PURE__ */ v(Br, [["render", Nr]]), xr = {
3602
3610
  name: "Embed",
3603
3611
  static: !0,
3604
3612
  inputs: [{
@@ -3613,7 +3621,7 @@ const Nr = /* @__PURE__ */ v(Ar, [["render", Vr]]), Wr = {
3613
3621
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
3614
3622
  hideFromUI: !0
3615
3623
  }]
3616
- }, xr = ["text/javascript", "application/javascript", "application/ecmascript"], Dr = (e) => xr.includes(e.type), Or = y({
3624
+ }, Dr = ["text/javascript", "application/javascript", "application/ecmascript"], Or = (e) => Dr.includes(e.type), Ur = y({
3617
3625
  name: "builder-embed",
3618
3626
  props: ["content"],
3619
3627
  data() {
@@ -3646,24 +3654,24 @@ const Nr = /* @__PURE__ */ v(Ar, [["render", Vr]]), Wr = {
3646
3654
  this.scriptsInserted.push(n.src);
3647
3655
  const o = document.createElement("script");
3648
3656
  o.async = !0, o.src = n.src, document.head.appendChild(o);
3649
- } else if (Dr(n) && !this.scriptsRun.includes(n.innerText))
3657
+ } else if (Or(n) && !this.scriptsRun.includes(n.innerText))
3650
3658
  try {
3651
3659
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
3652
3660
  } catch (o) {
3653
- V.warn("[BUILDER.IO] `Embed`: Error running script:", o);
3661
+ N.warn("[BUILDER.IO] `Embed`: Error running script:", o);
3654
3662
  }
3655
3663
  }
3656
3664
  }
3657
3665
  }
3658
- }), Ur = ["innerHTML"];
3659
- function Fr(e, t, n, o, r, s) {
3660
- return c(), m("div", {
3666
+ }), Fr = ["innerHTML"];
3667
+ function Lr(e, t, n, o, r, s) {
3668
+ return d(), h("div", {
3661
3669
  class: "builder-embed",
3662
3670
  ref: "elem",
3663
3671
  innerHTML: e.content
3664
- }, null, 8, Ur);
3672
+ }, null, 8, Fr);
3665
3673
  }
3666
- const Lr = /* @__PURE__ */ v(Or, [["render", Fr]]), Hr = {
3674
+ const Hr = /* @__PURE__ */ v(Ur, [["render", Lr]]), Mr = {
3667
3675
  name: "Form:Form",
3668
3676
  // editableTags: ['builder-form-error']
3669
3677
  defaults: {
@@ -3900,12 +3908,12 @@ const Lr = /* @__PURE__ */ v(Or, [["render", Fr]]), Hr = {
3900
3908
  builderComponents: !0,
3901
3909
  builderLinkComponent: !0
3902
3910
  }
3903
- }, Mr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], jr = () => {
3911
+ }, jr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Kr = () => {
3904
3912
  const e = process.env.NODE_ENV || "production";
3905
- return Mr.includes(e) ? e : "production";
3906
- }, Kr = y({
3913
+ return jr.includes(e) ? e : "production";
3914
+ }, qr = y({
3907
3915
  name: "builder-form-component",
3908
- components: { Blocks: j },
3916
+ components: { Blocks: q },
3909
3917
  props: [
3910
3918
  "builderContext",
3911
3919
  "previewState",
@@ -3931,7 +3939,7 @@ const Lr = /* @__PURE__ */ v(Or, [["render", Fr]]), Hr = {
3931
3939
  formState: "unsubmitted",
3932
3940
  responseData: null,
3933
3941
  formErrorMessage: "",
3934
- filterAttrs: N
3942
+ filterAttrs: W
3935
3943
  };
3936
3944
  },
3937
3945
  methods: {
@@ -3959,40 +3967,40 @@ const Lr = /* @__PURE__ */ v(Or, [["render", Fr]]), Hr = {
3959
3967
  e.preventDefault();
3960
3968
  const o = e.currentTarget || e.target, r = this.customHeaders || {};
3961
3969
  let s;
3962
- const i = new FormData(o), a = Array.from(o.querySelectorAll("input,select,textarea")).filter((d) => !!d.name).map((d) => {
3963
- let h;
3964
- const b = d.name;
3965
- if (d instanceof HTMLInputElement)
3966
- if (d.type === "radio") {
3967
- if (d.checked)
3968
- return h = d.name, {
3970
+ const i = new FormData(o), a = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).map((c) => {
3971
+ let m;
3972
+ const b = c.name;
3973
+ if (c instanceof HTMLInputElement)
3974
+ if (c.type === "radio") {
3975
+ if (c.checked)
3976
+ return m = c.name, {
3969
3977
  key: b,
3970
- value: h
3978
+ value: m
3971
3979
  };
3972
- } else if (d.type === "checkbox")
3973
- h = d.checked;
3974
- else if (d.type === "number" || d.type === "range") {
3975
- const g = d.valueAsNumber;
3976
- isNaN(g) || (h = g);
3980
+ } else if (c.type === "checkbox")
3981
+ m = c.checked;
3982
+ else if (c.type === "number" || c.type === "range") {
3983
+ const g = c.valueAsNumber;
3984
+ isNaN(g) || (m = g);
3977
3985
  } else
3978
- d.type === "file" ? h = d.files : h = d.value;
3986
+ c.type === "file" ? m = c.files : m = c.value;
3979
3987
  else
3980
- h = d.value;
3988
+ m = c.value;
3981
3989
  return {
3982
3990
  key: b,
3983
- value: h
3991
+ value: m
3984
3992
  };
3985
3993
  });
3986
3994
  let l = this.contentType;
3987
- if (this.sendSubmissionsTo === "email" && (l = "multipart/form-data"), Array.from(a).forEach(({ value: d }) => {
3988
- (d instanceof File || Array.isArray(d) && d[0] instanceof File || d instanceof FileList) && (l = "multipart/form-data");
3995
+ if (this.sendSubmissionsTo === "email" && (l = "multipart/form-data"), Array.from(a).forEach(({ value: c }) => {
3996
+ (c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (l = "multipart/form-data");
3989
3997
  }), l !== "application/json")
3990
3998
  s = i;
3991
3999
  else {
3992
- const d = {};
3993
- Array.from(a).forEach(({ value: h, key: b }) => {
3994
- je(d, b, h);
3995
- }), s = JSON.stringify(d);
4000
+ const c = {};
4001
+ Array.from(a).forEach(({ value: m, key: b }) => {
4002
+ qe(c, b, m);
4003
+ }), s = JSON.stringify(c);
3996
4004
  }
3997
4005
  l && l !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = l));
3998
4006
  const u = new CustomEvent("presubmit", {
@@ -4002,97 +4010,116 @@ const Lr = /* @__PURE__ */ v(Or, [["render", Fr]]), Hr = {
4002
4010
  });
4003
4011
  if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(u), u.defaultPrevented))
4004
4012
  return;
4005
- this.formState = "sending";
4006
- const p = `${jr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
4013
+ if (this.formState = "sending", this.sendSubmissionsTo === "email" && (this.sendSubmissionsToEmail === "your@email.com" || !this.sendSubmissionsToEmail)) {
4014
+ const c = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
4015
+ console.error(c), this.formState = "error", this.mergeNewRootState({
4016
+ formErrorMessage: c
4017
+ });
4018
+ return;
4019
+ }
4020
+ const p = `${Kr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
4007
4021
  this.sendSubmissionsToEmail || ""
4008
4022
  )}&name=${encodeURIComponent(this.name || "")}`, f = this.sendSubmissionsTo === "email" ? p : this.action;
4009
- Ie(f), fetch(f, {
4023
+ we(f), fetch(f, {
4010
4024
  body: s,
4011
4025
  headers: r,
4012
4026
  method: this.method || "post"
4013
4027
  }).then(
4014
- async (d) => {
4015
- let h;
4016
- const b = d.headers.get("content-type");
4017
- if (b && b.indexOf("application/json") !== -1 ? h = await d.json() : h = await d.text(), !d.ok && this.errorMessagePath) {
4018
- let g = ze(h, this.errorMessagePath);
4019
- g && (typeof g != "string" && (g = JSON.stringify(g)), this.formErrorMessage = g, this.mergeNewRootState({
4020
- formErrorMessage: g
4021
- }));
4028
+ async (c) => {
4029
+ var g, A;
4030
+ let m;
4031
+ const b = c.headers.get("content-type");
4032
+ if (b && b.indexOf("application/json") !== -1 ? m = await c.json() : m = await c.text(), !c.ok) {
4033
+ const F = new CustomEvent("submit:error", {
4034
+ detail: {
4035
+ error: m,
4036
+ status: c.status
4037
+ }
4038
+ });
4039
+ if ((g = this.$refs.formRef) != null && g.nativeElement && ((A = this.$refs.formRef) == null || A.nativeElement.dispatchEvent(
4040
+ F
4041
+ ), F.defaultPrevented))
4042
+ return;
4043
+ this.responseData = m, this.formState = "error";
4044
+ let B = this.errorMessagePath ? Je(m, this.errorMessagePath) : m.message || m.error || m;
4045
+ typeof B != "string" && (B = JSON.stringify(B)), this.formErrorMessage = B, this.mergeNewRootState({
4046
+ formErrorMessage: B
4047
+ });
4048
+ return;
4022
4049
  }
4023
- if (this.responseData = h, this.formState = d.ok ? "success" : "error", d.ok) {
4024
- const g = new CustomEvent("submit:success", {
4050
+ if (this.responseData = m, this.formState = c.ok ? "success" : "error", c.ok) {
4051
+ const F = new CustomEvent("submit:success", {
4025
4052
  detail: {
4026
- res: d,
4027
- body: h
4053
+ res: c,
4054
+ body: m
4028
4055
  }
4029
4056
  });
4030
4057
  if (this.$refs.formRef) {
4031
- if (this.$refs.formRef.dispatchEvent(g), g.defaultPrevented)
4058
+ if (this.$refs.formRef.dispatchEvent(F), F.defaultPrevented)
4032
4059
  return;
4033
4060
  this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
4034
4061
  }
4035
4062
  if (this.successUrl)
4036
4063
  if (this.$refs.formRef) {
4037
- const A = new CustomEvent("route", {
4064
+ const B = new CustomEvent("route", {
4038
4065
  detail: {
4039
4066
  url: this.successUrl
4040
4067
  }
4041
4068
  });
4042
- this.$refs.formRef.dispatchEvent(A), A.defaultPrevented || (location.href = this.successUrl);
4069
+ this.$refs.formRef.dispatchEvent(B), B.defaultPrevented || (location.href = this.successUrl);
4043
4070
  } else
4044
4071
  location.href = this.successUrl;
4045
4072
  }
4046
4073
  },
4047
- (d) => {
4048
- const h = new CustomEvent("submit:error", {
4074
+ (c) => {
4075
+ const m = new CustomEvent("submit:error", {
4049
4076
  detail: {
4050
- error: d
4077
+ error: c
4051
4078
  }
4052
4079
  });
4053
- this.$refs.formRef && (this.$refs.formRef.dispatchEvent(h), h.defaultPrevented) || (this.responseData = d, this.formState = "error");
4080
+ this.$refs.formRef && (this.$refs.formRef.dispatchEvent(m), m.defaultPrevented) || (this.responseData = c, this.formState = "error");
4054
4081
  }
4055
4082
  );
4056
4083
  }
4057
4084
  }
4058
4085
  }
4059
- }), qr = ["validate", "action", "method", "name"], zr = {
4086
+ }), zr = ["validate", "action", "method", "name"], Gr = {
4060
4087
  key: 2,
4061
4088
  class: "builder-form-error-text pre-1hjwvu3r5mj"
4062
4089
  };
4063
- function Gr(e, t, n, o, r, s) {
4064
- const i = S("Blocks");
4065
- return c(), m("form", w({
4090
+ function Jr(e, t, n, o, r, s) {
4091
+ const i = k("Blocks");
4092
+ return d(), h("form", w({
4066
4093
  validate: e.validate,
4067
4094
  ref: "formRef",
4068
4095
  action: !e.sendWithJs && e.action,
4069
4096
  method: e.method,
4070
4097
  name: e.name,
4071
4098
  onSubmit: t[0] || (t[0] = async (a) => e.onSubmit(a))
4072
- }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, D(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4073
- B(e.$slots, "default", {}, void 0, !0),
4074
- e.submissionState() === "error" ? (c(), k(i, {
4099
+ }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4100
+ V(e.$slots, "default", {}, void 0, !0),
4101
+ e.submissionState() === "error" ? (d(), S(i, {
4075
4102
  key: 0,
4076
4103
  path: "errorMessage",
4077
4104
  blocks: e.errorMessage,
4078
4105
  context: e.builderContext
4079
4106
  }, null, 8, ["blocks", "context"])) : C("", !0),
4080
- e.submissionState() === "sending" ? (c(), k(i, {
4107
+ e.submissionState() === "sending" ? (d(), S(i, {
4081
4108
  key: 1,
4082
4109
  path: "sendingMessage",
4083
4110
  blocks: e.sendingMessage,
4084
4111
  context: e.builderContext
4085
4112
  }, null, 8, ["blocks", "context"])) : C("", !0),
4086
- e.submissionState() === "error" && e.responseData ? (c(), m("pre", zr, le(JSON.stringify(e.responseData, null, 2)), 1)) : C("", !0),
4087
- e.submissionState() === "success" ? (c(), k(i, {
4113
+ e.submissionState() === "error" && e.responseData ? (d(), h("pre", Gr, le(JSON.stringify(e.responseData, null, 2)), 1)) : C("", !0),
4114
+ e.submissionState() === "success" ? (d(), S(i, {
4088
4115
  key: 3,
4089
4116
  path: "successMessage",
4090
4117
  blocks: e.successMessage,
4091
4118
  context: e.builderContext
4092
4119
  }, null, 8, ["blocks", "context"])) : C("", !0)
4093
- ], 16, qr);
4120
+ ], 16, zr);
4094
4121
  }
4095
- const Jr = /* @__PURE__ */ v(Kr, [["render", Gr], ["__scopeId", "data-v-4ef43cdd"]]), Qr = {
4122
+ const Qr = /* @__PURE__ */ v(qr, [["render", Jr], ["__scopeId", "data-v-89aa89a6"]]), Yr = {
4096
4123
  name: "Form:Input",
4097
4124
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
4098
4125
  inputs: [
@@ -4143,7 +4170,7 @@ const Jr = /* @__PURE__ */ v(Kr, [["render", Gr], ["__scopeId", "data-v-4ef43cdd
4143
4170
  borderStyle: "solid",
4144
4171
  borderColor: "#ccc"
4145
4172
  }
4146
- }, Yr = y({
4173
+ }, Xr = y({
4147
4174
  name: "builder-form-input-component",
4148
4175
  props: [
4149
4176
  "attributes",
@@ -4155,11 +4182,11 @@ const Jr = /* @__PURE__ */ v(Kr, [["render", Gr], ["__scopeId", "data-v-4ef43cdd
4155
4182
  "required"
4156
4183
  ],
4157
4184
  data() {
4158
- return { isEditing: P, filterAttrs: N };
4185
+ return { isEditing: P, filterAttrs: W };
4159
4186
  }
4160
- }), Xr = ["placeholder", "type", "name", "value", "defaultValue", "required"];
4187
+ }), _r = ["placeholder", "type", "name", "value", "defaultValue", "required"];
4161
4188
  function Zr(e, t, n, o, r, s) {
4162
- return c(), m("input", w({
4189
+ return d(), h("input", w({
4163
4190
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
4164
4191
  placeholder: e.placeholder,
4165
4192
  type: e.type,
@@ -4167,9 +4194,9 @@ function Zr(e, t, n, o, r, s) {
4167
4194
  value: e.value,
4168
4195
  defaultValue: e.defaultValue,
4169
4196
  required: e.required
4170
- }, e.filterAttrs(e.attributes, "v-on:", !1), D(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Xr);
4197
+ }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, _r);
4171
4198
  }
4172
- const _r = /* @__PURE__ */ v(Yr, [["render", Zr]]), ei = {
4199
+ const ei = /* @__PURE__ */ v(Xr, [["render", Zr]]), ti = {
4173
4200
  name: "Form:Select",
4174
4201
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
4175
4202
  defaultStyles: {
@@ -4211,28 +4238,28 @@ const _r = /* @__PURE__ */ v(Yr, [["render", Zr]]), ei = {
4211
4238
  }],
4212
4239
  static: !0,
4213
4240
  noWrap: !0
4214
- }, ti = y({
4241
+ }, ni = y({
4215
4242
  name: "builder-select-component",
4216
4243
  props: ["attributes", "value", "defaultValue", "name", "required", "options"],
4217
4244
  data() {
4218
- return { isEditing: P, filterAttrs: N };
4245
+ return { isEditing: P, filterAttrs: W };
4219
4246
  }
4220
- }), ni = ["value", "defaultValue", "name", "required"], oi = ["value"];
4221
- function ri(e, t, n, o, r, s) {
4222
- return c(), m("select", w({
4247
+ }), oi = ["value", "defaultValue", "name", "required"], ri = ["value"];
4248
+ function ii(e, t, n, o, r, s) {
4249
+ return d(), h("select", w({
4223
4250
  value: e.value,
4224
4251
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
4225
4252
  defaultValue: e.defaultValue,
4226
4253
  name: e.name,
4227
4254
  required: e.required
4228
- }, e.filterAttrs(e.attributes, "v-on:", !1), D(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4229
- (c(!0), m(I, null, U(e.options, (i, a) => (c(), m("option", {
4255
+ }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4256
+ (d(!0), h(I, null, L(e.options, (i, a) => (d(), h("option", {
4230
4257
  key: `${i.name}-${a}`,
4231
4258
  value: i.value
4232
- }, le(i.name || i.value), 9, oi))), 128))
4233
- ], 16, ni);
4259
+ }, le(i.name || i.value), 9, ri))), 128))
4260
+ ], 16, oi);
4234
4261
  }
4235
- const ii = /* @__PURE__ */ v(ti, [["render", ri]]), si = {
4262
+ const si = /* @__PURE__ */ v(ni, [["render", ii]]), ai = {
4236
4263
  name: "Form:SubmitButton",
4237
4264
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
4238
4265
  defaultStyles: {
@@ -4257,17 +4284,17 @@ const ii = /* @__PURE__ */ v(ti, [["render", ri]]), si = {
4257
4284
  // that only shows if advanced setting is flipped
4258
4285
  // TODO: defaultChildren
4259
4286
  // canHaveChildren: true,
4260
- }, ai = y({
4287
+ }, li = y({
4261
4288
  name: "builder-submit-button",
4262
4289
  props: ["attributes", "text"],
4263
4290
  data() {
4264
- return { filterAttrs: N };
4291
+ return { filterAttrs: W };
4265
4292
  }
4266
4293
  });
4267
- function li(e, t, n, o, r, s) {
4268
- return c(), m("button", w({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), D(e.filterAttrs(e.attributes, "v-on:", !0), !0)), le(e.text), 17);
4294
+ function ci(e, t, n, o, r, s) {
4295
+ return d(), h("button", w({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), le(e.text), 17);
4269
4296
  }
4270
- const ci = /* @__PURE__ */ v(ai, [["render", li]]), di = {
4297
+ const di = /* @__PURE__ */ v(li, [["render", ci]]), ui = {
4271
4298
  name: "Form:TextArea",
4272
4299
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
4273
4300
  inputs: [{
@@ -4303,7 +4330,7 @@ const ci = /* @__PURE__ */ v(ai, [["render", li]]), di = {
4303
4330
  },
4304
4331
  static: !0,
4305
4332
  noWrap: !0
4306
- }, ui = y({
4333
+ }, pi = y({
4307
4334
  name: "builder-textarea",
4308
4335
  props: [
4309
4336
  "attributes",
@@ -4314,19 +4341,19 @@ const ci = /* @__PURE__ */ v(ai, [["render", li]]), di = {
4314
4341
  "required"
4315
4342
  ],
4316
4343
  data() {
4317
- return { filterAttrs: N };
4344
+ return { filterAttrs: W };
4318
4345
  }
4319
- }), pi = ["placeholder", "name", "value", "defaultValue", "required"];
4320
- function mi(e, t, n, o, r, s) {
4321
- return c(), m("textarea", w({
4346
+ }), mi = ["placeholder", "name", "value", "defaultValue", "required"];
4347
+ function hi(e, t, n, o, r, s) {
4348
+ return d(), h("textarea", w({
4322
4349
  placeholder: e.placeholder,
4323
4350
  name: e.name,
4324
4351
  value: e.value,
4325
4352
  defaultValue: e.defaultValue,
4326
4353
  required: e.required
4327
- }, e.filterAttrs(e.attributes, "v-on:", !1), D(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, pi);
4354
+ }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, mi);
4328
4355
  }
4329
- const hi = /* @__PURE__ */ v(ui, [["render", mi]]), fi = {
4356
+ const fi = /* @__PURE__ */ v(pi, [["render", hi]]), bi = {
4330
4357
  // friendlyName?
4331
4358
  name: "Raw:Img",
4332
4359
  hideFromInsertMenu: !0,
@@ -4335,12 +4362,12 @@ const hi = /* @__PURE__ */ v(ui, [["render", mi]]), fi = {
4335
4362
  name: "image",
4336
4363
  bubble: !0,
4337
4364
  type: "file",
4338
- allowedFileTypes: Pe,
4365
+ allowedFileTypes: Ae,
4339
4366
  required: !0
4340
4367
  }],
4341
4368
  noWrap: !0,
4342
4369
  static: !0
4343
- }, bi = y({
4370
+ }, gi = y({
4344
4371
  name: "builder-img-component",
4345
4372
  props: [
4346
4373
  "backgroundSize",
@@ -4351,11 +4378,11 @@ const hi = /* @__PURE__ */ v(ui, [["render", mi]]), fi = {
4351
4378
  "attributes"
4352
4379
  ],
4353
4380
  data() {
4354
- return { isEditing: P, filterAttrs: N };
4381
+ return { isEditing: P, filterAttrs: W };
4355
4382
  }
4356
- }), gi = ["alt", "src"];
4357
- function yi(e, t, n, o, r, s) {
4358
- return c(), m("img", w({
4383
+ }), yi = ["alt", "src"];
4384
+ function vi(e, t, n, o, r, s) {
4385
+ return d(), h("img", w({
4359
4386
  style: {
4360
4387
  objectFit: e.backgroundSize || "cover",
4361
4388
  objectPosition: e.backgroundPosition || "center"
@@ -4363,9 +4390,9 @@ function yi(e, t, n, o, r, s) {
4363
4390
  key: e.isEditing() && e.imgSrc || "default-key",
4364
4391
  alt: e.altText,
4365
4392
  src: e.imgSrc || e.image
4366
- }, e.filterAttrs(e.attributes, "v-on:", !1), D(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, gi);
4393
+ }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, yi);
4367
4394
  }
4368
- const vi = /* @__PURE__ */ v(bi, [["render", yi]]), ki = {
4395
+ const Si = /* @__PURE__ */ v(gi, [["render", vi]]), ki = {
4369
4396
  name: "Video",
4370
4397
  canHaveChildren: !0,
4371
4398
  defaultStyles: {
@@ -4376,14 +4403,14 @@ const vi = /* @__PURE__ */ v(bi, [["render", yi]]), ki = {
4376
4403
  inputs: [{
4377
4404
  name: "video",
4378
4405
  type: "file",
4379
- allowedFileTypes: sr,
4406
+ allowedFileTypes: ar,
4380
4407
  bubble: !0,
4381
4408
  defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
4382
4409
  required: !0
4383
4410
  }, {
4384
4411
  name: "posterImage",
4385
4412
  type: "file",
4386
- allowedFileTypes: Pe,
4413
+ allowedFileTypes: Ae,
4387
4414
  helperText: "Image to show before the video plays"
4388
4415
  }, {
4389
4416
  name: "autoPlay",
@@ -4449,7 +4476,7 @@ const vi = /* @__PURE__ */ v(bi, [["render", yi]]), ki = {
4449
4476
  shouldReceiveBuilderProps: {
4450
4477
  builderBlock: !0
4451
4478
  }
4452
- }, Si = y({
4479
+ }, Ci = y({
4453
4480
  name: "builder-video",
4454
4481
  props: [
4455
4482
  "lazyLoad",
@@ -4522,16 +4549,16 @@ const vi = /* @__PURE__ */ v(bi, [["render", yi]]), ki = {
4522
4549
  };
4523
4550
  }
4524
4551
  }
4525
- }), Ci = { style: {
4552
+ }), Ti = { style: {
4526
4553
  position: "relative"
4527
- } }, Ti = ["preload", "poster"], Ii = {
4554
+ } }, Ii = ["preload", "poster"], wi = {
4528
4555
  key: 1,
4529
4556
  style: {
4530
4557
  display: "flex",
4531
4558
  flexDirection: "column",
4532
4559
  alignItems: "stretch"
4533
4560
  }
4534
- }, wi = {
4561
+ }, $i = {
4535
4562
  key: 2,
4536
4563
  style: {
4537
4564
  pointerEvents: "none",
@@ -4545,10 +4572,10 @@ const vi = /* @__PURE__ */ v(bi, [["render", yi]]), ki = {
4545
4572
  height: "100%"
4546
4573
  }
4547
4574
  };
4548
- function $i(e, t, n, o, r, s) {
4549
- var i, a, l, u, p, f, d;
4550
- return c(), m("div", Ci, [
4551
- K("video", w({
4575
+ function Ri(e, t, n, o, r, s) {
4576
+ var i, a, l, u, p, f, c;
4577
+ return d(), h("div", Ti, [
4578
+ z("video", w({
4552
4579
  class: "builder-video",
4553
4580
  ref: "videoRef",
4554
4581
  preload: e.lazyLoad ? "none" : e.preload || "metadata",
@@ -4567,7 +4594,7 @@ function $i(e, t, n, o, r, s) {
4567
4594
  },
4568
4595
  poster: e.posterImage
4569
4596
  }, e.spreadProps), [
4570
- K("source", w(
4597
+ z("source", w(
4571
4598
  { type: "video/mp4" },
4572
4599
  e.lazyLoad ? {
4573
4600
  "data-src": e.video
@@ -4575,85 +4602,85 @@ function $i(e, t, n, o, r, s) {
4575
4602
  src: e.video
4576
4603
  }
4577
4604
  ), null, 16)
4578
- ], 16, Ti),
4579
- e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length)) ? (c(), m("div", {
4605
+ ], 16, Ii),
4606
+ e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length)) ? (d(), h("div", {
4580
4607
  key: 0,
4581
- style: H({
4608
+ style: j({
4582
4609
  width: "100%",
4583
4610
  paddingTop: e.aspectRatio * 100 + "%",
4584
4611
  pointerEvents: "none",
4585
4612
  fontSize: "0px"
4586
4613
  })
4587
4614
  }, null, 4)) : C("", !0),
4588
- (p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length && e.fitContent ? (c(), m("div", Ii, [
4589
- B(e.$slots, "default")
4615
+ (p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length && e.fitContent ? (d(), h("div", wi, [
4616
+ V(e.$slots, "default")
4590
4617
  ])) : C("", !0),
4591
- (d = (f = e.builderBlock) == null ? void 0 : f.children) != null && d.length && !e.fitContent ? (c(), m("div", wi, [
4592
- B(e.$slots, "default")
4618
+ (c = (f = e.builderBlock) == null ? void 0 : f.children) != null && c.length && !e.fitContent ? (d(), h("div", $i, [
4619
+ V(e.$slots, "default")
4593
4620
  ])) : C("", !0)
4594
4621
  ]);
4595
4622
  }
4596
- const Ri = /* @__PURE__ */ v(Si, [["render", $i]]), Ei = () => [{
4597
- component: Nr,
4598
- ...Pr
4623
+ const Ei = /* @__PURE__ */ v(Ci, [["render", Ri]]), Pi = () => [{
4624
+ component: Wr,
4625
+ ...Ar
4599
4626
  }, {
4600
- component: Lr,
4601
- ...Wr
4627
+ component: Hr,
4628
+ ...xr
4602
4629
  }, {
4603
- component: Jr,
4604
- ...Hr
4630
+ component: Qr,
4631
+ ...Mr
4605
4632
  }, {
4606
- component: _r,
4607
- ...Qr
4633
+ component: ei,
4634
+ ...Yr
4608
4635
  }, {
4609
- component: ci,
4610
- ...si
4636
+ component: di,
4637
+ ...ai
4611
4638
  }, {
4612
- component: ii,
4613
- ...ei
4639
+ component: si,
4640
+ ...ti
4614
4641
  }, {
4615
- component: hi,
4616
- ...di
4642
+ component: fi,
4643
+ ...ui
4617
4644
  }, {
4618
- component: vi,
4619
- ...fi
4645
+ component: Si,
4646
+ ...bi
4620
4647
  }, {
4621
- component: Ri,
4648
+ component: Ei,
4622
4649
  ...ki
4623
- }], Fe = () => [{
4624
- component: Ht,
4625
- ...or
4626
- }, {
4627
- component: $o,
4650
+ }], He = () => [{
4651
+ component: jt,
4628
4652
  ...rr
4629
4653
  }, {
4630
- component: Po,
4654
+ component: Ro,
4631
4655
  ...ir
4632
4656
  }, {
4633
- component: Oo,
4634
- ...ar
4657
+ component: Ao,
4658
+ ...sr
4635
4659
  }, {
4636
- component: Lo,
4637
- ...pr
4660
+ component: Uo,
4661
+ ...lr
4638
4662
  }, {
4639
- component: br,
4663
+ component: Ho,
4640
4664
  ...mr
4641
4665
  }, {
4642
- component: ps,
4643
- ...gr
4666
+ component: gr,
4667
+ ...hr
4644
4668
  }, {
4645
- component: Er,
4646
- ...Ir
4647
- }, ...vt.includes(E) ? [{
4648
- component: ur,
4649
- ...lr
4650
- }] : [], {
4651
- component: Tr,
4669
+ component: ms,
4652
4670
  ...yr
4653
4671
  }, {
4654
- component: nr,
4655
- ...Xo
4656
- }, ...Ei()], Pi = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
4672
+ component: Pr,
4673
+ ...wr
4674
+ }, ...kt.includes($) ? [{
4675
+ component: pr,
4676
+ ...cr
4677
+ }] : [], {
4678
+ component: Ir,
4679
+ ...vr
4680
+ }, {
4681
+ component: or,
4682
+ ..._o
4683
+ }, ...Pi()], Ai = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
4657
4684
  function getAndSetVariantId() {
4658
4685
  function setCookie(name, value, days) {
4659
4686
  let expires = '';
@@ -4712,7 +4739,7 @@ const Ri = /* @__PURE__ */ v(Si, [["render", $i]]), Ei = () => [{
4712
4739
  }).join('');
4713
4740
  styleEl.innerHTML = newStyleStr;
4714
4741
  }
4715
- }`, Ai = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4742
+ }`, Bi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4716
4743
  if (!navigator.cookieEnabled) {
4717
4744
  return;
4718
4745
  }
@@ -4746,29 +4773,29 @@ const Ri = /* @__PURE__ */ v(Si, [["render", $i]]), Ei = () => [{
4746
4773
  thisScriptEl?.remove();
4747
4774
  }
4748
4775
  return;
4749
- }`, Ct = "builderIoAbTest", Tt = "builderIoRenderContent", re = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4776
+ }`, It = "builderIoAbTest", wt = "builderIoRenderContent", re = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4750
4777
  ...t,
4751
4778
  testVariationId: t.id,
4752
4779
  id: e == null ? void 0 : e.id
4753
- })), Bi = ({
4780
+ })), Vi = ({
4754
4781
  canTrack: e,
4755
4782
  content: t
4756
- }) => !(!(re(t).length > 0) || !e), Vi = (e) => e === "react" || e === "reactNative", Ni = E === "angular", It = Vi(E), Wi = () => `
4757
- window.${Ct} = ${Pi}
4758
- window.${Tt} = ${Ai}
4759
- `, xi = (e, t) => `
4760
- window.${Ct}(
4761
- "${t}",${JSON.stringify(e)}, ${It}, ${Ni}
4762
- )`, Di = ({
4783
+ }) => !(!(re(t).length > 0) || !e), Ni = (e) => e === "react" || e === "reactNative", Wi = $ === "angular", $t = Ni($), xi = () => `
4784
+ window.${It} = ${Ai}
4785
+ window.${wt} = ${Bi}
4786
+ `, Di = (e, t) => `
4787
+ window.${It}(
4788
+ "${t}",${JSON.stringify(e)}, ${$t}, ${Wi}
4789
+ )`, Oi = ({
4763
4790
  contentId: e,
4764
4791
  variationId: t
4765
- }) => `window.${Tt}(
4766
- "${t}", "${e}", ${It}
4792
+ }) => `window.${wt}(
4793
+ "${t}", "${e}", ${$t}
4767
4794
  )`;
4768
- function Le(e) {
4795
+ function Me(e) {
4769
4796
  return Math.round(e * 1e3) / 1e3;
4770
4797
  }
4771
- const Oi = (e, t, n = !0) => {
4798
+ const Ui = (e, t, n = !0) => {
4772
4799
  if (!(e instanceof HTMLElement))
4773
4800
  return null;
4774
4801
  let o = n ? e : e.parentElement;
@@ -4779,35 +4806,35 @@ const Oi = (e, t, n = !0) => {
4779
4806
  return o;
4780
4807
  } while (o = o.parentElement);
4781
4808
  return null;
4782
- }, Ui = (e) => Oi(e, (t) => {
4809
+ }, Fi = (e) => Ui(e, (t) => {
4783
4810
  const n = t.getAttribute("builder-id") || t.id;
4784
4811
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
4785
- }), He = ({
4812
+ }), je = ({
4786
4813
  event: e,
4787
4814
  target: t
4788
4815
  }) => {
4789
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, s = Le(o / n.width), i = Le(r / n.height);
4816
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, s = Me(o / n.width), i = Me(r / n.height);
4790
4817
  return {
4791
4818
  x: s,
4792
4819
  y: i
4793
4820
  };
4794
- }, Fi = (e) => {
4795
- const t = e.target, n = t && Ui(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4821
+ }, Li = (e) => {
4822
+ const t = e.target, n = t && Fi(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4796
4823
  return {
4797
4824
  targetBuilderElement: o || void 0,
4798
4825
  metadata: {
4799
- targetOffset: t ? He({
4826
+ targetOffset: t ? je({
4800
4827
  event: e,
4801
4828
  target: t
4802
4829
  }) : void 0,
4803
- builderTargetOffset: n ? He({
4830
+ builderTargetOffset: n ? je({
4804
4831
  event: e,
4805
4832
  target: n
4806
4833
  }) : void 0,
4807
4834
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
4808
4835
  }
4809
4836
  };
4810
- }, Li = ["svelte", "qwik", "vue"], Hi = () => Li.includes(E) && (P() || Ce()), Mi = (e) => {
4837
+ }, Hi = ["svelte", "qwik", "vue"], Mi = () => Hi.includes($) && (P() || Te()), ji = (e) => {
4811
4838
  var s;
4812
4839
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((s = e == null ? void 0 : e.files) == null ? void 0 : s.regular);
4813
4840
  let r = "";
@@ -4833,15 +4860,15 @@ font-weight: ${i};
4833
4860
  `.trim());
4834
4861
  }
4835
4862
  return r;
4836
- }, ji = ({
4863
+ }, Ki = ({
4837
4864
  customFonts: e
4838
4865
  }) => {
4839
4866
  var t;
4840
- return ((t = e == null ? void 0 : e.map((n) => Mi(n))) == null ? void 0 : t.join(" ")) || "";
4841
- }, Ki = ({
4867
+ return ((t = e == null ? void 0 : e.map((n) => ji(n))) == null ? void 0 : t.join(" ")) || "";
4868
+ }, qi = ({
4842
4869
  cssCode: e,
4843
4870
  contentId: t
4844
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", qi = `
4871
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", zi = `
4845
4872
  .builder-button {
4846
4873
  all: unset;
4847
4874
  }
@@ -4858,9 +4885,9 @@ font-weight: ${i};
4858
4885
  text-align: inherit;
4859
4886
  font-family: inherit;
4860
4887
  }
4861
- `, zi = (e) => e ? "" : qi, Gi = (e) => `variant-${e}`, Ji = y({
4888
+ `, Gi = (e) => e ? "" : zi, Ji = (e) => `variant-${e}`, Qi = y({
4862
4889
  name: "enable-editor",
4863
- components: { DynamicDiv: ee },
4890
+ components: { DynamicDiv: ne },
4864
4891
  props: [
4865
4892
  "isNestedRender",
4866
4893
  "builderContextSignal",
@@ -4886,8 +4913,8 @@ font-weight: ${i};
4886
4913
  httpReqsPending: {},
4887
4914
  clicked: !1,
4888
4915
  builderContext: be,
4889
- needsElementRefDivForEditing: Hi,
4890
- getWrapperClassName: Gi
4916
+ needsElementRefDivForEditing: Mi,
4917
+ getWrapperClassName: Ji
4891
4918
  };
4892
4919
  },
4893
4920
  provide() {
@@ -4905,7 +4932,7 @@ font-weight: ${i};
4905
4932
  P() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4906
4933
  new CustomEvent("initeditingbldr")
4907
4934
  );
4908
- const o = this.builderContextSignal.content && z(this.canTrack), r = ce({
4935
+ const o = this.builderContextSignal.content && J(this.canTrack), r = ce({
4909
4936
  name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
4910
4937
  canTrack: !0
4911
4938
  }), s = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
@@ -4920,7 +4947,7 @@ font-weight: ${i};
4920
4947
  variationId: r !== i ? r : void 0
4921
4948
  });
4922
4949
  }
4923
- Ce() && !P() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4950
+ Te() && !P() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4924
4951
  new CustomEvent("initpreviewingbldr")
4925
4952
  );
4926
4953
  }
@@ -5014,7 +5041,7 @@ font-weight: ${i};
5014
5041
  this.builderContextSignal.content = t;
5015
5042
  },
5016
5043
  processMessage(e) {
5017
- return rt({
5044
+ return st({
5018
5045
  model: this.model,
5019
5046
  trustedHosts: this.trustedHosts,
5020
5047
  callbacks: {
@@ -5028,7 +5055,7 @@ font-weight: ${i};
5028
5055
  });
5029
5056
  },
5030
5057
  animation: (t) => {
5031
- ut(t);
5058
+ mt(t);
5032
5059
  },
5033
5060
  contentUpdate: (t) => {
5034
5061
  this.mergeNewContent(t);
@@ -5046,11 +5073,11 @@ font-weight: ${i};
5046
5073
  ye({
5047
5074
  apiHost: this.apiHost,
5048
5075
  type: "click",
5049
- canTrack: z(this.canTrack),
5076
+ canTrack: J(this.canTrack),
5050
5077
  contentId: r,
5051
5078
  apiKey: this.apiKey,
5052
5079
  variationId: o !== r ? o : void 0,
5053
- ...Fi(e),
5080
+ ...Li(e),
5054
5081
  unique: !this.clicked
5055
5082
  });
5056
5083
  }
@@ -5066,7 +5093,7 @@ font-weight: ${i};
5066
5093
  const s = r.replace(
5067
5094
  /{{([^}]+)}}/g,
5068
5095
  (i, a) => String(
5069
- _({
5096
+ te({
5070
5097
  code: a,
5071
5098
  context: this.context || {},
5072
5099
  localState: void 0,
@@ -5075,7 +5102,7 @@ font-weight: ${i};
5075
5102
  })
5076
5103
  )
5077
5104
  );
5078
- Ie(s), fetch(s).then((i) => i.json()).then((i) => {
5105
+ we(s), fetch(s).then((i) => i.json()).then((i) => {
5079
5106
  this.mergeNewRootState({
5080
5107
  [o]: i
5081
5108
  }), this.httpReqsData[o] = !0;
@@ -5102,7 +5129,7 @@ font-weight: ${i};
5102
5129
  );
5103
5130
  },
5104
5131
  elementRef_onIniteditingbldr(e) {
5105
- window.addEventListener("message", this.processMessage), Rn(), ot({
5132
+ window.addEventListener("message", this.processMessage), Pn(), it({
5106
5133
  ...this.locale ? {
5107
5134
  locale: this.locale
5108
5135
  } : {},
@@ -5119,7 +5146,7 @@ font-weight: ${i};
5119
5146
  ).forEach((t) => {
5120
5147
  var n, o;
5121
5148
  if (!((n = t.models) != null && n.length) || t.models.includes(this.model)) {
5122
- const r = sn(t);
5149
+ const r = ln(t);
5123
5150
  (o = window.parent) == null || o.postMessage(r, "*");
5124
5151
  }
5125
5152
  }), window.addEventListener(
@@ -5132,7 +5159,7 @@ font-weight: ${i};
5132
5159
  const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
5133
5160
  `builder.overrides.${n}`
5134
5161
  ), r = t.get("apiKey") || t.get("builder.space");
5135
- (n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && Re({
5162
+ (n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && Ee({
5136
5163
  model: this.model,
5137
5164
  apiKey: this.apiKey,
5138
5165
  apiVersion: this.builderContextSignal.apiVersion,
@@ -5147,9 +5174,9 @@ font-weight: ${i};
5147
5174
  }
5148
5175
  }
5149
5176
  });
5150
- function Qi(e, t, n, o, r, s) {
5177
+ function Yi(e, t, n, o, r, s) {
5151
5178
  var i, a, l;
5152
- return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (c(), k(Y(e.ContentWrapper), w({
5179
+ return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(_(e.ContentWrapper), w({
5153
5180
  key: 0,
5154
5181
  ref: "elementRef",
5155
5182
  onClick: (u) => e.onClick(u),
@@ -5162,40 +5189,40 @@ function Qi(e, t, n, o, r, s) {
5162
5189
  onIniteditingbldr: (u) => e.elementRef_onIniteditingbldr(u),
5163
5190
  onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
5164
5191
  }, { ...e.showContentProps, ...e.contentWrapperProps }), {
5165
- default: O(() => [
5166
- B(e.$slots, "default")
5192
+ default: U(() => [
5193
+ V(e.$slots, "default")
5167
5194
  ]),
5168
5195
  _: 3
5169
5196
  }, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : C("", !0);
5170
5197
  }
5171
- const Yi = /* @__PURE__ */ v(Ji, [["render", Qi]]), Xi = y({
5198
+ const Xi = /* @__PURE__ */ v(Qi, [["render", Yi]]), _i = y({
5172
5199
  name: "content-styles",
5173
5200
  components: { InlinedStyles: de },
5174
5201
  props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
5175
5202
  data() {
5176
5203
  return {
5177
5204
  injectedStyles: `
5178
- ${Ki({
5205
+ ${qi({
5179
5206
  cssCode: this.cssCode,
5180
5207
  contentId: this.contentId
5181
5208
  })}
5182
- ${ji({
5209
+ ${Ki({
5183
5210
  customFonts: this.customFonts
5184
5211
  })}
5185
- ${zi(this.isNestedRender)}
5212
+ ${Gi(this.isNestedRender)}
5186
5213
  `.trim()
5187
5214
  };
5188
5215
  }
5189
5216
  });
5190
5217
  function Zi(e, t, n, o, r, s) {
5191
- const i = S("InlinedStyles");
5192
- return c(), k(i, {
5218
+ const i = k("InlinedStyles");
5219
+ return d(), S(i, {
5193
5220
  id: "builderio-content",
5194
5221
  styles: e.injectedStyles,
5195
5222
  nonce: e.nonce
5196
5223
  }, null, 8, ["styles", "nonce"]);
5197
5224
  }
5198
- const _i = /* @__PURE__ */ v(Xi, [["render", Zi]]), es = ({
5225
+ const es = /* @__PURE__ */ v(_i, [["render", Zi]]), ts = ({
5199
5226
  content: e,
5200
5227
  data: t,
5201
5228
  locale: n
@@ -5212,7 +5239,7 @@ const _i = /* @__PURE__ */ v(Xi, [["render", Zi]]), es = ({
5212
5239
  locale: n
5213
5240
  } : {}
5214
5241
  };
5215
- }, ts = ({
5242
+ }, ns = ({
5216
5243
  content: e,
5217
5244
  data: t
5218
5245
  }) => e ? {
@@ -5222,14 +5249,14 @@ const _i = /* @__PURE__ */ v(Xi, [["render", Zi]]), es = ({
5222
5249
  ...t
5223
5250
  },
5224
5251
  meta: e == null ? void 0 : e.meta
5225
- } : void 0, ns = $t, os = y({
5252
+ } : void 0, os = Et, rs = y({
5226
5253
  name: "content-component",
5227
5254
  components: {
5228
- EnableEditor: Yi,
5229
- InlinedScript: Ae,
5230
- ContentStyles: _i,
5231
- Blocks: j,
5232
- DynamicDiv: ee
5255
+ EnableEditor: Xi,
5256
+ InlinedScript: Be,
5257
+ ContentStyles: es,
5258
+ Blocks: q,
5259
+ DynamicDiv: ne
5233
5260
  },
5234
5261
  props: [
5235
5262
  "apiKey",
@@ -5257,32 +5284,32 @@ const _i = /* @__PURE__ */ v(Xi, [["render", Zi]]), es = ({
5257
5284
  data() {
5258
5285
  var e, t;
5259
5286
  return {
5260
- scriptStr: Di({
5287
+ scriptStr: Oi({
5261
5288
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
5262
5289
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
5263
5290
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
5264
5291
  contentId: (t = this.content) == null ? void 0 : t.id
5265
5292
  }),
5266
5293
  registeredComponents: [
5267
- ...Fe(),
5294
+ ...He(),
5268
5295
  ...this.customComponents || []
5269
5296
  ].reduce(
5270
5297
  (n, { component: o, ...r }) => ({
5271
5298
  ...n,
5272
5299
  [r.name]: {
5273
- component: ns(o),
5300
+ component: os(o),
5274
5301
  ...se(r)
5275
5302
  }
5276
5303
  }),
5277
5304
  {}
5278
5305
  ),
5279
5306
  builderContextSignal: {
5280
- content: ts({
5307
+ content: ns({
5281
5308
  content: this.content,
5282
5309
  data: this.data
5283
5310
  }),
5284
5311
  localState: void 0,
5285
- rootState: es({
5312
+ rootState: ts({
5286
5313
  content: this.content,
5287
5314
  data: this.data,
5288
5315
  locale: this.locale
@@ -5293,7 +5320,7 @@ const _i = /* @__PURE__ */ v(Xi, [["render", Zi]]), es = ({
5293
5320
  apiKey: this.apiKey,
5294
5321
  apiVersion: this.apiVersion,
5295
5322
  componentInfos: [
5296
- ...Fe(),
5323
+ ...He(),
5297
5324
  ...this.customComponents || []
5298
5325
  ].reduce(
5299
5326
  (n, { component: o, ...r }) => ({
@@ -5308,24 +5335,24 @@ const _i = /* @__PURE__ */ v(Xi, [["render", Zi]]), es = ({
5308
5335
  nonce: this.nonce || "",
5309
5336
  model: this.model
5310
5337
  },
5311
- TARGET: E
5338
+ TARGET: $
5312
5339
  };
5313
5340
  },
5314
5341
  provide() {
5315
5342
  const e = this;
5316
5343
  return {
5317
- [qe.key]: {
5344
+ [Ge.key]: {
5318
5345
  registeredComponents: e.registeredComponents
5319
5346
  }
5320
5347
  };
5321
5348
  },
5322
5349
  created() {
5323
5350
  var t, n;
5324
- this.apiKey || V.error(
5351
+ this.apiKey || N.error(
5325
5352
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
5326
5353
  );
5327
5354
  const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
5328
- e && _({
5355
+ e && te({
5329
5356
  code: e,
5330
5357
  context: this.context || {},
5331
5358
  localState: void 0,
@@ -5342,9 +5369,9 @@ const _i = /* @__PURE__ */ v(Xi, [["render", Zi]]), es = ({
5342
5369
  }
5343
5370
  }
5344
5371
  });
5345
- function rs(e, t, n, o, r, s) {
5346
- const i = S("InlinedScript"), a = S("ContentStyles"), l = S("Blocks"), u = S("EnableEditor");
5347
- return c(), k(u, w({
5372
+ function is(e, t, n, o, r, s) {
5373
+ const i = k("InlinedScript"), a = k("ContentStyles"), l = k("Blocks"), u = k("EnableEditor");
5374
+ return d(), S(u, w({
5348
5375
  apiHost: e.apiHost,
5349
5376
  nonce: e.nonce,
5350
5377
  content: e.content,
@@ -5362,24 +5389,24 @@ function rs(e, t, n, o, r, s) {
5362
5389
  trustedHosts: e.trustedHosts,
5363
5390
  isNestedRender: e.isNestedRender
5364
5391
  }, {}), {
5365
- default: O(() => {
5366
- var p, f, d, h, b, g, A;
5392
+ default: U(() => {
5393
+ var p, f, c, m, b, g, A;
5367
5394
  return [
5368
- e.isSsrAbTest ? (c(), k(i, {
5395
+ e.isSsrAbTest ? (d(), S(i, {
5369
5396
  key: 0,
5370
5397
  id: "builderio-variant-visibility",
5371
5398
  scriptStr: e.scriptStr,
5372
5399
  nonce: e.nonce || ""
5373
5400
  }, null, 8, ["scriptStr", "nonce"])) : C("", !0),
5374
- e.TARGET !== "reactNative" ? (c(), k(a, {
5401
+ e.TARGET !== "reactNative" ? (d(), S(a, {
5375
5402
  key: 1,
5376
5403
  nonce: e.nonce || "",
5377
5404
  isNestedRender: e.isNestedRender,
5378
5405
  contentId: (p = e.builderContextSignal.content) == null ? void 0 : p.id,
5379
- cssCode: (d = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : d.cssCode,
5380
- customFonts: (b = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : b.customFonts
5406
+ cssCode: (c = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : c.cssCode,
5407
+ customFonts: (b = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : b.customFonts
5381
5408
  }, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : C("", !0),
5382
- $(l, {
5409
+ E(l, {
5383
5410
  blocks: (A = (g = e.builderContextSignal.content) == null ? void 0 : g.data) == null ? void 0 : A.blocks,
5384
5411
  context: e.builderContextSignal,
5385
5412
  registeredComponents: e.registeredComponents,
@@ -5390,12 +5417,12 @@ function rs(e, t, n, o, r, s) {
5390
5417
  _: 1
5391
5418
  }, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
5392
5419
  }
5393
- const is = /* @__PURE__ */ v(os, [["render", rs]]), ss = y({
5420
+ const ss = /* @__PURE__ */ v(rs, [["render", is]]), as = y({
5394
5421
  name: "content-variants",
5395
5422
  components: {
5396
- InlinedScript: Ae,
5423
+ InlinedScript: Be,
5397
5424
  InlinedStyles: de,
5398
- ContentComponent: is
5425
+ ContentComponent: ss
5399
5426
  },
5400
5427
  props: [
5401
5428
  "canTrack",
@@ -5420,14 +5447,14 @@ const is = /* @__PURE__ */ v(os, [["render", rs]]), ss = y({
5420
5447
  ],
5421
5448
  data() {
5422
5449
  return {
5423
- shouldRenderVariants: Bi({
5424
- canTrack: z(this.canTrack),
5450
+ shouldRenderVariants: Vi({
5451
+ canTrack: J(this.canTrack),
5425
5452
  content: this.content
5426
5453
  }),
5427
- SDKS_SUPPORTING_PERSONALIZATION: vt,
5428
- getInitPersonalizationVariantsFnsScriptString: Jo,
5429
- TARGET: E,
5430
- getInitVariantsFnsScriptString: Wi,
5454
+ SDKS_SUPPORTING_PERSONALIZATION: kt,
5455
+ getInitPersonalizationVariantsFnsScriptString: Qo,
5456
+ TARGET: $,
5457
+ getInitVariantsFnsScriptString: xi,
5431
5458
  getVariants: re
5432
5459
  };
5433
5460
  },
@@ -5436,7 +5463,7 @@ const is = /* @__PURE__ */ v(os, [["render", rs]]), ss = y({
5436
5463
  computed: {
5437
5464
  updateCookieAndStylesScriptStr() {
5438
5465
  var e;
5439
- return xi(
5466
+ return Di(
5440
5467
  re(this.content).map((t) => ({
5441
5468
  id: t.testVariationId,
5442
5469
  testRatio: t.testRatio
@@ -5452,41 +5479,41 @@ const is = /* @__PURE__ */ v(os, [["render", rs]]), ss = y({
5452
5479
  return this.shouldRenderVariants ? {
5453
5480
  ...this.content,
5454
5481
  testVariationId: (e = this.content) == null ? void 0 : e.id
5455
- } : Nn({
5482
+ } : xn({
5456
5483
  item: this.content,
5457
- canTrack: z(this.canTrack)
5484
+ canTrack: J(this.canTrack)
5458
5485
  });
5459
5486
  }
5460
5487
  }
5461
5488
  });
5462
- function as(e, t, n, o, r, s) {
5463
- const i = S("InlinedScript"), a = S("InlinedStyles"), l = S("ContentComponent");
5464
- return c(), m(I, null, [
5465
- !e.isNestedRender && e.TARGET !== "reactNative" ? (c(), m(I, { key: 0 }, [
5466
- $(i, {
5489
+ function ls(e, t, n, o, r, s) {
5490
+ const i = k("InlinedScript"), a = k("InlinedStyles"), l = k("ContentComponent");
5491
+ return d(), h(I, null, [
5492
+ !e.isNestedRender && e.TARGET !== "reactNative" ? (d(), h(I, { key: 0 }, [
5493
+ E(i, {
5467
5494
  id: "builderio-init-variants-fns",
5468
5495
  scriptStr: e.getInitVariantsFnsScriptString(),
5469
5496
  nonce: e.nonce || ""
5470
5497
  }, null, 8, ["scriptStr", "nonce"]),
5471
- e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (c(), k(i, {
5498
+ e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (d(), S(i, {
5472
5499
  key: 0,
5473
5500
  id: "builderio-init-personalization-variants-fns",
5474
5501
  nonce: e.nonce || "",
5475
5502
  scriptStr: e.getInitPersonalizationVariantsFnsScriptString()
5476
5503
  }, null, 8, ["nonce", "scriptStr"])) : C("", !0)
5477
5504
  ], 64)) : C("", !0),
5478
- e.shouldRenderVariants ? (c(), m(I, { key: 1 }, [
5479
- $(a, {
5505
+ e.shouldRenderVariants ? (d(), h(I, { key: 1 }, [
5506
+ E(a, {
5480
5507
  id: "builderio-variants",
5481
5508
  styles: e.hideVariantsStyleString,
5482
5509
  nonce: e.nonce || ""
5483
5510
  }, null, 8, ["styles", "nonce"]),
5484
- $(i, {
5511
+ E(i, {
5485
5512
  id: "builderio-variants-visibility",
5486
5513
  scriptStr: e.updateCookieAndStylesScriptStr,
5487
5514
  nonce: e.nonce || ""
5488
5515
  }, null, 8, ["scriptStr", "nonce"]),
5489
- (c(!0), m(I, null, U(e.getVariants(e.content), (u, p) => (c(), k(l, w({
5516
+ (d(!0), h(I, null, L(e.getVariants(e.content), (u, p) => (d(), S(l, w({
5490
5517
  key: u.testVariationId,
5491
5518
  apiHost: e.apiHost,
5492
5519
  isNestedRender: e.isNestedRender,
@@ -5511,7 +5538,7 @@ function as(e, t, n, o, r, s) {
5511
5538
  trustedHosts: e.trustedHosts
5512
5539
  }, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
5513
5540
  ], 64)) : C("", !0),
5514
- $(l, w({
5541
+ E(l, w({
5515
5542
  apiHost: e.apiHost,
5516
5543
  nonce: e.nonce,
5517
5544
  isNestedRender: e.isNestedRender,
@@ -5538,13 +5565,13 @@ function as(e, t, n, o, r, s) {
5538
5565
  }), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
5539
5566
  ], 64);
5540
5567
  }
5541
- const ls = /* @__PURE__ */ v(ss, [["render", as]]), cs = async ({
5568
+ const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = async ({
5542
5569
  builderContextValue: e,
5543
5570
  symbol: t
5544
5571
  }) => {
5545
5572
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
5546
5573
  (e != null && e.apiKey))
5547
- return Re({
5574
+ return Ee({
5548
5575
  model: t.model,
5549
5576
  apiKey: e.apiKey,
5550
5577
  apiVersion: e.apiVersion,
@@ -5554,11 +5581,11 @@ const ls = /* @__PURE__ */ v(ss, [["render", as]]), cs = async ({
5554
5581
  }
5555
5582
  }
5556
5583
  }).catch((n) => {
5557
- V.error("Could not fetch symbol content: ", n);
5584
+ N.error("Could not fetch symbol content: ", n);
5558
5585
  });
5559
- }, ds = y({
5586
+ }, us = y({
5560
5587
  name: "builder-symbol",
5561
- components: { ContentVariants: ls, DynamicDiv: ee },
5588
+ components: { ContentVariants: cs, DynamicDiv: ne },
5562
5589
  props: [
5563
5590
  "symbol",
5564
5591
  "attributes",
@@ -5573,7 +5600,7 @@ const ls = /* @__PURE__ */ v(ss, [["render", as]]), cs = async ({
5573
5600
  return {
5574
5601
  contentToUse: (e = this.symbol) == null ? void 0 : e.content,
5575
5602
  symbolEntry: (t = this.symbol) == null ? void 0 : t.entry,
5576
- filterAttrs: N
5603
+ filterAttrs: W
5577
5604
  };
5578
5605
  },
5579
5606
  mounted() {
@@ -5597,7 +5624,7 @@ const ls = /* @__PURE__ */ v(ss, [["render", as]]), cs = async ({
5597
5624
  className() {
5598
5625
  var e, t;
5599
5626
  return [
5600
- this.attributes[q()],
5627
+ this.attributes[G()],
5601
5628
  "builder-symbol",
5602
5629
  (e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
5603
5630
  (t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
@@ -5612,7 +5639,7 @@ const ls = /* @__PURE__ */ v(ss, [["render", as]]), cs = async ({
5612
5639
  methods: {
5613
5640
  setContent() {
5614
5641
  var e;
5615
- this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || cs({
5642
+ this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || ds({
5616
5643
  symbol: this.symbol,
5617
5644
  builderContextValue: this.builderContext
5618
5645
  }).then((t) => {
@@ -5622,11 +5649,11 @@ const ls = /* @__PURE__ */ v(ss, [["render", as]]), cs = async ({
5622
5649
  }
5623
5650
  }
5624
5651
  });
5625
- function us(e, t, n, o, r, s) {
5652
+ function ps(e, t, n, o, r, s) {
5626
5653
  var a, l, u, p, f;
5627
- const i = S("ContentVariants");
5628
- return c(), m("div", w({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, D(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
5629
- $(i, {
5654
+ const i = k("ContentVariants");
5655
+ return d(), h("div", w({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
5656
+ E(i, {
5630
5657
  nonce: e.builderContext.nonce,
5631
5658
  isNestedRender: !0,
5632
5659
  apiVersion: e.builderContext.apiVersion,
@@ -5650,42 +5677,42 @@ function us(e, t, n, o, r, s) {
5650
5677
  }, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
5651
5678
  ], 16);
5652
5679
  }
5653
- const ps = /* @__PURE__ */ v(ds, [["render", us]]);
5680
+ const ms = /* @__PURE__ */ v(us, [["render", ps]]);
5654
5681
  export {
5655
- fs as A,
5656
- ft as B,
5657
- $o as C,
5658
- Ts as D,
5659
- Po as F,
5660
- Oo as I,
5661
- Lo as S,
5662
- Er as T,
5663
- Ri as V,
5682
+ bs as A,
5683
+ gt as B,
5684
+ Ro as C,
5685
+ Is as D,
5686
+ Ao as F,
5687
+ Uo as I,
5688
+ Ho as S,
5689
+ Pr as T,
5690
+ Ei as V,
5664
5691
  de as _,
5665
- Is as a,
5666
- Ee as b,
5667
- Ss as c,
5692
+ ws as a,
5693
+ Pe as b,
5694
+ Cs as c,
5668
5695
  v as d,
5669
- _ as e,
5670
- Cs as f,
5671
- Co as g,
5672
- q as h,
5696
+ te as e,
5697
+ Ts as f,
5698
+ To as g,
5699
+ G as h,
5673
5700
  be as i,
5674
- Ht as j,
5675
- ps as k,
5676
- j as l,
5677
- ls as m,
5678
- Ce as n,
5679
- sn as o,
5680
- bs as p,
5681
- Je as q,
5682
- ln as r,
5683
- vs as s,
5684
- gs as t,
5685
- ys as u,
5701
+ jt as j,
5702
+ ms as k,
5703
+ q as l,
5704
+ cs as m,
5705
+ Te as n,
5706
+ ln as o,
5707
+ gs as p,
5708
+ Ye as q,
5709
+ dn as r,
5710
+ Ss as s,
5711
+ ys as t,
5712
+ vs as u,
5686
5713
  ks as v,
5687
- ns as w,
5688
- qn as x,
5689
- zn as y,
5690
- Re as z
5714
+ os as w,
5715
+ zn as x,
5716
+ Gn as y,
5717
+ Ee as z
5691
5718
  };