@builder.io/sdk-vue 1.0.36 → 1.1.1

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 (106) hide show
  1. package/lib/browser/{block-styles-QmmLdzpW.js → block-styles-IgeLKqtO.js} +1 -1
  2. package/lib/browser/{block-styles-pw_R2yQt.cjs → block-styles-JNa4oaKg.cjs} +1 -1
  3. package/lib/browser/{block-wrapper-26flngEX.js → block-wrapper-2dz0ANfE.js} +3 -3
  4. package/lib/browser/{block-wrapper-ym7Obdn5.cjs → block-wrapper-DKAcCWUl.cjs} +1 -1
  5. package/lib/browser/blocks/accordion/accordion.vue.d.ts +3 -3
  6. package/lib/browser/blocks/button/button.vue.d.ts +3 -3
  7. package/lib/browser/blocks/columns/columns.vue.d.ts +9 -9
  8. package/lib/browser/blocks/form/form/form.vue.d.ts +9 -9
  9. package/lib/browser/blocks/form/input/input.vue.d.ts +6 -6
  10. package/lib/browser/blocks/form/textarea/textarea.vue.d.ts +3 -3
  11. package/lib/browser/blocks/symbol/symbol.vue.d.ts +9 -9
  12. package/lib/browser/blocks/tabs/tabs.vue.d.ts +3 -3
  13. package/lib/browser/blocks/video/video.vue.d.ts +3 -3
  14. package/lib/browser/{component-ref-EJE0BMsw.cjs → component-ref-QrMSo5Xp.cjs} +1 -1
  15. package/lib/browser/{component-ref-f6HeLjzo.js → component-ref-V2PjOzrU.js} +2 -2
  16. package/lib/browser/components/block/block.helpers.d.ts +8 -8
  17. package/lib/browser/components/block/block.vue.d.ts +3 -3
  18. package/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +6 -6
  19. package/lib/browser/components/block/components/repeated-block.vue.d.ts +3 -3
  20. package/lib/browser/components/blocks/blocks.vue.d.ts +3 -3
  21. package/lib/browser/components/content/components/enable-editor.vue.d.ts +12 -12
  22. package/lib/browser/components/content/content.vue.d.ts +18 -18
  23. package/lib/browser/components/content-variants/content-variants.vue.d.ts +12 -12
  24. package/lib/browser/components/content-variants/inlined-fns.d.ts +1 -1
  25. package/lib/browser/constants/sdk-version.d.ts +1 -1
  26. package/lib/browser/{get-block-properties-bRGCHXAl.js → get-block-properties-TdaLYLBc.js} +1 -1
  27. package/lib/browser/{get-block-properties-jhRwh2eR.cjs → get-block-properties-tGP5LRTK.cjs} +1 -1
  28. package/lib/browser/index-6J8hb-U4.cjs +166 -0
  29. package/lib/browser/{index-NLkfEtPh.js → index-ZjI6yLCn.js} +909 -785
  30. package/lib/browser/index.cjs +1 -1
  31. package/lib/browser/index.mjs +1 -1
  32. package/lib/browser/{repeated-block-By1JKWmB.js → repeated-block-N87PTuTY.js} +2 -2
  33. package/lib/browser/{repeated-block-9SersTny.cjs → repeated-block-b1ywSZOA.cjs} +1 -1
  34. package/lib/browser/types/components.d.ts +41 -0
  35. package/lib/{node/block-styles-ekBqqSDD.js → edge/block-styles-9G0dzHlX.js} +1 -1
  36. package/lib/edge/{block-styles-_fSdBubU.cjs → block-styles-k6csWHEr.cjs} +1 -1
  37. package/lib/edge/{block-wrapper-MRpzh8OH.js → block-wrapper-_oCLYjA0.js} +3 -3
  38. package/lib/{node/block-wrapper-VDAcUhC-.cjs → edge/block-wrapper-e76eazMP.cjs} +1 -1
  39. package/lib/edge/blocks/accordion/accordion.vue.d.ts +3 -3
  40. package/lib/edge/blocks/button/button.vue.d.ts +3 -3
  41. package/lib/edge/blocks/columns/columns.vue.d.ts +9 -9
  42. package/lib/edge/blocks/form/form/form.vue.d.ts +9 -9
  43. package/lib/edge/blocks/form/input/input.vue.d.ts +6 -6
  44. package/lib/edge/blocks/form/textarea/textarea.vue.d.ts +3 -3
  45. package/lib/edge/blocks/symbol/symbol.vue.d.ts +9 -9
  46. package/lib/edge/blocks/tabs/tabs.vue.d.ts +3 -3
  47. package/lib/edge/blocks/video/video.vue.d.ts +3 -3
  48. package/lib/{node/component-ref-XxfgsVAO.cjs → edge/component-ref-kpSD1Znd.cjs} +1 -1
  49. package/lib/{node/component-ref-Au-JxCpz.js → edge/component-ref-vunvHoZn.js} +2 -2
  50. package/lib/edge/components/block/block.helpers.d.ts +8 -8
  51. package/lib/edge/components/block/block.vue.d.ts +3 -3
  52. package/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +6 -6
  53. package/lib/edge/components/block/components/repeated-block.vue.d.ts +3 -3
  54. package/lib/edge/components/blocks/blocks.vue.d.ts +3 -3
  55. package/lib/edge/components/content/components/enable-editor.vue.d.ts +12 -12
  56. package/lib/edge/components/content/content.vue.d.ts +18 -18
  57. package/lib/edge/components/content-variants/content-variants.vue.d.ts +12 -12
  58. package/lib/edge/components/content-variants/inlined-fns.d.ts +1 -1
  59. package/lib/edge/constants/sdk-version.d.ts +1 -1
  60. package/lib/edge/{get-block-properties-RUv19U0D.js → get-block-properties-KooliJEr.js} +1 -1
  61. package/lib/edge/{get-block-properties-mYCrAhpB.cjs → get-block-properties-by2fStX3.cjs} +1 -1
  62. package/lib/edge/{index-fmKlzhOA.js → index-FfRBzdcb.js} +1333 -1209
  63. package/lib/edge/index-roTI7Hky.cjs +186 -0
  64. package/lib/edge/index.cjs +1 -1
  65. package/lib/edge/index.mjs +1 -1
  66. package/lib/edge/{repeated-block-zMex8Hyo.js → repeated-block-Bv_1I8Ud.js} +2 -2
  67. package/lib/edge/{repeated-block-fT6ciF3Y.cjs → repeated-block-GKGq6dYq.cjs} +1 -1
  68. package/lib/edge/types/components.d.ts +41 -0
  69. package/lib/node/{block-styles-PnZ5sEmM.cjs → block-styles-DIWBbAnH.cjs} +1 -1
  70. package/lib/{edge/block-styles-Jd0r8FSA.js → node/block-styles-zct_8ddd.js} +1 -1
  71. package/lib/{edge/block-wrapper-A5vScnuu.cjs → node/block-wrapper-INTUvEJp.cjs} +1 -1
  72. package/lib/node/{block-wrapper-FGDcViUJ.js → block-wrapper-_BPFTFXt.js} +3 -3
  73. package/lib/node/blocks/accordion/accordion.vue.d.ts +3 -3
  74. package/lib/node/blocks/button/button.vue.d.ts +3 -3
  75. package/lib/node/blocks/columns/columns.vue.d.ts +9 -9
  76. package/lib/node/blocks/form/form/form.vue.d.ts +9 -9
  77. package/lib/node/blocks/form/input/input.vue.d.ts +6 -6
  78. package/lib/node/blocks/form/textarea/textarea.vue.d.ts +3 -3
  79. package/lib/node/blocks/symbol/symbol.vue.d.ts +9 -9
  80. package/lib/node/blocks/tabs/tabs.vue.d.ts +3 -3
  81. package/lib/node/blocks/video/video.vue.d.ts +3 -3
  82. package/lib/{edge/component-ref-LJrom_Hw.js → node/component-ref-6qaPMg_V.js} +2 -2
  83. package/lib/{edge/component-ref-t-ZqciWS.cjs → node/component-ref-onSus3rm.cjs} +1 -1
  84. package/lib/node/components/block/block.helpers.d.ts +8 -8
  85. package/lib/node/components/block/block.vue.d.ts +3 -3
  86. package/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +6 -6
  87. package/lib/node/components/block/components/repeated-block.vue.d.ts +3 -3
  88. package/lib/node/components/blocks/blocks.vue.d.ts +3 -3
  89. package/lib/node/components/content/components/enable-editor.vue.d.ts +12 -12
  90. package/lib/node/components/content/content.vue.d.ts +18 -18
  91. package/lib/node/components/content-variants/content-variants.vue.d.ts +12 -12
  92. package/lib/node/components/content-variants/inlined-fns.d.ts +1 -1
  93. package/lib/node/constants/sdk-version.d.ts +1 -1
  94. package/lib/node/{get-block-properties-H2mLG2ne.cjs → get-block-properties-J2hYDEjG.cjs} +1 -1
  95. package/lib/node/{get-block-properties-WCuExDS0.js → get-block-properties-Z8dbhv04.js} +1 -1
  96. package/lib/node/index-LYUOXK6N.cjs +213 -0
  97. package/lib/node/{index-2FruHdw_.js → index-mwT6ab1s.js} +227 -103
  98. package/lib/node/index.cjs +1 -1
  99. package/lib/node/index.mjs +1 -1
  100. package/lib/node/{repeated-block-pn4OjL31.js → repeated-block-DHUq5Kzz.js} +2 -2
  101. package/lib/node/{repeated-block-6pZDOeM_.cjs → repeated-block-KIbLvY78.cjs} +1 -1
  102. package/lib/node/types/components.d.ts +41 -0
  103. package/package.json +1 -1
  104. package/lib/browser/index-B7uwco2M.cjs +0 -166
  105. package/lib/edge/index-ZhWTg6tN.cjs +0 -186
  106. package/lib/node/index-waRiX7LZ.cjs +0 -213
@@ -1,24 +1,24 @@
1
- var pt = Object.defineProperty;
2
- var mt = (e, t, n) => t in e ? pt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var oe = (e, t, n) => (mt(e, typeof t != "symbol" ? t + "" : t, n), n);
1
+ var mt = Object.defineProperty;
2
+ var ht = (e, t, n) => t in e ? mt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var re = (e, t, n) => (ht(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import "./style.css";
5
- import { defineComponent as f, openBlock as d, createElementBlock as p, Fragment as I, createBlock as k, resolveDynamicComponent as K, mergeProps as C, toHandlers as P, withCtx as W, renderSlot as x, resolveComponent as g, createTextVNode as ht, toDisplayString as ne, defineAsyncComponent as H, createVNode as R, renderList as N, createCommentVNode as S, h as xe, createElementVNode as z, normalizeStyle as D, normalizeClass as J, markRaw as ft } from "vue";
6
- const bt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), gt = (e) => typeof e == "string" && bt.has(e.toLowerCase());
7
- function A(e = {}, t, n) {
5
+ import { defineComponent as f, openBlock as d, createElementBlock as p, Fragment as I, createBlock as k, resolveDynamicComponent as K, mergeProps as S, toHandlers as P, withCtx as W, renderSlot as E, resolveComponent as g, createTextVNode as ft, toDisplayString as ne, defineAsyncComponent as H, createVNode as $, renderList as N, createCommentVNode as v, h as Ae, createElementVNode as z, normalizeStyle as O, normalizeClass as J, markRaw as bt } from "vue";
6
+ const gt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), yt = (e) => typeof e == "string" && gt.has(e.toLowerCase());
7
+ function x(e = {}, t, n) {
8
8
  const o = {};
9
9
  for (const r in e) {
10
10
  if (!e[r] || n && !r.startsWith(t))
11
11
  continue;
12
- const s = n ? r.replace(t, "") : r;
13
- o[s] = e[r];
12
+ const i = n ? r.replace(t, "") : r;
13
+ o[i] = e[r];
14
14
  }
15
15
  return o;
16
16
  }
17
- const yt = f({
17
+ const kt = f({
18
18
  name: "dynamic-renderer",
19
19
  props: ["TagName", "attributes", "actionAttributes"],
20
20
  data() {
21
- return { isEmptyElement: gt };
21
+ return { isEmptyElement: yt };
22
22
  }
23
23
  }), b = (e, t) => {
24
24
  const n = e.__vccOpts || e;
@@ -26,26 +26,26 @@ const yt = f({
26
26
  n[o] = r;
27
27
  return n;
28
28
  };
29
- function kt(e, t, n, o, r, s) {
30
- return e.isEmptyElement(e.TagName) ? (d(), k(K(e.TagName), C({ key: 1 }, e.attributes, P(e.actionAttributes)), null, 16)) : (d(), p(I, { key: 0 }, [
31
- typeof e.TagName == "string" ? (d(), k(K(e.TagName), C({ key: 0 }, e.attributes, P(e.actionAttributes)), {
29
+ function vt(e, t, n, o, r, i) {
30
+ return e.isEmptyElement(e.TagName) ? (d(), k(K(e.TagName), S({ key: 1 }, e.attributes, P(e.actionAttributes)), null, 16)) : (d(), p(I, { key: 0 }, [
31
+ typeof e.TagName == "string" ? (d(), k(K(e.TagName), S({ key: 0 }, e.attributes, P(e.actionAttributes)), {
32
32
  default: W(() => [
33
- x(e.$slots, "default")
33
+ E(e.$slots, "default")
34
34
  ]),
35
35
  _: 3
36
- }, 16)) : (d(), k(K(e.TagName), C({ key: 1 }, e.attributes, P(e.actionAttributes)), {
36
+ }, 16)) : (d(), k(K(e.TagName), S({ key: 1 }, e.attributes, P(e.actionAttributes)), {
37
37
  default: W(() => [
38
- x(e.$slots, "default")
38
+ E(e.$slots, "default")
39
39
  ]),
40
40
  _: 3
41
41
  }, 16))
42
42
  ], 64));
43
43
  }
44
- const me = /* @__PURE__ */ b(yt, [["render", kt]]), Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
44
+ const he = /* @__PURE__ */ b(kt, [["render", vt]]), Ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
45
45
  __proto__: null,
46
- default: me
47
- }, Symbol.toStringTag, { value: "Module" })), $ = "vue", ee = () => {
48
- switch ($) {
46
+ default: he
47
+ }, Symbol.toStringTag, { value: "Module" })), A = "vue", ee = () => {
48
+ switch (A) {
49
49
  case "react":
50
50
  case "reactNative":
51
51
  case "rsc":
@@ -57,9 +57,9 @@ const me = /* @__PURE__ */ b(yt, [["render", kt]]), Bs = /* @__PURE__ */ Object.
57
57
  case "angular":
58
58
  return "class";
59
59
  }
60
- }, St = f({
60
+ }, Ct = f({
61
61
  name: "builder-button",
62
- components: { DynamicRenderer: me },
62
+ components: { DynamicRenderer: he },
63
63
  props: [
64
64
  "attributes",
65
65
  "link",
@@ -68,12 +68,12 @@ const me = /* @__PURE__ */ b(yt, [["render", kt]]), Bs = /* @__PURE__ */ Object.
68
68
  "text"
69
69
  ],
70
70
  data() {
71
- return { filterAttrs: A };
71
+ return { filterAttrs: x };
72
72
  },
73
73
  methods: {
74
74
  attrs() {
75
75
  return {
76
- ...A(this.attributes, "v-on:", !1),
76
+ ...x(this.attributes, "v-on:", !1),
77
77
  [ee()]: `${this.link ? "" : "builder-button"} ${this.attributes[ee()] || ""}`,
78
78
  ...this.link ? {
79
79
  href: this.link,
@@ -86,20 +86,20 @@ const me = /* @__PURE__ */ b(yt, [["render", kt]]), Bs = /* @__PURE__ */ Object.
86
86
  }
87
87
  }
88
88
  });
89
- function vt(e, t, n, o, r, s) {
90
- const i = g("DynamicRenderer");
91
- return d(), k(i, {
89
+ function St(e, t, n, o, r, i) {
90
+ const s = g("DynamicRenderer");
91
+ return d(), k(s, {
92
92
  attributes: e.attrs(),
93
93
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
94
94
  actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
95
95
  }, {
96
96
  default: W(() => [
97
- ht(ne(e.text), 1)
97
+ ft(ne(e.text), 1)
98
98
  ]),
99
99
  _: 1
100
100
  }, 8, ["attributes", "TagName", "actionAttributes"]);
101
101
  }
102
- const Ct = /* @__PURE__ */ b(St, [["render", vt]]), wt = Symbol(), ce = {
102
+ const wt = /* @__PURE__ */ b(Ct, [["render", St]]), Tt = Symbol(), de = {
103
103
  Builder: {
104
104
  content: null,
105
105
  context: {},
@@ -114,12 +114,12 @@ const Ct = /* @__PURE__ */ b(St, [["render", vt]]), wt = Symbol(), ce = {
114
114
  BlocksWrapper: "div",
115
115
  BlocksWrapperProps: {}
116
116
  },
117
- key: wt
118
- }, Tt = Symbol(), Ae = {
119
- Components: { registeredComponents: {} },
120
117
  key: Tt
118
+ }, It = Symbol(), Ve = {
119
+ Components: { registeredComponents: {} },
120
+ key: It
121
121
  };
122
- function It(e) {
122
+ function $t(e) {
123
123
  var t;
124
124
  return {
125
125
  ...(t = e.component) == null ? void 0 : t.options,
@@ -135,27 +135,27 @@ const Z = "[Builder.io]: ", B = {
135
135
  function T() {
136
136
  return typeof window < "u" && typeof document < "u";
137
137
  }
138
- const $t = (e) => {
138
+ const Rt = (e) => {
139
139
  const t = {};
140
140
  return e.forEach((n, o) => {
141
141
  t[o] = n;
142
142
  }), t;
143
- }, Ve = (e) => e instanceof URLSearchParams ? $t(e) : e, We = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
144
- function Rt() {
143
+ }, We = (e) => e instanceof URLSearchParams ? Rt(e) : e, Ne = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
144
+ function Bt() {
145
145
  return T() && window.self !== window.top;
146
146
  }
147
- function E(e) {
148
- return Rt() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
149
- We(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
147
+ function R(e) {
148
+ return Bt() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
149
+ Ne(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
150
150
  }
151
- const Et = () => {
151
+ const Pt = () => {
152
152
  if (T()) {
153
153
  const e = new URL(location.href);
154
154
  return e.pathname === "" && (e.pathname = "/"), e;
155
155
  } else
156
156
  return console.warn("Cannot get location for tracking in non-browser environment"), null;
157
- }, Bt = () => typeof navigator == "object" && navigator.userAgent || "", Ne = () => {
158
- const e = Bt(), t = {
157
+ }, Et = () => typeof navigator == "object" && navigator.userAgent || "", Le = () => {
158
+ const e = Et(), t = {
159
159
  Android() {
160
160
  return e.match(/Android/i);
161
161
  },
@@ -172,15 +172,15 @@ const Et = () => {
172
172
  return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
173
173
  },
174
174
  any() {
175
- return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || $ === "reactNative";
175
+ return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || A === "reactNative";
176
176
  }
177
- }, n = e.match(/Tablet|iPad/i), o = Et();
177
+ }, n = e.match(/Tablet|iPad/i), o = Pt();
178
178
  return {
179
179
  urlPath: o == null ? void 0 : o.pathname,
180
180
  host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
181
181
  device: n ? "tablet" : t.any() ? "mobile" : "desktop"
182
182
  };
183
- }, Pt = ({
183
+ }, xt = ({
184
184
  builder: e,
185
185
  context: t,
186
186
  event: n,
@@ -192,30 +192,30 @@ const Et = () => {
192
192
  builder: e,
193
193
  context: t,
194
194
  event: n
195
- }), xt = () => ({
196
- isEditing: E(),
195
+ }), At = () => ({
196
+ isEditing: R(),
197
197
  isBrowser: T(),
198
198
  isServer: !T(),
199
- getUserAttributes: () => Ne()
200
- }), At = (e, {
199
+ getUserAttributes: () => Le()
200
+ }), Vt = (e, {
201
201
  isExpression: t = !0
202
- }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, ve = ({
202
+ }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, Se = ({
203
203
  code: e,
204
204
  builder: t,
205
205
  context: n,
206
206
  event: o,
207
207
  localState: r,
208
- rootSetState: s,
209
- rootState: i
208
+ rootSetState: i,
209
+ rootState: s
210
210
  }) => {
211
- const l = Pt({
211
+ const l = xt({
212
212
  builder: t,
213
213
  context: n,
214
214
  event: o,
215
215
  state: Fe({
216
- rootState: i,
216
+ rootState: s,
217
217
  localState: r,
218
- rootSetState: s
218
+ rootSetState: i
219
219
  })
220
220
  });
221
221
  return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
@@ -229,34 +229,34 @@ function Fe({
229
229
  get: (o, r) => {
230
230
  if (t && r in t)
231
231
  return t[r];
232
- const s = o[r];
233
- return typeof s == "object" && s !== null ? Fe({
234
- rootState: s,
232
+ const i = o[r];
233
+ return typeof i == "object" && i !== null ? Fe({
234
+ rootState: i,
235
235
  localState: void 0,
236
- rootSetState: n ? (i) => {
237
- o[r] = i, n(o);
236
+ rootSetState: n ? (s) => {
237
+ o[r] = s, n(o);
238
238
  } : void 0
239
- }) : s;
239
+ }) : i;
240
240
  },
241
- set: (o, r, s) => {
241
+ set: (o, r, i) => {
242
242
  if (t && r in t)
243
243
  throw new Error("Writing to local state is not allowed as it is read-only.");
244
- return o[r] = s, n == null || n(o), !0;
244
+ return o[r] = i, n == null || n(o), !0;
245
245
  }
246
246
  });
247
247
  }
248
- const U = (e) => e != null;
249
- function Vt() {
248
+ const D = (e) => e != null;
249
+ function Wt() {
250
250
  var e;
251
- return typeof process < "u" && U((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
251
+ return typeof process < "u" && D((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
252
252
  }
253
- const Wt = () => {
253
+ const Nt = () => {
254
254
  var o;
255
- if (!Vt())
255
+ if (!Wt())
256
256
  return !1;
257
257
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
258
258
  return e && t && !n ? (B.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
259
- }, Nt = (e) => (T() || Wt(), ve(e)), V = class V {
259
+ }, Lt = (e) => (T() || Nt(), Se(e)), V = class V {
260
260
  static getCacheKey(t) {
261
261
  return JSON.stringify({
262
262
  ...t,
@@ -274,41 +274,41 @@ const Wt = () => {
274
274
  });
275
275
  }
276
276
  };
277
- oe(V, "cacheLimit", 20), oe(V, "cache", /* @__PURE__ */ new Map());
278
- let L = V;
277
+ re(V, "cacheLimit", 20), re(V, "cache", /* @__PURE__ */ new Map());
278
+ let U = V;
279
279
  function te({
280
280
  code: e,
281
281
  context: t,
282
282
  localState: n,
283
283
  rootState: o,
284
284
  rootSetState: r,
285
- event: s,
286
- isExpression: i = !0,
285
+ event: i,
286
+ isExpression: s = !0,
287
287
  enableCache: l
288
288
  }) {
289
289
  if (e === "")
290
290
  return;
291
291
  const a = {
292
- code: At(e, {
293
- isExpression: i
292
+ code: Vt(e, {
293
+ isExpression: s
294
294
  }),
295
- builder: xt(),
295
+ builder: At(),
296
296
  context: t,
297
- event: s,
297
+ event: i,
298
298
  rootSetState: r,
299
299
  rootState: o,
300
300
  localState: n
301
301
  };
302
302
  if (l) {
303
- const u = L.getCacheKey(a), h = L.getCachedValue(u);
303
+ const u = U.getCacheKey(a), h = U.getCachedValue(u);
304
304
  if (h)
305
305
  return h.value;
306
306
  }
307
307
  try {
308
- const u = Nt(a);
308
+ const u = Lt(a);
309
309
  if (l) {
310
- const h = L.getCacheKey(a);
311
- L.setCachedValue(h, u);
310
+ const h = U.getCacheKey(a);
311
+ U.setCachedValue(h, u);
312
312
  }
313
313
  return u;
314
314
  } catch (u) {
@@ -322,7 +322,7 @@ const Y = (e) => JSON.parse(JSON.stringify(e)), Oe = (e, t, n) => {
322
322
  if (Object(e) !== e)
323
323
  return e;
324
324
  const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
325
- return o.slice(0, -1).reduce((r, s, i) => Object(r[s]) === r[s] ? r[s] : r[s] = Math.abs(Number(o[i + 1])) >> 0 === +o[i + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
325
+ return o.slice(0, -1).reduce((r, i, s) => Object(r[i]) === r[i] ? r[i] : r[i] = Math.abs(Number(o[s + 1])) >> 0 === +o[s + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
326
326
  };
327
327
  const Ft = ({
328
328
  block: e,
@@ -333,13 +333,13 @@ const Ft = ({
333
333
  }) => {
334
334
  if (!e.bindings)
335
335
  return e;
336
- const s = Y(e), i = {
337
- ...s,
336
+ const i = Y(e), s = {
337
+ ...i,
338
338
  properties: {
339
- ...s.properties
339
+ ...i.properties
340
340
  },
341
341
  actions: {
342
- ...s.actions
342
+ ...i.actions
343
343
  }
344
344
  };
345
345
  for (const l in e.bindings) {
@@ -351,9 +351,9 @@ const Ft = ({
351
351
  context: t,
352
352
  enableCache: !0
353
353
  });
354
- Oe(i, l, u);
354
+ Oe(s, l, u);
355
355
  }
356
- return i;
356
+ return s;
357
357
  };
358
358
  function De({
359
359
  block: e,
@@ -361,28 +361,28 @@ function De({
361
361
  shouldEvaluateBindings: n,
362
362
  localState: o,
363
363
  rootState: r,
364
- rootSetState: s
364
+ rootSetState: i
365
365
  }) {
366
- const i = e;
366
+ const s = e;
367
367
  return n ? Ft({
368
- block: i,
368
+ block: s,
369
369
  localState: o,
370
370
  rootState: r,
371
- rootSetState: s,
371
+ rootSetState: i,
372
372
  context: t
373
- }) : i;
373
+ }) : s;
374
374
  }
375
- const he = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
375
+ const fe = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
376
376
  function Ot(e, t, n = {}) {
377
- let o, r, s, i = null, l = 0;
377
+ let o, r, i, s = null, l = 0;
378
378
  const a = function() {
379
- l = n.leading === !1 ? 0 : Date.now(), i = null, s = e.apply(o, r), i || (o = r = null);
379
+ l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
380
380
  };
381
381
  return function() {
382
382
  const u = Date.now();
383
383
  !l && n.leading === !1 && (l = u);
384
384
  const h = t - (u - l);
385
- return o = this, r = arguments, h <= 0 || h > t ? (i && (clearTimeout(i), i = null), l = u, s = e.apply(o, r), i || (o = r = null)) : !i && n.trailing !== !1 && (i = setTimeout(a, h)), s;
385
+ return o = this, r = arguments, h <= 0 || h > t ? (s && (clearTimeout(s), s = null), l = u, i = e.apply(o, r), s || (o = r = null)) : !s && n.trailing !== !1 && (s = setTimeout(a, h)), i;
386
386
  };
387
387
  }
388
388
  function q(e, ...t) {
@@ -390,8 +390,8 @@ function q(e, ...t) {
390
390
  for (let o = 1; o < arguments.length; o++) {
391
391
  const r = arguments[o];
392
392
  if (r != null)
393
- for (const s in r)
394
- Object.prototype.hasOwnProperty.call(r, s) && (n[s] = r[s]);
393
+ for (const i in r)
394
+ Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
395
395
  }
396
396
  return n;
397
397
  }
@@ -399,19 +399,19 @@ function Dt(e) {
399
399
  for (const t of e)
400
400
  switch (t.trigger) {
401
401
  case "pageLoad":
402
- Me(t);
402
+ je(t);
403
403
  break;
404
404
  case "scrollInView":
405
- Lt(t);
405
+ Mt(t);
406
406
  break;
407
407
  }
408
408
  }
409
409
  function Ue(e) {
410
410
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
411
411
  }
412
- function Le(e, t) {
413
- const n = Ut(e), o = getComputedStyle(t), r = e.steps[0].styles, s = e.steps[e.steps.length - 1].styles, i = [r, s];
414
- for (const l of i)
412
+ function Me(e, t) {
413
+ const n = Ut(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
414
+ for (const l of s)
415
415
  for (const a of n)
416
416
  a in l || (l[a] = o[a]);
417
417
  }
@@ -422,37 +422,37 @@ function Ut(e) {
422
422
  t.indexOf(o) === -1 && t.push(o);
423
423
  return t;
424
424
  }
425
- function Me(e) {
425
+ function je(e) {
426
426
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
427
427
  if (!t.length) {
428
428
  Ue(e.elementId || e.id || "");
429
429
  return;
430
430
  }
431
431
  Array.from(t).forEach((n) => {
432
- Le(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
433
- n.style.transition = `all ${e.duration}s ${he(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), q(n.style, e.steps[1].styles), setTimeout(() => {
432
+ Me(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
433
+ n.style.transition = `all ${e.duration}s ${fe(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), q(n.style, e.steps[1].styles), setTimeout(() => {
434
434
  n.style.transition = "", n.style.transitionDelay = "";
435
435
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
436
436
  });
437
437
  });
438
438
  }
439
- function Lt(e) {
439
+ function Mt(e) {
440
440
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
441
441
  if (!t.length) {
442
442
  Ue(e.elementId || e.id || "");
443
443
  return;
444
444
  }
445
445
  Array.from(t).forEach((n) => {
446
- Le(e, n);
446
+ Me(e, n);
447
447
  let o = !1, r = !1;
448
- function s() {
448
+ function i() {
449
449
  !o && l(n) ? (o = !0, r = !0, setTimeout(() => {
450
- q(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", i), setTimeout(() => {
450
+ q(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
451
451
  r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
452
452
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
453
453
  })) : e.repeat && o && !r && !l(n) && (o = !1, q(n.style, e.steps[0].styles));
454
454
  }
455
- const i = Ot(s, 200, {
455
+ const s = Ot(i, 200, {
456
456
  leading: !1
457
457
  });
458
458
  function l(h) {
@@ -464,49 +464,49 @@ function Lt(e) {
464
464
  q(n.style, a);
465
465
  }
466
466
  u(), setTimeout(() => {
467
- n.style.transition = `all ${e.duration}s ${he(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
468
- }), document.addEventListener("scroll", i, {
467
+ n.style.transition = `all ${e.duration}s ${fe(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
468
+ }), document.addEventListener("scroll", s, {
469
469
  capture: !0,
470
470
  passive: !0
471
- }), s();
471
+ }), i();
472
472
  });
473
473
  }
474
- const je = (e) => Object.entries(e).map(([n, o]) => {
474
+ const He = (e) => Object.entries(e).map(([n, o]) => {
475
475
  if (typeof o == "string")
476
- return `${he(n)}: ${o};`;
477
- }).filter(U), Mt = (e) => je(e).join(`
478
- `), Ps = ({
476
+ return `${fe(n)}: ${o};`;
477
+ }).filter(D), jt = (e) => He(e).join(`
478
+ `), xi = ({
479
479
  mediaQuery: e,
480
480
  className: t,
481
481
  styles: n
482
482
  }) => {
483
483
  const o = `.${t} {
484
- ${Mt(n)}
484
+ ${jt(n)}
485
485
  }`;
486
486
  return e ? `${e} {
487
487
  ${o}
488
488
  }` : o;
489
489
  };
490
- function jt({
490
+ function Ht({
491
491
  style: e
492
492
  }) {
493
493
  return e;
494
494
  }
495
- const xs = ({
495
+ const Ai = ({
496
496
  block: e,
497
497
  context: t
498
- }) => He(jt({
498
+ }) => Ke(Ht({
499
499
  style: e.style || {},
500
500
  context: t,
501
501
  block: e
502
502
  }));
503
- function He(e) {
504
- switch ($) {
503
+ function Ke(e) {
504
+ switch (A) {
505
505
  case "svelte":
506
506
  case "vue":
507
507
  case "solid":
508
508
  case "angular":
509
- return je(e).join(" ");
509
+ return He(e).join(" ");
510
510
  case "qwik":
511
511
  case "reactNative":
512
512
  case "react":
@@ -514,20 +514,20 @@ function He(e) {
514
514
  return e;
515
515
  }
516
516
  }
517
- const Ht = ({
517
+ const Kt = ({
518
518
  block: e,
519
519
  context: t,
520
520
  registeredComponents: n
521
521
  }) => {
522
- var s;
523
- const o = (s = De({
522
+ var i;
523
+ const o = (i = De({
524
524
  block: e,
525
525
  localState: t.localState,
526
526
  rootState: t.rootState,
527
527
  rootSetState: t.rootSetState,
528
528
  context: t.context,
529
529
  shouldEvaluateBindings: !1
530
- }).component) == null ? void 0 : s.name;
530
+ }).component) == null ? void 0 : i.name;
531
531
  if (!o)
532
532
  return null;
533
533
  const r = n[o];
@@ -536,7 +536,7 @@ const Ht = ({
536
536
  console.warn(`
537
537
  Could not find a registered component named "${o}".
538
538
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
539
- }, Kt = ({
539
+ }, qt = ({
540
540
  block: e,
541
541
  context: t
542
542
  }) => {
@@ -556,7 +556,7 @@ const Ht = ({
556
556
  });
557
557
  if (!Array.isArray(r))
558
558
  return;
559
- const s = n.collection.split(".").pop(), i = n.itemName || (s ? s + "Item" : "item");
559
+ const i = n.collection.split(".").pop(), s = n.itemName || (i ? i + "Item" : "item");
560
560
  return r.map((a, u) => ({
561
561
  context: {
562
562
  ...t,
@@ -564,53 +564,61 @@ const Ht = ({
564
564
  ...t.localState,
565
565
  $index: u,
566
566
  $item: a,
567
- [i]: a,
568
- [`$${i}Index`]: u
567
+ [s]: a,
568
+ [`$${s}Index`]: u
569
569
  }
570
570
  },
571
571
  block: o
572
572
  }));
573
- }, qt = (e, t) => e && (e.isRSC && $ === "rsc" || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)) ? {
573
+ }, oe = (e) => ({
574
+ // once we bump to a major version, toggle this to `false`.
575
+ builderBlock: !0,
576
+ // once we bump to a major version, toggle this to `false`.
577
+ builderContext: !0,
578
+ builderComponents: !1,
579
+ builderLinkComponent: !1,
580
+ ...e
581
+ }), zt = (e, t) => e ? oe(e.shouldReceiveBuilderProps).builderLinkComponent ? {
574
582
  builderLinkComponent: t
575
- } : {}, zt = (e, t) => e && (e.isRSC && $ === "rsc" || ["Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)) ? {
583
+ } : {} : {}, Jt = (e, t) => e ? oe(e.shouldReceiveBuilderProps).builderComponents ? {
576
584
  builderComponents: t
577
- } : {}, Jt = (e, t) => e && (e.isRSC && $ === "rsc" || $ === "reactNative" || ["Builder:Accordion", "Columns", "Form:Form", "Builder: Tabs", "Symbol", "Image", "Video"].includes(e.name)) ? {
585
+ } : {} : {}, Gt = (e, t) => e ? oe(e.shouldReceiveBuilderProps).builderBlock ? {
578
586
  builderBlock: t
579
- } : {}, Gt = (e, t) => e && (e.isRSC && $ === "rsc" || ["Builder:Accordion", "Columns", "Form:Form", "Builder: Tabs", "Symbol", "Slot"].includes(e.name)) ? {
587
+ } : {} : {}, Yt = (e, t) => e ? oe(e.shouldReceiveBuilderProps).builderContext ? {
580
588
  builderContext: t
581
- } : {}, Yt = () => Promise.resolve().then(() => dn).then((e) => e.default).catch((e) => {
589
+ } : {} : {}, Qt = () => Promise.resolve().then(() => un).then((e) => e.default).catch((e) => {
582
590
  throw console.error(
583
591
  "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
584
592
  e
585
593
  ), e;
586
- }), Qt = () => import("./block-styles-QmmLdzpW.js").then((e) => e.default).catch((e) => {
594
+ }), Xt = () => import("./block-styles-IgeLKqtO.js").then((e) => e.default).catch((e) => {
587
595
  throw console.error(
588
596
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
589
597
  e
590
598
  ), e;
591
- }), Xt = () => import("./block-wrapper-26flngEX.js").then((e) => e.default).catch((e) => {
599
+ }), Zt = () => import("./block-wrapper-2dz0ANfE.js").then((e) => e.default).catch((e) => {
592
600
  throw console.error(
593
601
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
594
602
  e
595
603
  ), e;
596
- }), Zt = () => import("./component-ref-f6HeLjzo.js").then((e) => e.default).catch((e) => {
604
+ }), _t = () => import("./component-ref-V2PjOzrU.js").then((e) => e.default).catch((e) => {
597
605
  throw console.error(
598
606
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
599
607
  e
600
608
  ), e;
601
- }), _t = () => import("./repeated-block-By1JKWmB.js").then((e) => e.default).catch((e) => {
609
+ }), en = () => import("./repeated-block-N87PTuTY.js").then((e) => e.default).catch((e) => {
602
610
  throw console.error(
603
611
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
604
612
  e
605
613
  ), e;
606
- }), en = f({
614
+ }), tn = f({
607
615
  name: "block",
608
616
  components: {
609
- BlockStyles: H(Qt),
610
- ComponentRef: H(Zt),
611
- RepeatedBlock: H(_t),
612
- BlockWrapper: H(Xt),
613
- DynamicDiv: H(Yt)
617
+ BlockStyles: H(Xt),
618
+ ComponentRef: H(_t),
619
+ RepeatedBlock: H(en),
620
+ BlockWrapper: H(Zt),
621
+ DynamicDiv: H(Qt)
614
622
  },
615
623
  props: ["block", "context", "registeredComponents", "linkComponent"],
616
624
  mounted() {
@@ -624,14 +632,14 @@ const Ht = ({
624
632
  },
625
633
  computed: {
626
634
  blockComponent() {
627
- return Ht({
635
+ return Kt({
628
636
  block: this.block,
629
637
  context: this.context,
630
638
  registeredComponents: this.registeredComponents
631
639
  });
632
640
  },
633
641
  repeatItem() {
634
- return Kt({
642
+ return qt({
635
643
  block: this.block,
636
644
  context: this.context
637
645
  });
@@ -668,11 +676,11 @@ const Ht = ({
668
676
  blockChildren: this.processedBlock.children ?? [],
669
677
  componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
670
678
  componentOptions: {
671
- ...It(this.processedBlock),
672
- ...Jt(this.blockComponent, this.processedBlock),
673
- ...Gt(this.blockComponent, this.context),
674
- ...qt(this.blockComponent, this.linkComponent),
675
- ...zt(
679
+ ...$t(this.processedBlock),
680
+ ...Gt(this.blockComponent, this.processedBlock),
681
+ ...Yt(this.blockComponent, this.context),
682
+ ...zt(this.blockComponent, this.linkComponent),
683
+ ...Jt(
676
684
  this.blockComponent,
677
685
  this.registeredComponents
678
686
  )
@@ -687,11 +695,11 @@ const Ht = ({
687
695
  }
688
696
  }
689
697
  });
690
- function tn(e, t, n, o, r, s) {
698
+ function nn(e, t, n, o, r, i) {
691
699
  var c;
692
- const i = g("BlockStyles"), l = g("ComponentRef"), a = g("Block", !0), u = g("BlockWrapper"), h = g("RepeatedBlock");
700
+ const s = g("BlockStyles"), l = g("ComponentRef"), a = g("Block", !0), u = g("BlockWrapper"), h = g("RepeatedBlock");
693
701
  return e.canShowBlock ? (d(), p(I, { key: 0 }, [
694
- R(i, {
702
+ $(s, {
695
703
  block: e.block,
696
704
  context: e.context
697
705
  }, null, 8, ["block", "context"]),
@@ -707,8 +715,8 @@ function tn(e, t, n, o, r, s) {
707
715
  includeBlockProps: e.componentRefProps.includeBlockProps,
708
716
  isInteractive: e.componentRefProps.isInteractive
709
717
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"])) : (d(), p(I, { key: 0 }, [
710
- e.repeatItem ? (d(!0), p(I, { key: 1 }, N(e.repeatItem, (m, v) => (d(), k(h, {
711
- key: v,
718
+ e.repeatItem ? (d(!0), p(I, { key: 1 }, N(e.repeatItem, (m, C) => (d(), k(h, {
719
+ key: C,
712
720
  repeatContext: m.context,
713
721
  block: m.block,
714
722
  registeredComponents: e.registeredComponents,
@@ -720,7 +728,7 @@ function tn(e, t, n, o, r, s) {
720
728
  context: e.context
721
729
  }, {
722
730
  default: W(() => [
723
- R(l, {
731
+ $(l, {
724
732
  componentRef: e.componentRefProps.componentRef,
725
733
  componentOptions: e.componentRefProps.componentOptions,
726
734
  blockChildren: e.componentRefProps.blockChildren,
@@ -731,7 +739,7 @@ function tn(e, t, n, o, r, s) {
731
739
  includeBlockProps: e.componentRefProps.includeBlockProps,
732
740
  isInteractive: e.componentRefProps.isInteractive
733
741
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
734
- (d(!0), p(I, null, N(e.childrenWithoutParentComponent, (m, v) => (d(), k(a, {
742
+ (d(!0), p(I, null, N(e.childrenWithoutParentComponent, (m, C) => (d(), k(a, {
735
743
  key: m.id,
736
744
  block: m,
737
745
  registeredComponents: e.registeredComponents,
@@ -742,12 +750,12 @@ function tn(e, t, n, o, r, s) {
742
750
  _: 1
743
751
  }, 8, ["Wrapper", "block", "context"]))
744
752
  ], 64))
745
- ], 64)) : S("", !0);
753
+ ], 64)) : v("", !0);
746
754
  }
747
- const fe = /* @__PURE__ */ b(en, [["render", tn]]), As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
755
+ const be = /* @__PURE__ */ b(tn, [["render", nn]]), Vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
748
756
  __proto__: null,
749
- default: fe
750
- }, Symbol.toStringTag, { value: "Module" })), nn = f({
757
+ default: be
758
+ }, Symbol.toStringTag, { value: "Module" })), on = f({
751
759
  name: "builder-blocks-wrapper",
752
760
  props: [
753
761
  "blocks",
@@ -766,7 +774,7 @@ const fe = /* @__PURE__ */ b(en, [["render", tn]]), As = /* @__PURE__ */ Object.
766
774
  methods: {
767
775
  onClick() {
768
776
  var e, t;
769
- E() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
777
+ R() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
770
778
  {
771
779
  type: "builder.clickEmptyBlocks",
772
780
  data: {
@@ -779,7 +787,7 @@ const fe = /* @__PURE__ */ b(en, [["render", tn]]), As = /* @__PURE__ */ Object.
779
787
  },
780
788
  onMouseEnter() {
781
789
  var e, t;
782
- E() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
790
+ R() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
783
791
  {
784
792
  type: "builder.hoverEmptyBlocks",
785
793
  data: {
@@ -792,25 +800,25 @@ const fe = /* @__PURE__ */ b(en, [["render", tn]]), As = /* @__PURE__ */ Object.
792
800
  }
793
801
  }
794
802
  });
795
- function on(e, t, n, o, r, s) {
796
- return d(), k(K(e.BlocksWrapper), C({
803
+ function rn(e, t, n, o, r, i) {
804
+ return d(), k(K(e.BlocksWrapper), S({
797
805
  class: e.className + " component-178o76acnws",
798
806
  "builder-path": e.path,
799
807
  "builder-parent-id": e.parent,
800
808
  style: e.styleProp,
801
- onClick: (i) => e.onClick(),
802
- onMouseEnter: (i) => e.onMouseEnter(),
803
- onKeyPress: (i) => e.onClick()
809
+ onClick: (s) => e.onClick(),
810
+ onMouseEnter: (s) => e.onMouseEnter(),
811
+ onKeyPress: (s) => e.onClick()
804
812
  }, { ...e.BlocksWrapperProps }), {
805
813
  default: W(() => [
806
- x(e.$slots, "default", {}, void 0, !0)
814
+ E(e.$slots, "default", {}, void 0, !0)
807
815
  ]),
808
816
  _: 3
809
817
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
810
818
  }
811
- const rn = /* @__PURE__ */ b(nn, [["render", on], ["__scopeId", "data-v-a5b13ef9"]]), sn = f({
819
+ const sn = /* @__PURE__ */ b(on, [["render", rn], ["__scopeId", "data-v-a5b13ef9"]]), an = f({
812
820
  name: "builder-blocks",
813
- components: { BlocksWrapper: rn, Block: fe },
821
+ components: { BlocksWrapper: sn, Block: be },
814
822
  props: [
815
823
  "blocks",
816
824
  "parent",
@@ -821,13 +829,13 @@ const rn = /* @__PURE__ */ b(nn, [["render", on], ["__scopeId", "data-v-a5b13ef9
821
829
  "registeredComponents"
822
830
  ],
823
831
  inject: {
824
- builderContext: ce.key,
825
- componentsContext: Ae.key
832
+ builderContext: de.key,
833
+ componentsContext: Ve.key
826
834
  }
827
835
  });
828
- function an(e, t, n, o, r, s) {
836
+ function ln(e, t, n, o, r, i) {
829
837
  var a, u;
830
- const i = g("Block"), l = g("BlocksWrapper");
838
+ const s = g("Block"), l = g("BlocksWrapper");
831
839
  return d(), k(l, {
832
840
  blocks: e.blocks,
833
841
  parent: e.parent,
@@ -837,39 +845,39 @@ function an(e, t, n, o, r, s) {
837
845
  BlocksWrapperProps: ((u = e.context) == null ? void 0 : u.BlocksWrapperProps) || e.builderContext.BlocksWrapperProps
838
846
  }, {
839
847
  default: W(() => [
840
- e.blocks ? (d(!0), p(I, { key: 0 }, N(e.blocks, (h, c) => (d(), k(i, {
848
+ e.blocks ? (d(!0), p(I, { key: 0 }, N(e.blocks, (h, c) => (d(), k(s, {
841
849
  key: h.id,
842
850
  block: h,
843
851
  linkComponent: e.linkComponent,
844
852
  context: e.context || e.builderContext,
845
853
  registeredComponents: e.registeredComponents || e.componentsContext.registeredComponents
846
- }, null, 8, ["block", "linkComponent", "context", "registeredComponents"]))), 128)) : S("", !0)
854
+ }, null, 8, ["block", "linkComponent", "context", "registeredComponents"]))), 128)) : v("", !0)
847
855
  ]),
848
856
  _: 1
849
857
  }, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
850
858
  }
851
- const M = /* @__PURE__ */ b(sn, [["render", an]]), ln = f({
859
+ const M = /* @__PURE__ */ b(an, [["render", ln]]), cn = f({
852
860
  name: "dynamic-div",
853
861
  props: []
854
862
  });
855
- function cn(e, t, n, o, r, s) {
863
+ function dn(e, t, n, o, r, i) {
856
864
  return d(), p("div", null, [
857
- x(e.$slots, "default")
865
+ E(e.$slots, "default")
858
866
  ]);
859
867
  }
860
- const Q = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
868
+ const Q = /* @__PURE__ */ b(cn, [["render", dn]]), un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
861
869
  __proto__: null,
862
870
  default: Q
863
- }, Symbol.toStringTag, { value: "Module" })), be = f({
871
+ }, Symbol.toStringTag, { value: "Module" })), ge = f({
864
872
  render() {
865
- return xe("style", {
873
+ return Ae("style", {
866
874
  innerHTML: this.styles,
867
875
  "data-id": this.id
868
876
  });
869
877
  },
870
878
  name: "inlined-styles",
871
879
  props: ["styles", "id"]
872
- }), Ke = {
880
+ }), qe = {
873
881
  small: {
874
882
  min: 320,
875
883
  default: 321,
@@ -885,11 +893,11 @@ const Q = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.f
885
893
  default: 991,
886
894
  max: 1200
887
895
  }
888
- }, Vs = (e, t = Ke) => `@media (max-width: ${t[e].max}px)`, un = ({
896
+ }, Wi = (e, t = qe) => `@media (max-width: ${t[e].max}px)`, pn = ({
889
897
  small: e,
890
898
  medium: t
891
899
  }) => {
892
- const n = Y(Ke);
900
+ const n = Y(qe);
893
901
  if (!e || !t)
894
902
  return n;
895
903
  const o = Math.floor(e / 2);
@@ -904,18 +912,18 @@ const Q = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.f
904
912
  min: r,
905
913
  default: r + 1
906
914
  };
907
- const s = n.medium.max + 1;
915
+ const i = n.medium.max + 1;
908
916
  return n.large = {
909
917
  max: 2e3,
910
918
  // TODO: decide upper limit
911
- min: s,
912
- default: s + 1
919
+ min: i,
920
+ default: i + 1
913
921
  }, n;
914
- }, pn = (e) => `builder-columns ${e}-breakpoints`, mn = f({
922
+ }, mn = (e) => `builder-columns ${e}-breakpoints`, hn = f({
915
923
  name: "builder-columns",
916
924
  components: {
917
- InlinedStyles: be,
918
- DynamicRenderer: me,
925
+ InlinedStyles: ge,
926
+ DynamicRenderer: he,
919
927
  Blocks: M,
920
928
  DynamicDiv: Q
921
929
  },
@@ -935,8 +943,8 @@ const Q = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.f
935
943
  cols: this.columns || [],
936
944
  stackAt: this.stackColumnsAt || "tablet",
937
945
  flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
938
- TARGET: $,
939
- getColumnsClass: pn
946
+ TARGET: A,
947
+ getColumnsClass: mn
940
948
  };
941
949
  },
942
950
  methods: {
@@ -973,7 +981,7 @@ const Q = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.f
973
981
  };
974
982
  },
975
983
  columnCssVars(e) {
976
- const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, r = "100%", s = 0;
984
+ const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, r = "100%", i = 0;
977
985
  return {
978
986
  ...{
979
987
  display: "flex",
@@ -987,7 +995,7 @@ const Q = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.f
987
995
  desktopStyle: n
988
996
  }),
989
997
  "--column-margin-left-mobile": this.getMobileStyle({
990
- stackedStyle: s,
998
+ stackedStyle: i,
991
999
  desktopStyle: o
992
1000
  }),
993
1001
  "--column-width-tablet": this.getTabletStyle({
@@ -995,14 +1003,14 @@ const Q = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.f
995
1003
  desktopStyle: n
996
1004
  }),
997
1005
  "--column-margin-left-tablet": this.getTabletStyle({
998
- stackedStyle: s,
1006
+ stackedStyle: i,
999
1007
  desktopStyle: o
1000
1008
  })
1001
1009
  };
1002
1010
  },
1003
1011
  getWidthForBreakpointSize(e) {
1004
1012
  var n, o;
1005
- return un(
1013
+ return pn(
1006
1014
  ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
1007
1015
  )[e].max;
1008
1016
  },
@@ -1039,23 +1047,23 @@ const Q = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.f
1039
1047
  href: e.link
1040
1048
  } : {},
1041
1049
  [ee()]: "builder-column",
1042
- style: He(this.columnCssVars(t))
1050
+ style: Ke(this.columnCssVars(t))
1043
1051
  };
1044
1052
  }
1045
1053
  }
1046
1054
  });
1047
- function hn(e, t, n, o, r, s) {
1055
+ function fn(e, t, n, o, r, i) {
1048
1056
  var u;
1049
- const i = g("InlinedStyles"), l = g("Blocks"), a = g("DynamicRenderer");
1050
- return d(), p("div", C({
1057
+ const s = g("InlinedStyles"), l = g("Blocks"), a = g("DynamicRenderer");
1058
+ return d(), p("div", S({
1051
1059
  class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-2brhoa1k8gd",
1052
1060
  style: e.columnsCssVars()
1053
1061
  }, {}), [
1054
- e.TARGET !== "reactNative" ? (d(), k(i, {
1062
+ e.TARGET !== "reactNative" ? (d(), k(s, {
1055
1063
  key: 0,
1056
1064
  id: "builderio-columns",
1057
1065
  styles: e.columnsStyles()
1058
- }, null, 8, ["styles"])) : S("", !0),
1066
+ }, null, 8, ["styles"])) : v("", !0),
1059
1067
  (d(!0), p(I, null, N(e.columns, (h, c) => (d(), k(a, {
1060
1068
  key: c,
1061
1069
  TagName: e.getTagName(h),
@@ -1063,7 +1071,7 @@ function hn(e, t, n, o, r, s) {
1063
1071
  attributes: e.getAttributes(h, c)
1064
1072
  }, {
1065
1073
  default: W(() => [
1066
- R(l, {
1074
+ $(l, {
1067
1075
  path: `component.options.columns.${c}.blocks`,
1068
1076
  parent: e.builderBlock.id,
1069
1077
  styleProp: {
@@ -1079,47 +1087,47 @@ function hn(e, t, n, o, r, s) {
1079
1087
  }, 1032, ["TagName", "attributes"]))), 128))
1080
1088
  ], 16);
1081
1089
  }
1082
- const fn = /* @__PURE__ */ b(mn, [["render", hn], ["__scopeId", "data-v-27a4dde0"]]), bn = f({
1090
+ const bn = /* @__PURE__ */ b(hn, [["render", fn], ["__scopeId", "data-v-27a4dde0"]]), gn = f({
1083
1091
  name: "builder-fragment-component",
1084
1092
  props: []
1085
1093
  });
1086
- function gn(e, t, n, o, r, s) {
1094
+ function yn(e, t, n, o, r, i) {
1087
1095
  return d(), p("span", null, [
1088
- x(e.$slots, "default")
1096
+ E(e.$slots, "default")
1089
1097
  ]);
1090
1098
  }
1091
- const yn = /* @__PURE__ */ b(bn, [["render", gn]]);
1092
- function Ce(e) {
1099
+ const kn = /* @__PURE__ */ b(gn, [["render", yn]]);
1100
+ function we(e) {
1093
1101
  return e.replace(/http(s)?:/, "");
1094
1102
  }
1095
- function kn(e = "", t, n) {
1103
+ function vn(e = "", t, n) {
1096
1104
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
1097
1105
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
1098
1106
  }
1099
- function Sn(e, t) {
1107
+ function Cn(e, t) {
1100
1108
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1101
1109
  return e;
1102
1110
  if (t === "master")
1103
- return Ce(e);
1111
+ return we(e);
1104
1112
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1105
1113
  if (n) {
1106
- const o = e.split(n[0]), r = n[3], s = t.match("x") ? t : `${t}x`;
1107
- return Ce(`${o[0]}_${s}${r}`);
1114
+ const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
1115
+ return we(`${o[0]}_${i}${r}`);
1108
1116
  }
1109
1117
  return null;
1110
1118
  }
1111
- function re(e) {
1119
+ function ie(e) {
1112
1120
  if (!e)
1113
1121
  return e;
1114
1122
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1115
1123
  if (e.match(/builder\.io/)) {
1116
1124
  let n = e;
1117
1125
  const o = Number(e.split("?width=")[1]);
1118
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${kn(e, "width", r)} ${r}w`).concat([n]).join(", ");
1126
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${vn(e, "width", r)} ${r}w`).concat([n]).join(", ");
1119
1127
  }
1120
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Sn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1128
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Cn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1121
1129
  }
1122
- const vn = f({
1130
+ const Sn = f({
1123
1131
  name: "builder-image",
1124
1132
  props: [
1125
1133
  "image",
@@ -1146,10 +1154,10 @@ const vn = f({
1146
1154
  return this.srcset;
1147
1155
  if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
1148
1156
  if (!this.srcset.includes(this.image.split("?")[0]))
1149
- return console.debug("Removed given srcset"), re(t);
1157
+ return console.debug("Removed given srcset"), ie(t);
1150
1158
  } else if (this.image && !this.srcset)
1151
- return re(t);
1152
- return re(t);
1159
+ return ie(t);
1160
+ return ie(t);
1153
1161
  },
1154
1162
  webpSrcSet() {
1155
1163
  var e;
@@ -1166,25 +1174,25 @@ const vn = f({
1166
1174
  return this.aspectRatio ? e : void 0;
1167
1175
  }
1168
1176
  }
1169
- }), Cn = ["srcset"], wn = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], Tn = {
1177
+ }), wn = ["srcset"], Tn = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], In = {
1170
1178
  key: 2,
1171
1179
  class: "div-1pl23ac79ld-2"
1172
1180
  };
1173
- function In(e, t, n, o, r, s) {
1174
- var i, l, a, u, h, c;
1181
+ function $n(e, t, n, o, r, i) {
1182
+ var s, l, a, u, h, c;
1175
1183
  return d(), p(I, null, [
1176
1184
  z("picture", null, [
1177
1185
  e.webpSrcSet ? (d(), p("source", {
1178
1186
  key: 0,
1179
1187
  type: "image/webp",
1180
1188
  srcset: e.webpSrcSet
1181
- }, null, 8, Cn)) : S("", !0),
1189
+ }, null, 8, wn)) : v("", !0),
1182
1190
  z("img", {
1183
1191
  loading: e.highPriority ? "eager" : "lazy",
1184
1192
  fetchpriority: e.highPriority ? "high" : "auto",
1185
1193
  alt: e.altText,
1186
1194
  role: e.altText ? void 0 : "presentation",
1187
- style: D({
1195
+ style: O({
1188
1196
  objectPosition: e.backgroundPosition || "center",
1189
1197
  objectFit: e.backgroundSize || "cover",
1190
1198
  ...e.aspectRatioCss
@@ -1195,30 +1203,30 @@ function In(e, t, n, o, r, s) {
1195
1203
  src: e.image,
1196
1204
  srcset: e.srcSetToUse,
1197
1205
  sizes: e.sizes
1198
- }, null, 14, wn)
1206
+ }, null, 14, Tn)
1199
1207
  ]),
1200
- e.aspectRatio && !((l = (i = e.builderBlock) == null ? void 0 : i.children) != null && l.length && e.fitContent) ? (d(), p("div", {
1208
+ e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (d(), p("div", {
1201
1209
  key: 0,
1202
1210
  class: "builder-image-sizer div-1pl23ac79ld",
1203
- style: D({
1211
+ style: O({
1204
1212
  paddingTop: e.aspectRatio * 100 + "%"
1205
1213
  })
1206
- }, null, 4)) : S("", !0),
1207
- (u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? x(e.$slots, "default", { key: 1 }, void 0, !0) : S("", !0),
1208
- !e.fitContent && ((c = (h = e.builderBlock) == null ? void 0 : h.children) != null && c.length) ? (d(), p("div", Tn, [
1209
- x(e.$slots, "default", {}, void 0, !0)
1210
- ])) : S("", !0)
1214
+ }, null, 4)) : v("", !0),
1215
+ (u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? E(e.$slots, "default", { key: 1 }, void 0, !0) : v("", !0),
1216
+ !e.fitContent && ((c = (h = e.builderBlock) == null ? void 0 : h.children) != null && c.length) ? (d(), p("div", In, [
1217
+ E(e.$slots, "default", {}, void 0, !0)
1218
+ ])) : v("", !0)
1211
1219
  ], 64);
1212
1220
  }
1213
- const $n = /* @__PURE__ */ b(vn, [["render", In], ["__scopeId", "data-v-0d528855"]]), Rn = f({
1221
+ const Rn = /* @__PURE__ */ b(Sn, [["render", $n], ["__scopeId", "data-v-0d528855"]]), Bn = f({
1214
1222
  name: "builder-section-component",
1215
1223
  props: ["attributes", "maxWidth"],
1216
1224
  data() {
1217
- return { filterAttrs: A };
1225
+ return { filterAttrs: x };
1218
1226
  }
1219
1227
  });
1220
- function En(e, t, n, o, r, s) {
1221
- return d(), p("section", C({
1228
+ function Pn(e, t, n, o, r, i) {
1229
+ return d(), p("section", S({
1222
1230
  style: {
1223
1231
  width: "100%",
1224
1232
  alignSelf: "stretch",
@@ -1232,15 +1240,15 @@ function En(e, t, n, o, r, s) {
1232
1240
  marginRight: "auto"
1233
1241
  }
1234
1242
  }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
1235
- x(e.$slots, "default")
1243
+ E(e.$slots, "default")
1236
1244
  ], 16);
1237
1245
  }
1238
- const Bn = /* @__PURE__ */ b(Rn, [["render", En]]), Pn = (e) => {
1246
+ const En = /* @__PURE__ */ b(Bn, [["render", Pn]]), xn = (e) => {
1239
1247
  if (e === "localhost" || e === "127.0.0.1")
1240
1248
  return e;
1241
1249
  const t = e.split(".");
1242
1250
  return t.length > 2 ? t.slice(1).join(".") : e;
1243
- }, qe = ({
1251
+ }, ze = ({
1244
1252
  name: e,
1245
1253
  canTrack: t
1246
1254
  }) => {
@@ -1251,14 +1259,14 @@ const Bn = /* @__PURE__ */ b(Rn, [["render", En]]), Pn = (e) => {
1251
1259
  B.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
1252
1260
  return;
1253
1261
  }
1254
- }, ze = async (e) => qe(e), xn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(U).join("; "), An = [["secure", ""], ["SameSite", "None"]], Vn = ({
1262
+ }, Je = async (e) => ze(e), An = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(D).join("; "), Vn = [["secure", ""], ["SameSite", "None"]], Wn = ({
1255
1263
  name: e,
1256
1264
  value: t,
1257
1265
  expires: n
1258
1266
  }) => {
1259
- const r = (T() ? location.protocol === "https:" : !0) ? An : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", Pn(window.location.hostname)], ...r];
1260
- return xn(i);
1261
- }, Je = async ({
1267
+ const r = (T() ? location.protocol === "https:" : !0) ? Vn : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", xn(window.location.hostname)], ...r];
1268
+ return An(s);
1269
+ }, Ge = async ({
1262
1270
  name: e,
1263
1271
  value: t,
1264
1272
  expires: n,
@@ -1267,7 +1275,7 @@ const Bn = /* @__PURE__ */ b(Rn, [["render", En]]), Pn = (e) => {
1267
1275
  try {
1268
1276
  if (!o)
1269
1277
  return;
1270
- const r = Vn({
1278
+ const r = Wn({
1271
1279
  name: e,
1272
1280
  value: t,
1273
1281
  expires: n
@@ -1276,37 +1284,37 @@ const Bn = /* @__PURE__ */ b(Rn, [["render", En]]), Pn = (e) => {
1276
1284
  } catch (r) {
1277
1285
  B.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
1278
1286
  }
1279
- }, Wn = "builder.tests", ge = (e) => `${Wn}.${e}`, Nn = ({
1287
+ }, Nn = "builder.tests", ye = (e) => `${Nn}.${e}`, Ln = ({
1280
1288
  contentId: e
1281
- }) => ze({
1282
- name: ge(e),
1289
+ }) => Je({
1290
+ name: ye(e),
1283
1291
  canTrack: !0
1284
1292
  }), Fn = ({
1285
1293
  contentId: e
1286
- }) => qe({
1287
- name: ge(e),
1294
+ }) => ze({
1295
+ name: ye(e),
1288
1296
  canTrack: !0
1289
1297
  }), On = ({
1290
1298
  contentId: e,
1291
1299
  value: t
1292
- }) => Je({
1293
- name: ge(e),
1300
+ }) => Ge({
1301
+ name: ye(e),
1294
1302
  value: t,
1295
1303
  canTrack: !0
1296
- }), Ge = (e) => U(e.id) && U(e.variations) && Object.keys(e.variations).length > 0, Dn = ({
1304
+ }), Ye = (e) => D(e.id) && D(e.variations) && Object.keys(e.variations).length > 0, Dn = ({
1297
1305
  id: e,
1298
1306
  variations: t
1299
1307
  }) => {
1300
1308
  var r;
1301
1309
  let n = 0;
1302
1310
  const o = Math.random();
1303
- for (const s in t) {
1304
- const i = (r = t[s]) == null ? void 0 : r.testRatio;
1305
- if (n += i, o < n)
1306
- return s;
1311
+ for (const i in t) {
1312
+ const s = (r = t[i]) == null ? void 0 : r.testRatio;
1313
+ if (n += s, o < n)
1314
+ return i;
1307
1315
  }
1308
1316
  return e;
1309
- }, Ye = (e) => {
1317
+ }, Qe = (e) => {
1310
1318
  const t = Dn(e);
1311
1319
  return On({
1312
1320
  contentId: e.id,
@@ -1314,7 +1322,7 @@ const Bn = /* @__PURE__ */ b(Rn, [["render", En]]), Pn = (e) => {
1314
1322
  }).catch((n) => {
1315
1323
  B.error("could not store A/B test variation: ", n);
1316
1324
  }), t;
1317
- }, Qe = ({
1325
+ }, Xe = ({
1318
1326
  item: e,
1319
1327
  testGroupId: t
1320
1328
  }) => {
@@ -1336,14 +1344,14 @@ const Bn = /* @__PURE__ */ b(Rn, [["render", En]]), Pn = (e) => {
1336
1344
  return e;
1337
1345
  if (!e)
1338
1346
  return;
1339
- if (!Ge(e))
1347
+ if (!Ye(e))
1340
1348
  return e;
1341
1349
  const n = Fn({
1342
1350
  contentId: e.id
1343
- }) || Ye({
1351
+ }) || Qe({
1344
1352
  variations: e.variations,
1345
1353
  id: e.id
1346
- }), o = Qe({
1354
+ }), o = Xe({
1347
1355
  item: e,
1348
1356
  testGroupId: n
1349
1357
  });
@@ -1351,18 +1359,18 @@ const Bn = /* @__PURE__ */ b(Rn, [["render", En]]), Pn = (e) => {
1351
1359
  ...e,
1352
1360
  ...o
1353
1361
  };
1354
- }, Ln = async ({
1362
+ }, Mn = async ({
1355
1363
  item: e,
1356
1364
  canTrack: t
1357
1365
  }) => {
1358
- if (!t || !Ge(e))
1366
+ if (!t || !Ye(e))
1359
1367
  return e;
1360
- const o = await Nn({
1368
+ const o = await Ln({
1361
1369
  contentId: e.id
1362
- }) || Ye({
1370
+ }) || Qe({
1363
1371
  variations: e.variations,
1364
1372
  id: e.id
1365
- }), r = Qe({
1373
+ }), r = Xe({
1366
1374
  item: e,
1367
1375
  testGroupId: o
1368
1376
  });
@@ -1370,7 +1378,7 @@ const Bn = /* @__PURE__ */ b(Rn, [["render", En]]), Pn = (e) => {
1370
1378
  ...e,
1371
1379
  ...r
1372
1380
  };
1373
- }, G = (e) => U(e) ? e : !0, se = {
1381
+ }, G = (e) => D(e) ? e : !0, se = {
1374
1382
  "@type": "@builder.io/sdk:Element",
1375
1383
  layerName: "Accordion item title",
1376
1384
  responsiveStyles: {
@@ -1399,7 +1407,7 @@ const Bn = /* @__PURE__ */ b(Rn, [["render", En]]), Pn = (e) => {
1399
1407
  }
1400
1408
  }
1401
1409
  }]
1402
- }, ie = {
1410
+ }, ae = {
1403
1411
  "@type": "@builder.io/sdk:Element",
1404
1412
  layerName: "Accordion item detail",
1405
1413
  responsiveStyles: {
@@ -1430,7 +1438,7 @@ const Bn = /* @__PURE__ */ b(Rn, [["render", En]]), Pn = (e) => {
1430
1438
  }
1431
1439
  }
1432
1440
  }]
1433
- }, Mn = {
1441
+ }, jn = {
1434
1442
  name: "Builder:Accordion",
1435
1443
  canHaveChildren: !0,
1436
1444
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1452,14 +1460,14 @@ const Bn = /* @__PURE__ */ b(Rn, [["render", En]]), Pn = (e) => {
1452
1460
  name: "detail",
1453
1461
  type: "uiBlocks",
1454
1462
  hideFromUI: !0,
1455
- defaultValue: [ie]
1463
+ defaultValue: [ae]
1456
1464
  }],
1457
1465
  defaultValue: [{
1458
1466
  title: [se],
1459
- detail: [ie]
1467
+ detail: [ae]
1460
1468
  }, {
1461
1469
  title: [se],
1462
- detail: [ie]
1470
+ detail: [ae]
1463
1471
  }],
1464
1472
  showIf: (e) => !e.get("useChildrenForItems")
1465
1473
  }, {
@@ -1487,8 +1495,14 @@ const Bn = /* @__PURE__ */ b(Rn, [["render", En]]), Pn = (e) => {
1487
1495
  onChange: (e) => {
1488
1496
  e.get("useChildrenForItems") === !0 && e.set("items", []);
1489
1497
  }
1490
- }]
1491
- }, jn = (e) => e.toString(), Hn = f({
1498
+ }],
1499
+ shouldReceiveBuilderProps: {
1500
+ builderBlock: !0,
1501
+ builderContext: !0,
1502
+ builderComponents: !0,
1503
+ builderLinkComponent: !0
1504
+ }
1505
+ }, Hn = (e) => e.toString(), Kn = f({
1492
1506
  name: "builder-accordion",
1493
1507
  components: { Blocks: M },
1494
1508
  props: [
@@ -1502,7 +1516,7 @@ const Bn = /* @__PURE__ */ b(Rn, [["render", En]]), Pn = (e) => {
1502
1516
  "builderLinkComponent"
1503
1517
  ],
1504
1518
  data() {
1505
- return { open: [], convertOrderNumberToString: jn };
1519
+ return { open: [], convertOrderNumberToString: Hn };
1506
1520
  },
1507
1521
  computed: {
1508
1522
  onlyOneAtATime() {
@@ -1541,18 +1555,18 @@ const Bn = /* @__PURE__ */ b(Rn, [["render", En]]), Pn = (e) => {
1541
1555
  `.builder-accordion-title[data-index="${n}"]`
1542
1556
  );
1543
1557
  if (e = n, r) {
1544
- let s = r.getBoundingClientRect();
1558
+ let i = r.getBoundingClientRect();
1545
1559
  for (; r = r && r.nextElementSibling; )
1546
1560
  if (r) {
1547
1561
  if (r.classList.contains("builder-accordion-detail"))
1548
1562
  continue;
1549
- const i = r.getBoundingClientRect();
1550
- if (i.left > s.left) {
1563
+ const s = r.getBoundingClientRect();
1564
+ if (s.left > i.left) {
1551
1565
  const l = parseInt(
1552
1566
  r.getAttribute("data-index") || "",
1553
1567
  10
1554
1568
  );
1555
- isNaN(l) || (s = i, e = l);
1569
+ isNaN(l) || (i = s, e = l);
1556
1570
  } else
1557
1571
  break;
1558
1572
  }
@@ -1583,17 +1597,17 @@ const Bn = /* @__PURE__ */ b(Rn, [["render", En]]), Pn = (e) => {
1583
1597
  this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
1584
1598
  }
1585
1599
  }
1586
- }), Kn = ["data-index", "onClick"];
1587
- function qn(e, t, n, o, r, s) {
1588
- const i = g("Blocks");
1600
+ }), qn = ["data-index", "onClick"];
1601
+ function zn(e, t, n, o, r, i) {
1602
+ const s = g("Blocks");
1589
1603
  return d(), p("div", {
1590
1604
  class: "builder-accordion",
1591
- style: D(e.accordionStyles)
1605
+ style: O(e.accordionStyles)
1592
1606
  }, [
1593
1607
  (d(!0), p(I, null, N(e.items, (l, a) => (d(), p(I, { key: a }, [
1594
1608
  z("div", {
1595
1609
  class: J(e.getAccordionTitleClassName(a)),
1596
- style: D({
1610
+ style: O({
1597
1611
  ...e.accordionTitleStyles,
1598
1612
  width: e.grid ? e.gridRowWidth : void 0,
1599
1613
  order: e.openGridItemOrder !== null ? e.convertOrderNumberToString(a) : e.convertOrderNumberToString(a + 1)
@@ -1601,7 +1615,7 @@ function qn(e, t, n, o, r, s) {
1601
1615
  "data-index": a,
1602
1616
  onClick: (u) => e.onClick(a)
1603
1617
  }, [
1604
- R(i, {
1618
+ $(s, {
1605
1619
  blocks: l.title,
1606
1620
  path: `items.${a}.title`,
1607
1621
  parent: e.builderBlock.id,
@@ -1609,13 +1623,13 @@ function qn(e, t, n, o, r, s) {
1609
1623
  registeredComponents: e.builderComponents,
1610
1624
  linkComponent: e.builderLinkComponent
1611
1625
  }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
1612
- ], 14, Kn),
1626
+ ], 14, qn),
1613
1627
  e.open.includes(a) ? (d(), p("div", {
1614
1628
  key: 0,
1615
1629
  class: J(e.getAccordionDetailClassName(a)),
1616
- style: D(e.accordionDetailStyles)
1630
+ style: O(e.accordionDetailStyles)
1617
1631
  }, [
1618
- R(i, {
1632
+ $(s, {
1619
1633
  blocks: l.detail,
1620
1634
  path: `items.${a}.detail`,
1621
1635
  parent: e.builderBlock.id,
@@ -1623,11 +1637,11 @@ function qn(e, t, n, o, r, s) {
1623
1637
  registeredComponents: e.builderComponents,
1624
1638
  linkComponent: e.builderLinkComponent
1625
1639
  }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
1626
- ], 6)) : S("", !0)
1640
+ ], 6)) : v("", !0)
1627
1641
  ], 64))), 128))
1628
1642
  ], 4);
1629
1643
  }
1630
- const zn = /* @__PURE__ */ b(Hn, [["render", qn]]), Jn = {
1644
+ const Jn = /* @__PURE__ */ b(Kn, [["render", zn]]), Gn = {
1631
1645
  name: "Core:Button",
1632
1646
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1633
1647
  defaultStyles: {
@@ -1659,8 +1673,14 @@ const zn = /* @__PURE__ */ b(Hn, [["render", qn]]), Jn = {
1659
1673
  friendlyName: "Open link in new tab"
1660
1674
  }],
1661
1675
  static: !0,
1662
- noWrap: !0
1663
- }, Gn = {
1676
+ noWrap: !0,
1677
+ shouldReceiveBuilderProps: {
1678
+ builderBlock: !1,
1679
+ builderContext: !1,
1680
+ builderComponents: !1,
1681
+ builderLinkComponent: !0
1682
+ }
1683
+ }, Yn = {
1664
1684
  // TODO: ways to statically preprocess JSON for references, functions, etc
1665
1685
  name: "Columns",
1666
1686
  isRSC: !0,
@@ -1839,7 +1859,7 @@ const zn = /* @__PURE__ */ b(Hn, [["render", qn]]), Jn = {
1839
1859
  });
1840
1860
  }
1841
1861
  const n = e.get("columns");
1842
- Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((s) => !s.get("width")) || n.reduce((l, a) => l + a.get("width"), 0) !== 100) && t();
1862
+ 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();
1843
1863
  }
1844
1864
  }, {
1845
1865
  name: "space",
@@ -1860,14 +1880,26 @@ const zn = /* @__PURE__ */ b(Hn, [["render", qn]]), Jn = {
1860
1880
  defaultValue: !1,
1861
1881
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1862
1882
  advanced: !0
1863
- }]
1864
- }, Yn = {
1883
+ }],
1884
+ shouldReceiveBuilderProps: {
1885
+ builderBlock: !0,
1886
+ builderContext: !0,
1887
+ builderComponents: !0,
1888
+ builderLinkComponent: !0
1889
+ }
1890
+ }, Qn = {
1891
+ shouldReceiveBuilderProps: {
1892
+ builderBlock: !1,
1893
+ builderContext: !1,
1894
+ builderComponents: !1,
1895
+ builderLinkComponent: !1
1896
+ },
1865
1897
  name: "Fragment",
1866
1898
  static: !0,
1867
1899
  hidden: !0,
1868
1900
  canHaveChildren: !0,
1869
1901
  noWrap: !0
1870
- }, Qn = {
1902
+ }, Xn = {
1871
1903
  name: "Image",
1872
1904
  static: !0,
1873
1905
  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",
@@ -1887,7 +1919,7 @@ const zn = /* @__PURE__ */ b(Hn, [["render", qn]]), Jn = {
1887
1919
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1888
1920
  onChange: (e) => {
1889
1921
  e.delete("srcset"), e.delete("noWebp");
1890
- function n(i, l = 6e4) {
1922
+ function n(s, l = 6e4) {
1891
1923
  return new Promise((a, u) => {
1892
1924
  const h = document.createElement("img");
1893
1925
  let c = !1;
@@ -1895,21 +1927,21 @@ const zn = /* @__PURE__ */ b(Hn, [["render", qn]]), Jn = {
1895
1927
  c = !0, a(h);
1896
1928
  }, h.addEventListener("error", (m) => {
1897
1929
  console.warn("Image load failed", m.error), u(m.error);
1898
- }), h.src = i, setTimeout(() => {
1930
+ }), h.src = s, setTimeout(() => {
1899
1931
  c || u(new Error("Image load timed out"));
1900
1932
  }, l);
1901
1933
  });
1902
1934
  }
1903
- function o(i) {
1904
- return Math.round(i * 1e3) / 1e3;
1935
+ function o(s) {
1936
+ return Math.round(s * 1e3) / 1e3;
1905
1937
  }
1906
- const r = e.get("image"), s = e.get("aspectRatio");
1907
- if (fetch(r).then((i) => i.blob()).then((i) => {
1908
- i.type.includes("svg") && e.set("noWebp", !0);
1909
- }), r && (!s || s === 0.7041))
1910
- return n(r).then((i) => {
1938
+ const r = e.get("image"), i = e.get("aspectRatio");
1939
+ if (fetch(r).then((s) => s.blob()).then((s) => {
1940
+ s.type.includes("svg") && e.set("noWebp", !0);
1941
+ }), r && (!i || i === 0.7041))
1942
+ return n(r).then((s) => {
1911
1943
  const l = e.get("aspectRatio");
1912
- e.get("image") === r && (!l || l === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
1944
+ 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));
1913
1945
  });
1914
1946
  }
1915
1947
  }, {
@@ -1971,8 +2003,20 @@ const zn = /* @__PURE__ */ b(Hn, [["render", qn]]), Jn = {
1971
2003
  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",
1972
2004
  advanced: !0,
1973
2005
  defaultValue: 0.7041
1974
- }]
1975
- }, Xn = {
2006
+ }],
2007
+ shouldReceiveBuilderProps: {
2008
+ builderBlock: !0,
2009
+ builderContext: !1,
2010
+ builderComponents: !1,
2011
+ builderLinkComponent: !1
2012
+ }
2013
+ }, Zn = {
2014
+ shouldReceiveBuilderProps: {
2015
+ builderBlock: !1,
2016
+ builderContext: !1,
2017
+ builderComponents: !1,
2018
+ builderLinkComponent: !1
2019
+ },
1976
2020
  name: "Core:Section",
1977
2021
  static: !0,
1978
2022
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -2011,7 +2055,7 @@ const zn = /* @__PURE__ */ b(Hn, [["render", qn]]), Jn = {
2011
2055
  }
2012
2056
  }
2013
2057
  }]
2014
- }, Zn = {
2058
+ }, _n = {
2015
2059
  name: "Slot",
2016
2060
  isRSC: !0,
2017
2061
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -2023,16 +2067,22 @@ const zn = /* @__PURE__ */ b(Hn, [["render", qn]]), Jn = {
2023
2067
  type: "string",
2024
2068
  required: !0,
2025
2069
  defaultValue: "children"
2026
- }]
2027
- }, _n = f({
2070
+ }],
2071
+ shouldReceiveBuilderProps: {
2072
+ builderBlock: !1,
2073
+ builderContext: !0,
2074
+ builderComponents: !1,
2075
+ builderLinkComponent: !1
2076
+ }
2077
+ }, eo = f({
2028
2078
  name: "builder-slot",
2029
2079
  components: { Blocks: M },
2030
2080
  props: ["builderContext", "name"]
2031
2081
  });
2032
- function eo(e, t, n, o, r, s) {
2082
+ function to(e, t, n, o, r, i) {
2033
2083
  var l, a, u;
2034
- const i = g("Blocks");
2035
- return d(), p("div", C(
2084
+ const s = g("Blocks");
2085
+ return d(), p("div", S(
2036
2086
  { style: {
2037
2087
  pointerEvents: "auto"
2038
2088
  } },
@@ -2040,7 +2090,7 @@ function eo(e, t, n, o, r, s) {
2040
2090
  "builder-slot": e.name
2041
2091
  }
2042
2092
  ), [
2043
- R(i, {
2093
+ $(s, {
2044
2094
  parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
2045
2095
  path: `symbol.data.${e.name}`,
2046
2096
  context: e.builderContext,
@@ -2048,7 +2098,7 @@ function eo(e, t, n, o, r, s) {
2048
2098
  }, null, 8, ["parent", "path", "context", "blocks"])
2049
2099
  ], 16);
2050
2100
  }
2051
- const to = /* @__PURE__ */ b(_n, [["render", eo]]), no = {
2101
+ const no = /* @__PURE__ */ b(eo, [["render", to]]), oo = {
2052
2102
  name: "Symbol",
2053
2103
  noWrap: !0,
2054
2104
  static: !0,
@@ -2080,8 +2130,14 @@ const to = /* @__PURE__ */ b(_n, [["render", eo]]), no = {
2080
2130
  name: "useChildren",
2081
2131
  hideFromUI: !0,
2082
2132
  type: "boolean"
2083
- }]
2084
- }, ae = {
2133
+ }],
2134
+ shouldReceiveBuilderProps: {
2135
+ builderBlock: !0,
2136
+ builderContext: !0,
2137
+ builderComponents: !0,
2138
+ builderLinkComponent: !0
2139
+ }
2140
+ }, le = {
2085
2141
  "@type": "@builder.io/sdk:Element",
2086
2142
  responsiveStyles: {
2087
2143
  large: {
@@ -2103,7 +2159,7 @@ const to = /* @__PURE__ */ b(_n, [["render", eo]]), no = {
2103
2159
  text: "New tab"
2104
2160
  }
2105
2161
  }
2106
- }, le = {
2162
+ }, ce = {
2107
2163
  "@type": "@builder.io/sdk:Element",
2108
2164
  responsiveStyles: {
2109
2165
  large: {
@@ -2119,7 +2175,7 @@ const to = /* @__PURE__ */ b(_n, [["render", eo]]), no = {
2119
2175
  text: "New tab content "
2120
2176
  }
2121
2177
  }
2122
- }, oo = {
2178
+ }, ro = {
2123
2179
  name: "Builder: Tabs",
2124
2180
  inputs: [{
2125
2181
  name: "tabs",
@@ -2129,16 +2185,16 @@ const to = /* @__PURE__ */ b(_n, [["render", eo]]), no = {
2129
2185
  name: "label",
2130
2186
  type: "uiBlocks",
2131
2187
  hideFromUI: !0,
2132
- defaultValue: [ae]
2188
+ defaultValue: [le]
2133
2189
  }, {
2134
2190
  name: "content",
2135
2191
  type: "uiBlocks",
2136
2192
  hideFromUI: !0,
2137
- defaultValue: [le]
2193
+ defaultValue: [ce]
2138
2194
  }],
2139
2195
  defaultValue: [{
2140
2196
  label: [{
2141
- ...ae,
2197
+ ...le,
2142
2198
  component: {
2143
2199
  name: "Text",
2144
2200
  options: {
@@ -2147,7 +2203,7 @@ const to = /* @__PURE__ */ b(_n, [["render", eo]]), no = {
2147
2203
  }
2148
2204
  }],
2149
2205
  content: [{
2150
- ...le,
2206
+ ...ce,
2151
2207
  component: {
2152
2208
  name: "Text",
2153
2209
  options: {
@@ -2157,7 +2213,7 @@ const to = /* @__PURE__ */ b(_n, [["render", eo]]), no = {
2157
2213
  }]
2158
2214
  }, {
2159
2215
  label: [{
2160
- ...ae,
2216
+ ...le,
2161
2217
  component: {
2162
2218
  name: "Text",
2163
2219
  options: {
@@ -2166,7 +2222,7 @@ const to = /* @__PURE__ */ b(_n, [["render", eo]]), no = {
2166
2222
  }
2167
2223
  }],
2168
2224
  content: [{
2169
- ...le,
2225
+ ...ce,
2170
2226
  component: {
2171
2227
  name: "Text",
2172
2228
  options: {
@@ -2215,8 +2271,14 @@ const to = /* @__PURE__ */ b(_n, [["render", eo]]), no = {
2215
2271
  label: "Right",
2216
2272
  value: "flex-end"
2217
2273
  }]
2218
- }]
2219
- }, ro = f({
2274
+ }],
2275
+ shouldReceiveBuilderProps: {
2276
+ builderBlock: !0,
2277
+ builderContext: !0,
2278
+ builderComponents: !0,
2279
+ builderLinkComponent: !0
2280
+ }
2281
+ }, io = f({
2220
2282
  name: "builder-tabs",
2221
2283
  components: { Blocks: M },
2222
2284
  props: [
@@ -2241,13 +2303,13 @@ const to = /* @__PURE__ */ b(_n, [["render", eo]]), no = {
2241
2303
  e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
2242
2304
  }
2243
2305
  }
2244
- }), so = ["onClick"], io = { key: 0 };
2245
- function ao(e, t, n, o, r, s) {
2246
- const i = g("Blocks");
2306
+ }), so = ["onClick"], ao = { key: 0 };
2307
+ function lo(e, t, n, o, r, i) {
2308
+ const s = g("Blocks");
2247
2309
  return d(), p("div", null, [
2248
2310
  z("div", {
2249
2311
  class: "builder-tabs-wrap",
2250
- style: D({
2312
+ style: O({
2251
2313
  display: "flex",
2252
2314
  flexDirection: "row",
2253
2315
  justifyContent: e.tabHeaderLayout || "flex-start",
@@ -2257,12 +2319,12 @@ function ao(e, t, n, o, r, s) {
2257
2319
  (d(!0), p(I, null, N(e.tabs, (l, a) => (d(), p("span", {
2258
2320
  key: a,
2259
2321
  class: J(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
2260
- style: D({
2322
+ style: O({
2261
2323
  ...e.activeTab === a ? e.activeTabStyle : {}
2262
2324
  }),
2263
2325
  onClick: (u) => e.onClick(a)
2264
2326
  }, [
2265
- R(i, {
2327
+ $(s, {
2266
2328
  parent: e.builderBlock.id,
2267
2329
  path: `component.options.tabs.${a}.label`,
2268
2330
  blocks: l.label,
@@ -2272,8 +2334,8 @@ function ao(e, t, n, o, r, s) {
2272
2334
  }, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
2273
2335
  ], 14, so))), 128))
2274
2336
  ], 4),
2275
- e.activeTabContent(e.activeTab) ? (d(), p("div", io, [
2276
- R(i, {
2337
+ e.activeTabContent(e.activeTab) ? (d(), p("div", ao, [
2338
+ $(s, {
2277
2339
  parent: e.builderBlock.id,
2278
2340
  path: `component.options.tabs.${e.activeTab}.content`,
2279
2341
  blocks: e.activeTabContent(e.activeTab),
@@ -2281,10 +2343,16 @@ function ao(e, t, n, o, r, s) {
2281
2343
  registeredComponents: e.builderComponents,
2282
2344
  linkComponent: e.builderLinkComponent
2283
2345
  }, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
2284
- ])) : S("", !0)
2346
+ ])) : v("", !0)
2285
2347
  ]);
2286
2348
  }
2287
- const lo = /* @__PURE__ */ b(ro, [["render", ao]]), co = {
2349
+ const co = /* @__PURE__ */ b(io, [["render", lo]]), uo = {
2350
+ shouldReceiveBuilderProps: {
2351
+ builderBlock: !1,
2352
+ builderContext: !1,
2353
+ builderComponents: !1,
2354
+ builderLinkComponent: !1
2355
+ },
2288
2356
  name: "Text",
2289
2357
  static: !0,
2290
2358
  isRSC: !0,
@@ -2302,21 +2370,27 @@ const lo = /* @__PURE__ */ b(ro, [["render", ao]]), co = {
2302
2370
  height: "auto",
2303
2371
  textAlign: "center"
2304
2372
  }
2305
- }, uo = f({
2373
+ }, po = f({
2306
2374
  name: "builder-text",
2307
2375
  props: ["text"]
2308
- }), po = ["innerHTML"];
2309
- function mo(e, t, n, o, r, s) {
2310
- var i;
2376
+ }), mo = ["innerHTML"];
2377
+ function ho(e, t, n, o, r, i) {
2378
+ var s;
2311
2379
  return d(), p("div", {
2312
2380
  class: "builder-text",
2313
- innerHTML: ((i = e.text) == null ? void 0 : i.toString()) || "",
2381
+ innerHTML: ((s = e.text) == null ? void 0 : s.toString()) || "",
2314
2382
  style: {
2315
2383
  outline: "none"
2316
2384
  }
2317
- }, null, 8, po);
2385
+ }, null, 8, mo);
2318
2386
  }
2319
- const ho = /* @__PURE__ */ b(uo, [["render", mo]]), fo = {
2387
+ const fo = /* @__PURE__ */ b(po, [["render", ho]]), bo = {
2388
+ shouldReceiveBuilderProps: {
2389
+ builderBlock: !1,
2390
+ builderContext: !1,
2391
+ builderComponents: !1,
2392
+ builderLinkComponent: !1
2393
+ },
2320
2394
  name: "Custom Code",
2321
2395
  static: !0,
2322
2396
  requiredPermissions: ["editCode"],
@@ -2338,7 +2412,7 @@ const ho = /* @__PURE__ */ b(uo, [["render", mo]]), fo = {
2338
2412
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
2339
2413
  advanced: !0
2340
2414
  }]
2341
- }, bo = f({
2415
+ }, go = f({
2342
2416
  name: "builder-custom-code",
2343
2417
  props: ["replaceNodes", "code"],
2344
2418
  data() {
@@ -2372,15 +2446,21 @@ const ho = /* @__PURE__ */ b(uo, [["render", mo]]), fo = {
2372
2446
  }
2373
2447
  }
2374
2448
  }
2375
- }), go = ["innerHTML"];
2376
- function yo(e, t, n, o, r, s) {
2449
+ }), yo = ["innerHTML"];
2450
+ function ko(e, t, n, o, r, i) {
2377
2451
  return d(), p("div", {
2378
2452
  ref: "elementRef",
2379
2453
  class: J("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
2380
2454
  innerHTML: e.code
2381
- }, null, 10, go);
2455
+ }, null, 10, yo);
2382
2456
  }
2383
- const ko = /* @__PURE__ */ b(bo, [["render", yo]]), So = {
2457
+ const vo = /* @__PURE__ */ b(go, [["render", ko]]), Co = {
2458
+ shouldReceiveBuilderProps: {
2459
+ builderBlock: !1,
2460
+ builderContext: !1,
2461
+ builderComponents: !1,
2462
+ builderLinkComponent: !1
2463
+ },
2384
2464
  name: "Embed",
2385
2465
  static: !0,
2386
2466
  inputs: [{
@@ -2408,7 +2488,7 @@ const ko = /* @__PURE__ */ b(bo, [["render", yo]]), So = {
2408
2488
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2409
2489
  hideFromUI: !0
2410
2490
  }]
2411
- }, vo = ["text/javascript", "application/javascript", "application/ecmascript"], Co = (e) => vo.includes(e.type), wo = f({
2491
+ }, So = ["text/javascript", "application/javascript", "application/ecmascript"], wo = (e) => So.includes(e.type), To = f({
2412
2492
  name: "builder-embed",
2413
2493
  props: ["content"],
2414
2494
  data() {
@@ -2441,7 +2521,7 @@ const ko = /* @__PURE__ */ b(bo, [["render", yo]]), So = {
2441
2521
  this.scriptsInserted.push(n.src);
2442
2522
  const o = document.createElement("script");
2443
2523
  o.async = !0, o.src = n.src, document.head.appendChild(o);
2444
- } else if (Co(n) && !this.scriptsRun.includes(n.innerText))
2524
+ } else if (wo(n) && !this.scriptsRun.includes(n.innerText))
2445
2525
  try {
2446
2526
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
2447
2527
  } catch (o) {
@@ -2450,15 +2530,15 @@ const ko = /* @__PURE__ */ b(bo, [["render", yo]]), So = {
2450
2530
  }
2451
2531
  }
2452
2532
  }
2453
- }), To = ["innerHTML"];
2454
- function Io(e, t, n, o, r, s) {
2533
+ }), Io = ["innerHTML"];
2534
+ function $o(e, t, n, o, r, i) {
2455
2535
  return d(), p("div", {
2456
2536
  class: "builder-embed",
2457
2537
  ref: "elem",
2458
2538
  innerHTML: e.content
2459
- }, null, 8, To);
2539
+ }, null, 8, Io);
2460
2540
  }
2461
- const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
2541
+ const Ro = /* @__PURE__ */ b(To, [["render", $o]]), Bo = {
2462
2542
  name: "Form:Form",
2463
2543
  // editableTags: ['builder-form-error']
2464
2544
  defaults: {
@@ -2688,16 +2768,22 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
2688
2768
  text: "Submit"
2689
2769
  }
2690
2770
  }
2691
- }]
2692
- }, Eo = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Bo = () => {
2771
+ }],
2772
+ shouldReceiveBuilderProps: {
2773
+ builderBlock: !0,
2774
+ builderContext: !0,
2775
+ builderComponents: !0,
2776
+ builderLinkComponent: !0
2777
+ }
2778
+ }, Po = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Eo = () => {
2693
2779
  const e = process.env.NODE_ENV || "production";
2694
- return Eo.includes(e) ? e : "production";
2695
- }, Po = (e, t, n) => {
2696
- const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, s) => r != null ? r[s] : r, e);
2780
+ return Po.includes(e) ? e : "production";
2781
+ }, xo = (e, t, n) => {
2782
+ const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
2697
2783
  return o === void 0 || o === e ? n : o;
2698
- }, xo = f({
2784
+ }, Ao = f({
2699
2785
  name: "builder-form-component",
2700
- components: { Block: fe, Blocks: M },
2786
+ components: { Block: be, Blocks: M },
2701
2787
  props: [
2702
2788
  "builderContext",
2703
2789
  "previewState",
@@ -2726,7 +2812,7 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
2726
2812
  formState: "unsubmitted",
2727
2813
  responseData: null,
2728
2814
  formErrorMessage: "",
2729
- filterAttrs: A
2815
+ filterAttrs: x
2730
2816
  };
2731
2817
  },
2732
2818
  methods: {
@@ -2739,7 +2825,7 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
2739
2825
  this.builderContext.rootSetState ? (o = (n = this.builderContext).rootSetState) == null || o.call(n, t) : this.builderContext.rootState = t;
2740
2826
  },
2741
2827
  submissionState() {
2742
- return E() && this.previewState || this.formState;
2828
+ return R() && this.previewState || this.formState;
2743
2829
  },
2744
2830
  onSubmit(e) {
2745
2831
  var n;
@@ -2753,15 +2839,15 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
2753
2839
  }
2754
2840
  e.preventDefault();
2755
2841
  const o = e.currentTarget || e.target, r = this.customHeaders || {};
2756
- let s;
2757
- const i = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).map((c) => {
2842
+ let i;
2843
+ const s = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).map((c) => {
2758
2844
  let m;
2759
- const v = c.name;
2845
+ const C = c.name;
2760
2846
  if (c instanceof HTMLInputElement)
2761
2847
  if (c.type === "radio") {
2762
2848
  if (c.checked)
2763
2849
  return m = c.name, {
2764
- key: v,
2850
+ key: C,
2765
2851
  value: m
2766
2852
  };
2767
2853
  } else if (c.type === "checkbox")
@@ -2774,7 +2860,7 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
2774
2860
  else
2775
2861
  m = c.value;
2776
2862
  return {
2777
- key: v,
2863
+ key: C,
2778
2864
  value: m
2779
2865
  };
2780
2866
  });
@@ -2782,38 +2868,38 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
2782
2868
  if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value: c }) => {
2783
2869
  (c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (a = "multipart/form-data");
2784
2870
  }), a !== "application/json")
2785
- s = i;
2871
+ i = s;
2786
2872
  else {
2787
2873
  const c = {};
2788
- Array.from(l).forEach(({ value: m, key: v }) => {
2789
- Oe(c, v, m);
2790
- }), s = JSON.stringify(c);
2874
+ Array.from(l).forEach(({ value: m, key: C }) => {
2875
+ Oe(c, C, m);
2876
+ }), i = JSON.stringify(c);
2791
2877
  }
2792
2878
  a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
2793
2879
  const u = new CustomEvent("presubmit", {
2794
2880
  detail: {
2795
- body: s
2881
+ body: i
2796
2882
  }
2797
2883
  });
2798
2884
  if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(u), u.defaultPrevented))
2799
2885
  return;
2800
2886
  this.formState = "sending";
2801
- const h = `${Bo() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
2887
+ const h = `${Eo() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
2802
2888
  this.sendSubmissionsToEmail || ""
2803
2889
  )}&name=${encodeURIComponent(this.name || "")}`;
2804
2890
  fetch(
2805
2891
  this.sendSubmissionsTo === "email" ? h : this.action,
2806
2892
  {
2807
- body: s,
2893
+ body: i,
2808
2894
  headers: r,
2809
2895
  method: this.method || "post"
2810
2896
  }
2811
2897
  ).then(
2812
2898
  async (c) => {
2813
2899
  let m;
2814
- const v = c.headers.get("content-type");
2815
- if (v && v.indexOf("application/json") !== -1 ? m = await c.json() : m = await c.text(), !c.ok && this.errorMessagePath) {
2816
- let y = Po(m, this.errorMessagePath);
2900
+ const C = c.headers.get("content-type");
2901
+ if (C && C.indexOf("application/json") !== -1 ? m = await c.json() : m = await c.text(), !c.ok && this.errorMessagePath) {
2902
+ let y = xo(m, this.errorMessagePath);
2817
2903
  y && (typeof y != "string" && (y = JSON.stringify(y)), this.formErrorMessage = y, this.mergeNewRootState({
2818
2904
  formErrorMessage: y
2819
2905
  }));
@@ -2832,12 +2918,12 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
2832
2918
  }
2833
2919
  if (this.successUrl)
2834
2920
  if (this.$refs.formRef) {
2835
- const F = new CustomEvent("route", {
2921
+ const L = new CustomEvent("route", {
2836
2922
  detail: {
2837
2923
  url: this.successUrl
2838
2924
  }
2839
2925
  });
2840
- this.$refs.formRef.dispatchEvent(F), F.defaultPrevented || (location.href = this.successUrl);
2926
+ this.$refs.formRef.dispatchEvent(L), L.defaultPrevented || (location.href = this.successUrl);
2841
2927
  } else
2842
2928
  location.href = this.successUrl;
2843
2929
  }
@@ -2854,14 +2940,14 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
2854
2940
  }
2855
2941
  }
2856
2942
  }
2857
- }), Ao = ["validate", "action", "method", "name"], Vo = {
2943
+ }), Vo = ["validate", "action", "method", "name"], Wo = {
2858
2944
  key: 3,
2859
2945
  class: "builder-form-error-text pre-3i4ezorcfhi"
2860
2946
  };
2861
- function Wo(e, t, n, o, r, s) {
2947
+ function No(e, t, n, o, r, i) {
2862
2948
  var a;
2863
- const i = g("Block"), l = g("Blocks");
2864
- return d(), p("form", C({
2949
+ const s = g("Block"), l = g("Blocks");
2950
+ return d(), p("form", S({
2865
2951
  validate: e.validate,
2866
2952
  ref: "formRef",
2867
2953
  action: !e.sendWithJs && e.action,
@@ -2869,35 +2955,41 @@ function Wo(e, t, n, o, r, s) {
2869
2955
  name: e.name,
2870
2956
  onSubmit: t[0] || (t[0] = (u) => e.onSubmit(u))
2871
2957
  }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
2872
- e.builderBlock && e.builderBlock.children ? (d(!0), p(I, { key: 0 }, N((a = e.builderBlock) == null ? void 0 : a.children, (u, h) => (d(), k(i, {
2958
+ e.builderBlock && e.builderBlock.children ? (d(!0), p(I, { key: 0 }, N((a = e.builderBlock) == null ? void 0 : a.children, (u, h) => (d(), k(s, {
2873
2959
  key: `form-block-${e.idx}`,
2874
2960
  block: u,
2875
2961
  context: e.builderContext,
2876
2962
  registeredComponents: e.builderComponents,
2877
2963
  linkComponent: e.builderLinkComponent
2878
- }, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128)) : S("", !0),
2964
+ }, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128)) : v("", !0),
2879
2965
  e.submissionState() === "error" ? (d(), k(l, {
2880
2966
  key: 1,
2881
2967
  path: "errorMessage",
2882
2968
  blocks: e.errorMessage,
2883
2969
  context: e.builderContext
2884
- }, null, 8, ["blocks", "context"])) : S("", !0),
2970
+ }, null, 8, ["blocks", "context"])) : v("", !0),
2885
2971
  e.submissionState() === "sending" ? (d(), k(l, {
2886
2972
  key: 2,
2887
2973
  path: "sendingMessage",
2888
2974
  blocks: e.sendingMessage,
2889
2975
  context: e.builderContext
2890
- }, null, 8, ["blocks", "context"])) : S("", !0),
2891
- e.submissionState() === "error" && e.responseData ? (d(), p("pre", Vo, ne(JSON.stringify(e.responseData, null, 2)), 1)) : S("", !0),
2976
+ }, null, 8, ["blocks", "context"])) : v("", !0),
2977
+ e.submissionState() === "error" && e.responseData ? (d(), p("pre", Wo, ne(JSON.stringify(e.responseData, null, 2)), 1)) : v("", !0),
2892
2978
  e.submissionState() === "success" ? (d(), k(l, {
2893
2979
  key: 4,
2894
2980
  path: "successMessage",
2895
2981
  blocks: e.successMessage,
2896
2982
  context: e.builderContext
2897
- }, null, 8, ["blocks", "context"])) : S("", !0)
2898
- ], 16, Ao);
2983
+ }, null, 8, ["blocks", "context"])) : v("", !0)
2984
+ ], 16, Vo);
2899
2985
  }
2900
- const No = /* @__PURE__ */ b(xo, [["render", Wo], ["__scopeId", "data-v-489330f7"]]), Fo = {
2986
+ const Lo = /* @__PURE__ */ b(Ao, [["render", No], ["__scopeId", "data-v-489330f7"]]), Fo = {
2987
+ shouldReceiveBuilderProps: {
2988
+ builderBlock: !1,
2989
+ builderContext: !1,
2990
+ builderComponents: !1,
2991
+ builderLinkComponent: !1
2992
+ },
2901
2993
  name: "Form:Input",
2902
2994
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2903
2995
  inputs: [
@@ -2960,11 +3052,11 @@ const No = /* @__PURE__ */ b(xo, [["render", Wo], ["__scopeId", "data-v-489330f7
2960
3052
  "required"
2961
3053
  ],
2962
3054
  data() {
2963
- return { isEditing: E, filterAttrs: A };
3055
+ return { isEditing: R, filterAttrs: x };
2964
3056
  }
2965
3057
  }), Do = ["placeholder", "type", "name", "value", "defaultValue", "required"];
2966
- function Uo(e, t, n, o, r, s) {
2967
- return d(), p("input", C({
3058
+ function Uo(e, t, n, o, r, i) {
3059
+ return d(), p("input", S({
2968
3060
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
2969
3061
  placeholder: e.placeholder,
2970
3062
  type: e.type,
@@ -2974,7 +3066,13 @@ function Uo(e, t, n, o, r, s) {
2974
3066
  required: e.required
2975
3067
  }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Do);
2976
3068
  }
2977
- const Lo = /* @__PURE__ */ b(Oo, [["render", Uo]]), Mo = {
3069
+ const Mo = /* @__PURE__ */ b(Oo, [["render", Uo]]), jo = {
3070
+ shouldReceiveBuilderProps: {
3071
+ builderBlock: !1,
3072
+ builderContext: !1,
3073
+ builderComponents: !1,
3074
+ builderLinkComponent: !1
3075
+ },
2978
3076
  name: "Form:Select",
2979
3077
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2980
3078
  defaultStyles: {
@@ -3016,28 +3114,34 @@ const Lo = /* @__PURE__ */ b(Oo, [["render", Uo]]), Mo = {
3016
3114
  }],
3017
3115
  static: !0,
3018
3116
  noWrap: !0
3019
- }, jo = f({
3117
+ }, Ho = f({
3020
3118
  name: "builder-select-component",
3021
3119
  props: ["attributes", "value", "defaultValue", "name", "required", "options"],
3022
3120
  data() {
3023
- return { isEditing: E, filterAttrs: A };
3121
+ return { isEditing: R, filterAttrs: x };
3024
3122
  }
3025
- }), Ho = ["value", "defaultValue", "name", "required"], Ko = ["value"];
3026
- function qo(e, t, n, o, r, s) {
3027
- return d(), p("select", C({
3123
+ }), Ko = ["value", "defaultValue", "name", "required"], qo = ["value"];
3124
+ function zo(e, t, n, o, r, i) {
3125
+ return d(), p("select", S({
3028
3126
  value: e.value,
3029
3127
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
3030
3128
  defaultValue: e.defaultValue,
3031
3129
  name: e.name,
3032
3130
  required: e.required
3033
3131
  }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3034
- (d(!0), p(I, null, N(e.options, (i, l) => (d(), p("option", {
3035
- key: `${i.name}-${l}`,
3036
- value: i.value
3037
- }, ne(i.name || i.value), 9, Ko))), 128))
3038
- ], 16, Ho);
3132
+ (d(!0), p(I, null, N(e.options, (s, l) => (d(), p("option", {
3133
+ key: `${s.name}-${l}`,
3134
+ value: s.value
3135
+ }, ne(s.name || s.value), 9, qo))), 128))
3136
+ ], 16, Ko);
3039
3137
  }
3040
- const zo = /* @__PURE__ */ b(jo, [["render", qo]]), Jo = {
3138
+ const Jo = /* @__PURE__ */ b(Ho, [["render", zo]]), Go = {
3139
+ shouldReceiveBuilderProps: {
3140
+ builderBlock: !1,
3141
+ builderContext: !1,
3142
+ builderComponents: !1,
3143
+ builderLinkComponent: !1
3144
+ },
3041
3145
  name: "Form:SubmitButton",
3042
3146
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
3043
3147
  defaultStyles: {
@@ -3062,17 +3166,23 @@ const zo = /* @__PURE__ */ b(jo, [["render", qo]]), Jo = {
3062
3166
  // that only shows if advanced setting is flipped
3063
3167
  // TODO: defaultChildren
3064
3168
  // canHaveChildren: true,
3065
- }, Go = f({
3169
+ }, Yo = f({
3066
3170
  name: "builder-submit-button",
3067
3171
  props: ["attributes", "text"],
3068
3172
  data() {
3069
- return { filterAttrs: A };
3173
+ return { filterAttrs: x };
3070
3174
  }
3071
3175
  });
3072
- function Yo(e, t, n, o, r, s) {
3073
- return d(), p("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ne(e.text), 17);
3176
+ function Qo(e, t, n, o, r, i) {
3177
+ return d(), p("button", S({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ne(e.text), 17);
3074
3178
  }
3075
- const Qo = /* @__PURE__ */ b(Go, [["render", Yo]]), Xo = {
3179
+ const Xo = /* @__PURE__ */ b(Yo, [["render", Qo]]), Zo = {
3180
+ shouldReceiveBuilderProps: {
3181
+ builderBlock: !1,
3182
+ builderContext: !1,
3183
+ builderComponents: !1,
3184
+ builderLinkComponent: !1
3185
+ },
3076
3186
  name: "Form:TextArea",
3077
3187
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
3078
3188
  inputs: [{
@@ -3108,7 +3218,7 @@ const Qo = /* @__PURE__ */ b(Go, [["render", Yo]]), Xo = {
3108
3218
  },
3109
3219
  static: !0,
3110
3220
  noWrap: !0
3111
- }, Zo = f({
3221
+ }, _o = f({
3112
3222
  name: "builder-textarea",
3113
3223
  props: [
3114
3224
  "attributes",
@@ -3119,19 +3229,25 @@ const Qo = /* @__PURE__ */ b(Go, [["render", Yo]]), Xo = {
3119
3229
  "required"
3120
3230
  ],
3121
3231
  data() {
3122
- return { filterAttrs: A };
3232
+ return { filterAttrs: x };
3123
3233
  }
3124
- }), _o = ["placeholder", "name", "value", "defaultValue", "required"];
3125
- function er(e, t, n, o, r, s) {
3126
- return d(), p("textarea", C({
3234
+ }), er = ["placeholder", "name", "value", "defaultValue", "required"];
3235
+ function tr(e, t, n, o, r, i) {
3236
+ return d(), p("textarea", S({
3127
3237
  placeholder: e.placeholder,
3128
3238
  name: e.name,
3129
3239
  value: e.value,
3130
3240
  defaultValue: e.defaultValue,
3131
3241
  required: e.required
3132
- }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, _o);
3242
+ }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, er);
3133
3243
  }
3134
- const tr = /* @__PURE__ */ b(Zo, [["render", er]]), nr = {
3244
+ const nr = /* @__PURE__ */ b(_o, [["render", tr]]), or = {
3245
+ shouldReceiveBuilderProps: {
3246
+ builderBlock: !1,
3247
+ builderContext: !1,
3248
+ builderComponents: !1,
3249
+ builderLinkComponent: !1
3250
+ },
3135
3251
  // friendlyName?
3136
3252
  name: "Raw:Img",
3137
3253
  hideFromInsertMenu: !0,
@@ -3145,7 +3261,7 @@ const tr = /* @__PURE__ */ b(Zo, [["render", er]]), nr = {
3145
3261
  }],
3146
3262
  noWrap: !0,
3147
3263
  static: !0
3148
- }, or = f({
3264
+ }, rr = f({
3149
3265
  name: "builder-img-component",
3150
3266
  props: [
3151
3267
  "backgroundSize",
@@ -3156,11 +3272,11 @@ const tr = /* @__PURE__ */ b(Zo, [["render", er]]), nr = {
3156
3272
  "attributes"
3157
3273
  ],
3158
3274
  data() {
3159
- return { isEditing: E, filterAttrs: A };
3275
+ return { isEditing: R, filterAttrs: x };
3160
3276
  }
3161
- }), rr = ["alt", "src"];
3162
- function sr(e, t, n, o, r, s) {
3163
- return d(), p("img", C({
3277
+ }), ir = ["alt", "src"];
3278
+ function sr(e, t, n, o, r, i) {
3279
+ return d(), p("img", S({
3164
3280
  style: {
3165
3281
  objectFit: e.backgroundSize || "cover",
3166
3282
  objectPosition: e.backgroundPosition || "center"
@@ -3168,9 +3284,9 @@ function sr(e, t, n, o, r, s) {
3168
3284
  key: e.isEditing() && e.imgSrc || "default-key",
3169
3285
  alt: e.altText,
3170
3286
  src: e.imgSrc || e.image
3171
- }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, rr);
3287
+ }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, ir);
3172
3288
  }
3173
- const ir = /* @__PURE__ */ b(or, [["render", sr]]), ar = {
3289
+ const ar = /* @__PURE__ */ b(rr, [["render", sr]]), lr = {
3174
3290
  name: "Video",
3175
3291
  canHaveChildren: !0,
3176
3292
  defaultStyles: {
@@ -3250,8 +3366,14 @@ const ir = /* @__PURE__ */ b(or, [["render", sr]]), ar = {
3250
3366
  helperText: 'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',
3251
3367
  defaultValue: !0,
3252
3368
  advanced: !0
3253
- }]
3254
- }, lr = f({
3369
+ }],
3370
+ shouldReceiveBuilderProps: {
3371
+ builderBlock: !0,
3372
+ builderContext: !1,
3373
+ builderComponents: !1,
3374
+ builderLinkComponent: !1
3375
+ }
3376
+ }, cr = f({
3255
3377
  name: "builder-video",
3256
3378
  props: [
3257
3379
  "autoPlay",
@@ -3296,16 +3418,16 @@ const ir = /* @__PURE__ */ b(or, [["render", sr]]), ar = {
3296
3418
  };
3297
3419
  }
3298
3420
  }
3299
- }), cr = { style: {
3421
+ }), dr = { style: {
3300
3422
  position: "relative"
3301
- } }, dr = ["preload", "src", "poster"], ur = ["src"], pr = {
3423
+ } }, ur = ["preload", "src", "poster"], pr = ["src"], mr = {
3302
3424
  key: 1,
3303
3425
  style: {
3304
3426
  display: "flex",
3305
3427
  flexDirection: "column",
3306
3428
  alignItems: "stretch"
3307
3429
  }
3308
- }, mr = {
3430
+ }, hr = {
3309
3431
  key: 2,
3310
3432
  style: {
3311
3433
  pointerEvents: "none",
@@ -3319,16 +3441,16 @@ const ir = /* @__PURE__ */ b(or, [["render", sr]]), ar = {
3319
3441
  height: "100%"
3320
3442
  }
3321
3443
  };
3322
- function hr(e, t, n, o, r, s) {
3323
- var i, l, a, u, h, c, m;
3324
- return d(), p("div", cr, [
3325
- z("video", C({
3444
+ function fr(e, t, n, o, r, i) {
3445
+ var s, l, a, u, h, c, m;
3446
+ return d(), p("div", dr, [
3447
+ z("video", S({
3326
3448
  class: "builder-video",
3327
3449
  preload: e.preload || "metadata",
3328
3450
  style: {
3329
3451
  width: "100%",
3330
3452
  height: "100%",
3331
- ...(i = e.attributes) == null ? void 0 : i.style,
3453
+ ...(s = e.attributes) == null ? void 0 : s.style,
3332
3454
  objectFit: e.fit,
3333
3455
  objectPosition: e.position,
3334
3456
  // Hack to get object fit to work as expected and
@@ -3342,102 +3464,102 @@ function hr(e, t, n, o, r, s) {
3342
3464
  src: e.video || "no-src",
3343
3465
  poster: e.posterImage
3344
3466
  }, e.spreadProps), [
3345
- e.lazyLoad ? S("", !0) : (d(), p("source", {
3467
+ e.lazyLoad ? v("", !0) : (d(), p("source", {
3346
3468
  key: 0,
3347
3469
  type: "video/mp4",
3348
3470
  src: e.video
3349
- }, null, 8, ur))
3350
- ], 16, dr),
3471
+ }, null, 8, pr))
3472
+ ], 16, ur),
3351
3473
  e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), p("div", {
3352
3474
  key: 0,
3353
- style: D({
3475
+ style: O({
3354
3476
  width: "100%",
3355
3477
  paddingTop: e.aspectRatio * 100 + "%",
3356
3478
  pointerEvents: "none",
3357
3479
  fontSize: "0px"
3358
3480
  })
3359
- }, null, 4)) : S("", !0),
3360
- (h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (d(), p("div", pr, [
3361
- x(e.$slots, "default")
3362
- ])) : S("", !0),
3363
- (m = (c = e.builderBlock) == null ? void 0 : c.children) != null && m.length && !e.fitContent ? (d(), p("div", mr, [
3364
- x(e.$slots, "default")
3365
- ])) : S("", !0)
3481
+ }, null, 4)) : v("", !0),
3482
+ (h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (d(), p("div", mr, [
3483
+ E(e.$slots, "default")
3484
+ ])) : v("", !0),
3485
+ (m = (c = e.builderBlock) == null ? void 0 : c.children) != null && m.length && !e.fitContent ? (d(), p("div", hr, [
3486
+ E(e.$slots, "default")
3487
+ ])) : v("", !0)
3366
3488
  ]);
3367
3489
  }
3368
- const fr = /* @__PURE__ */ b(lr, [["render", hr]]), br = () => [{
3369
- component: ko,
3370
- ...fo
3371
- }, {
3372
- component: $o,
3373
- ...So
3490
+ const br = /* @__PURE__ */ b(cr, [["render", fr]]), gr = () => [{
3491
+ component: vo,
3492
+ ...bo
3374
3493
  }, {
3375
- component: No,
3376
- ...Ro
3494
+ component: Ro,
3495
+ ...Co
3377
3496
  }, {
3378
3497
  component: Lo,
3379
- ...Fo
3498
+ ...Bo
3380
3499
  }, {
3381
- component: Qo,
3382
- ...Jo
3500
+ component: Mo,
3501
+ ...Fo
3383
3502
  }, {
3384
- component: zo,
3385
- ...Mo
3503
+ component: Xo,
3504
+ ...Go
3386
3505
  }, {
3387
- component: tr,
3388
- ...Xo
3506
+ component: Jo,
3507
+ ...jo
3389
3508
  }, {
3390
- component: ir,
3391
- ...nr
3509
+ component: nr,
3510
+ ...Zo
3392
3511
  }, {
3393
- component: fr,
3394
- ...ar
3395
- }], we = () => [{
3396
- component: Ct,
3397
- ...Jn
3512
+ component: ar,
3513
+ ...or
3398
3514
  }, {
3399
- component: fn,
3515
+ component: br,
3516
+ ...lr
3517
+ }], Te = () => [{
3518
+ component: wt,
3400
3519
  ...Gn
3401
3520
  }, {
3402
- component: yn,
3521
+ component: bn,
3403
3522
  ...Yn
3404
3523
  }, {
3405
- component: $n,
3524
+ component: kn,
3406
3525
  ...Qn
3407
3526
  }, {
3408
- component: Bn,
3527
+ component: Rn,
3409
3528
  ...Xn
3410
3529
  }, {
3411
- component: to,
3530
+ component: En,
3412
3531
  ...Zn
3413
3532
  }, {
3414
- component: Is,
3415
- ...no
3416
- }, {
3417
- component: ho,
3418
- ...co
3533
+ component: no,
3534
+ ..._n
3419
3535
  }, {
3420
- component: lo,
3536
+ component: $i,
3421
3537
  ...oo
3422
3538
  }, {
3423
- component: zn,
3424
- ...Mn
3425
- }, ...br()], gr = (e) => ({
3539
+ component: fo,
3540
+ ...uo
3541
+ }, {
3542
+ component: co,
3543
+ ...ro
3544
+ }, {
3545
+ component: Jn,
3546
+ ...jn
3547
+ }, ...gr()], yr = (e) => ({
3426
3548
  type: "builder.registerComponent",
3427
- data: de(e)
3428
- }), yr = (e) => {
3549
+ data: ue(e)
3550
+ }), kr = (e) => {
3429
3551
  const t = e.toString().trim();
3430
3552
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
3431
- }, kr = (e) => typeof e == "function" ? yr(e) : Y(e), de = ({
3553
+ }, vr = (e) => typeof e == "function" ? kr(e) : Y(e), ue = ({
3432
3554
  inputs: e,
3433
3555
  ...t
3434
3556
  }) => ({
3435
3557
  ...Y(t),
3436
- inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, s]) => ({
3558
+ inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, i]) => ({
3437
3559
  ...o,
3438
- [r]: kr(s)
3560
+ [r]: vr(i)
3439
3561
  }), {}))
3440
- }), Sr = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3562
+ }), Cr = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3441
3563
  function getAndSetVariantId() {
3442
3564
  function setCookie(name, value, days) {
3443
3565
  let expires = '';
@@ -3493,7 +3615,7 @@ const fr = /* @__PURE__ */ b(lr, [["render", hr]]), br = () => [{
3493
3615
  }).join('');
3494
3616
  styleEl.innerHTML = newStyleStr;
3495
3617
  }
3496
- }`, vr = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3618
+ }`, Sr = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3497
3619
  if (!navigator.cookieEnabled) {
3498
3620
  return;
3499
3621
  }
@@ -3527,27 +3649,27 @@ const fr = /* @__PURE__ */ b(lr, [["render", hr]]), br = () => [{
3527
3649
  thisScriptEl?.remove();
3528
3650
  }
3529
3651
  return;
3530
- }`, Xe = "builderIoAbTest", Ze = "builderIoRenderContent", _ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3652
+ }`, Ze = "builderIoAbTest", _e = "builderIoRenderContent", _ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3531
3653
  ...t,
3532
3654
  testVariationId: t.id,
3533
3655
  id: e == null ? void 0 : e.id
3534
- })), Cr = ({
3656
+ })), wr = ({
3535
3657
  canTrack: e,
3536
3658
  content: t
3537
- }) => !(!(_(t).length > 0) || !e), wr = (e) => e === "react" || e === "reactNative", _e = wr($), Tr = () => `
3538
- window.${Xe} = ${Sr}
3539
- window.${Ze} = ${vr}
3540
- `, Ir = (e, t) => `
3541
- window.${Xe}(
3542
- "${t}",${JSON.stringify(e)}, ${_e}
3543
- )`, $r = ({
3659
+ }) => !(!(_(t).length > 0) || !e), Tr = (e) => e === "react" || e === "reactNative", et = Tr(A), Ir = () => `
3660
+ window.${Ze} = ${Cr}
3661
+ window.${_e} = ${Sr}
3662
+ `, $r = (e, t) => `
3663
+ window.${Ze}(
3664
+ "${t}",${JSON.stringify(e)}, ${et}
3665
+ )`, Rr = ({
3544
3666
  contentId: e,
3545
3667
  variationId: t
3546
- }) => `window.${Ze}(
3547
- "${t}", "${e}", ${_e}
3548
- )`, et = f({
3668
+ }) => `window.${_e}(
3669
+ "${t}", "${e}", ${et}
3670
+ )`, tt = f({
3549
3671
  render() {
3550
- return xe("script", {
3672
+ return Ae("script", {
3551
3673
  innerHTML: this.scriptStr,
3552
3674
  "data-id": this.id
3553
3675
  });
@@ -3555,115 +3677,115 @@ const fr = /* @__PURE__ */ b(lr, [["render", hr]]), br = () => [{
3555
3677
  name: "inlined-script",
3556
3678
  props: ["scriptStr", "id"]
3557
3679
  });
3558
- function Rr() {
3680
+ function Br() {
3559
3681
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
3560
3682
  }
3561
- function Er() {
3562
- const e = Rr().fetch;
3683
+ function Pr() {
3684
+ const e = Br().fetch;
3563
3685
  if (typeof e > "u")
3564
3686
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
3565
3687
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
3566
3688
  return e;
3567
3689
  }
3568
- const tt = Er();
3569
- function ue(e, t = null, n = ".") {
3690
+ const nt = Pr();
3691
+ function pe(e, t = null, n = ".") {
3570
3692
  return Object.keys(e).reduce((o, r) => {
3571
- const s = e[r], i = [t, r].filter(Boolean).join(n);
3572
- return [typeof s == "object", s !== null, !(Array.isArray(s) && s.length === 0)].every(Boolean) ? {
3693
+ const i = e[r], s = [t, r].filter(Boolean).join(n);
3694
+ return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
3573
3695
  ...o,
3574
- ...ue(s, i, n)
3696
+ ...pe(i, s, n)
3575
3697
  } : {
3576
3698
  ...o,
3577
- [i]: s
3699
+ [s]: i
3578
3700
  };
3579
3701
  }, {});
3580
3702
  }
3581
- function nt(e, t, n = {}) {
3703
+ function ot(e, t, n = {}) {
3582
3704
  for (const o in e) {
3583
- const r = e[o], s = t ? t + "." + o : o;
3584
- r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((i) => i.startsWith("$")) ? nt(r, s, n) : n[s] = r;
3705
+ const r = e[o], i = t ? t + "." + o : o;
3706
+ r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? ot(r, i, n) : n[i] = r;
3585
3707
  }
3586
3708
  return n;
3587
3709
  }
3588
- const Br = "v3", Te = "builder.", Pr = "options.", ot = (e) => {
3710
+ const Er = "v3", Ie = "builder.", xr = "options.", rt = (e) => {
3589
3711
  if (!e)
3590
3712
  return {};
3591
- const t = Ve(e), n = {};
3713
+ const t = We(e), n = {};
3592
3714
  return Object.keys(t).forEach((o) => {
3593
- if (o.startsWith(Te)) {
3594
- const r = o.replace(Te, "").replace(Pr, "");
3715
+ if (o.startsWith(Ie)) {
3716
+ const r = o.replace(Ie, "").replace(xr, "");
3595
3717
  n[r] = t[o];
3596
3718
  }
3597
3719
  }), n;
3598
- }, xr = () => {
3720
+ }, Ar = () => {
3599
3721
  if (!T())
3600
3722
  return {};
3601
3723
  const e = new URLSearchParams(window.location.search);
3602
- return ot(e);
3603
- }, Ie = (e) => typeof e == "number" && !isNaN(e) && e >= 0, ye = (e) => {
3724
+ return rt(e);
3725
+ }, $e = (e) => typeof e == "number" && !isNaN(e) && e >= 0, ke = (e) => {
3604
3726
  const {
3605
3727
  limit: t = 30,
3606
3728
  userAttributes: n,
3607
3729
  query: o,
3608
3730
  model: r,
3609
- apiKey: s,
3610
- enrich: i,
3731
+ apiKey: i,
3732
+ enrich: s,
3611
3733
  locale: l,
3612
- apiVersion: a = Br,
3734
+ apiVersion: a = Er,
3613
3735
  fields: u,
3614
3736
  omit: h,
3615
3737
  offset: c,
3616
3738
  cacheSeconds: m,
3617
- staleCacheSeconds: v,
3739
+ staleCacheSeconds: C,
3618
3740
  sort: y,
3619
- includeUnpublished: F
3741
+ includeUnpublished: L
3620
3742
  } = e;
3621
- if (!s)
3743
+ if (!i)
3622
3744
  throw new Error("Missing API key");
3623
3745
  if (!["v3"].includes(a))
3624
3746
  throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
3625
3747
  const X = t !== 1, w = new URL(`https://cdn.builder.io/api/${a}/content/${r}`);
3626
- if (w.searchParams.set("apiKey", s), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(X)), w.searchParams.set("includeRefs", String(!0)), l && w.searchParams.set("locale", l), i && w.searchParams.set("enrich", String(i)), w.searchParams.set("omit", h || "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(c) && c > -1 && w.searchParams.set("offset", String(Math.floor(c))), typeof F == "boolean" && w.searchParams.set("includeUnpublished", String(F)), m && Ie(m) && w.searchParams.set("cacheSeconds", String(m)), v && Ie(v) && w.searchParams.set("staleCacheSeconds", String(v)), y) {
3627
- const O = ue({
3748
+ if (w.searchParams.set("apiKey", i), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(X)), w.searchParams.set("includeRefs", String(!0)), l && w.searchParams.set("locale", l), s && w.searchParams.set("enrich", String(s)), w.searchParams.set("omit", h || "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(c) && c > -1 && w.searchParams.set("offset", String(Math.floor(c))), typeof L == "boolean" && w.searchParams.set("includeUnpublished", String(L)), m && $e(m) && w.searchParams.set("cacheSeconds", String(m)), C && $e(C) && w.searchParams.set("staleCacheSeconds", String(C)), y) {
3749
+ const F = pe({
3628
3750
  sort: y
3629
3751
  });
3630
- for (const j in O)
3631
- w.searchParams.set(j, JSON.stringify(O[j]));
3752
+ for (const j in F)
3753
+ w.searchParams.set(j, JSON.stringify(F[j]));
3632
3754
  }
3633
- const ut = {
3634
- ...xr(),
3635
- ...Ve(e.options || {})
3636
- }, Se = ue(ut);
3637
- for (const O in Se)
3638
- w.searchParams.set(O, String(Se[O]));
3755
+ const pt = {
3756
+ ...Ar(),
3757
+ ...We(e.options || {})
3758
+ }, Ce = pe(pt);
3759
+ for (const F in Ce)
3760
+ w.searchParams.set(F, String(Ce[F]));
3639
3761
  if (n && w.searchParams.set("userAttributes", JSON.stringify(n)), o) {
3640
- const O = nt({
3762
+ const F = ot({
3641
3763
  query: o
3642
3764
  });
3643
- for (const j in O)
3644
- w.searchParams.set(j, JSON.stringify(O[j]));
3765
+ for (const j in F)
3766
+ w.searchParams.set(j, JSON.stringify(F[j]));
3645
3767
  }
3646
3768
  return w;
3647
- }, Ar = (e) => "results" in e;
3648
- async function ke(e) {
3649
- const t = await Nr({
3769
+ }, Vr = (e) => "results" in e;
3770
+ async function ve(e) {
3771
+ const t = await Lr({
3650
3772
  ...e,
3651
3773
  limit: 1
3652
3774
  });
3653
3775
  return t && t[0] || null;
3654
3776
  }
3655
- const Vr = async (e) => {
3656
- const t = ye(e);
3657
- return await (await (e.fetch ?? tt)(t.href, e.fetchOptions)).json();
3658
- }, Wr = async (e, t, n = ye(e)) => {
3777
+ const Wr = async (e) => {
3778
+ const t = ke(e);
3779
+ return await (await (e.fetch ?? nt)(t.href, e.fetchOptions)).json();
3780
+ }, Nr = async (e, t, n = ke(e)) => {
3659
3781
  const o = G(e.canTrack);
3660
- if (n.search.includes("preview="), !o || !(T() || $ === "reactNative"))
3782
+ if (n.search.includes("preview="), !o || !(T() || A === "reactNative"))
3661
3783
  return t.results;
3662
3784
  try {
3663
3785
  const r = [];
3664
- for (const s of t.results)
3665
- r.push(await Ln({
3666
- item: s,
3786
+ for (const i of t.results)
3787
+ r.push(await Mn({
3788
+ item: i,
3667
3789
  canTrack: o
3668
3790
  }));
3669
3791
  t.results = r;
@@ -3672,10 +3794,10 @@ const Vr = async (e) => {
3672
3794
  }
3673
3795
  return t.results;
3674
3796
  };
3675
- async function Nr(e) {
3797
+ async function Lr(e) {
3676
3798
  try {
3677
- const t = ye(e), n = await Vr(e);
3678
- return Ar(n) ? Wr(e, n) : (B.error("Error fetching data. ", {
3799
+ const t = ke(e), n = await Wr(e);
3800
+ return Vr(n) ? Nr(e, n) : (B.error("Error fetching data. ", {
3679
3801
  url: t,
3680
3802
  content: n,
3681
3803
  options: e
@@ -3686,7 +3808,7 @@ async function Nr(e) {
3686
3808
  }
3687
3809
  function Fr(e) {
3688
3810
  const t = e || (T() ? window.location.search : void 0);
3689
- return t ? We(t).indexOf("builder.preview=") !== -1 : !1;
3811
+ return t ? Ne(t).indexOf("builder.preview=") !== -1 : !1;
3690
3812
  }
3691
3813
  function Or() {
3692
3814
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
@@ -3694,7 +3816,7 @@ function Or() {
3694
3816
  return (e == "x" ? t : t & 3 | 8).toString(16);
3695
3817
  });
3696
3818
  }
3697
- function rt() {
3819
+ function it() {
3698
3820
  return Or().replace(/-/g, "");
3699
3821
  }
3700
3822
  const st = "builderSessionId", Dr = async ({
@@ -3702,74 +3824,74 @@ const st = "builderSessionId", Dr = async ({
3702
3824
  }) => {
3703
3825
  if (!e)
3704
3826
  return;
3705
- const t = await ze({
3827
+ const t = await Je({
3706
3828
  name: st,
3707
3829
  canTrack: e
3708
3830
  });
3709
- if (U(t))
3831
+ if (D(t))
3710
3832
  return t;
3711
3833
  {
3712
3834
  const n = Ur();
3713
- return Lr({
3835
+ return Mr({
3714
3836
  id: n,
3715
3837
  canTrack: e
3716
3838
  }), n;
3717
3839
  }
3718
- }, Ur = () => rt(), Lr = ({
3840
+ }, Ur = () => it(), Mr = ({
3719
3841
  id: e,
3720
3842
  canTrack: t
3721
- }) => Je({
3843
+ }) => Ge({
3722
3844
  name: st,
3723
3845
  value: e,
3724
3846
  canTrack: t
3725
- }), it = () => T() && typeof localStorage < "u" ? localStorage : void 0, Mr = ({
3847
+ }), at = () => T() && typeof localStorage < "u" ? localStorage : void 0, jr = ({
3726
3848
  key: e,
3727
3849
  canTrack: t
3728
3850
  }) => {
3729
3851
  var n;
3730
3852
  try {
3731
- return t ? (n = it()) == null ? void 0 : n.getItem(e) : void 0;
3853
+ return t ? (n = at()) == null ? void 0 : n.getItem(e) : void 0;
3732
3854
  } catch (o) {
3733
3855
  console.debug("[LocalStorage] GET error: ", o);
3734
3856
  return;
3735
3857
  }
3736
- }, jr = ({
3858
+ }, Hr = ({
3737
3859
  key: e,
3738
3860
  canTrack: t,
3739
3861
  value: n
3740
3862
  }) => {
3741
3863
  var o;
3742
3864
  try {
3743
- t && ((o = it()) == null || o.setItem(e, n));
3865
+ t && ((o = at()) == null || o.setItem(e, n));
3744
3866
  } catch (r) {
3745
3867
  console.debug("[LocalStorage] SET error: ", r);
3746
3868
  }
3747
- }, at = "builderVisitorId", Hr = ({
3869
+ }, lt = "builderVisitorId", Kr = ({
3748
3870
  canTrack: e
3749
3871
  }) => {
3750
3872
  if (!e)
3751
3873
  return;
3752
- const t = Mr({
3753
- key: at,
3874
+ const t = jr({
3875
+ key: lt,
3754
3876
  canTrack: e
3755
3877
  });
3756
- if (U(t))
3878
+ if (D(t))
3757
3879
  return t;
3758
3880
  {
3759
- const n = Kr();
3760
- return qr({
3881
+ const n = qr();
3882
+ return zr({
3761
3883
  id: n,
3762
3884
  canTrack: e
3763
3885
  }), n;
3764
3886
  }
3765
- }, Kr = () => rt(), qr = ({
3887
+ }, qr = () => it(), zr = ({
3766
3888
  id: e,
3767
3889
  canTrack: t
3768
- }) => jr({
3769
- key: at,
3890
+ }) => Hr({
3891
+ key: lt,
3770
3892
  value: e,
3771
3893
  canTrack: t
3772
- }), zr = async ({
3894
+ }), Jr = async ({
3773
3895
  canTrack: e
3774
3896
  }) => {
3775
3897
  if (!e)
@@ -3779,14 +3901,14 @@ const st = "builderSessionId", Dr = async ({
3779
3901
  };
3780
3902
  const t = await Dr({
3781
3903
  canTrack: e
3782
- }), n = Hr({
3904
+ }), n = Kr({
3783
3905
  canTrack: e
3784
3906
  });
3785
3907
  return {
3786
3908
  sessionId: t,
3787
3909
  visitorId: n
3788
3910
  };
3789
- }, Jr = async ({
3911
+ }, Gr = async ({
3790
3912
  type: e,
3791
3913
  canTrack: t,
3792
3914
  apiKey: n,
@@ -3800,23 +3922,23 @@ const st = "builderSessionId", Dr = async ({
3800
3922
  url: location.href,
3801
3923
  ...o
3802
3924
  },
3803
- ...await zr({
3925
+ ...await Jr({
3804
3926
  canTrack: t
3805
3927
  }),
3806
- userAttributes: Ne(),
3928
+ userAttributes: Le(),
3807
3929
  ownerId: n
3808
3930
  }
3809
3931
  });
3810
- async function pe(e) {
3932
+ async function me(e) {
3811
3933
  if (!e.apiKey) {
3812
3934
  B.error("Missing API key for track call. Please provide your API key.");
3813
3935
  return;
3814
3936
  }
3815
- if (e.canTrack && !E() && (T() || $ === "reactNative"))
3937
+ if (e.canTrack && !R() && (T() || A === "reactNative"))
3816
3938
  return fetch("https://cdn.builder.io/api/v1/track", {
3817
3939
  method: "POST",
3818
3940
  body: JSON.stringify({
3819
- events: [await Jr(e)]
3941
+ events: [await Gr(e)]
3820
3942
  }),
3821
3943
  headers: {
3822
3944
  "content-type": "application/json"
@@ -3826,14 +3948,14 @@ async function pe(e) {
3826
3948
  console.error("Failed to track: ", t);
3827
3949
  });
3828
3950
  }
3829
- const Ws = (e) => pe({
3951
+ const Ni = (e) => me({
3830
3952
  ...e,
3831
3953
  canTrack: !0
3832
3954
  });
3833
- function $e(e) {
3955
+ function Re(e) {
3834
3956
  return Math.round(e * 1e3) / 1e3;
3835
3957
  }
3836
- const Gr = (e, t, n = !0) => {
3958
+ const Yr = (e, t, n = !0) => {
3837
3959
  if (!(e instanceof HTMLElement))
3838
3960
  return null;
3839
3961
  let o = n ? e : e.parentElement;
@@ -3844,45 +3966,45 @@ const Gr = (e, t, n = !0) => {
3844
3966
  return o;
3845
3967
  } while (o = o.parentElement);
3846
3968
  return null;
3847
- }, Yr = (e) => Gr(e, (t) => {
3969
+ }, Qr = (e) => Yr(e, (t) => {
3848
3970
  const n = t.getAttribute("builder-id") || t.id;
3849
3971
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3850
- }), Re = ({
3972
+ }), Be = ({
3851
3973
  event: e,
3852
3974
  target: t
3853
3975
  }) => {
3854
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, s = $e(o / n.width), i = $e(r / n.height);
3976
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = Re(o / n.width), s = Re(r / n.height);
3855
3977
  return {
3856
- x: s,
3857
- y: i
3978
+ x: i,
3979
+ y: s
3858
3980
  };
3859
- }, Qr = (e) => {
3860
- const t = e.target, n = t && Yr(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3981
+ }, Xr = (e) => {
3982
+ const t = e.target, n = t && Qr(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3861
3983
  return {
3862
3984
  targetBuilderElement: o || void 0,
3863
3985
  metadata: {
3864
- targetOffset: t ? Re({
3986
+ targetOffset: t ? Be({
3865
3987
  event: e,
3866
3988
  target: t
3867
3989
  }) : void 0,
3868
- builderTargetOffset: n ? Re({
3990
+ builderTargetOffset: n ? Be({
3869
3991
  event: e,
3870
3992
  target: n
3871
3993
  }) : void 0,
3872
3994
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
3873
3995
  }
3874
3996
  };
3875
- }, Xr = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
3876
- function lt(e, t) {
3997
+ }, Zr = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
3998
+ function ct(e, t) {
3877
3999
  if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
3878
4000
  return !1;
3879
4001
  const n = new URL(t.origin), o = n.hostname;
3880
- return (e || Xr).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
4002
+ return (e || Zr).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
3881
4003
  }
3882
- const Zr = "1.0.36", Ee = {};
3883
- function _r(e, t) {
3884
- let n = Ee[e];
3885
- if (n || (n = Ee[e] = []), n.push(t), T()) {
4004
+ const _r = "1.1.1", Pe = {};
4005
+ function ei(e, t) {
4006
+ let n = Pe[e];
4007
+ if (n || (n = Pe[e] = []), n.push(t), T()) {
3886
4008
  const o = {
3887
4009
  type: "builder.register",
3888
4010
  data: {
@@ -3897,8 +4019,8 @@ function _r(e, t) {
3897
4019
  }
3898
4020
  }
3899
4021
  }
3900
- const es = () => {
3901
- _r("insertMenu", {
4022
+ const ti = () => {
4023
+ ei("insertMenu", {
3902
4024
  name: "_default",
3903
4025
  default: !0,
3904
4026
  items: [{
@@ -3920,14 +4042,14 @@ const es = () => {
3920
4042
  }]
3921
4043
  });
3922
4044
  };
3923
- let Be = !1;
3924
- const ct = (e = {}) => {
4045
+ let Ee = !1;
4046
+ const dt = (e = {}) => {
3925
4047
  var t, n;
3926
- Be || (Be = !0, T() && ((t = window.parent) == null || t.postMessage({
4048
+ Ee || (Ee = !0, T() && ((t = window.parent) == null || t.postMessage({
3927
4049
  type: "builder.sdkInfo",
3928
4050
  data: {
3929
- target: $,
3930
- version: Zr,
4051
+ target: A,
4052
+ version: _r,
3931
4053
  supportsPatchUpdates: !1,
3932
4054
  // Supports builder-model="..." attribute which is needed to
3933
4055
  // scope our '+ add block' button styling
@@ -3940,8 +4062,8 @@ const ct = (e = {}) => {
3940
4062
  options: e
3941
4063
  }
3942
4064
  }, "*"), window.addEventListener("message", (o) => {
3943
- var s, i;
3944
- if (!lt(e.trustedHosts, o))
4065
+ var i, s;
4066
+ if (!ct(e.trustedHosts, o))
3945
4067
  return;
3946
4068
  const {
3947
4069
  data: r
@@ -3953,25 +4075,25 @@ const ct = (e = {}) => {
3953
4075
  let c, m = null;
3954
4076
  try {
3955
4077
  c = h.apply(null, a);
3956
- } catch (v) {
3957
- m = v;
4078
+ } catch (C) {
4079
+ m = C;
3958
4080
  }
3959
- m ? (s = window.parent) == null || s.postMessage({
4081
+ m ? (i = window.parent) == null || i.postMessage({
3960
4082
  type: "builder.evaluateError",
3961
4083
  data: {
3962
4084
  id: u,
3963
4085
  error: m.message
3964
4086
  }
3965
- }, "*") : c && typeof c.then == "function" ? c.then((v) => {
4087
+ }, "*") : c && typeof c.then == "function" ? c.then((C) => {
3966
4088
  var y;
3967
4089
  (y = window.parent) == null || y.postMessage({
3968
4090
  type: "builder.evaluateResult",
3969
4091
  data: {
3970
4092
  id: u,
3971
- result: v
4093
+ result: C
3972
4094
  }
3973
4095
  }, "*");
3974
- }).catch(console.error) : (i = window.parent) == null || i.postMessage({
4096
+ }).catch(console.error) : (s = window.parent) == null || s.postMessage({
3975
4097
  type: "builder.evaluateResult",
3976
4098
  data: {
3977
4099
  result: c,
@@ -3982,12 +4104,12 @@ const ct = (e = {}) => {
3982
4104
  }
3983
4105
  }
3984
4106
  })));
3985
- }, dt = ({
4107
+ }, ut = ({
3986
4108
  model: e,
3987
4109
  trustedHosts: t,
3988
4110
  callbacks: n
3989
4111
  }) => (o) => {
3990
- if (!lt(t, o))
4112
+ if (!ct(t, o))
3991
4113
  return;
3992
4114
  const {
3993
4115
  data: r
@@ -4003,17 +4125,17 @@ const ct = (e = {}) => {
4003
4125
  break;
4004
4126
  }
4005
4127
  case "builder.contentUpdate": {
4006
- const s = r.data, i = s.key || s.alias || s.entry || s.modelName, l = s.data;
4007
- i === e && n.contentUpdate(l);
4128
+ const i = r.data, s = i.key || i.alias || i.entry || i.modelName, l = i.data;
4129
+ s === e && n.contentUpdate(l);
4008
4130
  break;
4009
4131
  }
4010
4132
  }
4011
- }, Ns = (e, t, n) => {
4133
+ }, Li = (e, t, n) => {
4012
4134
  if (!T)
4013
4135
  return B.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
4014
4136
  };
4015
- ct();
4016
- const o = dt({
4137
+ dt();
4138
+ const o = ut({
4017
4139
  callbacks: {
4018
4140
  contentUpdate: t,
4019
4141
  animation: () => {
@@ -4027,9 +4149,9 @@ const ct = (e = {}) => {
4027
4149
  return window.addEventListener("message", o), () => {
4028
4150
  window.removeEventListener("message", o);
4029
4151
  };
4030
- }, ts = (e) => {
4031
- var s;
4032
- 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);
4152
+ }, ni = (e) => {
4153
+ var i;
4154
+ 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);
4033
4155
  let r = "";
4034
4156
  if (o && t && n && (r += `
4035
4157
  @font-face {
@@ -4039,29 +4161,29 @@ font-display: fallback;
4039
4161
  font-weight: 400;
4040
4162
  }
4041
4163
  `.trim()), e.files)
4042
- for (const i in e.files) {
4043
- if (!(String(Number(i)) === i))
4164
+ for (const s in e.files) {
4165
+ if (!(String(Number(s)) === s))
4044
4166
  continue;
4045
- const a = e.files[i];
4167
+ const a = e.files[s];
4046
4168
  a && a !== o && (r += `
4047
4169
  @font-face {
4048
4170
  font-family: "${t}";
4049
4171
  src: url('${a}') format('woff2');
4050
4172
  font-display: fallback;
4051
- font-weight: ${i};
4173
+ font-weight: ${s};
4052
4174
  }
4053
4175
  `.trim());
4054
4176
  }
4055
4177
  return r;
4056
- }, ns = ({
4178
+ }, oi = ({
4057
4179
  customFonts: e
4058
4180
  }) => {
4059
4181
  var t;
4060
- return ((t = e == null ? void 0 : e.map((n) => ts(n))) == null ? void 0 : t.join(" ")) || "";
4061
- }, os = ({
4182
+ return ((t = e == null ? void 0 : e.map((n) => ni(n))) == null ? void 0 : t.join(" ")) || "";
4183
+ }, ri = ({
4062
4184
  cssCode: e,
4063
4185
  contentId: t
4064
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", rs = `
4186
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", ii = `
4065
4187
  .builder-button {
4066
4188
  all: unset;
4067
4189
  }
@@ -4078,7 +4200,7 @@ font-weight: ${i};
4078
4200
  text-align: inherit;
4079
4201
  font-family: inherit;
4080
4202
  }
4081
- `, ss = (e) => e ? "" : rs, is = (e) => `variant-${e}`, as = f({
4203
+ `, si = (e) => e ? "" : ii, ai = (e) => `variant-${e}`, li = f({
4082
4204
  name: "enable-editor",
4083
4205
  components: { DynamicDiv: Q },
4084
4206
  props: [
@@ -4102,33 +4224,33 @@ font-weight: ${i};
4102
4224
  httpReqsData: {},
4103
4225
  httpReqsPending: {},
4104
4226
  clicked: !1,
4105
- builderContext: ce,
4106
- getWrapperClassName: is
4227
+ builderContext: de,
4228
+ getWrapperClassName: ai
4107
4229
  };
4108
4230
  },
4109
4231
  provide() {
4110
4232
  const e = this;
4111
4233
  return {
4112
- [ce.key]: e.builderContextSignal
4234
+ [de.key]: e.builderContextSignal
4113
4235
  };
4114
4236
  },
4115
4237
  mounted() {
4116
4238
  (() => {
4117
4239
  var n, o;
4118
4240
  if (T()) {
4119
- if (E() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4241
+ if (R() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4120
4242
  new CustomEvent("initeditingbldr")
4121
4243
  ), this.builderContextSignal.content && G(this.canTrack)) {
4122
- const s = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, i = (o = this.builderContextSignal.content) == null ? void 0 : o.id, l = this.apiKey;
4123
- pe({
4244
+ const i = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, s = (o = this.builderContextSignal.content) == null ? void 0 : o.id, l = this.apiKey;
4245
+ me({
4124
4246
  type: "impression",
4125
4247
  canTrack: !0,
4126
- contentId: i,
4248
+ contentId: s,
4127
4249
  apiKey: l,
4128
- variationId: s !== i ? s : void 0
4250
+ variationId: i !== s ? i : void 0
4129
4251
  });
4130
4252
  }
4131
- Fr() && !E() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4253
+ Fr() && !R() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4132
4254
  new CustomEvent("initpreviewingbldr")
4133
4255
  );
4134
4256
  }
@@ -4234,7 +4356,7 @@ font-weight: ${i};
4234
4356
  this.builderContextSignal.rootSetState ? (o = (n = this.builderContextSignal).rootSetState) == null || o.call(n, t) : this.builderContextSignal.rootState = t;
4235
4357
  },
4236
4358
  mergeNewContent(e) {
4237
- var n, o, r, s, i;
4359
+ var n, o, r, i, s;
4238
4360
  const t = {
4239
4361
  ...this.builderContextSignal.content,
4240
4362
  ...e,
@@ -4245,13 +4367,13 @@ font-weight: ${i};
4245
4367
  meta: {
4246
4368
  ...(o = this.builderContextSignal.content) == null ? void 0 : o.meta,
4247
4369
  ...e == null ? void 0 : e.meta,
4248
- 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)
4370
+ breakpoints: ((r = e == null ? void 0 : e.meta) == null ? void 0 : r.breakpoints) || ((s = (i = this.builderContextSignal.content) == null ? void 0 : i.meta) == null ? void 0 : s.breakpoints)
4249
4371
  }
4250
4372
  };
4251
4373
  this.builderContextSignal.content = t;
4252
4374
  },
4253
4375
  processMessage(e) {
4254
- return dt({
4376
+ return ut({
4255
4377
  model: this.model,
4256
4378
  trustedHosts: this.trustedHosts,
4257
4379
  callbacks: {
@@ -4265,7 +4387,7 @@ font-weight: ${i};
4265
4387
  });
4266
4388
  },
4267
4389
  animation: (t) => {
4268
- Me(t);
4390
+ je(t);
4269
4391
  },
4270
4392
  contentUpdate: (t) => {
4271
4393
  this.mergeNewContent(t);
@@ -4292,13 +4414,13 @@ font-weight: ${i};
4292
4414
  var t, n;
4293
4415
  if (this.builderContextSignal.content) {
4294
4416
  const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
4295
- pe({
4417
+ me({
4296
4418
  type: "click",
4297
4419
  canTrack: G(this.canTrack),
4298
4420
  contentId: r,
4299
4421
  apiKey: this.apiKey,
4300
4422
  variationId: o !== r ? o : void 0,
4301
- ...Qr(e),
4423
+ ...Xr(e),
4302
4424
  unique: !this.clicked
4303
4425
  });
4304
4426
  }
@@ -4308,12 +4430,12 @@ font-weight: ${i};
4308
4430
  var t, n;
4309
4431
  const e = ((n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) ?? {};
4310
4432
  Object.entries(e).forEach(([o, r]) => {
4311
- if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !E())
4433
+ if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !R())
4312
4434
  return;
4313
4435
  this.httpReqsPending[o] = !0;
4314
- const s = r.replace(
4436
+ const i = r.replace(
4315
4437
  /{{([^}]+)}}/g,
4316
- (i, l) => String(
4438
+ (s, l) => String(
4317
4439
  te({
4318
4440
  code: l,
4319
4441
  context: this.context || {},
@@ -4324,19 +4446,19 @@ font-weight: ${i};
4324
4446
  })
4325
4447
  )
4326
4448
  );
4327
- tt(s).then((i) => i.json()).then((i) => {
4449
+ nt(i).then((s) => s.json()).then((s) => {
4328
4450
  this.mergeNewRootState({
4329
- [o]: i
4451
+ [o]: s
4330
4452
  }), this.httpReqsData[o] = !0;
4331
- }).catch((i) => {
4332
- console.error("error fetching dynamic data", r, i);
4453
+ }).catch((s) => {
4454
+ console.error("error fetching dynamic data", r, s);
4333
4455
  }).finally(() => {
4334
4456
  this.httpReqsPending[o] = !1;
4335
4457
  });
4336
4458
  });
4337
4459
  },
4338
4460
  emitStateUpdate() {
4339
- E() && window.dispatchEvent(
4461
+ R() && window.dispatchEvent(
4340
4462
  new CustomEvent(
4341
4463
  "builder:component:stateChange",
4342
4464
  {
@@ -4351,7 +4473,7 @@ font-weight: ${i};
4351
4473
  );
4352
4474
  },
4353
4475
  elementRef_onIniteditingbldr(e) {
4354
- window.addEventListener("message", this.processMessage), es(), ct({
4476
+ window.addEventListener("message", this.processMessage), ti(), dt({
4355
4477
  ...this.locale ? {
4356
4478
  locale: this.locale
4357
4479
  } : {},
@@ -4365,7 +4487,7 @@ font-weight: ${i};
4365
4487
  this.builderContextSignal.componentInfos
4366
4488
  ).forEach((t) => {
4367
4489
  var o;
4368
- const n = gr(t);
4490
+ const n = yr(t);
4369
4491
  (o = window.parent) == null || o.postMessage(n, "*");
4370
4492
  }), window.addEventListener(
4371
4493
  "builder:component:stateChangeListenerActivated",
@@ -4376,68 +4498,68 @@ font-weight: ${i};
4376
4498
  const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
4377
4499
  `builder.overrides.${n}`
4378
4500
  ), r = t.get("apiKey") || t.get("builder.space");
4379
- n === this.model && r === this.apiKey && (!this.content || o === this.content.id) && ke({
4501
+ n === this.model && r === this.apiKey && (!this.content || o === this.content.id) && ve({
4380
4502
  model: this.model,
4381
4503
  apiKey: this.apiKey,
4382
4504
  apiVersion: this.builderContextSignal.apiVersion
4383
- }).then((s) => {
4384
- s && this.mergeNewContent(s);
4505
+ }).then((i) => {
4506
+ i && this.mergeNewContent(i);
4385
4507
  });
4386
4508
  }
4387
4509
  }
4388
4510
  });
4389
- function ls(e, t, n, o, r, s) {
4390
- var i, l, a;
4391
- return e.builderContextSignal.content ? (d(), k(K(e.ContentWrapper), C({
4511
+ function ci(e, t, n, o, r, i) {
4512
+ var s, l, a;
4513
+ return e.builderContextSignal.content ? (d(), k(K(e.ContentWrapper), S({
4392
4514
  key: 0,
4393
4515
  ref: "elementRef",
4394
4516
  onClick: (u) => e.onClick(u),
4395
- "builder-content-id": (i = e.builderContextSignal.content) == null ? void 0 : i.id,
4517
+ "builder-content-id": (s = e.builderContextSignal.content) == null ? void 0 : s.id,
4396
4518
  "builder-model": e.model,
4397
4519
  class: e.getWrapperClassName(((l = e.content) == null ? void 0 : l.testVariationId) || ((a = e.content) == null ? void 0 : a.id)),
4398
4520
  onIniteditingbldr: (u) => e.elementRef_onIniteditingbldr(u),
4399
4521
  onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
4400
4522
  }, { ...e.showContentProps, ...e.contentWrapperProps }), {
4401
4523
  default: W(() => [
4402
- x(e.$slots, "default")
4524
+ E(e.$slots, "default")
4403
4525
  ]),
4404
4526
  _: 3
4405
- }, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : S("", !0);
4527
+ }, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : v("", !0);
4406
4528
  }
4407
- const cs = /* @__PURE__ */ b(as, [["render", ls]]), ds = f({
4529
+ const di = /* @__PURE__ */ b(li, [["render", ci]]), ui = f({
4408
4530
  name: "content-styles",
4409
- components: { InlinedStyles: be },
4531
+ components: { InlinedStyles: ge },
4410
4532
  props: ["cssCode", "contentId", "customFonts", "isNestedRender"],
4411
4533
  data() {
4412
4534
  return {
4413
4535
  injectedStyles: `
4414
- ${os({
4536
+ ${ri({
4415
4537
  cssCode: this.cssCode,
4416
4538
  contentId: this.contentId
4417
4539
  })}
4418
- ${ns({
4540
+ ${oi({
4419
4541
  customFonts: this.customFonts
4420
4542
  })}
4421
- ${ss(this.isNestedRender)}
4543
+ ${si(this.isNestedRender)}
4422
4544
  `.trim()
4423
4545
  };
4424
4546
  }
4425
4547
  });
4426
- function us(e, t, n, o, r, s) {
4427
- const i = g("InlinedStyles");
4428
- return d(), k(i, {
4548
+ function pi(e, t, n, o, r, i) {
4549
+ const s = g("InlinedStyles");
4550
+ return d(), k(s, {
4429
4551
  id: "builderio-content",
4430
4552
  styles: e.injectedStyles
4431
4553
  }, null, 8, ["styles"]);
4432
4554
  }
4433
- const ps = /* @__PURE__ */ b(ds, [["render", us]]), ms = ({
4555
+ const mi = /* @__PURE__ */ b(ui, [["render", pi]]), hi = ({
4434
4556
  content: e,
4435
4557
  data: t,
4436
4558
  locale: n
4437
4559
  }) => {
4438
- var s, i, l;
4439
- const o = {}, r = ((s = e == null ? void 0 : e.data) == null ? void 0 : s.state) || {};
4440
- return (l = (i = e == null ? void 0 : e.data) == null ? void 0 : i.inputs) == null || l.forEach((a) => {
4560
+ var i, s, l;
4561
+ const o = {}, r = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.state) || {};
4562
+ return (l = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || l.forEach((a) => {
4441
4563
  a.name && a.defaultValue !== void 0 && (o[a.name] = a.defaultValue);
4442
4564
  }), {
4443
4565
  ...o,
@@ -4447,7 +4569,7 @@ const ps = /* @__PURE__ */ b(ds, [["render", us]]), ms = ({
4447
4569
  locale: n
4448
4570
  } : {}
4449
4571
  };
4450
- }, hs = ({
4572
+ }, fi = ({
4451
4573
  content: e,
4452
4574
  data: t
4453
4575
  }) => e ? {
@@ -4457,12 +4579,12 @@ const ps = /* @__PURE__ */ b(ds, [["render", us]]), ms = ({
4457
4579
  ...t
4458
4580
  },
4459
4581
  meta: e == null ? void 0 : e.meta
4460
- } : void 0, fs = ft, bs = f({
4582
+ } : void 0, bi = bt, gi = f({
4461
4583
  name: "content-component",
4462
4584
  components: {
4463
- EnableEditor: cs,
4464
- InlinedScript: et,
4465
- ContentStyles: ps,
4585
+ EnableEditor: di,
4586
+ InlinedScript: tt,
4587
+ ContentStyles: mi,
4466
4588
  Blocks: M,
4467
4589
  DynamicDiv: Q
4468
4590
  },
@@ -4490,32 +4612,32 @@ const ps = /* @__PURE__ */ b(ds, [["render", us]]), ms = ({
4490
4612
  data() {
4491
4613
  var e, t;
4492
4614
  return {
4493
- scriptStr: $r({
4615
+ scriptStr: Rr({
4494
4616
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4495
4617
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
4496
4618
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4497
4619
  contentId: (t = this.content) == null ? void 0 : t.id
4498
4620
  }),
4499
4621
  registeredComponents: [
4500
- ...we(),
4622
+ ...Te(),
4501
4623
  ...this.customComponents || []
4502
4624
  ].reduce(
4503
4625
  (n, { component: o, ...r }) => ({
4504
4626
  ...n,
4505
4627
  [r.name]: {
4506
- component: fs(o),
4507
- ...de(r)
4628
+ component: bi(o),
4629
+ ...ue(r)
4508
4630
  }
4509
4631
  }),
4510
4632
  {}
4511
4633
  ),
4512
4634
  builderContextSignal: {
4513
- content: hs({
4635
+ content: fi({
4514
4636
  content: this.content,
4515
4637
  data: this.data
4516
4638
  }),
4517
4639
  localState: void 0,
4518
- rootState: ms({
4640
+ rootState: hi({
4519
4641
  content: this.content,
4520
4642
  data: this.data,
4521
4643
  locale: this.locale
@@ -4526,12 +4648,12 @@ const ps = /* @__PURE__ */ b(ds, [["render", us]]), ms = ({
4526
4648
  apiKey: this.apiKey,
4527
4649
  apiVersion: this.apiVersion,
4528
4650
  componentInfos: [
4529
- ...we(),
4651
+ ...Te(),
4530
4652
  ...this.customComponents || []
4531
4653
  ].reduce(
4532
4654
  (n, { component: o, ...r }) => ({
4533
4655
  ...n,
4534
- [r.name]: de(r)
4656
+ [r.name]: ue(r)
4535
4657
  }),
4536
4658
  {}
4537
4659
  ),
@@ -4539,13 +4661,13 @@ const ps = /* @__PURE__ */ b(ds, [["render", us]]), ms = ({
4539
4661
  BlocksWrapper: this.blocksWrapper || "div",
4540
4662
  BlocksWrapperProps: this.blocksWrapperProps || {}
4541
4663
  },
4542
- TARGET: $
4664
+ TARGET: A
4543
4665
  };
4544
4666
  },
4545
4667
  provide() {
4546
4668
  const e = this;
4547
4669
  return {
4548
- [Ae.key]: {
4670
+ [Ve.key]: {
4549
4671
  registeredComponents: e.registeredComponents
4550
4672
  }
4551
4673
  };
@@ -4556,9 +4678,9 @@ const ps = /* @__PURE__ */ b(ds, [["render", us]]), ms = ({
4556
4678
  }
4557
4679
  }
4558
4680
  });
4559
- function gs(e, t, n, o, r, s) {
4560
- const i = g("InlinedScript"), l = g("ContentStyles"), a = g("Blocks"), u = g("EnableEditor");
4561
- return d(), k(u, C({
4681
+ function yi(e, t, n, o, r, i) {
4682
+ const s = g("InlinedScript"), l = g("ContentStyles"), a = g("Blocks"), u = g("EnableEditor");
4683
+ return d(), k(u, S({
4562
4684
  content: e.content,
4563
4685
  data: e.data,
4564
4686
  model: e.model,
@@ -4574,22 +4696,22 @@ function gs(e, t, n, o, r, s) {
4574
4696
  trustedHosts: e.trustedHosts
4575
4697
  }, {}), {
4576
4698
  default: W(() => {
4577
- var h, c, m, v, y, F, X;
4699
+ var h, c, m, C, y, L, X;
4578
4700
  return [
4579
- e.isSsrAbTest ? (d(), k(i, {
4701
+ e.isSsrAbTest ? (d(), k(s, {
4580
4702
  key: 0,
4581
4703
  id: "builderio-variant-visibility",
4582
4704
  scriptStr: e.scriptStr
4583
- }, null, 8, ["scriptStr"])) : S("", !0),
4705
+ }, null, 8, ["scriptStr"])) : v("", !0),
4584
4706
  e.TARGET !== "reactNative" ? (d(), k(l, {
4585
4707
  key: 1,
4586
4708
  isNestedRender: e.isNestedRender,
4587
4709
  contentId: (h = e.builderContextSignal.content) == null ? void 0 : h.id,
4588
4710
  cssCode: (m = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : m.cssCode,
4589
- customFonts: (y = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : y.customFonts
4590
- }, null, 8, ["isNestedRender", "contentId", "cssCode", "customFonts"])) : S("", !0),
4591
- R(a, {
4592
- blocks: (X = (F = e.builderContextSignal.content) == null ? void 0 : F.data) == null ? void 0 : X.blocks,
4711
+ customFonts: (y = (C = e.builderContextSignal.content) == null ? void 0 : C.data) == null ? void 0 : y.customFonts
4712
+ }, null, 8, ["isNestedRender", "contentId", "cssCode", "customFonts"])) : v("", !0),
4713
+ $(a, {
4714
+ blocks: (X = (L = e.builderContextSignal.content) == null ? void 0 : L.data) == null ? void 0 : X.blocks,
4593
4715
  context: e.builderContextSignal,
4594
4716
  registeredComponents: e.registeredComponents,
4595
4717
  linkComponent: e.linkComponent
@@ -4599,12 +4721,12 @@ function gs(e, t, n, o, r, s) {
4599
4721
  _: 1
4600
4722
  }, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts"]);
4601
4723
  }
4602
- const ys = /* @__PURE__ */ b(bs, [["render", gs]]), ks = f({
4724
+ const ki = /* @__PURE__ */ b(gi, [["render", yi]]), vi = f({
4603
4725
  name: "content-variants",
4604
4726
  components: {
4605
- InlinedScript: et,
4606
- InlinedStyles: be,
4607
- ContentComponent: ys
4727
+ InlinedScript: tt,
4728
+ InlinedStyles: ge,
4729
+ ContentComponent: ki
4608
4730
  },
4609
4731
  props: [
4610
4732
  "canTrack",
@@ -4627,21 +4749,23 @@ const ys = /* @__PURE__ */ b(bs, [["render", gs]]), ks = f({
4627
4749
  ],
4628
4750
  data() {
4629
4751
  return {
4630
- shouldRenderVariants: Cr({
4752
+ shouldRenderVariants: wr({
4631
4753
  canTrack: G(this.canTrack),
4632
4754
  content: this.content
4633
4755
  }),
4634
- TARGET: $,
4635
- getInitVariantsFnsScriptString: Tr,
4756
+ TARGET: A,
4757
+ getInitVariantsFnsScriptString: Ir,
4636
4758
  getVariants: _
4637
4759
  };
4638
4760
  },
4639
4761
  mounted() {
4640
4762
  },
4763
+ updated() {
4764
+ },
4641
4765
  computed: {
4642
4766
  updateCookieAndStylesScriptStr() {
4643
4767
  var e;
4644
- return Ir(
4768
+ return $r(
4645
4769
  _(this.content).map((t) => ({
4646
4770
  id: t.testVariationId,
4647
4771
  testRatio: t.testRatio
@@ -4664,20 +4788,20 @@ const ys = /* @__PURE__ */ b(bs, [["render", gs]]), ks = f({
4664
4788
  }
4665
4789
  }
4666
4790
  });
4667
- function Ss(e, t, n, o, r, s) {
4668
- const i = g("InlinedScript"), l = g("InlinedStyles"), a = g("ContentComponent");
4791
+ function Ci(e, t, n, o, r, i) {
4792
+ const s = g("InlinedScript"), l = g("InlinedStyles"), a = g("ContentComponent");
4669
4793
  return d(), p(I, null, [
4670
- !e.isNestedRender && e.TARGET !== "reactNative" ? (d(), k(i, {
4794
+ !e.isNestedRender && e.TARGET !== "reactNative" ? (d(), k(s, {
4671
4795
  key: 0,
4672
4796
  id: "builderio-init-variants-fns",
4673
4797
  scriptStr: e.getInitVariantsFnsScriptString()
4674
- }, null, 8, ["scriptStr"])) : S("", !0),
4798
+ }, null, 8, ["scriptStr"])) : v("", !0),
4675
4799
  e.shouldRenderVariants ? (d(), p(I, { key: 1 }, [
4676
- R(l, {
4800
+ $(l, {
4677
4801
  id: "builderio-variants",
4678
4802
  styles: e.hideVariantsStyleString
4679
4803
  }, null, 8, ["styles"]),
4680
- R(i, {
4804
+ $(s, {
4681
4805
  id: "builderio-variants-visibility",
4682
4806
  scriptStr: e.updateCookieAndStylesScriptStr
4683
4807
  }, null, 8, ["scriptStr"]),
@@ -4703,8 +4827,8 @@ function Ss(e, t, n, o, r, s) {
4703
4827
  contentWrapperProps: e.contentWrapperProps,
4704
4828
  trustedHosts: e.trustedHosts
4705
4829
  }, null, 8, ["isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
4706
- ], 64)) : S("", !0),
4707
- R(a, C({
4830
+ ], 64)) : v("", !0),
4831
+ $(a, S({
4708
4832
  isNestedRender: e.isNestedRender,
4709
4833
  content: e.defaultContent,
4710
4834
  showContent: !0,
@@ -4729,13 +4853,13 @@ function Ss(e, t, n, o, r, s) {
4729
4853
  }), null, 16, ["isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
4730
4854
  ], 64);
4731
4855
  }
4732
- const vs = /* @__PURE__ */ b(ks, [["render", Ss]]), Cs = async ({
4856
+ const Si = /* @__PURE__ */ b(vi, [["render", Ci]]), wi = async ({
4733
4857
  builderContextValue: e,
4734
4858
  symbol: t
4735
4859
  }) => {
4736
4860
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4737
4861
  (e != null && e.apiKey))
4738
- return ke({
4862
+ return ve({
4739
4863
  model: t.model,
4740
4864
  apiKey: e.apiKey,
4741
4865
  apiVersion: e.apiVersion,
@@ -4747,9 +4871,9 @@ const vs = /* @__PURE__ */ b(ks, [["render", Ss]]), Cs = async ({
4747
4871
  }).catch((n) => {
4748
4872
  B.error("Could not fetch symbol content: ", n);
4749
4873
  });
4750
- }, ws = f({
4874
+ }, Ti = f({
4751
4875
  name: "builder-symbol",
4752
- components: { ContentVariants: vs, DynamicDiv: Q },
4876
+ components: { ContentVariants: Si, DynamicDiv: Q },
4753
4877
  props: [
4754
4878
  "symbol",
4755
4879
  "attributes",
@@ -4761,7 +4885,7 @@ const vs = /* @__PURE__ */ b(ks, [["render", Ss]]), Cs = async ({
4761
4885
  ],
4762
4886
  data() {
4763
4887
  var e;
4764
- return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: A };
4888
+ return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: x };
4765
4889
  },
4766
4890
  mounted() {
4767
4891
  this.setContent();
@@ -4798,7 +4922,7 @@ const vs = /* @__PURE__ */ b(ks, [["render", Ss]]), Cs = async ({
4798
4922
  },
4799
4923
  methods: {
4800
4924
  setContent() {
4801
- this.contentToUse || Cs({
4925
+ this.contentToUse || wi({
4802
4926
  symbol: this.symbol,
4803
4927
  builderContextValue: this.builderContext
4804
4928
  }).then((e) => {
@@ -4807,11 +4931,11 @@ const vs = /* @__PURE__ */ b(ks, [["render", Ss]]), Cs = async ({
4807
4931
  }
4808
4932
  }
4809
4933
  });
4810
- function Ts(e, t, n, o, r, s) {
4934
+ function Ii(e, t, n, o, r, i) {
4811
4935
  var l, a, u, h, c;
4812
- const i = g("ContentVariants");
4813
- return d(), p("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4814
- R(i, {
4936
+ const s = g("ContentVariants");
4937
+ return d(), p("div", S({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4938
+ $(s, {
4815
4939
  isNestedRender: !0,
4816
4940
  apiVersion: e.builderContext.apiVersion,
4817
4941
  apiKey: e.builderContext.apiKey,
@@ -4834,19 +4958,19 @@ function Ts(e, t, n, o, r, s) {
4834
4958
  }, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
4835
4959
  ], 16);
4836
4960
  }
4837
- const Is = /* @__PURE__ */ b(ws, [["render", Ts]]), Pe = {};
4838
- function Fs(e) {
4961
+ const $i = /* @__PURE__ */ b(Ti, [["render", Ii]]), xe = {};
4962
+ function Fi(e) {
4839
4963
  if (T()) {
4840
- Object.assign(Pe, e);
4964
+ Object.assign(xe, e);
4841
4965
  const t = {
4842
4966
  type: "builder.settingsChange",
4843
- data: Pe
4967
+ data: xe
4844
4968
  };
4845
4969
  parent.postMessage(t, "*");
4846
4970
  }
4847
4971
  }
4848
- const Os = async (e) => {
4849
- var o, r, s;
4972
+ const Oi = async (e) => {
4973
+ var o, r, i;
4850
4974
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
4851
4975
  ...e,
4852
4976
  apiKey: e.apiKey,
@@ -4857,52 +4981,52 @@ const Os = async (e) => {
4857
4981
  urlPath: t
4858
4982
  } : {}
4859
4983
  },
4860
- options: ot(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
4984
+ options: rt(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
4861
4985
  };
4862
4986
  return {
4863
4987
  apiKey: n.apiKey,
4864
4988
  model: n.model,
4865
- content: await ke(n)
4989
+ content: await ve(n)
4866
4990
  };
4867
4991
  };
4868
4992
  export {
4869
- Wr as A,
4870
- fe as B,
4871
- fn as C,
4872
- Nr as D,
4873
- ke as E,
4874
- yn as F,
4875
- Bs as G,
4876
- As as H,
4877
- $n as I,
4878
- Bn as S,
4879
- $ as T,
4880
- fr as V,
4881
- be as _,
4882
- un as a,
4883
- Ps as b,
4884
- U as c,
4885
- Vs as d,
4886
- he as e,
4993
+ Nr as A,
4994
+ be as B,
4995
+ bn as C,
4996
+ Lr as D,
4997
+ ve as E,
4998
+ kn as F,
4999
+ Ei as G,
5000
+ Vi as H,
5001
+ Rn as I,
5002
+ En as S,
5003
+ A as T,
5004
+ br as V,
5005
+ ge as _,
5006
+ pn as a,
5007
+ xi as b,
5008
+ D as c,
5009
+ Wi as d,
5010
+ fe as e,
4887
5011
  b as f,
4888
5012
  De as g,
4889
5013
  te as h,
4890
- xs as i,
5014
+ Ai as i,
4891
5015
  ee as j,
4892
- ce as k,
4893
- Ct as l,
4894
- Is as m,
4895
- ho as n,
5016
+ de as k,
5017
+ wt as l,
5018
+ $i as m,
5019
+ fo as n,
4896
5020
  M as o,
4897
- vs as p,
4898
- E as q,
5021
+ Si as p,
5022
+ R as q,
4899
5023
  Fr as r,
4900
- gr as s,
4901
- _r as t,
4902
- Fs as u,
4903
- ot as v,
4904
- fs as w,
4905
- Ws as x,
4906
- Ns as y,
4907
- Os as z
5024
+ yr as s,
5025
+ ei as t,
5026
+ Fi as u,
5027
+ rt as v,
5028
+ bi as w,
5029
+ Ni as x,
5030
+ Li as y,
5031
+ Oi as z
4908
5032
  };