@builder.io/sdk-vue 0.13.4 → 1.0.2

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 (73) hide show
  1. package/lib/browser/{block-styles-8Mrc6TaN.cjs → block-styles-GmtukeHH.cjs} +1 -1
  2. package/lib/browser/{block-styles-VSarafRd.js → block-styles-byLJBAln.js} +1 -1
  3. package/lib/browser/{block-wrapper-66sQ44dq.js → block-wrapper-4Es33tGt.js} +3 -3
  4. package/lib/browser/{block-wrapper-QFMQKrxu.cjs → block-wrapper-SJBzGVy8.cjs} +1 -1
  5. package/lib/browser/{component-ref-Jc5MVYML.js → component-ref-DHTOn9mP.js} +2 -2
  6. package/lib/browser/{component-ref-e6oQ52we.cjs → component-ref-Wwi4AhMm.cjs} +1 -1
  7. package/lib/browser/components/content/components/enable-editor.vue.d.ts +0 -3
  8. package/lib/browser/components/content/content.vue.d.ts +0 -3
  9. package/lib/browser/components/content-variants/content-variants.types.d.ts +0 -2
  10. package/lib/browser/components/content-variants/content-variants.vue.d.ts +0 -3
  11. package/lib/browser/constants/sdk-version.d.ts +1 -1
  12. package/lib/browser/functions/get-content/index.d.ts +0 -10
  13. package/lib/browser/functions/get-content/types.d.ts +0 -11
  14. package/lib/browser/functions/register-component.d.ts +0 -9
  15. package/lib/browser/{get-block-properties-7tpIl-af.cjs → get-block-properties-a6w9tGuX.cjs} +1 -1
  16. package/lib/browser/{get-block-properties-E1fQUQGr.js → get-block-properties-ijlhyTBV.js} +1 -1
  17. package/lib/browser/{index-td6tu50h.cjs → index-EQqGfI3J.cjs} +22 -22
  18. package/lib/browser/{index-G5gQ-de1.js → index-EjEFGone.js} +643 -674
  19. package/lib/browser/index-helpers/blocks-exports.d.ts +0 -121
  20. package/lib/browser/index.cjs +1 -1
  21. package/lib/browser/index.js +20 -24
  22. package/lib/browser/{repeated-block-8lWplUGg.js → repeated-block-NX4X8qNw.js} +2 -2
  23. package/lib/browser/{repeated-block-wd62QzHL.cjs → repeated-block-QXf4RPYi.cjs} +1 -1
  24. package/lib/browser/server-index.d.ts +1 -1
  25. package/lib/{node/block-styles-LvQRanzO.js → edge/block-styles-nM3GakSc.js} +1 -1
  26. package/lib/edge/{block-styles-3S-cNGqc.cjs → block-styles-og8a90_D.cjs} +1 -1
  27. package/lib/edge/{block-wrapper-K8bx-662.js → block-wrapper-0ze208e0.js} +3 -3
  28. package/lib/{node/block-wrapper-zBWfSpeB.cjs → edge/block-wrapper-GVdLgl_L.cjs} +1 -1
  29. package/lib/{node/component-ref-EaGD0M8C.js → edge/component-ref-9uzzAvEn.js} +2 -2
  30. package/lib/{node/component-ref-cDVRwBVV.cjs → edge/component-ref-KymHsjAn.cjs} +1 -1
  31. package/lib/edge/components/content/components/enable-editor.vue.d.ts +0 -3
  32. package/lib/edge/components/content/content.vue.d.ts +0 -3
  33. package/lib/edge/components/content-variants/content-variants.types.d.ts +0 -2
  34. package/lib/edge/components/content-variants/content-variants.vue.d.ts +0 -3
  35. package/lib/edge/constants/sdk-version.d.ts +1 -1
  36. package/lib/edge/functions/get-content/index.d.ts +0 -10
  37. package/lib/edge/functions/get-content/types.d.ts +0 -11
  38. package/lib/edge/functions/register-component.d.ts +0 -9
  39. package/lib/{node/get-block-properties-BzFnffon.js → edge/get-block-properties-Sj2bfcdv.js} +1 -1
  40. package/lib/edge/{get-block-properties-iw3OdHrP.cjs → get-block-properties-hfo11TK8.cjs} +1 -1
  41. package/lib/edge/{index--HHuGCHA.cjs → index-MZywxJJr.cjs} +30 -30
  42. package/lib/edge/{index-m4U8kFb2.js → index-cXhNpyrk.js} +1386 -1417
  43. package/lib/edge/index-helpers/blocks-exports.d.ts +0 -121
  44. package/lib/edge/index.cjs +1 -1
  45. package/lib/edge/index.js +20 -24
  46. package/lib/edge/{repeated-block-dpBMDmLF.cjs → repeated-block-gB4qWScI.cjs} +1 -1
  47. package/lib/edge/{repeated-block-y9wjDQwk.js → repeated-block-vR_rOzto.js} +2 -2
  48. package/lib/edge/server-index.d.ts +1 -1
  49. package/lib/{edge/block-styles-GWwtTBOa.js → node/block-styles-2eD0_ilN.js} +1 -1
  50. package/lib/node/{block-styles-AGTK3ZdM.cjs → block-styles-8QKhMpOu.cjs} +1 -1
  51. package/lib/node/{block-wrapper-II4ojYnp.js → block-wrapper-0C2rsISY.js} +3 -3
  52. package/lib/{edge/block-wrapper-poSyjD06.cjs → node/block-wrapper-nD8Aqg5u.cjs} +1 -1
  53. package/lib/{edge/component-ref-hvsNvKeU.js → node/component-ref-n65Xlkfj.js} +2 -2
  54. package/lib/{edge/component-ref-XGWac3jR.cjs → node/component-ref-xqgMkHpl.cjs} +1 -1
  55. package/lib/node/components/content/components/enable-editor.vue.d.ts +0 -3
  56. package/lib/node/components/content/content.vue.d.ts +0 -3
  57. package/lib/node/components/content-variants/content-variants.types.d.ts +0 -2
  58. package/lib/node/components/content-variants/content-variants.vue.d.ts +0 -3
  59. package/lib/node/constants/sdk-version.d.ts +1 -1
  60. package/lib/node/functions/get-content/index.d.ts +0 -10
  61. package/lib/node/functions/get-content/types.d.ts +0 -11
  62. package/lib/node/functions/register-component.d.ts +0 -9
  63. package/lib/node/{get-block-properties-kno3efeu.cjs → get-block-properties-hNJGG8C9.cjs} +1 -1
  64. package/lib/{edge/get-block-properties-52TjzPmw.js → node/get-block-properties-vV36E1dY.js} +1 -1
  65. package/lib/node/{index-Rdghmqju.cjs → index-ISa2itzg.cjs} +8 -8
  66. package/lib/node/{index-F38jg9qf.js → index-VLYHUWR3.js} +218 -246
  67. package/lib/node/index-helpers/blocks-exports.d.ts +0 -121
  68. package/lib/node/index.cjs +1 -1
  69. package/lib/node/index.js +20 -24
  70. package/lib/node/{repeated-block-d6NkhW6B.js → repeated-block-H1kFAxq6.js} +2 -2
  71. package/lib/node/{repeated-block-awHmNE3o.cjs → repeated-block-xeAYfiK5.cjs} +1 -1
  72. package/lib/node/server-index.d.ts +1 -1
  73. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import "./style.css";
2
- import { defineComponent as f, openBlock as u, createElementBlock as h, Fragment as I, createBlock as g, resolveDynamicComponent as D, mergeProps as C, toHandlers as E, withCtx as B, renderSlot as P, resolveComponent as k, createTextVNode as it, toDisplayString as _, defineAsyncComponent as q, createVNode as V, renderList as O, createCommentVNode as v, h as Te, createElementVNode as Z, normalizeStyle as ee, normalizeClass as Re, markRaw as at } from "vue";
3
- const lt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ct = (e) => typeof e == "string" && lt.has(e.toLowerCase());
2
+ import { defineComponent as f, openBlock as u, createElementBlock as h, Fragment as $, createBlock as g, resolveDynamicComponent as M, mergeProps as w, toHandlers as E, withCtx as V, renderSlot as P, resolveComponent as k, createTextVNode as nt, toDisplayString as Y, defineAsyncComponent as K, createVNode as A, renderList as O, createCommentVNode as v, h as Ie, createElementVNode as X, normalizeStyle as Z, normalizeClass as $e, markRaw as ot } from "vue";
3
+ const st = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), rt = (e) => typeof e == "string" && st.has(e.toLowerCase());
4
4
  function F(e = {}, t, n) {
5
5
  const o = {};
6
6
  for (const s in e) {
@@ -11,11 +11,11 @@ function F(e = {}, t, n) {
11
11
  }
12
12
  return o;
13
13
  }
14
- const dt = f({
14
+ const it = f({
15
15
  name: "dynamic-renderer",
16
16
  props: ["attributes", "actionAttributes", "TagName"],
17
17
  data() {
18
- return { isEmptyElement: ct };
18
+ return { isEmptyElement: rt };
19
19
  }
20
20
  }), y = (e, t) => {
21
21
  const n = e.__vccOpts || e;
@@ -23,26 +23,26 @@ const dt = f({
23
23
  n[o] = s;
24
24
  return n;
25
25
  };
26
- function ut(e, t, n, o, s, r) {
27
- return e.isEmptyElement(e.TagName) ? (u(), g(D(e.TagName), C({ key: 1 }, e.attributes, E(e.actionAttributes)), null, 16)) : (u(), h(I, { key: 0 }, [
28
- typeof e.TagName == "string" ? (u(), g(D(e.TagName), C({ key: 0 }, e.attributes, E(e.actionAttributes)), {
29
- default: B(() => [
26
+ function at(e, t, n, o, s, r) {
27
+ return e.isEmptyElement(e.TagName) ? (u(), g(M(e.TagName), w({ key: 1 }, e.attributes, E(e.actionAttributes)), null, 16)) : (u(), h($, { key: 0 }, [
28
+ typeof e.TagName == "string" ? (u(), g(M(e.TagName), w({ key: 0 }, e.attributes, E(e.actionAttributes)), {
29
+ default: V(() => [
30
30
  P(e.$slots, "default")
31
31
  ]),
32
32
  _: 3
33
- }, 16)) : (u(), g(D(e.TagName), C({ key: 1 }, e.attributes, E(e.actionAttributes)), {
34
- default: B(() => [
33
+ }, 16)) : (u(), g(M(e.TagName), w({ key: 1 }, e.attributes, E(e.actionAttributes)), {
34
+ default: V(() => [
35
35
  P(e.$slots, "default")
36
36
  ]),
37
37
  _: 3
38
38
  }, 16))
39
39
  ], 64));
40
40
  }
41
- const se = /* @__PURE__ */ y(dt, [["render", ut]]), qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41
+ const oe = /* @__PURE__ */ y(it, [["render", at]]), js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42
42
  __proto__: null,
43
- default: se
44
- }, Symbol.toStringTag, { value: "Module" })), A = "vue", re = () => {
45
- switch (A) {
43
+ default: oe
44
+ }, Symbol.toStringTag, { value: "Module" })), x = "vue", se = () => {
45
+ switch (x) {
46
46
  case "react":
47
47
  case "reactNative":
48
48
  case "rsc":
@@ -53,24 +53,23 @@ const se = /* @__PURE__ */ y(dt, [["render", ut]]), qs = /* @__PURE__ */ Object.
53
53
  case "qwik":
54
54
  return "class";
55
55
  }
56
- }, pt = f({
56
+ }, lt = f({
57
57
  name: "builder-button",
58
- components: { DynamicRenderer: se },
58
+ components: { DynamicRenderer: oe },
59
59
  props: [
60
- "link",
61
- "builderLinkComponent",
62
60
  "attributes",
61
+ "link",
63
62
  "openLinkInNewTab",
63
+ "builderLinkComponent",
64
64
  "text"
65
65
  ],
66
66
  data() {
67
- return { getClassPropName: re, filterAttrs: F };
67
+ return { getClassPropName: se, filterAttrs: F };
68
68
  }
69
69
  });
70
- function mt(e, t, n, o, s, r) {
70
+ function ct(e, t, n, o, s, r) {
71
71
  const i = k("dynamic-renderer");
72
72
  return u(), g(i, {
73
- TagName: e.link ? e.builderLinkComponent || "a" : "button",
74
73
  attributes: {
75
74
  ...e.filterAttrs(e.attributes, "v-on:", !1),
76
75
  [e.getClassPropName()]: `${e.link ? "" : "builder-button"} ${e.attributes[e.getClassPropName()] || ""}`,
@@ -82,15 +81,16 @@ function mt(e, t, n, o, s, r) {
82
81
  role: "button"
83
82
  }
84
83
  },
84
+ TagName: e.link ? e.builderLinkComponent || "a" : "button",
85
85
  actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
86
86
  }, {
87
- default: B(() => [
88
- it(_(e.text), 1)
87
+ default: V(() => [
88
+ nt(Y(e.text), 1)
89
89
  ]),
90
90
  _: 1
91
- }, 8, ["TagName", "attributes", "actionAttributes"]);
91
+ }, 8, ["attributes", "TagName", "actionAttributes"]);
92
92
  }
93
- const ht = /* @__PURE__ */ y(pt, [["render", mt]]), ft = Symbol(), te = {
93
+ const dt = /* @__PURE__ */ y(lt, [["render", ct]]), ut = Symbol(), ee = {
94
94
  Builder: {
95
95
  content: null,
96
96
  context: {},
@@ -105,12 +105,12 @@ const ht = /* @__PURE__ */ y(pt, [["render", mt]]), ft = Symbol(), te = {
105
105
  BlocksWrapper: "div",
106
106
  BlocksWrapperProps: {}
107
107
  },
108
- key: ft
109
- }, bt = Symbol(), Ee = {
108
+ key: ut
109
+ }, pt = Symbol(), Te = {
110
110
  Components: { registeredComponents: {} },
111
- key: bt
111
+ key: pt
112
112
  };
113
- function gt(e) {
113
+ function mt(e) {
114
114
  var t;
115
115
  return {
116
116
  ...(t = e.component) == null ? void 0 : t.options,
@@ -121,29 +121,29 @@ function gt(e) {
121
121
  builderBlock: e
122
122
  };
123
123
  }
124
- const z = "[Builder.io]: ", $ = {
125
- log: (...e) => console.log(z, ...e),
126
- error: (...e) => console.error(z, ...e),
127
- warn: (...e) => console.warn(z, ...e),
128
- debug: (...e) => console.debug(z, ...e)
124
+ const q = "[Builder.io]: ", T = {
125
+ log: (...e) => console.log(q, ...e),
126
+ error: (...e) => console.error(q, ...e),
127
+ warn: (...e) => console.warn(q, ...e),
128
+ debug: (...e) => console.debug(q, ...e)
129
129
  };
130
- function w() {
130
+ function I() {
131
131
  return typeof window < "u" && typeof document < "u";
132
132
  }
133
- function yt() {
134
- return w() && window.self !== window.top;
133
+ function ht() {
134
+ return I() && window.self !== window.top;
135
135
  }
136
- function T() {
137
- return yt() && window.location.search.indexOf("builder.frameEditing=") !== -1;
136
+ function R() {
137
+ return ht() && window.location.search.indexOf("builder.frameEditing=") !== -1;
138
138
  }
139
- const kt = () => {
140
- if (w()) {
139
+ const ft = () => {
140
+ if (I()) {
141
141
  const e = new URL(location.href);
142
142
  return e.pathname === "" && (e.pathname = "/"), e;
143
143
  } else
144
144
  return console.warn("Cannot get location for tracking in non-browser environment"), null;
145
- }, St = () => typeof navigator == "object" && navigator.userAgent || "", Pe = () => {
146
- const e = St(), t = {
145
+ }, bt = () => typeof navigator == "object" && navigator.userAgent || "", Re = () => {
146
+ const e = bt(), t = {
147
147
  Android() {
148
148
  return e.match(/Android/i);
149
149
  },
@@ -160,15 +160,15 @@ const kt = () => {
160
160
  return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
161
161
  },
162
162
  any() {
163
- return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || A === "reactNative";
163
+ return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || x === "reactNative";
164
164
  }
165
- }, n = e.match(/Tablet|iPad/i), o = kt();
165
+ }, n = e.match(/Tablet|iPad/i), o = ft();
166
166
  return {
167
167
  urlPath: o == null ? void 0 : o.pathname,
168
168
  host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
169
169
  device: n ? "tablet" : t.any() ? "mobile" : "desktop"
170
170
  };
171
- }, vt = ({
171
+ }, gt = ({
172
172
  builder: e,
173
173
  context: t,
174
174
  event: n,
@@ -180,14 +180,14 @@ const kt = () => {
180
180
  builder: e,
181
181
  context: t,
182
182
  event: n
183
- }), Ct = () => ({
184
- isEditing: T(),
185
- isBrowser: w(),
186
- isServer: !w(),
187
- getUserAttributes: () => Pe()
188
- }), wt = (e, {
183
+ }), yt = () => ({
184
+ isEditing: R(),
185
+ isBrowser: I(),
186
+ isServer: !I(),
187
+ getUserAttributes: () => Re()
188
+ }), kt = (e, {
189
189
  isExpression: t = !0
190
- }) => /* 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, fe = ({
190
+ }) => /* 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, he = ({
191
191
  code: e,
192
192
  builder: t,
193
193
  context: n,
@@ -196,11 +196,11 @@ const kt = () => {
196
196
  rootSetState: r,
197
197
  rootState: i
198
198
  }) => {
199
- const a = vt({
199
+ const a = gt({
200
200
  builder: t,
201
201
  context: n,
202
202
  event: o,
203
- state: Ae({
203
+ state: Ee({
204
204
  rootState: i,
205
205
  localState: s,
206
206
  rootSetState: r
@@ -208,7 +208,7 @@ const kt = () => {
208
208
  });
209
209
  return new Function(...a.map(([l]) => l), e)(...a.map(([, l]) => l));
210
210
  };
211
- function Ae({
211
+ function Ee({
212
212
  rootState: e,
213
213
  localState: t,
214
214
  rootSetState: n
@@ -218,7 +218,7 @@ function Ae({
218
218
  if (t && s in t)
219
219
  return t[s];
220
220
  const r = o[s];
221
- return typeof r == "object" ? Ae({
221
+ return typeof r == "object" ? Ee({
222
222
  rootState: r,
223
223
  localState: void 0,
224
224
  rootSetState: n ? (i) => {
@@ -234,18 +234,18 @@ function Ae({
234
234
  });
235
235
  }
236
236
  const N = (e) => e != null;
237
- function It() {
237
+ function St() {
238
238
  var e;
239
239
  return typeof process < "u" && N((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
240
240
  }
241
- const $t = () => {
241
+ const vt = () => {
242
242
  var o;
243
- if (!It())
243
+ if (!St())
244
244
  return !1;
245
245
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
246
- return e && t && !n ? ($.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;
247
- }, Tt = (e) => (w() || $t(), fe(e));
248
- function Y({
246
+ return e && t && !n ? (T.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;
247
+ }, Ct = (e) => (I() || vt(), he(e));
248
+ function G({
249
249
  code: e,
250
250
  context: t,
251
251
  localState: n,
@@ -255,14 +255,14 @@ function Y({
255
255
  isExpression: i = !0
256
256
  }) {
257
257
  if (e === "") {
258
- $.warn("Skipping evaluation of empty code block.");
258
+ T.warn("Skipping evaluation of empty code block.");
259
259
  return;
260
260
  }
261
261
  const a = {
262
- code: wt(e, {
262
+ code: kt(e, {
263
263
  isExpression: i
264
264
  }),
265
- builder: Ct(),
265
+ builder: yt(),
266
266
  context: t,
267
267
  event: r,
268
268
  rootSetState: s,
@@ -270,21 +270,21 @@ function Y({
270
270
  localState: n
271
271
  };
272
272
  try {
273
- return Tt(a);
273
+ return Ct(a);
274
274
  } catch (l) {
275
- $.error("Failed code evaluation: " + l.message, {
275
+ T.error("Failed code evaluation: " + l.message, {
276
276
  code: e
277
277
  });
278
278
  return;
279
279
  }
280
280
  }
281
- const j = (e) => JSON.parse(JSON.stringify(e)), xe = (e, t, n) => {
281
+ const H = (e) => JSON.parse(JSON.stringify(e)), Pe = (e, t, n) => {
282
282
  if (Object(e) !== e)
283
283
  return e;
284
284
  const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
285
285
  return o.slice(0, -1).reduce((s, r, i) => Object(s[r]) === s[r] ? s[r] : s[r] = Math.abs(Number(o[i + 1])) >> 0 === +o[i + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
286
286
  };
287
- const Rt = ({
287
+ const wt = ({
288
288
  block: e,
289
289
  context: t,
290
290
  localState: n,
@@ -293,7 +293,7 @@ const Rt = ({
293
293
  }) => {
294
294
  if (!e.bindings)
295
295
  return e;
296
- const r = j(e), i = {
296
+ const r = H(e), i = {
297
297
  ...r,
298
298
  properties: {
299
299
  ...r.properties
@@ -303,18 +303,18 @@ const Rt = ({
303
303
  }
304
304
  };
305
305
  for (const a in e.bindings) {
306
- const l = e.bindings[a], d = Y({
306
+ const l = e.bindings[a], d = G({
307
307
  code: l,
308
308
  localState: n,
309
309
  rootState: o,
310
310
  rootSetState: s,
311
311
  context: t
312
312
  });
313
- xe(i, a, d);
313
+ Pe(i, a, d);
314
314
  }
315
315
  return i;
316
316
  };
317
- function Ve({
317
+ function xe({
318
318
  block: e,
319
319
  context: t,
320
320
  shouldEvaluateBindings: n,
@@ -323,7 +323,7 @@ function Ve({
323
323
  rootSetState: r
324
324
  }) {
325
325
  const i = e;
326
- return n ? Rt({
326
+ return n ? wt({
327
327
  block: i,
328
328
  localState: o,
329
329
  rootState: s,
@@ -331,41 +331,41 @@ function Ve({
331
331
  context: t
332
332
  }) : i;
333
333
  }
334
- const Et = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Be = (e) => Object.entries(e).map(([n, o]) => {
334
+ const It = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Ae = (e) => Object.entries(e).map(([n, o]) => {
335
335
  if (typeof o == "string")
336
- return `${Et(n)}: ${o};`;
337
- }).filter(N), Pt = (e) => Be(e).join(`
338
- `), zs = ({
336
+ return `${It(n)}: ${o};`;
337
+ }).filter(N), $t = (e) => Ae(e).join(`
338
+ `), Ks = ({
339
339
  mediaQuery: e,
340
340
  className: t,
341
341
  styles: n
342
342
  }) => {
343
343
  const o = `.${t} {
344
- ${Pt(n)}
344
+ ${$t(n)}
345
345
  }`;
346
346
  return e ? `${e} {
347
347
  ${o}
348
348
  }` : o;
349
349
  };
350
- function At({
350
+ function Tt({
351
351
  style: e
352
352
  }) {
353
353
  return e;
354
354
  }
355
- const Js = ({
355
+ const qs = ({
356
356
  block: e,
357
357
  context: t
358
- }) => We(At({
358
+ }) => Ve(Tt({
359
359
  style: e.style || {},
360
360
  context: t,
361
361
  block: e
362
362
  }));
363
- function We(e) {
364
- switch (A) {
363
+ function Ve(e) {
364
+ switch (x) {
365
365
  case "svelte":
366
366
  case "vue":
367
367
  case "solid":
368
- return Be(e).join(" ");
368
+ return Ae(e).join(" ");
369
369
  case "qwik":
370
370
  case "reactNative":
371
371
  case "react":
@@ -373,7 +373,7 @@ function We(e) {
373
373
  return e;
374
374
  }
375
375
  }
376
- function xt(e, t, n = {}) {
376
+ function Rt(e, t, n = {}) {
377
377
  let o, s, r, i = null, a = 0;
378
378
  const l = function() {
379
379
  a = n.leading === !1 ? 0 : Date.now(), i = null, r = e.apply(o, s), i || (o = s = null);
@@ -395,59 +395,59 @@ function U(e, ...t) {
395
395
  }
396
396
  return n;
397
397
  }
398
- const ie = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
399
- function Vt(e) {
398
+ const re = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
399
+ function Et(e) {
400
400
  for (const t of e)
401
401
  switch (t.trigger) {
402
402
  case "pageLoad":
403
- Ne(t);
403
+ Be(t);
404
404
  break;
405
405
  case "hover":
406
- Wt(t);
406
+ xt(t);
407
407
  break;
408
408
  case "scrollInView":
409
- Nt(t);
409
+ At(t);
410
410
  break;
411
411
  }
412
412
  }
413
- function ae(e) {
413
+ function ie(e) {
414
414
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
415
415
  }
416
- function le(e, t) {
417
- const n = Bt(e), o = getComputedStyle(t), s = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, i = [s, r];
416
+ function ae(e, t) {
417
+ const n = Pt(e), o = getComputedStyle(t), s = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, i = [s, r];
418
418
  for (const a of i)
419
419
  for (const l of n)
420
420
  l in a || (a[l] = o[l]);
421
421
  }
422
- function Bt(e) {
422
+ function Pt(e) {
423
423
  const t = [];
424
424
  for (const n of e.steps)
425
425
  for (const o in n.styles)
426
426
  t.indexOf(o) === -1 && t.push(o);
427
427
  return t;
428
428
  }
429
- function Ne(e) {
429
+ function Be(e) {
430
430
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
431
431
  if (!t.length) {
432
- ae(e.elementId || e.id || "");
432
+ ie(e.elementId || e.id || "");
433
433
  return;
434
434
  }
435
435
  Array.from(t).forEach((n) => {
436
- le(e, n), n.style.transition = "none", n.style.transitionDelay = "0", U(n.style, e.steps[0].styles), setTimeout(() => {
437
- n.style.transition = `all ${e.duration}s ${ie(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), U(n.style, e.steps[1].styles), setTimeout(() => {
436
+ ae(e, n), n.style.transition = "none", n.style.transitionDelay = "0", U(n.style, e.steps[0].styles), setTimeout(() => {
437
+ n.style.transition = `all ${e.duration}s ${re(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), U(n.style, e.steps[1].styles), setTimeout(() => {
438
438
  n.style.transition = "", n.style.transitionDelay = "";
439
439
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
440
440
  });
441
441
  });
442
442
  }
443
- function Wt(e) {
443
+ function xt(e) {
444
444
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
445
445
  if (!t.length) {
446
- ae(e.elementId || e.id || "");
446
+ ie(e.elementId || e.id || "");
447
447
  return;
448
448
  }
449
449
  Array.from(t).forEach((n) => {
450
- le(e, n);
450
+ ae(e, n);
451
451
  const o = e.steps[0].styles, s = e.steps[1].styles;
452
452
  function r() {
453
453
  U(n.style, o);
@@ -456,18 +456,18 @@ function Wt(e) {
456
456
  U(n.style, s);
457
457
  }
458
458
  r(), n.addEventListener("mouseenter", i), n.addEventListener("mouseleave", r), setTimeout(() => {
459
- n.style.transition = `all ${e.duration}s ${ie(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
459
+ n.style.transition = `all ${e.duration}s ${re(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
460
460
  });
461
461
  });
462
462
  }
463
- function Nt(e) {
463
+ function At(e) {
464
464
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
465
465
  if (!t.length) {
466
- ae(e.elementId || e.id || "");
466
+ ie(e.elementId || e.id || "");
467
467
  return;
468
468
  }
469
469
  Array.from(t).forEach((n) => {
470
- le(e, n);
470
+ ae(e, n);
471
471
  let o = !1, s = !1;
472
472
  function r() {
473
473
  !o && a(n) ? (o = !0, s = !0, setTimeout(() => {
@@ -476,7 +476,7 @@ function Nt(e) {
476
476
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
477
477
  })) : e.repeat && o && !s && !a(n) && (o = !1, U(n.style, e.steps[0].styles));
478
478
  }
479
- const i = xt(r, 200, {
479
+ const i = Rt(r, 200, {
480
480
  leading: !1
481
481
  });
482
482
  function a(m) {
@@ -488,20 +488,20 @@ function Nt(e) {
488
488
  U(n.style, l);
489
489
  }
490
490
  d(), setTimeout(() => {
491
- n.style.transition = `all ${e.duration}s ${ie(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
491
+ n.style.transition = `all ${e.duration}s ${re(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
492
492
  }), document.addEventListener("scroll", i, {
493
493
  capture: !0,
494
494
  passive: !0
495
495
  }), r();
496
496
  });
497
497
  }
498
- const Ft = ({
498
+ const Vt = ({
499
499
  block: e,
500
500
  context: t,
501
501
  registeredComponents: n
502
502
  }) => {
503
503
  var r;
504
- const o = (r = Ve({
504
+ const o = (r = xe({
505
505
  block: e,
506
506
  localState: t.localState,
507
507
  rootState: t.rootState,
@@ -517,7 +517,7 @@ const Ft = ({
517
517
  console.warn(`
518
518
  Could not find a registered component named "${o}".
519
519
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
520
- }, Ut = ({
520
+ }, Bt = ({
521
521
  block: e,
522
522
  context: t
523
523
  }) => {
@@ -527,7 +527,7 @@ const Ft = ({
527
527
  } = e;
528
528
  if (!(n != null && n.collection))
529
529
  return;
530
- const s = Y({
530
+ const s = G({
531
531
  code: n.collection,
532
532
  localState: t.localState,
533
533
  rootState: t.rootState,
@@ -550,33 +550,33 @@ const Ft = ({
550
550
  },
551
551
  block: o
552
552
  }));
553
- }, Ot = () => import("./block-styles-VSarafRd.js").then((e) => e.default).catch((e) => {
553
+ }, Wt = () => import("./block-styles-byLJBAln.js").then((e) => e.default).catch((e) => {
554
554
  throw console.error(
555
555
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
556
556
  e
557
557
  ), e;
558
- }), Lt = () => import("./block-wrapper-66sQ44dq.js").then((e) => e.default).catch((e) => {
558
+ }), Nt = () => import("./block-wrapper-4Es33tGt.js").then((e) => e.default).catch((e) => {
559
559
  throw console.error(
560
560
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
561
561
  e
562
562
  ), e;
563
- }), Mt = () => import("./component-ref-Jc5MVYML.js").then((e) => e.default).catch((e) => {
563
+ }), Ft = () => import("./component-ref-DHTOn9mP.js").then((e) => e.default).catch((e) => {
564
564
  throw console.error(
565
565
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
566
566
  e
567
567
  ), e;
568
- }), Dt = () => import("./repeated-block-8lWplUGg.js").then((e) => e.default).catch((e) => {
568
+ }), Ut = () => import("./repeated-block-NX4X8qNw.js").then((e) => e.default).catch((e) => {
569
569
  throw console.error(
570
570
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
571
571
  e
572
572
  ), e;
573
- }), Ht = f({
573
+ }), Ot = f({
574
574
  name: "block",
575
575
  components: {
576
- BlockStyles: q(Ot),
577
- ComponentRef: q(Mt),
578
- RepeatedBlock: q(Dt),
579
- BlockWrapper: q(Lt)
576
+ BlockStyles: K(Wt),
577
+ ComponentRef: K(Ft),
578
+ RepeatedBlock: K(Ut),
579
+ BlockWrapper: K(Nt)
580
580
  },
581
581
  props: ["block", "context", "registeredComponents", "linkComponent"],
582
582
  data() {
@@ -584,7 +584,7 @@ const Ft = ({
584
584
  },
585
585
  mounted() {
586
586
  const e = this.processedBlock.id, t = this.processedBlock.animations;
587
- t && e && Vt(
587
+ t && e && Et(
588
588
  t.filter((n) => n.trigger !== "hover").map((n) => ({
589
589
  ...n,
590
590
  elementId: e
@@ -593,21 +593,21 @@ const Ft = ({
593
593
  },
594
594
  computed: {
595
595
  blockComponent() {
596
- return Ft({
596
+ return Vt({
597
597
  block: this.block,
598
598
  context: this.context,
599
599
  registeredComponents: this.registeredComponents
600
600
  });
601
601
  },
602
602
  repeatItem() {
603
- return Ut({
603
+ return Bt({
604
604
  block: this.block,
605
605
  context: this.context
606
606
  });
607
607
  },
608
608
  processedBlock() {
609
609
  var e;
610
- return (e = this.block.repeat) != null && e.collection ? this.block : Ve({
610
+ return (e = this.block.repeat) != null && e.collection ? this.block : xe({
611
611
  block: this.block,
612
612
  localState: this.context.localState,
613
613
  rootState: this.context.rootState,
@@ -637,7 +637,7 @@ const Ft = ({
637
637
  blockChildren: this.processedBlock.children ?? [],
638
638
  componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
639
639
  componentOptions: {
640
- ...gt(this.processedBlock),
640
+ ...mt(this.processedBlock),
641
641
  builderContext: this.context,
642
642
  ...((t = this.blockComponent) == null ? void 0 : t.name) === "Core:Button" || ((n = this.blockComponent) == null ? void 0 : n.name) === "Symbol" || ((o = this.blockComponent) == null ? void 0 : o.name) === "Columns" || ((s = this.blockComponent) == null ? void 0 : s.name) === "Form:Form" ? {
643
643
  builderLinkComponent: this.linkComponent
@@ -656,11 +656,11 @@ const Ft = ({
656
656
  }
657
657
  }
658
658
  });
659
- function jt(e, t, n, o, s, r) {
659
+ function Lt(e, t, n, o, s, r) {
660
660
  var c;
661
661
  const i = k("block-styles"), a = k("component-ref"), l = k("block", !0), d = k("block-wrapper"), m = k("repeated-block");
662
- return e.canShowBlock ? (u(), h(I, { key: 0 }, [
663
- V(i, {
662
+ return e.canShowBlock ? (u(), h($, { key: 0 }, [
663
+ A(i, {
664
664
  block: e.block,
665
665
  context: e.context
666
666
  }, null, 8, ["block", "context"]),
@@ -675,8 +675,8 @@ function jt(e, t, n, o, s, r) {
675
675
  builderBlock: e.componentRefProps.builderBlock,
676
676
  includeBlockProps: e.componentRefProps.includeBlockProps,
677
677
  isInteractive: e.componentRefProps.isInteractive
678
- }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"])) : (u(), h(I, { key: 0 }, [
679
- e.repeatItem ? (u(!0), h(I, { key: 1 }, O(e.repeatItem, (p, S) => (u(), g(m, {
678
+ }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"])) : (u(), h($, { key: 0 }, [
679
+ e.repeatItem ? (u(!0), h($, { key: 1 }, O(e.repeatItem, (p, S) => (u(), g(m, {
680
680
  key: S,
681
681
  repeatContext: p.context,
682
682
  block: p.block,
@@ -689,8 +689,8 @@ function jt(e, t, n, o, s, r) {
689
689
  context: e.context,
690
690
  linkComponent: e.linkComponent
691
691
  }, {
692
- default: B(() => [
693
- V(a, {
692
+ default: V(() => [
693
+ A(a, {
694
694
  componentRef: e.componentRefProps.componentRef,
695
695
  componentOptions: e.componentRefProps.componentOptions,
696
696
  blockChildren: e.componentRefProps.blockChildren,
@@ -701,7 +701,7 @@ function jt(e, t, n, o, s, r) {
701
701
  includeBlockProps: e.componentRefProps.includeBlockProps,
702
702
  isInteractive: e.componentRefProps.isInteractive
703
703
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
704
- (u(!0), h(I, null, O(e.childrenWithoutParentComponent, (p, S) => (u(), g(l, {
704
+ (u(!0), h($, null, O(e.childrenWithoutParentComponent, (p, S) => (u(), g(l, {
705
705
  key: p.id,
706
706
  block: p,
707
707
  context: e.childrenContext,
@@ -714,10 +714,10 @@ function jt(e, t, n, o, s, r) {
714
714
  ], 64))
715
715
  ], 64)) : v("", !0);
716
716
  }
717
- const ce = /* @__PURE__ */ y(Ht, [["render", jt]]), Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
717
+ const le = /* @__PURE__ */ y(Ot, [["render", Lt]]), zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
718
718
  __proto__: null,
719
- default: ce
720
- }, Symbol.toStringTag, { value: "Module" })), Kt = f({
719
+ default: le
720
+ }, Symbol.toStringTag, { value: "Module" })), Mt = f({
721
721
  name: "builder-blocks-wrapper",
722
722
  props: [
723
723
  "BlocksWrapper",
@@ -736,7 +736,7 @@ const ce = /* @__PURE__ */ y(Ht, [["render", jt]]), Gs = /* @__PURE__ */ Object.
736
736
  methods: {
737
737
  onClick() {
738
738
  var e, t;
739
- T() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
739
+ R() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
740
740
  {
741
741
  type: "builder.clickEmptyBlocks",
742
742
  data: {
@@ -749,7 +749,7 @@ const ce = /* @__PURE__ */ y(Ht, [["render", jt]]), Gs = /* @__PURE__ */ Object.
749
749
  },
750
750
  onMouseEnter() {
751
751
  var e, t;
752
- T() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
752
+ R() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
753
753
  {
754
754
  type: "builder.hoverEmptyBlocks",
755
755
  data: {
@@ -762,8 +762,8 @@ const ce = /* @__PURE__ */ y(Ht, [["render", jt]]), Gs = /* @__PURE__ */ Object.
762
762
  }
763
763
  }
764
764
  });
765
- function qt(e, t, n, o, s, r) {
766
- return u(), g(D(e.BlocksWrapper), C({
765
+ function Dt(e, t, n, o, s, r) {
766
+ return u(), g(M(e.BlocksWrapper), w({
767
767
  class: e.className + " component-b1turyjjkok",
768
768
  "builder-path": e.path,
769
769
  "builder-parent-id": e.parent,
@@ -772,15 +772,15 @@ function qt(e, t, n, o, s, r) {
772
772
  onMouseEnter: (i) => e.onMouseEnter(),
773
773
  onKeyPress: (i) => e.onClick()
774
774
  }, { ...e.BlocksWrapperProps }), {
775
- default: B(() => [
775
+ default: V(() => [
776
776
  P(e.$slots, "default", {}, void 0, !0)
777
777
  ]),
778
778
  _: 3
779
779
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
780
780
  }
781
- const zt = /* @__PURE__ */ y(Kt, [["render", qt], ["__scopeId", "data-v-3403e3cb"]]), Jt = f({
781
+ const Ht = /* @__PURE__ */ y(Mt, [["render", Dt], ["__scopeId", "data-v-3403e3cb"]]), jt = f({
782
782
  name: "builder-blocks",
783
- components: { BlocksWrapper: zt, Block: ce },
783
+ components: { BlocksWrapper: Ht, Block: le },
784
784
  props: [
785
785
  "blocks",
786
786
  "parent",
@@ -791,11 +791,11 @@ const zt = /* @__PURE__ */ y(Kt, [["render", qt], ["__scopeId", "data-v-3403e3cb
791
791
  "registeredComponents"
792
792
  ],
793
793
  inject: {
794
- builderContext: te.key,
795
- componentsContext: Ee.key
794
+ builderContext: ee.key,
795
+ componentsContext: Te.key
796
796
  }
797
797
  });
798
- function Gt(e, t, n, o, s, r) {
798
+ function Kt(e, t, n, o, s, r) {
799
799
  var l, d;
800
800
  const i = k("block"), a = k("blocks-wrapper");
801
801
  return u(), g(a, {
@@ -806,8 +806,8 @@ function Gt(e, t, n, o, s, r) {
806
806
  BlocksWrapper: (l = e.context) == null ? void 0 : l.BlocksWrapper,
807
807
  BlocksWrapperProps: (d = e.context) == null ? void 0 : d.BlocksWrapperProps
808
808
  }, {
809
- default: B(() => [
810
- e.blocks ? (u(!0), h(I, { key: 0 }, O(e.blocks, (m, c) => (u(), g(i, {
809
+ default: V(() => [
810
+ e.blocks ? (u(!0), h($, { key: 0 }, O(e.blocks, (m, c) => (u(), g(i, {
811
811
  key: m.id,
812
812
  block: m,
813
813
  linkComponent: e.linkComponent,
@@ -818,13 +818,13 @@ function Gt(e, t, n, o, s, r) {
818
818
  _: 1
819
819
  }, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
820
820
  }
821
- const K = /* @__PURE__ */ y(Jt, [["render", Gt]]), de = f({
821
+ const _ = /* @__PURE__ */ y(jt, [["render", Kt]]), ce = f({
822
822
  render() {
823
- return Te("style", { id: this.id, innerHTML: this.styles });
823
+ return Ie("style", { id: this.id, innerHTML: this.styles });
824
824
  },
825
825
  name: "inlined-styles",
826
826
  props: ["styles", "id"]
827
- }), Fe = {
827
+ }), We = {
828
828
  small: {
829
829
  min: 320,
830
830
  default: 321,
@@ -840,11 +840,11 @@ const K = /* @__PURE__ */ y(Jt, [["render", Gt]]), de = f({
840
840
  default: 991,
841
841
  max: 1200
842
842
  }
843
- }, Ys = (e, t = Fe) => `@media (max-width: ${t[e].max}px)`, Yt = ({
843
+ }, Js = (e, t = We) => `@media (max-width: ${t[e].max}px)`, qt = ({
844
844
  small: e,
845
845
  medium: t
846
846
  }) => {
847
- const n = j(Fe);
847
+ const n = H(We);
848
848
  if (!e || !t)
849
849
  return n;
850
850
  const o = Math.floor(e / 2);
@@ -866,12 +866,12 @@ const K = /* @__PURE__ */ y(Jt, [["render", Gt]]), de = f({
866
866
  min: r,
867
867
  default: r + 1
868
868
  }, n;
869
- }, _t = f({
869
+ }, zt = f({
870
870
  name: "builder-columns",
871
871
  components: {
872
- InlinedStyles: de,
873
- DynamicRenderer: se,
874
- Blocks: K
872
+ InlinedStyles: ce,
873
+ DynamicRenderer: oe,
874
+ Blocks: _
875
875
  },
876
876
  props: [
877
877
  "space",
@@ -889,9 +889,9 @@ const K = /* @__PURE__ */ y(Jt, [["render", Gt]]), de = f({
889
889
  cols: this.columns || [],
890
890
  stackAt: this.stackColumnsAt || "tablet",
891
891
  flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
892
- TARGET: A,
893
- getClassPropName: re,
894
- mapStyleObjToStrIfNeeded: We
892
+ TARGET: x,
893
+ getClassPropName: se,
894
+ mapStyleObjToStrIfNeeded: Ve
895
895
  };
896
896
  },
897
897
  computed: {
@@ -983,15 +983,15 @@ const K = /* @__PURE__ */ y(Jt, [["render", Gt]]), de = f({
983
983
  },
984
984
  getWidthForBreakpointSize(e) {
985
985
  var n, o;
986
- return Yt(
986
+ return qt(
987
987
  ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
988
988
  )[e].max;
989
989
  }
990
990
  }
991
991
  });
992
- function Qt(e, t, n, o, s, r) {
992
+ function Jt(e, t, n, o, s, r) {
993
993
  const i = k("inlined-styles"), a = k("blocks"), l = k("dynamic-renderer");
994
- return u(), h("div", C({
994
+ return u(), h("div", w({
995
995
  class: `builder-columns ${e.builderBlock.id}-breakpoints div-16nol0lwi20`,
996
996
  style: e.columnsCssVars
997
997
  }, {}), [
@@ -999,7 +999,7 @@ function Qt(e, t, n, o, s, r) {
999
999
  key: 0,
1000
1000
  styles: e.columnsStyles
1001
1001
  }, null, 8, ["styles"])) : v("", !0),
1002
- (u(!0), h(I, null, O(e.columns, (d, m) => (u(), g(l, {
1002
+ (u(!0), h($, null, O(e.columns, (d, m) => (u(), g(l, {
1003
1003
  key: m,
1004
1004
  TagName: d.link ? e.builderLinkComponent || "a" : "div",
1005
1005
  actionAttributes: {},
@@ -1011,8 +1011,8 @@ function Qt(e, t, n, o, s, r) {
1011
1011
  style: e.mapStyleObjToStrIfNeeded(e.columnCssVars(m))
1012
1012
  }
1013
1013
  }, {
1014
- default: B(() => [
1015
- V(a, {
1014
+ default: V(() => [
1015
+ A(a, {
1016
1016
  path: `component.options.columns.${m}.blocks`,
1017
1017
  parent: e.builderBlock.id,
1018
1018
  styleProp: {
@@ -1028,47 +1028,47 @@ function Qt(e, t, n, o, s, r) {
1028
1028
  }, 1032, ["TagName", "attributes"]))), 128))
1029
1029
  ], 16);
1030
1030
  }
1031
- const Xt = /* @__PURE__ */ y(_t, [["render", Qt], ["__scopeId", "data-v-3a12caec"]]), Zt = f({
1031
+ const Gt = /* @__PURE__ */ y(zt, [["render", Jt], ["__scopeId", "data-v-3a12caec"]]), Yt = f({
1032
1032
  name: "builder-fragment-component",
1033
1033
  props: []
1034
1034
  });
1035
- function en(e, t, n, o, s, r) {
1035
+ function _t(e, t, n, o, s, r) {
1036
1036
  return u(), h("span", null, [
1037
1037
  P(e.$slots, "default")
1038
1038
  ]);
1039
1039
  }
1040
- const tn = /* @__PURE__ */ y(Zt, [["render", en]]);
1041
- function be(e) {
1040
+ const Qt = /* @__PURE__ */ y(Yt, [["render", _t]]);
1041
+ function fe(e) {
1042
1042
  return e.replace(/http(s)?:/, "");
1043
1043
  }
1044
- function nn(e = "", t, n) {
1044
+ function Xt(e = "", t, n) {
1045
1045
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), s = e.indexOf("?") !== -1 ? "&" : "?";
1046
1046
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + s + t + "=" + encodeURIComponent(n);
1047
1047
  }
1048
- function on(e, t) {
1048
+ function Zt(e, t) {
1049
1049
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1050
1050
  return e;
1051
1051
  if (t === "master")
1052
- return be(e);
1052
+ return fe(e);
1053
1053
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1054
1054
  if (n) {
1055
1055
  const o = e.split(n[0]), s = n[3], r = t.match("x") ? t : `${t}x`;
1056
- return be(`${o[0]}_${r}${s}`);
1056
+ return fe(`${o[0]}_${r}${s}`);
1057
1057
  }
1058
1058
  return null;
1059
1059
  }
1060
- function X(e) {
1060
+ function Q(e) {
1061
1061
  if (!e)
1062
1062
  return e;
1063
1063
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1064
1064
  if (e.match(/builder\.io/)) {
1065
1065
  let n = e;
1066
1066
  const o = Number(e.split("?width=")[1]);
1067
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((s) => s !== o).map((s) => `${nn(e, "width", s)} ${s}w`).concat([n]).join(", ");
1067
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((s) => s !== o).map((s) => `${Xt(e, "width", s)} ${s}w`).concat([n]).join(", ");
1068
1068
  }
1069
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [on(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1069
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Zt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1070
1070
  }
1071
- const sn = f({
1071
+ const en = f({
1072
1072
  name: "builder-image",
1073
1073
  props: [
1074
1074
  "image",
@@ -1094,10 +1094,10 @@ const sn = f({
1094
1094
  return this.srcset;
1095
1095
  if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
1096
1096
  if (!this.srcset.includes(this.image.split("?")[0]))
1097
- return console.debug("Removed given srcset"), X(t);
1097
+ return console.debug("Removed given srcset"), Q(t);
1098
1098
  } else if (this.image && !this.srcset)
1099
- return X(t);
1100
- return X(t);
1099
+ return Q(t);
1100
+ return Q(t);
1101
1101
  },
1102
1102
  webpSrcSet() {
1103
1103
  var e;
@@ -1114,58 +1114,58 @@ const sn = f({
1114
1114
  return this.aspectRatio ? e : void 0;
1115
1115
  }
1116
1116
  }
1117
- }), rn = ["srcset"], an = ["alt", "role", "src", "srcset", "sizes"], ln = {
1117
+ }), tn = ["srcset"], nn = ["alt", "role", "src", "srcset", "sizes"], on = {
1118
1118
  key: 2,
1119
1119
  class: "div-4wbls88y960-2"
1120
1120
  };
1121
- function cn(e, t, n, o, s, r) {
1121
+ function sn(e, t, n, o, s, r) {
1122
1122
  var i, a, l, d;
1123
- return u(), h(I, null, [
1124
- Z("picture", null, [
1123
+ return u(), h($, null, [
1124
+ X("picture", null, [
1125
1125
  e.webpSrcSet ? (u(), h("source", {
1126
1126
  key: 0,
1127
1127
  type: "image/webp",
1128
1128
  srcset: e.webpSrcSet
1129
- }, null, 8, rn)) : v("", !0),
1130
- Z("img", {
1129
+ }, null, 8, tn)) : v("", !0),
1130
+ X("img", {
1131
1131
  loading: "lazy",
1132
1132
  alt: e.altText,
1133
1133
  role: e.altText ? "presentation" : void 0,
1134
- style: ee({
1134
+ style: Z({
1135
1135
  objectPosition: e.backgroundPosition || "center",
1136
1136
  objectFit: e.backgroundSize || "cover",
1137
1137
  ...e.aspectRatioCss
1138
1138
  }),
1139
- class: Re(
1139
+ class: $e(
1140
1140
  "builder-image" + (e.className ? " " + e.className : "") + " img-4wbls88y960"
1141
1141
  ),
1142
1142
  src: e.image,
1143
1143
  srcset: e.srcSetToUse,
1144
1144
  sizes: e.sizes
1145
- }, null, 14, an)
1145
+ }, null, 14, nn)
1146
1146
  ]),
1147
1147
  e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? (u(), h("div", {
1148
1148
  key: 0,
1149
1149
  class: "builder-image-sizer div-4wbls88y960",
1150
- style: ee({
1150
+ style: Z({
1151
1151
  paddingTop: e.aspectRatio * 100 + "%"
1152
1152
  })
1153
1153
  }, null, 4)) : v("", !0),
1154
1154
  (d = (l = e.builderBlock) == null ? void 0 : l.children) != null && d.length && e.fitContent ? P(e.$slots, "default", { key: 1 }, void 0, !0) : v("", !0),
1155
- !e.fitContent && e.$slots.default ? (u(), h("div", ln, [
1155
+ !e.fitContent && e.$slots.default ? (u(), h("div", on, [
1156
1156
  P(e.$slots, "default", {}, void 0, !0)
1157
1157
  ])) : v("", !0)
1158
1158
  ], 64);
1159
1159
  }
1160
- const dn = /* @__PURE__ */ y(sn, [["render", cn], ["__scopeId", "data-v-4ab1cc9f"]]), un = f({
1160
+ const rn = /* @__PURE__ */ y(en, [["render", sn], ["__scopeId", "data-v-4ab1cc9f"]]), an = f({
1161
1161
  name: "builder-section-component",
1162
1162
  props: ["attributes", "maxWidth"],
1163
1163
  data() {
1164
1164
  return { filterAttrs: F };
1165
1165
  }
1166
1166
  });
1167
- function pn(e, t, n, o, s, r) {
1168
- return u(), h("section", C({
1167
+ function ln(e, t, n, o, s, r) {
1168
+ return u(), h("section", w({
1169
1169
  style: {
1170
1170
  width: "100%",
1171
1171
  alignSelf: "stretch",
@@ -1182,12 +1182,12 @@ function pn(e, t, n, o, s, r) {
1182
1182
  P(e.$slots, "default")
1183
1183
  ], 16);
1184
1184
  }
1185
- const mn = /* @__PURE__ */ y(un, [["render", pn]]), hn = (e) => {
1185
+ const cn = /* @__PURE__ */ y(an, [["render", ln]]), dn = (e) => {
1186
1186
  if (e === "localhost" || e === "127.0.0.1")
1187
1187
  return e;
1188
1188
  const t = e.split(".");
1189
1189
  return t.length > 2 ? t.slice(1).join(".") : e;
1190
- }, Ue = ({
1190
+ }, Ne = ({
1191
1191
  name: e,
1192
1192
  canTrack: t
1193
1193
  }) => {
@@ -1195,17 +1195,17 @@ const mn = /* @__PURE__ */ y(un, [["render", pn]]), hn = (e) => {
1195
1195
  try {
1196
1196
  return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
1197
1197
  } catch (o) {
1198
- $.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
1198
+ T.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
1199
1199
  return;
1200
1200
  }
1201
- }, Oe = async (e) => Ue(e), fn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(N).join("; "), bn = [["secure", ""], ["SameSite", "None"]], gn = ({
1201
+ }, Fe = async (e) => Ne(e), un = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(N).join("; "), pn = [["secure", ""], ["SameSite", "None"]], mn = ({
1202
1202
  name: e,
1203
1203
  value: t,
1204
1204
  expires: n
1205
1205
  }) => {
1206
- const s = (w() ? location.protocol === "https:" : !0) ? bn : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...r, ["path", "/"], ["domain", hn(window.location.hostname)], ...s];
1207
- return fn(i);
1208
- }, Le = async ({
1206
+ const s = (I() ? location.protocol === "https:" : !0) ? pn : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...r, ["path", "/"], ["domain", dn(window.location.hostname)], ...s];
1207
+ return un(i);
1208
+ }, Ue = async ({
1209
1209
  name: e,
1210
1210
  value: t,
1211
1211
  expires: n,
@@ -1214,33 +1214,33 @@ const mn = /* @__PURE__ */ y(un, [["render", pn]]), hn = (e) => {
1214
1214
  try {
1215
1215
  if (!o)
1216
1216
  return;
1217
- const s = gn({
1217
+ const s = mn({
1218
1218
  name: e,
1219
1219
  value: t,
1220
1220
  expires: n
1221
1221
  });
1222
1222
  document.cookie = s;
1223
1223
  } catch (s) {
1224
- $.warn("[COOKIE] SET error: ", (s == null ? void 0 : s.message) || s);
1224
+ T.warn("[COOKIE] SET error: ", (s == null ? void 0 : s.message) || s);
1225
1225
  }
1226
- }, yn = "builder.tests", ue = (e) => `${yn}.${e}`, kn = ({
1226
+ }, hn = "builder.tests", de = (e) => `${hn}.${e}`, fn = ({
1227
1227
  contentId: e
1228
- }) => Oe({
1229
- name: ue(e),
1228
+ }) => Fe({
1229
+ name: de(e),
1230
1230
  canTrack: !0
1231
- }), Sn = ({
1231
+ }), bn = ({
1232
1232
  contentId: e
1233
- }) => Ue({
1234
- name: ue(e),
1233
+ }) => Ne({
1234
+ name: de(e),
1235
1235
  canTrack: !0
1236
- }), vn = ({
1236
+ }), gn = ({
1237
1237
  contentId: e,
1238
1238
  value: t
1239
- }) => Le({
1240
- name: ue(e),
1239
+ }) => Ue({
1240
+ name: de(e),
1241
1241
  value: t,
1242
1242
  canTrack: !0
1243
- }), Me = (e) => N(e.id) && N(e.variations) && Object.keys(e.variations).length > 0, Cn = ({
1243
+ }), Oe = (e) => N(e.id) && N(e.variations) && Object.keys(e.variations).length > 0, yn = ({
1244
1244
  id: e,
1245
1245
  variations: t
1246
1246
  }) => {
@@ -1253,15 +1253,15 @@ const mn = /* @__PURE__ */ y(un, [["render", pn]]), hn = (e) => {
1253
1253
  return r;
1254
1254
  }
1255
1255
  return e;
1256
- }, De = (e) => {
1257
- const t = Cn(e);
1258
- return vn({
1256
+ }, Le = (e) => {
1257
+ const t = yn(e);
1258
+ return gn({
1259
1259
  contentId: e.id,
1260
1260
  value: t
1261
1261
  }).catch((n) => {
1262
- $.error("could not store A/B test variation: ", n);
1262
+ T.error("could not store A/B test variation: ", n);
1263
1263
  }), t;
1264
- }, He = ({
1264
+ }, Me = ({
1265
1265
  item: e,
1266
1266
  testGroupId: t
1267
1267
  }) => {
@@ -1275,7 +1275,7 @@ const mn = /* @__PURE__ */ y(un, [["render", pn]]), hn = (e) => {
1275
1275
  testVariationId: n.id,
1276
1276
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
1277
1277
  };
1278
- }, wn = ({
1278
+ }, kn = ({
1279
1279
  item: e,
1280
1280
  canTrack: t
1281
1281
  }) => {
@@ -1283,14 +1283,14 @@ const mn = /* @__PURE__ */ y(un, [["render", pn]]), hn = (e) => {
1283
1283
  return e;
1284
1284
  if (!e)
1285
1285
  return;
1286
- if (!Me(e))
1286
+ if (!Oe(e))
1287
1287
  return e;
1288
- const n = Sn({
1288
+ const n = bn({
1289
1289
  contentId: e.id
1290
- }) || De({
1290
+ }) || Le({
1291
1291
  variations: e.variations,
1292
1292
  id: e.id
1293
- }), o = He({
1293
+ }), o = Me({
1294
1294
  item: e,
1295
1295
  testGroupId: n
1296
1296
  });
@@ -1298,18 +1298,18 @@ const mn = /* @__PURE__ */ y(un, [["render", pn]]), hn = (e) => {
1298
1298
  ...e,
1299
1299
  ...o
1300
1300
  };
1301
- }, In = async ({
1301
+ }, Sn = async ({
1302
1302
  item: e,
1303
1303
  canTrack: t
1304
1304
  }) => {
1305
- if (!t || !Me(e))
1305
+ if (!t || !Oe(e))
1306
1306
  return e;
1307
- const o = await kn({
1307
+ const o = await fn({
1308
1308
  contentId: e.id
1309
- }) || De({
1309
+ }) || Le({
1310
1310
  variations: e.variations,
1311
1311
  id: e.id
1312
- }), s = He({
1312
+ }), s = Me({
1313
1313
  item: e,
1314
1314
  testGroupId: o
1315
1315
  });
@@ -1317,7 +1317,7 @@ const mn = /* @__PURE__ */ y(un, [["render", pn]]), hn = (e) => {
1317
1317
  ...e,
1318
1318
  ...s
1319
1319
  };
1320
- }, H = (e) => N(e) ? e : !0, $n = {
1320
+ }, D = (e) => N(e) ? e : !0, vn = {
1321
1321
  name: "Core:Button",
1322
1322
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1323
1323
  defaultStyles: {
@@ -1350,7 +1350,7 @@ const mn = /* @__PURE__ */ y(un, [["render", pn]]), hn = (e) => {
1350
1350
  }],
1351
1351
  static: !0,
1352
1352
  noWrap: !0
1353
- }, Tn = {
1353
+ }, Cn = {
1354
1354
  // TODO: ways to statically preprocess JSON for references, functions, etc
1355
1355
  name: "Columns",
1356
1356
  isRSC: !0,
@@ -1551,13 +1551,13 @@ const mn = /* @__PURE__ */ y(un, [["render", pn]]), hn = (e) => {
1551
1551
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1552
1552
  advanced: !0
1553
1553
  }]
1554
- }, Rn = {
1554
+ }, wn = {
1555
1555
  name: "Fragment",
1556
1556
  static: !0,
1557
1557
  hidden: !0,
1558
1558
  canHaveChildren: !0,
1559
1559
  noWrap: !0
1560
- }, En = {
1560
+ }, In = {
1561
1561
  name: "Image",
1562
1562
  static: !0,
1563
1563
  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",
@@ -1657,7 +1657,7 @@ const mn = /* @__PURE__ */ y(un, [["render", pn]]), hn = (e) => {
1657
1657
  advanced: !0,
1658
1658
  defaultValue: 0.7041
1659
1659
  }]
1660
- }, Pn = {
1660
+ }, $n = {
1661
1661
  name: "Core:Section",
1662
1662
  static: !0,
1663
1663
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1696,7 +1696,7 @@ const mn = /* @__PURE__ */ y(un, [["render", pn]]), hn = (e) => {
1696
1696
  }
1697
1697
  }
1698
1698
  }]
1699
- }, An = {
1699
+ }, Tn = {
1700
1700
  name: "Slot",
1701
1701
  isRSC: !0,
1702
1702
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1709,15 +1709,15 @@ const mn = /* @__PURE__ */ y(un, [["render", pn]]), hn = (e) => {
1709
1709
  required: !0,
1710
1710
  defaultValue: "children"
1711
1711
  }]
1712
- }, xn = f({
1712
+ }, Rn = f({
1713
1713
  name: "builder-slot",
1714
- components: { Blocks: K },
1714
+ components: { Blocks: _ },
1715
1715
  props: ["js", "builderContext", "name"]
1716
1716
  });
1717
- function Vn(e, t, n, o, s, r) {
1717
+ function En(e, t, n, o, s, r) {
1718
1718
  var a, l, d;
1719
1719
  const i = k("blocks");
1720
- return u(), h("div", C(
1720
+ return u(), h("div", w(
1721
1721
  { style: {
1722
1722
  pointerEvents: "auto"
1723
1723
  } },
@@ -1725,7 +1725,7 @@ function Vn(e, t, n, o, s, r) {
1725
1725
  "builder-slot": e.name
1726
1726
  }
1727
1727
  ), [
1728
- V(i, {
1728
+ A(i, {
1729
1729
  parent: (l = e.builderContext.context) == null ? void 0 : l.symbolId,
1730
1730
  path: `symbol.data.${e.name}`,
1731
1731
  context: e.builderContext,
@@ -1733,7 +1733,7 @@ function Vn(e, t, n, o, s, r) {
1733
1733
  }, null, 8, ["parent", "path", "context", "blocks"])
1734
1734
  ], 16);
1735
1735
  }
1736
- const Bn = /* @__PURE__ */ y(xn, [["render", Vn]]), Wn = {
1736
+ const Pn = /* @__PURE__ */ y(Rn, [["render", En]]), xn = {
1737
1737
  name: "Symbol",
1738
1738
  noWrap: !0,
1739
1739
  static: !0,
@@ -1766,7 +1766,7 @@ const Bn = /* @__PURE__ */ y(xn, [["render", Vn]]), Wn = {
1766
1766
  hideFromUI: !0,
1767
1767
  type: "boolean"
1768
1768
  }]
1769
- }, Nn = {
1769
+ }, An = {
1770
1770
  name: "Text",
1771
1771
  static: !0,
1772
1772
  isRSC: !0,
@@ -1784,11 +1784,11 @@ const Bn = /* @__PURE__ */ y(xn, [["render", Vn]]), Wn = {
1784
1784
  height: "auto",
1785
1785
  textAlign: "center"
1786
1786
  }
1787
- }, Fn = f({
1787
+ }, Vn = f({
1788
1788
  name: "builder-text",
1789
1789
  props: ["text"]
1790
- }), Un = ["innerHTML"];
1791
- function On(e, t, n, o, s, r) {
1790
+ }), Bn = ["innerHTML"];
1791
+ function Wn(e, t, n, o, s, r) {
1792
1792
  var i;
1793
1793
  return u(), h("div", {
1794
1794
  class: "builder-text",
@@ -1796,9 +1796,9 @@ function On(e, t, n, o, s, r) {
1796
1796
  style: {
1797
1797
  outline: "none"
1798
1798
  }
1799
- }, null, 8, Un);
1799
+ }, null, 8, Bn);
1800
1800
  }
1801
- const Ln = /* @__PURE__ */ y(Fn, [["render", On]]), Mn = {
1801
+ const Nn = /* @__PURE__ */ y(Vn, [["render", Wn]]), Fn = {
1802
1802
  name: "Custom Code",
1803
1803
  static: !0,
1804
1804
  requiredPermissions: ["editCode"],
@@ -1820,7 +1820,7 @@ const Ln = /* @__PURE__ */ y(Fn, [["render", On]]), Mn = {
1820
1820
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
1821
1821
  advanced: !0
1822
1822
  }]
1823
- }, Dn = f({
1823
+ }, Un = f({
1824
1824
  name: "builder-custom-code",
1825
1825
  props: ["replaceNodes", "code"],
1826
1826
  data() {
@@ -1854,15 +1854,15 @@ const Ln = /* @__PURE__ */ y(Fn, [["render", On]]), Mn = {
1854
1854
  }
1855
1855
  }
1856
1856
  }
1857
- }), Hn = ["innerHTML"];
1858
- function jn(e, t, n, o, s, r) {
1857
+ }), On = ["innerHTML"];
1858
+ function Ln(e, t, n, o, s, r) {
1859
1859
  return u(), h("div", {
1860
1860
  ref: "elementRef",
1861
- class: Re("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
1861
+ class: $e("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
1862
1862
  innerHTML: e.code
1863
- }, null, 10, Hn);
1863
+ }, null, 10, On);
1864
1864
  }
1865
- const Kn = /* @__PURE__ */ y(Dn, [["render", jn]]), qn = {
1865
+ const Mn = /* @__PURE__ */ y(Un, [["render", Ln]]), Dn = {
1866
1866
  name: "Embed",
1867
1867
  static: !0,
1868
1868
  inputs: [{
@@ -1887,7 +1887,7 @@ const Kn = /* @__PURE__ */ y(Dn, [["render", jn]]), qn = {
1887
1887
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1888
1888
  hideFromUI: !0
1889
1889
  }]
1890
- }, zn = ["text/javascript", "application/javascript", "application/ecmascript"], Jn = (e) => zn.includes(e.type), Gn = f({
1890
+ }, Hn = ["text/javascript", "application/javascript", "application/ecmascript"], jn = (e) => Hn.includes(e.type), Kn = f({
1891
1891
  name: "builder-embed",
1892
1892
  props: ["content"],
1893
1893
  data() {
@@ -1920,7 +1920,7 @@ const Kn = /* @__PURE__ */ y(Dn, [["render", jn]]), qn = {
1920
1920
  this.scriptsInserted.push(n.src);
1921
1921
  const o = document.createElement("script");
1922
1922
  o.async = !0, o.src = n.src, document.head.appendChild(o);
1923
- } else if (Jn(n) && !this.scriptsRun.includes(n.innerText))
1923
+ } else if (jn(n) && !this.scriptsRun.includes(n.innerText))
1924
1924
  try {
1925
1925
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
1926
1926
  } catch (o) {
@@ -1929,15 +1929,15 @@ const Kn = /* @__PURE__ */ y(Dn, [["render", jn]]), qn = {
1929
1929
  }
1930
1930
  }
1931
1931
  }
1932
- }), Yn = ["innerHTML"];
1933
- function _n(e, t, n, o, s, r) {
1932
+ }), qn = ["innerHTML"];
1933
+ function zn(e, t, n, o, s, r) {
1934
1934
  return u(), h("div", {
1935
1935
  class: "builder-embed",
1936
1936
  ref: "elem",
1937
1937
  innerHTML: e.content
1938
- }, null, 8, Yn);
1938
+ }, null, 8, qn);
1939
1939
  }
1940
- const Qn = /* @__PURE__ */ y(Gn, [["render", _n]]), Xn = {
1940
+ const Jn = /* @__PURE__ */ y(Kn, [["render", zn]]), Gn = {
1941
1941
  name: "Form:Form",
1942
1942
  // editableTags: ['builder-form-error']
1943
1943
  defaults: {
@@ -2168,15 +2168,15 @@ const Qn = /* @__PURE__ */ y(Gn, [["render", _n]]), Xn = {
2168
2168
  }
2169
2169
  }
2170
2170
  }]
2171
- }, Zn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], eo = () => {
2171
+ }, Yn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], _n = () => {
2172
2172
  const e = process.env.NODE_ENV || "production";
2173
- return Zn.includes(e) ? e : "production";
2174
- }, to = (e, t, n) => {
2173
+ return Yn.includes(e) ? e : "production";
2174
+ }, Qn = (e, t, n) => {
2175
2175
  const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((s, r) => s != null ? s[r] : s, e);
2176
2176
  return o === void 0 || o === e ? n : o;
2177
- }, no = f({
2177
+ }, Xn = f({
2178
2178
  name: "builder-form-component",
2179
- components: { Block: ce, Blocks: K },
2179
+ components: { Block: le, Blocks: _ },
2180
2180
  props: [
2181
2181
  "js",
2182
2182
  "builderContext",
@@ -2219,7 +2219,7 @@ const Qn = /* @__PURE__ */ y(Gn, [["render", _n]]), Xn = {
2219
2219
  this.builderContext.rootSetState ? (o = (n = this.builderContext).rootSetState) == null || o.call(n, t) : this.builderContext.rootState = t;
2220
2220
  },
2221
2221
  submissionState() {
2222
- return T() && this.previewState || this.formState;
2222
+ return R() && this.previewState || this.formState;
2223
2223
  },
2224
2224
  onSubmit(e) {
2225
2225
  var n;
@@ -2268,7 +2268,7 @@ const Qn = /* @__PURE__ */ y(Gn, [["render", _n]]), Xn = {
2268
2268
  else {
2269
2269
  const c = {};
2270
2270
  Array.from(a).forEach(({ value: p, key: S }) => {
2271
- xe(c, S, p);
2271
+ Pe(c, S, p);
2272
2272
  }), r = JSON.stringify(c);
2273
2273
  }
2274
2274
  l && l !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (s["content-type"] = l));
@@ -2280,7 +2280,7 @@ const Qn = /* @__PURE__ */ y(Gn, [["render", _n]]), Xn = {
2280
2280
  if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(d), d.defaultPrevented))
2281
2281
  return;
2282
2282
  this.formState = "sending";
2283
- const m = `${eo() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
2283
+ const m = `${_n() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
2284
2284
  this.sendSubmissionsToEmail || ""
2285
2285
  )}&name=${encodeURIComponent(this.name || "")}`;
2286
2286
  fetch(
@@ -2295,7 +2295,7 @@ const Qn = /* @__PURE__ */ y(Gn, [["render", _n]]), Xn = {
2295
2295
  let p;
2296
2296
  const S = c.headers.get("content-type");
2297
2297
  if (S && S.indexOf("application/json") !== -1 ? p = await c.json() : p = await c.text(), !c.ok && this.errorMessagePath) {
2298
- let b = to(p, this.errorMessagePath);
2298
+ let b = Qn(p, this.errorMessagePath);
2299
2299
  b && (typeof b != "string" && (b = JSON.stringify(b)), this.formErrorMessage = b, this.mergeNewRootState({
2300
2300
  formErrorMessage: b
2301
2301
  }));
@@ -2314,12 +2314,12 @@ const Qn = /* @__PURE__ */ y(Gn, [["render", _n]]), Xn = {
2314
2314
  }
2315
2315
  if (this.successUrl)
2316
2316
  if (this.$refs.formRef) {
2317
- const x = new CustomEvent("route", {
2317
+ const B = new CustomEvent("route", {
2318
2318
  detail: {
2319
2319
  url: this.successUrl
2320
2320
  }
2321
2321
  });
2322
- this.$refs.formRef.dispatchEvent(x), x.defaultPrevented || (location.href = this.successUrl);
2322
+ this.$refs.formRef.dispatchEvent(B), B.defaultPrevented || (location.href = this.successUrl);
2323
2323
  } else
2324
2324
  location.href = this.successUrl;
2325
2325
  }
@@ -2336,14 +2336,14 @@ const Qn = /* @__PURE__ */ y(Gn, [["render", _n]]), Xn = {
2336
2336
  }
2337
2337
  }
2338
2338
  }
2339
- }), oo = ["validate", "action", "method", "name"], so = {
2339
+ }), Zn = ["validate", "action", "method", "name"], eo = {
2340
2340
  key: 3,
2341
2341
  class: "builder-form-error-text pre-tqyw9m0iue"
2342
2342
  };
2343
- function ro(e, t, n, o, s, r) {
2343
+ function to(e, t, n, o, s, r) {
2344
2344
  var l;
2345
2345
  const i = k("block"), a = k("blocks");
2346
- return u(), h("form", C({
2346
+ return u(), h("form", w({
2347
2347
  validate: e.validate,
2348
2348
  ref: "formRef",
2349
2349
  action: !e.sendWithJs && e.action,
@@ -2351,7 +2351,7 @@ function ro(e, t, n, o, s, r) {
2351
2351
  name: e.name,
2352
2352
  onSubmit: t[0] || (t[0] = (d) => e.onSubmit(d))
2353
2353
  }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
2354
- e.builderBlock && e.builderBlock.children ? (u(!0), h(I, { key: 0 }, O((l = e.builderBlock) == null ? void 0 : l.children, (d, m) => (u(), g(i, {
2354
+ e.builderBlock && e.builderBlock.children ? (u(!0), h($, { key: 0 }, O((l = e.builderBlock) == null ? void 0 : l.children, (d, m) => (u(), g(i, {
2355
2355
  key: `form-block-${e.idx}`,
2356
2356
  block: d,
2357
2357
  context: e.builderContext,
@@ -2370,7 +2370,7 @@ function ro(e, t, n, o, s, r) {
2370
2370
  blocks: e.sendingMessage,
2371
2371
  context: e.builderContext
2372
2372
  }, null, 8, ["blocks", "context"])) : v("", !0),
2373
- e.submissionState() === "error" && e.responseData ? (u(), h("pre", so, " " + _(JSON.stringify(e.responseData, null, 2)) + `
2373
+ e.submissionState() === "error" && e.responseData ? (u(), h("pre", eo, " " + Y(JSON.stringify(e.responseData, null, 2)) + `
2374
2374
  `, 1)) : v("", !0),
2375
2375
  e.submissionState() === "success" ? (u(), g(a, {
2376
2376
  key: 4,
@@ -2378,9 +2378,9 @@ function ro(e, t, n, o, s, r) {
2378
2378
  blocks: e.successMessage,
2379
2379
  context: e.builderContext
2380
2380
  }, null, 8, ["blocks", "context"])) : v("", !0)
2381
- ], 16, oo);
2381
+ ], 16, Zn);
2382
2382
  }
2383
- const io = /* @__PURE__ */ y(no, [["render", ro], ["__scopeId", "data-v-e7803f50"]]), ao = {
2383
+ const no = /* @__PURE__ */ y(Xn, [["render", to], ["__scopeId", "data-v-e7803f50"]]), oo = {
2384
2384
  name: "Form:Input",
2385
2385
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2386
2386
  inputs: [
@@ -2431,7 +2431,7 @@ const io = /* @__PURE__ */ y(no, [["render", ro], ["__scopeId", "data-v-e7803f50
2431
2431
  borderStyle: "solid",
2432
2432
  borderColor: "#ccc"
2433
2433
  }
2434
- }, lo = f({
2434
+ }, so = f({
2435
2435
  name: "builder-form-input-component",
2436
2436
  props: [
2437
2437
  "attributes",
@@ -2443,11 +2443,11 @@ const io = /* @__PURE__ */ y(no, [["render", ro], ["__scopeId", "data-v-e7803f50
2443
2443
  "required"
2444
2444
  ],
2445
2445
  data() {
2446
- return { isEditing: T, filterAttrs: F };
2446
+ return { isEditing: R, filterAttrs: F };
2447
2447
  }
2448
- }), co = ["placeholder", "type", "name", "value", "defaultValue", "required"];
2449
- function uo(e, t, n, o, s, r) {
2450
- return u(), h("input", C({
2448
+ }), ro = ["placeholder", "type", "name", "value", "defaultValue", "required"];
2449
+ function io(e, t, n, o, s, r) {
2450
+ return u(), h("input", w({
2451
2451
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
2452
2452
  placeholder: e.placeholder,
2453
2453
  type: e.type,
@@ -2455,9 +2455,9 @@ function uo(e, t, n, o, s, r) {
2455
2455
  value: e.value,
2456
2456
  defaultValue: e.defaultValue,
2457
2457
  required: e.required
2458
- }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, co);
2458
+ }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, ro);
2459
2459
  }
2460
- const po = /* @__PURE__ */ y(lo, [["render", uo]]), mo = {
2460
+ const ao = /* @__PURE__ */ y(so, [["render", io]]), lo = {
2461
2461
  name: "Form:Select",
2462
2462
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2463
2463
  defaultStyles: {
@@ -2499,27 +2499,27 @@ const po = /* @__PURE__ */ y(lo, [["render", uo]]), mo = {
2499
2499
  }],
2500
2500
  static: !0,
2501
2501
  noWrap: !0
2502
- }, ho = f({
2502
+ }, co = f({
2503
2503
  name: "builder-select-component",
2504
2504
  props: ["attributes", "value", "defaultValue", "name", "options"],
2505
2505
  data() {
2506
- return { isEditing: T, filterAttrs: F };
2506
+ return { isEditing: R, filterAttrs: F };
2507
2507
  }
2508
- }), fo = ["value", "defaultValue", "name"], bo = ["value"];
2509
- function go(e, t, n, o, s, r) {
2510
- return u(), h("select", C({
2508
+ }), uo = ["value", "defaultValue", "name"], po = ["value"];
2509
+ function mo(e, t, n, o, s, r) {
2510
+ return u(), h("select", w({
2511
2511
  value: e.value,
2512
2512
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
2513
2513
  defaultValue: e.defaultValue,
2514
2514
  name: e.name
2515
2515
  }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
2516
- (u(!0), h(I, null, O(e.options, (i, a) => (u(), h("option", {
2516
+ (u(!0), h($, null, O(e.options, (i, a) => (u(), h("option", {
2517
2517
  key: a,
2518
2518
  value: i.value
2519
- }, _(i.name || i.value), 9, bo))), 128))
2520
- ], 16, fo);
2519
+ }, Y(i.name || i.value), 9, po))), 128))
2520
+ ], 16, uo);
2521
2521
  }
2522
- const yo = /* @__PURE__ */ y(ho, [["render", go]]), ko = {
2522
+ const ho = /* @__PURE__ */ y(co, [["render", mo]]), fo = {
2523
2523
  name: "Form:SubmitButton",
2524
2524
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2525
2525
  defaultStyles: {
@@ -2544,17 +2544,17 @@ const yo = /* @__PURE__ */ y(ho, [["render", go]]), ko = {
2544
2544
  // that only shows if advanced setting is flipped
2545
2545
  // TODO: defaultChildren
2546
2546
  // canHaveChildren: true,
2547
- }, So = f({
2547
+ }, bo = f({
2548
2548
  name: "builder-submit-button",
2549
2549
  props: ["attributes", "text"],
2550
2550
  data() {
2551
2551
  return { filterAttrs: F };
2552
2552
  }
2553
2553
  });
2554
- function vo(e, t, n, o, s, r) {
2555
- return u(), h("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), _(e.text), 17);
2554
+ function go(e, t, n, o, s, r) {
2555
+ return u(), h("button", w({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), Y(e.text), 17);
2556
2556
  }
2557
- const Co = /* @__PURE__ */ y(So, [["render", vo]]), wo = {
2557
+ const yo = /* @__PURE__ */ y(bo, [["render", go]]), ko = {
2558
2558
  // friendlyName?
2559
2559
  name: "Raw:Img",
2560
2560
  hideFromInsertMenu: !0,
@@ -2568,7 +2568,7 @@ const Co = /* @__PURE__ */ y(So, [["render", vo]]), wo = {
2568
2568
  }],
2569
2569
  noWrap: !0,
2570
2570
  static: !0
2571
- }, Io = f({
2571
+ }, So = f({
2572
2572
  name: "builder-img-component",
2573
2573
  props: [
2574
2574
  "backgroundSize",
@@ -2579,11 +2579,11 @@ const Co = /* @__PURE__ */ y(So, [["render", vo]]), wo = {
2579
2579
  "attributes"
2580
2580
  ],
2581
2581
  data() {
2582
- return { isEditing: T, filterAttrs: F };
2582
+ return { isEditing: R, filterAttrs: F };
2583
2583
  }
2584
- }), $o = ["alt", "src"];
2585
- function To(e, t, n, o, s, r) {
2586
- return u(), h("img", C({
2584
+ }), vo = ["alt", "src"];
2585
+ function Co(e, t, n, o, s, r) {
2586
+ return u(), h("img", w({
2587
2587
  style: {
2588
2588
  objectFit: e.backgroundSize || "cover",
2589
2589
  objectPosition: e.backgroundPosition || "center"
@@ -2591,9 +2591,9 @@ function To(e, t, n, o, s, r) {
2591
2591
  key: e.isEditing() && e.imgSrc || "default-key",
2592
2592
  alt: e.altText,
2593
2593
  src: e.imgSrc || e.image
2594
- }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, $o);
2594
+ }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, vo);
2595
2595
  }
2596
- const Ro = /* @__PURE__ */ y(Io, [["render", To]]), Eo = {
2596
+ const wo = /* @__PURE__ */ y(So, [["render", Co]]), Io = {
2597
2597
  name: "Video",
2598
2598
  canHaveChildren: !0,
2599
2599
  defaultStyles: {
@@ -2674,7 +2674,7 @@ const Ro = /* @__PURE__ */ y(Io, [["render", To]]), Eo = {
2674
2674
  defaultValue: !0,
2675
2675
  advanced: !0
2676
2676
  }]
2677
- }, Po = f({
2677
+ }, $o = f({
2678
2678
  name: "builder-video",
2679
2679
  props: [
2680
2680
  "autoPlay",
@@ -2719,16 +2719,16 @@ const Ro = /* @__PURE__ */ y(Io, [["render", To]]), Eo = {
2719
2719
  };
2720
2720
  }
2721
2721
  }
2722
- }), Ao = { style: {
2722
+ }), To = { style: {
2723
2723
  position: "relative"
2724
- } }, xo = ["preload", "src", "poster"], Vo = ["src"], Bo = {
2724
+ } }, Ro = ["preload", "src", "poster"], Eo = ["src"], Po = {
2725
2725
  key: 1,
2726
2726
  style: {
2727
2727
  display: "flex",
2728
2728
  flexDirection: "column",
2729
2729
  alignItems: "stretch"
2730
2730
  }
2731
- }, Wo = {
2731
+ }, xo = {
2732
2732
  key: 2,
2733
2733
  style: {
2734
2734
  pointerEvents: "none",
@@ -2742,10 +2742,10 @@ const Ro = /* @__PURE__ */ y(Io, [["render", To]]), Eo = {
2742
2742
  height: "100%"
2743
2743
  }
2744
2744
  };
2745
- function No(e, t, n, o, s, r) {
2745
+ function Ao(e, t, n, o, s, r) {
2746
2746
  var i, a, l, d, m, c, p;
2747
- return u(), h("div", Ao, [
2748
- Z("video", C({
2747
+ return u(), h("div", To, [
2748
+ X("video", w({
2749
2749
  class: "builder-video",
2750
2750
  preload: e.preload || "metadata",
2751
2751
  style: {
@@ -2769,89 +2769,89 @@ function No(e, t, n, o, s, r) {
2769
2769
  key: 0,
2770
2770
  type: "video/mp4",
2771
2771
  src: e.video
2772
- }, null, 8, Vo))
2773
- ], 16, xo),
2772
+ }, null, 8, Eo))
2773
+ ], 16, Ro),
2774
2774
  e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length)) ? (u(), h("div", {
2775
2775
  key: 0,
2776
- style: ee({
2776
+ style: Z({
2777
2777
  width: "100%",
2778
2778
  paddingTop: e.aspectRatio * 100 + "%",
2779
2779
  pointerEvents: "none",
2780
2780
  fontSize: "0px"
2781
2781
  })
2782
2782
  }, null, 4)) : v("", !0),
2783
- (m = (d = e.builderBlock) == null ? void 0 : d.children) != null && m.length && e.fitContent ? (u(), h("div", Bo, [
2783
+ (m = (d = e.builderBlock) == null ? void 0 : d.children) != null && m.length && e.fitContent ? (u(), h("div", Po, [
2784
2784
  P(e.$slots, "default")
2785
2785
  ])) : v("", !0),
2786
- (p = (c = e.builderBlock) == null ? void 0 : c.children) != null && p.length && !e.fitContent ? (u(), h("div", Wo, [
2786
+ (p = (c = e.builderBlock) == null ? void 0 : c.children) != null && p.length && !e.fitContent ? (u(), h("div", xo, [
2787
2787
  P(e.$slots, "default")
2788
2788
  ])) : v("", !0)
2789
2789
  ]);
2790
2790
  }
2791
- const Fo = /* @__PURE__ */ y(Po, [["render", No]]), Uo = () => [{
2792
- component: Kn,
2793
- ...Mn
2791
+ const Vo = /* @__PURE__ */ y($o, [["render", Ao]]), Bo = () => [{
2792
+ component: Mn,
2793
+ ...Fn
2794
2794
  }, {
2795
- component: Qn,
2796
- ...qn
2795
+ component: Jn,
2796
+ ...Dn
2797
2797
  }, {
2798
- component: io,
2799
- ...Xn
2798
+ component: no,
2799
+ ...Gn
2800
2800
  }, {
2801
- component: po,
2802
- ...ao
2803
- }, {
2804
- component: Co,
2805
- ...ko
2801
+ component: ao,
2802
+ ...oo
2806
2803
  }, {
2807
2804
  component: yo,
2808
- ...mo
2805
+ ...fo
2809
2806
  }, {
2810
- component: Ro,
2811
- ...wo
2807
+ component: ho,
2808
+ ...lo
2812
2809
  }, {
2813
- component: Fo,
2814
- ...Eo
2815
- }], ge = () => [{
2816
- component: ht,
2817
- ...$n
2810
+ component: wo,
2811
+ ...ko
2818
2812
  }, {
2819
- component: Xt,
2820
- ...Tn
2813
+ component: Vo,
2814
+ ...Io
2815
+ }], be = () => [{
2816
+ component: dt,
2817
+ ...vn
2821
2818
  }, {
2822
- component: tn,
2823
- ...Rn
2819
+ component: Gt,
2820
+ ...Cn
2824
2821
  }, {
2825
- component: dn,
2826
- ...En
2822
+ component: Qt,
2823
+ ...wn
2827
2824
  }, {
2828
- component: mn,
2829
- ...Pn
2825
+ component: rn,
2826
+ ...In
2830
2827
  }, {
2831
- component: Bn,
2832
- ...An
2828
+ component: cn,
2829
+ ...$n
2833
2830
  }, {
2834
- component: Hs,
2835
- ...Wn
2831
+ component: Pn,
2832
+ ...Tn
2836
2833
  }, {
2837
- component: Ln,
2838
- ...Nn
2839
- }, ...Uo()], ye = [], Oo = (e) => ({
2834
+ component: Ms,
2835
+ ...xn
2836
+ }, {
2837
+ component: Nn,
2838
+ ...An
2839
+ }, ...Bo()], Wo = (e) => ({
2840
2840
  type: "builder.registerComponent",
2841
- data: ne(e)
2842
- }), Lo = (e) => {
2841
+ data: te(e)
2842
+ }), No = (e) => {
2843
2843
  const t = e.toString().trim();
2844
2844
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
2845
- }, Mo = (e) => typeof e == "function" ? Lo(e) : j(e), ne = ({
2845
+ }, Fo = (e) => typeof e == "function" ? No(e) : H(e), te = ({
2846
2846
  inputs: e,
2847
2847
  ...t
2848
2848
  }) => ({
2849
- ...j(t),
2849
+ ...H(t),
2850
2850
  inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [s, r]) => ({
2851
2851
  ...o,
2852
- [s]: Mo(r)
2852
+ [s]: Fo(r)
2853
2853
  }), {}))
2854
- }), Do = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2854
+ }), Uo = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2855
2855
  function getAndSetVariantId() {
2856
2856
  function setCookie(name, value, days) {
2857
2857
  let expires = '';
@@ -2907,7 +2907,7 @@ const Fo = /* @__PURE__ */ y(Po, [["render", No]]), Uo = () => [{
2907
2907
  }).join('');
2908
2908
  styleEl.innerHTML = newStyleStr;
2909
2909
  }
2910
- }`, Ho = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2910
+ }`, Oo = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2911
2911
  if (!navigator.cookieEnabled) {
2912
2912
  return;
2913
2913
  }
@@ -2941,249 +2941,243 @@ const Fo = /* @__PURE__ */ y(Po, [["render", No]]), Uo = () => [{
2941
2941
  thisScriptEl?.remove();
2942
2942
  }
2943
2943
  return;
2944
- }`, je = "builderIoAbTest", Ke = "builderIoRenderContent", J = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2944
+ }`, De = "builderIoAbTest", He = "builderIoRenderContent", z = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2945
2945
  ...t,
2946
2946
  testVariationId: t.id,
2947
2947
  id: e == null ? void 0 : e.id
2948
- })), jo = ({
2948
+ })), Lo = ({
2949
2949
  canTrack: e,
2950
2950
  content: t
2951
- }) => !(!(J(t).length > 0) || !e), Ko = (e) => e === "react" || e === "reactNative", qe = Ko(A), qo = () => `
2952
- window.${je} = ${Do}
2953
- window.${Ke} = ${Ho}
2954
- `, zo = (e, t) => `
2955
- window.${je}(
2956
- "${t}",${JSON.stringify(e)}, ${qe}
2957
- )`, Jo = ({
2951
+ }) => !(!(z(t).length > 0) || !e), Mo = (e) => e === "react" || e === "reactNative", je = Mo(x), Do = () => `
2952
+ window.${De} = ${Uo}
2953
+ window.${He} = ${Oo}
2954
+ `, Ho = (e, t) => `
2955
+ window.${De}(
2956
+ "${t}",${JSON.stringify(e)}, ${je}
2957
+ )`, jo = ({
2958
2958
  contentId: e,
2959
2959
  variationId: t
2960
- }) => `window.${Ke}(
2961
- "${t}", "${e}", ${qe}
2962
- )`, ze = f({
2960
+ }) => `window.${He}(
2961
+ "${t}", "${e}", ${je}
2962
+ )`, Ke = f({
2963
2963
  render() {
2964
- return Te("script", { id: this.id, innerHTML: this.scriptStr });
2964
+ return Ie("script", { id: this.id, innerHTML: this.scriptStr });
2965
2965
  },
2966
2966
  name: "inlined-script",
2967
2967
  props: ["scriptStr", "id"]
2968
2968
  });
2969
- function Go() {
2969
+ function Ko() {
2970
2970
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
2971
2971
  }
2972
- function Yo() {
2973
- const e = Go().fetch;
2972
+ function qo() {
2973
+ const e = Ko().fetch;
2974
2974
  if (typeof e > "u")
2975
2975
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
2976
2976
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
2977
2977
  return e;
2978
2978
  }
2979
- const Je = Yo();
2980
- function G(e, t = null, n = ".") {
2979
+ const qe = qo();
2980
+ function J(e, t = null, n = ".") {
2981
2981
  return Object.keys(e).reduce((o, s) => {
2982
2982
  const r = e[s], i = [t, s].filter(Boolean).join(n);
2983
2983
  return [typeof r == "object", r !== null, !(Array.isArray(r) && r.length === 0)].every(Boolean) ? {
2984
2984
  ...o,
2985
- ...G(r, i, n)
2985
+ ...J(r, i, n)
2986
2986
  } : {
2987
2987
  ...o,
2988
2988
  [i]: r
2989
2989
  };
2990
2990
  }, {});
2991
2991
  }
2992
- const _o = "v3", ke = "builder.", Qo = "options.", Xo = (e) => {
2992
+ const zo = "v3", ge = "builder.", Jo = "options.", Go = (e) => {
2993
2993
  const t = {};
2994
2994
  return e.forEach((n, o) => {
2995
2995
  t[o] = n;
2996
2996
  }), t;
2997
- }, Ge = (e) => {
2997
+ }, ze = (e) => {
2998
2998
  if (!e)
2999
2999
  return {};
3000
- const t = Ye(e), n = {};
3000
+ const t = Je(e), n = {};
3001
3001
  return Object.keys(t).forEach((o) => {
3002
- if (o.startsWith(ke)) {
3003
- const s = o.replace(ke, "").replace(Qo, "");
3002
+ if (o.startsWith(ge)) {
3003
+ const s = o.replace(ge, "").replace(Jo, "");
3004
3004
  n[s] = t[o];
3005
3005
  }
3006
3006
  }), n;
3007
- }, Zo = () => {
3008
- if (!w())
3007
+ }, Yo = () => {
3008
+ if (!I())
3009
3009
  return {};
3010
3010
  const e = new URLSearchParams(window.location.search);
3011
- return Ge(e);
3012
- }, Ye = (e) => e instanceof URLSearchParams ? Xo(e) : e, Se = (e) => typeof e == "number" && !isNaN(e) && e >= 0, pe = (e) => {
3013
- let {
3014
- noTraverse: t = !1
3015
- } = e;
3011
+ return ze(e);
3012
+ }, Je = (e) => e instanceof URLSearchParams ? Go(e) : e, ye = (e) => typeof e == "number" && !isNaN(e) && e >= 0, ue = (e) => {
3016
3013
  const {
3017
- limit: n = 30,
3018
- userAttributes: o,
3019
- query: s,
3020
- model: r,
3021
- apiKey: i,
3022
- includeRefs: a = !0,
3023
- enrich: l,
3024
- locale: d,
3025
- apiVersion: m = _o,
3026
- fields: c,
3027
- omit: p,
3028
- offset: S,
3029
- cacheSeconds: b,
3030
- staleCacheSeconds: x,
3031
- sort: L,
3032
- includeUnpublished: me
3014
+ limit: t = 30,
3015
+ userAttributes: n,
3016
+ query: o,
3017
+ model: s,
3018
+ apiKey: r,
3019
+ enrich: i,
3020
+ locale: a,
3021
+ apiVersion: l = zo,
3022
+ fields: d,
3023
+ omit: m,
3024
+ offset: c,
3025
+ cacheSeconds: p,
3026
+ staleCacheSeconds: S,
3027
+ sort: b,
3028
+ includeUnpublished: B
3033
3029
  } = e;
3034
- if (!i)
3030
+ if (!r)
3035
3031
  throw new Error("Missing API key");
3036
- if (!["v3"].includes(m))
3037
- throw new Error(`Invalid apiVersion: expected 'v3', received '${m}'`);
3038
- (e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
3039
- const R = new URL(`https://cdn.builder.io/api/${m}/content/${r}?apiKey=${i}&limit=${n}&noTraverse=${t}&includeRefs=${a}${d ? `&locale=${d}` : ""}${l ? `&enrich=${l}` : ""}`);
3040
- if (R.searchParams.set("omit", p || "meta.componentsUsed"), c && R.searchParams.set("fields", c), Number.isFinite(S) && S > -1 && R.searchParams.set("offset", String(Math.floor(S))), typeof me == "boolean" && R.searchParams.set("includeUnpublished", String(me)), b && Se(b) && R.searchParams.set("cacheSeconds", String(b)), x && Se(x) && R.searchParams.set("staleCacheSeconds", String(x)), L) {
3041
- const W = G({
3042
- sort: L
3032
+ if (!["v3"].includes(l))
3033
+ throw new Error(`Invalid apiVersion: expected 'v3', received '${l}'`);
3034
+ const j = t !== 1, C = new URL(`https://cdn.builder.io/api/${l}/content/${s}`);
3035
+ if (C.searchParams.set("apiKey", r), C.searchParams.set("limit", String(t)), C.searchParams.set("noTraverse", String(j)), C.searchParams.set("includeRefs", String(!0)), a && C.searchParams.set("locale", a), i && C.searchParams.set("enrich", String(i)), C.searchParams.set("omit", m || "meta.componentsUsed"), d && C.searchParams.set("fields", d), Number.isFinite(c) && c > -1 && C.searchParams.set("offset", String(Math.floor(c))), typeof B == "boolean" && C.searchParams.set("includeUnpublished", String(B)), p && ye(p) && C.searchParams.set("cacheSeconds", String(p)), S && ye(S) && C.searchParams.set("staleCacheSeconds", String(S)), b) {
3036
+ const W = J({
3037
+ sort: b
3043
3038
  });
3044
- for (const M in W)
3045
- R.searchParams.set(M, JSON.stringify(W[M]));
3039
+ for (const L in W)
3040
+ C.searchParams.set(L, JSON.stringify(W[L]));
3046
3041
  }
3047
- const rt = {
3048
- ...Zo(),
3049
- ...Ye(e.options || {})
3050
- }, he = G(rt);
3051
- for (const W in he)
3052
- R.searchParams.set(W, String(he[W]));
3053
- if (o && R.searchParams.set("userAttributes", JSON.stringify(o)), s) {
3054
- const W = G({
3055
- query: s
3042
+ const tt = {
3043
+ ...Yo(),
3044
+ ...Je(e.options || {})
3045
+ }, me = J(tt);
3046
+ for (const W in me)
3047
+ C.searchParams.set(W, String(me[W]));
3048
+ if (n && C.searchParams.set("userAttributes", JSON.stringify(n)), o) {
3049
+ const W = J({
3050
+ query: o
3056
3051
  });
3057
- for (const M in W)
3058
- R.searchParams.set(M, JSON.stringify(W[M]));
3052
+ for (const L in W)
3053
+ C.searchParams.set(L, JSON.stringify(W[L]));
3059
3054
  }
3060
- return R;
3061
- }, es = (e) => "results" in e;
3062
- async function Q(e) {
3063
- const t = await _e({
3055
+ return C;
3056
+ }, _o = (e) => "results" in e;
3057
+ async function pe(e) {
3058
+ const t = await Zo({
3064
3059
  ...e,
3065
3060
  limit: 1
3066
3061
  });
3067
3062
  return t && t[0] || null;
3068
3063
  }
3069
- const _s = Q, ts = async (e) => {
3070
- const t = pe(e);
3071
- return await (await Je(t.href)).json();
3072
- }, ns = async (e, t, n = pe(e)) => {
3073
- const o = H(e.canTrack);
3074
- if (n.search.includes("preview="), !o || !(w() || A === "reactNative"))
3064
+ const Qo = async (e) => {
3065
+ const t = ue(e);
3066
+ return await (await qe(t.href)).json();
3067
+ }, Xo = async (e, t, n = ue(e)) => {
3068
+ const o = D(e.canTrack);
3069
+ if (n.search.includes("preview="), !o || !(I() || x === "reactNative"))
3075
3070
  return t.results;
3076
3071
  try {
3077
3072
  const s = [];
3078
3073
  for (const r of t.results)
3079
- s.push(await In({
3074
+ s.push(await Sn({
3080
3075
  item: r,
3081
3076
  canTrack: o
3082
3077
  }));
3083
3078
  t.results = s;
3084
3079
  } catch (s) {
3085
- $.error("Could not process A/B tests. ", s);
3080
+ T.error("Could not process A/B tests. ", s);
3086
3081
  }
3087
3082
  return t.results;
3088
3083
  };
3089
- async function _e(e) {
3084
+ async function Zo(e) {
3090
3085
  try {
3091
- const t = pe(e), n = await ts(e);
3092
- return es(n) ? ns(e, n) : ($.error("Error fetching data. ", {
3086
+ const t = ue(e), n = await Qo(e);
3087
+ return _o(n) ? Xo(e, n) : (T.error("Error fetching data. ", {
3093
3088
  url: t,
3094
3089
  content: n,
3095
3090
  options: e
3096
3091
  }), null);
3097
3092
  } catch (t) {
3098
- return $.error("Error fetching data. ", t), null;
3093
+ return T.error("Error fetching data. ", t), null;
3099
3094
  }
3100
3095
  }
3101
- const Qs = _e;
3102
- function os() {
3103
- return !w() || T() ? !1 : location.search.indexOf("builder.preview=") !== -1;
3096
+ function es() {
3097
+ return !I() || R() ? !1 : location.search.indexOf("builder.preview=") !== -1;
3104
3098
  }
3105
- function ss() {
3099
+ function ts() {
3106
3100
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
3107
3101
  const t = Math.random() * 16 | 0;
3108
3102
  return (e == "x" ? t : t & 3 | 8).toString(16);
3109
3103
  });
3110
3104
  }
3111
- function Qe() {
3112
- return ss().replace(/-/g, "");
3105
+ function Ge() {
3106
+ return ts().replace(/-/g, "");
3113
3107
  }
3114
- const Xe = "builderSessionId", rs = async ({
3108
+ const Ye = "builderSessionId", ns = async ({
3115
3109
  canTrack: e
3116
3110
  }) => {
3117
3111
  if (!e)
3118
3112
  return;
3119
- const t = await Oe({
3120
- name: Xe,
3113
+ const t = await Fe({
3114
+ name: Ye,
3121
3115
  canTrack: e
3122
3116
  });
3123
3117
  if (N(t))
3124
3118
  return t;
3125
3119
  {
3126
- const n = is();
3127
- return as({
3120
+ const n = os();
3121
+ return ss({
3128
3122
  id: n,
3129
3123
  canTrack: e
3130
3124
  }), n;
3131
3125
  }
3132
- }, is = () => Qe(), as = ({
3126
+ }, os = () => Ge(), ss = ({
3133
3127
  id: e,
3134
3128
  canTrack: t
3135
- }) => Le({
3136
- name: Xe,
3129
+ }) => Ue({
3130
+ name: Ye,
3137
3131
  value: e,
3138
3132
  canTrack: t
3139
- }), Ze = () => w() && typeof localStorage < "u" ? localStorage : void 0, ls = ({
3133
+ }), _e = () => I() && typeof localStorage < "u" ? localStorage : void 0, rs = ({
3140
3134
  key: e,
3141
3135
  canTrack: t
3142
3136
  }) => {
3143
3137
  var n;
3144
3138
  try {
3145
- return t ? (n = Ze()) == null ? void 0 : n.getItem(e) : void 0;
3139
+ return t ? (n = _e()) == null ? void 0 : n.getItem(e) : void 0;
3146
3140
  } catch (o) {
3147
3141
  console.debug("[LocalStorage] GET error: ", o);
3148
3142
  return;
3149
3143
  }
3150
- }, cs = ({
3144
+ }, is = ({
3151
3145
  key: e,
3152
3146
  canTrack: t,
3153
3147
  value: n
3154
3148
  }) => {
3155
3149
  var o;
3156
3150
  try {
3157
- t && ((o = Ze()) == null || o.setItem(e, n));
3151
+ t && ((o = _e()) == null || o.setItem(e, n));
3158
3152
  } catch (s) {
3159
3153
  console.debug("[LocalStorage] SET error: ", s);
3160
3154
  }
3161
- }, et = "builderVisitorId", ds = ({
3155
+ }, Qe = "builderVisitorId", as = ({
3162
3156
  canTrack: e
3163
3157
  }) => {
3164
3158
  if (!e)
3165
3159
  return;
3166
- const t = ls({
3167
- key: et,
3160
+ const t = rs({
3161
+ key: Qe,
3168
3162
  canTrack: e
3169
3163
  });
3170
3164
  if (N(t))
3171
3165
  return t;
3172
3166
  {
3173
- const n = us();
3174
- return ps({
3167
+ const n = ls();
3168
+ return cs({
3175
3169
  id: n,
3176
3170
  canTrack: e
3177
3171
  }), n;
3178
3172
  }
3179
- }, us = () => Qe(), ps = ({
3173
+ }, ls = () => Ge(), cs = ({
3180
3174
  id: e,
3181
3175
  canTrack: t
3182
- }) => cs({
3183
- key: et,
3176
+ }) => is({
3177
+ key: Qe,
3184
3178
  value: e,
3185
3179
  canTrack: t
3186
- }), ms = async ({
3180
+ }), ds = async ({
3187
3181
  canTrack: e
3188
3182
  }) => {
3189
3183
  if (!e)
@@ -3191,16 +3185,16 @@ const Xe = "builderSessionId", rs = async ({
3191
3185
  visitorId: void 0,
3192
3186
  sessionId: void 0
3193
3187
  };
3194
- const t = await rs({
3188
+ const t = await ns({
3195
3189
  canTrack: e
3196
- }), n = ds({
3190
+ }), n = as({
3197
3191
  canTrack: e
3198
3192
  });
3199
3193
  return {
3200
3194
  sessionId: t,
3201
3195
  visitorId: n
3202
3196
  };
3203
- }, hs = async ({
3197
+ }, us = async ({
3204
3198
  type: e,
3205
3199
  canTrack: t,
3206
3200
  apiKey: n,
@@ -3214,23 +3208,23 @@ const Xe = "builderSessionId", rs = async ({
3214
3208
  url: location.href,
3215
3209
  ...o
3216
3210
  },
3217
- ...await ms({
3211
+ ...await ds({
3218
3212
  canTrack: t
3219
3213
  }),
3220
- userAttributes: Pe(),
3214
+ userAttributes: Re(),
3221
3215
  ownerId: n
3222
3216
  }
3223
3217
  });
3224
- async function oe(e) {
3218
+ async function ne(e) {
3225
3219
  if (!e.apiKey) {
3226
- $.error("Missing API key for track call. Please provide your API key.");
3220
+ T.error("Missing API key for track call. Please provide your API key.");
3227
3221
  return;
3228
3222
  }
3229
- if (e.canTrack && !T() && (w() || A === "reactNative"))
3223
+ if (e.canTrack && !R() && (I() || x === "reactNative"))
3230
3224
  return fetch("https://cdn.builder.io/api/v1/track", {
3231
3225
  method: "POST",
3232
3226
  body: JSON.stringify({
3233
- events: [await hs(e)]
3227
+ events: [await us(e)]
3234
3228
  }),
3235
3229
  headers: {
3236
3230
  "content-type": "application/json"
@@ -3240,14 +3234,14 @@ async function oe(e) {
3240
3234
  console.error("Failed to track: ", t);
3241
3235
  });
3242
3236
  }
3243
- const Xs = (e) => oe({
3237
+ const Gs = (e) => ne({
3244
3238
  ...e,
3245
3239
  canTrack: !0
3246
3240
  });
3247
- function ve(e) {
3241
+ function ke(e) {
3248
3242
  return Math.round(e * 1e3) / 1e3;
3249
3243
  }
3250
- const fs = (e, t, n = !0) => {
3244
+ const ps = (e, t, n = !0) => {
3251
3245
  if (!(e instanceof HTMLElement))
3252
3246
  return null;
3253
3247
  let o = n ? e : e.parentElement;
@@ -3258,43 +3252,43 @@ const fs = (e, t, n = !0) => {
3258
3252
  return o;
3259
3253
  } while (o = o.parentElement);
3260
3254
  return null;
3261
- }, bs = (e) => fs(e, (t) => {
3255
+ }, ms = (e) => ps(e, (t) => {
3262
3256
  const n = t.getAttribute("builder-id") || t.id;
3263
3257
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3264
- }), Ce = ({
3258
+ }), Se = ({
3265
3259
  event: e,
3266
3260
  target: t
3267
3261
  }) => {
3268
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, s = e.clientY - n.top, r = ve(o / n.width), i = ve(s / n.height);
3262
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, s = e.clientY - n.top, r = ke(o / n.width), i = ke(s / n.height);
3269
3263
  return {
3270
3264
  x: r,
3271
3265
  y: i
3272
3266
  };
3273
- }, gs = (e) => {
3274
- const t = e.target, n = t && bs(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3267
+ }, hs = (e) => {
3268
+ const t = e.target, n = t && ms(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3275
3269
  return {
3276
3270
  targetBuilderElement: o || void 0,
3277
3271
  metadata: {
3278
- targetOffset: t ? Ce({
3272
+ targetOffset: t ? Se({
3279
3273
  event: e,
3280
3274
  target: t
3281
3275
  }) : void 0,
3282
- builderTargetOffset: n ? Ce({
3276
+ builderTargetOffset: n ? Se({
3283
3277
  event: e,
3284
3278
  target: n
3285
3279
  }) : void 0,
3286
3280
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
3287
3281
  }
3288
3282
  };
3289
- }, ys = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
3290
- function tt(e, t) {
3283
+ }, fs = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
3284
+ function Xe(e, t) {
3291
3285
  const n = new URL(t.origin), o = n.hostname;
3292
- return (e || ys).findIndex((s) => s.startsWith("*.") ? o.endsWith(s.slice(1)) : s === o) > -1;
3286
+ return (e || fs).findIndex((s) => s.startsWith("*.") ? o.endsWith(s.slice(1)) : s === o) > -1;
3293
3287
  }
3294
- const ks = "0.13.4", we = {};
3295
- function Ss(e, t) {
3296
- let n = we[e];
3297
- if (n || (n = we[e] = []), n.push(t), w()) {
3288
+ const bs = "1.0.2", ve = {};
3289
+ function gs(e, t) {
3290
+ let n = ve[e];
3291
+ if (n || (n = ve[e] = []), n.push(t), I()) {
3298
3292
  const o = {
3299
3293
  type: "builder.register",
3300
3294
  data: {
@@ -3309,8 +3303,8 @@ function Ss(e, t) {
3309
3303
  }
3310
3304
  }
3311
3305
  }
3312
- const vs = () => {
3313
- Ss("insertMenu", {
3306
+ const ys = () => {
3307
+ gs("insertMenu", {
3314
3308
  name: "_default",
3315
3309
  default: !0,
3316
3310
  items: [{
@@ -3332,14 +3326,14 @@ const vs = () => {
3332
3326
  }]
3333
3327
  });
3334
3328
  };
3335
- let Ie = !1;
3336
- const nt = (e = {}) => {
3329
+ let Ce = !1;
3330
+ const Ze = (e = {}) => {
3337
3331
  var t, n;
3338
- Ie || (Ie = !0, w() && ((t = window.parent) == null || t.postMessage({
3332
+ Ce || (Ce = !0, I() && ((t = window.parent) == null || t.postMessage({
3339
3333
  type: "builder.sdkInfo",
3340
3334
  data: {
3341
- target: A,
3342
- version: ks,
3335
+ target: x,
3336
+ version: bs,
3343
3337
  supportsPatchUpdates: !1,
3344
3338
  // Supports builder-model="..." attribute which is needed to
3345
3339
  // scope our '+ add block' button styling
@@ -3353,7 +3347,7 @@ const nt = (e = {}) => {
3353
3347
  }
3354
3348
  }, "*"), window.addEventListener("message", (o) => {
3355
3349
  var r, i;
3356
- if (!tt(e.trustedHosts, o))
3350
+ if (!Xe(e.trustedHosts, o))
3357
3351
  return;
3358
3352
  const {
3359
3353
  data: s
@@ -3394,12 +3388,12 @@ const nt = (e = {}) => {
3394
3388
  }
3395
3389
  }
3396
3390
  })));
3397
- }, ot = ({
3391
+ }, et = ({
3398
3392
  model: e,
3399
3393
  trustedHosts: t,
3400
3394
  callbacks: n
3401
3395
  }) => (o) => {
3402
- if (!tt(t, o))
3396
+ if (!Xe(t, o))
3403
3397
  return;
3404
3398
  const {
3405
3399
  data: s
@@ -3420,12 +3414,12 @@ const nt = (e = {}) => {
3420
3414
  break;
3421
3415
  }
3422
3416
  }
3423
- }, Zs = (e, t, n) => {
3424
- if (!w)
3425
- return $.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
3417
+ }, Ys = (e, t, n) => {
3418
+ if (!I)
3419
+ return T.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
3426
3420
  };
3427
- nt();
3428
- const o = ot({
3421
+ Ze();
3422
+ const o = et({
3429
3423
  callbacks: {
3430
3424
  contentUpdate: t,
3431
3425
  animation: () => {
@@ -3439,7 +3433,7 @@ const nt = (e = {}) => {
3439
3433
  return window.addEventListener("message", o), () => {
3440
3434
  window.removeEventListener("message", o);
3441
3435
  };
3442
- }, Cs = f({
3436
+ }, ks = f({
3443
3437
  name: "enable-editor",
3444
3438
  props: [
3445
3439
  "builderContextSignal",
@@ -3450,7 +3444,6 @@ const nt = (e = {}) => {
3450
3444
  "canTrack",
3451
3445
  "apiKey",
3452
3446
  "locale",
3453
- "includeRefs",
3454
3447
  "enrich",
3455
3448
  "content",
3456
3449
  "showContent",
@@ -3466,24 +3459,24 @@ const nt = (e = {}) => {
3466
3459
  ContentWrapper: this.contentWrapper || "div",
3467
3460
  httpReqsData: {},
3468
3461
  clicked: !1,
3469
- builderContext: te
3462
+ builderContext: ee
3470
3463
  };
3471
3464
  },
3472
3465
  provide() {
3473
3466
  const e = this;
3474
3467
  return {
3475
- [te.key]: e.builderContextSignal
3468
+ [ee.key]: e.builderContextSignal
3476
3469
  };
3477
3470
  },
3478
3471
  mounted() {
3479
3472
  (() => {
3480
3473
  var n, o;
3481
- if (w()) {
3482
- if (T() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
3474
+ if (I()) {
3475
+ if (R() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
3483
3476
  new CustomEvent("initeditingbldr")
3484
- ), this.builderContextSignal.content && H(this.canTrack)) {
3477
+ ), this.builderContextSignal.content && D(this.canTrack)) {
3485
3478
  const r = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, i = (o = this.builderContextSignal.content) == null ? void 0 : o.id, a = this.apiKey;
3486
- oe({
3479
+ ne({
3487
3480
  type: "impression",
3488
3481
  canTrack: !0,
3489
3482
  contentId: i,
@@ -3491,12 +3484,12 @@ const nt = (e = {}) => {
3491
3484
  variationId: r !== i ? r : void 0
3492
3485
  });
3493
3486
  }
3494
- os() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
3487
+ es() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
3495
3488
  new CustomEvent("initpreviewingbldr")
3496
3489
  );
3497
3490
  }
3498
3491
  })(), (() => {
3499
- this.apiKey || $.error(
3492
+ this.apiKey || T.error(
3500
3493
  "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3501
3494
  ), this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
3502
3495
  })();
@@ -3544,7 +3537,7 @@ const nt = (e = {}) => {
3544
3537
  }
3545
3538
  },
3546
3539
  unmounted() {
3547
- w() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
3540
+ I() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
3548
3541
  "builder:component:stateChangeListenerActivated",
3549
3542
  this.emitStateUpdate
3550
3543
  ));
@@ -3615,7 +3608,7 @@ const nt = (e = {}) => {
3615
3608
  this.builderContextSignal.content = t;
3616
3609
  },
3617
3610
  processMessage(e) {
3618
- return ot({
3611
+ return et({
3619
3612
  model: this.model,
3620
3613
  trustedHosts: this.trustedHosts,
3621
3614
  callbacks: {
@@ -3629,7 +3622,7 @@ const nt = (e = {}) => {
3629
3622
  }), this.forceReRenderCount = this.forceReRenderCount + 1);
3630
3623
  },
3631
3624
  animation: (t) => {
3632
- Ne(t);
3625
+ Be(t);
3633
3626
  },
3634
3627
  contentUpdate: (t) => {
3635
3628
  this.mergeNewContent(t), this.forceReRenderCount = this.forceReRenderCount + 1;
@@ -3640,7 +3633,7 @@ const nt = (e = {}) => {
3640
3633
  evaluateJsCode() {
3641
3634
  var t, n;
3642
3635
  const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
3643
- e && Y({
3636
+ e && G({
3644
3637
  code: e,
3645
3638
  context: this.context || {},
3646
3639
  localState: void 0,
@@ -3652,13 +3645,13 @@ const nt = (e = {}) => {
3652
3645
  var t, n;
3653
3646
  if (this.builderContextSignal.content) {
3654
3647
  const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, s = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
3655
- oe({
3648
+ ne({
3656
3649
  type: "click",
3657
- canTrack: H(this.canTrack),
3650
+ canTrack: D(this.canTrack),
3658
3651
  contentId: s,
3659
3652
  apiKey: this.apiKey,
3660
3653
  variationId: o !== s ? o : void 0,
3661
- ...gs(e),
3654
+ ...hs(e),
3662
3655
  unique: !this.clicked
3663
3656
  });
3664
3657
  }
@@ -3667,7 +3660,7 @@ const nt = (e = {}) => {
3667
3660
  evalExpression(e) {
3668
3661
  return e.replace(
3669
3662
  /{{([^}]+)}}/g,
3670
- (t, n) => Y({
3663
+ (t, n) => G({
3671
3664
  code: n,
3672
3665
  context: this.context || {},
3673
3666
  localState: void 0,
@@ -3677,7 +3670,7 @@ const nt = (e = {}) => {
3677
3670
  );
3678
3671
  },
3679
3672
  handleRequest({ url: e, key: t }) {
3680
- Je(e).then((n) => n.json()).then((n) => {
3673
+ qe(e).then((n) => n.json()).then((n) => {
3681
3674
  var s, r;
3682
3675
  const o = {
3683
3676
  ...this.builderContextSignal.rootState,
@@ -3692,7 +3685,7 @@ const nt = (e = {}) => {
3692
3685
  var t, n;
3693
3686
  const e = ((n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) ?? {};
3694
3687
  Object.entries(e).forEach(([o, s]) => {
3695
- if (s && (!this.httpReqsData[o] || T())) {
3688
+ if (s && (!this.httpReqsData[o] || R())) {
3696
3689
  const r = this.evalExpression(s);
3697
3690
  this.handleRequest({
3698
3691
  url: r,
@@ -3702,12 +3695,12 @@ const nt = (e = {}) => {
3702
3695
  });
3703
3696
  },
3704
3697
  emitStateUpdate() {
3705
- T() && window.dispatchEvent(
3698
+ R() && window.dispatchEvent(
3706
3699
  new CustomEvent(
3707
3700
  "builder:component:stateChange",
3708
3701
  {
3709
3702
  detail: {
3710
- state: j(this.builderContextSignal.rootState),
3703
+ state: H(this.builderContextSignal.rootState),
3711
3704
  ref: {
3712
3705
  name: this.model
3713
3706
  }
@@ -3717,13 +3710,10 @@ const nt = (e = {}) => {
3717
3710
  );
3718
3711
  },
3719
3712
  elementRef_onIniteditingbldr(e) {
3720
- this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage), vs(), nt({
3713
+ this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage), ys(), Ze({
3721
3714
  ...this.locale ? {
3722
3715
  locale: this.locale
3723
3716
  } : {},
3724
- ...this.includeRefs ? {
3725
- includeRefs: this.includeRefs
3726
- } : {},
3727
3717
  ...this.enrich ? {
3728
3718
  enrich: this.enrich
3729
3719
  } : {},
@@ -3734,7 +3724,7 @@ const nt = (e = {}) => {
3734
3724
  this.builderContextSignal.componentInfos
3735
3725
  ).forEach((t) => {
3736
3726
  var o;
3737
- const n = Oo(t);
3727
+ const n = Wo(t);
3738
3728
  (o = window.parent) == null || o.postMessage(n, "*");
3739
3729
  }), window.addEventListener(
3740
3730
  "builder:component:stateChangeListenerActivated",
@@ -3745,7 +3735,7 @@ const nt = (e = {}) => {
3745
3735
  const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
3746
3736
  `builder.preview.${n}`
3747
3737
  ), s = t.get("apiKey") || t.get("builder.space");
3748
- n === this.model && s === this.apiKey && (!this.content || o === this.content.id) && Q({
3738
+ n === this.model && s === this.apiKey && (!this.content || o === this.content.id) && pe({
3749
3739
  model: this.model,
3750
3740
  apiKey: this.apiKey,
3751
3741
  apiVersion: this.builderContextSignal.apiVersion
@@ -3755,9 +3745,9 @@ const nt = (e = {}) => {
3755
3745
  }
3756
3746
  }
3757
3747
  });
3758
- function ws(e, t, n, o, s, r) {
3748
+ function Ss(e, t, n, o, s, r) {
3759
3749
  var i, a, l;
3760
- return e.builderContextSignal.content ? (u(), g(D(e.ContentWrapper), C({
3750
+ return e.builderContextSignal.content ? (u(), g(M(e.ContentWrapper), w({
3761
3751
  key: e.forceReRenderCount,
3762
3752
  ref: "elementRef",
3763
3753
  onClick: (d) => e.onClick(d),
@@ -3773,13 +3763,13 @@ function ws(e, t, n, o, s, r) {
3773
3763
  },
3774
3764
  ...e.contentWrapperProps
3775
3765
  }), {
3776
- default: B(() => [
3766
+ default: V(() => [
3777
3767
  P(e.$slots, "default")
3778
3768
  ]),
3779
3769
  _: 3
3780
3770
  }, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : v("", !0);
3781
3771
  }
3782
- const Is = /* @__PURE__ */ y(Cs, [["render", ws]]), $s = (e) => {
3772
+ const vs = /* @__PURE__ */ y(ks, [["render", Ss]]), Cs = (e) => {
3783
3773
  var r;
3784
3774
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((r = e == null ? void 0 : e.files) == null ? void 0 : r.regular);
3785
3775
  let s = "";
@@ -3805,26 +3795,26 @@ font-weight: ${i};
3805
3795
  `.trim());
3806
3796
  }
3807
3797
  return s;
3808
- }, Ts = ({
3798
+ }, ws = ({
3809
3799
  customFonts: e
3810
3800
  }) => {
3811
3801
  var t;
3812
- return ((t = e == null ? void 0 : e.map((n) => $s(n))) == null ? void 0 : t.join(" ")) || "";
3813
- }, Rs = ({
3802
+ return ((t = e == null ? void 0 : e.map((n) => Cs(n))) == null ? void 0 : t.join(" ")) || "";
3803
+ }, Is = ({
3814
3804
  cssCode: e,
3815
3805
  contentId: t
3816
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Es = f({
3806
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", $s = f({
3817
3807
  name: "content-styles",
3818
- components: { InlinedStyles: de },
3808
+ components: { InlinedStyles: ce },
3819
3809
  props: ["cssCode", "contentId", "customFonts"],
3820
3810
  data() {
3821
3811
  return {
3822
3812
  injectedStyles: `
3823
- ${Rs({
3813
+ ${Is({
3824
3814
  cssCode: this.cssCode,
3825
3815
  contentId: this.contentId
3826
3816
  })}
3827
- ${Ts({
3817
+ ${ws({
3828
3818
  customFonts: this.customFonts
3829
3819
  })}
3830
3820
 
@@ -3848,11 +3838,11 @@ ${Ts({
3848
3838
  };
3849
3839
  }
3850
3840
  });
3851
- function Ps(e, t, n, o, s, r) {
3841
+ function Ts(e, t, n, o, s, r) {
3852
3842
  const i = k("inlined-styles");
3853
3843
  return u(), g(i, { styles: e.injectedStyles }, null, 8, ["styles"]);
3854
3844
  }
3855
- const As = /* @__PURE__ */ y(Es, [["render", Ps]]), xs = ({
3845
+ const Rs = /* @__PURE__ */ y($s, [["render", Ts]]), Es = ({
3856
3846
  content: e,
3857
3847
  data: t,
3858
3848
  locale: n
@@ -3869,7 +3859,7 @@ const As = /* @__PURE__ */ y(Es, [["render", Ps]]), xs = ({
3869
3859
  locale: n
3870
3860
  } : {}
3871
3861
  };
3872
- }, Vs = ({
3862
+ }, Ps = ({
3873
3863
  content: e,
3874
3864
  data: t
3875
3865
  }) => e ? {
@@ -3879,13 +3869,13 @@ const As = /* @__PURE__ */ y(Es, [["render", Ps]]), xs = ({
3879
3869
  ...t
3880
3870
  },
3881
3871
  meta: e == null ? void 0 : e.meta
3882
- } : void 0, Bs = at, Ws = f({
3872
+ } : void 0, xs = ot, As = f({
3883
3873
  name: "content-component",
3884
3874
  components: {
3885
- EnableEditor: Is,
3886
- InlinedScript: ze,
3887
- ContentStyles: As,
3888
- Blocks: K
3875
+ EnableEditor: vs,
3876
+ InlinedScript: Ke,
3877
+ ContentStyles: Rs,
3878
+ Blocks: _
3889
3879
  },
3890
3880
  props: [
3891
3881
  "content",
@@ -3899,7 +3889,6 @@ const As = /* @__PURE__ */ y(Es, [["render", Ps]]), xs = ({
3899
3889
  "blocksWrapperProps",
3900
3890
  "model",
3901
3891
  "canTrack",
3902
- "includeRefs",
3903
3892
  "enrich",
3904
3893
  "showContent",
3905
3894
  "contentWrapper",
@@ -3911,38 +3900,32 @@ const As = /* @__PURE__ */ y(Es, [["render", Ps]]), xs = ({
3911
3900
  data() {
3912
3901
  var e, t;
3913
3902
  return {
3914
- scriptStr: Jo({
3903
+ scriptStr: jo({
3915
3904
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3916
3905
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
3917
3906
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3918
3907
  contentId: (t = this.content) == null ? void 0 : t.id
3919
3908
  }),
3920
3909
  registeredComponents: [
3921
- ...ge(),
3922
- // While this `components` object is deprecated, we must maintain support for it.
3923
- // Since users are able to override our default components, we need to make sure that we do not break such
3924
- // existing usage.
3925
- // This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
3926
- // which is the new standard way of providing custom components, and must therefore take precedence.
3927
- ...ye,
3910
+ ...be(),
3928
3911
  ...this.customComponents || []
3929
3912
  ].reduce(
3930
3913
  (n, { component: o, ...s }) => ({
3931
3914
  ...n,
3932
3915
  [s.name]: {
3933
- component: Bs(o),
3934
- ...ne(s)
3916
+ component: xs(o),
3917
+ ...te(s)
3935
3918
  }
3936
3919
  }),
3937
3920
  {}
3938
3921
  ),
3939
3922
  builderContextSignal: {
3940
- content: Vs({
3923
+ content: Ps({
3941
3924
  content: this.content,
3942
3925
  data: this.data
3943
3926
  }),
3944
3927
  localState: void 0,
3945
- rootState: xs({
3928
+ rootState: Es({
3946
3929
  content: this.content,
3947
3930
  data: this.data,
3948
3931
  locale: this.locale
@@ -3952,18 +3935,12 @@ const As = /* @__PURE__ */ y(Es, [["render", Ps]]), xs = ({
3952
3935
  apiKey: this.apiKey,
3953
3936
  apiVersion: this.apiVersion,
3954
3937
  componentInfos: [
3955
- ...ge(),
3956
- // While this `components` object is deprecated, we must maintain support for it.
3957
- // Since users are able to override our default components, we need to make sure that we do not break such
3958
- // existing usage.
3959
- // This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
3960
- // which is the new standard way of providing custom components, and must therefore take precedence.
3961
- ...ye,
3938
+ ...be(),
3962
3939
  ...this.customComponents || []
3963
3940
  ].reduce(
3964
3941
  (n, { component: o, ...s }) => ({
3965
3942
  ...n,
3966
- [s.name]: ne(s)
3943
+ [s.name]: te(s)
3967
3944
  }),
3968
3945
  {}
3969
3946
  ),
@@ -3971,13 +3948,13 @@ const As = /* @__PURE__ */ y(Es, [["render", Ps]]), xs = ({
3971
3948
  BlocksWrapper: this.blocksWrapper || "div",
3972
3949
  BlocksWrapperProps: this.blocksWrapperProps || {}
3973
3950
  },
3974
- TARGET: A
3951
+ TARGET: x
3975
3952
  };
3976
3953
  },
3977
3954
  provide() {
3978
3955
  const e = this;
3979
3956
  return {
3980
- [Ee.key]: {
3957
+ [Te.key]: {
3981
3958
  registeredComponents: e.registeredComponents
3982
3959
  }
3983
3960
  };
@@ -3988,9 +3965,9 @@ const As = /* @__PURE__ */ y(Es, [["render", Ps]]), xs = ({
3988
3965
  }
3989
3966
  }
3990
3967
  });
3991
- function Ns(e, t, n, o, s, r) {
3968
+ function Vs(e, t, n, o, s, r) {
3992
3969
  const i = k("inlined-script"), a = k("content-styles"), l = k("blocks"), d = k("enable-editor");
3993
- return u(), g(d, C({
3970
+ return u(), g(d, w({
3994
3971
  content: e.content,
3995
3972
  data: e.data,
3996
3973
  model: e.model,
@@ -3998,7 +3975,6 @@ function Ns(e, t, n, o, s, r) {
3998
3975
  apiKey: e.apiKey,
3999
3976
  canTrack: e.canTrack,
4000
3977
  locale: e.locale,
4001
- includeRefs: e.includeRefs,
4002
3978
  enrich: e.enrich,
4003
3979
  showContent: e.showContent,
4004
3980
  builderContextSignal: e.builderContextSignal,
@@ -4007,8 +3983,8 @@ function Ns(e, t, n, o, s, r) {
4007
3983
  linkComponent: e.linkComponent,
4008
3984
  trustedHosts: e.trustedHosts
4009
3985
  }, {}), {
4010
- default: B(() => {
4011
- var m, c, p, S, b, x, L;
3986
+ default: V(() => {
3987
+ var m, c, p, S, b, B, j;
4012
3988
  return [
4013
3989
  e.isSsrAbTest ? (u(), g(i, {
4014
3990
  key: 0,
@@ -4020,8 +3996,8 @@ function Ns(e, t, n, o, s, r) {
4020
3996
  cssCode: (p = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : p.cssCode,
4021
3997
  customFonts: (b = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : b.customFonts
4022
3998
  }, null, 8, ["contentId", "cssCode", "customFonts"])) : v("", !0),
4023
- V(l, {
4024
- blocks: (L = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : L.blocks,
3999
+ A(l, {
4000
+ blocks: (j = (B = e.builderContextSignal.content) == null ? void 0 : B.data) == null ? void 0 : j.blocks,
4025
4001
  context: e.builderContextSignal,
4026
4002
  registeredComponents: e.registeredComponents,
4027
4003
  linkComponent: e.linkComponent
@@ -4029,14 +4005,14 @@ function Ns(e, t, n, o, s, r) {
4029
4005
  ];
4030
4006
  }),
4031
4007
  _: 1
4032
- }, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "linkComponent", "trustedHosts"]);
4008
+ }, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "linkComponent", "trustedHosts"]);
4033
4009
  }
4034
- const Fs = /* @__PURE__ */ y(Ws, [["render", Ns]]), Us = f({
4010
+ const Bs = /* @__PURE__ */ y(As, [["render", Vs]]), Ws = f({
4035
4011
  name: "content-variants",
4036
4012
  components: {
4037
- InlinedScript: ze,
4038
- InlinedStyles: de,
4039
- ContentComponent: Fs
4013
+ InlinedScript: Ke,
4014
+ InlinedStyles: ce,
4015
+ ContentComponent: Bs
4040
4016
  },
4041
4017
  props: [
4042
4018
  "canTrack",
@@ -4050,7 +4026,6 @@ const Fs = /* @__PURE__ */ y(Ws, [["render", Ns]]), Us = f({
4050
4026
  "customComponents",
4051
4027
  "linkComponent",
4052
4028
  "locale",
4053
- "includeRefs",
4054
4029
  "enrich",
4055
4030
  "blocksWrapper",
4056
4031
  "blocksWrapperProps",
@@ -4060,13 +4035,13 @@ const Fs = /* @__PURE__ */ y(Ws, [["render", Ns]]), Us = f({
4060
4035
  ],
4061
4036
  data() {
4062
4037
  return {
4063
- shouldRenderVariants: jo({
4064
- canTrack: H(this.canTrack),
4038
+ shouldRenderVariants: Lo({
4039
+ canTrack: D(this.canTrack),
4065
4040
  content: this.content
4066
4041
  }),
4067
- TARGET: A,
4068
- getScriptString: qo,
4069
- getVariants: J
4042
+ TARGET: x,
4043
+ getScriptString: Do,
4044
+ getVariants: z
4070
4045
  };
4071
4046
  },
4072
4047
  mounted() {
@@ -4075,8 +4050,8 @@ const Fs = /* @__PURE__ */ y(Ws, [["render", Ns]]), Us = f({
4075
4050
  computed: {
4076
4051
  updateCookieAndStylesScriptStr() {
4077
4052
  var e;
4078
- return zo(
4079
- J(this.content).map((t) => ({
4053
+ return Ho(
4054
+ z(this.content).map((t) => ({
4080
4055
  id: t.testVariationId,
4081
4056
  testRatio: t.testRatio
4082
4057
  })),
@@ -4084,35 +4059,35 @@ const Fs = /* @__PURE__ */ y(Ws, [["render", Ns]]), Us = f({
4084
4059
  );
4085
4060
  },
4086
4061
  hideVariantsStyleString() {
4087
- return J(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
4062
+ return z(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
4088
4063
  },
4089
4064
  defaultContent() {
4090
4065
  var e;
4091
4066
  return this.shouldRenderVariants ? {
4092
4067
  ...this.content,
4093
4068
  testVariationId: (e = this.content) == null ? void 0 : e.id
4094
- } : wn({
4069
+ } : kn({
4095
4070
  item: this.content,
4096
- canTrack: H(this.canTrack)
4071
+ canTrack: D(this.canTrack)
4097
4072
  });
4098
4073
  }
4099
4074
  }
4100
4075
  });
4101
- function Os(e, t, n, o, s, r) {
4076
+ function Ns(e, t, n, o, s, r) {
4102
4077
  var d;
4103
4078
  const i = k("inlined-script"), a = k("inlined-styles"), l = k("content-component");
4104
- return u(), h(I, null, [
4079
+ return u(), h($, null, [
4105
4080
  !e.__isNestedRender && e.TARGET !== "reactNative" ? (u(), g(i, {
4106
4081
  key: 0,
4107
4082
  scriptStr: e.getScriptString()
4108
4083
  }, null, 8, ["scriptStr"])) : v("", !0),
4109
- e.shouldRenderVariants ? (u(), h(I, { key: 1 }, [
4110
- V(a, {
4084
+ e.shouldRenderVariants ? (u(), h($, { key: 1 }, [
4085
+ A(a, {
4111
4086
  id: `variants-styles-${(d = e.content) == null ? void 0 : d.id}`,
4112
4087
  styles: e.hideVariantsStyleString
4113
4088
  }, null, 8, ["id", "styles"]),
4114
- V(i, { scriptStr: e.updateCookieAndStylesScriptStr }, null, 8, ["scriptStr"]),
4115
- (u(!0), h(I, null, O(e.getVariants(e.content), (m, c) => (u(), g(l, {
4089
+ A(i, { scriptStr: e.updateCookieAndStylesScriptStr }, null, 8, ["scriptStr"]),
4090
+ (u(!0), h($, null, O(e.getVariants(e.content), (m, c) => (u(), g(l, {
4116
4091
  key: m.testVariationId,
4117
4092
  content: m,
4118
4093
  showContent: !1,
@@ -4125,7 +4100,6 @@ function Os(e, t, n, o, s, r) {
4125
4100
  linkComponent: e.linkComponent,
4126
4101
  canTrack: e.canTrack,
4127
4102
  locale: e.locale,
4128
- includeRefs: e.includeRefs,
4129
4103
  enrich: e.enrich,
4130
4104
  isSsrAbTest: e.shouldRenderVariants,
4131
4105
  blocksWrapper: e.blocksWrapper,
@@ -4133,9 +4107,9 @@ function Os(e, t, n, o, s, r) {
4133
4107
  contentWrapper: e.contentWrapper,
4134
4108
  contentWrapperProps: e.contentWrapperProps,
4135
4109
  trustedHosts: e.trustedHosts
4136
- }, null, 8, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
4110
+ }, null, 8, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
4137
4111
  ], 64)) : v("", !0),
4138
- V(l, C({
4112
+ A(l, w({
4139
4113
  content: e.defaultContent,
4140
4114
  showContent: !0,
4141
4115
  model: e.model,
@@ -4147,7 +4121,6 @@ function Os(e, t, n, o, s, r) {
4147
4121
  linkComponent: e.linkComponent,
4148
4122
  canTrack: e.canTrack,
4149
4123
  locale: e.locale,
4150
- includeRefs: e.includeRefs,
4151
4124
  enrich: e.enrich,
4152
4125
  isSsrAbTest: e.shouldRenderVariants,
4153
4126
  blocksWrapper: e.blocksWrapper,
@@ -4157,16 +4130,16 @@ function Os(e, t, n, o, s, r) {
4157
4130
  trustedHosts: e.trustedHosts
4158
4131
  }, {
4159
4132
  key: e.shouldRenderVariants.toString()
4160
- }), null, 16, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
4133
+ }), null, 16, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
4161
4134
  ], 64);
4162
4135
  }
4163
- const st = /* @__PURE__ */ y(Us, [["render", Os]]), Ls = async ({
4136
+ const Fs = /* @__PURE__ */ y(Ws, [["render", Ns]]), Us = async ({
4164
4137
  builderContextValue: e,
4165
4138
  symbol: t
4166
4139
  }) => {
4167
4140
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4168
4141
  (e != null && e.apiKey))
4169
- return Q({
4142
+ return pe({
4170
4143
  model: t.model,
4171
4144
  apiKey: e.apiKey,
4172
4145
  apiVersion: e.apiVersion,
@@ -4176,11 +4149,11 @@ const st = /* @__PURE__ */ y(Us, [["render", Os]]), Ls = async ({
4176
4149
  }
4177
4150
  }
4178
4151
  }).catch((n) => {
4179
- $.error("Could not fetch symbol content: ", n);
4152
+ T.error("Could not fetch symbol content: ", n);
4180
4153
  });
4181
- }, Ms = f({
4154
+ }, Os = f({
4182
4155
  name: "builder-symbol",
4183
- components: { ContentVariants: st },
4156
+ components: { ContentVariants: Fs },
4184
4157
  props: [
4185
4158
  "attributes",
4186
4159
  "symbol",
@@ -4209,7 +4182,7 @@ const st = /* @__PURE__ */ y(Us, [["render", Os]]), Ls = async ({
4209
4182
  className() {
4210
4183
  var e, t;
4211
4184
  return [
4212
- this.attributes[re()],
4185
+ this.attributes[se()],
4213
4186
  "builder-symbol",
4214
4187
  (e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
4215
4188
  (t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
@@ -4223,7 +4196,7 @@ const st = /* @__PURE__ */ y(Us, [["render", Os]]), Ls = async ({
4223
4196
  },
4224
4197
  methods: {
4225
4198
  setContent() {
4226
- this.contentToUse || Ls({
4199
+ this.contentToUse || Us({
4227
4200
  symbol: this.symbol,
4228
4201
  builderContextValue: this.builderContext
4229
4202
  }).then((e) => {
@@ -4232,11 +4205,11 @@ const st = /* @__PURE__ */ y(Us, [["render", Os]]), Ls = async ({
4232
4205
  }
4233
4206
  }
4234
4207
  });
4235
- function Ds(e, t, n, o, s, r) {
4208
+ function Ls(e, t, n, o, s, r) {
4236
4209
  var a, l, d, m, c;
4237
4210
  const i = k("content-variants");
4238
- return u(), h("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4239
- V(i, {
4211
+ return u(), h("div", w({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4212
+ A(i, {
4240
4213
  __isNestedRender: !0,
4241
4214
  apiVersion: e.builderContext.apiVersion,
4242
4215
  apiKey: e.builderContext.apiKey,
@@ -4256,18 +4229,18 @@ function Ds(e, t, n, o, s, r) {
4256
4229
  }, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content", "linkComponent"])
4257
4230
  ], 16);
4258
4231
  }
4259
- const Hs = /* @__PURE__ */ y(Ms, [["render", Ds]]), er = K, tr = st, $e = {};
4260
- function nr(e) {
4261
- if (w()) {
4262
- Object.assign($e, e);
4232
+ const Ms = /* @__PURE__ */ y(Os, [["render", Ls]]), we = {};
4233
+ function _s(e) {
4234
+ if (I()) {
4235
+ Object.assign(we, e);
4263
4236
  const t = {
4264
4237
  type: "builder.settingsChange",
4265
- data: $e
4238
+ data: we
4266
4239
  };
4267
4240
  parent.postMessage(t, "*");
4268
4241
  }
4269
4242
  }
4270
- const or = async (e) => {
4243
+ const Qs = async (e) => {
4271
4244
  var o, s, r;
4272
4245
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((s = e.userAttributes) == null ? void 0 : s.urlPath), n = {
4273
4246
  ...e,
@@ -4279,55 +4252,51 @@ const or = async (e) => {
4279
4252
  urlPath: t
4280
4253
  } : {}
4281
4254
  },
4282
- options: Ge(e.searchParams || ((r = e.url) == null ? void 0 : r.searchParams) || e.options)
4255
+ options: ze(e.searchParams || ((r = e.url) == null ? void 0 : r.searchParams) || e.options)
4283
4256
  };
4284
4257
  return {
4285
4258
  apiKey: n.apiKey,
4286
4259
  model: n.model,
4287
- content: await Q(n)
4260
+ content: await pe(n)
4288
4261
  };
4289
4262
  };
4290
4263
  export {
4291
- ns as A,
4292
- ce as B,
4293
- st as C,
4294
- _e as D,
4295
- Q as E,
4296
- tn as F,
4297
- Qs as G,
4298
- _s as H,
4299
- dn as I,
4300
- qs as J,
4301
- Gs as K,
4302
- er as R,
4303
- mn as S,
4304
- A as T,
4305
- Fo as V,
4306
- de as _,
4307
- Yt as a,
4308
- zs as b,
4264
+ Zo as A,
4265
+ le as B,
4266
+ Fs as C,
4267
+ pe as D,
4268
+ js as E,
4269
+ Qt as F,
4270
+ zs as G,
4271
+ rn as I,
4272
+ cn as S,
4273
+ x as T,
4274
+ Vo as V,
4275
+ ce as _,
4276
+ qt as a,
4277
+ Ks as b,
4309
4278
  N as c,
4310
- Ys as d,
4279
+ Js as d,
4311
4280
  y as e,
4312
- Y as f,
4313
- Ve as g,
4314
- Js as h,
4315
- re as i,
4316
- te as j,
4317
- K as k,
4318
- tr as l,
4319
- ht as m,
4320
- Xt as n,
4321
- Hs as o,
4322
- Ln as p,
4323
- T as q,
4324
- os as r,
4325
- Oo as s,
4326
- Ss as t,
4327
- nr as u,
4328
- Ge as v,
4329
- Bs as w,
4330
- Xs as x,
4331
- Zs as y,
4332
- or as z
4281
+ G as f,
4282
+ xe as g,
4283
+ qs as h,
4284
+ se as i,
4285
+ ee as j,
4286
+ _ as k,
4287
+ dt as l,
4288
+ Gt as m,
4289
+ Ms as n,
4290
+ Nn as o,
4291
+ R as p,
4292
+ es as q,
4293
+ Wo as r,
4294
+ gs as s,
4295
+ _s as t,
4296
+ ze as u,
4297
+ Gs as v,
4298
+ xs as w,
4299
+ Ys as x,
4300
+ Qs as y,
4301
+ Xo as z
4333
4302
  };