@builder.io/sdk-vue 4.1.3 → 4.2.3

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 (126) hide show
  1. package/lib/browser/{awaiter-5XM6eBKO.js → awaiter-QkoC16ei.js} +1 -1
  2. package/lib/browser/{awaiter-DZTz3Ar3.cjs → awaiter-dVEzPIfa.cjs} +1 -1
  3. package/lib/browser/{block-wrapper-R-KDYbAM.cjs → block-wrapper-BOi64ZSf.cjs} +1 -1
  4. package/lib/browser/{block-wrapper-Bzn0Mn8q.js → block-wrapper-LGlUvVpu.js} +3 -3
  5. package/lib/browser/blocks/form/form/form.vue.d.ts +4 -3
  6. package/lib/browser/blocks/img/img.vue.d.ts +9 -2
  7. package/lib/browser/blocks/symbol/symbol.types.d.ts +1 -2
  8. package/lib/browser/blocks/symbol/symbol.vue.d.ts +1 -0
  9. package/lib/browser/blocks/tabs/tabs.vue.d.ts +1 -0
  10. package/lib/browser/component-ref-Jt8NZQKY.cjs +1 -0
  11. package/lib/browser/{component-ref-gskEENuC.js → component-ref-tMh8EWjb.js} +68 -57
  12. package/lib/browser/components/awaiter.types.d.ts +7 -0
  13. package/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +1 -6
  14. package/lib/browser/components/block/components/interactive-element.vue.d.ts +6 -3
  15. package/lib/browser/components/block/components/live-edit-block-styles.vue.d.ts +19 -0
  16. package/lib/browser/components/block/components/style-wrapper.vue.d.ts +15 -0
  17. package/lib/browser/components/content/components/enable-editor.vue.d.ts +6 -2
  18. package/lib/browser/components/live-edit.vue.d.ts +17 -0
  19. package/lib/browser/constants/sdk-version.d.ts +1 -1
  20. package/lib/browser/find-block-4FksmtpZ.js +30 -0
  21. package/lib/browser/find-block-FHyxDYzT.cjs +1 -0
  22. package/lib/browser/functions/register.d.ts +18 -0
  23. package/lib/browser/{get-block-properties-WccKVsdn.js → get-block-properties-Ahsh8p5y.js} +8 -8
  24. package/lib/browser/{get-block-properties-qWby6E7c.cjs → get-block-properties-NuVrGQN_.cjs} +1 -1
  25. package/lib/browser/helpers/find-block.d.ts +18 -0
  26. package/lib/browser/helpers/subscribe-to-editor.d.ts +3 -2
  27. package/lib/browser/{index-AM8hDJBa.js → index-EtzQVBnH.js} +682 -581
  28. package/lib/browser/index-jbLVGF3d.cjs +334 -0
  29. package/lib/browser/index.cjs +1 -1
  30. package/lib/browser/index.mjs +11 -10
  31. package/lib/browser/live-edit-h_5MH287.cjs +1 -0
  32. package/lib/browser/live-edit-rw2-UX9h.js +32 -0
  33. package/lib/browser/{repeated-block-04Z899ts.cjs → repeated-block-DP1NryZH.cjs} +1 -1
  34. package/lib/browser/{repeated-block-jUlJ75XZ.js → repeated-block-WP795fea.js} +2 -2
  35. package/lib/browser/server-index.d.ts +1 -1
  36. package/lib/browser/style-wrapper-OLuHp-wg.js +210 -0
  37. package/lib/browser/style-wrapper-_FKH2e4u.cjs +1 -0
  38. package/lib/browser/style.css +1 -1
  39. package/lib/edge/{awaiter-GN-g8-yW.cjs → awaiter-AB81htE9.cjs} +1 -1
  40. package/lib/edge/{awaiter-itkvZDv7.js → awaiter-G2IZpq8y.js} +1 -1
  41. package/lib/{node/block-wrapper-vkf16jVz.cjs → edge/block-wrapper-3KMmt5za.cjs} +1 -1
  42. package/lib/{node/block-wrapper-Yxq8cADp.js → edge/block-wrapper-hc1D57Il.js} +3 -3
  43. package/lib/edge/blocks/form/form/form.vue.d.ts +4 -3
  44. package/lib/edge/blocks/img/img.vue.d.ts +9 -2
  45. package/lib/edge/blocks/symbol/symbol.types.d.ts +1 -2
  46. package/lib/edge/blocks/symbol/symbol.vue.d.ts +1 -0
  47. package/lib/edge/blocks/tabs/tabs.vue.d.ts +1 -0
  48. package/lib/edge/component-ref-1l1Dc15N.cjs +1 -0
  49. package/lib/edge/{component-ref-slGRIixC.js → component-ref-__eNmb_i.js} +68 -57
  50. package/lib/edge/components/awaiter.types.d.ts +7 -0
  51. package/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +1 -6
  52. package/lib/edge/components/block/components/interactive-element.vue.d.ts +6 -3
  53. package/lib/edge/components/block/components/live-edit-block-styles.vue.d.ts +19 -0
  54. package/lib/edge/components/block/components/style-wrapper.vue.d.ts +15 -0
  55. package/lib/edge/components/content/components/enable-editor.vue.d.ts +6 -2
  56. package/lib/edge/components/live-edit.vue.d.ts +17 -0
  57. package/lib/edge/constants/sdk-version.d.ts +1 -1
  58. package/lib/edge/find-block-3Ig0kVVe.js +29 -0
  59. package/lib/edge/find-block-FREohLcp.cjs +1 -0
  60. package/lib/edge/functions/register.d.ts +18 -0
  61. package/lib/edge/{get-block-properties-Nz3tnjcZ.js → get-block-properties-IlO7VcTG.js} +10 -10
  62. package/lib/edge/{get-block-properties-K9_lkqhk.cjs → get-block-properties-YofIFdQl.cjs} +1 -1
  63. package/lib/edge/helpers/find-block.d.ts +18 -0
  64. package/lib/edge/helpers/subscribe-to-editor.d.ts +3 -2
  65. package/lib/edge/{index-t2wm1Hgb.cjs → index-UFKf4DGh.cjs} +37 -37
  66. package/lib/edge/{index-0P0ciM70.js → index-pedBdruj.js} +975 -874
  67. package/lib/edge/index.cjs +1 -1
  68. package/lib/edge/index.mjs +12 -11
  69. package/lib/edge/live-edit-bP5Bdb_I.cjs +1 -0
  70. package/lib/edge/live-edit-mkwzJ3KQ.js +31 -0
  71. package/lib/{node/repeated-block-DbM-cXD5.cjs → edge/repeated-block-eV-zFRwn.cjs} +1 -1
  72. package/lib/{node/repeated-block-FPm9ifh_.js → edge/repeated-block-i0HNWVX0.js} +2 -2
  73. package/lib/edge/server-index.d.ts +1 -1
  74. package/lib/edge/style-wrapper-QrUxYNMa.cjs +1 -0
  75. package/lib/edge/style-wrapper-mI3PSijR.js +209 -0
  76. package/lib/edge/style.css +1 -1
  77. package/lib/node/{awaiter-BKUR1e9L.cjs → awaiter-GsCK0Rmm.cjs} +1 -1
  78. package/lib/node/{awaiter-4Zchzm7Q.js → awaiter-vsM2I4ci.js} +2 -2
  79. package/lib/{edge/block-wrapper-e9t2aTqt.js → node/block-wrapper-HC1GKPg-.js} +3 -3
  80. package/lib/{edge/block-wrapper-W6MhBMeD.cjs → node/block-wrapper-VVk0Gqbc.cjs} +1 -1
  81. package/lib/node/blocks/form/form/form.vue.d.ts +4 -3
  82. package/lib/node/blocks/img/img.vue.d.ts +9 -2
  83. package/lib/node/blocks/symbol/symbol.types.d.ts +1 -2
  84. package/lib/node/blocks/symbol/symbol.vue.d.ts +1 -0
  85. package/lib/node/blocks/tabs/tabs.vue.d.ts +1 -0
  86. package/lib/node/component-ref-SsJCZYlF.cjs +1 -0
  87. package/lib/node/{component-ref-c_8IgXLb.js → component-ref-bqN5ZiyT.js} +70 -58
  88. package/lib/node/components/awaiter.types.d.ts +7 -0
  89. package/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +1 -6
  90. package/lib/node/components/block/components/interactive-element.vue.d.ts +6 -3
  91. package/lib/node/components/block/components/live-edit-block-styles.vue.d.ts +19 -0
  92. package/lib/node/components/block/components/style-wrapper.vue.d.ts +15 -0
  93. package/lib/node/components/content/components/enable-editor.vue.d.ts +6 -2
  94. package/lib/node/components/live-edit.vue.d.ts +17 -0
  95. package/lib/node/constants/sdk-version.d.ts +1 -1
  96. package/lib/node/find-block-3Ig0kVVe.js +29 -0
  97. package/lib/node/find-block-FREohLcp.cjs +1 -0
  98. package/lib/node/functions/register.d.ts +18 -0
  99. package/lib/node/{get-block-properties-jreznjwW.cjs → get-block-properties--0kf0kc1.cjs} +1 -1
  100. package/lib/node/{get-block-properties-sJTTyxpy.js → get-block-properties-4dl07r5f.js} +1 -1
  101. package/lib/node/helpers/find-block.d.ts +18 -0
  102. package/lib/node/helpers/subscribe-to-editor.d.ts +3 -2
  103. package/lib/node/index-9ZnpkpZ8.cjs +334 -0
  104. package/lib/node/{index-0s5_7Gfu.js → index-BtCfIIfO.js} +844 -743
  105. package/lib/node/index.cjs +1 -1
  106. package/lib/node/index.mjs +10 -9
  107. package/lib/node/live-edit-dkMPrQFh.js +31 -0
  108. package/lib/node/live-edit-k5C1gkl6.cjs +1 -0
  109. package/lib/{edge/repeated-block-h1UA5gK0.js → node/repeated-block-FOLLYnPQ.js} +2 -2
  110. package/lib/{edge/repeated-block-_29LjXCq.cjs → node/repeated-block-pPsNH7xs.cjs} +1 -1
  111. package/lib/node/server-index.d.ts +1 -1
  112. package/lib/node/style-wrapper-CbrJHZiI.cjs +1 -0
  113. package/lib/node/style-wrapper-bEfbvdLX.js +210 -0
  114. package/lib/node/style.css +1 -1
  115. package/package.json +1 -1
  116. package/lib/browser/block-styles-58mkkubD.cjs +0 -1
  117. package/lib/browser/block-styles-biVGaluP.js +0 -84
  118. package/lib/browser/component-ref-V0MVxgsz.cjs +0 -1
  119. package/lib/browser/index-BiWOGEu2.cjs +0 -334
  120. package/lib/edge/block-styles-G1ClEDR3.cjs +0 -1
  121. package/lib/edge/block-styles-G42udXTn.js +0 -83
  122. package/lib/edge/component-ref-ia_8ZIAn.cjs +0 -1
  123. package/lib/node/block-styles-16ywDrRK.js +0 -84
  124. package/lib/node/block-styles-r6J38vG3.cjs +0 -1
  125. package/lib/node/component-ref-xUbOPInI.cjs +0 -1
  126. package/lib/node/index-t_oHxD-K.cjs +0 -334
@@ -1,13 +1,13 @@
1
- import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as Z, mergeProps as w, toHandlers as O, withCtx as U, renderSlot as V, resolveComponent as k, createTextVNode as Rt, toDisplayString as ce, defineAsyncComponent as X, createVNode as E, renderList as L, createCommentVNode as C, h as Ke, createElementVNode as z, normalizeStyle as j, normalizeClass as ee, markRaw as Et } from "vue";
2
- import { T as $, g as Pt, f as At, i as R, s as Bt, r as Vt, p as Nt, a as Wt, l as N, b as qe, c as ke, d as xt, n as ze, e as K, h as P, j as Dt } from "./should-force-browser-runtime-in-node-ikxWrCvn.js";
1
+ import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as X, mergeProps as w, toHandlers as F, withCtx as O, renderSlot as V, resolveComponent as k, createTextVNode as Rt, toDisplayString as le, defineAsyncComponent as Y, createVNode as E, renderList as L, createCommentVNode as C, h as Ke, createElementVNode as z, normalizeStyle as M, normalizeClass as _, markRaw as Et } from "vue";
2
+ import { T as $, g as At, f as Pt, i as R, s as Bt, r as Vt, p as Nt, a as xt, l as x, b as qe, c as Se, d as Wt, n as ze, e as K, h as A, j as Dt } from "./should-force-browser-runtime-in-node-ikxWrCvn.js";
3
3
  const Ot = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ut = (e) => typeof e == "string" && Ot.has(e.toLowerCase());
4
- function W(e = {}, t, n) {
4
+ function N(e = {}, t, n) {
5
5
  const o = {};
6
6
  for (const r in e) {
7
7
  if (!e[r] || n && !r.startsWith(t))
8
8
  continue;
9
- const s = n ? r.replace(t, "") : r;
10
- o[s] = e[r];
9
+ const i = n ? r.replace(t, "") : r;
10
+ o[i] = e[r];
11
11
  }
12
12
  return o;
13
13
  }
@@ -23,25 +23,25 @@ const Ft = y({
23
23
  n[o] = r;
24
24
  return n;
25
25
  };
26
- function Lt(e, t, n, o, r, s) {
27
- return e.isEmptyElement(e.TagName) ? (d(), S(Z(e.TagName), w({ key: 1 }, e.attributes, O(e.actionAttributes)), null, 16)) : (d(), h(I, { key: 0 }, [
28
- typeof e.TagName == "string" ? (d(), S(Z(e.TagName), w({ key: 0 }, e.attributes, O(e.actionAttributes)), {
29
- default: U(() => [
26
+ function Lt(e, t, n, o, r, i) {
27
+ return e.isEmptyElement(e.TagName) ? (d(), S(X(e.TagName), w({ key: 1 }, e.attributes, F(e.actionAttributes)), null, 16)) : (d(), h(I, { key: 0 }, [
28
+ typeof e.TagName == "string" ? (d(), S(X(e.TagName), w({ key: 0 }, e.attributes, F(e.actionAttributes)), {
29
+ default: O(() => [
30
30
  V(e.$slots, "default")
31
31
  ]),
32
32
  _: 3
33
- }, 16)) : (d(), S(Z(e.TagName), w({ key: 1 }, e.attributes, O(e.actionAttributes)), {
34
- default: U(() => [
33
+ }, 16)) : (d(), S(X(e.TagName), w({ key: 1 }, e.attributes, F(e.actionAttributes)), {
34
+ default: O(() => [
35
35
  V(e.$slots, "default")
36
36
  ]),
37
37
  _: 3
38
38
  }, 16))
39
39
  ], 64));
40
40
  }
41
- const Ce = /* @__PURE__ */ v(Ft, [["render", Lt]]), hs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41
+ const ke = /* @__PURE__ */ v(Ft, [["render", Lt]]), hs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42
42
  __proto__: null,
43
- default: Ce
44
- }, Symbol.toStringTag, { value: "Module" })), G = () => {
43
+ default: ke
44
+ }, Symbol.toStringTag, { value: "Module" })), j = () => {
45
45
  switch ($) {
46
46
  case "react":
47
47
  case "reactNative":
@@ -56,7 +56,7 @@ const Ce = /* @__PURE__ */ v(Ft, [["render", Lt]]), hs = /* @__PURE__ */ Object.
56
56
  }
57
57
  }, Ht = y({
58
58
  name: "builder-button",
59
- components: { DynamicRenderer: Ce },
59
+ components: { DynamicRenderer: ke },
60
60
  props: [
61
61
  "attributes",
62
62
  "link",
@@ -65,13 +65,13 @@ const Ce = /* @__PURE__ */ v(Ft, [["render", Lt]]), hs = /* @__PURE__ */ Object.
65
65
  "text"
66
66
  ],
67
67
  data() {
68
- return { filterAttrs: W };
68
+ return { filterAttrs: N };
69
69
  },
70
70
  methods: {
71
71
  attrs() {
72
72
  return {
73
- ...W(this.attributes, "v-on:", !1),
74
- [G()]: `${this.link ? "" : "builder-button"} ${this.attributes[G()] || ""}`,
73
+ ...N(this.attributes, "v-on:", !1),
74
+ [j()]: `${this.link ? "" : "builder-button"} ${this.attributes[j()] || ""}`,
75
75
  ...this.link ? {
76
76
  href: this.link,
77
77
  target: this.openLinkInNewTab ? "_blank" : void 0,
@@ -83,20 +83,20 @@ const Ce = /* @__PURE__ */ v(Ft, [["render", Lt]]), hs = /* @__PURE__ */ Object.
83
83
  }
84
84
  }
85
85
  });
86
- function Mt(e, t, n, o, r, s) {
87
- const i = k("DynamicRenderer");
88
- return d(), S(i, {
86
+ function Mt(e, t, n, o, r, i) {
87
+ const s = k("DynamicRenderer");
88
+ return d(), S(s, {
89
89
  attributes: e.attrs(),
90
90
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
91
91
  actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
92
92
  }, {
93
- default: U(() => [
94
- Rt(ce(e.text), 1)
93
+ default: O(() => [
94
+ Rt(le(e.text), 1)
95
95
  ]),
96
96
  _: 1
97
97
  }, 8, ["attributes", "TagName", "actionAttributes"]);
98
98
  }
99
- const jt = /* @__PURE__ */ v(Ht, [["render", Mt]]), Kt = Symbol(), be = {
99
+ const jt = /* @__PURE__ */ v(Ht, [["render", Mt]]), Kt = Symbol(), fe = {
100
100
  Builder: {
101
101
  content: null,
102
102
  context: {},
@@ -118,7 +118,7 @@ const jt = /* @__PURE__ */ v(Ht, [["render", Mt]]), Kt = Symbol(), be = {
118
118
  Components: { registeredComponents: {} },
119
119
  key: qt
120
120
  }, Je = (e, t, n) => {
121
- const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, s) => r != null ? r[s] : r, e);
121
+ const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
122
122
  return o === void 0 || o === e ? n : o;
123
123
  }, zt = ({
124
124
  code: e,
@@ -126,58 +126,58 @@ const jt = /* @__PURE__ */ v(Ht, [["render", Mt]]), Kt = Symbol(), be = {
126
126
  context: n,
127
127
  event: o,
128
128
  localState: r,
129
- rootSetState: s,
130
- rootState: i
129
+ rootSetState: i,
130
+ rootState: s
131
131
  }) => {
132
- const a = Pt({
132
+ const l = At({
133
133
  builder: t,
134
134
  context: n,
135
135
  event: o,
136
- state: At({
137
- rootState: i,
136
+ state: Pt({
137
+ rootState: s,
138
138
  localState: r,
139
- rootSetState: s
139
+ rootSetState: i
140
140
  })
141
141
  });
142
- return new Function(...a.map(([l]) => l), e)(...a.map(([, l]) => l));
142
+ return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
143
143
  }, Gt = (e) => R() || Bt({
144
144
  shouldLogWarning: !0
145
145
  }) ? zt(e) : Vt(e), Jt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Qt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Yt = (e) => {
146
- var t, n, o, r, s, i;
147
- return ((o = (n = (t = Jt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((i = (s = (r = Qt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : s.getPath) == null ? void 0 : i.slice(1));
146
+ var t, n, o, r, i, s;
147
+ return ((o = (n = (t = Jt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = Qt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
148
148
  };
149
- function te({
149
+ function ee({
150
150
  code: e,
151
151
  context: t,
152
152
  localState: n,
153
153
  rootState: o,
154
154
  rootSetState: r,
155
- event: s,
156
- isExpression: i = !0
155
+ event: i,
156
+ isExpression: s = !0
157
157
  }) {
158
158
  if (e.trim() === "")
159
159
  return;
160
- const a = Yt(e.trim());
161
- if (a)
160
+ const l = Yt(e.trim());
161
+ if (l)
162
162
  return Je({
163
163
  ...o,
164
164
  ...n
165
- }, a);
166
- const l = {
165
+ }, l);
166
+ const a = {
167
167
  code: Nt(e, {
168
- isExpression: i
168
+ isExpression: s
169
169
  }),
170
- builder: Wt(),
170
+ builder: xt(),
171
171
  context: t,
172
- event: s,
172
+ event: i,
173
173
  rootSetState: r,
174
174
  rootState: o,
175
175
  localState: n
176
176
  };
177
177
  try {
178
- return Gt(l);
178
+ return Gt(a);
179
179
  } catch (u) {
180
- N.error("Failed code evaluation: " + u.message, {
180
+ x.error("Failed code evaluation: " + u.message, {
181
181
  code: e
182
182
  });
183
183
  return;
@@ -196,8 +196,8 @@ const Zt = (e, t) => {
196
196
  if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((o = e.component.options) != null && o.text) && typeof e.component.options.text == "string")
197
197
  return {
198
198
  ...e.component.options,
199
- text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, s) => te({
200
- code: s,
199
+ text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, i) => ee({
200
+ code: i,
201
201
  context: t,
202
202
  localState: t.localState,
203
203
  rootState: t.rootState,
@@ -211,21 +211,21 @@ function _t(e, ...t) {
211
211
  delete n[o];
212
212
  return n;
213
213
  }
214
- function se(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
214
+ function ie(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
215
215
  if (e == null || typeof e != "object") {
216
- t(e, (s) => {
217
- n !== null && o !== null && (n[o] = s);
216
+ t(e, (i) => {
217
+ n !== null && o !== null && (n[o] = i);
218
218
  });
219
219
  return;
220
220
  }
221
- r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((s, i) => {
222
- t(s, (l) => {
223
- e[i] = l;
224
- }), se(s, t, e, i, r);
225
- }) : Object.entries(e).forEach(([s, i]) => {
226
- t(i, (l) => {
227
- e[s] = l;
228
- }), se(i, t, e, s, r);
221
+ r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((i, s) => {
222
+ t(i, (a) => {
223
+ e[s] = a;
224
+ }), ie(i, t, e, s, r);
225
+ }) : Object.entries(e).forEach(([i, s]) => {
226
+ t(s, (a) => {
227
+ e[i] = a;
228
+ }), ie(s, t, e, i, r);
229
229
  }));
230
230
  }
231
231
  function Qe(e) {
@@ -235,7 +235,7 @@ function en(e) {
235
235
  if (!e || !Object.getOwnPropertyNames(e).length)
236
236
  return !1;
237
237
  let t = !1;
238
- return se(e, (n) => {
238
+ return ie(e, (n) => {
239
239
  if (Qe(n)) {
240
240
  t = !0;
241
241
  return;
@@ -243,7 +243,7 @@ function en(e) {
243
243
  }), t;
244
244
  }
245
245
  function tn(e, t) {
246
- return !e || !Object.getOwnPropertyNames(e).length ? {} : (se(e, (n, o) => {
246
+ return !e || !Object.getOwnPropertyNames(e).length ? {} : (ie(e, (n, o) => {
247
247
  Qe(n) && o(n[t] ?? void 0);
248
248
  }), e);
249
249
  }
@@ -251,21 +251,21 @@ function nn(e, t) {
251
251
  var n, o;
252
252
  return (n = e.component) != null && n.options && en((o = e.component) == null ? void 0 : o.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = tn(e.component.options, t ?? "Default")), e;
253
253
  }
254
- function ge(e) {
254
+ function be(e) {
255
255
  if (e === null || typeof e != "object")
256
256
  return e;
257
257
  if (Array.isArray(e))
258
- return e.map((n) => ge(n));
258
+ return e.map((n) => be(n));
259
259
  if (e["@type"] === "@builder.io/sdk:Element")
260
260
  return e;
261
261
  const t = {};
262
262
  for (const n in e)
263
- n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ge(e[n]));
263
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = be(e[n]));
264
264
  return t;
265
265
  }
266
266
  const on = ["svelte", "vue", "angular", "qwik", "solid"].includes($), rn = (e) => {
267
267
  if (on) {
268
- const t = ke(e);
268
+ const t = Se(e);
269
269
  return {
270
270
  ...t,
271
271
  properties: {
@@ -276,7 +276,7 @@ const on = ["svelte", "vue", "angular", "qwik", "solid"].includes($), rn = (e) =
276
276
  }
277
277
  };
278
278
  } else {
279
- const t = ge(_t(e, "children", "meta"));
279
+ const t = be(_t(e, "children", "meta"));
280
280
  return {
281
281
  ...t,
282
282
  properties: {
@@ -298,18 +298,18 @@ const on = ["svelte", "vue", "angular", "qwik", "solid"].includes($), rn = (e) =
298
298
  }) => {
299
299
  if (!e.bindings)
300
300
  return e;
301
- const s = rn(e);
302
- for (const i in e.bindings) {
303
- const a = e.bindings[i], l = te({
304
- code: a,
301
+ const i = rn(e);
302
+ for (const s in e.bindings) {
303
+ const l = e.bindings[s], a = ee({
304
+ code: l,
305
305
  localState: n,
306
306
  rootState: o,
307
307
  rootSetState: r,
308
308
  context: t
309
309
  });
310
- qe(s, i, l);
310
+ qe(i, s, a);
311
311
  }
312
- return s;
312
+ return i;
313
313
  };
314
314
  function an({
315
315
  block: e,
@@ -318,32 +318,32 @@ function an({
318
318
  rootState: o,
319
319
  rootSetState: r
320
320
  }) {
321
- let s = e;
322
- return s = sn({
323
- block: s,
321
+ let i = e;
322
+ return i = sn({
323
+ block: i,
324
324
  localState: n,
325
325
  rootState: o,
326
326
  rootSetState: r,
327
327
  context: t
328
- }), s = nn(s, o.locale), s;
328
+ }), i = nn(i, o.locale), i;
329
329
  }
330
- function Te(e) {
330
+ function Ce(e) {
331
331
  const t = e || (R() ? window.location.search : void 0);
332
- return t ? xt(t).indexOf("builder.preview=") !== -1 : !1;
332
+ return t ? Wt(t).indexOf("builder.preview=") !== -1 : !1;
333
333
  }
334
334
  const ln = (e) => ({
335
335
  type: "builder.registerComponent",
336
- data: ae(e)
336
+ data: se(e)
337
337
  }), cn = (e) => {
338
338
  const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
339
339
  return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
340
340
  };
341
- function ae(e) {
341
+ function se(e) {
342
342
  return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? cn(n) : n));
343
343
  }
344
344
  const Ne = {};
345
345
  function fs(e, t) {
346
- e === "plugin" && (t = ae(t));
346
+ e === "plugin" && (t = se(t));
347
347
  let n = Ne[e];
348
348
  if (n || (n = Ne[e] = []), n.push(t), R()) {
349
349
  const o = {
@@ -360,24 +360,34 @@ function fs(e, t) {
360
360
  }
361
361
  }
362
362
  }
363
- const We = {};
364
363
  function bs(e) {
364
+ var t;
365
365
  if (R()) {
366
- Object.assign(We, e);
366
+ const n = JSON.parse(JSON.stringify(e));
367
+ e.action && (n.action = e.action.toString()), (t = window.parent) == null || t.postMessage({
368
+ type: "builder.registerAction",
369
+ data: n
370
+ }, "*");
371
+ }
372
+ }
373
+ const xe = {};
374
+ function gs(e) {
375
+ if (R()) {
376
+ Object.assign(xe, e);
367
377
  const t = {
368
378
  type: "builder.settingsChange",
369
- data: We
379
+ data: xe
370
380
  };
371
381
  parent.postMessage(t, "*");
372
382
  }
373
383
  }
374
- const xe = "builder.", dn = "options.", Ye = (e) => {
384
+ const We = "builder.", dn = "options.", Ye = (e) => {
375
385
  if (!e)
376
386
  return {};
377
387
  const t = ze(e), n = {};
378
388
  return Object.keys(t).forEach((o) => {
379
- if (o.startsWith(xe)) {
380
- const r = o.replace(xe, "").replace(dn, "");
389
+ if (o.startsWith(We)) {
390
+ const r = o.replace(We, "").replace(dn, "");
381
391
  n[r] = t[o];
382
392
  }
383
393
  }), n;
@@ -386,7 +396,7 @@ const xe = "builder.", dn = "options.", Ye = (e) => {
386
396
  return {};
387
397
  const e = new URLSearchParams(window.location.search);
388
398
  return Ye(e);
389
- }, Xe = "4.1.3", Ze = () => ({
399
+ }, Xe = "4.2.3", Ze = () => ({
390
400
  "X-Builder-SDK": $,
391
401
  "X-Builder-SDK-GEN": "2",
392
402
  "X-Builder-SDK-Version": Xe
@@ -395,7 +405,7 @@ const xe = "builder.", dn = "options.", Ye = (e) => {
395
405
  return e;
396
406
  const t = e.split(".");
397
407
  return t.length > 2 ? t.slice(1).join(".") : e;
398
- }, de = ({
408
+ }, ce = ({
399
409
  name: e,
400
410
  canTrack: t
401
411
  }) => {
@@ -403,17 +413,17 @@ const xe = "builder.", dn = "options.", Ye = (e) => {
403
413
  try {
404
414
  return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
405
415
  } catch (o) {
406
- N.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
416
+ x.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
407
417
  return;
408
418
  }
409
- }, _e = async (e) => de(e), mn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(K).join("; "), hn = [["secure", ""], ["SameSite", "None"]], fn = ({
419
+ }, _e = async (e) => ce(e), mn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(K).join("; "), hn = [["secure", ""], ["SameSite", "None"]], fn = ({
410
420
  name: e,
411
421
  value: t,
412
422
  expires: n
413
423
  }) => {
414
- const r = (R() ? location.protocol === "https:" : !0) ? hn : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", pn(window.location.hostname)], ...r];
415
- return mn(i);
416
- }, Ie = async ({
424
+ const r = (R() ? location.protocol === "https:" : !0) ? hn : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", pn(window.location.hostname)], ...r];
425
+ return mn(s);
426
+ }, Te = async ({
417
427
  name: e,
418
428
  value: t,
419
429
  expires: n,
@@ -429,7 +439,7 @@ const xe = "builder.", dn = "options.", Ye = (e) => {
429
439
  });
430
440
  document.cookie = r;
431
441
  } catch (r) {
432
- N.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
442
+ x.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
433
443
  }
434
444
  };
435
445
  function bn() {
@@ -462,7 +472,7 @@ const tt = "builderSessionId", gn = async ({
462
472
  }, yn = () => et(), vn = ({
463
473
  id: e,
464
474
  canTrack: t
465
- }) => Ie({
475
+ }) => Te({
466
476
  name: tt,
467
477
  value: e,
468
478
  canTrack: t
@@ -514,9 +524,9 @@ const tt = "builderSessionId", gn = async ({
514
524
  value: e,
515
525
  canTrack: t
516
526
  });
517
- function we(e) {
527
+ function Ie(e) {
518
528
  var t;
519
- typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && N.log(e);
529
+ typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && x.log(e);
520
530
  }
521
531
  const wn = async ({
522
532
  canTrack: e
@@ -556,18 +566,18 @@ const wn = async ({
556
566
  ownerId: n
557
567
  }
558
568
  });
559
- async function ye({
569
+ async function ge({
560
570
  apiHost: e,
561
571
  ...t
562
572
  }) {
563
573
  if (!t.apiKey) {
564
- N.error("Missing API key for track call. Please provide your API key.");
574
+ x.error("Missing API key for track call. Please provide your API key.");
565
575
  return;
566
576
  }
567
- if (!t.canTrack || P() || !(R() || $ === "reactNative"))
577
+ if (!t.canTrack || A() || !(R() || $ === "reactNative"))
568
578
  return;
569
579
  const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
570
- return we(o), fetch(o, {
580
+ return Ie(o), fetch(o, {
571
581
  method: "POST",
572
582
  body: JSON.stringify({
573
583
  events: [await $n(t)]
@@ -581,7 +591,7 @@ async function ye({
581
591
  console.error("Failed to track: ", r);
582
592
  });
583
593
  }
584
- const gs = (e) => ye({
594
+ const ys = (e) => ge({
585
595
  ...e,
586
596
  canTrack: !0
587
597
  }), Rn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
@@ -615,7 +625,7 @@ const it = (e) => {
615
625
  options: e
616
626
  }
617
627
  }, "*"), window.addEventListener("message", (o) => {
618
- var s, i;
628
+ var i, s;
619
629
  if (!rt(e.trustedHosts, o))
620
630
  return;
621
631
  const {
@@ -624,14 +634,14 @@ const it = (e) => {
624
634
  if (r != null && r.type)
625
635
  switch (r.type) {
626
636
  case "builder.evaluate": {
627
- const a = r.data.text, l = r.data.arguments || [], u = r.data.id, p = new Function(a);
637
+ const l = r.data.text, a = r.data.arguments || [], u = r.data.id, p = new Function(l);
628
638
  let f, c = null;
629
639
  try {
630
- f = p.apply(null, l);
640
+ f = p.apply(null, a);
631
641
  } catch (m) {
632
642
  c = m;
633
643
  }
634
- c ? (s = window.parent) == null || s.postMessage({
644
+ c ? (i = window.parent) == null || i.postMessage({
635
645
  type: "builder.evaluateError",
636
646
  data: {
637
647
  id: u,
@@ -646,7 +656,7 @@ const it = (e) => {
646
656
  result: m
647
657
  }
648
658
  }, "*");
649
- }).catch(console.error) : (i = window.parent) == null || i.postMessage({
659
+ }).catch(console.error) : (s = window.parent) == null || s.postMessage({
650
660
  type: "builder.evaluateResult",
651
661
  data: {
652
662
  result: f,
@@ -678,24 +688,24 @@ const it = (e) => {
678
688
  break;
679
689
  }
680
690
  case "builder.resetState": {
681
- const s = r.data, i = s.model, a = s == null ? void 0 : s.state;
682
- i === e && a && n.stateUpdate(a);
691
+ const i = r.data, s = i.model, l = i == null ? void 0 : i.state, a = i.editType;
692
+ s === e && l && n.stateUpdate(l, a);
683
693
  break;
684
694
  }
685
695
  case "builder.contentUpdate": {
686
- const s = r.data, i = s.key || s.alias || s.entry || s.modelName, a = s.data;
687
- i === e && n.contentUpdate(a);
696
+ const i = r.data, s = i.key || i.alias || i.entry || i.modelName, l = i.data, a = i.editType;
697
+ s === e && n.contentUpdate(l, a);
688
698
  break;
689
699
  }
690
700
  }
691
- }, ys = ({
701
+ }, vs = ({
692
702
  model: e,
693
703
  apiKey: t,
694
704
  callback: n,
695
705
  trustedHosts: o
696
706
  }) => {
697
707
  if (!R)
698
- return N.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
708
+ return x.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
699
709
  };
700
710
  it({
701
711
  modelName: e,
@@ -717,21 +727,21 @@ const it = (e) => {
717
727
  return window.addEventListener("message", r), () => {
718
728
  window.removeEventListener("message", r);
719
729
  };
720
- }, En = "builder.tests", $e = (e) => `${En}.${e}`, Pn = ({
730
+ }, En = "builder.tests", we = (e) => `${En}.${e}`, An = ({
721
731
  contentId: e
722
732
  }) => _e({
723
- name: $e(e),
733
+ name: we(e),
724
734
  canTrack: !0
725
- }), An = ({
735
+ }), Pn = ({
726
736
  contentId: e
727
- }) => de({
728
- name: $e(e),
737
+ }) => ce({
738
+ name: we(e),
729
739
  canTrack: !0
730
740
  }), Bn = ({
731
741
  contentId: e,
732
742
  value: t
733
- }) => Ie({
734
- name: $e(e),
743
+ }) => Te({
744
+ name: we(e),
735
745
  value: t,
736
746
  canTrack: !0
737
747
  }), at = (e) => K(e.id) && K(e.variations) && Object.keys(e.variations).length > 0, Vn = ({
@@ -741,10 +751,10 @@ const it = (e) => {
741
751
  var r;
742
752
  let n = 0;
743
753
  const o = Math.random();
744
- for (const s in t) {
745
- const i = (r = t[s]) == null ? void 0 : r.testRatio;
746
- if (n += i, o < n)
747
- return s;
754
+ for (const i in t) {
755
+ const s = (r = t[i]) == null ? void 0 : r.testRatio;
756
+ if (n += s, o < n)
757
+ return i;
748
758
  }
749
759
  return e;
750
760
  }, lt = (e) => {
@@ -753,7 +763,7 @@ const it = (e) => {
753
763
  contentId: e.id,
754
764
  value: t
755
765
  }).catch((n) => {
756
- N.error("could not store A/B test variation: ", n);
766
+ x.error("could not store A/B test variation: ", n);
757
767
  }), t;
758
768
  }, ct = ({
759
769
  item: e,
@@ -779,7 +789,7 @@ const it = (e) => {
779
789
  return;
780
790
  if (!at(e))
781
791
  return e;
782
- const n = An({
792
+ const n = Pn({
783
793
  contentId: e.id
784
794
  }) || lt({
785
795
  variations: e.variations,
@@ -792,13 +802,13 @@ const it = (e) => {
792
802
  ...e,
793
803
  ...o
794
804
  };
795
- }, Wn = async ({
805
+ }, xn = async ({
796
806
  item: e,
797
807
  canTrack: t
798
808
  }) => {
799
809
  if (!t || !at(e))
800
810
  return e;
801
- const o = await Pn({
811
+ const o = await An({
802
812
  contentId: e.id
803
813
  }) || lt({
804
814
  variations: e.variations,
@@ -824,14 +834,14 @@ function Ue() {
824
834
  ...this.getUserAttributes(),
825
835
  ...n
826
836
  };
827
- Ie({
837
+ Te({
828
838
  name: Oe,
829
839
  value: JSON.stringify(o),
830
840
  canTrack: e
831
841
  }), t.forEach((r) => r(o));
832
842
  },
833
843
  getUserAttributes() {
834
- return R() ? JSON.parse(de({
844
+ return R() ? JSON.parse(ce({
835
845
  name: Oe,
836
846
  canTrack: e
837
847
  }) || "{}") : {};
@@ -848,41 +858,41 @@ function Ue() {
848
858
  }
849
859
  };
850
860
  }
851
- let ve;
852
- R() && $ === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Ue()), ve = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : ve = Ue();
853
- const le = ve, vs = (e) => {
854
- le.setUserAttributes(e);
855
- }, J = (e) => {
861
+ let ye;
862
+ R() && $ === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Ue()), ye = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : ye = Ue();
863
+ const ae = ye, Ss = (e) => {
864
+ ae.setUserAttributes(e);
865
+ }, G = (e) => {
856
866
  const t = K(e) ? e : !0;
857
- return le.setCanTrack(t), t;
867
+ return ae.setCanTrack(t), t;
858
868
  };
859
- function xn() {
869
+ function Wn() {
860
870
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
861
871
  }
862
872
  function Dn() {
863
- const e = xn().fetch;
873
+ const e = Wn().fetch;
864
874
  if (typeof e > "u")
865
875
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
866
876
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
867
877
  return e;
868
878
  }
869
879
  const On = Dn();
870
- function Se(e, t = null, n = ".") {
880
+ function ve(e, t = null, n = ".") {
871
881
  return Object.keys(e).reduce((o, r) => {
872
- const s = e[r], i = [t, r].filter(Boolean).join(n);
873
- return [typeof s == "object", s !== null, !(Array.isArray(s) && s.length === 0)].every(Boolean) ? {
882
+ const i = e[r], s = [t, r].filter(Boolean).join(n);
883
+ return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
874
884
  ...o,
875
- ...Se(s, i, n)
885
+ ...ve(i, s, n)
876
886
  } : {
877
887
  ...o,
878
- [i]: s
888
+ [s]: i
879
889
  };
880
890
  }, {});
881
891
  }
882
892
  function dt(e, t, n = {}) {
883
893
  for (const o in e) {
884
- const r = e[o], s = t ? t + "." + o : o;
885
- r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((i) => i.startsWith("$")) ? dt(r, s, n) : n[s] = r;
894
+ const r = e[o], i = t ? t + "." + o : o;
895
+ r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? dt(r, i, n) : n[i] = r;
886
896
  }
887
897
  return n;
888
898
  }
@@ -891,23 +901,23 @@ function Un(e) {
891
901
  for (const n in e) {
892
902
  const o = n.split(".");
893
903
  let r = t;
894
- for (let s = 0; s < o.length; s++) {
895
- const i = o[s];
896
- s === o.length - 1 ? r[i] = e[n] : (r[i] = r[i] || {}, r = r[i]);
904
+ for (let i = 0; i < o.length; i++) {
905
+ const s = o[i];
906
+ i === o.length - 1 ? r[s] = e[n] : (r[s] = r[s] || {}, r = r[s]);
897
907
  }
898
908
  }
899
909
  return t;
900
910
  }
901
- const Fn = "v3", Fe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Re = (e) => {
911
+ const Fn = "v3", Fe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, $e = (e) => {
902
912
  const {
903
913
  limit: t = 30,
904
914
  userAttributes: n,
905
915
  query: o,
906
916
  model: r,
907
- apiKey: s,
908
- enrich: i,
909
- locale: a,
910
- apiVersion: l = Fn,
917
+ apiKey: i,
918
+ enrich: s,
919
+ locale: l,
920
+ apiVersion: a = Fn,
911
921
  fields: u,
912
922
  omit: p,
913
923
  offset: f,
@@ -915,43 +925,39 @@ const Fn = "v3", Fe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Re = (
915
925
  staleCacheSeconds: m,
916
926
  sort: b,
917
927
  includeUnpublished: g,
918
- apiHost: A
928
+ apiHost: P
919
929
  } = e;
920
- if (!s)
930
+ if (!i)
921
931
  throw new Error("Missing API key");
922
- if (!["v3"].includes(l))
923
- throw new Error(`Invalid apiVersion: expected 'v3', received '${l}'`);
924
- const F = t !== 1, B = A || "https://cdn.builder.io", T = new URL(`${B}/api/${l}/content/${r}`);
925
- T.searchParams.set("apiKey", s), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(F)), T.searchParams.set("includeRefs", String(!0));
926
- const x = a || (n == null ? void 0 : n.locale);
927
- let H = n || {};
928
- if (x && (T.searchParams.set("locale", x), H = {
929
- locale: x,
930
- ...H
931
- }), i && T.searchParams.set("enrich", String(i)), T.searchParams.set("omit", p ?? "meta.componentsUsed"), u && T.searchParams.set("fields", u), Number.isFinite(f) && f > -1 && T.searchParams.set("offset", String(Math.floor(f))), typeof g == "boolean" && T.searchParams.set("includeUnpublished", String(g)), c && Fe(c) && T.searchParams.set("cacheSeconds", String(c)), m && Fe(m) && T.searchParams.set("staleCacheSeconds", String(m)), b) {
932
- const D = Se({
932
+ if (!["v3"].includes(a))
933
+ throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
934
+ const U = t !== 1, B = P || "https://cdn.builder.io", T = new URL(`${B}/api/${a}/content/${r}`);
935
+ T.searchParams.set("apiKey", i), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(U)), T.searchParams.set("includeRefs", String(!0)), l && T.searchParams.set("locale", l);
936
+ let W = n || {};
937
+ if (s && T.searchParams.set("enrich", String(s)), T.searchParams.set("omit", p ?? "meta.componentsUsed"), u && T.searchParams.set("fields", u), Number.isFinite(f) && f > -1 && T.searchParams.set("offset", String(Math.floor(f))), typeof g == "boolean" && T.searchParams.set("includeUnpublished", String(g)), c && Fe(c) && T.searchParams.set("cacheSeconds", String(c)), m && Fe(m) && T.searchParams.set("staleCacheSeconds", String(m)), b) {
938
+ const D = ve({
933
939
  sort: b
934
940
  });
935
- for (const M in D)
936
- T.searchParams.set(M, JSON.stringify(D[M]));
941
+ for (const H in D)
942
+ T.searchParams.set(H, JSON.stringify(D[H]));
937
943
  }
938
- const Q = {
944
+ const J = {
939
945
  ...un(),
940
946
  ...ze(e.options || {})
941
947
  };
942
- H = {
943
- ...H,
944
- ...Hn(Q)
948
+ W = {
949
+ ...W,
950
+ ...Hn(J)
945
951
  };
946
- const Y = Se(Q);
947
- for (const D in Y)
948
- T.searchParams.set(D, String(Y[D]));
949
- if (Object.keys(H).length > 0 && T.searchParams.set("userAttributes", JSON.stringify(H)), o) {
952
+ const Q = ve(J);
953
+ for (const D in Q)
954
+ T.searchParams.set(D, String(Q[D]));
955
+ if (Object.keys(W).length > 0 && T.searchParams.set("userAttributes", JSON.stringify(W)), o) {
950
956
  const D = dt({
951
957
  query: o
952
958
  });
953
- for (const M in D)
954
- T.searchParams.set(M, JSON.stringify(D[M]));
959
+ for (const H in D)
960
+ T.searchParams.set(H, JSON.stringify(D[H]));
955
961
  }
956
962
  return T;
957
963
  }, Ln = (e) => {
@@ -969,52 +975,58 @@ const Fn = "v3", Fe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Re = (
969
975
  }
970
976
  return {};
971
977
  }, Mn = (e) => "results" in e;
972
- async function Ee(e) {
973
- const t = await qn({
978
+ async function Re(e) {
979
+ var o;
980
+ const t = e.locale || ((o = e.userAttributes) == null ? void 0 : o.locale);
981
+ t && (e.locale = t, e.userAttributes = {
982
+ locale: t,
983
+ ...e.userAttributes
984
+ });
985
+ const n = await qn({
974
986
  ...e,
975
987
  limit: 1
976
988
  });
977
- return t && t[0] || null;
989
+ return n && n[0] || null;
978
990
  }
979
991
  const jn = async (e) => {
980
- var i;
981
- const t = Re(e), n = e.fetch ?? On, o = {
992
+ var s;
993
+ const t = $e(e), n = e.fetch ?? On, o = {
982
994
  ...e.fetchOptions,
983
995
  headers: {
984
- ...(i = e.fetchOptions) == null ? void 0 : i.headers,
996
+ ...(s = e.fetchOptions) == null ? void 0 : s.headers,
985
997
  ...Ze()
986
998
  }
987
999
  };
988
1000
  return await (await n(t.href, o)).json();
989
- }, Kn = async (e, t, n = Re(e)) => {
990
- const o = J(e.canTrack);
1001
+ }, Kn = async (e, t, n = $e(e)) => {
1002
+ const o = G(e.canTrack);
991
1003
  if (n.search.includes("preview="), !o || !(R() || $ === "reactNative"))
992
1004
  return t.results;
993
1005
  try {
994
1006
  const r = [];
995
- for (const s of t.results)
996
- r.push(await Wn({
997
- item: s,
1007
+ for (const i of t.results)
1008
+ r.push(await xn({
1009
+ item: i,
998
1010
  canTrack: o
999
1011
  }));
1000
1012
  t.results = r;
1001
1013
  } catch (r) {
1002
- N.error("Could not process A/B tests. ", r);
1014
+ x.error("Could not process A/B tests. ", r);
1003
1015
  }
1004
1016
  return t.results;
1005
1017
  };
1006
1018
  async function qn(e) {
1007
- const t = Re(e), n = await jn(e);
1019
+ const t = $e(e), n = await jn(e);
1008
1020
  if (!Mn(n))
1009
- throw N.error("Error fetching data. ", {
1021
+ throw x.error("Error fetching data. ", {
1010
1022
  url: t,
1011
1023
  content: n,
1012
1024
  options: e
1013
1025
  }), n;
1014
1026
  return Kn(e, n);
1015
1027
  }
1016
- const Ss = async (e) => {
1017
- var o, r, s;
1028
+ const ks = async (e) => {
1029
+ var o, r, i;
1018
1030
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
1019
1031
  ...e,
1020
1032
  apiKey: e.apiKey,
@@ -1025,33 +1037,33 @@ const Ss = async (e) => {
1025
1037
  urlPath: t
1026
1038
  } : {}
1027
1039
  },
1028
- options: Ye(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
1040
+ options: Ye(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
1029
1041
  };
1030
1042
  return {
1031
1043
  apiKey: n.apiKey,
1032
1044
  model: n.model,
1033
- content: await Ee(n)
1045
+ content: await Re(n)
1034
1046
  };
1035
- }, Pe = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
1047
+ }, Ee = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
1036
1048
  function zn(e, t, n = {}) {
1037
- let o, r, s, i = null, a = 0;
1038
- const l = function() {
1039
- a = n.leading === !1 ? 0 : Date.now(), i = null, s = e.apply(o, r), i || (o = r = null);
1049
+ let o, r, i, s = null, l = 0;
1050
+ const a = function() {
1051
+ l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
1040
1052
  };
1041
1053
  return function() {
1042
1054
  const u = Date.now();
1043
- !a && n.leading === !1 && (a = u);
1044
- const p = t - (u - a);
1045
- return o = this, r = arguments, p <= 0 || p > t ? (i && (clearTimeout(i), i = null), a = u, s = e.apply(o, r), i || (o = r = null)) : !i && n.trailing !== !1 && (i = setTimeout(l, p)), s;
1055
+ !l && n.leading === !1 && (l = u);
1056
+ const p = t - (u - l);
1057
+ return o = this, r = arguments, p <= 0 || p > t ? (s && (clearTimeout(s), s = null), l = u, i = e.apply(o, r), s || (o = r = null)) : !s && n.trailing !== !1 && (s = setTimeout(a, p)), i;
1046
1058
  };
1047
1059
  }
1048
- function _(e, ...t) {
1060
+ function Z(e, ...t) {
1049
1061
  const n = Object(e);
1050
1062
  for (let o = 1; o < arguments.length; o++) {
1051
1063
  const r = arguments[o];
1052
1064
  if (r != null)
1053
- for (const s in r)
1054
- Object.prototype.hasOwnProperty.call(r, s) && (n[s] = r[s]);
1065
+ for (const i in r)
1066
+ Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
1055
1067
  }
1056
1068
  return n;
1057
1069
  }
@@ -1070,10 +1082,10 @@ function ut(e) {
1070
1082
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
1071
1083
  }
1072
1084
  function pt(e, t) {
1073
- const n = Jn(e), o = getComputedStyle(t), r = e.steps[0].styles, s = e.steps[e.steps.length - 1].styles, i = [r, s];
1074
- for (const a of i)
1075
- for (const l of n)
1076
- l in a || (a[l] = o[l]);
1085
+ const n = Jn(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
1086
+ for (const l of s)
1087
+ for (const a of n)
1088
+ a in l || (l[a] = o[a]);
1077
1089
  }
1078
1090
  function Jn(e) {
1079
1091
  const t = [];
@@ -1089,8 +1101,8 @@ function mt(e) {
1089
1101
  return;
1090
1102
  }
1091
1103
  Array.from(t).forEach((n) => {
1092
- pt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", _(n.style, e.steps[0].styles), setTimeout(() => {
1093
- n.style.transition = `all ${e.duration}s ${Pe(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), _(n.style, e.steps[1].styles), setTimeout(() => {
1104
+ pt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Z(n.style, e.steps[0].styles), setTimeout(() => {
1105
+ n.style.transition = `all ${e.duration}s ${Ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Z(n.style, e.steps[1].styles), setTimeout(() => {
1094
1106
  n.style.transition = "", n.style.transitionDelay = "";
1095
1107
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
1096
1108
  });
@@ -1105,37 +1117,37 @@ function Qn(e) {
1105
1117
  Array.from(t).forEach((n) => {
1106
1118
  pt(e, n);
1107
1119
  let o = !1, r = !1;
1108
- function s() {
1109
- !o && a(n) ? (o = !0, r = !0, setTimeout(() => {
1110
- _(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", i), setTimeout(() => {
1120
+ function i() {
1121
+ !o && l(n) ? (o = !0, r = !0, setTimeout(() => {
1122
+ Z(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
1111
1123
  r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
1112
1124
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
1113
- })) : e.repeat && o && !r && !a(n) && (o = !1, _(n.style, e.steps[0].styles));
1125
+ })) : e.repeat && o && !r && !l(n) && (o = !1, Z(n.style, e.steps[0].styles));
1114
1126
  }
1115
- const i = zn(s, 200, {
1127
+ const s = zn(i, 200, {
1116
1128
  leading: !1
1117
1129
  });
1118
- function a(p) {
1130
+ function l(p) {
1119
1131
  const f = p.getBoundingClientRect(), c = window.innerHeight, b = (e.thresholdPercent || 0) / 100 * c;
1120
1132
  return f.bottom > b && f.top < c - b;
1121
1133
  }
1122
- const l = e.steps[0].styles;
1134
+ const a = e.steps[0].styles;
1123
1135
  function u() {
1124
- _(n.style, l);
1136
+ Z(n.style, a);
1125
1137
  }
1126
1138
  u(), setTimeout(() => {
1127
- n.style.transition = `all ${e.duration}s ${Pe(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
1128
- }), document.addEventListener("scroll", i, {
1139
+ n.style.transition = `all ${e.duration}s ${Ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
1140
+ }), document.addEventListener("scroll", s, {
1129
1141
  capture: !0,
1130
1142
  passive: !0
1131
- }), s();
1143
+ }), i();
1132
1144
  });
1133
1145
  }
1134
1146
  const ht = (e) => Object.entries(e).map(([n, o]) => {
1135
1147
  if (typeof o == "string")
1136
- return `${Pe(n)}: ${o};`;
1148
+ return `${Ee(n)}: ${o};`;
1137
1149
  }).filter(K), Yn = (e) => ht(e).join(`
1138
- `), ks = ({
1150
+ `), Cs = ({
1139
1151
  mediaQuery: e,
1140
1152
  className: t,
1141
1153
  styles: n
@@ -1152,7 +1164,7 @@ function Xn({
1152
1164
  }) {
1153
1165
  return e;
1154
1166
  }
1155
- const Cs = ({
1167
+ const Ts = ({
1156
1168
  block: e,
1157
1169
  context: t
1158
1170
  }) => ft(Xn({
@@ -1179,8 +1191,8 @@ const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1179
1191
  registeredComponents: t,
1180
1192
  model: n
1181
1193
  }) => {
1182
- var s;
1183
- const o = (s = e.component) == null ? void 0 : s.name;
1194
+ var i;
1195
+ const o = (i = e.component) == null ? void 0 : i.name;
1184
1196
  if (!o)
1185
1197
  return null;
1186
1198
  const r = t[o];
@@ -1201,7 +1213,7 @@ const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1201
1213
  } = e;
1202
1214
  if (!(n != null && n.collection))
1203
1215
  return;
1204
- const r = te({
1216
+ const r = ee({
1205
1217
  code: n.collection,
1206
1218
  localState: t.localState,
1207
1219
  rootState: t.rootState,
@@ -1210,16 +1222,16 @@ const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1210
1222
  });
1211
1223
  if (!Array.isArray(r))
1212
1224
  return;
1213
- const s = n.collection.split(".").pop(), i = n.itemName || (s ? s + "Item" : "item");
1214
- return r.map((l, u) => ({
1225
+ const i = n.collection.split(".").pop(), s = n.itemName || (i ? i + "Item" : "item");
1226
+ return r.map((a, u) => ({
1215
1227
  context: {
1216
1228
  ...t,
1217
1229
  localState: {
1218
1230
  ...t.localState,
1219
1231
  $index: u,
1220
- $item: l,
1221
- [i]: l,
1222
- [`$${i}Index`]: u
1232
+ $item: a,
1233
+ [s]: a,
1234
+ [`$${s}Index`]: u
1223
1235
  }
1224
1236
  },
1225
1237
  block: o
@@ -1232,7 +1244,7 @@ const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1232
1244
  }, to = (e, t, n) => {
1233
1245
  var o;
1234
1246
  return (o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents ? {
1235
- builderComponents: Object.fromEntries(Object.entries(t).filter(([s, i]) => !bt(i, n)))
1247
+ builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !bt(s, n)))
1236
1248
  } : {};
1237
1249
  }, no = (e, t) => {
1238
1250
  var n;
@@ -1249,34 +1261,34 @@ const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1249
1261
  "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
1250
1262
  e
1251
1263
  ), e;
1252
- }), so = () => import("./block-styles-16ywDrRK.js").then((e) => e.default).catch((e) => {
1253
- throw console.error(
1254
- "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
1255
- e
1256
- ), e;
1257
- }), ao = () => import("./block-wrapper-Yxq8cADp.js").then((e) => e.default).catch((e) => {
1264
+ }), so = () => import("./block-wrapper-HC1GKPg-.js").then((e) => e.default).catch((e) => {
1258
1265
  throw console.error(
1259
1266
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
1260
1267
  e
1261
1268
  ), e;
1262
- }), lo = () => import("./component-ref-c_8IgXLb.js").then((e) => e.default).catch((e) => {
1269
+ }), ao = () => import("./component-ref-bqN5ZiyT.js").then((e) => e.default).catch((e) => {
1263
1270
  throw console.error(
1264
1271
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
1265
1272
  e
1266
1273
  ), e;
1267
- }), co = () => import("./repeated-block-FPm9ifh_.js").then((e) => e.default).catch((e) => {
1274
+ }), lo = () => import("./repeated-block-FOLLYnPQ.js").then((e) => e.default).catch((e) => {
1268
1275
  throw console.error(
1269
1276
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
1270
1277
  e
1271
1278
  ), e;
1279
+ }), co = () => import("./style-wrapper-bEfbvdLX.js").then((e) => e.default).catch((e) => {
1280
+ throw console.error(
1281
+ "Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
1282
+ e
1283
+ ), e;
1272
1284
  }), uo = y({
1273
1285
  name: "block",
1274
1286
  components: {
1275
- BlockStyles: X(so),
1276
- RepeatedBlock: X(co),
1277
- ComponentRef: X(lo),
1278
- BlockWrapper: X(ao),
1279
- DynamicDiv: X(io)
1287
+ StyleWrapper: Y(co),
1288
+ RepeatedBlock: Y(lo),
1289
+ ComponentRef: Y(ao),
1290
+ BlockWrapper: Y(so),
1291
+ DynamicDiv: Y(io)
1280
1292
  },
1281
1293
  props: ["block", "context", "registeredComponents", "linkComponent"],
1282
1294
  data() {
@@ -1364,14 +1376,15 @@ const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1364
1376
  }
1365
1377
  }
1366
1378
  });
1367
- function po(e, t, n, o, r, s) {
1379
+ function po(e, t, n, o, r, i) {
1368
1380
  var f;
1369
- const i = k("BlockStyles"), a = k("ComponentRef"), l = k("Block", !0), u = k("BlockWrapper"), p = k("RepeatedBlock");
1381
+ const s = k("StyleWrapper"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), p = k("RepeatedBlock");
1370
1382
  return e.canShowBlock ? (d(), h(I, { key: 0 }, [
1371
- E(i, {
1383
+ E(s, {
1372
1384
  block: e.processedBlock,
1373
- context: e.context
1374
- }, null, 8, ["block", "context"]),
1385
+ context: e.context,
1386
+ id: e.block.id
1387
+ }, null, 8, ["block", "context", "id"]),
1375
1388
  (f = e.blockComponent) != null && f.noWrap ? (d(), h(I, { key: 1 }, [
1376
1389
  e.repeatItem ? (d(!0), h(I, { key: 1 }, L(e.repeatItem, (c, m) => (d(), S(p, {
1377
1390
  key: e.generateKey(m),
@@ -1379,7 +1392,7 @@ function po(e, t, n, o, r, s) {
1379
1392
  block: c.block,
1380
1393
  registeredComponents: e.registeredComponents,
1381
1394
  linkComponent: e.linkComponent
1382
- }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (d(), S(a, {
1395
+ }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (d(), S(l, {
1383
1396
  key: 0,
1384
1397
  componentRef: e.componentRefProps.componentRef,
1385
1398
  componentOptions: e.componentRefProps.componentOptions,
@@ -1404,8 +1417,8 @@ function po(e, t, n, o, r, s) {
1404
1417
  block: e.processedBlock,
1405
1418
  context: e.context
1406
1419
  }, {
1407
- default: U(() => [
1408
- E(a, {
1420
+ default: O(() => [
1421
+ E(l, {
1409
1422
  componentRef: e.componentRefProps.componentRef,
1410
1423
  componentOptions: e.componentRefProps.componentOptions,
1411
1424
  blockChildren: e.componentRefProps.blockChildren,
@@ -1416,7 +1429,7 @@ function po(e, t, n, o, r, s) {
1416
1429
  includeBlockProps: e.componentRefProps.includeBlockProps,
1417
1430
  isInteractive: e.componentRefProps.isInteractive
1418
1431
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
1419
- (d(!0), h(I, null, L(e.childrenWithoutParentComponent, (c, m) => (d(), S(l, {
1432
+ (d(!0), h(I, null, L(e.childrenWithoutParentComponent, (c, m) => (d(), S(a, {
1420
1433
  key: c.id,
1421
1434
  block: c,
1422
1435
  registeredComponents: e.registeredComponents,
@@ -1429,7 +1442,7 @@ function po(e, t, n, o, r, s) {
1429
1442
  ], 64))
1430
1443
  ], 64)) : C("", !0);
1431
1444
  }
1432
- const gt = /* @__PURE__ */ v(uo, [["render", po]]), Ts = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1445
+ const gt = /* @__PURE__ */ v(uo, [["render", po]]), Is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1433
1446
  __proto__: null,
1434
1447
  default: gt
1435
1448
  }, Symbol.toStringTag, { value: "Module" })), mo = y({
@@ -1476,7 +1489,7 @@ const gt = /* @__PURE__ */ v(uo, [["render", po]]), Ts = /* @__PURE__ */ Object.
1476
1489
  methods: {
1477
1490
  onClick() {
1478
1491
  var e, t;
1479
- P() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1492
+ A() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1480
1493
  {
1481
1494
  type: "builder.clickEmptyBlocks",
1482
1495
  data: {
@@ -1489,7 +1502,7 @@ const gt = /* @__PURE__ */ v(uo, [["render", po]]), Ts = /* @__PURE__ */ Object.
1489
1502
  },
1490
1503
  onMouseEnter() {
1491
1504
  var e, t;
1492
- P() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1505
+ A() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1493
1506
  {
1494
1507
  type: "builder.hoverEmptyBlocks",
1495
1508
  data: {
@@ -1502,24 +1515,24 @@ const gt = /* @__PURE__ */ v(uo, [["render", po]]), Ts = /* @__PURE__ */ Object.
1502
1515
  }
1503
1516
  }
1504
1517
  });
1505
- function ho(e, t, n, o, r, s) {
1506
- return d(), S(Z(e.BlocksWrapper), w({
1518
+ function ho(e, t, n, o, r, i) {
1519
+ return d(), S(X(e.BlocksWrapper), w({
1507
1520
  ref: "blocksWrapperRef",
1508
- class: e.className + " component-tqyw9m0iue",
1521
+ class: e.className + " component-5vz8uirn7sc",
1509
1522
  "builder-path": e.dataPath,
1510
1523
  "builder-parent-id": e.parent,
1511
1524
  style: e.styleProp,
1512
- onClick: (i) => e.onClick(),
1513
- onMouseEnter: (i) => e.onMouseEnter(),
1514
- onKeyPress: (i) => e.onClick()
1525
+ onClick: (s) => e.onClick(),
1526
+ onMouseEnter: (s) => e.onMouseEnter(),
1527
+ onKeyPress: (s) => e.onClick()
1515
1528
  }, { ...e.BlocksWrapperProps }), {
1516
- default: U(() => [
1529
+ default: O(() => [
1517
1530
  V(e.$slots, "default", {}, void 0, !0)
1518
1531
  ]),
1519
1532
  _: 3
1520
1533
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
1521
1534
  }
1522
- const fo = /* @__PURE__ */ v(mo, [["render", ho], ["__scopeId", "data-v-161c6b74"]]), bo = y({
1535
+ const fo = /* @__PURE__ */ v(mo, [["render", ho], ["__scopeId", "data-v-82fc93d6"]]), bo = y({
1523
1536
  name: "builder-blocks",
1524
1537
  components: { BlocksWrapper: fo, Block: gt },
1525
1538
  props: [
@@ -1534,27 +1547,27 @@ const fo = /* @__PURE__ */ v(mo, [["render", ho], ["__scopeId", "data-v-161c6b74
1534
1547
  "registeredComponents"
1535
1548
  ],
1536
1549
  inject: {
1537
- builderContext: be.key,
1550
+ builderContext: fe.key,
1538
1551
  componentsContext: Ge.key
1539
1552
  }
1540
1553
  });
1541
- function go(e, t, n, o, r, s) {
1542
- var l, u, p, f;
1543
- const i = k("Block"), a = k("BlocksWrapper");
1544
- return d(), S(a, {
1554
+ function go(e, t, n, o, r, i) {
1555
+ var a, u, p, f;
1556
+ const s = k("Block"), l = k("BlocksWrapper");
1557
+ return d(), S(l, {
1545
1558
  blocks: e.blocks,
1546
1559
  parent: e.parent,
1547
1560
  path: e.path,
1548
1561
  styleProp: e.styleProp,
1549
- BlocksWrapperProps: e.BlocksWrapperProps || ((l = e.context) == null ? void 0 : l.BlocksWrapperProps) || ((u = e.builderContext) == null ? void 0 : u.BlocksWrapperProps),
1562
+ BlocksWrapperProps: e.BlocksWrapperProps || ((a = e.context) == null ? void 0 : a.BlocksWrapperProps) || ((u = e.builderContext) == null ? void 0 : u.BlocksWrapperProps),
1550
1563
  classNameProp: e.className,
1551
1564
  BlocksWrapper: ((p = e.context) == null ? void 0 : p.BlocksWrapper) || ((f = e.builderContext) == null ? void 0 : f.BlocksWrapper)
1552
1565
  }, {
1553
- default: U(() => [
1566
+ default: O(() => [
1554
1567
  V(e.$slots, "default"),
1555
1568
  e.blocks ? (d(!0), h(I, { key: 0 }, L(e.blocks, (c, m) => {
1556
1569
  var b;
1557
- return d(), S(i, {
1570
+ return d(), S(s, {
1558
1571
  key: c.id,
1559
1572
  block: c,
1560
1573
  linkComponent: e.linkComponent,
@@ -1570,15 +1583,15 @@ const q = /* @__PURE__ */ v(bo, [["render", go]]), yo = y({
1570
1583
  name: "dynamic-div",
1571
1584
  props: []
1572
1585
  });
1573
- function vo(e, t, n, o, r, s) {
1586
+ function vo(e, t, n, o, r, i) {
1574
1587
  return d(), h("div", null, [
1575
1588
  V(e.$slots, "default")
1576
1589
  ]);
1577
1590
  }
1578
- const ne = /* @__PURE__ */ v(yo, [["render", vo]]), So = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1591
+ const te = /* @__PURE__ */ v(yo, [["render", vo]]), So = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1579
1592
  __proto__: null,
1580
- default: ne
1581
- }, Symbol.toStringTag, { value: "Module" })), ue = y({
1593
+ default: te
1594
+ }, Symbol.toStringTag, { value: "Module" })), de = y({
1582
1595
  render() {
1583
1596
  return Ke("style", {
1584
1597
  innerHTML: this.styles,
@@ -1609,8 +1622,8 @@ const ne = /* @__PURE__ */ v(yo, [["render", vo]]), So = /* @__PURE__ */ Object.
1609
1622
  default: 991,
1610
1623
  max: 1200
1611
1624
  }
1612
- }, Is = (e, t = yt) => `@media (max-width: ${t[e].max}px)`, ko = (e) => {
1613
- const t = ke(yt);
1625
+ }, ws = (e, t = yt) => `@media (max-width: ${t[e].max}px)`, ko = (e) => {
1626
+ const t = Se(yt);
1614
1627
  if (!e)
1615
1628
  return t;
1616
1629
  const {
@@ -1619,41 +1632,41 @@ const ne = /* @__PURE__ */ v(yo, [["render", vo]]), So = /* @__PURE__ */ Object.
1619
1632
  medium: r
1620
1633
  } = e;
1621
1634
  if (n) {
1622
- const l = Math.floor(n / 2);
1635
+ const a = Math.floor(n / 2);
1623
1636
  t.xsmall = {
1624
1637
  max: n,
1625
- min: l,
1626
- default: l + 1
1638
+ min: a,
1639
+ default: a + 1
1627
1640
  };
1628
1641
  }
1629
1642
  if (!o || !r)
1630
1643
  return t;
1631
- const s = n ? t.xsmall.max + 1 : Math.floor(o / 2);
1644
+ const i = n ? t.xsmall.max + 1 : Math.floor(o / 2);
1632
1645
  t.small = {
1633
1646
  max: o,
1634
- min: s,
1635
- default: s + 1
1647
+ min: i,
1648
+ default: i + 1
1636
1649
  };
1637
- const i = t.small.max + 1;
1650
+ const s = t.small.max + 1;
1638
1651
  t.medium = {
1639
1652
  max: r,
1640
- min: i,
1641
- default: i + 1
1653
+ min: s,
1654
+ default: s + 1
1642
1655
  };
1643
- const a = t.medium.max + 1;
1656
+ const l = t.medium.max + 1;
1644
1657
  return t.large = {
1645
1658
  max: 2e3,
1646
1659
  // TODO: decide upper limit
1647
- min: a,
1648
- default: a + 1
1660
+ min: l,
1661
+ default: l + 1
1649
1662
  }, t;
1650
1663
  }, Co = (e) => `builder-columns ${e}-breakpoints`, To = y({
1651
1664
  name: "builder-columns",
1652
1665
  components: {
1653
- InlinedStyles: ue,
1654
- DynamicRenderer: Ce,
1666
+ InlinedStyles: de,
1667
+ DynamicRenderer: ke,
1655
1668
  Blocks: q,
1656
- DynamicDiv: ne
1669
+ DynamicDiv: te
1657
1670
  },
1658
1671
  props: [
1659
1672
  "space",
@@ -1716,7 +1729,7 @@ const ne = /* @__PURE__ */ v(yo, [["render", vo]]), So = /* @__PURE__ */ Object.
1716
1729
  };
1717
1730
  },
1718
1731
  columnCssVars(e) {
1719
- const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, r = "100%", s = 0;
1732
+ const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, r = "100%", i = 0;
1720
1733
  return {
1721
1734
  ...{
1722
1735
  display: "flex",
@@ -1730,7 +1743,7 @@ const ne = /* @__PURE__ */ v(yo, [["render", vo]]), So = /* @__PURE__ */ Object.
1730
1743
  desktopStyle: n
1731
1744
  }),
1732
1745
  "--column-margin-left-mobile": this.getMobileStyle({
1733
- stackedStyle: s,
1746
+ stackedStyle: i,
1734
1747
  desktopStyle: o
1735
1748
  }),
1736
1749
  "--column-width-tablet": this.getTabletStyle({
@@ -1738,7 +1751,7 @@ const ne = /* @__PURE__ */ v(yo, [["render", vo]]), So = /* @__PURE__ */ Object.
1738
1751
  desktopStyle: n
1739
1752
  }),
1740
1753
  "--column-margin-left-tablet": this.getTabletStyle({
1741
- stackedStyle: s,
1754
+ stackedStyle: i,
1742
1755
  desktopStyle: o
1743
1756
  })
1744
1757
  };
@@ -1782,33 +1795,33 @@ const ne = /* @__PURE__ */ v(yo, [["render", vo]]), So = /* @__PURE__ */ Object.
1782
1795
  ...e.link ? {
1783
1796
  href: e.link
1784
1797
  } : {},
1785
- [G()]: "builder-column",
1798
+ [j()]: "builder-column",
1786
1799
  style: ft(this.columnCssVars(t))
1787
1800
  };
1788
1801
  }
1789
1802
  }
1790
1803
  });
1791
- function Io(e, t, n, o, r, s) {
1804
+ function Io(e, t, n, o, r, i) {
1792
1805
  var u;
1793
- const i = k("InlinedStyles"), a = k("Blocks"), l = k("DynamicRenderer");
1806
+ const s = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
1794
1807
  return d(), h("div", w({
1795
- class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-4wbls88y960",
1808
+ class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-1be3j8m9ewb",
1796
1809
  style: e.columnsCssVars()
1797
1810
  }, {}), [
1798
- e.TARGET !== "reactNative" ? (d(), S(i, {
1811
+ e.TARGET !== "reactNative" ? (d(), S(s, {
1799
1812
  key: 0,
1800
1813
  id: "builderio-columns",
1801
1814
  styles: e.columnsStyles(),
1802
1815
  nonce: e.builderContext.nonce
1803
1816
  }, null, 8, ["styles", "nonce"])) : C("", !0),
1804
- (d(!0), h(I, null, L(e.columns, (p, f) => (d(), S(l, {
1817
+ (d(!0), h(I, null, L(e.columns, (p, f) => (d(), S(a, {
1805
1818
  key: f,
1806
1819
  TagName: e.getTagName(p),
1807
1820
  actionAttributes: {},
1808
1821
  attributes: e.getAttributes(p, f)
1809
1822
  }, {
1810
- default: U(() => [
1811
- E(a, {
1823
+ default: O(() => [
1824
+ E(l, {
1812
1825
  path: `columns.${f}.blocks`,
1813
1826
  parent: e.builderBlock.id,
1814
1827
  context: e.builderContext,
@@ -1824,11 +1837,11 @@ function Io(e, t, n, o, r, s) {
1824
1837
  }, 1032, ["TagName", "attributes"]))), 128))
1825
1838
  ], 16);
1826
1839
  }
1827
- const wo = /* @__PURE__ */ v(To, [["render", Io], ["__scopeId", "data-v-459e0e34"]]), $o = y({
1840
+ const wo = /* @__PURE__ */ v(To, [["render", Io], ["__scopeId", "data-v-ab15749a"]]), $o = y({
1828
1841
  name: "builder-fragment-component",
1829
1842
  props: []
1830
1843
  });
1831
- function Ro(e, t, n, o, r, s) {
1844
+ function Ro(e, t, n, o, r, i) {
1832
1845
  return d(), h("span", null, [
1833
1846
  V(e.$slots, "default")
1834
1847
  ]);
@@ -1837,32 +1850,32 @@ const Eo = /* @__PURE__ */ v($o, [["render", Ro]]);
1837
1850
  function Le(e) {
1838
1851
  return e.replace(/http(s)?:/, "");
1839
1852
  }
1840
- function Po(e = "", t, n) {
1853
+ function Ao(e = "", t, n) {
1841
1854
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
1842
1855
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
1843
1856
  }
1844
- function Ao(e, t) {
1857
+ function Po(e, t) {
1845
1858
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1846
1859
  return e;
1847
1860
  if (t === "master")
1848
1861
  return Le(e);
1849
1862
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1850
1863
  if (n) {
1851
- const o = e.split(n[0]), r = n[3], s = t.match("x") ? t : `${t}x`;
1852
- return Le(`${o[0]}_${s}${r}`);
1864
+ const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
1865
+ return Le(`${o[0]}_${i}${r}`);
1853
1866
  }
1854
1867
  return null;
1855
1868
  }
1856
- function oe(e) {
1869
+ function ne(e) {
1857
1870
  if (!e)
1858
1871
  return e;
1859
1872
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1860
1873
  if (e.match(/builder\.io/)) {
1861
1874
  let n = e;
1862
1875
  const o = Number(e.split("?width=")[1]);
1863
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Po(e, "width", r)} ${r}w`).concat([n]).join(", ");
1876
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Ao(e, "width", r)} ${r}w`).concat([n]).join(", ");
1864
1877
  }
1865
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ao(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1878
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Po(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1866
1879
  }
1867
1880
  const Bo = y({
1868
1881
  name: "builder-image",
@@ -1894,10 +1907,10 @@ const Bo = y({
1894
1907
  if (!this.noWebp) {
1895
1908
  if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
1896
1909
  if (!this.srcset.includes(this.image.split("?")[0]))
1897
- return console.debug("Removed given srcset"), oe(t);
1910
+ return console.debug("Removed given srcset"), ne(t);
1898
1911
  } else if (this.image && !this.srcset)
1899
- return oe(t);
1900
- return oe(t);
1912
+ return ne(t);
1913
+ return ne(t);
1901
1914
  }
1902
1915
  },
1903
1916
  webpSrcSet() {
@@ -1915,12 +1928,12 @@ const Bo = y({
1915
1928
  return this.aspectRatio ? e : void 0;
1916
1929
  }
1917
1930
  }
1918
- }), Vo = ["srcset"], No = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], Wo = {
1931
+ }), Vo = ["srcset"], No = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], xo = {
1919
1932
  key: 2,
1920
- class: "div-29wpyomtntv-2"
1933
+ class: "div-t43jfuqn6g-2"
1921
1934
  };
1922
- function xo(e, t, n, o, r, s) {
1923
- var i, a, l, u, p, f;
1935
+ function Wo(e, t, n, o, r, i) {
1936
+ var s, l, a, u, p, f;
1924
1937
  return d(), h(I, null, [
1925
1938
  z("picture", null, [
1926
1939
  e.webpSrcSet ? (d(), h("source", {
@@ -1934,40 +1947,40 @@ function xo(e, t, n, o, r, s) {
1934
1947
  alt: e.altText,
1935
1948
  title: e.title,
1936
1949
  role: e.altText ? void 0 : "presentation",
1937
- style: j({
1950
+ style: M({
1938
1951
  objectPosition: e.backgroundPosition || "center",
1939
1952
  objectFit: e.backgroundSize || "cover",
1940
1953
  ...e.aspectRatioCss
1941
1954
  }),
1942
- class: ee(
1943
- "builder-image" + (e.className ? " " + e.className : "") + " img-29wpyomtntv"
1955
+ class: _(
1956
+ "builder-image" + (e.className ? " " + e.className : "") + " img-t43jfuqn6g"
1944
1957
  ),
1945
1958
  src: e.image,
1946
1959
  srcset: e.srcSetToUse,
1947
1960
  sizes: e.sizes
1948
1961
  }, null, 14, No)
1949
1962
  ]),
1950
- e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? (d(), h("div", {
1963
+ e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (d(), h("div", {
1951
1964
  key: 0,
1952
- class: "builder-image-sizer div-29wpyomtntv",
1953
- style: j({
1965
+ class: "builder-image-sizer div-t43jfuqn6g",
1966
+ style: M({
1954
1967
  paddingTop: e.aspectRatio * 100 + "%"
1955
1968
  })
1956
1969
  }, null, 4)) : C("", !0),
1957
- (u = (l = e.builderBlock) == null ? void 0 : l.children) != null && u.length && e.fitContent ? V(e.$slots, "default", { key: 1 }, void 0, !0) : C("", !0),
1958
- !e.fitContent && ((f = (p = e.builderBlock) == null ? void 0 : p.children) != null && f.length) ? (d(), h("div", Wo, [
1970
+ (u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? V(e.$slots, "default", { key: 1 }, void 0, !0) : C("", !0),
1971
+ !e.fitContent && ((f = (p = e.builderBlock) == null ? void 0 : p.children) != null && f.length) ? (d(), h("div", xo, [
1959
1972
  V(e.$slots, "default", {}, void 0, !0)
1960
1973
  ])) : C("", !0)
1961
1974
  ], 64);
1962
1975
  }
1963
- const Do = /* @__PURE__ */ v(Bo, [["render", xo], ["__scopeId", "data-v-e6416c92"]]), Oo = y({
1976
+ const Do = /* @__PURE__ */ v(Bo, [["render", Wo], ["__scopeId", "data-v-741b9bbc"]]), Oo = y({
1964
1977
  name: "builder-section-component",
1965
1978
  props: ["attributes", "maxWidth"],
1966
1979
  data() {
1967
- return { filterAttrs: W };
1980
+ return { filterAttrs: N };
1968
1981
  }
1969
1982
  });
1970
- function Uo(e, t, n, o, r, s) {
1983
+ function Uo(e, t, n, o, r, i) {
1971
1984
  return d(), h("section", w({
1972
1985
  style: {
1973
1986
  width: "100%",
@@ -1981,7 +1994,7 @@ function Uo(e, t, n, o, r, s) {
1981
1994
  marginLeft: "auto",
1982
1995
  marginRight: "auto"
1983
1996
  }
1984
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
1997
+ }, e.filterAttrs(e.attributes, "v-on:", !1), F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
1985
1998
  V(e.$slots, "default")
1986
1999
  ], 16);
1987
2000
  }
@@ -1990,24 +2003,24 @@ function Lo(e, t, n, o) {
1990
2003
  function r(u) {
1991
2004
  return typeof u == "string";
1992
2005
  }
1993
- function s(u) {
2006
+ function i(u) {
1994
2007
  return typeof u == "number";
1995
2008
  }
1996
- function i(u, p) {
2009
+ function s(u, p) {
1997
2010
  return (() => {
1998
2011
  const c = p.property, m = p.operator;
1999
2012
  let b = p.value;
2000
2013
  if (p && p.property === "urlPath" && p.value && typeof p.value == "string" && p.value !== "/" && p.value.endsWith("/") && (b = p.value.slice(0, -1)), !(c && m))
2001
2014
  return !0;
2002
2015
  if (Array.isArray(b))
2003
- return m === "isNot" ? b.every((A) => i(u, {
2016
+ return m === "isNot" ? b.every((P) => s(u, {
2004
2017
  property: c,
2005
2018
  operator: m,
2006
- value: A
2007
- })) : !!b.find((A) => i(u, {
2019
+ value: P
2020
+ })) : !!b.find((P) => s(u, {
2008
2021
  property: c,
2009
2022
  operator: m,
2010
- value: A
2023
+ value: P
2011
2024
  }));
2012
2025
  const g = u[c];
2013
2026
  if (Array.isArray(g))
@@ -2024,24 +2037,24 @@ function Lo(e, t, n, o) {
2024
2037
  case "endsWith":
2025
2038
  return r(g) && g.endsWith(String(b));
2026
2039
  case "greaterThan":
2027
- return s(g) && s(b) && g > b;
2040
+ return i(g) && i(b) && g > b;
2028
2041
  case "lessThan":
2029
- return s(g) && s(b) && g < b;
2042
+ return i(g) && i(b) && g < b;
2030
2043
  case "greaterThanOrEqualTo":
2031
- return s(g) && s(b) && g >= b;
2044
+ return i(g) && i(b) && g >= b;
2032
2045
  case "lessThanOrEqualTo":
2033
- return s(g) && s(b) && g <= b;
2046
+ return i(g) && i(b) && g <= b;
2034
2047
  default:
2035
2048
  return !1;
2036
2049
  }
2037
2050
  })();
2038
2051
  }
2039
- const a = {
2052
+ const l = {
2040
2053
  query: t,
2041
2054
  startDate: n,
2042
2055
  endDate: o
2043
- }, l = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
2044
- return a.startDate && new Date(a.startDate) > l || a.endDate && new Date(a.endDate) < l ? !1 : !a.query || !a.query.length ? !0 : a.query.every((u) => i(e, u));
2056
+ }, a = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
2057
+ return l.startDate && new Date(l.startDate) > a || l.endDate && new Date(l.endDate) < a ? !1 : !l.query || !l.query.length ? !0 : l.query.every((u) => s(e, u));
2045
2058
  }
2046
2059
  const Ho = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
2047
2060
  if (!navigator.cookieEnabled) {
@@ -2204,7 +2217,7 @@ const Ho = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
2204
2217
  visibilityStylesEl.innerHTML = newStyleStr;
2205
2218
  }
2206
2219
  }
2207
- }`, re = "default", Ko = "filterWithCustomTargeting", vt = "builderIoPersonalization", St = "updateVisibilityStylesScript", kt = ["react", "vue", "svelte", "qwik"], Ct = ["vue", "svelte", "qwik"];
2220
+ }`, oe = "default", Ko = "filterWithCustomTargeting", vt = "builderIoPersonalization", St = "updateVisibilityStylesScript", kt = ["react", "vue", "svelte", "qwik"], Ct = ["vue", "svelte", "qwik"];
2208
2221
  function qo(e, t) {
2209
2222
  return !(e && e.length > 0) || !t ? !1 : Ct.includes($) ? !0 : !R();
2210
2223
  }
@@ -2215,42 +2228,42 @@ function zo({
2215
2228
  filteredVariants: o,
2216
2229
  fallbackBlocks: r
2217
2230
  }) {
2218
- const s = {
2231
+ const i = {
2219
2232
  blocks: r ?? [],
2220
2233
  path: "this.children",
2221
- index: re
2234
+ index: oe
2222
2235
  };
2223
- if (n && P()) {
2236
+ if (n && A()) {
2224
2237
  if (typeof t == "number" && t < ((e == null ? void 0 : e.length) ?? 0)) {
2225
- const i = e == null ? void 0 : e[t];
2226
- if (i)
2238
+ const s = e == null ? void 0 : e[t];
2239
+ if (s)
2227
2240
  return {
2228
- blocks: i.blocks,
2241
+ blocks: s.blocks,
2229
2242
  path: `variants.${t}.blocks`,
2230
2243
  index: t
2231
2244
  };
2232
2245
  }
2233
- return s;
2246
+ return i;
2234
2247
  }
2235
2248
  if (R()) {
2236
- const i = o == null ? void 0 : o[0];
2237
- if (i && e) {
2238
- const a = e.indexOf(i);
2239
- if (a !== -1)
2249
+ const s = o == null ? void 0 : o[0];
2250
+ if (s && e) {
2251
+ const l = e.indexOf(s);
2252
+ if (l !== -1)
2240
2253
  return {
2241
- blocks: i.blocks,
2242
- path: `variants.${a}.blocks`,
2243
- index: a
2254
+ blocks: s.blocks,
2255
+ path: `variants.${l}.blocks`,
2256
+ index: l
2244
2257
  };
2245
2258
  }
2246
2259
  }
2247
- return s;
2260
+ return i;
2248
2261
  }
2249
2262
  const Go = () => `
2250
2263
  window.${Ko} = ${Mo}
2251
2264
  window.${vt} = ${Ho}
2252
2265
  window.${St} = ${jo}
2253
- `, Tt = $ === "react", Jo = (e, t, n) => `window.${vt}(${JSON.stringify(e)}, "${t}", ${Tt}${n ? `, "${n}"` : ""})`, Qo = (e, t, n) => `window.${St}(${JSON.stringify(e)}, "${t}", ${Tt}${n ? `, "${n}"` : ""})`, pe = {
2266
+ `, Tt = $ === "react", Jo = (e, t, n) => `window.${vt}(${JSON.stringify(e)}, "${t}", ${Tt}${n ? `, "${n}"` : ""})`, Qo = (e, t, n) => `window.${St}(${JSON.stringify(e)}, "${t}", ${Tt}${n ? `, "${n}"` : ""})`, ue = {
2254
2267
  "@type": "@builder.io/sdk:Element",
2255
2268
  layerName: "Accordion item title",
2256
2269
  responsiveStyles: {
@@ -2279,7 +2292,7 @@ const Go = () => `
2279
2292
  }
2280
2293
  }
2281
2294
  }]
2282
- }, me = {
2295
+ }, pe = {
2283
2296
  "@type": "@builder.io/sdk:Element",
2284
2297
  layerName: "Accordion item detail",
2285
2298
  responsiveStyles: {
@@ -2327,19 +2340,19 @@ const Go = () => `
2327
2340
  name: "title",
2328
2341
  type: "uiBlocks",
2329
2342
  hideFromUI: !0,
2330
- defaultValue: [pe]
2343
+ defaultValue: [ue]
2331
2344
  }, {
2332
2345
  name: "detail",
2333
2346
  type: "uiBlocks",
2334
2347
  hideFromUI: !0,
2335
- defaultValue: [me]
2348
+ defaultValue: [pe]
2336
2349
  }],
2337
2350
  defaultValue: [{
2338
- title: [pe],
2339
- detail: [me]
2351
+ title: [ue],
2352
+ detail: [pe]
2340
2353
  }, {
2341
- title: [pe],
2342
- detail: [me]
2354
+ title: [ue],
2355
+ detail: [pe]
2343
2356
  }],
2344
2357
  showIf: (e) => !e.get("useChildrenForItems")
2345
2358
  }, {
@@ -2427,18 +2440,18 @@ const Go = () => `
2427
2440
  `.builder-accordion-title[data-index="${n}"]`
2428
2441
  );
2429
2442
  if (e = n, r) {
2430
- let s = r.getBoundingClientRect();
2443
+ let i = r.getBoundingClientRect();
2431
2444
  for (; r = r && r.nextElementSibling; )
2432
2445
  if (r) {
2433
2446
  if (r.classList.contains("builder-accordion-detail"))
2434
2447
  continue;
2435
- const i = r.getBoundingClientRect();
2436
- if (i.left > s.left) {
2437
- const a = parseInt(
2448
+ const s = r.getBoundingClientRect();
2449
+ if (s.left > i.left) {
2450
+ const l = parseInt(
2438
2451
  r.getAttribute("data-index") || "",
2439
2452
  10
2440
2453
  );
2441
- isNaN(a) || (s = i, e = a);
2454
+ isNaN(l) || (i = s, e = l);
2442
2455
  } else
2443
2456
  break;
2444
2457
  }
@@ -2470,42 +2483,42 @@ const Go = () => `
2470
2483
  }
2471
2484
  }
2472
2485
  }), _o = ["data-index", "onClick"];
2473
- function er(e, t, n, o, r, s) {
2474
- const i = k("Blocks");
2486
+ function er(e, t, n, o, r, i) {
2487
+ const s = k("Blocks");
2475
2488
  return d(), h("div", {
2476
2489
  class: "builder-accordion",
2477
- style: j(e.accordionStyles)
2490
+ style: M(e.accordionStyles)
2478
2491
  }, [
2479
- (d(!0), h(I, null, L(e.items, (a, l) => (d(), h(I, { key: l }, [
2492
+ (d(!0), h(I, null, L(e.items, (l, a) => (d(), h(I, { key: a }, [
2480
2493
  z("div", {
2481
- class: ee(e.getAccordionTitleClassName(l)),
2482
- style: j({
2494
+ class: _(e.getAccordionTitleClassName(a)),
2495
+ style: M({
2483
2496
  ...e.accordionTitleStyles,
2484
2497
  ...e.grid && {
2485
2498
  width: e.gridRowWidth,
2486
- order: e.openGridItemOrder !== null ? e.convertOrderNumberToString(l) : e.convertOrderNumberToString(l + 1)
2499
+ order: e.openGridItemOrder !== null ? e.convertOrderNumberToString(a) : e.convertOrderNumberToString(a + 1)
2487
2500
  }
2488
2501
  }),
2489
- "data-index": l,
2490
- onClick: async (u) => e.onClick(l)
2502
+ "data-index": a,
2503
+ onClick: async (u) => e.onClick(a)
2491
2504
  }, [
2492
- E(i, {
2493
- blocks: a.title,
2494
- path: `items.${l}.title`,
2505
+ E(s, {
2506
+ blocks: l.title,
2507
+ path: `items.${a}.title`,
2495
2508
  parent: e.builderBlock.id,
2496
2509
  context: e.builderContext,
2497
2510
  registeredComponents: e.builderComponents,
2498
2511
  linkComponent: e.builderLinkComponent
2499
2512
  }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
2500
2513
  ], 14, _o),
2501
- e.open.includes(l) ? (d(), h("div", {
2514
+ e.open.includes(a) ? (d(), h("div", {
2502
2515
  key: 0,
2503
- class: ee(e.getAccordionDetailClassName(l)),
2504
- style: j(e.accordionDetailStyles)
2516
+ class: _(e.getAccordionDetailClassName(a)),
2517
+ style: M(e.accordionDetailStyles)
2505
2518
  }, [
2506
- E(i, {
2507
- blocks: a.detail,
2508
- path: `items.${l}.detail`,
2519
+ E(s, {
2520
+ blocks: l.detail,
2521
+ path: `items.${a}.detail`,
2509
2522
  parent: e.builderBlock.id,
2510
2523
  context: e.builderContext,
2511
2524
  registeredComponents: e.builderComponents,
@@ -2730,7 +2743,7 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
2730
2743
  });
2731
2744
  }
2732
2745
  const n = e.get("columns");
2733
- Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((s) => !s.get("width")) || n.reduce((a, l) => a + l.get("width"), 0) !== 100) && t();
2746
+ Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((i) => !i.get("width")) || n.reduce((l, a) => l + a.get("width"), 0) !== 100) && t();
2734
2747
  }
2735
2748
  }, {
2736
2749
  name: "space",
@@ -2784,29 +2797,29 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
2784
2797
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
2785
2798
  onChange: (e) => {
2786
2799
  e.delete("srcset"), e.delete("noWebp");
2787
- function n(i, a = 6e4) {
2788
- return new Promise((l, u) => {
2800
+ function n(s, l = 6e4) {
2801
+ return new Promise((a, u) => {
2789
2802
  const p = document.createElement("img");
2790
2803
  let f = !1;
2791
2804
  p.onload = () => {
2792
- f = !0, l(p);
2805
+ f = !0, a(p);
2793
2806
  }, p.addEventListener("error", (c) => {
2794
2807
  console.warn("Image load failed", c.error), u(c.error);
2795
- }), p.src = i, setTimeout(() => {
2808
+ }), p.src = s, setTimeout(() => {
2796
2809
  f || u(new Error("Image load timed out"));
2797
- }, a);
2810
+ }, l);
2798
2811
  });
2799
2812
  }
2800
- function o(i) {
2801
- return Math.round(i * 1e3) / 1e3;
2813
+ function o(s) {
2814
+ return Math.round(s * 1e3) / 1e3;
2802
2815
  }
2803
- const r = e.get("image"), s = e.get("aspectRatio");
2804
- if (fetch(r).then((i) => i.blob()).then((i) => {
2805
- i.type.includes("svg") && e.set("noWebp", !0);
2806
- }), r && (!s || s === 0.7041))
2807
- return n(r).then((i) => {
2808
- const a = e.get("aspectRatio");
2809
- e.get("image") === r && (!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));
2816
+ const r = e.get("image"), i = e.get("aspectRatio");
2817
+ if (fetch(r).then((s) => s.blob()).then((s) => {
2818
+ s.type.includes("svg") && e.set("noWebp", !0);
2819
+ }), r && (!i || i === 0.7041))
2820
+ return n(r).then((s) => {
2821
+ const l = e.get("aspectRatio");
2822
+ e.get("image") === r && (!l || l === 0.7041) && s.width && s.height && (e.set("aspectRatio", o(s.height / s.width)), e.set("height", s.height), e.set("width", s.width));
2810
2823
  });
2811
2824
  }
2812
2825
  }, {
@@ -2912,7 +2925,7 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
2912
2925
  defaultValue: []
2913
2926
  }]
2914
2927
  }]
2915
- }, Be = y({
2928
+ }, Pe = y({
2916
2929
  render() {
2917
2930
  return Ke("script", {
2918
2931
  innerHTML: this.scriptStr,
@@ -2926,8 +2939,8 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
2926
2939
  name: "builder-personalization-container",
2927
2940
  components: {
2928
2941
  Blocks: q,
2929
- InlinedStyles: ue,
2930
- InlinedScript: Be
2942
+ InlinedStyles: de,
2943
+ InlinedScript: Pe
2931
2944
  },
2932
2945
  props: [
2933
2946
  "builderContext",
@@ -2938,9 +2951,9 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
2938
2951
  "builderComponents"
2939
2952
  ],
2940
2953
  data() {
2941
- var e, t, n, o, r, s, i;
2954
+ var e, t, n, o, r, i, s;
2942
2955
  return {
2943
- userAttributes: le.getUserAttributes(),
2956
+ userAttributes: ae.getUserAttributes(),
2944
2957
  scriptStr: Jo(
2945
2958
  this.variants,
2946
2959
  ((e = this.builderBlock) == null ? void 0 : e.id) || "none",
@@ -2949,23 +2962,23 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
2949
2962
  updateVisibilityStylesScript: Qo(
2950
2963
  this.variants,
2951
2964
  ((o = this.builderBlock) == null ? void 0 : o.id) || "none",
2952
- (s = (r = this.builderContext) == null ? void 0 : r.rootState) == null ? void 0 : s.locale
2965
+ (i = (r = this.builderContext) == null ? void 0 : r.rootState) == null ? void 0 : i.locale
2953
2966
  ),
2954
2967
  unsubscribers: [],
2955
2968
  shouldRenderVariants: qo(
2956
2969
  this.variants,
2957
- J((i = this.builderContext) == null ? void 0 : i.canTrack)
2970
+ G((s = this.builderContext) == null ? void 0 : s.canTrack)
2958
2971
  ),
2959
2972
  shouldResetVariants: !1,
2960
2973
  TARGET: $,
2961
- DEFAULT_INDEX: re,
2974
+ DEFAULT_INDEX: oe,
2962
2975
  SDKS_REQUIRING_RESET_APPROACH: Ct
2963
2976
  };
2964
2977
  },
2965
2978
  mounted() {
2966
2979
  var t;
2967
2980
  this.shouldResetVariants = !0;
2968
- const e = le.subscribeOnUserAttributesChange(
2981
+ const e = ae.subscribeOnUserAttributesChange(
2969
2982
  (n) => {
2970
2983
  this.userAttributes = n;
2971
2984
  },
@@ -2973,24 +2986,24 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
2973
2986
  fireImmediately: $ === "qwik"
2974
2987
  }
2975
2988
  );
2976
- if (!(P() || Te())) {
2989
+ if (!(A() || Ce())) {
2977
2990
  const n = this.filteredVariants[0];
2978
2991
  this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
2979
2992
  new CustomEvent("builder.variantLoaded", {
2980
2993
  detail: {
2981
- variant: n || re,
2994
+ variant: n || oe,
2982
2995
  content: (t = this.builderContext) == null ? void 0 : t.content
2983
2996
  },
2984
2997
  bubbles: !0
2985
2998
  })
2986
2999
  ), new IntersectionObserver((r) => {
2987
- r.forEach((s) => {
2988
- var i;
2989
- s.isIntersecting && this.$refs.rootRef && this.$refs.rootRef.dispatchEvent(
3000
+ r.forEach((i) => {
3001
+ var s;
3002
+ i.isIntersecting && this.$refs.rootRef && this.$refs.rootRef.dispatchEvent(
2990
3003
  new CustomEvent("builder.variantDisplayed", {
2991
3004
  detail: {
2992
- variant: n || re,
2993
- content: (i = this.builderContext) == null ? void 0 : i.content
3005
+ variant: n || oe,
3006
+ content: (s = this.builderContext) == null ? void 0 : s.content
2994
3007
  },
2995
3008
  bubbles: !0
2996
3009
  })
@@ -3006,9 +3019,9 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
3006
3019
  computed: {
3007
3020
  attrs() {
3008
3021
  return {
3009
- ...W(this.attributes, "v-on:", !1),
3010
- ...W(this.attributes, "v-on:", !0),
3011
- [G()]: `builder-personalization-container ${this.attributes[G()] || ""}`
3022
+ ...N(this.attributes, "v-on:", !1),
3023
+ ...N(this.attributes, "v-on:", !0),
3024
+ [j()]: `builder-personalization-container ${this.attributes[j()] || ""}`
3012
3025
  };
3013
3026
  },
3014
3027
  filteredVariants() {
@@ -3047,11 +3060,11 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
3047
3060
  }
3048
3061
  }
3049
3062
  });
3050
- function cr(e, t, n, o, r, s) {
3051
- var u, p, f, c, m, b, g, A, F, B;
3052
- const i = k("Blocks"), a = k("InlinedStyles"), l = k("InlinedScript");
3063
+ function cr(e, t, n, o, r, i) {
3064
+ var u, p, f, c, m, b, g, P, U, B;
3065
+ const s = k("Blocks"), l = k("InlinedStyles"), a = k("InlinedScript");
3053
3066
  return d(), h("div", w({ ref: "rootRef" }, e.attrs), [
3054
- e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), S(i, {
3067
+ e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), S(s, {
3055
3068
  key: 0,
3056
3069
  blocks: e.blocksToRender.blocks,
3057
3070
  parent: (u = e.builderBlock) == null ? void 0 : u.id,
@@ -3065,39 +3078,39 @@ function cr(e, t, n, o, r, s) {
3065
3078
  }, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) : C("", !0),
3066
3079
  !e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), h(I, { key: 1 }, [
3067
3080
  e.shouldRenderVariants ? (d(), h(I, { key: 0 }, [
3068
- E(a, {
3081
+ E(l, {
3069
3082
  nonce: ((c = e.builderContext) == null ? void 0 : c.nonce) || "",
3070
3083
  styles: e.hideVariantsStyleString,
3071
3084
  id: `variants-styles-${(m = e.builderBlock) == null ? void 0 : m.id}`
3072
3085
  }, null, 8, ["nonce", "styles", "id"]),
3073
- E(l, {
3086
+ E(a, {
3074
3087
  nonce: ((b = e.builderContext) == null ? void 0 : b.nonce) || "",
3075
3088
  scriptStr: e.updateVisibilityStylesScript,
3076
3089
  id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
3077
3090
  }, null, 8, ["nonce", "scriptStr", "id"]),
3078
- (d(!0), h(I, null, L(e.variants, (T, x) => {
3079
- var H, Q, Y, D;
3080
- return d(), S(i, {
3081
- key: `${(H = e.builderBlock) == null ? void 0 : H.id}-${x}`,
3091
+ (d(!0), h(I, null, L(e.variants, (T, W) => {
3092
+ var J, Q, D, H;
3093
+ return d(), S(s, {
3094
+ key: `${(J = e.builderBlock) == null ? void 0 : J.id}-${W}`,
3082
3095
  BlocksWrapperProps: {
3083
3096
  ...(Q = e.builderContext) == null ? void 0 : Q.BlocksWrapperProps,
3084
3097
  "aria-hidden": !0,
3085
3098
  hidden: !0,
3086
- "data-variant-id": `${(Y = e.builderBlock) == null ? void 0 : Y.id}-${x}`
3099
+ "data-variant-id": `${(D = e.builderBlock) == null ? void 0 : D.id}-${W}`
3087
3100
  },
3088
3101
  blocks: T.blocks,
3089
- parent: (D = e.builderBlock) == null ? void 0 : D.id,
3090
- path: `component.options.variants.${x}.blocks`,
3102
+ parent: (H = e.builderBlock) == null ? void 0 : H.id,
3103
+ path: `component.options.variants.${W}.blocks`,
3091
3104
  context: e.builderContext,
3092
3105
  registeredComponents: e.builderComponents
3093
3106
  }, {
3094
- default: U(() => {
3095
- var M, Ve;
3107
+ default: O(() => {
3108
+ var Be, Ve;
3096
3109
  return [
3097
- E(l, {
3098
- nonce: ((M = e.builderContext) == null ? void 0 : M.nonce) || "",
3110
+ E(a, {
3111
+ nonce: ((Be = e.builderContext) == null ? void 0 : Be.nonce) || "",
3099
3112
  scriptStr: e.scriptStr,
3100
- id: `variants-script-${(Ve = e.builderBlock) == null ? void 0 : Ve.id}-${x}`
3113
+ id: `variants-script-${(Ve = e.builderBlock) == null ? void 0 : Ve.id}-${W}`
3101
3114
  }, null, 8, ["nonce", "scriptStr", "id"])
3102
3115
  ];
3103
3116
  }),
@@ -3105,25 +3118,25 @@ function cr(e, t, n, o, r, s) {
3105
3118
  }, 1032, ["BlocksWrapperProps", "blocks", "parent", "path", "context", "registeredComponents"]);
3106
3119
  }), 128))
3107
3120
  ], 64)) : C("", !0),
3108
- E(i, {
3121
+ E(s, {
3109
3122
  blocks: e.blocksToRender.blocks,
3110
- parent: (A = e.builderBlock) == null ? void 0 : A.id,
3123
+ parent: (P = e.builderBlock) == null ? void 0 : P.id,
3111
3124
  path: e.blocksToRender.path,
3112
3125
  context: e.builderContext,
3113
3126
  registeredComponents: e.builderComponents,
3114
3127
  BlocksWrapperProps: {
3115
- ...(F = e.builderContext) == null ? void 0 : F.BlocksWrapperProps,
3128
+ ...(U = e.builderContext) == null ? void 0 : U.BlocksWrapperProps,
3116
3129
  "data-variant-id": `${(B = e.builderBlock) == null ? void 0 : B.id}-${e.blocksToRender.index}`
3117
3130
  }
3118
3131
  }, {
3119
- default: U(() => {
3120
- var T, x;
3132
+ default: O(() => {
3133
+ var T, W;
3121
3134
  return [
3122
- e.shouldRenderVariants ? (d(), S(l, {
3135
+ e.shouldRenderVariants ? (d(), S(a, {
3123
3136
  key: 0,
3124
3137
  nonce: ((T = e.builderContext) == null ? void 0 : T.nonce) || "",
3125
3138
  scriptStr: e.scriptStr,
3126
- id: `variants-script-${(x = e.builderBlock) == null ? void 0 : x.id}-${e.DEFAULT_INDEX}`
3139
+ id: `variants-script-${(W = e.builderBlock) == null ? void 0 : W.id}-${e.DEFAULT_INDEX}`
3127
3140
  }, null, 8, ["nonce", "scriptStr", "id"])) : C("", !0)
3128
3141
  ];
3129
3142
  }),
@@ -3193,19 +3206,19 @@ const dr = /* @__PURE__ */ v(lr, [["render", cr]]), ur = {
3193
3206
  components: { Blocks: q },
3194
3207
  props: ["builderContext", "name", "builderComponents"]
3195
3208
  });
3196
- function hr(e, t, n, o, r, s) {
3197
- var a, l, u;
3198
- const i = k("Blocks");
3209
+ function hr(e, t, n, o, r, i) {
3210
+ var l, a, u;
3211
+ const s = k("Blocks");
3199
3212
  return d(), h("div", w(
3200
3213
  { style: {
3201
3214
  pointerEvents: "auto"
3202
3215
  } },
3203
- !((a = e.builderContext.context) != null && a.symbolId) && {
3216
+ !((l = e.builderContext.context) != null && l.symbolId) && {
3204
3217
  "builder-slot": e.name
3205
3218
  }
3206
3219
  ), [
3207
- E(i, {
3208
- parent: (l = e.builderContext.context) == null ? void 0 : l.symbolId,
3220
+ E(s, {
3221
+ parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
3209
3222
  path: `symbol.data.${e.name}`,
3210
3223
  context: e.builderContext,
3211
3224
  registeredComponents: e.builderComponents,
@@ -3252,7 +3265,7 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
3252
3265
  builderComponents: !0,
3253
3266
  builderLinkComponent: !0
3254
3267
  }
3255
- }, he = {
3268
+ }, me = {
3256
3269
  "@type": "@builder.io/sdk:Element",
3257
3270
  responsiveStyles: {
3258
3271
  large: {
@@ -3274,7 +3287,7 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
3274
3287
  text: "New tab"
3275
3288
  }
3276
3289
  }
3277
- }, fe = {
3290
+ }, he = {
3278
3291
  "@type": "@builder.io/sdk:Element",
3279
3292
  responsiveStyles: {
3280
3293
  large: {
@@ -3300,16 +3313,16 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
3300
3313
  name: "label",
3301
3314
  type: "uiBlocks",
3302
3315
  hideFromUI: !0,
3303
- defaultValue: [he]
3316
+ defaultValue: [me]
3304
3317
  }, {
3305
3318
  name: "content",
3306
3319
  type: "uiBlocks",
3307
3320
  hideFromUI: !0,
3308
- defaultValue: [fe]
3321
+ defaultValue: [he]
3309
3322
  }],
3310
3323
  defaultValue: [{
3311
3324
  label: [{
3312
- ...he,
3325
+ ...me,
3313
3326
  component: {
3314
3327
  name: "Text",
3315
3328
  options: {
@@ -3318,7 +3331,7 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
3318
3331
  }
3319
3332
  }],
3320
3333
  content: [{
3321
- ...fe,
3334
+ ...he,
3322
3335
  component: {
3323
3336
  name: "Text",
3324
3337
  options: {
@@ -3328,7 +3341,7 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
3328
3341
  }]
3329
3342
  }, {
3330
3343
  label: [{
3331
- ...he,
3344
+ ...me,
3332
3345
  component: {
3333
3346
  name: "Text",
3334
3347
  options: {
@@ -3337,7 +3350,7 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
3337
3350
  }
3338
3351
  }],
3339
3352
  content: [{
3340
- ...fe,
3353
+ ...he,
3341
3354
  component: {
3342
3355
  name: "Text",
3343
3356
  options: {
@@ -3399,9 +3412,9 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
3399
3412
  props: [
3400
3413
  "defaultActiveTab",
3401
3414
  "tabs",
3415
+ "activeTabStyle",
3402
3416
  "collapsible",
3403
3417
  "tabHeaderLayout",
3404
- "activeTabStyle",
3405
3418
  "builderBlock",
3406
3419
  "builderContext",
3407
3420
  "builderComponents",
@@ -3414,35 +3427,36 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
3414
3427
  activeTabContent(e) {
3415
3428
  return this.tabs && this.tabs[e].content;
3416
3429
  },
3430
+ getTabStyle(e) {
3431
+ return e === this.activeTab ? this.activeTabStyle : {};
3432
+ },
3417
3433
  onClick(e) {
3418
3434
  e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
3419
3435
  }
3420
3436
  }
3421
3437
  }), vr = ["onClick"], Sr = { key: 0 };
3422
- function kr(e, t, n, o, r, s) {
3423
- const i = k("Blocks");
3438
+ function kr(e, t, n, o, r, i) {
3439
+ const s = k("Blocks");
3424
3440
  return d(), h("div", null, [
3425
3441
  z("div", {
3426
3442
  class: "builder-tabs-wrap",
3427
- style: j({
3443
+ style: M({
3428
3444
  display: "flex",
3429
3445
  flexDirection: "row",
3430
3446
  justifyContent: e.tabHeaderLayout || "flex-start",
3431
3447
  overflow: "auto"
3432
3448
  })
3433
3449
  }, [
3434
- (d(!0), h(I, null, L(e.tabs, (a, l) => (d(), h("span", {
3435
- key: l,
3436
- class: ee(`builder-tab-wrap ${e.activeTab === l ? "builder-tab-active" : ""}`),
3437
- style: j({
3438
- ...e.activeTab === l ? e.activeTabStyle : {}
3439
- }),
3440
- onClick: async (u) => e.onClick(l)
3450
+ (d(!0), h(I, null, L(e.tabs, (l, a) => (d(), h("span", {
3451
+ key: a,
3452
+ class: _(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
3453
+ style: M(e.getTabStyle(a)),
3454
+ onClick: async (u) => e.onClick(a)
3441
3455
  }, [
3442
- E(i, {
3456
+ E(s, {
3443
3457
  parent: e.builderBlock.id,
3444
- path: `tabs.${l}.label`,
3445
- blocks: a.label,
3458
+ path: `tabs.${a}.label`,
3459
+ blocks: l.label,
3446
3460
  context: e.builderContext,
3447
3461
  registeredComponents: e.builderComponents,
3448
3462
  linkComponent: e.builderLinkComponent
@@ -3450,7 +3464,7 @@ function kr(e, t, n, o, r, s) {
3450
3464
  ], 14, vr))), 128))
3451
3465
  ], 4),
3452
3466
  e.activeTabContent(e.activeTab) ? (d(), h("div", Sr, [
3453
- E(i, {
3467
+ E(s, {
3454
3468
  parent: e.builderBlock.id,
3455
3469
  path: `tabs.${e.activeTab}.content`,
3456
3470
  blocks: e.activeTabContent(e.activeTab),
@@ -3465,7 +3479,6 @@ const Cr = /* @__PURE__ */ v(yr, [["render", kr]]), Tr = {
3465
3479
  shouldReceiveBuilderProps: {},
3466
3480
  name: "Text",
3467
3481
  static: !0,
3468
- isRSC: !0,
3469
3482
  image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",
3470
3483
  inputs: [{
3471
3484
  name: "text",
@@ -3484,11 +3497,11 @@ const Cr = /* @__PURE__ */ v(yr, [["render", kr]]), Tr = {
3484
3497
  name: "builder-text",
3485
3498
  props: ["text"]
3486
3499
  }), wr = ["innerHTML"];
3487
- function $r(e, t, n, o, r, s) {
3488
- var i;
3500
+ function $r(e, t, n, o, r, i) {
3501
+ var s;
3489
3502
  return d(), h("div", {
3490
3503
  class: "builder-text",
3491
- innerHTML: ((i = e.text) == null ? void 0 : i.toString()) || "",
3504
+ innerHTML: ((s = e.text) == null ? void 0 : s.toString()) || "",
3492
3505
  style: {
3493
3506
  outline: "none"
3494
3507
  }
@@ -3516,7 +3529,7 @@ const Rr = /* @__PURE__ */ v(Ir, [["render", $r]]), Er = {
3516
3529
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
3517
3530
  advanced: !0
3518
3531
  }]
3519
- }, Pr = y({
3532
+ }, Ar = y({
3520
3533
  name: "builder-custom-code",
3521
3534
  props: ["code", "replaceNodes"],
3522
3535
  data() {
@@ -3528,7 +3541,7 @@ const Rr = /* @__PURE__ */ v(Ir, [["render", $r]]), Er = {
3528
3541
  watch: {
3529
3542
  onUpdateHook0: {
3530
3543
  handler() {
3531
- P() && setTimeout(() => {
3544
+ A() && setTimeout(() => {
3532
3545
  this.runScripts();
3533
3546
  }, 0);
3534
3547
  },
@@ -3566,7 +3579,7 @@ const Rr = /* @__PURE__ */ v(Ir, [["render", $r]]), Er = {
3566
3579
  try {
3567
3580
  this.scriptsRun.push(o.innerText), new Function(o.innerText)();
3568
3581
  } catch (r) {
3569
- N.warn(
3582
+ x.warn(
3570
3583
  "[BUILDER.IO] `CustomCode`: Error running script:",
3571
3584
  r
3572
3585
  );
@@ -3575,15 +3588,15 @@ const Rr = /* @__PURE__ */ v(Ir, [["render", $r]]), Er = {
3575
3588
  }
3576
3589
  }
3577
3590
  }
3578
- }), Ar = ["innerHTML"];
3579
- function Br(e, t, n, o, r, s) {
3591
+ }), Pr = ["innerHTML"];
3592
+ function Br(e, t, n, o, r, i) {
3580
3593
  return d(), h("div", {
3581
3594
  ref: "elementRef",
3582
- class: ee("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
3595
+ class: _("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
3583
3596
  innerHTML: e.code
3584
- }, null, 10, Ar);
3597
+ }, null, 10, Pr);
3585
3598
  }
3586
- const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
3599
+ const Vr = /* @__PURE__ */ v(Ar, [["render", Br]]), Nr = {
3587
3600
  name: "Embed",
3588
3601
  static: !0,
3589
3602
  inputs: [{
@@ -3598,7 +3611,7 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
3598
3611
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
3599
3612
  hideFromUI: !0
3600
3613
  }]
3601
- }, Wr = ["text/javascript", "application/javascript", "application/ecmascript"], xr = (e) => Wr.includes(e.type), Dr = y({
3614
+ }, xr = ["text/javascript", "application/javascript", "application/ecmascript"], Wr = (e) => xr.includes(e.type), Dr = y({
3602
3615
  name: "builder-embed",
3603
3616
  props: ["content"],
3604
3617
  data() {
@@ -3631,17 +3644,17 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
3631
3644
  this.scriptsInserted.push(n.src);
3632
3645
  const o = document.createElement("script");
3633
3646
  o.async = !0, o.src = n.src, document.head.appendChild(o);
3634
- } else if (xr(n) && !this.scriptsRun.includes(n.innerText))
3647
+ } else if (Wr(n) && !this.scriptsRun.includes(n.innerText))
3635
3648
  try {
3636
3649
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
3637
3650
  } catch (o) {
3638
- N.warn("[BUILDER.IO] `Embed`: Error running script:", o);
3651
+ x.warn("[BUILDER.IO] `Embed`: Error running script:", o);
3639
3652
  }
3640
3653
  }
3641
3654
  }
3642
3655
  }
3643
3656
  }), Or = ["innerHTML"];
3644
- function Ur(e, t, n, o, r, s) {
3657
+ function Ur(e, t, n, o, r, i) {
3645
3658
  return d(), h("div", {
3646
3659
  class: "builder-embed",
3647
3660
  ref: "elem",
@@ -3916,7 +3929,7 @@ const Fr = /* @__PURE__ */ v(Dr, [["render", Ur]]), Lr = {
3916
3929
  formState: "unsubmitted",
3917
3930
  responseData: null,
3918
3931
  formErrorMessage: "",
3919
- filterAttrs: W
3932
+ filterAttrs: N
3920
3933
  };
3921
3934
  },
3922
3935
  methods: {
@@ -3929,7 +3942,10 @@ const Fr = /* @__PURE__ */ v(Dr, [["render", Ur]]), Lr = {
3929
3942
  this.builderContext.rootSetState ? (o = (n = this.builderContext).rootSetState) == null || o.call(n, t) : this.builderContext.rootState = t;
3930
3943
  },
3931
3944
  submissionState() {
3932
- return P() && this.previewState || this.formState;
3945
+ return A() && this.previewState || this.formState;
3946
+ },
3947
+ errorResponse(e) {
3948
+ return JSON.stringify(e, null, 2);
3933
3949
  },
3934
3950
  onSubmit(e) {
3935
3951
  var n;
@@ -3943,14 +3959,16 @@ const Fr = /* @__PURE__ */ v(Dr, [["render", Ur]]), Lr = {
3943
3959
  }
3944
3960
  e.preventDefault();
3945
3961
  const o = e.currentTarget || e.target, r = this.customHeaders || {};
3946
- let s;
3947
- const i = new FormData(o), a = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).map((c) => {
3962
+ let i;
3963
+ const s = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).filter(
3964
+ (c) => !!c.name && (c.type !== "radio" || c.checked)
3965
+ ).map((c) => {
3948
3966
  let m;
3949
3967
  const b = c.name;
3950
3968
  if (c instanceof HTMLInputElement)
3951
3969
  if (c.type === "radio") {
3952
3970
  if (c.checked)
3953
- return m = c.name, {
3971
+ return m = c.value, {
3954
3972
  key: b,
3955
3973
  value: m
3956
3974
  };
@@ -3968,21 +3986,21 @@ const Fr = /* @__PURE__ */ v(Dr, [["render", Ur]]), Lr = {
3968
3986
  value: m
3969
3987
  };
3970
3988
  });
3971
- let l = this.contentType;
3972
- if (this.sendSubmissionsTo === "email" && (l = "multipart/form-data"), Array.from(a).forEach(({ value: c }) => {
3973
- (c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (l = "multipart/form-data");
3974
- }), l !== "application/json")
3975
- s = i;
3989
+ let a = this.contentType;
3990
+ if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value: c }) => {
3991
+ (c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (a = "multipart/form-data");
3992
+ }), a !== "application/json")
3993
+ i = s;
3976
3994
  else {
3977
3995
  const c = {};
3978
- Array.from(a).forEach(({ value: m, key: b }) => {
3996
+ Array.from(l).forEach(({ value: m, key: b }) => {
3979
3997
  qe(c, b, m);
3980
- }), s = JSON.stringify(c);
3998
+ }), i = JSON.stringify(c);
3981
3999
  }
3982
- l && l !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = l));
4000
+ a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
3983
4001
  const u = new CustomEvent("presubmit", {
3984
4002
  detail: {
3985
- body: s
4003
+ body: i
3986
4004
  }
3987
4005
  });
3988
4006
  if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(u), u.defaultPrevented))
@@ -3997,25 +4015,25 @@ const Fr = /* @__PURE__ */ v(Dr, [["render", Ur]]), Lr = {
3997
4015
  const p = `${Mr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
3998
4016
  this.sendSubmissionsToEmail || ""
3999
4017
  )}&name=${encodeURIComponent(this.name || "")}`, f = this.sendSubmissionsTo === "email" ? p : this.action;
4000
- we(f), fetch(f, {
4001
- body: s,
4018
+ Ie(f), fetch(f, {
4019
+ body: i,
4002
4020
  headers: r,
4003
4021
  method: this.method || "post"
4004
4022
  }).then(
4005
4023
  async (c) => {
4006
- var g, A;
4024
+ var g, P;
4007
4025
  let m;
4008
4026
  const b = c.headers.get("content-type");
4009
4027
  if (b && b.indexOf("application/json") !== -1 ? m = await c.json() : m = await c.text(), !c.ok) {
4010
- const F = new CustomEvent("submit:error", {
4028
+ const U = new CustomEvent("submit:error", {
4011
4029
  detail: {
4012
4030
  error: m,
4013
4031
  status: c.status
4014
4032
  }
4015
4033
  });
4016
- if ((g = this.$refs.formRef) != null && g.nativeElement && ((A = this.$refs.formRef) == null || A.nativeElement.dispatchEvent(
4017
- F
4018
- ), F.defaultPrevented))
4034
+ if ((g = this.$refs.formRef) != null && g.nativeElement && ((P = this.$refs.formRef) == null || P.nativeElement.dispatchEvent(
4035
+ U
4036
+ ), U.defaultPrevented))
4019
4037
  return;
4020
4038
  this.responseData = m, this.formState = "error";
4021
4039
  let B = this.errorMessagePath ? Je(m, this.errorMessagePath) : m.message || m.error || m;
@@ -4025,14 +4043,14 @@ const Fr = /* @__PURE__ */ v(Dr, [["render", Ur]]), Lr = {
4025
4043
  return;
4026
4044
  }
4027
4045
  if (this.responseData = m, this.formState = c.ok ? "success" : "error", c.ok) {
4028
- const F = new CustomEvent("submit:success", {
4046
+ const U = new CustomEvent("submit:success", {
4029
4047
  detail: {
4030
4048
  res: c,
4031
4049
  body: m
4032
4050
  }
4033
4051
  });
4034
4052
  if (this.$refs.formRef) {
4035
- if (this.$refs.formRef.dispatchEvent(F), F.defaultPrevented)
4053
+ if (this.$refs.formRef.dispatchEvent(U), U.defaultPrevented)
4036
4054
  return;
4037
4055
  this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
4038
4056
  }
@@ -4062,33 +4080,33 @@ const Fr = /* @__PURE__ */ v(Dr, [["render", Ur]]), Lr = {
4062
4080
  }
4063
4081
  }), Kr = ["validate", "action", "method", "name"], qr = {
4064
4082
  key: 2,
4065
- class: "builder-form-error-text pre-1hjwvu3r5mj"
4083
+ class: "builder-form-error-text pre-2oa2wtipkzk"
4066
4084
  };
4067
- function zr(e, t, n, o, r, s) {
4068
- const i = k("Blocks");
4085
+ function zr(e, t, n, o, r, i) {
4086
+ const s = k("Blocks");
4069
4087
  return d(), h("form", w({
4070
4088
  validate: e.validate,
4071
4089
  ref: "formRef",
4072
4090
  action: !e.sendWithJs && e.action,
4073
4091
  method: e.method,
4074
4092
  name: e.name,
4075
- onSubmit: t[0] || (t[0] = async (a) => e.onSubmit(a))
4076
- }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4093
+ onSubmit: t[0] || (t[0] = async (l) => e.onSubmit(l))
4094
+ }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4077
4095
  V(e.$slots, "default", {}, void 0, !0),
4078
- e.submissionState() === "error" ? (d(), S(i, {
4096
+ e.submissionState() === "error" ? (d(), S(s, {
4079
4097
  key: 0,
4080
4098
  path: "errorMessage",
4081
4099
  blocks: e.errorMessage,
4082
4100
  context: e.builderContext
4083
4101
  }, null, 8, ["blocks", "context"])) : C("", !0),
4084
- e.submissionState() === "sending" ? (d(), S(i, {
4102
+ e.submissionState() === "sending" ? (d(), S(s, {
4085
4103
  key: 1,
4086
4104
  path: "sendingMessage",
4087
4105
  blocks: e.sendingMessage,
4088
4106
  context: e.builderContext
4089
4107
  }, null, 8, ["blocks", "context"])) : C("", !0),
4090
- e.submissionState() === "error" && e.responseData ? (d(), h("pre", qr, ce(JSON.stringify(e.responseData, null, 2)), 1)) : C("", !0),
4091
- e.submissionState() === "success" ? (d(), S(i, {
4108
+ e.submissionState() === "error" && e.responseData ? (d(), h("pre", qr, le(e.errorResponse(e.responseData)), 1)) : C("", !0),
4109
+ e.submissionState() === "success" ? (d(), S(s, {
4092
4110
  key: 3,
4093
4111
  path: "successMessage",
4094
4112
  blocks: e.successMessage,
@@ -4096,7 +4114,7 @@ function zr(e, t, n, o, r, s) {
4096
4114
  }, null, 8, ["blocks", "context"])) : C("", !0)
4097
4115
  ], 16, Kr);
4098
4116
  }
4099
- const Gr = /* @__PURE__ */ v(jr, [["render", zr], ["__scopeId", "data-v-89aa89a6"]]), Jr = {
4117
+ const Gr = /* @__PURE__ */ v(jr, [["render", zr], ["__scopeId", "data-v-77c7888c"]]), Jr = {
4100
4118
  name: "Form:Input",
4101
4119
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
4102
4120
  inputs: [
@@ -4159,10 +4177,10 @@ const Gr = /* @__PURE__ */ v(jr, [["render", zr], ["__scopeId", "data-v-89aa89a6
4159
4177
  "required"
4160
4178
  ],
4161
4179
  data() {
4162
- return { isEditing: P, filterAttrs: W };
4180
+ return { isEditing: A, filterAttrs: N };
4163
4181
  }
4164
4182
  }), Yr = ["placeholder", "type", "name", "value", "defaultValue", "required"];
4165
- function Xr(e, t, n, o, r, s) {
4183
+ function Xr(e, t, n, o, r, i) {
4166
4184
  return d(), h("input", w({
4167
4185
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
4168
4186
  placeholder: e.placeholder,
@@ -4171,7 +4189,7 @@ function Xr(e, t, n, o, r, s) {
4171
4189
  value: e.value,
4172
4190
  defaultValue: e.defaultValue,
4173
4191
  required: e.required
4174
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Yr);
4192
+ }, e.filterAttrs(e.attributes, "v-on:", !1), F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Yr);
4175
4193
  }
4176
4194
  const Zr = /* @__PURE__ */ v(Qr, [["render", Xr]]), _r = {
4177
4195
  name: "Form:Select",
@@ -4219,21 +4237,21 @@ const Zr = /* @__PURE__ */ v(Qr, [["render", Xr]]), _r = {
4219
4237
  name: "builder-select-component",
4220
4238
  props: ["attributes", "value", "defaultValue", "name", "required", "options"],
4221
4239
  data() {
4222
- return { isEditing: P, filterAttrs: W };
4240
+ return { isEditing: A, filterAttrs: N };
4223
4241
  }
4224
4242
  }), ti = ["value", "defaultValue", "name", "required"], ni = ["value"];
4225
- function oi(e, t, n, o, r, s) {
4243
+ function oi(e, t, n, o, r, i) {
4226
4244
  return d(), h("select", w({
4227
4245
  value: e.value,
4228
4246
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
4229
4247
  defaultValue: e.defaultValue,
4230
4248
  name: e.name,
4231
4249
  required: e.required
4232
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4233
- (d(!0), h(I, null, L(e.options, (i, a) => (d(), h("option", {
4234
- key: `${i.name}-${a}`,
4235
- value: i.value
4236
- }, ce(i.name || i.value), 9, ni))), 128))
4250
+ }, e.filterAttrs(e.attributes, "v-on:", !1), F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4251
+ (d(!0), h(I, null, L(e.options, (s, l) => (d(), h("option", {
4252
+ key: `${s.name}-${l}`,
4253
+ value: s.value
4254
+ }, le(s.name || s.value), 9, ni))), 128))
4237
4255
  ], 16, ti);
4238
4256
  }
4239
4257
  const ri = /* @__PURE__ */ v(ei, [["render", oi]]), ii = {
@@ -4265,11 +4283,11 @@ const ri = /* @__PURE__ */ v(ei, [["render", oi]]), ii = {
4265
4283
  name: "builder-submit-button",
4266
4284
  props: ["attributes", "text"],
4267
4285
  data() {
4268
- return { filterAttrs: W };
4286
+ return { filterAttrs: N };
4269
4287
  }
4270
4288
  });
4271
- function ai(e, t, n, o, r, s) {
4272
- return d(), h("button", w({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ce(e.text), 17);
4289
+ function ai(e, t, n, o, r, i) {
4290
+ return d(), h("button", w({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), le(e.text), 17);
4273
4291
  }
4274
4292
  const li = /* @__PURE__ */ v(si, [["render", ai]]), ci = {
4275
4293
  name: "Form:TextArea",
@@ -4318,20 +4336,19 @@ const li = /* @__PURE__ */ v(si, [["render", ai]]), ci = {
4318
4336
  "required"
4319
4337
  ],
4320
4338
  data() {
4321
- return { filterAttrs: W };
4339
+ return { filterAttrs: N };
4322
4340
  }
4323
4341
  }), ui = ["placeholder", "name", "value", "defaultValue", "required"];
4324
- function pi(e, t, n, o, r, s) {
4342
+ function pi(e, t, n, o, r, i) {
4325
4343
  return d(), h("textarea", w({
4326
4344
  placeholder: e.placeholder,
4327
4345
  name: e.name,
4328
4346
  value: e.value,
4329
4347
  defaultValue: e.defaultValue,
4330
4348
  required: e.required
4331
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, ui);
4349
+ }, e.filterAttrs(e.attributes, "v-on:", !1), F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, ui);
4332
4350
  }
4333
4351
  const mi = /* @__PURE__ */ v(di, [["render", pi]]), hi = {
4334
- // friendlyName?
4335
4352
  name: "Raw:Img",
4336
4353
  hideFromInsertMenu: !0,
4337
4354
  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",
@@ -4341,42 +4358,86 @@ const mi = /* @__PURE__ */ v(di, [["render", pi]]), hi = {
4341
4358
  type: "file",
4342
4359
  allowedFileTypes: Ae,
4343
4360
  required: !0
4361
+ }, {
4362
+ name: "backgroundSize",
4363
+ type: "text",
4364
+ defaultValue: "cover",
4365
+ enum: [{
4366
+ label: "contain",
4367
+ value: "contain",
4368
+ helperText: "The image should never get cropped"
4369
+ }, {
4370
+ label: "cover",
4371
+ value: "cover",
4372
+ helperText: "The image should fill it's box, cropping when needed"
4373
+ }]
4374
+ }, {
4375
+ name: "backgroundPosition",
4376
+ type: "text",
4377
+ defaultValue: "center",
4378
+ enum: ["center", "top", "left", "right", "bottom", "top left", "top right", "bottom left", "bottom right"]
4379
+ }, {
4380
+ name: "altText",
4381
+ type: "string",
4382
+ helperText: "Text to display when the user has images off"
4383
+ }, {
4384
+ name: "title",
4385
+ type: "string",
4386
+ helperText: "Text to display when hovering over the asset"
4387
+ }, {
4388
+ name: "aspectRatio",
4389
+ type: "number",
4390
+ helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
4391
+ advanced: !0,
4392
+ defaultValue: 0.7041
4344
4393
  }],
4345
- noWrap: !0,
4346
- static: !0
4394
+ noWrap: !0
4347
4395
  }, fi = y({
4348
4396
  name: "builder-img-component",
4349
4397
  props: [
4350
4398
  "imgSrc",
4351
4399
  "image",
4400
+ "attributes",
4401
+ "altText",
4402
+ "title",
4352
4403
  "backgroundSize",
4353
4404
  "backgroundPosition",
4354
- "altText",
4355
- "attributes"
4405
+ "aspectRatio"
4356
4406
  ],
4357
4407
  data() {
4358
- return { isEditing: P, filterAttrs: W };
4408
+ return { isEditing: A };
4359
4409
  },
4360
4410
  computed: {
4361
4411
  srcSetToUse() {
4362
4412
  const e = this.imgSrc || this.image;
4363
4413
  if (!(!e || typeof e != "string") && e.match(/builder\.io/))
4364
- return oe(e);
4414
+ return ne(e);
4415
+ },
4416
+ imgAttrs() {
4417
+ const e = {
4418
+ ...N(this.attributes, "v-on:", !1),
4419
+ ...N(this.attributes, "v-on:", !0),
4420
+ [j()]: `builder-raw-img ${this.attributes[j()] || ""}`
4421
+ };
4422
+ return delete e.style, e;
4365
4423
  }
4366
4424
  }
4367
- }), bi = ["alt", "src", "srcSet"];
4368
- function gi(e, t, n, o, r, s) {
4425
+ }), bi = ["alt", "title", "src"];
4426
+ function gi(e, t, n, o, r, i) {
4427
+ var s;
4369
4428
  return d(), h("img", w({
4370
4429
  loading: "lazy",
4371
- style: {
4372
- objectFit: e.backgroundSize || "cover",
4373
- objectPosition: e.backgroundPosition || "center"
4374
- },
4375
4430
  key: e.isEditing() && e.imgSrc || "default-key",
4376
4431
  alt: e.altText,
4432
+ title: e.title,
4377
4433
  src: e.imgSrc || e.image,
4378
- srcSet: e.srcSetToUse
4379
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, bi);
4434
+ style: {
4435
+ objectFit: e.backgroundSize || "cover",
4436
+ objectPosition: e.backgroundPosition || "center",
4437
+ aspectRatio: e.aspectRatio || void 0,
4438
+ ...((s = e.attributes) == null ? void 0 : s.style) || {}
4439
+ }
4440
+ }, e.imgAttrs), null, 16, bi);
4380
4441
  }
4381
4442
  const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
4382
4443
  name: "Video",
@@ -4495,8 +4556,8 @@ const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
4495
4556
  Array.from(o.children).filter(
4496
4557
  (r) => r instanceof HTMLElement && r.tagName === "SOURCE"
4497
4558
  ).forEach((r) => {
4498
- const s = r.dataset.src;
4499
- s && (r.src = s);
4559
+ const i = r.dataset.src;
4560
+ i && (r.src = i);
4500
4561
  }), o.load(), e.unobserve(o);
4501
4562
  } catch (r) {
4502
4563
  console.error("Error loading lazy video:", r);
@@ -4558,8 +4619,8 @@ const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
4558
4619
  height: "100%"
4559
4620
  }
4560
4621
  };
4561
- function wi(e, t, n, o, r, s) {
4562
- var i, a, l, u, p, f, c;
4622
+ function wi(e, t, n, o, r, i) {
4623
+ var s, l, a, u, p, f, c;
4563
4624
  return d(), h("div", ki, [
4564
4625
  z("video", w({
4565
4626
  class: "builder-video",
@@ -4568,7 +4629,7 @@ function wi(e, t, n, o, r, s) {
4568
4629
  style: {
4569
4630
  width: "100%",
4570
4631
  height: "100%",
4571
- ...(i = e.attributes) == null ? void 0 : i.style,
4632
+ ...(s = e.attributes) == null ? void 0 : s.style,
4572
4633
  objectFit: e.fit,
4573
4634
  objectPosition: e.position,
4574
4635
  // Hack to get object fit to work as expected and
@@ -4589,9 +4650,9 @@ function wi(e, t, n, o, r, s) {
4589
4650
  }
4590
4651
  ), null, 16)
4591
4652
  ], 16, Ci),
4592
- e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length)) ? (d(), h("div", {
4653
+ e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), h("div", {
4593
4654
  key: 0,
4594
- style: j({
4655
+ style: M({
4595
4656
  width: "100%",
4596
4657
  paddingTop: e.aspectRatio * 100 + "%",
4597
4658
  pointerEvents: "none",
@@ -4725,7 +4786,7 @@ const $i = /* @__PURE__ */ v(Si, [["render", wi]]), Ri = () => [{
4725
4786
  }).join('');
4726
4787
  styleEl.innerHTML = newStyleStr;
4727
4788
  }
4728
- }`, Pi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4789
+ }`, Ai = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4729
4790
  if (!navigator.cookieEnabled) {
4730
4791
  return;
4731
4792
  }
@@ -4759,20 +4820,20 @@ const $i = /* @__PURE__ */ v(Si, [["render", wi]]), Ri = () => [{
4759
4820
  thisScriptEl?.remove();
4760
4821
  }
4761
4822
  return;
4762
- }`, It = "builderIoAbTest", wt = "builderIoRenderContent", ie = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4823
+ }`, It = "builderIoAbTest", wt = "builderIoRenderContent", re = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4763
4824
  ...t,
4764
4825
  testVariationId: t.id,
4765
4826
  id: e == null ? void 0 : e.id
4766
- })), Ai = ({
4827
+ })), Pi = ({
4767
4828
  canTrack: e,
4768
4829
  content: t
4769
- }) => !(!(ie(t).length > 0) || !e), Bi = (e) => e === "react" || e === "reactNative", Vi = $ === "angular", $t = Bi($), Ni = () => `
4830
+ }) => !(!(re(t).length > 0) || !e), Bi = (e) => e === "react" || e === "reactNative", Vi = $ === "angular", $t = Bi($), Ni = () => `
4770
4831
  window.${It} = ${Ei}
4771
- window.${wt} = ${Pi}
4772
- `, Wi = (e, t) => `
4832
+ window.${wt} = ${Ai}
4833
+ `, xi = (e, t) => `
4773
4834
  window.${It}(
4774
4835
  "${t}",${JSON.stringify(e)}, ${$t}, ${Vi}
4775
- )`, xi = ({
4836
+ )`, Wi = ({
4776
4837
  contentId: e,
4777
4838
  variationId: t
4778
4839
  }) => `window.${wt}(
@@ -4799,10 +4860,10 @@ const Di = (e, t, n = !0) => {
4799
4860
  event: e,
4800
4861
  target: t
4801
4862
  }) => {
4802
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, s = Me(o / n.width), i = Me(r / n.height);
4863
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = Me(o / n.width), s = Me(r / n.height);
4803
4864
  return {
4804
- x: s,
4805
- y: i
4865
+ x: i,
4866
+ y: s
4806
4867
  };
4807
4868
  }, Ui = (e) => {
4808
4869
  const t = e.target, n = t && Oi(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
@@ -4820,9 +4881,9 @@ const Di = (e, t, n = !0) => {
4820
4881
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
4821
4882
  }
4822
4883
  };
4823
- }, Fi = ["svelte", "qwik", "vue"], Li = () => Fi.includes($) && (P() || Te()), Hi = (e) => {
4824
- var s;
4825
- 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);
4884
+ }, Fi = ["svelte", "qwik", "vue"], Li = () => Fi.includes($) && (A() || Ce()), Hi = (e) => {
4885
+ var i;
4886
+ const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
4826
4887
  let r = "";
4827
4888
  if (o && t && n && (r += `
4828
4889
  @font-face {
@@ -4832,16 +4893,16 @@ font-display: fallback;
4832
4893
  font-weight: 400;
4833
4894
  }
4834
4895
  `.trim()), e.files)
4835
- for (const i in e.files) {
4836
- if (!(String(Number(i)) === i))
4896
+ for (const s in e.files) {
4897
+ if (!(String(Number(s)) === s))
4837
4898
  continue;
4838
- const l = e.files[i];
4839
- l && l !== o && (r += `
4899
+ const a = e.files[s];
4900
+ a && a !== o && (r += `
4840
4901
  @font-face {
4841
4902
  font-family: "${t}";
4842
- src: url('${l}') format('woff2');
4903
+ src: url('${a}') format('woff2');
4843
4904
  font-display: fallback;
4844
- font-weight: ${i};
4905
+ font-weight: ${s};
4845
4906
  }
4846
4907
  `.trim());
4847
4908
  }
@@ -4873,7 +4934,7 @@ font-weight: ${i};
4873
4934
  }
4874
4935
  `, qi = (e) => e ? "" : Ki, zi = (e) => `variant-${e}`, Gi = y({
4875
4936
  name: "enable-editor",
4876
- components: { DynamicDiv: ne },
4937
+ components: { DynamicDiv: te },
4877
4938
  props: [
4878
4939
  "isNestedRender",
4879
4940
  "builderContextSignal",
@@ -4894,11 +4955,14 @@ font-weight: ${i};
4894
4955
  data() {
4895
4956
  return {
4896
4957
  hasExecuted: !1,
4958
+ contextValue: this.builderContextSignal,
4959
+ prevData: null,
4960
+ prevLocale: "",
4897
4961
  ContentWrapper: this.contentWrapper || "div",
4898
4962
  httpReqsData: {},
4899
4963
  httpReqsPending: {},
4900
4964
  clicked: !1,
4901
- builderContext: be,
4965
+ builderContext: fe,
4902
4966
  needsElementRefDivForEditing: Li,
4903
4967
  getWrapperClassName: zi
4904
4968
  };
@@ -4906,7 +4970,7 @@ font-weight: ${i};
4906
4970
  provide() {
4907
4971
  const e = this;
4908
4972
  return {
4909
- [be.key]: e.builderContextSignal
4973
+ [fe.key]: e.builderContextSignal
4910
4974
  };
4911
4975
  },
4912
4976
  created() {
@@ -4915,25 +4979,25 @@ font-weight: ${i};
4915
4979
  mounted() {
4916
4980
  var e, t, n;
4917
4981
  if (R()) {
4918
- P() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4982
+ A() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4919
4983
  new CustomEvent("initeditingbldr")
4920
4984
  );
4921
- const o = this.builderContextSignal.content && J(this.canTrack), r = de({
4985
+ const o = this.builderContextSignal.content && G(this.canTrack), r = ce({
4922
4986
  name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
4923
4987
  canTrack: !0
4924
- }), s = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
4925
- if (o && s === r) {
4926
- const i = (n = this.builderContextSignal.content) == null ? void 0 : n.id, a = this.apiKey;
4927
- ye({
4988
+ }), i = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
4989
+ if (o && i === r) {
4990
+ const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id, l = this.apiKey;
4991
+ ge({
4928
4992
  apiHost: this.apiHost,
4929
4993
  type: "impression",
4930
4994
  canTrack: !0,
4931
- contentId: i,
4932
- apiKey: a,
4933
- variationId: r !== i ? r : void 0
4995
+ contentId: s,
4996
+ apiKey: l,
4997
+ variationId: r !== s ? r : void 0
4934
4998
  });
4935
4999
  }
4936
- Te() && !P() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
5000
+ Ce() && !A() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4937
5001
  new CustomEvent("initpreviewingbldr")
4938
5002
  );
4939
5003
  }
@@ -4953,15 +5017,23 @@ font-weight: ${i};
4953
5017
  },
4954
5018
  onUpdateHook2: {
4955
5019
  handler() {
4956
- this.data && this.mergeNewRootState(this.data);
5020
+ if (this.data) {
5021
+ if (this.prevData === this.data)
5022
+ return;
5023
+ this.mergeNewRootState(this.data), this.prevData = this.data;
5024
+ }
4957
5025
  },
4958
5026
  immediate: !0
4959
5027
  },
4960
5028
  onUpdateHook3: {
4961
5029
  handler() {
4962
- this.locale && this.mergeNewRootState({
4963
- locale: this.locale
4964
- });
5030
+ if (this.locale) {
5031
+ if (this.prevLocale === this.locale)
5032
+ return;
5033
+ this.mergeNewRootState({
5034
+ locale: this.locale
5035
+ }), this.prevLocale = this.locale;
5036
+ }
4965
5037
  },
4966
5038
  immediate: !0
4967
5039
  }
@@ -5001,30 +5073,30 @@ font-weight: ${i};
5001
5073
  }
5002
5074
  },
5003
5075
  methods: {
5004
- mergeNewRootState(e) {
5005
- var n, o;
5006
- const t = {
5076
+ mergeNewRootState(e, t) {
5077
+ var o, r;
5078
+ const n = {
5007
5079
  ...this.builderContextSignal.rootState,
5008
5080
  ...e
5009
5081
  };
5010
- this.builderContextSignal.rootSetState ? (o = (n = this.builderContextSignal).rootSetState) == null || o.call(n, t) : this.builderContextSignal.rootState = t;
5082
+ this.builderContextSignal.rootSetState ? (r = (o = this.builderContextSignal).rootSetState) == null || r.call(o, n) : this.builderContextSignal.rootState = n, this.builderContextSignal.rootSetState ? this.builderContextSignal.rootSetState(n) : this.builderContextSignal.rootState = n;
5011
5083
  },
5012
- mergeNewContent(e) {
5013
- var n, o, r, s, i;
5014
- const t = {
5084
+ mergeNewContent(e, t) {
5085
+ var o, r, i, s, l;
5086
+ const n = {
5015
5087
  ...this.builderContextSignal.content,
5016
5088
  ...e,
5017
5089
  data: {
5018
- ...(n = this.builderContextSignal.content) == null ? void 0 : n.data,
5090
+ ...(o = this.builderContextSignal.content) == null ? void 0 : o.data,
5019
5091
  ...e == null ? void 0 : e.data
5020
5092
  },
5021
5093
  meta: {
5022
- ...(o = this.builderContextSignal.content) == null ? void 0 : o.meta,
5094
+ ...(r = this.builderContextSignal.content) == null ? void 0 : r.meta,
5023
5095
  ...e == null ? void 0 : e.meta,
5024
- 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)
5096
+ breakpoints: ((i = e == null ? void 0 : e.meta) == null ? void 0 : i.breakpoints) || ((l = (s = this.builderContextSignal.content) == null ? void 0 : s.meta) == null ? void 0 : l.breakpoints)
5025
5097
  }
5026
5098
  };
5027
- this.builderContextSignal.content = t;
5099
+ this.builderContextSignal.content = n;
5028
5100
  },
5029
5101
  processMessage(e) {
5030
5102
  return st({
@@ -5043,11 +5115,11 @@ font-weight: ${i};
5043
5115
  animation: (t) => {
5044
5116
  mt(t);
5045
5117
  },
5046
- contentUpdate: (t) => {
5047
- this.mergeNewContent(t);
5118
+ contentUpdate: (t, n) => {
5119
+ this.mergeNewContent(t, n);
5048
5120
  },
5049
- stateUpdate: (t) => {
5050
- this.mergeNewRootState(t);
5121
+ stateUpdate: (t, n) => {
5122
+ this.mergeNewRootState(t, n);
5051
5123
  }
5052
5124
  }
5053
5125
  })(e);
@@ -5056,10 +5128,10 @@ font-weight: ${i};
5056
5128
  var t, n;
5057
5129
  if (this.builderContextSignal.content) {
5058
5130
  const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
5059
- ye({
5131
+ ge({
5060
5132
  apiHost: this.apiHost,
5061
5133
  type: "click",
5062
- canTrack: J(this.canTrack),
5134
+ canTrack: G(this.canTrack),
5063
5135
  contentId: r,
5064
5136
  apiKey: this.apiKey,
5065
5137
  variationId: o !== r ? o : void 0,
@@ -5072,40 +5144,64 @@ font-weight: ${i};
5072
5144
  runHttpRequests() {
5073
5145
  var t, n;
5074
5146
  const e = ((n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) ?? {};
5075
- Object.entries(e).forEach(([o, r]) => {
5076
- if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !P())
5077
- return;
5078
- this.httpReqsPending[o] = !0;
5079
- const s = r.replace(
5080
- /{{([^}]+)}}/g,
5081
- (i, a) => String(
5082
- te({
5083
- code: a,
5084
- context: this.context || {},
5085
- localState: void 0,
5086
- rootState: this.builderContextSignal.rootState,
5087
- rootSetState: this.builderContextSignal.rootSetState
5088
- })
5089
- )
5090
- );
5091
- we(s), fetch(s).then((i) => i.json()).then((i) => {
5092
- this.mergeNewRootState({
5093
- [o]: i
5094
- }), this.httpReqsData[o] = !0;
5095
- }).catch((i) => {
5096
- console.error("error fetching dynamic data", r, i);
5097
- }).finally(() => {
5098
- this.httpReqsPending[o] = !1;
5099
- });
5100
- });
5147
+ Object.entries(e).forEach(
5148
+ ([o, r]) => {
5149
+ if (!r)
5150
+ return;
5151
+ const i = typeof r == "object" && r["@type"] === "@builder.io/core:Request";
5152
+ if (this.httpReqsPending[o] || this.httpReqsData[o] && !A())
5153
+ return;
5154
+ const s = i ? r.request.url : r;
5155
+ this.httpReqsPending[o] = !0;
5156
+ const l = s.replace(
5157
+ /{{([^}]+)}}/g,
5158
+ (p, f) => String(
5159
+ ee({
5160
+ code: f,
5161
+ context: this.context || {},
5162
+ localState: void 0,
5163
+ rootState: this.builderContextSignal.rootState,
5164
+ rootSetState: this.builderContextSignal.rootSetState
5165
+ })
5166
+ )
5167
+ ), a = i ? {
5168
+ url: l,
5169
+ method: r.request.method,
5170
+ headers: r.request.headers,
5171
+ body: r.request.body
5172
+ } : {
5173
+ url: l,
5174
+ method: "GET"
5175
+ };
5176
+ Ie(JSON.stringify(a));
5177
+ const u = {
5178
+ method: a.method,
5179
+ headers: a.headers,
5180
+ body: a.body
5181
+ };
5182
+ a.method === "GET" && delete u.body, fetch(a.url, u).then((p) => p.json()).then((p) => {
5183
+ this.mergeNewRootState({
5184
+ [o]: p
5185
+ }), this.httpReqsData[o] = !0;
5186
+ }).catch((p) => {
5187
+ console.error(
5188
+ "error fetching dynamic data",
5189
+ JSON.stringify(r),
5190
+ p
5191
+ );
5192
+ }).finally(() => {
5193
+ this.httpReqsPending[o] = !1;
5194
+ });
5195
+ }
5196
+ );
5101
5197
  },
5102
5198
  emitStateUpdate() {
5103
- P() && window.dispatchEvent(
5199
+ A() && window.dispatchEvent(
5104
5200
  new CustomEvent(
5105
5201
  "builder:component:stateChange",
5106
5202
  {
5107
5203
  detail: {
5108
- state: ke(this.builderContextSignal.rootState),
5204
+ state: Se(this.builderContextSignal.rootState),
5109
5205
  ref: {
5110
5206
  name: this.model
5111
5207
  }
@@ -5141,41 +5237,41 @@ font-weight: ${i};
5141
5237
  );
5142
5238
  },
5143
5239
  elementRef_onInitpreviewingbldr(e) {
5144
- var s;
5240
+ var i;
5145
5241
  const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
5146
5242
  `builder.overrides.${n}`
5147
5243
  ), r = t.get("apiKey") || t.get("builder.space");
5148
- (n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && Ee({
5244
+ (n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && Re({
5149
5245
  model: this.model,
5150
5246
  apiKey: this.apiKey,
5151
5247
  apiVersion: this.builderContextSignal.apiVersion,
5152
- ...n === "BUILDER_STUDIO" && ((s = this.context) != null && s.symbolId) ? {
5248
+ ...n === "BUILDER_STUDIO" && ((i = this.context) != null && i.symbolId) ? {
5153
5249
  query: {
5154
5250
  id: this.context.symbolId
5155
5251
  }
5156
5252
  } : {}
5157
- }).then((i) => {
5158
- i && this.mergeNewContent(i);
5253
+ }).then((s) => {
5254
+ s && this.mergeNewContent(s);
5159
5255
  });
5160
5256
  }
5161
5257
  }
5162
5258
  });
5163
- function Ji(e, t, n, o, r, s) {
5164
- var i, a, l;
5165
- return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(Z(e.ContentWrapper), w({
5259
+ function Ji(e, t, n, o, r, i) {
5260
+ var s, l, a;
5261
+ return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(X(e.ContentWrapper), w({
5166
5262
  key: 0,
5167
5263
  ref: "elementRef",
5168
5264
  onClick: (u) => e.onClick(u),
5169
- "builder-content-id": (i = e.builderContextSignal.content) == null ? void 0 : i.id,
5265
+ "builder-content-id": (s = e.builderContextSignal.content) == null ? void 0 : s.id,
5170
5266
  "builder-model": e.model,
5171
- className: e.getWrapperClassName(((a = e.content) == null ? void 0 : a.testVariationId) || ((l = e.content) == null ? void 0 : l.id)),
5267
+ className: e.getWrapperClassName(((l = e.content) == null ? void 0 : l.testVariationId) || ((a = e.content) == null ? void 0 : a.id)),
5172
5268
  style: {
5173
5269
  display: !e.builderContextSignal.content && e.needsElementRefDivForEditing() ? "none" : void 0
5174
5270
  },
5175
5271
  onIniteditingbldr: (u) => e.elementRef_onIniteditingbldr(u),
5176
5272
  onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
5177
5273
  }, { ...e.showContentProps, ...e.contentWrapperProps }), {
5178
- default: U(() => [
5274
+ default: O(() => [
5179
5275
  V(e.$slots, "default")
5180
5276
  ]),
5181
5277
  _: 3
@@ -5183,7 +5279,7 @@ function Ji(e, t, n, o, r, s) {
5183
5279
  }
5184
5280
  const Qi = /* @__PURE__ */ v(Gi, [["render", Ji]]), Yi = y({
5185
5281
  name: "content-styles",
5186
- components: { InlinedStyles: ue },
5282
+ components: { InlinedStyles: de },
5187
5283
  props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
5188
5284
  data() {
5189
5285
  return {
@@ -5200,9 +5296,9 @@ ${qi(this.isNestedRender)}
5200
5296
  };
5201
5297
  }
5202
5298
  });
5203
- function Xi(e, t, n, o, r, s) {
5204
- const i = k("InlinedStyles");
5205
- return d(), S(i, {
5299
+ function Xi(e, t, n, o, r, i) {
5300
+ const s = k("InlinedStyles");
5301
+ return d(), S(s, {
5206
5302
  id: "builderio-content",
5207
5303
  styles: e.injectedStyles,
5208
5304
  nonce: e.nonce
@@ -5213,10 +5309,10 @@ const Zi = /* @__PURE__ */ v(Yi, [["render", Xi]]), _i = ({
5213
5309
  data: t,
5214
5310
  locale: n
5215
5311
  }) => {
5216
- var s, i, a;
5217
- const o = {}, r = ((s = e == null ? void 0 : e.data) == null ? void 0 : s.state) || {};
5218
- return (a = (i = e == null ? void 0 : e.data) == null ? void 0 : i.inputs) == null || a.forEach((l) => {
5219
- l.name && l.defaultValue !== void 0 && (o[l.name] = l.defaultValue);
5312
+ var i, s, l;
5313
+ const o = {}, r = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.state) || {};
5314
+ return (l = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || l.forEach((a) => {
5315
+ a.name && a.defaultValue !== void 0 && (o[a.name] = a.defaultValue);
5220
5316
  }), {
5221
5317
  ...o,
5222
5318
  ...r,
@@ -5239,10 +5335,10 @@ const Zi = /* @__PURE__ */ v(Yi, [["render", Xi]]), _i = ({
5239
5335
  name: "content-component",
5240
5336
  components: {
5241
5337
  EnableEditor: Qi,
5242
- InlinedScript: Be,
5338
+ InlinedScript: Pe,
5243
5339
  ContentStyles: Zi,
5244
5340
  Blocks: q,
5245
- DynamicDiv: ne
5341
+ DynamicDiv: te
5246
5342
  },
5247
5343
  props: [
5248
5344
  "apiKey",
@@ -5270,7 +5366,7 @@ const Zi = /* @__PURE__ */ v(Yi, [["render", Xi]]), _i = ({
5270
5366
  data() {
5271
5367
  var e, t;
5272
5368
  return {
5273
- scriptStr: xi({
5369
+ scriptStr: Wi({
5274
5370
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
5275
5371
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
5276
5372
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -5284,7 +5380,7 @@ const Zi = /* @__PURE__ */ v(Yi, [["render", Xi]]), _i = ({
5284
5380
  ...n,
5285
5381
  [r.name]: {
5286
5382
  component: ts(o),
5287
- ...ae(r)
5383
+ ...se(r)
5288
5384
  }
5289
5385
  }),
5290
5386
  {}
@@ -5311,7 +5407,7 @@ const Zi = /* @__PURE__ */ v(Yi, [["render", Xi]]), _i = ({
5311
5407
  ].reduce(
5312
5408
  (n, { component: o, ...r }) => ({
5313
5409
  ...n,
5314
- [r.name]: ae(r)
5410
+ [r.name]: se(r)
5315
5411
  }),
5316
5412
  {}
5317
5413
  ),
@@ -5334,11 +5430,11 @@ const Zi = /* @__PURE__ */ v(Yi, [["render", Xi]]), _i = ({
5334
5430
  },
5335
5431
  created() {
5336
5432
  var t, n;
5337
- this.apiKey || N.error(
5433
+ this.apiKey || x.error(
5338
5434
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
5339
5435
  );
5340
5436
  const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
5341
- e && te({
5437
+ e && ee({
5342
5438
  code: e,
5343
5439
  context: this.context || {},
5344
5440
  localState: void 0,
@@ -5355,8 +5451,8 @@ const Zi = /* @__PURE__ */ v(Yi, [["render", Xi]]), _i = ({
5355
5451
  }
5356
5452
  }
5357
5453
  });
5358
- function os(e, t, n, o, r, s) {
5359
- const i = k("InlinedScript"), a = k("ContentStyles"), l = k("Blocks"), u = k("EnableEditor");
5454
+ function os(e, t, n, o, r, i) {
5455
+ const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
5360
5456
  return d(), S(u, w({
5361
5457
  apiHost: e.apiHost,
5362
5458
  nonce: e.nonce,
@@ -5375,16 +5471,16 @@ function os(e, t, n, o, r, s) {
5375
5471
  trustedHosts: e.trustedHosts,
5376
5472
  isNestedRender: e.isNestedRender
5377
5473
  }, {}), {
5378
- default: U(() => {
5379
- var p, f, c, m, b, g, A;
5474
+ default: O(() => {
5475
+ var p, f, c, m, b, g, P;
5380
5476
  return [
5381
- e.isSsrAbTest ? (d(), S(i, {
5477
+ e.isSsrAbTest ? (d(), S(s, {
5382
5478
  key: 0,
5383
5479
  id: "builderio-variant-visibility",
5384
5480
  scriptStr: e.scriptStr,
5385
5481
  nonce: e.nonce || ""
5386
5482
  }, null, 8, ["scriptStr", "nonce"])) : C("", !0),
5387
- e.TARGET !== "reactNative" ? (d(), S(a, {
5483
+ e.TARGET !== "reactNative" ? (d(), S(l, {
5388
5484
  key: 1,
5389
5485
  nonce: e.nonce || "",
5390
5486
  isNestedRender: e.isNestedRender,
@@ -5392,8 +5488,8 @@ function os(e, t, n, o, r, s) {
5392
5488
  cssCode: (c = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : c.cssCode,
5393
5489
  customFonts: (b = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : b.customFonts
5394
5490
  }, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : C("", !0),
5395
- E(l, {
5396
- blocks: (A = (g = e.builderContextSignal.content) == null ? void 0 : g.data) == null ? void 0 : A.blocks,
5491
+ E(a, {
5492
+ blocks: (P = (g = e.builderContextSignal.content) == null ? void 0 : g.data) == null ? void 0 : P.blocks,
5397
5493
  context: e.builderContextSignal,
5398
5494
  registeredComponents: e.registeredComponents,
5399
5495
  linkComponent: e.linkComponent
@@ -5406,8 +5502,8 @@ function os(e, t, n, o, r, s) {
5406
5502
  const rs = /* @__PURE__ */ v(ns, [["render", os]]), is = y({
5407
5503
  name: "content-variants",
5408
5504
  components: {
5409
- InlinedScript: Be,
5410
- InlinedStyles: ue,
5505
+ InlinedScript: Pe,
5506
+ InlinedStyles: de,
5411
5507
  ContentComponent: rs
5412
5508
  },
5413
5509
  props: [
@@ -5433,15 +5529,15 @@ const rs = /* @__PURE__ */ v(ns, [["render", os]]), is = y({
5433
5529
  ],
5434
5530
  data() {
5435
5531
  return {
5436
- shouldRenderVariants: Ai({
5437
- canTrack: J(this.canTrack),
5532
+ shouldRenderVariants: Pi({
5533
+ canTrack: G(this.canTrack),
5438
5534
  content: this.content
5439
5535
  }),
5440
5536
  SDKS_SUPPORTING_PERSONALIZATION: kt,
5441
5537
  getInitPersonalizationVariantsFnsScriptString: Go,
5442
5538
  TARGET: $,
5443
5539
  getInitVariantsFnsScriptString: Ni,
5444
- getVariants: ie
5540
+ getVariants: re
5445
5541
  };
5446
5542
  },
5447
5543
  mounted() {
@@ -5449,8 +5545,8 @@ const rs = /* @__PURE__ */ v(ns, [["render", os]]), is = y({
5449
5545
  computed: {
5450
5546
  updateCookieAndStylesScriptStr() {
5451
5547
  var e;
5452
- return Wi(
5453
- ie(this.content).map((t) => ({
5548
+ return xi(
5549
+ re(this.content).map((t) => ({
5454
5550
  id: t.testVariationId,
5455
5551
  testRatio: t.testRatio
5456
5552
  })),
@@ -5458,7 +5554,7 @@ const rs = /* @__PURE__ */ v(ns, [["render", os]]), is = y({
5458
5554
  );
5459
5555
  },
5460
5556
  hideVariantsStyleString() {
5461
- return ie(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
5557
+ return re(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
5462
5558
  },
5463
5559
  defaultContent() {
5464
5560
  var e;
@@ -5467,21 +5563,21 @@ const rs = /* @__PURE__ */ v(ns, [["render", os]]), is = y({
5467
5563
  testVariationId: (e = this.content) == null ? void 0 : e.id
5468
5564
  } : Nn({
5469
5565
  item: this.content,
5470
- canTrack: J(this.canTrack)
5566
+ canTrack: G(this.canTrack)
5471
5567
  });
5472
5568
  }
5473
5569
  }
5474
5570
  });
5475
- function ss(e, t, n, o, r, s) {
5476
- const i = k("InlinedScript"), a = k("InlinedStyles"), l = k("ContentComponent");
5571
+ function ss(e, t, n, o, r, i) {
5572
+ const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
5477
5573
  return d(), h(I, null, [
5478
5574
  !e.isNestedRender && e.TARGET !== "reactNative" ? (d(), h(I, { key: 0 }, [
5479
- E(i, {
5575
+ E(s, {
5480
5576
  id: "builderio-init-variants-fns",
5481
5577
  scriptStr: e.getInitVariantsFnsScriptString(),
5482
5578
  nonce: e.nonce || ""
5483
5579
  }, null, 8, ["scriptStr", "nonce"]),
5484
- e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (d(), S(i, {
5580
+ e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (d(), S(s, {
5485
5581
  key: 0,
5486
5582
  id: "builderio-init-personalization-variants-fns",
5487
5583
  nonce: e.nonce || "",
@@ -5489,17 +5585,17 @@ function ss(e, t, n, o, r, s) {
5489
5585
  }, null, 8, ["nonce", "scriptStr"])) : C("", !0)
5490
5586
  ], 64)) : C("", !0),
5491
5587
  e.shouldRenderVariants ? (d(), h(I, { key: 1 }, [
5492
- E(a, {
5588
+ E(l, {
5493
5589
  id: "builderio-variants",
5494
5590
  styles: e.hideVariantsStyleString,
5495
5591
  nonce: e.nonce || ""
5496
5592
  }, null, 8, ["styles", "nonce"]),
5497
- E(i, {
5593
+ E(s, {
5498
5594
  id: "builderio-variants-visibility",
5499
5595
  scriptStr: e.updateCookieAndStylesScriptStr,
5500
5596
  nonce: e.nonce || ""
5501
5597
  }, null, 8, ["scriptStr", "nonce"]),
5502
- (d(!0), h(I, null, L(e.getVariants(e.content), (u, p) => (d(), S(l, w({
5598
+ (d(!0), h(I, null, L(e.getVariants(e.content), (u, p) => (d(), S(a, w({
5503
5599
  key: u.testVariationId,
5504
5600
  apiHost: e.apiHost,
5505
5601
  isNestedRender: e.isNestedRender,
@@ -5524,7 +5620,7 @@ function ss(e, t, n, o, r, s) {
5524
5620
  trustedHosts: e.trustedHosts
5525
5621
  }, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
5526
5622
  ], 64)) : C("", !0),
5527
- E(l, w({
5623
+ E(a, w({
5528
5624
  apiHost: e.apiHost,
5529
5625
  nonce: e.nonce,
5530
5626
  isNestedRender: e.isNestedRender,
@@ -5557,7 +5653,7 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = async ({
5557
5653
  }) => {
5558
5654
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
5559
5655
  (e != null && e.apiKey))
5560
- return Ee({
5656
+ return Re({
5561
5657
  model: t.model,
5562
5658
  apiKey: e.apiKey,
5563
5659
  apiVersion: e.apiVersion,
@@ -5567,18 +5663,18 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = async ({
5567
5663
  }
5568
5664
  }
5569
5665
  }).catch((n) => {
5570
- N.error("Could not fetch symbol content: ", n);
5666
+ x.error("Could not fetch symbol content: ", n);
5571
5667
  });
5572
5668
  }, cs = y({
5573
5669
  name: "builder-symbol",
5574
- components: { ContentVariants: as, DynamicDiv: ne },
5670
+ components: { ContentVariants: as, DynamicDiv: te },
5575
5671
  props: [
5576
5672
  "symbol",
5673
+ "builderComponents",
5577
5674
  "attributes",
5578
5675
  "dynamic",
5579
5676
  "builderContext",
5580
5677
  "builderBlock",
5581
- "builderComponents",
5582
5678
  "builderLinkComponent"
5583
5679
  ],
5584
5680
  data() {
@@ -5586,7 +5682,7 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = async ({
5586
5682
  return {
5587
5683
  contentToUse: (e = this.symbol) == null ? void 0 : e.content,
5588
5684
  symbolEntry: (t = this.symbol) == null ? void 0 : t.entry,
5589
- filterAttrs: W
5685
+ filterAttrs: N
5590
5686
  };
5591
5687
  },
5592
5688
  mounted() {
@@ -5607,10 +5703,13 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = async ({
5607
5703
  contentWrapper() {
5608
5704
  return "div";
5609
5705
  },
5706
+ customComponents() {
5707
+ return Object.values(this.builderComponents);
5708
+ },
5610
5709
  className() {
5611
5710
  var e, t;
5612
5711
  return [
5613
- this.attributes[G()],
5712
+ this.attributes[j()],
5614
5713
  "builder-symbol",
5615
5714
  (e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
5616
5715
  (t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
@@ -5635,22 +5734,22 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = async ({
5635
5734
  }
5636
5735
  }
5637
5736
  });
5638
- function ds(e, t, n, o, r, s) {
5639
- var a, l, u, p, f;
5640
- const i = k("ContentVariants");
5641
- return d(), h("div", w({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
5642
- E(i, {
5737
+ function ds(e, t, n, o, r, i) {
5738
+ var l, a, u, p, f;
5739
+ const s = k("ContentVariants");
5740
+ return d(), h("div", w({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
5741
+ E(s, {
5643
5742
  nonce: e.builderContext.nonce,
5644
5743
  isNestedRender: !0,
5645
5744
  apiVersion: e.builderContext.apiVersion,
5646
5745
  apiKey: e.builderContext.apiKey,
5647
5746
  context: {
5648
5747
  ...e.builderContext.context,
5649
- symbolId: (a = e.builderBlock) == null ? void 0 : a.id
5748
+ symbolId: (l = e.builderBlock) == null ? void 0 : l.id
5650
5749
  },
5651
- customComponents: Object.values(e.builderComponents),
5750
+ customComponents: e.customComponents,
5652
5751
  data: {
5653
- ...(l = e.symbol) == null ? void 0 : l.data,
5752
+ ...(a = e.symbol) == null ? void 0 : a.data,
5654
5753
  ...e.builderContext.localState,
5655
5754
  ...(p = (u = e.contentToUse) == null ? void 0 : u.data) == null ? void 0 : p.state
5656
5755
  },
@@ -5665,40 +5764,42 @@ function ds(e, t, n, o, r, s) {
5665
5764
  }
5666
5765
  const us = /* @__PURE__ */ v(cs, [["render", ds]]);
5667
5766
  export {
5668
- hs as A,
5767
+ qn as A,
5669
5768
  gt as B,
5670
5769
  wo as C,
5671
- Ts as D,
5770
+ Re as D,
5771
+ hs as E,
5672
5772
  Eo as F,
5773
+ Is as G,
5673
5774
  Do as I,
5674
5775
  Fo as S,
5675
5776
  Rr as T,
5676
5777
  $i as V,
5677
- ue as _,
5678
- Is as a,
5679
- Pe as b,
5680
- ks as c,
5681
- v as d,
5682
- te as e,
5778
+ v as _,
5779
+ j as a,
5780
+ fe as b,
5781
+ de as c,
5782
+ ko as d,
5783
+ ee as e,
5683
5784
  Cs as f,
5684
- ko as g,
5685
- G as h,
5686
- be as i,
5687
- jt as j,
5688
- us as k,
5689
- q as l,
5690
- as as m,
5691
- Te as n,
5692
- ln as o,
5693
- bs as p,
5694
- Ye as q,
5785
+ Ts as g,
5786
+ ws as h,
5787
+ Ee as i,
5788
+ an as j,
5789
+ jt as k,
5790
+ us as l,
5791
+ q as m,
5792
+ as as n,
5793
+ Ce as o,
5794
+ ln as p,
5795
+ bs as q,
5695
5796
  fs as r,
5696
- vs as s,
5797
+ Ss as s,
5697
5798
  gs as t,
5698
- ys as u,
5699
- Ss as v,
5799
+ Ye as u,
5800
+ ys as v,
5700
5801
  ts as w,
5701
- Kn as x,
5702
- qn as y,
5703
- Ee as z
5802
+ vs as x,
5803
+ ks as y,
5804
+ Kn as z
5704
5805
  };