@builder.io/sdk-vue 1.0.27 → 1.0.28

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 (118) hide show
  1. package/lib/browser/{block-styles-5vJtIFGc.js → block-styles-7fSdcHZX.js} +16 -14
  2. package/lib/browser/{block-styles-LT72luTT.cjs → block-styles-XehbqIDj.cjs} +1 -1
  3. package/lib/browser/{block-wrapper-JrLSq3J2.js → block-wrapper-pcluv3oE.js} +6 -6
  4. package/lib/browser/block-wrapper-q64hZN1q.cjs +1 -0
  5. package/lib/browser/blocks/accordion/accordion.types.d.ts +12 -0
  6. package/lib/browser/blocks/accordion/accordion.vue.d.ts +43 -0
  7. package/lib/browser/blocks/accordion/component-info.d.ts +2 -0
  8. package/lib/browser/blocks/accordion/helpers.d.ts +1 -0
  9. package/lib/browser/blocks/accordion/index.d.ts +1 -0
  10. package/lib/browser/blocks/button/button.vue.d.ts +3 -3
  11. package/lib/browser/blocks/columns/columns.vue.d.ts +3 -3
  12. package/lib/browser/blocks/form/form/form.vue.d.ts +3 -3
  13. package/lib/browser/blocks/form/input/input.vue.d.ts +3 -3
  14. package/lib/browser/blocks/form/select/select.vue.d.ts +3 -3
  15. package/lib/browser/blocks/img/img.vue.d.ts +3 -3
  16. package/lib/browser/blocks/section/section.vue.d.ts +3 -3
  17. package/lib/browser/blocks/symbol/symbol.vue.d.ts +3 -3
  18. package/lib/browser/blocks/tabs/tabs.vue.d.ts +4 -4
  19. package/lib/browser/blocks/video/video.vue.d.ts +3 -3
  20. package/lib/browser/{component-ref-gxDw0wuA.js → component-ref-WhzAplFn.js} +5 -5
  21. package/lib/browser/{component-ref-iTvdhu8t.cjs → component-ref-hbOiuBde.cjs} +1 -1
  22. package/lib/browser/components/block/animator.d.ts +0 -1
  23. package/lib/browser/components/content/content.vue.d.ts +3 -3
  24. package/lib/browser/components/content-variants/content-variants.types.d.ts +1 -1
  25. package/lib/browser/components/content-variants/content-variants.vue.d.ts +3 -3
  26. package/lib/browser/components/dynamic-renderer/dynamic-renderer.vue.d.ts +3 -3
  27. package/lib/browser/constants/sdk-version.d.ts +1 -1
  28. package/lib/browser/functions/camel-to-kebab-case.d.ts +1 -1
  29. package/lib/browser/{get-block-properties-kzs3bKSe.js → get-block-properties-ObL3gpIA.js} +1 -1
  30. package/lib/browser/{get-block-properties-eTge7Psf.cjs → get-block-properties-vA5n_ANC.cjs} +1 -1
  31. package/lib/browser/index-CBcGD3qe.cjs +166 -0
  32. package/lib/browser/{index-sDts8rvf.js → index-NHNyRHHd.js} +1215 -955
  33. package/lib/browser/index.cjs +1 -1
  34. package/lib/browser/{index.js → index.mjs} +1 -1
  35. package/lib/browser/{repeated-block-Qlvgzgy_.js → repeated-block-HcLgTzGb.js} +5 -5
  36. package/lib/browser/{repeated-block-VOp3bqi_.cjs → repeated-block-uHDnqrOR.cjs} +1 -1
  37. package/lib/browser/style.css +1 -1
  38. package/lib/{node/block-styles-rm11zBuW.js → edge/block-styles-CTZ1DlUz.js} +16 -14
  39. package/lib/edge/{block-styles-W7NZdgo_.cjs → block-styles-XGW5hqiN.cjs} +1 -1
  40. package/lib/edge/block-wrapper-VuYzlW7Y.cjs +1 -0
  41. package/lib/edge/{block-wrapper-OIDhZ8QC.js → block-wrapper-wCNxDQcs.js} +6 -6
  42. package/lib/edge/blocks/accordion/accordion.types.d.ts +12 -0
  43. package/lib/edge/blocks/accordion/accordion.vue.d.ts +43 -0
  44. package/lib/edge/blocks/accordion/component-info.d.ts +2 -0
  45. package/lib/edge/blocks/accordion/helpers.d.ts +1 -0
  46. package/lib/edge/blocks/accordion/index.d.ts +1 -0
  47. package/lib/edge/blocks/button/button.vue.d.ts +3 -3
  48. package/lib/edge/blocks/columns/columns.vue.d.ts +3 -3
  49. package/lib/edge/blocks/form/form/form.vue.d.ts +3 -3
  50. package/lib/edge/blocks/form/input/input.vue.d.ts +3 -3
  51. package/lib/edge/blocks/form/select/select.vue.d.ts +3 -3
  52. package/lib/edge/blocks/img/img.vue.d.ts +3 -3
  53. package/lib/edge/blocks/section/section.vue.d.ts +3 -3
  54. package/lib/edge/blocks/symbol/symbol.vue.d.ts +3 -3
  55. package/lib/edge/blocks/tabs/tabs.vue.d.ts +4 -4
  56. package/lib/edge/blocks/video/video.vue.d.ts +3 -3
  57. package/lib/{node/component-ref-WoJnhrB7.cjs → edge/component-ref-0UjIkTRe.cjs} +1 -1
  58. package/lib/{node/component-ref-fhwnMZz8.js → edge/component-ref-2FEXrlDH.js} +5 -5
  59. package/lib/edge/components/block/animator.d.ts +0 -1
  60. package/lib/edge/components/content/content.vue.d.ts +3 -3
  61. package/lib/edge/components/content-variants/content-variants.types.d.ts +1 -1
  62. package/lib/edge/components/content-variants/content-variants.vue.d.ts +3 -3
  63. package/lib/edge/components/dynamic-renderer/dynamic-renderer.vue.d.ts +3 -3
  64. package/lib/edge/constants/sdk-version.d.ts +1 -1
  65. package/lib/edge/functions/camel-to-kebab-case.d.ts +1 -1
  66. package/lib/{node/get-block-properties-NQY7lR-2.js → edge/get-block-properties-KMc2VX03.js} +1 -1
  67. package/lib/edge/{get-block-properties-VeBLUsdk.cjs → get-block-properties-Pjvc5UeX.cjs} +1 -1
  68. package/lib/edge/{index-QWsu5MiN.js → index-PLoH3kq6.js} +1723 -1463
  69. package/lib/edge/index-Zh1Fu4x5.cjs +186 -0
  70. package/lib/edge/index.cjs +1 -1
  71. package/lib/edge/{index.js → index.mjs} +1 -1
  72. package/lib/edge/{repeated-block-Ge8TbIKG.js → repeated-block-JMXC448R.js} +5 -5
  73. package/lib/edge/{repeated-block-OubyYvC0.cjs → repeated-block-bl4dw-ee.cjs} +1 -1
  74. package/lib/edge/style.css +1 -1
  75. package/lib/{edge/block-styles-AYBXOYOn.js → node/block-styles-WCFA1FJi.js} +16 -14
  76. package/lib/node/{block-styles-Iwegahoe.cjs → block-styles-m8PEpg_S.cjs} +1 -1
  77. package/lib/node/block-wrapper-6-bEK6RJ.cjs +1 -0
  78. package/lib/node/{block-wrapper-srcEZrVN.js → block-wrapper-x45MAliP.js} +6 -6
  79. package/lib/node/blocks/accordion/accordion.types.d.ts +12 -0
  80. package/lib/node/blocks/accordion/accordion.vue.d.ts +43 -0
  81. package/lib/node/blocks/accordion/component-info.d.ts +2 -0
  82. package/lib/node/blocks/accordion/helpers.d.ts +1 -0
  83. package/lib/node/blocks/accordion/index.d.ts +1 -0
  84. package/lib/node/blocks/button/button.vue.d.ts +3 -3
  85. package/lib/node/blocks/columns/columns.vue.d.ts +3 -3
  86. package/lib/node/blocks/form/form/form.vue.d.ts +3 -3
  87. package/lib/node/blocks/form/input/input.vue.d.ts +3 -3
  88. package/lib/node/blocks/form/select/select.vue.d.ts +3 -3
  89. package/lib/node/blocks/img/img.vue.d.ts +3 -3
  90. package/lib/node/blocks/section/section.vue.d.ts +3 -3
  91. package/lib/node/blocks/symbol/symbol.vue.d.ts +3 -3
  92. package/lib/node/blocks/tabs/tabs.vue.d.ts +4 -4
  93. package/lib/node/blocks/video/video.vue.d.ts +3 -3
  94. package/lib/{edge/component-ref-dNZrnHbg.cjs → node/component-ref-2xD3cUVB.cjs} +1 -1
  95. package/lib/{edge/component-ref-rBP7Enzc.js → node/component-ref-ppTIcqTZ.js} +5 -5
  96. package/lib/node/components/block/animator.d.ts +0 -1
  97. package/lib/node/components/content/content.vue.d.ts +3 -3
  98. package/lib/node/components/content-variants/content-variants.types.d.ts +1 -1
  99. package/lib/node/components/content-variants/content-variants.vue.d.ts +3 -3
  100. package/lib/node/components/dynamic-renderer/dynamic-renderer.vue.d.ts +3 -3
  101. package/lib/node/constants/sdk-version.d.ts +1 -1
  102. package/lib/node/functions/camel-to-kebab-case.d.ts +1 -1
  103. package/lib/node/{get-block-properties-VZy5JLJH.cjs → get-block-properties-kiD2Uguw.cjs} +1 -1
  104. package/lib/{edge/get-block-properties-TQklEtas.js → node/get-block-properties-scJ1QT5R.js} +1 -1
  105. package/lib/node/index-HEAc1-ZF.cjs +213 -0
  106. package/lib/node/{index-551oCh4n.js → index-SBrRKKYe.js} +475 -215
  107. package/lib/node/index.cjs +1 -1
  108. package/lib/node/{index.js → index.mjs} +1 -1
  109. package/lib/node/{repeated-block-cGtcw64F.cjs → repeated-block-NLULJLm9.cjs} +1 -1
  110. package/lib/node/{repeated-block-UcyfQ95X.js → repeated-block-NuJ5uVX7.js} +5 -5
  111. package/lib/node/style.css +1 -1
  112. package/package.json +17 -17
  113. package/lib/browser/block-wrapper-a_8x6uWh.cjs +0 -1
  114. package/lib/browser/index-7ZQyrM-R.cjs +0 -166
  115. package/lib/edge/block-wrapper-rvM_UKzu.cjs +0 -1
  116. package/lib/edge/index-iGyGCnH8.cjs +0 -186
  117. package/lib/node/block-wrapper-gmX-LBXN.cjs +0 -1
  118. package/lib/node/index-cjjbqLNI.cjs +0 -213
@@ -1,51 +1,51 @@
1
- var dt = Object.defineProperty;
2
- var ut = (e, t, n) => t in e ? dt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var ne = (e, t, n) => (ut(e, typeof t != "symbol" ? t + "" : t, n), n);
1
+ var pt = Object.defineProperty;
2
+ var mt = (e, t, n) => t in e ? pt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var oe = (e, t, n) => (mt(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import "./style.css";
5
- import { defineComponent as f, openBlock as u, createElementBlock as h, Fragment as $, createBlock as k, resolveDynamicComponent as H, mergeProps as w, toHandlers as x, withCtx as B, renderSlot as P, resolveComponent as y, createTextVNode as pt, toDisplayString as te, defineAsyncComponent as D, createVNode as E, renderList as O, createCommentVNode as S, h as Ee, createElementVNode as _, normalizeStyle as K, normalizeClass as de, markRaw as mt } from "vue";
6
- const ht = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ft = (e) => typeof e == "string" && ht.has(e.toLowerCase());
7
- function W(e = {}, t, n) {
5
+ import { defineComponent as f, openBlock as d, createElementBlock as m, Fragment as I, createBlock as k, resolveDynamicComponent as K, mergeProps as w, toHandlers as B, withCtx as V, renderSlot as P, resolveComponent as g, createTextVNode as ht, toDisplayString as ne, defineAsyncComponent as H, createVNode as $, renderList as W, createCommentVNode as S, h as xe, createElementVNode as z, normalizeStyle as D, normalizeClass as J, markRaw as ft } from "vue";
6
+ const bt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), gt = (e) => typeof e == "string" && bt.has(e.toLowerCase());
7
+ function N(e = {}, t, n) {
8
8
  const o = {};
9
- for (const s in e) {
10
- if (!e[s] || n && !s.startsWith(t))
9
+ for (const r in e) {
10
+ if (!e[r] || n && !r.startsWith(t))
11
11
  continue;
12
- const r = n ? s.replace(t, "") : s;
13
- o[r] = e[s];
12
+ const s = n ? r.replace(t, "") : r;
13
+ o[s] = e[r];
14
14
  }
15
15
  return o;
16
16
  }
17
- const bt = f({
17
+ const yt = f({
18
18
  name: "dynamic-renderer",
19
19
  props: ["TagName", "attributes", "actionAttributes"],
20
20
  data() {
21
- return { isEmptyElement: ft };
21
+ return { isEmptyElement: gt };
22
22
  }
23
23
  }), b = (e, t) => {
24
24
  const n = e.__vccOpts || e;
25
- for (const [o, s] of t)
26
- n[o] = s;
25
+ for (const [o, r] of t)
26
+ n[o] = r;
27
27
  return n;
28
28
  };
29
- function gt(e, t, n, o, s, r) {
30
- return e.isEmptyElement(e.TagName) ? (u(), k(H(e.TagName), w({ key: 1 }, e.attributes, x(e.actionAttributes)), null, 16)) : (u(), h($, { key: 0 }, [
31
- typeof e.TagName == "string" ? (u(), k(H(e.TagName), w({ key: 0 }, e.attributes, x(e.actionAttributes)), {
32
- default: B(() => [
29
+ function kt(e, t, n, o, r, s) {
30
+ return e.isEmptyElement(e.TagName) ? (d(), k(K(e.TagName), w({ key: 1 }, e.attributes, B(e.actionAttributes)), null, 16)) : (d(), m(I, { key: 0 }, [
31
+ typeof e.TagName == "string" ? (d(), k(K(e.TagName), w({ key: 0 }, e.attributes, B(e.actionAttributes)), {
32
+ default: V(() => [
33
33
  P(e.$slots, "default")
34
34
  ]),
35
35
  _: 3
36
- }, 16)) : (u(), k(H(e.TagName), w({ key: 1 }, e.attributes, x(e.actionAttributes)), {
37
- default: B(() => [
36
+ }, 16)) : (d(), k(K(e.TagName), w({ key: 1 }, e.attributes, B(e.actionAttributes)), {
37
+ default: V(() => [
38
38
  P(e.$slots, "default")
39
39
  ]),
40
40
  _: 3
41
41
  }, 16))
42
42
  ], 64));
43
43
  }
44
- const ue = /* @__PURE__ */ b(bt, [["render", gt]]), fr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
44
+ const me = /* @__PURE__ */ b(yt, [["render", kt]]), Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
45
45
  __proto__: null,
46
- default: ue
47
- }, Symbol.toStringTag, { value: "Module" })), V = "vue", Z = () => {
48
- switch (V) {
46
+ default: me
47
+ }, Symbol.toStringTag, { value: "Module" })), x = "vue", ee = () => {
48
+ switch (x) {
49
49
  case "react":
50
50
  case "reactNative":
51
51
  case "rsc":
@@ -57,9 +57,9 @@ const ue = /* @__PURE__ */ b(bt, [["render", gt]]), fr = /* @__PURE__ */ Object.
57
57
  case "angular":
58
58
  return "class";
59
59
  }
60
- }, yt = f({
60
+ }, St = f({
61
61
  name: "builder-button",
62
- components: { DynamicRenderer: ue },
62
+ components: { DynamicRenderer: me },
63
63
  props: [
64
64
  "attributes",
65
65
  "link",
@@ -68,13 +68,13 @@ const ue = /* @__PURE__ */ b(bt, [["render", gt]]), fr = /* @__PURE__ */ Object.
68
68
  "text"
69
69
  ],
70
70
  data() {
71
- return { filterAttrs: W };
71
+ return { filterAttrs: N };
72
72
  },
73
73
  methods: {
74
74
  attrs() {
75
75
  return {
76
- ...W(this.attributes, "v-on:", !1),
77
- [Z()]: `${this.link ? "" : "builder-button"} ${this.attributes[Z()] || ""}`,
76
+ ...N(this.attributes, "v-on:", !1),
77
+ [ee()]: `${this.link ? "" : "builder-button"} ${this.attributes[ee()] || ""}`,
78
78
  ...this.link ? {
79
79
  href: this.link,
80
80
  target: this.openLinkInNewTab ? "_blank" : void 0,
@@ -86,20 +86,20 @@ const ue = /* @__PURE__ */ b(bt, [["render", gt]]), fr = /* @__PURE__ */ Object.
86
86
  }
87
87
  }
88
88
  });
89
- function kt(e, t, n, o, s, r) {
90
- const i = y("dynamic-renderer");
91
- return u(), k(i, {
89
+ function vt(e, t, n, o, r, s) {
90
+ const i = g("DynamicRenderer");
91
+ return d(), k(i, {
92
92
  attributes: e.attrs(),
93
93
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
94
94
  actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
95
95
  }, {
96
- default: B(() => [
97
- pt(te(e.text), 1)
96
+ default: V(() => [
97
+ ht(ne(e.text), 1)
98
98
  ]),
99
99
  _: 1
100
100
  }, 8, ["attributes", "TagName", "actionAttributes"]);
101
101
  }
102
- const vt = /* @__PURE__ */ b(yt, [["render", kt]]), St = Symbol(), ie = {
102
+ const Ct = /* @__PURE__ */ b(St, [["render", vt]]), wt = Symbol(), ce = {
103
103
  Builder: {
104
104
  content: null,
105
105
  context: {},
@@ -114,12 +114,12 @@ const vt = /* @__PURE__ */ b(yt, [["render", kt]]), St = Symbol(), ie = {
114
114
  BlocksWrapper: "div",
115
115
  BlocksWrapperProps: {}
116
116
  },
117
- key: St
118
- }, Ct = Symbol(), Pe = {
117
+ key: wt
118
+ }, Tt = Symbol(), Ae = {
119
119
  Components: { registeredComponents: {} },
120
- key: Ct
120
+ key: Tt
121
121
  };
122
- function wt(e) {
122
+ function It(e) {
123
123
  var t;
124
124
  return {
125
125
  ...(t = e.component) == null ? void 0 : t.options,
@@ -130,36 +130,36 @@ function wt(e) {
130
130
  builderBlock: e
131
131
  };
132
132
  }
133
- const Q = "[Builder.io]: ", R = {
134
- log: (...e) => console.log(Q, ...e),
135
- error: (...e) => console.error(Q, ...e),
136
- warn: (...e) => console.warn(Q, ...e),
137
- debug: (...e) => console.debug(Q, ...e)
133
+ const Z = "[Builder.io]: ", E = {
134
+ log: (...e) => console.log(Z, ...e),
135
+ error: (...e) => console.error(Z, ...e),
136
+ warn: (...e) => console.warn(Z, ...e),
137
+ debug: (...e) => console.debug(Z, ...e)
138
138
  };
139
139
  function T() {
140
140
  return typeof window < "u" && typeof document < "u";
141
141
  }
142
- const Tt = (e) => {
142
+ const $t = (e) => {
143
143
  const t = {};
144
144
  return e.forEach((n, o) => {
145
145
  t[o] = n;
146
146
  }), t;
147
- }, xe = (e) => e instanceof URLSearchParams ? Tt(e) : e, Ve = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
148
- function $t() {
147
+ }, Ve = (e) => e instanceof URLSearchParams ? $t(e) : e, We = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
148
+ function Rt() {
149
149
  return T() && window.self !== window.top;
150
150
  }
151
- function I(e) {
152
- return $t() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
153
- Ve(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
151
+ function R(e) {
152
+ return Rt() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
153
+ We(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
154
154
  }
155
- const It = () => {
155
+ const Et = () => {
156
156
  if (T()) {
157
157
  const e = new URL(location.href);
158
158
  return e.pathname === "" && (e.pathname = "/"), e;
159
159
  } else
160
160
  return console.warn("Cannot get location for tracking in non-browser environment"), null;
161
- }, Rt = () => typeof navigator == "object" && navigator.userAgent || "", Ae = () => {
162
- const e = Rt(), t = {
161
+ }, Pt = () => typeof navigator == "object" && navigator.userAgent || "", Ne = () => {
162
+ const e = Pt(), t = {
163
163
  Android() {
164
164
  return e.match(/Android/i);
165
165
  },
@@ -176,15 +176,15 @@ const It = () => {
176
176
  return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
177
177
  },
178
178
  any() {
179
- return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || V === "reactNative";
179
+ return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || x === "reactNative";
180
180
  }
181
- }, n = e.match(/Tablet|iPad/i), o = It();
181
+ }, n = e.match(/Tablet|iPad/i), o = Et();
182
182
  return {
183
183
  urlPath: o == null ? void 0 : o.pathname,
184
184
  host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
185
185
  device: n ? "tablet" : t.any() ? "mobile" : "desktop"
186
186
  };
187
- }, Et = ({
187
+ }, Bt = ({
188
188
  builder: e,
189
189
  context: t,
190
190
  event: n,
@@ -196,56 +196,56 @@ const It = () => {
196
196
  builder: e,
197
197
  context: t,
198
198
  event: n
199
- }), Pt = () => ({
200
- isEditing: I(),
199
+ }), xt = () => ({
200
+ isEditing: R(),
201
201
  isBrowser: T(),
202
202
  isServer: !T(),
203
- getUserAttributes: () => Ae()
204
- }), xt = (e, {
203
+ getUserAttributes: () => Ne()
204
+ }), At = (e, {
205
205
  isExpression: t = !0
206
- }) => /* 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, ye = ({
206
+ }) => /* 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, ve = ({
207
207
  code: e,
208
208
  builder: t,
209
209
  context: n,
210
210
  event: o,
211
- localState: s,
212
- rootSetState: r,
211
+ localState: r,
212
+ rootSetState: s,
213
213
  rootState: i
214
214
  }) => {
215
- const a = Et({
215
+ const l = Bt({
216
216
  builder: t,
217
217
  context: n,
218
218
  event: o,
219
- state: Be({
219
+ state: Fe({
220
220
  rootState: i,
221
- localState: s,
222
- rootSetState: r
221
+ localState: r,
222
+ rootSetState: s
223
223
  })
224
224
  });
225
- return new Function(...a.map(([l]) => l), e)(...a.map(([, l]) => l));
225
+ return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
226
226
  };
227
- function Be({
227
+ function Fe({
228
228
  rootState: e,
229
229
  localState: t,
230
230
  rootSetState: n
231
231
  }) {
232
232
  return new Proxy(e, {
233
- get: (o, s) => {
234
- if (t && s in t)
235
- return t[s];
236
- const r = o[s];
237
- return typeof r == "object" && r !== null ? Be({
238
- rootState: r,
233
+ get: (o, r) => {
234
+ if (t && r in t)
235
+ return t[r];
236
+ const s = o[r];
237
+ return typeof s == "object" && s !== null ? Fe({
238
+ rootState: s,
239
239
  localState: void 0,
240
240
  rootSetState: n ? (i) => {
241
- o[s] = i, n(o);
241
+ o[r] = i, n(o);
242
242
  } : void 0
243
- }) : r;
243
+ }) : s;
244
244
  },
245
- set: (o, s, r) => {
246
- if (t && s in t)
245
+ set: (o, r, s) => {
246
+ if (t && r in t)
247
247
  throw new Error("Writing to local state is not allowed as it is read-only.");
248
- return o[s] = r, n == null || n(o), !0;
248
+ return o[r] = s, n == null || n(o), !0;
249
249
  }
250
250
  });
251
251
  }
@@ -254,13 +254,13 @@ function Vt() {
254
254
  var e;
255
255
  return typeof process < "u" && U((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
256
256
  }
257
- const At = () => {
257
+ const Wt = () => {
258
258
  var o;
259
259
  if (!Vt())
260
260
  return !1;
261
261
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
262
- return e && t && !n ? (R.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;
263
- }, Bt = (e) => (T() || At(), ye(e)), A = class A {
262
+ return e && t && !n ? (E.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
263
+ }, Nt = (e) => (T() || Wt(), ve(e)), A = class A {
264
264
  static getCacheKey(t) {
265
265
  return JSON.stringify({
266
266
  ...t,
@@ -278,208 +278,208 @@ const At = () => {
278
278
  });
279
279
  }
280
280
  };
281
- ne(A, "cacheLimit", 20), ne(A, "cache", /* @__PURE__ */ new Map());
281
+ oe(A, "cacheLimit", 20), oe(A, "cache", /* @__PURE__ */ new Map());
282
282
  let L = A;
283
- function ee({
283
+ function te({
284
284
  code: e,
285
285
  context: t,
286
286
  localState: n,
287
287
  rootState: o,
288
- rootSetState: s,
289
- event: r,
288
+ rootSetState: r,
289
+ event: s,
290
290
  isExpression: i = !0,
291
- enableCache: a
291
+ enableCache: l
292
292
  }) {
293
293
  if (e === "")
294
294
  return;
295
- const l = {
296
- code: xt(e, {
295
+ const a = {
296
+ code: At(e, {
297
297
  isExpression: i
298
298
  }),
299
- builder: Pt(),
299
+ builder: xt(),
300
300
  context: t,
301
- event: r,
302
- rootSetState: s,
301
+ event: s,
302
+ rootSetState: r,
303
303
  rootState: o,
304
304
  localState: n
305
305
  };
306
- if (a) {
307
- const d = L.getCacheKey(l), m = L.getCachedValue(d);
308
- if (m)
309
- return m.value;
306
+ if (l) {
307
+ const u = L.getCacheKey(a), h = L.getCachedValue(u);
308
+ if (h)
309
+ return h.value;
310
310
  }
311
311
  try {
312
- const d = Bt(l);
313
- if (a) {
314
- const m = L.getCacheKey(l);
315
- L.setCachedValue(m, d);
312
+ const u = Nt(a);
313
+ if (l) {
314
+ const h = L.getCacheKey(a);
315
+ L.setCachedValue(h, u);
316
316
  }
317
- return d;
318
- } catch (d) {
319
- R.error("Failed code evaluation: " + d.message, {
317
+ return u;
318
+ } catch (u) {
319
+ E.error("Failed code evaluation: " + u.message, {
320
320
  code: e
321
321
  });
322
322
  return;
323
323
  }
324
324
  }
325
- const q = (e) => JSON.parse(JSON.stringify(e)), We = (e, t, n) => {
325
+ const Y = (e) => JSON.parse(JSON.stringify(e)), Oe = (e, t, n) => {
326
326
  if (Object(e) !== e)
327
327
  return e;
328
328
  const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
329
- 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;
329
+ return o.slice(0, -1).reduce((r, s, i) => Object(r[s]) === r[s] ? r[s] : r[s] = Math.abs(Number(o[i + 1])) >> 0 === +o[i + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
330
330
  };
331
- const Wt = ({
331
+ const Ft = ({
332
332
  block: e,
333
333
  context: t,
334
334
  localState: n,
335
335
  rootState: o,
336
- rootSetState: s
336
+ rootSetState: r
337
337
  }) => {
338
338
  if (!e.bindings)
339
339
  return e;
340
- const r = q(e), i = {
341
- ...r,
340
+ const s = Y(e), i = {
341
+ ...s,
342
342
  properties: {
343
- ...r.properties
343
+ ...s.properties
344
344
  },
345
345
  actions: {
346
- ...r.actions
346
+ ...s.actions
347
347
  }
348
348
  };
349
- for (const a in e.bindings) {
350
- const l = e.bindings[a], d = ee({
351
- code: l,
349
+ for (const l in e.bindings) {
350
+ const a = e.bindings[l], u = te({
351
+ code: a,
352
352
  localState: n,
353
353
  rootState: o,
354
- rootSetState: s,
354
+ rootSetState: r,
355
355
  context: t,
356
356
  enableCache: !0
357
357
  });
358
- We(i, a, d);
358
+ Oe(i, l, u);
359
359
  }
360
360
  return i;
361
361
  };
362
- function Ne({
362
+ function De({
363
363
  block: e,
364
364
  context: t,
365
365
  shouldEvaluateBindings: n,
366
366
  localState: o,
367
- rootState: s,
368
- rootSetState: r
367
+ rootState: r,
368
+ rootSetState: s
369
369
  }) {
370
370
  const i = e;
371
- return n ? Wt({
371
+ return n ? Ft({
372
372
  block: i,
373
373
  localState: o,
374
- rootState: s,
375
- rootSetState: r,
374
+ rootState: r,
375
+ rootSetState: s,
376
376
  context: t
377
377
  }) : i;
378
378
  }
379
- function Nt(e, t, n = {}) {
380
- let o, s, r, i = null, a = 0;
381
- const l = function() {
382
- a = n.leading === !1 ? 0 : Date.now(), i = null, r = e.apply(o, s), i || (o = s = null);
379
+ const he = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
380
+ function Ot(e, t, n = {}) {
381
+ let o, r, s, i = null, l = 0;
382
+ const a = function() {
383
+ l = n.leading === !1 ? 0 : Date.now(), i = null, s = e.apply(o, r), i || (o = r = null);
383
384
  };
384
385
  return function() {
385
- const d = Date.now();
386
- !a && n.leading === !1 && (a = d);
387
- const m = t - (d - a);
388
- return o = this, s = arguments, m <= 0 || m > t ? (i && (clearTimeout(i), i = null), a = d, r = e.apply(o, s), i || (o = s = null)) : !i && n.trailing !== !1 && (i = setTimeout(l, m)), r;
386
+ const u = Date.now();
387
+ !l && n.leading === !1 && (l = u);
388
+ const h = t - (u - l);
389
+ return o = this, r = arguments, h <= 0 || h > t ? (i && (clearTimeout(i), i = null), l = u, s = e.apply(o, r), i || (o = r = null)) : !i && n.trailing !== !1 && (i = setTimeout(a, h)), s;
389
390
  };
390
391
  }
391
- function j(e, ...t) {
392
+ function q(e, ...t) {
392
393
  const n = Object(e);
393
394
  for (let o = 1; o < arguments.length; o++) {
394
- const s = arguments[o];
395
- if (s != null)
396
- for (const r in s)
397
- Object.prototype.hasOwnProperty.call(s, r) && (n[r] = s[r]);
395
+ const r = arguments[o];
396
+ if (r != null)
397
+ for (const s in r)
398
+ Object.prototype.hasOwnProperty.call(r, s) && (n[s] = r[s]);
398
399
  }
399
400
  return n;
400
401
  }
401
- const Fe = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
402
- function Ft(e) {
402
+ function Dt(e) {
403
403
  for (const t of e)
404
404
  switch (t.trigger) {
405
405
  case "pageLoad":
406
- Le(t);
406
+ Me(t);
407
407
  break;
408
408
  case "scrollInView":
409
- Ut(t);
409
+ Lt(t);
410
410
  break;
411
411
  }
412
412
  }
413
- function Oe(e) {
413
+ function Ue(e) {
414
414
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
415
415
  }
416
- function Ue(e, t) {
417
- const n = Ot(e), o = getComputedStyle(t), s = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, i = [s, r];
418
- for (const a of i)
419
- for (const l of n)
420
- l in a || (a[l] = o[l]);
416
+ function Le(e, t) {
417
+ const n = Ut(e), o = getComputedStyle(t), r = e.steps[0].styles, s = e.steps[e.steps.length - 1].styles, i = [r, s];
418
+ for (const l of i)
419
+ for (const a of n)
420
+ a in l || (l[a] = o[a]);
421
421
  }
422
- function Ot(e) {
422
+ function Ut(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 Le(e) {
429
+ function Me(e) {
430
430
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
431
431
  if (!t.length) {
432
- Oe(e.elementId || e.id || "");
432
+ Ue(e.elementId || e.id || "");
433
433
  return;
434
434
  }
435
435
  Array.from(t).forEach((n) => {
436
- Ue(e, n), n.style.transition = "none", n.style.transitionDelay = "0", j(n.style, e.steps[0].styles), setTimeout(() => {
437
- n.style.transition = `all ${e.duration}s ${Fe(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), j(n.style, e.steps[1].styles), setTimeout(() => {
436
+ Le(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
437
+ n.style.transition = `all ${e.duration}s ${he(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), q(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 Ut(e) {
443
+ function Lt(e) {
444
444
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
445
445
  if (!t.length) {
446
- Oe(e.elementId || e.id || "");
446
+ Ue(e.elementId || e.id || "");
447
447
  return;
448
448
  }
449
449
  Array.from(t).forEach((n) => {
450
- Ue(e, n);
451
- let o = !1, s = !1;
452
- function r() {
453
- !o && a(n) ? (o = !0, s = !0, setTimeout(() => {
454
- j(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", i), setTimeout(() => {
455
- s = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
450
+ Le(e, n);
451
+ let o = !1, r = !1;
452
+ function s() {
453
+ !o && l(n) ? (o = !0, r = !0, setTimeout(() => {
454
+ q(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", i), setTimeout(() => {
455
+ r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
456
456
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
457
- })) : e.repeat && o && !s && !a(n) && (o = !1, j(n.style, e.steps[0].styles));
457
+ })) : e.repeat && o && !r && !l(n) && (o = !1, q(n.style, e.steps[0].styles));
458
458
  }
459
- const i = Nt(r, 200, {
459
+ const i = Ot(s, 200, {
460
460
  leading: !1
461
461
  });
462
- function a(m) {
463
- const c = m.getBoundingClientRect(), p = window.innerHeight, g = (e.thresholdPercent || 0) / 100 * p;
464
- return c.bottom > g && c.top < p - g;
462
+ function l(h) {
463
+ const c = h.getBoundingClientRect(), p = window.innerHeight, y = (e.thresholdPercent || 0) / 100 * p;
464
+ return c.bottom > y && c.top < p - y;
465
465
  }
466
- const l = e.steps[0].styles;
467
- function d() {
468
- j(n.style, l);
466
+ const a = e.steps[0].styles;
467
+ function u() {
468
+ q(n.style, a);
469
469
  }
470
- d(), setTimeout(() => {
471
- n.style.transition = `all ${e.duration}s ${Fe(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
470
+ u(), setTimeout(() => {
471
+ n.style.transition = `all ${e.duration}s ${he(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
472
472
  }), document.addEventListener("scroll", i, {
473
473
  capture: !0,
474
474
  passive: !0
475
- }), r();
475
+ }), s();
476
476
  });
477
477
  }
478
- const Lt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Me = (e) => Object.entries(e).map(([n, o]) => {
478
+ const je = (e) => Object.entries(e).map(([n, o]) => {
479
479
  if (typeof o == "string")
480
- return `${Lt(n)}: ${o};`;
481
- }).filter(U), Mt = (e) => Me(e).join(`
482
- `), br = ({
480
+ return `${he(n)}: ${o};`;
481
+ }).filter(U), Mt = (e) => je(e).join(`
482
+ `), ws = ({
483
483
  mediaQuery: e,
484
484
  className: t,
485
485
  styles: n
@@ -491,26 +491,26 @@ const Lt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase
491
491
  ${o}
492
492
  }` : o;
493
493
  };
494
- function Dt({
494
+ function jt({
495
495
  style: e
496
496
  }) {
497
497
  return e;
498
498
  }
499
- const gr = ({
499
+ const Ts = ({
500
500
  block: e,
501
501
  context: t
502
- }) => De(Dt({
502
+ }) => He(jt({
503
503
  style: e.style || {},
504
504
  context: t,
505
505
  block: e
506
506
  }));
507
- function De(e) {
508
- switch (V) {
507
+ function He(e) {
508
+ switch (x) {
509
509
  case "svelte":
510
510
  case "vue":
511
511
  case "solid":
512
512
  case "angular":
513
- return Me(e).join(" ");
513
+ return je(e).join(" ");
514
514
  case "qwik":
515
515
  case "reactNative":
516
516
  case "react":
@@ -523,24 +523,24 @@ const Ht = ({
523
523
  context: t,
524
524
  registeredComponents: n
525
525
  }) => {
526
- var r;
527
- const o = (r = Ne({
526
+ var s;
527
+ const o = (s = De({
528
528
  block: e,
529
529
  localState: t.localState,
530
530
  rootState: t.rootState,
531
531
  rootSetState: t.rootSetState,
532
532
  context: t.context,
533
533
  shouldEvaluateBindings: !1
534
- }).component) == null ? void 0 : r.name;
534
+ }).component) == null ? void 0 : s.name;
535
535
  if (!o)
536
536
  return null;
537
- const s = n[o];
538
- if (s)
539
- return s;
537
+ const r = n[o];
538
+ if (r)
539
+ return r;
540
540
  console.warn(`
541
541
  Could not find a registered component named "${o}".
542
542
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
543
- }, jt = ({
543
+ }, Kt = ({
544
544
  block: e,
545
545
  context: t
546
546
  }) => {
@@ -550,7 +550,7 @@ const Ht = ({
550
550
  } = e;
551
551
  if (!(n != null && n.collection))
552
552
  return;
553
- const s = ee({
553
+ const r = te({
554
554
  code: n.collection,
555
555
  localState: t.localState,
556
556
  rootState: t.rootState,
@@ -558,60 +558,60 @@ const Ht = ({
558
558
  context: t.context,
559
559
  enableCache: !0
560
560
  });
561
- if (!Array.isArray(s))
561
+ if (!Array.isArray(r))
562
562
  return;
563
- const r = n.collection.split(".").pop(), i = n.itemName || (r ? r + "Item" : "item");
564
- return s.map((l, d) => ({
563
+ const s = n.collection.split(".").pop(), i = n.itemName || (s ? s + "Item" : "item");
564
+ return r.map((a, u) => ({
565
565
  context: {
566
566
  ...t,
567
567
  localState: {
568
568
  ...t.localState,
569
- $index: d,
570
- $item: l,
571
- [i]: l,
572
- [`$${i}Index`]: d
569
+ $index: u,
570
+ $item: a,
571
+ [i]: a,
572
+ [`$${i}Index`]: u
573
573
  }
574
574
  },
575
575
  block: o
576
576
  }));
577
- }, Kt = (e) => e && (e.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), zt = (e) => e && (e.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), qt = () => import("./block-styles-5vJtIFGc.js").then((e) => e.default).catch((e) => {
577
+ }, qt = (e) => e && (e.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)), zt = (e) => e && (e.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)), Jt = () => import("./block-styles-7fSdcHZX.js").then((e) => e.default).catch((e) => {
578
578
  throw console.error(
579
579
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
580
580
  e
581
581
  ), e;
582
- }), Jt = () => import("./block-wrapper-JrLSq3J2.js").then((e) => e.default).catch((e) => {
582
+ }), Gt = () => import("./block-wrapper-pcluv3oE.js").then((e) => e.default).catch((e) => {
583
583
  throw console.error(
584
584
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
585
585
  e
586
586
  ), e;
587
- }), Gt = () => import("./component-ref-gxDw0wuA.js").then((e) => e.default).catch((e) => {
587
+ }), Yt = () => import("./component-ref-WhzAplFn.js").then((e) => e.default).catch((e) => {
588
588
  throw console.error(
589
589
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
590
590
  e
591
591
  ), e;
592
- }), Yt = () => import("./repeated-block-Qlvgzgy_.js").then((e) => e.default).catch((e) => {
592
+ }), Qt = () => import("./repeated-block-HcLgTzGb.js").then((e) => e.default).catch((e) => {
593
593
  throw console.error(
594
594
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
595
595
  e
596
596
  ), e;
597
- }), Qt = () => Promise.resolve().then(() => cn).then((e) => e.default).catch((e) => {
597
+ }), Xt = () => Promise.resolve().then(() => dn).then((e) => e.default).catch((e) => {
598
598
  throw console.error(
599
599
  "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
600
600
  e
601
601
  ), e;
602
- }), Xt = f({
602
+ }), Zt = f({
603
603
  name: "block",
604
604
  components: {
605
- BlockStyles: D(qt),
606
- ComponentRef: D(Gt),
607
- RepeatedBlock: D(Yt),
608
- BlockWrapper: D(Jt),
609
- DynamicDiv: D(Qt)
605
+ BlockStyles: H(Jt),
606
+ ComponentRef: H(Yt),
607
+ RepeatedBlock: H(Qt),
608
+ BlockWrapper: H(Gt),
609
+ DynamicDiv: H(Xt)
610
610
  },
611
611
  props: ["block", "context", "registeredComponents", "linkComponent"],
612
612
  mounted() {
613
613
  const e = this.processedBlock.id, t = this.processedBlock.animations;
614
- t && e && Ft(
614
+ t && e && Dt(
615
615
  t.map((n) => ({
616
616
  ...n,
617
617
  elementId: e
@@ -627,14 +627,14 @@ const Ht = ({
627
627
  });
628
628
  },
629
629
  repeatItem() {
630
- return jt({
630
+ return Kt({
631
631
  block: this.block,
632
632
  context: this.context
633
633
  });
634
634
  },
635
635
  processedBlock() {
636
636
  var e;
637
- return (e = this.block.repeat) != null && e.collection ? this.block : Ne({
637
+ return (e = this.block.repeat) != null && e.collection ? this.block : De({
638
638
  block: this.block,
639
639
  localState: this.context.localState,
640
640
  rootState: this.context.rootState,
@@ -664,9 +664,9 @@ const Ht = ({
664
664
  blockChildren: this.processedBlock.children ?? [],
665
665
  componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
666
666
  componentOptions: {
667
- ...wt(this.processedBlock),
667
+ ...It(this.processedBlock),
668
668
  builderContext: this.context,
669
- ...Kt(this.blockComponent) ? {
669
+ ...qt(this.blockComponent) ? {
670
670
  builderLinkComponent: this.linkComponent
671
671
  } : {},
672
672
  ...zt(this.blockComponent) ? {
@@ -683,15 +683,15 @@ const Ht = ({
683
683
  }
684
684
  }
685
685
  });
686
- function _t(e, t, n, o, s, r) {
686
+ function _t(e, t, n, o, r, s) {
687
687
  var c;
688
- const i = y("block-styles"), a = y("component-ref"), l = y("block", !0), d = y("block-wrapper"), m = y("repeated-block");
689
- return e.canShowBlock ? (u(), h($, { key: 0 }, [
690
- E(i, {
688
+ const i = g("BlockStyles"), l = g("ComponentRef"), a = g("Block", !0), u = g("BlockWrapper"), h = g("RepeatedBlock");
689
+ return e.canShowBlock ? (d(), m(I, { key: 0 }, [
690
+ $(i, {
691
691
  block: e.block,
692
692
  context: e.context
693
693
  }, null, 8, ["block", "context"]),
694
- (c = e.blockComponent) != null && c.noWrap ? (u(), k(a, {
694
+ (c = e.blockComponent) != null && c.noWrap ? (d(), k(l, {
695
695
  key: 1,
696
696
  componentRef: e.componentRefProps.componentRef,
697
697
  componentOptions: e.componentRefProps.componentOptions,
@@ -702,22 +702,22 @@ function _t(e, t, n, o, s, r) {
702
702
  builderBlock: e.componentRefProps.builderBlock,
703
703
  includeBlockProps: e.componentRefProps.includeBlockProps,
704
704
  isInteractive: e.componentRefProps.isInteractive
705
- }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"])) : (u(), h($, { key: 0 }, [
706
- e.repeatItem ? (u(!0), h($, { key: 1 }, O(e.repeatItem, (p, v) => (u(), k(m, {
705
+ }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"])) : (d(), m(I, { key: 0 }, [
706
+ e.repeatItem ? (d(!0), m(I, { key: 1 }, W(e.repeatItem, (p, v) => (d(), k(h, {
707
707
  key: v,
708
708
  repeatContext: p.context,
709
709
  block: p.block,
710
710
  registeredComponents: e.registeredComponents,
711
711
  linkComponent: e.linkComponent
712
- }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (u(), k(d, {
712
+ }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (d(), k(u, {
713
713
  key: 0,
714
714
  Wrapper: e.Tag,
715
715
  block: e.processedBlock,
716
716
  context: e.context,
717
717
  linkComponent: e.linkComponent
718
718
  }, {
719
- default: B(() => [
720
- E(a, {
719
+ default: V(() => [
720
+ $(l, {
721
721
  componentRef: e.componentRefProps.componentRef,
722
722
  componentOptions: e.componentRefProps.componentOptions,
723
723
  blockChildren: e.componentRefProps.blockChildren,
@@ -728,7 +728,7 @@ function _t(e, t, n, o, s, r) {
728
728
  includeBlockProps: e.componentRefProps.includeBlockProps,
729
729
  isInteractive: e.componentRefProps.isInteractive
730
730
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
731
- (u(!0), h($, null, O(e.childrenWithoutParentComponent, (p, v) => (u(), k(l, {
731
+ (d(!0), m(I, null, W(e.childrenWithoutParentComponent, (p, v) => (d(), k(a, {
732
732
  key: p.id,
733
733
  block: p,
734
734
  registeredComponents: e.registeredComponents,
@@ -741,10 +741,10 @@ function _t(e, t, n, o, s, r) {
741
741
  ], 64))
742
742
  ], 64)) : S("", !0);
743
743
  }
744
- const pe = /* @__PURE__ */ b(Xt, [["render", _t]]), yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
744
+ const fe = /* @__PURE__ */ b(Zt, [["render", _t]]), Is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
745
745
  __proto__: null,
746
- default: pe
747
- }, Symbol.toStringTag, { value: "Module" })), Zt = f({
746
+ default: fe
747
+ }, Symbol.toStringTag, { value: "Module" })), en = f({
748
748
  name: "builder-blocks-wrapper",
749
749
  props: [
750
750
  "blocks",
@@ -763,7 +763,7 @@ const pe = /* @__PURE__ */ b(Xt, [["render", _t]]), yr = /* @__PURE__ */ Object.
763
763
  methods: {
764
764
  onClick() {
765
765
  var e, t;
766
- I() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
766
+ R() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
767
767
  {
768
768
  type: "builder.clickEmptyBlocks",
769
769
  data: {
@@ -776,7 +776,7 @@ const pe = /* @__PURE__ */ b(Xt, [["render", _t]]), yr = /* @__PURE__ */ Object.
776
776
  },
777
777
  onMouseEnter() {
778
778
  var e, t;
779
- I() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
779
+ R() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
780
780
  {
781
781
  type: "builder.hoverEmptyBlocks",
782
782
  data: {
@@ -789,9 +789,9 @@ const pe = /* @__PURE__ */ b(Xt, [["render", _t]]), yr = /* @__PURE__ */ Object.
789
789
  }
790
790
  }
791
791
  });
792
- function en(e, t, n, o, s, r) {
793
- return u(), k(H(e.BlocksWrapper), w({
794
- class: e.className + " component-178o76acnws",
792
+ function tn(e, t, n, o, r, s) {
793
+ return d(), k(K(e.BlocksWrapper), w({
794
+ class: e.className + " component-1k2igrjdg3x",
795
795
  "builder-path": e.path,
796
796
  "builder-parent-id": e.parent,
797
797
  style: e.styleProp,
@@ -799,15 +799,15 @@ function en(e, t, n, o, s, r) {
799
799
  onMouseEnter: (i) => e.onMouseEnter(),
800
800
  onKeyPress: (i) => e.onClick()
801
801
  }, { ...e.BlocksWrapperProps }), {
802
- default: B(() => [
802
+ default: V(() => [
803
803
  P(e.$slots, "default", {}, void 0, !0)
804
804
  ]),
805
805
  _: 3
806
806
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
807
807
  }
808
- const tn = /* @__PURE__ */ b(Zt, [["render", en], ["__scopeId", "data-v-a5b13ef9"]]), nn = f({
808
+ const nn = /* @__PURE__ */ b(en, [["render", tn], ["__scopeId", "data-v-f091a4a7"]]), on = f({
809
809
  name: "builder-blocks",
810
- components: { BlocksWrapper: tn, Block: pe },
810
+ components: { BlocksWrapper: nn, Block: fe },
811
811
  props: [
812
812
  "blocks",
813
813
  "parent",
@@ -818,25 +818,25 @@ const tn = /* @__PURE__ */ b(Zt, [["render", en], ["__scopeId", "data-v-a5b13ef9
818
818
  "registeredComponents"
819
819
  ],
820
820
  inject: {
821
- builderContext: ie.key,
822
- componentsContext: Pe.key
821
+ builderContext: ce.key,
822
+ componentsContext: Ae.key
823
823
  }
824
824
  });
825
- function on(e, t, n, o, s, r) {
826
- var l, d;
827
- const i = y("block"), a = y("blocks-wrapper");
828
- return u(), k(a, {
825
+ function rn(e, t, n, o, r, s) {
826
+ var a, u;
827
+ const i = g("Block"), l = g("BlocksWrapper");
828
+ return d(), k(l, {
829
829
  blocks: e.blocks,
830
830
  parent: e.parent,
831
831
  path: e.path,
832
832
  styleProp: e.styleProp,
833
- BlocksWrapper: ((l = e.context) == null ? void 0 : l.BlocksWrapper) || e.builderContext.BlocksWrapper,
834
- BlocksWrapperProps: ((d = e.context) == null ? void 0 : d.BlocksWrapperProps) || e.builderContext.BlocksWrapperProps
833
+ BlocksWrapper: ((a = e.context) == null ? void 0 : a.BlocksWrapper) || e.builderContext.BlocksWrapper,
834
+ BlocksWrapperProps: ((u = e.context) == null ? void 0 : u.BlocksWrapperProps) || e.builderContext.BlocksWrapperProps
835
835
  }, {
836
- default: B(() => [
837
- e.blocks ? (u(!0), h($, { key: 0 }, O(e.blocks, (m, c) => (u(), k(i, {
838
- key: m.id,
839
- block: m,
836
+ default: V(() => [
837
+ e.blocks ? (d(!0), m(I, { key: 0 }, W(e.blocks, (h, c) => (d(), k(i, {
838
+ key: h.id,
839
+ block: h,
840
840
  linkComponent: e.linkComponent,
841
841
  context: e.context || e.builderContext,
842
842
  registeredComponents: e.registeredComponents || e.componentsContext.registeredComponents
@@ -845,16 +845,16 @@ function on(e, t, n, o, s, r) {
845
845
  _: 1
846
846
  }, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
847
847
  }
848
- const J = /* @__PURE__ */ b(nn, [["render", on]]), me = f({
848
+ const M = /* @__PURE__ */ b(on, [["render", rn]]), be = f({
849
849
  render() {
850
- return Ee("style", {
850
+ return xe("style", {
851
851
  innerHTML: this.styles,
852
852
  "data-id": this.id
853
853
  });
854
854
  },
855
855
  name: "inlined-styles",
856
856
  props: ["styles", "id"]
857
- }), He = {
857
+ }), Ke = {
858
858
  small: {
859
859
  min: 320,
860
860
  default: 321,
@@ -870,11 +870,11 @@ const J = /* @__PURE__ */ b(nn, [["render", on]]), me = f({
870
870
  default: 991,
871
871
  max: 1200
872
872
  }
873
- }, kr = (e, t = He) => `@media (max-width: ${t[e].max}px)`, sn = ({
873
+ }, $s = (e, t = Ke) => `@media (max-width: ${t[e].max}px)`, sn = ({
874
874
  small: e,
875
875
  medium: t
876
876
  }) => {
877
- const n = q(He);
877
+ const n = Y(Ke);
878
878
  if (!e || !t)
879
879
  return n;
880
880
  const o = Math.floor(e / 2);
@@ -883,38 +883,38 @@ const J = /* @__PURE__ */ b(nn, [["render", on]]), me = f({
883
883
  min: o,
884
884
  default: o + 1
885
885
  };
886
- const s = n.small.max + 1;
886
+ const r = n.small.max + 1;
887
887
  n.medium = {
888
888
  max: t,
889
- min: s,
890
- default: s + 1
889
+ min: r,
890
+ default: r + 1
891
891
  };
892
- const r = n.medium.max + 1;
892
+ const s = n.medium.max + 1;
893
893
  return n.large = {
894
894
  max: 2e3,
895
895
  // TODO: decide upper limit
896
- min: r,
897
- default: r + 1
896
+ min: s,
897
+ default: s + 1
898
898
  }, n;
899
- }, rn = (e) => `builder-columns ${e}-breakpoints`, an = f({
899
+ }, an = (e) => `builder-columns ${e}-breakpoints`, ln = f({
900
900
  name: "dynamic-div",
901
901
  props: []
902
902
  });
903
- function ln(e, t, n, o, s, r) {
904
- return u(), h("div", null, [
903
+ function cn(e, t, n, o, r, s) {
904
+ return d(), m("div", null, [
905
905
  P(e.$slots, "default")
906
906
  ]);
907
907
  }
908
- const G = /* @__PURE__ */ b(an, [["render", ln]]), cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
908
+ const Q = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
909
909
  __proto__: null,
910
- default: G
911
- }, Symbol.toStringTag, { value: "Module" })), dn = f({
910
+ default: Q
911
+ }, Symbol.toStringTag, { value: "Module" })), un = f({
912
912
  name: "builder-columns",
913
913
  components: {
914
- InlinedStyles: me,
915
- DynamicRenderer: ue,
916
- Blocks: J,
917
- DynamicDiv: G
914
+ InlinedStyles: be,
915
+ DynamicRenderer: me,
916
+ Blocks: M,
917
+ DynamicDiv: Q
918
918
  },
919
919
  props: [
920
920
  "space",
@@ -932,8 +932,8 @@ const G = /* @__PURE__ */ b(an, [["render", ln]]), cn = /* @__PURE__ */ Object.f
932
932
  cols: this.columns || [],
933
933
  stackAt: this.stackColumnsAt || "tablet",
934
934
  flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
935
- TARGET: V,
936
- getColumnsClass: rn
935
+ TARGET: x,
936
+ getColumnsClass: an
937
937
  };
938
938
  },
939
939
  methods: {
@@ -970,7 +970,7 @@ const G = /* @__PURE__ */ b(an, [["render", ln]]), cn = /* @__PURE__ */ Object.f
970
970
  };
971
971
  },
972
972
  columnCssVars(e) {
973
- const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, s = "100%", r = 0;
973
+ const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, r = "100%", s = 0;
974
974
  return {
975
975
  ...{
976
976
  display: "flex",
@@ -980,19 +980,19 @@ const G = /* @__PURE__ */ b(an, [["render", ln]]), cn = /* @__PURE__ */ Object.f
980
980
  width: n,
981
981
  ["margin-left"]: o,
982
982
  "--column-width-mobile": this.getMobileStyle({
983
- stackedStyle: s,
983
+ stackedStyle: r,
984
984
  desktopStyle: n
985
985
  }),
986
986
  "--column-margin-left-mobile": this.getMobileStyle({
987
- stackedStyle: r,
987
+ stackedStyle: s,
988
988
  desktopStyle: o
989
989
  }),
990
990
  "--column-width-tablet": this.getTabletStyle({
991
- stackedStyle: s,
991
+ stackedStyle: r,
992
992
  desktopStyle: n
993
993
  }),
994
994
  "--column-margin-left-tablet": this.getTabletStyle({
995
- stackedStyle: r,
995
+ stackedStyle: s,
996
996
  desktopStyle: o
997
997
  })
998
998
  };
@@ -1035,32 +1035,32 @@ const G = /* @__PURE__ */ b(an, [["render", ln]]), cn = /* @__PURE__ */ Object.f
1035
1035
  ...e.link ? {
1036
1036
  href: e.link
1037
1037
  } : {},
1038
- [Z()]: "builder-column",
1039
- style: De(this.columnCssVars(t))
1038
+ [ee()]: "builder-column",
1039
+ style: He(this.columnCssVars(t))
1040
1040
  };
1041
1041
  }
1042
1042
  }
1043
1043
  });
1044
- function un(e, t, n, o, s, r) {
1045
- var d;
1046
- const i = y("inlined-styles"), a = y("blocks"), l = y("dynamic-renderer");
1047
- return u(), h("div", w({
1048
- class: e.getColumnsClass((d = e.builderBlock) == null ? void 0 : d.id) + " div-t9spj7joih",
1044
+ function pn(e, t, n, o, r, s) {
1045
+ var u;
1046
+ const i = g("InlinedStyles"), l = g("Blocks"), a = g("DynamicRenderer");
1047
+ return d(), m("div", w({
1048
+ class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-2brhoa1k8gd",
1049
1049
  style: e.columnsCssVars()
1050
1050
  }, {}), [
1051
- e.TARGET !== "reactNative" ? (u(), k(i, {
1051
+ e.TARGET !== "reactNative" ? (d(), k(i, {
1052
1052
  key: 0,
1053
1053
  id: "builderio-columns",
1054
1054
  styles: e.columnsStyles()
1055
1055
  }, null, 8, ["styles"])) : S("", !0),
1056
- (u(!0), h($, null, O(e.columns, (m, c) => (u(), k(l, {
1056
+ (d(!0), m(I, null, W(e.columns, (h, c) => (d(), k(a, {
1057
1057
  key: c,
1058
- TagName: e.getTagName(m),
1058
+ TagName: e.getTagName(h),
1059
1059
  actionAttributes: {},
1060
- attributes: e.getAttributes(m, c)
1060
+ attributes: e.getAttributes(h, c)
1061
1061
  }, {
1062
- default: B(() => [
1063
- E(a, {
1062
+ default: V(() => [
1063
+ $(l, {
1064
1064
  path: `component.options.columns.${c}.blocks`,
1065
1065
  parent: e.builderBlock.id,
1066
1066
  styleProp: {
@@ -1069,54 +1069,54 @@ function un(e, t, n, o, s, r) {
1069
1069
  context: e.builderContext,
1070
1070
  registeredComponents: e.builderComponents,
1071
1071
  linkComponent: e.builderLinkComponent,
1072
- blocks: m.blocks
1072
+ blocks: h.blocks
1073
1073
  }, null, 8, ["path", "parent", "context", "registeredComponents", "linkComponent", "blocks"])
1074
1074
  ]),
1075
1075
  _: 2
1076
1076
  }, 1032, ["TagName", "attributes"]))), 128))
1077
1077
  ], 16);
1078
1078
  }
1079
- const pn = /* @__PURE__ */ b(dn, [["render", un], ["__scopeId", "data-v-4878b55f"]]), mn = f({
1079
+ const mn = /* @__PURE__ */ b(un, [["render", pn], ["__scopeId", "data-v-92d2d1da"]]), hn = f({
1080
1080
  name: "builder-fragment-component",
1081
1081
  props: []
1082
1082
  });
1083
- function hn(e, t, n, o, s, r) {
1084
- return u(), h("span", null, [
1083
+ function fn(e, t, n, o, r, s) {
1084
+ return d(), m("span", null, [
1085
1085
  P(e.$slots, "default")
1086
1086
  ]);
1087
1087
  }
1088
- const fn = /* @__PURE__ */ b(mn, [["render", hn]]);
1089
- function ke(e) {
1088
+ const bn = /* @__PURE__ */ b(hn, [["render", fn]]);
1089
+ function Ce(e) {
1090
1090
  return e.replace(/http(s)?:/, "");
1091
1091
  }
1092
- function bn(e = "", t, n) {
1093
- const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), s = e.indexOf("?") !== -1 ? "&" : "?";
1094
- return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + s + t + "=" + encodeURIComponent(n);
1092
+ function gn(e = "", t, n) {
1093
+ const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
1094
+ return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
1095
1095
  }
1096
- function gn(e, t) {
1096
+ function yn(e, t) {
1097
1097
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1098
1098
  return e;
1099
1099
  if (t === "master")
1100
- return ke(e);
1100
+ return Ce(e);
1101
1101
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1102
1102
  if (n) {
1103
- const o = e.split(n[0]), s = n[3], r = t.match("x") ? t : `${t}x`;
1104
- return ke(`${o[0]}_${r}${s}`);
1103
+ const o = e.split(n[0]), r = n[3], s = t.match("x") ? t : `${t}x`;
1104
+ return Ce(`${o[0]}_${s}${r}`);
1105
1105
  }
1106
1106
  return null;
1107
1107
  }
1108
- function oe(e) {
1108
+ function re(e) {
1109
1109
  if (!e)
1110
1110
  return e;
1111
1111
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1112
1112
  if (e.match(/builder\.io/)) {
1113
1113
  let n = e;
1114
1114
  const o = Number(e.split("?width=")[1]);
1115
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((s) => s !== o).map((s) => `${bn(e, "width", s)} ${s}w`).concat([n]).join(", ");
1115
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${gn(e, "width", r)} ${r}w`).concat([n]).join(", ");
1116
1116
  }
1117
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [gn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1117
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [yn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1118
1118
  }
1119
- const yn = f({
1119
+ const kn = f({
1120
1120
  name: "builder-image",
1121
1121
  props: [
1122
1122
  "image",
@@ -1142,10 +1142,10 @@ const yn = f({
1142
1142
  return this.srcset;
1143
1143
  if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
1144
1144
  if (!this.srcset.includes(this.image.split("?")[0]))
1145
- return console.debug("Removed given srcset"), oe(t);
1145
+ return console.debug("Removed given srcset"), re(t);
1146
1146
  } else if (this.image && !this.srcset)
1147
- return oe(t);
1148
- return oe(t);
1147
+ return re(t);
1148
+ return re(t);
1149
1149
  },
1150
1150
  webpSrcSet() {
1151
1151
  var e;
@@ -1162,58 +1162,58 @@ const yn = f({
1162
1162
  return this.aspectRatio ? e : void 0;
1163
1163
  }
1164
1164
  }
1165
- }), kn = ["srcset"], vn = ["alt", "role", "src", "srcset", "sizes"], Sn = {
1165
+ }), Sn = ["srcset"], vn = ["alt", "role", "src", "srcset", "sizes"], Cn = {
1166
1166
  key: 2,
1167
- class: "div-20351ewpue7-2"
1167
+ class: "div-1pl23ac79ld-2"
1168
1168
  };
1169
- function Cn(e, t, n, o, s, r) {
1170
- var i, a, l, d, m, c;
1171
- return u(), h($, null, [
1172
- _("picture", null, [
1173
- e.webpSrcSet ? (u(), h("source", {
1169
+ function wn(e, t, n, o, r, s) {
1170
+ var i, l, a, u, h, c;
1171
+ return d(), m(I, null, [
1172
+ z("picture", null, [
1173
+ e.webpSrcSet ? (d(), m("source", {
1174
1174
  key: 0,
1175
1175
  type: "image/webp",
1176
1176
  srcset: e.webpSrcSet
1177
- }, null, 8, kn)) : S("", !0),
1178
- _("img", {
1177
+ }, null, 8, Sn)) : S("", !0),
1178
+ z("img", {
1179
1179
  loading: "lazy",
1180
1180
  alt: e.altText,
1181
1181
  role: e.altText ? void 0 : "presentation",
1182
- style: K({
1182
+ style: D({
1183
1183
  objectPosition: e.backgroundPosition || "center",
1184
1184
  objectFit: e.backgroundSize || "cover",
1185
1185
  ...e.aspectRatioCss
1186
1186
  }),
1187
- class: de(
1188
- "builder-image" + (e.className ? " " + e.className : "") + " img-20351ewpue7"
1187
+ class: J(
1188
+ "builder-image" + (e.className ? " " + e.className : "") + " img-1pl23ac79ld"
1189
1189
  ),
1190
1190
  src: e.image,
1191
1191
  srcset: e.srcSetToUse,
1192
1192
  sizes: e.sizes
1193
1193
  }, null, 14, vn)
1194
1194
  ]),
1195
- e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? (u(), h("div", {
1195
+ e.aspectRatio && !((l = (i = e.builderBlock) == null ? void 0 : i.children) != null && l.length && e.fitContent) ? (d(), m("div", {
1196
1196
  key: 0,
1197
- class: "builder-image-sizer div-20351ewpue7",
1198
- style: K({
1197
+ class: "builder-image-sizer div-1pl23ac79ld",
1198
+ style: D({
1199
1199
  paddingTop: e.aspectRatio * 100 + "%"
1200
1200
  })
1201
1201
  }, null, 4)) : S("", !0),
1202
- (d = (l = e.builderBlock) == null ? void 0 : l.children) != null && d.length && e.fitContent ? P(e.$slots, "default", { key: 1 }, void 0, !0) : S("", !0),
1203
- !e.fitContent && ((c = (m = e.builderBlock) == null ? void 0 : m.children) != null && c.length) ? (u(), h("div", Sn, [
1202
+ (u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? P(e.$slots, "default", { key: 1 }, void 0, !0) : S("", !0),
1203
+ !e.fitContent && ((c = (h = e.builderBlock) == null ? void 0 : h.children) != null && c.length) ? (d(), m("div", Cn, [
1204
1204
  P(e.$slots, "default", {}, void 0, !0)
1205
1205
  ])) : S("", !0)
1206
1206
  ], 64);
1207
1207
  }
1208
- const wn = /* @__PURE__ */ b(yn, [["render", Cn], ["__scopeId", "data-v-5dee860d"]]), Tn = f({
1208
+ const Tn = /* @__PURE__ */ b(kn, [["render", wn], ["__scopeId", "data-v-6b703704"]]), In = f({
1209
1209
  name: "builder-section-component",
1210
1210
  props: ["attributes", "maxWidth"],
1211
1211
  data() {
1212
- return { filterAttrs: W };
1212
+ return { filterAttrs: N };
1213
1213
  }
1214
1214
  });
1215
- function $n(e, t, n, o, s, r) {
1216
- return u(), h("section", w({
1215
+ function $n(e, t, n, o, r, s) {
1216
+ return d(), m("section", w({
1217
1217
  style: {
1218
1218
  width: "100%",
1219
1219
  alignSelf: "stretch",
@@ -1226,16 +1226,16 @@ function $n(e, t, n, o, s, r) {
1226
1226
  marginLeft: "auto",
1227
1227
  marginRight: "auto"
1228
1228
  }
1229
- }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
1229
+ }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
1230
1230
  P(e.$slots, "default")
1231
1231
  ], 16);
1232
1232
  }
1233
- const In = /* @__PURE__ */ b(Tn, [["render", $n]]), Rn = (e) => {
1233
+ const Rn = /* @__PURE__ */ b(In, [["render", $n]]), En = (e) => {
1234
1234
  if (e === "localhost" || e === "127.0.0.1")
1235
1235
  return e;
1236
1236
  const t = e.split(".");
1237
1237
  return t.length > 2 ? t.slice(1).join(".") : e;
1238
- }, je = ({
1238
+ }, qe = ({
1239
1239
  name: e,
1240
1240
  canTrack: t
1241
1241
  }) => {
@@ -1243,17 +1243,17 @@ const In = /* @__PURE__ */ b(Tn, [["render", $n]]), Rn = (e) => {
1243
1243
  try {
1244
1244
  return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
1245
1245
  } catch (o) {
1246
- R.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
1246
+ E.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
1247
1247
  return;
1248
1248
  }
1249
- }, Ke = async (e) => je(e), En = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(U).join("; "), Pn = [["secure", ""], ["SameSite", "None"]], xn = ({
1249
+ }, ze = async (e) => qe(e), Pn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(U).join("; "), Bn = [["secure", ""], ["SameSite", "None"]], xn = ({
1250
1250
  name: e,
1251
1251
  value: t,
1252
1252
  expires: n
1253
1253
  }) => {
1254
- const s = (T() ? location.protocol === "https:" : !0) ? Pn : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...r, ["path", "/"], ["domain", Rn(window.location.hostname)], ...s];
1255
- return En(i);
1256
- }, ze = async ({
1254
+ const r = (T() ? location.protocol === "https:" : !0) ? Bn : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", En(window.location.hostname)], ...r];
1255
+ return Pn(i);
1256
+ }, Je = async ({
1257
1257
  name: e,
1258
1258
  value: t,
1259
1259
  expires: n,
@@ -1262,54 +1262,54 @@ const In = /* @__PURE__ */ b(Tn, [["render", $n]]), Rn = (e) => {
1262
1262
  try {
1263
1263
  if (!o)
1264
1264
  return;
1265
- const s = xn({
1265
+ const r = xn({
1266
1266
  name: e,
1267
1267
  value: t,
1268
1268
  expires: n
1269
1269
  });
1270
- document.cookie = s;
1271
- } catch (s) {
1272
- R.warn("[COOKIE] SET error: ", (s == null ? void 0 : s.message) || s);
1270
+ document.cookie = r;
1271
+ } catch (r) {
1272
+ E.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
1273
1273
  }
1274
- }, Vn = "builder.tests", he = (e) => `${Vn}.${e}`, An = ({
1274
+ }, An = "builder.tests", ge = (e) => `${An}.${e}`, Vn = ({
1275
1275
  contentId: e
1276
- }) => Ke({
1277
- name: he(e),
1276
+ }) => ze({
1277
+ name: ge(e),
1278
1278
  canTrack: !0
1279
- }), Bn = ({
1279
+ }), Wn = ({
1280
1280
  contentId: e
1281
- }) => je({
1282
- name: he(e),
1281
+ }) => qe({
1282
+ name: ge(e),
1283
1283
  canTrack: !0
1284
- }), Wn = ({
1284
+ }), Nn = ({
1285
1285
  contentId: e,
1286
1286
  value: t
1287
- }) => ze({
1288
- name: he(e),
1287
+ }) => Je({
1288
+ name: ge(e),
1289
1289
  value: t,
1290
1290
  canTrack: !0
1291
- }), qe = (e) => U(e.id) && U(e.variations) && Object.keys(e.variations).length > 0, Nn = ({
1291
+ }), Ge = (e) => U(e.id) && U(e.variations) && Object.keys(e.variations).length > 0, Fn = ({
1292
1292
  id: e,
1293
1293
  variations: t
1294
1294
  }) => {
1295
- var s;
1295
+ var r;
1296
1296
  let n = 0;
1297
1297
  const o = Math.random();
1298
- for (const r in t) {
1299
- const i = (s = t[r]) == null ? void 0 : s.testRatio;
1298
+ for (const s in t) {
1299
+ const i = (r = t[s]) == null ? void 0 : r.testRatio;
1300
1300
  if (n += i, o < n)
1301
- return r;
1301
+ return s;
1302
1302
  }
1303
1303
  return e;
1304
- }, Je = (e) => {
1305
- const t = Nn(e);
1306
- return Wn({
1304
+ }, Ye = (e) => {
1305
+ const t = Fn(e);
1306
+ return Nn({
1307
1307
  contentId: e.id,
1308
1308
  value: t
1309
1309
  }).catch((n) => {
1310
- R.error("could not store A/B test variation: ", n);
1310
+ E.error("could not store A/B test variation: ", n);
1311
1311
  }), t;
1312
- }, Ge = ({
1312
+ }, Qe = ({
1313
1313
  item: e,
1314
1314
  testGroupId: t
1315
1315
  }) => {
@@ -1323,7 +1323,7 @@ const In = /* @__PURE__ */ b(Tn, [["render", $n]]), Rn = (e) => {
1323
1323
  testVariationId: n.id,
1324
1324
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
1325
1325
  };
1326
- }, Fn = ({
1326
+ }, On = ({
1327
1327
  item: e,
1328
1328
  canTrack: t
1329
1329
  }) => {
@@ -1331,14 +1331,14 @@ const In = /* @__PURE__ */ b(Tn, [["render", $n]]), Rn = (e) => {
1331
1331
  return e;
1332
1332
  if (!e)
1333
1333
  return;
1334
- if (!qe(e))
1334
+ if (!Ge(e))
1335
1335
  return e;
1336
- const n = Bn({
1336
+ const n = Wn({
1337
1337
  contentId: e.id
1338
- }) || Je({
1338
+ }) || Ye({
1339
1339
  variations: e.variations,
1340
1340
  id: e.id
1341
- }), o = Ge({
1341
+ }), o = Qe({
1342
1342
  item: e,
1343
1343
  testGroupId: n
1344
1344
  });
@@ -1346,26 +1346,26 @@ const In = /* @__PURE__ */ b(Tn, [["render", $n]]), Rn = (e) => {
1346
1346
  ...e,
1347
1347
  ...o
1348
1348
  };
1349
- }, On = async ({
1349
+ }, Dn = async ({
1350
1350
  item: e,
1351
1351
  canTrack: t
1352
1352
  }) => {
1353
- if (!t || !qe(e))
1353
+ if (!t || !Ge(e))
1354
1354
  return e;
1355
- const o = await An({
1355
+ const o = await Vn({
1356
1356
  contentId: e.id
1357
- }) || Je({
1357
+ }) || Ye({
1358
1358
  variations: e.variations,
1359
1359
  id: e.id
1360
- }), s = Ge({
1360
+ }), r = Qe({
1361
1361
  item: e,
1362
1362
  testGroupId: o
1363
1363
  });
1364
1364
  return {
1365
1365
  ...e,
1366
- ...s
1366
+ ...r
1367
1367
  };
1368
- }, z = (e) => U(e) ? e : !0, Un = {
1368
+ }, G = (e) => U(e) ? e : !0, Un = {
1369
1369
  name: "Core:Button",
1370
1370
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1371
1371
  defaultStyles: {
@@ -1577,7 +1577,7 @@ const In = /* @__PURE__ */ b(Tn, [["render", $n]]), Rn = (e) => {
1577
1577
  });
1578
1578
  }
1579
1579
  const n = e.get("columns");
1580
- Array.isArray(n) && n.find((s) => s.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((a, l) => a + l.get("width"), 0) !== 100) && t();
1580
+ Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((s) => !s.get("width")) || n.reduce((l, a) => l + a.get("width"), 0) !== 100) && t();
1581
1581
  }
1582
1582
  }, {
1583
1583
  name: "space",
@@ -1605,7 +1605,7 @@ const In = /* @__PURE__ */ b(Tn, [["render", $n]]), Rn = (e) => {
1605
1605
  hidden: !0,
1606
1606
  canHaveChildren: !0,
1607
1607
  noWrap: !0
1608
- }, Dn = {
1608
+ }, jn = {
1609
1609
  name: "Image",
1610
1610
  static: !0,
1611
1611
  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",
@@ -1625,29 +1625,29 @@ const In = /* @__PURE__ */ b(Tn, [["render", $n]]), Rn = (e) => {
1625
1625
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1626
1626
  onChange: (e) => {
1627
1627
  e.delete("srcset"), e.delete("noWebp");
1628
- function n(i, a = 6e4) {
1629
- return new Promise((l, d) => {
1630
- const m = document.createElement("img");
1628
+ function n(i, l = 6e4) {
1629
+ return new Promise((a, u) => {
1630
+ const h = document.createElement("img");
1631
1631
  let c = !1;
1632
- m.onload = () => {
1633
- c = !0, l(m);
1634
- }, m.addEventListener("error", (p) => {
1635
- console.warn("Image load failed", p.error), d(p.error);
1636
- }), m.src = i, setTimeout(() => {
1637
- c || d(new Error("Image load timed out"));
1638
- }, a);
1632
+ h.onload = () => {
1633
+ c = !0, a(h);
1634
+ }, h.addEventListener("error", (p) => {
1635
+ console.warn("Image load failed", p.error), u(p.error);
1636
+ }), h.src = i, setTimeout(() => {
1637
+ c || u(new Error("Image load timed out"));
1638
+ }, l);
1639
1639
  });
1640
1640
  }
1641
1641
  function o(i) {
1642
1642
  return Math.round(i * 1e3) / 1e3;
1643
1643
  }
1644
- const s = e.get("image"), r = e.get("aspectRatio");
1645
- if (fetch(s).then((i) => i.blob()).then((i) => {
1644
+ const r = e.get("image"), s = e.get("aspectRatio");
1645
+ if (fetch(r).then((i) => i.blob()).then((i) => {
1646
1646
  i.type.includes("svg") && e.set("noWebp", !0);
1647
- }), s && (!r || r === 0.7041))
1648
- return n(s).then((i) => {
1649
- const a = e.get("aspectRatio");
1650
- e.get("image") === s && (!a || a === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
1647
+ }), r && (!s || s === 0.7041))
1648
+ return n(r).then((i) => {
1649
+ const l = e.get("aspectRatio");
1650
+ e.get("image") === r && (!l || l === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
1651
1651
  });
1652
1652
  }
1653
1653
  }, {
@@ -1744,7 +1744,7 @@ const In = /* @__PURE__ */ b(Tn, [["render", $n]]), Rn = (e) => {
1744
1744
  }
1745
1745
  }
1746
1746
  }]
1747
- }, jn = {
1747
+ }, Kn = {
1748
1748
  name: "Slot",
1749
1749
  isRSC: !0,
1750
1750
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1757,31 +1757,31 @@ const In = /* @__PURE__ */ b(Tn, [["render", $n]]), Rn = (e) => {
1757
1757
  required: !0,
1758
1758
  defaultValue: "children"
1759
1759
  }]
1760
- }, Kn = f({
1760
+ }, qn = f({
1761
1761
  name: "builder-slot",
1762
- components: { Blocks: J },
1762
+ components: { Blocks: M },
1763
1763
  props: ["builderContext", "name"]
1764
1764
  });
1765
- function zn(e, t, n, o, s, r) {
1766
- var a, l, d;
1767
- const i = y("blocks");
1768
- return u(), h("div", w(
1765
+ function zn(e, t, n, o, r, s) {
1766
+ var l, a, u;
1767
+ const i = g("Blocks");
1768
+ return d(), m("div", w(
1769
1769
  { style: {
1770
1770
  pointerEvents: "auto"
1771
1771
  } },
1772
- !((a = e.builderContext.context) != null && a.symbolId) && {
1772
+ !((l = e.builderContext.context) != null && l.symbolId) && {
1773
1773
  "builder-slot": e.name
1774
1774
  }
1775
1775
  ), [
1776
- E(i, {
1777
- parent: (l = e.builderContext.context) == null ? void 0 : l.symbolId,
1776
+ $(i, {
1777
+ parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
1778
1778
  path: `symbol.data.${e.name}`,
1779
1779
  context: e.builderContext,
1780
- blocks: (d = e.builderContext.rootState) == null ? void 0 : d[e.name]
1780
+ blocks: (u = e.builderContext.rootState) == null ? void 0 : u[e.name]
1781
1781
  }, null, 8, ["parent", "path", "context", "blocks"])
1782
1782
  ], 16);
1783
1783
  }
1784
- const qn = /* @__PURE__ */ b(Kn, [["render", zn]]), Jn = {
1784
+ const Jn = /* @__PURE__ */ b(qn, [["render", zn]]), Gn = {
1785
1785
  name: "Symbol",
1786
1786
  noWrap: !0,
1787
1787
  static: !0,
@@ -1836,7 +1836,7 @@ const qn = /* @__PURE__ */ b(Kn, [["render", zn]]), Jn = {
1836
1836
  text: "New tab"
1837
1837
  }
1838
1838
  }
1839
- }, re = {
1839
+ }, ie = {
1840
1840
  "@type": "@builder.io/sdk:Element",
1841
1841
  responsiveStyles: {
1842
1842
  large: {
@@ -1852,7 +1852,7 @@ const qn = /* @__PURE__ */ b(Kn, [["render", zn]]), Jn = {
1852
1852
  text: "New tab content "
1853
1853
  }
1854
1854
  }
1855
- }, Gn = {
1855
+ }, Yn = {
1856
1856
  name: "Builder: Tabs",
1857
1857
  inputs: [{
1858
1858
  name: "tabs",
@@ -1867,7 +1867,7 @@ const qn = /* @__PURE__ */ b(Kn, [["render", zn]]), Jn = {
1867
1867
  name: "content",
1868
1868
  type: "uiBlocks",
1869
1869
  hideFromUI: !0,
1870
- defaultValue: [re]
1870
+ defaultValue: [ie]
1871
1871
  }],
1872
1872
  defaultValue: [{
1873
1873
  label: [{
@@ -1880,7 +1880,7 @@ const qn = /* @__PURE__ */ b(Kn, [["render", zn]]), Jn = {
1880
1880
  }
1881
1881
  }],
1882
1882
  content: [{
1883
- ...re,
1883
+ ...ie,
1884
1884
  component: {
1885
1885
  name: "Text",
1886
1886
  options: {
@@ -1899,7 +1899,7 @@ const qn = /* @__PURE__ */ b(Kn, [["render", zn]]), Jn = {
1899
1899
  }
1900
1900
  }],
1901
1901
  content: [{
1902
- ...re,
1902
+ ...ie,
1903
1903
  component: {
1904
1904
  name: "Text",
1905
1905
  options: {
@@ -1949,15 +1949,15 @@ const qn = /* @__PURE__ */ b(Kn, [["render", zn]]), Jn = {
1949
1949
  value: "flex-end"
1950
1950
  }]
1951
1951
  }]
1952
- }, Yn = f({
1952
+ }, Qn = f({
1953
1953
  name: "builder-tabs",
1954
- components: { Blocks: J },
1954
+ components: { Blocks: M },
1955
1955
  props: [
1956
1956
  "defaultActiveTab",
1957
1957
  "tabs",
1958
- "activeTabStyle",
1959
- "tabHeaderLayout",
1960
1958
  "collapsible",
1959
+ "tabHeaderLayout",
1960
+ "activeTabStyle",
1961
1961
  "builderBlock",
1962
1962
  "builderContext",
1963
1963
  "builderComponents",
@@ -1970,43 +1970,43 @@ const qn = /* @__PURE__ */ b(Kn, [["render", zn]]), Jn = {
1970
1970
  activeTabContent(e) {
1971
1971
  return this.tabs && this.tabs[e].content;
1972
1972
  },
1973
- getActiveTabStyle(e) {
1974
- return this.activeTab === e ? this.activeTabStyle : {};
1973
+ onClick(e) {
1974
+ e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
1975
1975
  }
1976
1976
  }
1977
- }), Qn = ["onClick"], Xn = { key: 0 };
1978
- function _n(e, t, n, o, s, r) {
1979
- const i = y("blocks");
1980
- return u(), h("div", null, [
1981
- _("div", {
1977
+ }), Xn = ["onClick"], Zn = { key: 0 };
1978
+ function _n(e, t, n, o, r, s) {
1979
+ const i = g("Blocks");
1980
+ return d(), m("div", null, [
1981
+ z("div", {
1982
1982
  class: "builder-tabs-wrap",
1983
- style: K({
1983
+ style: D({
1984
1984
  display: "flex",
1985
1985
  flexDirection: "row",
1986
1986
  justifyContent: e.tabHeaderLayout || "flex-start",
1987
1987
  overflow: "auto"
1988
1988
  })
1989
1989
  }, [
1990
- (u(!0), h($, null, O(e.tabs, (a, l) => (u(), h("span", {
1991
- key: l,
1992
- class: de(`builder-tab-wrap ${e.activeTab === l ? "builder-tab-active" : ""}`),
1993
- style: K(e.getActiveTabStyle(l)),
1994
- onClick: (d) => {
1995
- l === e.activeTab && e.collapsible ? e.activeTab = -1 : e.activeTab = l;
1996
- }
1990
+ (d(!0), m(I, null, W(e.tabs, (l, a) => (d(), m("span", {
1991
+ key: a,
1992
+ class: J(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
1993
+ style: D({
1994
+ ...e.activeTab === a ? e.activeTabStyle : {}
1995
+ }),
1996
+ onClick: (u) => e.onClick(a)
1997
1997
  }, [
1998
- E(i, {
1998
+ $(i, {
1999
1999
  parent: e.builderBlock.id,
2000
- path: `component.options.tabs.${l}.label`,
2001
- blocks: a.label,
2000
+ path: `component.options.tabs.${a}.label`,
2001
+ blocks: l.label,
2002
2002
  context: e.builderContext,
2003
2003
  registeredComponents: e.builderComponents,
2004
2004
  linkComponent: e.builderLinkComponent
2005
2005
  }, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
2006
- ], 14, Qn))), 128))
2006
+ ], 14, Xn))), 128))
2007
2007
  ], 4),
2008
- e.activeTabContent(e.activeTab) ? (u(), h("div", Xn, [
2009
- E(i, {
2008
+ e.activeTabContent(e.activeTab) ? (d(), m("div", Zn, [
2009
+ $(i, {
2010
2010
  parent: e.builderBlock.id,
2011
2011
  path: `component.options.tabs.${e.activeTab}.content`,
2012
2012
  blocks: e.activeTabContent(e.activeTab),
@@ -2017,7 +2017,7 @@ function _n(e, t, n, o, s, r) {
2017
2017
  ])) : S("", !0)
2018
2018
  ]);
2019
2019
  }
2020
- const Zn = /* @__PURE__ */ b(Yn, [["render", _n]]), eo = {
2020
+ const eo = /* @__PURE__ */ b(Qn, [["render", _n]]), to = {
2021
2021
  name: "Text",
2022
2022
  static: !0,
2023
2023
  isRSC: !0,
@@ -2035,21 +2035,278 @@ const Zn = /* @__PURE__ */ b(Yn, [["render", _n]]), eo = {
2035
2035
  height: "auto",
2036
2036
  textAlign: "center"
2037
2037
  }
2038
- }, to = f({
2038
+ }, no = f({
2039
2039
  name: "builder-text",
2040
2040
  props: ["text"]
2041
- }), no = ["innerHTML"];
2042
- function oo(e, t, n, o, s, r) {
2041
+ }), oo = ["innerHTML"];
2042
+ function ro(e, t, n, o, r, s) {
2043
2043
  var i;
2044
- return u(), h("div", {
2044
+ return d(), m("div", {
2045
2045
  class: "builder-text",
2046
2046
  innerHTML: ((i = e.text) == null ? void 0 : i.toString()) || "",
2047
2047
  style: {
2048
2048
  outline: "none"
2049
2049
  }
2050
- }, null, 8, no);
2050
+ }, null, 8, oo);
2051
2051
  }
2052
- const so = /* @__PURE__ */ b(to, [["render", oo]]), ro = {
2052
+ const so = /* @__PURE__ */ b(no, [["render", ro]]), io = (e) => e.toString(), ao = f({
2053
+ name: "builder-accordion",
2054
+ components: { Blocks: M },
2055
+ props: [
2056
+ "grid",
2057
+ "oneAtATime",
2058
+ "items",
2059
+ "gridRowWidth",
2060
+ "builderBlock",
2061
+ "builderContext",
2062
+ "builderComponents",
2063
+ "builderLinkComponent"
2064
+ ],
2065
+ data() {
2066
+ return { open: [], convertOrderNumberToString: io };
2067
+ },
2068
+ computed: {
2069
+ onlyOneAtATime() {
2070
+ return !!(this.grid || this.oneAtATime);
2071
+ },
2072
+ accordionStyles() {
2073
+ return {
2074
+ display: "flex",
2075
+ alignItems: "stretch",
2076
+ flexDirection: "column",
2077
+ ...this.grid && {
2078
+ flexDirection: "row",
2079
+ alignItems: "flex-start",
2080
+ flexWrap: "wrap"
2081
+ }
2082
+ };
2083
+ },
2084
+ accordionTitleStyles() {
2085
+ const t = {
2086
+ ...{
2087
+ display: "flex",
2088
+ flexDirection: "column"
2089
+ },
2090
+ alignItems: "stretch",
2091
+ cursor: "pointer"
2092
+ };
2093
+ return Object.fromEntries(
2094
+ Object.entries(t).filter(([n, o]) => o !== void 0)
2095
+ );
2096
+ },
2097
+ openGridItemOrder() {
2098
+ let e = null;
2099
+ if (this.grid && this.open.length && document) {
2100
+ const n = this.open[0];
2101
+ let r = document.querySelector(
2102
+ `.builder-accordion-title[data-index="${n}"]`
2103
+ );
2104
+ if (e = n, r) {
2105
+ let s = r.getBoundingClientRect();
2106
+ for (; r = r && r.nextElementSibling; )
2107
+ if (r) {
2108
+ if (r.classList.contains("builder-accordion-detail"))
2109
+ continue;
2110
+ const i = r.getBoundingClientRect();
2111
+ if (i.left > s.left) {
2112
+ const l = parseInt(
2113
+ r.getAttribute("data-index") || "",
2114
+ 10
2115
+ );
2116
+ isNaN(l) || (s = i, e = l);
2117
+ } else
2118
+ break;
2119
+ }
2120
+ }
2121
+ }
2122
+ return typeof e == "number" && (e = e + 1), e;
2123
+ },
2124
+ accordionDetailStyles() {
2125
+ const e = {
2126
+ order: typeof this.openGridItemOrder == "number" ? this.openGridItemOrder : void 0,
2127
+ ...this.grid && {
2128
+ width: "100%"
2129
+ }
2130
+ };
2131
+ return Object.fromEntries(
2132
+ Object.entries(e).filter(([t, n]) => n !== void 0)
2133
+ );
2134
+ }
2135
+ },
2136
+ methods: {
2137
+ getAccordionTitleClassName(e) {
2138
+ return `builder-accordion-title builder-accordion-title-${this.open.includes(e) ? "open" : "closed"}`;
2139
+ },
2140
+ getAccordionDetailClassName(e) {
2141
+ return `builder-accordion-detail builder-accordion-detail-${this.open.includes(e) ? "open" : "closed"}`;
2142
+ },
2143
+ onClick(e) {
2144
+ this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
2145
+ }
2146
+ }
2147
+ }), lo = ["data-index", "onClick"];
2148
+ function co(e, t, n, o, r, s) {
2149
+ const i = g("Blocks");
2150
+ return d(), m("div", {
2151
+ class: "builder-accordion",
2152
+ style: D(e.accordionStyles)
2153
+ }, [
2154
+ (d(!0), m(I, null, W(e.items, (l, a) => (d(), m(I, { key: a }, [
2155
+ z("div", {
2156
+ class: J(e.getAccordionTitleClassName(a)),
2157
+ style: D({
2158
+ ...e.accordionTitleStyles,
2159
+ width: e.grid ? e.gridRowWidth : void 0,
2160
+ order: e.openGridItemOrder !== null ? e.convertOrderNumberToString(a) : e.convertOrderNumberToString(a + 1)
2161
+ }),
2162
+ "data-index": a,
2163
+ onClick: (u) => e.onClick(a)
2164
+ }, [
2165
+ $(i, {
2166
+ blocks: l.title,
2167
+ path: `items.${a}.title`,
2168
+ parent: e.builderBlock.id,
2169
+ context: e.builderContext,
2170
+ registeredComponents: e.builderComponents,
2171
+ linkComponent: e.builderLinkComponent
2172
+ }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
2173
+ ], 14, lo),
2174
+ e.open.includes(a) ? (d(), m("div", {
2175
+ key: 0,
2176
+ class: J(e.getAccordionDetailClassName(a)),
2177
+ style: D(e.accordionDetailStyles)
2178
+ }, [
2179
+ $(i, {
2180
+ blocks: l.detail,
2181
+ path: `items.${a}.detail`,
2182
+ parent: e.builderBlock.id,
2183
+ context: e.builderContext,
2184
+ registeredComponents: e.builderComponents,
2185
+ linkComponent: e.builderLinkComponent
2186
+ }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
2187
+ ], 6)) : S("", !0)
2188
+ ], 64))), 128))
2189
+ ], 4);
2190
+ }
2191
+ const uo = /* @__PURE__ */ b(ao, [["render", co]]), ae = {
2192
+ "@type": "@builder.io/sdk:Element",
2193
+ layerName: "Accordion item title",
2194
+ responsiveStyles: {
2195
+ large: {
2196
+ marginTop: "10px",
2197
+ position: "relative",
2198
+ display: "flex",
2199
+ alignItems: "stretch",
2200
+ flexDirection: "column",
2201
+ paddingBottom: "10px"
2202
+ }
2203
+ },
2204
+ children: [{
2205
+ "@type": "@builder.io/sdk:Element",
2206
+ responsiveStyles: {
2207
+ large: {
2208
+ textAlign: "left",
2209
+ display: "flex",
2210
+ flexDirection: "column"
2211
+ }
2212
+ },
2213
+ component: {
2214
+ name: "Text",
2215
+ options: {
2216
+ text: "I am an accordion title. Click me!"
2217
+ }
2218
+ }
2219
+ }]
2220
+ }, le = {
2221
+ "@type": "@builder.io/sdk:Element",
2222
+ layerName: "Accordion item detail",
2223
+ responsiveStyles: {
2224
+ large: {
2225
+ position: "relative",
2226
+ display: "flex",
2227
+ alignItems: "stretch",
2228
+ flexDirection: "column",
2229
+ marginTop: "10px",
2230
+ paddingBottom: "10px"
2231
+ }
2232
+ },
2233
+ children: [{
2234
+ "@type": "@builder.io/sdk:Element",
2235
+ responsiveStyles: {
2236
+ large: {
2237
+ paddingTop: "50px",
2238
+ textAlign: "left",
2239
+ display: "flex",
2240
+ flexDirection: "column",
2241
+ paddingBottom: "50px"
2242
+ }
2243
+ },
2244
+ component: {
2245
+ name: "Text",
2246
+ options: {
2247
+ text: "I am an accordion detail, hello!"
2248
+ }
2249
+ }
2250
+ }]
2251
+ }, po = {
2252
+ name: "Builder:Accordion",
2253
+ canHaveChildren: !0,
2254
+ image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
2255
+ defaultStyles: {
2256
+ display: "flex",
2257
+ flexDirection: "column",
2258
+ alignItems: "stretch"
2259
+ },
2260
+ inputs: [{
2261
+ name: "items",
2262
+ type: "list",
2263
+ broadcast: !0,
2264
+ subFields: [{
2265
+ name: "title",
2266
+ type: "uiBlocks",
2267
+ hideFromUI: !0,
2268
+ defaultValue: [ae]
2269
+ }, {
2270
+ name: "detail",
2271
+ type: "uiBlocks",
2272
+ hideFromUI: !0,
2273
+ defaultValue: [le]
2274
+ }],
2275
+ defaultValue: [{
2276
+ title: [ae],
2277
+ detail: [le]
2278
+ }, {
2279
+ title: [ae],
2280
+ detail: [le]
2281
+ }],
2282
+ showIf: (e) => !e.get("useChildrenForItems")
2283
+ }, {
2284
+ name: "oneAtATime",
2285
+ helperText: "Only allow opening one at a time (collapse all others when new item openned)",
2286
+ type: "boolean",
2287
+ defaultValue: !1
2288
+ }, {
2289
+ name: "grid",
2290
+ helperText: "Display as a grid",
2291
+ type: "boolean",
2292
+ defaultValue: !1
2293
+ }, {
2294
+ name: "gridRowWidth",
2295
+ helperText: "Display as a grid",
2296
+ type: "string",
2297
+ showIf: (e) => e.get("grid"),
2298
+ defaultValue: "25%"
2299
+ }, {
2300
+ name: "useChildrenForItems",
2301
+ type: "boolean",
2302
+ helperText: "Use child elements for each slide, instead of the array. Useful for dynamically repeating items",
2303
+ advanced: !0,
2304
+ defaultValue: !1,
2305
+ onChange: (e) => {
2306
+ e.get("useChildrenForItems") === !0 && e.set("items", []);
2307
+ }
2308
+ }]
2309
+ }, mo = {
2053
2310
  name: "Custom Code",
2054
2311
  static: !0,
2055
2312
  requiredPermissions: ["editCode"],
@@ -2071,7 +2328,7 @@ const so = /* @__PURE__ */ b(to, [["render", oo]]), ro = {
2071
2328
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
2072
2329
  advanced: !0
2073
2330
  }]
2074
- }, io = f({
2331
+ }, ho = f({
2075
2332
  name: "builder-custom-code",
2076
2333
  props: ["replaceNodes", "code"],
2077
2334
  data() {
@@ -2088,8 +2345,8 @@ const so = /* @__PURE__ */ b(to, [["render", oo]]), ro = {
2088
2345
  if (this.scriptsInserted.includes(o.src))
2089
2346
  continue;
2090
2347
  this.scriptsInserted.push(o.src);
2091
- const s = document.createElement("script");
2092
- s.async = !0, s.src = o.src, document.head.appendChild(s);
2348
+ const r = document.createElement("script");
2349
+ r.async = !0, r.src = o.src, document.head.appendChild(r);
2093
2350
  } else if (!o.type || [
2094
2351
  "text/javascript",
2095
2352
  "application/javascript",
@@ -2099,21 +2356,21 @@ const so = /* @__PURE__ */ b(to, [["render", oo]]), ro = {
2099
2356
  continue;
2100
2357
  try {
2101
2358
  this.scriptsRun.push(o.innerText), new Function(o.innerText)();
2102
- } catch (s) {
2103
- console.warn("`CustomCode`: Error running script:", s);
2359
+ } catch (r) {
2360
+ console.warn("`CustomCode`: Error running script:", r);
2104
2361
  }
2105
2362
  }
2106
2363
  }
2107
2364
  }
2108
- }), ao = ["innerHTML"];
2109
- function lo(e, t, n, o, s, r) {
2110
- return u(), h("div", {
2365
+ }), fo = ["innerHTML"];
2366
+ function bo(e, t, n, o, r, s) {
2367
+ return d(), m("div", {
2111
2368
  ref: "elementRef",
2112
- class: de("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
2369
+ class: J("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
2113
2370
  innerHTML: e.code
2114
- }, null, 10, ao);
2371
+ }, null, 10, fo);
2115
2372
  }
2116
- const co = /* @__PURE__ */ b(io, [["render", lo]]), uo = {
2373
+ const go = /* @__PURE__ */ b(ho, [["render", bo]]), yo = {
2117
2374
  name: "Embed",
2118
2375
  static: !0,
2119
2376
  inputs: [{
@@ -2138,7 +2395,7 @@ const co = /* @__PURE__ */ b(io, [["render", lo]]), uo = {
2138
2395
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2139
2396
  hideFromUI: !0
2140
2397
  }]
2141
- }, po = ["text/javascript", "application/javascript", "application/ecmascript"], mo = (e) => po.includes(e.type), ho = f({
2398
+ }, ko = ["text/javascript", "application/javascript", "application/ecmascript"], So = (e) => ko.includes(e.type), vo = f({
2142
2399
  name: "builder-embed",
2143
2400
  props: ["content"],
2144
2401
  data() {
@@ -2171,7 +2428,7 @@ const co = /* @__PURE__ */ b(io, [["render", lo]]), uo = {
2171
2428
  this.scriptsInserted.push(n.src);
2172
2429
  const o = document.createElement("script");
2173
2430
  o.async = !0, o.src = n.src, document.head.appendChild(o);
2174
- } else if (mo(n) && !this.scriptsRun.includes(n.innerText))
2431
+ } else if (So(n) && !this.scriptsRun.includes(n.innerText))
2175
2432
  try {
2176
2433
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
2177
2434
  } catch (o) {
@@ -2180,15 +2437,15 @@ const co = /* @__PURE__ */ b(io, [["render", lo]]), uo = {
2180
2437
  }
2181
2438
  }
2182
2439
  }
2183
- }), fo = ["innerHTML"];
2184
- function bo(e, t, n, o, s, r) {
2185
- return u(), h("div", {
2440
+ }), Co = ["innerHTML"];
2441
+ function wo(e, t, n, o, r, s) {
2442
+ return d(), m("div", {
2186
2443
  class: "builder-embed",
2187
2444
  ref: "elem",
2188
2445
  innerHTML: e.content
2189
- }, null, 8, fo);
2446
+ }, null, 8, Co);
2190
2447
  }
2191
- const go = /* @__PURE__ */ b(ho, [["render", bo]]), yo = {
2448
+ const To = /* @__PURE__ */ b(vo, [["render", wo]]), Io = {
2192
2449
  name: "Form:Form",
2193
2450
  // editableTags: ['builder-form-error']
2194
2451
  defaults: {
@@ -2419,15 +2676,15 @@ const go = /* @__PURE__ */ b(ho, [["render", bo]]), yo = {
2419
2676
  }
2420
2677
  }
2421
2678
  }]
2422
- }, ko = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], vo = () => {
2679
+ }, $o = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Ro = () => {
2423
2680
  const e = process.env.NODE_ENV || "production";
2424
- return ko.includes(e) ? e : "production";
2425
- }, So = (e, t, n) => {
2426
- const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((s, r) => s != null ? s[r] : s, e);
2681
+ return $o.includes(e) ? e : "production";
2682
+ }, Eo = (e, t, n) => {
2683
+ const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, s) => r != null ? r[s] : r, e);
2427
2684
  return o === void 0 || o === e ? n : o;
2428
- }, Co = f({
2685
+ }, Po = f({
2429
2686
  name: "builder-form-component",
2430
- components: { Block: pe, Blocks: J },
2687
+ components: { Block: fe, Blocks: M },
2431
2688
  props: [
2432
2689
  "builderContext",
2433
2690
  "previewState",
@@ -2456,7 +2713,7 @@ const go = /* @__PURE__ */ b(ho, [["render", bo]]), yo = {
2456
2713
  formState: "unsubmitted",
2457
2714
  responseData: null,
2458
2715
  formErrorMessage: "",
2459
- filterAttrs: W
2716
+ filterAttrs: N
2460
2717
  };
2461
2718
  },
2462
2719
  methods: {
@@ -2469,7 +2726,7 @@ const go = /* @__PURE__ */ b(ho, [["render", bo]]), yo = {
2469
2726
  this.builderContext.rootSetState ? (o = (n = this.builderContext).rootSetState) == null || o.call(n, t) : this.builderContext.rootState = t;
2470
2727
  },
2471
2728
  submissionState() {
2472
- return I() && this.previewState || this.formState;
2729
+ return R() && this.previewState || this.formState;
2473
2730
  },
2474
2731
  onSubmit(e) {
2475
2732
  var n;
@@ -2482,9 +2739,9 @@ const go = /* @__PURE__ */ b(ho, [["render", bo]]), yo = {
2482
2739
  return;
2483
2740
  }
2484
2741
  e.preventDefault();
2485
- const o = e.currentTarget, s = this.customHeaders || {};
2486
- let r;
2487
- const i = new FormData(o), a = Array.from(
2742
+ const o = e.currentTarget, r = this.customHeaders || {};
2743
+ let s;
2744
+ const i = new FormData(o), l = Array.from(
2488
2745
  e.currentTarget.querySelectorAll("input,select,textarea")
2489
2746
  ).filter((c) => !!c.name).map((c) => {
2490
2747
  let p;
@@ -2499,8 +2756,8 @@ const go = /* @__PURE__ */ b(ho, [["render", bo]]), yo = {
2499
2756
  } else if (c.type === "checkbox")
2500
2757
  p = c.checked;
2501
2758
  else if (c.type === "number" || c.type === "range") {
2502
- const g = c.valueAsNumber;
2503
- isNaN(g) || (p = g);
2759
+ const y = c.valueAsNumber;
2760
+ isNaN(y) || (p = y);
2504
2761
  } else
2505
2762
  c.type === "file" ? p = c.files : p = c.value;
2506
2763
  else
@@ -2510,34 +2767,34 @@ const go = /* @__PURE__ */ b(ho, [["render", bo]]), yo = {
2510
2767
  value: p
2511
2768
  };
2512
2769
  });
2513
- let l = this.contentType;
2514
- if (this.sendSubmissionsTo === "email" && (l = "multipart/form-data"), Array.from(a).forEach(({ value: c }) => {
2515
- (c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (l = "multipart/form-data");
2516
- }), l !== "application/json")
2517
- r = i;
2770
+ let a = this.contentType;
2771
+ if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value: c }) => {
2772
+ (c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (a = "multipart/form-data");
2773
+ }), a !== "application/json")
2774
+ s = i;
2518
2775
  else {
2519
2776
  const c = {};
2520
- Array.from(a).forEach(({ value: p, key: v }) => {
2521
- We(c, v, p);
2522
- }), r = JSON.stringify(c);
2777
+ Array.from(l).forEach(({ value: p, key: v }) => {
2778
+ Oe(c, v, p);
2779
+ }), s = JSON.stringify(c);
2523
2780
  }
2524
- l && l !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (s["content-type"] = l));
2525
- const d = new CustomEvent("presubmit", {
2781
+ a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
2782
+ const u = new CustomEvent("presubmit", {
2526
2783
  detail: {
2527
- body: r
2784
+ body: s
2528
2785
  }
2529
2786
  });
2530
- if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(d), d.defaultPrevented))
2787
+ if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(u), u.defaultPrevented))
2531
2788
  return;
2532
2789
  this.formState = "sending";
2533
- const m = `${vo() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
2790
+ const h = `${Ro() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
2534
2791
  this.sendSubmissionsToEmail || ""
2535
2792
  )}&name=${encodeURIComponent(this.name || "")}`;
2536
2793
  fetch(
2537
- this.sendSubmissionsTo === "email" ? m : this.action,
2794
+ this.sendSubmissionsTo === "email" ? h : this.action,
2538
2795
  {
2539
- body: r,
2540
- headers: s,
2796
+ body: s,
2797
+ headers: r,
2541
2798
  method: this.method || "post"
2542
2799
  }
2543
2800
  ).then(
@@ -2545,31 +2802,31 @@ const go = /* @__PURE__ */ b(ho, [["render", bo]]), yo = {
2545
2802
  let p;
2546
2803
  const v = c.headers.get("content-type");
2547
2804
  if (v && v.indexOf("application/json") !== -1 ? p = await c.json() : p = await c.text(), !c.ok && this.errorMessagePath) {
2548
- let g = So(p, this.errorMessagePath);
2549
- g && (typeof g != "string" && (g = JSON.stringify(g)), this.formErrorMessage = g, this.mergeNewRootState({
2550
- formErrorMessage: g
2805
+ let y = Eo(p, this.errorMessagePath);
2806
+ y && (typeof y != "string" && (y = JSON.stringify(y)), this.formErrorMessage = y, this.mergeNewRootState({
2807
+ formErrorMessage: y
2551
2808
  }));
2552
2809
  }
2553
2810
  if (this.responseData = p, this.formState = c.ok ? "success" : "error", c.ok) {
2554
- const g = new CustomEvent("submit:success", {
2811
+ const y = new CustomEvent("submit:success", {
2555
2812
  detail: {
2556
2813
  res: c,
2557
2814
  body: p
2558
2815
  }
2559
2816
  });
2560
2817
  if (this.$refs.formRef) {
2561
- if (this.$refs.formRef.dispatchEvent(g), g.defaultPrevented)
2818
+ if (this.$refs.formRef.dispatchEvent(y), y.defaultPrevented)
2562
2819
  return;
2563
2820
  this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
2564
2821
  }
2565
2822
  if (this.successUrl)
2566
2823
  if (this.$refs.formRef) {
2567
- const N = new CustomEvent("route", {
2824
+ const F = new CustomEvent("route", {
2568
2825
  detail: {
2569
2826
  url: this.successUrl
2570
2827
  }
2571
2828
  });
2572
- this.$refs.formRef.dispatchEvent(N), N.defaultPrevented || (location.href = this.successUrl);
2829
+ this.$refs.formRef.dispatchEvent(F), F.defaultPrevented || (location.href = this.successUrl);
2573
2830
  } else
2574
2831
  location.href = this.successUrl;
2575
2832
  }
@@ -2586,50 +2843,50 @@ const go = /* @__PURE__ */ b(ho, [["render", bo]]), yo = {
2586
2843
  }
2587
2844
  }
2588
2845
  }
2589
- }), wo = ["validate", "action", "method", "name"], To = {
2846
+ }), Bo = ["validate", "action", "method", "name"], xo = {
2590
2847
  key: 3,
2591
- class: "builder-form-error-text pre-3i4ezorcfhi"
2848
+ class: "builder-form-error-text pre-3q96myty4lk"
2592
2849
  };
2593
- function $o(e, t, n, o, s, r) {
2594
- var l;
2595
- const i = y("block"), a = y("blocks");
2596
- return u(), h("form", w({
2850
+ function Ao(e, t, n, o, r, s) {
2851
+ var a;
2852
+ const i = g("Block"), l = g("Blocks");
2853
+ return d(), m("form", w({
2597
2854
  validate: e.validate,
2598
2855
  ref: "formRef",
2599
2856
  action: !e.sendWithJs && e.action,
2600
2857
  method: e.method,
2601
2858
  name: e.name,
2602
- onSubmit: t[0] || (t[0] = (d) => e.onSubmit(d))
2603
- }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
2604
- e.builderBlock && e.builderBlock.children ? (u(!0), h($, { key: 0 }, O((l = e.builderBlock) == null ? void 0 : l.children, (d, m) => (u(), k(i, {
2859
+ onSubmit: t[0] || (t[0] = (u) => e.onSubmit(u))
2860
+ }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
2861
+ e.builderBlock && e.builderBlock.children ? (d(!0), m(I, { key: 0 }, W((a = e.builderBlock) == null ? void 0 : a.children, (u, h) => (d(), k(i, {
2605
2862
  key: `form-block-${e.idx}`,
2606
- block: d,
2863
+ block: u,
2607
2864
  context: e.builderContext,
2608
2865
  registeredComponents: e.builderComponents,
2609
2866
  linkComponent: e.builderLinkComponent
2610
2867
  }, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128)) : S("", !0),
2611
- e.submissionState() === "error" ? (u(), k(a, {
2868
+ e.submissionState() === "error" ? (d(), k(l, {
2612
2869
  key: 1,
2613
2870
  path: "errorMessage",
2614
2871
  blocks: e.errorMessage,
2615
2872
  context: e.builderContext
2616
2873
  }, null, 8, ["blocks", "context"])) : S("", !0),
2617
- e.submissionState() === "sending" ? (u(), k(a, {
2874
+ e.submissionState() === "sending" ? (d(), k(l, {
2618
2875
  key: 2,
2619
2876
  path: "sendingMessage",
2620
2877
  blocks: e.sendingMessage,
2621
2878
  context: e.builderContext
2622
2879
  }, null, 8, ["blocks", "context"])) : S("", !0),
2623
- e.submissionState() === "error" && e.responseData ? (u(), h("pre", To, te(JSON.stringify(e.responseData, null, 2)), 1)) : S("", !0),
2624
- e.submissionState() === "success" ? (u(), k(a, {
2880
+ e.submissionState() === "error" && e.responseData ? (d(), m("pre", xo, ne(JSON.stringify(e.responseData, null, 2)), 1)) : S("", !0),
2881
+ e.submissionState() === "success" ? (d(), k(l, {
2625
2882
  key: 4,
2626
2883
  path: "successMessage",
2627
2884
  blocks: e.successMessage,
2628
2885
  context: e.builderContext
2629
2886
  }, null, 8, ["blocks", "context"])) : S("", !0)
2630
- ], 16, wo);
2887
+ ], 16, Bo);
2631
2888
  }
2632
- const Io = /* @__PURE__ */ b(Co, [["render", $o], ["__scopeId", "data-v-1573388b"]]), Ro = {
2889
+ const Vo = /* @__PURE__ */ b(Po, [["render", Ao], ["__scopeId", "data-v-d55453cc"]]), Wo = {
2633
2890
  name: "Form:Input",
2634
2891
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2635
2892
  inputs: [
@@ -2680,7 +2937,7 @@ const Io = /* @__PURE__ */ b(Co, [["render", $o], ["__scopeId", "data-v-1573388b
2680
2937
  borderStyle: "solid",
2681
2938
  borderColor: "#ccc"
2682
2939
  }
2683
- }, Eo = f({
2940
+ }, No = f({
2684
2941
  name: "builder-form-input-component",
2685
2942
  props: [
2686
2943
  "attributes",
@@ -2692,11 +2949,11 @@ const Io = /* @__PURE__ */ b(Co, [["render", $o], ["__scopeId", "data-v-1573388b
2692
2949
  "required"
2693
2950
  ],
2694
2951
  data() {
2695
- return { isEditing: I, filterAttrs: W };
2952
+ return { isEditing: R, filterAttrs: N };
2696
2953
  }
2697
- }), Po = ["placeholder", "type", "name", "value", "defaultValue", "required"];
2698
- function xo(e, t, n, o, s, r) {
2699
- return u(), h("input", w({
2954
+ }), Fo = ["placeholder", "type", "name", "value", "defaultValue", "required"];
2955
+ function Oo(e, t, n, o, r, s) {
2956
+ return d(), m("input", w({
2700
2957
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
2701
2958
  placeholder: e.placeholder,
2702
2959
  type: e.type,
@@ -2704,9 +2961,9 @@ function xo(e, t, n, o, s, r) {
2704
2961
  value: e.value,
2705
2962
  defaultValue: e.defaultValue,
2706
2963
  required: e.required
2707
- }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Po);
2964
+ }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Fo);
2708
2965
  }
2709
- const Vo = /* @__PURE__ */ b(Eo, [["render", xo]]), Ao = {
2966
+ const Do = /* @__PURE__ */ b(No, [["render", Oo]]), Uo = {
2710
2967
  name: "Form:Select",
2711
2968
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2712
2969
  defaultStyles: {
@@ -2748,27 +3005,27 @@ const Vo = /* @__PURE__ */ b(Eo, [["render", xo]]), Ao = {
2748
3005
  }],
2749
3006
  static: !0,
2750
3007
  noWrap: !0
2751
- }, Bo = f({
3008
+ }, Lo = f({
2752
3009
  name: "builder-select-component",
2753
3010
  props: ["attributes", "value", "defaultValue", "name", "options"],
2754
3011
  data() {
2755
- return { isEditing: I, filterAttrs: W };
3012
+ return { isEditing: R, filterAttrs: N };
2756
3013
  }
2757
- }), Wo = ["value", "defaultValue", "name"], No = ["value"];
2758
- function Fo(e, t, n, o, s, r) {
2759
- return u(), h("select", w({
3014
+ }), Mo = ["value", "defaultValue", "name"], jo = ["value"];
3015
+ function Ho(e, t, n, o, r, s) {
3016
+ return d(), m("select", w({
2760
3017
  value: e.value,
2761
3018
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
2762
3019
  defaultValue: e.defaultValue,
2763
3020
  name: e.name
2764
- }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
2765
- (u(!0), h($, null, O(e.options, (i, a) => (u(), h("option", {
2766
- key: `${i.name}-${a}`,
3021
+ }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3022
+ (d(!0), m(I, null, W(e.options, (i, l) => (d(), m("option", {
3023
+ key: `${i.name}-${l}`,
2767
3024
  value: i.value
2768
- }, te(i.name || i.value), 9, No))), 128))
2769
- ], 16, Wo);
3025
+ }, ne(i.name || i.value), 9, jo))), 128))
3026
+ ], 16, Mo);
2770
3027
  }
2771
- const Oo = /* @__PURE__ */ b(Bo, [["render", Fo]]), Uo = {
3028
+ const Ko = /* @__PURE__ */ b(Lo, [["render", Ho]]), qo = {
2772
3029
  name: "Form:SubmitButton",
2773
3030
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2774
3031
  defaultStyles: {
@@ -2793,17 +3050,17 @@ const Oo = /* @__PURE__ */ b(Bo, [["render", Fo]]), Uo = {
2793
3050
  // that only shows if advanced setting is flipped
2794
3051
  // TODO: defaultChildren
2795
3052
  // canHaveChildren: true,
2796
- }, Lo = f({
3053
+ }, zo = f({
2797
3054
  name: "builder-submit-button",
2798
3055
  props: ["attributes", "text"],
2799
3056
  data() {
2800
- return { filterAttrs: W };
3057
+ return { filterAttrs: N };
2801
3058
  }
2802
3059
  });
2803
- function Mo(e, t, n, o, s, r) {
2804
- return u(), h("button", w({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), te(e.text), 17);
3060
+ function Jo(e, t, n, o, r, s) {
3061
+ return d(), m("button", w({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ne(e.text), 17);
2805
3062
  }
2806
- const Do = /* @__PURE__ */ b(Lo, [["render", Mo]]), Ho = {
3063
+ const Go = /* @__PURE__ */ b(zo, [["render", Jo]]), Yo = {
2807
3064
  // friendlyName?
2808
3065
  name: "Raw:Img",
2809
3066
  hideFromInsertMenu: !0,
@@ -2817,7 +3074,7 @@ const Do = /* @__PURE__ */ b(Lo, [["render", Mo]]), Ho = {
2817
3074
  }],
2818
3075
  noWrap: !0,
2819
3076
  static: !0
2820
- }, jo = f({
3077
+ }, Qo = f({
2821
3078
  name: "builder-img-component",
2822
3079
  props: [
2823
3080
  "backgroundSize",
@@ -2828,11 +3085,11 @@ const Do = /* @__PURE__ */ b(Lo, [["render", Mo]]), Ho = {
2828
3085
  "attributes"
2829
3086
  ],
2830
3087
  data() {
2831
- return { isEditing: I, filterAttrs: W };
3088
+ return { isEditing: R, filterAttrs: N };
2832
3089
  }
2833
- }), Ko = ["alt", "src"];
2834
- function zo(e, t, n, o, s, r) {
2835
- return u(), h("img", w({
3090
+ }), Xo = ["alt", "src"];
3091
+ function Zo(e, t, n, o, r, s) {
3092
+ return d(), m("img", w({
2836
3093
  style: {
2837
3094
  objectFit: e.backgroundSize || "cover",
2838
3095
  objectPosition: e.backgroundPosition || "center"
@@ -2840,9 +3097,9 @@ function zo(e, t, n, o, s, r) {
2840
3097
  key: e.isEditing() && e.imgSrc || "default-key",
2841
3098
  alt: e.altText,
2842
3099
  src: e.imgSrc || e.image
2843
- }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Ko);
3100
+ }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Xo);
2844
3101
  }
2845
- const qo = /* @__PURE__ */ b(jo, [["render", zo]]), Jo = {
3102
+ const _o = /* @__PURE__ */ b(Qo, [["render", Zo]]), er = {
2846
3103
  name: "Video",
2847
3104
  canHaveChildren: !0,
2848
3105
  defaultStyles: {
@@ -2923,7 +3180,7 @@ const qo = /* @__PURE__ */ b(jo, [["render", zo]]), Jo = {
2923
3180
  defaultValue: !0,
2924
3181
  advanced: !0
2925
3182
  }]
2926
- }, Go = f({
3183
+ }, tr = f({
2927
3184
  name: "builder-video",
2928
3185
  props: [
2929
3186
  "autoPlay",
@@ -2968,16 +3225,16 @@ const qo = /* @__PURE__ */ b(jo, [["render", zo]]), Jo = {
2968
3225
  };
2969
3226
  }
2970
3227
  }
2971
- }), Yo = { style: {
3228
+ }), nr = { style: {
2972
3229
  position: "relative"
2973
- } }, Qo = ["preload", "src", "poster"], Xo = ["src"], _o = {
3230
+ } }, or = ["preload", "src", "poster"], rr = ["src"], sr = {
2974
3231
  key: 1,
2975
3232
  style: {
2976
3233
  display: "flex",
2977
3234
  flexDirection: "column",
2978
3235
  alignItems: "stretch"
2979
3236
  }
2980
- }, Zo = {
3237
+ }, ir = {
2981
3238
  key: 2,
2982
3239
  style: {
2983
3240
  pointerEvents: "none",
@@ -2991,10 +3248,10 @@ const qo = /* @__PURE__ */ b(jo, [["render", zo]]), Jo = {
2991
3248
  height: "100%"
2992
3249
  }
2993
3250
  };
2994
- function es(e, t, n, o, s, r) {
2995
- var i, a, l, d, m, c, p;
2996
- return u(), h("div", Yo, [
2997
- _("video", w({
3251
+ function ar(e, t, n, o, r, s) {
3252
+ var i, l, a, u, h, c, p;
3253
+ return d(), m("div", nr, [
3254
+ z("video", w({
2998
3255
  class: "builder-video",
2999
3256
  preload: e.preload || "metadata",
3000
3257
  style: {
@@ -3014,96 +3271,99 @@ function es(e, t, n, o, s, r) {
3014
3271
  src: e.video || "no-src",
3015
3272
  poster: e.posterImage
3016
3273
  }, e.spreadProps), [
3017
- e.lazyLoad ? S("", !0) : (u(), h("source", {
3274
+ e.lazyLoad ? S("", !0) : (d(), m("source", {
3018
3275
  key: 0,
3019
3276
  type: "video/mp4",
3020
3277
  src: e.video
3021
- }, null, 8, Xo))
3022
- ], 16, Qo),
3023
- e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length)) ? (u(), h("div", {
3278
+ }, null, 8, rr))
3279
+ ], 16, or),
3280
+ e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), m("div", {
3024
3281
  key: 0,
3025
- style: K({
3282
+ style: D({
3026
3283
  width: "100%",
3027
3284
  paddingTop: e.aspectRatio * 100 + "%",
3028
3285
  pointerEvents: "none",
3029
3286
  fontSize: "0px"
3030
3287
  })
3031
3288
  }, null, 4)) : S("", !0),
3032
- (m = (d = e.builderBlock) == null ? void 0 : d.children) != null && m.length && e.fitContent ? (u(), h("div", _o, [
3289
+ (h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (d(), m("div", sr, [
3033
3290
  P(e.$slots, "default")
3034
3291
  ])) : S("", !0),
3035
- (p = (c = e.builderBlock) == null ? void 0 : c.children) != null && p.length && !e.fitContent ? (u(), h("div", Zo, [
3292
+ (p = (c = e.builderBlock) == null ? void 0 : c.children) != null && p.length && !e.fitContent ? (d(), m("div", ir, [
3036
3293
  P(e.$slots, "default")
3037
3294
  ])) : S("", !0)
3038
3295
  ]);
3039
3296
  }
3040
- const ts = /* @__PURE__ */ b(Go, [["render", es]]), ns = () => [{
3041
- component: co,
3042
- ...ro
3043
- }, {
3297
+ const lr = /* @__PURE__ */ b(tr, [["render", ar]]), cr = () => [{
3044
3298
  component: go,
3045
- ...uo
3299
+ ...mo
3046
3300
  }, {
3047
- component: Io,
3301
+ component: To,
3048
3302
  ...yo
3049
3303
  }, {
3050
3304
  component: Vo,
3051
- ...Ro
3305
+ ...Io
3052
3306
  }, {
3053
3307
  component: Do,
3054
- ...Uo
3308
+ ...Wo
3309
+ }, {
3310
+ component: Go,
3311
+ ...qo
3055
3312
  }, {
3056
- component: Oo,
3057
- ...Ao
3313
+ component: Ko,
3314
+ ...Uo
3058
3315
  }, {
3059
- component: qo,
3060
- ...Ho
3316
+ component: _o,
3317
+ ...Yo
3061
3318
  }, {
3062
- component: ts,
3063
- ...Jo
3064
- }], ve = () => [{
3065
- component: vt,
3319
+ component: lr,
3320
+ ...er
3321
+ }], we = () => [{
3322
+ component: Ct,
3066
3323
  ...Un
3067
3324
  }, {
3068
- component: pn,
3325
+ component: mn,
3069
3326
  ...Ln
3070
3327
  }, {
3071
- component: fn,
3328
+ component: bn,
3072
3329
  ...Mn
3073
3330
  }, {
3074
- component: wn,
3075
- ...Dn
3331
+ component: Tn,
3332
+ ...jn
3076
3333
  }, {
3077
- component: In,
3334
+ component: Rn,
3078
3335
  ...Hn
3079
3336
  }, {
3080
- component: qn,
3081
- ...jn
3337
+ component: Jn,
3338
+ ...Kn
3082
3339
  }, {
3083
- component: ur,
3084
- ...Jn
3340
+ component: ys,
3341
+ ...Gn
3085
3342
  }, {
3086
3343
  component: so,
3087
- ...eo
3344
+ ...to
3088
3345
  }, {
3089
- component: Zn,
3090
- ...Gn
3091
- }, ...ns()], os = (e) => ({
3346
+ component: eo,
3347
+ ...Yn
3348
+ }, {
3349
+ component: uo,
3350
+ ...po
3351
+ }, ...cr()], dr = (e) => ({
3092
3352
  type: "builder.registerComponent",
3093
- data: ae(e)
3094
- }), ss = (e) => {
3353
+ data: de(e)
3354
+ }), ur = (e) => {
3095
3355
  const t = e.toString().trim();
3096
3356
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
3097
- }, rs = (e) => typeof e == "function" ? ss(e) : q(e), ae = ({
3357
+ }, pr = (e) => typeof e == "function" ? ur(e) : Y(e), de = ({
3098
3358
  inputs: e,
3099
3359
  ...t
3100
3360
  }) => ({
3101
- ...q(t),
3102
- inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [s, r]) => ({
3361
+ ...Y(t),
3362
+ inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, s]) => ({
3103
3363
  ...o,
3104
- [s]: rs(r)
3364
+ [r]: pr(s)
3105
3365
  }), {}))
3106
- }), is = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3366
+ }), mr = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3107
3367
  function getAndSetVariantId() {
3108
3368
  function setCookie(name, value, days) {
3109
3369
  let expires = '';
@@ -3159,7 +3419,7 @@ const ts = /* @__PURE__ */ b(Go, [["render", es]]), ns = () => [{
3159
3419
  }).join('');
3160
3420
  styleEl.innerHTML = newStyleStr;
3161
3421
  }
3162
- }`, as = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3422
+ }`, hr = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3163
3423
  if (!navigator.cookieEnabled) {
3164
3424
  return;
3165
3425
  }
@@ -3193,27 +3453,27 @@ const ts = /* @__PURE__ */ b(Go, [["render", es]]), ns = () => [{
3193
3453
  thisScriptEl?.remove();
3194
3454
  }
3195
3455
  return;
3196
- }`, Ye = "builderIoAbTest", Qe = "builderIoRenderContent", X = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3456
+ }`, Xe = "builderIoAbTest", Ze = "builderIoRenderContent", _ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3197
3457
  ...t,
3198
3458
  testVariationId: t.id,
3199
3459
  id: e == null ? void 0 : e.id
3200
- })), ls = ({
3460
+ })), fr = ({
3201
3461
  canTrack: e,
3202
3462
  content: t
3203
- }) => !(!(X(t).length > 0) || !e), cs = (e) => e === "react" || e === "reactNative", Xe = cs(V), ds = () => `
3204
- window.${Ye} = ${is}
3205
- window.${Qe} = ${as}
3206
- `, us = (e, t) => `
3207
- window.${Ye}(
3208
- "${t}",${JSON.stringify(e)}, ${Xe}
3209
- )`, ps = ({
3463
+ }) => !(!(_(t).length > 0) || !e), br = (e) => e === "react" || e === "reactNative", _e = br(x), gr = () => `
3464
+ window.${Xe} = ${mr}
3465
+ window.${Ze} = ${hr}
3466
+ `, yr = (e, t) => `
3467
+ window.${Xe}(
3468
+ "${t}",${JSON.stringify(e)}, ${_e}
3469
+ )`, kr = ({
3210
3470
  contentId: e,
3211
3471
  variationId: t
3212
- }) => `window.${Qe}(
3213
- "${t}", "${e}", ${Xe}
3214
- )`, _e = f({
3472
+ }) => `window.${Ze}(
3473
+ "${t}", "${e}", ${_e}
3474
+ )`, et = f({
3215
3475
  render() {
3216
- return Ee("script", {
3476
+ return xe("script", {
3217
3477
  innerHTML: this.scriptStr,
3218
3478
  "data-id": this.id
3219
3479
  });
@@ -3221,221 +3481,221 @@ const ts = /* @__PURE__ */ b(Go, [["render", es]]), ns = () => [{
3221
3481
  name: "inlined-script",
3222
3482
  props: ["scriptStr", "id"]
3223
3483
  });
3224
- function ms() {
3484
+ function Sr() {
3225
3485
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
3226
3486
  }
3227
- function hs() {
3228
- const e = ms().fetch;
3487
+ function vr() {
3488
+ const e = Sr().fetch;
3229
3489
  if (typeof e > "u")
3230
3490
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
3231
3491
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
3232
3492
  return e;
3233
3493
  }
3234
- const Ze = hs();
3235
- function le(e, t = null, n = ".") {
3236
- return Object.keys(e).reduce((o, s) => {
3237
- const r = e[s], i = [t, s].filter(Boolean).join(n);
3238
- return [typeof r == "object", r !== null, !(Array.isArray(r) && r.length === 0)].every(Boolean) ? {
3494
+ const tt = vr();
3495
+ function ue(e, t = null, n = ".") {
3496
+ return Object.keys(e).reduce((o, r) => {
3497
+ const s = e[r], i = [t, r].filter(Boolean).join(n);
3498
+ return [typeof s == "object", s !== null, !(Array.isArray(s) && s.length === 0)].every(Boolean) ? {
3239
3499
  ...o,
3240
- ...le(r, i, n)
3500
+ ...ue(s, i, n)
3241
3501
  } : {
3242
3502
  ...o,
3243
- [i]: r
3503
+ [i]: s
3244
3504
  };
3245
3505
  }, {});
3246
3506
  }
3247
- function et(e, t, n = {}) {
3507
+ function nt(e, t, n = {}) {
3248
3508
  for (const o in e) {
3249
- const s = e[o], r = t ? t + "." + o : o;
3250
- s && typeof s == "object" && !Array.isArray(s) && !Object.keys(s).find((i) => i.startsWith("$")) ? et(s, r, n) : n[r] = s;
3509
+ const r = e[o], s = t ? t + "." + o : o;
3510
+ r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((i) => i.startsWith("$")) ? nt(r, s, n) : n[s] = r;
3251
3511
  }
3252
3512
  return n;
3253
3513
  }
3254
- const fs = "v3", Se = "builder.", bs = "options.", tt = (e) => {
3514
+ const Cr = "v3", Te = "builder.", wr = "options.", ot = (e) => {
3255
3515
  if (!e)
3256
3516
  return {};
3257
- const t = xe(e), n = {};
3517
+ const t = Ve(e), n = {};
3258
3518
  return Object.keys(t).forEach((o) => {
3259
- if (o.startsWith(Se)) {
3260
- const s = o.replace(Se, "").replace(bs, "");
3261
- n[s] = t[o];
3519
+ if (o.startsWith(Te)) {
3520
+ const r = o.replace(Te, "").replace(wr, "");
3521
+ n[r] = t[o];
3262
3522
  }
3263
3523
  }), n;
3264
- }, gs = () => {
3524
+ }, Tr = () => {
3265
3525
  if (!T())
3266
3526
  return {};
3267
3527
  const e = new URLSearchParams(window.location.search);
3268
- return tt(e);
3269
- }, Ce = (e) => typeof e == "number" && !isNaN(e) && e >= 0, fe = (e) => {
3528
+ return ot(e);
3529
+ }, Ie = (e) => typeof e == "number" && !isNaN(e) && e >= 0, ye = (e) => {
3270
3530
  const {
3271
3531
  limit: t = 30,
3272
3532
  userAttributes: n,
3273
3533
  query: o,
3274
- model: s,
3275
- apiKey: r,
3534
+ model: r,
3535
+ apiKey: s,
3276
3536
  enrich: i,
3277
- locale: a,
3278
- apiVersion: l = fs,
3279
- fields: d,
3280
- omit: m,
3537
+ locale: l,
3538
+ apiVersion: a = Cr,
3539
+ fields: u,
3540
+ omit: h,
3281
3541
  offset: c,
3282
3542
  cacheSeconds: p,
3283
3543
  staleCacheSeconds: v,
3284
- sort: g,
3285
- includeUnpublished: N
3544
+ sort: y,
3545
+ includeUnpublished: F
3286
3546
  } = e;
3287
- if (!r)
3547
+ if (!s)
3288
3548
  throw new Error("Missing API key");
3289
- if (!["v3"].includes(l))
3290
- throw new Error(`Invalid apiVersion: expected 'v3', received '${l}'`);
3291
- const Y = t !== 1, C = new URL(`https://cdn.builder.io/api/${l}/content/${s}`);
3292
- if (C.searchParams.set("apiKey", r), C.searchParams.set("limit", String(t)), C.searchParams.set("noTraverse", String(Y)), 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 N == "boolean" && C.searchParams.set("includeUnpublished", String(N)), p && Ce(p) && C.searchParams.set("cacheSeconds", String(p)), v && Ce(v) && C.searchParams.set("staleCacheSeconds", String(v)), g) {
3293
- const F = le({
3294
- sort: g
3549
+ if (!["v3"].includes(a))
3550
+ throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
3551
+ const X = t !== 1, C = new URL(`https://cdn.builder.io/api/${a}/content/${r}`);
3552
+ if (C.searchParams.set("apiKey", s), C.searchParams.set("limit", String(t)), C.searchParams.set("noTraverse", String(X)), C.searchParams.set("includeRefs", String(!0)), l && C.searchParams.set("locale", l), i && C.searchParams.set("enrich", String(i)), C.searchParams.set("omit", h || "meta.componentsUsed"), u && C.searchParams.set("fields", u), Number.isFinite(c) && c > -1 && C.searchParams.set("offset", String(Math.floor(c))), typeof F == "boolean" && C.searchParams.set("includeUnpublished", String(F)), p && Ie(p) && C.searchParams.set("cacheSeconds", String(p)), v && Ie(v) && C.searchParams.set("staleCacheSeconds", String(v)), y) {
3553
+ const O = ue({
3554
+ sort: y
3295
3555
  });
3296
- for (const M in F)
3297
- C.searchParams.set(M, JSON.stringify(F[M]));
3556
+ for (const j in O)
3557
+ C.searchParams.set(j, JSON.stringify(O[j]));
3298
3558
  }
3299
- const ct = {
3300
- ...gs(),
3301
- ...xe(e.options || {})
3302
- }, ge = le(ct);
3303
- for (const F in ge)
3304
- C.searchParams.set(F, String(ge[F]));
3559
+ const ut = {
3560
+ ...Tr(),
3561
+ ...Ve(e.options || {})
3562
+ }, Se = ue(ut);
3563
+ for (const O in Se)
3564
+ C.searchParams.set(O, String(Se[O]));
3305
3565
  if (n && C.searchParams.set("userAttributes", JSON.stringify(n)), o) {
3306
- const F = et({
3566
+ const O = nt({
3307
3567
  query: o
3308
3568
  });
3309
- for (const M in F)
3310
- C.searchParams.set(M, JSON.stringify(F[M]));
3569
+ for (const j in O)
3570
+ C.searchParams.set(j, JSON.stringify(O[j]));
3311
3571
  }
3312
3572
  return C;
3313
- }, ys = (e) => "results" in e;
3314
- async function be(e) {
3315
- const t = await Ss({
3573
+ }, Ir = (e) => "results" in e;
3574
+ async function ke(e) {
3575
+ const t = await Er({
3316
3576
  ...e,
3317
3577
  limit: 1
3318
3578
  });
3319
3579
  return t && t[0] || null;
3320
3580
  }
3321
- const ks = async (e) => {
3322
- const t = fe(e);
3323
- return await (await (e.fetch ?? Ze)(t.href, e.fetchOptions)).json();
3324
- }, vs = async (e, t, n = fe(e)) => {
3325
- const o = z(e.canTrack);
3326
- if (n.search.includes("preview="), !o || !(T() || V === "reactNative"))
3581
+ const $r = async (e) => {
3582
+ const t = ye(e);
3583
+ return await (await (e.fetch ?? tt)(t.href, e.fetchOptions)).json();
3584
+ }, Rr = async (e, t, n = ye(e)) => {
3585
+ const o = G(e.canTrack);
3586
+ if (n.search.includes("preview="), !o || !(T() || x === "reactNative"))
3327
3587
  return t.results;
3328
3588
  try {
3329
- const s = [];
3330
- for (const r of t.results)
3331
- s.push(await On({
3332
- item: r,
3589
+ const r = [];
3590
+ for (const s of t.results)
3591
+ r.push(await Dn({
3592
+ item: s,
3333
3593
  canTrack: o
3334
3594
  }));
3335
- t.results = s;
3336
- } catch (s) {
3337
- R.error("Could not process A/B tests. ", s);
3595
+ t.results = r;
3596
+ } catch (r) {
3597
+ E.error("Could not process A/B tests. ", r);
3338
3598
  }
3339
3599
  return t.results;
3340
3600
  };
3341
- async function Ss(e) {
3601
+ async function Er(e) {
3342
3602
  try {
3343
- const t = fe(e), n = await ks(e);
3344
- return ys(n) ? vs(e, n) : (R.error("Error fetching data. ", {
3603
+ const t = ye(e), n = await $r(e);
3604
+ return Ir(n) ? Rr(e, n) : (E.error("Error fetching data. ", {
3345
3605
  url: t,
3346
3606
  content: n,
3347
3607
  options: e
3348
3608
  }), null);
3349
3609
  } catch (t) {
3350
- return R.error("Error fetching data. ", t), null;
3610
+ return E.error("Error fetching data. ", t), null;
3351
3611
  }
3352
3612
  }
3353
- function Cs(e) {
3613
+ function Pr(e) {
3354
3614
  const t = e || (T() ? window.location.search : void 0);
3355
- return t ? Ve(t).indexOf("builder.preview=") !== -1 : !1;
3615
+ return t ? We(t).indexOf("builder.preview=") !== -1 : !1;
3356
3616
  }
3357
- function ws() {
3617
+ function Br() {
3358
3618
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
3359
3619
  const t = Math.random() * 16 | 0;
3360
3620
  return (e == "x" ? t : t & 3 | 8).toString(16);
3361
3621
  });
3362
3622
  }
3363
- function nt() {
3364
- return ws().replace(/-/g, "");
3623
+ function rt() {
3624
+ return Br().replace(/-/g, "");
3365
3625
  }
3366
- const ot = "builderSessionId", Ts = async ({
3626
+ const st = "builderSessionId", xr = async ({
3367
3627
  canTrack: e
3368
3628
  }) => {
3369
3629
  if (!e)
3370
3630
  return;
3371
- const t = await Ke({
3372
- name: ot,
3631
+ const t = await ze({
3632
+ name: st,
3373
3633
  canTrack: e
3374
3634
  });
3375
3635
  if (U(t))
3376
3636
  return t;
3377
3637
  {
3378
- const n = $s();
3379
- return Is({
3638
+ const n = Ar();
3639
+ return Vr({
3380
3640
  id: n,
3381
3641
  canTrack: e
3382
3642
  }), n;
3383
3643
  }
3384
- }, $s = () => nt(), Is = ({
3644
+ }, Ar = () => rt(), Vr = ({
3385
3645
  id: e,
3386
3646
  canTrack: t
3387
- }) => ze({
3388
- name: ot,
3647
+ }) => Je({
3648
+ name: st,
3389
3649
  value: e,
3390
3650
  canTrack: t
3391
- }), st = () => T() && typeof localStorage < "u" ? localStorage : void 0, Rs = ({
3651
+ }), it = () => T() && typeof localStorage < "u" ? localStorage : void 0, Wr = ({
3392
3652
  key: e,
3393
3653
  canTrack: t
3394
3654
  }) => {
3395
3655
  var n;
3396
3656
  try {
3397
- return t ? (n = st()) == null ? void 0 : n.getItem(e) : void 0;
3657
+ return t ? (n = it()) == null ? void 0 : n.getItem(e) : void 0;
3398
3658
  } catch (o) {
3399
3659
  console.debug("[LocalStorage] GET error: ", o);
3400
3660
  return;
3401
3661
  }
3402
- }, Es = ({
3662
+ }, Nr = ({
3403
3663
  key: e,
3404
3664
  canTrack: t,
3405
3665
  value: n
3406
3666
  }) => {
3407
3667
  var o;
3408
3668
  try {
3409
- t && ((o = st()) == null || o.setItem(e, n));
3410
- } catch (s) {
3411
- console.debug("[LocalStorage] SET error: ", s);
3669
+ t && ((o = it()) == null || o.setItem(e, n));
3670
+ } catch (r) {
3671
+ console.debug("[LocalStorage] SET error: ", r);
3412
3672
  }
3413
- }, rt = "builderVisitorId", Ps = ({
3673
+ }, at = "builderVisitorId", Fr = ({
3414
3674
  canTrack: e
3415
3675
  }) => {
3416
3676
  if (!e)
3417
3677
  return;
3418
- const t = Rs({
3419
- key: rt,
3678
+ const t = Wr({
3679
+ key: at,
3420
3680
  canTrack: e
3421
3681
  });
3422
3682
  if (U(t))
3423
3683
  return t;
3424
3684
  {
3425
- const n = xs();
3426
- return Vs({
3685
+ const n = Or();
3686
+ return Dr({
3427
3687
  id: n,
3428
3688
  canTrack: e
3429
3689
  }), n;
3430
3690
  }
3431
- }, xs = () => nt(), Vs = ({
3691
+ }, Or = () => rt(), Dr = ({
3432
3692
  id: e,
3433
3693
  canTrack: t
3434
- }) => Es({
3435
- key: rt,
3694
+ }) => Nr({
3695
+ key: at,
3436
3696
  value: e,
3437
3697
  canTrack: t
3438
- }), As = async ({
3698
+ }), Ur = async ({
3439
3699
  canTrack: e
3440
3700
  }) => {
3441
3701
  if (!e)
@@ -3443,46 +3703,46 @@ const ot = "builderSessionId", Ts = async ({
3443
3703
  visitorId: void 0,
3444
3704
  sessionId: void 0
3445
3705
  };
3446
- const t = await Ts({
3706
+ const t = await xr({
3447
3707
  canTrack: e
3448
- }), n = Ps({
3708
+ }), n = Fr({
3449
3709
  canTrack: e
3450
3710
  });
3451
3711
  return {
3452
3712
  sessionId: t,
3453
3713
  visitorId: n
3454
3714
  };
3455
- }, Bs = async ({
3715
+ }, Lr = async ({
3456
3716
  type: e,
3457
3717
  canTrack: t,
3458
3718
  apiKey: n,
3459
3719
  metadata: o,
3460
- ...s
3720
+ ...r
3461
3721
  }) => ({
3462
3722
  type: e,
3463
3723
  data: {
3464
- ...s,
3724
+ ...r,
3465
3725
  metadata: {
3466
3726
  url: location.href,
3467
3727
  ...o
3468
3728
  },
3469
- ...await As({
3729
+ ...await Ur({
3470
3730
  canTrack: t
3471
3731
  }),
3472
- userAttributes: Ae(),
3732
+ userAttributes: Ne(),
3473
3733
  ownerId: n
3474
3734
  }
3475
3735
  });
3476
- async function ce(e) {
3736
+ async function pe(e) {
3477
3737
  if (!e.apiKey) {
3478
- R.error("Missing API key for track call. Please provide your API key.");
3738
+ E.error("Missing API key for track call. Please provide your API key.");
3479
3739
  return;
3480
3740
  }
3481
- if (e.canTrack && !I() && (T() || V === "reactNative"))
3741
+ if (e.canTrack && !R() && (T() || x === "reactNative"))
3482
3742
  return fetch("https://cdn.builder.io/api/v1/track", {
3483
3743
  method: "POST",
3484
3744
  body: JSON.stringify({
3485
- events: [await Bs(e)]
3745
+ events: [await Lr(e)]
3486
3746
  }),
3487
3747
  headers: {
3488
3748
  "content-type": "application/json"
@@ -3492,14 +3752,14 @@ async function ce(e) {
3492
3752
  console.error("Failed to track: ", t);
3493
3753
  });
3494
3754
  }
3495
- const vr = (e) => ce({
3755
+ const Rs = (e) => pe({
3496
3756
  ...e,
3497
3757
  canTrack: !0
3498
3758
  });
3499
- function we(e) {
3759
+ function $e(e) {
3500
3760
  return Math.round(e * 1e3) / 1e3;
3501
3761
  }
3502
- const Ws = (e, t, n = !0) => {
3762
+ const Mr = (e, t, n = !0) => {
3503
3763
  if (!(e instanceof HTMLElement))
3504
3764
  return null;
3505
3765
  let o = n ? e : e.parentElement;
@@ -3510,43 +3770,43 @@ const Ws = (e, t, n = !0) => {
3510
3770
  return o;
3511
3771
  } while (o = o.parentElement);
3512
3772
  return null;
3513
- }, Ns = (e) => Ws(e, (t) => {
3773
+ }, jr = (e) => Mr(e, (t) => {
3514
3774
  const n = t.getAttribute("builder-id") || t.id;
3515
3775
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3516
- }), Te = ({
3776
+ }), Re = ({
3517
3777
  event: e,
3518
3778
  target: t
3519
3779
  }) => {
3520
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, s = e.clientY - n.top, r = we(o / n.width), i = we(s / n.height);
3780
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, s = $e(o / n.width), i = $e(r / n.height);
3521
3781
  return {
3522
- x: r,
3782
+ x: s,
3523
3783
  y: i
3524
3784
  };
3525
- }, Fs = (e) => {
3526
- const t = e.target, n = t && Ns(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3785
+ }, Hr = (e) => {
3786
+ const t = e.target, n = t && jr(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3527
3787
  return {
3528
3788
  targetBuilderElement: o || void 0,
3529
3789
  metadata: {
3530
- targetOffset: t ? Te({
3790
+ targetOffset: t ? Re({
3531
3791
  event: e,
3532
3792
  target: t
3533
3793
  }) : void 0,
3534
- builderTargetOffset: n ? Te({
3794
+ builderTargetOffset: n ? Re({
3535
3795
  event: e,
3536
3796
  target: n
3537
3797
  }) : void 0,
3538
3798
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
3539
3799
  }
3540
3800
  };
3541
- }, Os = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
3542
- function it(e, t) {
3801
+ }, Kr = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
3802
+ function lt(e, t) {
3543
3803
  const n = new URL(t.origin), o = n.hostname;
3544
- return (e || Os).findIndex((s) => s.startsWith("*.") ? o.endsWith(s.slice(1)) : s === o) > -1;
3804
+ return (e || Kr).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
3545
3805
  }
3546
- const Us = "1.0.27", $e = {};
3547
- function Ls(e, t) {
3548
- let n = $e[e];
3549
- if (n || (n = $e[e] = []), n.push(t), T()) {
3806
+ const qr = "1.0.28", Ee = {};
3807
+ function zr(e, t) {
3808
+ let n = Ee[e];
3809
+ if (n || (n = Ee[e] = []), n.push(t), T()) {
3550
3810
  const o = {
3551
3811
  type: "builder.register",
3552
3812
  data: {
@@ -3556,13 +3816,13 @@ function Ls(e, t) {
3556
3816
  };
3557
3817
  try {
3558
3818
  parent.postMessage(o, "*"), parent !== window && window.postMessage(o, "*");
3559
- } catch (s) {
3560
- console.debug("Could not postmessage", s);
3819
+ } catch (r) {
3820
+ console.debug("Could not postmessage", r);
3561
3821
  }
3562
3822
  }
3563
3823
  }
3564
- const Ms = () => {
3565
- Ls("insertMenu", {
3824
+ const Jr = () => {
3825
+ zr("insertMenu", {
3566
3826
  name: "_default",
3567
3827
  default: !0,
3568
3828
  items: [{
@@ -3584,14 +3844,14 @@ const Ms = () => {
3584
3844
  }]
3585
3845
  });
3586
3846
  };
3587
- let Ie = !1;
3588
- const at = (e = {}) => {
3847
+ let Pe = !1;
3848
+ const ct = (e = {}) => {
3589
3849
  var t, n;
3590
- Ie || (Ie = !0, T() && ((t = window.parent) == null || t.postMessage({
3850
+ Pe || (Pe = !0, T() && ((t = window.parent) == null || t.postMessage({
3591
3851
  type: "builder.sdkInfo",
3592
3852
  data: {
3593
- target: V,
3594
- version: Us,
3853
+ target: x,
3854
+ version: qr,
3595
3855
  supportsPatchUpdates: !1,
3596
3856
  // Supports builder-model="..." attribute which is needed to
3597
3857
  // scope our '+ add block' button styling
@@ -3604,34 +3864,34 @@ const at = (e = {}) => {
3604
3864
  options: e
3605
3865
  }
3606
3866
  }, "*"), window.addEventListener("message", (o) => {
3607
- var r, i;
3608
- if (!it(e.trustedHosts, o))
3867
+ var s, i;
3868
+ if (!lt(e.trustedHosts, o))
3609
3869
  return;
3610
3870
  const {
3611
- data: s
3871
+ data: r
3612
3872
  } = o;
3613
- if (s != null && s.type)
3614
- switch (s.type) {
3873
+ if (r != null && r.type)
3874
+ switch (r.type) {
3615
3875
  case "builder.evaluate": {
3616
- const a = s.data.text, l = s.data.arguments || [], d = s.data.id, m = new Function(a);
3876
+ const l = r.data.text, a = r.data.arguments || [], u = r.data.id, h = new Function(l);
3617
3877
  let c, p = null;
3618
3878
  try {
3619
- c = m.apply(null, l);
3879
+ c = h.apply(null, a);
3620
3880
  } catch (v) {
3621
3881
  p = v;
3622
3882
  }
3623
- p ? (r = window.parent) == null || r.postMessage({
3883
+ p ? (s = window.parent) == null || s.postMessage({
3624
3884
  type: "builder.evaluateError",
3625
3885
  data: {
3626
- id: d,
3886
+ id: u,
3627
3887
  error: p.message
3628
3888
  }
3629
3889
  }, "*") : c && typeof c.then == "function" ? c.then((v) => {
3630
- var g;
3631
- (g = window.parent) == null || g.postMessage({
3890
+ var y;
3891
+ (y = window.parent) == null || y.postMessage({
3632
3892
  type: "builder.evaluateResult",
3633
3893
  data: {
3634
- id: d,
3894
+ id: u,
3635
3895
  result: v
3636
3896
  }
3637
3897
  }, "*");
@@ -3639,45 +3899,45 @@ const at = (e = {}) => {
3639
3899
  type: "builder.evaluateResult",
3640
3900
  data: {
3641
3901
  result: c,
3642
- id: d
3902
+ id: u
3643
3903
  }
3644
3904
  }, "*");
3645
3905
  break;
3646
3906
  }
3647
3907
  }
3648
3908
  })));
3649
- }, lt = ({
3909
+ }, dt = ({
3650
3910
  model: e,
3651
3911
  trustedHosts: t,
3652
3912
  callbacks: n
3653
3913
  }) => (o) => {
3654
- if (!it(t, o))
3914
+ if (!lt(t, o))
3655
3915
  return;
3656
3916
  const {
3657
- data: s
3917
+ data: r
3658
3918
  } = o;
3659
- if (s)
3660
- switch (s.type) {
3919
+ if (r)
3920
+ switch (r.type) {
3661
3921
  case "builder.configureSdk": {
3662
- n.configureSdk(s.data);
3922
+ n.configureSdk(r.data);
3663
3923
  break;
3664
3924
  }
3665
3925
  case "builder.triggerAnimation": {
3666
- n.animation(s.data);
3926
+ n.animation(r.data);
3667
3927
  break;
3668
3928
  }
3669
3929
  case "builder.contentUpdate": {
3670
- const r = s.data, i = r.key || r.alias || r.entry || r.modelName, a = r.data;
3671
- i === e && n.contentUpdate(a);
3930
+ const s = r.data, i = s.key || s.alias || s.entry || s.modelName, l = s.data;
3931
+ i === e && n.contentUpdate(l);
3672
3932
  break;
3673
3933
  }
3674
3934
  }
3675
- }, Sr = (e, t, n) => {
3935
+ }, Es = (e, t, n) => {
3676
3936
  if (!T)
3677
- return R.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
3937
+ return E.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
3678
3938
  };
3679
- at();
3680
- const o = lt({
3939
+ ct();
3940
+ const o = dt({
3681
3941
  callbacks: {
3682
3942
  contentUpdate: t,
3683
3943
  animation: () => {
@@ -3691,11 +3951,11 @@ const at = (e = {}) => {
3691
3951
  return window.addEventListener("message", o), () => {
3692
3952
  window.removeEventListener("message", o);
3693
3953
  };
3694
- }, Ds = (e) => {
3695
- var r;
3696
- 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);
3697
- let s = "";
3698
- if (o && t && n && (s += `
3954
+ }, Gr = (e) => {
3955
+ var s;
3956
+ const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((s = e == null ? void 0 : e.files) == null ? void 0 : s.regular);
3957
+ let r = "";
3958
+ if (o && t && n && (r += `
3699
3959
  @font-face {
3700
3960
  font-family: "${t}";
3701
3961
  src: local("${n}"), url('${o}') format('woff2');
@@ -3706,26 +3966,26 @@ font-weight: 400;
3706
3966
  for (const i in e.files) {
3707
3967
  if (!(String(Number(i)) === i))
3708
3968
  continue;
3709
- const l = e.files[i];
3710
- l && l !== o && (s += `
3969
+ const a = e.files[i];
3970
+ a && a !== o && (r += `
3711
3971
  @font-face {
3712
3972
  font-family: "${t}";
3713
- src: url('${l}') format('woff2');
3973
+ src: url('${a}') format('woff2');
3714
3974
  font-display: fallback;
3715
3975
  font-weight: ${i};
3716
3976
  }
3717
3977
  `.trim());
3718
3978
  }
3719
- return s;
3720
- }, Hs = ({
3979
+ return r;
3980
+ }, Yr = ({
3721
3981
  customFonts: e
3722
3982
  }) => {
3723
3983
  var t;
3724
- return ((t = e == null ? void 0 : e.map((n) => Ds(n))) == null ? void 0 : t.join(" ")) || "";
3725
- }, js = ({
3984
+ return ((t = e == null ? void 0 : e.map((n) => Gr(n))) == null ? void 0 : t.join(" ")) || "";
3985
+ }, Qr = ({
3726
3986
  cssCode: e,
3727
3987
  contentId: t
3728
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ks = `
3988
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Xr = `
3729
3989
  .builder-button {
3730
3990
  all: unset;
3731
3991
  }
@@ -3742,9 +4002,9 @@ font-weight: ${i};
3742
4002
  text-align: inherit;
3743
4003
  font-family: inherit;
3744
4004
  }
3745
- `, zs = (e) => e ? "" : Ks, qs = (e) => `variant-${e}`, Js = f({
4005
+ `, Zr = (e) => e ? "" : Xr, _r = (e) => `variant-${e}`, es = f({
3746
4006
  name: "enable-editor",
3747
- components: { DynamicDiv: G },
4007
+ components: { DynamicDiv: Q },
3748
4008
  props: [
3749
4009
  "builderContextSignal",
3750
4010
  "canTrack",
@@ -3766,39 +4026,39 @@ font-weight: ${i};
3766
4026
  httpReqsData: {},
3767
4027
  httpReqsPending: {},
3768
4028
  clicked: !1,
3769
- builderContext: ie,
3770
- getWrapperClassName: qs
4029
+ builderContext: ce,
4030
+ getWrapperClassName: _r
3771
4031
  };
3772
4032
  },
3773
4033
  provide() {
3774
4034
  const e = this;
3775
4035
  return {
3776
- [ie.key]: e.builderContextSignal
4036
+ [ce.key]: e.builderContextSignal
3777
4037
  };
3778
4038
  },
3779
4039
  mounted() {
3780
4040
  (() => {
3781
4041
  var n, o;
3782
4042
  if (T()) {
3783
- if (I() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4043
+ if (R() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
3784
4044
  new CustomEvent("initeditingbldr")
3785
- ), this.builderContextSignal.content && z(this.canTrack)) {
3786
- const r = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, i = (o = this.builderContextSignal.content) == null ? void 0 : o.id, a = this.apiKey;
3787
- ce({
4045
+ ), this.builderContextSignal.content && G(this.canTrack)) {
4046
+ const s = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, i = (o = this.builderContextSignal.content) == null ? void 0 : o.id, l = this.apiKey;
4047
+ pe({
3788
4048
  type: "impression",
3789
4049
  canTrack: !0,
3790
4050
  contentId: i,
3791
- apiKey: a,
3792
- variationId: r !== i ? r : void 0
4051
+ apiKey: l,
4052
+ variationId: s !== i ? s : void 0
3793
4053
  });
3794
4054
  }
3795
- Cs() && !I() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4055
+ Pr() && !R() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
3796
4056
  new CustomEvent("initpreviewingbldr")
3797
4057
  );
3798
4058
  }
3799
4059
  })(), (() => {
3800
- this.apiKey || R.error(
3801
- "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4060
+ this.apiKey || E.error(
4061
+ "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3802
4062
  ), this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
3803
4063
  })();
3804
4064
  },
@@ -3898,7 +4158,7 @@ font-weight: ${i};
3898
4158
  this.builderContextSignal.rootSetState ? (o = (n = this.builderContextSignal).rootSetState) == null || o.call(n, t) : this.builderContextSignal.rootState = t;
3899
4159
  },
3900
4160
  mergeNewContent(e) {
3901
- var n, o, s, r, i;
4161
+ var n, o, r, s, i;
3902
4162
  const t = {
3903
4163
  ...this.builderContextSignal.content,
3904
4164
  ...e,
@@ -3909,27 +4169,27 @@ font-weight: ${i};
3909
4169
  meta: {
3910
4170
  ...(o = this.builderContextSignal.content) == null ? void 0 : o.meta,
3911
4171
  ...e == null ? void 0 : e.meta,
3912
- breakpoints: ((s = e == null ? void 0 : e.meta) == null ? void 0 : s.breakpoints) || ((i = (r = this.builderContextSignal.content) == null ? void 0 : r.meta) == null ? void 0 : i.breakpoints)
4172
+ breakpoints: ((r = e == null ? void 0 : e.meta) == null ? void 0 : r.breakpoints) || ((i = (s = this.builderContextSignal.content) == null ? void 0 : s.meta) == null ? void 0 : i.breakpoints)
3913
4173
  }
3914
4174
  };
3915
4175
  this.builderContextSignal.content = t;
3916
4176
  },
3917
4177
  processMessage(e) {
3918
- return lt({
4178
+ return dt({
3919
4179
  model: this.model,
3920
4180
  trustedHosts: this.trustedHosts,
3921
4181
  callbacks: {
3922
4182
  configureSdk: (t) => {
3923
- var s;
4183
+ var r;
3924
4184
  const { breakpoints: n, contentId: o } = t;
3925
- !o || o !== ((s = this.builderContextSignal.content) == null ? void 0 : s.id) || n && this.mergeNewContent({
4185
+ !o || o !== ((r = this.builderContextSignal.content) == null ? void 0 : r.id) || n && this.mergeNewContent({
3926
4186
  meta: {
3927
4187
  breakpoints: n
3928
4188
  }
3929
4189
  });
3930
4190
  },
3931
4191
  animation: (t) => {
3932
- Le(t);
4192
+ Me(t);
3933
4193
  },
3934
4194
  contentUpdate: (t) => {
3935
4195
  this.mergeNewContent(t);
@@ -3940,7 +4200,7 @@ font-weight: ${i};
3940
4200
  evaluateJsCode() {
3941
4201
  var t, n;
3942
4202
  const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
3943
- e && ee({
4203
+ e && te({
3944
4204
  code: e,
3945
4205
  context: this.context || {},
3946
4206
  localState: void 0,
@@ -3955,14 +4215,14 @@ font-weight: ${i};
3955
4215
  onClick(e) {
3956
4216
  var t, n;
3957
4217
  if (this.builderContextSignal.content) {
3958
- const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, s = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
3959
- ce({
4218
+ const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
4219
+ pe({
3960
4220
  type: "click",
3961
- canTrack: z(this.canTrack),
3962
- contentId: s,
4221
+ canTrack: G(this.canTrack),
4222
+ contentId: r,
3963
4223
  apiKey: this.apiKey,
3964
- variationId: o !== s ? o : void 0,
3965
- ...Fs(e),
4224
+ variationId: o !== r ? o : void 0,
4225
+ ...Hr(e),
3966
4226
  unique: !this.clicked
3967
4227
  });
3968
4228
  }
@@ -3971,15 +4231,15 @@ font-weight: ${i};
3971
4231
  runHttpRequests() {
3972
4232
  var t, n;
3973
4233
  const e = ((n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) ?? {};
3974
- Object.entries(e).forEach(([o, s]) => {
3975
- if (!s || this.httpReqsPending[o] || this.httpReqsData[o] && !I())
4234
+ Object.entries(e).forEach(([o, r]) => {
4235
+ if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !R())
3976
4236
  return;
3977
4237
  this.httpReqsPending[o] = !0;
3978
- const r = s.replace(
4238
+ const s = r.replace(
3979
4239
  /{{([^}]+)}}/g,
3980
- (i, a) => String(
3981
- ee({
3982
- code: a,
4240
+ (i, l) => String(
4241
+ te({
4242
+ code: l,
3983
4243
  context: this.context || {},
3984
4244
  localState: void 0,
3985
4245
  rootState: this.builderContextSignal.rootState,
@@ -3988,24 +4248,24 @@ font-weight: ${i};
3988
4248
  })
3989
4249
  )
3990
4250
  );
3991
- Ze(r).then((i) => i.json()).then((i) => {
4251
+ tt(s).then((i) => i.json()).then((i) => {
3992
4252
  this.mergeNewRootState({
3993
4253
  [o]: i
3994
4254
  }), this.httpReqsData[o] = !0;
3995
4255
  }).catch((i) => {
3996
- console.error("error fetching dynamic data", s, i);
4256
+ console.error("error fetching dynamic data", r, i);
3997
4257
  }).finally(() => {
3998
4258
  this.httpReqsPending[o] = !1;
3999
4259
  });
4000
4260
  });
4001
4261
  },
4002
4262
  emitStateUpdate() {
4003
- I() && window.dispatchEvent(
4263
+ R() && window.dispatchEvent(
4004
4264
  new CustomEvent(
4005
4265
  "builder:component:stateChange",
4006
4266
  {
4007
4267
  detail: {
4008
- state: q(this.builderContextSignal.rootState),
4268
+ state: Y(this.builderContextSignal.rootState),
4009
4269
  ref: {
4010
4270
  name: this.model
4011
4271
  }
@@ -4015,7 +4275,7 @@ font-weight: ${i};
4015
4275
  );
4016
4276
  },
4017
4277
  elementRef_onIniteditingbldr(e) {
4018
- window.addEventListener("message", this.processMessage), Ms(), at({
4278
+ window.addEventListener("message", this.processMessage), Jr(), ct({
4019
4279
  ...this.locale ? {
4020
4280
  locale: this.locale
4021
4281
  } : {},
@@ -4029,7 +4289,7 @@ font-weight: ${i};
4029
4289
  this.builderContextSignal.componentInfos
4030
4290
  ).forEach((t) => {
4031
4291
  var o;
4032
- const n = os(t);
4292
+ const n = dr(t);
4033
4293
  (o = window.parent) == null || o.postMessage(n, "*");
4034
4294
  }), window.addEventListener(
4035
4295
  "builder:component:stateChangeListenerActivated",
@@ -4039,79 +4299,79 @@ font-weight: ${i};
4039
4299
  elementRef_onInitpreviewingbldr(e) {
4040
4300
  const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
4041
4301
  `builder.preview.${n}`
4042
- ), s = t.get("apiKey") || t.get("builder.space");
4043
- n === this.model && s === this.apiKey && (!this.content || o === this.content.id) && be({
4302
+ ), r = t.get("apiKey") || t.get("builder.space");
4303
+ n === this.model && r === this.apiKey && (!this.content || o === this.content.id) && ke({
4044
4304
  model: this.model,
4045
4305
  apiKey: this.apiKey,
4046
4306
  apiVersion: this.builderContextSignal.apiVersion
4047
- }).then((r) => {
4048
- r && this.mergeNewContent(r);
4307
+ }).then((s) => {
4308
+ s && this.mergeNewContent(s);
4049
4309
  });
4050
4310
  }
4051
4311
  }
4052
4312
  });
4053
- function Gs(e, t, n, o, s, r) {
4054
- var i, a, l;
4055
- return e.builderContextSignal.content ? (u(), k(H(e.ContentWrapper), w({
4313
+ function ts(e, t, n, o, r, s) {
4314
+ var i, l, a;
4315
+ return e.builderContextSignal.content ? (d(), k(K(e.ContentWrapper), w({
4056
4316
  key: 0,
4057
4317
  ref: "elementRef",
4058
- onClick: (d) => e.onClick(d),
4318
+ onClick: (u) => e.onClick(u),
4059
4319
  "builder-content-id": (i = e.builderContextSignal.content) == null ? void 0 : i.id,
4060
4320
  "builder-model": e.model,
4061
- class: e.getWrapperClassName(((a = e.content) == null ? void 0 : a.testVariationId) || ((l = e.content) == null ? void 0 : l.id)),
4062
- onIniteditingbldr: (d) => e.elementRef_onIniteditingbldr(d),
4063
- onInitpreviewingbldr: (d) => e.elementRef_onInitpreviewingbldr(d)
4321
+ class: e.getWrapperClassName(((l = e.content) == null ? void 0 : l.testVariationId) || ((a = e.content) == null ? void 0 : a.id)),
4322
+ onIniteditingbldr: (u) => e.elementRef_onIniteditingbldr(u),
4323
+ onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
4064
4324
  }, { ...e.showContentProps, ...e.contentWrapperProps }), {
4065
- default: B(() => [
4325
+ default: V(() => [
4066
4326
  P(e.$slots, "default")
4067
4327
  ]),
4068
4328
  _: 3
4069
4329
  }, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : S("", !0);
4070
4330
  }
4071
- const Ys = /* @__PURE__ */ b(Js, [["render", Gs]]), Qs = f({
4331
+ const ns = /* @__PURE__ */ b(es, [["render", ts]]), os = f({
4072
4332
  name: "content-styles",
4073
- components: { InlinedStyles: me },
4333
+ components: { InlinedStyles: be },
4074
4334
  props: ["cssCode", "contentId", "customFonts", "isNestedRender"],
4075
4335
  data() {
4076
4336
  return {
4077
4337
  injectedStyles: `
4078
- ${js({
4338
+ ${Qr({
4079
4339
  cssCode: this.cssCode,
4080
4340
  contentId: this.contentId
4081
4341
  })}
4082
- ${Hs({
4342
+ ${Yr({
4083
4343
  customFonts: this.customFonts
4084
4344
  })}
4085
- ${zs(this.isNestedRender)}
4345
+ ${Zr(this.isNestedRender)}
4086
4346
  `.trim()
4087
4347
  };
4088
4348
  }
4089
4349
  });
4090
- function Xs(e, t, n, o, s, r) {
4091
- const i = y("inlined-styles");
4092
- return u(), k(i, {
4350
+ function rs(e, t, n, o, r, s) {
4351
+ const i = g("InlinedStyles");
4352
+ return d(), k(i, {
4093
4353
  id: "builderio-content",
4094
4354
  styles: e.injectedStyles
4095
4355
  }, null, 8, ["styles"]);
4096
4356
  }
4097
- const _s = /* @__PURE__ */ b(Qs, [["render", Xs]]), Zs = ({
4357
+ const ss = /* @__PURE__ */ b(os, [["render", rs]]), is = ({
4098
4358
  content: e,
4099
4359
  data: t,
4100
4360
  locale: n
4101
4361
  }) => {
4102
- var r, i, a;
4103
- const o = {}, s = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
4104
- return (a = (i = e == null ? void 0 : e.data) == null ? void 0 : i.inputs) == null || a.forEach((l) => {
4105
- l.name && l.defaultValue !== void 0 && (o[l.name] = l.defaultValue);
4362
+ var s, i, l;
4363
+ const o = {}, r = ((s = e == null ? void 0 : e.data) == null ? void 0 : s.state) || {};
4364
+ return (l = (i = e == null ? void 0 : e.data) == null ? void 0 : i.inputs) == null || l.forEach((a) => {
4365
+ a.name && a.defaultValue !== void 0 && (o[a.name] = a.defaultValue);
4106
4366
  }), {
4107
4367
  ...o,
4108
- ...s,
4368
+ ...r,
4109
4369
  ...t,
4110
4370
  ...n ? {
4111
4371
  locale: n
4112
4372
  } : {}
4113
4373
  };
4114
- }, er = ({
4374
+ }, as = ({
4115
4375
  content: e,
4116
4376
  data: t
4117
4377
  }) => e ? {
@@ -4121,14 +4381,14 @@ const _s = /* @__PURE__ */ b(Qs, [["render", Xs]]), Zs = ({
4121
4381
  ...t
4122
4382
  },
4123
4383
  meta: e == null ? void 0 : e.meta
4124
- } : void 0, tr = mt, nr = f({
4384
+ } : void 0, ls = ft, cs = f({
4125
4385
  name: "content-component",
4126
4386
  components: {
4127
- EnableEditor: Ys,
4128
- InlinedScript: _e,
4129
- ContentStyles: _s,
4130
- Blocks: J,
4131
- DynamicDiv: G
4387
+ EnableEditor: ns,
4388
+ InlinedScript: et,
4389
+ ContentStyles: ss,
4390
+ Blocks: M,
4391
+ DynamicDiv: Q
4132
4392
  },
4133
4393
  props: [
4134
4394
  "content",
@@ -4154,32 +4414,32 @@ const _s = /* @__PURE__ */ b(Qs, [["render", Xs]]), Zs = ({
4154
4414
  data() {
4155
4415
  var e, t;
4156
4416
  return {
4157
- scriptStr: ps({
4417
+ scriptStr: kr({
4158
4418
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4159
4419
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
4160
4420
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4161
4421
  contentId: (t = this.content) == null ? void 0 : t.id
4162
4422
  }),
4163
4423
  registeredComponents: [
4164
- ...ve(),
4424
+ ...we(),
4165
4425
  ...this.customComponents || []
4166
4426
  ].reduce(
4167
- (n, { component: o, ...s }) => ({
4427
+ (n, { component: o, ...r }) => ({
4168
4428
  ...n,
4169
- [s.name]: {
4170
- component: tr(o),
4171
- ...ae(s)
4429
+ [r.name]: {
4430
+ component: ls(o),
4431
+ ...de(r)
4172
4432
  }
4173
4433
  }),
4174
4434
  {}
4175
4435
  ),
4176
4436
  builderContextSignal: {
4177
- content: er({
4437
+ content: as({
4178
4438
  content: this.content,
4179
4439
  data: this.data
4180
4440
  }),
4181
4441
  localState: void 0,
4182
- rootState: Zs({
4442
+ rootState: is({
4183
4443
  content: this.content,
4184
4444
  data: this.data,
4185
4445
  locale: this.locale
@@ -4189,12 +4449,12 @@ const _s = /* @__PURE__ */ b(Qs, [["render", Xs]]), Zs = ({
4189
4449
  apiKey: this.apiKey,
4190
4450
  apiVersion: this.apiVersion,
4191
4451
  componentInfos: [
4192
- ...ve(),
4452
+ ...we(),
4193
4453
  ...this.customComponents || []
4194
4454
  ].reduce(
4195
- (n, { component: o, ...s }) => ({
4455
+ (n, { component: o, ...r }) => ({
4196
4456
  ...n,
4197
- [s.name]: ae(s)
4457
+ [r.name]: de(r)
4198
4458
  }),
4199
4459
  {}
4200
4460
  ),
@@ -4202,13 +4462,13 @@ const _s = /* @__PURE__ */ b(Qs, [["render", Xs]]), Zs = ({
4202
4462
  BlocksWrapper: this.blocksWrapper || "div",
4203
4463
  BlocksWrapperProps: this.blocksWrapperProps || {}
4204
4464
  },
4205
- TARGET: V
4465
+ TARGET: x
4206
4466
  };
4207
4467
  },
4208
4468
  provide() {
4209
4469
  const e = this;
4210
4470
  return {
4211
- [Pe.key]: {
4471
+ [Ae.key]: {
4212
4472
  registeredComponents: e.registeredComponents
4213
4473
  }
4214
4474
  };
@@ -4219,9 +4479,9 @@ const _s = /* @__PURE__ */ b(Qs, [["render", Xs]]), Zs = ({
4219
4479
  }
4220
4480
  }
4221
4481
  });
4222
- function or(e, t, n, o, s, r) {
4223
- const i = y("inlined-script"), a = y("content-styles"), l = y("blocks"), d = y("enable-editor");
4224
- return u(), k(d, w({
4482
+ function ds(e, t, n, o, r, s) {
4483
+ const i = g("InlinedScript"), l = g("ContentStyles"), a = g("Blocks"), u = g("EnableEditor");
4484
+ return d(), k(u, w({
4225
4485
  content: e.content,
4226
4486
  data: e.data,
4227
4487
  model: e.model,
@@ -4237,23 +4497,23 @@ function or(e, t, n, o, s, r) {
4237
4497
  linkComponent: e.linkComponent,
4238
4498
  trustedHosts: e.trustedHosts
4239
4499
  }, {}), {
4240
- default: B(() => {
4241
- var m, c, p, v, g, N, Y;
4500
+ default: V(() => {
4501
+ var h, c, p, v, y, F, X;
4242
4502
  return [
4243
- e.isSsrAbTest ? (u(), k(i, {
4503
+ e.isSsrAbTest ? (d(), k(i, {
4244
4504
  key: 0,
4245
4505
  id: "builderio-variant-visibility",
4246
4506
  scriptStr: e.scriptStr
4247
4507
  }, null, 8, ["scriptStr"])) : S("", !0),
4248
- e.TARGET !== "reactNative" ? (u(), k(a, {
4508
+ e.TARGET !== "reactNative" ? (d(), k(l, {
4249
4509
  key: 1,
4250
4510
  isNestedRender: e.isNestedRender,
4251
- contentId: (m = e.builderContextSignal.content) == null ? void 0 : m.id,
4511
+ contentId: (h = e.builderContextSignal.content) == null ? void 0 : h.id,
4252
4512
  cssCode: (p = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : p.cssCode,
4253
- customFonts: (g = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : g.customFonts
4513
+ customFonts: (y = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : y.customFonts
4254
4514
  }, null, 8, ["isNestedRender", "contentId", "cssCode", "customFonts"])) : S("", !0),
4255
- E(l, {
4256
- blocks: (Y = (N = e.builderContextSignal.content) == null ? void 0 : N.data) == null ? void 0 : Y.blocks,
4515
+ $(a, {
4516
+ blocks: (X = (F = e.builderContextSignal.content) == null ? void 0 : F.data) == null ? void 0 : X.blocks,
4257
4517
  context: e.builderContextSignal,
4258
4518
  registeredComponents: e.registeredComponents,
4259
4519
  linkComponent: e.linkComponent
@@ -4263,12 +4523,12 @@ function or(e, t, n, o, s, r) {
4263
4523
  _: 1
4264
4524
  }, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "linkComponent", "trustedHosts"]);
4265
4525
  }
4266
- const sr = /* @__PURE__ */ b(nr, [["render", or]]), rr = f({
4526
+ const us = /* @__PURE__ */ b(cs, [["render", ds]]), ps = f({
4267
4527
  name: "content-variants",
4268
4528
  components: {
4269
- InlinedScript: _e,
4270
- InlinedStyles: me,
4271
- ContentComponent: sr
4529
+ InlinedScript: et,
4530
+ InlinedStyles: be,
4531
+ ContentComponent: us
4272
4532
  },
4273
4533
  props: [
4274
4534
  "canTrack",
@@ -4291,13 +4551,13 @@ const sr = /* @__PURE__ */ b(nr, [["render", or]]), rr = f({
4291
4551
  ],
4292
4552
  data() {
4293
4553
  return {
4294
- shouldRenderVariants: ls({
4295
- canTrack: z(this.canTrack),
4554
+ shouldRenderVariants: fr({
4555
+ canTrack: G(this.canTrack),
4296
4556
  content: this.content
4297
4557
  }),
4298
- TARGET: V,
4299
- getInitVariantsFnsScriptString: ds,
4300
- getVariants: X
4558
+ TARGET: x,
4559
+ getInitVariantsFnsScriptString: gr,
4560
+ getVariants: _
4301
4561
  };
4302
4562
  },
4303
4563
  mounted() {
@@ -4305,8 +4565,8 @@ const sr = /* @__PURE__ */ b(nr, [["render", or]]), rr = f({
4305
4565
  computed: {
4306
4566
  updateCookieAndStylesScriptStr() {
4307
4567
  var e;
4308
- return us(
4309
- X(this.content).map((t) => ({
4568
+ return yr(
4569
+ _(this.content).map((t) => ({
4310
4570
  id: t.testVariationId,
4311
4571
  testRatio: t.testRatio
4312
4572
  })),
@@ -4314,41 +4574,41 @@ const sr = /* @__PURE__ */ b(nr, [["render", or]]), rr = f({
4314
4574
  );
4315
4575
  },
4316
4576
  hideVariantsStyleString() {
4317
- return X(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
4577
+ return _(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
4318
4578
  },
4319
4579
  defaultContent() {
4320
4580
  var e;
4321
4581
  return this.shouldRenderVariants ? {
4322
4582
  ...this.content,
4323
4583
  testVariationId: (e = this.content) == null ? void 0 : e.id
4324
- } : Fn({
4584
+ } : On({
4325
4585
  item: this.content,
4326
- canTrack: z(this.canTrack)
4586
+ canTrack: G(this.canTrack)
4327
4587
  });
4328
4588
  }
4329
4589
  }
4330
4590
  });
4331
- function ir(e, t, n, o, s, r) {
4332
- const i = y("inlined-script"), a = y("inlined-styles"), l = y("content-component");
4333
- return u(), h($, null, [
4334
- !e.isNestedRender && e.TARGET !== "reactNative" ? (u(), k(i, {
4591
+ function ms(e, t, n, o, r, s) {
4592
+ const i = g("InlinedScript"), l = g("InlinedStyles"), a = g("ContentComponent");
4593
+ return d(), m(I, null, [
4594
+ !e.isNestedRender && e.TARGET !== "reactNative" ? (d(), k(i, {
4335
4595
  key: 0,
4336
4596
  id: "builderio-init-variants-fns",
4337
4597
  scriptStr: e.getInitVariantsFnsScriptString()
4338
4598
  }, null, 8, ["scriptStr"])) : S("", !0),
4339
- e.shouldRenderVariants ? (u(), h($, { key: 1 }, [
4340
- E(a, {
4599
+ e.shouldRenderVariants ? (d(), m(I, { key: 1 }, [
4600
+ $(l, {
4341
4601
  id: "builderio-variants",
4342
4602
  styles: e.hideVariantsStyleString
4343
4603
  }, null, 8, ["styles"]),
4344
- E(i, {
4604
+ $(i, {
4345
4605
  id: "builderio-variants-visibility",
4346
4606
  scriptStr: e.updateCookieAndStylesScriptStr
4347
4607
  }, null, 8, ["scriptStr"]),
4348
- (u(!0), h($, null, O(e.getVariants(e.content), (d, m) => (u(), k(l, {
4349
- key: d.testVariationId,
4608
+ (d(!0), m(I, null, W(e.getVariants(e.content), (u, h) => (d(), k(a, {
4609
+ key: u.testVariationId,
4350
4610
  isNestedRender: e.isNestedRender,
4351
- content: d,
4611
+ content: u,
4352
4612
  showContent: !1,
4353
4613
  model: e.model,
4354
4614
  data: e.data,
@@ -4368,7 +4628,7 @@ function ir(e, t, n, o, s, r) {
4368
4628
  trustedHosts: e.trustedHosts
4369
4629
  }, null, 8, ["isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
4370
4630
  ], 64)) : S("", !0),
4371
- E(l, w({
4631
+ $(a, w({
4372
4632
  isNestedRender: e.isNestedRender,
4373
4633
  content: e.defaultContent,
4374
4634
  showContent: !0,
@@ -4393,13 +4653,13 @@ function ir(e, t, n, o, s, r) {
4393
4653
  }), null, 16, ["isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
4394
4654
  ], 64);
4395
4655
  }
4396
- const ar = /* @__PURE__ */ b(rr, [["render", ir]]), lr = async ({
4656
+ const hs = /* @__PURE__ */ b(ps, [["render", ms]]), fs = async ({
4397
4657
  builderContextValue: e,
4398
4658
  symbol: t
4399
4659
  }) => {
4400
4660
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4401
4661
  (e != null && e.apiKey))
4402
- return be({
4662
+ return ke({
4403
4663
  model: t.model,
4404
4664
  apiKey: e.apiKey,
4405
4665
  apiVersion: e.apiVersion,
@@ -4409,11 +4669,11 @@ const ar = /* @__PURE__ */ b(rr, [["render", ir]]), lr = async ({
4409
4669
  }
4410
4670
  }
4411
4671
  }).catch((n) => {
4412
- R.error("Could not fetch symbol content: ", n);
4672
+ E.error("Could not fetch symbol content: ", n);
4413
4673
  });
4414
- }, cr = f({
4674
+ }, bs = f({
4415
4675
  name: "builder-symbol",
4416
- components: { ContentVariants: ar, DynamicDiv: G },
4676
+ components: { ContentVariants: hs, DynamicDiv: Q },
4417
4677
  props: [
4418
4678
  "symbol",
4419
4679
  "attributes",
@@ -4425,7 +4685,7 @@ const ar = /* @__PURE__ */ b(rr, [["render", ir]]), lr = async ({
4425
4685
  ],
4426
4686
  data() {
4427
4687
  var e;
4428
- return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: W };
4688
+ return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: N };
4429
4689
  },
4430
4690
  mounted() {
4431
4691
  this.setContent();
@@ -4448,7 +4708,7 @@ const ar = /* @__PURE__ */ b(rr, [["render", ir]]), lr = async ({
4448
4708
  className() {
4449
4709
  var e, t;
4450
4710
  return [
4451
- this.attributes[Z()],
4711
+ this.attributes[ee()],
4452
4712
  "builder-symbol",
4453
4713
  (e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
4454
4714
  (t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
@@ -4462,7 +4722,7 @@ const ar = /* @__PURE__ */ b(rr, [["render", ir]]), lr = async ({
4462
4722
  },
4463
4723
  methods: {
4464
4724
  setContent() {
4465
- this.contentToUse || lr({
4725
+ this.contentToUse || fs({
4466
4726
  symbol: this.symbol,
4467
4727
  builderContextValue: this.builderContext
4468
4728
  }).then((e) => {
@@ -4471,23 +4731,23 @@ const ar = /* @__PURE__ */ b(rr, [["render", ir]]), lr = async ({
4471
4731
  }
4472
4732
  }
4473
4733
  });
4474
- function dr(e, t, n, o, s, r) {
4475
- var a, l, d, m, c;
4476
- const i = y("content-variants");
4477
- return u(), h("div", w({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4478
- E(i, {
4734
+ function gs(e, t, n, o, r, s) {
4735
+ var l, a, u, h, c;
4736
+ const i = g("ContentVariants");
4737
+ return d(), m("div", w({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4738
+ $(i, {
4479
4739
  isNestedRender: !0,
4480
4740
  apiVersion: e.builderContext.apiVersion,
4481
4741
  apiKey: e.builderContext.apiKey,
4482
4742
  context: {
4483
4743
  ...e.builderContext.context,
4484
- symbolId: (a = e.builderBlock) == null ? void 0 : a.id
4744
+ symbolId: (l = e.builderBlock) == null ? void 0 : l.id
4485
4745
  },
4486
4746
  customComponents: Object.values(e.builderComponents),
4487
4747
  data: {
4488
- ...(l = e.symbol) == null ? void 0 : l.data,
4748
+ ...(a = e.symbol) == null ? void 0 : a.data,
4489
4749
  ...e.builderContext.localState,
4490
- ...(m = (d = e.contentToUse) == null ? void 0 : d.data) == null ? void 0 : m.state
4750
+ ...(h = (u = e.contentToUse) == null ? void 0 : u.data) == null ? void 0 : h.state
4491
4751
  },
4492
4752
  model: (c = e.symbol) == null ? void 0 : c.model,
4493
4753
  content: e.contentToUse,
@@ -4497,20 +4757,20 @@ function dr(e, t, n, o, s, r) {
4497
4757
  }, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
4498
4758
  ], 16);
4499
4759
  }
4500
- const ur = /* @__PURE__ */ b(cr, [["render", dr]]), Re = {};
4501
- function Cr(e) {
4760
+ const ys = /* @__PURE__ */ b(bs, [["render", gs]]), Be = {};
4761
+ function Ps(e) {
4502
4762
  if (T()) {
4503
- Object.assign(Re, e);
4763
+ Object.assign(Be, e);
4504
4764
  const t = {
4505
4765
  type: "builder.settingsChange",
4506
- data: Re
4766
+ data: Be
4507
4767
  };
4508
4768
  parent.postMessage(t, "*");
4509
4769
  }
4510
4770
  }
4511
- const wr = async (e) => {
4512
- var o, s, r;
4513
- const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((s = e.userAttributes) == null ? void 0 : s.urlPath), n = {
4771
+ const Bs = async (e) => {
4772
+ var o, r, s;
4773
+ const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
4514
4774
  ...e,
4515
4775
  apiKey: e.apiKey,
4516
4776
  model: e.model || "page",
@@ -4520,52 +4780,52 @@ const wr = async (e) => {
4520
4780
  urlPath: t
4521
4781
  } : {}
4522
4782
  },
4523
- options: tt(e.searchParams || ((r = e.url) == null ? void 0 : r.searchParams) || e.options)
4783
+ options: ot(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
4524
4784
  };
4525
4785
  return {
4526
4786
  apiKey: n.apiKey,
4527
4787
  model: n.model,
4528
- content: await be(n)
4788
+ content: await ke(n)
4529
4789
  };
4530
4790
  };
4531
4791
  export {
4532
- vs as A,
4533
- pe as B,
4534
- pn as C,
4535
- Ss as D,
4536
- be as E,
4537
- fn as F,
4538
- fr as G,
4539
- yr as H,
4540
- wn as I,
4541
- In as S,
4542
- V as T,
4543
- ts as V,
4544
- me as _,
4792
+ Rr as A,
4793
+ fe as B,
4794
+ mn as C,
4795
+ Er as D,
4796
+ ke as E,
4797
+ bn as F,
4798
+ Cs as G,
4799
+ Is as H,
4800
+ Tn as I,
4801
+ Rn as S,
4802
+ x as T,
4803
+ lr as V,
4804
+ be as _,
4545
4805
  sn as a,
4546
- br as b,
4806
+ ws as b,
4547
4807
  U as c,
4548
- kr as d,
4549
- Fe as e,
4808
+ $s as d,
4809
+ he as e,
4550
4810
  b as f,
4551
- Ne as g,
4552
- ee as h,
4553
- gr as i,
4554
- Z as j,
4555
- ie as k,
4556
- vt as l,
4557
- ur as m,
4811
+ De as g,
4812
+ te as h,
4813
+ Ts as i,
4814
+ ee as j,
4815
+ ce as k,
4816
+ Ct as l,
4817
+ ys as m,
4558
4818
  so as n,
4559
- J as o,
4560
- ar as p,
4561
- I as q,
4562
- Cs as r,
4563
- os as s,
4564
- Ls as t,
4565
- Cr as u,
4566
- tt as v,
4567
- tr as w,
4568
- vr as x,
4569
- Sr as y,
4570
- wr as z
4819
+ M as o,
4820
+ hs as p,
4821
+ R as q,
4822
+ Pr as r,
4823
+ dr as s,
4824
+ zr as t,
4825
+ Ps as u,
4826
+ ot as v,
4827
+ ls as w,
4828
+ Rs as x,
4829
+ Es as y,
4830
+ Bs as z
4571
4831
  };