@builder.io/sdk-vue 2.0.28 → 2.0.30

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