@builder.io/sdk-vue 2.0.21 → 2.0.23

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 (67) hide show
  1. package/lib/browser/{awaiter-63wFxDc-.cjs → awaiter-G_oIEuat.cjs} +1 -1
  2. package/lib/browser/{awaiter-wFAQUD8u.js → awaiter-u5PXGRLo.js} +1 -1
  3. package/lib/browser/{block-styles-w3CYR9qS.cjs → block-styles-HMeGutPn.cjs} +1 -1
  4. package/lib/browser/{block-styles-e9UJWxRw.js → block-styles-wK6lFE9B.js} +1 -1
  5. package/lib/browser/{block-wrapper-BBK1LMQ8.js → block-wrapper-MKu8n7U7.js} +3 -3
  6. package/lib/browser/{block-wrapper-KE-bUIi7.cjs → block-wrapper-yu-xkfE4.cjs} +1 -1
  7. package/lib/browser/{component-ref-cecMbUuX.js → component-ref-78k364NZ.js} +3 -3
  8. package/lib/browser/{component-ref-e6CG1TqL.cjs → component-ref-qjYaeP3w.cjs} +1 -1
  9. package/lib/browser/constants/sdk-version.d.ts +1 -1
  10. package/lib/browser/functions/evaluate/evaluate.d.ts +2 -1
  11. package/lib/browser/functions/evaluate/helpers.d.ts +0 -1
  12. package/lib/browser/get-block-properties-GhSltgo5.cjs +1 -0
  13. package/lib/browser/{get-block-properties-JZrAY1r_.js → get-block-properties-XqXSwZFG.js} +12 -13
  14. package/lib/browser/index-CtUCszME.cjs +166 -0
  15. package/lib/browser/{index-ei0E4zOL.js → index-seWAP4vy.js} +672 -704
  16. package/lib/browser/index.cjs +1 -1
  17. package/lib/browser/index.mjs +1 -1
  18. package/lib/browser/{repeated-block-4KouNbyE.js → repeated-block-8i7afs5q.js} +2 -2
  19. package/lib/browser/{repeated-block-5kGcO6DI.cjs → repeated-block-Bx7DKHbW.cjs} +1 -1
  20. package/lib/browser/types/input.d.ts +1 -1
  21. package/lib/edge/{awaiter-aq8paHrs.cjs → awaiter-PIsCfK7c.cjs} +1 -1
  22. package/lib/edge/{awaiter-byTF6qeD.js → awaiter-QMFq6Byd.js} +1 -1
  23. package/lib/edge/{block-styles-sHjSbOMY.cjs → block-styles-AHO5DXSi.cjs} +1 -1
  24. package/lib/edge/{block-styles-8MRmenjP.js → block-styles-U4E7ZMFT.js} +1 -1
  25. package/lib/edge/{block-wrapper-rzB4thH4.js → block-wrapper-NqtVmoR7.js} +3 -3
  26. package/lib/edge/{block-wrapper-ilLh_PHh.cjs → block-wrapper-OPLSNoIA.cjs} +1 -1
  27. package/lib/edge/{component-ref-hkYDlUjG.js → component-ref-IUycKXa3.js} +3 -3
  28. package/lib/edge/{component-ref-FJL2g6D2.cjs → component-ref-xq2wlUSE.cjs} +1 -1
  29. package/lib/edge/constants/sdk-version.d.ts +1 -1
  30. package/lib/edge/functions/evaluate/evaluate.d.ts +2 -1
  31. package/lib/edge/functions/evaluate/helpers.d.ts +0 -1
  32. package/lib/edge/get-block-properties-byaSZogH.cjs +1 -0
  33. package/lib/edge/{get-block-properties-cbYhtG2B.js → get-block-properties-mO8Gxq92.js} +14 -15
  34. package/lib/edge/index-N7pU-PUB.cjs +184 -0
  35. package/lib/edge/{index-s36DlX8g.js → index-iOFRbVWh.js} +1279 -1311
  36. package/lib/edge/index.cjs +1 -1
  37. package/lib/edge/index.mjs +1 -1
  38. package/lib/{node/repeated-block-keRWtfEG.cjs → edge/repeated-block-ZzGKcGjr.cjs} +1 -1
  39. package/lib/edge/{repeated-block-zOlg6ACd.js → repeated-block-bNufaRuJ.js} +2 -2
  40. package/lib/edge/types/input.d.ts +1 -1
  41. package/lib/node/{awaiter-Fsn-BZdK.cjs → awaiter-H1oynBsE.cjs} +1 -1
  42. package/lib/node/{awaiter-c00-BKl8.js → awaiter-IQFut22y.js} +1 -1
  43. package/lib/node/{block-styles-dNkK6XUk.cjs → block-styles-RuFPwMXh.cjs} +1 -1
  44. package/lib/node/{block-styles-y32fRgui.js → block-styles-VnxJDeth.js} +1 -1
  45. package/lib/node/{block-wrapper-Gb1-_hO0.js → block-wrapper-0QkyDUi8.js} +3 -3
  46. package/lib/node/{block-wrapper-9SHqyGhh.cjs → block-wrapper-Rdrsg2md.cjs} +1 -1
  47. package/lib/node/{component-ref-9ri0cWhO.js → component-ref-ykrv8SqH.js} +3 -3
  48. package/lib/node/{component-ref-LAJelZZi.cjs → component-ref-zfHcvc9C.cjs} +1 -1
  49. package/lib/node/constants/sdk-version.d.ts +1 -1
  50. package/lib/node/functions/evaluate/evaluate.d.ts +2 -1
  51. package/lib/node/functions/evaluate/helpers.d.ts +0 -1
  52. package/lib/node/get-block-properties-hwulPF6s.cjs +1 -0
  53. package/lib/node/{get-block-properties-hbwsLjcS.js → get-block-properties-vdmQ9Xzy.js} +6 -7
  54. package/lib/node/{index-owOkjqS8.js → index-Iiftot2Q.js} +665 -697
  55. package/lib/node/index-kUJl6uPe.cjs +166 -0
  56. package/lib/node/index.cjs +1 -1
  57. package/lib/node/index.mjs +1 -1
  58. package/lib/node/{repeated-block-xs28_Dw4.js → repeated-block-3sBOF_Jy.js} +2 -2
  59. package/lib/{edge/repeated-block-wdJ005G3.cjs → node/repeated-block-lp57jnam.cjs} +1 -1
  60. package/lib/node/types/input.d.ts +1 -1
  61. package/package.json +1 -1
  62. package/lib/browser/get-block-properties-8qBDZMKr.cjs +0 -1
  63. package/lib/browser/index-uR3yr3o2.cjs +0 -166
  64. package/lib/edge/get-block-properties-aM96dauJ.cjs +0 -1
  65. package/lib/edge/index-Nw62yGCU.cjs +0 -184
  66. package/lib/node/get-block-properties-XKVJQeGu.cjs +0 -1
  67. package/lib/node/index-eLulgxIT.cjs +0 -166
@@ -1,10 +1,7 @@
1
- var st = Object.defineProperty;
2
- var at = (e, t, n) => t in e ? st(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var ne = (e, t, n) => (at(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { defineComponent as f, openBlock as c, createElementBlock as m, Fragment as T, createBlock as g, resolveDynamicComponent as K, mergeProps as C, toHandlers as B, withCtx as N, renderSlot as E, resolveComponent as y, createTextVNode as lt, toDisplayString as te, defineAsyncComponent as H, createVNode as I, renderList as V, createCommentVNode as S, h as Pe, createElementVNode as z, normalizeStyle as D, normalizeClass as J, markRaw as ct } from "vue";
5
- import { T as x, g as dt, f as ut, i as $, s as pt, r as mt, p as ht, a as ft, l as P, b as xe, c as pe, d as bt, n as Ve, e as L, h as R, j as gt } from "./should-force-browser-runtime-in-node-o45oecPI.js";
6
- 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());
7
- function A(e = {}, t, n) {
1
+ import { defineComponent as f, openBlock as c, createElementBlock as m, Fragment as T, createBlock as g, resolveDynamicComponent as j, mergeProps as C, toHandlers as E, withCtx as W, renderSlot as P, resolveComponent as y, createTextVNode as rt, toDisplayString as _, defineAsyncComponent as M, createVNode as I, renderList as A, createCommentVNode as S, h as Re, createElementVNode as K, normalizeStyle as O, normalizeClass as q, markRaw as it } from "vue";
2
+ import { T as x, g as st, f as at, i as $, s as lt, r as ct, p as dt, a as ut, l as B, b as Ee, c as ce, d as pt, n as Pe, e as D, h as R, j as mt } from "./should-force-browser-runtime-in-node-o45oecPI.js";
3
+ const ht = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ft = (e) => typeof e == "string" && ht.has(e.toLowerCase());
4
+ function V(e = {}, t, n) {
8
5
  const o = {};
9
6
  for (const r in e) {
10
7
  if (!e[r] || n && !r.startsWith(t))
@@ -14,11 +11,11 @@ function A(e = {}, t, n) {
14
11
  }
15
12
  return o;
16
13
  }
17
- const vt = f({
14
+ const bt = f({
18
15
  name: "dynamic-renderer",
19
16
  props: ["TagName", "attributes", "actionAttributes"],
20
17
  data() {
21
- return { isEmptyElement: kt };
18
+ return { isEmptyElement: ft };
22
19
  }
23
20
  }), b = (e, t) => {
24
21
  const n = e.__vccOpts || e;
@@ -26,25 +23,25 @@ const vt = f({
26
23
  n[o] = r;
27
24
  return n;
28
25
  };
29
- function St(e, t, n, o, r, s) {
30
- return e.isEmptyElement(e.TagName) ? (c(), g(K(e.TagName), C({ key: 1 }, e.attributes, B(e.actionAttributes)), null, 16)) : (c(), m(T, { key: 0 }, [
31
- typeof e.TagName == "string" ? (c(), g(K(e.TagName), C({ key: 0 }, e.attributes, B(e.actionAttributes)), {
32
- default: N(() => [
33
- E(e.$slots, "default")
26
+ function gt(e, t, n, o, r, s) {
27
+ return e.isEmptyElement(e.TagName) ? (c(), g(j(e.TagName), C({ key: 1 }, e.attributes, E(e.actionAttributes)), null, 16)) : (c(), m(T, { key: 0 }, [
28
+ typeof e.TagName == "string" ? (c(), g(j(e.TagName), C({ key: 0 }, e.attributes, E(e.actionAttributes)), {
29
+ default: W(() => [
30
+ P(e.$slots, "default")
34
31
  ]),
35
32
  _: 3
36
- }, 16)) : (c(), g(K(e.TagName), C({ key: 1 }, e.attributes, B(e.actionAttributes)), {
37
- default: N(() => [
38
- E(e.$slots, "default")
33
+ }, 16)) : (c(), g(j(e.TagName), C({ key: 1 }, e.attributes, E(e.actionAttributes)), {
34
+ default: W(() => [
35
+ P(e.$slots, "default")
39
36
  ]),
40
37
  _: 3
41
38
  }, 16))
42
39
  ], 64));
43
40
  }
44
- const me = /* @__PURE__ */ b(vt, [["render", St]]), Bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41
+ const de = /* @__PURE__ */ b(bt, [["render", gt]]), wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
45
42
  __proto__: null,
46
- default: me
47
- }, Symbol.toStringTag, { value: "Module" })), _ = () => {
43
+ default: de
44
+ }, Symbol.toStringTag, { value: "Module" })), Q = () => {
48
45
  switch (x) {
49
46
  case "react":
50
47
  case "reactNative":
@@ -57,9 +54,9 @@ const me = /* @__PURE__ */ b(vt, [["render", St]]), Bi = /* @__PURE__ */ Object.
57
54
  case "angular":
58
55
  return "class";
59
56
  }
60
- }, Ct = f({
57
+ }, yt = f({
61
58
  name: "builder-button",
62
- components: { DynamicRenderer: me },
59
+ components: { DynamicRenderer: de },
63
60
  props: [
64
61
  "attributes",
65
62
  "link",
@@ -68,13 +65,13 @@ const me = /* @__PURE__ */ b(vt, [["render", St]]), Bi = /* @__PURE__ */ Object.
68
65
  "text"
69
66
  ],
70
67
  data() {
71
- return { filterAttrs: A };
68
+ return { filterAttrs: V };
72
69
  },
73
70
  methods: {
74
71
  attrs() {
75
72
  return {
76
- ...A(this.attributes, "v-on:", !1),
77
- [_()]: `${this.link ? "" : "builder-button"} ${this.attributes[_()] || ""}`,
73
+ ...V(this.attributes, "v-on:", !1),
74
+ [Q()]: `${this.link ? "" : "builder-button"} ${this.attributes[Q()] || ""}`,
78
75
  ...this.link ? {
79
76
  href: this.link,
80
77
  target: this.openLinkInNewTab ? "_blank" : void 0,
@@ -86,20 +83,20 @@ const me = /* @__PURE__ */ b(vt, [["render", St]]), Bi = /* @__PURE__ */ Object.
86
83
  }
87
84
  }
88
85
  });
89
- function Tt(e, t, n, o, r, s) {
86
+ function kt(e, t, n, o, r, s) {
90
87
  const i = y("DynamicRenderer");
91
88
  return c(), g(i, {
92
89
  attributes: e.attrs(),
93
90
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
94
91
  actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
95
92
  }, {
96
- default: N(() => [
97
- lt(te(e.text), 1)
93
+ default: W(() => [
94
+ rt(_(e.text), 1)
98
95
  ]),
99
96
  _: 1
100
97
  }, 8, ["attributes", "TagName", "actionAttributes"]);
101
98
  }
102
- const wt = /* @__PURE__ */ b(Ct, [["render", Tt]]), It = Symbol(), le = {
99
+ const vt = /* @__PURE__ */ b(yt, [["render", kt]]), St = Symbol(), ie = {
103
100
  Builder: {
104
101
  content: null,
105
102
  context: {},
@@ -115,25 +112,28 @@ const wt = /* @__PURE__ */ b(Ct, [["render", Tt]]), It = Symbol(), le = {
115
112
  BlocksWrapperProps: {},
116
113
  nonce: ""
117
114
  },
118
- key: It
119
- }, $t = Symbol(), Ae = {
115
+ key: St
116
+ }, Ct = Symbol(), Be = {
120
117
  Components: { registeredComponents: {} },
121
- key: $t
118
+ key: Ct
122
119
  };
123
- function Rt(e) {
120
+ function Tt(e) {
124
121
  var t;
125
122
  return {
126
123
  ...(t = e.component) == null ? void 0 : t.options,
127
124
  ...e.options
128
125
  };
129
126
  }
130
- function Bt(e, ...t) {
127
+ function wt(e, ...t) {
131
128
  const n = Object.assign({}, e);
132
129
  for (const o of t)
133
130
  delete n[o];
134
131
  return n;
135
132
  }
136
- const Et = ({
133
+ const xe = (e, t, n) => {
134
+ const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, s) => r != null ? r[s] : r, e);
135
+ return o === void 0 || o === e ? n : o;
136
+ }, It = ({
137
137
  code: e,
138
138
  builder: t,
139
139
  context: n,
@@ -142,96 +142,75 @@ const Et = ({
142
142
  rootSetState: s,
143
143
  rootState: i
144
144
  }) => {
145
- const l = dt({
145
+ const l = st({
146
146
  builder: t,
147
147
  context: n,
148
148
  event: o,
149
- state: ut({
149
+ state: at({
150
150
  rootState: i,
151
151
  localState: r,
152
152
  rootSetState: s
153
153
  })
154
154
  });
155
155
  return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
156
- }, Pt = (e) => $() || pt({
156
+ }, $t = (e) => $() || lt({
157
157
  shouldLogWarning: !0
158
- }) ? Et(e) : mt(e), xt = !0, W = class W {
159
- static getCacheKey(t) {
160
- return JSON.stringify({
161
- ...t,
162
- // replace the event with a random number to break cache
163
- // thats because we can't serialize the event object due to circular refs in DOM node refs.
164
- event: t.event ? Math.random() : void 0
165
- });
166
- }
167
- static getCachedValue(t) {
168
- return W.cache.get(t);
169
- }
170
- static setCachedValue(t, n) {
171
- W.cache.size > 20 && W.cache.delete(W.cache.keys().next().value), W.cache.set(t, {
172
- value: n
173
- });
174
- }
158
+ }) ? It(e) : ct(e), Rt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Et = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Pt = (e) => {
159
+ var t, n, o, r, s, i;
160
+ return ((o = (n = (t = Rt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((i = (s = (r = Et.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : s.getPath) == null ? void 0 : i.slice(1));
175
161
  };
176
- ne(W, "cacheLimit", 20), ne(W, "cache", /* @__PURE__ */ new Map());
177
- let U = W;
178
- function Y({
162
+ function J({
179
163
  code: e,
180
164
  context: t,
181
165
  localState: n,
182
166
  rootState: o,
183
167
  rootSetState: r,
184
168
  event: s,
185
- isExpression: i = !0,
186
- enableCache: l
169
+ isExpression: i = !0
187
170
  }) {
188
- if (e === "")
171
+ if (e.trim() === "")
189
172
  return;
173
+ const l = Pt(e.trim());
174
+ if (l)
175
+ return xe({
176
+ ...o,
177
+ ...n
178
+ }, l);
190
179
  const a = {
191
- code: ht(e, {
180
+ code: dt(e, {
192
181
  isExpression: i
193
182
  }),
194
- builder: ft(),
183
+ builder: ut(),
195
184
  context: t,
196
185
  event: s,
197
186
  rootSetState: r,
198
187
  rootState: o,
199
188
  localState: n
200
189
  };
201
- if (l && !xt) {
202
- const u = U.getCacheKey(a), h = U.getCachedValue(u);
203
- if (h)
204
- return h.value;
205
- }
206
190
  try {
207
- const u = Pt(a);
208
- if (l) {
209
- const h = U.getCacheKey(a);
210
- U.setCachedValue(h, u);
211
- }
212
- return u;
191
+ return $t(a);
213
192
  } catch (u) {
214
- P.error("Failed code evaluation: " + u.message, {
193
+ B.error("Failed code evaluation: " + u.message, {
215
194
  code: e
216
195
  });
217
196
  return;
218
197
  }
219
198
  }
220
- function ce(e) {
199
+ function se(e) {
221
200
  if (e === null || typeof e != "object")
222
201
  return e;
223
202
  if (Array.isArray(e))
224
- return e.map((n) => ce(n));
203
+ return e.map((n) => se(n));
225
204
  if (e["@type"] === "@builder.io/sdk:Element")
226
205
  return e;
227
206
  const t = {};
228
207
  for (const n in e)
229
- n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ce(e[n]));
208
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = se(e[n]));
230
209
  return t;
231
210
  }
232
- const Vt = ["svelte", "vue", "angular", "qwik", "solid"].includes(x), At = (e) => {
233
- if (Vt) {
234
- const t = pe(e);
211
+ const Bt = ["svelte", "vue", "angular", "qwik", "solid"].includes(x), xt = (e) => {
212
+ if (Bt) {
213
+ const t = ce(e);
235
214
  return {
236
215
  ...t,
237
216
  properties: {
@@ -242,7 +221,7 @@ const Vt = ["svelte", "vue", "angular", "qwik", "solid"].includes(x), At = (e) =
242
221
  }
243
222
  };
244
223
  } else {
245
- const t = ce(Bt(e, "children", "meta"));
224
+ const t = se(wt(e, "children", "meta"));
246
225
  return {
247
226
  ...t,
248
227
  properties: {
@@ -255,7 +234,7 @@ const Vt = ["svelte", "vue", "angular", "qwik", "solid"].includes(x), At = (e) =
255
234
  meta: e.meta
256
235
  };
257
236
  }
258
- }, Wt = ({
237
+ }, At = ({
259
238
  block: e,
260
239
  context: t,
261
240
  localState: n,
@@ -264,21 +243,20 @@ const Vt = ["svelte", "vue", "angular", "qwik", "solid"].includes(x), At = (e) =
264
243
  }) => {
265
244
  if (!e.bindings)
266
245
  return e;
267
- const s = At(e);
246
+ const s = xt(e);
268
247
  for (const i in e.bindings) {
269
- const l = e.bindings[i], a = Y({
248
+ const l = e.bindings[i], a = J({
270
249
  code: l,
271
250
  localState: n,
272
251
  rootState: o,
273
252
  rootSetState: r,
274
- context: t,
275
- enableCache: !0
253
+ context: t
276
254
  });
277
- xe(s, i, a);
255
+ Ee(s, i, a);
278
256
  }
279
257
  return s;
280
258
  };
281
- function Nt({
259
+ function Vt({
282
260
  block: e,
283
261
  context: t,
284
262
  shouldEvaluateBindings: n,
@@ -287,7 +265,7 @@ function Nt({
287
265
  rootSetState: s
288
266
  }) {
289
267
  const i = e;
290
- return n ? Wt({
268
+ return n ? At({
291
269
  block: i,
292
270
  localState: o,
293
271
  rootState: r,
@@ -295,25 +273,25 @@ function Nt({
295
273
  context: t
296
274
  }) : i;
297
275
  }
298
- function Ft(e) {
276
+ function Wt(e) {
299
277
  const t = e || ($() ? window.location.search : void 0);
300
- return t ? bt(t).indexOf("builder.preview=") !== -1 : !1;
278
+ return t ? pt(t).indexOf("builder.preview=") !== -1 : !1;
301
279
  }
302
- const Ot = (e) => ({
280
+ const Nt = (e) => ({
303
281
  type: "builder.registerComponent",
304
- data: ee(e)
305
- }), Dt = (e) => {
282
+ data: Z(e)
283
+ }), Ft = (e) => {
306
284
  const t = e.toString().trim();
307
285
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
308
286
  };
309
- function ee(e) {
310
- return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? Dt(n) : n));
287
+ function Z(e) {
288
+ return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? Ft(n) : n));
311
289
  }
312
- const Se = {};
313
- function Lt(e, t) {
314
- e === "plugin" && (t = ee(t));
315
- let n = Se[e];
316
- if (n || (n = Se[e] = []), n.push(t), $()) {
290
+ const ye = {};
291
+ function Ot(e, t) {
292
+ e === "plugin" && (t = Z(t));
293
+ let n = ye[e];
294
+ if (n || (n = ye[e] = []), n.push(t), $()) {
317
295
  const o = {
318
296
  type: "builder.register",
319
297
  data: {
@@ -328,38 +306,38 @@ function Lt(e, t) {
328
306
  }
329
307
  }
330
308
  }
331
- const Ce = {};
332
- function Ei(e) {
309
+ const ke = {};
310
+ function Ii(e) {
333
311
  if ($()) {
334
- Object.assign(Ce, e);
312
+ Object.assign(ke, e);
335
313
  const t = {
336
314
  type: "builder.settingsChange",
337
- data: Ce
315
+ data: ke
338
316
  };
339
317
  parent.postMessage(t, "*");
340
318
  }
341
319
  }
342
- const Te = "builder.", Ut = "options.", We = (e) => {
320
+ const ve = "builder.", Dt = "options.", Ae = (e) => {
343
321
  if (!e)
344
322
  return {};
345
- const t = Ve(e), n = {};
323
+ const t = Pe(e), n = {};
346
324
  return Object.keys(t).forEach((o) => {
347
- if (o.startsWith(Te)) {
348
- const r = o.replace(Te, "").replace(Ut, "");
325
+ if (o.startsWith(ve)) {
326
+ const r = o.replace(ve, "").replace(Dt, "");
349
327
  n[r] = t[o];
350
328
  }
351
329
  }), n;
352
- }, Mt = () => {
330
+ }, Lt = () => {
353
331
  if (!$())
354
332
  return {};
355
333
  const e = new URLSearchParams(window.location.search);
356
- return We(e);
357
- }, jt = (e) => {
334
+ return Ae(e);
335
+ }, Ut = (e) => {
358
336
  if (e === "localhost" || e === "127.0.0.1")
359
337
  return e;
360
338
  const t = e.split(".");
361
339
  return t.length > 2 ? t.slice(1).join(".") : e;
362
- }, Ne = ({
340
+ }, Ve = ({
363
341
  name: e,
364
342
  canTrack: t
365
343
  }) => {
@@ -367,17 +345,17 @@ const Te = "builder.", Ut = "options.", We = (e) => {
367
345
  try {
368
346
  return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
369
347
  } catch (o) {
370
- P.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
348
+ B.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
371
349
  return;
372
350
  }
373
- }, Fe = async (e) => Ne(e), Ht = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(L).join("; "), Kt = [["secure", ""], ["SameSite", "None"]], qt = ({
351
+ }, We = async (e) => Ve(e), Mt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(D).join("; "), jt = [["secure", ""], ["SameSite", "None"]], Ht = ({
374
352
  name: e,
375
353
  value: t,
376
354
  expires: n
377
355
  }) => {
378
- const r = ($() ? location.protocol === "https:" : !0) ? Kt : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", jt(window.location.hostname)], ...r];
379
- return Ht(i);
380
- }, Oe = async ({
356
+ const r = ($() ? location.protocol === "https:" : !0) ? jt : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", Ut(window.location.hostname)], ...r];
357
+ return Mt(i);
358
+ }, Ne = async ({
381
359
  name: e,
382
360
  value: t,
383
361
  expires: n,
@@ -386,98 +364,98 @@ const Te = "builder.", Ut = "options.", We = (e) => {
386
364
  try {
387
365
  if (!o)
388
366
  return;
389
- const r = qt({
367
+ const r = Ht({
390
368
  name: e,
391
369
  value: t,
392
370
  expires: n
393
371
  });
394
372
  document.cookie = r;
395
373
  } catch (r) {
396
- P.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
374
+ B.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
397
375
  }
398
376
  };
399
- function zt() {
377
+ function Kt() {
400
378
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
401
379
  const t = Math.random() * 16 | 0;
402
380
  return (e == "x" ? t : t & 3 | 8).toString(16);
403
381
  });
404
382
  }
405
- function De() {
406
- return zt().replace(/-/g, "");
383
+ function Fe() {
384
+ return Kt().replace(/-/g, "");
407
385
  }
408
- const Le = "builderSessionId", Jt = async ({
386
+ const Oe = "builderSessionId", qt = async ({
409
387
  canTrack: e
410
388
  }) => {
411
389
  if (!e)
412
390
  return;
413
- const t = await Fe({
414
- name: Le,
391
+ const t = await We({
392
+ name: Oe,
415
393
  canTrack: e
416
394
  });
417
- if (L(t))
395
+ if (D(t))
418
396
  return t;
419
397
  {
420
- const n = Gt();
421
- return Yt({
398
+ const n = zt();
399
+ return Jt({
422
400
  id: n,
423
401
  canTrack: e
424
402
  }), n;
425
403
  }
426
- }, Gt = () => De(), Yt = ({
404
+ }, zt = () => Fe(), Jt = ({
427
405
  id: e,
428
406
  canTrack: t
429
- }) => Oe({
430
- name: Le,
407
+ }) => Ne({
408
+ name: Oe,
431
409
  value: e,
432
410
  canTrack: t
433
- }), Ue = () => $() && typeof localStorage < "u" ? localStorage : void 0, Qt = ({
411
+ }), De = () => $() && typeof localStorage < "u" ? localStorage : void 0, Gt = ({
434
412
  key: e,
435
413
  canTrack: t
436
414
  }) => {
437
415
  var n;
438
416
  try {
439
- return t ? (n = Ue()) == null ? void 0 : n.getItem(e) : void 0;
417
+ return t ? (n = De()) == null ? void 0 : n.getItem(e) : void 0;
440
418
  } catch (o) {
441
419
  console.debug("[LocalStorage] GET error: ", o);
442
420
  return;
443
421
  }
444
- }, Xt = ({
422
+ }, Yt = ({
445
423
  key: e,
446
424
  canTrack: t,
447
425
  value: n
448
426
  }) => {
449
427
  var o;
450
428
  try {
451
- t && ((o = Ue()) == null || o.setItem(e, n));
429
+ t && ((o = De()) == null || o.setItem(e, n));
452
430
  } catch (r) {
453
431
  console.debug("[LocalStorage] SET error: ", r);
454
432
  }
455
- }, Me = "builderVisitorId", Zt = ({
433
+ }, Le = "builderVisitorId", Xt = ({
456
434
  canTrack: e
457
435
  }) => {
458
436
  if (!e)
459
437
  return;
460
- const t = Qt({
461
- key: Me,
438
+ const t = Gt({
439
+ key: Le,
462
440
  canTrack: e
463
441
  });
464
- if (L(t))
442
+ if (D(t))
465
443
  return t;
466
444
  {
467
- const n = _t();
468
- return en({
445
+ const n = Qt();
446
+ return Zt({
469
447
  id: n,
470
448
  canTrack: e
471
449
  }), n;
472
450
  }
473
- }, _t = () => De(), en = ({
451
+ }, Qt = () => Fe(), Zt = ({
474
452
  id: e,
475
453
  canTrack: t
476
- }) => Xt({
477
- key: Me,
454
+ }) => Yt({
455
+ key: Le,
478
456
  value: e,
479
457
  canTrack: t
480
- }), tn = async ({
458
+ }), _t = async ({
481
459
  canTrack: e
482
460
  }) => {
483
461
  if (!e)
@@ -485,16 +463,16 @@ const Le = "builderSessionId", Jt = async ({
485
463
  visitorId: void 0,
486
464
  sessionId: void 0
487
465
  };
488
- const t = await Jt({
466
+ const t = await qt({
489
467
  canTrack: e
490
- }), n = Zt({
468
+ }), n = Xt({
491
469
  canTrack: e
492
470
  });
493
471
  return {
494
472
  sessionId: t,
495
473
  visitorId: n
496
474
  };
497
- }, nn = async ({
475
+ }, en = async ({
498
476
  type: e,
499
477
  canTrack: t,
500
478
  apiKey: n,
@@ -508,23 +486,23 @@ const Le = "builderSessionId", Jt = async ({
508
486
  url: location.href,
509
487
  ...o
510
488
  },
511
- ...await tn({
489
+ ...await _t({
512
490
  canTrack: t
513
491
  }),
514
- userAttributes: gt(),
492
+ userAttributes: mt(),
515
493
  ownerId: n
516
494
  }
517
495
  });
518
- async function de(e) {
496
+ async function ae(e) {
519
497
  if (!e.apiKey) {
520
- P.error("Missing API key for track call. Please provide your API key.");
498
+ B.error("Missing API key for track call. Please provide your API key.");
521
499
  return;
522
500
  }
523
501
  if (e.canTrack && !R() && ($() || x === "reactNative"))
524
502
  return fetch("https://cdn.builder.io/api/v1/track", {
525
503
  method: "POST",
526
504
  body: JSON.stringify({
527
- events: [await nn(e)]
505
+ events: [await en(e)]
528
506
  }),
529
507
  headers: {
530
508
  "content-type": "application/json"
@@ -534,18 +512,18 @@ async function de(e) {
534
512
  console.error("Failed to track: ", t);
535
513
  });
536
514
  }
537
- const Pi = (e) => de({
515
+ const $i = (e) => ae({
538
516
  ...e,
539
517
  canTrack: !0
540
- }), on = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
541
- function je(e, t) {
518
+ }), tn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
519
+ function Ue(e, t) {
542
520
  if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
543
521
  return !1;
544
522
  const n = new URL(t.origin), o = n.hostname;
545
- return (e || on).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
523
+ return (e || tn).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
546
524
  }
547
- const rn = "2.0.21", sn = () => {
548
- Lt("insertMenu", {
525
+ const nn = "2.0.23", on = () => {
526
+ Ot("insertMenu", {
549
527
  name: "_default",
550
528
  default: !0,
551
529
  items: [{
@@ -567,14 +545,14 @@ const rn = "2.0.21", sn = () => {
567
545
  }]
568
546
  });
569
547
  };
570
- let we = !1;
571
- const He = (e = {}) => {
548
+ let Se = !1;
549
+ const Me = (e = {}) => {
572
550
  var t, n;
573
- we || (we = !0, $() && ((t = window.parent) == null || t.postMessage({
551
+ Se || (Se = !0, $() && ((t = window.parent) == null || t.postMessage({
574
552
  type: "builder.sdkInfo",
575
553
  data: {
576
554
  target: x,
577
- version: rn,
555
+ version: nn,
578
556
  supportsPatchUpdates: !1,
579
557
  // Supports builder-model="..." attribute which is needed to
580
558
  // scope our '+ add block' button styling
@@ -588,7 +566,7 @@ const He = (e = {}) => {
588
566
  }
589
567
  }, "*"), window.addEventListener("message", (o) => {
590
568
  var s, i;
591
- if (!je(e.trustedHosts, o))
569
+ if (!Ue(e.trustedHosts, o))
592
570
  return;
593
571
  const {
594
572
  data: r
@@ -629,12 +607,12 @@ const He = (e = {}) => {
629
607
  }
630
608
  }
631
609
  })));
632
- }, Ke = ({
610
+ }, je = ({
633
611
  model: e,
634
612
  trustedHosts: t,
635
613
  callbacks: n
636
614
  }) => (o) => {
637
- if (!je(t, o))
615
+ if (!Ue(t, o))
638
616
  return;
639
617
  const {
640
618
  data: r
@@ -655,12 +633,12 @@ const He = (e = {}) => {
655
633
  break;
656
634
  }
657
635
  }
658
- }, xi = (e, t, n) => {
636
+ }, Ri = (e, t, n) => {
659
637
  if (!$)
660
- return P.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
638
+ return B.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
661
639
  };
662
- He();
663
- const o = Ke({
640
+ Me();
641
+ const o = je({
664
642
  callbacks: {
665
643
  contentUpdate: t,
666
644
  animation: () => {
@@ -674,24 +652,24 @@ const He = (e = {}) => {
674
652
  return window.addEventListener("message", o), () => {
675
653
  window.removeEventListener("message", o);
676
654
  };
677
- }, an = "builder.tests", he = (e) => `${an}.${e}`, ln = ({
655
+ }, rn = "builder.tests", ue = (e) => `${rn}.${e}`, sn = ({
678
656
  contentId: e
679
- }) => Fe({
680
- name: he(e),
657
+ }) => We({
658
+ name: ue(e),
681
659
  canTrack: !0
682
- }), cn = ({
660
+ }), an = ({
683
661
  contentId: e
684
- }) => Ne({
685
- name: he(e),
662
+ }) => Ve({
663
+ name: ue(e),
686
664
  canTrack: !0
687
- }), dn = ({
665
+ }), ln = ({
688
666
  contentId: e,
689
667
  value: t
690
- }) => Oe({
691
- name: he(e),
668
+ }) => Ne({
669
+ name: ue(e),
692
670
  value: t,
693
671
  canTrack: !0
694
- }), qe = (e) => L(e.id) && L(e.variations) && Object.keys(e.variations).length > 0, un = ({
672
+ }), He = (e) => D(e.id) && D(e.variations) && Object.keys(e.variations).length > 0, cn = ({
695
673
  id: e,
696
674
  variations: t
697
675
  }) => {
@@ -704,15 +682,15 @@ const He = (e = {}) => {
704
682
  return s;
705
683
  }
706
684
  return e;
707
- }, ze = (e) => {
708
- const t = un(e);
709
- return dn({
685
+ }, Ke = (e) => {
686
+ const t = cn(e);
687
+ return ln({
710
688
  contentId: e.id,
711
689
  value: t
712
690
  }).catch((n) => {
713
- P.error("could not store A/B test variation: ", n);
691
+ B.error("could not store A/B test variation: ", n);
714
692
  }), t;
715
- }, Je = ({
693
+ }, qe = ({
716
694
  item: e,
717
695
  testGroupId: t
718
696
  }) => {
@@ -726,7 +704,7 @@ const He = (e = {}) => {
726
704
  testVariationId: n.id,
727
705
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
728
706
  };
729
- }, pn = ({
707
+ }, dn = ({
730
708
  item: e,
731
709
  canTrack: t
732
710
  }) => {
@@ -734,14 +712,14 @@ const He = (e = {}) => {
734
712
  return e;
735
713
  if (!e)
736
714
  return;
737
- if (!qe(e))
715
+ if (!He(e))
738
716
  return e;
739
- const n = cn({
717
+ const n = an({
740
718
  contentId: e.id
741
- }) || ze({
719
+ }) || Ke({
742
720
  variations: e.variations,
743
721
  id: e.id
744
- }), o = Je({
722
+ }), o = qe({
745
723
  item: e,
746
724
  testGroupId: n
747
725
  });
@@ -749,18 +727,18 @@ const He = (e = {}) => {
749
727
  ...e,
750
728
  ...o
751
729
  };
752
- }, mn = async ({
730
+ }, un = async ({
753
731
  item: e,
754
732
  canTrack: t
755
733
  }) => {
756
- if (!t || !qe(e))
734
+ if (!t || !He(e))
757
735
  return e;
758
- const o = await ln({
736
+ const o = await sn({
759
737
  contentId: e.id
760
- }) || ze({
738
+ }) || Ke({
761
739
  variations: e.variations,
762
740
  id: e.id
763
- }), r = Je({
741
+ }), r = qe({
764
742
  item: e,
765
743
  testGroupId: o
766
744
  });
@@ -768,38 +746,38 @@ const He = (e = {}) => {
768
746
  ...e,
769
747
  ...r
770
748
  };
771
- }, G = (e) => L(e) ? e : !0;
772
- function hn() {
749
+ }, z = (e) => D(e) ? e : !0;
750
+ function pn() {
773
751
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
774
752
  }
775
- function fn() {
776
- const e = hn().fetch;
753
+ function mn() {
754
+ const e = pn().fetch;
777
755
  if (typeof e > "u")
778
756
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
779
757
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
780
758
  return e;
781
759
  }
782
- const bn = fn();
783
- function ue(e, t = null, n = ".") {
760
+ const hn = mn();
761
+ function le(e, t = null, n = ".") {
784
762
  return Object.keys(e).reduce((o, r) => {
785
763
  const s = e[r], i = [t, r].filter(Boolean).join(n);
786
764
  return [typeof s == "object", s !== null, !(Array.isArray(s) && s.length === 0)].every(Boolean) ? {
787
765
  ...o,
788
- ...ue(s, i, n)
766
+ ...le(s, i, n)
789
767
  } : {
790
768
  ...o,
791
769
  [i]: s
792
770
  };
793
771
  }, {});
794
772
  }
795
- function Ge(e, t, n = {}) {
773
+ function ze(e, t, n = {}) {
796
774
  for (const o in e) {
797
775
  const r = e[o], s = t ? t + "." + o : o;
798
- r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((i) => i.startsWith("$")) ? Ge(r, s, n) : n[s] = r;
776
+ r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((i) => i.startsWith("$")) ? ze(r, s, n) : n[s] = r;
799
777
  }
800
778
  return n;
801
779
  }
802
- const gn = "v3", Ie = (e) => typeof e == "number" && !isNaN(e) && e >= 0, fe = (e) => {
780
+ const fn = "v3", Ce = (e) => typeof e == "number" && !isNaN(e) && e >= 0, pe = (e) => {
803
781
  const {
804
782
  limit: t = 30,
805
783
  userAttributes: n,
@@ -808,82 +786,82 @@ const gn = "v3", Ie = (e) => typeof e == "number" && !isNaN(e) && e >= 0, fe = (
808
786
  apiKey: s,
809
787
  enrich: i,
810
788
  locale: l,
811
- apiVersion: a = gn,
789
+ apiVersion: a = fn,
812
790
  fields: u,
813
791
  omit: h,
814
792
  offset: d,
815
793
  cacheSeconds: p,
816
794
  staleCacheSeconds: k,
817
795
  sort: v,
818
- includeUnpublished: F
796
+ includeUnpublished: N
819
797
  } = e;
820
798
  if (!s)
821
799
  throw new Error("Missing API key");
822
800
  if (!["v3"].includes(a))
823
801
  throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
824
- const X = t !== 1, w = new URL(`https://cdn.builder.io/api/${a}/content/${r}`);
825
- if (w.searchParams.set("apiKey", s), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(X)), w.searchParams.set("includeRefs", String(!0)), l && w.searchParams.set("locale", l), i && w.searchParams.set("enrich", String(i)), w.searchParams.set("omit", h || "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(d) && d > -1 && w.searchParams.set("offset", String(Math.floor(d))), typeof F == "boolean" && w.searchParams.set("includeUnpublished", String(F)), p && Ie(p) && w.searchParams.set("cacheSeconds", String(p)), k && Ie(k) && w.searchParams.set("staleCacheSeconds", String(k)), v) {
826
- const O = ue({
802
+ const Y = t !== 1, w = new URL(`https://cdn.builder.io/api/${a}/content/${r}`);
803
+ if (w.searchParams.set("apiKey", s), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(Y)), w.searchParams.set("includeRefs", String(!0)), l && w.searchParams.set("locale", l), i && w.searchParams.set("enrich", String(i)), w.searchParams.set("omit", h || "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(d) && d > -1 && w.searchParams.set("offset", String(Math.floor(d))), typeof N == "boolean" && w.searchParams.set("includeUnpublished", String(N)), p && Ce(p) && w.searchParams.set("cacheSeconds", String(p)), k && Ce(k) && w.searchParams.set("staleCacheSeconds", String(k)), v) {
804
+ const F = le({
827
805
  sort: v
828
806
  });
829
- for (const j in O)
830
- w.searchParams.set(j, JSON.stringify(O[j]));
807
+ for (const U in F)
808
+ w.searchParams.set(U, JSON.stringify(F[U]));
831
809
  }
832
- const it = {
833
- ...Mt(),
834
- ...Ve(e.options || {})
835
- }, ve = ue(it);
836
- for (const O in ve)
837
- w.searchParams.set(O, String(ve[O]));
810
+ const ot = {
811
+ ...Lt(),
812
+ ...Pe(e.options || {})
813
+ }, ge = le(ot);
814
+ for (const F in ge)
815
+ w.searchParams.set(F, String(ge[F]));
838
816
  if (n && w.searchParams.set("userAttributes", JSON.stringify(n)), o) {
839
- const O = Ge({
817
+ const F = ze({
840
818
  query: o
841
819
  });
842
- for (const j in O)
843
- w.searchParams.set(j, JSON.stringify(O[j]));
820
+ for (const U in F)
821
+ w.searchParams.set(U, JSON.stringify(F[U]));
844
822
  }
845
823
  return w;
846
- }, yn = (e) => "results" in e;
847
- async function be(e) {
848
- const t = await Sn({
824
+ }, bn = (e) => "results" in e;
825
+ async function me(e) {
826
+ const t = await kn({
849
827
  ...e,
850
828
  limit: 1
851
829
  });
852
830
  return t && t[0] || null;
853
831
  }
854
- const kn = async (e) => {
855
- const t = fe(e);
856
- return await (await (e.fetch ?? bn)(t.href, e.fetchOptions)).json();
857
- }, vn = async (e, t, n = fe(e)) => {
858
- const o = G(e.canTrack);
832
+ const gn = async (e) => {
833
+ const t = pe(e);
834
+ return await (await (e.fetch ?? hn)(t.href, e.fetchOptions)).json();
835
+ }, yn = async (e, t, n = pe(e)) => {
836
+ const o = z(e.canTrack);
859
837
  if (n.search.includes("preview="), !o || !($() || x === "reactNative"))
860
838
  return t.results;
861
839
  try {
862
840
  const r = [];
863
841
  for (const s of t.results)
864
- r.push(await mn({
842
+ r.push(await un({
865
843
  item: s,
866
844
  canTrack: o
867
845
  }));
868
846
  t.results = r;
869
847
  } catch (r) {
870
- P.error("Could not process A/B tests. ", r);
848
+ B.error("Could not process A/B tests. ", r);
871
849
  }
872
850
  return t.results;
873
851
  };
874
- async function Sn(e) {
852
+ async function kn(e) {
875
853
  try {
876
- const t = fe(e), n = await kn(e);
877
- return yn(n) ? vn(e, n) : (P.error("Error fetching data. ", {
854
+ const t = pe(e), n = await gn(e);
855
+ return bn(n) ? yn(e, n) : (B.error("Error fetching data. ", {
878
856
  url: t,
879
857
  content: n,
880
858
  options: e
881
859
  }), null);
882
860
  } catch (t) {
883
- return P.error("Error fetching data. ", t), null;
861
+ return B.error("Error fetching data. ", t), null;
884
862
  }
885
863
  }
886
- const Vi = async (e) => {
864
+ const Ei = async (e) => {
887
865
  var o, r, s;
888
866
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
889
867
  ...e,
@@ -895,15 +873,15 @@ const Vi = async (e) => {
895
873
  urlPath: t
896
874
  } : {}
897
875
  },
898
- options: We(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
876
+ options: Ae(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
899
877
  };
900
878
  return {
901
879
  apiKey: n.apiKey,
902
880
  model: n.model,
903
- content: await be(n)
881
+ content: await me(n)
904
882
  };
905
- }, ge = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
906
- function Cn(e, t, n = {}) {
883
+ }, he = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
884
+ function vn(e, t, n = {}) {
907
885
  let o, r, s, i = null, l = 0;
908
886
  const a = function() {
909
887
  l = n.leading === !1 ? 0 : Date.now(), i = null, s = e.apply(o, r), i || (o = r = null);
@@ -915,7 +893,7 @@ function Cn(e, t, n = {}) {
915
893
  return o = this, r = arguments, h <= 0 || h > t ? (i && (clearTimeout(i), i = null), l = u, s = e.apply(o, r), i || (o = r = null)) : !i && n.trailing !== !1 && (i = setTimeout(a, h)), s;
916
894
  };
917
895
  }
918
- function q(e, ...t) {
896
+ function H(e, ...t) {
919
897
  const n = Object(e);
920
898
  for (let o = 1; o < arguments.length; o++) {
921
899
  const r = arguments[o];
@@ -925,64 +903,64 @@ function q(e, ...t) {
925
903
  }
926
904
  return n;
927
905
  }
928
- function Tn(e) {
906
+ function Sn(e) {
929
907
  for (const t of e)
930
908
  switch (t.trigger) {
931
909
  case "pageLoad":
932
- Xe(t);
910
+ Ye(t);
933
911
  break;
934
912
  case "scrollInView":
935
- In(t);
913
+ Tn(t);
936
914
  break;
937
915
  }
938
916
  }
939
- function Ye(e) {
917
+ function Je(e) {
940
918
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
941
919
  }
942
- function Qe(e, t) {
943
- const n = wn(e), o = getComputedStyle(t), r = e.steps[0].styles, s = e.steps[e.steps.length - 1].styles, i = [r, s];
920
+ function Ge(e, t) {
921
+ const n = Cn(e), o = getComputedStyle(t), r = e.steps[0].styles, s = e.steps[e.steps.length - 1].styles, i = [r, s];
944
922
  for (const l of i)
945
923
  for (const a of n)
946
924
  a in l || (l[a] = o[a]);
947
925
  }
948
- function wn(e) {
926
+ function Cn(e) {
949
927
  const t = [];
950
928
  for (const n of e.steps)
951
929
  for (const o in n.styles)
952
930
  t.indexOf(o) === -1 && t.push(o);
953
931
  return t;
954
932
  }
955
- function Xe(e) {
933
+ function Ye(e) {
956
934
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
957
935
  if (!t.length) {
958
- Ye(e.elementId || e.id || "");
936
+ Je(e.elementId || e.id || "");
959
937
  return;
960
938
  }
961
939
  Array.from(t).forEach((n) => {
962
- Qe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
963
- n.style.transition = `all ${e.duration}s ${ge(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), q(n.style, e.steps[1].styles), setTimeout(() => {
940
+ Ge(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
941
+ n.style.transition = `all ${e.duration}s ${he(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
964
942
  n.style.transition = "", n.style.transitionDelay = "";
965
943
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
966
944
  });
967
945
  });
968
946
  }
969
- function In(e) {
947
+ function Tn(e) {
970
948
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
971
949
  if (!t.length) {
972
- Ye(e.elementId || e.id || "");
950
+ Je(e.elementId || e.id || "");
973
951
  return;
974
952
  }
975
953
  Array.from(t).forEach((n) => {
976
- Qe(e, n);
954
+ Ge(e, n);
977
955
  let o = !1, r = !1;
978
956
  function s() {
979
957
  !o && l(n) ? (o = !0, r = !0, setTimeout(() => {
980
- q(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", i), setTimeout(() => {
958
+ H(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", i), setTimeout(() => {
981
959
  r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
982
960
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
983
- })) : e.repeat && o && !r && !l(n) && (o = !1, q(n.style, e.steps[0].styles));
961
+ })) : e.repeat && o && !r && !l(n) && (o = !1, H(n.style, e.steps[0].styles));
984
962
  }
985
- const i = Cn(s, 200, {
963
+ const i = vn(s, 200, {
986
964
  leading: !1
987
965
  });
988
966
  function l(h) {
@@ -991,52 +969,52 @@ function In(e) {
991
969
  }
992
970
  const a = e.steps[0].styles;
993
971
  function u() {
994
- q(n.style, a);
972
+ H(n.style, a);
995
973
  }
996
974
  u(), setTimeout(() => {
997
- n.style.transition = `all ${e.duration}s ${ge(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
975
+ n.style.transition = `all ${e.duration}s ${he(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
998
976
  }), document.addEventListener("scroll", i, {
999
977
  capture: !0,
1000
978
  passive: !0
1001
979
  }), s();
1002
980
  });
1003
981
  }
1004
- const Ze = (e) => Object.entries(e).map(([n, o]) => {
982
+ const Xe = (e) => Object.entries(e).map(([n, o]) => {
1005
983
  if (typeof o == "string")
1006
- return `${ge(n)}: ${o};`;
1007
- }).filter(L), $n = (e) => Ze(e).join(`
1008
- `), Ai = ({
984
+ return `${he(n)}: ${o};`;
985
+ }).filter(D), wn = (e) => Xe(e).join(`
986
+ `), Pi = ({
1009
987
  mediaQuery: e,
1010
988
  className: t,
1011
989
  styles: n
1012
990
  }) => {
1013
991
  const o = `.${t} {
1014
- ${$n(n)}
992
+ ${wn(n)}
1015
993
  }`;
1016
994
  return e ? `${e} {
1017
995
  ${o}
1018
996
  }` : o;
1019
997
  };
1020
- function Rn({
998
+ function In({
1021
999
  style: e
1022
1000
  }) {
1023
1001
  return e;
1024
1002
  }
1025
- const Wi = ({
1003
+ const Bi = ({
1026
1004
  block: e,
1027
1005
  context: t
1028
- }) => _e(Rn({
1006
+ }) => Qe(In({
1029
1007
  style: e.style || {},
1030
1008
  context: t,
1031
1009
  block: e
1032
1010
  }));
1033
- function _e(e) {
1011
+ function Qe(e) {
1034
1012
  switch (x) {
1035
1013
  case "svelte":
1036
1014
  case "vue":
1037
1015
  case "solid":
1038
1016
  case "angular":
1039
- return Ze(e).join(" ");
1017
+ return Xe(e).join(" ");
1040
1018
  case "qwik":
1041
1019
  case "reactNative":
1042
1020
  case "react":
@@ -1044,7 +1022,7 @@ function _e(e) {
1044
1022
  return e;
1045
1023
  }
1046
1024
  }
1047
- const Bn = ({
1025
+ const $n = ({
1048
1026
  block: e,
1049
1027
  registeredComponents: t
1050
1028
  }) => {
@@ -1058,7 +1036,7 @@ const Bn = ({
1058
1036
  console.warn(`
1059
1037
  Could not find a registered component named "${n}".
1060
1038
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
1061
- }, En = ({
1039
+ }, Rn = ({
1062
1040
  block: e,
1063
1041
  context: t
1064
1042
  }) => {
@@ -1068,13 +1046,12 @@ const Bn = ({
1068
1046
  } = e;
1069
1047
  if (!(n != null && n.collection))
1070
1048
  return;
1071
- const r = Y({
1049
+ const r = J({
1072
1050
  code: n.collection,
1073
1051
  localState: t.localState,
1074
1052
  rootState: t.rootState,
1075
1053
  rootSetState: t.rootSetState,
1076
- context: t.context,
1077
- enableCache: !0
1054
+ context: t.context
1078
1055
  });
1079
1056
  if (!Array.isArray(r))
1080
1057
  return;
@@ -1092,59 +1069,59 @@ const Bn = ({
1092
1069
  },
1093
1070
  block: o
1094
1071
  }));
1095
- }, Pn = (e, t) => {
1072
+ }, En = (e, t) => {
1096
1073
  var n;
1097
1074
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
1098
1075
  builderLinkComponent: t
1099
1076
  } : {};
1100
- }, xn = (e, t) => {
1077
+ }, Pn = (e, t) => {
1101
1078
  var n;
1102
1079
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
1103
1080
  builderComponents: t
1104
1081
  } : {};
1105
- }, Vn = (e, t) => {
1082
+ }, Bn = (e, t) => {
1106
1083
  var n;
1107
1084
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
1108
1085
  builderBlock: t
1109
1086
  } : {};
1110
- }, An = (e, t) => {
1087
+ }, xn = (e, t) => {
1111
1088
  var n;
1112
1089
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
1113
1090
  builderContext: t
1114
1091
  } : {};
1115
- }, Wn = () => Promise.resolve().then(() => Gn).then((e) => e.default).catch((e) => {
1092
+ }, An = () => Promise.resolve().then(() => zn).then((e) => e.default).catch((e) => {
1116
1093
  throw console.error(
1117
1094
  "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
1118
1095
  e
1119
1096
  ), e;
1120
- }), Nn = () => import("./block-styles-y32fRgui.js").then((e) => e.default).catch((e) => {
1097
+ }), Vn = () => import("./block-styles-VnxJDeth.js").then((e) => e.default).catch((e) => {
1121
1098
  throw console.error(
1122
1099
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
1123
1100
  e
1124
1101
  ), e;
1125
- }), Fn = () => import("./block-wrapper-Gb1-_hO0.js").then((e) => e.default).catch((e) => {
1102
+ }), Wn = () => import("./block-wrapper-0QkyDUi8.js").then((e) => e.default).catch((e) => {
1126
1103
  throw console.error(
1127
1104
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
1128
1105
  e
1129
1106
  ), e;
1130
- }), On = () => import("./component-ref-9ri0cWhO.js").then((e) => e.default).catch((e) => {
1107
+ }), Nn = () => import("./component-ref-ykrv8SqH.js").then((e) => e.default).catch((e) => {
1131
1108
  throw console.error(
1132
1109
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
1133
1110
  e
1134
1111
  ), e;
1135
- }), Dn = () => import("./repeated-block-xs28_Dw4.js").then((e) => e.default).catch((e) => {
1112
+ }), Fn = () => import("./repeated-block-3sBOF_Jy.js").then((e) => e.default).catch((e) => {
1136
1113
  throw console.error(
1137
1114
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
1138
1115
  e
1139
1116
  ), e;
1140
- }), Ln = f({
1117
+ }), On = f({
1141
1118
  name: "block",
1142
1119
  components: {
1143
- BlockStyles: H(Nn),
1144
- RepeatedBlock: H(Dn),
1145
- ComponentRef: H(On),
1146
- BlockWrapper: H(Fn),
1147
- DynamicDiv: H(Wn)
1120
+ BlockStyles: M(Vn),
1121
+ RepeatedBlock: M(Fn),
1122
+ ComponentRef: M(Nn),
1123
+ BlockWrapper: M(Wn),
1124
+ DynamicDiv: M(An)
1148
1125
  },
1149
1126
  props: ["block", "context", "registeredComponents", "linkComponent"],
1150
1127
  data() {
@@ -1157,7 +1134,7 @@ const Bn = ({
1157
1134
  },
1158
1135
  mounted() {
1159
1136
  const e = this.processedBlock.id, t = this.processedBlock.animations;
1160
- t && e && Tn(
1137
+ t && e && Sn(
1161
1138
  t.map((n) => ({
1162
1139
  ...n,
1163
1140
  elementId: e
@@ -1168,14 +1145,14 @@ const Bn = ({
1168
1145
  },
1169
1146
  computed: {
1170
1147
  repeatItem() {
1171
- return En({
1148
+ return Rn({
1172
1149
  block: this.block,
1173
1150
  context: this.context
1174
1151
  });
1175
1152
  },
1176
1153
  processedBlock() {
1177
1154
  var t;
1178
- return (t = this.block.repeat) != null && t.collection ? this.block : Nt({
1155
+ return (t = this.block.repeat) != null && t.collection ? this.block : Vt({
1179
1156
  block: this.block,
1180
1157
  localState: this.context.localState,
1181
1158
  rootState: this.context.rootState,
@@ -1185,7 +1162,7 @@ const Bn = ({
1185
1162
  });
1186
1163
  },
1187
1164
  blockComponent() {
1188
- return Bn({
1165
+ return $n({
1189
1166
  block: this.processedBlock,
1190
1167
  registeredComponents: this.registeredComponents
1191
1168
  });
@@ -1211,11 +1188,11 @@ const Bn = ({
1211
1188
  blockChildren: this.processedBlock.children ?? [],
1212
1189
  componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
1213
1190
  componentOptions: {
1214
- ...Rt(this.processedBlock),
1215
- ...Vn(this.blockComponent, this.processedBlock),
1216
- ...An(this.blockComponent, this.context),
1217
- ...Pn(this.blockComponent, this.linkComponent),
1218
- ...xn(
1191
+ ...Tt(this.processedBlock),
1192
+ ...Bn(this.blockComponent, this.processedBlock),
1193
+ ...xn(this.blockComponent, this.context),
1194
+ ...En(this.blockComponent, this.linkComponent),
1195
+ ...Pn(
1219
1196
  this.blockComponent,
1220
1197
  this.registeredComponents
1221
1198
  )
@@ -1230,7 +1207,7 @@ const Bn = ({
1230
1207
  }
1231
1208
  }
1232
1209
  });
1233
- function Un(e, t, n, o, r, s) {
1210
+ function Dn(e, t, n, o, r, s) {
1234
1211
  var d;
1235
1212
  const i = y("BlockStyles"), l = y("ComponentRef"), a = y("Block", !0), u = y("BlockWrapper"), h = y("RepeatedBlock");
1236
1213
  return e.canShowBlock ? (c(), m(T, { key: 0 }, [
@@ -1239,7 +1216,7 @@ function Un(e, t, n, o, r, s) {
1239
1216
  context: e.context
1240
1217
  }, null, 8, ["block", "context"]),
1241
1218
  (d = e.blockComponent) != null && d.noWrap ? (c(), m(T, { key: 1 }, [
1242
- e.repeatItem ? (c(!0), m(T, { key: 1 }, V(e.repeatItem, (p, k) => (c(), g(h, {
1219
+ e.repeatItem ? (c(!0), m(T, { key: 1 }, A(e.repeatItem, (p, k) => (c(), g(h, {
1243
1220
  key: k,
1244
1221
  repeatContext: p.context,
1245
1222
  block: p.block,
@@ -1258,7 +1235,7 @@ function Un(e, t, n, o, r, s) {
1258
1235
  isInteractive: e.componentRefProps.isInteractive
1259
1236
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
1260
1237
  ], 64)) : (c(), m(T, { key: 0 }, [
1261
- e.repeatItem ? (c(!0), m(T, { key: 1 }, V(e.repeatItem, (p, k) => (c(), g(h, {
1238
+ e.repeatItem ? (c(!0), m(T, { key: 1 }, A(e.repeatItem, (p, k) => (c(), g(h, {
1262
1239
  key: k,
1263
1240
  repeatContext: p.context,
1264
1241
  block: p.block,
@@ -1270,7 +1247,7 @@ function Un(e, t, n, o, r, s) {
1270
1247
  block: e.processedBlock,
1271
1248
  context: e.context
1272
1249
  }, {
1273
- default: N(() => [
1250
+ default: W(() => [
1274
1251
  I(l, {
1275
1252
  componentRef: e.componentRefProps.componentRef,
1276
1253
  componentOptions: e.componentRefProps.componentOptions,
@@ -1282,7 +1259,7 @@ function Un(e, t, n, o, r, s) {
1282
1259
  includeBlockProps: e.componentRefProps.includeBlockProps,
1283
1260
  isInteractive: e.componentRefProps.isInteractive
1284
1261
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
1285
- (c(!0), m(T, null, V(e.childrenWithoutParentComponent, (p, k) => (c(), g(a, {
1262
+ (c(!0), m(T, null, A(e.childrenWithoutParentComponent, (p, k) => (c(), g(a, {
1286
1263
  key: p.id,
1287
1264
  block: p,
1288
1265
  registeredComponents: e.registeredComponents,
@@ -1295,10 +1272,10 @@ function Un(e, t, n, o, r, s) {
1295
1272
  ], 64))
1296
1273
  ], 64)) : S("", !0);
1297
1274
  }
1298
- const ye = /* @__PURE__ */ b(Ln, [["render", Un]]), Ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1275
+ const fe = /* @__PURE__ */ b(On, [["render", Dn]]), xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1299
1276
  __proto__: null,
1300
- default: ye
1301
- }, Symbol.toStringTag, { value: "Module" })), Mn = f({
1277
+ default: fe
1278
+ }, Symbol.toStringTag, { value: "Module" })), Ln = f({
1302
1279
  name: "builder-blocks-wrapper",
1303
1280
  props: [
1304
1281
  "blocks",
@@ -1345,8 +1322,8 @@ const ye = /* @__PURE__ */ b(Ln, [["render", Un]]), Ni = /* @__PURE__ */ Object.
1345
1322
  }
1346
1323
  }
1347
1324
  });
1348
- function jn(e, t, n, o, r, s) {
1349
- return c(), g(K(e.BlocksWrapper), C({
1325
+ function Un(e, t, n, o, r, s) {
1326
+ return c(), g(j(e.BlocksWrapper), C({
1350
1327
  ref: "blocksWrapperRef",
1351
1328
  class: e.className + " component-1k2igrjdg3x",
1352
1329
  "builder-path": e.path,
@@ -1356,15 +1333,15 @@ function jn(e, t, n, o, r, s) {
1356
1333
  onMouseEnter: (i) => e.onMouseEnter(),
1357
1334
  onKeyPress: (i) => e.onClick()
1358
1335
  }, { ...e.BlocksWrapperProps }), {
1359
- default: N(() => [
1360
- E(e.$slots, "default", {}, void 0, !0)
1336
+ default: W(() => [
1337
+ P(e.$slots, "default", {}, void 0, !0)
1361
1338
  ]),
1362
1339
  _: 3
1363
1340
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
1364
1341
  }
1365
- const Hn = /* @__PURE__ */ b(Mn, [["render", jn], ["__scopeId", "data-v-162df12b"]]), Kn = f({
1342
+ const Mn = /* @__PURE__ */ b(Ln, [["render", Un], ["__scopeId", "data-v-162df12b"]]), jn = f({
1366
1343
  name: "builder-blocks",
1367
- components: { BlocksWrapper: Hn, Block: ye },
1344
+ components: { BlocksWrapper: Mn, Block: fe },
1368
1345
  props: [
1369
1346
  "blocks",
1370
1347
  "parent",
@@ -1375,11 +1352,11 @@ const Hn = /* @__PURE__ */ b(Mn, [["render", jn], ["__scopeId", "data-v-162df12b
1375
1352
  "registeredComponents"
1376
1353
  ],
1377
1354
  inject: {
1378
- builderContext: le.key,
1379
- componentsContext: Ae.key
1355
+ builderContext: ie.key,
1356
+ componentsContext: Be.key
1380
1357
  }
1381
1358
  });
1382
- function qn(e, t, n, o, r, s) {
1359
+ function Hn(e, t, n, o, r, s) {
1383
1360
  var a, u;
1384
1361
  const i = y("Block"), l = y("BlocksWrapper");
1385
1362
  return c(), g(l, {
@@ -1390,8 +1367,8 @@ function qn(e, t, n, o, r, s) {
1390
1367
  BlocksWrapper: ((a = e.context) == null ? void 0 : a.BlocksWrapper) || e.builderContext.BlocksWrapper,
1391
1368
  BlocksWrapperProps: ((u = e.context) == null ? void 0 : u.BlocksWrapperProps) || e.builderContext.BlocksWrapperProps
1392
1369
  }, {
1393
- default: N(() => [
1394
- e.blocks ? (c(!0), m(T, { key: 0 }, V(e.blocks, (h, d) => (c(), g(i, {
1370
+ default: W(() => [
1371
+ e.blocks ? (c(!0), m(T, { key: 0 }, A(e.blocks, (h, d) => (c(), g(i, {
1395
1372
  key: h.id,
1396
1373
  block: h,
1397
1374
  linkComponent: e.linkComponent,
@@ -1402,21 +1379,21 @@ function qn(e, t, n, o, r, s) {
1402
1379
  _: 1
1403
1380
  }, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
1404
1381
  }
1405
- const M = /* @__PURE__ */ b(Kn, [["render", qn]]), zn = f({
1382
+ const L = /* @__PURE__ */ b(jn, [["render", Hn]]), Kn = f({
1406
1383
  name: "dynamic-div",
1407
1384
  props: []
1408
1385
  });
1409
- function Jn(e, t, n, o, r, s) {
1386
+ function qn(e, t, n, o, r, s) {
1410
1387
  return c(), m("div", null, [
1411
- E(e.$slots, "default")
1388
+ P(e.$slots, "default")
1412
1389
  ]);
1413
1390
  }
1414
- const Q = /* @__PURE__ */ b(zn, [["render", Jn]]), Gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1391
+ const G = /* @__PURE__ */ b(Kn, [["render", qn]]), zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1415
1392
  __proto__: null,
1416
- default: Q
1417
- }, Symbol.toStringTag, { value: "Module" })), ke = f({
1393
+ default: G
1394
+ }, Symbol.toStringTag, { value: "Module" })), be = f({
1418
1395
  render() {
1419
- return Pe("style", {
1396
+ return Re("style", {
1420
1397
  innerHTML: this.styles,
1421
1398
  "data-id": this.id,
1422
1399
  nonce: this.nonce
@@ -1424,7 +1401,7 @@ const Q = /* @__PURE__ */ b(zn, [["render", Jn]]), Gn = /* @__PURE__ */ Object.f
1424
1401
  },
1425
1402
  name: "inlined-styles",
1426
1403
  props: ["styles", "id", "nonce"]
1427
- }), et = {
1404
+ }), Ze = {
1428
1405
  small: {
1429
1406
  min: 320,
1430
1407
  default: 321,
@@ -1440,11 +1417,11 @@ const Q = /* @__PURE__ */ b(zn, [["render", Jn]]), Gn = /* @__PURE__ */ Object.f
1440
1417
  default: 991,
1441
1418
  max: 1200
1442
1419
  }
1443
- }, Fi = (e, t = et) => `@media (max-width: ${t[e].max}px)`, Yn = ({
1420
+ }, Ai = (e, t = Ze) => `@media (max-width: ${t[e].max}px)`, Jn = ({
1444
1421
  small: e,
1445
1422
  medium: t
1446
1423
  }) => {
1447
- const n = pe(et);
1424
+ const n = ce(Ze);
1448
1425
  if (!e || !t)
1449
1426
  return n;
1450
1427
  const o = Math.floor(e / 2);
@@ -1466,13 +1443,13 @@ const Q = /* @__PURE__ */ b(zn, [["render", Jn]]), Gn = /* @__PURE__ */ Object.f
1466
1443
  min: s,
1467
1444
  default: s + 1
1468
1445
  }, n;
1469
- }, Qn = (e) => `builder-columns ${e}-breakpoints`, Xn = f({
1446
+ }, Gn = (e) => `builder-columns ${e}-breakpoints`, Yn = f({
1470
1447
  name: "builder-columns",
1471
1448
  components: {
1472
- InlinedStyles: ke,
1473
- DynamicRenderer: me,
1474
- Blocks: M,
1475
- DynamicDiv: Q
1449
+ InlinedStyles: be,
1450
+ DynamicRenderer: de,
1451
+ Blocks: L,
1452
+ DynamicDiv: G
1476
1453
  },
1477
1454
  props: [
1478
1455
  "space",
@@ -1491,7 +1468,7 @@ const Q = /* @__PURE__ */ b(zn, [["render", Jn]]), Gn = /* @__PURE__ */ Object.f
1491
1468
  stackAt: this.stackColumnsAt || "tablet",
1492
1469
  flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
1493
1470
  TARGET: x,
1494
- getColumnsClass: Qn
1471
+ getColumnsClass: Gn
1495
1472
  };
1496
1473
  },
1497
1474
  methods: {
@@ -1557,7 +1534,7 @@ const Q = /* @__PURE__ */ b(zn, [["render", Jn]]), Gn = /* @__PURE__ */ Object.f
1557
1534
  },
1558
1535
  getWidthForBreakpointSize(e) {
1559
1536
  var n, o;
1560
- return Yn(
1537
+ return Jn(
1561
1538
  ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
1562
1539
  )[e].max;
1563
1540
  },
@@ -1594,13 +1571,13 @@ const Q = /* @__PURE__ */ b(zn, [["render", Jn]]), Gn = /* @__PURE__ */ Object.f
1594
1571
  ...e.link ? {
1595
1572
  href: e.link
1596
1573
  } : {},
1597
- [_()]: "builder-column",
1598
- style: _e(this.columnCssVars(t))
1574
+ [Q()]: "builder-column",
1575
+ style: Qe(this.columnCssVars(t))
1599
1576
  };
1600
1577
  }
1601
1578
  }
1602
1579
  });
1603
- function Zn(e, t, n, o, r, s) {
1580
+ function Xn(e, t, n, o, r, s) {
1604
1581
  var u;
1605
1582
  const i = y("InlinedStyles"), l = y("Blocks"), a = y("DynamicRenderer");
1606
1583
  return c(), m("div", C({
@@ -1613,13 +1590,13 @@ function Zn(e, t, n, o, r, s) {
1613
1590
  styles: e.columnsStyles(),
1614
1591
  nonce: e.builderContext.nonce
1615
1592
  }, null, 8, ["styles", "nonce"])) : S("", !0),
1616
- (c(!0), m(T, null, V(e.columns, (h, d) => (c(), g(a, {
1593
+ (c(!0), m(T, null, A(e.columns, (h, d) => (c(), g(a, {
1617
1594
  key: d,
1618
1595
  TagName: e.getTagName(h),
1619
1596
  actionAttributes: {},
1620
1597
  attributes: e.getAttributes(h, d)
1621
1598
  }, {
1622
- default: N(() => [
1599
+ default: W(() => [
1623
1600
  I(l, {
1624
1601
  path: `component.options.columns.${d}.blocks`,
1625
1602
  parent: e.builderBlock.id,
@@ -1636,47 +1613,47 @@ function Zn(e, t, n, o, r, s) {
1636
1613
  }, 1032, ["TagName", "attributes"]))), 128))
1637
1614
  ], 16);
1638
1615
  }
1639
- const _n = /* @__PURE__ */ b(Xn, [["render", Zn], ["__scopeId", "data-v-adc066fc"]]), eo = f({
1616
+ const Qn = /* @__PURE__ */ b(Yn, [["render", Xn], ["__scopeId", "data-v-adc066fc"]]), Zn = f({
1640
1617
  name: "builder-fragment-component",
1641
1618
  props: []
1642
1619
  });
1643
- function to(e, t, n, o, r, s) {
1620
+ function _n(e, t, n, o, r, s) {
1644
1621
  return c(), m("span", null, [
1645
- E(e.$slots, "default")
1622
+ P(e.$slots, "default")
1646
1623
  ]);
1647
1624
  }
1648
- const no = /* @__PURE__ */ b(eo, [["render", to]]);
1649
- function $e(e) {
1625
+ const eo = /* @__PURE__ */ b(Zn, [["render", _n]]);
1626
+ function Te(e) {
1650
1627
  return e.replace(/http(s)?:/, "");
1651
1628
  }
1652
- function oo(e = "", t, n) {
1629
+ function to(e = "", t, n) {
1653
1630
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
1654
1631
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
1655
1632
  }
1656
- function ro(e, t) {
1633
+ function no(e, t) {
1657
1634
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1658
1635
  return e;
1659
1636
  if (t === "master")
1660
- return $e(e);
1637
+ return Te(e);
1661
1638
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1662
1639
  if (n) {
1663
1640
  const o = e.split(n[0]), r = n[3], s = t.match("x") ? t : `${t}x`;
1664
- return $e(`${o[0]}_${s}${r}`);
1641
+ return Te(`${o[0]}_${s}${r}`);
1665
1642
  }
1666
1643
  return null;
1667
1644
  }
1668
- function oe(e) {
1645
+ function ee(e) {
1669
1646
  if (!e)
1670
1647
  return e;
1671
1648
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1672
1649
  if (e.match(/builder\.io/)) {
1673
1650
  let n = e;
1674
1651
  const o = Number(e.split("?width=")[1]);
1675
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${oo(e, "width", r)} ${r}w`).concat([n]).join(", ");
1652
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${to(e, "width", r)} ${r}w`).concat([n]).join(", ");
1676
1653
  }
1677
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [ro(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1654
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [no(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1678
1655
  }
1679
- const io = f({
1656
+ const oo = f({
1680
1657
  name: "builder-image",
1681
1658
  props: [
1682
1659
  "image",
@@ -1706,10 +1683,10 @@ const io = f({
1706
1683
  if (!this.noWebp) {
1707
1684
  if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
1708
1685
  if (!this.srcset.includes(this.image.split("?")[0]))
1709
- return console.debug("Removed given srcset"), oe(t);
1686
+ return console.debug("Removed given srcset"), ee(t);
1710
1687
  } else if (this.image && !this.srcset)
1711
- return oe(t);
1712
- return oe(t);
1688
+ return ee(t);
1689
+ return ee(t);
1713
1690
  }
1714
1691
  },
1715
1692
  webpSrcSet() {
@@ -1727,58 +1704,58 @@ const io = f({
1727
1704
  return this.aspectRatio ? e : void 0;
1728
1705
  }
1729
1706
  }
1730
- }), so = ["srcset"], ao = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], lo = {
1707
+ }), ro = ["srcset"], io = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], so = {
1731
1708
  key: 2,
1732
1709
  class: "div-29wpyomtntv-2"
1733
1710
  };
1734
- function co(e, t, n, o, r, s) {
1711
+ function ao(e, t, n, o, r, s) {
1735
1712
  var i, l, a, u, h, d;
1736
1713
  return c(), m(T, null, [
1737
- z("picture", null, [
1714
+ K("picture", null, [
1738
1715
  e.webpSrcSet ? (c(), m("source", {
1739
1716
  key: 0,
1740
1717
  type: "image/webp",
1741
1718
  srcset: e.webpSrcSet
1742
- }, null, 8, so)) : S("", !0),
1743
- z("img", {
1719
+ }, null, 8, ro)) : S("", !0),
1720
+ K("img", {
1744
1721
  loading: e.highPriority ? "eager" : "lazy",
1745
1722
  fetchpriority: e.highPriority ? "high" : "auto",
1746
1723
  alt: e.altText,
1747
1724
  role: e.altText ? void 0 : "presentation",
1748
- style: D({
1725
+ style: O({
1749
1726
  objectPosition: e.backgroundPosition || "center",
1750
1727
  objectFit: e.backgroundSize || "cover",
1751
1728
  ...e.aspectRatioCss
1752
1729
  }),
1753
- class: J(
1730
+ class: q(
1754
1731
  "builder-image" + (e.className ? " " + e.className : "") + " img-29wpyomtntv"
1755
1732
  ),
1756
1733
  src: e.image,
1757
1734
  srcset: e.srcSetToUse,
1758
1735
  sizes: e.sizes
1759
- }, null, 14, ao)
1736
+ }, null, 14, io)
1760
1737
  ]),
1761
1738
  e.aspectRatio && !((l = (i = e.builderBlock) == null ? void 0 : i.children) != null && l.length && e.fitContent) ? (c(), m("div", {
1762
1739
  key: 0,
1763
1740
  class: "builder-image-sizer div-29wpyomtntv",
1764
- style: D({
1741
+ style: O({
1765
1742
  paddingTop: e.aspectRatio * 100 + "%"
1766
1743
  })
1767
1744
  }, null, 4)) : S("", !0),
1768
- (u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? E(e.$slots, "default", { key: 1 }, void 0, !0) : S("", !0),
1769
- !e.fitContent && ((d = (h = e.builderBlock) == null ? void 0 : h.children) != null && d.length) ? (c(), m("div", lo, [
1770
- E(e.$slots, "default", {}, void 0, !0)
1745
+ (u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? P(e.$slots, "default", { key: 1 }, void 0, !0) : S("", !0),
1746
+ !e.fitContent && ((d = (h = e.builderBlock) == null ? void 0 : h.children) != null && d.length) ? (c(), m("div", so, [
1747
+ P(e.$slots, "default", {}, void 0, !0)
1771
1748
  ])) : S("", !0)
1772
1749
  ], 64);
1773
1750
  }
1774
- const uo = /* @__PURE__ */ b(io, [["render", co], ["__scopeId", "data-v-77f8a6c4"]]), po = f({
1751
+ const lo = /* @__PURE__ */ b(oo, [["render", ao], ["__scopeId", "data-v-77f8a6c4"]]), co = f({
1775
1752
  name: "builder-section-component",
1776
1753
  props: ["attributes", "maxWidth"],
1777
1754
  data() {
1778
- return { filterAttrs: A };
1755
+ return { filterAttrs: V };
1779
1756
  }
1780
1757
  });
1781
- function mo(e, t, n, o, r, s) {
1758
+ function uo(e, t, n, o, r, s) {
1782
1759
  return c(), m("section", C({
1783
1760
  style: {
1784
1761
  width: "100%",
@@ -1792,11 +1769,11 @@ function mo(e, t, n, o, r, s) {
1792
1769
  marginLeft: "auto",
1793
1770
  marginRight: "auto"
1794
1771
  }
1795
- }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
1796
- E(e.$slots, "default")
1772
+ }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
1773
+ P(e.$slots, "default")
1797
1774
  ], 16);
1798
1775
  }
1799
- const ho = /* @__PURE__ */ b(po, [["render", mo]]), re = {
1776
+ const po = /* @__PURE__ */ b(co, [["render", uo]]), te = {
1800
1777
  "@type": "@builder.io/sdk:Element",
1801
1778
  layerName: "Accordion item title",
1802
1779
  responsiveStyles: {
@@ -1825,7 +1802,7 @@ const ho = /* @__PURE__ */ b(po, [["render", mo]]), re = {
1825
1802
  }
1826
1803
  }
1827
1804
  }]
1828
- }, ie = {
1805
+ }, ne = {
1829
1806
  "@type": "@builder.io/sdk:Element",
1830
1807
  layerName: "Accordion item detail",
1831
1808
  responsiveStyles: {
@@ -1856,7 +1833,7 @@ const ho = /* @__PURE__ */ b(po, [["render", mo]]), re = {
1856
1833
  }
1857
1834
  }
1858
1835
  }]
1859
- }, fo = {
1836
+ }, mo = {
1860
1837
  name: "Builder:Accordion",
1861
1838
  canHaveChildren: !0,
1862
1839
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1873,19 +1850,19 @@ const ho = /* @__PURE__ */ b(po, [["render", mo]]), re = {
1873
1850
  name: "title",
1874
1851
  type: "uiBlocks",
1875
1852
  hideFromUI: !0,
1876
- defaultValue: [re]
1853
+ defaultValue: [te]
1877
1854
  }, {
1878
1855
  name: "detail",
1879
1856
  type: "uiBlocks",
1880
1857
  hideFromUI: !0,
1881
- defaultValue: [ie]
1858
+ defaultValue: [ne]
1882
1859
  }],
1883
1860
  defaultValue: [{
1884
- title: [re],
1885
- detail: [ie]
1861
+ title: [te],
1862
+ detail: [ne]
1886
1863
  }, {
1887
- title: [re],
1888
- detail: [ie]
1864
+ title: [te],
1865
+ detail: [ne]
1889
1866
  }],
1890
1867
  showIf: (e) => !e.get("useChildrenForItems")
1891
1868
  }, {
@@ -1920,9 +1897,9 @@ const ho = /* @__PURE__ */ b(po, [["render", mo]]), re = {
1920
1897
  builderComponents: !0,
1921
1898
  builderLinkComponent: !0
1922
1899
  }
1923
- }, bo = (e) => e.toString(), go = f({
1900
+ }, ho = (e) => e.toString(), fo = f({
1924
1901
  name: "builder-accordion",
1925
- components: { Blocks: M },
1902
+ components: { Blocks: L },
1926
1903
  props: [
1927
1904
  "grid",
1928
1905
  "oneAtATime",
@@ -1934,7 +1911,7 @@ const ho = /* @__PURE__ */ b(po, [["render", mo]]), re = {
1934
1911
  "builderLinkComponent"
1935
1912
  ],
1936
1913
  data() {
1937
- return { open: [], convertOrderNumberToString: bo };
1914
+ return { open: [], convertOrderNumberToString: ho };
1938
1915
  },
1939
1916
  computed: {
1940
1917
  onlyOneAtATime() {
@@ -2015,17 +1992,17 @@ const ho = /* @__PURE__ */ b(po, [["render", mo]]), re = {
2015
1992
  this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
2016
1993
  }
2017
1994
  }
2018
- }), yo = ["data-index", "onClick"];
2019
- function ko(e, t, n, o, r, s) {
1995
+ }), bo = ["data-index", "onClick"];
1996
+ function go(e, t, n, o, r, s) {
2020
1997
  const i = y("Blocks");
2021
1998
  return c(), m("div", {
2022
1999
  class: "builder-accordion",
2023
- style: D(e.accordionStyles)
2000
+ style: O(e.accordionStyles)
2024
2001
  }, [
2025
- (c(!0), m(T, null, V(e.items, (l, a) => (c(), m(T, { key: a }, [
2026
- z("div", {
2027
- class: J(e.getAccordionTitleClassName(a)),
2028
- style: D({
2002
+ (c(!0), m(T, null, A(e.items, (l, a) => (c(), m(T, { key: a }, [
2003
+ K("div", {
2004
+ class: q(e.getAccordionTitleClassName(a)),
2005
+ style: O({
2029
2006
  ...e.accordionTitleStyles,
2030
2007
  width: e.grid ? e.gridRowWidth : void 0,
2031
2008
  order: e.openGridItemOrder !== null ? e.convertOrderNumberToString(a) : e.convertOrderNumberToString(a + 1)
@@ -2041,11 +2018,11 @@ function ko(e, t, n, o, r, s) {
2041
2018
  registeredComponents: e.builderComponents,
2042
2019
  linkComponent: e.builderLinkComponent
2043
2020
  }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
2044
- ], 14, yo),
2021
+ ], 14, bo),
2045
2022
  e.open.includes(a) ? (c(), m("div", {
2046
2023
  key: 0,
2047
- class: J(e.getAccordionDetailClassName(a)),
2048
- style: D(e.accordionDetailStyles)
2024
+ class: q(e.getAccordionDetailClassName(a)),
2025
+ style: O(e.accordionDetailStyles)
2049
2026
  }, [
2050
2027
  I(i, {
2051
2028
  blocks: l.detail,
@@ -2059,7 +2036,7 @@ function ko(e, t, n, o, r, s) {
2059
2036
  ], 64))), 128))
2060
2037
  ], 4);
2061
2038
  }
2062
- const vo = /* @__PURE__ */ b(go, [["render", ko]]), So = {
2039
+ const yo = /* @__PURE__ */ b(fo, [["render", go]]), ko = {
2063
2040
  name: "Core:Button",
2064
2041
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
2065
2042
  defaultStyles: {
@@ -2095,7 +2072,7 @@ const vo = /* @__PURE__ */ b(go, [["render", ko]]), So = {
2095
2072
  shouldReceiveBuilderProps: {
2096
2073
  builderLinkComponent: !0
2097
2074
  }
2098
- }, Co = {
2075
+ }, vo = {
2099
2076
  // TODO: ways to statically preprocess JSON for references, functions, etc
2100
2077
  name: "Columns",
2101
2078
  isRSC: !0,
@@ -2302,13 +2279,13 @@ const vo = /* @__PURE__ */ b(go, [["render", ko]]), So = {
2302
2279
  builderComponents: !0,
2303
2280
  builderLinkComponent: !0
2304
2281
  }
2305
- }, To = {
2282
+ }, So = {
2306
2283
  name: "Fragment",
2307
2284
  static: !0,
2308
2285
  hidden: !0,
2309
2286
  canHaveChildren: !0,
2310
2287
  noWrap: !0
2311
- }, wo = {
2288
+ }, Co = {
2312
2289
  name: "Image",
2313
2290
  static: !0,
2314
2291
  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",
@@ -2416,7 +2393,7 @@ const vo = /* @__PURE__ */ b(go, [["render", ko]]), So = {
2416
2393
  shouldReceiveBuilderProps: {
2417
2394
  builderBlock: !0
2418
2395
  }
2419
- }, Io = {
2396
+ }, To = {
2420
2397
  name: "Core:Section",
2421
2398
  static: !0,
2422
2399
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -2455,7 +2432,7 @@ const vo = /* @__PURE__ */ b(go, [["render", ko]]), So = {
2455
2432
  }
2456
2433
  }
2457
2434
  }]
2458
- }, $o = {
2435
+ }, wo = {
2459
2436
  name: "Slot",
2460
2437
  isRSC: !0,
2461
2438
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -2472,12 +2449,12 @@ const vo = /* @__PURE__ */ b(go, [["render", ko]]), So = {
2472
2449
  builderContext: !0,
2473
2450
  builderComponents: !0
2474
2451
  }
2475
- }, Ro = f({
2452
+ }, Io = f({
2476
2453
  name: "builder-slot",
2477
- components: { Blocks: M },
2454
+ components: { Blocks: L },
2478
2455
  props: ["builderContext", "name", "builderComponents"]
2479
2456
  });
2480
- function Bo(e, t, n, o, r, s) {
2457
+ function $o(e, t, n, o, r, s) {
2481
2458
  var l, a, u;
2482
2459
  const i = y("Blocks");
2483
2460
  return c(), m("div", C(
@@ -2497,7 +2474,7 @@ function Bo(e, t, n, o, r, s) {
2497
2474
  }, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
2498
2475
  ], 16);
2499
2476
  }
2500
- const Eo = /* @__PURE__ */ b(Ro, [["render", Bo]]), Po = {
2477
+ const Ro = /* @__PURE__ */ b(Io, [["render", $o]]), Eo = {
2501
2478
  name: "Symbol",
2502
2479
  noWrap: !0,
2503
2480
  static: !0,
@@ -2536,7 +2513,7 @@ const Eo = /* @__PURE__ */ b(Ro, [["render", Bo]]), Po = {
2536
2513
  builderComponents: !0,
2537
2514
  builderLinkComponent: !0
2538
2515
  }
2539
- }, se = {
2516
+ }, oe = {
2540
2517
  "@type": "@builder.io/sdk:Element",
2541
2518
  responsiveStyles: {
2542
2519
  large: {
@@ -2558,7 +2535,7 @@ const Eo = /* @__PURE__ */ b(Ro, [["render", Bo]]), Po = {
2558
2535
  text: "New tab"
2559
2536
  }
2560
2537
  }
2561
- }, ae = {
2538
+ }, re = {
2562
2539
  "@type": "@builder.io/sdk:Element",
2563
2540
  responsiveStyles: {
2564
2541
  large: {
@@ -2574,7 +2551,7 @@ const Eo = /* @__PURE__ */ b(Ro, [["render", Bo]]), Po = {
2574
2551
  text: "New tab content "
2575
2552
  }
2576
2553
  }
2577
- }, xo = {
2554
+ }, Po = {
2578
2555
  name: "Builder: Tabs",
2579
2556
  inputs: [{
2580
2557
  name: "tabs",
@@ -2584,16 +2561,16 @@ const Eo = /* @__PURE__ */ b(Ro, [["render", Bo]]), Po = {
2584
2561
  name: "label",
2585
2562
  type: "uiBlocks",
2586
2563
  hideFromUI: !0,
2587
- defaultValue: [se]
2564
+ defaultValue: [oe]
2588
2565
  }, {
2589
2566
  name: "content",
2590
2567
  type: "uiBlocks",
2591
2568
  hideFromUI: !0,
2592
- defaultValue: [ae]
2569
+ defaultValue: [re]
2593
2570
  }],
2594
2571
  defaultValue: [{
2595
2572
  label: [{
2596
- ...se,
2573
+ ...oe,
2597
2574
  component: {
2598
2575
  name: "Text",
2599
2576
  options: {
@@ -2602,7 +2579,7 @@ const Eo = /* @__PURE__ */ b(Ro, [["render", Bo]]), Po = {
2602
2579
  }
2603
2580
  }],
2604
2581
  content: [{
2605
- ...ae,
2582
+ ...re,
2606
2583
  component: {
2607
2584
  name: "Text",
2608
2585
  options: {
@@ -2612,7 +2589,7 @@ const Eo = /* @__PURE__ */ b(Ro, [["render", Bo]]), Po = {
2612
2589
  }]
2613
2590
  }, {
2614
2591
  label: [{
2615
- ...se,
2592
+ ...oe,
2616
2593
  component: {
2617
2594
  name: "Text",
2618
2595
  options: {
@@ -2621,7 +2598,7 @@ const Eo = /* @__PURE__ */ b(Ro, [["render", Bo]]), Po = {
2621
2598
  }
2622
2599
  }],
2623
2600
  content: [{
2624
- ...ae,
2601
+ ...re,
2625
2602
  component: {
2626
2603
  name: "Text",
2627
2604
  options: {
@@ -2677,9 +2654,9 @@ const Eo = /* @__PURE__ */ b(Ro, [["render", Bo]]), Po = {
2677
2654
  builderComponents: !0,
2678
2655
  builderLinkComponent: !0
2679
2656
  }
2680
- }, Vo = f({
2657
+ }, Bo = f({
2681
2658
  name: "builder-tabs",
2682
- components: { Blocks: M },
2659
+ components: { Blocks: L },
2683
2660
  props: [
2684
2661
  "defaultActiveTab",
2685
2662
  "tabs",
@@ -2702,23 +2679,23 @@ const Eo = /* @__PURE__ */ b(Ro, [["render", Bo]]), Po = {
2702
2679
  e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
2703
2680
  }
2704
2681
  }
2705
- }), Ao = ["onClick"], Wo = { key: 0 };
2706
- function No(e, t, n, o, r, s) {
2682
+ }), xo = ["onClick"], Ao = { key: 0 };
2683
+ function Vo(e, t, n, o, r, s) {
2707
2684
  const i = y("Blocks");
2708
2685
  return c(), m("div", null, [
2709
- z("div", {
2686
+ K("div", {
2710
2687
  class: "builder-tabs-wrap",
2711
- style: D({
2688
+ style: O({
2712
2689
  display: "flex",
2713
2690
  flexDirection: "row",
2714
2691
  justifyContent: e.tabHeaderLayout || "flex-start",
2715
2692
  overflow: "auto"
2716
2693
  })
2717
2694
  }, [
2718
- (c(!0), m(T, null, V(e.tabs, (l, a) => (c(), m("span", {
2695
+ (c(!0), m(T, null, A(e.tabs, (l, a) => (c(), m("span", {
2719
2696
  key: a,
2720
- class: J(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
2721
- style: D({
2697
+ class: q(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
2698
+ style: O({
2722
2699
  ...e.activeTab === a ? e.activeTabStyle : {}
2723
2700
  }),
2724
2701
  onClick: (u) => e.onClick(a)
@@ -2731,9 +2708,9 @@ function No(e, t, n, o, r, s) {
2731
2708
  registeredComponents: e.builderComponents,
2732
2709
  linkComponent: e.builderLinkComponent
2733
2710
  }, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
2734
- ], 14, Ao))), 128))
2711
+ ], 14, xo))), 128))
2735
2712
  ], 4),
2736
- e.activeTabContent(e.activeTab) ? (c(), m("div", Wo, [
2713
+ e.activeTabContent(e.activeTab) ? (c(), m("div", Ao, [
2737
2714
  I(i, {
2738
2715
  parent: e.builderBlock.id,
2739
2716
  path: `component.options.tabs.${e.activeTab}.content`,
@@ -2745,7 +2722,7 @@ function No(e, t, n, o, r, s) {
2745
2722
  ])) : S("", !0)
2746
2723
  ]);
2747
2724
  }
2748
- const Fo = /* @__PURE__ */ b(Vo, [["render", No]]), Oo = {
2725
+ const Wo = /* @__PURE__ */ b(Bo, [["render", Vo]]), No = {
2749
2726
  shouldReceiveBuilderProps: {
2750
2727
  builderBlock: !1,
2751
2728
  builderContext: !0
@@ -2767,7 +2744,7 @@ const Fo = /* @__PURE__ */ b(Vo, [["render", No]]), Oo = {
2767
2744
  height: "auto",
2768
2745
  textAlign: "center"
2769
2746
  }
2770
- }, Do = f({
2747
+ }, Fo = f({
2771
2748
  name: "builder-text",
2772
2749
  props: ["builderContext", "text"],
2773
2750
  computed: {
@@ -2781,28 +2758,27 @@ const Fo = /* @__PURE__ */ b(Vo, [["render", No]]), Oo = {
2781
2758
  } = e;
2782
2759
  return String(((s = this.text) == null ? void 0 : s.toString()) || "").replace(
2783
2760
  /{{([^}]+)}}/g,
2784
- (i, l) => Y({
2761
+ (i, l) => J({
2785
2762
  code: l,
2786
2763
  context: t,
2787
2764
  localState: n,
2788
2765
  rootState: o,
2789
- rootSetState: r,
2790
- enableCache: !1
2766
+ rootSetState: r
2791
2767
  })
2792
2768
  );
2793
2769
  }
2794
2770
  }
2795
- }), Lo = ["innerHTML"];
2796
- function Uo(e, t, n, o, r, s) {
2771
+ }), Oo = ["innerHTML"];
2772
+ function Do(e, t, n, o, r, s) {
2797
2773
  return c(), m("div", {
2798
2774
  class: "builder-text",
2799
2775
  innerHTML: e.processedText,
2800
2776
  style: {
2801
2777
  outline: "none"
2802
2778
  }
2803
- }, null, 8, Lo);
2779
+ }, null, 8, Oo);
2804
2780
  }
2805
- const Mo = /* @__PURE__ */ b(Do, [["render", Uo]]), jo = {
2781
+ const Lo = /* @__PURE__ */ b(Fo, [["render", Do]]), Uo = {
2806
2782
  name: "Custom Code",
2807
2783
  static: !0,
2808
2784
  requiredPermissions: ["editCode"],
@@ -2824,7 +2800,7 @@ const Mo = /* @__PURE__ */ b(Do, [["render", Uo]]), jo = {
2824
2800
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
2825
2801
  advanced: !0
2826
2802
  }]
2827
- }, Ho = f({
2803
+ }, Mo = f({
2828
2804
  name: "builder-custom-code",
2829
2805
  props: ["replaceNodes", "code"],
2830
2806
  data() {
@@ -2858,15 +2834,15 @@ const Mo = /* @__PURE__ */ b(Do, [["render", Uo]]), jo = {
2858
2834
  }
2859
2835
  }
2860
2836
  }
2861
- }), Ko = ["innerHTML"];
2862
- function qo(e, t, n, o, r, s) {
2837
+ }), jo = ["innerHTML"];
2838
+ function Ho(e, t, n, o, r, s) {
2863
2839
  return c(), m("div", {
2864
2840
  ref: "elementRef",
2865
- class: J("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
2841
+ class: q("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
2866
2842
  innerHTML: e.code
2867
- }, null, 10, Ko);
2843
+ }, null, 10, jo);
2868
2844
  }
2869
- const zo = /* @__PURE__ */ b(Ho, [["render", qo]]), Jo = {
2845
+ const Ko = /* @__PURE__ */ b(Mo, [["render", Ho]]), qo = {
2870
2846
  name: "Embed",
2871
2847
  static: !0,
2872
2848
  inputs: [{
@@ -2881,7 +2857,7 @@ const zo = /* @__PURE__ */ b(Ho, [["render", qo]]), Jo = {
2881
2857
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2882
2858
  hideFromUI: !0
2883
2859
  }]
2884
- }, Go = ["text/javascript", "application/javascript", "application/ecmascript"], Yo = (e) => Go.includes(e.type), Qo = f({
2860
+ }, zo = ["text/javascript", "application/javascript", "application/ecmascript"], Jo = (e) => zo.includes(e.type), Go = f({
2885
2861
  name: "builder-embed",
2886
2862
  props: ["content"],
2887
2863
  data() {
@@ -2914,7 +2890,7 @@ const zo = /* @__PURE__ */ b(Ho, [["render", qo]]), Jo = {
2914
2890
  this.scriptsInserted.push(n.src);
2915
2891
  const o = document.createElement("script");
2916
2892
  o.async = !0, o.src = n.src, document.head.appendChild(o);
2917
- } else if (Yo(n) && !this.scriptsRun.includes(n.innerText))
2893
+ } else if (Jo(n) && !this.scriptsRun.includes(n.innerText))
2918
2894
  try {
2919
2895
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
2920
2896
  } catch (o) {
@@ -2923,15 +2899,15 @@ const zo = /* @__PURE__ */ b(Ho, [["render", qo]]), Jo = {
2923
2899
  }
2924
2900
  }
2925
2901
  }
2926
- }), Xo = ["innerHTML"];
2927
- function Zo(e, t, n, o, r, s) {
2902
+ }), Yo = ["innerHTML"];
2903
+ function Xo(e, t, n, o, r, s) {
2928
2904
  return c(), m("div", {
2929
2905
  class: "builder-embed",
2930
2906
  ref: "elem",
2931
2907
  innerHTML: e.content
2932
- }, null, 8, Xo);
2908
+ }, null, 8, Yo);
2933
2909
  }
2934
- const _o = /* @__PURE__ */ b(Qo, [["render", Zo]]), er = {
2910
+ const Qo = /* @__PURE__ */ b(Go, [["render", Xo]]), Zo = {
2935
2911
  name: "Form:Form",
2936
2912
  // editableTags: ['builder-form-error']
2937
2913
  defaults: {
@@ -3168,15 +3144,12 @@ const _o = /* @__PURE__ */ b(Qo, [["render", Zo]]), er = {
3168
3144
  builderComponents: !0,
3169
3145
  builderLinkComponent: !0
3170
3146
  }
3171
- }, tr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], nr = () => {
3147
+ }, _o = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], er = () => {
3172
3148
  const e = process.env.NODE_ENV || "production";
3173
- return tr.includes(e) ? e : "production";
3174
- }, or = (e, t, n) => {
3175
- const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, s) => r != null ? r[s] : r, e);
3176
- return o === void 0 || o === e ? n : o;
3177
- }, rr = f({
3149
+ return _o.includes(e) ? e : "production";
3150
+ }, tr = f({
3178
3151
  name: "builder-form-component",
3179
- components: { Block: ye, Blocks: M },
3152
+ components: { Block: fe, Blocks: L },
3180
3153
  props: [
3181
3154
  "builderContext",
3182
3155
  "previewState",
@@ -3205,7 +3178,7 @@ const _o = /* @__PURE__ */ b(Qo, [["render", Zo]]), er = {
3205
3178
  formState: "unsubmitted",
3206
3179
  responseData: null,
3207
3180
  formErrorMessage: "",
3208
- filterAttrs: A
3181
+ filterAttrs: V
3209
3182
  };
3210
3183
  },
3211
3184
  methods: {
@@ -3265,7 +3238,7 @@ const _o = /* @__PURE__ */ b(Qo, [["render", Zo]]), er = {
3265
3238
  else {
3266
3239
  const d = {};
3267
3240
  Array.from(l).forEach(({ value: p, key: k }) => {
3268
- xe(d, k, p);
3241
+ Ee(d, k, p);
3269
3242
  }), s = JSON.stringify(d);
3270
3243
  }
3271
3244
  a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
@@ -3277,7 +3250,7 @@ const _o = /* @__PURE__ */ b(Qo, [["render", Zo]]), er = {
3277
3250
  if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(u), u.defaultPrevented))
3278
3251
  return;
3279
3252
  this.formState = "sending";
3280
- const h = `${nr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
3253
+ const h = `${er() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
3281
3254
  this.sendSubmissionsToEmail || ""
3282
3255
  )}&name=${encodeURIComponent(this.name || "")}`;
3283
3256
  fetch(
@@ -3292,7 +3265,7 @@ const _o = /* @__PURE__ */ b(Qo, [["render", Zo]]), er = {
3292
3265
  let p;
3293
3266
  const k = d.headers.get("content-type");
3294
3267
  if (k && k.indexOf("application/json") !== -1 ? p = await d.json() : p = await d.text(), !d.ok && this.errorMessagePath) {
3295
- let v = or(p, this.errorMessagePath);
3268
+ let v = xe(p, this.errorMessagePath);
3296
3269
  v && (typeof v != "string" && (v = JSON.stringify(v)), this.formErrorMessage = v, this.mergeNewRootState({
3297
3270
  formErrorMessage: v
3298
3271
  }));
@@ -3311,12 +3284,12 @@ const _o = /* @__PURE__ */ b(Qo, [["render", Zo]]), er = {
3311
3284
  }
3312
3285
  if (this.successUrl)
3313
3286
  if (this.$refs.formRef) {
3314
- const F = new CustomEvent("route", {
3287
+ const N = new CustomEvent("route", {
3315
3288
  detail: {
3316
3289
  url: this.successUrl
3317
3290
  }
3318
3291
  });
3319
- this.$refs.formRef.dispatchEvent(F), F.defaultPrevented || (location.href = this.successUrl);
3292
+ this.$refs.formRef.dispatchEvent(N), N.defaultPrevented || (location.href = this.successUrl);
3320
3293
  } else
3321
3294
  location.href = this.successUrl;
3322
3295
  }
@@ -3333,11 +3306,11 @@ const _o = /* @__PURE__ */ b(Qo, [["render", Zo]]), er = {
3333
3306
  }
3334
3307
  }
3335
3308
  }
3336
- }), ir = ["validate", "action", "method", "name"], sr = {
3309
+ }), nr = ["validate", "action", "method", "name"], or = {
3337
3310
  key: 3,
3338
3311
  class: "builder-form-error-text pre-3q96myty4lk"
3339
3312
  };
3340
- function ar(e, t, n, o, r, s) {
3313
+ function rr(e, t, n, o, r, s) {
3341
3314
  var a;
3342
3315
  const i = y("Block"), l = y("Blocks");
3343
3316
  return c(), m("form", C({
@@ -3347,8 +3320,8 @@ function ar(e, t, n, o, r, s) {
3347
3320
  method: e.method,
3348
3321
  name: e.name,
3349
3322
  onSubmit: t[0] || (t[0] = (u) => e.onSubmit(u))
3350
- }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3351
- e.builderBlock && e.builderBlock.children ? (c(!0), m(T, { key: 0 }, V((a = e.builderBlock) == null ? void 0 : a.children, (u, h) => (c(), g(i, {
3323
+ }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3324
+ e.builderBlock && e.builderBlock.children ? (c(!0), m(T, { key: 0 }, A((a = e.builderBlock) == null ? void 0 : a.children, (u, h) => (c(), g(i, {
3352
3325
  key: `form-block-${e.idx}`,
3353
3326
  block: u,
3354
3327
  context: e.builderContext,
@@ -3367,16 +3340,16 @@ function ar(e, t, n, o, r, s) {
3367
3340
  blocks: e.sendingMessage,
3368
3341
  context: e.builderContext
3369
3342
  }, null, 8, ["blocks", "context"])) : S("", !0),
3370
- e.submissionState() === "error" && e.responseData ? (c(), m("pre", sr, te(JSON.stringify(e.responseData, null, 2)), 1)) : S("", !0),
3343
+ e.submissionState() === "error" && e.responseData ? (c(), m("pre", or, _(JSON.stringify(e.responseData, null, 2)), 1)) : S("", !0),
3371
3344
  e.submissionState() === "success" ? (c(), g(l, {
3372
3345
  key: 4,
3373
3346
  path: "successMessage",
3374
3347
  blocks: e.successMessage,
3375
3348
  context: e.builderContext
3376
3349
  }, null, 8, ["blocks", "context"])) : S("", !0)
3377
- ], 16, ir);
3350
+ ], 16, nr);
3378
3351
  }
3379
- const lr = /* @__PURE__ */ b(rr, [["render", ar], ["__scopeId", "data-v-6e18f21b"]]), cr = {
3352
+ const ir = /* @__PURE__ */ b(tr, [["render", rr], ["__scopeId", "data-v-6e18f21b"]]), sr = {
3380
3353
  name: "Form:Input",
3381
3354
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
3382
3355
  inputs: [
@@ -3427,7 +3400,7 @@ const lr = /* @__PURE__ */ b(rr, [["render", ar], ["__scopeId", "data-v-6e18f21b
3427
3400
  borderStyle: "solid",
3428
3401
  borderColor: "#ccc"
3429
3402
  }
3430
- }, dr = f({
3403
+ }, ar = f({
3431
3404
  name: "builder-form-input-component",
3432
3405
  props: [
3433
3406
  "attributes",
@@ -3439,10 +3412,10 @@ const lr = /* @__PURE__ */ b(rr, [["render", ar], ["__scopeId", "data-v-6e18f21b
3439
3412
  "required"
3440
3413
  ],
3441
3414
  data() {
3442
- return { isEditing: R, filterAttrs: A };
3415
+ return { isEditing: R, filterAttrs: V };
3443
3416
  }
3444
- }), ur = ["placeholder", "type", "name", "value", "defaultValue", "required"];
3445
- function pr(e, t, n, o, r, s) {
3417
+ }), lr = ["placeholder", "type", "name", "value", "defaultValue", "required"];
3418
+ function cr(e, t, n, o, r, s) {
3446
3419
  return c(), m("input", C({
3447
3420
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
3448
3421
  placeholder: e.placeholder,
@@ -3451,9 +3424,9 @@ function pr(e, t, n, o, r, s) {
3451
3424
  value: e.value,
3452
3425
  defaultValue: e.defaultValue,
3453
3426
  required: e.required
3454
- }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, ur);
3427
+ }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, lr);
3455
3428
  }
3456
- const mr = /* @__PURE__ */ b(dr, [["render", pr]]), hr = {
3429
+ const dr = /* @__PURE__ */ b(ar, [["render", cr]]), ur = {
3457
3430
  name: "Form:Select",
3458
3431
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
3459
3432
  defaultStyles: {
@@ -3495,28 +3468,28 @@ const mr = /* @__PURE__ */ b(dr, [["render", pr]]), hr = {
3495
3468
  }],
3496
3469
  static: !0,
3497
3470
  noWrap: !0
3498
- }, fr = f({
3471
+ }, pr = f({
3499
3472
  name: "builder-select-component",
3500
3473
  props: ["attributes", "value", "defaultValue", "name", "required", "options"],
3501
3474
  data() {
3502
- return { isEditing: R, filterAttrs: A };
3475
+ return { isEditing: R, filterAttrs: V };
3503
3476
  }
3504
- }), br = ["value", "defaultValue", "name", "required"], gr = ["value"];
3505
- function yr(e, t, n, o, r, s) {
3477
+ }), mr = ["value", "defaultValue", "name", "required"], hr = ["value"];
3478
+ function fr(e, t, n, o, r, s) {
3506
3479
  return c(), m("select", C({
3507
3480
  value: e.value,
3508
3481
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
3509
3482
  defaultValue: e.defaultValue,
3510
3483
  name: e.name,
3511
3484
  required: e.required
3512
- }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3513
- (c(!0), m(T, null, V(e.options, (i, l) => (c(), m("option", {
3485
+ }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3486
+ (c(!0), m(T, null, A(e.options, (i, l) => (c(), m("option", {
3514
3487
  key: `${i.name}-${l}`,
3515
3488
  value: i.value
3516
- }, te(i.name || i.value), 9, gr))), 128))
3517
- ], 16, br);
3489
+ }, _(i.name || i.value), 9, hr))), 128))
3490
+ ], 16, mr);
3518
3491
  }
3519
- const kr = /* @__PURE__ */ b(fr, [["render", yr]]), vr = {
3492
+ const br = /* @__PURE__ */ b(pr, [["render", fr]]), gr = {
3520
3493
  name: "Form:SubmitButton",
3521
3494
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
3522
3495
  defaultStyles: {
@@ -3541,17 +3514,17 @@ const kr = /* @__PURE__ */ b(fr, [["render", yr]]), vr = {
3541
3514
  // that only shows if advanced setting is flipped
3542
3515
  // TODO: defaultChildren
3543
3516
  // canHaveChildren: true,
3544
- }, Sr = f({
3517
+ }, yr = f({
3545
3518
  name: "builder-submit-button",
3546
3519
  props: ["attributes", "text"],
3547
3520
  data() {
3548
- return { filterAttrs: A };
3521
+ return { filterAttrs: V };
3549
3522
  }
3550
3523
  });
3551
- function Cr(e, t, n, o, r, s) {
3552
- return c(), m("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), te(e.text), 17);
3524
+ function kr(e, t, n, o, r, s) {
3525
+ return c(), m("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), _(e.text), 17);
3553
3526
  }
3554
- const Tr = /* @__PURE__ */ b(Sr, [["render", Cr]]), wr = {
3527
+ const vr = /* @__PURE__ */ b(yr, [["render", kr]]), Sr = {
3555
3528
  name: "Form:TextArea",
3556
3529
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
3557
3530
  inputs: [{
@@ -3587,7 +3560,7 @@ const Tr = /* @__PURE__ */ b(Sr, [["render", Cr]]), wr = {
3587
3560
  },
3588
3561
  static: !0,
3589
3562
  noWrap: !0
3590
- }, Ir = f({
3563
+ }, Cr = f({
3591
3564
  name: "builder-textarea",
3592
3565
  props: [
3593
3566
  "attributes",
@@ -3598,19 +3571,19 @@ const Tr = /* @__PURE__ */ b(Sr, [["render", Cr]]), wr = {
3598
3571
  "required"
3599
3572
  ],
3600
3573
  data() {
3601
- return { filterAttrs: A };
3574
+ return { filterAttrs: V };
3602
3575
  }
3603
- }), $r = ["placeholder", "name", "value", "defaultValue", "required"];
3604
- function Rr(e, t, n, o, r, s) {
3576
+ }), Tr = ["placeholder", "name", "value", "defaultValue", "required"];
3577
+ function wr(e, t, n, o, r, s) {
3605
3578
  return c(), m("textarea", C({
3606
3579
  placeholder: e.placeholder,
3607
3580
  name: e.name,
3608
3581
  value: e.value,
3609
3582
  defaultValue: e.defaultValue,
3610
3583
  required: e.required
3611
- }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, $r);
3584
+ }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Tr);
3612
3585
  }
3613
- const Br = /* @__PURE__ */ b(Ir, [["render", Rr]]), Er = {
3586
+ const Ir = /* @__PURE__ */ b(Cr, [["render", wr]]), $r = {
3614
3587
  // friendlyName?
3615
3588
  name: "Raw:Img",
3616
3589
  hideFromInsertMenu: !0,
@@ -3624,7 +3597,7 @@ const Br = /* @__PURE__ */ b(Ir, [["render", Rr]]), Er = {
3624
3597
  }],
3625
3598
  noWrap: !0,
3626
3599
  static: !0
3627
- }, Pr = f({
3600
+ }, Rr = f({
3628
3601
  name: "builder-img-component",
3629
3602
  props: [
3630
3603
  "backgroundSize",
@@ -3635,10 +3608,10 @@ const Br = /* @__PURE__ */ b(Ir, [["render", Rr]]), Er = {
3635
3608
  "attributes"
3636
3609
  ],
3637
3610
  data() {
3638
- return { isEditing: R, filterAttrs: A };
3611
+ return { isEditing: R, filterAttrs: V };
3639
3612
  }
3640
- }), xr = ["alt", "src"];
3641
- function Vr(e, t, n, o, r, s) {
3613
+ }), Er = ["alt", "src"];
3614
+ function Pr(e, t, n, o, r, s) {
3642
3615
  return c(), m("img", C({
3643
3616
  style: {
3644
3617
  objectFit: e.backgroundSize || "cover",
@@ -3647,9 +3620,9 @@ function Vr(e, t, n, o, r, s) {
3647
3620
  key: e.isEditing() && e.imgSrc || "default-key",
3648
3621
  alt: e.altText,
3649
3622
  src: e.imgSrc || e.image
3650
- }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, xr);
3623
+ }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Er);
3651
3624
  }
3652
- const Ar = /* @__PURE__ */ b(Pr, [["render", Vr]]), Wr = {
3625
+ const Br = /* @__PURE__ */ b(Rr, [["render", Pr]]), xr = {
3653
3626
  name: "Video",
3654
3627
  canHaveChildren: !0,
3655
3628
  defaultStyles: {
@@ -3733,7 +3706,7 @@ const Ar = /* @__PURE__ */ b(Pr, [["render", Vr]]), Wr = {
3733
3706
  shouldReceiveBuilderProps: {
3734
3707
  builderBlock: !0
3735
3708
  }
3736
- }, Nr = f({
3709
+ }, Ar = f({
3737
3710
  name: "builder-video",
3738
3711
  props: [
3739
3712
  "autoPlay",
@@ -3778,16 +3751,16 @@ const Ar = /* @__PURE__ */ b(Pr, [["render", Vr]]), Wr = {
3778
3751
  };
3779
3752
  }
3780
3753
  }
3781
- }), Fr = { style: {
3754
+ }), Vr = { style: {
3782
3755
  position: "relative"
3783
- } }, Or = ["preload", "src", "poster"], Dr = ["src"], Lr = {
3756
+ } }, Wr = ["preload", "src", "poster"], Nr = ["src"], Fr = {
3784
3757
  key: 1,
3785
3758
  style: {
3786
3759
  display: "flex",
3787
3760
  flexDirection: "column",
3788
3761
  alignItems: "stretch"
3789
3762
  }
3790
- }, Ur = {
3763
+ }, Or = {
3791
3764
  key: 2,
3792
3765
  style: {
3793
3766
  pointerEvents: "none",
@@ -3801,10 +3774,10 @@ const Ar = /* @__PURE__ */ b(Pr, [["render", Vr]]), Wr = {
3801
3774
  height: "100%"
3802
3775
  }
3803
3776
  };
3804
- function Mr(e, t, n, o, r, s) {
3777
+ function Dr(e, t, n, o, r, s) {
3805
3778
  var i, l, a, u, h, d, p;
3806
- return c(), m("div", Fr, [
3807
- z("video", C({
3779
+ return c(), m("div", Vr, [
3780
+ K("video", C({
3808
3781
  class: "builder-video",
3809
3782
  preload: e.preload || "metadata",
3810
3783
  style: {
@@ -3828,83 +3801,83 @@ function Mr(e, t, n, o, r, s) {
3828
3801
  key: 0,
3829
3802
  type: "video/mp4",
3830
3803
  src: e.video
3831
- }, null, 8, Dr))
3832
- ], 16, Or),
3804
+ }, null, 8, Nr))
3805
+ ], 16, Wr),
3833
3806
  e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (c(), m("div", {
3834
3807
  key: 0,
3835
- style: D({
3808
+ style: O({
3836
3809
  width: "100%",
3837
3810
  paddingTop: e.aspectRatio * 100 + "%",
3838
3811
  pointerEvents: "none",
3839
3812
  fontSize: "0px"
3840
3813
  })
3841
3814
  }, null, 4)) : S("", !0),
3842
- (h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (c(), m("div", Lr, [
3843
- E(e.$slots, "default")
3815
+ (h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (c(), m("div", Fr, [
3816
+ P(e.$slots, "default")
3844
3817
  ])) : S("", !0),
3845
- (p = (d = e.builderBlock) == null ? void 0 : d.children) != null && p.length && !e.fitContent ? (c(), m("div", Ur, [
3846
- E(e.$slots, "default")
3818
+ (p = (d = e.builderBlock) == null ? void 0 : d.children) != null && p.length && !e.fitContent ? (c(), m("div", Or, [
3819
+ P(e.$slots, "default")
3847
3820
  ])) : S("", !0)
3848
3821
  ]);
3849
3822
  }
3850
- const jr = /* @__PURE__ */ b(Nr, [["render", Mr]]), Hr = () => [{
3851
- component: zo,
3852
- ...jo
3823
+ const Lr = /* @__PURE__ */ b(Ar, [["render", Dr]]), Ur = () => [{
3824
+ component: Ko,
3825
+ ...Uo
3853
3826
  }, {
3854
- component: _o,
3855
- ...Jo
3827
+ component: Qo,
3828
+ ...qo
3856
3829
  }, {
3857
- component: lr,
3858
- ...er
3830
+ component: ir,
3831
+ ...Zo
3859
3832
  }, {
3860
- component: mr,
3861
- ...cr
3833
+ component: dr,
3834
+ ...sr
3862
3835
  }, {
3863
- component: Tr,
3864
- ...vr
3836
+ component: vr,
3837
+ ...gr
3865
3838
  }, {
3866
- component: kr,
3867
- ...hr
3839
+ component: br,
3840
+ ...ur
3841
+ }, {
3842
+ component: Ir,
3843
+ ...Sr
3868
3844
  }, {
3869
3845
  component: Br,
3870
- ...wr
3846
+ ...$r
3847
+ }, {
3848
+ component: Lr,
3849
+ ...xr
3850
+ }], we = () => [{
3851
+ component: vt,
3852
+ ...ko
3871
3853
  }, {
3872
- component: Ar,
3873
- ...Er
3854
+ component: Qn,
3855
+ ...vo
3874
3856
  }, {
3875
- component: jr,
3876
- ...Wr
3877
- }], Re = () => [{
3878
- component: wt,
3857
+ component: eo,
3879
3858
  ...So
3880
3859
  }, {
3881
- component: _n,
3860
+ component: lo,
3882
3861
  ...Co
3883
3862
  }, {
3884
- component: no,
3863
+ component: po,
3885
3864
  ...To
3886
3865
  }, {
3887
- component: uo,
3866
+ component: Ro,
3888
3867
  ...wo
3889
3868
  }, {
3890
- component: ho,
3891
- ...Io
3869
+ component: Si,
3870
+ ...Eo
3892
3871
  }, {
3893
- component: Eo,
3894
- ...$o
3872
+ component: Lo,
3873
+ ...No
3895
3874
  }, {
3896
- component: wi,
3875
+ component: Wo,
3897
3876
  ...Po
3898
3877
  }, {
3899
- component: Mo,
3900
- ...Oo
3901
- }, {
3902
- component: Fo,
3903
- ...xo
3904
- }, {
3905
- component: vo,
3906
- ...fo
3907
- }, ...Hr()], Kr = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3878
+ component: yo,
3879
+ ...mo
3880
+ }, ...Ur()], Mr = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3908
3881
  function getAndSetVariantId() {
3909
3882
  function setCookie(name, value, days) {
3910
3883
  let expires = '';
@@ -3960,7 +3933,7 @@ const jr = /* @__PURE__ */ b(Nr, [["render", Mr]]), Hr = () => [{
3960
3933
  }).join('');
3961
3934
  styleEl.innerHTML = newStyleStr;
3962
3935
  }
3963
- }`, qr = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3936
+ }`, jr = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3964
3937
  if (!navigator.cookieEnabled) {
3965
3938
  return;
3966
3939
  }
@@ -3994,27 +3967,27 @@ const jr = /* @__PURE__ */ b(Nr, [["render", Mr]]), Hr = () => [{
3994
3967
  thisScriptEl?.remove();
3995
3968
  }
3996
3969
  return;
3997
- }`, tt = "builderIoAbTest", nt = "builderIoRenderContent", Z = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3970
+ }`, _e = "builderIoAbTest", et = "builderIoRenderContent", X = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3998
3971
  ...t,
3999
3972
  testVariationId: t.id,
4000
3973
  id: e == null ? void 0 : e.id
4001
- })), zr = ({
3974
+ })), Hr = ({
4002
3975
  canTrack: e,
4003
3976
  content: t
4004
- }) => !(!(Z(t).length > 0) || !e), Jr = (e) => e === "react" || e === "reactNative", ot = Jr(x), Gr = () => `
4005
- window.${tt} = ${Kr}
4006
- window.${nt} = ${qr}
4007
- `, Yr = (e, t) => `
4008
- window.${tt}(
4009
- "${t}",${JSON.stringify(e)}, ${ot}
4010
- )`, Qr = ({
3977
+ }) => !(!(X(t).length > 0) || !e), Kr = (e) => e === "react" || e === "reactNative", tt = Kr(x), qr = () => `
3978
+ window.${_e} = ${Mr}
3979
+ window.${et} = ${jr}
3980
+ `, zr = (e, t) => `
3981
+ window.${_e}(
3982
+ "${t}",${JSON.stringify(e)}, ${tt}
3983
+ )`, Jr = ({
4011
3984
  contentId: e,
4012
3985
  variationId: t
4013
- }) => `window.${nt}(
4014
- "${t}", "${e}", ${ot}
4015
- )`, rt = f({
3986
+ }) => `window.${et}(
3987
+ "${t}", "${e}", ${tt}
3988
+ )`, nt = f({
4016
3989
  render() {
4017
- return Pe("script", {
3990
+ return Re("script", {
4018
3991
  innerHTML: this.scriptStr,
4019
3992
  "data-id": this.id,
4020
3993
  nonce: this.nonce
@@ -4023,10 +3996,10 @@ const jr = /* @__PURE__ */ b(Nr, [["render", Mr]]), Hr = () => [{
4023
3996
  name: "inlined-script",
4024
3997
  props: ["scriptStr", "id", "nonce"]
4025
3998
  });
4026
- function Be(e) {
3999
+ function Ie(e) {
4027
4000
  return Math.round(e * 1e3) / 1e3;
4028
4001
  }
4029
- const Xr = (e, t, n = !0) => {
4002
+ const Gr = (e, t, n = !0) => {
4030
4003
  if (!(e instanceof HTMLElement))
4031
4004
  return null;
4032
4005
  let o = n ? e : e.parentElement;
@@ -4037,35 +4010,35 @@ const Xr = (e, t, n = !0) => {
4037
4010
  return o;
4038
4011
  } while (o = o.parentElement);
4039
4012
  return null;
4040
- }, Zr = (e) => Xr(e, (t) => {
4013
+ }, Yr = (e) => Gr(e, (t) => {
4041
4014
  const n = t.getAttribute("builder-id") || t.id;
4042
4015
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
4043
- }), Ee = ({
4016
+ }), $e = ({
4044
4017
  event: e,
4045
4018
  target: t
4046
4019
  }) => {
4047
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, s = Be(o / n.width), i = Be(r / n.height);
4020
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, s = Ie(o / n.width), i = Ie(r / n.height);
4048
4021
  return {
4049
4022
  x: s,
4050
4023
  y: i
4051
4024
  };
4052
- }, _r = (e) => {
4053
- const t = e.target, n = t && Zr(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4025
+ }, Xr = (e) => {
4026
+ const t = e.target, n = t && Yr(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4054
4027
  return {
4055
4028
  targetBuilderElement: o || void 0,
4056
4029
  metadata: {
4057
- targetOffset: t ? Ee({
4030
+ targetOffset: t ? $e({
4058
4031
  event: e,
4059
4032
  target: t
4060
4033
  }) : void 0,
4061
- builderTargetOffset: n ? Ee({
4034
+ builderTargetOffset: n ? $e({
4062
4035
  event: e,
4063
4036
  target: n
4064
4037
  }) : void 0,
4065
4038
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
4066
4039
  }
4067
4040
  };
4068
- }, ei = (e) => {
4041
+ }, Qr = (e) => {
4069
4042
  var s;
4070
4043
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((s = e == null ? void 0 : e.files) == null ? void 0 : s.regular);
4071
4044
  let r = "";
@@ -4091,15 +4064,15 @@ font-weight: ${i};
4091
4064
  `.trim());
4092
4065
  }
4093
4066
  return r;
4094
- }, ti = ({
4067
+ }, Zr = ({
4095
4068
  customFonts: e
4096
4069
  }) => {
4097
4070
  var t;
4098
- return ((t = e == null ? void 0 : e.map((n) => ei(n))) == null ? void 0 : t.join(" ")) || "";
4099
- }, ni = ({
4071
+ return ((t = e == null ? void 0 : e.map((n) => Qr(n))) == null ? void 0 : t.join(" ")) || "";
4072
+ }, _r = ({
4100
4073
  cssCode: e,
4101
4074
  contentId: t
4102
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", oi = `
4075
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", ei = `
4103
4076
  .builder-button {
4104
4077
  all: unset;
4105
4078
  }
@@ -4116,9 +4089,9 @@ font-weight: ${i};
4116
4089
  text-align: inherit;
4117
4090
  font-family: inherit;
4118
4091
  }
4119
- `, ri = (e) => e ? "" : oi, ii = (e) => `variant-${e}`, si = f({
4092
+ `, ti = (e) => e ? "" : ei, ni = (e) => `variant-${e}`, oi = f({
4120
4093
  name: "enable-editor",
4121
- components: { DynamicDiv: Q },
4094
+ components: { DynamicDiv: G },
4122
4095
  props: [
4123
4096
  "builderContextSignal",
4124
4097
  "canTrack",
@@ -4140,14 +4113,14 @@ font-weight: ${i};
4140
4113
  httpReqsData: {},
4141
4114
  httpReqsPending: {},
4142
4115
  clicked: !1,
4143
- builderContext: le,
4144
- getWrapperClassName: ii
4116
+ builderContext: ie,
4117
+ getWrapperClassName: ni
4145
4118
  };
4146
4119
  },
4147
4120
  provide() {
4148
4121
  const e = this;
4149
4122
  return {
4150
- [le.key]: e.builderContextSignal
4123
+ [ie.key]: e.builderContextSignal
4151
4124
  };
4152
4125
  },
4153
4126
  created() {
@@ -4158,9 +4131,9 @@ font-weight: ${i};
4158
4131
  if ($()) {
4159
4132
  if (R() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4160
4133
  new CustomEvent("initeditingbldr")
4161
- ), this.builderContextSignal.content && G(this.canTrack)) {
4134
+ ), this.builderContextSignal.content && z(this.canTrack)) {
4162
4135
  const o = (e = this.builderContextSignal.content) == null ? void 0 : e.testVariationId, r = (t = this.builderContextSignal.content) == null ? void 0 : t.id, s = this.apiKey;
4163
- de({
4136
+ ae({
4164
4137
  type: "impression",
4165
4138
  canTrack: !0,
4166
4139
  contentId: r,
@@ -4168,7 +4141,7 @@ font-weight: ${i};
4168
4141
  variationId: o !== r ? o : void 0
4169
4142
  });
4170
4143
  }
4171
- Ft() && !R() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4144
+ Wt() && !R() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4172
4145
  new CustomEvent("initpreviewingbldr")
4173
4146
  );
4174
4147
  }
@@ -4262,7 +4235,7 @@ font-weight: ${i};
4262
4235
  this.builderContextSignal.content = t;
4263
4236
  },
4264
4237
  processMessage(e) {
4265
- return Ke({
4238
+ return je({
4266
4239
  model: this.model,
4267
4240
  trustedHosts: this.trustedHosts,
4268
4241
  callbacks: {
@@ -4276,7 +4249,7 @@ font-weight: ${i};
4276
4249
  });
4277
4250
  },
4278
4251
  animation: (t) => {
4279
- Xe(t);
4252
+ Ye(t);
4280
4253
  },
4281
4254
  contentUpdate: (t) => {
4282
4255
  this.mergeNewContent(t);
@@ -4288,13 +4261,13 @@ font-weight: ${i};
4288
4261
  var t, n;
4289
4262
  if (this.builderContextSignal.content) {
4290
4263
  const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
4291
- de({
4264
+ ae({
4292
4265
  type: "click",
4293
- canTrack: G(this.canTrack),
4266
+ canTrack: z(this.canTrack),
4294
4267
  contentId: r,
4295
4268
  apiKey: this.apiKey,
4296
4269
  variationId: o !== r ? o : void 0,
4297
- ..._r(e),
4270
+ ...Xr(e),
4298
4271
  unique: !this.clicked
4299
4272
  });
4300
4273
  }
@@ -4310,13 +4283,12 @@ font-weight: ${i};
4310
4283
  const s = r.replace(
4311
4284
  /{{([^}]+)}}/g,
4312
4285
  (i, l) => String(
4313
- Y({
4286
+ J({
4314
4287
  code: l,
4315
4288
  context: this.context || {},
4316
4289
  localState: void 0,
4317
4290
  rootState: this.builderContextSignal.rootState,
4318
- rootSetState: this.builderContextSignal.rootSetState,
4319
- enableCache: !0
4291
+ rootSetState: this.builderContextSignal.rootSetState
4320
4292
  })
4321
4293
  )
4322
4294
  );
@@ -4337,7 +4309,7 @@ font-weight: ${i};
4337
4309
  "builder:component:stateChange",
4338
4310
  {
4339
4311
  detail: {
4340
- state: pe(this.builderContextSignal.rootState),
4312
+ state: ce(this.builderContextSignal.rootState),
4341
4313
  ref: {
4342
4314
  name: this.model
4343
4315
  }
@@ -4347,7 +4319,7 @@ font-weight: ${i};
4347
4319
  );
4348
4320
  },
4349
4321
  elementRef_onIniteditingbldr(e) {
4350
- window.addEventListener("message", this.processMessage), sn(), He({
4322
+ window.addEventListener("message", this.processMessage), on(), Me({
4351
4323
  ...this.locale ? {
4352
4324
  locale: this.locale
4353
4325
  } : {},
@@ -4361,7 +4333,7 @@ font-weight: ${i};
4361
4333
  this.builderContextSignal.componentInfos
4362
4334
  ).forEach((t) => {
4363
4335
  var o;
4364
- const n = Ot(t);
4336
+ const n = Nt(t);
4365
4337
  (o = window.parent) == null || o.postMessage(n, "*");
4366
4338
  }), window.addEventListener(
4367
4339
  "builder:component:stateChangeListenerActivated",
@@ -4372,7 +4344,7 @@ font-weight: ${i};
4372
4344
  const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
4373
4345
  `builder.overrides.${n}`
4374
4346
  ), r = t.get("apiKey") || t.get("builder.space");
4375
- n === this.model && r === this.apiKey && (!this.content || o === this.content.id) && be({
4347
+ n === this.model && r === this.apiKey && (!this.content || o === this.content.id) && me({
4376
4348
  model: this.model,
4377
4349
  apiKey: this.apiKey,
4378
4350
  apiVersion: this.builderContextSignal.apiVersion
@@ -4382,9 +4354,9 @@ font-weight: ${i};
4382
4354
  }
4383
4355
  }
4384
4356
  });
4385
- function ai(e, t, n, o, r, s) {
4357
+ function ri(e, t, n, o, r, s) {
4386
4358
  var i, l, a;
4387
- return e.builderContextSignal.content ? (c(), g(K(e.ContentWrapper), C({
4359
+ return e.builderContextSignal.content ? (c(), g(j(e.ContentWrapper), C({
4388
4360
  key: 0,
4389
4361
  ref: "elementRef",
4390
4362
  onClick: (u) => e.onClick(u),
@@ -4394,32 +4366,32 @@ function ai(e, t, n, o, r, s) {
4394
4366
  onIniteditingbldr: (u) => e.elementRef_onIniteditingbldr(u),
4395
4367
  onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
4396
4368
  }, { ...e.showContentProps, ...e.contentWrapperProps }), {
4397
- default: N(() => [
4398
- E(e.$slots, "default")
4369
+ default: W(() => [
4370
+ P(e.$slots, "default")
4399
4371
  ]),
4400
4372
  _: 3
4401
4373
  }, 16, ["onClick", "builder-content-id", "builder-model", "className", "onIniteditingbldr", "onInitpreviewingbldr"])) : S("", !0);
4402
4374
  }
4403
- const li = /* @__PURE__ */ b(si, [["render", ai]]), ci = f({
4375
+ const ii = /* @__PURE__ */ b(oi, [["render", ri]]), si = f({
4404
4376
  name: "content-styles",
4405
- components: { InlinedStyles: ke },
4377
+ components: { InlinedStyles: be },
4406
4378
  props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
4407
4379
  data() {
4408
4380
  return {
4409
4381
  injectedStyles: `
4410
- ${ni({
4382
+ ${_r({
4411
4383
  cssCode: this.cssCode,
4412
4384
  contentId: this.contentId
4413
4385
  })}
4414
- ${ti({
4386
+ ${Zr({
4415
4387
  customFonts: this.customFonts
4416
4388
  })}
4417
- ${ri(this.isNestedRender)}
4389
+ ${ti(this.isNestedRender)}
4418
4390
  `.trim()
4419
4391
  };
4420
4392
  }
4421
4393
  });
4422
- function di(e, t, n, o, r, s) {
4394
+ function ai(e, t, n, o, r, s) {
4423
4395
  const i = y("InlinedStyles");
4424
4396
  return c(), g(i, {
4425
4397
  id: "builderio-content",
@@ -4427,7 +4399,7 @@ function di(e, t, n, o, r, s) {
4427
4399
  nonce: e.nonce
4428
4400
  }, null, 8, ["styles", "nonce"]);
4429
4401
  }
4430
- const ui = /* @__PURE__ */ b(ci, [["render", di]]), pi = ({
4402
+ const li = /* @__PURE__ */ b(si, [["render", ai]]), ci = ({
4431
4403
  content: e,
4432
4404
  data: t,
4433
4405
  locale: n
@@ -4444,7 +4416,7 @@ const ui = /* @__PURE__ */ b(ci, [["render", di]]), pi = ({
4444
4416
  locale: n
4445
4417
  } : {}
4446
4418
  };
4447
- }, mi = ({
4419
+ }, di = ({
4448
4420
  content: e,
4449
4421
  data: t
4450
4422
  }) => e ? {
@@ -4454,14 +4426,14 @@ const ui = /* @__PURE__ */ b(ci, [["render", di]]), pi = ({
4454
4426
  ...t
4455
4427
  },
4456
4428
  meta: e == null ? void 0 : e.meta
4457
- } : void 0, hi = ct, fi = f({
4429
+ } : void 0, ui = it, pi = f({
4458
4430
  name: "content-component",
4459
4431
  components: {
4460
- EnableEditor: li,
4461
- InlinedScript: rt,
4462
- ContentStyles: ui,
4463
- Blocks: M,
4464
- DynamicDiv: Q
4432
+ EnableEditor: ii,
4433
+ InlinedScript: nt,
4434
+ ContentStyles: li,
4435
+ Blocks: L,
4436
+ DynamicDiv: G
4465
4437
  },
4466
4438
  props: [
4467
4439
  "apiKey",
@@ -4488,32 +4460,32 @@ const ui = /* @__PURE__ */ b(ci, [["render", di]]), pi = ({
4488
4460
  data() {
4489
4461
  var e, t, n, o;
4490
4462
  return {
4491
- scriptStr: Qr({
4463
+ scriptStr: Jr({
4492
4464
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4493
4465
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
4494
4466
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4495
4467
  contentId: (t = this.content) == null ? void 0 : t.id
4496
4468
  }),
4497
4469
  registeredComponents: [
4498
- ...Re(),
4470
+ ...we(),
4499
4471
  ...((n = this.customComponents) == null ? void 0 : n.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
4500
4472
  ].reduce(
4501
4473
  (r, { component: s, ...i }) => ({
4502
4474
  ...r,
4503
4475
  [i.name]: {
4504
- component: hi(s),
4505
- ...ee(i)
4476
+ component: ui(s),
4477
+ ...Z(i)
4506
4478
  }
4507
4479
  }),
4508
4480
  {}
4509
4481
  ),
4510
4482
  builderContextSignal: {
4511
- content: mi({
4483
+ content: di({
4512
4484
  content: this.content,
4513
4485
  data: this.data
4514
4486
  }),
4515
4487
  localState: void 0,
4516
- rootState: pi({
4488
+ rootState: ci({
4517
4489
  content: this.content,
4518
4490
  data: this.data,
4519
4491
  locale: this.locale
@@ -4524,12 +4496,12 @@ const ui = /* @__PURE__ */ b(ci, [["render", di]]), pi = ({
4524
4496
  apiKey: this.apiKey,
4525
4497
  apiVersion: this.apiVersion,
4526
4498
  componentInfos: [
4527
- ...Re(),
4499
+ ...we(),
4528
4500
  ...((o = this.customComponents) == null ? void 0 : o.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
4529
4501
  ].reduce(
4530
4502
  (r, { component: s, ...i }) => ({
4531
4503
  ...r,
4532
- [i.name]: ee(i)
4504
+ [i.name]: Z(i)
4533
4505
  }),
4534
4506
  {}
4535
4507
  ),
@@ -4544,18 +4516,18 @@ const ui = /* @__PURE__ */ b(ci, [["render", di]]), pi = ({
4544
4516
  provide() {
4545
4517
  const e = this;
4546
4518
  return {
4547
- [Ae.key]: {
4519
+ [Be.key]: {
4548
4520
  registeredComponents: e.registeredComponents
4549
4521
  }
4550
4522
  };
4551
4523
  },
4552
4524
  created() {
4553
4525
  var t, n;
4554
- this.apiKey || P.error(
4526
+ this.apiKey || B.error(
4555
4527
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4556
4528
  );
4557
4529
  const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
4558
- e && Y({
4530
+ e && J({
4559
4531
  code: e,
4560
4532
  context: this.context || {},
4561
4533
  localState: void 0,
@@ -4563,11 +4535,7 @@ const ui = /* @__PURE__ */ b(ci, [["render", di]]), pi = ({
4563
4535
  rootSetState: (o) => {
4564
4536
  this.builderContextSignal.rootState = o;
4565
4537
  },
4566
- isExpression: !1,
4567
- /**
4568
- * We don't want to cache the result of the JS code, since it's arbitrary side effect code.
4569
- */
4570
- enableCache: !1
4538
+ isExpression: !1
4571
4539
  });
4572
4540
  },
4573
4541
  methods: {
@@ -4576,7 +4544,7 @@ const ui = /* @__PURE__ */ b(ci, [["render", di]]), pi = ({
4576
4544
  }
4577
4545
  }
4578
4546
  });
4579
- function bi(e, t, n, o, r, s) {
4547
+ function mi(e, t, n, o, r, s) {
4580
4548
  const i = y("InlinedScript"), l = y("ContentStyles"), a = y("Blocks"), u = y("EnableEditor");
4581
4549
  return c(), g(u, C({
4582
4550
  nonce: e.nonce,
@@ -4594,8 +4562,8 @@ function bi(e, t, n, o, r, s) {
4594
4562
  contentWrapperProps: e.contentWrapperProps,
4595
4563
  trustedHosts: e.trustedHosts
4596
4564
  }, {}), {
4597
- default: N(() => {
4598
- var h, d, p, k, v, F, X;
4565
+ default: W(() => {
4566
+ var h, d, p, k, v, N, Y;
4599
4567
  return [
4600
4568
  e.isSsrAbTest ? (c(), g(i, {
4601
4569
  key: 0,
@@ -4612,7 +4580,7 @@ function bi(e, t, n, o, r, s) {
4612
4580
  customFonts: (v = (k = e.builderContextSignal.content) == null ? void 0 : k.data) == null ? void 0 : v.customFonts
4613
4581
  }, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : S("", !0),
4614
4582
  I(a, {
4615
- blocks: (X = (F = e.builderContextSignal.content) == null ? void 0 : F.data) == null ? void 0 : X.blocks,
4583
+ blocks: (Y = (N = e.builderContextSignal.content) == null ? void 0 : N.data) == null ? void 0 : Y.blocks,
4616
4584
  context: e.builderContextSignal,
4617
4585
  registeredComponents: e.registeredComponents,
4618
4586
  linkComponent: e.linkComponent
@@ -4622,12 +4590,12 @@ function bi(e, t, n, o, r, s) {
4622
4590
  _: 1
4623
4591
  }, 16, ["nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts"]);
4624
4592
  }
4625
- const gi = /* @__PURE__ */ b(fi, [["render", bi]]), yi = f({
4593
+ const hi = /* @__PURE__ */ b(pi, [["render", mi]]), fi = f({
4626
4594
  name: "content-variants",
4627
4595
  components: {
4628
- InlinedScript: rt,
4629
- InlinedStyles: ke,
4630
- ContentComponent: gi
4596
+ InlinedScript: nt,
4597
+ InlinedStyles: be,
4598
+ ContentComponent: hi
4631
4599
  },
4632
4600
  props: [
4633
4601
  "canTrack",
@@ -4651,13 +4619,13 @@ const gi = /* @__PURE__ */ b(fi, [["render", bi]]), yi = f({
4651
4619
  ],
4652
4620
  data() {
4653
4621
  return {
4654
- shouldRenderVariants: zr({
4655
- canTrack: G(this.canTrack),
4622
+ shouldRenderVariants: Hr({
4623
+ canTrack: z(this.canTrack),
4656
4624
  content: this.content
4657
4625
  }),
4658
4626
  TARGET: x,
4659
- getInitVariantsFnsScriptString: Gr,
4660
- getVariants: Z
4627
+ getInitVariantsFnsScriptString: qr,
4628
+ getVariants: X
4661
4629
  };
4662
4630
  },
4663
4631
  mounted() {
@@ -4665,8 +4633,8 @@ const gi = /* @__PURE__ */ b(fi, [["render", bi]]), yi = f({
4665
4633
  computed: {
4666
4634
  updateCookieAndStylesScriptStr() {
4667
4635
  var e;
4668
- return Yr(
4669
- Z(this.content).map((t) => ({
4636
+ return zr(
4637
+ X(this.content).map((t) => ({
4670
4638
  id: t.testVariationId,
4671
4639
  testRatio: t.testRatio
4672
4640
  })),
@@ -4674,21 +4642,21 @@ const gi = /* @__PURE__ */ b(fi, [["render", bi]]), yi = f({
4674
4642
  );
4675
4643
  },
4676
4644
  hideVariantsStyleString() {
4677
- return Z(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
4645
+ return X(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
4678
4646
  },
4679
4647
  defaultContent() {
4680
4648
  var e;
4681
4649
  return this.shouldRenderVariants ? {
4682
4650
  ...this.content,
4683
4651
  testVariationId: (e = this.content) == null ? void 0 : e.id
4684
- } : pn({
4652
+ } : dn({
4685
4653
  item: this.content,
4686
- canTrack: G(this.canTrack)
4654
+ canTrack: z(this.canTrack)
4687
4655
  });
4688
4656
  }
4689
4657
  }
4690
4658
  });
4691
- function ki(e, t, n, o, r, s) {
4659
+ function bi(e, t, n, o, r, s) {
4692
4660
  const i = y("InlinedScript"), l = y("InlinedStyles"), a = y("ContentComponent");
4693
4661
  return c(), m(T, null, [
4694
4662
  !e.isNestedRender && e.TARGET !== "reactNative" ? (c(), g(i, {
@@ -4708,7 +4676,7 @@ function ki(e, t, n, o, r, s) {
4708
4676
  scriptStr: e.updateCookieAndStylesScriptStr,
4709
4677
  nonce: e.nonce || ""
4710
4678
  }, null, 8, ["scriptStr", "nonce"]),
4711
- (c(!0), m(T, null, V(e.getVariants(e.content), (u, h) => (c(), g(a, C({
4679
+ (c(!0), m(T, null, A(e.getVariants(e.content), (u, h) => (c(), g(a, C({
4712
4680
  key: u.testVariationId,
4713
4681
  isNestedRender: e.isNestedRender,
4714
4682
  nonce: e.nonce,
@@ -4758,13 +4726,13 @@ function ki(e, t, n, o, r, s) {
4758
4726
  }), null, 16, ["nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
4759
4727
  ], 64);
4760
4728
  }
4761
- const vi = /* @__PURE__ */ b(yi, [["render", ki]]), Si = async ({
4729
+ const gi = /* @__PURE__ */ b(fi, [["render", bi]]), yi = async ({
4762
4730
  builderContextValue: e,
4763
4731
  symbol: t
4764
4732
  }) => {
4765
4733
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4766
4734
  (e != null && e.apiKey))
4767
- return be({
4735
+ return me({
4768
4736
  model: t.model,
4769
4737
  apiKey: e.apiKey,
4770
4738
  apiVersion: e.apiVersion,
@@ -4774,11 +4742,11 @@ const vi = /* @__PURE__ */ b(yi, [["render", ki]]), Si = async ({
4774
4742
  }
4775
4743
  }
4776
4744
  }).catch((n) => {
4777
- P.error("Could not fetch symbol content: ", n);
4745
+ B.error("Could not fetch symbol content: ", n);
4778
4746
  });
4779
- }, Ci = f({
4747
+ }, ki = f({
4780
4748
  name: "builder-symbol",
4781
- components: { ContentVariants: vi, DynamicDiv: Q },
4749
+ components: { ContentVariants: gi, DynamicDiv: G },
4782
4750
  props: [
4783
4751
  "symbol",
4784
4752
  "attributes",
@@ -4790,7 +4758,7 @@ const vi = /* @__PURE__ */ b(yi, [["render", ki]]), Si = async ({
4790
4758
  ],
4791
4759
  data() {
4792
4760
  var e;
4793
- return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: A };
4761
+ return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: V };
4794
4762
  },
4795
4763
  mounted() {
4796
4764
  this.setContent();
@@ -4813,7 +4781,7 @@ const vi = /* @__PURE__ */ b(yi, [["render", ki]]), Si = async ({
4813
4781
  className() {
4814
4782
  var e, t;
4815
4783
  return [
4816
- this.attributes[_()],
4784
+ this.attributes[Q()],
4817
4785
  "builder-symbol",
4818
4786
  (e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
4819
4787
  (t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
@@ -4827,7 +4795,7 @@ const vi = /* @__PURE__ */ b(yi, [["render", ki]]), Si = async ({
4827
4795
  },
4828
4796
  methods: {
4829
4797
  setContent() {
4830
- this.contentToUse || Si({
4798
+ this.contentToUse || yi({
4831
4799
  symbol: this.symbol,
4832
4800
  builderContextValue: this.builderContext
4833
4801
  }).then((e) => {
@@ -4836,10 +4804,10 @@ const vi = /* @__PURE__ */ b(yi, [["render", ki]]), Si = async ({
4836
4804
  }
4837
4805
  }
4838
4806
  });
4839
- function Ti(e, t, n, o, r, s) {
4807
+ function vi(e, t, n, o, r, s) {
4840
4808
  var l, a, u, h, d;
4841
4809
  const i = y("ContentVariants");
4842
- return c(), m("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4810
+ return c(), m("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4843
4811
  I(i, {
4844
4812
  nonce: e.builderContext.nonce,
4845
4813
  isNestedRender: !0,
@@ -4864,41 +4832,41 @@ function Ti(e, t, n, o, r, s) {
4864
4832
  }, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
4865
4833
  ], 16);
4866
4834
  }
4867
- const wi = /* @__PURE__ */ b(Ci, [["render", Ti]]);
4835
+ const Si = /* @__PURE__ */ b(ki, [["render", vi]]);
4868
4836
  export {
4869
- Ni as A,
4870
- ye as B,
4871
- _n as C,
4872
- no as F,
4873
- uo as I,
4874
- ho as S,
4875
- Mo as T,
4876
- jr as V,
4877
- ke as _,
4878
- Fi as a,
4879
- ge as b,
4880
- Ai as c,
4837
+ xi as A,
4838
+ fe as B,
4839
+ Qn as C,
4840
+ eo as F,
4841
+ lo as I,
4842
+ po as S,
4843
+ Lo as T,
4844
+ Lr as V,
4845
+ be as _,
4846
+ Ai as a,
4847
+ he as b,
4848
+ Pi as c,
4881
4849
  b as d,
4882
- Y as e,
4883
- Wi as f,
4884
- Yn as g,
4885
- _ as h,
4886
- le as i,
4887
- wt as j,
4888
- wi as k,
4889
- M as l,
4890
- vi as m,
4891
- Ft as n,
4892
- Ot as o,
4893
- We as p,
4894
- xi as q,
4895
- Lt as r,
4896
- Ei as s,
4897
- Pi as t,
4898
- Vi as u,
4899
- vn as v,
4900
- hi as w,
4901
- Sn as x,
4902
- be as y,
4903
- Bi as z
4850
+ J as e,
4851
+ Bi as f,
4852
+ Jn as g,
4853
+ Q as h,
4854
+ ie as i,
4855
+ vt as j,
4856
+ Si as k,
4857
+ L as l,
4858
+ gi as m,
4859
+ Wt as n,
4860
+ Nt as o,
4861
+ Ae as p,
4862
+ Ri as q,
4863
+ Ot as r,
4864
+ Ii as s,
4865
+ $i as t,
4866
+ Ei as u,
4867
+ yn as v,
4868
+ ui as w,
4869
+ kn as x,
4870
+ me as y,
4871
+ wi as z
4904
4872
  };