@builder.io/sdk-vue 2.0.29 → 2.0.31

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 (60) hide show
  1. package/lib/browser/{awaiter-26Xj_ukf.js → awaiter-CBFYn8Rc.js} +1 -1
  2. package/lib/browser/{awaiter-oyEV6qzA.cjs → awaiter-zzvk2NgH.cjs} +1 -1
  3. package/lib/browser/{block-styles-sDAdmEJM.js → block-styles-1TjUGG0M.js} +1 -1
  4. package/lib/browser/{block-styles-7VlstMIR.cjs → block-styles-eG8aHEnR.cjs} +1 -1
  5. package/lib/browser/{block-wrapper-xFO-VLSm.js → block-wrapper-mHstZCm3.js} +3 -3
  6. package/lib/browser/{block-wrapper-z8m7HQL5.cjs → block-wrapper-t1YyB3qf.cjs} +1 -1
  7. package/lib/browser/{component-ref-cAtD4rXw.cjs → component-ref-4iD2JOXe.cjs} +1 -1
  8. package/lib/browser/{component-ref-SgAsKv83.js → component-ref-SiTniDkf.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-WnxZnXsK.js} +1 -1
  12. package/lib/browser/{get-block-properties-fBjkRbVw.cjs → get-block-properties-qCNopliW.cjs} +1 -1
  13. package/lib/browser/{index-6aZwZO3-.cjs → index-EOpyZR3_.cjs} +23 -23
  14. package/lib/browser/{index-kI_vPJeb.js → index-nG43II0w.js} +906 -895
  15. package/lib/browser/index.cjs +1 -1
  16. package/lib/browser/index.mjs +1 -1
  17. package/lib/browser/{repeated-block-iaodALqW.js → repeated-block-WkFOmnw-.js} +2 -2
  18. package/lib/browser/{repeated-block-uIkcGKQC.cjs → repeated-block-Zrynel2G.cjs} +1 -1
  19. package/lib/browser/style.css +1 -1
  20. package/lib/edge/{awaiter-Q7B7gBgW.js → awaiter-ETIQ3Y1O.js} +1 -1
  21. package/lib/edge/{awaiter-48RvRkNd.cjs → awaiter-tqyHYP24.cjs} +1 -1
  22. package/lib/edge/{block-styles-XIg11tMX.cjs → block-styles-UFZvXK12.cjs} +1 -1
  23. package/lib/edge/{block-styles-9MQCNPvC.js → block-styles-xeGiE5b9.js} +1 -1
  24. package/lib/edge/{block-wrapper-tsLeR9cJ.cjs → block-wrapper-Kx9lGbVC.cjs} +1 -1
  25. package/lib/edge/{block-wrapper-e7g10ccQ.js → block-wrapper-rWfNhUAl.js} +3 -3
  26. package/lib/edge/{component-ref-RDssOT9Y.js → component-ref-2gTfqFWa.js} +3 -3
  27. package/lib/edge/{component-ref-HqIppl2q.cjs → component-ref-jL8V5feH.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-U4aZTxWN.cjs} +1 -1
  31. package/lib/edge/{get-block-properties-JvBYR7T2.js → get-block-properties-rSB9DXAm.js} +1 -1
  32. package/lib/edge/index-1wQww2g6.cjs +184 -0
  33. package/lib/edge/{index-A2oFnyUY.js → index-61CJkECh.js} +1450 -1439
  34. package/lib/edge/index.cjs +1 -1
  35. package/lib/edge/index.mjs +1 -1
  36. package/lib/{node/repeated-block-L7NHAfGX.cjs → edge/repeated-block-YThkmdHp.cjs} +1 -1
  37. package/lib/edge/{repeated-block-luW_-FNb.js → repeated-block-sibYzFQC.js} +2 -2
  38. package/lib/edge/style.css +1 -1
  39. package/lib/node/{awaiter-FlUFmL70.js → awaiter--0e1RmdV.js} +1 -1
  40. package/lib/node/{awaiter-V_ao-6vo.cjs → awaiter-YeTQ3hOV.cjs} +1 -1
  41. package/lib/node/{block-styles-tv9J_BQX.cjs → block-styles-OsL48K76.cjs} +1 -1
  42. package/lib/node/{block-styles-mlFEPu97.js → block-styles-mmmG5Zvb.js} +1 -1
  43. package/lib/node/{block-wrapper-hD0JtNOm.js → block-wrapper-6FrZVnI8.js} +3 -3
  44. package/lib/node/{block-wrapper--A2qoKhW.cjs → block-wrapper-hK9iEXhq.cjs} +1 -1
  45. package/lib/node/{component-ref-Bkl05aM4.js → component-ref-u2wfD4PU.js} +3 -3
  46. package/lib/node/{component-ref-y3SgFXV9.cjs → component-ref-yN1A7uFk.cjs} +1 -1
  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-EkNcjp0K.cjs} +1 -1
  50. package/lib/node/{get-block-properties-su4ucuIP.js → get-block-properties-QhUhlrxy.js} +1 -1
  51. package/lib/node/index-EBQK2Vx-.cjs +166 -0
  52. package/lib/node/{index-WgbaQ2Lp.js → index-GJHkrBmN.js} +882 -871
  53. package/lib/node/index.cjs +1 -1
  54. package/lib/node/index.mjs +1 -1
  55. package/lib/node/{repeated-block-WeKMcR5K.js → repeated-block-h-cU9AMQ.js} +2 -2
  56. package/lib/{edge/repeated-block-S5H2EoTu.cjs → node/repeated-block-z6QgHzWM.cjs} +1 -1
  57. package/lib/node/style.css +1 -1
  58. package/package.json +1 -1
  59. package/lib/edge/index-MhoX9uwg.cjs +0 -184
  60. package/lib/node/index-LIVUNkJZ.cjs +0 -166
@@ -1,7 +1,7 @@
1
- import { defineComponent as f, openBlock as d, createElementBlock as m, Fragment as T, createBlock as k, resolveDynamicComponent as M, mergeProps as C, toHandlers as P, withCtx as W, renderSlot as B, resolveComponent as v, createTextVNode as lt, toDisplayString as _, defineAsyncComponent as H, createVNode as I, renderList as A, createCommentVNode as S, h as Re, createElementVNode as K, normalizeStyle as O, normalizeClass as q, markRaw as ct } from "vue";
2
- import { T as R, g as dt, f as ut, i as $, s as pt, r as mt, p as ht, a as ft, l as x, b as Ee, c as ce, d as bt, n as Pe, e as D, h as E, j as gt } from "./should-force-browser-runtime-in-node-ikxWrCvn.js";
3
- const yt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), kt = (e) => typeof e == "string" && yt.has(e.toLowerCase());
4
- function V(e = {}, t, n) {
1
+ import { defineComponent as b, openBlock as c, createElementBlock as p, Fragment as w, createBlock as y, resolveDynamicComponent as j, mergeProps as C, toHandlers as x, withCtx as N, renderSlot as A, resolveComponent as k, createTextVNode as ut, toDisplayString as ee, defineAsyncComponent as M, createVNode as $, renderList as V, createCommentVNode as v, h as Be, createElementVNode as q, normalizeStyle as D, normalizeClass as z, markRaw as pt } from "vue";
2
+ import { T as P, g as mt, f as ht, i as R, s as ft, r as bt, p as gt, a as yt, l as E, b as xe, c as ue, d as kt, n as Ae, e as L, h as B, j as vt } from "./should-force-browser-runtime-in-node-ikxWrCvn.js";
3
+ const St = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ct = (e) => typeof e == "string" && St.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 vt = f({
14
+ const Tt = b({
15
15
  name: "dynamic-renderer",
16
16
  props: ["TagName", "attributes", "actionAttributes"],
17
17
  data() {
18
- return { isEmptyElement: kt };
18
+ return { isEmptyElement: Ct };
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 St(e, t, n, o, r, i) {
27
- return e.isEmptyElement(e.TagName) ? (d(), k(M(e.TagName), C({ key: 1 }, e.attributes, P(e.actionAttributes)), null, 16)) : (d(), m(T, { key: 0 }, [
28
- typeof e.TagName == "string" ? (d(), k(M(e.TagName), C({ key: 0 }, e.attributes, P(e.actionAttributes)), {
29
- default: W(() => [
30
- B(e.$slots, "default")
26
+ function wt(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(w, { 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(M(e.TagName), C({ key: 1 }, e.attributes, P(e.actionAttributes)), {
34
- default: W(() => [
35
- B(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(vt, [["render", St]]), Rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41
+ const pe = /* @__PURE__ */ g(Tt, [["render", wt]]), Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42
42
  __proto__: null,
43
- default: de
44
- }, Symbol.toStringTag, { value: "Module" })), Q = () => {
45
- switch (R) {
43
+ default: pe
44
+ }, Symbol.toStringTag, { value: "Module" })), Z = () => {
45
+ switch (P) {
46
46
  case "react":
47
47
  case "reactNative":
48
48
  case "rsc":
@@ -54,9 +54,9 @@ const de = /* @__PURE__ */ b(vt, [["render", St]]), Rs = /* @__PURE__ */ Object.
54
54
  case "angular":
55
55
  return "class";
56
56
  }
57
- }, Ct = f({
57
+ }, It = b({
58
58
  name: "builder-button",
59
- components: { DynamicRenderer: de },
59
+ components: { DynamicRenderer: pe },
60
60
  props: [
61
61
  "attributes",
62
62
  "link",
@@ -65,13 +65,13 @@ const de = /* @__PURE__ */ b(vt, [["render", St]]), Rs = /* @__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),
74
- [Q()]: `${this.link ? "" : "builder-button"} ${this.attributes[Q()] || ""}`,
73
+ ...W(this.attributes, "v-on:", !1),
74
+ [Z()]: `${this.link ? "" : "builder-button"} ${this.attributes[Z()] || ""}`,
75
75
  ...this.link ? {
76
76
  href: this.link,
77
77
  target: this.openLinkInNewTab ? "_blank" : void 0,
@@ -83,20 +83,20 @@ const de = /* @__PURE__ */ b(vt, [["render", St]]), Rs = /* @__PURE__ */ Object.
83
83
  }
84
84
  }
85
85
  });
86
- function Tt(e, t, n, o, r, i) {
87
- const s = v("DynamicRenderer");
88
- return d(), k(s, {
86
+ function $t(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
- lt(_(e.text), 1)
93
+ default: N(() => [
94
+ ut(ee(e.text), 1)
95
95
  ]),
96
96
  _: 1
97
97
  }, 8, ["attributes", "TagName", "actionAttributes"]);
98
98
  }
99
- const wt = /* @__PURE__ */ b(Ct, [["render", Tt]]), It = Symbol(), se = {
99
+ const Rt = /* @__PURE__ */ g(It, [["render", $t]]), Et = Symbol(), ae = {
100
100
  Builder: {
101
101
  content: null,
102
102
  context: {},
@@ -112,28 +112,28 @@ const wt = /* @__PURE__ */ b(Ct, [["render", Tt]]), It = Symbol(), se = {
112
112
  BlocksWrapperProps: {},
113
113
  nonce: ""
114
114
  },
115
- key: It
116
- }, $t = Symbol(), Be = {
115
+ key: Et
116
+ }, Pt = Symbol(), Ve = {
117
117
  Components: { registeredComponents: {} },
118
- key: $t
118
+ key: Pt
119
119
  };
120
- function Rt(e) {
120
+ function Bt(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 Et(e, ...t) {
127
+ function xt(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 xe = (e, t, n) => {
133
+ const We = (e, t, n) => {
134
134
  const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
135
135
  return o === void 0 || o === e ? n : o;
136
- }, Pt = ({
136
+ }, At = ({
137
137
  code: e,
138
138
  builder: t,
139
139
  context: n,
@@ -142,22 +142,22 @@ const xe = (e, t, n) => {
142
142
  rootSetState: i,
143
143
  rootState: s
144
144
  }) => {
145
- const l = dt({
145
+ const l = mt({
146
146
  builder: t,
147
147
  context: n,
148
148
  event: o,
149
- state: ut({
149
+ state: ht({
150
150
  rootState: s,
151
151
  localState: r,
152
152
  rootSetState: i
153
153
  })
154
154
  });
155
155
  return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
156
- }, Bt = (e) => $() || pt({
156
+ }, Vt = (e) => R() || ft({
157
157
  shouldLogWarning: !0
158
- }) ? Pt(e) : mt(e), xt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, At = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Vt = (e) => {
158
+ }) ? At(e) : bt(e), Wt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Nt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Ft = (e) => {
159
159
  var t, n, o, r, i, s;
160
- return ((o = (n = (t = xt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = At.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
160
+ return ((o = (n = (t = Wt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = Nt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
161
161
  };
162
162
  function J({
163
163
  code: e,
@@ -170,17 +170,17 @@ function J({
170
170
  }) {
171
171
  if (e.trim() === "")
172
172
  return;
173
- const l = Vt(e.trim());
173
+ const l = Ft(e.trim());
174
174
  if (l)
175
- return xe({
175
+ return We({
176
176
  ...o,
177
177
  ...n
178
178
  }, l);
179
179
  const a = {
180
- code: ht(e, {
180
+ code: gt(e, {
181
181
  isExpression: s
182
182
  }),
183
- builder: ft(),
183
+ builder: yt(),
184
184
  context: t,
185
185
  event: i,
186
186
  rootSetState: r,
@@ -188,29 +188,29 @@ function J({
188
188
  localState: n
189
189
  };
190
190
  try {
191
- return Bt(a);
191
+ return Vt(a);
192
192
  } catch (u) {
193
- x.error("Failed code evaluation: " + u.message, {
193
+ E.error("Failed code evaluation: " + u.message, {
194
194
  code: e
195
195
  });
196
196
  return;
197
197
  }
198
198
  }
199
- function ie(e) {
199
+ function le(e) {
200
200
  if (e === null || typeof e != "object")
201
201
  return e;
202
202
  if (Array.isArray(e))
203
- return e.map((n) => ie(n));
203
+ return e.map((n) => le(n));
204
204
  if (e["@type"] === "@builder.io/sdk:Element")
205
205
  return e;
206
206
  const t = {};
207
207
  for (const n in e)
208
- n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ie(e[n]));
208
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = le(e[n]));
209
209
  return t;
210
210
  }
211
- const Wt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), Nt = (e) => {
212
- if (Wt) {
213
- const t = ce(e);
211
+ const Dt = ["svelte", "vue", "angular", "qwik", "solid"].includes(P), Ot = (e) => {
212
+ if (Dt) {
213
+ const t = ue(e);
214
214
  return {
215
215
  ...t,
216
216
  properties: {
@@ -221,7 +221,7 @@ const Wt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), Nt = (e) =
221
221
  }
222
222
  };
223
223
  } else {
224
- const t = ie(Et(e, "children", "meta"));
224
+ const t = le(xt(e, "children", "meta"));
225
225
  return {
226
226
  ...t,
227
227
  properties: {
@@ -234,7 +234,7 @@ const Wt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), Nt = (e) =
234
234
  meta: e.meta
235
235
  };
236
236
  }
237
- }, Ft = ({
237
+ }, Lt = ({
238
238
  block: e,
239
239
  context: t,
240
240
  localState: n,
@@ -243,7 +243,7 @@ const Wt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), Nt = (e) =
243
243
  }) => {
244
244
  if (!e.bindings)
245
245
  return e;
246
- const i = Nt(e);
246
+ const i = Ot(e);
247
247
  for (const s in e.bindings) {
248
248
  const l = e.bindings[s], a = J({
249
249
  code: l,
@@ -252,11 +252,11 @@ const Wt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), Nt = (e) =
252
252
  rootSetState: r,
253
253
  context: t
254
254
  });
255
- Ee(i, s, a);
255
+ xe(i, s, a);
256
256
  }
257
257
  return i;
258
258
  };
259
- function Ot({
259
+ function Ut({
260
260
  block: e,
261
261
  context: t,
262
262
  shouldEvaluateBindings: n,
@@ -265,7 +265,7 @@ function Ot({
265
265
  rootSetState: i
266
266
  }) {
267
267
  const s = e;
268
- return n ? Ft({
268
+ return n ? Lt({
269
269
  block: s,
270
270
  localState: o,
271
271
  rootState: r,
@@ -273,25 +273,25 @@ function Ot({
273
273
  context: t
274
274
  }) : s;
275
275
  }
276
- function Dt(e) {
277
- const t = e || ($() ? window.location.search : void 0);
278
- return t ? bt(t).indexOf("builder.preview=") !== -1 : !1;
276
+ function Ht(e) {
277
+ const t = e || (R() ? window.location.search : void 0);
278
+ return t ? kt(t).indexOf("builder.preview=") !== -1 : !1;
279
279
  }
280
- const Lt = (e) => ({
280
+ const Mt = (e) => ({
281
281
  type: "builder.registerComponent",
282
- data: Z(e)
283
- }), Ut = (e) => {
284
- const t = e.toString().trim();
285
- return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
282
+ data: _(e)
283
+ }), jt = (e) => {
284
+ const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
285
+ return `return (${!t.startsWith("function") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
286
286
  };
287
- function Z(e) {
288
- return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? Ut(n) : n));
287
+ function _(e) {
288
+ return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? jt(n) : n));
289
289
  }
290
- const ye = {};
291
- function Ht(e, t) {
292
- e === "plugin" && (t = Z(t));
293
- let n = ye[e];
294
- if (n || (n = ye[e] = []), n.push(t), $()) {
290
+ const Se = {};
291
+ function Kt(e, t) {
292
+ e === "plugin" && (t = _(t));
293
+ let n = Se[e];
294
+ if (n || (n = Se[e] = []), n.push(t), R()) {
295
295
  const o = {
296
296
  type: "builder.register",
297
297
  data: {
@@ -306,42 +306,42 @@ function Ht(e, t) {
306
306
  }
307
307
  }
308
308
  }
309
- const ke = {};
310
- function Es(e) {
311
- if ($()) {
312
- Object.assign(ke, e);
309
+ const Ce = {};
310
+ function xs(e) {
311
+ if (R()) {
312
+ Object.assign(Ce, e);
313
313
  const t = {
314
314
  type: "builder.settingsChange",
315
- data: ke
315
+ data: Ce
316
316
  };
317
317
  parent.postMessage(t, "*");
318
318
  }
319
319
  }
320
- const ve = "builder.", Mt = "options.", Ae = (e) => {
320
+ const Te = "builder.", qt = "options.", Ne = (e) => {
321
321
  if (!e)
322
322
  return {};
323
- const t = Pe(e), n = {};
323
+ const t = Ae(e), n = {};
324
324
  return Object.keys(t).forEach((o) => {
325
- if (o.startsWith(ve)) {
326
- const r = o.replace(ve, "").replace(Mt, "");
325
+ if (o.startsWith(Te)) {
326
+ const r = o.replace(Te, "").replace(qt, "");
327
327
  n[r] = t[o];
328
328
  }
329
329
  }), n;
330
- }, jt = () => {
331
- if (!$())
330
+ }, zt = () => {
331
+ if (!R())
332
332
  return {};
333
333
  const e = new URLSearchParams(window.location.search);
334
- return Ae(e);
335
- }, Ve = "2.0.29", We = () => ({
336
- "X-Builder-SDK": R,
334
+ return Ne(e);
335
+ }, Fe = "2.0.31", De = () => ({
336
+ "X-Builder-SDK": P,
337
337
  "X-Builder-SDK-GEN": "2",
338
- "X-Builder-SDK-Version": Ve
339
- }), Kt = (e) => {
338
+ "X-Builder-SDK-Version": Fe
339
+ }), Gt = (e) => {
340
340
  if (e === "localhost" || e === "127.0.0.1")
341
341
  return e;
342
342
  const t = e.split(".");
343
343
  return t.length > 2 ? t.slice(1).join(".") : e;
344
- }, Ne = ({
344
+ }, Oe = ({
345
345
  name: e,
346
346
  canTrack: t
347
347
  }) => {
@@ -349,17 +349,17 @@ const ve = "builder.", Mt = "options.", Ae = (e) => {
349
349
  try {
350
350
  return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
351
351
  } catch (o) {
352
- x.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
352
+ E.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
353
353
  return;
354
354
  }
355
- }, Fe = async (e) => Ne(e), qt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(D).join("; "), zt = [["secure", ""], ["SameSite", "None"]], Jt = ({
355
+ }, Le = async (e) => Oe(e), Jt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(L).join("; "), Yt = [["secure", ""], ["SameSite", "None"]], Xt = ({
356
356
  name: e,
357
357
  value: t,
358
358
  expires: n
359
359
  }) => {
360
- const r = ($() ? location.protocol === "https:" : !0) ? zt : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Kt(window.location.hostname)], ...r];
361
- return qt(s);
362
- }, Oe = async ({
360
+ const r = (R() ? location.protocol === "https:" : !0) ? Yt : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Gt(window.location.hostname)], ...r];
361
+ return Jt(s);
362
+ }, Ue = async ({
363
363
  name: e,
364
364
  value: t,
365
365
  expires: n,
@@ -368,98 +368,103 @@ const ve = "builder.", Mt = "options.", Ae = (e) => {
368
368
  try {
369
369
  if (!o)
370
370
  return;
371
- const r = Jt({
371
+ const r = Xt({
372
372
  name: e,
373
373
  value: t,
374
374
  expires: n
375
375
  });
376
376
  document.cookie = r;
377
377
  } catch (r) {
378
- x.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
378
+ E.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
379
379
  }
380
380
  };
381
- function Gt() {
381
+ function Qt() {
382
382
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
383
383
  const t = Math.random() * 16 | 0;
384
384
  return (e == "x" ? t : t & 3 | 8).toString(16);
385
385
  });
386
386
  }
387
- function De() {
388
- return Gt().replace(/-/g, "");
387
+ function He() {
388
+ return Qt().replace(/-/g, "");
389
389
  }
390
- const Le = "builderSessionId", Yt = async ({
390
+ const Me = "builderSessionId", Zt = async ({
391
391
  canTrack: e
392
392
  }) => {
393
393
  if (!e)
394
394
  return;
395
- const t = await Fe({
396
- name: Le,
395
+ const t = await Le({
396
+ name: Me,
397
397
  canTrack: e
398
398
  });
399
- if (D(t))
399
+ if (L(t))
400
400
  return t;
401
401
  {
402
- const n = Xt();
403
- return Qt({
402
+ const n = _t();
403
+ return en({
404
404
  id: n,
405
405
  canTrack: e
406
406
  }), n;
407
407
  }
408
- }, Xt = () => De(), Qt = ({
408
+ }, _t = () => He(), en = ({
409
409
  id: e,
410
410
  canTrack: t
411
- }) => Oe({
412
- name: Le,
411
+ }) => Ue({
412
+ name: Me,
413
413
  value: e,
414
414
  canTrack: t
415
- }), Ue = () => $() && typeof localStorage < "u" ? localStorage : void 0, Zt = ({
415
+ }), je = () => R() && typeof localStorage < "u" ? localStorage : void 0, tn = ({
416
416
  key: e,
417
417
  canTrack: t
418
418
  }) => {
419
419
  var n;
420
420
  try {
421
- return t ? (n = Ue()) == null ? void 0 : n.getItem(e) : void 0;
421
+ return t ? (n = je()) == null ? void 0 : n.getItem(e) : void 0;
422
422
  } catch (o) {
423
423
  console.debug("[LocalStorage] GET error: ", o);
424
424
  return;
425
425
  }
426
- }, _t = ({
426
+ }, nn = ({
427
427
  key: e,
428
428
  canTrack: t,
429
429
  value: n
430
430
  }) => {
431
431
  var o;
432
432
  try {
433
- t && ((o = Ue()) == null || o.setItem(e, n));
433
+ t && ((o = je()) == null || o.setItem(e, n));
434
434
  } catch (r) {
435
435
  console.debug("[LocalStorage] SET error: ", r);
436
436
  }
437
- }, He = "builderVisitorId", en = ({
437
+ }, Ke = "builderVisitorId", on = ({
438
438
  canTrack: e
439
439
  }) => {
440
440
  if (!e)
441
441
  return;
442
- const t = Zt({
443
- key: He,
442
+ const t = tn({
443
+ key: Ke,
444
444
  canTrack: e
445
445
  });
446
- if (D(t))
446
+ if (L(t))
447
447
  return t;
448
448
  {
449
- const n = tn();
450
- return nn({
449
+ const n = rn();
450
+ return sn({
451
451
  id: n,
452
452
  canTrack: e
453
453
  }), n;
454
454
  }
455
- }, tn = () => De(), nn = ({
455
+ }, rn = () => He(), sn = ({
456
456
  id: e,
457
457
  canTrack: t
458
- }) => _t({
459
- key: He,
458
+ }) => nn({
459
+ key: Ke,
460
460
  value: e,
461
461
  canTrack: t
462
- }), on = async ({
462
+ });
463
+ function me(e) {
464
+ var t;
465
+ typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && E.log(e);
466
+ }
467
+ const an = async ({
463
468
  canTrack: e
464
469
  }) => {
465
470
  if (!e)
@@ -467,16 +472,16 @@ const Le = "builderSessionId", Yt = async ({
467
472
  visitorId: void 0,
468
473
  sessionId: void 0
469
474
  };
470
- const t = await Yt({
475
+ const t = await Zt({
471
476
  canTrack: e
472
- }), n = en({
477
+ }), n = on({
473
478
  canTrack: e
474
479
  });
475
480
  return {
476
481
  sessionId: t,
477
482
  visitorId: n
478
483
  };
479
- }, rn = async ({
484
+ }, ln = async ({
480
485
  type: e,
481
486
  canTrack: t,
482
487
  apiKey: n,
@@ -490,47 +495,50 @@ const Le = "builderSessionId", Yt = async ({
490
495
  url: location.href,
491
496
  ...o
492
497
  },
493
- ...await on({
498
+ ...await an({
494
499
  canTrack: t
495
500
  }),
496
- userAttributes: gt(),
501
+ userAttributes: vt(),
497
502
  ownerId: n
498
503
  }
499
504
  });
500
- async function ae({
505
+ async function ce({
501
506
  apiHost: e,
502
507
  ...t
503
508
  }) {
504
509
  if (!t.apiKey) {
505
- x.error("Missing API key for track call. Please provide your API key.");
510
+ E.error("Missing API key for track call. Please provide your API key.");
506
511
  return;
507
512
  }
508
- return !t.canTrack || E() || !($() || R === "reactNative") ? void 0 : fetch(`${e || "https://cdn.builder.io"}/api/v1/track`, {
513
+ if (!t.canTrack || B() || !(R() || P === "reactNative"))
514
+ return;
515
+ const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
516
+ return me(o), fetch(o, {
509
517
  method: "POST",
510
518
  body: JSON.stringify({
511
- events: [await rn(t)]
519
+ events: [await ln(t)]
512
520
  }),
513
521
  headers: {
514
522
  "content-type": "application/json",
515
- ...We()
523
+ ...De()
516
524
  },
517
525
  mode: "cors"
518
- }).catch((o) => {
519
- console.error("Failed to track: ", o);
526
+ }).catch((r) => {
527
+ console.error("Failed to track: ", r);
520
528
  });
521
529
  }
522
- const Ps = (e) => ae({
530
+ const As = (e) => ce({
523
531
  ...e,
524
532
  canTrack: !0
525
- }), sn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
526
- function Me(e, t) {
533
+ }), cn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
534
+ function qe(e, t) {
527
535
  if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
528
536
  return !1;
529
537
  const n = new URL(t.origin), o = n.hostname;
530
- return (e || sn).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
538
+ return (e || cn).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
531
539
  }
532
- const an = () => {
533
- Ht("insertMenu", {
540
+ const dn = () => {
541
+ Kt("insertMenu", {
534
542
  name: "_default",
535
543
  default: !0,
536
544
  items: [{
@@ -552,14 +560,14 @@ const an = () => {
552
560
  }]
553
561
  });
554
562
  };
555
- let Se = !1;
556
- const je = (e = {}) => {
563
+ let we = !1;
564
+ const ze = (e = {}) => {
557
565
  var t, n;
558
- Se || (Se = !0, $() && ((t = window.parent) == null || t.postMessage({
566
+ we || (we = !0, R() && ((t = window.parent) == null || t.postMessage({
559
567
  type: "builder.sdkInfo",
560
568
  data: {
561
- target: R,
562
- version: Ve,
569
+ target: P,
570
+ version: Fe,
563
571
  supportsPatchUpdates: !1,
564
572
  // Supports builder-model="..." attribute which is needed to
565
573
  // scope our '+ add block' button styling
@@ -573,7 +581,7 @@ const je = (e = {}) => {
573
581
  }
574
582
  }, "*"), window.addEventListener("message", (o) => {
575
583
  var i, s;
576
- if (!Me(e.trustedHosts, o))
584
+ if (!qe(e.trustedHosts, o))
577
585
  return;
578
586
  const {
579
587
  data: r
@@ -581,32 +589,32 @@ const je = (e = {}) => {
581
589
  if (r != null && r.type)
582
590
  switch (r.type) {
583
591
  case "builder.evaluate": {
584
- const l = r.data.text, a = r.data.arguments || [], u = r.data.id, h = new Function(l);
585
- let c, p = null;
592
+ const l = r.data.text, a = r.data.arguments || [], u = r.data.id, m = new Function(l);
593
+ let h, d = null;
586
594
  try {
587
- c = h.apply(null, a);
588
- } catch (y) {
589
- p = y;
595
+ h = m.apply(null, a);
596
+ } catch (f) {
597
+ d = f;
590
598
  }
591
- p ? (i = window.parent) == null || i.postMessage({
599
+ d ? (i = window.parent) == null || i.postMessage({
592
600
  type: "builder.evaluateError",
593
601
  data: {
594
602
  id: u,
595
- error: p.message
603
+ error: d.message
596
604
  }
597
- }, "*") : c && typeof c.then == "function" ? c.then((y) => {
598
- var g;
599
- (g = window.parent) == null || g.postMessage({
605
+ }, "*") : h && typeof h.then == "function" ? h.then((f) => {
606
+ var S;
607
+ (S = window.parent) == null || S.postMessage({
600
608
  type: "builder.evaluateResult",
601
609
  data: {
602
610
  id: u,
603
- result: y
611
+ result: f
604
612
  }
605
613
  }, "*");
606
614
  }).catch(console.error) : (s = window.parent) == null || s.postMessage({
607
615
  type: "builder.evaluateResult",
608
616
  data: {
609
- result: c,
617
+ result: h,
610
618
  id: u
611
619
  }
612
620
  }, "*");
@@ -614,12 +622,12 @@ const je = (e = {}) => {
614
622
  }
615
623
  }
616
624
  })));
617
- }, Ke = ({
625
+ }, Ge = ({
618
626
  model: e,
619
627
  trustedHosts: t,
620
628
  callbacks: n
621
629
  }) => (o) => {
622
- if (!Me(t, o))
630
+ if (!qe(t, o))
623
631
  return;
624
632
  const {
625
633
  data: r
@@ -640,12 +648,12 @@ const je = (e = {}) => {
640
648
  break;
641
649
  }
642
650
  }
643
- }, Bs = (e, t, n) => {
644
- if (!$)
645
- return x.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
651
+ }, Vs = (e, t, n) => {
652
+ if (!R)
653
+ return E.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
646
654
  };
647
- je();
648
- const o = Ke({
655
+ ze();
656
+ const o = Ge({
649
657
  callbacks: {
650
658
  contentUpdate: t,
651
659
  animation: () => {
@@ -659,24 +667,24 @@ const je = (e = {}) => {
659
667
  return window.addEventListener("message", o), () => {
660
668
  window.removeEventListener("message", o);
661
669
  };
662
- }, ln = "builder.tests", ue = (e) => `${ln}.${e}`, cn = ({
670
+ }, un = "builder.tests", he = (e) => `${un}.${e}`, pn = ({
663
671
  contentId: e
664
- }) => Fe({
665
- name: ue(e),
672
+ }) => Le({
673
+ name: he(e),
666
674
  canTrack: !0
667
- }), dn = ({
675
+ }), mn = ({
668
676
  contentId: e
669
- }) => Ne({
670
- name: ue(e),
677
+ }) => Oe({
678
+ name: he(e),
671
679
  canTrack: !0
672
- }), un = ({
680
+ }), hn = ({
673
681
  contentId: e,
674
682
  value: t
675
- }) => Oe({
676
- name: ue(e),
683
+ }) => Ue({
684
+ name: he(e),
677
685
  value: t,
678
686
  canTrack: !0
679
- }), qe = (e) => D(e.id) && D(e.variations) && Object.keys(e.variations).length > 0, pn = ({
687
+ }), Je = (e) => L(e.id) && L(e.variations) && Object.keys(e.variations).length > 0, fn = ({
680
688
  id: e,
681
689
  variations: t
682
690
  }) => {
@@ -689,15 +697,15 @@ const je = (e = {}) => {
689
697
  return i;
690
698
  }
691
699
  return e;
692
- }, ze = (e) => {
693
- const t = pn(e);
694
- return un({
700
+ }, Ye = (e) => {
701
+ const t = fn(e);
702
+ return hn({
695
703
  contentId: e.id,
696
704
  value: t
697
705
  }).catch((n) => {
698
- x.error("could not store A/B test variation: ", n);
706
+ E.error("could not store A/B test variation: ", n);
699
707
  }), t;
700
- }, Je = ({
708
+ }, Xe = ({
701
709
  item: e,
702
710
  testGroupId: t
703
711
  }) => {
@@ -711,7 +719,7 @@ const je = (e = {}) => {
711
719
  testVariationId: n.id,
712
720
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
713
721
  };
714
- }, mn = ({
722
+ }, bn = ({
715
723
  item: e,
716
724
  canTrack: t
717
725
  }) => {
@@ -719,14 +727,14 @@ const je = (e = {}) => {
719
727
  return e;
720
728
  if (!e)
721
729
  return;
722
- if (!qe(e))
730
+ if (!Je(e))
723
731
  return e;
724
- const n = dn({
732
+ const n = mn({
725
733
  contentId: e.id
726
- }) || ze({
734
+ }) || Ye({
727
735
  variations: e.variations,
728
736
  id: e.id
729
- }), o = Je({
737
+ }), o = Xe({
730
738
  item: e,
731
739
  testGroupId: n
732
740
  });
@@ -734,18 +742,18 @@ const je = (e = {}) => {
734
742
  ...e,
735
743
  ...o
736
744
  };
737
- }, hn = async ({
745
+ }, gn = async ({
738
746
  item: e,
739
747
  canTrack: t
740
748
  }) => {
741
- if (!t || !qe(e))
749
+ if (!t || !Je(e))
742
750
  return e;
743
- const o = await cn({
751
+ const o = await pn({
744
752
  contentId: e.id
745
- }) || ze({
753
+ }) || Ye({
746
754
  variations: e.variations,
747
755
  id: e.id
748
- }), r = Je({
756
+ }), r = Xe({
749
757
  item: e,
750
758
  testGroupId: o
751
759
  });
@@ -753,38 +761,38 @@ const je = (e = {}) => {
753
761
  ...e,
754
762
  ...r
755
763
  };
756
- }, z = (e) => D(e) ? e : !0;
757
- function fn() {
764
+ }, G = (e) => L(e) ? e : !0;
765
+ function yn() {
758
766
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
759
767
  }
760
- function bn() {
761
- const e = fn().fetch;
768
+ function kn() {
769
+ const e = yn().fetch;
762
770
  if (typeof e > "u")
763
771
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
764
772
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
765
773
  return e;
766
774
  }
767
- const gn = bn();
768
- function le(e, t = null, n = ".") {
775
+ const vn = kn();
776
+ function de(e, t = null, n = ".") {
769
777
  return Object.keys(e).reduce((o, r) => {
770
778
  const i = e[r], s = [t, r].filter(Boolean).join(n);
771
779
  return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
772
780
  ...o,
773
- ...le(i, s, n)
781
+ ...de(i, s, n)
774
782
  } : {
775
783
  ...o,
776
784
  [s]: i
777
785
  };
778
786
  }, {});
779
787
  }
780
- function Ge(e, t, n = {}) {
788
+ function Qe(e, t, n = {}) {
781
789
  for (const o in e) {
782
790
  const r = e[o], i = t ? t + "." + o : o;
783
- r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? Ge(r, i, n) : n[i] = r;
791
+ r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? Qe(r, i, n) : n[i] = r;
784
792
  }
785
793
  return n;
786
794
  }
787
- const yn = "v3", Ce = (e) => typeof e == "number" && !isNaN(e) && e >= 0, pe = (e) => {
795
+ const Sn = "v3", Ie = (e) => typeof e == "number" && !isNaN(e) && e >= 0, fe = (e) => {
788
796
  const {
789
797
  limit: t = 30,
790
798
  userAttributes: n,
@@ -793,90 +801,96 @@ const yn = "v3", Ce = (e) => typeof e == "number" && !isNaN(e) && e >= 0, pe = (
793
801
  apiKey: i,
794
802
  enrich: s,
795
803
  locale: l,
796
- apiVersion: a = yn,
804
+ apiVersion: a = Sn,
797
805
  fields: u,
798
- omit: h,
799
- offset: c,
800
- cacheSeconds: p,
801
- staleCacheSeconds: y,
802
- sort: g,
803
- includeUnpublished: N,
804
- apiHost: Y
806
+ omit: m,
807
+ offset: h,
808
+ cacheSeconds: d,
809
+ staleCacheSeconds: f,
810
+ sort: S,
811
+ includeUnpublished: T,
812
+ apiHost: O
805
813
  } = e;
806
814
  if (!i)
807
815
  throw new Error("Missing API key");
808
816
  if (!["v3"].includes(a))
809
817
  throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
810
- const st = t !== 1, it = Y || "https://cdn.builder.io", w = new URL(`${it}/api/${a}/content/${r}`);
811
- if (w.searchParams.set("apiKey", i), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(st)), w.searchParams.set("includeRefs", String(!0)), l && w.searchParams.set("locale", l), s && w.searchParams.set("enrich", String(s)), w.searchParams.set("omit", h || "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(c) && c > -1 && w.searchParams.set("offset", String(Math.floor(c))), typeof N == "boolean" && w.searchParams.set("includeUnpublished", String(N)), p && Ce(p) && w.searchParams.set("cacheSeconds", String(p)), y && Ce(y) && w.searchParams.set("staleCacheSeconds", String(y)), g) {
812
- const F = le({
813
- sort: g
818
+ const lt = t !== 1, ct = O || "https://cdn.builder.io", I = new URL(`${ct}/api/${a}/content/${r}`);
819
+ I.searchParams.set("apiKey", i), I.searchParams.set("limit", String(t)), I.searchParams.set("noTraverse", String(lt)), I.searchParams.set("includeRefs", String(!0));
820
+ const te = l || (n == null ? void 0 : n.locale);
821
+ let X = n;
822
+ if (te && (I.searchParams.set("locale", te), X = {
823
+ locale: te,
824
+ ...X
825
+ }), 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 T == "boolean" && I.searchParams.set("includeUnpublished", String(T)), d && Ie(d) && I.searchParams.set("cacheSeconds", String(d)), f && Ie(f) && I.searchParams.set("staleCacheSeconds", String(f)), S) {
826
+ const F = de({
827
+ sort: S
814
828
  });
815
- for (const U in F)
816
- w.searchParams.set(U, JSON.stringify(F[U]));
829
+ for (const H in F)
830
+ I.searchParams.set(H, JSON.stringify(F[H]));
817
831
  }
818
- const at = {
819
- ...jt(),
820
- ...Pe(e.options || {})
821
- }, ge = le(at);
822
- for (const F in ge)
823
- w.searchParams.set(F, String(ge[F]));
824
- if (n && w.searchParams.set("userAttributes", JSON.stringify(n)), o) {
825
- const F = Ge({
832
+ const dt = {
833
+ ...zt(),
834
+ ...Ae(e.options || {})
835
+ }, ve = de(dt);
836
+ for (const F in ve)
837
+ I.searchParams.set(F, String(ve[F]));
838
+ if (X && I.searchParams.set("userAttributes", JSON.stringify(X)), o) {
839
+ const F = Qe({
826
840
  query: o
827
841
  });
828
- for (const U in F)
829
- w.searchParams.set(U, JSON.stringify(F[U]));
842
+ for (const H in F)
843
+ I.searchParams.set(H, JSON.stringify(F[H]));
830
844
  }
831
- return w;
832
- }, kn = (e) => "results" in e;
833
- async function me(e) {
834
- const t = await Cn({
845
+ return I;
846
+ }, Cn = (e) => "results" in e;
847
+ async function be(e) {
848
+ const t = await In({
835
849
  ...e,
836
850
  limit: 1
837
851
  });
838
852
  return t && t[0] || null;
839
853
  }
840
- const vn = async (e) => {
854
+ const Tn = async (e) => {
841
855
  var s;
842
- const t = pe(e), n = e.fetch ?? gn, o = {
856
+ const t = fe(e), n = e.fetch ?? vn, o = {
843
857
  ...e.fetchOptions,
844
858
  headers: {
845
859
  ...(s = e.fetchOptions) == null ? void 0 : s.headers,
846
- ...We()
860
+ ...De()
847
861
  }
848
862
  };
849
863
  return await (await n(t.href, o)).json();
850
- }, Sn = async (e, t, n = pe(e)) => {
851
- const o = z(e.canTrack);
852
- if (n.search.includes("preview="), !o || !($() || R === "reactNative"))
864
+ }, wn = async (e, t, n = fe(e)) => {
865
+ const o = G(e.canTrack);
866
+ if (n.search.includes("preview="), !o || !(R() || P === "reactNative"))
853
867
  return t.results;
854
868
  try {
855
869
  const r = [];
856
870
  for (const i of t.results)
857
- r.push(await hn({
871
+ r.push(await gn({
858
872
  item: i,
859
873
  canTrack: o
860
874
  }));
861
875
  t.results = r;
862
876
  } catch (r) {
863
- x.error("Could not process A/B tests. ", r);
877
+ E.error("Could not process A/B tests. ", r);
864
878
  }
865
879
  return t.results;
866
880
  };
867
- async function Cn(e) {
881
+ async function In(e) {
868
882
  try {
869
- const t = pe(e), n = await vn(e);
870
- return kn(n) ? Sn(e, n) : (x.error("Error fetching data. ", {
883
+ const t = fe(e), n = await Tn(e);
884
+ return Cn(n) ? wn(e, n) : (E.error("Error fetching data. ", {
871
885
  url: t,
872
886
  content: n,
873
887
  options: e
874
888
  }), null);
875
889
  } catch (t) {
876
- return x.error("Error fetching data. ", t), null;
890
+ return E.error("Error fetching data. ", t), null;
877
891
  }
878
892
  }
879
- const xs = async (e) => {
893
+ const Ws = async (e) => {
880
894
  var o, r, i;
881
895
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
882
896
  ...e,
@@ -888,15 +902,15 @@ const xs = async (e) => {
888
902
  urlPath: t
889
903
  } : {}
890
904
  },
891
- options: Ae(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
905
+ options: Ne(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
892
906
  };
893
907
  return {
894
908
  apiKey: n.apiKey,
895
909
  model: n.model,
896
- content: await me(n)
910
+ content: await be(n)
897
911
  };
898
- }, he = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
899
- function Tn(e, t, n = {}) {
912
+ }, ge = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
913
+ function $n(e, t, n = {}) {
900
914
  let o, r, i, s = null, l = 0;
901
915
  const a = function() {
902
916
  l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
@@ -904,11 +918,11 @@ function Tn(e, t, n = {}) {
904
918
  return function() {
905
919
  const u = Date.now();
906
920
  !l && n.leading === !1 && (l = u);
907
- const h = t - (u - l);
908
- 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;
921
+ const m = t - (u - l);
922
+ 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;
909
923
  };
910
924
  }
911
- function j(e, ...t) {
925
+ function K(e, ...t) {
912
926
  const n = Object(e);
913
927
  for (let o = 1; o < arguments.length; o++) {
914
928
  const r = arguments[o];
@@ -918,118 +932,118 @@ function j(e, ...t) {
918
932
  }
919
933
  return n;
920
934
  }
921
- function wn(e) {
935
+ function Rn(e) {
922
936
  for (const t of e)
923
937
  switch (t.trigger) {
924
938
  case "pageLoad":
925
- Qe(t);
939
+ et(t);
926
940
  break;
927
941
  case "scrollInView":
928
- $n(t);
942
+ Pn(t);
929
943
  break;
930
944
  }
931
945
  }
932
- function Ye(e) {
946
+ function Ze(e) {
933
947
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
934
948
  }
935
- function Xe(e, t) {
936
- const n = In(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
949
+ function _e(e, t) {
950
+ const n = En(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
937
951
  for (const l of s)
938
952
  for (const a of n)
939
953
  a in l || (l[a] = o[a]);
940
954
  }
941
- function In(e) {
955
+ function En(e) {
942
956
  const t = [];
943
957
  for (const n of e.steps)
944
958
  for (const o in n.styles)
945
959
  t.indexOf(o) === -1 && t.push(o);
946
960
  return t;
947
961
  }
948
- function Qe(e) {
962
+ function et(e) {
949
963
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
950
964
  if (!t.length) {
951
- Ye(e.elementId || e.id || "");
965
+ Ze(e.elementId || e.id || "");
952
966
  return;
953
967
  }
954
968
  Array.from(t).forEach((n) => {
955
- Xe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", j(n.style, e.steps[0].styles), setTimeout(() => {
956
- n.style.transition = `all ${e.duration}s ${he(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), j(n.style, e.steps[1].styles), setTimeout(() => {
969
+ _e(e, n), n.style.transition = "none", n.style.transitionDelay = "0", K(n.style, e.steps[0].styles), setTimeout(() => {
970
+ n.style.transition = `all ${e.duration}s ${ge(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), K(n.style, e.steps[1].styles), setTimeout(() => {
957
971
  n.style.transition = "", n.style.transitionDelay = "";
958
972
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
959
973
  });
960
974
  });
961
975
  }
962
- function $n(e) {
976
+ function Pn(e) {
963
977
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
964
978
  if (!t.length) {
965
- Ye(e.elementId || e.id || "");
979
+ Ze(e.elementId || e.id || "");
966
980
  return;
967
981
  }
968
982
  Array.from(t).forEach((n) => {
969
- Xe(e, n);
983
+ _e(e, n);
970
984
  let o = !1, r = !1;
971
985
  function i() {
972
986
  !o && l(n) ? (o = !0, r = !0, setTimeout(() => {
973
- j(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
987
+ K(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
974
988
  r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
975
989
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
976
- })) : e.repeat && o && !r && !l(n) && (o = !1, j(n.style, e.steps[0].styles));
990
+ })) : e.repeat && o && !r && !l(n) && (o = !1, K(n.style, e.steps[0].styles));
977
991
  }
978
- const s = Tn(i, 200, {
992
+ const s = $n(i, 200, {
979
993
  leading: !1
980
994
  });
981
- function l(h) {
982
- const c = h.getBoundingClientRect(), p = window.innerHeight, g = (e.thresholdPercent || 0) / 100 * p;
983
- return c.bottom > g && c.top < p - g;
995
+ function l(m) {
996
+ const h = m.getBoundingClientRect(), d = window.innerHeight, S = (e.thresholdPercent || 0) / 100 * d;
997
+ return h.bottom > S && h.top < d - S;
984
998
  }
985
999
  const a = e.steps[0].styles;
986
1000
  function u() {
987
- j(n.style, a);
1001
+ K(n.style, a);
988
1002
  }
989
1003
  u(), setTimeout(() => {
990
- n.style.transition = `all ${e.duration}s ${he(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
1004
+ n.style.transition = `all ${e.duration}s ${ge(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
991
1005
  }), document.addEventListener("scroll", s, {
992
1006
  capture: !0,
993
1007
  passive: !0
994
1008
  }), i();
995
1009
  });
996
1010
  }
997
- const Ze = (e) => Object.entries(e).map(([n, o]) => {
1011
+ const tt = (e) => Object.entries(e).map(([n, o]) => {
998
1012
  if (typeof o == "string")
999
- return `${he(n)}: ${o};`;
1000
- }).filter(D), Rn = (e) => Ze(e).join(`
1001
- `), As = ({
1013
+ return `${ge(n)}: ${o};`;
1014
+ }).filter(L), Bn = (e) => tt(e).join(`
1015
+ `), Ns = ({
1002
1016
  mediaQuery: e,
1003
1017
  className: t,
1004
1018
  styles: n
1005
1019
  }) => {
1006
1020
  const o = `.${t} {
1007
- ${Rn(n)}
1021
+ ${Bn(n)}
1008
1022
  }`;
1009
1023
  return e ? `${e} {
1010
1024
  ${o}
1011
1025
  }` : o;
1012
1026
  };
1013
- function En({
1027
+ function xn({
1014
1028
  style: e
1015
1029
  }) {
1016
1030
  return e;
1017
1031
  }
1018
- const Vs = ({
1032
+ const Fs = ({
1019
1033
  block: e,
1020
1034
  context: t
1021
- }) => _e(En({
1035
+ }) => nt(xn({
1022
1036
  style: e.style || {},
1023
1037
  context: t,
1024
1038
  block: e
1025
1039
  }));
1026
- function _e(e) {
1027
- switch (R) {
1040
+ function nt(e) {
1041
+ switch (P) {
1028
1042
  case "svelte":
1029
1043
  case "vue":
1030
1044
  case "solid":
1031
1045
  case "angular":
1032
- return Ze(e).join(" ");
1046
+ return tt(e).join(" ");
1033
1047
  case "qwik":
1034
1048
  case "reactNative":
1035
1049
  case "react":
@@ -1037,7 +1051,7 @@ function _e(e) {
1037
1051
  return e;
1038
1052
  }
1039
1053
  }
1040
- const Pn = ({
1054
+ const An = ({
1041
1055
  block: e,
1042
1056
  registeredComponents: t
1043
1057
  }) => {
@@ -1051,7 +1065,7 @@ const Pn = ({
1051
1065
  console.warn(`
1052
1066
  Could not find a registered component named "${n}".
1053
1067
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
1054
- }, Bn = ({
1068
+ }, Vn = ({
1055
1069
  block: e,
1056
1070
  context: t
1057
1071
  }) => {
@@ -1084,59 +1098,59 @@ const Pn = ({
1084
1098
  },
1085
1099
  block: o
1086
1100
  }));
1087
- }, xn = (e, t) => {
1101
+ }, Wn = (e, t) => {
1088
1102
  var n;
1089
1103
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
1090
1104
  builderLinkComponent: t
1091
1105
  } : {};
1092
- }, An = (e, t) => {
1106
+ }, Nn = (e, t) => {
1093
1107
  var n;
1094
1108
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
1095
1109
  builderComponents: t
1096
1110
  } : {};
1097
- }, Vn = (e, t) => {
1111
+ }, Fn = (e, t) => {
1098
1112
  var n;
1099
1113
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
1100
1114
  builderBlock: t
1101
1115
  } : {};
1102
- }, Wn = (e, t) => {
1116
+ }, Dn = (e, t) => {
1103
1117
  var n;
1104
1118
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
1105
1119
  builderContext: t
1106
1120
  } : {};
1107
- }, Nn = () => Promise.resolve().then(() => Yn).then((e) => e.default).catch((e) => {
1121
+ }, On = () => Promise.resolve().then(() => Zn).then((e) => e.default).catch((e) => {
1108
1122
  throw console.error(
1109
1123
  "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
1110
1124
  e
1111
1125
  ), e;
1112
- }), Fn = () => import("./block-styles-mlFEPu97.js").then((e) => e.default).catch((e) => {
1126
+ }), Ln = () => import("./block-styles-mmmG5Zvb.js").then((e) => e.default).catch((e) => {
1113
1127
  throw console.error(
1114
1128
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
1115
1129
  e
1116
1130
  ), e;
1117
- }), On = () => import("./block-wrapper-hD0JtNOm.js").then((e) => e.default).catch((e) => {
1131
+ }), Un = () => import("./block-wrapper-6FrZVnI8.js").then((e) => e.default).catch((e) => {
1118
1132
  throw console.error(
1119
1133
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
1120
1134
  e
1121
1135
  ), e;
1122
- }), Dn = () => import("./component-ref-Bkl05aM4.js").then((e) => e.default).catch((e) => {
1136
+ }), Hn = () => import("./component-ref-u2wfD4PU.js").then((e) => e.default).catch((e) => {
1123
1137
  throw console.error(
1124
1138
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
1125
1139
  e
1126
1140
  ), e;
1127
- }), Ln = () => import("./repeated-block-WeKMcR5K.js").then((e) => e.default).catch((e) => {
1141
+ }), Mn = () => import("./repeated-block-h-cU9AMQ.js").then((e) => e.default).catch((e) => {
1128
1142
  throw console.error(
1129
1143
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
1130
1144
  e
1131
1145
  ), e;
1132
- }), Un = f({
1146
+ }), jn = b({
1133
1147
  name: "block",
1134
1148
  components: {
1135
- BlockStyles: H(Fn),
1136
- RepeatedBlock: H(Ln),
1137
- ComponentRef: H(Dn),
1138
- BlockWrapper: H(On),
1139
- DynamicDiv: H(Nn)
1149
+ BlockStyles: M(Ln),
1150
+ RepeatedBlock: M(Mn),
1151
+ ComponentRef: M(Hn),
1152
+ BlockWrapper: M(Un),
1153
+ DynamicDiv: M(On)
1140
1154
  },
1141
1155
  props: ["block", "context", "registeredComponents", "linkComponent"],
1142
1156
  data() {
@@ -1149,7 +1163,7 @@ const Pn = ({
1149
1163
  },
1150
1164
  mounted() {
1151
1165
  const e = this.processedBlock.id, t = this.processedBlock.animations;
1152
- t && e && wn(
1166
+ t && e && Rn(
1153
1167
  t.map((n) => ({
1154
1168
  ...n,
1155
1169
  elementId: e
@@ -1160,14 +1174,14 @@ const Pn = ({
1160
1174
  },
1161
1175
  computed: {
1162
1176
  repeatItem() {
1163
- return Bn({
1177
+ return Vn({
1164
1178
  block: this.block,
1165
1179
  context: this.context
1166
1180
  });
1167
1181
  },
1168
1182
  processedBlock() {
1169
1183
  var t;
1170
- return (t = this.block.repeat) != null && t.collection ? this.block : Ot({
1184
+ return (t = this.block.repeat) != null && t.collection ? this.block : Ut({
1171
1185
  block: this.block,
1172
1186
  localState: this.context.localState,
1173
1187
  rootState: this.context.rootState,
@@ -1177,7 +1191,7 @@ const Pn = ({
1177
1191
  });
1178
1192
  },
1179
1193
  blockComponent() {
1180
- return Pn({
1194
+ return An({
1181
1195
  block: this.processedBlock,
1182
1196
  registeredComponents: this.registeredComponents
1183
1197
  });
@@ -1203,11 +1217,11 @@ const Pn = ({
1203
1217
  blockChildren: this.processedBlock.children ?? [],
1204
1218
  componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
1205
1219
  componentOptions: {
1206
- ...Rt(this.processedBlock),
1207
- ...Vn(this.blockComponent, this.processedBlock),
1208
- ...Wn(this.blockComponent, this.context),
1209
- ...xn(this.blockComponent, this.linkComponent),
1210
- ...An(
1220
+ ...Bt(this.processedBlock),
1221
+ ...Fn(this.blockComponent, this.processedBlock),
1222
+ ...Dn(this.blockComponent, this.context),
1223
+ ...Wn(this.blockComponent, this.linkComponent),
1224
+ ...Nn(
1211
1225
  this.blockComponent,
1212
1226
  this.registeredComponents
1213
1227
  )
@@ -1217,27 +1231,27 @@ const Pn = ({
1217
1231
  registeredComponents: this.registeredComponents,
1218
1232
  builderBlock: this.processedBlock,
1219
1233
  includeBlockProps: ((t = this.blockComponent) == null ? void 0 : t.noWrap) === !0,
1220
- isInteractive: !((n = this.blockComponent) != null && n.isRSC && R === "rsc")
1234
+ isInteractive: !((n = this.blockComponent) != null && n.isRSC && P === "rsc")
1221
1235
  };
1222
1236
  }
1223
1237
  }
1224
1238
  });
1225
- function Hn(e, t, n, o, r, i) {
1226
- var c;
1227
- const s = v("BlockStyles"), l = v("ComponentRef"), a = v("Block", !0), u = v("BlockWrapper"), h = v("RepeatedBlock");
1228
- return e.canShowBlock ? (d(), m(T, { key: 0 }, [
1229
- I(s, {
1239
+ function Kn(e, t, n, o, r, i) {
1240
+ var h;
1241
+ const s = k("BlockStyles"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), m = k("RepeatedBlock");
1242
+ return e.canShowBlock ? (c(), p(w, { key: 0 }, [
1243
+ $(s, {
1230
1244
  block: e.processedBlock,
1231
1245
  context: e.context
1232
1246
  }, null, 8, ["block", "context"]),
1233
- (c = e.blockComponent) != null && c.noWrap ? (d(), m(T, { key: 1 }, [
1234
- e.repeatItem ? (d(!0), m(T, { key: 1 }, A(e.repeatItem, (p, y) => (d(), k(h, {
1235
- key: y,
1236
- repeatContext: p.context,
1237
- block: p.block,
1247
+ (h = e.blockComponent) != null && h.noWrap ? (c(), p(w, { key: 1 }, [
1248
+ e.repeatItem ? (c(!0), p(w, { key: 1 }, V(e.repeatItem, (d, f) => (c(), y(m, {
1249
+ key: f,
1250
+ repeatContext: d.context,
1251
+ block: d.block,
1238
1252
  registeredComponents: e.registeredComponents,
1239
1253
  linkComponent: e.linkComponent
1240
- }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (d(), k(l, {
1254
+ }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (c(), y(l, {
1241
1255
  key: 0,
1242
1256
  componentRef: e.componentRefProps.componentRef,
1243
1257
  componentOptions: e.componentRefProps.componentOptions,
@@ -1249,21 +1263,21 @@ function Hn(e, t, n, o, r, i) {
1249
1263
  includeBlockProps: e.componentRefProps.includeBlockProps,
1250
1264
  isInteractive: e.componentRefProps.isInteractive
1251
1265
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
1252
- ], 64)) : (d(), m(T, { key: 0 }, [
1253
- e.repeatItem ? (d(!0), m(T, { key: 1 }, A(e.repeatItem, (p, y) => (d(), k(h, {
1254
- key: y,
1255
- repeatContext: p.context,
1256
- block: p.block,
1266
+ ], 64)) : (c(), p(w, { key: 0 }, [
1267
+ e.repeatItem ? (c(!0), p(w, { key: 1 }, V(e.repeatItem, (d, f) => (c(), y(m, {
1268
+ key: f,
1269
+ repeatContext: d.context,
1270
+ block: d.block,
1257
1271
  registeredComponents: e.registeredComponents,
1258
1272
  linkComponent: e.linkComponent
1259
- }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (d(), k(u, {
1273
+ }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (c(), y(u, {
1260
1274
  key: 0,
1261
1275
  Wrapper: e.Tag,
1262
1276
  block: e.processedBlock,
1263
1277
  context: e.context
1264
1278
  }, {
1265
- default: W(() => [
1266
- I(l, {
1279
+ default: N(() => [
1280
+ $(l, {
1267
1281
  componentRef: e.componentRefProps.componentRef,
1268
1282
  componentOptions: e.componentRefProps.componentOptions,
1269
1283
  blockChildren: e.componentRefProps.blockChildren,
@@ -1274,9 +1288,9 @@ function Hn(e, t, n, o, r, i) {
1274
1288
  includeBlockProps: e.componentRefProps.includeBlockProps,
1275
1289
  isInteractive: e.componentRefProps.isInteractive
1276
1290
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
1277
- (d(!0), m(T, null, A(e.childrenWithoutParentComponent, (p, y) => (d(), k(a, {
1278
- key: p.id,
1279
- block: p,
1291
+ (c(!0), p(w, null, V(e.childrenWithoutParentComponent, (d, f) => (c(), y(a, {
1292
+ key: d.id,
1293
+ block: d,
1280
1294
  registeredComponents: e.registeredComponents,
1281
1295
  linkComponent: e.linkComponent,
1282
1296
  context: e.context
@@ -1285,12 +1299,12 @@ function Hn(e, t, n, o, r, i) {
1285
1299
  _: 1
1286
1300
  }, 8, ["Wrapper", "block", "context"]))
1287
1301
  ], 64))
1288
- ], 64)) : S("", !0);
1302
+ ], 64)) : v("", !0);
1289
1303
  }
1290
- const fe = /* @__PURE__ */ b(Un, [["render", Hn]]), Ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1304
+ const ye = /* @__PURE__ */ g(jn, [["render", Kn]]), Ds = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1291
1305
  __proto__: null,
1292
- default: fe
1293
- }, Symbol.toStringTag, { value: "Module" })), Mn = f({
1306
+ default: ye
1307
+ }, Symbol.toStringTag, { value: "Module" })), qn = b({
1294
1308
  name: "builder-blocks-wrapper",
1295
1309
  props: [
1296
1310
  "blocks",
@@ -1322,7 +1336,7 @@ const fe = /* @__PURE__ */ b(Un, [["render", Hn]]), Ws = /* @__PURE__ */ Object.
1322
1336
  methods: {
1323
1337
  onClick() {
1324
1338
  var e, t;
1325
- E() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1339
+ B() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1326
1340
  {
1327
1341
  type: "builder.clickEmptyBlocks",
1328
1342
  data: {
@@ -1335,7 +1349,7 @@ const fe = /* @__PURE__ */ b(Un, [["render", Hn]]), Ws = /* @__PURE__ */ Object.
1335
1349
  },
1336
1350
  onMouseEnter() {
1337
1351
  var e, t;
1338
- E() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1352
+ B() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1339
1353
  {
1340
1354
  type: "builder.hoverEmptyBlocks",
1341
1355
  data: {
@@ -1348,8 +1362,8 @@ const fe = /* @__PURE__ */ b(Un, [["render", Hn]]), Ws = /* @__PURE__ */ Object.
1348
1362
  }
1349
1363
  }
1350
1364
  });
1351
- function jn(e, t, n, o, r, i) {
1352
- return d(), k(M(e.BlocksWrapper), C({
1365
+ function zn(e, t, n, o, r, i) {
1366
+ return c(), y(j(e.BlocksWrapper), C({
1353
1367
  ref: "blocksWrapperRef",
1354
1368
  class: e.className + " component-1k2igrjdg3x",
1355
1369
  "builder-path": e.dataPath,
@@ -1359,15 +1373,15 @@ function jn(e, t, n, o, r, i) {
1359
1373
  onMouseEnter: (s) => e.onMouseEnter(),
1360
1374
  onKeyPress: (s) => e.onClick()
1361
1375
  }, { ...e.BlocksWrapperProps }), {
1362
- default: W(() => [
1363
- B(e.$slots, "default", {}, void 0, !0)
1376
+ default: N(() => [
1377
+ A(e.$slots, "default", {}, void 0, !0)
1364
1378
  ]),
1365
1379
  _: 3
1366
1380
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
1367
1381
  }
1368
- const Kn = /* @__PURE__ */ b(Mn, [["render", jn], ["__scopeId", "data-v-ba2bc5c0"]]), qn = f({
1382
+ const Gn = /* @__PURE__ */ g(qn, [["render", zn], ["__scopeId", "data-v-ba2bc5c0"]]), Jn = b({
1369
1383
  name: "builder-blocks",
1370
- components: { BlocksWrapper: Kn, Block: fe },
1384
+ components: { BlocksWrapper: Gn, Block: ye },
1371
1385
  props: [
1372
1386
  "blocks",
1373
1387
  "parent",
@@ -1379,52 +1393,52 @@ const Kn = /* @__PURE__ */ b(Mn, [["render", jn], ["__scopeId", "data-v-ba2bc5c0
1379
1393
  "registeredComponents"
1380
1394
  ],
1381
1395
  inject: {
1382
- builderContext: se.key,
1383
- componentsContext: Be.key
1396
+ builderContext: ae.key,
1397
+ componentsContext: Ve.key
1384
1398
  }
1385
1399
  });
1386
- function zn(e, t, n, o, r, i) {
1387
- var a, u, h, c;
1388
- const s = v("Block"), l = v("BlocksWrapper");
1389
- return d(), k(l, {
1400
+ function Yn(e, t, n, o, r, i) {
1401
+ var a, u, m, h;
1402
+ const s = k("Block"), l = k("BlocksWrapper");
1403
+ return c(), y(l, {
1390
1404
  blocks: e.blocks,
1391
1405
  parent: e.parent,
1392
1406
  path: e.path,
1393
1407
  styleProp: e.styleProp,
1394
1408
  classNameProp: e.className,
1395
1409
  BlocksWrapper: ((a = e.context) == null ? void 0 : a.BlocksWrapper) || ((u = e.builderContext) == null ? void 0 : u.BlocksWrapper),
1396
- BlocksWrapperProps: ((h = e.context) == null ? void 0 : h.BlocksWrapperProps) || ((c = e.builderContext) == null ? void 0 : c.BlocksWrapperProps)
1410
+ BlocksWrapperProps: ((m = e.context) == null ? void 0 : m.BlocksWrapperProps) || ((h = e.builderContext) == null ? void 0 : h.BlocksWrapperProps)
1397
1411
  }, {
1398
- default: W(() => [
1399
- e.blocks ? (d(!0), m(T, { key: 0 }, A(e.blocks, (p, y) => {
1400
- var g;
1401
- return d(), k(s, {
1402
- key: p.id,
1403
- block: p,
1412
+ default: N(() => [
1413
+ e.blocks ? (c(!0), p(w, { key: 0 }, V(e.blocks, (d, f) => {
1414
+ var S;
1415
+ return c(), y(s, {
1416
+ key: d.id,
1417
+ block: d,
1404
1418
  linkComponent: e.linkComponent,
1405
1419
  context: e.context || e.builderContext,
1406
- registeredComponents: e.registeredComponents || ((g = e.componentsContext) == null ? void 0 : g.registeredComponents)
1420
+ registeredComponents: e.registeredComponents || ((S = e.componentsContext) == null ? void 0 : S.registeredComponents)
1407
1421
  }, null, 8, ["block", "linkComponent", "context", "registeredComponents"]);
1408
- }), 128)) : S("", !0)
1422
+ }), 128)) : v("", !0)
1409
1423
  ]),
1410
1424
  _: 1
1411
1425
  }, 8, ["blocks", "parent", "path", "styleProp", "classNameProp", "BlocksWrapper", "BlocksWrapperProps"]);
1412
1426
  }
1413
- const L = /* @__PURE__ */ b(qn, [["render", zn]]), Jn = f({
1427
+ const U = /* @__PURE__ */ g(Jn, [["render", Yn]]), Xn = b({
1414
1428
  name: "dynamic-div",
1415
1429
  props: []
1416
1430
  });
1417
- function Gn(e, t, n, o, r, i) {
1418
- return d(), m("div", null, [
1419
- B(e.$slots, "default")
1431
+ function Qn(e, t, n, o, r, i) {
1432
+ return c(), p("div", null, [
1433
+ A(e.$slots, "default")
1420
1434
  ]);
1421
1435
  }
1422
- const G = /* @__PURE__ */ b(Jn, [["render", Gn]]), Yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1436
+ const Y = /* @__PURE__ */ g(Xn, [["render", Qn]]), Zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1423
1437
  __proto__: null,
1424
- default: G
1425
- }, Symbol.toStringTag, { value: "Module" })), be = f({
1438
+ default: Y
1439
+ }, Symbol.toStringTag, { value: "Module" })), ke = b({
1426
1440
  render() {
1427
- return Re("style", {
1441
+ return Be("style", {
1428
1442
  innerHTML: this.styles,
1429
1443
  "data-id": this.id,
1430
1444
  nonce: this.nonce
@@ -1432,7 +1446,7 @@ const G = /* @__PURE__ */ b(Jn, [["render", Gn]]), Yn = /* @__PURE__ */ Object.f
1432
1446
  },
1433
1447
  name: "inlined-styles",
1434
1448
  props: ["styles", "id", "nonce"]
1435
- }), et = {
1449
+ }), ot = {
1436
1450
  small: {
1437
1451
  min: 320,
1438
1452
  default: 321,
@@ -1448,11 +1462,11 @@ const G = /* @__PURE__ */ b(Jn, [["render", Gn]]), Yn = /* @__PURE__ */ Object.f
1448
1462
  default: 991,
1449
1463
  max: 1200
1450
1464
  }
1451
- }, Ns = (e, t = et) => `@media (max-width: ${t[e].max}px)`, Xn = ({
1465
+ }, Os = (e, t = ot) => `@media (max-width: ${t[e].max}px)`, _n = ({
1452
1466
  small: e,
1453
1467
  medium: t
1454
1468
  }) => {
1455
- const n = ce(et);
1469
+ const n = ue(ot);
1456
1470
  if (!e || !t)
1457
1471
  return n;
1458
1472
  const o = Math.floor(e / 2);
@@ -1474,13 +1488,13 @@ const G = /* @__PURE__ */ b(Jn, [["render", Gn]]), Yn = /* @__PURE__ */ Object.f
1474
1488
  min: i,
1475
1489
  default: i + 1
1476
1490
  }, n;
1477
- }, Qn = (e) => `builder-columns ${e}-breakpoints`, Zn = f({
1491
+ }, eo = (e) => `builder-columns ${e}-breakpoints`, to = b({
1478
1492
  name: "builder-columns",
1479
1493
  components: {
1480
- InlinedStyles: be,
1481
- DynamicRenderer: de,
1482
- Blocks: L,
1483
- DynamicDiv: G
1494
+ InlinedStyles: ke,
1495
+ DynamicRenderer: pe,
1496
+ Blocks: U,
1497
+ DynamicDiv: Y
1484
1498
  },
1485
1499
  props: [
1486
1500
  "space",
@@ -1493,7 +1507,7 @@ const G = /* @__PURE__ */ b(Jn, [["render", Gn]]), Yn = /* @__PURE__ */ Object.f
1493
1507
  "builderComponents"
1494
1508
  ],
1495
1509
  data() {
1496
- return { TARGET: R, getColumnsClass: Qn };
1510
+ return { TARGET: P, getColumnsClass: eo };
1497
1511
  },
1498
1512
  computed: {
1499
1513
  gutterSize() {
@@ -1572,7 +1586,7 @@ const G = /* @__PURE__ */ b(Jn, [["render", Gn]]), Yn = /* @__PURE__ */ Object.f
1572
1586
  },
1573
1587
  getWidthForBreakpointSize(e) {
1574
1588
  var n, o;
1575
- return Xn(
1589
+ return _n(
1576
1590
  ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
1577
1591
  )[e].max;
1578
1592
  },
@@ -1609,34 +1623,34 @@ const G = /* @__PURE__ */ b(Jn, [["render", Gn]]), Yn = /* @__PURE__ */ Object.f
1609
1623
  ...e.link ? {
1610
1624
  href: e.link
1611
1625
  } : {},
1612
- [Q()]: "builder-column",
1613
- style: _e(this.columnCssVars(t))
1626
+ [Z()]: "builder-column",
1627
+ style: nt(this.columnCssVars(t))
1614
1628
  };
1615
1629
  }
1616
1630
  }
1617
1631
  });
1618
- function _n(e, t, n, o, r, i) {
1632
+ function no(e, t, n, o, r, i) {
1619
1633
  var u;
1620
- const s = v("InlinedStyles"), l = v("Blocks"), a = v("DynamicRenderer");
1621
- return d(), m("div", C({
1634
+ const s = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
1635
+ return c(), p("div", C({
1622
1636
  class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-4wbls88y960",
1623
1637
  style: e.columnsCssVars()
1624
1638
  }, {}), [
1625
- e.TARGET !== "reactNative" ? (d(), k(s, {
1639
+ e.TARGET !== "reactNative" ? (c(), y(s, {
1626
1640
  key: 0,
1627
1641
  id: "builderio-columns",
1628
1642
  styles: e.columnsStyles(),
1629
1643
  nonce: e.builderContext.nonce
1630
- }, null, 8, ["styles", "nonce"])) : S("", !0),
1631
- (d(!0), m(T, null, A(e.columns, (h, c) => (d(), k(a, {
1632
- key: c,
1633
- TagName: e.getTagName(h),
1644
+ }, null, 8, ["styles", "nonce"])) : v("", !0),
1645
+ (c(!0), p(w, null, V(e.columns, (m, h) => (c(), y(a, {
1646
+ key: h,
1647
+ TagName: e.getTagName(m),
1634
1648
  actionAttributes: {},
1635
- attributes: e.getAttributes(h, c)
1649
+ attributes: e.getAttributes(m, h)
1636
1650
  }, {
1637
- default: W(() => [
1638
- I(l, {
1639
- path: `columns.${c}.blocks`,
1651
+ default: N(() => [
1652
+ $(l, {
1653
+ path: `columns.${h}.blocks`,
1640
1654
  parent: e.builderBlock.id,
1641
1655
  styleProp: {
1642
1656
  flexGrow: "1"
@@ -1644,54 +1658,54 @@ function _n(e, t, n, o, r, i) {
1644
1658
  context: e.builderContext,
1645
1659
  registeredComponents: e.builderComponents,
1646
1660
  linkComponent: e.builderLinkComponent,
1647
- blocks: h.blocks
1661
+ blocks: m.blocks
1648
1662
  }, null, 8, ["path", "parent", "context", "registeredComponents", "linkComponent", "blocks"])
1649
1663
  ]),
1650
1664
  _: 2
1651
1665
  }, 1032, ["TagName", "attributes"]))), 128))
1652
1666
  ], 16);
1653
1667
  }
1654
- const eo = /* @__PURE__ */ b(Zn, [["render", _n], ["__scopeId", "data-v-3354f136"]]), to = f({
1668
+ const oo = /* @__PURE__ */ g(to, [["render", no], ["__scopeId", "data-v-3354f136"]]), ro = b({
1655
1669
  name: "builder-fragment-component",
1656
1670
  props: []
1657
1671
  });
1658
- function no(e, t, n, o, r, i) {
1659
- return d(), m("span", null, [
1660
- B(e.$slots, "default")
1672
+ function so(e, t, n, o, r, i) {
1673
+ return c(), p("span", null, [
1674
+ A(e.$slots, "default")
1661
1675
  ]);
1662
1676
  }
1663
- const oo = /* @__PURE__ */ b(to, [["render", no]]);
1664
- function Te(e) {
1677
+ const io = /* @__PURE__ */ g(ro, [["render", so]]);
1678
+ function $e(e) {
1665
1679
  return e.replace(/http(s)?:/, "");
1666
1680
  }
1667
- function ro(e = "", t, n) {
1681
+ function ao(e = "", t, n) {
1668
1682
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
1669
1683
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
1670
1684
  }
1671
- function so(e, t) {
1685
+ function lo(e, t) {
1672
1686
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1673
1687
  return e;
1674
1688
  if (t === "master")
1675
- return Te(e);
1689
+ return $e(e);
1676
1690
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1677
1691
  if (n) {
1678
1692
  const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
1679
- return Te(`${o[0]}_${i}${r}`);
1693
+ return $e(`${o[0]}_${i}${r}`);
1680
1694
  }
1681
1695
  return null;
1682
1696
  }
1683
- function ee(e) {
1697
+ function ne(e) {
1684
1698
  if (!e)
1685
1699
  return e;
1686
1700
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1687
1701
  if (e.match(/builder\.io/)) {
1688
1702
  let n = e;
1689
1703
  const o = Number(e.split("?width=")[1]);
1690
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${ro(e, "width", r)} ${r}w`).concat([n]).join(", ");
1704
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${ao(e, "width", r)} ${r}w`).concat([n]).join(", ");
1691
1705
  }
1692
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [so(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1706
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [lo(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1693
1707
  }
1694
- const io = f({
1708
+ const co = b({
1695
1709
  name: "builder-image",
1696
1710
  props: [
1697
1711
  "image",
@@ -1721,10 +1735,10 @@ const io = f({
1721
1735
  if (!this.noWebp) {
1722
1736
  if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
1723
1737
  if (!this.srcset.includes(this.image.split("?")[0]))
1724
- return console.debug("Removed given srcset"), ee(t);
1738
+ return console.debug("Removed given srcset"), ne(t);
1725
1739
  } else if (this.image && !this.srcset)
1726
- return ee(t);
1727
- return ee(t);
1740
+ return ne(t);
1741
+ return ne(t);
1728
1742
  }
1729
1743
  },
1730
1744
  webpSrcSet() {
@@ -1742,59 +1756,59 @@ const io = f({
1742
1756
  return this.aspectRatio ? e : void 0;
1743
1757
  }
1744
1758
  }
1745
- }), ao = ["srcset"], lo = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], co = {
1759
+ }), uo = ["srcset"], po = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], mo = {
1746
1760
  key: 2,
1747
1761
  class: "div-29wpyomtntv-2"
1748
1762
  };
1749
- function uo(e, t, n, o, r, i) {
1750
- var s, l, a, u, h, c;
1751
- return d(), m(T, null, [
1752
- K("picture", null, [
1753
- e.webpSrcSet ? (d(), m("source", {
1763
+ function ho(e, t, n, o, r, i) {
1764
+ var s, l, a, u, m, h;
1765
+ return c(), p(w, null, [
1766
+ q("picture", null, [
1767
+ e.webpSrcSet ? (c(), p("source", {
1754
1768
  key: 0,
1755
1769
  type: "image/webp",
1756
1770
  srcset: e.webpSrcSet
1757
- }, null, 8, ao)) : S("", !0),
1758
- K("img", {
1771
+ }, null, 8, uo)) : v("", !0),
1772
+ q("img", {
1759
1773
  loading: e.highPriority ? "eager" : "lazy",
1760
1774
  fetchpriority: e.highPriority ? "high" : "auto",
1761
1775
  alt: e.altText,
1762
1776
  role: e.altText ? void 0 : "presentation",
1763
- style: O({
1777
+ style: D({
1764
1778
  objectPosition: e.backgroundPosition || "center",
1765
1779
  objectFit: e.backgroundSize || "cover",
1766
1780
  ...e.aspectRatioCss
1767
1781
  }),
1768
- class: q(
1782
+ class: z(
1769
1783
  "builder-image" + (e.className ? " " + e.className : "") + " img-29wpyomtntv"
1770
1784
  ),
1771
1785
  src: e.image,
1772
1786
  srcset: e.srcSetToUse,
1773
1787
  sizes: e.sizes
1774
- }, null, 14, lo)
1788
+ }, null, 14, po)
1775
1789
  ]),
1776
- e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (d(), m("div", {
1790
+ e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (c(), p("div", {
1777
1791
  key: 0,
1778
1792
  class: "builder-image-sizer div-29wpyomtntv",
1779
- style: O({
1793
+ style: D({
1780
1794
  paddingTop: e.aspectRatio * 100 + "%"
1781
1795
  })
1782
- }, null, 4)) : S("", !0),
1783
- (u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? B(e.$slots, "default", { key: 1 }, void 0, !0) : S("", !0),
1784
- !e.fitContent && ((c = (h = e.builderBlock) == null ? void 0 : h.children) != null && c.length) ? (d(), m("div", co, [
1785
- B(e.$slots, "default", {}, void 0, !0)
1786
- ])) : S("", !0)
1796
+ }, null, 4)) : v("", !0),
1797
+ (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),
1798
+ !e.fitContent && ((h = (m = e.builderBlock) == null ? void 0 : m.children) != null && h.length) ? (c(), p("div", mo, [
1799
+ A(e.$slots, "default", {}, void 0, !0)
1800
+ ])) : v("", !0)
1787
1801
  ], 64);
1788
1802
  }
1789
- const po = /* @__PURE__ */ b(io, [["render", uo], ["__scopeId", "data-v-77f8a6c4"]]), mo = f({
1803
+ const fo = /* @__PURE__ */ g(co, [["render", ho], ["__scopeId", "data-v-77f8a6c4"]]), bo = b({
1790
1804
  name: "builder-section-component",
1791
1805
  props: ["attributes", "maxWidth"],
1792
1806
  data() {
1793
- return { filterAttrs: V };
1807
+ return { filterAttrs: W };
1794
1808
  }
1795
1809
  });
1796
- function ho(e, t, n, o, r, i) {
1797
- return d(), m("section", C({
1810
+ function go(e, t, n, o, r, i) {
1811
+ return c(), p("section", C({
1798
1812
  style: {
1799
1813
  width: "100%",
1800
1814
  alignSelf: "stretch",
@@ -1807,11 +1821,11 @@ function ho(e, t, n, o, r, i) {
1807
1821
  marginLeft: "auto",
1808
1822
  marginRight: "auto"
1809
1823
  }
1810
- }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
1811
- B(e.$slots, "default")
1824
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
1825
+ A(e.$slots, "default")
1812
1826
  ], 16);
1813
1827
  }
1814
- const fo = /* @__PURE__ */ b(mo, [["render", ho]]), te = {
1828
+ const yo = /* @__PURE__ */ g(bo, [["render", go]]), oe = {
1815
1829
  "@type": "@builder.io/sdk:Element",
1816
1830
  layerName: "Accordion item title",
1817
1831
  responsiveStyles: {
@@ -1840,7 +1854,7 @@ const fo = /* @__PURE__ */ b(mo, [["render", ho]]), te = {
1840
1854
  }
1841
1855
  }
1842
1856
  }]
1843
- }, ne = {
1857
+ }, re = {
1844
1858
  "@type": "@builder.io/sdk:Element",
1845
1859
  layerName: "Accordion item detail",
1846
1860
  responsiveStyles: {
@@ -1871,7 +1885,7 @@ const fo = /* @__PURE__ */ b(mo, [["render", ho]]), te = {
1871
1885
  }
1872
1886
  }
1873
1887
  }]
1874
- }, bo = {
1888
+ }, ko = {
1875
1889
  name: "Builder:Accordion",
1876
1890
  canHaveChildren: !0,
1877
1891
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1888,19 +1902,19 @@ const fo = /* @__PURE__ */ b(mo, [["render", ho]]), te = {
1888
1902
  name: "title",
1889
1903
  type: "uiBlocks",
1890
1904
  hideFromUI: !0,
1891
- defaultValue: [te]
1905
+ defaultValue: [oe]
1892
1906
  }, {
1893
1907
  name: "detail",
1894
1908
  type: "uiBlocks",
1895
1909
  hideFromUI: !0,
1896
- defaultValue: [ne]
1910
+ defaultValue: [re]
1897
1911
  }],
1898
1912
  defaultValue: [{
1899
- title: [te],
1900
- detail: [ne]
1913
+ title: [oe],
1914
+ detail: [re]
1901
1915
  }, {
1902
- title: [te],
1903
- detail: [ne]
1916
+ title: [oe],
1917
+ detail: [re]
1904
1918
  }],
1905
1919
  showIf: (e) => !e.get("useChildrenForItems")
1906
1920
  }, {
@@ -1935,9 +1949,9 @@ const fo = /* @__PURE__ */ b(mo, [["render", ho]]), te = {
1935
1949
  builderComponents: !0,
1936
1950
  builderLinkComponent: !0
1937
1951
  }
1938
- }, go = (e) => e.toString(), yo = f({
1952
+ }, vo = (e) => e.toString(), So = b({
1939
1953
  name: "builder-accordion",
1940
- components: { Blocks: L },
1954
+ components: { Blocks: U },
1941
1955
  props: [
1942
1956
  "grid",
1943
1957
  "oneAtATime",
@@ -1949,7 +1963,7 @@ const fo = /* @__PURE__ */ b(mo, [["render", ho]]), te = {
1949
1963
  "builderLinkComponent"
1950
1964
  ],
1951
1965
  data() {
1952
- return { open: [], convertOrderNumberToString: go };
1966
+ return { open: [], convertOrderNumberToString: vo };
1953
1967
  },
1954
1968
  computed: {
1955
1969
  onlyOneAtATime() {
@@ -2030,17 +2044,17 @@ const fo = /* @__PURE__ */ b(mo, [["render", ho]]), te = {
2030
2044
  this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
2031
2045
  }
2032
2046
  }
2033
- }), ko = ["data-index", "onClick"];
2034
- function vo(e, t, n, o, r, i) {
2035
- const s = v("Blocks");
2036
- return d(), m("div", {
2047
+ }), Co = ["data-index", "onClick"];
2048
+ function To(e, t, n, o, r, i) {
2049
+ const s = k("Blocks");
2050
+ return c(), p("div", {
2037
2051
  class: "builder-accordion",
2038
- style: O(e.accordionStyles)
2052
+ style: D(e.accordionStyles)
2039
2053
  }, [
2040
- (d(!0), m(T, null, A(e.items, (l, a) => (d(), m(T, { key: a }, [
2041
- K("div", {
2042
- class: q(e.getAccordionTitleClassName(a)),
2043
- style: O({
2054
+ (c(!0), p(w, null, V(e.items, (l, a) => (c(), p(w, { key: a }, [
2055
+ q("div", {
2056
+ class: z(e.getAccordionTitleClassName(a)),
2057
+ style: D({
2044
2058
  ...e.accordionTitleStyles,
2045
2059
  ...e.grid && {
2046
2060
  width: e.gridRowWidth,
@@ -2050,7 +2064,7 @@ function vo(e, t, n, o, r, i) {
2050
2064
  "data-index": a,
2051
2065
  onClick: (u) => e.onClick(a)
2052
2066
  }, [
2053
- I(s, {
2067
+ $(s, {
2054
2068
  blocks: l.title,
2055
2069
  path: `items.${a}.title`,
2056
2070
  parent: e.builderBlock.id,
@@ -2058,13 +2072,13 @@ function vo(e, t, n, o, r, i) {
2058
2072
  registeredComponents: e.builderComponents,
2059
2073
  linkComponent: e.builderLinkComponent
2060
2074
  }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
2061
- ], 14, ko),
2062
- e.open.includes(a) ? (d(), m("div", {
2075
+ ], 14, Co),
2076
+ e.open.includes(a) ? (c(), p("div", {
2063
2077
  key: 0,
2064
- class: q(e.getAccordionDetailClassName(a)),
2065
- style: O(e.accordionDetailStyles)
2078
+ class: z(e.getAccordionDetailClassName(a)),
2079
+ style: D(e.accordionDetailStyles)
2066
2080
  }, [
2067
- I(s, {
2081
+ $(s, {
2068
2082
  blocks: l.detail,
2069
2083
  path: `items.${a}.detail`,
2070
2084
  parent: e.builderBlock.id,
@@ -2072,11 +2086,11 @@ function vo(e, t, n, o, r, i) {
2072
2086
  registeredComponents: e.builderComponents,
2073
2087
  linkComponent: e.builderLinkComponent
2074
2088
  }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
2075
- ], 6)) : S("", !0)
2089
+ ], 6)) : v("", !0)
2076
2090
  ], 64))), 128))
2077
2091
  ], 4);
2078
2092
  }
2079
- const So = /* @__PURE__ */ b(yo, [["render", vo]]), Co = {
2093
+ const wo = /* @__PURE__ */ g(So, [["render", To]]), Io = {
2080
2094
  name: "Core:Button",
2081
2095
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
2082
2096
  defaultStyles: {
@@ -2112,7 +2126,7 @@ const So = /* @__PURE__ */ b(yo, [["render", vo]]), Co = {
2112
2126
  shouldReceiveBuilderProps: {
2113
2127
  builderLinkComponent: !0
2114
2128
  }
2115
- }, To = {
2129
+ }, $o = {
2116
2130
  // TODO: ways to statically preprocess JSON for references, functions, etc
2117
2131
  name: "Columns",
2118
2132
  isRSC: !0,
@@ -2319,13 +2333,13 @@ const So = /* @__PURE__ */ b(yo, [["render", vo]]), Co = {
2319
2333
  builderComponents: !0,
2320
2334
  builderLinkComponent: !0
2321
2335
  }
2322
- }, wo = {
2336
+ }, Ro = {
2323
2337
  name: "Fragment",
2324
2338
  static: !0,
2325
2339
  hidden: !0,
2326
2340
  canHaveChildren: !0,
2327
2341
  noWrap: !0
2328
- }, Io = {
2342
+ }, Eo = {
2329
2343
  name: "Image",
2330
2344
  static: !0,
2331
2345
  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",
@@ -2347,14 +2361,14 @@ const So = /* @__PURE__ */ b(yo, [["render", vo]]), Co = {
2347
2361
  e.delete("srcset"), e.delete("noWebp");
2348
2362
  function n(s, l = 6e4) {
2349
2363
  return new Promise((a, u) => {
2350
- const h = document.createElement("img");
2351
- let c = !1;
2352
- h.onload = () => {
2353
- c = !0, a(h);
2354
- }, h.addEventListener("error", (p) => {
2355
- console.warn("Image load failed", p.error), u(p.error);
2356
- }), h.src = s, setTimeout(() => {
2357
- c || u(new Error("Image load timed out"));
2364
+ const m = document.createElement("img");
2365
+ let h = !1;
2366
+ m.onload = () => {
2367
+ h = !0, a(m);
2368
+ }, m.addEventListener("error", (d) => {
2369
+ console.warn("Image load failed", d.error), u(d.error);
2370
+ }), m.src = s, setTimeout(() => {
2371
+ h || u(new Error("Image load timed out"));
2358
2372
  }, l);
2359
2373
  });
2360
2374
  }
@@ -2433,7 +2447,7 @@ const So = /* @__PURE__ */ b(yo, [["render", vo]]), Co = {
2433
2447
  shouldReceiveBuilderProps: {
2434
2448
  builderBlock: !0
2435
2449
  }
2436
- }, $o = {
2450
+ }, Po = {
2437
2451
  name: "Core:Section",
2438
2452
  static: !0,
2439
2453
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -2472,7 +2486,7 @@ const So = /* @__PURE__ */ b(yo, [["render", vo]]), Co = {
2472
2486
  }
2473
2487
  }
2474
2488
  }]
2475
- }, Ro = {
2489
+ }, Bo = {
2476
2490
  name: "Slot",
2477
2491
  isRSC: !0,
2478
2492
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -2489,15 +2503,15 @@ const So = /* @__PURE__ */ b(yo, [["render", vo]]), Co = {
2489
2503
  builderContext: !0,
2490
2504
  builderComponents: !0
2491
2505
  }
2492
- }, Eo = f({
2506
+ }, xo = b({
2493
2507
  name: "builder-slot",
2494
- components: { Blocks: L },
2508
+ components: { Blocks: U },
2495
2509
  props: ["builderContext", "name", "builderComponents"]
2496
2510
  });
2497
- function Po(e, t, n, o, r, i) {
2511
+ function Ao(e, t, n, o, r, i) {
2498
2512
  var l, a, u;
2499
- const s = v("Blocks");
2500
- return d(), m("div", C(
2513
+ const s = k("Blocks");
2514
+ return c(), p("div", C(
2501
2515
  { style: {
2502
2516
  pointerEvents: "auto"
2503
2517
  } },
@@ -2505,7 +2519,7 @@ function Po(e, t, n, o, r, i) {
2505
2519
  "builder-slot": e.name
2506
2520
  }
2507
2521
  ), [
2508
- I(s, {
2522
+ $(s, {
2509
2523
  parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
2510
2524
  path: `symbol.data.${e.name}`,
2511
2525
  context: e.builderContext,
@@ -2514,7 +2528,7 @@ function Po(e, t, n, o, r, i) {
2514
2528
  }, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
2515
2529
  ], 16);
2516
2530
  }
2517
- const Bo = /* @__PURE__ */ b(Eo, [["render", Po]]), xo = {
2531
+ const Vo = /* @__PURE__ */ g(xo, [["render", Ao]]), Wo = {
2518
2532
  name: "Symbol",
2519
2533
  noWrap: !0,
2520
2534
  static: !0,
@@ -2553,7 +2567,7 @@ const Bo = /* @__PURE__ */ b(Eo, [["render", Po]]), xo = {
2553
2567
  builderComponents: !0,
2554
2568
  builderLinkComponent: !0
2555
2569
  }
2556
- }, oe = {
2570
+ }, se = {
2557
2571
  "@type": "@builder.io/sdk:Element",
2558
2572
  responsiveStyles: {
2559
2573
  large: {
@@ -2575,7 +2589,7 @@ const Bo = /* @__PURE__ */ b(Eo, [["render", Po]]), xo = {
2575
2589
  text: "New tab"
2576
2590
  }
2577
2591
  }
2578
- }, re = {
2592
+ }, ie = {
2579
2593
  "@type": "@builder.io/sdk:Element",
2580
2594
  responsiveStyles: {
2581
2595
  large: {
@@ -2591,7 +2605,7 @@ const Bo = /* @__PURE__ */ b(Eo, [["render", Po]]), xo = {
2591
2605
  text: "New tab content "
2592
2606
  }
2593
2607
  }
2594
- }, Ao = {
2608
+ }, No = {
2595
2609
  name: "Builder: Tabs",
2596
2610
  inputs: [{
2597
2611
  name: "tabs",
@@ -2601,16 +2615,16 @@ const Bo = /* @__PURE__ */ b(Eo, [["render", Po]]), xo = {
2601
2615
  name: "label",
2602
2616
  type: "uiBlocks",
2603
2617
  hideFromUI: !0,
2604
- defaultValue: [oe]
2618
+ defaultValue: [se]
2605
2619
  }, {
2606
2620
  name: "content",
2607
2621
  type: "uiBlocks",
2608
2622
  hideFromUI: !0,
2609
- defaultValue: [re]
2623
+ defaultValue: [ie]
2610
2624
  }],
2611
2625
  defaultValue: [{
2612
2626
  label: [{
2613
- ...oe,
2627
+ ...se,
2614
2628
  component: {
2615
2629
  name: "Text",
2616
2630
  options: {
@@ -2619,7 +2633,7 @@ const Bo = /* @__PURE__ */ b(Eo, [["render", Po]]), xo = {
2619
2633
  }
2620
2634
  }],
2621
2635
  content: [{
2622
- ...re,
2636
+ ...ie,
2623
2637
  component: {
2624
2638
  name: "Text",
2625
2639
  options: {
@@ -2629,7 +2643,7 @@ const Bo = /* @__PURE__ */ b(Eo, [["render", Po]]), xo = {
2629
2643
  }]
2630
2644
  }, {
2631
2645
  label: [{
2632
- ...oe,
2646
+ ...se,
2633
2647
  component: {
2634
2648
  name: "Text",
2635
2649
  options: {
@@ -2638,7 +2652,7 @@ const Bo = /* @__PURE__ */ b(Eo, [["render", Po]]), xo = {
2638
2652
  }
2639
2653
  }],
2640
2654
  content: [{
2641
- ...re,
2655
+ ...ie,
2642
2656
  component: {
2643
2657
  name: "Text",
2644
2658
  options: {
@@ -2694,9 +2708,9 @@ const Bo = /* @__PURE__ */ b(Eo, [["render", Po]]), xo = {
2694
2708
  builderComponents: !0,
2695
2709
  builderLinkComponent: !0
2696
2710
  }
2697
- }, Vo = f({
2711
+ }, Fo = b({
2698
2712
  name: "builder-tabs",
2699
- components: { Blocks: L },
2713
+ components: { Blocks: U },
2700
2714
  props: [
2701
2715
  "defaultActiveTab",
2702
2716
  "tabs",
@@ -2719,28 +2733,28 @@ const Bo = /* @__PURE__ */ b(Eo, [["render", Po]]), xo = {
2719
2733
  e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
2720
2734
  }
2721
2735
  }
2722
- }), Wo = ["onClick"], No = { key: 0 };
2723
- function Fo(e, t, n, o, r, i) {
2724
- const s = v("Blocks");
2725
- return d(), m("div", null, [
2726
- K("div", {
2736
+ }), Do = ["onClick"], Oo = { key: 0 };
2737
+ function Lo(e, t, n, o, r, i) {
2738
+ const s = k("Blocks");
2739
+ return c(), p("div", null, [
2740
+ q("div", {
2727
2741
  class: "builder-tabs-wrap",
2728
- style: O({
2742
+ style: D({
2729
2743
  display: "flex",
2730
2744
  flexDirection: "row",
2731
2745
  justifyContent: e.tabHeaderLayout || "flex-start",
2732
2746
  overflow: "auto"
2733
2747
  })
2734
2748
  }, [
2735
- (d(!0), m(T, null, A(e.tabs, (l, a) => (d(), m("span", {
2749
+ (c(!0), p(w, null, V(e.tabs, (l, a) => (c(), p("span", {
2736
2750
  key: a,
2737
- class: q(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
2738
- style: O({
2751
+ class: z(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
2752
+ style: D({
2739
2753
  ...e.activeTab === a ? e.activeTabStyle : {}
2740
2754
  }),
2741
2755
  onClick: (u) => e.onClick(a)
2742
2756
  }, [
2743
- I(s, {
2757
+ $(s, {
2744
2758
  parent: e.builderBlock.id,
2745
2759
  path: `tabs.${a}.label`,
2746
2760
  blocks: l.label,
@@ -2748,10 +2762,10 @@ function Fo(e, t, n, o, r, i) {
2748
2762
  registeredComponents: e.builderComponents,
2749
2763
  linkComponent: e.builderLinkComponent
2750
2764
  }, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
2751
- ], 14, Wo))), 128))
2765
+ ], 14, Do))), 128))
2752
2766
  ], 4),
2753
- e.activeTabContent(e.activeTab) ? (d(), m("div", No, [
2754
- I(s, {
2767
+ e.activeTabContent(e.activeTab) ? (c(), p("div", Oo, [
2768
+ $(s, {
2755
2769
  parent: e.builderBlock.id,
2756
2770
  path: `tabs.${e.activeTab}.content`,
2757
2771
  blocks: e.activeTabContent(e.activeTab),
@@ -2759,10 +2773,10 @@ function Fo(e, t, n, o, r, i) {
2759
2773
  registeredComponents: e.builderComponents,
2760
2774
  linkComponent: e.builderLinkComponent
2761
2775
  }, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
2762
- ])) : S("", !0)
2776
+ ])) : v("", !0)
2763
2777
  ]);
2764
2778
  }
2765
- const Oo = /* @__PURE__ */ b(Vo, [["render", Fo]]), Do = {
2779
+ const Uo = /* @__PURE__ */ g(Fo, [["render", Lo]]), Ho = {
2766
2780
  shouldReceiveBuilderProps: {
2767
2781
  builderBlock: !1,
2768
2782
  builderContext: !0
@@ -2784,7 +2798,7 @@ const Oo = /* @__PURE__ */ b(Vo, [["render", Fo]]), Do = {
2784
2798
  height: "auto",
2785
2799
  textAlign: "center"
2786
2800
  }
2787
- }, Lo = f({
2801
+ }, Mo = b({
2788
2802
  name: "builder-text",
2789
2803
  props: ["builderContext", "text"],
2790
2804
  computed: {
@@ -2808,17 +2822,17 @@ const Oo = /* @__PURE__ */ b(Vo, [["render", Fo]]), Do = {
2808
2822
  );
2809
2823
  }
2810
2824
  }
2811
- }), Uo = ["innerHTML"];
2812
- function Ho(e, t, n, o, r, i) {
2813
- return d(), m("div", {
2825
+ }), jo = ["innerHTML"];
2826
+ function Ko(e, t, n, o, r, i) {
2827
+ return c(), p("div", {
2814
2828
  class: "builder-text",
2815
2829
  innerHTML: e.processedText,
2816
2830
  style: {
2817
2831
  outline: "none"
2818
2832
  }
2819
- }, null, 8, Uo);
2833
+ }, null, 8, jo);
2820
2834
  }
2821
- const Mo = /* @__PURE__ */ b(Lo, [["render", Ho]]), jo = {
2835
+ const qo = /* @__PURE__ */ g(Mo, [["render", Ko]]), zo = {
2822
2836
  name: "Custom Code",
2823
2837
  static: !0,
2824
2838
  requiredPermissions: ["editCode"],
@@ -2840,7 +2854,7 @@ const Mo = /* @__PURE__ */ b(Lo, [["render", Ho]]), jo = {
2840
2854
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
2841
2855
  advanced: !0
2842
2856
  }]
2843
- }, Ko = f({
2857
+ }, Go = b({
2844
2858
  name: "builder-custom-code",
2845
2859
  props: ["replaceNodes", "code"],
2846
2860
  data() {
@@ -2874,15 +2888,15 @@ const Mo = /* @__PURE__ */ b(Lo, [["render", Ho]]), jo = {
2874
2888
  }
2875
2889
  }
2876
2890
  }
2877
- }), qo = ["innerHTML"];
2878
- function zo(e, t, n, o, r, i) {
2879
- return d(), m("div", {
2891
+ }), Jo = ["innerHTML"];
2892
+ function Yo(e, t, n, o, r, i) {
2893
+ return c(), p("div", {
2880
2894
  ref: "elementRef",
2881
- class: q("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
2895
+ class: z("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
2882
2896
  innerHTML: e.code
2883
- }, null, 10, qo);
2897
+ }, null, 10, Jo);
2884
2898
  }
2885
- const Jo = /* @__PURE__ */ b(Ko, [["render", zo]]), Go = {
2899
+ const Xo = /* @__PURE__ */ g(Go, [["render", Yo]]), Qo = {
2886
2900
  name: "Embed",
2887
2901
  static: !0,
2888
2902
  inputs: [{
@@ -2897,7 +2911,7 @@ const Jo = /* @__PURE__ */ b(Ko, [["render", zo]]), Go = {
2897
2911
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2898
2912
  hideFromUI: !0
2899
2913
  }]
2900
- }, Yo = ["text/javascript", "application/javascript", "application/ecmascript"], Xo = (e) => Yo.includes(e.type), Qo = f({
2914
+ }, Zo = ["text/javascript", "application/javascript", "application/ecmascript"], _o = (e) => Zo.includes(e.type), er = b({
2901
2915
  name: "builder-embed",
2902
2916
  props: ["content"],
2903
2917
  data() {
@@ -2930,7 +2944,7 @@ const Jo = /* @__PURE__ */ b(Ko, [["render", zo]]), Go = {
2930
2944
  this.scriptsInserted.push(n.src);
2931
2945
  const o = document.createElement("script");
2932
2946
  o.async = !0, o.src = n.src, document.head.appendChild(o);
2933
- } else if (Xo(n) && !this.scriptsRun.includes(n.innerText))
2947
+ } else if (_o(n) && !this.scriptsRun.includes(n.innerText))
2934
2948
  try {
2935
2949
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
2936
2950
  } catch (o) {
@@ -2939,15 +2953,15 @@ const Jo = /* @__PURE__ */ b(Ko, [["render", zo]]), Go = {
2939
2953
  }
2940
2954
  }
2941
2955
  }
2942
- }), Zo = ["innerHTML"];
2943
- function _o(e, t, n, o, r, i) {
2944
- return d(), m("div", {
2956
+ }), tr = ["innerHTML"];
2957
+ function nr(e, t, n, o, r, i) {
2958
+ return c(), p("div", {
2945
2959
  class: "builder-embed",
2946
2960
  ref: "elem",
2947
2961
  innerHTML: e.content
2948
- }, null, 8, Zo);
2962
+ }, null, 8, tr);
2949
2963
  }
2950
- const er = /* @__PURE__ */ b(Qo, [["render", _o]]), tr = {
2964
+ const or = /* @__PURE__ */ g(er, [["render", nr]]), rr = {
2951
2965
  name: "Form:Form",
2952
2966
  // editableTags: ['builder-form-error']
2953
2967
  defaults: {
@@ -3184,12 +3198,12 @@ const er = /* @__PURE__ */ b(Qo, [["render", _o]]), tr = {
3184
3198
  builderComponents: !0,
3185
3199
  builderLinkComponent: !0
3186
3200
  }
3187
- }, nr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], or = () => {
3201
+ }, sr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], ir = () => {
3188
3202
  const e = process.env.NODE_ENV || "production";
3189
- return nr.includes(e) ? e : "production";
3190
- }, rr = f({
3203
+ return sr.includes(e) ? e : "production";
3204
+ }, ar = b({
3191
3205
  name: "builder-form-component",
3192
- components: { Block: fe, Blocks: L },
3206
+ components: { Block: ye, Blocks: U },
3193
3207
  props: [
3194
3208
  "builderContext",
3195
3209
  "previewState",
@@ -3218,7 +3232,7 @@ const er = /* @__PURE__ */ b(Qo, [["render", _o]]), tr = {
3218
3232
  formState: "unsubmitted",
3219
3233
  responseData: null,
3220
3234
  formErrorMessage: "",
3221
- filterAttrs: V
3235
+ filterAttrs: W
3222
3236
  };
3223
3237
  },
3224
3238
  methods: {
@@ -3231,7 +3245,7 @@ const er = /* @__PURE__ */ b(Qo, [["render", _o]]), tr = {
3231
3245
  this.builderContext.rootSetState ? (o = (n = this.builderContext).rootSetState) == null || o.call(n, t) : this.builderContext.rootState = t;
3232
3246
  },
3233
3247
  submissionState() {
3234
- return E() && this.previewState || this.formState;
3248
+ return B() && this.previewState || this.formState;
3235
3249
  },
3236
3250
  onSubmit(e) {
3237
3251
  var n;
@@ -3246,40 +3260,40 @@ const er = /* @__PURE__ */ b(Qo, [["render", _o]]), tr = {
3246
3260
  e.preventDefault();
3247
3261
  const o = e.currentTarget || e.target, r = this.customHeaders || {};
3248
3262
  let i;
3249
- const s = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).map((c) => {
3250
- let p;
3251
- const y = c.name;
3252
- if (c instanceof HTMLInputElement)
3253
- if (c.type === "radio") {
3254
- if (c.checked)
3255
- return p = c.name, {
3256
- key: y,
3257
- value: p
3263
+ const s = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((d) => !!d.name).map((d) => {
3264
+ let f;
3265
+ const S = d.name;
3266
+ if (d instanceof HTMLInputElement)
3267
+ if (d.type === "radio") {
3268
+ if (d.checked)
3269
+ return f = d.name, {
3270
+ key: S,
3271
+ value: f
3258
3272
  };
3259
- } else if (c.type === "checkbox")
3260
- p = c.checked;
3261
- else if (c.type === "number" || c.type === "range") {
3262
- const g = c.valueAsNumber;
3263
- isNaN(g) || (p = g);
3273
+ } else if (d.type === "checkbox")
3274
+ f = d.checked;
3275
+ else if (d.type === "number" || d.type === "range") {
3276
+ const T = d.valueAsNumber;
3277
+ isNaN(T) || (f = T);
3264
3278
  } else
3265
- c.type === "file" ? p = c.files : p = c.value;
3279
+ d.type === "file" ? f = d.files : f = d.value;
3266
3280
  else
3267
- p = c.value;
3281
+ f = d.value;
3268
3282
  return {
3269
- key: y,
3270
- value: p
3283
+ key: S,
3284
+ value: f
3271
3285
  };
3272
3286
  });
3273
3287
  let a = this.contentType;
3274
- if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value: c }) => {
3275
- (c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (a = "multipart/form-data");
3288
+ if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value: d }) => {
3289
+ (d instanceof File || Array.isArray(d) && d[0] instanceof File || d instanceof FileList) && (a = "multipart/form-data");
3276
3290
  }), a !== "application/json")
3277
3291
  i = s;
3278
3292
  else {
3279
- const c = {};
3280
- Array.from(l).forEach(({ value: p, key: y }) => {
3281
- Ee(c, y, p);
3282
- }), i = JSON.stringify(c);
3293
+ const d = {};
3294
+ Array.from(l).forEach(({ value: f, key: S }) => {
3295
+ xe(d, S, f);
3296
+ }), i = JSON.stringify(d);
3283
3297
  }
3284
3298
  a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
3285
3299
  const u = new CustomEvent("presubmit", {
@@ -3290,106 +3304,103 @@ const er = /* @__PURE__ */ b(Qo, [["render", _o]]), tr = {
3290
3304
  if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(u), u.defaultPrevented))
3291
3305
  return;
3292
3306
  this.formState = "sending";
3293
- const h = `${or() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
3307
+ const m = `${ir() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
3294
3308
  this.sendSubmissionsToEmail || ""
3295
- )}&name=${encodeURIComponent(this.name || "")}`;
3296
- fetch(
3297
- this.sendSubmissionsTo === "email" ? h : this.action,
3298
- {
3299
- body: i,
3300
- headers: r,
3301
- method: this.method || "post"
3302
- }
3303
- ).then(
3304
- async (c) => {
3305
- let p;
3306
- const y = c.headers.get("content-type");
3307
- if (y && y.indexOf("application/json") !== -1 ? p = await c.json() : p = await c.text(), !c.ok && this.errorMessagePath) {
3308
- let g = xe(p, this.errorMessagePath);
3309
- g && (typeof g != "string" && (g = JSON.stringify(g)), this.formErrorMessage = g, this.mergeNewRootState({
3310
- formErrorMessage: g
3309
+ )}&name=${encodeURIComponent(this.name || "")}`, h = this.sendSubmissionsTo === "email" ? m : this.action;
3310
+ me(h), fetch(h, {
3311
+ body: i,
3312
+ headers: r,
3313
+ method: this.method || "post"
3314
+ }).then(
3315
+ async (d) => {
3316
+ let f;
3317
+ const S = d.headers.get("content-type");
3318
+ if (S && S.indexOf("application/json") !== -1 ? f = await d.json() : f = await d.text(), !d.ok && this.errorMessagePath) {
3319
+ let T = We(f, this.errorMessagePath);
3320
+ T && (typeof T != "string" && (T = JSON.stringify(T)), this.formErrorMessage = T, this.mergeNewRootState({
3321
+ formErrorMessage: T
3311
3322
  }));
3312
3323
  }
3313
- if (this.responseData = p, this.formState = c.ok ? "success" : "error", c.ok) {
3314
- const g = new CustomEvent("submit:success", {
3324
+ if (this.responseData = f, this.formState = d.ok ? "success" : "error", d.ok) {
3325
+ const T = new CustomEvent("submit:success", {
3315
3326
  detail: {
3316
- res: c,
3317
- body: p
3327
+ res: d,
3328
+ body: f
3318
3329
  }
3319
3330
  });
3320
3331
  if (this.$refs.formRef) {
3321
- if (this.$refs.formRef.dispatchEvent(g), g.defaultPrevented)
3332
+ if (this.$refs.formRef.dispatchEvent(T), T.defaultPrevented)
3322
3333
  return;
3323
3334
  this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
3324
3335
  }
3325
3336
  if (this.successUrl)
3326
3337
  if (this.$refs.formRef) {
3327
- const N = new CustomEvent("route", {
3338
+ const O = new CustomEvent("route", {
3328
3339
  detail: {
3329
3340
  url: this.successUrl
3330
3341
  }
3331
3342
  });
3332
- this.$refs.formRef.dispatchEvent(N), N.defaultPrevented || (location.href = this.successUrl);
3343
+ this.$refs.formRef.dispatchEvent(O), O.defaultPrevented || (location.href = this.successUrl);
3333
3344
  } else
3334
3345
  location.href = this.successUrl;
3335
3346
  }
3336
3347
  },
3337
- (c) => {
3338
- const p = new CustomEvent("submit:error", {
3348
+ (d) => {
3349
+ const f = new CustomEvent("submit:error", {
3339
3350
  detail: {
3340
- error: c
3351
+ error: d
3341
3352
  }
3342
3353
  });
3343
- this.$refs.formRef && (this.$refs.formRef.dispatchEvent(p), p.defaultPrevented) || (this.responseData = c, this.formState = "error");
3354
+ this.$refs.formRef && (this.$refs.formRef.dispatchEvent(f), f.defaultPrevented) || (this.responseData = d, this.formState = "error");
3344
3355
  }
3345
3356
  );
3346
3357
  }
3347
3358
  }
3348
3359
  }
3349
- }), sr = ["validate", "action", "method", "name"], ir = {
3360
+ }), lr = ["validate", "action", "method", "name"], cr = {
3350
3361
  key: 3,
3351
3362
  class: "builder-form-error-text pre-3q96myty4lk"
3352
3363
  };
3353
- function ar(e, t, n, o, r, i) {
3364
+ function dr(e, t, n, o, r, i) {
3354
3365
  var a;
3355
- const s = v("Block"), l = v("Blocks");
3356
- return d(), m("form", C({
3366
+ const s = k("Block"), l = k("Blocks");
3367
+ return c(), p("form", C({
3357
3368
  validate: e.validate,
3358
3369
  ref: "formRef",
3359
3370
  action: !e.sendWithJs && e.action,
3360
3371
  method: e.method,
3361
3372
  name: e.name,
3362
3373
  onSubmit: t[0] || (t[0] = (u) => e.onSubmit(u))
3363
- }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3364
- e.builderBlock && e.builderBlock.children ? (d(!0), m(T, { key: 0 }, A((a = e.builderBlock) == null ? void 0 : a.children, (u, h) => (d(), k(s, {
3374
+ }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3375
+ e.builderBlock && e.builderBlock.children ? (c(!0), p(w, { key: 0 }, V((a = e.builderBlock) == null ? void 0 : a.children, (u, m) => (c(), y(s, {
3365
3376
  key: `form-block-${e.idx}`,
3366
3377
  block: u,
3367
3378
  context: e.builderContext,
3368
3379
  registeredComponents: e.builderComponents,
3369
3380
  linkComponent: e.builderLinkComponent
3370
- }, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128)) : S("", !0),
3371
- e.submissionState() === "error" ? (d(), k(l, {
3381
+ }, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128)) : v("", !0),
3382
+ e.submissionState() === "error" ? (c(), y(l, {
3372
3383
  key: 1,
3373
3384
  path: "errorMessage",
3374
3385
  blocks: e.errorMessage,
3375
3386
  context: e.builderContext
3376
- }, null, 8, ["blocks", "context"])) : S("", !0),
3377
- e.submissionState() === "sending" ? (d(), k(l, {
3387
+ }, null, 8, ["blocks", "context"])) : v("", !0),
3388
+ e.submissionState() === "sending" ? (c(), y(l, {
3378
3389
  key: 2,
3379
3390
  path: "sendingMessage",
3380
3391
  blocks: e.sendingMessage,
3381
3392
  context: e.builderContext
3382
- }, null, 8, ["blocks", "context"])) : S("", !0),
3383
- e.submissionState() === "error" && e.responseData ? (d(), m("pre", ir, _(JSON.stringify(e.responseData, null, 2)), 1)) : S("", !0),
3384
- e.submissionState() === "success" ? (d(), k(l, {
3393
+ }, null, 8, ["blocks", "context"])) : v("", !0),
3394
+ e.submissionState() === "error" && e.responseData ? (c(), p("pre", cr, ee(JSON.stringify(e.responseData, null, 2)), 1)) : v("", !0),
3395
+ e.submissionState() === "success" ? (c(), y(l, {
3385
3396
  key: 4,
3386
3397
  path: "successMessage",
3387
3398
  blocks: e.successMessage,
3388
3399
  context: e.builderContext
3389
- }, null, 8, ["blocks", "context"])) : S("", !0)
3390
- ], 16, sr);
3400
+ }, null, 8, ["blocks", "context"])) : v("", !0)
3401
+ ], 16, lr);
3391
3402
  }
3392
- const lr = /* @__PURE__ */ b(rr, [["render", ar], ["__scopeId", "data-v-6e18f21b"]]), cr = {
3403
+ const ur = /* @__PURE__ */ g(ar, [["render", dr], ["__scopeId", "data-v-cd94d6c1"]]), pr = {
3393
3404
  name: "Form:Input",
3394
3405
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
3395
3406
  inputs: [
@@ -3440,7 +3451,7 @@ const lr = /* @__PURE__ */ b(rr, [["render", ar], ["__scopeId", "data-v-6e18f21b
3440
3451
  borderStyle: "solid",
3441
3452
  borderColor: "#ccc"
3442
3453
  }
3443
- }, dr = f({
3454
+ }, mr = b({
3444
3455
  name: "builder-form-input-component",
3445
3456
  props: [
3446
3457
  "attributes",
@@ -3452,11 +3463,11 @@ const lr = /* @__PURE__ */ b(rr, [["render", ar], ["__scopeId", "data-v-6e18f21b
3452
3463
  "required"
3453
3464
  ],
3454
3465
  data() {
3455
- return { isEditing: E, filterAttrs: V };
3466
+ return { isEditing: B, filterAttrs: W };
3456
3467
  }
3457
- }), ur = ["placeholder", "type", "name", "value", "defaultValue", "required"];
3458
- function pr(e, t, n, o, r, i) {
3459
- return d(), m("input", C({
3468
+ }), hr = ["placeholder", "type", "name", "value", "defaultValue", "required"];
3469
+ function fr(e, t, n, o, r, i) {
3470
+ return c(), p("input", C({
3460
3471
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
3461
3472
  placeholder: e.placeholder,
3462
3473
  type: e.type,
@@ -3464,9 +3475,9 @@ function pr(e, t, n, o, r, i) {
3464
3475
  value: e.value,
3465
3476
  defaultValue: e.defaultValue,
3466
3477
  required: e.required
3467
- }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, ur);
3478
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, hr);
3468
3479
  }
3469
- const mr = /* @__PURE__ */ b(dr, [["render", pr]]), hr = {
3480
+ const br = /* @__PURE__ */ g(mr, [["render", fr]]), gr = {
3470
3481
  name: "Form:Select",
3471
3482
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
3472
3483
  defaultStyles: {
@@ -3508,28 +3519,28 @@ const mr = /* @__PURE__ */ b(dr, [["render", pr]]), hr = {
3508
3519
  }],
3509
3520
  static: !0,
3510
3521
  noWrap: !0
3511
- }, fr = f({
3522
+ }, yr = b({
3512
3523
  name: "builder-select-component",
3513
3524
  props: ["attributes", "value", "defaultValue", "name", "required", "options"],
3514
3525
  data() {
3515
- return { isEditing: E, filterAttrs: V };
3526
+ return { isEditing: B, filterAttrs: W };
3516
3527
  }
3517
- }), br = ["value", "defaultValue", "name", "required"], gr = ["value"];
3518
- function yr(e, t, n, o, r, i) {
3519
- return d(), m("select", C({
3528
+ }), kr = ["value", "defaultValue", "name", "required"], vr = ["value"];
3529
+ function Sr(e, t, n, o, r, i) {
3530
+ return c(), p("select", C({
3520
3531
  value: e.value,
3521
3532
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
3522
3533
  defaultValue: e.defaultValue,
3523
3534
  name: e.name,
3524
3535
  required: e.required
3525
- }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3526
- (d(!0), m(T, null, A(e.options, (s, l) => (d(), m("option", {
3536
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3537
+ (c(!0), p(w, null, V(e.options, (s, l) => (c(), p("option", {
3527
3538
  key: `${s.name}-${l}`,
3528
3539
  value: s.value
3529
- }, _(s.name || s.value), 9, gr))), 128))
3530
- ], 16, br);
3540
+ }, ee(s.name || s.value), 9, vr))), 128))
3541
+ ], 16, kr);
3531
3542
  }
3532
- const kr = /* @__PURE__ */ b(fr, [["render", yr]]), vr = {
3543
+ const Cr = /* @__PURE__ */ g(yr, [["render", Sr]]), Tr = {
3533
3544
  name: "Form:SubmitButton",
3534
3545
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
3535
3546
  defaultStyles: {
@@ -3554,17 +3565,17 @@ const kr = /* @__PURE__ */ b(fr, [["render", yr]]), vr = {
3554
3565
  // that only shows if advanced setting is flipped
3555
3566
  // TODO: defaultChildren
3556
3567
  // canHaveChildren: true,
3557
- }, Sr = f({
3568
+ }, wr = b({
3558
3569
  name: "builder-submit-button",
3559
3570
  props: ["attributes", "text"],
3560
3571
  data() {
3561
- return { filterAttrs: V };
3572
+ return { filterAttrs: W };
3562
3573
  }
3563
3574
  });
3564
- function Cr(e, t, n, o, r, i) {
3565
- return d(), m("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), _(e.text), 17);
3575
+ function Ir(e, t, n, o, r, i) {
3576
+ 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);
3566
3577
  }
3567
- const Tr = /* @__PURE__ */ b(Sr, [["render", Cr]]), wr = {
3578
+ const $r = /* @__PURE__ */ g(wr, [["render", Ir]]), Rr = {
3568
3579
  name: "Form:TextArea",
3569
3580
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
3570
3581
  inputs: [{
@@ -3600,7 +3611,7 @@ const Tr = /* @__PURE__ */ b(Sr, [["render", Cr]]), wr = {
3600
3611
  },
3601
3612
  static: !0,
3602
3613
  noWrap: !0
3603
- }, Ir = f({
3614
+ }, Er = b({
3604
3615
  name: "builder-textarea",
3605
3616
  props: [
3606
3617
  "attributes",
@@ -3611,19 +3622,19 @@ const Tr = /* @__PURE__ */ b(Sr, [["render", Cr]]), wr = {
3611
3622
  "required"
3612
3623
  ],
3613
3624
  data() {
3614
- return { filterAttrs: V };
3625
+ return { filterAttrs: W };
3615
3626
  }
3616
- }), $r = ["placeholder", "name", "value", "defaultValue", "required"];
3617
- function Rr(e, t, n, o, r, i) {
3618
- return d(), m("textarea", C({
3627
+ }), Pr = ["placeholder", "name", "value", "defaultValue", "required"];
3628
+ function Br(e, t, n, o, r, i) {
3629
+ return c(), p("textarea", C({
3619
3630
  placeholder: e.placeholder,
3620
3631
  name: e.name,
3621
3632
  value: e.value,
3622
3633
  defaultValue: e.defaultValue,
3623
3634
  required: e.required
3624
- }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, $r);
3635
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Pr);
3625
3636
  }
3626
- const Er = /* @__PURE__ */ b(Ir, [["render", Rr]]), Pr = {
3637
+ const xr = /* @__PURE__ */ g(Er, [["render", Br]]), Ar = {
3627
3638
  // friendlyName?
3628
3639
  name: "Raw:Img",
3629
3640
  hideFromInsertMenu: !0,
@@ -3637,7 +3648,7 @@ const Er = /* @__PURE__ */ b(Ir, [["render", Rr]]), Pr = {
3637
3648
  }],
3638
3649
  noWrap: !0,
3639
3650
  static: !0
3640
- }, Br = f({
3651
+ }, Vr = b({
3641
3652
  name: "builder-img-component",
3642
3653
  props: [
3643
3654
  "backgroundSize",
@@ -3648,11 +3659,11 @@ const Er = /* @__PURE__ */ b(Ir, [["render", Rr]]), Pr = {
3648
3659
  "attributes"
3649
3660
  ],
3650
3661
  data() {
3651
- return { isEditing: E, filterAttrs: V };
3662
+ return { isEditing: B, filterAttrs: W };
3652
3663
  }
3653
- }), xr = ["alt", "src"];
3654
- function Ar(e, t, n, o, r, i) {
3655
- return d(), m("img", C({
3664
+ }), Wr = ["alt", "src"];
3665
+ function Nr(e, t, n, o, r, i) {
3666
+ return c(), p("img", C({
3656
3667
  style: {
3657
3668
  objectFit: e.backgroundSize || "cover",
3658
3669
  objectPosition: e.backgroundPosition || "center"
@@ -3660,9 +3671,9 @@ function Ar(e, t, n, o, r, i) {
3660
3671
  key: e.isEditing() && e.imgSrc || "default-key",
3661
3672
  alt: e.altText,
3662
3673
  src: e.imgSrc || e.image
3663
- }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, xr);
3674
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Wr);
3664
3675
  }
3665
- const Vr = /* @__PURE__ */ b(Br, [["render", Ar]]), Wr = {
3676
+ const Fr = /* @__PURE__ */ g(Vr, [["render", Nr]]), Dr = {
3666
3677
  name: "Video",
3667
3678
  canHaveChildren: !0,
3668
3679
  defaultStyles: {
@@ -3746,7 +3757,7 @@ const Vr = /* @__PURE__ */ b(Br, [["render", Ar]]), Wr = {
3746
3757
  shouldReceiveBuilderProps: {
3747
3758
  builderBlock: !0
3748
3759
  }
3749
- }, Nr = f({
3760
+ }, Or = b({
3750
3761
  name: "builder-video",
3751
3762
  props: [
3752
3763
  "autoPlay",
@@ -3791,16 +3802,16 @@ const Vr = /* @__PURE__ */ b(Br, [["render", Ar]]), Wr = {
3791
3802
  };
3792
3803
  }
3793
3804
  }
3794
- }), Fr = { style: {
3805
+ }), Lr = { style: {
3795
3806
  position: "relative"
3796
- } }, Or = ["preload", "src", "poster"], Dr = ["src"], Lr = {
3807
+ } }, Ur = ["preload", "src", "poster"], Hr = ["src"], Mr = {
3797
3808
  key: 1,
3798
3809
  style: {
3799
3810
  display: "flex",
3800
3811
  flexDirection: "column",
3801
3812
  alignItems: "stretch"
3802
3813
  }
3803
- }, Ur = {
3814
+ }, jr = {
3804
3815
  key: 2,
3805
3816
  style: {
3806
3817
  pointerEvents: "none",
@@ -3814,10 +3825,10 @@ const Vr = /* @__PURE__ */ b(Br, [["render", Ar]]), Wr = {
3814
3825
  height: "100%"
3815
3826
  }
3816
3827
  };
3817
- function Hr(e, t, n, o, r, i) {
3818
- var s, l, a, u, h, c, p;
3819
- return d(), m("div", Fr, [
3820
- K("video", C({
3828
+ function Kr(e, t, n, o, r, i) {
3829
+ var s, l, a, u, m, h, d;
3830
+ return c(), p("div", Lr, [
3831
+ q("video", C({
3821
3832
  class: "builder-video",
3822
3833
  preload: e.preload || "metadata",
3823
3834
  style: {
@@ -3837,87 +3848,87 @@ function Hr(e, t, n, o, r, i) {
3837
3848
  src: e.video || "no-src",
3838
3849
  poster: e.posterImage
3839
3850
  }, e.spreadProps), [
3840
- e.lazyLoad ? S("", !0) : (d(), m("source", {
3851
+ e.lazyLoad ? v("", !0) : (c(), p("source", {
3841
3852
  key: 0,
3842
3853
  type: "video/mp4",
3843
3854
  src: e.video
3844
- }, null, 8, Dr))
3845
- ], 16, Or),
3846
- e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), m("div", {
3855
+ }, null, 8, Hr))
3856
+ ], 16, Ur),
3857
+ e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (c(), p("div", {
3847
3858
  key: 0,
3848
- style: O({
3859
+ style: D({
3849
3860
  width: "100%",
3850
3861
  paddingTop: e.aspectRatio * 100 + "%",
3851
3862
  pointerEvents: "none",
3852
3863
  fontSize: "0px"
3853
3864
  })
3854
- }, null, 4)) : S("", !0),
3855
- (h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (d(), m("div", Lr, [
3856
- B(e.$slots, "default")
3857
- ])) : S("", !0),
3858
- (p = (c = e.builderBlock) == null ? void 0 : c.children) != null && p.length && !e.fitContent ? (d(), m("div", Ur, [
3859
- B(e.$slots, "default")
3860
- ])) : S("", !0)
3865
+ }, null, 4)) : v("", !0),
3866
+ (m = (u = e.builderBlock) == null ? void 0 : u.children) != null && m.length && e.fitContent ? (c(), p("div", Mr, [
3867
+ A(e.$slots, "default")
3868
+ ])) : v("", !0),
3869
+ (d = (h = e.builderBlock) == null ? void 0 : h.children) != null && d.length && !e.fitContent ? (c(), p("div", jr, [
3870
+ A(e.$slots, "default")
3871
+ ])) : v("", !0)
3861
3872
  ]);
3862
3873
  }
3863
- const Mr = /* @__PURE__ */ b(Nr, [["render", Hr]]), jr = () => [{
3864
- component: Jo,
3865
- ...jo
3866
- }, {
3867
- component: er,
3868
- ...Go
3874
+ const qr = /* @__PURE__ */ g(Or, [["render", Kr]]), zr = () => [{
3875
+ component: Xo,
3876
+ ...zo
3869
3877
  }, {
3870
- component: lr,
3871
- ...tr
3878
+ component: or,
3879
+ ...Qo
3872
3880
  }, {
3873
- component: mr,
3874
- ...cr
3881
+ component: ur,
3882
+ ...rr
3875
3883
  }, {
3876
- component: Tr,
3877
- ...vr
3884
+ component: br,
3885
+ ...pr
3878
3886
  }, {
3879
- component: kr,
3880
- ...hr
3887
+ component: $r,
3888
+ ...Tr
3881
3889
  }, {
3882
- component: Er,
3883
- ...wr
3890
+ component: Cr,
3891
+ ...gr
3884
3892
  }, {
3885
- component: Vr,
3886
- ...Pr
3893
+ component: xr,
3894
+ ...Rr
3887
3895
  }, {
3888
- component: Mr,
3889
- ...Wr
3890
- }], we = () => [{
3891
- component: wt,
3892
- ...Co
3896
+ component: Fr,
3897
+ ...Ar
3893
3898
  }, {
3894
- component: eo,
3895
- ...To
3899
+ component: qr,
3900
+ ...Dr
3901
+ }], Re = () => [{
3902
+ component: Rt,
3903
+ ...Io
3896
3904
  }, {
3897
3905
  component: oo,
3898
- ...wo
3906
+ ...$o
3899
3907
  }, {
3900
- component: po,
3901
- ...Io
3908
+ component: io,
3909
+ ...Ro
3902
3910
  }, {
3903
3911
  component: fo,
3904
- ...$o
3912
+ ...Eo
3905
3913
  }, {
3906
- component: Bo,
3907
- ...Ro
3914
+ component: yo,
3915
+ ...Po
3916
+ }, {
3917
+ component: Vo,
3918
+ ...Bo
3908
3919
  }, {
3909
- component: ws,
3910
- ...xo
3920
+ component: Rs,
3921
+ ...Wo
3911
3922
  }, {
3912
- component: Mo,
3913
- ...Do
3923
+ component: qo,
3924
+ ...Ho
3914
3925
  }, {
3915
- component: Oo,
3916
- ...Ao
3926
+ component: Uo,
3927
+ ...No
3917
3928
  }, {
3918
- component: So,
3919
- ...bo
3920
- }, ...jr()], Kr = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3929
+ component: wo,
3930
+ ...ko
3931
+ }, ...zr()], Gr = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3921
3932
  function getAndSetVariantId() {
3922
3933
  function setCookie(name, value, days) {
3923
3934
  let expires = '';
@@ -3973,7 +3984,7 @@ const Mr = /* @__PURE__ */ b(Nr, [["render", Hr]]), jr = () => [{
3973
3984
  }).join('');
3974
3985
  styleEl.innerHTML = newStyleStr;
3975
3986
  }
3976
- }`, qr = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3987
+ }`, Jr = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3977
3988
  if (!navigator.cookieEnabled) {
3978
3989
  return;
3979
3990
  }
@@ -4007,27 +4018,27 @@ const Mr = /* @__PURE__ */ b(Nr, [["render", Hr]]), jr = () => [{
4007
4018
  thisScriptEl?.remove();
4008
4019
  }
4009
4020
  return;
4010
- }`, tt = "builderIoAbTest", nt = "builderIoRenderContent", X = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4021
+ }`, rt = "builderIoAbTest", st = "builderIoRenderContent", Q = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4011
4022
  ...t,
4012
4023
  testVariationId: t.id,
4013
4024
  id: e == null ? void 0 : e.id
4014
- })), zr = ({
4025
+ })), Yr = ({
4015
4026
  canTrack: e,
4016
4027
  content: t
4017
- }) => !(!(X(t).length > 0) || !e), Jr = (e) => e === "react" || e === "reactNative", ot = Jr(R), Gr = () => `
4018
- window.${tt} = ${Kr}
4019
- window.${nt} = ${qr}
4020
- `, Yr = (e, t) => `
4021
- window.${tt}(
4022
- "${t}",${JSON.stringify(e)}, ${ot}
4023
- )`, Xr = ({
4028
+ }) => !(!(Q(t).length > 0) || !e), Xr = (e) => e === "react" || e === "reactNative", it = Xr(P), Qr = () => `
4029
+ window.${rt} = ${Gr}
4030
+ window.${st} = ${Jr}
4031
+ `, Zr = (e, t) => `
4032
+ window.${rt}(
4033
+ "${t}",${JSON.stringify(e)}, ${it}
4034
+ )`, _r = ({
4024
4035
  contentId: e,
4025
4036
  variationId: t
4026
- }) => `window.${nt}(
4027
- "${t}", "${e}", ${ot}
4028
- )`, rt = f({
4037
+ }) => `window.${st}(
4038
+ "${t}", "${e}", ${it}
4039
+ )`, at = b({
4029
4040
  render() {
4030
- return Re("script", {
4041
+ return Be("script", {
4031
4042
  innerHTML: this.scriptStr,
4032
4043
  "data-id": this.id,
4033
4044
  nonce: this.nonce
@@ -4036,10 +4047,10 @@ const Mr = /* @__PURE__ */ b(Nr, [["render", Hr]]), jr = () => [{
4036
4047
  name: "inlined-script",
4037
4048
  props: ["scriptStr", "id", "nonce"]
4038
4049
  });
4039
- function Ie(e) {
4050
+ function Ee(e) {
4040
4051
  return Math.round(e * 1e3) / 1e3;
4041
4052
  }
4042
- const Qr = (e, t, n = !0) => {
4053
+ const es = (e, t, n = !0) => {
4043
4054
  if (!(e instanceof HTMLElement))
4044
4055
  return null;
4045
4056
  let o = n ? e : e.parentElement;
@@ -4050,35 +4061,35 @@ const Qr = (e, t, n = !0) => {
4050
4061
  return o;
4051
4062
  } while (o = o.parentElement);
4052
4063
  return null;
4053
- }, Zr = (e) => Qr(e, (t) => {
4064
+ }, ts = (e) => es(e, (t) => {
4054
4065
  const n = t.getAttribute("builder-id") || t.id;
4055
4066
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
4056
- }), $e = ({
4067
+ }), Pe = ({
4057
4068
  event: e,
4058
4069
  target: t
4059
4070
  }) => {
4060
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = Ie(o / n.width), s = Ie(r / n.height);
4071
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = Ee(o / n.width), s = Ee(r / n.height);
4061
4072
  return {
4062
4073
  x: i,
4063
4074
  y: s
4064
4075
  };
4065
- }, _r = (e) => {
4066
- const t = e.target, n = t && Zr(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4076
+ }, ns = (e) => {
4077
+ const t = e.target, n = t && ts(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4067
4078
  return {
4068
4079
  targetBuilderElement: o || void 0,
4069
4080
  metadata: {
4070
- targetOffset: t ? $e({
4081
+ targetOffset: t ? Pe({
4071
4082
  event: e,
4072
4083
  target: t
4073
4084
  }) : void 0,
4074
- builderTargetOffset: n ? $e({
4085
+ builderTargetOffset: n ? Pe({
4075
4086
  event: e,
4076
4087
  target: n
4077
4088
  }) : void 0,
4078
4089
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
4079
4090
  }
4080
4091
  };
4081
- }, es = (e) => {
4092
+ }, os = (e) => {
4082
4093
  var i;
4083
4094
  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);
4084
4095
  let r = "";
@@ -4104,15 +4115,15 @@ font-weight: ${s};
4104
4115
  `.trim());
4105
4116
  }
4106
4117
  return r;
4107
- }, ts = ({
4118
+ }, rs = ({
4108
4119
  customFonts: e
4109
4120
  }) => {
4110
4121
  var t;
4111
- return ((t = e == null ? void 0 : e.map((n) => es(n))) == null ? void 0 : t.join(" ")) || "";
4112
- }, ns = ({
4122
+ return ((t = e == null ? void 0 : e.map((n) => os(n))) == null ? void 0 : t.join(" ")) || "";
4123
+ }, ss = ({
4113
4124
  cssCode: e,
4114
4125
  contentId: t
4115
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", os = `
4126
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", is = `
4116
4127
  .builder-button {
4117
4128
  all: unset;
4118
4129
  }
@@ -4129,9 +4140,9 @@ font-weight: ${s};
4129
4140
  text-align: inherit;
4130
4141
  font-family: inherit;
4131
4142
  }
4132
- `, rs = (e) => e ? "" : os, ss = (e) => `variant-${e}`, is = f({
4143
+ `, as = (e) => e ? "" : is, ls = (e) => `variant-${e}`, cs = b({
4133
4144
  name: "enable-editor",
4134
- components: { DynamicDiv: G },
4145
+ components: { DynamicDiv: Y },
4135
4146
  props: [
4136
4147
  "isNestedRender",
4137
4148
  "builderContextSignal",
@@ -4155,14 +4166,14 @@ font-weight: ${s};
4155
4166
  httpReqsData: {},
4156
4167
  httpReqsPending: {},
4157
4168
  clicked: !1,
4158
- builderContext: se,
4159
- getWrapperClassName: ss
4169
+ builderContext: ae,
4170
+ getWrapperClassName: ls
4160
4171
  };
4161
4172
  },
4162
4173
  provide() {
4163
4174
  const e = this;
4164
4175
  return {
4165
- [se.key]: e.builderContextSignal
4176
+ [ae.key]: e.builderContextSignal
4166
4177
  };
4167
4178
  },
4168
4179
  created() {
@@ -4170,12 +4181,12 @@ font-weight: ${s};
4170
4181
  },
4171
4182
  mounted() {
4172
4183
  var e, t;
4173
- if ($()) {
4174
- if (E() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4184
+ if (R()) {
4185
+ if (B() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4175
4186
  new CustomEvent("initeditingbldr")
4176
- ), this.builderContextSignal.content && z(this.canTrack)) {
4187
+ ), this.builderContextSignal.content && G(this.canTrack)) {
4177
4188
  const o = (e = this.builderContextSignal.content) == null ? void 0 : e.testVariationId, r = (t = this.builderContextSignal.content) == null ? void 0 : t.id, i = this.apiKey;
4178
- ae({
4189
+ ce({
4179
4190
  apiHost: this.apiHost,
4180
4191
  type: "impression",
4181
4192
  canTrack: !0,
@@ -4184,7 +4195,7 @@ font-weight: ${s};
4184
4195
  variationId: o !== r ? o : void 0
4185
4196
  });
4186
4197
  }
4187
- Dt() && !E() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4198
+ Ht() && !B() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4188
4199
  new CustomEvent("initpreviewingbldr")
4189
4200
  );
4190
4201
  }
@@ -4218,7 +4229,7 @@ font-weight: ${s};
4218
4229
  }
4219
4230
  },
4220
4231
  unmounted() {
4221
- $() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
4232
+ R() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
4222
4233
  "builder:component:stateChangeListenerActivated",
4223
4234
  this.emitStateUpdate
4224
4235
  ));
@@ -4278,7 +4289,7 @@ font-weight: ${s};
4278
4289
  this.builderContextSignal.content = t;
4279
4290
  },
4280
4291
  processMessage(e) {
4281
- return Ke({
4292
+ return Ge({
4282
4293
  model: this.model,
4283
4294
  trustedHosts: this.trustedHosts,
4284
4295
  callbacks: {
@@ -4292,7 +4303,7 @@ font-weight: ${s};
4292
4303
  });
4293
4304
  },
4294
4305
  animation: (t) => {
4295
- Qe(t);
4306
+ et(t);
4296
4307
  },
4297
4308
  contentUpdate: (t) => {
4298
4309
  this.mergeNewContent(t);
@@ -4304,14 +4315,14 @@ font-weight: ${s};
4304
4315
  var t, n;
4305
4316
  if (this.builderContextSignal.content) {
4306
4317
  const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
4307
- ae({
4318
+ ce({
4308
4319
  apiHost: this.apiHost,
4309
4320
  type: "click",
4310
- canTrack: z(this.canTrack),
4321
+ canTrack: G(this.canTrack),
4311
4322
  contentId: r,
4312
4323
  apiKey: this.apiKey,
4313
4324
  variationId: o !== r ? o : void 0,
4314
- ..._r(e),
4325
+ ...ns(e),
4315
4326
  unique: !this.clicked
4316
4327
  });
4317
4328
  }
@@ -4321,7 +4332,7 @@ font-weight: ${s};
4321
4332
  var t, n;
4322
4333
  const e = ((n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) ?? {};
4323
4334
  Object.entries(e).forEach(([o, r]) => {
4324
- if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !E())
4335
+ if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !B())
4325
4336
  return;
4326
4337
  this.httpReqsPending[o] = !0;
4327
4338
  const i = r.replace(
@@ -4336,7 +4347,7 @@ font-weight: ${s};
4336
4347
  })
4337
4348
  )
4338
4349
  );
4339
- fetch(i).then((s) => s.json()).then((s) => {
4350
+ me(i), fetch(i).then((s) => s.json()).then((s) => {
4340
4351
  this.mergeNewRootState({
4341
4352
  [o]: s
4342
4353
  }), this.httpReqsData[o] = !0;
@@ -4348,12 +4359,12 @@ font-weight: ${s};
4348
4359
  });
4349
4360
  },
4350
4361
  emitStateUpdate() {
4351
- E() && window.dispatchEvent(
4362
+ B() && window.dispatchEvent(
4352
4363
  new CustomEvent(
4353
4364
  "builder:component:stateChange",
4354
4365
  {
4355
4366
  detail: {
4356
- state: ce(this.builderContextSignal.rootState),
4367
+ state: ue(this.builderContextSignal.rootState),
4357
4368
  ref: {
4358
4369
  name: this.model
4359
4370
  }
@@ -4363,7 +4374,7 @@ font-weight: ${s};
4363
4374
  );
4364
4375
  },
4365
4376
  elementRef_onIniteditingbldr(e) {
4366
- window.addEventListener("message", this.processMessage), an(), je({
4377
+ window.addEventListener("message", this.processMessage), dn(), ze({
4367
4378
  ...this.locale ? {
4368
4379
  locale: this.locale
4369
4380
  } : {},
@@ -4377,7 +4388,7 @@ font-weight: ${s};
4377
4388
  this.builderContextSignal.componentInfos
4378
4389
  ).forEach((t) => {
4379
4390
  var o;
4380
- const n = Lt(t);
4391
+ const n = Mt(t);
4381
4392
  (o = window.parent) == null || o.postMessage(n, "*");
4382
4393
  }), window.addEventListener(
4383
4394
  "builder:component:stateChangeListenerActivated",
@@ -4388,7 +4399,7 @@ font-weight: ${s};
4388
4399
  const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
4389
4400
  `builder.overrides.${n}`
4390
4401
  ), r = t.get("apiKey") || t.get("builder.space");
4391
- n === this.model && r === this.apiKey && (!this.content || o === this.content.id) && me({
4402
+ n === this.model && r === this.apiKey && (!this.content || o === this.content.id) && be({
4392
4403
  model: this.model,
4393
4404
  apiKey: this.apiKey,
4394
4405
  apiVersion: this.builderContextSignal.apiVersion
@@ -4398,9 +4409,9 @@ font-weight: ${s};
4398
4409
  }
4399
4410
  }
4400
4411
  });
4401
- function as(e, t, n, o, r, i) {
4412
+ function ds(e, t, n, o, r, i) {
4402
4413
  var s, l, a;
4403
- return e.builderContextSignal.content ? (d(), k(M(e.ContentWrapper), C({
4414
+ return e.builderContextSignal.content ? (c(), y(j(e.ContentWrapper), C({
4404
4415
  key: 0,
4405
4416
  ref: "elementRef",
4406
4417
  onClick: (u) => e.onClick(u),
@@ -4410,40 +4421,40 @@ function as(e, t, n, o, r, i) {
4410
4421
  onIniteditingbldr: (u) => e.elementRef_onIniteditingbldr(u),
4411
4422
  onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
4412
4423
  }, { ...e.showContentProps, ...e.contentWrapperProps }), {
4413
- default: W(() => [
4414
- B(e.$slots, "default")
4424
+ default: N(() => [
4425
+ A(e.$slots, "default")
4415
4426
  ]),
4416
4427
  _: 3
4417
- }, 16, ["onClick", "builder-content-id", "builder-model", "className", "onIniteditingbldr", "onInitpreviewingbldr"])) : S("", !0);
4428
+ }, 16, ["onClick", "builder-content-id", "builder-model", "className", "onIniteditingbldr", "onInitpreviewingbldr"])) : v("", !0);
4418
4429
  }
4419
- const ls = /* @__PURE__ */ b(is, [["render", as]]), cs = f({
4430
+ const us = /* @__PURE__ */ g(cs, [["render", ds]]), ps = b({
4420
4431
  name: "content-styles",
4421
- components: { InlinedStyles: be },
4432
+ components: { InlinedStyles: ke },
4422
4433
  props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
4423
4434
  data() {
4424
4435
  return {
4425
4436
  injectedStyles: `
4426
- ${ns({
4437
+ ${ss({
4427
4438
  cssCode: this.cssCode,
4428
4439
  contentId: this.contentId
4429
4440
  })}
4430
- ${ts({
4441
+ ${rs({
4431
4442
  customFonts: this.customFonts
4432
4443
  })}
4433
- ${rs(this.isNestedRender)}
4444
+ ${as(this.isNestedRender)}
4434
4445
  `.trim()
4435
4446
  };
4436
4447
  }
4437
4448
  });
4438
- function ds(e, t, n, o, r, i) {
4439
- const s = v("InlinedStyles");
4440
- return d(), k(s, {
4449
+ function ms(e, t, n, o, r, i) {
4450
+ const s = k("InlinedStyles");
4451
+ return c(), y(s, {
4441
4452
  id: "builderio-content",
4442
4453
  styles: e.injectedStyles,
4443
4454
  nonce: e.nonce
4444
4455
  }, null, 8, ["styles", "nonce"]);
4445
4456
  }
4446
- const us = /* @__PURE__ */ b(cs, [["render", ds]]), ps = ({
4457
+ const hs = /* @__PURE__ */ g(ps, [["render", ms]]), fs = ({
4447
4458
  content: e,
4448
4459
  data: t,
4449
4460
  locale: n
@@ -4460,7 +4471,7 @@ const us = /* @__PURE__ */ b(cs, [["render", ds]]), ps = ({
4460
4471
  locale: n
4461
4472
  } : {}
4462
4473
  };
4463
- }, ms = ({
4474
+ }, bs = ({
4464
4475
  content: e,
4465
4476
  data: t
4466
4477
  }) => e ? {
@@ -4470,14 +4481,14 @@ const us = /* @__PURE__ */ b(cs, [["render", ds]]), ps = ({
4470
4481
  ...t
4471
4482
  },
4472
4483
  meta: e == null ? void 0 : e.meta
4473
- } : void 0, hs = ct, fs = f({
4484
+ } : void 0, gs = pt, ys = b({
4474
4485
  name: "content-component",
4475
4486
  components: {
4476
- EnableEditor: ls,
4477
- InlinedScript: rt,
4478
- ContentStyles: us,
4479
- Blocks: L,
4480
- DynamicDiv: G
4487
+ EnableEditor: us,
4488
+ InlinedScript: at,
4489
+ ContentStyles: hs,
4490
+ Blocks: U,
4491
+ DynamicDiv: Y
4481
4492
  },
4482
4493
  props: [
4483
4494
  "apiKey",
@@ -4505,32 +4516,32 @@ const us = /* @__PURE__ */ b(cs, [["render", ds]]), ps = ({
4505
4516
  data() {
4506
4517
  var e, t, n, o;
4507
4518
  return {
4508
- scriptStr: Xr({
4519
+ scriptStr: _r({
4509
4520
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4510
4521
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
4511
4522
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4512
4523
  contentId: (t = this.content) == null ? void 0 : t.id
4513
4524
  }),
4514
4525
  registeredComponents: [
4515
- ...we(),
4526
+ ...Re(),
4516
4527
  ...((n = this.customComponents) == null ? void 0 : n.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
4517
4528
  ].reduce(
4518
4529
  (r, { component: i, ...s }) => ({
4519
4530
  ...r,
4520
4531
  [s.name]: {
4521
- component: hs(i),
4522
- ...Z(s)
4532
+ component: gs(i),
4533
+ ..._(s)
4523
4534
  }
4524
4535
  }),
4525
4536
  {}
4526
4537
  ),
4527
4538
  builderContextSignal: {
4528
- content: ms({
4539
+ content: bs({
4529
4540
  content: this.content,
4530
4541
  data: this.data
4531
4542
  }),
4532
4543
  localState: void 0,
4533
- rootState: ps({
4544
+ rootState: fs({
4534
4545
  content: this.content,
4535
4546
  data: this.data,
4536
4547
  locale: this.locale
@@ -4541,12 +4552,12 @@ const us = /* @__PURE__ */ b(cs, [["render", ds]]), ps = ({
4541
4552
  apiKey: this.apiKey,
4542
4553
  apiVersion: this.apiVersion,
4543
4554
  componentInfos: [
4544
- ...we(),
4555
+ ...Re(),
4545
4556
  ...((o = this.customComponents) == null ? void 0 : o.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
4546
4557
  ].reduce(
4547
4558
  (r, { component: i, ...s }) => ({
4548
4559
  ...r,
4549
- [s.name]: Z(s)
4560
+ [s.name]: _(s)
4550
4561
  }),
4551
4562
  {}
4552
4563
  ),
@@ -4555,20 +4566,20 @@ const us = /* @__PURE__ */ b(cs, [["render", ds]]), ps = ({
4555
4566
  BlocksWrapperProps: this.blocksWrapperProps || {},
4556
4567
  nonce: this.nonce || ""
4557
4568
  },
4558
- TARGET: R
4569
+ TARGET: P
4559
4570
  };
4560
4571
  },
4561
4572
  provide() {
4562
4573
  const e = this;
4563
4574
  return {
4564
- [Be.key]: {
4575
+ [Ve.key]: {
4565
4576
  registeredComponents: e.registeredComponents
4566
4577
  }
4567
4578
  };
4568
4579
  },
4569
4580
  created() {
4570
4581
  var t, n;
4571
- this.apiKey || x.error(
4582
+ this.apiKey || E.error(
4572
4583
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4573
4584
  );
4574
4585
  const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
@@ -4589,9 +4600,9 @@ const us = /* @__PURE__ */ b(cs, [["render", ds]]), ps = ({
4589
4600
  }
4590
4601
  }
4591
4602
  });
4592
- function bs(e, t, n, o, r, i) {
4593
- const s = v("InlinedScript"), l = v("ContentStyles"), a = v("Blocks"), u = v("EnableEditor");
4594
- return d(), k(u, C({
4603
+ function ks(e, t, n, o, r, i) {
4604
+ const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
4605
+ return c(), y(u, C({
4595
4606
  apiHost: e.apiHost,
4596
4607
  nonce: e.nonce,
4597
4608
  content: e.content,
@@ -4609,25 +4620,25 @@ function bs(e, t, n, o, r, i) {
4609
4620
  trustedHosts: e.trustedHosts,
4610
4621
  isNestedRender: e.isNestedRender
4611
4622
  }, {}), {
4612
- default: W(() => {
4613
- var h, c, p, y, g, N, Y;
4623
+ default: N(() => {
4624
+ var m, h, d, f, S, T, O;
4614
4625
  return [
4615
- e.isSsrAbTest ? (d(), k(s, {
4626
+ e.isSsrAbTest ? (c(), y(s, {
4616
4627
  key: 0,
4617
4628
  id: "builderio-variant-visibility",
4618
4629
  scriptStr: e.scriptStr,
4619
4630
  nonce: e.nonce || ""
4620
- }, null, 8, ["scriptStr", "nonce"])) : S("", !0),
4621
- e.TARGET !== "reactNative" ? (d(), k(l, {
4631
+ }, null, 8, ["scriptStr", "nonce"])) : v("", !0),
4632
+ e.TARGET !== "reactNative" ? (c(), y(l, {
4622
4633
  key: 1,
4623
4634
  nonce: e.nonce || "",
4624
4635
  isNestedRender: e.isNestedRender,
4625
- contentId: (h = e.builderContextSignal.content) == null ? void 0 : h.id,
4626
- cssCode: (p = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : p.cssCode,
4627
- customFonts: (g = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : g.customFonts
4628
- }, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : S("", !0),
4629
- I(a, {
4630
- blocks: (Y = (N = e.builderContextSignal.content) == null ? void 0 : N.data) == null ? void 0 : Y.blocks,
4636
+ contentId: (m = e.builderContextSignal.content) == null ? void 0 : m.id,
4637
+ cssCode: (d = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : d.cssCode,
4638
+ customFonts: (S = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : S.customFonts
4639
+ }, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : v("", !0),
4640
+ $(a, {
4641
+ blocks: (O = (T = e.builderContextSignal.content) == null ? void 0 : T.data) == null ? void 0 : O.blocks,
4631
4642
  context: e.builderContextSignal,
4632
4643
  registeredComponents: e.registeredComponents,
4633
4644
  linkComponent: e.linkComponent
@@ -4637,12 +4648,12 @@ function bs(e, t, n, o, r, i) {
4637
4648
  _: 1
4638
4649
  }, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
4639
4650
  }
4640
- const gs = /* @__PURE__ */ b(fs, [["render", bs]]), ys = f({
4651
+ const vs = /* @__PURE__ */ g(ys, [["render", ks]]), Ss = b({
4641
4652
  name: "content-variants",
4642
4653
  components: {
4643
- InlinedScript: rt,
4644
- InlinedStyles: be,
4645
- ContentComponent: gs
4654
+ InlinedScript: at,
4655
+ InlinedStyles: ke,
4656
+ ContentComponent: vs
4646
4657
  },
4647
4658
  props: [
4648
4659
  "canTrack",
@@ -4667,13 +4678,13 @@ const gs = /* @__PURE__ */ b(fs, [["render", bs]]), ys = f({
4667
4678
  ],
4668
4679
  data() {
4669
4680
  return {
4670
- shouldRenderVariants: zr({
4671
- canTrack: z(this.canTrack),
4681
+ shouldRenderVariants: Yr({
4682
+ canTrack: G(this.canTrack),
4672
4683
  content: this.content
4673
4684
  }),
4674
- TARGET: R,
4675
- getInitVariantsFnsScriptString: Gr,
4676
- getVariants: X
4685
+ TARGET: P,
4686
+ getInitVariantsFnsScriptString: Qr,
4687
+ getVariants: Q
4677
4688
  };
4678
4689
  },
4679
4690
  mounted() {
@@ -4681,8 +4692,8 @@ const gs = /* @__PURE__ */ b(fs, [["render", bs]]), ys = f({
4681
4692
  computed: {
4682
4693
  updateCookieAndStylesScriptStr() {
4683
4694
  var e;
4684
- return Yr(
4685
- X(this.content).map((t) => ({
4695
+ return Zr(
4696
+ Q(this.content).map((t) => ({
4686
4697
  id: t.testVariationId,
4687
4698
  testRatio: t.testRatio
4688
4699
  })),
@@ -4690,41 +4701,41 @@ const gs = /* @__PURE__ */ b(fs, [["render", bs]]), ys = f({
4690
4701
  );
4691
4702
  },
4692
4703
  hideVariantsStyleString() {
4693
- return X(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
4704
+ return Q(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
4694
4705
  },
4695
4706
  defaultContent() {
4696
4707
  var e;
4697
4708
  return this.shouldRenderVariants ? {
4698
4709
  ...this.content,
4699
4710
  testVariationId: (e = this.content) == null ? void 0 : e.id
4700
- } : mn({
4711
+ } : bn({
4701
4712
  item: this.content,
4702
- canTrack: z(this.canTrack)
4713
+ canTrack: G(this.canTrack)
4703
4714
  });
4704
4715
  }
4705
4716
  }
4706
4717
  });
4707
- function ks(e, t, n, o, r, i) {
4708
- const s = v("InlinedScript"), l = v("InlinedStyles"), a = v("ContentComponent");
4709
- return d(), m(T, null, [
4710
- !e.isNestedRender && e.TARGET !== "reactNative" ? (d(), k(s, {
4718
+ function Cs(e, t, n, o, r, i) {
4719
+ const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
4720
+ return c(), p(w, null, [
4721
+ !e.isNestedRender && e.TARGET !== "reactNative" ? (c(), y(s, {
4711
4722
  key: 0,
4712
4723
  id: "builderio-init-variants-fns",
4713
4724
  scriptStr: e.getInitVariantsFnsScriptString(),
4714
4725
  nonce: e.nonce || ""
4715
- }, null, 8, ["scriptStr", "nonce"])) : S("", !0),
4716
- e.shouldRenderVariants ? (d(), m(T, { key: 1 }, [
4717
- I(l, {
4726
+ }, null, 8, ["scriptStr", "nonce"])) : v("", !0),
4727
+ e.shouldRenderVariants ? (c(), p(w, { key: 1 }, [
4728
+ $(l, {
4718
4729
  id: "builderio-variants",
4719
4730
  styles: e.hideVariantsStyleString,
4720
4731
  nonce: e.nonce || ""
4721
4732
  }, null, 8, ["styles", "nonce"]),
4722
- I(s, {
4733
+ $(s, {
4723
4734
  id: "builderio-variants-visibility",
4724
4735
  scriptStr: e.updateCookieAndStylesScriptStr,
4725
4736
  nonce: e.nonce || ""
4726
4737
  }, null, 8, ["scriptStr", "nonce"]),
4727
- (d(!0), m(T, null, A(e.getVariants(e.content), (u, h) => (d(), k(a, C({
4738
+ (c(!0), p(w, null, V(e.getVariants(e.content), (u, m) => (c(), y(a, C({
4728
4739
  key: u.testVariationId,
4729
4740
  apiHost: e.apiHost,
4730
4741
  isNestedRender: e.isNestedRender,
@@ -4748,8 +4759,8 @@ function ks(e, t, n, o, r, i) {
4748
4759
  contentWrapperProps: e.contentWrapperProps,
4749
4760
  trustedHosts: e.trustedHosts
4750
4761
  }, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
4751
- ], 64)) : S("", !0),
4752
- I(a, C({
4762
+ ], 64)) : v("", !0),
4763
+ $(a, C({
4753
4764
  apiHost: e.apiHost,
4754
4765
  nonce: e.nonce,
4755
4766
  isNestedRender: e.isNestedRender,
@@ -4776,13 +4787,13 @@ function ks(e, t, n, o, r, i) {
4776
4787
  }), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
4777
4788
  ], 64);
4778
4789
  }
4779
- const vs = /* @__PURE__ */ b(ys, [["render", ks]]), Ss = async ({
4790
+ const Ts = /* @__PURE__ */ g(Ss, [["render", Cs]]), ws = async ({
4780
4791
  builderContextValue: e,
4781
4792
  symbol: t
4782
4793
  }) => {
4783
4794
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4784
4795
  (e != null && e.apiKey))
4785
- return me({
4796
+ return be({
4786
4797
  model: t.model,
4787
4798
  apiKey: e.apiKey,
4788
4799
  apiVersion: e.apiVersion,
@@ -4792,11 +4803,11 @@ const vs = /* @__PURE__ */ b(ys, [["render", ks]]), Ss = async ({
4792
4803
  }
4793
4804
  }
4794
4805
  }).catch((n) => {
4795
- x.error("Could not fetch symbol content: ", n);
4806
+ E.error("Could not fetch symbol content: ", n);
4796
4807
  });
4797
- }, Cs = f({
4808
+ }, Is = b({
4798
4809
  name: "builder-symbol",
4799
- components: { ContentVariants: vs, DynamicDiv: G },
4810
+ components: { ContentVariants: Ts, DynamicDiv: Y },
4800
4811
  props: [
4801
4812
  "symbol",
4802
4813
  "attributes",
@@ -4808,7 +4819,7 @@ const vs = /* @__PURE__ */ b(ys, [["render", ks]]), Ss = async ({
4808
4819
  ],
4809
4820
  data() {
4810
4821
  var e;
4811
- return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: V };
4822
+ return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: W };
4812
4823
  },
4813
4824
  mounted() {
4814
4825
  this.setContent();
@@ -4831,7 +4842,7 @@ const vs = /* @__PURE__ */ b(ys, [["render", ks]]), Ss = async ({
4831
4842
  className() {
4832
4843
  var e, t;
4833
4844
  return [
4834
- this.attributes[Q()],
4845
+ this.attributes[Z()],
4835
4846
  "builder-symbol",
4836
4847
  (e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
4837
4848
  (t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
@@ -4845,7 +4856,7 @@ const vs = /* @__PURE__ */ b(ys, [["render", ks]]), Ss = async ({
4845
4856
  },
4846
4857
  methods: {
4847
4858
  setContent() {
4848
- this.contentToUse || Ss({
4859
+ this.contentToUse || ws({
4849
4860
  symbol: this.symbol,
4850
4861
  builderContextValue: this.builderContext
4851
4862
  }).then((e) => {
@@ -4854,11 +4865,11 @@ const vs = /* @__PURE__ */ b(ys, [["render", ks]]), Ss = async ({
4854
4865
  }
4855
4866
  }
4856
4867
  });
4857
- function Ts(e, t, n, o, r, i) {
4858
- var l, a, u, h, c;
4859
- const s = v("ContentVariants");
4860
- return d(), m("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4861
- I(s, {
4868
+ function $s(e, t, n, o, r, i) {
4869
+ var l, a, u, m, h;
4870
+ const s = k("ContentVariants");
4871
+ return c(), p("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4872
+ $(s, {
4862
4873
  nonce: e.builderContext.nonce,
4863
4874
  isNestedRender: !0,
4864
4875
  apiVersion: e.builderContext.apiVersion,
@@ -4871,10 +4882,10 @@ function Ts(e, t, n, o, r, i) {
4871
4882
  data: {
4872
4883
  ...(a = e.symbol) == null ? void 0 : a.data,
4873
4884
  ...e.builderContext.localState,
4874
- ...(h = (u = e.contentToUse) == null ? void 0 : u.data) == null ? void 0 : h.state
4885
+ ...(m = (u = e.contentToUse) == null ? void 0 : u.data) == null ? void 0 : m.state
4875
4886
  },
4876
4887
  canTrack: e.builderContext.canTrack,
4877
- model: (c = e.symbol) == null ? void 0 : c.model,
4888
+ model: (h = e.symbol) == null ? void 0 : h.model,
4878
4889
  content: e.contentToUse,
4879
4890
  linkComponent: e.builderLinkComponent,
4880
4891
  blocksWrapper: e.blocksWrapper,
@@ -4882,41 +4893,41 @@ function Ts(e, t, n, o, r, i) {
4882
4893
  }, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
4883
4894
  ], 16);
4884
4895
  }
4885
- const ws = /* @__PURE__ */ b(Cs, [["render", Ts]]);
4896
+ const Rs = /* @__PURE__ */ g(Is, [["render", $s]]);
4886
4897
  export {
4887
- Ws as A,
4888
- fe as B,
4889
- eo as C,
4890
- oo as F,
4891
- po as I,
4892
- fo as S,
4893
- Mo as T,
4894
- Mr as V,
4895
- be as _,
4896
- Ns as a,
4897
- he as b,
4898
- As as c,
4899
- b as d,
4898
+ Ds as A,
4899
+ ye as B,
4900
+ oo as C,
4901
+ io as F,
4902
+ fo as I,
4903
+ yo as S,
4904
+ qo as T,
4905
+ qr as V,
4906
+ ke as _,
4907
+ Os as a,
4908
+ ge as b,
4909
+ Ns as c,
4910
+ g as d,
4900
4911
  J as e,
4901
- Vs as f,
4902
- Xn as g,
4903
- Q as h,
4904
- se as i,
4905
- wt as j,
4906
- ws as k,
4907
- L as l,
4908
- vs as m,
4909
- Dt as n,
4910
- Lt as o,
4911
- Ae as p,
4912
- Bs as q,
4913
- Ht as r,
4914
- Es as s,
4915
- Ps as t,
4916
- xs as u,
4917
- Sn as v,
4918
- hs as w,
4919
- Cn as x,
4920
- me as y,
4921
- Rs as z
4912
+ Fs as f,
4913
+ _n as g,
4914
+ Z as h,
4915
+ ae as i,
4916
+ Rt as j,
4917
+ Rs as k,
4918
+ U as l,
4919
+ Ts as m,
4920
+ Ht as n,
4921
+ Mt as o,
4922
+ Ne as p,
4923
+ Vs as q,
4924
+ Kt as r,
4925
+ xs as s,
4926
+ As as t,
4927
+ Ws as u,
4928
+ wn as v,
4929
+ gs as w,
4930
+ In as x,
4931
+ be as y,
4932
+ Bs as z
4922
4933
  };