@builder.io/sdk-vue 1.0.27 → 1.0.29

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