@builder.io/sdk-vue 2.0.29 → 2.0.30

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 (58) hide show
  1. package/lib/browser/{awaiter-oyEV6qzA.cjs → awaiter-G8SRGpZq.cjs} +1 -1
  2. package/lib/browser/{awaiter-26Xj_ukf.js → awaiter-t_FyHypk.js} +1 -1
  3. package/lib/browser/{block-styles-7VlstMIR.cjs → block-styles-OnuFq-oN.cjs} +1 -1
  4. package/lib/browser/{block-styles-sDAdmEJM.js → block-styles-QdL_P0Fx.js} +1 -1
  5. package/lib/browser/{block-wrapper-xFO-VLSm.js → block-wrapper-7IkLgp7x.js} +3 -3
  6. package/lib/browser/{block-wrapper-z8m7HQL5.cjs → block-wrapper-fBAL9K2u.cjs} +1 -1
  7. package/lib/browser/{component-ref-cAtD4rXw.cjs → component-ref-L--Mvtc5.cjs} +1 -1
  8. package/lib/browser/{component-ref-SgAsKv83.js → component-ref-llprrwE2.js} +3 -3
  9. package/lib/browser/constants/sdk-version.d.ts +1 -1
  10. package/lib/browser/functions/log-fetch.d.ts +1 -0
  11. package/lib/browser/{get-block-properties-7e6u_eA1.js → get-block-properties-C3Bt0aVR.js} +1 -1
  12. package/lib/browser/{get-block-properties-fBjkRbVw.cjs → get-block-properties-GiTnRRbK.cjs} +1 -1
  13. package/lib/browser/{index-6aZwZO3-.cjs → index-2PyFlZUC.cjs} +22 -22
  14. package/lib/browser/{index-kI_vPJeb.js → index-vt9k3TV3.js} +834 -829
  15. package/lib/browser/index.cjs +1 -1
  16. package/lib/browser/index.mjs +1 -1
  17. package/lib/browser/{repeated-block-uIkcGKQC.cjs → repeated-block-8thLK-kw.cjs} +1 -1
  18. package/lib/browser/{repeated-block-iaodALqW.js → repeated-block-dHROvYhN.js} +2 -2
  19. package/lib/browser/style.css +1 -1
  20. package/lib/edge/{awaiter-48RvRkNd.cjs → awaiter-GC2xTC8Y.cjs} +1 -1
  21. package/lib/edge/{awaiter-Q7B7gBgW.js → awaiter-xMGfwYjm.js} +1 -1
  22. package/lib/edge/{block-styles-XIg11tMX.cjs → block-styles-MQ6F-wJx.cjs} +1 -1
  23. package/lib/edge/{block-styles-9MQCNPvC.js → block-styles-lnpdX6V-.js} +1 -1
  24. package/lib/edge/{block-wrapper-e7g10ccQ.js → block-wrapper-OjYnBNwz.js} +3 -3
  25. package/lib/edge/{block-wrapper-tsLeR9cJ.cjs → block-wrapper-aixvpDaD.cjs} +1 -1
  26. package/lib/edge/{component-ref-RDssOT9Y.js → component-ref-UF81PmzX.js} +3 -3
  27. package/lib/edge/{component-ref-HqIppl2q.cjs → component-ref-pLMkH-li.cjs} +1 -1
  28. package/lib/edge/constants/sdk-version.d.ts +1 -1
  29. package/lib/edge/functions/log-fetch.d.ts +1 -0
  30. package/lib/edge/{get-block-properties-QZcs-Zmy.cjs → get-block-properties-PgTUmqHR.cjs} +1 -1
  31. package/lib/edge/{get-block-properties-JvBYR7T2.js → get-block-properties-_21D78JP.js} +1 -1
  32. package/lib/edge/{index-MhoX9uwg.cjs → index-5thgYd8i.cjs} +32 -32
  33. package/lib/edge/{index-A2oFnyUY.js → index-vCgGh07X.js} +1222 -1217
  34. package/lib/edge/index.cjs +1 -1
  35. package/lib/edge/index.mjs +1 -1
  36. package/lib/edge/{repeated-block-luW_-FNb.js → repeated-block-2cIfX4fx.js} +2 -2
  37. package/lib/{node/repeated-block-L7NHAfGX.cjs → edge/repeated-block-7ZbJaVOi.cjs} +1 -1
  38. package/lib/edge/style.css +1 -1
  39. package/lib/node/{awaiter-FlUFmL70.js → awaiter-3eKUn_vT.js} +1 -1
  40. package/lib/node/{awaiter-V_ao-6vo.cjs → awaiter-qNZtZLjJ.cjs} +1 -1
  41. package/lib/node/{block-styles-mlFEPu97.js → block-styles-IyYaHu8-.js} +1 -1
  42. package/lib/node/{block-styles-tv9J_BQX.cjs → block-styles-ON8cTpGp.cjs} +1 -1
  43. package/lib/node/{block-wrapper-hD0JtNOm.js → block-wrapper-WZ-DIDkP.js} +3 -3
  44. package/lib/node/{block-wrapper--A2qoKhW.cjs → block-wrapper-qYoYSONc.cjs} +1 -1
  45. package/lib/node/{component-ref-y3SgFXV9.cjs → component-ref-5hL2pob8.cjs} +1 -1
  46. package/lib/node/{component-ref-Bkl05aM4.js → component-ref-_kyf_si2.js} +3 -3
  47. package/lib/node/constants/sdk-version.d.ts +1 -1
  48. package/lib/node/functions/log-fetch.d.ts +1 -0
  49. package/lib/node/{get-block-properties-WDP-bf5P.cjs → get-block-properties-9J6zqRJY.cjs} +1 -1
  50. package/lib/node/{get-block-properties-su4ucuIP.js → get-block-properties-OXHPbXLH.js} +1 -1
  51. package/lib/node/{index-WgbaQ2Lp.js → index-Cxf2YzmY.js} +808 -803
  52. package/lib/node/{index-LIVUNkJZ.cjs → index-NtAkrth1.cjs} +22 -22
  53. package/lib/node/index.cjs +1 -1
  54. package/lib/node/index.mjs +1 -1
  55. package/lib/{edge/repeated-block-S5H2EoTu.cjs → node/repeated-block-SZwTMCgz.cjs} +1 -1
  56. package/lib/node/{repeated-block-WeKMcR5K.js → repeated-block-vtGXbgev.js} +2 -2
  57. package/lib/node/style.css +1 -1
  58. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import "./style.css";
2
- import { defineComponent as f, openBlock as d, createElementBlock as m, Fragment as w, createBlock as k, resolveDynamicComponent as H, mergeProps as C, toHandlers as B, withCtx as W, renderSlot as x, resolveComponent as v, createTextVNode as mt, toDisplayString as ee, defineAsyncComponent as M, createVNode as $, renderList as A, createCommentVNode as S, h as Pe, createElementVNode as K, normalizeStyle as F, normalizeClass as q, markRaw as ht } from "vue";
3
- const ft = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), bt = (e) => typeof e == "string" && ft.has(e.toLowerCase());
4
- function V(e = {}, t, n) {
2
+ import { defineComponent as b, openBlock as c, createElementBlock as p, Fragment as T, createBlock as y, resolveDynamicComponent as j, mergeProps as C, toHandlers as x, withCtx as N, renderSlot as A, resolveComponent as k, createTextVNode as ht, toDisplayString as ee, defineAsyncComponent as H, createVNode as R, renderList as V, createCommentVNode as v, h as Be, createElementVNode as q, normalizeStyle as F, normalizeClass as z, markRaw as ft } from "vue";
3
+ const bt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), gt = (e) => typeof e == "string" && bt.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,38 +11,38 @@ function V(e = {}, t, n) {
11
11
  }
12
12
  return o;
13
13
  }
14
- const gt = f({
14
+ const yt = b({
15
15
  name: "dynamic-renderer",
16
16
  props: ["TagName", "attributes", "actionAttributes"],
17
17
  data() {
18
- return { isEmptyElement: bt };
18
+ return { isEmptyElement: gt };
19
19
  }
20
- }), b = (e, t) => {
20
+ }), g = (e, t) => {
21
21
  const n = e.__vccOpts || e;
22
22
  for (const [o, r] of t)
23
23
  n[o] = r;
24
24
  return n;
25
25
  };
26
- function yt(e, t, n, o, r, i) {
27
- return e.isEmptyElement(e.TagName) ? (d(), k(H(e.TagName), C({ key: 1 }, e.attributes, B(e.actionAttributes)), null, 16)) : (d(), m(w, { key: 0 }, [
28
- typeof e.TagName == "string" ? (d(), k(H(e.TagName), C({ key: 0 }, e.attributes, B(e.actionAttributes)), {
29
- default: W(() => [
30
- x(e.$slots, "default")
26
+ function kt(e, t, n, o, r, i) {
27
+ return e.isEmptyElement(e.TagName) ? (c(), y(j(e.TagName), C({ key: 1 }, e.attributes, x(e.actionAttributes)), null, 16)) : (c(), p(T, { key: 0 }, [
28
+ typeof e.TagName == "string" ? (c(), y(j(e.TagName), C({ key: 0 }, e.attributes, x(e.actionAttributes)), {
29
+ default: N(() => [
30
+ A(e.$slots, "default")
31
31
  ]),
32
32
  _: 3
33
- }, 16)) : (d(), k(H(e.TagName), C({ key: 1 }, e.attributes, B(e.actionAttributes)), {
34
- default: W(() => [
35
- x(e.$slots, "default")
33
+ }, 16)) : (c(), y(j(e.TagName), C({ key: 1 }, e.attributes, x(e.actionAttributes)), {
34
+ default: N(() => [
35
+ A(e.$slots, "default")
36
36
  ]),
37
37
  _: 3
38
38
  }, 16))
39
39
  ], 64));
40
40
  }
41
- const de = /* @__PURE__ */ b(gt, [["render", yt]]), Ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41
+ const de = /* @__PURE__ */ g(yt, [["render", kt]]), Vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42
42
  __proto__: null,
43
43
  default: de
44
- }, Symbol.toStringTag, { value: "Module" })), R = "vue", Z = () => {
45
- switch (R) {
44
+ }, Symbol.toStringTag, { value: "Module" })), P = "vue", Z = () => {
45
+ switch (P) {
46
46
  case "react":
47
47
  case "reactNative":
48
48
  case "rsc":
@@ -54,7 +54,7 @@ const de = /* @__PURE__ */ b(gt, [["render", yt]]), Ai = /* @__PURE__ */ Object.
54
54
  case "angular":
55
55
  return "class";
56
56
  }
57
- }, kt = f({
57
+ }, vt = b({
58
58
  name: "builder-button",
59
59
  components: { DynamicRenderer: de },
60
60
  props: [
@@ -65,12 +65,12 @@ const de = /* @__PURE__ */ b(gt, [["render", yt]]), Ai = /* @__PURE__ */ Object.
65
65
  "text"
66
66
  ],
67
67
  data() {
68
- return { filterAttrs: V };
68
+ return { filterAttrs: W };
69
69
  },
70
70
  methods: {
71
71
  attrs() {
72
72
  return {
73
- ...V(this.attributes, "v-on:", !1),
73
+ ...W(this.attributes, "v-on:", !1),
74
74
  [Z()]: `${this.link ? "" : "builder-button"} ${this.attributes[Z()] || ""}`,
75
75
  ...this.link ? {
76
76
  href: this.link,
@@ -83,20 +83,20 @@ const de = /* @__PURE__ */ b(gt, [["render", yt]]), Ai = /* @__PURE__ */ Object.
83
83
  }
84
84
  }
85
85
  });
86
- function vt(e, t, n, o, r, i) {
87
- const s = v("DynamicRenderer");
88
- return d(), k(s, {
86
+ function St(e, t, n, o, r, i) {
87
+ const s = k("DynamicRenderer");
88
+ return c(), y(s, {
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: W(() => [
94
- mt(ee(e.text), 1)
93
+ default: N(() => [
94
+ ht(ee(e.text), 1)
95
95
  ]),
96
96
  _: 1
97
97
  }, 8, ["attributes", "TagName", "actionAttributes"]);
98
98
  }
99
- const St = /* @__PURE__ */ b(kt, [["render", vt]]), Ct = Symbol(), se = {
99
+ const Ct = /* @__PURE__ */ g(vt, [["render", St]]), wt = Symbol(), se = {
100
100
  Builder: {
101
101
  content: null,
102
102
  context: {},
@@ -112,57 +112,57 @@ const St = /* @__PURE__ */ b(kt, [["render", vt]]), Ct = Symbol(), se = {
112
112
  BlocksWrapperProps: {},
113
113
  nonce: ""
114
114
  },
115
- key: Ct
116
- }, wt = Symbol(), Be = {
117
- Components: { registeredComponents: {} },
118
115
  key: wt
116
+ }, Tt = Symbol(), xe = {
117
+ Components: { registeredComponents: {} },
118
+ key: Tt
119
119
  };
120
- function Tt(e) {
120
+ function It(e) {
121
121
  var t;
122
122
  return {
123
123
  ...(t = e.component) == null ? void 0 : t.options,
124
124
  ...e.options
125
125
  };
126
126
  }
127
- function It(e, ...t) {
127
+ function $t(e, ...t) {
128
128
  const n = Object.assign({}, e);
129
129
  for (const o of t)
130
130
  delete n[o];
131
131
  return n;
132
132
  }
133
- const X = "[Builder.io]: ", P = {
133
+ const X = "[Builder.io]: ", E = {
134
134
  log: (...e) => console.log(X, ...e),
135
135
  error: (...e) => console.error(X, ...e),
136
136
  warn: (...e) => console.warn(X, ...e),
137
137
  debug: (...e) => console.debug(X, ...e)
138
- }, xe = (e, t, n) => {
138
+ }, Ae = (e, t, n) => {
139
139
  const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
140
140
  return o === void 0 || o === e ? n : o;
141
141
  };
142
- function I() {
142
+ function $() {
143
143
  return typeof window < "u" && typeof document < "u";
144
144
  }
145
- const $t = (e) => {
145
+ const Rt = (e) => {
146
146
  const t = {};
147
147
  return e.forEach((n, o) => {
148
148
  t[o] = n;
149
149
  }), t;
150
- }, Ae = (e) => e instanceof URLSearchParams ? $t(e) : e, Ve = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
151
- function Rt() {
152
- return I() && window.self !== window.top;
150
+ }, Ve = (e) => e instanceof URLSearchParams ? Rt(e) : e, We = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
151
+ function Et() {
152
+ return $() && window.self !== window.top;
153
153
  }
154
- function E(e) {
155
- return Rt() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
156
- Ve(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
154
+ function B(e) {
155
+ return Et() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
156
+ We(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
157
157
  }
158
- const Et = () => {
159
- if (I()) {
158
+ const Pt = () => {
159
+ if ($()) {
160
160
  const e = new URL(location.href);
161
161
  return e.pathname === "" && (e.pathname = "/"), e;
162
162
  } else
163
163
  return console.warn("Cannot get location for tracking in non-browser environment"), null;
164
- }, Pt = () => typeof navigator == "object" && navigator.userAgent || "", We = () => {
165
- const e = Pt(), t = {
164
+ }, Bt = () => typeof navigator == "object" && navigator.userAgent || "", Ne = () => {
165
+ const e = Bt(), t = {
166
166
  Android() {
167
167
  return e.match(/Android/i);
168
168
  },
@@ -179,15 +179,15 @@ const Et = () => {
179
179
  return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
180
180
  },
181
181
  any() {
182
- return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || R === "reactNative";
182
+ return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || P === "reactNative";
183
183
  }
184
- }, n = e.match(/Tablet|iPad/i), o = Et();
184
+ }, n = e.match(/Tablet|iPad/i), o = Pt();
185
185
  return {
186
186
  urlPath: o == null ? void 0 : o.pathname,
187
187
  host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
188
188
  device: n ? "tablet" : t.any() ? "mobile" : "desktop"
189
189
  };
190
- }, Bt = ({
190
+ }, xt = ({
191
191
  builder: e,
192
192
  context: t,
193
193
  event: n,
@@ -199,15 +199,15 @@ const Et = () => {
199
199
  builder: e,
200
200
  context: t,
201
201
  event: n
202
- }), xt = () => ({
203
- isEditing: E(),
204
- isBrowser: I(),
205
- isServer: !I(),
206
- getUserAttributes: () => We()
207
- }), At = (e, {
202
+ }), At = () => ({
203
+ isEditing: B(),
204
+ isBrowser: $(),
205
+ isServer: !$(),
206
+ getUserAttributes: () => Ne()
207
+ }), Vt = (e, {
208
208
  isExpression: t = !0
209
209
  }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
210
- function Ne({
210
+ function Oe({
211
211
  rootState: e,
212
212
  localState: t,
213
213
  rootSetState: n
@@ -217,7 +217,7 @@ function Ne({
217
217
  if (t && r in t)
218
218
  return t[r];
219
219
  const i = o[r];
220
- return typeof i == "object" && i !== null ? Ne({
220
+ return typeof i == "object" && i !== null ? Oe({
221
221
  rootState: i,
222
222
  localState: void 0,
223
223
  rootSetState: n ? (s) => {
@@ -232,7 +232,7 @@ function Ne({
232
232
  }
233
233
  });
234
234
  }
235
- const ke = ({
235
+ const ve = ({
236
236
  code: e,
237
237
  builder: t,
238
238
  context: n,
@@ -241,11 +241,11 @@ const ke = ({
241
241
  rootSetState: i,
242
242
  rootState: s
243
243
  }) => {
244
- const l = Bt({
244
+ const l = xt({
245
245
  builder: t,
246
246
  context: n,
247
247
  event: o,
248
- state: Ne({
248
+ state: Oe({
249
249
  rootState: s,
250
250
  localState: r,
251
251
  rootSetState: i
@@ -253,23 +253,23 @@ const ke = ({
253
253
  });
254
254
  return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
255
255
  }, D = (e) => e != null;
256
- function Vt() {
256
+ function Wt() {
257
257
  var e;
258
258
  return typeof process < "u" && D((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
259
259
  }
260
- const Wt = ({
260
+ const Nt = ({
261
261
  shouldLogWarning: e
262
262
  }) => {
263
263
  var r;
264
- if (!Vt())
264
+ if (!Wt())
265
265
  return !1;
266
266
  const t = process.arch === "arm64", n = process.version.startsWith("v20"), o = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
267
- return t && n && !o ? (e && P.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
268
- }, Nt = (e) => (I() || Wt({
267
+ return t && n && !o ? (e && E.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
268
+ }, Ot = (e) => ($() || Nt({
269
269
  shouldLogWarning: !0
270
- }), ke(e)), Ot = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Ft = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Dt = (e) => {
270
+ }), ve(e)), Ft = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Dt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Lt = (e) => {
271
271
  var t, n, o, r, i, s;
272
- return ((o = (n = (t = Ot.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = Ft.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
272
+ return ((o = (n = (t = Ft.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = Dt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
273
273
  };
274
274
  function J({
275
275
  code: e,
@@ -282,17 +282,17 @@ function J({
282
282
  }) {
283
283
  if (e.trim() === "")
284
284
  return;
285
- const l = Dt(e.trim());
285
+ const l = Lt(e.trim());
286
286
  if (l)
287
- return xe({
287
+ return Ae({
288
288
  ...o,
289
289
  ...n
290
290
  }, l);
291
291
  const a = {
292
- code: At(e, {
292
+ code: Vt(e, {
293
293
  isExpression: s
294
294
  }),
295
- builder: xt(),
295
+ builder: At(),
296
296
  context: t,
297
297
  event: i,
298
298
  rootSetState: r,
@@ -300,15 +300,15 @@ function J({
300
300
  localState: n
301
301
  };
302
302
  try {
303
- return Nt(a);
303
+ return Ot(a);
304
304
  } catch (u) {
305
- P.error("Failed code evaluation: " + u.message, {
305
+ E.error("Failed code evaluation: " + u.message, {
306
306
  code: e
307
307
  });
308
308
  return;
309
309
  }
310
310
  }
311
- const ue = (e) => JSON.parse(JSON.stringify(e)), Oe = (e, t, n) => {
311
+ const ue = (e) => JSON.parse(JSON.stringify(e)), Fe = (e, t, n) => {
312
312
  if (Object(e) !== e)
313
313
  return e;
314
314
  const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
@@ -326,8 +326,8 @@ function ae(e) {
326
326
  n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ae(e[n]));
327
327
  return t;
328
328
  }
329
- const Lt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), Ut = (e) => {
330
- if (Lt) {
329
+ const Ut = ["svelte", "vue", "angular", "qwik", "solid"].includes(P), Mt = (e) => {
330
+ if (Ut) {
331
331
  const t = ue(e);
332
332
  return {
333
333
  ...t,
@@ -339,7 +339,7 @@ const Lt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), Ut = (e) =
339
339
  }
340
340
  };
341
341
  } else {
342
- const t = ae(It(e, "children", "meta"));
342
+ const t = ae($t(e, "children", "meta"));
343
343
  return {
344
344
  ...t,
345
345
  properties: {
@@ -352,7 +352,7 @@ const Lt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), Ut = (e) =
352
352
  meta: e.meta
353
353
  };
354
354
  }
355
- }, Mt = ({
355
+ }, Ht = ({
356
356
  block: e,
357
357
  context: t,
358
358
  localState: n,
@@ -361,7 +361,7 @@ const Lt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), Ut = (e) =
361
361
  }) => {
362
362
  if (!e.bindings)
363
363
  return e;
364
- const i = Ut(e);
364
+ const i = Mt(e);
365
365
  for (const s in e.bindings) {
366
366
  const l = e.bindings[s], a = J({
367
367
  code: l,
@@ -370,11 +370,11 @@ const Lt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), Ut = (e) =
370
370
  rootSetState: r,
371
371
  context: t
372
372
  });
373
- Oe(i, s, a);
373
+ Fe(i, s, a);
374
374
  }
375
375
  return i;
376
376
  };
377
- function Ht({
377
+ function jt({
378
378
  block: e,
379
379
  context: t,
380
380
  shouldEvaluateBindings: n,
@@ -383,7 +383,7 @@ function Ht({
383
383
  rootSetState: i
384
384
  }) {
385
385
  const s = e;
386
- return n ? Mt({
386
+ return n ? Ht({
387
387
  block: s,
388
388
  localState: o,
389
389
  rootState: r,
@@ -391,25 +391,25 @@ function Ht({
391
391
  context: t
392
392
  }) : s;
393
393
  }
394
- function jt(e) {
395
- const t = e || (I() ? window.location.search : void 0);
396
- return t ? Ve(t).indexOf("builder.preview=") !== -1 : !1;
394
+ function Kt(e) {
395
+ const t = e || ($() ? window.location.search : void 0);
396
+ return t ? We(t).indexOf("builder.preview=") !== -1 : !1;
397
397
  }
398
- const Kt = (e) => ({
398
+ const qt = (e) => ({
399
399
  type: "builder.registerComponent",
400
400
  data: _(e)
401
- }), qt = (e) => {
401
+ }), zt = (e) => {
402
402
  const t = e.toString().trim();
403
403
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
404
404
  };
405
405
  function _(e) {
406
- return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? qt(n) : n));
406
+ return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? zt(n) : n));
407
407
  }
408
- const ve = {};
409
- function zt(e, t) {
408
+ const Se = {};
409
+ function Gt(e, t) {
410
410
  e === "plugin" && (t = _(t));
411
- let n = ve[e];
412
- if (n || (n = ve[e] = []), n.push(t), I()) {
411
+ let n = Se[e];
412
+ if (n || (n = Se[e] = []), n.push(t), $()) {
413
413
  const o = {
414
414
  type: "builder.register",
415
415
  data: {
@@ -424,42 +424,42 @@ function zt(e, t) {
424
424
  }
425
425
  }
426
426
  }
427
- const Se = {};
428
- function Vi(e) {
429
- if (I()) {
430
- Object.assign(Se, e);
427
+ const Ce = {};
428
+ function Wi(e) {
429
+ if ($()) {
430
+ Object.assign(Ce, e);
431
431
  const t = {
432
432
  type: "builder.settingsChange",
433
- data: Se
433
+ data: Ce
434
434
  };
435
435
  parent.postMessage(t, "*");
436
436
  }
437
437
  }
438
- const Ce = "builder.", Jt = "options.", Fe = (e) => {
438
+ const we = "builder.", Jt = "options.", De = (e) => {
439
439
  if (!e)
440
440
  return {};
441
- const t = Ae(e), n = {};
441
+ const t = Ve(e), n = {};
442
442
  return Object.keys(t).forEach((o) => {
443
- if (o.startsWith(Ce)) {
444
- const r = o.replace(Ce, "").replace(Jt, "");
443
+ if (o.startsWith(we)) {
444
+ const r = o.replace(we, "").replace(Jt, "");
445
445
  n[r] = t[o];
446
446
  }
447
447
  }), n;
448
- }, Gt = () => {
449
- if (!I())
448
+ }, Yt = () => {
449
+ if (!$())
450
450
  return {};
451
451
  const e = new URLSearchParams(window.location.search);
452
- return Fe(e);
453
- }, De = "2.0.29", Le = () => ({
454
- "X-Builder-SDK": R,
452
+ return De(e);
453
+ }, Le = "2.0.30", Ue = () => ({
454
+ "X-Builder-SDK": P,
455
455
  "X-Builder-SDK-GEN": "2",
456
- "X-Builder-SDK-Version": De
457
- }), Yt = (e) => {
456
+ "X-Builder-SDK-Version": Le
457
+ }), Xt = (e) => {
458
458
  if (e === "localhost" || e === "127.0.0.1")
459
459
  return e;
460
460
  const t = e.split(".");
461
461
  return t.length > 2 ? t.slice(1).join(".") : e;
462
- }, Ue = ({
462
+ }, Me = ({
463
463
  name: e,
464
464
  canTrack: t
465
465
  }) => {
@@ -467,17 +467,17 @@ const Ce = "builder.", Jt = "options.", Fe = (e) => {
467
467
  try {
468
468
  return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
469
469
  } catch (o) {
470
- P.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
470
+ E.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
471
471
  return;
472
472
  }
473
- }, Me = async (e) => Ue(e), Xt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(D).join("; "), Qt = [["secure", ""], ["SameSite", "None"]], Zt = ({
473
+ }, He = async (e) => Me(e), Qt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(D).join("; "), Zt = [["secure", ""], ["SameSite", "None"]], _t = ({
474
474
  name: e,
475
475
  value: t,
476
476
  expires: n
477
477
  }) => {
478
- const r = (I() ? location.protocol === "https:" : !0) ? Qt : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Yt(window.location.hostname)], ...r];
479
- return Xt(s);
480
- }, He = async ({
478
+ const r = ($() ? location.protocol === "https:" : !0) ? Zt : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Xt(window.location.hostname)], ...r];
479
+ return Qt(s);
480
+ }, je = async ({
481
481
  name: e,
482
482
  value: t,
483
483
  expires: n,
@@ -486,98 +486,103 @@ const Ce = "builder.", Jt = "options.", Fe = (e) => {
486
486
  try {
487
487
  if (!o)
488
488
  return;
489
- const r = Zt({
489
+ const r = _t({
490
490
  name: e,
491
491
  value: t,
492
492
  expires: n
493
493
  });
494
494
  document.cookie = r;
495
495
  } catch (r) {
496
- P.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
496
+ E.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
497
497
  }
498
498
  };
499
- function _t() {
499
+ function en() {
500
500
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
501
501
  const t = Math.random() * 16 | 0;
502
502
  return (e == "x" ? t : t & 3 | 8).toString(16);
503
503
  });
504
504
  }
505
- function je() {
506
- return _t().replace(/-/g, "");
505
+ function Ke() {
506
+ return en().replace(/-/g, "");
507
507
  }
508
- const Ke = "builderSessionId", en = async ({
508
+ const qe = "builderSessionId", tn = async ({
509
509
  canTrack: e
510
510
  }) => {
511
511
  if (!e)
512
512
  return;
513
- const t = await Me({
514
- name: Ke,
513
+ const t = await He({
514
+ name: qe,
515
515
  canTrack: e
516
516
  });
517
517
  if (D(t))
518
518
  return t;
519
519
  {
520
- const n = tn();
521
- return nn({
520
+ const n = nn();
521
+ return on({
522
522
  id: n,
523
523
  canTrack: e
524
524
  }), n;
525
525
  }
526
- }, tn = () => je(), nn = ({
526
+ }, nn = () => Ke(), on = ({
527
527
  id: e,
528
528
  canTrack: t
529
- }) => He({
530
- name: Ke,
529
+ }) => je({
530
+ name: qe,
531
531
  value: e,
532
532
  canTrack: t
533
- }), qe = () => I() && typeof localStorage < "u" ? localStorage : void 0, on = ({
533
+ }), ze = () => $() && typeof localStorage < "u" ? localStorage : void 0, rn = ({
534
534
  key: e,
535
535
  canTrack: t
536
536
  }) => {
537
537
  var n;
538
538
  try {
539
- return t ? (n = qe()) == null ? void 0 : n.getItem(e) : void 0;
539
+ return t ? (n = ze()) == null ? void 0 : n.getItem(e) : void 0;
540
540
  } catch (o) {
541
541
  console.debug("[LocalStorage] GET error: ", o);
542
542
  return;
543
543
  }
544
- }, rn = ({
544
+ }, sn = ({
545
545
  key: e,
546
546
  canTrack: t,
547
547
  value: n
548
548
  }) => {
549
549
  var o;
550
550
  try {
551
- t && ((o = qe()) == null || o.setItem(e, n));
551
+ t && ((o = ze()) == null || o.setItem(e, n));
552
552
  } catch (r) {
553
553
  console.debug("[LocalStorage] SET error: ", r);
554
554
  }
555
- }, ze = "builderVisitorId", sn = ({
555
+ }, Ge = "builderVisitorId", an = ({
556
556
  canTrack: e
557
557
  }) => {
558
558
  if (!e)
559
559
  return;
560
- const t = on({
561
- key: ze,
560
+ const t = rn({
561
+ key: Ge,
562
562
  canTrack: e
563
563
  });
564
564
  if (D(t))
565
565
  return t;
566
566
  {
567
- const n = an();
568
- return ln({
567
+ const n = ln();
568
+ return cn({
569
569
  id: n,
570
570
  canTrack: e
571
571
  }), n;
572
572
  }
573
- }, an = () => je(), ln = ({
573
+ }, ln = () => Ke(), cn = ({
574
574
  id: e,
575
575
  canTrack: t
576
- }) => rn({
577
- key: ze,
576
+ }) => sn({
577
+ key: Ge,
578
578
  value: e,
579
579
  canTrack: t
580
- }), cn = async ({
580
+ });
581
+ function pe(e) {
582
+ var t;
583
+ typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && E.log(e);
584
+ }
585
+ const dn = async ({
581
586
  canTrack: e
582
587
  }) => {
583
588
  if (!e)
@@ -585,16 +590,16 @@ const Ke = "builderSessionId", en = async ({
585
590
  visitorId: void 0,
586
591
  sessionId: void 0
587
592
  };
588
- const t = await en({
593
+ const t = await tn({
589
594
  canTrack: e
590
- }), n = sn({
595
+ }), n = an({
591
596
  canTrack: e
592
597
  });
593
598
  return {
594
599
  sessionId: t,
595
600
  visitorId: n
596
601
  };
597
- }, dn = async ({
602
+ }, un = async ({
598
603
  type: e,
599
604
  canTrack: t,
600
605
  apiKey: n,
@@ -608,10 +613,10 @@ const Ke = "builderSessionId", en = async ({
608
613
  url: location.href,
609
614
  ...o
610
615
  },
611
- ...await cn({
616
+ ...await dn({
612
617
  canTrack: t
613
618
  }),
614
- userAttributes: We(),
619
+ userAttributes: Ne(),
615
620
  ownerId: n
616
621
  }
617
622
  });
@@ -620,35 +625,38 @@ async function le({
620
625
  ...t
621
626
  }) {
622
627
  if (!t.apiKey) {
623
- P.error("Missing API key for track call. Please provide your API key.");
628
+ E.error("Missing API key for track call. Please provide your API key.");
624
629
  return;
625
630
  }
626
- return !t.canTrack || E() || !(I() || R === "reactNative") ? void 0 : fetch(`${e || "https://cdn.builder.io"}/api/v1/track`, {
631
+ if (!t.canTrack || B() || !($() || P === "reactNative"))
632
+ return;
633
+ const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
634
+ return pe(o), fetch(o, {
627
635
  method: "POST",
628
636
  body: JSON.stringify({
629
- events: [await dn(t)]
637
+ events: [await un(t)]
630
638
  }),
631
639
  headers: {
632
640
  "content-type": "application/json",
633
- ...Le()
641
+ ...Ue()
634
642
  },
635
643
  mode: "cors"
636
- }).catch((o) => {
637
- console.error("Failed to track: ", o);
644
+ }).catch((r) => {
645
+ console.error("Failed to track: ", r);
638
646
  });
639
647
  }
640
- const Wi = (e) => le({
648
+ const Ni = (e) => le({
641
649
  ...e,
642
650
  canTrack: !0
643
- }), un = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
651
+ }), pn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
644
652
  function Je(e, t) {
645
653
  if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
646
654
  return !1;
647
655
  const n = new URL(t.origin), o = n.hostname;
648
- return (e || un).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
656
+ return (e || pn).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
649
657
  }
650
- const pn = () => {
651
- zt("insertMenu", {
658
+ const mn = () => {
659
+ Gt("insertMenu", {
652
660
  name: "_default",
653
661
  default: !0,
654
662
  items: [{
@@ -670,14 +678,14 @@ const pn = () => {
670
678
  }]
671
679
  });
672
680
  };
673
- let we = !1;
674
- const Ge = (e = {}) => {
681
+ let Te = !1;
682
+ const Ye = (e = {}) => {
675
683
  var t, n;
676
- we || (we = !0, I() && ((t = window.parent) == null || t.postMessage({
684
+ Te || (Te = !0, $() && ((t = window.parent) == null || t.postMessage({
677
685
  type: "builder.sdkInfo",
678
686
  data: {
679
- target: R,
680
- version: De,
687
+ target: P,
688
+ version: Le,
681
689
  supportsPatchUpdates: !1,
682
690
  // Supports builder-model="..." attribute which is needed to
683
691
  // scope our '+ add block' button styling
@@ -699,32 +707,32 @@ const Ge = (e = {}) => {
699
707
  if (r != null && r.type)
700
708
  switch (r.type) {
701
709
  case "builder.evaluate": {
702
- const l = r.data.text, a = r.data.arguments || [], u = r.data.id, h = new Function(l);
703
- let c, p = null;
710
+ const l = r.data.text, a = r.data.arguments || [], u = r.data.id, m = new Function(l);
711
+ let h, d = null;
704
712
  try {
705
- c = h.apply(null, a);
706
- } catch (y) {
707
- p = y;
713
+ h = m.apply(null, a);
714
+ } catch (f) {
715
+ d = f;
708
716
  }
709
- p ? (i = window.parent) == null || i.postMessage({
717
+ d ? (i = window.parent) == null || i.postMessage({
710
718
  type: "builder.evaluateError",
711
719
  data: {
712
720
  id: u,
713
- error: p.message
721
+ error: d.message
714
722
  }
715
- }, "*") : c && typeof c.then == "function" ? c.then((y) => {
716
- var g;
717
- (g = window.parent) == null || g.postMessage({
723
+ }, "*") : h && typeof h.then == "function" ? h.then((f) => {
724
+ var S;
725
+ (S = window.parent) == null || S.postMessage({
718
726
  type: "builder.evaluateResult",
719
727
  data: {
720
728
  id: u,
721
- result: y
729
+ result: f
722
730
  }
723
731
  }, "*");
724
732
  }).catch(console.error) : (s = window.parent) == null || s.postMessage({
725
733
  type: "builder.evaluateResult",
726
734
  data: {
727
- result: c,
735
+ result: h,
728
736
  id: u
729
737
  }
730
738
  }, "*");
@@ -732,7 +740,7 @@ const Ge = (e = {}) => {
732
740
  }
733
741
  }
734
742
  })));
735
- }, Ye = ({
743
+ }, Xe = ({
736
744
  model: e,
737
745
  trustedHosts: t,
738
746
  callbacks: n
@@ -758,12 +766,12 @@ const Ge = (e = {}) => {
758
766
  break;
759
767
  }
760
768
  }
761
- }, Ni = (e, t, n) => {
762
- if (!I)
763
- return P.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
769
+ }, Oi = (e, t, n) => {
770
+ if (!$)
771
+ return E.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
764
772
  };
765
- Ge();
766
- const o = Ye({
773
+ Ye();
774
+ const o = Xe({
767
775
  callbacks: {
768
776
  contentUpdate: t,
769
777
  animation: () => {
@@ -777,24 +785,24 @@ const Ge = (e = {}) => {
777
785
  return window.addEventListener("message", o), () => {
778
786
  window.removeEventListener("message", o);
779
787
  };
780
- }, mn = "builder.tests", pe = (e) => `${mn}.${e}`, hn = ({
788
+ }, hn = "builder.tests", me = (e) => `${hn}.${e}`, fn = ({
781
789
  contentId: e
782
- }) => Me({
783
- name: pe(e),
790
+ }) => He({
791
+ name: me(e),
784
792
  canTrack: !0
785
- }), fn = ({
793
+ }), bn = ({
786
794
  contentId: e
787
- }) => Ue({
788
- name: pe(e),
795
+ }) => Me({
796
+ name: me(e),
789
797
  canTrack: !0
790
- }), bn = ({
798
+ }), gn = ({
791
799
  contentId: e,
792
800
  value: t
793
- }) => He({
794
- name: pe(e),
801
+ }) => je({
802
+ name: me(e),
795
803
  value: t,
796
804
  canTrack: !0
797
- }), Xe = (e) => D(e.id) && D(e.variations) && Object.keys(e.variations).length > 0, gn = ({
805
+ }), Qe = (e) => D(e.id) && D(e.variations) && Object.keys(e.variations).length > 0, yn = ({
798
806
  id: e,
799
807
  variations: t
800
808
  }) => {
@@ -807,15 +815,15 @@ const Ge = (e = {}) => {
807
815
  return i;
808
816
  }
809
817
  return e;
810
- }, Qe = (e) => {
811
- const t = gn(e);
812
- return bn({
818
+ }, Ze = (e) => {
819
+ const t = yn(e);
820
+ return gn({
813
821
  contentId: e.id,
814
822
  value: t
815
823
  }).catch((n) => {
816
- P.error("could not store A/B test variation: ", n);
824
+ E.error("could not store A/B test variation: ", n);
817
825
  }), t;
818
- }, Ze = ({
826
+ }, _e = ({
819
827
  item: e,
820
828
  testGroupId: t
821
829
  }) => {
@@ -829,7 +837,7 @@ const Ge = (e = {}) => {
829
837
  testVariationId: n.id,
830
838
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
831
839
  };
832
- }, yn = ({
840
+ }, kn = ({
833
841
  item: e,
834
842
  canTrack: t
835
843
  }) => {
@@ -837,14 +845,14 @@ const Ge = (e = {}) => {
837
845
  return e;
838
846
  if (!e)
839
847
  return;
840
- if (!Xe(e))
848
+ if (!Qe(e))
841
849
  return e;
842
- const n = fn({
850
+ const n = bn({
843
851
  contentId: e.id
844
- }) || Qe({
852
+ }) || Ze({
845
853
  variations: e.variations,
846
854
  id: e.id
847
- }), o = Ze({
855
+ }), o = _e({
848
856
  item: e,
849
857
  testGroupId: n
850
858
  });
@@ -852,18 +860,18 @@ const Ge = (e = {}) => {
852
860
  ...e,
853
861
  ...o
854
862
  };
855
- }, kn = async ({
863
+ }, vn = async ({
856
864
  item: e,
857
865
  canTrack: t
858
866
  }) => {
859
- if (!t || !Xe(e))
867
+ if (!t || !Qe(e))
860
868
  return e;
861
- const o = await hn({
869
+ const o = await fn({
862
870
  contentId: e.id
863
- }) || Qe({
871
+ }) || Ze({
864
872
  variations: e.variations,
865
873
  id: e.id
866
- }), r = Ze({
874
+ }), r = _e({
867
875
  item: e,
868
876
  testGroupId: o
869
877
  });
@@ -871,18 +879,18 @@ const Ge = (e = {}) => {
871
879
  ...e,
872
880
  ...r
873
881
  };
874
- }, z = (e) => D(e) ? e : !0;
875
- function vn() {
882
+ }, G = (e) => D(e) ? e : !0;
883
+ function Sn() {
876
884
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
877
885
  }
878
- function Sn() {
879
- const e = vn().fetch;
886
+ function Cn() {
887
+ const e = Sn().fetch;
880
888
  if (typeof e > "u")
881
889
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
882
890
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
883
891
  return e;
884
892
  }
885
- const Cn = Sn();
893
+ const wn = Cn();
886
894
  function ce(e, t = null, n = ".") {
887
895
  return Object.keys(e).reduce((o, r) => {
888
896
  const i = e[r], s = [t, r].filter(Boolean).join(n);
@@ -895,14 +903,14 @@ function ce(e, t = null, n = ".") {
895
903
  };
896
904
  }, {});
897
905
  }
898
- function _e(e, t, n = {}) {
906
+ function et(e, t, n = {}) {
899
907
  for (const o in e) {
900
908
  const r = e[o], i = t ? t + "." + o : o;
901
- r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? _e(r, i, n) : n[i] = r;
909
+ r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? et(r, i, n) : n[i] = r;
902
910
  }
903
911
  return n;
904
912
  }
905
- const wn = "v3", Te = (e) => typeof e == "number" && !isNaN(e) && e >= 0, me = (e) => {
913
+ const Tn = "v3", Ie = (e) => typeof e == "number" && !isNaN(e) && e >= 0, he = (e) => {
906
914
  const {
907
915
  limit: t = 30,
908
916
  userAttributes: n,
@@ -911,90 +919,90 @@ const wn = "v3", Te = (e) => typeof e == "number" && !isNaN(e) && e >= 0, me = (
911
919
  apiKey: i,
912
920
  enrich: s,
913
921
  locale: l,
914
- apiVersion: a = wn,
922
+ apiVersion: a = Tn,
915
923
  fields: u,
916
- omit: h,
917
- offset: c,
918
- cacheSeconds: p,
919
- staleCacheSeconds: y,
920
- sort: g,
921
- includeUnpublished: N,
922
- apiHost: Y
924
+ omit: m,
925
+ offset: h,
926
+ cacheSeconds: d,
927
+ staleCacheSeconds: f,
928
+ sort: S,
929
+ includeUnpublished: w,
930
+ apiHost: L
923
931
  } = e;
924
932
  if (!i)
925
933
  throw new Error("Missing API key");
926
934
  if (!["v3"].includes(a))
927
935
  throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
928
- const dt = t !== 1, ut = Y || "https://cdn.builder.io", T = new URL(`${ut}/api/${a}/content/${r}`);
929
- if (T.searchParams.set("apiKey", i), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(dt)), T.searchParams.set("includeRefs", String(!0)), l && T.searchParams.set("locale", l), s && T.searchParams.set("enrich", String(s)), T.searchParams.set("omit", h || "meta.componentsUsed"), u && T.searchParams.set("fields", u), Number.isFinite(c) && c > -1 && T.searchParams.set("offset", String(Math.floor(c))), typeof N == "boolean" && T.searchParams.set("includeUnpublished", String(N)), p && Te(p) && T.searchParams.set("cacheSeconds", String(p)), y && Te(y) && T.searchParams.set("staleCacheSeconds", String(y)), g) {
936
+ const ut = t !== 1, pt = L || "https://cdn.builder.io", I = new URL(`${pt}/api/${a}/content/${r}`);
937
+ if (I.searchParams.set("apiKey", i), I.searchParams.set("limit", String(t)), I.searchParams.set("noTraverse", String(ut)), I.searchParams.set("includeRefs", String(!0)), l && I.searchParams.set("locale", l), s && I.searchParams.set("enrich", String(s)), I.searchParams.set("omit", m || "meta.componentsUsed"), u && I.searchParams.set("fields", u), Number.isFinite(h) && h > -1 && I.searchParams.set("offset", String(Math.floor(h))), typeof w == "boolean" && I.searchParams.set("includeUnpublished", String(w)), d && Ie(d) && I.searchParams.set("cacheSeconds", String(d)), f && Ie(f) && I.searchParams.set("staleCacheSeconds", String(f)), S) {
930
938
  const O = ce({
931
- sort: g
939
+ sort: S
932
940
  });
933
- for (const U in O)
934
- T.searchParams.set(U, JSON.stringify(O[U]));
941
+ for (const M in O)
942
+ I.searchParams.set(M, JSON.stringify(O[M]));
935
943
  }
936
- const pt = {
937
- ...Gt(),
938
- ...Ae(e.options || {})
939
- }, ye = ce(pt);
940
- for (const O in ye)
941
- T.searchParams.set(O, String(ye[O]));
942
- if (n && T.searchParams.set("userAttributes", JSON.stringify(n)), o) {
943
- const O = _e({
944
+ const mt = {
945
+ ...Yt(),
946
+ ...Ve(e.options || {})
947
+ }, ke = ce(mt);
948
+ for (const O in ke)
949
+ I.searchParams.set(O, String(ke[O]));
950
+ if (n && I.searchParams.set("userAttributes", JSON.stringify(n)), o) {
951
+ const O = et({
944
952
  query: o
945
953
  });
946
- for (const U in O)
947
- T.searchParams.set(U, JSON.stringify(O[U]));
954
+ for (const M in O)
955
+ I.searchParams.set(M, JSON.stringify(O[M]));
948
956
  }
949
- return T;
950
- }, Tn = (e) => "results" in e;
951
- async function he(e) {
952
- const t = await Rn({
957
+ return I;
958
+ }, In = (e) => "results" in e;
959
+ async function fe(e) {
960
+ const t = await En({
953
961
  ...e,
954
962
  limit: 1
955
963
  });
956
964
  return t && t[0] || null;
957
965
  }
958
- const In = async (e) => {
966
+ const $n = async (e) => {
959
967
  var s;
960
- const t = me(e), n = e.fetch ?? Cn, o = {
968
+ const t = he(e), n = e.fetch ?? wn, o = {
961
969
  ...e.fetchOptions,
962
970
  headers: {
963
971
  ...(s = e.fetchOptions) == null ? void 0 : s.headers,
964
- ...Le()
972
+ ...Ue()
965
973
  }
966
974
  };
967
975
  return await (await n(t.href, o)).json();
968
- }, $n = async (e, t, n = me(e)) => {
969
- const o = z(e.canTrack);
970
- if (n.search.includes("preview="), !o || !(I() || R === "reactNative"))
976
+ }, Rn = async (e, t, n = he(e)) => {
977
+ const o = G(e.canTrack);
978
+ if (n.search.includes("preview="), !o || !($() || P === "reactNative"))
971
979
  return t.results;
972
980
  try {
973
981
  const r = [];
974
982
  for (const i of t.results)
975
- r.push(await kn({
983
+ r.push(await vn({
976
984
  item: i,
977
985
  canTrack: o
978
986
  }));
979
987
  t.results = r;
980
988
  } catch (r) {
981
- P.error("Could not process A/B tests. ", r);
989
+ E.error("Could not process A/B tests. ", r);
982
990
  }
983
991
  return t.results;
984
992
  };
985
- async function Rn(e) {
993
+ async function En(e) {
986
994
  try {
987
- const t = me(e), n = await In(e);
988
- return Tn(n) ? $n(e, n) : (P.error("Error fetching data. ", {
995
+ const t = he(e), n = await $n(e);
996
+ return In(n) ? Rn(e, n) : (E.error("Error fetching data. ", {
989
997
  url: t,
990
998
  content: n,
991
999
  options: e
992
1000
  }), null);
993
1001
  } catch (t) {
994
- return P.error("Error fetching data. ", t), null;
1002
+ return E.error("Error fetching data. ", t), null;
995
1003
  }
996
1004
  }
997
- const Oi = async (e) => {
1005
+ const Fi = async (e) => {
998
1006
  var o, r, i;
999
1007
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
1000
1008
  ...e,
@@ -1006,15 +1014,15 @@ const Oi = async (e) => {
1006
1014
  urlPath: t
1007
1015
  } : {}
1008
1016
  },
1009
- options: Fe(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
1017
+ options: De(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
1010
1018
  };
1011
1019
  return {
1012
1020
  apiKey: n.apiKey,
1013
1021
  model: n.model,
1014
- content: await he(n)
1022
+ content: await fe(n)
1015
1023
  };
1016
- }, fe = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
1017
- function En(e, t, n = {}) {
1024
+ }, be = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
1025
+ function Pn(e, t, n = {}) {
1018
1026
  let o, r, i, s = null, l = 0;
1019
1027
  const a = function() {
1020
1028
  l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
@@ -1022,11 +1030,11 @@ function En(e, t, n = {}) {
1022
1030
  return function() {
1023
1031
  const u = Date.now();
1024
1032
  !l && n.leading === !1 && (l = u);
1025
- const h = t - (u - l);
1026
- return o = this, r = arguments, h <= 0 || h > t ? (s && (clearTimeout(s), s = null), l = u, i = e.apply(o, r), s || (o = r = null)) : !s && n.trailing !== !1 && (s = setTimeout(a, h)), i;
1033
+ const m = t - (u - l);
1034
+ return o = this, r = arguments, m <= 0 || m > t ? (s && (clearTimeout(s), s = null), l = u, i = e.apply(o, r), s || (o = r = null)) : !s && n.trailing !== !1 && (s = setTimeout(a, m)), i;
1027
1035
  };
1028
1036
  }
1029
- function j(e, ...t) {
1037
+ function K(e, ...t) {
1030
1038
  const n = Object(e);
1031
1039
  for (let o = 1; o < arguments.length; o++) {
1032
1040
  const r = arguments[o];
@@ -1036,118 +1044,118 @@ function j(e, ...t) {
1036
1044
  }
1037
1045
  return n;
1038
1046
  }
1039
- function Pn(e) {
1047
+ function Bn(e) {
1040
1048
  for (const t of e)
1041
1049
  switch (t.trigger) {
1042
1050
  case "pageLoad":
1043
- nt(t);
1051
+ ot(t);
1044
1052
  break;
1045
1053
  case "scrollInView":
1046
- xn(t);
1054
+ An(t);
1047
1055
  break;
1048
1056
  }
1049
1057
  }
1050
- function et(e) {
1058
+ function tt(e) {
1051
1059
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
1052
1060
  }
1053
- function tt(e, t) {
1054
- const n = Bn(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
1061
+ function nt(e, t) {
1062
+ const n = xn(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
1055
1063
  for (const l of s)
1056
1064
  for (const a of n)
1057
1065
  a in l || (l[a] = o[a]);
1058
1066
  }
1059
- function Bn(e) {
1067
+ function xn(e) {
1060
1068
  const t = [];
1061
1069
  for (const n of e.steps)
1062
1070
  for (const o in n.styles)
1063
1071
  t.indexOf(o) === -1 && t.push(o);
1064
1072
  return t;
1065
1073
  }
1066
- function nt(e) {
1074
+ function ot(e) {
1067
1075
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
1068
1076
  if (!t.length) {
1069
- et(e.elementId || e.id || "");
1077
+ tt(e.elementId || e.id || "");
1070
1078
  return;
1071
1079
  }
1072
1080
  Array.from(t).forEach((n) => {
1073
- tt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", j(n.style, e.steps[0].styles), setTimeout(() => {
1074
- n.style.transition = `all ${e.duration}s ${fe(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), j(n.style, e.steps[1].styles), setTimeout(() => {
1081
+ nt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", K(n.style, e.steps[0].styles), setTimeout(() => {
1082
+ n.style.transition = `all ${e.duration}s ${be(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), K(n.style, e.steps[1].styles), setTimeout(() => {
1075
1083
  n.style.transition = "", n.style.transitionDelay = "";
1076
1084
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
1077
1085
  });
1078
1086
  });
1079
1087
  }
1080
- function xn(e) {
1088
+ function An(e) {
1081
1089
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
1082
1090
  if (!t.length) {
1083
- et(e.elementId || e.id || "");
1091
+ tt(e.elementId || e.id || "");
1084
1092
  return;
1085
1093
  }
1086
1094
  Array.from(t).forEach((n) => {
1087
- tt(e, n);
1095
+ nt(e, n);
1088
1096
  let o = !1, r = !1;
1089
1097
  function i() {
1090
1098
  !o && l(n) ? (o = !0, r = !0, setTimeout(() => {
1091
- j(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
1099
+ K(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
1092
1100
  r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
1093
1101
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
1094
- })) : e.repeat && o && !r && !l(n) && (o = !1, j(n.style, e.steps[0].styles));
1102
+ })) : e.repeat && o && !r && !l(n) && (o = !1, K(n.style, e.steps[0].styles));
1095
1103
  }
1096
- const s = En(i, 200, {
1104
+ const s = Pn(i, 200, {
1097
1105
  leading: !1
1098
1106
  });
1099
- function l(h) {
1100
- const c = h.getBoundingClientRect(), p = window.innerHeight, g = (e.thresholdPercent || 0) / 100 * p;
1101
- return c.bottom > g && c.top < p - g;
1107
+ function l(m) {
1108
+ const h = m.getBoundingClientRect(), d = window.innerHeight, S = (e.thresholdPercent || 0) / 100 * d;
1109
+ return h.bottom > S && h.top < d - S;
1102
1110
  }
1103
1111
  const a = e.steps[0].styles;
1104
1112
  function u() {
1105
- j(n.style, a);
1113
+ K(n.style, a);
1106
1114
  }
1107
1115
  u(), setTimeout(() => {
1108
- n.style.transition = `all ${e.duration}s ${fe(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
1116
+ n.style.transition = `all ${e.duration}s ${be(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
1109
1117
  }), document.addEventListener("scroll", s, {
1110
1118
  capture: !0,
1111
1119
  passive: !0
1112
1120
  }), i();
1113
1121
  });
1114
1122
  }
1115
- const ot = (e) => Object.entries(e).map(([n, o]) => {
1123
+ const rt = (e) => Object.entries(e).map(([n, o]) => {
1116
1124
  if (typeof o == "string")
1117
- return `${fe(n)}: ${o};`;
1118
- }).filter(D), An = (e) => ot(e).join(`
1119
- `), Fi = ({
1125
+ return `${be(n)}: ${o};`;
1126
+ }).filter(D), Vn = (e) => rt(e).join(`
1127
+ `), Di = ({
1120
1128
  mediaQuery: e,
1121
1129
  className: t,
1122
1130
  styles: n
1123
1131
  }) => {
1124
1132
  const o = `.${t} {
1125
- ${An(n)}
1133
+ ${Vn(n)}
1126
1134
  }`;
1127
1135
  return e ? `${e} {
1128
1136
  ${o}
1129
1137
  }` : o;
1130
1138
  };
1131
- function Vn({
1139
+ function Wn({
1132
1140
  style: e
1133
1141
  }) {
1134
1142
  return e;
1135
1143
  }
1136
- const Di = ({
1144
+ const Li = ({
1137
1145
  block: e,
1138
1146
  context: t
1139
- }) => rt(Vn({
1147
+ }) => it(Wn({
1140
1148
  style: e.style || {},
1141
1149
  context: t,
1142
1150
  block: e
1143
1151
  }));
1144
- function rt(e) {
1145
- switch (R) {
1152
+ function it(e) {
1153
+ switch (P) {
1146
1154
  case "svelte":
1147
1155
  case "vue":
1148
1156
  case "solid":
1149
1157
  case "angular":
1150
- return ot(e).join(" ");
1158
+ return rt(e).join(" ");
1151
1159
  case "qwik":
1152
1160
  case "reactNative":
1153
1161
  case "react":
@@ -1155,7 +1163,7 @@ function rt(e) {
1155
1163
  return e;
1156
1164
  }
1157
1165
  }
1158
- const Wn = ({
1166
+ const Nn = ({
1159
1167
  block: e,
1160
1168
  registeredComponents: t
1161
1169
  }) => {
@@ -1169,7 +1177,7 @@ const Wn = ({
1169
1177
  console.warn(`
1170
1178
  Could not find a registered component named "${n}".
1171
1179
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
1172
- }, Nn = ({
1180
+ }, On = ({
1173
1181
  block: e,
1174
1182
  context: t
1175
1183
  }) => {
@@ -1202,59 +1210,59 @@ const Wn = ({
1202
1210
  },
1203
1211
  block: o
1204
1212
  }));
1205
- }, On = (e, t) => {
1213
+ }, Fn = (e, t) => {
1206
1214
  var n;
1207
1215
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
1208
1216
  builderLinkComponent: t
1209
1217
  } : {};
1210
- }, Fn = (e, t) => {
1218
+ }, Dn = (e, t) => {
1211
1219
  var n;
1212
1220
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
1213
1221
  builderComponents: t
1214
1222
  } : {};
1215
- }, Dn = (e, t) => {
1223
+ }, Ln = (e, t) => {
1216
1224
  var n;
1217
1225
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
1218
1226
  builderBlock: t
1219
1227
  } : {};
1220
- }, Ln = (e, t) => {
1228
+ }, Un = (e, t) => {
1221
1229
  var n;
1222
1230
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
1223
1231
  builderContext: t
1224
1232
  } : {};
1225
- }, Un = () => Promise.resolve().then(() => eo).then((e) => e.default).catch((e) => {
1233
+ }, Mn = () => Promise.resolve().then(() => to).then((e) => e.default).catch((e) => {
1226
1234
  throw console.error(
1227
1235
  "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
1228
1236
  e
1229
1237
  ), e;
1230
- }), Mn = () => import("./block-styles-sDAdmEJM.js").then((e) => e.default).catch((e) => {
1238
+ }), Hn = () => import("./block-styles-QdL_P0Fx.js").then((e) => e.default).catch((e) => {
1231
1239
  throw console.error(
1232
1240
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
1233
1241
  e
1234
1242
  ), e;
1235
- }), Hn = () => import("./block-wrapper-xFO-VLSm.js").then((e) => e.default).catch((e) => {
1243
+ }), jn = () => import("./block-wrapper-7IkLgp7x.js").then((e) => e.default).catch((e) => {
1236
1244
  throw console.error(
1237
1245
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
1238
1246
  e
1239
1247
  ), e;
1240
- }), jn = () => import("./component-ref-SgAsKv83.js").then((e) => e.default).catch((e) => {
1248
+ }), Kn = () => import("./component-ref-llprrwE2.js").then((e) => e.default).catch((e) => {
1241
1249
  throw console.error(
1242
1250
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
1243
1251
  e
1244
1252
  ), e;
1245
- }), Kn = () => import("./repeated-block-iaodALqW.js").then((e) => e.default).catch((e) => {
1253
+ }), qn = () => import("./repeated-block-dHROvYhN.js").then((e) => e.default).catch((e) => {
1246
1254
  throw console.error(
1247
1255
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
1248
1256
  e
1249
1257
  ), e;
1250
- }), qn = f({
1258
+ }), zn = b({
1251
1259
  name: "block",
1252
1260
  components: {
1253
- BlockStyles: M(Mn),
1254
- RepeatedBlock: M(Kn),
1255
- ComponentRef: M(jn),
1256
- BlockWrapper: M(Hn),
1257
- DynamicDiv: M(Un)
1261
+ BlockStyles: H(Hn),
1262
+ RepeatedBlock: H(qn),
1263
+ ComponentRef: H(Kn),
1264
+ BlockWrapper: H(jn),
1265
+ DynamicDiv: H(Mn)
1258
1266
  },
1259
1267
  props: ["block", "context", "registeredComponents", "linkComponent"],
1260
1268
  data() {
@@ -1267,7 +1275,7 @@ const Wn = ({
1267
1275
  },
1268
1276
  mounted() {
1269
1277
  const e = this.processedBlock.id, t = this.processedBlock.animations;
1270
- t && e && Pn(
1278
+ t && e && Bn(
1271
1279
  t.map((n) => ({
1272
1280
  ...n,
1273
1281
  elementId: e
@@ -1278,14 +1286,14 @@ const Wn = ({
1278
1286
  },
1279
1287
  computed: {
1280
1288
  repeatItem() {
1281
- return Nn({
1289
+ return On({
1282
1290
  block: this.block,
1283
1291
  context: this.context
1284
1292
  });
1285
1293
  },
1286
1294
  processedBlock() {
1287
1295
  var t;
1288
- return (t = this.block.repeat) != null && t.collection ? this.block : Ht({
1296
+ return (t = this.block.repeat) != null && t.collection ? this.block : jt({
1289
1297
  block: this.block,
1290
1298
  localState: this.context.localState,
1291
1299
  rootState: this.context.rootState,
@@ -1295,7 +1303,7 @@ const Wn = ({
1295
1303
  });
1296
1304
  },
1297
1305
  blockComponent() {
1298
- return Wn({
1306
+ return Nn({
1299
1307
  block: this.processedBlock,
1300
1308
  registeredComponents: this.registeredComponents
1301
1309
  });
@@ -1321,11 +1329,11 @@ const Wn = ({
1321
1329
  blockChildren: this.processedBlock.children ?? [],
1322
1330
  componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
1323
1331
  componentOptions: {
1324
- ...Tt(this.processedBlock),
1325
- ...Dn(this.blockComponent, this.processedBlock),
1326
- ...Ln(this.blockComponent, this.context),
1327
- ...On(this.blockComponent, this.linkComponent),
1328
- ...Fn(
1332
+ ...It(this.processedBlock),
1333
+ ...Ln(this.blockComponent, this.processedBlock),
1334
+ ...Un(this.blockComponent, this.context),
1335
+ ...Fn(this.blockComponent, this.linkComponent),
1336
+ ...Dn(
1329
1337
  this.blockComponent,
1330
1338
  this.registeredComponents
1331
1339
  )
@@ -1335,27 +1343,27 @@ const Wn = ({
1335
1343
  registeredComponents: this.registeredComponents,
1336
1344
  builderBlock: this.processedBlock,
1337
1345
  includeBlockProps: ((t = this.blockComponent) == null ? void 0 : t.noWrap) === !0,
1338
- isInteractive: !((n = this.blockComponent) != null && n.isRSC && R === "rsc")
1346
+ isInteractive: !((n = this.blockComponent) != null && n.isRSC && P === "rsc")
1339
1347
  };
1340
1348
  }
1341
1349
  }
1342
1350
  });
1343
- function zn(e, t, n, o, r, i) {
1344
- var c;
1345
- const s = v("BlockStyles"), l = v("ComponentRef"), a = v("Block", !0), u = v("BlockWrapper"), h = v("RepeatedBlock");
1346
- return e.canShowBlock ? (d(), m(w, { key: 0 }, [
1347
- $(s, {
1351
+ function Gn(e, t, n, o, r, i) {
1352
+ var h;
1353
+ const s = k("BlockStyles"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), m = k("RepeatedBlock");
1354
+ return e.canShowBlock ? (c(), p(T, { key: 0 }, [
1355
+ R(s, {
1348
1356
  block: e.processedBlock,
1349
1357
  context: e.context
1350
1358
  }, null, 8, ["block", "context"]),
1351
- (c = e.blockComponent) != null && c.noWrap ? (d(), m(w, { key: 1 }, [
1352
- e.repeatItem ? (d(!0), m(w, { key: 1 }, A(e.repeatItem, (p, y) => (d(), k(h, {
1353
- key: y,
1354
- repeatContext: p.context,
1355
- block: p.block,
1359
+ (h = e.blockComponent) != null && h.noWrap ? (c(), p(T, { key: 1 }, [
1360
+ e.repeatItem ? (c(!0), p(T, { key: 1 }, V(e.repeatItem, (d, f) => (c(), y(m, {
1361
+ key: f,
1362
+ repeatContext: d.context,
1363
+ block: d.block,
1356
1364
  registeredComponents: e.registeredComponents,
1357
1365
  linkComponent: e.linkComponent
1358
- }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (d(), k(l, {
1366
+ }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (c(), y(l, {
1359
1367
  key: 0,
1360
1368
  componentRef: e.componentRefProps.componentRef,
1361
1369
  componentOptions: e.componentRefProps.componentOptions,
@@ -1367,21 +1375,21 @@ function zn(e, t, n, o, r, i) {
1367
1375
  includeBlockProps: e.componentRefProps.includeBlockProps,
1368
1376
  isInteractive: e.componentRefProps.isInteractive
1369
1377
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
1370
- ], 64)) : (d(), m(w, { key: 0 }, [
1371
- e.repeatItem ? (d(!0), m(w, { key: 1 }, A(e.repeatItem, (p, y) => (d(), k(h, {
1372
- key: y,
1373
- repeatContext: p.context,
1374
- block: p.block,
1378
+ ], 64)) : (c(), p(T, { key: 0 }, [
1379
+ e.repeatItem ? (c(!0), p(T, { key: 1 }, V(e.repeatItem, (d, f) => (c(), y(m, {
1380
+ key: f,
1381
+ repeatContext: d.context,
1382
+ block: d.block,
1375
1383
  registeredComponents: e.registeredComponents,
1376
1384
  linkComponent: e.linkComponent
1377
- }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (d(), k(u, {
1385
+ }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (c(), y(u, {
1378
1386
  key: 0,
1379
1387
  Wrapper: e.Tag,
1380
1388
  block: e.processedBlock,
1381
1389
  context: e.context
1382
1390
  }, {
1383
- default: W(() => [
1384
- $(l, {
1391
+ default: N(() => [
1392
+ R(l, {
1385
1393
  componentRef: e.componentRefProps.componentRef,
1386
1394
  componentOptions: e.componentRefProps.componentOptions,
1387
1395
  blockChildren: e.componentRefProps.blockChildren,
@@ -1392,9 +1400,9 @@ function zn(e, t, n, o, r, i) {
1392
1400
  includeBlockProps: e.componentRefProps.includeBlockProps,
1393
1401
  isInteractive: e.componentRefProps.isInteractive
1394
1402
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
1395
- (d(!0), m(w, null, A(e.childrenWithoutParentComponent, (p, y) => (d(), k(a, {
1396
- key: p.id,
1397
- block: p,
1403
+ (c(!0), p(T, null, V(e.childrenWithoutParentComponent, (d, f) => (c(), y(a, {
1404
+ key: d.id,
1405
+ block: d,
1398
1406
  registeredComponents: e.registeredComponents,
1399
1407
  linkComponent: e.linkComponent,
1400
1408
  context: e.context
@@ -1403,12 +1411,12 @@ function zn(e, t, n, o, r, i) {
1403
1411
  _: 1
1404
1412
  }, 8, ["Wrapper", "block", "context"]))
1405
1413
  ], 64))
1406
- ], 64)) : S("", !0);
1414
+ ], 64)) : v("", !0);
1407
1415
  }
1408
- const be = /* @__PURE__ */ b(qn, [["render", zn]]), Li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1416
+ const ge = /* @__PURE__ */ g(zn, [["render", Gn]]), Ui = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1409
1417
  __proto__: null,
1410
- default: be
1411
- }, Symbol.toStringTag, { value: "Module" })), Jn = f({
1418
+ default: ge
1419
+ }, Symbol.toStringTag, { value: "Module" })), Jn = b({
1412
1420
  name: "builder-blocks-wrapper",
1413
1421
  props: [
1414
1422
  "blocks",
@@ -1440,7 +1448,7 @@ const be = /* @__PURE__ */ b(qn, [["render", zn]]), Li = /* @__PURE__ */ Object.
1440
1448
  methods: {
1441
1449
  onClick() {
1442
1450
  var e, t;
1443
- E() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1451
+ B() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1444
1452
  {
1445
1453
  type: "builder.clickEmptyBlocks",
1446
1454
  data: {
@@ -1453,7 +1461,7 @@ const be = /* @__PURE__ */ b(qn, [["render", zn]]), Li = /* @__PURE__ */ Object.
1453
1461
  },
1454
1462
  onMouseEnter() {
1455
1463
  var e, t;
1456
- E() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1464
+ B() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1457
1465
  {
1458
1466
  type: "builder.hoverEmptyBlocks",
1459
1467
  data: {
@@ -1466,8 +1474,8 @@ const be = /* @__PURE__ */ b(qn, [["render", zn]]), Li = /* @__PURE__ */ Object.
1466
1474
  }
1467
1475
  }
1468
1476
  });
1469
- function Gn(e, t, n, o, r, i) {
1470
- return d(), k(H(e.BlocksWrapper), C({
1477
+ function Yn(e, t, n, o, r, i) {
1478
+ return c(), y(j(e.BlocksWrapper), C({
1471
1479
  ref: "blocksWrapperRef",
1472
1480
  class: e.className + " component-1k2igrjdg3x",
1473
1481
  "builder-path": e.dataPath,
@@ -1477,15 +1485,15 @@ function Gn(e, t, n, o, r, i) {
1477
1485
  onMouseEnter: (s) => e.onMouseEnter(),
1478
1486
  onKeyPress: (s) => e.onClick()
1479
1487
  }, { ...e.BlocksWrapperProps }), {
1480
- default: W(() => [
1481
- x(e.$slots, "default", {}, void 0, !0)
1488
+ default: N(() => [
1489
+ A(e.$slots, "default", {}, void 0, !0)
1482
1490
  ]),
1483
1491
  _: 3
1484
1492
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
1485
1493
  }
1486
- const Yn = /* @__PURE__ */ b(Jn, [["render", Gn], ["__scopeId", "data-v-ba2bc5c0"]]), Xn = f({
1494
+ const Xn = /* @__PURE__ */ g(Jn, [["render", Yn], ["__scopeId", "data-v-ba2bc5c0"]]), Qn = b({
1487
1495
  name: "builder-blocks",
1488
- components: { BlocksWrapper: Yn, Block: be },
1496
+ components: { BlocksWrapper: Xn, Block: ge },
1489
1497
  props: [
1490
1498
  "blocks",
1491
1499
  "parent",
@@ -1498,51 +1506,51 @@ const Yn = /* @__PURE__ */ b(Jn, [["render", Gn], ["__scopeId", "data-v-ba2bc5c0
1498
1506
  ],
1499
1507
  inject: {
1500
1508
  builderContext: se.key,
1501
- componentsContext: Be.key
1509
+ componentsContext: xe.key
1502
1510
  }
1503
1511
  });
1504
- function Qn(e, t, n, o, r, i) {
1505
- var a, u, h, c;
1506
- const s = v("Block"), l = v("BlocksWrapper");
1507
- return d(), k(l, {
1512
+ function Zn(e, t, n, o, r, i) {
1513
+ var a, u, m, h;
1514
+ const s = k("Block"), l = k("BlocksWrapper");
1515
+ return c(), y(l, {
1508
1516
  blocks: e.blocks,
1509
1517
  parent: e.parent,
1510
1518
  path: e.path,
1511
1519
  styleProp: e.styleProp,
1512
1520
  classNameProp: e.className,
1513
1521
  BlocksWrapper: ((a = e.context) == null ? void 0 : a.BlocksWrapper) || ((u = e.builderContext) == null ? void 0 : u.BlocksWrapper),
1514
- BlocksWrapperProps: ((h = e.context) == null ? void 0 : h.BlocksWrapperProps) || ((c = e.builderContext) == null ? void 0 : c.BlocksWrapperProps)
1522
+ BlocksWrapperProps: ((m = e.context) == null ? void 0 : m.BlocksWrapperProps) || ((h = e.builderContext) == null ? void 0 : h.BlocksWrapperProps)
1515
1523
  }, {
1516
- default: W(() => [
1517
- e.blocks ? (d(!0), m(w, { key: 0 }, A(e.blocks, (p, y) => {
1518
- var g;
1519
- return d(), k(s, {
1520
- key: p.id,
1521
- block: p,
1524
+ default: N(() => [
1525
+ e.blocks ? (c(!0), p(T, { key: 0 }, V(e.blocks, (d, f) => {
1526
+ var S;
1527
+ return c(), y(s, {
1528
+ key: d.id,
1529
+ block: d,
1522
1530
  linkComponent: e.linkComponent,
1523
1531
  context: e.context || e.builderContext,
1524
- registeredComponents: e.registeredComponents || ((g = e.componentsContext) == null ? void 0 : g.registeredComponents)
1532
+ registeredComponents: e.registeredComponents || ((S = e.componentsContext) == null ? void 0 : S.registeredComponents)
1525
1533
  }, null, 8, ["block", "linkComponent", "context", "registeredComponents"]);
1526
- }), 128)) : S("", !0)
1534
+ }), 128)) : v("", !0)
1527
1535
  ]),
1528
1536
  _: 1
1529
1537
  }, 8, ["blocks", "parent", "path", "styleProp", "classNameProp", "BlocksWrapper", "BlocksWrapperProps"]);
1530
1538
  }
1531
- const L = /* @__PURE__ */ b(Xn, [["render", Qn]]), Zn = f({
1539
+ const U = /* @__PURE__ */ g(Qn, [["render", Zn]]), _n = b({
1532
1540
  name: "dynamic-div",
1533
1541
  props: []
1534
1542
  });
1535
- function _n(e, t, n, o, r, i) {
1536
- return d(), m("div", null, [
1537
- x(e.$slots, "default")
1543
+ function eo(e, t, n, o, r, i) {
1544
+ return c(), p("div", null, [
1545
+ A(e.$slots, "default")
1538
1546
  ]);
1539
1547
  }
1540
- const G = /* @__PURE__ */ b(Zn, [["render", _n]]), eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1548
+ const Y = /* @__PURE__ */ g(_n, [["render", eo]]), to = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1541
1549
  __proto__: null,
1542
- default: G
1543
- }, Symbol.toStringTag, { value: "Module" })), ge = f({
1550
+ default: Y
1551
+ }, Symbol.toStringTag, { value: "Module" })), ye = b({
1544
1552
  render() {
1545
- return Pe("style", {
1553
+ return Be("style", {
1546
1554
  innerHTML: this.styles,
1547
1555
  "data-id": this.id,
1548
1556
  nonce: this.nonce
@@ -1550,7 +1558,7 @@ const G = /* @__PURE__ */ b(Zn, [["render", _n]]), eo = /* @__PURE__ */ Object.f
1550
1558
  },
1551
1559
  name: "inlined-styles",
1552
1560
  props: ["styles", "id", "nonce"]
1553
- }), it = {
1561
+ }), st = {
1554
1562
  small: {
1555
1563
  min: 320,
1556
1564
  default: 321,
@@ -1566,11 +1574,11 @@ const G = /* @__PURE__ */ b(Zn, [["render", _n]]), eo = /* @__PURE__ */ Object.f
1566
1574
  default: 991,
1567
1575
  max: 1200
1568
1576
  }
1569
- }, Ui = (e, t = it) => `@media (max-width: ${t[e].max}px)`, to = ({
1577
+ }, Mi = (e, t = st) => `@media (max-width: ${t[e].max}px)`, no = ({
1570
1578
  small: e,
1571
1579
  medium: t
1572
1580
  }) => {
1573
- const n = ue(it);
1581
+ const n = ue(st);
1574
1582
  if (!e || !t)
1575
1583
  return n;
1576
1584
  const o = Math.floor(e / 2);
@@ -1592,13 +1600,13 @@ const G = /* @__PURE__ */ b(Zn, [["render", _n]]), eo = /* @__PURE__ */ Object.f
1592
1600
  min: i,
1593
1601
  default: i + 1
1594
1602
  }, n;
1595
- }, no = (e) => `builder-columns ${e}-breakpoints`, oo = f({
1603
+ }, oo = (e) => `builder-columns ${e}-breakpoints`, ro = b({
1596
1604
  name: "builder-columns",
1597
1605
  components: {
1598
- InlinedStyles: ge,
1606
+ InlinedStyles: ye,
1599
1607
  DynamicRenderer: de,
1600
- Blocks: L,
1601
- DynamicDiv: G
1608
+ Blocks: U,
1609
+ DynamicDiv: Y
1602
1610
  },
1603
1611
  props: [
1604
1612
  "space",
@@ -1611,7 +1619,7 @@ const G = /* @__PURE__ */ b(Zn, [["render", _n]]), eo = /* @__PURE__ */ Object.f
1611
1619
  "builderComponents"
1612
1620
  ],
1613
1621
  data() {
1614
- return { TARGET: R, getColumnsClass: no };
1622
+ return { TARGET: P, getColumnsClass: oo };
1615
1623
  },
1616
1624
  computed: {
1617
1625
  gutterSize() {
@@ -1690,7 +1698,7 @@ const G = /* @__PURE__ */ b(Zn, [["render", _n]]), eo = /* @__PURE__ */ Object.f
1690
1698
  },
1691
1699
  getWidthForBreakpointSize(e) {
1692
1700
  var n, o;
1693
- return to(
1701
+ return no(
1694
1702
  ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
1695
1703
  )[e].max;
1696
1704
  },
@@ -1728,33 +1736,33 @@ const G = /* @__PURE__ */ b(Zn, [["render", _n]]), eo = /* @__PURE__ */ Object.f
1728
1736
  href: e.link
1729
1737
  } : {},
1730
1738
  [Z()]: "builder-column",
1731
- style: rt(this.columnCssVars(t))
1739
+ style: it(this.columnCssVars(t))
1732
1740
  };
1733
1741
  }
1734
1742
  }
1735
1743
  });
1736
- function ro(e, t, n, o, r, i) {
1744
+ function io(e, t, n, o, r, i) {
1737
1745
  var u;
1738
- const s = v("InlinedStyles"), l = v("Blocks"), a = v("DynamicRenderer");
1739
- return d(), m("div", C({
1746
+ const s = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
1747
+ return c(), p("div", C({
1740
1748
  class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-4wbls88y960",
1741
1749
  style: e.columnsCssVars()
1742
1750
  }, {}), [
1743
- e.TARGET !== "reactNative" ? (d(), k(s, {
1751
+ e.TARGET !== "reactNative" ? (c(), y(s, {
1744
1752
  key: 0,
1745
1753
  id: "builderio-columns",
1746
1754
  styles: e.columnsStyles(),
1747
1755
  nonce: e.builderContext.nonce
1748
- }, null, 8, ["styles", "nonce"])) : S("", !0),
1749
- (d(!0), m(w, null, A(e.columns, (h, c) => (d(), k(a, {
1750
- key: c,
1751
- TagName: e.getTagName(h),
1756
+ }, null, 8, ["styles", "nonce"])) : v("", !0),
1757
+ (c(!0), p(T, null, V(e.columns, (m, h) => (c(), y(a, {
1758
+ key: h,
1759
+ TagName: e.getTagName(m),
1752
1760
  actionAttributes: {},
1753
- attributes: e.getAttributes(h, c)
1761
+ attributes: e.getAttributes(m, h)
1754
1762
  }, {
1755
- default: W(() => [
1756
- $(l, {
1757
- path: `columns.${c}.blocks`,
1763
+ default: N(() => [
1764
+ R(l, {
1765
+ path: `columns.${h}.blocks`,
1758
1766
  parent: e.builderBlock.id,
1759
1767
  styleProp: {
1760
1768
  flexGrow: "1"
@@ -1762,39 +1770,39 @@ function ro(e, t, n, o, r, i) {
1762
1770
  context: e.builderContext,
1763
1771
  registeredComponents: e.builderComponents,
1764
1772
  linkComponent: e.builderLinkComponent,
1765
- blocks: h.blocks
1773
+ blocks: m.blocks
1766
1774
  }, null, 8, ["path", "parent", "context", "registeredComponents", "linkComponent", "blocks"])
1767
1775
  ]),
1768
1776
  _: 2
1769
1777
  }, 1032, ["TagName", "attributes"]))), 128))
1770
1778
  ], 16);
1771
1779
  }
1772
- const io = /* @__PURE__ */ b(oo, [["render", ro], ["__scopeId", "data-v-3354f136"]]), so = f({
1780
+ const so = /* @__PURE__ */ g(ro, [["render", io], ["__scopeId", "data-v-3354f136"]]), ao = b({
1773
1781
  name: "builder-fragment-component",
1774
1782
  props: []
1775
1783
  });
1776
- function ao(e, t, n, o, r, i) {
1777
- return d(), m("span", null, [
1778
- x(e.$slots, "default")
1784
+ function lo(e, t, n, o, r, i) {
1785
+ return c(), p("span", null, [
1786
+ A(e.$slots, "default")
1779
1787
  ]);
1780
1788
  }
1781
- const lo = /* @__PURE__ */ b(so, [["render", ao]]);
1782
- function Ie(e) {
1789
+ const co = /* @__PURE__ */ g(ao, [["render", lo]]);
1790
+ function $e(e) {
1783
1791
  return e.replace(/http(s)?:/, "");
1784
1792
  }
1785
- function co(e = "", t, n) {
1793
+ function uo(e = "", t, n) {
1786
1794
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
1787
1795
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
1788
1796
  }
1789
- function uo(e, t) {
1797
+ function po(e, t) {
1790
1798
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1791
1799
  return e;
1792
1800
  if (t === "master")
1793
- return Ie(e);
1801
+ return $e(e);
1794
1802
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1795
1803
  if (n) {
1796
1804
  const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
1797
- return Ie(`${o[0]}_${i}${r}`);
1805
+ return $e(`${o[0]}_${i}${r}`);
1798
1806
  }
1799
1807
  return null;
1800
1808
  }
@@ -1805,11 +1813,11 @@ function te(e) {
1805
1813
  if (e.match(/builder\.io/)) {
1806
1814
  let n = e;
1807
1815
  const o = Number(e.split("?width=")[1]);
1808
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${co(e, "width", r)} ${r}w`).concat([n]).join(", ");
1816
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${uo(e, "width", r)} ${r}w`).concat([n]).join(", ");
1809
1817
  }
1810
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [uo(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1818
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [po(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1811
1819
  }
1812
- const po = f({
1820
+ const mo = b({
1813
1821
  name: "builder-image",
1814
1822
  props: [
1815
1823
  "image",
@@ -1860,20 +1868,20 @@ const po = f({
1860
1868
  return this.aspectRatio ? e : void 0;
1861
1869
  }
1862
1870
  }
1863
- }), mo = ["srcset"], ho = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], fo = {
1871
+ }), ho = ["srcset"], fo = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], bo = {
1864
1872
  key: 2,
1865
1873
  class: "div-29wpyomtntv-2"
1866
1874
  };
1867
- function bo(e, t, n, o, r, i) {
1868
- var s, l, a, u, h, c;
1869
- return d(), m(w, null, [
1870
- K("picture", null, [
1871
- e.webpSrcSet ? (d(), m("source", {
1875
+ function go(e, t, n, o, r, i) {
1876
+ var s, l, a, u, m, h;
1877
+ return c(), p(T, null, [
1878
+ q("picture", null, [
1879
+ e.webpSrcSet ? (c(), p("source", {
1872
1880
  key: 0,
1873
1881
  type: "image/webp",
1874
1882
  srcset: e.webpSrcSet
1875
- }, null, 8, mo)) : S("", !0),
1876
- K("img", {
1883
+ }, null, 8, ho)) : v("", !0),
1884
+ q("img", {
1877
1885
  loading: e.highPriority ? "eager" : "lazy",
1878
1886
  fetchpriority: e.highPriority ? "high" : "auto",
1879
1887
  alt: e.altText,
@@ -1883,36 +1891,36 @@ function bo(e, t, n, o, r, i) {
1883
1891
  objectFit: e.backgroundSize || "cover",
1884
1892
  ...e.aspectRatioCss
1885
1893
  }),
1886
- class: q(
1894
+ class: z(
1887
1895
  "builder-image" + (e.className ? " " + e.className : "") + " img-29wpyomtntv"
1888
1896
  ),
1889
1897
  src: e.image,
1890
1898
  srcset: e.srcSetToUse,
1891
1899
  sizes: e.sizes
1892
- }, null, 14, ho)
1900
+ }, null, 14, fo)
1893
1901
  ]),
1894
- e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (d(), m("div", {
1902
+ e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (c(), p("div", {
1895
1903
  key: 0,
1896
1904
  class: "builder-image-sizer div-29wpyomtntv",
1897
1905
  style: F({
1898
1906
  paddingTop: e.aspectRatio * 100 + "%"
1899
1907
  })
1900
- }, null, 4)) : S("", !0),
1901
- (u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? x(e.$slots, "default", { key: 1 }, void 0, !0) : S("", !0),
1902
- !e.fitContent && ((c = (h = e.builderBlock) == null ? void 0 : h.children) != null && c.length) ? (d(), m("div", fo, [
1903
- x(e.$slots, "default", {}, void 0, !0)
1904
- ])) : S("", !0)
1908
+ }, null, 4)) : v("", !0),
1909
+ (u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? A(e.$slots, "default", { key: 1 }, void 0, !0) : v("", !0),
1910
+ !e.fitContent && ((h = (m = e.builderBlock) == null ? void 0 : m.children) != null && h.length) ? (c(), p("div", bo, [
1911
+ A(e.$slots, "default", {}, void 0, !0)
1912
+ ])) : v("", !0)
1905
1913
  ], 64);
1906
1914
  }
1907
- const go = /* @__PURE__ */ b(po, [["render", bo], ["__scopeId", "data-v-77f8a6c4"]]), yo = f({
1915
+ const yo = /* @__PURE__ */ g(mo, [["render", go], ["__scopeId", "data-v-77f8a6c4"]]), ko = b({
1908
1916
  name: "builder-section-component",
1909
1917
  props: ["attributes", "maxWidth"],
1910
1918
  data() {
1911
- return { filterAttrs: V };
1919
+ return { filterAttrs: W };
1912
1920
  }
1913
1921
  });
1914
- function ko(e, t, n, o, r, i) {
1915
- return d(), m("section", C({
1922
+ function vo(e, t, n, o, r, i) {
1923
+ return c(), p("section", C({
1916
1924
  style: {
1917
1925
  width: "100%",
1918
1926
  alignSelf: "stretch",
@@ -1925,11 +1933,11 @@ function ko(e, t, n, o, r, i) {
1925
1933
  marginLeft: "auto",
1926
1934
  marginRight: "auto"
1927
1935
  }
1928
- }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
1929
- x(e.$slots, "default")
1936
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
1937
+ A(e.$slots, "default")
1930
1938
  ], 16);
1931
1939
  }
1932
- const vo = /* @__PURE__ */ b(yo, [["render", ko]]), ne = {
1940
+ const So = /* @__PURE__ */ g(ko, [["render", vo]]), ne = {
1933
1941
  "@type": "@builder.io/sdk:Element",
1934
1942
  layerName: "Accordion item title",
1935
1943
  responsiveStyles: {
@@ -1989,7 +1997,7 @@ const vo = /* @__PURE__ */ b(yo, [["render", ko]]), ne = {
1989
1997
  }
1990
1998
  }
1991
1999
  }]
1992
- }, So = {
2000
+ }, Co = {
1993
2001
  name: "Builder:Accordion",
1994
2002
  canHaveChildren: !0,
1995
2003
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -2053,9 +2061,9 @@ const vo = /* @__PURE__ */ b(yo, [["render", ko]]), ne = {
2053
2061
  builderComponents: !0,
2054
2062
  builderLinkComponent: !0
2055
2063
  }
2056
- }, Co = (e) => e.toString(), wo = f({
2064
+ }, wo = (e) => e.toString(), To = b({
2057
2065
  name: "builder-accordion",
2058
- components: { Blocks: L },
2066
+ components: { Blocks: U },
2059
2067
  props: [
2060
2068
  "grid",
2061
2069
  "oneAtATime",
@@ -2067,7 +2075,7 @@ const vo = /* @__PURE__ */ b(yo, [["render", ko]]), ne = {
2067
2075
  "builderLinkComponent"
2068
2076
  ],
2069
2077
  data() {
2070
- return { open: [], convertOrderNumberToString: Co };
2078
+ return { open: [], convertOrderNumberToString: wo };
2071
2079
  },
2072
2080
  computed: {
2073
2081
  onlyOneAtATime() {
@@ -2148,16 +2156,16 @@ const vo = /* @__PURE__ */ b(yo, [["render", ko]]), ne = {
2148
2156
  this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
2149
2157
  }
2150
2158
  }
2151
- }), To = ["data-index", "onClick"];
2152
- function Io(e, t, n, o, r, i) {
2153
- const s = v("Blocks");
2154
- return d(), m("div", {
2159
+ }), Io = ["data-index", "onClick"];
2160
+ function $o(e, t, n, o, r, i) {
2161
+ const s = k("Blocks");
2162
+ return c(), p("div", {
2155
2163
  class: "builder-accordion",
2156
2164
  style: F(e.accordionStyles)
2157
2165
  }, [
2158
- (d(!0), m(w, null, A(e.items, (l, a) => (d(), m(w, { key: a }, [
2159
- K("div", {
2160
- class: q(e.getAccordionTitleClassName(a)),
2166
+ (c(!0), p(T, null, V(e.items, (l, a) => (c(), p(T, { key: a }, [
2167
+ q("div", {
2168
+ class: z(e.getAccordionTitleClassName(a)),
2161
2169
  style: F({
2162
2170
  ...e.accordionTitleStyles,
2163
2171
  ...e.grid && {
@@ -2168,7 +2176,7 @@ function Io(e, t, n, o, r, i) {
2168
2176
  "data-index": a,
2169
2177
  onClick: (u) => e.onClick(a)
2170
2178
  }, [
2171
- $(s, {
2179
+ R(s, {
2172
2180
  blocks: l.title,
2173
2181
  path: `items.${a}.title`,
2174
2182
  parent: e.builderBlock.id,
@@ -2176,13 +2184,13 @@ function Io(e, t, n, o, r, i) {
2176
2184
  registeredComponents: e.builderComponents,
2177
2185
  linkComponent: e.builderLinkComponent
2178
2186
  }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
2179
- ], 14, To),
2180
- e.open.includes(a) ? (d(), m("div", {
2187
+ ], 14, Io),
2188
+ e.open.includes(a) ? (c(), p("div", {
2181
2189
  key: 0,
2182
- class: q(e.getAccordionDetailClassName(a)),
2190
+ class: z(e.getAccordionDetailClassName(a)),
2183
2191
  style: F(e.accordionDetailStyles)
2184
2192
  }, [
2185
- $(s, {
2193
+ R(s, {
2186
2194
  blocks: l.detail,
2187
2195
  path: `items.${a}.detail`,
2188
2196
  parent: e.builderBlock.id,
@@ -2190,11 +2198,11 @@ function Io(e, t, n, o, r, i) {
2190
2198
  registeredComponents: e.builderComponents,
2191
2199
  linkComponent: e.builderLinkComponent
2192
2200
  }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
2193
- ], 6)) : S("", !0)
2201
+ ], 6)) : v("", !0)
2194
2202
  ], 64))), 128))
2195
2203
  ], 4);
2196
2204
  }
2197
- const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
2205
+ const Ro = /* @__PURE__ */ g(To, [["render", $o]]), Eo = {
2198
2206
  name: "Core:Button",
2199
2207
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
2200
2208
  defaultStyles: {
@@ -2230,7 +2238,7 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
2230
2238
  shouldReceiveBuilderProps: {
2231
2239
  builderLinkComponent: !0
2232
2240
  }
2233
- }, Eo = {
2241
+ }, Po = {
2234
2242
  // TODO: ways to statically preprocess JSON for references, functions, etc
2235
2243
  name: "Columns",
2236
2244
  isRSC: !0,
@@ -2437,13 +2445,13 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
2437
2445
  builderComponents: !0,
2438
2446
  builderLinkComponent: !0
2439
2447
  }
2440
- }, Po = {
2448
+ }, Bo = {
2441
2449
  name: "Fragment",
2442
2450
  static: !0,
2443
2451
  hidden: !0,
2444
2452
  canHaveChildren: !0,
2445
2453
  noWrap: !0
2446
- }, Bo = {
2454
+ }, xo = {
2447
2455
  name: "Image",
2448
2456
  static: !0,
2449
2457
  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",
@@ -2465,14 +2473,14 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
2465
2473
  e.delete("srcset"), e.delete("noWebp");
2466
2474
  function n(s, l = 6e4) {
2467
2475
  return new Promise((a, u) => {
2468
- const h = document.createElement("img");
2469
- let c = !1;
2470
- h.onload = () => {
2471
- c = !0, a(h);
2472
- }, h.addEventListener("error", (p) => {
2473
- console.warn("Image load failed", p.error), u(p.error);
2474
- }), h.src = s, setTimeout(() => {
2475
- c || u(new Error("Image load timed out"));
2476
+ const m = document.createElement("img");
2477
+ let h = !1;
2478
+ m.onload = () => {
2479
+ h = !0, a(m);
2480
+ }, m.addEventListener("error", (d) => {
2481
+ console.warn("Image load failed", d.error), u(d.error);
2482
+ }), m.src = s, setTimeout(() => {
2483
+ h || u(new Error("Image load timed out"));
2476
2484
  }, l);
2477
2485
  });
2478
2486
  }
@@ -2551,7 +2559,7 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
2551
2559
  shouldReceiveBuilderProps: {
2552
2560
  builderBlock: !0
2553
2561
  }
2554
- }, xo = {
2562
+ }, Ao = {
2555
2563
  name: "Core:Section",
2556
2564
  static: !0,
2557
2565
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -2590,7 +2598,7 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
2590
2598
  }
2591
2599
  }
2592
2600
  }]
2593
- }, Ao = {
2601
+ }, Vo = {
2594
2602
  name: "Slot",
2595
2603
  isRSC: !0,
2596
2604
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -2607,15 +2615,15 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
2607
2615
  builderContext: !0,
2608
2616
  builderComponents: !0
2609
2617
  }
2610
- }, Vo = f({
2618
+ }, Wo = b({
2611
2619
  name: "builder-slot",
2612
- components: { Blocks: L },
2620
+ components: { Blocks: U },
2613
2621
  props: ["builderContext", "name", "builderComponents"]
2614
2622
  });
2615
- function Wo(e, t, n, o, r, i) {
2623
+ function No(e, t, n, o, r, i) {
2616
2624
  var l, a, u;
2617
- const s = v("Blocks");
2618
- return d(), m("div", C(
2625
+ const s = k("Blocks");
2626
+ return c(), p("div", C(
2619
2627
  { style: {
2620
2628
  pointerEvents: "auto"
2621
2629
  } },
@@ -2623,7 +2631,7 @@ function Wo(e, t, n, o, r, i) {
2623
2631
  "builder-slot": e.name
2624
2632
  }
2625
2633
  ), [
2626
- $(s, {
2634
+ R(s, {
2627
2635
  parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
2628
2636
  path: `symbol.data.${e.name}`,
2629
2637
  context: e.builderContext,
@@ -2632,7 +2640,7 @@ function Wo(e, t, n, o, r, i) {
2632
2640
  }, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
2633
2641
  ], 16);
2634
2642
  }
2635
- const No = /* @__PURE__ */ b(Vo, [["render", Wo]]), Oo = {
2643
+ const Oo = /* @__PURE__ */ g(Wo, [["render", No]]), Fo = {
2636
2644
  name: "Symbol",
2637
2645
  noWrap: !0,
2638
2646
  static: !0,
@@ -2709,7 +2717,7 @@ const No = /* @__PURE__ */ b(Vo, [["render", Wo]]), Oo = {
2709
2717
  text: "New tab content "
2710
2718
  }
2711
2719
  }
2712
- }, Fo = {
2720
+ }, Do = {
2713
2721
  name: "Builder: Tabs",
2714
2722
  inputs: [{
2715
2723
  name: "tabs",
@@ -2812,9 +2820,9 @@ const No = /* @__PURE__ */ b(Vo, [["render", Wo]]), Oo = {
2812
2820
  builderComponents: !0,
2813
2821
  builderLinkComponent: !0
2814
2822
  }
2815
- }, Do = f({
2823
+ }, Lo = b({
2816
2824
  name: "builder-tabs",
2817
- components: { Blocks: L },
2825
+ components: { Blocks: U },
2818
2826
  props: [
2819
2827
  "defaultActiveTab",
2820
2828
  "tabs",
@@ -2837,11 +2845,11 @@ const No = /* @__PURE__ */ b(Vo, [["render", Wo]]), Oo = {
2837
2845
  e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
2838
2846
  }
2839
2847
  }
2840
- }), Lo = ["onClick"], Uo = { key: 0 };
2841
- function Mo(e, t, n, o, r, i) {
2842
- const s = v("Blocks");
2843
- return d(), m("div", null, [
2844
- K("div", {
2848
+ }), Uo = ["onClick"], Mo = { key: 0 };
2849
+ function Ho(e, t, n, o, r, i) {
2850
+ const s = k("Blocks");
2851
+ return c(), p("div", null, [
2852
+ q("div", {
2845
2853
  class: "builder-tabs-wrap",
2846
2854
  style: F({
2847
2855
  display: "flex",
@@ -2850,15 +2858,15 @@ function Mo(e, t, n, o, r, i) {
2850
2858
  overflow: "auto"
2851
2859
  })
2852
2860
  }, [
2853
- (d(!0), m(w, null, A(e.tabs, (l, a) => (d(), m("span", {
2861
+ (c(!0), p(T, null, V(e.tabs, (l, a) => (c(), p("span", {
2854
2862
  key: a,
2855
- class: q(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
2863
+ class: z(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
2856
2864
  style: F({
2857
2865
  ...e.activeTab === a ? e.activeTabStyle : {}
2858
2866
  }),
2859
2867
  onClick: (u) => e.onClick(a)
2860
2868
  }, [
2861
- $(s, {
2869
+ R(s, {
2862
2870
  parent: e.builderBlock.id,
2863
2871
  path: `tabs.${a}.label`,
2864
2872
  blocks: l.label,
@@ -2866,10 +2874,10 @@ function Mo(e, t, n, o, r, i) {
2866
2874
  registeredComponents: e.builderComponents,
2867
2875
  linkComponent: e.builderLinkComponent
2868
2876
  }, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
2869
- ], 14, Lo))), 128))
2877
+ ], 14, Uo))), 128))
2870
2878
  ], 4),
2871
- e.activeTabContent(e.activeTab) ? (d(), m("div", Uo, [
2872
- $(s, {
2879
+ e.activeTabContent(e.activeTab) ? (c(), p("div", Mo, [
2880
+ R(s, {
2873
2881
  parent: e.builderBlock.id,
2874
2882
  path: `tabs.${e.activeTab}.content`,
2875
2883
  blocks: e.activeTabContent(e.activeTab),
@@ -2877,10 +2885,10 @@ function Mo(e, t, n, o, r, i) {
2877
2885
  registeredComponents: e.builderComponents,
2878
2886
  linkComponent: e.builderLinkComponent
2879
2887
  }, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
2880
- ])) : S("", !0)
2888
+ ])) : v("", !0)
2881
2889
  ]);
2882
2890
  }
2883
- const Ho = /* @__PURE__ */ b(Do, [["render", Mo]]), jo = {
2891
+ const jo = /* @__PURE__ */ g(Lo, [["render", Ho]]), Ko = {
2884
2892
  shouldReceiveBuilderProps: {
2885
2893
  builderBlock: !1,
2886
2894
  builderContext: !0
@@ -2902,7 +2910,7 @@ const Ho = /* @__PURE__ */ b(Do, [["render", Mo]]), jo = {
2902
2910
  height: "auto",
2903
2911
  textAlign: "center"
2904
2912
  }
2905
- }, Ko = f({
2913
+ }, qo = b({
2906
2914
  name: "builder-text",
2907
2915
  props: ["builderContext", "text"],
2908
2916
  computed: {
@@ -2926,17 +2934,17 @@ const Ho = /* @__PURE__ */ b(Do, [["render", Mo]]), jo = {
2926
2934
  );
2927
2935
  }
2928
2936
  }
2929
- }), qo = ["innerHTML"];
2930
- function zo(e, t, n, o, r, i) {
2931
- return d(), m("div", {
2937
+ }), zo = ["innerHTML"];
2938
+ function Go(e, t, n, o, r, i) {
2939
+ return c(), p("div", {
2932
2940
  class: "builder-text",
2933
2941
  innerHTML: e.processedText,
2934
2942
  style: {
2935
2943
  outline: "none"
2936
2944
  }
2937
- }, null, 8, qo);
2945
+ }, null, 8, zo);
2938
2946
  }
2939
- const Jo = /* @__PURE__ */ b(Ko, [["render", zo]]), Go = {
2947
+ const Jo = /* @__PURE__ */ g(qo, [["render", Go]]), Yo = {
2940
2948
  name: "Custom Code",
2941
2949
  static: !0,
2942
2950
  requiredPermissions: ["editCode"],
@@ -2958,7 +2966,7 @@ const Jo = /* @__PURE__ */ b(Ko, [["render", zo]]), Go = {
2958
2966
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
2959
2967
  advanced: !0
2960
2968
  }]
2961
- }, Yo = f({
2969
+ }, Xo = b({
2962
2970
  name: "builder-custom-code",
2963
2971
  props: ["replaceNodes", "code"],
2964
2972
  data() {
@@ -2992,15 +3000,15 @@ const Jo = /* @__PURE__ */ b(Ko, [["render", zo]]), Go = {
2992
3000
  }
2993
3001
  }
2994
3002
  }
2995
- }), Xo = ["innerHTML"];
2996
- function Qo(e, t, n, o, r, i) {
2997
- return d(), m("div", {
3003
+ }), Qo = ["innerHTML"];
3004
+ function Zo(e, t, n, o, r, i) {
3005
+ return c(), p("div", {
2998
3006
  ref: "elementRef",
2999
- class: q("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
3007
+ class: z("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
3000
3008
  innerHTML: e.code
3001
- }, null, 10, Xo);
3009
+ }, null, 10, Qo);
3002
3010
  }
3003
- const Zo = /* @__PURE__ */ b(Yo, [["render", Qo]]), _o = {
3011
+ const _o = /* @__PURE__ */ g(Xo, [["render", Zo]]), er = {
3004
3012
  name: "Embed",
3005
3013
  static: !0,
3006
3014
  inputs: [{
@@ -3015,7 +3023,7 @@ const Zo = /* @__PURE__ */ b(Yo, [["render", Qo]]), _o = {
3015
3023
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
3016
3024
  hideFromUI: !0
3017
3025
  }]
3018
- }, er = ["text/javascript", "application/javascript", "application/ecmascript"], tr = (e) => er.includes(e.type), nr = f({
3026
+ }, tr = ["text/javascript", "application/javascript", "application/ecmascript"], nr = (e) => tr.includes(e.type), or = b({
3019
3027
  name: "builder-embed",
3020
3028
  props: ["content"],
3021
3029
  data() {
@@ -3048,7 +3056,7 @@ const Zo = /* @__PURE__ */ b(Yo, [["render", Qo]]), _o = {
3048
3056
  this.scriptsInserted.push(n.src);
3049
3057
  const o = document.createElement("script");
3050
3058
  o.async = !0, o.src = n.src, document.head.appendChild(o);
3051
- } else if (tr(n) && !this.scriptsRun.includes(n.innerText))
3059
+ } else if (nr(n) && !this.scriptsRun.includes(n.innerText))
3052
3060
  try {
3053
3061
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
3054
3062
  } catch (o) {
@@ -3057,15 +3065,15 @@ const Zo = /* @__PURE__ */ b(Yo, [["render", Qo]]), _o = {
3057
3065
  }
3058
3066
  }
3059
3067
  }
3060
- }), or = ["innerHTML"];
3061
- function rr(e, t, n, o, r, i) {
3062
- return d(), m("div", {
3068
+ }), rr = ["innerHTML"];
3069
+ function ir(e, t, n, o, r, i) {
3070
+ return c(), p("div", {
3063
3071
  class: "builder-embed",
3064
3072
  ref: "elem",
3065
3073
  innerHTML: e.content
3066
- }, null, 8, or);
3074
+ }, null, 8, rr);
3067
3075
  }
3068
- const ir = /* @__PURE__ */ b(nr, [["render", rr]]), sr = {
3076
+ const sr = /* @__PURE__ */ g(or, [["render", ir]]), ar = {
3069
3077
  name: "Form:Form",
3070
3078
  // editableTags: ['builder-form-error']
3071
3079
  defaults: {
@@ -3302,12 +3310,12 @@ const ir = /* @__PURE__ */ b(nr, [["render", rr]]), sr = {
3302
3310
  builderComponents: !0,
3303
3311
  builderLinkComponent: !0
3304
3312
  }
3305
- }, ar = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], lr = () => {
3313
+ }, lr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], cr = () => {
3306
3314
  const e = process.env.NODE_ENV || "production";
3307
- return ar.includes(e) ? e : "production";
3308
- }, cr = f({
3315
+ return lr.includes(e) ? e : "production";
3316
+ }, dr = b({
3309
3317
  name: "builder-form-component",
3310
- components: { Block: be, Blocks: L },
3318
+ components: { Block: ge, Blocks: U },
3311
3319
  props: [
3312
3320
  "builderContext",
3313
3321
  "previewState",
@@ -3336,7 +3344,7 @@ const ir = /* @__PURE__ */ b(nr, [["render", rr]]), sr = {
3336
3344
  formState: "unsubmitted",
3337
3345
  responseData: null,
3338
3346
  formErrorMessage: "",
3339
- filterAttrs: V
3347
+ filterAttrs: W
3340
3348
  };
3341
3349
  },
3342
3350
  methods: {
@@ -3349,7 +3357,7 @@ const ir = /* @__PURE__ */ b(nr, [["render", rr]]), sr = {
3349
3357
  this.builderContext.rootSetState ? (o = (n = this.builderContext).rootSetState) == null || o.call(n, t) : this.builderContext.rootState = t;
3350
3358
  },
3351
3359
  submissionState() {
3352
- return E() && this.previewState || this.formState;
3360
+ return B() && this.previewState || this.formState;
3353
3361
  },
3354
3362
  onSubmit(e) {
3355
3363
  var n;
@@ -3364,40 +3372,40 @@ const ir = /* @__PURE__ */ b(nr, [["render", rr]]), sr = {
3364
3372
  e.preventDefault();
3365
3373
  const o = e.currentTarget || e.target, r = this.customHeaders || {};
3366
3374
  let i;
3367
- const s = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).map((c) => {
3368
- let p;
3369
- const y = c.name;
3370
- if (c instanceof HTMLInputElement)
3371
- if (c.type === "radio") {
3372
- if (c.checked)
3373
- return p = c.name, {
3374
- key: y,
3375
- value: p
3375
+ const s = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((d) => !!d.name).map((d) => {
3376
+ let f;
3377
+ const S = d.name;
3378
+ if (d instanceof HTMLInputElement)
3379
+ if (d.type === "radio") {
3380
+ if (d.checked)
3381
+ return f = d.name, {
3382
+ key: S,
3383
+ value: f
3376
3384
  };
3377
- } else if (c.type === "checkbox")
3378
- p = c.checked;
3379
- else if (c.type === "number" || c.type === "range") {
3380
- const g = c.valueAsNumber;
3381
- isNaN(g) || (p = g);
3385
+ } else if (d.type === "checkbox")
3386
+ f = d.checked;
3387
+ else if (d.type === "number" || d.type === "range") {
3388
+ const w = d.valueAsNumber;
3389
+ isNaN(w) || (f = w);
3382
3390
  } else
3383
- c.type === "file" ? p = c.files : p = c.value;
3391
+ d.type === "file" ? f = d.files : f = d.value;
3384
3392
  else
3385
- p = c.value;
3393
+ f = d.value;
3386
3394
  return {
3387
- key: y,
3388
- value: p
3395
+ key: S,
3396
+ value: f
3389
3397
  };
3390
3398
  });
3391
3399
  let a = this.contentType;
3392
- if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value: c }) => {
3393
- (c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (a = "multipart/form-data");
3400
+ if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value: d }) => {
3401
+ (d instanceof File || Array.isArray(d) && d[0] instanceof File || d instanceof FileList) && (a = "multipart/form-data");
3394
3402
  }), a !== "application/json")
3395
3403
  i = s;
3396
3404
  else {
3397
- const c = {};
3398
- Array.from(l).forEach(({ value: p, key: y }) => {
3399
- Oe(c, y, p);
3400
- }), i = JSON.stringify(c);
3405
+ const d = {};
3406
+ Array.from(l).forEach(({ value: f, key: S }) => {
3407
+ Fe(d, S, f);
3408
+ }), i = JSON.stringify(d);
3401
3409
  }
3402
3410
  a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
3403
3411
  const u = new CustomEvent("presubmit", {
@@ -3408,106 +3416,103 @@ const ir = /* @__PURE__ */ b(nr, [["render", rr]]), sr = {
3408
3416
  if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(u), u.defaultPrevented))
3409
3417
  return;
3410
3418
  this.formState = "sending";
3411
- const h = `${lr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
3419
+ const m = `${cr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
3412
3420
  this.sendSubmissionsToEmail || ""
3413
- )}&name=${encodeURIComponent(this.name || "")}`;
3414
- fetch(
3415
- this.sendSubmissionsTo === "email" ? h : this.action,
3416
- {
3417
- body: i,
3418
- headers: r,
3419
- method: this.method || "post"
3420
- }
3421
- ).then(
3422
- async (c) => {
3423
- let p;
3424
- const y = c.headers.get("content-type");
3425
- if (y && y.indexOf("application/json") !== -1 ? p = await c.json() : p = await c.text(), !c.ok && this.errorMessagePath) {
3426
- let g = xe(p, this.errorMessagePath);
3427
- g && (typeof g != "string" && (g = JSON.stringify(g)), this.formErrorMessage = g, this.mergeNewRootState({
3428
- formErrorMessage: g
3421
+ )}&name=${encodeURIComponent(this.name || "")}`, h = this.sendSubmissionsTo === "email" ? m : this.action;
3422
+ pe(h), fetch(h, {
3423
+ body: i,
3424
+ headers: r,
3425
+ method: this.method || "post"
3426
+ }).then(
3427
+ async (d) => {
3428
+ let f;
3429
+ const S = d.headers.get("content-type");
3430
+ if (S && S.indexOf("application/json") !== -1 ? f = await d.json() : f = await d.text(), !d.ok && this.errorMessagePath) {
3431
+ let w = Ae(f, this.errorMessagePath);
3432
+ w && (typeof w != "string" && (w = JSON.stringify(w)), this.formErrorMessage = w, this.mergeNewRootState({
3433
+ formErrorMessage: w
3429
3434
  }));
3430
3435
  }
3431
- if (this.responseData = p, this.formState = c.ok ? "success" : "error", c.ok) {
3432
- const g = new CustomEvent("submit:success", {
3436
+ if (this.responseData = f, this.formState = d.ok ? "success" : "error", d.ok) {
3437
+ const w = new CustomEvent("submit:success", {
3433
3438
  detail: {
3434
- res: c,
3435
- body: p
3439
+ res: d,
3440
+ body: f
3436
3441
  }
3437
3442
  });
3438
3443
  if (this.$refs.formRef) {
3439
- if (this.$refs.formRef.dispatchEvent(g), g.defaultPrevented)
3444
+ if (this.$refs.formRef.dispatchEvent(w), w.defaultPrevented)
3440
3445
  return;
3441
3446
  this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
3442
3447
  }
3443
3448
  if (this.successUrl)
3444
3449
  if (this.$refs.formRef) {
3445
- const N = new CustomEvent("route", {
3450
+ const L = new CustomEvent("route", {
3446
3451
  detail: {
3447
3452
  url: this.successUrl
3448
3453
  }
3449
3454
  });
3450
- this.$refs.formRef.dispatchEvent(N), N.defaultPrevented || (location.href = this.successUrl);
3455
+ this.$refs.formRef.dispatchEvent(L), L.defaultPrevented || (location.href = this.successUrl);
3451
3456
  } else
3452
3457
  location.href = this.successUrl;
3453
3458
  }
3454
3459
  },
3455
- (c) => {
3456
- const p = new CustomEvent("submit:error", {
3460
+ (d) => {
3461
+ const f = new CustomEvent("submit:error", {
3457
3462
  detail: {
3458
- error: c
3463
+ error: d
3459
3464
  }
3460
3465
  });
3461
- this.$refs.formRef && (this.$refs.formRef.dispatchEvent(p), p.defaultPrevented) || (this.responseData = c, this.formState = "error");
3466
+ this.$refs.formRef && (this.$refs.formRef.dispatchEvent(f), f.defaultPrevented) || (this.responseData = d, this.formState = "error");
3462
3467
  }
3463
3468
  );
3464
3469
  }
3465
3470
  }
3466
3471
  }
3467
- }), dr = ["validate", "action", "method", "name"], ur = {
3472
+ }), ur = ["validate", "action", "method", "name"], pr = {
3468
3473
  key: 3,
3469
3474
  class: "builder-form-error-text pre-3q96myty4lk"
3470
3475
  };
3471
- function pr(e, t, n, o, r, i) {
3476
+ function mr(e, t, n, o, r, i) {
3472
3477
  var a;
3473
- const s = v("Block"), l = v("Blocks");
3474
- return d(), m("form", C({
3478
+ const s = k("Block"), l = k("Blocks");
3479
+ return c(), p("form", C({
3475
3480
  validate: e.validate,
3476
3481
  ref: "formRef",
3477
3482
  action: !e.sendWithJs && e.action,
3478
3483
  method: e.method,
3479
3484
  name: e.name,
3480
3485
  onSubmit: t[0] || (t[0] = (u) => e.onSubmit(u))
3481
- }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3482
- e.builderBlock && e.builderBlock.children ? (d(!0), m(w, { key: 0 }, A((a = e.builderBlock) == null ? void 0 : a.children, (u, h) => (d(), k(s, {
3486
+ }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3487
+ e.builderBlock && e.builderBlock.children ? (c(!0), p(T, { key: 0 }, V((a = e.builderBlock) == null ? void 0 : a.children, (u, m) => (c(), y(s, {
3483
3488
  key: `form-block-${e.idx}`,
3484
3489
  block: u,
3485
3490
  context: e.builderContext,
3486
3491
  registeredComponents: e.builderComponents,
3487
3492
  linkComponent: e.builderLinkComponent
3488
- }, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128)) : S("", !0),
3489
- e.submissionState() === "error" ? (d(), k(l, {
3493
+ }, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128)) : v("", !0),
3494
+ e.submissionState() === "error" ? (c(), y(l, {
3490
3495
  key: 1,
3491
3496
  path: "errorMessage",
3492
3497
  blocks: e.errorMessage,
3493
3498
  context: e.builderContext
3494
- }, null, 8, ["blocks", "context"])) : S("", !0),
3495
- e.submissionState() === "sending" ? (d(), k(l, {
3499
+ }, null, 8, ["blocks", "context"])) : v("", !0),
3500
+ e.submissionState() === "sending" ? (c(), y(l, {
3496
3501
  key: 2,
3497
3502
  path: "sendingMessage",
3498
3503
  blocks: e.sendingMessage,
3499
3504
  context: e.builderContext
3500
- }, null, 8, ["blocks", "context"])) : S("", !0),
3501
- e.submissionState() === "error" && e.responseData ? (d(), m("pre", ur, ee(JSON.stringify(e.responseData, null, 2)), 1)) : S("", !0),
3502
- e.submissionState() === "success" ? (d(), k(l, {
3505
+ }, null, 8, ["blocks", "context"])) : v("", !0),
3506
+ e.submissionState() === "error" && e.responseData ? (c(), p("pre", pr, ee(JSON.stringify(e.responseData, null, 2)), 1)) : v("", !0),
3507
+ e.submissionState() === "success" ? (c(), y(l, {
3503
3508
  key: 4,
3504
3509
  path: "successMessage",
3505
3510
  blocks: e.successMessage,
3506
3511
  context: e.builderContext
3507
- }, null, 8, ["blocks", "context"])) : S("", !0)
3508
- ], 16, dr);
3512
+ }, null, 8, ["blocks", "context"])) : v("", !0)
3513
+ ], 16, ur);
3509
3514
  }
3510
- const mr = /* @__PURE__ */ b(cr, [["render", pr], ["__scopeId", "data-v-6e18f21b"]]), hr = {
3515
+ const hr = /* @__PURE__ */ g(dr, [["render", mr], ["__scopeId", "data-v-cd94d6c1"]]), fr = {
3511
3516
  name: "Form:Input",
3512
3517
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
3513
3518
  inputs: [
@@ -3558,7 +3563,7 @@ const mr = /* @__PURE__ */ b(cr, [["render", pr], ["__scopeId", "data-v-6e18f21b
3558
3563
  borderStyle: "solid",
3559
3564
  borderColor: "#ccc"
3560
3565
  }
3561
- }, fr = f({
3566
+ }, br = b({
3562
3567
  name: "builder-form-input-component",
3563
3568
  props: [
3564
3569
  "attributes",
@@ -3570,11 +3575,11 @@ const mr = /* @__PURE__ */ b(cr, [["render", pr], ["__scopeId", "data-v-6e18f21b
3570
3575
  "required"
3571
3576
  ],
3572
3577
  data() {
3573
- return { isEditing: E, filterAttrs: V };
3578
+ return { isEditing: B, filterAttrs: W };
3574
3579
  }
3575
- }), br = ["placeholder", "type", "name", "value", "defaultValue", "required"];
3576
- function gr(e, t, n, o, r, i) {
3577
- return d(), m("input", C({
3580
+ }), gr = ["placeholder", "type", "name", "value", "defaultValue", "required"];
3581
+ function yr(e, t, n, o, r, i) {
3582
+ return c(), p("input", C({
3578
3583
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
3579
3584
  placeholder: e.placeholder,
3580
3585
  type: e.type,
@@ -3582,9 +3587,9 @@ function gr(e, t, n, o, r, i) {
3582
3587
  value: e.value,
3583
3588
  defaultValue: e.defaultValue,
3584
3589
  required: e.required
3585
- }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, br);
3590
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, gr);
3586
3591
  }
3587
- const yr = /* @__PURE__ */ b(fr, [["render", gr]]), kr = {
3592
+ const kr = /* @__PURE__ */ g(br, [["render", yr]]), vr = {
3588
3593
  name: "Form:Select",
3589
3594
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
3590
3595
  defaultStyles: {
@@ -3626,28 +3631,28 @@ const yr = /* @__PURE__ */ b(fr, [["render", gr]]), kr = {
3626
3631
  }],
3627
3632
  static: !0,
3628
3633
  noWrap: !0
3629
- }, vr = f({
3634
+ }, Sr = b({
3630
3635
  name: "builder-select-component",
3631
3636
  props: ["attributes", "value", "defaultValue", "name", "required", "options"],
3632
3637
  data() {
3633
- return { isEditing: E, filterAttrs: V };
3638
+ return { isEditing: B, filterAttrs: W };
3634
3639
  }
3635
- }), Sr = ["value", "defaultValue", "name", "required"], Cr = ["value"];
3636
- function wr(e, t, n, o, r, i) {
3637
- return d(), m("select", C({
3640
+ }), Cr = ["value", "defaultValue", "name", "required"], wr = ["value"];
3641
+ function Tr(e, t, n, o, r, i) {
3642
+ return c(), p("select", C({
3638
3643
  value: e.value,
3639
3644
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
3640
3645
  defaultValue: e.defaultValue,
3641
3646
  name: e.name,
3642
3647
  required: e.required
3643
- }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3644
- (d(!0), m(w, null, A(e.options, (s, l) => (d(), m("option", {
3648
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3649
+ (c(!0), p(T, null, V(e.options, (s, l) => (c(), p("option", {
3645
3650
  key: `${s.name}-${l}`,
3646
3651
  value: s.value
3647
- }, ee(s.name || s.value), 9, Cr))), 128))
3648
- ], 16, Sr);
3652
+ }, ee(s.name || s.value), 9, wr))), 128))
3653
+ ], 16, Cr);
3649
3654
  }
3650
- const Tr = /* @__PURE__ */ b(vr, [["render", wr]]), Ir = {
3655
+ const Ir = /* @__PURE__ */ g(Sr, [["render", Tr]]), $r = {
3651
3656
  name: "Form:SubmitButton",
3652
3657
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
3653
3658
  defaultStyles: {
@@ -3672,17 +3677,17 @@ const Tr = /* @__PURE__ */ b(vr, [["render", wr]]), Ir = {
3672
3677
  // that only shows if advanced setting is flipped
3673
3678
  // TODO: defaultChildren
3674
3679
  // canHaveChildren: true,
3675
- }, $r = f({
3680
+ }, Rr = b({
3676
3681
  name: "builder-submit-button",
3677
3682
  props: ["attributes", "text"],
3678
3683
  data() {
3679
- return { filterAttrs: V };
3684
+ return { filterAttrs: W };
3680
3685
  }
3681
3686
  });
3682
- function Rr(e, t, n, o, r, i) {
3683
- return d(), m("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ee(e.text), 17);
3687
+ function Er(e, t, n, o, r, i) {
3688
+ return c(), p("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ee(e.text), 17);
3684
3689
  }
3685
- const Er = /* @__PURE__ */ b($r, [["render", Rr]]), Pr = {
3690
+ const Pr = /* @__PURE__ */ g(Rr, [["render", Er]]), Br = {
3686
3691
  name: "Form:TextArea",
3687
3692
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
3688
3693
  inputs: [{
@@ -3718,7 +3723,7 @@ const Er = /* @__PURE__ */ b($r, [["render", Rr]]), Pr = {
3718
3723
  },
3719
3724
  static: !0,
3720
3725
  noWrap: !0
3721
- }, Br = f({
3726
+ }, xr = b({
3722
3727
  name: "builder-textarea",
3723
3728
  props: [
3724
3729
  "attributes",
@@ -3729,19 +3734,19 @@ const Er = /* @__PURE__ */ b($r, [["render", Rr]]), Pr = {
3729
3734
  "required"
3730
3735
  ],
3731
3736
  data() {
3732
- return { filterAttrs: V };
3737
+ return { filterAttrs: W };
3733
3738
  }
3734
- }), xr = ["placeholder", "name", "value", "defaultValue", "required"];
3735
- function Ar(e, t, n, o, r, i) {
3736
- return d(), m("textarea", C({
3739
+ }), Ar = ["placeholder", "name", "value", "defaultValue", "required"];
3740
+ function Vr(e, t, n, o, r, i) {
3741
+ return c(), p("textarea", C({
3737
3742
  placeholder: e.placeholder,
3738
3743
  name: e.name,
3739
3744
  value: e.value,
3740
3745
  defaultValue: e.defaultValue,
3741
3746
  required: e.required
3742
- }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, xr);
3747
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Ar);
3743
3748
  }
3744
- const Vr = /* @__PURE__ */ b(Br, [["render", Ar]]), Wr = {
3749
+ const Wr = /* @__PURE__ */ g(xr, [["render", Vr]]), Nr = {
3745
3750
  // friendlyName?
3746
3751
  name: "Raw:Img",
3747
3752
  hideFromInsertMenu: !0,
@@ -3755,7 +3760,7 @@ const Vr = /* @__PURE__ */ b(Br, [["render", Ar]]), Wr = {
3755
3760
  }],
3756
3761
  noWrap: !0,
3757
3762
  static: !0
3758
- }, Nr = f({
3763
+ }, Or = b({
3759
3764
  name: "builder-img-component",
3760
3765
  props: [
3761
3766
  "backgroundSize",
@@ -3766,11 +3771,11 @@ const Vr = /* @__PURE__ */ b(Br, [["render", Ar]]), Wr = {
3766
3771
  "attributes"
3767
3772
  ],
3768
3773
  data() {
3769
- return { isEditing: E, filterAttrs: V };
3774
+ return { isEditing: B, filterAttrs: W };
3770
3775
  }
3771
- }), Or = ["alt", "src"];
3772
- function Fr(e, t, n, o, r, i) {
3773
- return d(), m("img", C({
3776
+ }), Fr = ["alt", "src"];
3777
+ function Dr(e, t, n, o, r, i) {
3778
+ return c(), p("img", C({
3774
3779
  style: {
3775
3780
  objectFit: e.backgroundSize || "cover",
3776
3781
  objectPosition: e.backgroundPosition || "center"
@@ -3778,9 +3783,9 @@ function Fr(e, t, n, o, r, i) {
3778
3783
  key: e.isEditing() && e.imgSrc || "default-key",
3779
3784
  alt: e.altText,
3780
3785
  src: e.imgSrc || e.image
3781
- }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Or);
3786
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Fr);
3782
3787
  }
3783
- const Dr = /* @__PURE__ */ b(Nr, [["render", Fr]]), Lr = {
3788
+ const Lr = /* @__PURE__ */ g(Or, [["render", Dr]]), Ur = {
3784
3789
  name: "Video",
3785
3790
  canHaveChildren: !0,
3786
3791
  defaultStyles: {
@@ -3864,7 +3869,7 @@ const Dr = /* @__PURE__ */ b(Nr, [["render", Fr]]), Lr = {
3864
3869
  shouldReceiveBuilderProps: {
3865
3870
  builderBlock: !0
3866
3871
  }
3867
- }, Ur = f({
3872
+ }, Mr = b({
3868
3873
  name: "builder-video",
3869
3874
  props: [
3870
3875
  "autoPlay",
@@ -3909,16 +3914,16 @@ const Dr = /* @__PURE__ */ b(Nr, [["render", Fr]]), Lr = {
3909
3914
  };
3910
3915
  }
3911
3916
  }
3912
- }), Mr = { style: {
3917
+ }), Hr = { style: {
3913
3918
  position: "relative"
3914
- } }, Hr = ["preload", "src", "poster"], jr = ["src"], Kr = {
3919
+ } }, jr = ["preload", "src", "poster"], Kr = ["src"], qr = {
3915
3920
  key: 1,
3916
3921
  style: {
3917
3922
  display: "flex",
3918
3923
  flexDirection: "column",
3919
3924
  alignItems: "stretch"
3920
3925
  }
3921
- }, qr = {
3926
+ }, zr = {
3922
3927
  key: 2,
3923
3928
  style: {
3924
3929
  pointerEvents: "none",
@@ -3932,10 +3937,10 @@ const Dr = /* @__PURE__ */ b(Nr, [["render", Fr]]), Lr = {
3932
3937
  height: "100%"
3933
3938
  }
3934
3939
  };
3935
- function zr(e, t, n, o, r, i) {
3936
- var s, l, a, u, h, c, p;
3937
- return d(), m("div", Mr, [
3938
- K("video", C({
3940
+ function Gr(e, t, n, o, r, i) {
3941
+ var s, l, a, u, m, h, d;
3942
+ return c(), p("div", Hr, [
3943
+ q("video", C({
3939
3944
  class: "builder-video",
3940
3945
  preload: e.preload || "metadata",
3941
3946
  style: {
@@ -3955,13 +3960,13 @@ function zr(e, t, n, o, r, i) {
3955
3960
  src: e.video || "no-src",
3956
3961
  poster: e.posterImage
3957
3962
  }, e.spreadProps), [
3958
- e.lazyLoad ? S("", !0) : (d(), m("source", {
3963
+ e.lazyLoad ? v("", !0) : (c(), p("source", {
3959
3964
  key: 0,
3960
3965
  type: "video/mp4",
3961
3966
  src: e.video
3962
- }, null, 8, jr))
3963
- ], 16, Hr),
3964
- e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), m("div", {
3967
+ }, null, 8, Kr))
3968
+ ], 16, jr),
3969
+ e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (c(), p("div", {
3965
3970
  key: 0,
3966
3971
  style: F({
3967
3972
  width: "100%",
@@ -3969,73 +3974,73 @@ function zr(e, t, n, o, r, i) {
3969
3974
  pointerEvents: "none",
3970
3975
  fontSize: "0px"
3971
3976
  })
3972
- }, null, 4)) : S("", !0),
3973
- (h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (d(), m("div", Kr, [
3974
- x(e.$slots, "default")
3975
- ])) : S("", !0),
3976
- (p = (c = e.builderBlock) == null ? void 0 : c.children) != null && p.length && !e.fitContent ? (d(), m("div", qr, [
3977
- x(e.$slots, "default")
3978
- ])) : S("", !0)
3977
+ }, null, 4)) : v("", !0),
3978
+ (m = (u = e.builderBlock) == null ? void 0 : u.children) != null && m.length && e.fitContent ? (c(), p("div", qr, [
3979
+ A(e.$slots, "default")
3980
+ ])) : v("", !0),
3981
+ (d = (h = e.builderBlock) == null ? void 0 : h.children) != null && d.length && !e.fitContent ? (c(), p("div", zr, [
3982
+ A(e.$slots, "default")
3983
+ ])) : v("", !0)
3979
3984
  ]);
3980
3985
  }
3981
- const Jr = /* @__PURE__ */ b(Ur, [["render", zr]]), Gr = () => [{
3982
- component: Zo,
3983
- ...Go
3986
+ const Jr = /* @__PURE__ */ g(Mr, [["render", Gr]]), Yr = () => [{
3987
+ component: _o,
3988
+ ...Yo
3984
3989
  }, {
3985
- component: ir,
3986
- ..._o
3990
+ component: sr,
3991
+ ...er
3987
3992
  }, {
3988
- component: mr,
3989
- ...sr
3993
+ component: hr,
3994
+ ...ar
3990
3995
  }, {
3991
- component: yr,
3992
- ...hr
3996
+ component: kr,
3997
+ ...fr
3993
3998
  }, {
3994
- component: Er,
3995
- ...Ir
3999
+ component: Pr,
4000
+ ...$r
3996
4001
  }, {
3997
- component: Tr,
3998
- ...kr
4002
+ component: Ir,
4003
+ ...vr
3999
4004
  }, {
4000
- component: Vr,
4001
- ...Pr
4005
+ component: Wr,
4006
+ ...Br
4002
4007
  }, {
4003
- component: Dr,
4004
- ...Wr
4008
+ component: Lr,
4009
+ ...Nr
4005
4010
  }, {
4006
4011
  component: Jr,
4007
- ...Lr
4008
- }], $e = () => [{
4009
- component: St,
4010
- ...Ro
4011
- }, {
4012
- component: io,
4012
+ ...Ur
4013
+ }], Re = () => [{
4014
+ component: Ct,
4013
4015
  ...Eo
4014
4016
  }, {
4015
- component: lo,
4017
+ component: so,
4016
4018
  ...Po
4017
4019
  }, {
4018
- component: go,
4020
+ component: co,
4019
4021
  ...Bo
4020
4022
  }, {
4021
- component: vo,
4023
+ component: yo,
4022
4024
  ...xo
4023
4025
  }, {
4024
- component: No,
4026
+ component: So,
4025
4027
  ...Ao
4026
4028
  }, {
4027
- component: Pi,
4028
- ...Oo
4029
+ component: Oo,
4030
+ ...Vo
4031
+ }, {
4032
+ component: Bi,
4033
+ ...Fo
4029
4034
  }, {
4030
4035
  component: Jo,
4031
- ...jo
4036
+ ...Ko
4032
4037
  }, {
4033
- component: Ho,
4034
- ...Fo
4038
+ component: jo,
4039
+ ...Do
4035
4040
  }, {
4036
- component: $o,
4037
- ...So
4038
- }, ...Gr()], Yr = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
4041
+ component: Ro,
4042
+ ...Co
4043
+ }, ...Yr()], Xr = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
4039
4044
  function getAndSetVariantId() {
4040
4045
  function setCookie(name, value, days) {
4041
4046
  let expires = '';
@@ -4091,7 +4096,7 @@ const Jr = /* @__PURE__ */ b(Ur, [["render", zr]]), Gr = () => [{
4091
4096
  }).join('');
4092
4097
  styleEl.innerHTML = newStyleStr;
4093
4098
  }
4094
- }`, Xr = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4099
+ }`, Qr = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4095
4100
  if (!navigator.cookieEnabled) {
4096
4101
  return;
4097
4102
  }
@@ -4125,27 +4130,27 @@ const Jr = /* @__PURE__ */ b(Ur, [["render", zr]]), Gr = () => [{
4125
4130
  thisScriptEl?.remove();
4126
4131
  }
4127
4132
  return;
4128
- }`, st = "builderIoAbTest", at = "builderIoRenderContent", Q = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4133
+ }`, at = "builderIoAbTest", lt = "builderIoRenderContent", Q = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4129
4134
  ...t,
4130
4135
  testVariationId: t.id,
4131
4136
  id: e == null ? void 0 : e.id
4132
- })), Qr = ({
4137
+ })), Zr = ({
4133
4138
  canTrack: e,
4134
4139
  content: t
4135
- }) => !(!(Q(t).length > 0) || !e), Zr = (e) => e === "react" || e === "reactNative", lt = Zr(R), _r = () => `
4136
- window.${st} = ${Yr}
4140
+ }) => !(!(Q(t).length > 0) || !e), _r = (e) => e === "react" || e === "reactNative", ct = _r(P), ei = () => `
4137
4141
  window.${at} = ${Xr}
4138
- `, ei = (e, t) => `
4139
- window.${st}(
4140
- "${t}",${JSON.stringify(e)}, ${lt}
4141
- )`, ti = ({
4142
+ window.${lt} = ${Qr}
4143
+ `, ti = (e, t) => `
4144
+ window.${at}(
4145
+ "${t}",${JSON.stringify(e)}, ${ct}
4146
+ )`, ni = ({
4142
4147
  contentId: e,
4143
4148
  variationId: t
4144
- }) => `window.${at}(
4145
- "${t}", "${e}", ${lt}
4146
- )`, ct = f({
4149
+ }) => `window.${lt}(
4150
+ "${t}", "${e}", ${ct}
4151
+ )`, dt = b({
4147
4152
  render() {
4148
- return Pe("script", {
4153
+ return Be("script", {
4149
4154
  innerHTML: this.scriptStr,
4150
4155
  "data-id": this.id,
4151
4156
  nonce: this.nonce
@@ -4154,10 +4159,10 @@ const Jr = /* @__PURE__ */ b(Ur, [["render", zr]]), Gr = () => [{
4154
4159
  name: "inlined-script",
4155
4160
  props: ["scriptStr", "id", "nonce"]
4156
4161
  });
4157
- function Re(e) {
4162
+ function Ee(e) {
4158
4163
  return Math.round(e * 1e3) / 1e3;
4159
4164
  }
4160
- const ni = (e, t, n = !0) => {
4165
+ const oi = (e, t, n = !0) => {
4161
4166
  if (!(e instanceof HTMLElement))
4162
4167
  return null;
4163
4168
  let o = n ? e : e.parentElement;
@@ -4168,35 +4173,35 @@ const ni = (e, t, n = !0) => {
4168
4173
  return o;
4169
4174
  } while (o = o.parentElement);
4170
4175
  return null;
4171
- }, oi = (e) => ni(e, (t) => {
4176
+ }, ri = (e) => oi(e, (t) => {
4172
4177
  const n = t.getAttribute("builder-id") || t.id;
4173
4178
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
4174
- }), Ee = ({
4179
+ }), Pe = ({
4175
4180
  event: e,
4176
4181
  target: t
4177
4182
  }) => {
4178
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = Re(o / n.width), s = Re(r / n.height);
4183
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = Ee(o / n.width), s = Ee(r / n.height);
4179
4184
  return {
4180
4185
  x: i,
4181
4186
  y: s
4182
4187
  };
4183
- }, ri = (e) => {
4184
- const t = e.target, n = t && oi(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4188
+ }, ii = (e) => {
4189
+ const t = e.target, n = t && ri(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4185
4190
  return {
4186
4191
  targetBuilderElement: o || void 0,
4187
4192
  metadata: {
4188
- targetOffset: t ? Ee({
4193
+ targetOffset: t ? Pe({
4189
4194
  event: e,
4190
4195
  target: t
4191
4196
  }) : void 0,
4192
- builderTargetOffset: n ? Ee({
4197
+ builderTargetOffset: n ? Pe({
4193
4198
  event: e,
4194
4199
  target: n
4195
4200
  }) : void 0,
4196
4201
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
4197
4202
  }
4198
4203
  };
4199
- }, ii = (e) => {
4204
+ }, si = (e) => {
4200
4205
  var i;
4201
4206
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
4202
4207
  let r = "";
@@ -4222,15 +4227,15 @@ font-weight: ${s};
4222
4227
  `.trim());
4223
4228
  }
4224
4229
  return r;
4225
- }, si = ({
4230
+ }, ai = ({
4226
4231
  customFonts: e
4227
4232
  }) => {
4228
4233
  var t;
4229
- return ((t = e == null ? void 0 : e.map((n) => ii(n))) == null ? void 0 : t.join(" ")) || "";
4230
- }, ai = ({
4234
+ return ((t = e == null ? void 0 : e.map((n) => si(n))) == null ? void 0 : t.join(" ")) || "";
4235
+ }, li = ({
4231
4236
  cssCode: e,
4232
4237
  contentId: t
4233
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", li = `
4238
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", ci = `
4234
4239
  .builder-button {
4235
4240
  all: unset;
4236
4241
  }
@@ -4247,9 +4252,9 @@ font-weight: ${s};
4247
4252
  text-align: inherit;
4248
4253
  font-family: inherit;
4249
4254
  }
4250
- `, ci = (e) => e ? "" : li, di = (e) => `variant-${e}`, ui = f({
4255
+ `, di = (e) => e ? "" : ci, ui = (e) => `variant-${e}`, pi = b({
4251
4256
  name: "enable-editor",
4252
- components: { DynamicDiv: G },
4257
+ components: { DynamicDiv: Y },
4253
4258
  props: [
4254
4259
  "isNestedRender",
4255
4260
  "builderContextSignal",
@@ -4274,7 +4279,7 @@ font-weight: ${s};
4274
4279
  httpReqsPending: {},
4275
4280
  clicked: !1,
4276
4281
  builderContext: se,
4277
- getWrapperClassName: di
4282
+ getWrapperClassName: ui
4278
4283
  };
4279
4284
  },
4280
4285
  provide() {
@@ -4288,10 +4293,10 @@ font-weight: ${s};
4288
4293
  },
4289
4294
  mounted() {
4290
4295
  var e, t;
4291
- if (I()) {
4292
- if (E() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4296
+ if ($()) {
4297
+ if (B() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4293
4298
  new CustomEvent("initeditingbldr")
4294
- ), this.builderContextSignal.content && z(this.canTrack)) {
4299
+ ), this.builderContextSignal.content && G(this.canTrack)) {
4295
4300
  const o = (e = this.builderContextSignal.content) == null ? void 0 : e.testVariationId, r = (t = this.builderContextSignal.content) == null ? void 0 : t.id, i = this.apiKey;
4296
4301
  le({
4297
4302
  apiHost: this.apiHost,
@@ -4302,7 +4307,7 @@ font-weight: ${s};
4302
4307
  variationId: o !== r ? o : void 0
4303
4308
  });
4304
4309
  }
4305
- jt() && !E() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4310
+ Kt() && !B() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4306
4311
  new CustomEvent("initpreviewingbldr")
4307
4312
  );
4308
4313
  }
@@ -4336,7 +4341,7 @@ font-weight: ${s};
4336
4341
  }
4337
4342
  },
4338
4343
  unmounted() {
4339
- I() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
4344
+ $() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
4340
4345
  "builder:component:stateChangeListenerActivated",
4341
4346
  this.emitStateUpdate
4342
4347
  ));
@@ -4396,7 +4401,7 @@ font-weight: ${s};
4396
4401
  this.builderContextSignal.content = t;
4397
4402
  },
4398
4403
  processMessage(e) {
4399
- return Ye({
4404
+ return Xe({
4400
4405
  model: this.model,
4401
4406
  trustedHosts: this.trustedHosts,
4402
4407
  callbacks: {
@@ -4410,7 +4415,7 @@ font-weight: ${s};
4410
4415
  });
4411
4416
  },
4412
4417
  animation: (t) => {
4413
- nt(t);
4418
+ ot(t);
4414
4419
  },
4415
4420
  contentUpdate: (t) => {
4416
4421
  this.mergeNewContent(t);
@@ -4425,11 +4430,11 @@ font-weight: ${s};
4425
4430
  le({
4426
4431
  apiHost: this.apiHost,
4427
4432
  type: "click",
4428
- canTrack: z(this.canTrack),
4433
+ canTrack: G(this.canTrack),
4429
4434
  contentId: r,
4430
4435
  apiKey: this.apiKey,
4431
4436
  variationId: o !== r ? o : void 0,
4432
- ...ri(e),
4437
+ ...ii(e),
4433
4438
  unique: !this.clicked
4434
4439
  });
4435
4440
  }
@@ -4439,7 +4444,7 @@ font-weight: ${s};
4439
4444
  var t, n;
4440
4445
  const e = ((n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) ?? {};
4441
4446
  Object.entries(e).forEach(([o, r]) => {
4442
- if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !E())
4447
+ if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !B())
4443
4448
  return;
4444
4449
  this.httpReqsPending[o] = !0;
4445
4450
  const i = r.replace(
@@ -4454,7 +4459,7 @@ font-weight: ${s};
4454
4459
  })
4455
4460
  )
4456
4461
  );
4457
- fetch(i).then((s) => s.json()).then((s) => {
4462
+ pe(i), fetch(i).then((s) => s.json()).then((s) => {
4458
4463
  this.mergeNewRootState({
4459
4464
  [o]: s
4460
4465
  }), this.httpReqsData[o] = !0;
@@ -4466,7 +4471,7 @@ font-weight: ${s};
4466
4471
  });
4467
4472
  },
4468
4473
  emitStateUpdate() {
4469
- E() && window.dispatchEvent(
4474
+ B() && window.dispatchEvent(
4470
4475
  new CustomEvent(
4471
4476
  "builder:component:stateChange",
4472
4477
  {
@@ -4481,7 +4486,7 @@ font-weight: ${s};
4481
4486
  );
4482
4487
  },
4483
4488
  elementRef_onIniteditingbldr(e) {
4484
- window.addEventListener("message", this.processMessage), pn(), Ge({
4489
+ window.addEventListener("message", this.processMessage), mn(), Ye({
4485
4490
  ...this.locale ? {
4486
4491
  locale: this.locale
4487
4492
  } : {},
@@ -4495,7 +4500,7 @@ font-weight: ${s};
4495
4500
  this.builderContextSignal.componentInfos
4496
4501
  ).forEach((t) => {
4497
4502
  var o;
4498
- const n = Kt(t);
4503
+ const n = qt(t);
4499
4504
  (o = window.parent) == null || o.postMessage(n, "*");
4500
4505
  }), window.addEventListener(
4501
4506
  "builder:component:stateChangeListenerActivated",
@@ -4506,7 +4511,7 @@ font-weight: ${s};
4506
4511
  const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
4507
4512
  `builder.overrides.${n}`
4508
4513
  ), r = t.get("apiKey") || t.get("builder.space");
4509
- n === this.model && r === this.apiKey && (!this.content || o === this.content.id) && he({
4514
+ n === this.model && r === this.apiKey && (!this.content || o === this.content.id) && fe({
4510
4515
  model: this.model,
4511
4516
  apiKey: this.apiKey,
4512
4517
  apiVersion: this.builderContextSignal.apiVersion
@@ -4516,9 +4521,9 @@ font-weight: ${s};
4516
4521
  }
4517
4522
  }
4518
4523
  });
4519
- function pi(e, t, n, o, r, i) {
4524
+ function mi(e, t, n, o, r, i) {
4520
4525
  var s, l, a;
4521
- return e.builderContextSignal.content ? (d(), k(H(e.ContentWrapper), C({
4526
+ return e.builderContextSignal.content ? (c(), y(j(e.ContentWrapper), C({
4522
4527
  key: 0,
4523
4528
  ref: "elementRef",
4524
4529
  onClick: (u) => e.onClick(u),
@@ -4528,40 +4533,40 @@ function pi(e, t, n, o, r, i) {
4528
4533
  onIniteditingbldr: (u) => e.elementRef_onIniteditingbldr(u),
4529
4534
  onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
4530
4535
  }, { ...e.showContentProps, ...e.contentWrapperProps }), {
4531
- default: W(() => [
4532
- x(e.$slots, "default")
4536
+ default: N(() => [
4537
+ A(e.$slots, "default")
4533
4538
  ]),
4534
4539
  _: 3
4535
- }, 16, ["onClick", "builder-content-id", "builder-model", "className", "onIniteditingbldr", "onInitpreviewingbldr"])) : S("", !0);
4540
+ }, 16, ["onClick", "builder-content-id", "builder-model", "className", "onIniteditingbldr", "onInitpreviewingbldr"])) : v("", !0);
4536
4541
  }
4537
- const mi = /* @__PURE__ */ b(ui, [["render", pi]]), hi = f({
4542
+ const hi = /* @__PURE__ */ g(pi, [["render", mi]]), fi = b({
4538
4543
  name: "content-styles",
4539
- components: { InlinedStyles: ge },
4544
+ components: { InlinedStyles: ye },
4540
4545
  props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
4541
4546
  data() {
4542
4547
  return {
4543
4548
  injectedStyles: `
4544
- ${ai({
4549
+ ${li({
4545
4550
  cssCode: this.cssCode,
4546
4551
  contentId: this.contentId
4547
4552
  })}
4548
- ${si({
4553
+ ${ai({
4549
4554
  customFonts: this.customFonts
4550
4555
  })}
4551
- ${ci(this.isNestedRender)}
4556
+ ${di(this.isNestedRender)}
4552
4557
  `.trim()
4553
4558
  };
4554
4559
  }
4555
4560
  });
4556
- function fi(e, t, n, o, r, i) {
4557
- const s = v("InlinedStyles");
4558
- return d(), k(s, {
4561
+ function bi(e, t, n, o, r, i) {
4562
+ const s = k("InlinedStyles");
4563
+ return c(), y(s, {
4559
4564
  id: "builderio-content",
4560
4565
  styles: e.injectedStyles,
4561
4566
  nonce: e.nonce
4562
4567
  }, null, 8, ["styles", "nonce"]);
4563
4568
  }
4564
- const bi = /* @__PURE__ */ b(hi, [["render", fi]]), gi = ({
4569
+ const gi = /* @__PURE__ */ g(fi, [["render", bi]]), yi = ({
4565
4570
  content: e,
4566
4571
  data: t,
4567
4572
  locale: n
@@ -4578,7 +4583,7 @@ const bi = /* @__PURE__ */ b(hi, [["render", fi]]), gi = ({
4578
4583
  locale: n
4579
4584
  } : {}
4580
4585
  };
4581
- }, yi = ({
4586
+ }, ki = ({
4582
4587
  content: e,
4583
4588
  data: t
4584
4589
  }) => e ? {
@@ -4588,14 +4593,14 @@ const bi = /* @__PURE__ */ b(hi, [["render", fi]]), gi = ({
4588
4593
  ...t
4589
4594
  },
4590
4595
  meta: e == null ? void 0 : e.meta
4591
- } : void 0, ki = ht, vi = f({
4596
+ } : void 0, vi = ft, Si = b({
4592
4597
  name: "content-component",
4593
4598
  components: {
4594
- EnableEditor: mi,
4595
- InlinedScript: ct,
4596
- ContentStyles: bi,
4597
- Blocks: L,
4598
- DynamicDiv: G
4599
+ EnableEditor: hi,
4600
+ InlinedScript: dt,
4601
+ ContentStyles: gi,
4602
+ Blocks: U,
4603
+ DynamicDiv: Y
4599
4604
  },
4600
4605
  props: [
4601
4606
  "apiKey",
@@ -4623,32 +4628,32 @@ const bi = /* @__PURE__ */ b(hi, [["render", fi]]), gi = ({
4623
4628
  data() {
4624
4629
  var e, t, n, o;
4625
4630
  return {
4626
- scriptStr: ti({
4631
+ scriptStr: ni({
4627
4632
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4628
4633
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
4629
4634
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4630
4635
  contentId: (t = this.content) == null ? void 0 : t.id
4631
4636
  }),
4632
4637
  registeredComponents: [
4633
- ...$e(),
4638
+ ...Re(),
4634
4639
  ...((n = this.customComponents) == null ? void 0 : n.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
4635
4640
  ].reduce(
4636
4641
  (r, { component: i, ...s }) => ({
4637
4642
  ...r,
4638
4643
  [s.name]: {
4639
- component: ki(i),
4644
+ component: vi(i),
4640
4645
  ..._(s)
4641
4646
  }
4642
4647
  }),
4643
4648
  {}
4644
4649
  ),
4645
4650
  builderContextSignal: {
4646
- content: yi({
4651
+ content: ki({
4647
4652
  content: this.content,
4648
4653
  data: this.data
4649
4654
  }),
4650
4655
  localState: void 0,
4651
- rootState: gi({
4656
+ rootState: yi({
4652
4657
  content: this.content,
4653
4658
  data: this.data,
4654
4659
  locale: this.locale
@@ -4659,7 +4664,7 @@ const bi = /* @__PURE__ */ b(hi, [["render", fi]]), gi = ({
4659
4664
  apiKey: this.apiKey,
4660
4665
  apiVersion: this.apiVersion,
4661
4666
  componentInfos: [
4662
- ...$e(),
4667
+ ...Re(),
4663
4668
  ...((o = this.customComponents) == null ? void 0 : o.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
4664
4669
  ].reduce(
4665
4670
  (r, { component: i, ...s }) => ({
@@ -4673,20 +4678,20 @@ const bi = /* @__PURE__ */ b(hi, [["render", fi]]), gi = ({
4673
4678
  BlocksWrapperProps: this.blocksWrapperProps || {},
4674
4679
  nonce: this.nonce || ""
4675
4680
  },
4676
- TARGET: R
4681
+ TARGET: P
4677
4682
  };
4678
4683
  },
4679
4684
  provide() {
4680
4685
  const e = this;
4681
4686
  return {
4682
- [Be.key]: {
4687
+ [xe.key]: {
4683
4688
  registeredComponents: e.registeredComponents
4684
4689
  }
4685
4690
  };
4686
4691
  },
4687
4692
  created() {
4688
4693
  var t, n;
4689
- this.apiKey || P.error(
4694
+ this.apiKey || E.error(
4690
4695
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4691
4696
  );
4692
4697
  const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
@@ -4707,9 +4712,9 @@ const bi = /* @__PURE__ */ b(hi, [["render", fi]]), gi = ({
4707
4712
  }
4708
4713
  }
4709
4714
  });
4710
- function Si(e, t, n, o, r, i) {
4711
- const s = v("InlinedScript"), l = v("ContentStyles"), a = v("Blocks"), u = v("EnableEditor");
4712
- return d(), k(u, C({
4715
+ function Ci(e, t, n, o, r, i) {
4716
+ const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
4717
+ return c(), y(u, C({
4713
4718
  apiHost: e.apiHost,
4714
4719
  nonce: e.nonce,
4715
4720
  content: e.content,
@@ -4727,25 +4732,25 @@ function Si(e, t, n, o, r, i) {
4727
4732
  trustedHosts: e.trustedHosts,
4728
4733
  isNestedRender: e.isNestedRender
4729
4734
  }, {}), {
4730
- default: W(() => {
4731
- var h, c, p, y, g, N, Y;
4735
+ default: N(() => {
4736
+ var m, h, d, f, S, w, L;
4732
4737
  return [
4733
- e.isSsrAbTest ? (d(), k(s, {
4738
+ e.isSsrAbTest ? (c(), y(s, {
4734
4739
  key: 0,
4735
4740
  id: "builderio-variant-visibility",
4736
4741
  scriptStr: e.scriptStr,
4737
4742
  nonce: e.nonce || ""
4738
- }, null, 8, ["scriptStr", "nonce"])) : S("", !0),
4739
- e.TARGET !== "reactNative" ? (d(), k(l, {
4743
+ }, null, 8, ["scriptStr", "nonce"])) : v("", !0),
4744
+ e.TARGET !== "reactNative" ? (c(), y(l, {
4740
4745
  key: 1,
4741
4746
  nonce: e.nonce || "",
4742
4747
  isNestedRender: e.isNestedRender,
4743
- contentId: (h = e.builderContextSignal.content) == null ? void 0 : h.id,
4744
- cssCode: (p = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : p.cssCode,
4745
- customFonts: (g = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : g.customFonts
4746
- }, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : S("", !0),
4747
- $(a, {
4748
- blocks: (Y = (N = e.builderContextSignal.content) == null ? void 0 : N.data) == null ? void 0 : Y.blocks,
4748
+ contentId: (m = e.builderContextSignal.content) == null ? void 0 : m.id,
4749
+ cssCode: (d = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : d.cssCode,
4750
+ customFonts: (S = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : S.customFonts
4751
+ }, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : v("", !0),
4752
+ R(a, {
4753
+ blocks: (L = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : L.blocks,
4749
4754
  context: e.builderContextSignal,
4750
4755
  registeredComponents: e.registeredComponents,
4751
4756
  linkComponent: e.linkComponent
@@ -4755,12 +4760,12 @@ function Si(e, t, n, o, r, i) {
4755
4760
  _: 1
4756
4761
  }, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
4757
4762
  }
4758
- const Ci = /* @__PURE__ */ b(vi, [["render", Si]]), wi = f({
4763
+ const wi = /* @__PURE__ */ g(Si, [["render", Ci]]), Ti = b({
4759
4764
  name: "content-variants",
4760
4765
  components: {
4761
- InlinedScript: ct,
4762
- InlinedStyles: ge,
4763
- ContentComponent: Ci
4766
+ InlinedScript: dt,
4767
+ InlinedStyles: ye,
4768
+ ContentComponent: wi
4764
4769
  },
4765
4770
  props: [
4766
4771
  "canTrack",
@@ -4785,12 +4790,12 @@ const Ci = /* @__PURE__ */ b(vi, [["render", Si]]), wi = f({
4785
4790
  ],
4786
4791
  data() {
4787
4792
  return {
4788
- shouldRenderVariants: Qr({
4789
- canTrack: z(this.canTrack),
4793
+ shouldRenderVariants: Zr({
4794
+ canTrack: G(this.canTrack),
4790
4795
  content: this.content
4791
4796
  }),
4792
- TARGET: R,
4793
- getInitVariantsFnsScriptString: _r,
4797
+ TARGET: P,
4798
+ getInitVariantsFnsScriptString: ei,
4794
4799
  getVariants: Q
4795
4800
  };
4796
4801
  },
@@ -4799,7 +4804,7 @@ const Ci = /* @__PURE__ */ b(vi, [["render", Si]]), wi = f({
4799
4804
  computed: {
4800
4805
  updateCookieAndStylesScriptStr() {
4801
4806
  var e;
4802
- return ei(
4807
+ return ti(
4803
4808
  Q(this.content).map((t) => ({
4804
4809
  id: t.testVariationId,
4805
4810
  testRatio: t.testRatio
@@ -4815,34 +4820,34 @@ const Ci = /* @__PURE__ */ b(vi, [["render", Si]]), wi = f({
4815
4820
  return this.shouldRenderVariants ? {
4816
4821
  ...this.content,
4817
4822
  testVariationId: (e = this.content) == null ? void 0 : e.id
4818
- } : yn({
4823
+ } : kn({
4819
4824
  item: this.content,
4820
- canTrack: z(this.canTrack)
4825
+ canTrack: G(this.canTrack)
4821
4826
  });
4822
4827
  }
4823
4828
  }
4824
4829
  });
4825
- function Ti(e, t, n, o, r, i) {
4826
- const s = v("InlinedScript"), l = v("InlinedStyles"), a = v("ContentComponent");
4827
- return d(), m(w, null, [
4828
- !e.isNestedRender && e.TARGET !== "reactNative" ? (d(), k(s, {
4830
+ function Ii(e, t, n, o, r, i) {
4831
+ const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
4832
+ return c(), p(T, null, [
4833
+ !e.isNestedRender && e.TARGET !== "reactNative" ? (c(), y(s, {
4829
4834
  key: 0,
4830
4835
  id: "builderio-init-variants-fns",
4831
4836
  scriptStr: e.getInitVariantsFnsScriptString(),
4832
4837
  nonce: e.nonce || ""
4833
- }, null, 8, ["scriptStr", "nonce"])) : S("", !0),
4834
- e.shouldRenderVariants ? (d(), m(w, { key: 1 }, [
4835
- $(l, {
4838
+ }, null, 8, ["scriptStr", "nonce"])) : v("", !0),
4839
+ e.shouldRenderVariants ? (c(), p(T, { key: 1 }, [
4840
+ R(l, {
4836
4841
  id: "builderio-variants",
4837
4842
  styles: e.hideVariantsStyleString,
4838
4843
  nonce: e.nonce || ""
4839
4844
  }, null, 8, ["styles", "nonce"]),
4840
- $(s, {
4845
+ R(s, {
4841
4846
  id: "builderio-variants-visibility",
4842
4847
  scriptStr: e.updateCookieAndStylesScriptStr,
4843
4848
  nonce: e.nonce || ""
4844
4849
  }, null, 8, ["scriptStr", "nonce"]),
4845
- (d(!0), m(w, null, A(e.getVariants(e.content), (u, h) => (d(), k(a, C({
4850
+ (c(!0), p(T, null, V(e.getVariants(e.content), (u, m) => (c(), y(a, C({
4846
4851
  key: u.testVariationId,
4847
4852
  apiHost: e.apiHost,
4848
4853
  isNestedRender: e.isNestedRender,
@@ -4866,8 +4871,8 @@ function Ti(e, t, n, o, r, i) {
4866
4871
  contentWrapperProps: e.contentWrapperProps,
4867
4872
  trustedHosts: e.trustedHosts
4868
4873
  }, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
4869
- ], 64)) : S("", !0),
4870
- $(a, C({
4874
+ ], 64)) : v("", !0),
4875
+ R(a, C({
4871
4876
  apiHost: e.apiHost,
4872
4877
  nonce: e.nonce,
4873
4878
  isNestedRender: e.isNestedRender,
@@ -4894,13 +4899,13 @@ function Ti(e, t, n, o, r, i) {
4894
4899
  }), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
4895
4900
  ], 64);
4896
4901
  }
4897
- const Ii = /* @__PURE__ */ b(wi, [["render", Ti]]), $i = async ({
4902
+ const $i = /* @__PURE__ */ g(Ti, [["render", Ii]]), Ri = async ({
4898
4903
  builderContextValue: e,
4899
4904
  symbol: t
4900
4905
  }) => {
4901
4906
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4902
4907
  (e != null && e.apiKey))
4903
- return he({
4908
+ return fe({
4904
4909
  model: t.model,
4905
4910
  apiKey: e.apiKey,
4906
4911
  apiVersion: e.apiVersion,
@@ -4910,11 +4915,11 @@ const Ii = /* @__PURE__ */ b(wi, [["render", Ti]]), $i = async ({
4910
4915
  }
4911
4916
  }
4912
4917
  }).catch((n) => {
4913
- P.error("Could not fetch symbol content: ", n);
4918
+ E.error("Could not fetch symbol content: ", n);
4914
4919
  });
4915
- }, Ri = f({
4920
+ }, Ei = b({
4916
4921
  name: "builder-symbol",
4917
- components: { ContentVariants: Ii, DynamicDiv: G },
4922
+ components: { ContentVariants: $i, DynamicDiv: Y },
4918
4923
  props: [
4919
4924
  "symbol",
4920
4925
  "attributes",
@@ -4926,7 +4931,7 @@ const Ii = /* @__PURE__ */ b(wi, [["render", Ti]]), $i = async ({
4926
4931
  ],
4927
4932
  data() {
4928
4933
  var e;
4929
- return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: V };
4934
+ return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: W };
4930
4935
  },
4931
4936
  mounted() {
4932
4937
  this.setContent();
@@ -4963,7 +4968,7 @@ const Ii = /* @__PURE__ */ b(wi, [["render", Ti]]), $i = async ({
4963
4968
  },
4964
4969
  methods: {
4965
4970
  setContent() {
4966
- this.contentToUse || $i({
4971
+ this.contentToUse || Ri({
4967
4972
  symbol: this.symbol,
4968
4973
  builderContextValue: this.builderContext
4969
4974
  }).then((e) => {
@@ -4972,11 +4977,11 @@ const Ii = /* @__PURE__ */ b(wi, [["render", Ti]]), $i = async ({
4972
4977
  }
4973
4978
  }
4974
4979
  });
4975
- function Ei(e, t, n, o, r, i) {
4976
- var l, a, u, h, c;
4977
- const s = v("ContentVariants");
4978
- return d(), m("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4979
- $(s, {
4980
+ function Pi(e, t, n, o, r, i) {
4981
+ var l, a, u, m, h;
4982
+ const s = k("ContentVariants");
4983
+ return c(), p("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4984
+ R(s, {
4980
4985
  nonce: e.builderContext.nonce,
4981
4986
  isNestedRender: !0,
4982
4987
  apiVersion: e.builderContext.apiVersion,
@@ -4989,10 +4994,10 @@ function Ei(e, t, n, o, r, i) {
4989
4994
  data: {
4990
4995
  ...(a = e.symbol) == null ? void 0 : a.data,
4991
4996
  ...e.builderContext.localState,
4992
- ...(h = (u = e.contentToUse) == null ? void 0 : u.data) == null ? void 0 : h.state
4997
+ ...(m = (u = e.contentToUse) == null ? void 0 : u.data) == null ? void 0 : m.state
4993
4998
  },
4994
4999
  canTrack: e.builderContext.canTrack,
4995
- model: (c = e.symbol) == null ? void 0 : c.model,
5000
+ model: (h = e.symbol) == null ? void 0 : h.model,
4996
5001
  content: e.contentToUse,
4997
5002
  linkComponent: e.builderLinkComponent,
4998
5003
  blocksWrapper: e.blocksWrapper,
@@ -5000,44 +5005,44 @@ function Ei(e, t, n, o, r, i) {
5000
5005
  }, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
5001
5006
  ], 16);
5002
5007
  }
5003
- const Pi = /* @__PURE__ */ b(Ri, [["render", Ei]]);
5008
+ const Bi = /* @__PURE__ */ g(Ei, [["render", Pi]]);
5004
5009
  export {
5005
- Rn as A,
5006
- be as B,
5007
- io as C,
5008
- he as D,
5009
- Ai as E,
5010
- lo as F,
5011
- Li as G,
5012
- go as I,
5013
- vo as S,
5014
- R as T,
5010
+ En as A,
5011
+ ge as B,
5012
+ so as C,
5013
+ fe as D,
5014
+ Vi as E,
5015
+ co as F,
5016
+ Ui as G,
5017
+ yo as I,
5018
+ So as S,
5019
+ P as T,
5015
5020
  Jr as V,
5016
- ge as _,
5017
- Fi as a,
5018
- Ui as b,
5021
+ ye as _,
5022
+ Di as a,
5023
+ Mi as b,
5019
5024
  D as c,
5020
- fe as d,
5021
- b as e,
5025
+ be as d,
5026
+ g as e,
5022
5027
  J as f,
5023
- to as g,
5024
- Di as h,
5028
+ no as g,
5029
+ Li as h,
5025
5030
  Z as i,
5026
5031
  se as j,
5027
- St as k,
5028
- Pi as l,
5032
+ Ct as k,
5033
+ Bi as l,
5029
5034
  Jo as m,
5030
- L as n,
5031
- Ii as o,
5032
- E as p,
5033
- jt as q,
5034
- Kt as r,
5035
- zt as s,
5036
- Vi as t,
5037
- Fe as u,
5038
- Wi as v,
5039
- ki as w,
5040
- Ni as x,
5041
- Oi as y,
5042
- $n as z
5035
+ U as n,
5036
+ $i as o,
5037
+ B as p,
5038
+ Kt as q,
5039
+ qt as r,
5040
+ Gt as s,
5041
+ Wi as t,
5042
+ De as u,
5043
+ Ni as v,
5044
+ vi as w,
5045
+ Oi as x,
5046
+ Fi as y,
5047
+ Rn as z
5043
5048
  };