@builder.io/sdk-vue 1.0.26 → 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 (121) hide show
  1. package/lib/browser/{block-styles-SuD_yhea.js → block-styles-7fSdcHZX.js} +16 -14
  2. package/lib/browser/{block-styles-let8Rhzk.cjs → block-styles-XehbqIDj.cjs} +1 -1
  3. package/lib/browser/{block-wrapper-RudvKrHB.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-dxP-HKxF.js → component-ref-WhzAplFn.js} +5 -5
  21. package/lib/browser/{component-ref-1YUrmxmi.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-o_B_U15Z.js → get-block-properties-ObL3gpIA.js} +1 -1
  30. package/lib/browser/{get-block-properties-YufAWX1_.cjs → get-block-properties-vA5n_ANC.cjs} +1 -1
  31. package/lib/browser/helpers/flatten.d.ts +10 -0
  32. package/lib/browser/index-CBcGD3qe.cjs +166 -0
  33. package/lib/browser/{index-ai-IaN6e.js → index-NHNyRHHd.js} +1226 -959
  34. package/lib/browser/index.cjs +1 -1
  35. package/lib/browser/{index.js → index.mjs} +1 -1
  36. package/lib/browser/{repeated-block-8ZYb0CgR.js → repeated-block-HcLgTzGb.js} +5 -5
  37. package/lib/browser/{repeated-block-PEOUpaCW.cjs → repeated-block-uHDnqrOR.cjs} +1 -1
  38. package/lib/browser/style.css +1 -1
  39. package/lib/{node/block-styles-REhu2k86.js → edge/block-styles-CTZ1DlUz.js} +16 -14
  40. package/lib/edge/{block-styles-FTQsSIJG.cjs → block-styles-XGW5hqiN.cjs} +1 -1
  41. package/lib/edge/block-wrapper-VuYzlW7Y.cjs +1 -0
  42. package/lib/edge/{block-wrapper-AfWYrz3V.js → block-wrapper-wCNxDQcs.js} +6 -6
  43. package/lib/edge/blocks/accordion/accordion.types.d.ts +12 -0
  44. package/lib/edge/blocks/accordion/accordion.vue.d.ts +43 -0
  45. package/lib/edge/blocks/accordion/component-info.d.ts +2 -0
  46. package/lib/edge/blocks/accordion/helpers.d.ts +1 -0
  47. package/lib/edge/blocks/accordion/index.d.ts +1 -0
  48. package/lib/edge/blocks/button/button.vue.d.ts +3 -3
  49. package/lib/edge/blocks/columns/columns.vue.d.ts +3 -3
  50. package/lib/edge/blocks/form/form/form.vue.d.ts +3 -3
  51. package/lib/edge/blocks/form/input/input.vue.d.ts +3 -3
  52. package/lib/edge/blocks/form/select/select.vue.d.ts +3 -3
  53. package/lib/edge/blocks/img/img.vue.d.ts +3 -3
  54. package/lib/edge/blocks/section/section.vue.d.ts +3 -3
  55. package/lib/edge/blocks/symbol/symbol.vue.d.ts +3 -3
  56. package/lib/edge/blocks/tabs/tabs.vue.d.ts +4 -4
  57. package/lib/edge/blocks/video/video.vue.d.ts +3 -3
  58. package/lib/{node/component-ref-Iye3LDnP.cjs → edge/component-ref-0UjIkTRe.cjs} +1 -1
  59. package/lib/{node/component-ref-OWsrXBr1.js → edge/component-ref-2FEXrlDH.js} +5 -5
  60. package/lib/edge/components/block/animator.d.ts +0 -1
  61. package/lib/edge/components/content/content.vue.d.ts +3 -3
  62. package/lib/edge/components/content-variants/content-variants.types.d.ts +1 -1
  63. package/lib/edge/components/content-variants/content-variants.vue.d.ts +3 -3
  64. package/lib/edge/components/dynamic-renderer/dynamic-renderer.vue.d.ts +3 -3
  65. package/lib/edge/constants/sdk-version.d.ts +1 -1
  66. package/lib/edge/functions/camel-to-kebab-case.d.ts +1 -1
  67. package/lib/{node/get-block-properties-CY4DQbyG.js → edge/get-block-properties-KMc2VX03.js} +1 -1
  68. package/lib/edge/{get-block-properties-nUfSEh8A.cjs → get-block-properties-Pjvc5UeX.cjs} +1 -1
  69. package/lib/edge/helpers/flatten.d.ts +10 -0
  70. package/lib/edge/{index-OnAzQ3ND.js → index-PLoH3kq6.js} +1706 -1439
  71. package/lib/edge/index-Zh1Fu4x5.cjs +186 -0
  72. package/lib/edge/index.cjs +1 -1
  73. package/lib/edge/{index.js → index.mjs} +1 -1
  74. package/lib/edge/{repeated-block-9b5CPsPv.js → repeated-block-JMXC448R.js} +5 -5
  75. package/lib/edge/{repeated-block-4ixCSVr5.cjs → repeated-block-bl4dw-ee.cjs} +1 -1
  76. package/lib/edge/style.css +1 -1
  77. package/lib/{edge/block-styles-axfNX-fb.js → node/block-styles-WCFA1FJi.js} +16 -14
  78. package/lib/node/{block-styles-yeJ_u7cL.cjs → block-styles-m8PEpg_S.cjs} +1 -1
  79. package/lib/node/block-wrapper-6-bEK6RJ.cjs +1 -0
  80. package/lib/node/{block-wrapper-w5xUhyXo.js → block-wrapper-x45MAliP.js} +6 -6
  81. package/lib/node/blocks/accordion/accordion.types.d.ts +12 -0
  82. package/lib/node/blocks/accordion/accordion.vue.d.ts +43 -0
  83. package/lib/node/blocks/accordion/component-info.d.ts +2 -0
  84. package/lib/node/blocks/accordion/helpers.d.ts +1 -0
  85. package/lib/node/blocks/accordion/index.d.ts +1 -0
  86. package/lib/node/blocks/button/button.vue.d.ts +3 -3
  87. package/lib/node/blocks/columns/columns.vue.d.ts +3 -3
  88. package/lib/node/blocks/form/form/form.vue.d.ts +3 -3
  89. package/lib/node/blocks/form/input/input.vue.d.ts +3 -3
  90. package/lib/node/blocks/form/select/select.vue.d.ts +3 -3
  91. package/lib/node/blocks/img/img.vue.d.ts +3 -3
  92. package/lib/node/blocks/section/section.vue.d.ts +3 -3
  93. package/lib/node/blocks/symbol/symbol.vue.d.ts +3 -3
  94. package/lib/node/blocks/tabs/tabs.vue.d.ts +4 -4
  95. package/lib/node/blocks/video/video.vue.d.ts +3 -3
  96. package/lib/{edge/component-ref-yAeEkKjC.cjs → node/component-ref-2xD3cUVB.cjs} +1 -1
  97. package/lib/{edge/component-ref-MqAJ4Cz0.js → node/component-ref-ppTIcqTZ.js} +5 -5
  98. package/lib/node/components/block/animator.d.ts +0 -1
  99. package/lib/node/components/content/content.vue.d.ts +3 -3
  100. package/lib/node/components/content-variants/content-variants.types.d.ts +1 -1
  101. package/lib/node/components/content-variants/content-variants.vue.d.ts +3 -3
  102. package/lib/node/components/dynamic-renderer/dynamic-renderer.vue.d.ts +3 -3
  103. package/lib/node/constants/sdk-version.d.ts +1 -1
  104. package/lib/node/functions/camel-to-kebab-case.d.ts +1 -1
  105. package/lib/node/{get-block-properties-iGEkRig7.cjs → get-block-properties-kiD2Uguw.cjs} +1 -1
  106. package/lib/{edge/get-block-properties-mh8kotIB.js → node/get-block-properties-scJ1QT5R.js} +1 -1
  107. package/lib/node/helpers/flatten.d.ts +10 -0
  108. package/lib/node/index-HEAc1-ZF.cjs +213 -0
  109. package/lib/node/{index-iHu51wZr.js → index-SBrRKKYe.js} +483 -216
  110. package/lib/node/index.cjs +1 -1
  111. package/lib/node/{index.js → index.mjs} +1 -1
  112. package/lib/node/{repeated-block-iBS3dbbu.cjs → repeated-block-NLULJLm9.cjs} +1 -1
  113. package/lib/node/{repeated-block-qX5c7KTy.js → repeated-block-NuJ5uVX7.js} +5 -5
  114. package/lib/node/style.css +1 -1
  115. package/package.json +17 -17
  116. package/lib/browser/block-wrapper-zzKCO9bp.cjs +0 -1
  117. package/lib/browser/index-4eR1NNNI.cjs +0 -166
  118. package/lib/edge/block-wrapper-hAiH9AX-.cjs +0 -1
  119. package/lib/edge/index-hoW3Tjqe.cjs +0 -186
  120. package/lib/node/block-wrapper-ikudgCJL.cjs +0 -1
  121. package/lib/node/index-yy49S2Om.cjs +0 -213
@@ -1,51 +1,51 @@
1
- var ct = Object.defineProperty;
2
- var dt = (e, t, n) => t in e ? ct(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var oe = (e, t, n) => (dt(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 ut, toDisplayString as ne, defineAsyncComponent as D, createVNode as E, renderList as O, createCommentVNode as S, h as Ee, createElementVNode as Z, normalizeStyle as K, normalizeClass as de, markRaw as pt } from "vue";
6
- const mt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ht = (e) => typeof e == "string" && mt.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 ft = f({
17
+ const yt = f({
18
18
  name: "dynamic-renderer",
19
19
  props: ["TagName", "attributes", "actionAttributes"],
20
20
  data() {
21
- return { isEmptyElement: ht };
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 bt(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(ft, [["render", bt]]), hr = /* @__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", ee = () => {
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(ft, [["render", bt]]), hr = /* @__PURE__ */ Object.
57
57
  case "angular":
58
58
  return "class";
59
59
  }
60
- }, gt = 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,12 +68,12 @@ const ue = /* @__PURE__ */ b(ft, [["render", bt]]), hr = /* @__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),
76
+ ...N(this.attributes, "v-on:", !1),
77
77
  [ee()]: `${this.link ? "" : "builder-button"} ${this.attributes[ee()] || ""}`,
78
78
  ...this.link ? {
79
79
  href: this.link,
@@ -86,20 +86,20 @@ const ue = /* @__PURE__ */ b(ft, [["render", bt]]), hr = /* @__PURE__ */ Object.
86
86
  }
87
87
  }
88
88
  });
89
- function yt(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
- ut(ne(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 kt = /* @__PURE__ */ b(gt, [["render", yt]]), vt = Symbol(), ae = {
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 kt = /* @__PURE__ */ b(gt, [["render", yt]]), vt = Symbol(), ae = {
114
114
  BlocksWrapper: "div",
115
115
  BlocksWrapperProps: {}
116
116
  },
117
- key: vt
118
- }, St = Symbol(), Pe = {
117
+ key: wt
118
+ }, Tt = Symbol(), Ae = {
119
119
  Components: { registeredComponents: {} },
120
- key: St
120
+ key: Tt
121
121
  };
122
- function Ct(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 Ct(e) {
130
130
  builderBlock: e
131
131
  };
132
132
  }
133
- const _ = "[Builder.io]: ", R = {
134
- log: (...e) => console.log(_, ...e),
135
- error: (...e) => console.error(_, ...e),
136
- warn: (...e) => console.warn(_, ...e),
137
- debug: (...e) => console.debug(_, ...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 wt = (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 ? wt(e) : e, Ve = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
148
- function Tt() {
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 Tt() && // 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 $t = () => {
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
- }, It = () => typeof navigator == "object" && navigator.userAgent || "", Ae = () => {
162
- const e = It(), 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 $t = () => {
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 = $t();
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
- }, Rt = ({
187
+ }, Bt = ({
188
188
  builder: e,
189
189
  context: t,
190
190
  event: n,
@@ -196,71 +196,71 @@ const $t = () => {
196
196
  builder: e,
197
197
  context: t,
198
198
  event: n
199
- }), Et = () => ({
200
- isEditing: I(),
199
+ }), xt = () => ({
200
+ isEditing: R(),
201
201
  isBrowser: T(),
202
202
  isServer: !T(),
203
- getUserAttributes: () => Ae()
204
- }), Pt = (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 = Rt({
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
  }
252
252
  const U = (e) => e != null;
253
- function xt() {
253
+ 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 Vt = () => {
257
+ const Wt = () => {
258
258
  var o;
259
- if (!xt())
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
- }, At = (e) => (T() || Vt(), 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,
@@ -285,232 +285,232 @@ function te({
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: Pt(e, {
295
+ const a = {
296
+ code: At(e, {
297
297
  isExpression: i
298
298
  }),
299
- builder: Et(),
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 = At(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 Bt = ({
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 = te({
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 ? Bt({
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 Wt(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 Nt(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
- Ot(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 = Ft(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 Ft(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 Ot(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 = Wt(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 Ut = (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 `${Ut(n)}: ${o};`;
481
- }).filter(U), Lt = (e) => Me(e).join(`
482
- `), fr = ({
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
486
486
  }) => {
487
487
  const o = `.${t} {
488
- ${Lt(n)}
488
+ ${Mt(n)}
489
489
  }`;
490
490
  return e ? `${e} {
491
491
  ${o}
492
492
  }` : o;
493
493
  };
494
- function Mt({
494
+ function jt({
495
495
  style: e
496
496
  }) {
497
497
  return e;
498
498
  }
499
- const br = ({
499
+ const Ts = ({
500
500
  block: e,
501
501
  context: t
502
- }) => De(Mt({
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":
@@ -518,29 +518,29 @@ function De(e) {
518
518
  return e;
519
519
  }
520
520
  }
521
- const Dt = ({
521
+ const Ht = ({
522
522
  block: e,
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
- }, Ht = ({
543
+ }, Kt = ({
544
544
  block: e,
545
545
  context: t
546
546
  }) => {
@@ -550,7 +550,7 @@ const Dt = ({
550
550
  } = e;
551
551
  if (!(n != null && n.collection))
552
552
  return;
553
- const s = te({
553
+ const r = te({
554
554
  code: n.collection,
555
555
  localState: t.localState,
556
556
  rootState: t.rootState,
@@ -558,60 +558,60 @@ const Dt = ({
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
- }, jt = (e) => e && (e.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), Kt = (e) => e && (e.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), zt = () => import("./block-styles-SuD_yhea.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
- }), qt = () => import("./block-wrapper-RudvKrHB.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
- }), Jt = () => import("./component-ref-dxP-HKxF.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
- }), Gt = () => import("./repeated-block-8ZYb0CgR.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
- }), Yt = () => Promise.resolve().then(() => ln).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
- }), _t = f({
602
+ }), Zt = f({
603
603
  name: "block",
604
604
  components: {
605
- BlockStyles: D(zt),
606
- ComponentRef: D(Jt),
607
- RepeatedBlock: D(Gt),
608
- BlockWrapper: D(qt),
609
- DynamicDiv: D(Yt)
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 && Nt(
614
+ t && e && Dt(
615
615
  t.map((n) => ({
616
616
  ...n,
617
617
  elementId: e
@@ -620,21 +620,21 @@ const Dt = ({
620
620
  },
621
621
  computed: {
622
622
  blockComponent() {
623
- return Dt({
623
+ return Ht({
624
624
  block: this.block,
625
625
  context: this.context,
626
626
  registeredComponents: this.registeredComponents
627
627
  });
628
628
  },
629
629
  repeatItem() {
630
- return Ht({
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,12 +664,12 @@ const Dt = ({
664
664
  blockChildren: this.processedBlock.children ?? [],
665
665
  componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
666
666
  componentOptions: {
667
- ...Ct(this.processedBlock),
667
+ ...It(this.processedBlock),
668
668
  builderContext: this.context,
669
- ...jt(this.blockComponent) ? {
669
+ ...qt(this.blockComponent) ? {
670
670
  builderLinkComponent: this.linkComponent
671
671
  } : {},
672
- ...Kt(this.blockComponent) ? {
672
+ ...zt(this.blockComponent) ? {
673
673
  builderComponents: this.registeredComponents
674
674
  } : {}
675
675
  },
@@ -683,15 +683,15 @@ const Dt = ({
683
683
  }
684
684
  }
685
685
  });
686
- function Qt(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 Qt(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 Qt(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 Qt(e, t, n, o, s, r) {
741
741
  ], 64))
742
742
  ], 64)) : S("", !0);
743
743
  }
744
- const pe = /* @__PURE__ */ b(_t, [["render", Qt]]), gr = /* @__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" })), Xt = 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(_t, [["render", Qt]]), gr = /* @__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(_t, [["render", Qt]]), gr = /* @__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(_t, [["render", Qt]]), gr = /* @__PURE__ */ Object.
789
789
  }
790
790
  }
791
791
  });
792
- function Zt(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 Zt(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 en = /* @__PURE__ */ b(Xt, [["render", Zt], ["__scopeId", "data-v-a5b13ef9"]]), tn = f({
808
+ const nn = /* @__PURE__ */ b(en, [["render", tn], ["__scopeId", "data-v-f091a4a7"]]), on = f({
809
809
  name: "builder-blocks",
810
- components: { BlocksWrapper: en, Block: pe },
810
+ components: { BlocksWrapper: nn, Block: fe },
811
811
  props: [
812
812
  "blocks",
813
813
  "parent",
@@ -818,25 +818,25 @@ const en = /* @__PURE__ */ b(Xt, [["render", Zt], ["__scopeId", "data-v-a5b13ef9
818
818
  "registeredComponents"
819
819
  ],
820
820
  inject: {
821
- builderContext: ae.key,
822
- componentsContext: Pe.key
821
+ builderContext: ce.key,
822
+ componentsContext: Ae.key
823
823
  }
824
824
  });
825
- function nn(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 nn(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(tn, [["render", nn]]), 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(tn, [["render", nn]]), me = f({
870
870
  default: 991,
871
871
  max: 1200
872
872
  }
873
- }, yr = (e, t = He) => `@media (max-width: ${t[e].max}px)`, on = ({
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(tn, [["render", nn]]), 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
- }, sn = (e) => `builder-columns ${e}-breakpoints`, rn = f({
899
+ }, an = (e) => `builder-columns ${e}-breakpoints`, ln = f({
900
900
  name: "dynamic-div",
901
901
  props: []
902
902
  });
903
- function an(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(rn, [["render", an]]), ln = /* @__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" })), cn = 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(rn, [["render", an]]), ln = /* @__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: sn
935
+ TARGET: x,
936
+ getColumnsClass: an
937
937
  };
938
938
  },
939
939
  methods: {
@@ -970,7 +970,7 @@ const G = /* @__PURE__ */ b(rn, [["render", an]]), ln = /* @__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,26 +980,26 @@ const G = /* @__PURE__ */ b(rn, [["render", an]]), ln = /* @__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
  };
999
999
  },
1000
1000
  getWidthForBreakpointSize(e) {
1001
1001
  var n, o;
1002
- return on(
1002
+ return sn(
1003
1003
  ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
1004
1004
  )[e].max;
1005
1005
  },
@@ -1036,31 +1036,31 @@ const G = /* @__PURE__ */ b(rn, [["render", an]]), ln = /* @__PURE__ */ Object.f
1036
1036
  href: e.link
1037
1037
  } : {},
1038
1038
  [ee()]: "builder-column",
1039
- style: De(this.columnCssVars(t))
1039
+ style: He(this.columnCssVars(t))
1040
1040
  };
1041
1041
  }
1042
1042
  }
1043
1043
  });
1044
- function dn(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 dn(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 un = /* @__PURE__ */ b(cn, [["render", dn], ["__scopeId", "data-v-4878b55f"]]), pn = 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 mn(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 hn = /* @__PURE__ */ b(pn, [["render", mn]]);
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 fn(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 bn(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 se(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) => `${fn(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) => [bn(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 gn = f({
1119
+ const kn = f({
1120
1120
  name: "builder-image",
1121
1121
  props: [
1122
1122
  "image",
@@ -1142,10 +1142,10 @@ const gn = 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"), se(t);
1145
+ return console.debug("Removed given srcset"), re(t);
1146
1146
  } else if (this.image && !this.srcset)
1147
- return se(t);
1148
- return se(t);
1147
+ return re(t);
1148
+ return re(t);
1149
1149
  },
1150
1150
  webpSrcSet() {
1151
1151
  var e;
@@ -1162,58 +1162,58 @@ const gn = f({
1162
1162
  return this.aspectRatio ? e : void 0;
1163
1163
  }
1164
1164
  }
1165
- }), yn = ["srcset"], kn = ["alt", "role", "src", "srcset", "sizes"], vn = {
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 Sn(e, t, n, o, s, r) {
1170
- var i, a, l, d, m, c;
1171
- return u(), h($, null, [
1172
- Z("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, yn)) : S("", !0),
1178
- Z("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
- }, null, 14, kn)
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", vn, [
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 Cn = /* @__PURE__ */ b(gn, [["render", Sn], ["__scopeId", "data-v-5dee860d"]]), wn = 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 Tn(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 Tn(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 $n = /* @__PURE__ */ b(wn, [["render", Tn]]), In = (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 $n = /* @__PURE__ */ b(wn, [["render", Tn]]), In = (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), Rn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(U).join("; "), En = [["secure", ""], ["SameSite", "None"]], Pn = ({
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) ? En : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...r, ["path", "/"], ["domain", In(window.location.hostname)], ...s];
1255
- return Rn(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 $n = /* @__PURE__ */ b(wn, [["render", Tn]]), In = (e) => {
1262
1262
  try {
1263
1263
  if (!o)
1264
1264
  return;
1265
- const s = Pn({
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
- }, xn = "builder.tests", he = (e) => `${xn}.${e}`, Vn = ({
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
- }), An = ({
1279
+ }), Wn = ({
1280
1280
  contentId: e
1281
- }) => je({
1282
- name: he(e),
1281
+ }) => qe({
1282
+ name: ge(e),
1283
1283
  canTrack: !0
1284
- }), Bn = ({
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, Wn = ({
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 = Wn(e);
1306
- return Bn({
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 $n = /* @__PURE__ */ b(wn, [["render", Tn]]), In = (e) => {
1323
1323
  testVariationId: n.id,
1324
1324
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
1325
1325
  };
1326
- }, Nn = ({
1326
+ }, On = ({
1327
1327
  item: e,
1328
1328
  canTrack: t
1329
1329
  }) => {
@@ -1331,14 +1331,14 @@ const $n = /* @__PURE__ */ b(wn, [["render", Tn]]), In = (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 = An({
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 $n = /* @__PURE__ */ b(wn, [["render", Tn]]), In = (e) => {
1346
1346
  ...e,
1347
1347
  ...o
1348
1348
  };
1349
- }, Fn = 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
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, On = {
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: {
@@ -1398,7 +1398,7 @@ const $n = /* @__PURE__ */ b(wn, [["render", Tn]]), In = (e) => {
1398
1398
  }],
1399
1399
  static: !0,
1400
1400
  noWrap: !0
1401
- }, Un = {
1401
+ }, Ln = {
1402
1402
  // TODO: ways to statically preprocess JSON for references, functions, etc
1403
1403
  name: "Columns",
1404
1404
  isRSC: !0,
@@ -1577,7 +1577,7 @@ const $n = /* @__PURE__ */ b(wn, [["render", Tn]]), In = (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",
@@ -1599,13 +1599,13 @@ const $n = /* @__PURE__ */ b(wn, [["render", Tn]]), In = (e) => {
1599
1599
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1600
1600
  advanced: !0
1601
1601
  }]
1602
- }, Ln = {
1602
+ }, Mn = {
1603
1603
  name: "Fragment",
1604
1604
  static: !0,
1605
1605
  hidden: !0,
1606
1606
  canHaveChildren: !0,
1607
1607
  noWrap: !0
1608
- }, Mn = {
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 $n = /* @__PURE__ */ b(wn, [["render", Tn]]), In = (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
  }, {
@@ -1705,7 +1705,7 @@ const $n = /* @__PURE__ */ b(wn, [["render", Tn]]), In = (e) => {
1705
1705
  advanced: !0,
1706
1706
  defaultValue: 0.7041
1707
1707
  }]
1708
- }, Dn = {
1708
+ }, Hn = {
1709
1709
  name: "Core:Section",
1710
1710
  static: !0,
1711
1711
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1744,7 +1744,7 @@ const $n = /* @__PURE__ */ b(wn, [["render", Tn]]), In = (e) => {
1744
1744
  }
1745
1745
  }
1746
1746
  }]
1747
- }, Hn = {
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 $n = /* @__PURE__ */ b(wn, [["render", Tn]]), In = (e) => {
1757
1757
  required: !0,
1758
1758
  defaultValue: "children"
1759
1759
  }]
1760
- }, jn = 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 Kn(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 zn = /* @__PURE__ */ b(jn, [["render", Kn]]), qn = {
1784
+ const Jn = /* @__PURE__ */ b(qn, [["render", zn]]), Gn = {
1785
1785
  name: "Symbol",
1786
1786
  noWrap: !0,
1787
1787
  static: !0,
@@ -1814,7 +1814,7 @@ const zn = /* @__PURE__ */ b(jn, [["render", Kn]]), qn = {
1814
1814
  hideFromUI: !0,
1815
1815
  type: "boolean"
1816
1816
  }]
1817
- }, re = {
1817
+ }, se = {
1818
1818
  "@type": "@builder.io/sdk:Element",
1819
1819
  responsiveStyles: {
1820
1820
  large: {
@@ -1852,7 +1852,7 @@ const zn = /* @__PURE__ */ b(jn, [["render", Kn]]), qn = {
1852
1852
  text: "New tab content "
1853
1853
  }
1854
1854
  }
1855
- }, Jn = {
1855
+ }, Yn = {
1856
1856
  name: "Builder: Tabs",
1857
1857
  inputs: [{
1858
1858
  name: "tabs",
@@ -1862,7 +1862,7 @@ const zn = /* @__PURE__ */ b(jn, [["render", Kn]]), qn = {
1862
1862
  name: "label",
1863
1863
  type: "uiBlocks",
1864
1864
  hideFromUI: !0,
1865
- defaultValue: [re]
1865
+ defaultValue: [se]
1866
1866
  }, {
1867
1867
  name: "content",
1868
1868
  type: "uiBlocks",
@@ -1871,7 +1871,7 @@ const zn = /* @__PURE__ */ b(jn, [["render", Kn]]), qn = {
1871
1871
  }],
1872
1872
  defaultValue: [{
1873
1873
  label: [{
1874
- ...re,
1874
+ ...se,
1875
1875
  component: {
1876
1876
  name: "Text",
1877
1877
  options: {
@@ -1890,7 +1890,7 @@ const zn = /* @__PURE__ */ b(jn, [["render", Kn]]), qn = {
1890
1890
  }]
1891
1891
  }, {
1892
1892
  label: [{
1893
- ...re,
1893
+ ...se,
1894
1894
  component: {
1895
1895
  name: "Text",
1896
1896
  options: {
@@ -1949,15 +1949,15 @@ const zn = /* @__PURE__ */ b(jn, [["render", Kn]]), qn = {
1949
1949
  value: "flex-end"
1950
1950
  }]
1951
1951
  }]
1952
- }, Gn = 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 zn = /* @__PURE__ */ b(jn, [["render", Kn]]), qn = {
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
- }), Yn = ["onClick"], _n = { key: 0 };
1978
- function Qn(e, t, n, o, s, r) {
1979
- const i = y("blocks");
1980
- return u(), h("div", null, [
1981
- Z("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, Yn))), 128))
2006
+ ], 14, Xn))), 128))
2007
2007
  ], 4),
2008
- e.activeTabContent(e.activeTab) ? (u(), h("div", _n, [
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 Qn(e, t, n, o, s, r) {
2017
2017
  ])) : S("", !0)
2018
2018
  ]);
2019
2019
  }
2020
- const Xn = /* @__PURE__ */ b(Gn, [["render", Qn]]), Zn = {
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 Xn = /* @__PURE__ */ b(Gn, [["render", Qn]]), Zn = {
2035
2035
  height: "auto",
2036
2036
  textAlign: "center"
2037
2037
  }
2038
- }, eo = f({
2038
+ }, no = f({
2039
2039
  name: "builder-text",
2040
2040
  props: ["text"]
2041
- }), to = ["innerHTML"];
2042
- function no(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, to);
2050
+ }, null, 8, oo);
2051
+ }
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);
2051
2190
  }
2052
- const oo = /* @__PURE__ */ b(eo, [["render", no]]), so = {
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 oo = /* @__PURE__ */ b(eo, [["render", no]]), so = {
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
- }, ro = f({
2331
+ }, ho = f({
2075
2332
  name: "builder-custom-code",
2076
2333
  props: ["replaceNodes", "code"],
2077
2334
  data() {
@@ -2088,8 +2345,8 @@ const oo = /* @__PURE__ */ b(eo, [["render", no]]), so = {
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 oo = /* @__PURE__ */ b(eo, [["render", no]]), so = {
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
- }), io = ["innerHTML"];
2109
- function ao(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, io);
2371
+ }, null, 10, fo);
2115
2372
  }
2116
- const lo = /* @__PURE__ */ b(ro, [["render", ao]]), co = {
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 lo = /* @__PURE__ */ b(ro, [["render", ao]]), co = {
2138
2395
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2139
2396
  hideFromUI: !0
2140
2397
  }]
2141
- }, uo = ["text/javascript", "application/javascript", "application/ecmascript"], po = (e) => uo.includes(e.type), mo = 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 lo = /* @__PURE__ */ b(ro, [["render", ao]]), co = {
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 (po(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 lo = /* @__PURE__ */ b(ro, [["render", ao]]), co = {
2180
2437
  }
2181
2438
  }
2182
2439
  }
2183
- }), ho = ["innerHTML"];
2184
- function fo(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, ho);
2446
+ }, null, 8, Co);
2190
2447
  }
2191
- const bo = /* @__PURE__ */ b(mo, [["render", fo]]), go = {
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 bo = /* @__PURE__ */ b(mo, [["render", fo]]), go = {
2419
2676
  }
2420
2677
  }
2421
2678
  }]
2422
- }, yo = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], ko = () => {
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 yo.includes(e) ? e : "production";
2425
- }, vo = (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
- }, So = 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 bo = /* @__PURE__ */ b(mo, [["render", fo]]), go = {
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 bo = /* @__PURE__ */ b(mo, [["render", fo]]), go = {
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 bo = /* @__PURE__ */ b(mo, [["render", fo]]), go = {
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 bo = /* @__PURE__ */ b(mo, [["render", fo]]), go = {
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 bo = /* @__PURE__ */ b(mo, [["render", fo]]), go = {
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 = `${ko() === "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 bo = /* @__PURE__ */ b(mo, [["render", fo]]), go = {
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 = vo(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 bo = /* @__PURE__ */ b(mo, [["render", fo]]), go = {
2586
2843
  }
2587
2844
  }
2588
2845
  }
2589
- }), Co = ["validate", "action", "method", "name"], wo = {
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 To(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", wo, ne(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, Co);
2887
+ ], 16, Bo);
2631
2888
  }
2632
- const $o = /* @__PURE__ */ b(So, [["render", To], ["__scopeId", "data-v-1573388b"]]), Io = {
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 $o = /* @__PURE__ */ b(So, [["render", To], ["__scopeId", "data-v-1573388b
2680
2937
  borderStyle: "solid",
2681
2938
  borderColor: "#ccc"
2682
2939
  }
2683
- }, Ro = f({
2940
+ }, No = f({
2684
2941
  name: "builder-form-input-component",
2685
2942
  props: [
2686
2943
  "attributes",
@@ -2692,11 +2949,11 @@ const $o = /* @__PURE__ */ b(So, [["render", To], ["__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
- }), Eo = ["placeholder", "type", "name", "value", "defaultValue", "required"];
2698
- function Po(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 Po(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, Eo);
2964
+ }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Fo);
2708
2965
  }
2709
- const xo = /* @__PURE__ */ b(Ro, [["render", Po]]), Vo = {
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 xo = /* @__PURE__ */ b(Ro, [["render", Po]]), Vo = {
2748
3005
  }],
2749
3006
  static: !0,
2750
3007
  noWrap: !0
2751
- }, Ao = 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
- }), Bo = ["value", "defaultValue", "name"], Wo = ["value"];
2758
- function No(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
- }, ne(i.name || i.value), 9, Wo))), 128))
2769
- ], 16, Bo);
3025
+ }, ne(i.name || i.value), 9, jo))), 128))
3026
+ ], 16, Mo);
2770
3027
  }
2771
- const Fo = /* @__PURE__ */ b(Ao, [["render", No]]), Oo = {
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 Fo = /* @__PURE__ */ b(Ao, [["render", No]]), Oo = {
2793
3050
  // that only shows if advanced setting is flipped
2794
3051
  // TODO: defaultChildren
2795
3052
  // canHaveChildren: true,
2796
- }, Uo = 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 Lo(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)), ne(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 Mo = /* @__PURE__ */ b(Uo, [["render", Lo]]), Do = {
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 Mo = /* @__PURE__ */ b(Uo, [["render", Lo]]), Do = {
2817
3074
  }],
2818
3075
  noWrap: !0,
2819
3076
  static: !0
2820
- }, Ho = f({
3077
+ }, Qo = f({
2821
3078
  name: "builder-img-component",
2822
3079
  props: [
2823
3080
  "backgroundSize",
@@ -2828,11 +3085,11 @@ const Mo = /* @__PURE__ */ b(Uo, [["render", Lo]]), Do = {
2828
3085
  "attributes"
2829
3086
  ],
2830
3087
  data() {
2831
- return { isEditing: I, filterAttrs: W };
3088
+ return { isEditing: R, filterAttrs: N };
2832
3089
  }
2833
- }), jo = ["alt", "src"];
2834
- function Ko(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 Ko(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, jo);
3100
+ }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Xo);
2844
3101
  }
2845
- const zo = /* @__PURE__ */ b(Ho, [["render", Ko]]), qo = {
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 zo = /* @__PURE__ */ b(Ho, [["render", Ko]]), qo = {
2923
3180
  defaultValue: !0,
2924
3181
  advanced: !0
2925
3182
  }]
2926
- }, Jo = f({
3183
+ }, tr = f({
2927
3184
  name: "builder-video",
2928
3185
  props: [
2929
3186
  "autoPlay",
@@ -2968,16 +3225,16 @@ const zo = /* @__PURE__ */ b(Ho, [["render", Ko]]), qo = {
2968
3225
  };
2969
3226
  }
2970
3227
  }
2971
- }), Go = { style: {
3228
+ }), nr = { style: {
2972
3229
  position: "relative"
2973
- } }, Yo = ["preload", "src", "poster"], _o = ["src"], Qo = {
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
- }, Xo = {
3237
+ }, ir = {
2981
3238
  key: 2,
2982
3239
  style: {
2983
3240
  pointerEvents: "none",
@@ -2991,10 +3248,10 @@ const zo = /* @__PURE__ */ b(Ho, [["render", Ko]]), qo = {
2991
3248
  height: "100%"
2992
3249
  }
2993
3250
  };
2994
- function Zo(e, t, n, o, s, r) {
2995
- var i, a, l, d, m, c, p;
2996
- return u(), h("div", Go, [
2997
- Z("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 Zo(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, _o))
3022
- ], 16, Yo),
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", Qo, [
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", Xo, [
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 es = /* @__PURE__ */ b(Jo, [["render", Zo]]), ts = () => [{
3041
- component: lo,
3042
- ...so
3297
+ const lr = /* @__PURE__ */ b(tr, [["render", ar]]), cr = () => [{
3298
+ component: go,
3299
+ ...mo
3043
3300
  }, {
3044
- component: bo,
3045
- ...co
3301
+ component: To,
3302
+ ...yo
3046
3303
  }, {
3047
- component: $o,
3048
- ...go
3049
- }, {
3050
- component: xo,
3304
+ component: Vo,
3051
3305
  ...Io
3052
3306
  }, {
3053
- component: Mo,
3054
- ...Oo
3307
+ component: Do,
3308
+ ...Wo
3055
3309
  }, {
3056
- component: Fo,
3057
- ...Vo
3310
+ component: Go,
3311
+ ...qo
3058
3312
  }, {
3059
- component: zo,
3060
- ...Do
3313
+ component: Ko,
3314
+ ...Uo
3061
3315
  }, {
3062
- component: es,
3063
- ...qo
3064
- }], ve = () => [{
3065
- component: kt,
3066
- ...On
3316
+ component: _o,
3317
+ ...Yo
3067
3318
  }, {
3068
- component: un,
3319
+ component: lr,
3320
+ ...er
3321
+ }], we = () => [{
3322
+ component: Ct,
3069
3323
  ...Un
3070
3324
  }, {
3071
- component: hn,
3325
+ component: mn,
3072
3326
  ...Ln
3073
3327
  }, {
3074
- component: Cn,
3328
+ component: bn,
3075
3329
  ...Mn
3076
3330
  }, {
3077
- component: $n,
3078
- ...Dn
3331
+ component: Tn,
3332
+ ...jn
3079
3333
  }, {
3080
- component: zn,
3334
+ component: Rn,
3081
3335
  ...Hn
3082
3336
  }, {
3083
- component: dr,
3084
- ...qn
3337
+ component: Jn,
3338
+ ...Kn
3085
3339
  }, {
3086
- component: oo,
3087
- ...Zn
3340
+ component: ys,
3341
+ ...Gn
3088
3342
  }, {
3089
- component: Xn,
3090
- ...Jn
3091
- }, ...ts()], ns = (e) => ({
3343
+ component: so,
3344
+ ...to
3345
+ }, {
3346
+ component: eo,
3347
+ ...Yn
3348
+ }, {
3349
+ component: uo,
3350
+ ...po
3351
+ }, ...cr()], dr = (e) => ({
3092
3352
  type: "builder.registerComponent",
3093
- data: le(e)
3094
- }), os = (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
- }, ss = (e) => typeof e == "function" ? os(e) : q(e), le = ({
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]: ss(r)
3364
+ [r]: pr(s)
3105
3365
  }), {}))
3106
- }), rs = `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 es = /* @__PURE__ */ b(Jo, [["render", Zo]]), ts = () => [{
3159
3419
  }).join('');
3160
3420
  styleEl.innerHTML = newStyleStr;
3161
3421
  }
3162
- }`, is = `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 es = /* @__PURE__ */ b(Jo, [["render", Zo]]), ts = () => [{
3193
3453
  thisScriptEl?.remove();
3194
3454
  }
3195
3455
  return;
3196
- }`, Ye = "builderIoAbTest", _e = "builderIoRenderContent", Q = (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
- })), as = ({
3460
+ })), fr = ({
3201
3461
  canTrack: e,
3202
3462
  content: t
3203
- }) => !(!(Q(t).length > 0) || !e), ls = (e) => e === "react" || e === "reactNative", Qe = ls(V), cs = () => `
3204
- window.${Ye} = ${rs}
3205
- window.${_e} = ${is}
3206
- `, ds = (e, t) => `
3207
- window.${Ye}(
3208
- "${t}",${JSON.stringify(e)}, ${Qe}
3209
- )`, us = ({
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.${_e}(
3213
- "${t}", "${e}", ${Qe}
3214
- )`, Xe = 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,214 +3481,221 @@ const es = /* @__PURE__ */ b(Jo, [["render", Zo]]), ts = () => [{
3221
3481
  name: "inlined-script",
3222
3482
  props: ["scriptStr", "id"]
3223
3483
  });
3224
- function ps() {
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 ms() {
3228
- const e = ps().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 = ms();
3235
- function X(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
- ...X(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
- const hs = "v3", Se = "builder.", fs = "options.", et = (e) => {
3507
+ function nt(e, t, n = {}) {
3508
+ for (const o in e) {
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;
3511
+ }
3512
+ return n;
3513
+ }
3514
+ const Cr = "v3", Te = "builder.", wr = "options.", ot = (e) => {
3248
3515
  if (!e)
3249
3516
  return {};
3250
- const t = xe(e), n = {};
3517
+ const t = Ve(e), n = {};
3251
3518
  return Object.keys(t).forEach((o) => {
3252
- if (o.startsWith(Se)) {
3253
- const s = o.replace(Se, "").replace(fs, "");
3254
- n[s] = t[o];
3519
+ if (o.startsWith(Te)) {
3520
+ const r = o.replace(Te, "").replace(wr, "");
3521
+ n[r] = t[o];
3255
3522
  }
3256
3523
  }), n;
3257
- }, bs = () => {
3524
+ }, Tr = () => {
3258
3525
  if (!T())
3259
3526
  return {};
3260
3527
  const e = new URLSearchParams(window.location.search);
3261
- return et(e);
3262
- }, 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) => {
3263
3530
  const {
3264
3531
  limit: t = 30,
3265
3532
  userAttributes: n,
3266
3533
  query: o,
3267
- model: s,
3268
- apiKey: r,
3534
+ model: r,
3535
+ apiKey: s,
3269
3536
  enrich: i,
3270
- locale: a,
3271
- apiVersion: l = hs,
3272
- fields: d,
3273
- omit: m,
3537
+ locale: l,
3538
+ apiVersion: a = Cr,
3539
+ fields: u,
3540
+ omit: h,
3274
3541
  offset: c,
3275
3542
  cacheSeconds: p,
3276
3543
  staleCacheSeconds: v,
3277
- sort: g,
3278
- includeUnpublished: N
3544
+ sort: y,
3545
+ includeUnpublished: F
3279
3546
  } = e;
3280
- if (!r)
3547
+ if (!s)
3281
3548
  throw new Error("Missing API key");
3282
- if (!["v3"].includes(l))
3283
- throw new Error(`Invalid apiVersion: expected 'v3', received '${l}'`);
3284
- const Y = t !== 1, C = new URL(`https://cdn.builder.io/api/${l}/content/${s}`);
3285
- 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) {
3286
- const F = X({
3287
- 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
3288
3555
  });
3289
- for (const M in F)
3290
- C.searchParams.set(M, JSON.stringify(F[M]));
3556
+ for (const j in O)
3557
+ C.searchParams.set(j, JSON.stringify(O[j]));
3291
3558
  }
3292
- const lt = {
3293
- ...bs(),
3294
- ...xe(e.options || {})
3295
- }, ge = X(lt);
3296
- for (const F in ge)
3297
- 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]));
3298
3565
  if (n && C.searchParams.set("userAttributes", JSON.stringify(n)), o) {
3299
- const F = X({
3566
+ const O = nt({
3300
3567
  query: o
3301
3568
  });
3302
- for (const M in F)
3303
- C.searchParams.set(M, JSON.stringify(F[M]));
3569
+ for (const j in O)
3570
+ C.searchParams.set(j, JSON.stringify(O[j]));
3304
3571
  }
3305
3572
  return C;
3306
- }, gs = (e) => "results" in e;
3307
- async function be(e) {
3308
- const t = await vs({
3573
+ }, Ir = (e) => "results" in e;
3574
+ async function ke(e) {
3575
+ const t = await Er({
3309
3576
  ...e,
3310
3577
  limit: 1
3311
3578
  });
3312
3579
  return t && t[0] || null;
3313
3580
  }
3314
- const ys = async (e) => {
3315
- const t = fe(e);
3316
- return await (await (e.fetch ?? Ze)(t.href, e.fetchOptions)).json();
3317
- }, ks = async (e, t, n = fe(e)) => {
3318
- const o = z(e.canTrack);
3319
- 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"))
3320
3587
  return t.results;
3321
3588
  try {
3322
- const s = [];
3323
- for (const r of t.results)
3324
- s.push(await Fn({
3325
- item: r,
3589
+ const r = [];
3590
+ for (const s of t.results)
3591
+ r.push(await Dn({
3592
+ item: s,
3326
3593
  canTrack: o
3327
3594
  }));
3328
- t.results = s;
3329
- } catch (s) {
3330
- 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);
3331
3598
  }
3332
3599
  return t.results;
3333
3600
  };
3334
- async function vs(e) {
3601
+ async function Er(e) {
3335
3602
  try {
3336
- const t = fe(e), n = await ys(e);
3337
- return gs(n) ? ks(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. ", {
3338
3605
  url: t,
3339
3606
  content: n,
3340
3607
  options: e
3341
3608
  }), null);
3342
3609
  } catch (t) {
3343
- return R.error("Error fetching data. ", t), null;
3610
+ return E.error("Error fetching data. ", t), null;
3344
3611
  }
3345
3612
  }
3346
- function Ss(e) {
3613
+ function Pr(e) {
3347
3614
  const t = e || (T() ? window.location.search : void 0);
3348
- return t ? Ve(t).indexOf("builder.preview=") !== -1 : !1;
3615
+ return t ? We(t).indexOf("builder.preview=") !== -1 : !1;
3349
3616
  }
3350
- function Cs() {
3617
+ function Br() {
3351
3618
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
3352
3619
  const t = Math.random() * 16 | 0;
3353
3620
  return (e == "x" ? t : t & 3 | 8).toString(16);
3354
3621
  });
3355
3622
  }
3356
- function tt() {
3357
- return Cs().replace(/-/g, "");
3623
+ function rt() {
3624
+ return Br().replace(/-/g, "");
3358
3625
  }
3359
- const nt = "builderSessionId", ws = async ({
3626
+ const st = "builderSessionId", xr = async ({
3360
3627
  canTrack: e
3361
3628
  }) => {
3362
3629
  if (!e)
3363
3630
  return;
3364
- const t = await Ke({
3365
- name: nt,
3631
+ const t = await ze({
3632
+ name: st,
3366
3633
  canTrack: e
3367
3634
  });
3368
3635
  if (U(t))
3369
3636
  return t;
3370
3637
  {
3371
- const n = Ts();
3372
- return $s({
3638
+ const n = Ar();
3639
+ return Vr({
3373
3640
  id: n,
3374
3641
  canTrack: e
3375
3642
  }), n;
3376
3643
  }
3377
- }, Ts = () => tt(), $s = ({
3644
+ }, Ar = () => rt(), Vr = ({
3378
3645
  id: e,
3379
3646
  canTrack: t
3380
- }) => ze({
3381
- name: nt,
3647
+ }) => Je({
3648
+ name: st,
3382
3649
  value: e,
3383
3650
  canTrack: t
3384
- }), ot = () => T() && typeof localStorage < "u" ? localStorage : void 0, Is = ({
3651
+ }), it = () => T() && typeof localStorage < "u" ? localStorage : void 0, Wr = ({
3385
3652
  key: e,
3386
3653
  canTrack: t
3387
3654
  }) => {
3388
3655
  var n;
3389
3656
  try {
3390
- return t ? (n = ot()) == null ? void 0 : n.getItem(e) : void 0;
3657
+ return t ? (n = it()) == null ? void 0 : n.getItem(e) : void 0;
3391
3658
  } catch (o) {
3392
3659
  console.debug("[LocalStorage] GET error: ", o);
3393
3660
  return;
3394
3661
  }
3395
- }, Rs = ({
3662
+ }, Nr = ({
3396
3663
  key: e,
3397
3664
  canTrack: t,
3398
3665
  value: n
3399
3666
  }) => {
3400
3667
  var o;
3401
3668
  try {
3402
- t && ((o = ot()) == null || o.setItem(e, n));
3403
- } catch (s) {
3404
- 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);
3405
3672
  }
3406
- }, st = "builderVisitorId", Es = ({
3673
+ }, at = "builderVisitorId", Fr = ({
3407
3674
  canTrack: e
3408
3675
  }) => {
3409
3676
  if (!e)
3410
3677
  return;
3411
- const t = Is({
3412
- key: st,
3678
+ const t = Wr({
3679
+ key: at,
3413
3680
  canTrack: e
3414
3681
  });
3415
3682
  if (U(t))
3416
3683
  return t;
3417
3684
  {
3418
- const n = Ps();
3419
- return xs({
3685
+ const n = Or();
3686
+ return Dr({
3420
3687
  id: n,
3421
3688
  canTrack: e
3422
3689
  }), n;
3423
3690
  }
3424
- }, Ps = () => tt(), xs = ({
3691
+ }, Or = () => rt(), Dr = ({
3425
3692
  id: e,
3426
3693
  canTrack: t
3427
- }) => Rs({
3428
- key: st,
3694
+ }) => Nr({
3695
+ key: at,
3429
3696
  value: e,
3430
3697
  canTrack: t
3431
- }), Vs = async ({
3698
+ }), Ur = async ({
3432
3699
  canTrack: e
3433
3700
  }) => {
3434
3701
  if (!e)
@@ -3436,46 +3703,46 @@ const nt = "builderSessionId", ws = async ({
3436
3703
  visitorId: void 0,
3437
3704
  sessionId: void 0
3438
3705
  };
3439
- const t = await ws({
3706
+ const t = await xr({
3440
3707
  canTrack: e
3441
- }), n = Es({
3708
+ }), n = Fr({
3442
3709
  canTrack: e
3443
3710
  });
3444
3711
  return {
3445
3712
  sessionId: t,
3446
3713
  visitorId: n
3447
3714
  };
3448
- }, As = async ({
3715
+ }, Lr = async ({
3449
3716
  type: e,
3450
3717
  canTrack: t,
3451
3718
  apiKey: n,
3452
3719
  metadata: o,
3453
- ...s
3720
+ ...r
3454
3721
  }) => ({
3455
3722
  type: e,
3456
3723
  data: {
3457
- ...s,
3724
+ ...r,
3458
3725
  metadata: {
3459
3726
  url: location.href,
3460
3727
  ...o
3461
3728
  },
3462
- ...await Vs({
3729
+ ...await Ur({
3463
3730
  canTrack: t
3464
3731
  }),
3465
- userAttributes: Ae(),
3732
+ userAttributes: Ne(),
3466
3733
  ownerId: n
3467
3734
  }
3468
3735
  });
3469
- async function ce(e) {
3736
+ async function pe(e) {
3470
3737
  if (!e.apiKey) {
3471
- 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.");
3472
3739
  return;
3473
3740
  }
3474
- if (e.canTrack && !I() && (T() || V === "reactNative"))
3741
+ if (e.canTrack && !R() && (T() || x === "reactNative"))
3475
3742
  return fetch("https://cdn.builder.io/api/v1/track", {
3476
3743
  method: "POST",
3477
3744
  body: JSON.stringify({
3478
- events: [await As(e)]
3745
+ events: [await Lr(e)]
3479
3746
  }),
3480
3747
  headers: {
3481
3748
  "content-type": "application/json"
@@ -3485,14 +3752,14 @@ async function ce(e) {
3485
3752
  console.error("Failed to track: ", t);
3486
3753
  });
3487
3754
  }
3488
- const kr = (e) => ce({
3755
+ const Rs = (e) => pe({
3489
3756
  ...e,
3490
3757
  canTrack: !0
3491
3758
  });
3492
- function we(e) {
3759
+ function $e(e) {
3493
3760
  return Math.round(e * 1e3) / 1e3;
3494
3761
  }
3495
- const Bs = (e, t, n = !0) => {
3762
+ const Mr = (e, t, n = !0) => {
3496
3763
  if (!(e instanceof HTMLElement))
3497
3764
  return null;
3498
3765
  let o = n ? e : e.parentElement;
@@ -3503,43 +3770,43 @@ const Bs = (e, t, n = !0) => {
3503
3770
  return o;
3504
3771
  } while (o = o.parentElement);
3505
3772
  return null;
3506
- }, Ws = (e) => Bs(e, (t) => {
3773
+ }, jr = (e) => Mr(e, (t) => {
3507
3774
  const n = t.getAttribute("builder-id") || t.id;
3508
3775
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3509
- }), Te = ({
3776
+ }), Re = ({
3510
3777
  event: e,
3511
3778
  target: t
3512
3779
  }) => {
3513
- 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);
3514
3781
  return {
3515
- x: r,
3782
+ x: s,
3516
3783
  y: i
3517
3784
  };
3518
- }, Ns = (e) => {
3519
- const t = e.target, n = t && Ws(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);
3520
3787
  return {
3521
3788
  targetBuilderElement: o || void 0,
3522
3789
  metadata: {
3523
- targetOffset: t ? Te({
3790
+ targetOffset: t ? Re({
3524
3791
  event: e,
3525
3792
  target: t
3526
3793
  }) : void 0,
3527
- builderTargetOffset: n ? Te({
3794
+ builderTargetOffset: n ? Re({
3528
3795
  event: e,
3529
3796
  target: n
3530
3797
  }) : void 0,
3531
3798
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
3532
3799
  }
3533
3800
  };
3534
- }, Fs = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
3535
- function rt(e, t) {
3801
+ }, Kr = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
3802
+ function lt(e, t) {
3536
3803
  const n = new URL(t.origin), o = n.hostname;
3537
- return (e || Fs).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;
3538
3805
  }
3539
- const Os = "1.0.26", $e = {};
3540
- function Us(e, t) {
3541
- let n = $e[e];
3542
- 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()) {
3543
3810
  const o = {
3544
3811
  type: "builder.register",
3545
3812
  data: {
@@ -3549,13 +3816,13 @@ function Us(e, t) {
3549
3816
  };
3550
3817
  try {
3551
3818
  parent.postMessage(o, "*"), parent !== window && window.postMessage(o, "*");
3552
- } catch (s) {
3553
- console.debug("Could not postmessage", s);
3819
+ } catch (r) {
3820
+ console.debug("Could not postmessage", r);
3554
3821
  }
3555
3822
  }
3556
3823
  }
3557
- const Ls = () => {
3558
- Us("insertMenu", {
3824
+ const Jr = () => {
3825
+ zr("insertMenu", {
3559
3826
  name: "_default",
3560
3827
  default: !0,
3561
3828
  items: [{
@@ -3577,14 +3844,14 @@ const Ls = () => {
3577
3844
  }]
3578
3845
  });
3579
3846
  };
3580
- let Ie = !1;
3581
- const it = (e = {}) => {
3847
+ let Pe = !1;
3848
+ const ct = (e = {}) => {
3582
3849
  var t, n;
3583
- Ie || (Ie = !0, T() && ((t = window.parent) == null || t.postMessage({
3850
+ Pe || (Pe = !0, T() && ((t = window.parent) == null || t.postMessage({
3584
3851
  type: "builder.sdkInfo",
3585
3852
  data: {
3586
- target: V,
3587
- version: Os,
3853
+ target: x,
3854
+ version: qr,
3588
3855
  supportsPatchUpdates: !1,
3589
3856
  // Supports builder-model="..." attribute which is needed to
3590
3857
  // scope our '+ add block' button styling
@@ -3597,34 +3864,34 @@ const it = (e = {}) => {
3597
3864
  options: e
3598
3865
  }
3599
3866
  }, "*"), window.addEventListener("message", (o) => {
3600
- var r, i;
3601
- if (!rt(e.trustedHosts, o))
3867
+ var s, i;
3868
+ if (!lt(e.trustedHosts, o))
3602
3869
  return;
3603
3870
  const {
3604
- data: s
3871
+ data: r
3605
3872
  } = o;
3606
- if (s != null && s.type)
3607
- switch (s.type) {
3873
+ if (r != null && r.type)
3874
+ switch (r.type) {
3608
3875
  case "builder.evaluate": {
3609
- 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);
3610
3877
  let c, p = null;
3611
3878
  try {
3612
- c = m.apply(null, l);
3879
+ c = h.apply(null, a);
3613
3880
  } catch (v) {
3614
3881
  p = v;
3615
3882
  }
3616
- p ? (r = window.parent) == null || r.postMessage({
3883
+ p ? (s = window.parent) == null || s.postMessage({
3617
3884
  type: "builder.evaluateError",
3618
3885
  data: {
3619
- id: d,
3886
+ id: u,
3620
3887
  error: p.message
3621
3888
  }
3622
3889
  }, "*") : c && typeof c.then == "function" ? c.then((v) => {
3623
- var g;
3624
- (g = window.parent) == null || g.postMessage({
3890
+ var y;
3891
+ (y = window.parent) == null || y.postMessage({
3625
3892
  type: "builder.evaluateResult",
3626
3893
  data: {
3627
- id: d,
3894
+ id: u,
3628
3895
  result: v
3629
3896
  }
3630
3897
  }, "*");
@@ -3632,45 +3899,45 @@ const it = (e = {}) => {
3632
3899
  type: "builder.evaluateResult",
3633
3900
  data: {
3634
3901
  result: c,
3635
- id: d
3902
+ id: u
3636
3903
  }
3637
3904
  }, "*");
3638
3905
  break;
3639
3906
  }
3640
3907
  }
3641
3908
  })));
3642
- }, at = ({
3909
+ }, dt = ({
3643
3910
  model: e,
3644
3911
  trustedHosts: t,
3645
3912
  callbacks: n
3646
3913
  }) => (o) => {
3647
- if (!rt(t, o))
3914
+ if (!lt(t, o))
3648
3915
  return;
3649
3916
  const {
3650
- data: s
3917
+ data: r
3651
3918
  } = o;
3652
- if (s)
3653
- switch (s.type) {
3919
+ if (r)
3920
+ switch (r.type) {
3654
3921
  case "builder.configureSdk": {
3655
- n.configureSdk(s.data);
3922
+ n.configureSdk(r.data);
3656
3923
  break;
3657
3924
  }
3658
3925
  case "builder.triggerAnimation": {
3659
- n.animation(s.data);
3926
+ n.animation(r.data);
3660
3927
  break;
3661
3928
  }
3662
3929
  case "builder.contentUpdate": {
3663
- const r = s.data, i = r.key || r.alias || r.entry || r.modelName, a = r.data;
3664
- 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);
3665
3932
  break;
3666
3933
  }
3667
3934
  }
3668
- }, vr = (e, t, n) => {
3935
+ }, Es = (e, t, n) => {
3669
3936
  if (!T)
3670
- 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."), () => {
3671
3938
  };
3672
- it();
3673
- const o = at({
3939
+ ct();
3940
+ const o = dt({
3674
3941
  callbacks: {
3675
3942
  contentUpdate: t,
3676
3943
  animation: () => {
@@ -3684,11 +3951,11 @@ const it = (e = {}) => {
3684
3951
  return window.addEventListener("message", o), () => {
3685
3952
  window.removeEventListener("message", o);
3686
3953
  };
3687
- }, Ms = (e) => {
3688
- var r;
3689
- 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);
3690
- let s = "";
3691
- 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 += `
3692
3959
  @font-face {
3693
3960
  font-family: "${t}";
3694
3961
  src: local("${n}"), url('${o}') format('woff2');
@@ -3699,26 +3966,26 @@ font-weight: 400;
3699
3966
  for (const i in e.files) {
3700
3967
  if (!(String(Number(i)) === i))
3701
3968
  continue;
3702
- const l = e.files[i];
3703
- l && l !== o && (s += `
3969
+ const a = e.files[i];
3970
+ a && a !== o && (r += `
3704
3971
  @font-face {
3705
3972
  font-family: "${t}";
3706
- src: url('${l}') format('woff2');
3973
+ src: url('${a}') format('woff2');
3707
3974
  font-display: fallback;
3708
3975
  font-weight: ${i};
3709
3976
  }
3710
3977
  `.trim());
3711
3978
  }
3712
- return s;
3713
- }, Ds = ({
3979
+ return r;
3980
+ }, Yr = ({
3714
3981
  customFonts: e
3715
3982
  }) => {
3716
3983
  var t;
3717
- return ((t = e == null ? void 0 : e.map((n) => Ms(n))) == null ? void 0 : t.join(" ")) || "";
3718
- }, Hs = ({
3984
+ return ((t = e == null ? void 0 : e.map((n) => Gr(n))) == null ? void 0 : t.join(" ")) || "";
3985
+ }, Qr = ({
3719
3986
  cssCode: e,
3720
3987
  contentId: t
3721
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", js = `
3988
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Xr = `
3722
3989
  .builder-button {
3723
3990
  all: unset;
3724
3991
  }
@@ -3735,9 +4002,9 @@ font-weight: ${i};
3735
4002
  text-align: inherit;
3736
4003
  font-family: inherit;
3737
4004
  }
3738
- `, Ks = (e) => e ? "" : js, zs = (e) => `variant-${e}`, qs = f({
4005
+ `, Zr = (e) => e ? "" : Xr, _r = (e) => `variant-${e}`, es = f({
3739
4006
  name: "enable-editor",
3740
- components: { DynamicDiv: G },
4007
+ components: { DynamicDiv: Q },
3741
4008
  props: [
3742
4009
  "builderContextSignal",
3743
4010
  "canTrack",
@@ -3759,39 +4026,39 @@ font-weight: ${i};
3759
4026
  httpReqsData: {},
3760
4027
  httpReqsPending: {},
3761
4028
  clicked: !1,
3762
- builderContext: ae,
3763
- getWrapperClassName: zs
4029
+ builderContext: ce,
4030
+ getWrapperClassName: _r
3764
4031
  };
3765
4032
  },
3766
4033
  provide() {
3767
4034
  const e = this;
3768
4035
  return {
3769
- [ae.key]: e.builderContextSignal
4036
+ [ce.key]: e.builderContextSignal
3770
4037
  };
3771
4038
  },
3772
4039
  mounted() {
3773
4040
  (() => {
3774
4041
  var n, o;
3775
4042
  if (T()) {
3776
- if (I() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4043
+ if (R() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
3777
4044
  new CustomEvent("initeditingbldr")
3778
- ), this.builderContextSignal.content && z(this.canTrack)) {
3779
- const r = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, i = (o = this.builderContextSignal.content) == null ? void 0 : o.id, a = this.apiKey;
3780
- 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({
3781
4048
  type: "impression",
3782
4049
  canTrack: !0,
3783
4050
  contentId: i,
3784
- apiKey: a,
3785
- variationId: r !== i ? r : void 0
4051
+ apiKey: l,
4052
+ variationId: s !== i ? s : void 0
3786
4053
  });
3787
4054
  }
3788
- Ss() && !I() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4055
+ Pr() && !R() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
3789
4056
  new CustomEvent("initpreviewingbldr")
3790
4057
  );
3791
4058
  }
3792
4059
  })(), (() => {
3793
- this.apiKey || R.error(
3794
- "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."
3795
4062
  ), this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
3796
4063
  })();
3797
4064
  },
@@ -3891,7 +4158,7 @@ font-weight: ${i};
3891
4158
  this.builderContextSignal.rootSetState ? (o = (n = this.builderContextSignal).rootSetState) == null || o.call(n, t) : this.builderContextSignal.rootState = t;
3892
4159
  },
3893
4160
  mergeNewContent(e) {
3894
- var n, o, s, r, i;
4161
+ var n, o, r, s, i;
3895
4162
  const t = {
3896
4163
  ...this.builderContextSignal.content,
3897
4164
  ...e,
@@ -3902,27 +4169,27 @@ font-weight: ${i};
3902
4169
  meta: {
3903
4170
  ...(o = this.builderContextSignal.content) == null ? void 0 : o.meta,
3904
4171
  ...e == null ? void 0 : e.meta,
3905
- 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)
3906
4173
  }
3907
4174
  };
3908
4175
  this.builderContextSignal.content = t;
3909
4176
  },
3910
4177
  processMessage(e) {
3911
- return at({
4178
+ return dt({
3912
4179
  model: this.model,
3913
4180
  trustedHosts: this.trustedHosts,
3914
4181
  callbacks: {
3915
4182
  configureSdk: (t) => {
3916
- var s;
4183
+ var r;
3917
4184
  const { breakpoints: n, contentId: o } = t;
3918
- !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({
3919
4186
  meta: {
3920
4187
  breakpoints: n
3921
4188
  }
3922
4189
  });
3923
4190
  },
3924
4191
  animation: (t) => {
3925
- Le(t);
4192
+ Me(t);
3926
4193
  },
3927
4194
  contentUpdate: (t) => {
3928
4195
  this.mergeNewContent(t);
@@ -3948,14 +4215,14 @@ font-weight: ${i};
3948
4215
  onClick(e) {
3949
4216
  var t, n;
3950
4217
  if (this.builderContextSignal.content) {
3951
- const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, s = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
3952
- 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({
3953
4220
  type: "click",
3954
- canTrack: z(this.canTrack),
3955
- contentId: s,
4221
+ canTrack: G(this.canTrack),
4222
+ contentId: r,
3956
4223
  apiKey: this.apiKey,
3957
- variationId: o !== s ? o : void 0,
3958
- ...Ns(e),
4224
+ variationId: o !== r ? o : void 0,
4225
+ ...Hr(e),
3959
4226
  unique: !this.clicked
3960
4227
  });
3961
4228
  }
@@ -3964,15 +4231,15 @@ font-weight: ${i};
3964
4231
  runHttpRequests() {
3965
4232
  var t, n;
3966
4233
  const e = ((n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) ?? {};
3967
- Object.entries(e).forEach(([o, s]) => {
3968
- 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())
3969
4236
  return;
3970
4237
  this.httpReqsPending[o] = !0;
3971
- const r = s.replace(
4238
+ const s = r.replace(
3972
4239
  /{{([^}]+)}}/g,
3973
- (i, a) => String(
4240
+ (i, l) => String(
3974
4241
  te({
3975
- code: a,
4242
+ code: l,
3976
4243
  context: this.context || {},
3977
4244
  localState: void 0,
3978
4245
  rootState: this.builderContextSignal.rootState,
@@ -3981,24 +4248,24 @@ font-weight: ${i};
3981
4248
  })
3982
4249
  )
3983
4250
  );
3984
- Ze(r).then((i) => i.json()).then((i) => {
4251
+ tt(s).then((i) => i.json()).then((i) => {
3985
4252
  this.mergeNewRootState({
3986
4253
  [o]: i
3987
4254
  }), this.httpReqsData[o] = !0;
3988
4255
  }).catch((i) => {
3989
- console.error("error fetching dynamic data", s, i);
4256
+ console.error("error fetching dynamic data", r, i);
3990
4257
  }).finally(() => {
3991
4258
  this.httpReqsPending[o] = !1;
3992
4259
  });
3993
4260
  });
3994
4261
  },
3995
4262
  emitStateUpdate() {
3996
- I() && window.dispatchEvent(
4263
+ R() && window.dispatchEvent(
3997
4264
  new CustomEvent(
3998
4265
  "builder:component:stateChange",
3999
4266
  {
4000
4267
  detail: {
4001
- state: q(this.builderContextSignal.rootState),
4268
+ state: Y(this.builderContextSignal.rootState),
4002
4269
  ref: {
4003
4270
  name: this.model
4004
4271
  }
@@ -4008,7 +4275,7 @@ font-weight: ${i};
4008
4275
  );
4009
4276
  },
4010
4277
  elementRef_onIniteditingbldr(e) {
4011
- window.addEventListener("message", this.processMessage), Ls(), it({
4278
+ window.addEventListener("message", this.processMessage), Jr(), ct({
4012
4279
  ...this.locale ? {
4013
4280
  locale: this.locale
4014
4281
  } : {},
@@ -4022,7 +4289,7 @@ font-weight: ${i};
4022
4289
  this.builderContextSignal.componentInfos
4023
4290
  ).forEach((t) => {
4024
4291
  var o;
4025
- const n = ns(t);
4292
+ const n = dr(t);
4026
4293
  (o = window.parent) == null || o.postMessage(n, "*");
4027
4294
  }), window.addEventListener(
4028
4295
  "builder:component:stateChangeListenerActivated",
@@ -4032,79 +4299,79 @@ font-weight: ${i};
4032
4299
  elementRef_onInitpreviewingbldr(e) {
4033
4300
  const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
4034
4301
  `builder.preview.${n}`
4035
- ), s = t.get("apiKey") || t.get("builder.space");
4036
- 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({
4037
4304
  model: this.model,
4038
4305
  apiKey: this.apiKey,
4039
4306
  apiVersion: this.builderContextSignal.apiVersion
4040
- }).then((r) => {
4041
- r && this.mergeNewContent(r);
4307
+ }).then((s) => {
4308
+ s && this.mergeNewContent(s);
4042
4309
  });
4043
4310
  }
4044
4311
  }
4045
4312
  });
4046
- function Js(e, t, n, o, s, r) {
4047
- var i, a, l;
4048
- 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({
4049
4316
  key: 0,
4050
4317
  ref: "elementRef",
4051
- onClick: (d) => e.onClick(d),
4318
+ onClick: (u) => e.onClick(u),
4052
4319
  "builder-content-id": (i = e.builderContextSignal.content) == null ? void 0 : i.id,
4053
4320
  "builder-model": e.model,
4054
- class: e.getWrapperClassName(((a = e.content) == null ? void 0 : a.testVariationId) || ((l = e.content) == null ? void 0 : l.id)),
4055
- onIniteditingbldr: (d) => e.elementRef_onIniteditingbldr(d),
4056
- 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)
4057
4324
  }, { ...e.showContentProps, ...e.contentWrapperProps }), {
4058
- default: B(() => [
4325
+ default: V(() => [
4059
4326
  P(e.$slots, "default")
4060
4327
  ]),
4061
4328
  _: 3
4062
4329
  }, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : S("", !0);
4063
4330
  }
4064
- const Gs = /* @__PURE__ */ b(qs, [["render", Js]]), Ys = f({
4331
+ const ns = /* @__PURE__ */ b(es, [["render", ts]]), os = f({
4065
4332
  name: "content-styles",
4066
- components: { InlinedStyles: me },
4333
+ components: { InlinedStyles: be },
4067
4334
  props: ["cssCode", "contentId", "customFonts", "isNestedRender"],
4068
4335
  data() {
4069
4336
  return {
4070
4337
  injectedStyles: `
4071
- ${Hs({
4338
+ ${Qr({
4072
4339
  cssCode: this.cssCode,
4073
4340
  contentId: this.contentId
4074
4341
  })}
4075
- ${Ds({
4342
+ ${Yr({
4076
4343
  customFonts: this.customFonts
4077
4344
  })}
4078
- ${Ks(this.isNestedRender)}
4345
+ ${Zr(this.isNestedRender)}
4079
4346
  `.trim()
4080
4347
  };
4081
4348
  }
4082
4349
  });
4083
- function _s(e, t, n, o, s, r) {
4084
- const i = y("inlined-styles");
4085
- return u(), k(i, {
4350
+ function rs(e, t, n, o, r, s) {
4351
+ const i = g("InlinedStyles");
4352
+ return d(), k(i, {
4086
4353
  id: "builderio-content",
4087
4354
  styles: e.injectedStyles
4088
4355
  }, null, 8, ["styles"]);
4089
4356
  }
4090
- const Qs = /* @__PURE__ */ b(Ys, [["render", _s]]), Xs = ({
4357
+ const ss = /* @__PURE__ */ b(os, [["render", rs]]), is = ({
4091
4358
  content: e,
4092
4359
  data: t,
4093
4360
  locale: n
4094
4361
  }) => {
4095
- var r, i, a;
4096
- const o = {}, s = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
4097
- return (a = (i = e == null ? void 0 : e.data) == null ? void 0 : i.inputs) == null || a.forEach((l) => {
4098
- 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);
4099
4366
  }), {
4100
4367
  ...o,
4101
- ...s,
4368
+ ...r,
4102
4369
  ...t,
4103
4370
  ...n ? {
4104
4371
  locale: n
4105
4372
  } : {}
4106
4373
  };
4107
- }, Zs = ({
4374
+ }, as = ({
4108
4375
  content: e,
4109
4376
  data: t
4110
4377
  }) => e ? {
@@ -4114,14 +4381,14 @@ const Qs = /* @__PURE__ */ b(Ys, [["render", _s]]), Xs = ({
4114
4381
  ...t
4115
4382
  },
4116
4383
  meta: e == null ? void 0 : e.meta
4117
- } : void 0, er = pt, tr = f({
4384
+ } : void 0, ls = ft, cs = f({
4118
4385
  name: "content-component",
4119
4386
  components: {
4120
- EnableEditor: Gs,
4121
- InlinedScript: Xe,
4122
- ContentStyles: Qs,
4123
- Blocks: J,
4124
- DynamicDiv: G
4387
+ EnableEditor: ns,
4388
+ InlinedScript: et,
4389
+ ContentStyles: ss,
4390
+ Blocks: M,
4391
+ DynamicDiv: Q
4125
4392
  },
4126
4393
  props: [
4127
4394
  "content",
@@ -4147,32 +4414,32 @@ const Qs = /* @__PURE__ */ b(Ys, [["render", _s]]), Xs = ({
4147
4414
  data() {
4148
4415
  var e, t;
4149
4416
  return {
4150
- scriptStr: us({
4417
+ scriptStr: kr({
4151
4418
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4152
4419
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
4153
4420
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4154
4421
  contentId: (t = this.content) == null ? void 0 : t.id
4155
4422
  }),
4156
4423
  registeredComponents: [
4157
- ...ve(),
4424
+ ...we(),
4158
4425
  ...this.customComponents || []
4159
4426
  ].reduce(
4160
- (n, { component: o, ...s }) => ({
4427
+ (n, { component: o, ...r }) => ({
4161
4428
  ...n,
4162
- [s.name]: {
4163
- component: er(o),
4164
- ...le(s)
4429
+ [r.name]: {
4430
+ component: ls(o),
4431
+ ...de(r)
4165
4432
  }
4166
4433
  }),
4167
4434
  {}
4168
4435
  ),
4169
4436
  builderContextSignal: {
4170
- content: Zs({
4437
+ content: as({
4171
4438
  content: this.content,
4172
4439
  data: this.data
4173
4440
  }),
4174
4441
  localState: void 0,
4175
- rootState: Xs({
4442
+ rootState: is({
4176
4443
  content: this.content,
4177
4444
  data: this.data,
4178
4445
  locale: this.locale
@@ -4182,12 +4449,12 @@ const Qs = /* @__PURE__ */ b(Ys, [["render", _s]]), Xs = ({
4182
4449
  apiKey: this.apiKey,
4183
4450
  apiVersion: this.apiVersion,
4184
4451
  componentInfos: [
4185
- ...ve(),
4452
+ ...we(),
4186
4453
  ...this.customComponents || []
4187
4454
  ].reduce(
4188
- (n, { component: o, ...s }) => ({
4455
+ (n, { component: o, ...r }) => ({
4189
4456
  ...n,
4190
- [s.name]: le(s)
4457
+ [r.name]: de(r)
4191
4458
  }),
4192
4459
  {}
4193
4460
  ),
@@ -4195,13 +4462,13 @@ const Qs = /* @__PURE__ */ b(Ys, [["render", _s]]), Xs = ({
4195
4462
  BlocksWrapper: this.blocksWrapper || "div",
4196
4463
  BlocksWrapperProps: this.blocksWrapperProps || {}
4197
4464
  },
4198
- TARGET: V
4465
+ TARGET: x
4199
4466
  };
4200
4467
  },
4201
4468
  provide() {
4202
4469
  const e = this;
4203
4470
  return {
4204
- [Pe.key]: {
4471
+ [Ae.key]: {
4205
4472
  registeredComponents: e.registeredComponents
4206
4473
  }
4207
4474
  };
@@ -4212,9 +4479,9 @@ const Qs = /* @__PURE__ */ b(Ys, [["render", _s]]), Xs = ({
4212
4479
  }
4213
4480
  }
4214
4481
  });
4215
- function nr(e, t, n, o, s, r) {
4216
- const i = y("inlined-script"), a = y("content-styles"), l = y("blocks"), d = y("enable-editor");
4217
- 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({
4218
4485
  content: e.content,
4219
4486
  data: e.data,
4220
4487
  model: e.model,
@@ -4230,23 +4497,23 @@ function nr(e, t, n, o, s, r) {
4230
4497
  linkComponent: e.linkComponent,
4231
4498
  trustedHosts: e.trustedHosts
4232
4499
  }, {}), {
4233
- default: B(() => {
4234
- var m, c, p, v, g, N, Y;
4500
+ default: V(() => {
4501
+ var h, c, p, v, y, F, X;
4235
4502
  return [
4236
- e.isSsrAbTest ? (u(), k(i, {
4503
+ e.isSsrAbTest ? (d(), k(i, {
4237
4504
  key: 0,
4238
4505
  id: "builderio-variant-visibility",
4239
4506
  scriptStr: e.scriptStr
4240
4507
  }, null, 8, ["scriptStr"])) : S("", !0),
4241
- e.TARGET !== "reactNative" ? (u(), k(a, {
4508
+ e.TARGET !== "reactNative" ? (d(), k(l, {
4242
4509
  key: 1,
4243
4510
  isNestedRender: e.isNestedRender,
4244
- contentId: (m = e.builderContextSignal.content) == null ? void 0 : m.id,
4511
+ contentId: (h = e.builderContextSignal.content) == null ? void 0 : h.id,
4245
4512
  cssCode: (p = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : p.cssCode,
4246
- 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
4247
4514
  }, null, 8, ["isNestedRender", "contentId", "cssCode", "customFonts"])) : S("", !0),
4248
- E(l, {
4249
- 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,
4250
4517
  context: e.builderContextSignal,
4251
4518
  registeredComponents: e.registeredComponents,
4252
4519
  linkComponent: e.linkComponent
@@ -4256,12 +4523,12 @@ function nr(e, t, n, o, s, r) {
4256
4523
  _: 1
4257
4524
  }, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "linkComponent", "trustedHosts"]);
4258
4525
  }
4259
- const or = /* @__PURE__ */ b(tr, [["render", nr]]), sr = f({
4526
+ const us = /* @__PURE__ */ b(cs, [["render", ds]]), ps = f({
4260
4527
  name: "content-variants",
4261
4528
  components: {
4262
- InlinedScript: Xe,
4263
- InlinedStyles: me,
4264
- ContentComponent: or
4529
+ InlinedScript: et,
4530
+ InlinedStyles: be,
4531
+ ContentComponent: us
4265
4532
  },
4266
4533
  props: [
4267
4534
  "canTrack",
@@ -4284,13 +4551,13 @@ const or = /* @__PURE__ */ b(tr, [["render", nr]]), sr = f({
4284
4551
  ],
4285
4552
  data() {
4286
4553
  return {
4287
- shouldRenderVariants: as({
4288
- canTrack: z(this.canTrack),
4554
+ shouldRenderVariants: fr({
4555
+ canTrack: G(this.canTrack),
4289
4556
  content: this.content
4290
4557
  }),
4291
- TARGET: V,
4292
- getInitVariantsFnsScriptString: cs,
4293
- getVariants: Q
4558
+ TARGET: x,
4559
+ getInitVariantsFnsScriptString: gr,
4560
+ getVariants: _
4294
4561
  };
4295
4562
  },
4296
4563
  mounted() {
@@ -4298,8 +4565,8 @@ const or = /* @__PURE__ */ b(tr, [["render", nr]]), sr = f({
4298
4565
  computed: {
4299
4566
  updateCookieAndStylesScriptStr() {
4300
4567
  var e;
4301
- return ds(
4302
- Q(this.content).map((t) => ({
4568
+ return yr(
4569
+ _(this.content).map((t) => ({
4303
4570
  id: t.testVariationId,
4304
4571
  testRatio: t.testRatio
4305
4572
  })),
@@ -4307,41 +4574,41 @@ const or = /* @__PURE__ */ b(tr, [["render", nr]]), sr = f({
4307
4574
  );
4308
4575
  },
4309
4576
  hideVariantsStyleString() {
4310
- return Q(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
4577
+ return _(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
4311
4578
  },
4312
4579
  defaultContent() {
4313
4580
  var e;
4314
4581
  return this.shouldRenderVariants ? {
4315
4582
  ...this.content,
4316
4583
  testVariationId: (e = this.content) == null ? void 0 : e.id
4317
- } : Nn({
4584
+ } : On({
4318
4585
  item: this.content,
4319
- canTrack: z(this.canTrack)
4586
+ canTrack: G(this.canTrack)
4320
4587
  });
4321
4588
  }
4322
4589
  }
4323
4590
  });
4324
- function rr(e, t, n, o, s, r) {
4325
- const i = y("inlined-script"), a = y("inlined-styles"), l = y("content-component");
4326
- return u(), h($, null, [
4327
- !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, {
4328
4595
  key: 0,
4329
4596
  id: "builderio-init-variants-fns",
4330
4597
  scriptStr: e.getInitVariantsFnsScriptString()
4331
4598
  }, null, 8, ["scriptStr"])) : S("", !0),
4332
- e.shouldRenderVariants ? (u(), h($, { key: 1 }, [
4333
- E(a, {
4599
+ e.shouldRenderVariants ? (d(), m(I, { key: 1 }, [
4600
+ $(l, {
4334
4601
  id: "builderio-variants",
4335
4602
  styles: e.hideVariantsStyleString
4336
4603
  }, null, 8, ["styles"]),
4337
- E(i, {
4604
+ $(i, {
4338
4605
  id: "builderio-variants-visibility",
4339
4606
  scriptStr: e.updateCookieAndStylesScriptStr
4340
4607
  }, null, 8, ["scriptStr"]),
4341
- (u(!0), h($, null, O(e.getVariants(e.content), (d, m) => (u(), k(l, {
4342
- key: d.testVariationId,
4608
+ (d(!0), m(I, null, W(e.getVariants(e.content), (u, h) => (d(), k(a, {
4609
+ key: u.testVariationId,
4343
4610
  isNestedRender: e.isNestedRender,
4344
- content: d,
4611
+ content: u,
4345
4612
  showContent: !1,
4346
4613
  model: e.model,
4347
4614
  data: e.data,
@@ -4361,7 +4628,7 @@ function rr(e, t, n, o, s, r) {
4361
4628
  trustedHosts: e.trustedHosts
4362
4629
  }, null, 8, ["isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
4363
4630
  ], 64)) : S("", !0),
4364
- E(l, w({
4631
+ $(a, w({
4365
4632
  isNestedRender: e.isNestedRender,
4366
4633
  content: e.defaultContent,
4367
4634
  showContent: !0,
@@ -4386,13 +4653,13 @@ function rr(e, t, n, o, s, r) {
4386
4653
  }), null, 16, ["isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
4387
4654
  ], 64);
4388
4655
  }
4389
- const ir = /* @__PURE__ */ b(sr, [["render", rr]]), ar = async ({
4656
+ const hs = /* @__PURE__ */ b(ps, [["render", ms]]), fs = async ({
4390
4657
  builderContextValue: e,
4391
4658
  symbol: t
4392
4659
  }) => {
4393
4660
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4394
4661
  (e != null && e.apiKey))
4395
- return be({
4662
+ return ke({
4396
4663
  model: t.model,
4397
4664
  apiKey: e.apiKey,
4398
4665
  apiVersion: e.apiVersion,
@@ -4402,11 +4669,11 @@ const ir = /* @__PURE__ */ b(sr, [["render", rr]]), ar = async ({
4402
4669
  }
4403
4670
  }
4404
4671
  }).catch((n) => {
4405
- R.error("Could not fetch symbol content: ", n);
4672
+ E.error("Could not fetch symbol content: ", n);
4406
4673
  });
4407
- }, lr = f({
4674
+ }, bs = f({
4408
4675
  name: "builder-symbol",
4409
- components: { ContentVariants: ir, DynamicDiv: G },
4676
+ components: { ContentVariants: hs, DynamicDiv: Q },
4410
4677
  props: [
4411
4678
  "symbol",
4412
4679
  "attributes",
@@ -4418,7 +4685,7 @@ const ir = /* @__PURE__ */ b(sr, [["render", rr]]), ar = async ({
4418
4685
  ],
4419
4686
  data() {
4420
4687
  var e;
4421
- 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 };
4422
4689
  },
4423
4690
  mounted() {
4424
4691
  this.setContent();
@@ -4455,7 +4722,7 @@ const ir = /* @__PURE__ */ b(sr, [["render", rr]]), ar = async ({
4455
4722
  },
4456
4723
  methods: {
4457
4724
  setContent() {
4458
- this.contentToUse || ar({
4725
+ this.contentToUse || fs({
4459
4726
  symbol: this.symbol,
4460
4727
  builderContextValue: this.builderContext
4461
4728
  }).then((e) => {
@@ -4464,23 +4731,23 @@ const ir = /* @__PURE__ */ b(sr, [["render", rr]]), ar = async ({
4464
4731
  }
4465
4732
  }
4466
4733
  });
4467
- function cr(e, t, n, o, s, r) {
4468
- var a, l, d, m, c;
4469
- const i = y("content-variants");
4470
- return u(), h("div", w({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4471
- 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, {
4472
4739
  isNestedRender: !0,
4473
4740
  apiVersion: e.builderContext.apiVersion,
4474
4741
  apiKey: e.builderContext.apiKey,
4475
4742
  context: {
4476
4743
  ...e.builderContext.context,
4477
- symbolId: (a = e.builderBlock) == null ? void 0 : a.id
4744
+ symbolId: (l = e.builderBlock) == null ? void 0 : l.id
4478
4745
  },
4479
4746
  customComponents: Object.values(e.builderComponents),
4480
4747
  data: {
4481
- ...(l = e.symbol) == null ? void 0 : l.data,
4748
+ ...(a = e.symbol) == null ? void 0 : a.data,
4482
4749
  ...e.builderContext.localState,
4483
- ...(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
4484
4751
  },
4485
4752
  model: (c = e.symbol) == null ? void 0 : c.model,
4486
4753
  content: e.contentToUse,
@@ -4490,20 +4757,20 @@ function cr(e, t, n, o, s, r) {
4490
4757
  }, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
4491
4758
  ], 16);
4492
4759
  }
4493
- const dr = /* @__PURE__ */ b(lr, [["render", cr]]), Re = {};
4494
- function Sr(e) {
4760
+ const ys = /* @__PURE__ */ b(bs, [["render", gs]]), Be = {};
4761
+ function Ps(e) {
4495
4762
  if (T()) {
4496
- Object.assign(Re, e);
4763
+ Object.assign(Be, e);
4497
4764
  const t = {
4498
4765
  type: "builder.settingsChange",
4499
- data: Re
4766
+ data: Be
4500
4767
  };
4501
4768
  parent.postMessage(t, "*");
4502
4769
  }
4503
4770
  }
4504
- const Cr = async (e) => {
4505
- var o, s, r;
4506
- 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 = {
4507
4774
  ...e,
4508
4775
  apiKey: e.apiKey,
4509
4776
  model: e.model || "page",
@@ -4513,52 +4780,52 @@ const Cr = async (e) => {
4513
4780
  urlPath: t
4514
4781
  } : {}
4515
4782
  },
4516
- options: et(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)
4517
4784
  };
4518
4785
  return {
4519
4786
  apiKey: n.apiKey,
4520
4787
  model: n.model,
4521
- content: await be(n)
4788
+ content: await ke(n)
4522
4789
  };
4523
4790
  };
4524
4791
  export {
4525
- ks as A,
4526
- pe as B,
4527
- un as C,
4528
- vs as D,
4529
- be as E,
4530
- hn as F,
4531
- hr as G,
4532
- gr as H,
4533
- Cn as I,
4534
- $n as S,
4535
- V as T,
4536
- es as V,
4537
- me as _,
4538
- on as a,
4539
- fr as b,
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 _,
4805
+ sn as a,
4806
+ ws as b,
4540
4807
  U as c,
4541
- yr as d,
4542
- Fe as e,
4808
+ $s as d,
4809
+ he as e,
4543
4810
  b as f,
4544
- Ne as g,
4811
+ De as g,
4545
4812
  te as h,
4546
- br as i,
4813
+ Ts as i,
4547
4814
  ee as j,
4548
- ae as k,
4549
- kt as l,
4550
- dr as m,
4551
- oo as n,
4552
- J as o,
4553
- ir as p,
4554
- I as q,
4555
- Ss as r,
4556
- ns as s,
4557
- Us as t,
4558
- Sr as u,
4559
- et as v,
4560
- er as w,
4561
- kr as x,
4562
- vr as y,
4563
- Cr as z
4815
+ ce as k,
4816
+ Ct as l,
4817
+ ys as m,
4818
+ so as n,
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
4564
4831
  };