@builder.io/sdk-vue 4.0.8 → 4.0.10

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 (88) hide show
  1. package/lib/browser/{awaiter-isRx9Yhd.js → awaiter-SGR-8Tyj.js} +1 -1
  2. package/lib/browser/{awaiter-OLNb_n6-.cjs → awaiter-_QmjZdDa.cjs} +1 -1
  3. package/lib/browser/{block-styles-gW8iE3NH.js → block-styles-9_PWytNG.js} +1 -1
  4. package/lib/browser/{block-styles-6C_KdO7n.cjs → block-styles-GhS2Neb5.cjs} +1 -1
  5. package/lib/browser/{block-wrapper-VXy583MG.cjs → block-wrapper-LRJ-a4Yv.cjs} +1 -1
  6. package/lib/browser/{block-wrapper--UA6l0DJ.js → block-wrapper-YBBdYoR2.js} +3 -3
  7. package/lib/browser/blocks/personalization-container/helpers/inlined-fns.d.ts +4 -1
  8. package/lib/browser/blocks/personalization-container/helpers.d.ts +24 -4
  9. package/lib/browser/blocks/personalization-container/personalization-container.types.d.ts +2 -2
  10. package/lib/browser/blocks/personalization-container/personalization-container.vue.d.ts +13 -2
  11. package/lib/browser/{component-ref-BSoLNe8a.cjs → component-ref-TrZpO6ax.cjs} +1 -1
  12. package/lib/browser/{component-ref-PKi5zQLG.js → component-ref-aowMl_8a.js} +3 -3
  13. package/lib/browser/components/blocks/blocks-wrapper.vue.d.ts +13 -1
  14. package/lib/browser/components/blocks/blocks.types.d.ts +1 -1
  15. package/lib/browser/components/blocks/blocks.vue.d.ts +3 -0
  16. package/lib/browser/components/content-variants/content-variants.vue.d.ts +3 -3
  17. package/lib/browser/constants/sdk-version.d.ts +1 -1
  18. package/lib/browser/{get-block-properties-MbA9feRS.cjs → get-block-properties-ZMO5aCzy.cjs} +1 -1
  19. package/lib/browser/{get-block-properties-IAHDaK7X.js → get-block-properties-cWyJs3dm.js} +1 -1
  20. package/lib/browser/helpers/no-serialize-wrapper.d.ts +1 -0
  21. package/lib/browser/helpers/user-attributes.d.ts +6 -2
  22. package/lib/{node/index-dUsR-LUC.js → browser/index-XGOQf5Zo.js} +1768 -1098
  23. package/lib/browser/index-ZOIaGZSB.cjs +334 -0
  24. package/lib/browser/index.cjs +1 -1
  25. package/lib/browser/index.mjs +1 -1
  26. package/lib/browser/{repeated-block-UdGwjbN4.js → repeated-block-Hv_GjZAU.js} +2 -2
  27. package/lib/browser/{repeated-block-lYIzWwqT.cjs → repeated-block-RF3rdPho.cjs} +1 -1
  28. package/lib/browser/style.css +1 -1
  29. package/lib/edge/{awaiter-yQhCDL0p.js → awaiter-8DxOpj9t.js} +1 -1
  30. package/lib/edge/{awaiter-q73ktXnL.cjs → awaiter-Jd_e61ZE.cjs} +1 -1
  31. package/lib/edge/{block-styles-krtvZ4wJ.cjs → block-styles-CBbRK24W.cjs} +1 -1
  32. package/lib/edge/{block-styles-cQqc9t0g.js → block-styles-alNWUQlB.js} +1 -1
  33. package/lib/{node/block-wrapper-dUYQEu6i.cjs → edge/block-wrapper-7f07MDcC.cjs} +1 -1
  34. package/lib/{node/block-wrapper-a-O0UYvU.js → edge/block-wrapper-OGrsxDK8.js} +3 -3
  35. package/lib/edge/blocks/personalization-container/helpers/inlined-fns.d.ts +4 -1
  36. package/lib/edge/blocks/personalization-container/helpers.d.ts +24 -4
  37. package/lib/edge/blocks/personalization-container/personalization-container.types.d.ts +2 -2
  38. package/lib/edge/blocks/personalization-container/personalization-container.vue.d.ts +13 -2
  39. package/lib/edge/{component-ref-EDola72k.cjs → component-ref-WcUEBxse.cjs} +1 -1
  40. package/lib/{node/component-ref-6ZTfRWNi.js → edge/component-ref-qiOVFEA2.js} +3 -3
  41. package/lib/edge/components/blocks/blocks-wrapper.vue.d.ts +13 -1
  42. package/lib/edge/components/blocks/blocks.types.d.ts +1 -1
  43. package/lib/edge/components/blocks/blocks.vue.d.ts +3 -0
  44. package/lib/edge/components/content-variants/content-variants.vue.d.ts +3 -3
  45. package/lib/edge/constants/sdk-version.d.ts +1 -1
  46. package/lib/edge/{get-block-properties-UnxPA054.js → get-block-properties-BM_LURWO.js} +1 -1
  47. package/lib/edge/{get-block-properties-fD4qNRB9.cjs → get-block-properties-fHOkPyWO.cjs} +1 -1
  48. package/lib/edge/helpers/no-serialize-wrapper.d.ts +1 -0
  49. package/lib/edge/helpers/user-attributes.d.ts +6 -2
  50. package/lib/edge/{index-Phh5QI1z.js → index-9YK4Me2G.js} +2475 -1926
  51. package/lib/edge/index-ajjjq0JL.cjs +352 -0
  52. package/lib/edge/index.cjs +1 -1
  53. package/lib/edge/index.mjs +1 -1
  54. package/lib/{node/repeated-block-WusuFFLd.js → edge/repeated-block-yuVnH3DH.js} +2 -2
  55. package/lib/{node/repeated-block-Mn3MoYF9.cjs → edge/repeated-block-z91UKOom.cjs} +1 -1
  56. package/lib/edge/style.css +1 -1
  57. package/lib/node/{awaiter-rTNOaG9i.cjs → awaiter-oYZdOTCc.cjs} +1 -1
  58. package/lib/node/{awaiter--eXt1zCI.js → awaiter-zmPuC-98.js} +1 -1
  59. package/lib/node/{block-styles-X1zBe4K-.cjs → block-styles-Y8npu4LN.cjs} +1 -1
  60. package/lib/node/{block-styles-CnYwZPG8.js → block-styles-jP9_QKN9.js} +1 -1
  61. package/lib/{edge/block-wrapper-P2ngZuRV.cjs → node/block-wrapper-jwKlwSSL.cjs} +1 -1
  62. package/lib/{edge/block-wrapper-9DbpMl_d.js → node/block-wrapper-vSVxY0Wx.js} +3 -3
  63. package/lib/node/blocks/personalization-container/helpers/inlined-fns.d.ts +4 -1
  64. package/lib/node/blocks/personalization-container/helpers.d.ts +24 -4
  65. package/lib/node/blocks/personalization-container/personalization-container.types.d.ts +2 -2
  66. package/lib/node/blocks/personalization-container/personalization-container.vue.d.ts +13 -2
  67. package/lib/{edge/component-ref-FzpAjKWx.js → node/component-ref-9vbMmjMt.js} +3 -3
  68. package/lib/node/{component-ref-J2vcSy4E.cjs → component-ref-KhG0RJfO.cjs} +1 -1
  69. package/lib/node/components/blocks/blocks-wrapper.vue.d.ts +13 -1
  70. package/lib/node/components/blocks/blocks.types.d.ts +1 -1
  71. package/lib/node/components/blocks/blocks.vue.d.ts +3 -0
  72. package/lib/node/components/content-variants/content-variants.vue.d.ts +3 -3
  73. package/lib/node/constants/sdk-version.d.ts +1 -1
  74. package/lib/node/{get-block-properties-wNo96juQ.js → get-block-properties-ThY3npVI.js} +1 -1
  75. package/lib/node/{get-block-properties-ZXWvNMFQ.cjs → get-block-properties-V4NMvZLg.cjs} +1 -1
  76. package/lib/node/helpers/no-serialize-wrapper.d.ts +1 -0
  77. package/lib/node/helpers/user-attributes.d.ts +6 -2
  78. package/lib/node/index-ear7pTzY.cjs +334 -0
  79. package/lib/{browser/index-3lnsErPD.js → node/index-plSOyo89.js} +1552 -1124
  80. package/lib/node/index.cjs +1 -1
  81. package/lib/node/index.mjs +1 -1
  82. package/lib/{edge/repeated-block-19TN96p4.cjs → node/repeated-block-8KS-FGzb.cjs} +1 -1
  83. package/lib/{edge/repeated-block-pUBaF3y8.js → node/repeated-block-YIQ1YLOA.js} +2 -2
  84. package/lib/node/style.css +1 -1
  85. package/package.json +1 -1
  86. package/lib/browser/index-4YDWt2GA.cjs +0 -169
  87. package/lib/edge/index-W-IYWIQ9.cjs +0 -187
  88. package/lib/node/index-yWUac5KF.cjs +0 -169
@@ -1,7 +1,7 @@
1
- import "./style.css";
2
- import { defineComponent as g, openBlock as c, createElementBlock as p, Fragment as $, createBlock as y, resolveDynamicComponent as z, mergeProps as C, toHandlers as x, withCtx as W, renderSlot as A, resolveComponent as k, createTextVNode as wt, toDisplayString as ne, defineAsyncComponent as j, createVNode as B, renderList as N, createCommentVNode as S, h as Ue, createElementVNode as M, normalizeStyle as U, normalizeClass as J, markRaw as Tt } from "vue";
3
- const It = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), $t = (e) => typeof e == "string" && It.has(e.toLowerCase());
4
- function V(e = {}, t, n) {
1
+ import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as _, mergeProps as w, toHandlers as O, withCtx as U, renderSlot as V, resolveComponent as k, createTextVNode as Rt, toDisplayString as le, defineAsyncComponent as X, createVNode as E, renderList as L, createCommentVNode as C, h as Ke, createElementVNode as z, normalizeStyle as j, normalizeClass as ee, markRaw as Et } from "vue";
2
+ import { T as $, g as Pt, f as At, i as R, s as Bt, r as Vt, p as Nt, a as Wt, l as N, b as qe, c as ke, d as xt, n as ze, e as K, h as P, j as Dt } from "./should-force-browser-runtime-in-node-ikxWrCvn.js";
3
+ const Ot = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ut = (e) => typeof e == "string" && Ot.has(e.toLowerCase());
4
+ function W(e = {}, t, n) {
5
5
  const o = {};
6
6
  for (const r in e) {
7
7
  if (!e[r] || n && !r.startsWith(t))
@@ -11,38 +11,38 @@ function V(e = {}, t, n) {
11
11
  }
12
12
  return o;
13
13
  }
14
- const Rt = g({
14
+ const Ft = y({
15
15
  name: "dynamic-renderer",
16
16
  props: ["TagName", "attributes", "actionAttributes"],
17
17
  data() {
18
- return { isEmptyElement: $t };
18
+ return { isEmptyElement: Ut };
19
19
  }
20
- }), b = (e, t) => {
20
+ }), v = (e, t) => {
21
21
  const n = e.__vccOpts || e;
22
22
  for (const [o, r] of t)
23
23
  n[o] = r;
24
24
  return n;
25
25
  };
26
- function Et(e, t, n, o, r, s) {
27
- return e.isEmptyElement(e.TagName) ? (c(), y(z(e.TagName), C({ key: 1 }, e.attributes, x(e.actionAttributes)), null, 16)) : (c(), p($, { key: 0 }, [
28
- typeof e.TagName == "string" ? (c(), y(z(e.TagName), C({ key: 0 }, e.attributes, x(e.actionAttributes)), {
29
- default: W(() => [
30
- A(e.$slots, "default")
26
+ function Lt(e, t, n, o, r, s) {
27
+ return e.isEmptyElement(e.TagName) ? (d(), S(_(e.TagName), w({ key: 1 }, e.attributes, O(e.actionAttributes)), null, 16)) : (d(), h(I, { key: 0 }, [
28
+ typeof e.TagName == "string" ? (d(), S(_(e.TagName), w({ key: 0 }, e.attributes, O(e.actionAttributes)), {
29
+ default: U(() => [
30
+ V(e.$slots, "default")
31
31
  ]),
32
32
  _: 3
33
- }, 16)) : (c(), y(z(e.TagName), C({ key: 1 }, e.attributes, x(e.actionAttributes)), {
34
- default: W(() => [
35
- A(e.$slots, "default")
33
+ }, 16)) : (d(), S(_(e.TagName), w({ key: 1 }, e.attributes, O(e.actionAttributes)), {
34
+ default: U(() => [
35
+ V(e.$slots, "default")
36
36
  ]),
37
37
  _: 3
38
38
  }, 16))
39
39
  ], 64));
40
40
  }
41
- const he = /* @__PURE__ */ b(Rt, [["render", Et]]), _s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41
+ const Ce = /* @__PURE__ */ v(Ft, [["render", Lt]]), bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42
42
  __proto__: null,
43
- default: he
44
- }, Symbol.toStringTag, { value: "Module" })), R = "vue", _ = () => {
45
- switch (R) {
43
+ default: Ce
44
+ }, Symbol.toStringTag, { value: "Module" })), G = () => {
45
+ switch ($) {
46
46
  case "react":
47
47
  case "reactNative":
48
48
  case "rsc":
@@ -54,9 +54,9 @@ const he = /* @__PURE__ */ b(Rt, [["render", Et]]), _s = /* @__PURE__ */ Object.
54
54
  case "angular":
55
55
  return "class";
56
56
  }
57
- }, Pt = g({
57
+ }, Ht = y({
58
58
  name: "builder-button",
59
- components: { DynamicRenderer: he },
59
+ components: { DynamicRenderer: Ce },
60
60
  props: [
61
61
  "attributes",
62
62
  "link",
@@ -65,13 +65,13 @@ const he = /* @__PURE__ */ b(Rt, [["render", Et]]), _s = /* @__PURE__ */ Object.
65
65
  "text"
66
66
  ],
67
67
  data() {
68
- return { filterAttrs: V };
68
+ return { filterAttrs: W };
69
69
  },
70
70
  methods: {
71
71
  attrs() {
72
72
  return {
73
- ...V(this.attributes, "v-on:", !1),
74
- [_()]: `${this.link ? "" : "builder-button"} ${this.attributes[_()] || ""}`,
73
+ ...W(this.attributes, "v-on:", !1),
74
+ [G()]: `${this.link ? "" : "builder-button"} ${this.attributes[G()] || ""}`,
75
75
  ...this.link ? {
76
76
  href: this.link,
77
77
  target: this.openLinkInNewTab ? "_blank" : void 0,
@@ -83,20 +83,20 @@ const he = /* @__PURE__ */ b(Rt, [["render", Et]]), _s = /* @__PURE__ */ Object.
83
83
  }
84
84
  }
85
85
  });
86
- function Bt(e, t, n, o, r, s) {
86
+ function Mt(e, t, n, o, r, s) {
87
87
  const i = k("DynamicRenderer");
88
- return c(), y(i, {
88
+ return d(), S(i, {
89
89
  attributes: e.attrs(),
90
90
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
91
91
  actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
92
92
  }, {
93
- default: W(() => [
94
- wt(ne(e.text), 1)
93
+ default: U(() => [
94
+ Rt(le(e.text), 1)
95
95
  ]),
96
96
  _: 1
97
97
  }, 8, ["attributes", "TagName", "actionAttributes"]);
98
98
  }
99
- const At = /* @__PURE__ */ b(Pt, [["render", Bt]]), xt = Symbol(), de = {
99
+ const jt = /* @__PURE__ */ v(Ht, [["render", Mt]]), Kt = Symbol(), be = {
100
100
  Builder: {
101
101
  content: null,
102
102
  context: {},
@@ -113,113 +113,14 @@ const At = /* @__PURE__ */ b(Pt, [["render", Bt]]), xt = Symbol(), de = {
113
113
  nonce: "",
114
114
  model: ""
115
115
  },
116
- key: xt
117
- }, Vt = Symbol(), De = {
116
+ key: Kt
117
+ }, qt = Symbol(), Ge = {
118
118
  Components: { registeredComponents: {} },
119
- key: Vt
120
- }, Q = "[Builder.io]: ", P = {
121
- log: (...e) => console.log(Q, ...e),
122
- error: (...e) => console.error(Q, ...e),
123
- warn: (...e) => console.warn(Q, ...e),
124
- debug: (...e) => console.debug(Q, ...e)
125
- }, Fe = (e, t, n) => {
119
+ key: qt
120
+ }, Je = (e, t, n) => {
126
121
  const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, s) => r != null ? r[s] : r, e);
127
122
  return o === void 0 || o === e ? n : o;
128
- };
129
- function w() {
130
- return typeof window < "u" && typeof document < "u";
131
- }
132
- const Nt = (e) => {
133
- const t = {};
134
- return e.forEach((n, o) => {
135
- t[o] = n;
136
- }), t;
137
- }, Le = (e) => e instanceof URLSearchParams ? Nt(e) : e, Me = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
138
- function Wt() {
139
- return w() && window.self !== window.top;
140
- }
141
- function E(e) {
142
- return Wt() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
143
- Me(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
144
- }
145
- const Ot = () => {
146
- if (w()) {
147
- const e = new URL(location.href);
148
- return e.pathname === "" && (e.pathname = "/"), e;
149
- } else
150
- return console.warn("Cannot get location for tracking in non-browser environment"), null;
151
- }, Ut = () => typeof navigator == "object" && navigator.userAgent || "", He = () => {
152
- const e = Ut(), t = {
153
- Android() {
154
- return e.match(/Android/i);
155
- },
156
- BlackBerry() {
157
- return e.match(/BlackBerry/i);
158
- },
159
- iOS() {
160
- return e.match(/iPhone|iPod/i);
161
- },
162
- Opera() {
163
- return e.match(/Opera Mini/i);
164
- },
165
- Windows() {
166
- return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
167
- },
168
- any() {
169
- return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || R === "reactNative";
170
- }
171
- }, n = e.match(/Tablet|iPad/i), o = Ot();
172
- return {
173
- urlPath: o == null ? void 0 : o.pathname,
174
- host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
175
- device: n ? "tablet" : t.any() ? "mobile" : "desktop"
176
- };
177
- }, Dt = ({
178
- builder: e,
179
- context: t,
180
- event: n,
181
- state: o
182
- }) => Object.entries({
183
- state: o,
184
- Builder: e,
185
- // legacy
186
- builder: e,
187
- context: t,
188
- event: n
189
- }), Ft = () => ({
190
- isEditing: E(),
191
- isBrowser: w(),
192
- isServer: !w(),
193
- getUserAttributes: () => He()
194
- }), Lt = (e, {
195
- isExpression: t = !0
196
- }) => /* 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;
197
- function Ke({
198
- rootState: e,
199
- localState: t,
200
- rootSetState: n
201
- }) {
202
- return new Proxy(e, {
203
- get: (o, r) => {
204
- if (t && r in t)
205
- return t[r];
206
- const s = o[r];
207
- return typeof s == "object" && s !== null ? Ke({
208
- rootState: s,
209
- localState: void 0,
210
- rootSetState: n ? (i) => {
211
- o[r] = i, n(o);
212
- } : void 0
213
- }) : s;
214
- },
215
- set: (o, r, s) => {
216
- if (t && r in t)
217
- throw new Error("Writing to local state is not allowed as it is read-only.");
218
- return o[r] = s, n == null || n(o), !0;
219
- }
220
- });
221
- }
222
- const $e = ({
123
+ }, zt = ({
223
124
  code: e,
224
125
  builder: t,
225
126
  context: n,
@@ -228,37 +129,24 @@ const $e = ({
228
129
  rootSetState: s,
229
130
  rootState: i
230
131
  }) => {
231
- const l = Dt({
132
+ const a = Pt({
232
133
  builder: t,
233
134
  context: n,
234
135
  event: o,
235
- state: Ke({
136
+ state: At({
236
137
  rootState: i,
237
138
  localState: r,
238
139
  rootSetState: s
239
140
  })
240
141
  });
241
- return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
242
- }, D = (e) => e != null;
243
- function Mt() {
244
- var e;
245
- return typeof process < "u" && D((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
246
- }
247
- const Ht = ({
248
- shouldLogWarning: e
249
- }) => {
250
- var r;
251
- if (!Mt())
252
- return !1;
253
- const t = process.arch === "arm64", n = process.version.startsWith("v20"), o = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
254
- return t && n && !o ? (e && P.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;
255
- }, Kt = (e) => (w() || Ht({
142
+ return new Function(...a.map(([l]) => l), e)(...a.map(([, l]) => l));
143
+ }, Gt = (e) => R() || Bt({
256
144
  shouldLogWarning: !0
257
- }), $e(e)), jt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, zt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, qt = (e) => {
145
+ }) ? zt(e) : Vt(e), Jt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Qt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Yt = (e) => {
258
146
  var t, n, o, r, s, i;
259
- return ((o = (n = (t = jt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((i = (s = (r = zt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : s.getPath) == null ? void 0 : i.slice(1));
147
+ return ((o = (n = (t = Jt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((i = (s = (r = Qt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : s.getPath) == null ? void 0 : i.slice(1));
260
148
  };
261
- function Y({
149
+ function te({
262
150
  code: e,
263
151
  context: t,
264
152
  localState: n,
@@ -269,17 +157,17 @@ function Y({
269
157
  }) {
270
158
  if (e.trim() === "")
271
159
  return;
272
- const l = qt(e.trim());
273
- if (l)
274
- return Fe({
160
+ const a = Yt(e.trim());
161
+ if (a)
162
+ return Je({
275
163
  ...o,
276
164
  ...n
277
- }, l);
278
- const a = {
279
- code: Lt(e, {
165
+ }, a);
166
+ const l = {
167
+ code: Nt(e, {
280
168
  isExpression: i
281
169
  }),
282
- builder: Ft(),
170
+ builder: Wt(),
283
171
  context: t,
284
172
  event: s,
285
173
  rootSetState: r,
@@ -287,28 +175,28 @@ function Y({
287
175
  localState: n
288
176
  };
289
177
  try {
290
- return Kt(a);
178
+ return Gt(l);
291
179
  } catch (u) {
292
- P.error("Failed code evaluation: " + u.message, {
180
+ N.error("Failed code evaluation: " + u.message, {
293
181
  code: e
294
182
  });
295
183
  return;
296
184
  }
297
185
  }
298
- function Jt(e, t) {
186
+ function Xt(e, t) {
299
187
  var n;
300
188
  return {
301
189
  ...(n = e.component) == null ? void 0 : n.options,
302
190
  ...e.options,
303
- ...Gt(e, t)
191
+ ..._t(e, t)
304
192
  };
305
193
  }
306
- const Gt = (e, t) => {
194
+ const _t = (e, t) => {
307
195
  var n, o;
308
196
  if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((o = e.component.options) != null && o.text) && typeof e.component.options.text == "string")
309
197
  return {
310
198
  ...e.component.options,
311
- text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, s) => Y({
199
+ text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, s) => te({
312
200
  code: s,
313
201
  context: t,
314
202
  localState: t.localState,
@@ -317,13 +205,13 @@ const Gt = (e, t) => {
317
205
  }))
318
206
  };
319
207
  };
320
- function Yt(e, ...t) {
208
+ function Zt(e, ...t) {
321
209
  const n = Object.assign({}, e);
322
210
  for (const o of t)
323
211
  delete n[o];
324
212
  return n;
325
213
  }
326
- function ee(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
214
+ function ie(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
327
215
  if (e == null || typeof e != "object") {
328
216
  t(e, (s) => {
329
217
  n !== null && o !== null && (n[o] = s);
@@ -331,59 +219,53 @@ function ee(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
331
219
  return;
332
220
  }
333
221
  r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((s, i) => {
334
- t(s, (a) => {
335
- e[i] = a;
336
- }), ee(s, t, e, i, r);
222
+ t(s, (l) => {
223
+ e[i] = l;
224
+ }), ie(s, t, e, i, r);
337
225
  }) : Object.entries(e).forEach(([s, i]) => {
338
- t(i, (a) => {
339
- e[s] = a;
340
- }), ee(i, t, e, s, r);
226
+ t(i, (l) => {
227
+ e[s] = l;
228
+ }), ie(i, t, e, s, r);
341
229
  }));
342
230
  }
343
- function je(e) {
231
+ function Qe(e) {
344
232
  return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
345
233
  }
346
- function Xt(e) {
234
+ function en(e) {
347
235
  if (!e || !Object.getOwnPropertyNames(e).length)
348
236
  return !1;
349
237
  let t = !1;
350
- return ee(e, (n) => {
351
- if (je(n)) {
238
+ return ie(e, (n) => {
239
+ if (Qe(n)) {
352
240
  t = !0;
353
241
  return;
354
242
  }
355
243
  }), t;
356
244
  }
357
- function Qt(e, t) {
358
- return !e || !Object.getOwnPropertyNames(e).length ? {} : (ee(e, (n, o) => {
359
- je(n) && o(n[t] ?? void 0);
245
+ function tn(e, t) {
246
+ return !e || !Object.getOwnPropertyNames(e).length ? {} : (ie(e, (n, o) => {
247
+ Qe(n) && o(n[t] ?? void 0);
360
248
  }), e);
361
249
  }
362
- function Zt(e, t) {
250
+ function nn(e, t) {
363
251
  var n, o;
364
- return (n = e.component) != null && n.options && Xt((o = e.component) == null ? void 0 : o.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = Qt(e.component.options, t ?? "Default")), e;
252
+ return (n = e.component) != null && n.options && en((o = e.component) == null ? void 0 : o.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = tn(e.component.options, t ?? "Default")), e;
365
253
  }
366
- const fe = (e) => JSON.parse(JSON.stringify(e)), ze = (e, t, n) => {
367
- if (Object(e) !== e)
368
- return e;
369
- const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
370
- 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;
371
- };
372
- function ue(e) {
254
+ function ge(e) {
373
255
  if (e === null || typeof e != "object")
374
256
  return e;
375
257
  if (Array.isArray(e))
376
- return e.map((n) => ue(n));
258
+ return e.map((n) => ge(n));
377
259
  if (e["@type"] === "@builder.io/sdk:Element")
378
260
  return e;
379
261
  const t = {};
380
262
  for (const n in e)
381
- n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ue(e[n]));
263
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ge(e[n]));
382
264
  return t;
383
265
  }
384
- const _t = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), en = (e) => {
385
- if (_t) {
386
- const t = fe(e);
266
+ const on = ["svelte", "vue", "angular", "qwik", "solid"].includes($), rn = (e) => {
267
+ if (on) {
268
+ const t = ke(e);
387
269
  return {
388
270
  ...t,
389
271
  properties: {
@@ -394,7 +276,7 @@ const _t = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), en = (e) =
394
276
  }
395
277
  };
396
278
  } else {
397
- const t = ue(Yt(e, "children", "meta"));
279
+ const t = ge(Zt(e, "children", "meta"));
398
280
  return {
399
281
  ...t,
400
282
  properties: {
@@ -407,7 +289,7 @@ const _t = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), en = (e) =
407
289
  meta: e.meta
408
290
  };
409
291
  }
410
- }, tn = ({
292
+ }, sn = ({
411
293
  block: e,
412
294
  context: t,
413
295
  localState: n,
@@ -416,28 +298,28 @@ const _t = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), en = (e) =
416
298
  }) => {
417
299
  if (!e.bindings)
418
300
  return e;
419
- const s = en(e);
301
+ const s = rn(e);
420
302
  for (const i in e.bindings) {
421
- const l = e.bindings[i], a = Y({
422
- code: l,
303
+ const a = e.bindings[i], l = te({
304
+ code: a,
423
305
  localState: n,
424
306
  rootState: o,
425
307
  rootSetState: r,
426
308
  context: t
427
309
  });
428
- ze(s, i, a);
310
+ qe(s, i, l);
429
311
  }
430
312
  return s;
431
313
  };
432
- function nn({
314
+ function an({
433
315
  block: e,
434
316
  context: t,
435
317
  localState: n,
436
318
  rootState: o,
437
319
  rootSetState: r
438
320
  }) {
439
- let s = Zt(e, o.locale);
440
- return s = s, tn({
321
+ let s = nn(e, o.locale);
322
+ return s = s, sn({
441
323
  block: s,
442
324
  localState: n,
443
325
  rootState: o,
@@ -445,25 +327,25 @@ function nn({
445
327
  context: t
446
328
  });
447
329
  }
448
- function qe(e) {
449
- const t = e || (w() ? window.location.search : void 0);
450
- return t ? Me(t).indexOf("builder.preview=") !== -1 : !1;
330
+ function Te(e) {
331
+ const t = e || (R() ? window.location.search : void 0);
332
+ return t ? xt(t).indexOf("builder.preview=") !== -1 : !1;
451
333
  }
452
- const on = (e) => ({
334
+ const ln = (e) => ({
453
335
  type: "builder.registerComponent",
454
- data: te(e)
455
- }), rn = (e) => {
336
+ data: se(e)
337
+ }), cn = (e) => {
456
338
  const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
457
339
  return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
458
340
  };
459
- function te(e) {
460
- return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? rn(n) : n));
341
+ function se(e) {
342
+ return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? cn(n) : n));
461
343
  }
462
- const Re = {};
463
- function sn(e, t) {
464
- e === "plugin" && (t = te(t));
465
- let n = Re[e];
466
- if (n || (n = Re[e] = []), n.push(t), w()) {
344
+ const Ne = {};
345
+ function dn(e, t) {
346
+ e === "plugin" && (t = se(t));
347
+ let n = Ne[e];
348
+ if (n || (n = Ne[e] = []), n.push(t), R()) {
467
349
  const o = {
468
350
  type: "builder.register",
469
351
  data: {
@@ -478,42 +360,42 @@ function sn(e, t) {
478
360
  }
479
361
  }
480
362
  }
481
- const Ee = {};
482
- function ei(e) {
483
- if (w()) {
484
- Object.assign(Ee, e);
363
+ const We = {};
364
+ function gs(e) {
365
+ if (R()) {
366
+ Object.assign(We, e);
485
367
  const t = {
486
368
  type: "builder.settingsChange",
487
- data: Ee
369
+ data: We
488
370
  };
489
371
  parent.postMessage(t, "*");
490
372
  }
491
373
  }
492
- const Pe = "builder.", an = "options.", Je = (e) => {
374
+ const xe = "builder.", un = "options.", Ye = (e) => {
493
375
  if (!e)
494
376
  return {};
495
- const t = Le(e), n = {};
377
+ const t = ze(e), n = {};
496
378
  return Object.keys(t).forEach((o) => {
497
- if (o.startsWith(Pe)) {
498
- const r = o.replace(Pe, "").replace(an, "");
379
+ if (o.startsWith(xe)) {
380
+ const r = o.replace(xe, "").replace(un, "");
499
381
  n[r] = t[o];
500
382
  }
501
383
  }), n;
502
- }, ln = () => {
503
- if (!w())
384
+ }, pn = () => {
385
+ if (!R())
504
386
  return {};
505
387
  const e = new URLSearchParams(window.location.search);
506
- return Je(e);
507
- }, Ge = "4.0.8", Ye = () => ({
508
- "X-Builder-SDK": R,
388
+ return Ye(e);
389
+ }, Xe = "4.0.10", _e = () => ({
390
+ "X-Builder-SDK": $,
509
391
  "X-Builder-SDK-GEN": "2",
510
- "X-Builder-SDK-Version": Ge
511
- }), cn = (e) => {
392
+ "X-Builder-SDK-Version": Xe
393
+ }), mn = (e) => {
512
394
  if (e === "localhost" || e === "127.0.0.1")
513
395
  return e;
514
396
  const t = e.split(".");
515
397
  return t.length > 2 ? t.slice(1).join(".") : e;
516
- }, oe = ({
398
+ }, ce = ({
517
399
  name: e,
518
400
  canTrack: t
519
401
  }) => {
@@ -521,17 +403,17 @@ const Pe = "builder.", an = "options.", Je = (e) => {
521
403
  try {
522
404
  return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
523
405
  } catch (o) {
524
- P.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
406
+ N.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
525
407
  return;
526
408
  }
527
- }, Xe = async (e) => oe(e), dn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(D).join("; "), un = [["secure", ""], ["SameSite", "None"]], pn = ({
409
+ }, Ze = async (e) => ce(e), hn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(K).join("; "), fn = [["secure", ""], ["SameSite", "None"]], bn = ({
528
410
  name: e,
529
411
  value: t,
530
412
  expires: n
531
413
  }) => {
532
- const r = (w() ? location.protocol === "https:" : !0) ? un : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", cn(window.location.hostname)], ...r];
533
- return dn(i);
534
- }, ge = async ({
414
+ const r = (R() ? location.protocol === "https:" : !0) ? fn : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", mn(window.location.hostname)], ...r];
415
+ return hn(i);
416
+ }, Ie = async ({
535
417
  name: e,
536
418
  value: t,
537
419
  expires: n,
@@ -540,103 +422,103 @@ const Pe = "builder.", an = "options.", Je = (e) => {
540
422
  try {
541
423
  if (!o)
542
424
  return;
543
- const r = pn({
425
+ const r = bn({
544
426
  name: e,
545
427
  value: t,
546
428
  expires: n
547
429
  });
548
430
  document.cookie = r;
549
431
  } catch (r) {
550
- P.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
432
+ N.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
551
433
  }
552
434
  };
553
- function mn() {
435
+ function gn() {
554
436
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
555
437
  const t = Math.random() * 16 | 0;
556
438
  return (e == "x" ? t : t & 3 | 8).toString(16);
557
439
  });
558
440
  }
559
- function Qe() {
560
- return mn().replace(/-/g, "");
441
+ function et() {
442
+ return gn().replace(/-/g, "");
561
443
  }
562
- const Ze = "builderSessionId", hn = async ({
444
+ const tt = "builderSessionId", yn = async ({
563
445
  canTrack: e
564
446
  }) => {
565
447
  if (!e)
566
448
  return;
567
- const t = await Xe({
568
- name: Ze,
449
+ const t = await Ze({
450
+ name: tt,
569
451
  canTrack: e
570
452
  });
571
- if (D(t))
453
+ if (K(t))
572
454
  return t;
573
455
  {
574
- const n = fn();
575
- return gn({
456
+ const n = vn();
457
+ return Sn({
576
458
  id: n,
577
459
  canTrack: e
578
460
  }), n;
579
461
  }
580
- }, fn = () => Qe(), gn = ({
462
+ }, vn = () => et(), Sn = ({
581
463
  id: e,
582
464
  canTrack: t
583
- }) => ge({
584
- name: Ze,
465
+ }) => Ie({
466
+ name: tt,
585
467
  value: e,
586
468
  canTrack: t
587
- }), _e = () => w() && typeof localStorage < "u" ? localStorage : void 0, bn = ({
469
+ }), nt = () => R() && typeof localStorage < "u" ? localStorage : void 0, kn = ({
588
470
  key: e,
589
471
  canTrack: t
590
472
  }) => {
591
473
  var n;
592
474
  try {
593
- return t ? (n = _e()) == null ? void 0 : n.getItem(e) : void 0;
475
+ return t ? (n = nt()) == null ? void 0 : n.getItem(e) : void 0;
594
476
  } catch (o) {
595
477
  console.debug("[LocalStorage] GET error: ", o);
596
478
  return;
597
479
  }
598
- }, yn = ({
480
+ }, Cn = ({
599
481
  key: e,
600
482
  canTrack: t,
601
483
  value: n
602
484
  }) => {
603
485
  var o;
604
486
  try {
605
- t && ((o = _e()) == null || o.setItem(e, n));
487
+ t && ((o = nt()) == null || o.setItem(e, n));
606
488
  } catch (r) {
607
489
  console.debug("[LocalStorage] SET error: ", r);
608
490
  }
609
- }, et = "builderVisitorId", kn = ({
491
+ }, ot = "builderVisitorId", Tn = ({
610
492
  canTrack: e
611
493
  }) => {
612
494
  if (!e)
613
495
  return;
614
- const t = bn({
615
- key: et,
496
+ const t = kn({
497
+ key: ot,
616
498
  canTrack: e
617
499
  });
618
- if (D(t))
500
+ if (K(t))
619
501
  return t;
620
502
  {
621
- const n = vn();
622
- return Sn({
503
+ const n = In();
504
+ return wn({
623
505
  id: n,
624
506
  canTrack: e
625
507
  }), n;
626
508
  }
627
- }, vn = () => Qe(), Sn = ({
509
+ }, In = () => et(), wn = ({
628
510
  id: e,
629
511
  canTrack: t
630
- }) => yn({
631
- key: et,
512
+ }) => Cn({
513
+ key: ot,
632
514
  value: e,
633
515
  canTrack: t
634
516
  });
635
- function be(e) {
517
+ function we(e) {
636
518
  var t;
637
- typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && P.log(e);
519
+ typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && N.log(e);
638
520
  }
639
- const Cn = async ({
521
+ const $n = async ({
640
522
  canTrack: e
641
523
  }) => {
642
524
  if (!e)
@@ -644,16 +526,16 @@ const Cn = async ({
644
526
  visitorId: void 0,
645
527
  sessionId: void 0
646
528
  };
647
- const t = await hn({
529
+ const t = await yn({
648
530
  canTrack: e
649
- }), n = kn({
531
+ }), n = Tn({
650
532
  canTrack: e
651
533
  });
652
534
  return {
653
535
  sessionId: t,
654
536
  visitorId: n
655
537
  };
656
- }, wn = async ({
538
+ }, Rn = async ({
657
539
  type: e,
658
540
  canTrack: t,
659
541
  apiKey: n,
@@ -667,50 +549,50 @@ const Cn = async ({
667
549
  url: location.href,
668
550
  ...o
669
551
  },
670
- ...await Cn({
552
+ ...await $n({
671
553
  canTrack: t
672
554
  }),
673
- userAttributes: He(),
555
+ userAttributes: Dt(),
674
556
  ownerId: n
675
557
  }
676
558
  });
677
- async function pe({
559
+ async function ye({
678
560
  apiHost: e,
679
561
  ...t
680
562
  }) {
681
563
  if (!t.apiKey) {
682
- P.error("Missing API key for track call. Please provide your API key.");
564
+ N.error("Missing API key for track call. Please provide your API key.");
683
565
  return;
684
566
  }
685
- if (!t.canTrack || E() || !(w() || R === "reactNative"))
567
+ if (!t.canTrack || P() || !(R() || $ === "reactNative"))
686
568
  return;
687
569
  const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
688
- return be(o), fetch(o, {
570
+ return we(o), fetch(o, {
689
571
  method: "POST",
690
572
  body: JSON.stringify({
691
- events: [await wn(t)]
573
+ events: [await Rn(t)]
692
574
  }),
693
575
  headers: {
694
576
  "content-type": "application/json",
695
- ...Ye()
577
+ ..._e()
696
578
  },
697
579
  mode: "cors"
698
580
  }).catch((r) => {
699
581
  console.error("Failed to track: ", r);
700
582
  });
701
583
  }
702
- const ti = (e) => pe({
584
+ const ys = (e) => ye({
703
585
  ...e,
704
586
  canTrack: !0
705
- }), Tn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
706
- function tt(e, t) {
587
+ }), En = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
588
+ function rt(e, t) {
707
589
  if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
708
590
  return !1;
709
591
  const n = new URL(t.origin), o = n.hostname;
710
- return (e || Tn).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
592
+ return (e || En).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
711
593
  }
712
- const In = () => {
713
- sn("insertMenu", {
594
+ const Pn = () => {
595
+ dn("insertMenu", {
714
596
  name: "_default",
715
597
  default: !0,
716
598
  items: [{
@@ -732,14 +614,14 @@ const In = () => {
732
614
  }]
733
615
  });
734
616
  };
735
- let Be = !1;
736
- const nt = (e) => {
617
+ let De = !1;
618
+ const it = (e) => {
737
619
  var t, n;
738
- Be || (Be = !0, w() && ((t = window.parent) == null || t.postMessage({
620
+ De || (De = !0, R() && ((t = window.parent) == null || t.postMessage({
739
621
  type: "builder.sdkInfo",
740
622
  data: {
741
- target: R,
742
- version: Ge,
623
+ target: $,
624
+ version: Xe,
743
625
  supportsPatchUpdates: !1,
744
626
  // Supports builder-model="..." attribute which is needed to
745
627
  // scope our '+ add block' button styling
@@ -757,7 +639,7 @@ const nt = (e) => {
757
639
  }
758
640
  }, "*"), window.addEventListener("message", (o) => {
759
641
  var s, i;
760
- if (!tt(e.trustedHosts, o))
642
+ if (!rt(e.trustedHosts, o))
761
643
  return;
762
644
  const {
763
645
  data: r
@@ -765,32 +647,32 @@ const nt = (e) => {
765
647
  if (r != null && r.type)
766
648
  switch (r.type) {
767
649
  case "builder.evaluate": {
768
- const l = r.data.text, a = r.data.arguments || [], u = r.data.id, h = new Function(l);
769
- let m, d = null;
650
+ const a = r.data.text, l = r.data.arguments || [], u = r.data.id, p = new Function(a);
651
+ let f, c = null;
770
652
  try {
771
- m = h.apply(null, a);
772
- } catch (f) {
773
- d = f;
653
+ f = p.apply(null, l);
654
+ } catch (m) {
655
+ c = m;
774
656
  }
775
- d ? (s = window.parent) == null || s.postMessage({
657
+ c ? (s = window.parent) == null || s.postMessage({
776
658
  type: "builder.evaluateError",
777
659
  data: {
778
660
  id: u,
779
- error: d.message
661
+ error: c.message
780
662
  }
781
- }, "*") : m && typeof m.then == "function" ? m.then((f) => {
782
- var v;
783
- (v = window.parent) == null || v.postMessage({
663
+ }, "*") : f && typeof f.then == "function" ? f.then((m) => {
664
+ var b;
665
+ (b = window.parent) == null || b.postMessage({
784
666
  type: "builder.evaluateResult",
785
667
  data: {
786
668
  id: u,
787
- result: f
669
+ result: m
788
670
  }
789
671
  }, "*");
790
672
  }).catch(console.error) : (i = window.parent) == null || i.postMessage({
791
673
  type: "builder.evaluateResult",
792
674
  data: {
793
- result: m,
675
+ result: f,
794
676
  id: u
795
677
  }
796
678
  }, "*");
@@ -798,12 +680,12 @@ const nt = (e) => {
798
680
  }
799
681
  }
800
682
  })));
801
- }, ot = ({
683
+ }, st = ({
802
684
  model: e,
803
685
  trustedHosts: t,
804
686
  callbacks: n
805
687
  }) => (o) => {
806
- if (!tt(t, o))
688
+ if (!rt(t, o))
807
689
  return;
808
690
  const {
809
691
  data: r
@@ -819,30 +701,30 @@ const nt = (e) => {
819
701
  break;
820
702
  }
821
703
  case "builder.resetState": {
822
- const s = r.data, i = s.model, l = s == null ? void 0 : s.state;
823
- i === e && l && n.stateUpdate(l);
704
+ const s = r.data, i = s.model, a = s == null ? void 0 : s.state;
705
+ i === e && a && n.stateUpdate(a);
824
706
  break;
825
707
  }
826
708
  case "builder.contentUpdate": {
827
- const s = r.data, i = s.key || s.alias || s.entry || s.modelName, l = s.data;
828
- i === e && n.contentUpdate(l);
709
+ const s = r.data, i = s.key || s.alias || s.entry || s.modelName, a = s.data;
710
+ i === e && n.contentUpdate(a);
829
711
  break;
830
712
  }
831
713
  }
832
- }, ni = ({
714
+ }, vs = ({
833
715
  model: e,
834
716
  apiKey: t,
835
717
  callback: n,
836
718
  trustedHosts: o
837
719
  }) => {
838
- if (!w)
839
- return P.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
720
+ if (!R)
721
+ return N.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
840
722
  };
841
- nt({
723
+ it({
842
724
  modelName: e,
843
725
  apiKey: t
844
726
  });
845
- const r = ot({
727
+ const r = st({
846
728
  callbacks: {
847
729
  contentUpdate: n,
848
730
  animation: () => {
@@ -858,24 +740,24 @@ const nt = (e) => {
858
740
  return window.addEventListener("message", r), () => {
859
741
  window.removeEventListener("message", r);
860
742
  };
861
- }, $n = "builder.tests", ye = (e) => `${$n}.${e}`, Rn = ({
743
+ }, An = "builder.tests", $e = (e) => `${An}.${e}`, Bn = ({
862
744
  contentId: e
863
- }) => Xe({
864
- name: ye(e),
745
+ }) => Ze({
746
+ name: $e(e),
865
747
  canTrack: !0
866
- }), En = ({
748
+ }), Vn = ({
867
749
  contentId: e
868
- }) => oe({
869
- name: ye(e),
750
+ }) => ce({
751
+ name: $e(e),
870
752
  canTrack: !0
871
- }), Pn = ({
753
+ }), Nn = ({
872
754
  contentId: e,
873
755
  value: t
874
- }) => ge({
875
- name: ye(e),
756
+ }) => Ie({
757
+ name: $e(e),
876
758
  value: t,
877
759
  canTrack: !0
878
- }), rt = (e) => D(e.id) && D(e.variations) && Object.keys(e.variations).length > 0, Bn = ({
760
+ }), at = (e) => K(e.id) && K(e.variations) && Object.keys(e.variations).length > 0, Wn = ({
879
761
  id: e,
880
762
  variations: t
881
763
  }) => {
@@ -888,15 +770,15 @@ const nt = (e) => {
888
770
  return s;
889
771
  }
890
772
  return e;
891
- }, st = (e) => {
892
- const t = Bn(e);
893
- return Pn({
773
+ }, lt = (e) => {
774
+ const t = Wn(e);
775
+ return Nn({
894
776
  contentId: e.id,
895
777
  value: t
896
778
  }).catch((n) => {
897
- P.error("could not store A/B test variation: ", n);
779
+ N.error("could not store A/B test variation: ", n);
898
780
  }), t;
899
- }, it = ({
781
+ }, ct = ({
900
782
  item: e,
901
783
  testGroupId: t
902
784
  }) => {
@@ -910,7 +792,7 @@ const nt = (e) => {
910
792
  testVariationId: n.id,
911
793
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
912
794
  };
913
- }, An = ({
795
+ }, xn = ({
914
796
  item: e,
915
797
  canTrack: t
916
798
  }) => {
@@ -918,14 +800,14 @@ const nt = (e) => {
918
800
  return e;
919
801
  if (!e)
920
802
  return;
921
- if (!rt(e))
803
+ if (!at(e))
922
804
  return e;
923
- const n = En({
805
+ const n = Vn({
924
806
  contentId: e.id
925
- }) || st({
807
+ }) || lt({
926
808
  variations: e.variations,
927
809
  id: e.id
928
- }), o = it({
810
+ }), o = ct({
929
811
  item: e,
930
812
  testGroupId: n
931
813
  });
@@ -933,18 +815,18 @@ const nt = (e) => {
933
815
  ...e,
934
816
  ...o
935
817
  };
936
- }, xn = async ({
818
+ }, Dn = async ({
937
819
  item: e,
938
820
  canTrack: t
939
821
  }) => {
940
- if (!t || !rt(e))
822
+ if (!t || !at(e))
941
823
  return e;
942
- const o = await Rn({
824
+ const o = await Bn({
943
825
  contentId: e.id
944
- }) || st({
826
+ }) || lt({
945
827
  variations: e.variations,
946
828
  id: e.id
947
- }), r = it({
829
+ }), r = ct({
948
830
  item: e,
949
831
  testGroupId: o
950
832
  });
@@ -952,32 +834,35 @@ const nt = (e) => {
952
834
  ...e,
953
835
  ...r
954
836
  };
955
- }, Ae = "builder.userAttributes";
956
- function Vn() {
837
+ };
838
+ const Oe = "builder.userAttributes";
839
+ function Ue() {
957
840
  let e = !0;
958
841
  const t = /* @__PURE__ */ new Set();
959
842
  return {
960
843
  setUserAttributes(n) {
961
- if (!w())
844
+ if (!R())
962
845
  return;
963
846
  const o = {
964
847
  ...this.getUserAttributes(),
965
848
  ...n
966
849
  };
967
- ge({
968
- name: Ae,
850
+ Ie({
851
+ name: Oe,
969
852
  value: JSON.stringify(o),
970
853
  canTrack: e
971
854
  }), t.forEach((r) => r(o));
972
855
  },
973
856
  getUserAttributes() {
974
- return w() ? JSON.parse(oe({
975
- name: Ae,
857
+ return R() ? JSON.parse(ce({
858
+ name: Oe,
976
859
  canTrack: e
977
860
  }) || "{}") : {};
978
861
  },
979
- subscribeOnUserAttributesChange(n) {
980
- return t.add(n), () => {
862
+ subscribeOnUserAttributesChange(n, {
863
+ fireImmediately: o
864
+ } = {}) {
865
+ return t.add(n), o && n(this.getUserAttributes()), function() {
981
866
  t.delete(n);
982
867
  };
983
868
  },
@@ -986,43 +871,45 @@ function Vn() {
986
871
  }
987
872
  };
988
873
  }
989
- const at = Vn(), oi = (e) => {
990
- at.setUserAttributes(e);
991
- }, G = (e) => {
992
- const t = D(e) ? e : !0;
993
- return at.setCanTrack(t), t;
874
+ let ve;
875
+ R() && $ === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Ue()), ve = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : ve = Ue();
876
+ const ae = ve, Ss = (e) => {
877
+ ae.setUserAttributes(e);
878
+ }, J = (e) => {
879
+ const t = K(e) ? e : !0;
880
+ return ae.setCanTrack(t), t;
994
881
  };
995
- function Nn() {
882
+ function On() {
996
883
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
997
884
  }
998
- function Wn() {
999
- const e = Nn().fetch;
885
+ function Un() {
886
+ const e = On().fetch;
1000
887
  if (typeof e > "u")
1001
888
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
1002
889
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
1003
890
  return e;
1004
891
  }
1005
- const On = Wn();
1006
- function me(e, t = null, n = ".") {
892
+ const Fn = Un();
893
+ function Se(e, t = null, n = ".") {
1007
894
  return Object.keys(e).reduce((o, r) => {
1008
895
  const s = e[r], i = [t, r].filter(Boolean).join(n);
1009
896
  return [typeof s == "object", s !== null, !(Array.isArray(s) && s.length === 0)].every(Boolean) ? {
1010
897
  ...o,
1011
- ...me(s, i, n)
898
+ ...Se(s, i, n)
1012
899
  } : {
1013
900
  ...o,
1014
901
  [i]: s
1015
902
  };
1016
903
  }, {});
1017
904
  }
1018
- function lt(e, t, n = {}) {
905
+ function dt(e, t, n = {}) {
1019
906
  for (const o in e) {
1020
907
  const r = e[o], s = t ? t + "." + o : o;
1021
- r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((i) => i.startsWith("$")) ? lt(r, s, n) : n[s] = r;
908
+ r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((i) => i.startsWith("$")) ? dt(r, s, n) : n[s] = r;
1022
909
  }
1023
910
  return n;
1024
911
  }
1025
- function Un(e) {
912
+ function Ln(e) {
1026
913
  const t = {};
1027
914
  for (const n in e) {
1028
915
  const o = n.split(".");
@@ -1034,7 +921,7 @@ function Un(e) {
1034
921
  }
1035
922
  return t;
1036
923
  }
1037
- const Dn = "v3", xe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, ke = (e) => {
924
+ const Hn = "v3", Fe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Re = (e) => {
1038
925
  const {
1039
926
  limit: t = 30,
1040
927
  userAttributes: n,
@@ -1042,114 +929,114 @@ const Dn = "v3", xe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, ke = (
1042
929
  model: r,
1043
930
  apiKey: s,
1044
931
  enrich: i,
1045
- locale: l,
1046
- apiVersion: a = Dn,
932
+ locale: a,
933
+ apiVersion: l = Hn,
1047
934
  fields: u,
1048
- omit: h,
1049
- offset: m,
1050
- cacheSeconds: d,
1051
- staleCacheSeconds: f,
1052
- sort: v,
1053
- includeUnpublished: T,
1054
- apiHost: F
935
+ omit: p,
936
+ offset: f,
937
+ cacheSeconds: c,
938
+ staleCacheSeconds: m,
939
+ sort: b,
940
+ includeUnpublished: g,
941
+ apiHost: A
1055
942
  } = e;
1056
943
  if (!s)
1057
944
  throw new Error("Missing API key");
1058
- if (!["v3"].includes(a))
1059
- throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
1060
- const St = t !== 1, Ct = F || "https://cdn.builder.io", I = new URL(`${Ct}/api/${a}/content/${r}`);
1061
- I.searchParams.set("apiKey", s), I.searchParams.set("limit", String(t)), I.searchParams.set("noTraverse", String(St)), I.searchParams.set("includeRefs", String(!0));
1062
- const re = l || (n == null ? void 0 : n.locale);
1063
- let L = n || {};
1064
- if (re && (I.searchParams.set("locale", re), L = {
1065
- locale: re,
1066
- ...L
1067
- }), i && I.searchParams.set("enrich", String(i)), I.searchParams.set("omit", h ?? "meta.componentsUsed"), u && I.searchParams.set("fields", u), Number.isFinite(m) && m > -1 && I.searchParams.set("offset", String(Math.floor(m))), typeof T == "boolean" && I.searchParams.set("includeUnpublished", String(T)), d && xe(d) && I.searchParams.set("cacheSeconds", String(d)), f && xe(f) && I.searchParams.set("staleCacheSeconds", String(f)), v) {
1068
- const O = me({
1069
- sort: v
945
+ if (!["v3"].includes(l))
946
+ throw new Error(`Invalid apiVersion: expected 'v3', received '${l}'`);
947
+ const F = t !== 1, B = A || "https://cdn.builder.io", T = new URL(`${B}/api/${l}/content/${r}`);
948
+ T.searchParams.set("apiKey", s), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(F)), T.searchParams.set("includeRefs", String(!0));
949
+ const x = a || (n == null ? void 0 : n.locale);
950
+ let H = n || {};
951
+ if (x && (T.searchParams.set("locale", x), H = {
952
+ locale: x,
953
+ ...H
954
+ }), i && T.searchParams.set("enrich", String(i)), T.searchParams.set("omit", p ?? "meta.componentsUsed"), u && T.searchParams.set("fields", u), Number.isFinite(f) && f > -1 && T.searchParams.set("offset", String(Math.floor(f))), typeof g == "boolean" && T.searchParams.set("includeUnpublished", String(g)), c && Fe(c) && T.searchParams.set("cacheSeconds", String(c)), m && Fe(m) && T.searchParams.set("staleCacheSeconds", String(m)), b) {
955
+ const D = Se({
956
+ sort: b
1070
957
  });
1071
- for (const K in O)
1072
- I.searchParams.set(K, JSON.stringify(O[K]));
958
+ for (const M in D)
959
+ T.searchParams.set(M, JSON.stringify(D[M]));
1073
960
  }
1074
- const Te = {
1075
- ...ln(),
1076
- ...Le(e.options || {})
961
+ const Q = {
962
+ ...pn(),
963
+ ...ze(e.options || {})
1077
964
  };
1078
- L = {
1079
- ...L,
1080
- ...Ln(Te)
965
+ H = {
966
+ ...H,
967
+ ...jn(Q)
1081
968
  };
1082
- const Ie = me(Te);
1083
- for (const O in Ie)
1084
- I.searchParams.set(O, String(Ie[O]));
1085
- if (Object.keys(L).length > 0 && I.searchParams.set("userAttributes", JSON.stringify(L)), o) {
1086
- const O = lt({
969
+ const Y = Se(Q);
970
+ for (const D in Y)
971
+ T.searchParams.set(D, String(Y[D]));
972
+ if (Object.keys(H).length > 0 && T.searchParams.set("userAttributes", JSON.stringify(H)), o) {
973
+ const D = dt({
1087
974
  query: o
1088
975
  });
1089
- for (const K in O)
1090
- I.searchParams.set(K, JSON.stringify(O[K]));
976
+ for (const M in D)
977
+ T.searchParams.set(M, JSON.stringify(D[M]));
1091
978
  }
1092
- return I;
1093
- }, Fn = (e) => {
979
+ return T;
980
+ }, Mn = (e) => {
1094
981
  const t = {};
1095
982
  for (const n in e)
1096
983
  n.startsWith("userAttributes.") && (t[n] = e[n], delete e[n]);
1097
984
  return t;
1098
- }, Ln = (e) => {
1099
- if (w() && e.preview === "BUILDER_STUDIO") {
985
+ }, jn = (e) => {
986
+ if (R() && e.preview === "BUILDER_STUDIO") {
1100
987
  e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
1101
- const t = Fn(e), {
988
+ const t = Mn(e), {
1102
989
  userAttributes: n
1103
- } = Un(t);
990
+ } = Ln(t);
1104
991
  return n;
1105
992
  }
1106
993
  return {};
1107
- }, Mn = (e) => "results" in e;
1108
- async function ve(e) {
1109
- const t = await jn({
994
+ }, Kn = (e) => "results" in e;
995
+ async function Ee(e) {
996
+ const t = await Gn({
1110
997
  ...e,
1111
998
  limit: 1
1112
999
  });
1113
1000
  return t && t[0] || null;
1114
1001
  }
1115
- const Hn = async (e) => {
1002
+ const qn = async (e) => {
1116
1003
  var i;
1117
- const t = ke(e), n = e.fetch ?? On, o = {
1004
+ const t = Re(e), n = e.fetch ?? Fn, o = {
1118
1005
  ...e.fetchOptions,
1119
1006
  headers: {
1120
1007
  ...(i = e.fetchOptions) == null ? void 0 : i.headers,
1121
- ...Ye()
1008
+ ..._e()
1122
1009
  }
1123
1010
  };
1124
1011
  return await (await n(t.href, o)).json();
1125
- }, Kn = async (e, t, n = ke(e)) => {
1126
- const o = G(e.canTrack);
1127
- if (n.search.includes("preview="), !o || !(w() || R === "reactNative"))
1012
+ }, zn = async (e, t, n = Re(e)) => {
1013
+ const o = J(e.canTrack);
1014
+ if (n.search.includes("preview="), !o || !(R() || $ === "reactNative"))
1128
1015
  return t.results;
1129
1016
  try {
1130
1017
  const r = [];
1131
1018
  for (const s of t.results)
1132
- r.push(await xn({
1019
+ r.push(await Dn({
1133
1020
  item: s,
1134
1021
  canTrack: o
1135
1022
  }));
1136
1023
  t.results = r;
1137
1024
  } catch (r) {
1138
- P.error("Could not process A/B tests. ", r);
1025
+ N.error("Could not process A/B tests. ", r);
1139
1026
  }
1140
1027
  return t.results;
1141
1028
  };
1142
- async function jn(e) {
1143
- const t = ke(e), n = await Hn(e);
1144
- if (!Mn(n))
1145
- throw P.error("Error fetching data. ", {
1029
+ async function Gn(e) {
1030
+ const t = Re(e), n = await qn(e);
1031
+ if (!Kn(n))
1032
+ throw N.error("Error fetching data. ", {
1146
1033
  url: t,
1147
1034
  content: n,
1148
1035
  options: e
1149
1036
  }), n;
1150
- return Kn(e, n);
1037
+ return zn(e, n);
1151
1038
  }
1152
- const ri = async (e) => {
1039
+ const ks = async (e) => {
1153
1040
  var o, r, s;
1154
1041
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
1155
1042
  ...e,
@@ -1161,27 +1048,27 @@ const ri = async (e) => {
1161
1048
  urlPath: t
1162
1049
  } : {}
1163
1050
  },
1164
- options: Je(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
1051
+ options: Ye(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
1165
1052
  };
1166
1053
  return {
1167
1054
  apiKey: n.apiKey,
1168
1055
  model: n.model,
1169
- content: await ve(n)
1056
+ content: await Ee(n)
1170
1057
  };
1171
- }, Se = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
1172
- function zn(e, t, n = {}) {
1173
- let o, r, s, i = null, l = 0;
1174
- const a = function() {
1175
- l = n.leading === !1 ? 0 : Date.now(), i = null, s = e.apply(o, r), i || (o = r = null);
1058
+ }, Pe = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
1059
+ function Jn(e, t, n = {}) {
1060
+ let o, r, s, i = null, a = 0;
1061
+ const l = function() {
1062
+ a = n.leading === !1 ? 0 : Date.now(), i = null, s = e.apply(o, r), i || (o = r = null);
1176
1063
  };
1177
1064
  return function() {
1178
1065
  const u = Date.now();
1179
- !l && n.leading === !1 && (l = u);
1180
- const h = t - (u - l);
1181
- 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;
1066
+ !a && n.leading === !1 && (a = u);
1067
+ const p = t - (u - a);
1068
+ return o = this, r = arguments, p <= 0 || p > t ? (i && (clearTimeout(i), i = null), a = u, s = e.apply(o, r), i || (o = r = null)) : !i && n.trailing !== !1 && (i = setTimeout(l, p)), s;
1182
1069
  };
1183
1070
  }
1184
- function q(e, ...t) {
1071
+ function Z(e, ...t) {
1185
1072
  const n = Object(e);
1186
1073
  for (let o = 1; o < arguments.length; o++) {
1187
1074
  const r = arguments[o];
@@ -1191,118 +1078,118 @@ function q(e, ...t) {
1191
1078
  }
1192
1079
  return n;
1193
1080
  }
1194
- function qn(e) {
1081
+ function Qn(e) {
1195
1082
  for (const t of e)
1196
1083
  switch (t.trigger) {
1197
1084
  case "pageLoad":
1198
- ut(t);
1085
+ mt(t);
1199
1086
  break;
1200
1087
  case "scrollInView":
1201
- Gn(t);
1088
+ Xn(t);
1202
1089
  break;
1203
1090
  }
1204
1091
  }
1205
- function ct(e) {
1092
+ function ut(e) {
1206
1093
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
1207
1094
  }
1208
- function dt(e, t) {
1209
- const n = Jn(e), o = getComputedStyle(t), r = e.steps[0].styles, s = e.steps[e.steps.length - 1].styles, i = [r, s];
1210
- for (const l of i)
1211
- for (const a of n)
1212
- a in l || (l[a] = o[a]);
1095
+ function pt(e, t) {
1096
+ const n = Yn(e), o = getComputedStyle(t), r = e.steps[0].styles, s = e.steps[e.steps.length - 1].styles, i = [r, s];
1097
+ for (const a of i)
1098
+ for (const l of n)
1099
+ l in a || (a[l] = o[l]);
1213
1100
  }
1214
- function Jn(e) {
1101
+ function Yn(e) {
1215
1102
  const t = [];
1216
1103
  for (const n of e.steps)
1217
1104
  for (const o in n.styles)
1218
1105
  t.indexOf(o) === -1 && t.push(o);
1219
1106
  return t;
1220
1107
  }
1221
- function ut(e) {
1108
+ function mt(e) {
1222
1109
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
1223
1110
  if (!t.length) {
1224
- ct(e.elementId || e.id || "");
1111
+ ut(e.elementId || e.id || "");
1225
1112
  return;
1226
1113
  }
1227
1114
  Array.from(t).forEach((n) => {
1228
- dt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
1229
- n.style.transition = `all ${e.duration}s ${Se(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), q(n.style, e.steps[1].styles), setTimeout(() => {
1115
+ pt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Z(n.style, e.steps[0].styles), setTimeout(() => {
1116
+ n.style.transition = `all ${e.duration}s ${Pe(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Z(n.style, e.steps[1].styles), setTimeout(() => {
1230
1117
  n.style.transition = "", n.style.transitionDelay = "";
1231
1118
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
1232
1119
  });
1233
1120
  });
1234
1121
  }
1235
- function Gn(e) {
1122
+ function Xn(e) {
1236
1123
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
1237
1124
  if (!t.length) {
1238
- ct(e.elementId || e.id || "");
1125
+ ut(e.elementId || e.id || "");
1239
1126
  return;
1240
1127
  }
1241
1128
  Array.from(t).forEach((n) => {
1242
- dt(e, n);
1129
+ pt(e, n);
1243
1130
  let o = !1, r = !1;
1244
1131
  function s() {
1245
- !o && l(n) ? (o = !0, r = !0, setTimeout(() => {
1246
- q(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", i), setTimeout(() => {
1132
+ !o && a(n) ? (o = !0, r = !0, setTimeout(() => {
1133
+ Z(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", i), setTimeout(() => {
1247
1134
  r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
1248
1135
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
1249
- })) : e.repeat && o && !r && !l(n) && (o = !1, q(n.style, e.steps[0].styles));
1136
+ })) : e.repeat && o && !r && !a(n) && (o = !1, Z(n.style, e.steps[0].styles));
1250
1137
  }
1251
- const i = zn(s, 200, {
1138
+ const i = Jn(s, 200, {
1252
1139
  leading: !1
1253
1140
  });
1254
- function l(h) {
1255
- const m = h.getBoundingClientRect(), d = window.innerHeight, v = (e.thresholdPercent || 0) / 100 * d;
1256
- return m.bottom > v && m.top < d - v;
1141
+ function a(p) {
1142
+ const f = p.getBoundingClientRect(), c = window.innerHeight, b = (e.thresholdPercent || 0) / 100 * c;
1143
+ return f.bottom > b && f.top < c - b;
1257
1144
  }
1258
- const a = e.steps[0].styles;
1145
+ const l = e.steps[0].styles;
1259
1146
  function u() {
1260
- q(n.style, a);
1147
+ Z(n.style, l);
1261
1148
  }
1262
1149
  u(), setTimeout(() => {
1263
- n.style.transition = `all ${e.duration}s ${Se(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
1150
+ n.style.transition = `all ${e.duration}s ${Pe(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
1264
1151
  }), document.addEventListener("scroll", i, {
1265
1152
  capture: !0,
1266
1153
  passive: !0
1267
1154
  }), s();
1268
1155
  });
1269
1156
  }
1270
- const pt = (e) => Object.entries(e).map(([n, o]) => {
1157
+ const ht = (e) => Object.entries(e).map(([n, o]) => {
1271
1158
  if (typeof o == "string")
1272
- return `${Se(n)}: ${o};`;
1273
- }).filter(D), Yn = (e) => pt(e).join(`
1274
- `), si = ({
1159
+ return `${Pe(n)}: ${o};`;
1160
+ }).filter(K), _n = (e) => ht(e).join(`
1161
+ `), Cs = ({
1275
1162
  mediaQuery: e,
1276
1163
  className: t,
1277
1164
  styles: n
1278
1165
  }) => {
1279
1166
  const o = `.${t} {
1280
- ${Yn(n)}
1167
+ ${_n(n)}
1281
1168
  }`;
1282
1169
  return e ? `${e} {
1283
1170
  ${o}
1284
1171
  }` : o;
1285
1172
  };
1286
- function Xn({
1173
+ function Zn({
1287
1174
  style: e
1288
1175
  }) {
1289
1176
  return e;
1290
1177
  }
1291
- const ii = ({
1178
+ const Ts = ({
1292
1179
  block: e,
1293
1180
  context: t
1294
- }) => mt(Xn({
1181
+ }) => ft(Zn({
1295
1182
  style: e.style || {},
1296
1183
  context: t,
1297
1184
  block: e
1298
1185
  }));
1299
- function mt(e) {
1300
- switch (R) {
1186
+ function ft(e) {
1187
+ switch ($) {
1301
1188
  case "svelte":
1302
1189
  case "vue":
1303
1190
  case "solid":
1304
1191
  case "angular":
1305
- return pt(e).join(" ");
1192
+ return ht(e).join(" ");
1306
1193
  case "qwik":
1307
1194
  case "reactNative":
1308
1195
  case "react":
@@ -1310,7 +1197,7 @@ function mt(e) {
1310
1197
  return e;
1311
1198
  }
1312
1199
  }
1313
- const ht = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Qn = ({
1200
+ const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, eo = ({
1314
1201
  block: e,
1315
1202
  registeredComponents: t,
1316
1203
  model: n
@@ -1320,14 +1207,14 @@ const ht = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1320
1207
  if (!o)
1321
1208
  return null;
1322
1209
  const r = t[o];
1323
- if (!r || ht(r, n)) {
1210
+ if (!r || bt(r, n)) {
1324
1211
  console.warn(`
1325
1212
  Could not find a registered component named "${o}".
1326
1213
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
1327
1214
  return;
1328
1215
  } else
1329
1216
  return r;
1330
- }, Zn = ({
1217
+ }, to = ({
1331
1218
  block: e,
1332
1219
  context: t
1333
1220
  }) => {
@@ -1337,7 +1224,7 @@ const ht = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1337
1224
  } = e;
1338
1225
  if (!(n != null && n.collection))
1339
1226
  return;
1340
- const r = Y({
1227
+ const r = te({
1341
1228
  code: n.collection,
1342
1229
  localState: t.localState,
1343
1230
  rootState: t.rootState,
@@ -1347,72 +1234,72 @@ const ht = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1347
1234
  if (!Array.isArray(r))
1348
1235
  return;
1349
1236
  const s = n.collection.split(".").pop(), i = n.itemName || (s ? s + "Item" : "item");
1350
- return r.map((a, u) => ({
1237
+ return r.map((l, u) => ({
1351
1238
  context: {
1352
1239
  ...t,
1353
1240
  localState: {
1354
1241
  ...t.localState,
1355
1242
  $index: u,
1356
- $item: a,
1357
- [i]: a,
1243
+ $item: l,
1244
+ [i]: l,
1358
1245
  [`$${i}Index`]: u
1359
1246
  }
1360
1247
  },
1361
1248
  block: o
1362
1249
  }));
1363
- }, _n = (e, t) => {
1250
+ }, no = (e, t) => {
1364
1251
  var n;
1365
1252
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
1366
1253
  builderLinkComponent: t
1367
1254
  } : {};
1368
- }, eo = (e, t, n) => {
1255
+ }, oo = (e, t, n) => {
1369
1256
  var o;
1370
1257
  return (o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents ? {
1371
- builderComponents: Object.fromEntries(Object.entries(t).filter(([s, i]) => !ht(i, n)))
1258
+ builderComponents: Object.fromEntries(Object.entries(t).filter(([s, i]) => !bt(i, n)))
1372
1259
  } : {};
1373
- }, to = (e, t) => {
1260
+ }, ro = (e, t) => {
1374
1261
  var n;
1375
1262
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
1376
1263
  builderBlock: t
1377
1264
  } : {};
1378
- }, no = (e, t) => {
1265
+ }, io = (e, t) => {
1379
1266
  var n;
1380
1267
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
1381
1268
  builderContext: t
1382
1269
  } : {};
1383
- }, oo = (e) => e.toString(), ro = () => Promise.resolve().then(() => ko).then((e) => e.default).catch((e) => {
1270
+ }, so = (e) => e.toString(), ao = () => Promise.resolve().then(() => Co).then((e) => e.default).catch((e) => {
1384
1271
  throw console.error(
1385
1272
  "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
1386
1273
  e
1387
1274
  ), e;
1388
- }), so = () => import("./block-styles-gW8iE3NH.js").then((e) => e.default).catch((e) => {
1275
+ }), lo = () => import("./block-styles-jP9_QKN9.js").then((e) => e.default).catch((e) => {
1389
1276
  throw console.error(
1390
1277
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
1391
1278
  e
1392
1279
  ), e;
1393
- }), io = () => import("./block-wrapper--UA6l0DJ.js").then((e) => e.default).catch((e) => {
1280
+ }), co = () => import("./block-wrapper-vSVxY0Wx.js").then((e) => e.default).catch((e) => {
1394
1281
  throw console.error(
1395
1282
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
1396
1283
  e
1397
1284
  ), e;
1398
- }), ao = () => import("./component-ref-PKi5zQLG.js").then((e) => e.default).catch((e) => {
1285
+ }), uo = () => import("./component-ref-9vbMmjMt.js").then((e) => e.default).catch((e) => {
1399
1286
  throw console.error(
1400
1287
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
1401
1288
  e
1402
1289
  ), e;
1403
- }), lo = () => import("./repeated-block-UdGwjbN4.js").then((e) => e.default).catch((e) => {
1290
+ }), po = () => import("./repeated-block-YIQ1YLOA.js").then((e) => e.default).catch((e) => {
1404
1291
  throw console.error(
1405
1292
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
1406
1293
  e
1407
1294
  ), e;
1408
- }), co = g({
1295
+ }), mo = y({
1409
1296
  name: "block",
1410
1297
  components: {
1411
- BlockStyles: j(so),
1412
- RepeatedBlock: j(lo),
1413
- ComponentRef: j(ao),
1414
- BlockWrapper: j(io),
1415
- DynamicDiv: j(ro)
1298
+ BlockStyles: X(lo),
1299
+ RepeatedBlock: X(po),
1300
+ ComponentRef: X(uo),
1301
+ BlockWrapper: X(co),
1302
+ DynamicDiv: X(ao)
1416
1303
  },
1417
1304
  props: ["block", "context", "registeredComponents", "linkComponent"],
1418
1305
  data() {
@@ -1421,12 +1308,12 @@ const ht = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1421
1308
  value: null,
1422
1309
  update: !1
1423
1310
  },
1424
- generateKey: oo
1311
+ generateKey: so
1425
1312
  };
1426
1313
  },
1427
1314
  mounted() {
1428
1315
  const e = this.processedBlock.id, t = this.processedBlock.animations;
1429
- t && e && qn(
1316
+ t && e && Qn(
1430
1317
  t.map((n) => ({
1431
1318
  ...n,
1432
1319
  elementId: e
@@ -1437,14 +1324,14 @@ const ht = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1437
1324
  },
1438
1325
  computed: {
1439
1326
  repeatItem() {
1440
- return Zn({
1327
+ return to({
1441
1328
  block: this.block,
1442
1329
  context: this.context
1443
1330
  });
1444
1331
  },
1445
1332
  processedBlock() {
1446
1333
  var t;
1447
- return (t = this.block.repeat) != null && t.collection ? this.block : nn({
1334
+ return (t = this.block.repeat) != null && t.collection ? this.block : an({
1448
1335
  block: this.block,
1449
1336
  localState: this.context.localState,
1450
1337
  rootState: this.context.rootState,
@@ -1453,7 +1340,7 @@ const ht = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1453
1340
  });
1454
1341
  },
1455
1342
  blockComponent() {
1456
- return Qn({
1343
+ return eo({
1457
1344
  block: this.processedBlock,
1458
1345
  registeredComponents: this.registeredComponents,
1459
1346
  model: this.context.model
@@ -1480,11 +1367,11 @@ const ht = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1480
1367
  blockChildren: this.processedBlock.children ?? [],
1481
1368
  componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
1482
1369
  componentOptions: {
1483
- ...Jt(this.processedBlock, this.context),
1484
- ...to(this.blockComponent, this.processedBlock),
1485
- ...no(this.blockComponent, this.context),
1486
- ..._n(this.blockComponent, this.linkComponent),
1487
- ...eo(
1370
+ ...Xt(this.processedBlock, this.context),
1371
+ ...ro(this.blockComponent, this.processedBlock),
1372
+ ...io(this.blockComponent, this.context),
1373
+ ...no(this.blockComponent, this.linkComponent),
1374
+ ...oo(
1488
1375
  this.blockComponent,
1489
1376
  this.registeredComponents,
1490
1377
  this.context.model
@@ -1495,27 +1382,27 @@ const ht = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1495
1382
  registeredComponents: this.registeredComponents,
1496
1383
  builderBlock: this.processedBlock,
1497
1384
  includeBlockProps: ((t = this.blockComponent) == null ? void 0 : t.noWrap) === !0,
1498
- isInteractive: !((n = this.blockComponent) != null && n.isRSC && R === "rsc")
1385
+ isInteractive: !((n = this.blockComponent) != null && n.isRSC && $ === "rsc")
1499
1386
  };
1500
1387
  }
1501
1388
  }
1502
1389
  });
1503
- function uo(e, t, n, o, r, s) {
1504
- var m;
1505
- const i = k("BlockStyles"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), h = k("RepeatedBlock");
1506
- return e.canShowBlock ? (c(), p($, { key: 0 }, [
1507
- B(i, {
1390
+ function ho(e, t, n, o, r, s) {
1391
+ var f;
1392
+ const i = k("BlockStyles"), a = k("ComponentRef"), l = k("Block", !0), u = k("BlockWrapper"), p = k("RepeatedBlock");
1393
+ return e.canShowBlock ? (d(), h(I, { key: 0 }, [
1394
+ E(i, {
1508
1395
  block: e.processedBlock,
1509
1396
  context: e.context
1510
1397
  }, null, 8, ["block", "context"]),
1511
- (m = e.blockComponent) != null && m.noWrap ? (c(), p($, { key: 1 }, [
1512
- e.repeatItem ? (c(!0), p($, { key: 1 }, N(e.repeatItem, (d, f) => (c(), y(h, {
1513
- key: e.generateKey(f),
1514
- repeatContext: d.context,
1515
- block: d.block,
1398
+ (f = e.blockComponent) != null && f.noWrap ? (d(), h(I, { key: 1 }, [
1399
+ e.repeatItem ? (d(!0), h(I, { key: 1 }, L(e.repeatItem, (c, m) => (d(), S(p, {
1400
+ key: e.generateKey(m),
1401
+ repeatContext: c.context,
1402
+ block: c.block,
1516
1403
  registeredComponents: e.registeredComponents,
1517
1404
  linkComponent: e.linkComponent
1518
- }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (c(), y(l, {
1405
+ }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (d(), S(a, {
1519
1406
  key: 0,
1520
1407
  componentRef: e.componentRefProps.componentRef,
1521
1408
  componentOptions: e.componentRefProps.componentOptions,
@@ -1527,21 +1414,21 @@ function uo(e, t, n, o, r, s) {
1527
1414
  includeBlockProps: e.componentRefProps.includeBlockProps,
1528
1415
  isInteractive: e.componentRefProps.isInteractive
1529
1416
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
1530
- ], 64)) : (c(), p($, { key: 0 }, [
1531
- e.repeatItem ? (c(!0), p($, { key: 1 }, N(e.repeatItem, (d, f) => (c(), y(h, {
1532
- key: e.generateKey(f),
1533
- repeatContext: d.context,
1534
- block: d.block,
1417
+ ], 64)) : (d(), h(I, { key: 0 }, [
1418
+ e.repeatItem ? (d(!0), h(I, { key: 1 }, L(e.repeatItem, (c, m) => (d(), S(p, {
1419
+ key: e.generateKey(m),
1420
+ repeatContext: c.context,
1421
+ block: c.block,
1535
1422
  registeredComponents: e.registeredComponents,
1536
1423
  linkComponent: e.linkComponent
1537
- }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (c(), y(u, {
1424
+ }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (d(), S(u, {
1538
1425
  key: 0,
1539
1426
  Wrapper: e.Tag,
1540
1427
  block: e.processedBlock,
1541
1428
  context: e.context
1542
1429
  }, {
1543
- default: W(() => [
1544
- B(l, {
1430
+ default: U(() => [
1431
+ E(a, {
1545
1432
  componentRef: e.componentRefProps.componentRef,
1546
1433
  componentOptions: e.componentRefProps.componentOptions,
1547
1434
  blockChildren: e.componentRefProps.blockChildren,
@@ -1552,9 +1439,9 @@ function uo(e, t, n, o, r, s) {
1552
1439
  includeBlockProps: e.componentRefProps.includeBlockProps,
1553
1440
  isInteractive: e.componentRefProps.isInteractive
1554
1441
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
1555
- (c(!0), p($, null, N(e.childrenWithoutParentComponent, (d, f) => (c(), y(a, {
1556
- key: d.id,
1557
- block: d,
1442
+ (d(!0), h(I, null, L(e.childrenWithoutParentComponent, (c, m) => (d(), S(l, {
1443
+ key: c.id,
1444
+ block: c,
1558
1445
  registeredComponents: e.registeredComponents,
1559
1446
  linkComponent: e.linkComponent,
1560
1447
  context: e.context
@@ -1563,12 +1450,12 @@ function uo(e, t, n, o, r, s) {
1563
1450
  _: 1
1564
1451
  }, 8, ["Wrapper", "block", "context"]))
1565
1452
  ], 64))
1566
- ], 64)) : S("", !0);
1453
+ ], 64)) : C("", !0);
1567
1454
  }
1568
- const ft = /* @__PURE__ */ b(co, [["render", uo]]), ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1455
+ const gt = /* @__PURE__ */ v(mo, [["render", ho]]), Is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1569
1456
  __proto__: null,
1570
- default: ft
1571
- }, Symbol.toStringTag, { value: "Module" })), po = g({
1457
+ default: gt
1458
+ }, Symbol.toStringTag, { value: "Module" })), fo = y({
1572
1459
  name: "builder-blocks-wrapper",
1573
1460
  props: [
1574
1461
  "blocks",
@@ -1612,7 +1499,7 @@ const ft = /* @__PURE__ */ b(co, [["render", uo]]), ai = /* @__PURE__ */ Object.
1612
1499
  methods: {
1613
1500
  onClick() {
1614
1501
  var e, t;
1615
- E() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1502
+ P() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1616
1503
  {
1617
1504
  type: "builder.clickEmptyBlocks",
1618
1505
  data: {
@@ -1625,7 +1512,7 @@ const ft = /* @__PURE__ */ b(co, [["render", uo]]), ai = /* @__PURE__ */ Object.
1625
1512
  },
1626
1513
  onMouseEnter() {
1627
1514
  var e, t;
1628
- E() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1515
+ P() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1629
1516
  {
1630
1517
  type: "builder.hoverEmptyBlocks",
1631
1518
  data: {
@@ -1638,8 +1525,8 @@ const ft = /* @__PURE__ */ b(co, [["render", uo]]), ai = /* @__PURE__ */ Object.
1638
1525
  }
1639
1526
  }
1640
1527
  });
1641
- function mo(e, t, n, o, r, s) {
1642
- return c(), y(z(e.BlocksWrapper), C({
1528
+ function bo(e, t, n, o, r, s) {
1529
+ return d(), S(_(e.BlocksWrapper), w({
1643
1530
  ref: "blocksWrapperRef",
1644
1531
  class: e.className + " component-tqyw9m0iue",
1645
1532
  "builder-path": e.dataPath,
@@ -1649,72 +1536,74 @@ function mo(e, t, n, o, r, s) {
1649
1536
  onMouseEnter: (i) => e.onMouseEnter(),
1650
1537
  onKeyPress: (i) => e.onClick()
1651
1538
  }, { ...e.BlocksWrapperProps }), {
1652
- default: W(() => [
1653
- A(e.$slots, "default", {}, void 0, !0)
1539
+ default: U(() => [
1540
+ V(e.$slots, "default", {}, void 0, !0)
1654
1541
  ]),
1655
1542
  _: 3
1656
1543
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
1657
1544
  }
1658
- const ho = /* @__PURE__ */ b(po, [["render", mo], ["__scopeId", "data-v-e05fb921"]]), fo = g({
1545
+ const go = /* @__PURE__ */ v(fo, [["render", bo], ["__scopeId", "data-v-161c6b74"]]), yo = y({
1659
1546
  name: "builder-blocks",
1660
- components: { BlocksWrapper: ho, Block: ft },
1547
+ components: { BlocksWrapper: go, Block: gt },
1661
1548
  props: [
1662
1549
  "blocks",
1663
1550
  "parent",
1664
1551
  "path",
1665
1552
  "styleProp",
1666
- "className",
1553
+ "BlocksWrapperProps",
1667
1554
  "context",
1555
+ "className",
1668
1556
  "linkComponent",
1669
1557
  "registeredComponents"
1670
1558
  ],
1671
1559
  inject: {
1672
- builderContext: de.key,
1673
- componentsContext: De.key
1560
+ builderContext: be.key,
1561
+ componentsContext: Ge.key
1674
1562
  }
1675
1563
  });
1676
- function go(e, t, n, o, r, s) {
1677
- var a, u, h, m;
1678
- const i = k("Block"), l = k("BlocksWrapper");
1679
- return c(), y(l, {
1564
+ function vo(e, t, n, o, r, s) {
1565
+ var l, u, p, f;
1566
+ const i = k("Block"), a = k("BlocksWrapper");
1567
+ return d(), S(a, {
1680
1568
  blocks: e.blocks,
1681
1569
  parent: e.parent,
1682
1570
  path: e.path,
1683
1571
  styleProp: e.styleProp,
1572
+ BlocksWrapperProps: e.BlocksWrapperProps || ((l = e.context) == null ? void 0 : l.BlocksWrapperProps) || ((u = e.builderContext) == null ? void 0 : u.BlocksWrapperProps),
1684
1573
  classNameProp: e.className,
1685
- BlocksWrapper: ((a = e.context) == null ? void 0 : a.BlocksWrapper) || ((u = e.builderContext) == null ? void 0 : u.BlocksWrapper),
1686
- BlocksWrapperProps: ((h = e.context) == null ? void 0 : h.BlocksWrapperProps) || ((m = e.builderContext) == null ? void 0 : m.BlocksWrapperProps)
1574
+ BlocksWrapper: ((p = e.context) == null ? void 0 : p.BlocksWrapper) || ((f = e.builderContext) == null ? void 0 : f.BlocksWrapper)
1687
1575
  }, {
1688
- default: W(() => [
1689
- e.blocks ? (c(!0), p($, { key: 0 }, N(e.blocks, (d, f) => {
1690
- var v;
1691
- return c(), y(i, {
1692
- key: d.id,
1693
- block: d,
1576
+ default: U(() => [
1577
+ V(e.$slots, "default"),
1578
+ e.blocks ? (d(!0), h(I, { key: 0 }, L(e.blocks, (c, m) => {
1579
+ var b;
1580
+ return d(), S(i, {
1581
+ key: c.id,
1582
+ block: c,
1694
1583
  linkComponent: e.linkComponent,
1695
1584
  context: e.context || e.builderContext,
1696
- registeredComponents: e.registeredComponents || ((v = e.componentsContext) == null ? void 0 : v.registeredComponents)
1585
+ registeredComponents: e.registeredComponents || ((b = e.componentsContext) == null ? void 0 : b.registeredComponents)
1697
1586
  }, null, 8, ["block", "linkComponent", "context", "registeredComponents"]);
1698
- }), 128)) : S("", !0)
1587
+ }), 128)) : C("", !0)
1699
1588
  ]),
1700
- _: 1
1701
- }, 8, ["blocks", "parent", "path", "styleProp", "classNameProp", "BlocksWrapper", "BlocksWrapperProps"]);
1589
+ _: 3
1590
+ }, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapperProps", "classNameProp", "BlocksWrapper"]);
1702
1591
  }
1703
- const H = /* @__PURE__ */ b(fo, [["render", go]]), bo = g({
1592
+ const q = /* @__PURE__ */ v(yo, [["render", vo]]), So = y({
1704
1593
  name: "dynamic-div",
1705
1594
  props: []
1706
1595
  });
1707
- function yo(e, t, n, o, r, s) {
1708
- return c(), p("div", null, [
1709
- A(e.$slots, "default")
1596
+ function ko(e, t, n, o, r, s) {
1597
+ return d(), h("div", null, [
1598
+ V(e.$slots, "default")
1710
1599
  ]);
1711
1600
  }
1712
- const X = /* @__PURE__ */ b(bo, [["render", yo]]), ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1601
+ const ne = /* @__PURE__ */ v(So, [["render", ko]]), Co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1713
1602
  __proto__: null,
1714
- default: X
1715
- }, Symbol.toStringTag, { value: "Module" })), Ce = g({
1603
+ default: ne
1604
+ }, Symbol.toStringTag, { value: "Module" })), de = y({
1716
1605
  render() {
1717
- return Ue("style", {
1606
+ return Ke("style", {
1718
1607
  innerHTML: this.styles,
1719
1608
  "data-id": this.id,
1720
1609
  nonce: this.nonce
@@ -1722,7 +1611,7 @@ const X = /* @__PURE__ */ b(bo, [["render", yo]]), ko = /* @__PURE__ */ Object.f
1722
1611
  },
1723
1612
  name: "inlined-styles",
1724
1613
  props: ["styles", "id", "nonce"]
1725
- }), gt = {
1614
+ }), yt = {
1726
1615
  xsmall: {
1727
1616
  min: 0,
1728
1617
  default: 160,
@@ -1743,8 +1632,8 @@ const X = /* @__PURE__ */ b(bo, [["render", yo]]), ko = /* @__PURE__ */ Object.f
1743
1632
  default: 991,
1744
1633
  max: 1200
1745
1634
  }
1746
- }, li = (e, t = gt) => `@media (max-width: ${t[e].max}px)`, vo = (e) => {
1747
- const t = fe(gt);
1635
+ }, ws = (e, t = yt) => `@media (max-width: ${t[e].max}px)`, To = (e) => {
1636
+ const t = ke(yt);
1748
1637
  if (!e)
1749
1638
  return t;
1750
1639
  const {
@@ -1753,11 +1642,11 @@ const X = /* @__PURE__ */ b(bo, [["render", yo]]), ko = /* @__PURE__ */ Object.f
1753
1642
  medium: r
1754
1643
  } = e;
1755
1644
  if (n) {
1756
- const a = Math.floor(n / 2);
1645
+ const l = Math.floor(n / 2);
1757
1646
  t.xsmall = {
1758
1647
  max: n,
1759
- min: a,
1760
- default: a + 1
1648
+ min: l,
1649
+ default: l + 1
1761
1650
  };
1762
1651
  }
1763
1652
  if (!o || !r)
@@ -1774,20 +1663,20 @@ const X = /* @__PURE__ */ b(bo, [["render", yo]]), ko = /* @__PURE__ */ Object.f
1774
1663
  min: i,
1775
1664
  default: i + 1
1776
1665
  };
1777
- const l = t.medium.max + 1;
1666
+ const a = t.medium.max + 1;
1778
1667
  return t.large = {
1779
1668
  max: 2e3,
1780
1669
  // TODO: decide upper limit
1781
- min: l,
1782
- default: l + 1
1670
+ min: a,
1671
+ default: a + 1
1783
1672
  }, t;
1784
- }, So = (e) => `builder-columns ${e}-breakpoints`, Co = g({
1673
+ }, Io = (e) => `builder-columns ${e}-breakpoints`, wo = y({
1785
1674
  name: "builder-columns",
1786
1675
  components: {
1787
- InlinedStyles: Ce,
1788
- DynamicRenderer: he,
1789
- Blocks: H,
1790
- DynamicDiv: X
1676
+ InlinedStyles: de,
1677
+ DynamicRenderer: Ce,
1678
+ Blocks: q,
1679
+ DynamicDiv: ne
1791
1680
  },
1792
1681
  props: [
1793
1682
  "space",
@@ -1800,7 +1689,7 @@ const X = /* @__PURE__ */ b(bo, [["render", yo]]), ko = /* @__PURE__ */ Object.f
1800
1689
  "builderComponents"
1801
1690
  ],
1802
1691
  data() {
1803
- return { TARGET: R, getColumnsClass: So };
1692
+ return { TARGET: $, getColumnsClass: Io };
1804
1693
  },
1805
1694
  computed: {
1806
1695
  gutterSize() {
@@ -1879,7 +1768,7 @@ const X = /* @__PURE__ */ b(bo, [["render", yo]]), ko = /* @__PURE__ */ Object.f
1879
1768
  },
1880
1769
  getWidthForBreakpointSize(e) {
1881
1770
  var n, o;
1882
- return vo(
1771
+ return To(
1883
1772
  ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
1884
1773
  )[e].max;
1885
1774
  },
@@ -1916,39 +1805,39 @@ const X = /* @__PURE__ */ b(bo, [["render", yo]]), ko = /* @__PURE__ */ Object.f
1916
1805
  ...e.link ? {
1917
1806
  href: e.link
1918
1807
  } : {},
1919
- [_()]: "builder-column",
1920
- style: mt(this.columnCssVars(t))
1808
+ [G()]: "builder-column",
1809
+ style: ft(this.columnCssVars(t))
1921
1810
  };
1922
1811
  }
1923
1812
  }
1924
1813
  });
1925
- function wo(e, t, n, o, r, s) {
1814
+ function $o(e, t, n, o, r, s) {
1926
1815
  var u;
1927
- const i = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
1928
- return c(), p("div", C({
1816
+ const i = k("InlinedStyles"), a = k("Blocks"), l = k("DynamicRenderer");
1817
+ return d(), h("div", w({
1929
1818
  class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-4wbls88y960",
1930
1819
  style: e.columnsCssVars()
1931
1820
  }, {}), [
1932
- e.TARGET !== "reactNative" ? (c(), y(i, {
1821
+ e.TARGET !== "reactNative" ? (d(), S(i, {
1933
1822
  key: 0,
1934
1823
  id: "builderio-columns",
1935
1824
  styles: e.columnsStyles(),
1936
1825
  nonce: e.builderContext.nonce
1937
- }, null, 8, ["styles", "nonce"])) : S("", !0),
1938
- (c(!0), p($, null, N(e.columns, (h, m) => (c(), y(a, {
1939
- key: m,
1940
- TagName: e.getTagName(h),
1826
+ }, null, 8, ["styles", "nonce"])) : C("", !0),
1827
+ (d(!0), h(I, null, L(e.columns, (p, f) => (d(), S(l, {
1828
+ key: f,
1829
+ TagName: e.getTagName(p),
1941
1830
  actionAttributes: {},
1942
- attributes: e.getAttributes(h, m)
1831
+ attributes: e.getAttributes(p, f)
1943
1832
  }, {
1944
- default: W(() => [
1945
- B(l, {
1946
- path: `columns.${m}.blocks`,
1833
+ default: U(() => [
1834
+ E(a, {
1835
+ path: `columns.${f}.blocks`,
1947
1836
  parent: e.builderBlock.id,
1948
1837
  context: e.builderContext,
1949
1838
  registeredComponents: e.builderComponents,
1950
1839
  linkComponent: e.builderLinkComponent,
1951
- blocks: h.blocks,
1840
+ blocks: p.blocks,
1952
1841
  styleProp: {
1953
1842
  flexGrow: "1"
1954
1843
  }
@@ -1958,47 +1847,47 @@ function wo(e, t, n, o, r, s) {
1958
1847
  }, 1032, ["TagName", "attributes"]))), 128))
1959
1848
  ], 16);
1960
1849
  }
1961
- const To = /* @__PURE__ */ b(Co, [["render", wo], ["__scopeId", "data-v-459e0e34"]]), Io = g({
1850
+ const Ro = /* @__PURE__ */ v(wo, [["render", $o], ["__scopeId", "data-v-459e0e34"]]), Eo = y({
1962
1851
  name: "builder-fragment-component",
1963
1852
  props: []
1964
1853
  });
1965
- function $o(e, t, n, o, r, s) {
1966
- return c(), p("span", null, [
1967
- A(e.$slots, "default")
1854
+ function Po(e, t, n, o, r, s) {
1855
+ return d(), h("span", null, [
1856
+ V(e.$slots, "default")
1968
1857
  ]);
1969
1858
  }
1970
- const Ro = /* @__PURE__ */ b(Io, [["render", $o]]);
1971
- function Ve(e) {
1859
+ const Ao = /* @__PURE__ */ v(Eo, [["render", Po]]);
1860
+ function Le(e) {
1972
1861
  return e.replace(/http(s)?:/, "");
1973
1862
  }
1974
- function Eo(e = "", t, n) {
1863
+ function Bo(e = "", t, n) {
1975
1864
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
1976
1865
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
1977
1866
  }
1978
- function Po(e, t) {
1867
+ function Vo(e, t) {
1979
1868
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1980
1869
  return e;
1981
1870
  if (t === "master")
1982
- return Ve(e);
1871
+ return Le(e);
1983
1872
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1984
1873
  if (n) {
1985
1874
  const o = e.split(n[0]), r = n[3], s = t.match("x") ? t : `${t}x`;
1986
- return Ve(`${o[0]}_${s}${r}`);
1875
+ return Le(`${o[0]}_${s}${r}`);
1987
1876
  }
1988
1877
  return null;
1989
1878
  }
1990
- function se(e) {
1879
+ function ue(e) {
1991
1880
  if (!e)
1992
1881
  return e;
1993
1882
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1994
1883
  if (e.match(/builder\.io/)) {
1995
1884
  let n = e;
1996
1885
  const o = Number(e.split("?width=")[1]);
1997
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Eo(e, "width", r)} ${r}w`).concat([n]).join(", ");
1886
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Bo(e, "width", r)} ${r}w`).concat([n]).join(", ");
1998
1887
  }
1999
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Po(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1888
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Vo(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
2000
1889
  }
2001
- const Bo = g({
1890
+ const No = y({
2002
1891
  name: "builder-image",
2003
1892
  props: [
2004
1893
  "lazy",
@@ -2028,10 +1917,10 @@ const Bo = g({
2028
1917
  if (!this.noWebp) {
2029
1918
  if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
2030
1919
  if (!this.srcset.includes(this.image.split("?")[0]))
2031
- return console.debug("Removed given srcset"), se(t);
1920
+ return console.debug("Removed given srcset"), ue(t);
2032
1921
  } else if (this.image && !this.srcset)
2033
- return se(t);
2034
- return se(t);
1922
+ return ue(t);
1923
+ return ue(t);
2035
1924
  }
2036
1925
  },
2037
1926
  webpSrcSet() {
@@ -2049,31 +1938,31 @@ const Bo = g({
2049
1938
  return this.aspectRatio ? e : void 0;
2050
1939
  }
2051
1940
  }
2052
- }), Ao = ["srcset"], xo = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], Vo = {
1941
+ }), Wo = ["srcset"], xo = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], Do = {
2053
1942
  key: 2,
2054
1943
  class: "div-29wpyomtntv-2"
2055
1944
  };
2056
- function No(e, t, n, o, r, s) {
2057
- var i, l, a, u, h, m;
2058
- return c(), p($, null, [
2059
- M("picture", null, [
2060
- e.webpSrcSet ? (c(), p("source", {
1945
+ function Oo(e, t, n, o, r, s) {
1946
+ var i, a, l, u, p, f;
1947
+ return d(), h(I, null, [
1948
+ z("picture", null, [
1949
+ e.webpSrcSet ? (d(), h("source", {
2061
1950
  key: 0,
2062
1951
  type: "image/webp",
2063
1952
  srcset: e.webpSrcSet
2064
- }, null, 8, Ao)) : S("", !0),
2065
- M("img", {
1953
+ }, null, 8, Wo)) : C("", !0),
1954
+ z("img", {
2066
1955
  loading: e.highPriority ? "eager" : "lazy",
2067
1956
  fetchpriority: e.highPriority ? "high" : "auto",
2068
1957
  alt: e.altText,
2069
1958
  title: e.title,
2070
1959
  role: e.altText ? void 0 : "presentation",
2071
- style: U({
1960
+ style: j({
2072
1961
  objectPosition: e.backgroundPosition || "center",
2073
1962
  objectFit: e.backgroundSize || "cover",
2074
1963
  ...e.aspectRatioCss
2075
1964
  }),
2076
- class: J(
1965
+ class: ee(
2077
1966
  "builder-image" + (e.className ? " " + e.className : "") + " img-29wpyomtntv"
2078
1967
  ),
2079
1968
  src: e.image,
@@ -2081,28 +1970,28 @@ function No(e, t, n, o, r, s) {
2081
1970
  sizes: e.sizes
2082
1971
  }, null, 14, xo)
2083
1972
  ]),
2084
- e.aspectRatio && !((l = (i = e.builderBlock) == null ? void 0 : i.children) != null && l.length && e.fitContent) ? (c(), p("div", {
1973
+ e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? (d(), h("div", {
2085
1974
  key: 0,
2086
1975
  class: "builder-image-sizer div-29wpyomtntv",
2087
- style: U({
1976
+ style: j({
2088
1977
  paddingTop: e.aspectRatio * 100 + "%"
2089
1978
  })
2090
- }, null, 4)) : S("", !0),
2091
- (u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? A(e.$slots, "default", { key: 1 }, void 0, !0) : S("", !0),
2092
- !e.fitContent && ((m = (h = e.builderBlock) == null ? void 0 : h.children) != null && m.length) ? (c(), p("div", Vo, [
2093
- A(e.$slots, "default", {}, void 0, !0)
2094
- ])) : S("", !0)
1979
+ }, null, 4)) : C("", !0),
1980
+ (u = (l = e.builderBlock) == null ? void 0 : l.children) != null && u.length && e.fitContent ? V(e.$slots, "default", { key: 1 }, void 0, !0) : C("", !0),
1981
+ !e.fitContent && ((f = (p = e.builderBlock) == null ? void 0 : p.children) != null && f.length) ? (d(), h("div", Do, [
1982
+ V(e.$slots, "default", {}, void 0, !0)
1983
+ ])) : C("", !0)
2095
1984
  ], 64);
2096
1985
  }
2097
- const Wo = /* @__PURE__ */ b(Bo, [["render", No], ["__scopeId", "data-v-e6416c92"]]), Oo = g({
1986
+ const Uo = /* @__PURE__ */ v(No, [["render", Oo], ["__scopeId", "data-v-e6416c92"]]), Fo = y({
2098
1987
  name: "builder-section-component",
2099
1988
  props: ["attributes", "maxWidth"],
2100
1989
  data() {
2101
- return { filterAttrs: V };
1990
+ return { filterAttrs: W };
2102
1991
  }
2103
1992
  });
2104
- function Uo(e, t, n, o, r, s) {
2105
- return c(), p("section", C({
1993
+ function Lo(e, t, n, o, r, s) {
1994
+ return d(), h("section", w({
2106
1995
  style: {
2107
1996
  width: "100%",
2108
1997
  alignSelf: "stretch",
@@ -2115,11 +2004,276 @@ function Uo(e, t, n, o, r, s) {
2115
2004
  marginLeft: "auto",
2116
2005
  marginRight: "auto"
2117
2006
  }
2118
- }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
2119
- A(e.$slots, "default")
2007
+ }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
2008
+ V(e.$slots, "default")
2120
2009
  ], 16);
2121
2010
  }
2122
- const Do = /* @__PURE__ */ b(Oo, [["render", Uo]]), ie = {
2011
+ const Ho = /* @__PURE__ */ v(Fo, [["render", Lo]]);
2012
+ function Mo(e, t, n, o) {
2013
+ function r(u) {
2014
+ return typeof u == "string";
2015
+ }
2016
+ function s(u) {
2017
+ return typeof u == "number";
2018
+ }
2019
+ function i(u, p) {
2020
+ return (() => {
2021
+ const c = p.property, m = p.operator;
2022
+ let b = p.value;
2023
+ if (p && p.property === "urlPath" && p.value && typeof p.value == "string" && p.value !== "/" && p.value.endsWith("/") && (b = p.value.slice(0, -1)), !(c && m))
2024
+ return !0;
2025
+ if (Array.isArray(b))
2026
+ return m === "isNot" ? b.every((A) => i(u, {
2027
+ property: c,
2028
+ operator: m,
2029
+ value: A
2030
+ })) : !!b.find((A) => i(u, {
2031
+ property: c,
2032
+ operator: m,
2033
+ value: A
2034
+ }));
2035
+ const g = u[c];
2036
+ if (Array.isArray(g))
2037
+ return g.includes(b);
2038
+ switch (m) {
2039
+ case "is":
2040
+ return g === b;
2041
+ case "isNot":
2042
+ return g !== b;
2043
+ case "contains":
2044
+ return (r(g) || Array.isArray(g)) && g.includes(String(b));
2045
+ case "startsWith":
2046
+ return r(g) && g.startsWith(String(b));
2047
+ case "endsWith":
2048
+ return r(g) && g.endsWith(String(b));
2049
+ case "greaterThan":
2050
+ return s(g) && s(b) && g > b;
2051
+ case "lessThan":
2052
+ return s(g) && s(b) && g < b;
2053
+ case "greaterThanOrEqualTo":
2054
+ return s(g) && s(b) && g >= b;
2055
+ case "lessThanOrEqualTo":
2056
+ return s(g) && s(b) && g <= b;
2057
+ default:
2058
+ return !1;
2059
+ }
2060
+ })();
2061
+ }
2062
+ const a = {
2063
+ query: t,
2064
+ startDate: n,
2065
+ endDate: o
2066
+ }, l = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
2067
+ return a.startDate && new Date(a.startDate) > l || a.endDate && new Date(a.endDate) < l ? !1 : !a.query || !a.query.length ? !0 : a.query.every((u) => i(e, u));
2068
+ }
2069
+ const jo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
2070
+ if (!navigator.cookieEnabled) {
2071
+ return;
2072
+ }
2073
+ function getCookie(name) {
2074
+ const nameEQ = name + '=';
2075
+ const ca = document.cookie.split(';');
2076
+ for (let i = 0; i < ca.length; i++) {
2077
+ let c = ca[i];
2078
+ while (c.charAt(0) == ' ') c = c.substring(1, c.length);
2079
+ if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
2080
+ }
2081
+ return null;
2082
+ }
2083
+ const attributes = JSON.parse(getCookie('builder.userAttributes') || '{}');
2084
+ if (locale) {
2085
+ attributes.locale = locale;
2086
+ }
2087
+ const winningVariantIndex = variants?.findIndex(function (variant) {
2088
+ return window.filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
2089
+ });
2090
+ const parentDiv = document.currentScript?.parentElement;
2091
+ const variantId = parentDiv?.getAttribute('data-variant-id');
2092
+ const isDefaultVariant = variantId === \`\${blockId}-default\`;
2093
+ const isWinningVariant = winningVariantIndex !== -1 && variantId === \`\${blockId}-\${winningVariantIndex}\` || winningVariantIndex === -1 && isDefaultVariant;
2094
+ if (isWinningVariant && !isDefaultVariant) {
2095
+ parentDiv?.removeAttribute('hidden');
2096
+ parentDiv?.removeAttribute('aria-hidden');
2097
+ } else if (!isWinningVariant && isDefaultVariant) {
2098
+ parentDiv?.setAttribute('hidden', 'true');
2099
+ parentDiv?.setAttribute('aria-hidden', 'true');
2100
+ }
2101
+ if (isHydrationTarget) {
2102
+ if (!isWinningVariant) {
2103
+ const itsStyleEl = parentDiv?.previousElementSibling;
2104
+ if (itsStyleEl) {
2105
+ itsStyleEl.remove();
2106
+ }
2107
+ parentDiv?.remove();
2108
+ }
2109
+ const thisScript = document.currentScript;
2110
+ if (thisScript) {
2111
+ thisScript.remove();
2112
+ }
2113
+ }
2114
+ }`, Ko = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
2115
+ function isString(val) {
2116
+ return typeof val === 'string';
2117
+ }
2118
+ function isNumber(val) {
2119
+ return typeof val === 'number';
2120
+ }
2121
+ function objectMatchesQuery(userattr, query) {
2122
+ const result = (() => {
2123
+ const property = query.property;
2124
+ const operator = query.operator;
2125
+ let testValue = query.value;
2126
+ if (query && query.property === 'urlPath' && query.value && typeof query.value === 'string' && query.value !== '/' && query.value.endsWith('/')) {
2127
+ testValue = query.value.slice(0, -1);
2128
+ }
2129
+ if (!(property && operator)) {
2130
+ return true;
2131
+ }
2132
+ if (Array.isArray(testValue)) {
2133
+ if (operator === 'isNot') {
2134
+ return testValue.every(val => objectMatchesQuery(userattr, {
2135
+ property,
2136
+ operator,
2137
+ value: val
2138
+ }));
2139
+ }
2140
+ return !!testValue.find(val => objectMatchesQuery(userattr, {
2141
+ property,
2142
+ operator,
2143
+ value: val
2144
+ }));
2145
+ }
2146
+ const value = userattr[property];
2147
+ if (Array.isArray(value)) {
2148
+ return value.includes(testValue);
2149
+ }
2150
+ switch (operator) {
2151
+ case 'is':
2152
+ return value === testValue;
2153
+ case 'isNot':
2154
+ return value !== testValue;
2155
+ case 'contains':
2156
+ return (isString(value) || Array.isArray(value)) && value.includes(String(testValue));
2157
+ case 'startsWith':
2158
+ return isString(value) && value.startsWith(String(testValue));
2159
+ case 'endsWith':
2160
+ return isString(value) && value.endsWith(String(testValue));
2161
+ case 'greaterThan':
2162
+ return isNumber(value) && isNumber(testValue) && value > testValue;
2163
+ case 'lessThan':
2164
+ return isNumber(value) && isNumber(testValue) && value < testValue;
2165
+ case 'greaterThanOrEqualTo':
2166
+ return isNumber(value) && isNumber(testValue) && value >= testValue;
2167
+ case 'lessThanOrEqualTo':
2168
+ return isNumber(value) && isNumber(testValue) && value <= testValue;
2169
+ default:
2170
+ return false;
2171
+ }
2172
+ })();
2173
+ return result;
2174
+ }
2175
+ const item = {
2176
+ query,
2177
+ startDate,
2178
+ endDate
2179
+ };
2180
+ const now = userAttributes.date && new Date(userAttributes.date) || new Date();
2181
+ if (item.startDate && new Date(item.startDate) > now) {
2182
+ return false;
2183
+ } else if (item.endDate && new Date(item.endDate) < now) {
2184
+ return false;
2185
+ }
2186
+ if (!item.query || !item.query.length) {
2187
+ return true;
2188
+ }
2189
+ return item.query.every(filter => {
2190
+ return objectMatchesQuery(userAttributes, filter);
2191
+ });
2192
+ }`, qo = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
2193
+ function getCookie(name) {
2194
+ const nameEQ = name + '=';
2195
+ const ca = document.cookie.split(';');
2196
+ for (let i = 0; i < ca.length; i++) {
2197
+ let c = ca[i];
2198
+ while (c.charAt(0) == ' ') c = c.substring(1, c.length);
2199
+ if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
2200
+ }
2201
+ return null;
2202
+ }
2203
+ const visibilityStylesEl = document.currentScript?.previousElementSibling;
2204
+ if (!visibilityStylesEl) {
2205
+ return;
2206
+ }
2207
+ if (isHydrationTarget) {
2208
+ visibilityStylesEl.remove();
2209
+ const currentScript = document.currentScript;
2210
+ if (currentScript) {
2211
+ currentScript.remove();
2212
+ }
2213
+ } else {
2214
+ const attributes = JSON.parse(getCookie('builder.userAttributes') || '{}');
2215
+ if (locale) {
2216
+ attributes.locale = locale;
2217
+ }
2218
+ const winningVariantIndex = variants?.findIndex(function (variant) {
2219
+ return window.filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
2220
+ });
2221
+ if (winningVariantIndex !== -1) {
2222
+ let newStyleStr = variants?.map((_, index) => {
2223
+ if (index === winningVariantIndex) return '';
2224
+ return \`div[data-variant-id="\${blockId}-\${index}"] { display: none !important; } \`;
2225
+ }).join('') || '';
2226
+ newStyleStr += \`div[data-variant-id="\${blockId}-default"] { display: none !important; } \`;
2227
+ visibilityStylesEl.innerHTML = newStyleStr;
2228
+ }
2229
+ }
2230
+ }`, oe = "default", zo = "filterWithCustomTargeting", vt = "builderIoPersonalization", St = "updateVisibilityStylesScript", kt = ["react", "vue", "svelte", "qwik"], Ct = ["vue", "svelte", "qwik"];
2231
+ function Go(e, t) {
2232
+ return !(e && e.length > 0) || !t ? !1 : Ct.includes($) ? !0 : !R();
2233
+ }
2234
+ function Jo({
2235
+ variants: e,
2236
+ previewingIndex: t,
2237
+ isHydrated: n,
2238
+ filteredVariants: o,
2239
+ fallbackBlocks: r
2240
+ }) {
2241
+ const s = {
2242
+ blocks: r ?? [],
2243
+ path: "this.children",
2244
+ index: oe
2245
+ };
2246
+ if (n && P()) {
2247
+ if (typeof t == "number" && t < ((e == null ? void 0 : e.length) ?? 0)) {
2248
+ const i = e == null ? void 0 : e[t];
2249
+ if (i)
2250
+ return {
2251
+ blocks: i.blocks,
2252
+ path: `variants.${t}.blocks`,
2253
+ index: t
2254
+ };
2255
+ }
2256
+ return s;
2257
+ }
2258
+ if (R()) {
2259
+ const i = o == null ? void 0 : o[0];
2260
+ if (i && e) {
2261
+ const a = e.indexOf(i);
2262
+ if (a !== -1)
2263
+ return {
2264
+ blocks: i.blocks,
2265
+ path: `variants.${a}.blocks`,
2266
+ index: a
2267
+ };
2268
+ }
2269
+ }
2270
+ return s;
2271
+ }
2272
+ const Qo = () => `
2273
+ window.${zo} = ${Ko}
2274
+ window.${vt} = ${jo}
2275
+ window.${St} = ${qo}
2276
+ `, Tt = $ === "react", Yo = (e, t, n) => `window.${vt}(${JSON.stringify(e)}, "${t}", ${Tt}${n ? `, "${n}"` : ""})`, Xo = (e, t, n) => `window.${St}(${JSON.stringify(e)}, "${t}", ${Tt}${n ? `, "${n}"` : ""})`, pe = {
2123
2277
  "@type": "@builder.io/sdk:Element",
2124
2278
  layerName: "Accordion item title",
2125
2279
  responsiveStyles: {
@@ -2148,7 +2302,7 @@ const Do = /* @__PURE__ */ b(Oo, [["render", Uo]]), ie = {
2148
2302
  }
2149
2303
  }
2150
2304
  }]
2151
- }, ae = {
2305
+ }, me = {
2152
2306
  "@type": "@builder.io/sdk:Element",
2153
2307
  layerName: "Accordion item detail",
2154
2308
  responsiveStyles: {
@@ -2179,7 +2333,7 @@ const Do = /* @__PURE__ */ b(Oo, [["render", Uo]]), ie = {
2179
2333
  }
2180
2334
  }
2181
2335
  }]
2182
- }, Fo = {
2336
+ }, _o = {
2183
2337
  name: "Builder:Accordion",
2184
2338
  canHaveChildren: !0,
2185
2339
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -2196,19 +2350,19 @@ const Do = /* @__PURE__ */ b(Oo, [["render", Uo]]), ie = {
2196
2350
  name: "title",
2197
2351
  type: "uiBlocks",
2198
2352
  hideFromUI: !0,
2199
- defaultValue: [ie]
2353
+ defaultValue: [pe]
2200
2354
  }, {
2201
2355
  name: "detail",
2202
2356
  type: "uiBlocks",
2203
2357
  hideFromUI: !0,
2204
- defaultValue: [ae]
2358
+ defaultValue: [me]
2205
2359
  }],
2206
2360
  defaultValue: [{
2207
- title: [ie],
2208
- detail: [ae]
2361
+ title: [pe],
2362
+ detail: [me]
2209
2363
  }, {
2210
- title: [ie],
2211
- detail: [ae]
2364
+ title: [pe],
2365
+ detail: [me]
2212
2366
  }],
2213
2367
  showIf: (e) => !e.get("useChildrenForItems")
2214
2368
  }, {
@@ -2243,9 +2397,9 @@ const Do = /* @__PURE__ */ b(Oo, [["render", Uo]]), ie = {
2243
2397
  builderComponents: !0,
2244
2398
  builderLinkComponent: !0
2245
2399
  }
2246
- }, Lo = (e) => e.toString(), Mo = g({
2400
+ }, Zo = (e) => e.toString(), er = y({
2247
2401
  name: "builder-accordion",
2248
- components: { Blocks: H },
2402
+ components: { Blocks: q },
2249
2403
  props: [
2250
2404
  "grid",
2251
2405
  "oneAtATime",
@@ -2257,7 +2411,7 @@ const Do = /* @__PURE__ */ b(Oo, [["render", Uo]]), ie = {
2257
2411
  "builderLinkComponent"
2258
2412
  ],
2259
2413
  data() {
2260
- return { open: [], convertOrderNumberToString: Lo };
2414
+ return { open: [], convertOrderNumberToString: Zo };
2261
2415
  },
2262
2416
  computed: {
2263
2417
  onlyOneAtATime() {
@@ -2303,11 +2457,11 @@ const Do = /* @__PURE__ */ b(Oo, [["render", Uo]]), ie = {
2303
2457
  continue;
2304
2458
  const i = r.getBoundingClientRect();
2305
2459
  if (i.left > s.left) {
2306
- const l = parseInt(
2460
+ const a = parseInt(
2307
2461
  r.getAttribute("data-index") || "",
2308
2462
  10
2309
2463
  );
2310
- isNaN(l) || (s = i, e = l);
2464
+ isNaN(a) || (s = i, e = a);
2311
2465
  } else
2312
2466
  break;
2313
2467
  }
@@ -2338,53 +2492,53 @@ const Do = /* @__PURE__ */ b(Oo, [["render", Uo]]), ie = {
2338
2492
  this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
2339
2493
  }
2340
2494
  }
2341
- }), Ho = ["data-index", "onClick"];
2342
- function Ko(e, t, n, o, r, s) {
2495
+ }), tr = ["data-index", "onClick"];
2496
+ function nr(e, t, n, o, r, s) {
2343
2497
  const i = k("Blocks");
2344
- return c(), p("div", {
2498
+ return d(), h("div", {
2345
2499
  class: "builder-accordion",
2346
- style: U(e.accordionStyles)
2500
+ style: j(e.accordionStyles)
2347
2501
  }, [
2348
- (c(!0), p($, null, N(e.items, (l, a) => (c(), p($, { key: a }, [
2349
- M("div", {
2350
- class: J(e.getAccordionTitleClassName(a)),
2351
- style: U({
2502
+ (d(!0), h(I, null, L(e.items, (a, l) => (d(), h(I, { key: l }, [
2503
+ z("div", {
2504
+ class: ee(e.getAccordionTitleClassName(l)),
2505
+ style: j({
2352
2506
  ...e.accordionTitleStyles,
2353
2507
  ...e.grid && {
2354
2508
  width: e.gridRowWidth,
2355
- order: e.openGridItemOrder !== null ? e.convertOrderNumberToString(a) : e.convertOrderNumberToString(a + 1)
2509
+ order: e.openGridItemOrder !== null ? e.convertOrderNumberToString(l) : e.convertOrderNumberToString(l + 1)
2356
2510
  }
2357
2511
  }),
2358
- "data-index": a,
2359
- onClick: async (u) => e.onClick(a)
2512
+ "data-index": l,
2513
+ onClick: async (u) => e.onClick(l)
2360
2514
  }, [
2361
- B(i, {
2362
- blocks: l.title,
2363
- path: `items.${a}.title`,
2515
+ E(i, {
2516
+ blocks: a.title,
2517
+ path: `items.${l}.title`,
2364
2518
  parent: e.builderBlock.id,
2365
2519
  context: e.builderContext,
2366
2520
  registeredComponents: e.builderComponents,
2367
2521
  linkComponent: e.builderLinkComponent
2368
2522
  }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
2369
- ], 14, Ho),
2370
- e.open.includes(a) ? (c(), p("div", {
2523
+ ], 14, tr),
2524
+ e.open.includes(l) ? (d(), h("div", {
2371
2525
  key: 0,
2372
- class: J(e.getAccordionDetailClassName(a)),
2373
- style: U(e.accordionDetailStyles)
2526
+ class: ee(e.getAccordionDetailClassName(l)),
2527
+ style: j(e.accordionDetailStyles)
2374
2528
  }, [
2375
- B(i, {
2376
- blocks: l.detail,
2377
- path: `items.${a}.detail`,
2529
+ E(i, {
2530
+ blocks: a.detail,
2531
+ path: `items.${l}.detail`,
2378
2532
  parent: e.builderBlock.id,
2379
2533
  context: e.builderContext,
2380
2534
  registeredComponents: e.builderComponents,
2381
2535
  linkComponent: e.builderLinkComponent
2382
2536
  }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
2383
- ], 6)) : S("", !0)
2537
+ ], 6)) : C("", !0)
2384
2538
  ], 64))), 128))
2385
2539
  ], 4);
2386
2540
  }
2387
- const jo = /* @__PURE__ */ b(Mo, [["render", Ko]]), zo = {
2541
+ const or = /* @__PURE__ */ v(er, [["render", nr]]), rr = {
2388
2542
  name: "Core:Button",
2389
2543
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
2390
2544
  defaultStyles: {
@@ -2420,7 +2574,7 @@ const jo = /* @__PURE__ */ b(Mo, [["render", Ko]]), zo = {
2420
2574
  shouldReceiveBuilderProps: {
2421
2575
  builderLinkComponent: !0
2422
2576
  }
2423
- }, qo = {
2577
+ }, ir = {
2424
2578
  // TODO: ways to statically preprocess JSON for references, functions, etc
2425
2579
  name: "Columns",
2426
2580
  isRSC: !0,
@@ -2599,7 +2753,7 @@ const jo = /* @__PURE__ */ b(Mo, [["render", Ko]]), zo = {
2599
2753
  });
2600
2754
  }
2601
2755
  const n = e.get("columns");
2602
- 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();
2756
+ Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((s) => !s.get("width")) || n.reduce((a, l) => a + l.get("width"), 0) !== 100) && t();
2603
2757
  }
2604
2758
  }, {
2605
2759
  name: "space",
@@ -2627,13 +2781,13 @@ const jo = /* @__PURE__ */ b(Mo, [["render", Ko]]), zo = {
2627
2781
  builderComponents: !0,
2628
2782
  builderLinkComponent: !0
2629
2783
  }
2630
- }, Jo = {
2784
+ }, sr = {
2631
2785
  name: "Fragment",
2632
2786
  static: !0,
2633
2787
  hidden: !0,
2634
2788
  canHaveChildren: !0,
2635
2789
  noWrap: !0
2636
- }, we = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], Go = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], Yo = {
2790
+ }, Ae = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], ar = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], lr = {
2637
2791
  name: "Image",
2638
2792
  static: !0,
2639
2793
  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",
@@ -2648,22 +2802,22 @@ const jo = /* @__PURE__ */ b(Mo, [["render", Ko]]), zo = {
2648
2802
  name: "image",
2649
2803
  type: "file",
2650
2804
  bubble: !0,
2651
- allowedFileTypes: we,
2805
+ allowedFileTypes: Ae,
2652
2806
  required: !0,
2653
2807
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
2654
2808
  onChange: (e) => {
2655
2809
  e.delete("srcset"), e.delete("noWebp");
2656
- function n(i, l = 6e4) {
2657
- return new Promise((a, u) => {
2658
- const h = document.createElement("img");
2659
- let m = !1;
2660
- h.onload = () => {
2661
- m = !0, a(h);
2662
- }, h.addEventListener("error", (d) => {
2663
- console.warn("Image load failed", d.error), u(d.error);
2664
- }), h.src = i, setTimeout(() => {
2665
- m || u(new Error("Image load timed out"));
2666
- }, l);
2810
+ function n(i, a = 6e4) {
2811
+ return new Promise((l, u) => {
2812
+ const p = document.createElement("img");
2813
+ let f = !1;
2814
+ p.onload = () => {
2815
+ f = !0, l(p);
2816
+ }, p.addEventListener("error", (c) => {
2817
+ console.warn("Image load failed", c.error), u(c.error);
2818
+ }), p.src = i, setTimeout(() => {
2819
+ f || u(new Error("Image load timed out"));
2820
+ }, a);
2667
2821
  });
2668
2822
  }
2669
2823
  function o(i) {
@@ -2674,8 +2828,8 @@ const jo = /* @__PURE__ */ b(Mo, [["render", Ko]]), zo = {
2674
2828
  i.type.includes("svg") && e.set("noWebp", !0);
2675
2829
  }), r && (!s || s === 0.7041))
2676
2830
  return n(r).then((i) => {
2677
- const l = e.get("aspectRatio");
2678
- 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));
2831
+ const a = e.get("aspectRatio");
2832
+ e.get("image") === r && (!a || a === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
2679
2833
  });
2680
2834
  }
2681
2835
  }, {
@@ -2745,9 +2899,45 @@ const jo = /* @__PURE__ */ b(Mo, [["render", Ko]]), zo = {
2745
2899
  shouldReceiveBuilderProps: {
2746
2900
  builderBlock: !0
2747
2901
  }
2748
- }, bt = g({
2902
+ }, cr = {
2903
+ name: "PersonalizationContainer",
2904
+ shouldReceiveBuilderProps: {
2905
+ builderBlock: !0,
2906
+ builderContext: !0,
2907
+ builderComponents: !0
2908
+ },
2909
+ noWrap: !0,
2910
+ image: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F37229ed30d8c41dfb10b8cca1992053a",
2911
+ canHaveChildren: !0,
2912
+ inputs: [{
2913
+ name: "variants",
2914
+ defaultValue: [],
2915
+ behavior: "personalizationVariantList",
2916
+ type: "list",
2917
+ subFields: [{
2918
+ name: "name",
2919
+ type: "text"
2920
+ }, {
2921
+ name: "query",
2922
+ friendlyName: "Targeting rules",
2923
+ type: "BuilderQuery",
2924
+ defaultValue: []
2925
+ }, {
2926
+ name: "startDate",
2927
+ type: "date"
2928
+ }, {
2929
+ name: "endDate",
2930
+ type: "date"
2931
+ }, {
2932
+ name: "blocks",
2933
+ type: "uiBlocks",
2934
+ hideFromUI: !0,
2935
+ defaultValue: []
2936
+ }]
2937
+ }]
2938
+ }, Be = y({
2749
2939
  render() {
2750
- return Ue("script", {
2940
+ return Ke("script", {
2751
2941
  innerHTML: this.scriptStr,
2752
2942
  "data-id": this.id,
2753
2943
  nonce: this.nonce
@@ -2755,7 +2945,217 @@ const jo = /* @__PURE__ */ b(Mo, [["render", Ko]]), zo = {
2755
2945
  },
2756
2946
  name: "inlined-script",
2757
2947
  props: ["scriptStr", "id", "nonce"]
2758
- }), Xo = {
2948
+ }), dr = y({
2949
+ name: "builder-personalization-container",
2950
+ components: {
2951
+ Blocks: q,
2952
+ InlinedStyles: de,
2953
+ InlinedScript: Be
2954
+ },
2955
+ props: [
2956
+ "builderContext",
2957
+ "variants",
2958
+ "builderBlock",
2959
+ "attributes",
2960
+ "previewingIndex",
2961
+ "builderComponents"
2962
+ ],
2963
+ data() {
2964
+ var e, t, n, o, r, s, i;
2965
+ return {
2966
+ userAttributes: ae.getUserAttributes(),
2967
+ scriptStr: Yo(
2968
+ this.variants,
2969
+ ((e = this.builderBlock) == null ? void 0 : e.id) || "none",
2970
+ (n = (t = this.builderContext) == null ? void 0 : t.rootState) == null ? void 0 : n.locale
2971
+ ),
2972
+ updateVisibilityStylesScript: Xo(
2973
+ this.variants,
2974
+ ((o = this.builderBlock) == null ? void 0 : o.id) || "none",
2975
+ (s = (r = this.builderContext) == null ? void 0 : r.rootState) == null ? void 0 : s.locale
2976
+ ),
2977
+ unsubscribers: [],
2978
+ shouldRenderVariants: Go(
2979
+ this.variants,
2980
+ J((i = this.builderContext) == null ? void 0 : i.canTrack)
2981
+ ),
2982
+ shouldResetVariants: !1,
2983
+ TARGET: $,
2984
+ DEFAULT_INDEX: oe,
2985
+ SDKS_REQUIRING_RESET_APPROACH: Ct
2986
+ };
2987
+ },
2988
+ mounted() {
2989
+ var t;
2990
+ this.shouldResetVariants = !0;
2991
+ const e = ae.subscribeOnUserAttributesChange(
2992
+ (n) => {
2993
+ this.userAttributes = n;
2994
+ },
2995
+ {
2996
+ fireImmediately: $ === "qwik"
2997
+ }
2998
+ );
2999
+ if (!(P() || Te())) {
3000
+ const n = this.filteredVariants[0];
3001
+ this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
3002
+ new CustomEvent("builder.variantLoaded", {
3003
+ detail: {
3004
+ variant: n || oe,
3005
+ content: (t = this.builderContext) == null ? void 0 : t.content
3006
+ },
3007
+ bubbles: !0
3008
+ })
3009
+ ), new IntersectionObserver((r) => {
3010
+ r.forEach((s) => {
3011
+ var i;
3012
+ s.isIntersecting && this.$refs.rootRef && this.$refs.rootRef.dispatchEvent(
3013
+ new CustomEvent("builder.variantDisplayed", {
3014
+ detail: {
3015
+ variant: n || oe,
3016
+ content: (i = this.builderContext) == null ? void 0 : i.content
3017
+ },
3018
+ bubbles: !0
3019
+ })
3020
+ );
3021
+ });
3022
+ }).observe(this.$refs.rootRef));
3023
+ }
3024
+ this.unsubscribers.push(e);
3025
+ },
3026
+ unmounted() {
3027
+ this.unsubscribers.forEach((e) => e());
3028
+ },
3029
+ computed: {
3030
+ attrs() {
3031
+ return {
3032
+ ...W(this.attributes, "v-on:", !1),
3033
+ ...W(this.attributes, "v-on:", !0),
3034
+ [G()]: `builder-personalization-container ${this.attributes[G()] || ""}`
3035
+ };
3036
+ },
3037
+ filteredVariants() {
3038
+ return (this.variants || []).filter((e) => {
3039
+ var t, n, o, r;
3040
+ return Mo(
3041
+ {
3042
+ ...(n = (t = this.builderContext) == null ? void 0 : t.rootState) != null && n.locale ? {
3043
+ locale: (r = (o = this.builderContext) == null ? void 0 : o.rootState) == null ? void 0 : r.locale
3044
+ } : {},
3045
+ ...this.userAttributes
3046
+ },
3047
+ e.query,
3048
+ e.startDate,
3049
+ e.endDate
3050
+ );
3051
+ });
3052
+ },
3053
+ blocksToRender() {
3054
+ var e;
3055
+ return Jo({
3056
+ variants: this.variants,
3057
+ fallbackBlocks: (e = this.builderBlock) == null ? void 0 : e.children,
3058
+ isHydrated: this.shouldResetVariants,
3059
+ filteredVariants: this.filteredVariants,
3060
+ previewingIndex: this.previewingIndex
3061
+ });
3062
+ },
3063
+ hideVariantsStyleString() {
3064
+ return (this.variants || []).map(
3065
+ (e, t) => {
3066
+ var n;
3067
+ return `div[data-variant-id="${(n = this.builderBlock) == null ? void 0 : n.id}-${t}"] { display: none !important; } `;
3068
+ }
3069
+ ).join("");
3070
+ }
3071
+ }
3072
+ });
3073
+ function ur(e, t, n, o, r, s) {
3074
+ var u, p, f, c, m, b, g, A, F, B;
3075
+ const i = k("Blocks"), a = k("InlinedStyles"), l = k("InlinedScript");
3076
+ return d(), h("div", w({ ref: "rootRef" }, e.attrs), [
3077
+ e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), S(i, {
3078
+ key: 0,
3079
+ blocks: e.blocksToRender.blocks,
3080
+ parent: (u = e.builderBlock) == null ? void 0 : u.id,
3081
+ path: e.blocksToRender.path,
3082
+ context: e.builderContext,
3083
+ registeredComponents: e.builderComponents,
3084
+ BlocksWrapperProps: {
3085
+ ...(p = e.builderContext) == null ? void 0 : p.BlocksWrapperProps,
3086
+ "data-variant-id": `${(f = e.builderBlock) == null ? void 0 : f.id}-${e.blocksToRender.index}`
3087
+ }
3088
+ }, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) : C("", !0),
3089
+ !e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), h(I, { key: 1 }, [
3090
+ e.shouldRenderVariants ? (d(), h(I, { key: 0 }, [
3091
+ E(a, {
3092
+ nonce: ((c = e.builderContext) == null ? void 0 : c.nonce) || "",
3093
+ styles: e.hideVariantsStyleString,
3094
+ id: `variants-styles-${(m = e.builderBlock) == null ? void 0 : m.id}`
3095
+ }, null, 8, ["nonce", "styles", "id"]),
3096
+ E(l, {
3097
+ nonce: ((b = e.builderContext) == null ? void 0 : b.nonce) || "",
3098
+ scriptStr: e.updateVisibilityStylesScript,
3099
+ id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
3100
+ }, null, 8, ["nonce", "scriptStr", "id"]),
3101
+ (d(!0), h(I, null, L(e.variants, (T, x) => {
3102
+ var H, Q, Y, D;
3103
+ return d(), S(i, {
3104
+ key: `${(H = e.builderBlock) == null ? void 0 : H.id}-${x}`,
3105
+ BlocksWrapperProps: {
3106
+ ...(Q = e.builderContext) == null ? void 0 : Q.BlocksWrapperProps,
3107
+ "aria-hidden": !0,
3108
+ hidden: !0,
3109
+ "data-variant-id": `${(Y = e.builderBlock) == null ? void 0 : Y.id}-${x}`
3110
+ },
3111
+ blocks: T.blocks,
3112
+ parent: (D = e.builderBlock) == null ? void 0 : D.id,
3113
+ path: `component.options.variants.${x}.blocks`,
3114
+ context: e.builderContext,
3115
+ registeredComponents: e.builderComponents
3116
+ }, {
3117
+ default: U(() => {
3118
+ var M, Ve;
3119
+ return [
3120
+ E(l, {
3121
+ nonce: ((M = e.builderContext) == null ? void 0 : M.nonce) || "",
3122
+ scriptStr: e.scriptStr,
3123
+ id: `variants-script-${(Ve = e.builderBlock) == null ? void 0 : Ve.id}-${x}`
3124
+ }, null, 8, ["nonce", "scriptStr", "id"])
3125
+ ];
3126
+ }),
3127
+ _: 2
3128
+ }, 1032, ["BlocksWrapperProps", "blocks", "parent", "path", "context", "registeredComponents"]);
3129
+ }), 128))
3130
+ ], 64)) : C("", !0),
3131
+ E(i, {
3132
+ blocks: e.blocksToRender.blocks,
3133
+ parent: (A = e.builderBlock) == null ? void 0 : A.id,
3134
+ path: e.blocksToRender.path,
3135
+ context: e.builderContext,
3136
+ registeredComponents: e.builderComponents,
3137
+ BlocksWrapperProps: {
3138
+ ...(F = e.builderContext) == null ? void 0 : F.BlocksWrapperProps,
3139
+ "data-variant-id": `${(B = e.builderBlock) == null ? void 0 : B.id}-${e.blocksToRender.index}`
3140
+ }
3141
+ }, {
3142
+ default: U(() => {
3143
+ var T, x;
3144
+ return [
3145
+ e.shouldRenderVariants ? (d(), S(l, {
3146
+ key: 0,
3147
+ nonce: ((T = e.builderContext) == null ? void 0 : T.nonce) || "",
3148
+ scriptStr: e.scriptStr,
3149
+ id: `variants-script-${(x = e.builderBlock) == null ? void 0 : x.id}-${e.DEFAULT_INDEX}`
3150
+ }, null, 8, ["nonce", "scriptStr", "id"])) : C("", !0)
3151
+ ];
3152
+ }),
3153
+ _: 1
3154
+ }, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])
3155
+ ], 64)) : C("", !0)
3156
+ ], 16);
3157
+ }
3158
+ const pr = /* @__PURE__ */ v(dr, [["render", ur]]), mr = {
2759
3159
  name: "Core:Section",
2760
3160
  static: !0,
2761
3161
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -2794,7 +3194,7 @@ const jo = /* @__PURE__ */ b(Mo, [["render", Ko]]), zo = {
2794
3194
  }
2795
3195
  }
2796
3196
  }]
2797
- }, Qo = {
3197
+ }, hr = {
2798
3198
  name: "Slot",
2799
3199
  isRSC: !0,
2800
3200
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -2811,24 +3211,24 @@ const jo = /* @__PURE__ */ b(Mo, [["render", Ko]]), zo = {
2811
3211
  builderContext: !0,
2812
3212
  builderComponents: !0
2813
3213
  }
2814
- }, Zo = g({
3214
+ }, fr = y({
2815
3215
  name: "builder-slot",
2816
- components: { Blocks: H },
3216
+ components: { Blocks: q },
2817
3217
  props: ["builderContext", "name", "builderComponents"]
2818
3218
  });
2819
- function _o(e, t, n, o, r, s) {
2820
- var l, a, u;
3219
+ function br(e, t, n, o, r, s) {
3220
+ var a, l, u;
2821
3221
  const i = k("Blocks");
2822
- return c(), p("div", C(
3222
+ return d(), h("div", w(
2823
3223
  { style: {
2824
3224
  pointerEvents: "auto"
2825
3225
  } },
2826
- !((l = e.builderContext.context) != null && l.symbolId) && {
3226
+ !((a = e.builderContext.context) != null && a.symbolId) && {
2827
3227
  "builder-slot": e.name
2828
3228
  }
2829
3229
  ), [
2830
- B(i, {
2831
- parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
3230
+ E(i, {
3231
+ parent: (l = e.builderContext.context) == null ? void 0 : l.symbolId,
2832
3232
  path: `symbol.data.${e.name}`,
2833
3233
  context: e.builderContext,
2834
3234
  registeredComponents: e.builderComponents,
@@ -2836,7 +3236,7 @@ function _o(e, t, n, o, r, s) {
2836
3236
  }, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
2837
3237
  ], 16);
2838
3238
  }
2839
- const er = /* @__PURE__ */ b(Zo, [["render", _o]]), tr = {
3239
+ const gr = /* @__PURE__ */ v(fr, [["render", br]]), yr = {
2840
3240
  name: "Symbol",
2841
3241
  noWrap: !0,
2842
3242
  static: !0,
@@ -2875,7 +3275,7 @@ const er = /* @__PURE__ */ b(Zo, [["render", _o]]), tr = {
2875
3275
  builderComponents: !0,
2876
3276
  builderLinkComponent: !0
2877
3277
  }
2878
- }, le = {
3278
+ }, he = {
2879
3279
  "@type": "@builder.io/sdk:Element",
2880
3280
  responsiveStyles: {
2881
3281
  large: {
@@ -2897,7 +3297,7 @@ const er = /* @__PURE__ */ b(Zo, [["render", _o]]), tr = {
2897
3297
  text: "New tab"
2898
3298
  }
2899
3299
  }
2900
- }, ce = {
3300
+ }, fe = {
2901
3301
  "@type": "@builder.io/sdk:Element",
2902
3302
  responsiveStyles: {
2903
3303
  large: {
@@ -2913,7 +3313,7 @@ const er = /* @__PURE__ */ b(Zo, [["render", _o]]), tr = {
2913
3313
  text: "New tab content "
2914
3314
  }
2915
3315
  }
2916
- }, nr = {
3316
+ }, vr = {
2917
3317
  name: "Builder: Tabs",
2918
3318
  inputs: [{
2919
3319
  name: "tabs",
@@ -2923,16 +3323,16 @@ const er = /* @__PURE__ */ b(Zo, [["render", _o]]), tr = {
2923
3323
  name: "label",
2924
3324
  type: "uiBlocks",
2925
3325
  hideFromUI: !0,
2926
- defaultValue: [le]
3326
+ defaultValue: [he]
2927
3327
  }, {
2928
3328
  name: "content",
2929
3329
  type: "uiBlocks",
2930
3330
  hideFromUI: !0,
2931
- defaultValue: [ce]
3331
+ defaultValue: [fe]
2932
3332
  }],
2933
3333
  defaultValue: [{
2934
3334
  label: [{
2935
- ...le,
3335
+ ...he,
2936
3336
  component: {
2937
3337
  name: "Text",
2938
3338
  options: {
@@ -2941,7 +3341,7 @@ const er = /* @__PURE__ */ b(Zo, [["render", _o]]), tr = {
2941
3341
  }
2942
3342
  }],
2943
3343
  content: [{
2944
- ...ce,
3344
+ ...fe,
2945
3345
  component: {
2946
3346
  name: "Text",
2947
3347
  options: {
@@ -2951,7 +3351,7 @@ const er = /* @__PURE__ */ b(Zo, [["render", _o]]), tr = {
2951
3351
  }]
2952
3352
  }, {
2953
3353
  label: [{
2954
- ...le,
3354
+ ...he,
2955
3355
  component: {
2956
3356
  name: "Text",
2957
3357
  options: {
@@ -2960,7 +3360,7 @@ const er = /* @__PURE__ */ b(Zo, [["render", _o]]), tr = {
2960
3360
  }
2961
3361
  }],
2962
3362
  content: [{
2963
- ...ce,
3363
+ ...fe,
2964
3364
  component: {
2965
3365
  name: "Text",
2966
3366
  options: {
@@ -3016,9 +3416,9 @@ const er = /* @__PURE__ */ b(Zo, [["render", _o]]), tr = {
3016
3416
  builderComponents: !0,
3017
3417
  builderLinkComponent: !0
3018
3418
  }
3019
- }, or = g({
3419
+ }, Sr = y({
3020
3420
  name: "builder-tabs",
3021
- components: { Blocks: H },
3421
+ components: { Blocks: q },
3022
3422
  props: [
3023
3423
  "defaultActiveTab",
3024
3424
  "tabs",
@@ -3041,39 +3441,39 @@ const er = /* @__PURE__ */ b(Zo, [["render", _o]]), tr = {
3041
3441
  e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
3042
3442
  }
3043
3443
  }
3044
- }), rr = ["onClick"], sr = { key: 0 };
3045
- function ir(e, t, n, o, r, s) {
3444
+ }), kr = ["onClick"], Cr = { key: 0 };
3445
+ function Tr(e, t, n, o, r, s) {
3046
3446
  const i = k("Blocks");
3047
- return c(), p("div", null, [
3048
- M("div", {
3447
+ return d(), h("div", null, [
3448
+ z("div", {
3049
3449
  class: "builder-tabs-wrap",
3050
- style: U({
3450
+ style: j({
3051
3451
  display: "flex",
3052
3452
  flexDirection: "row",
3053
3453
  justifyContent: e.tabHeaderLayout || "flex-start",
3054
3454
  overflow: "auto"
3055
3455
  })
3056
3456
  }, [
3057
- (c(!0), p($, null, N(e.tabs, (l, a) => (c(), p("span", {
3058
- key: a,
3059
- class: J(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
3060
- style: U({
3061
- ...e.activeTab === a ? e.activeTabStyle : {}
3457
+ (d(!0), h(I, null, L(e.tabs, (a, l) => (d(), h("span", {
3458
+ key: l,
3459
+ class: ee(`builder-tab-wrap ${e.activeTab === l ? "builder-tab-active" : ""}`),
3460
+ style: j({
3461
+ ...e.activeTab === l ? e.activeTabStyle : {}
3062
3462
  }),
3063
- onClick: async (u) => e.onClick(a)
3463
+ onClick: async (u) => e.onClick(l)
3064
3464
  }, [
3065
- B(i, {
3465
+ E(i, {
3066
3466
  parent: e.builderBlock.id,
3067
- path: `tabs.${a}.label`,
3068
- blocks: l.label,
3467
+ path: `tabs.${l}.label`,
3468
+ blocks: a.label,
3069
3469
  context: e.builderContext,
3070
3470
  registeredComponents: e.builderComponents,
3071
3471
  linkComponent: e.builderLinkComponent
3072
3472
  }, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
3073
- ], 14, rr))), 128))
3473
+ ], 14, kr))), 128))
3074
3474
  ], 4),
3075
- e.activeTabContent(e.activeTab) ? (c(), p("div", sr, [
3076
- B(i, {
3475
+ e.activeTabContent(e.activeTab) ? (d(), h("div", Cr, [
3476
+ E(i, {
3077
3477
  parent: e.builderBlock.id,
3078
3478
  path: `tabs.${e.activeTab}.content`,
3079
3479
  blocks: e.activeTabContent(e.activeTab),
@@ -3081,10 +3481,10 @@ function ir(e, t, n, o, r, s) {
3081
3481
  registeredComponents: e.builderComponents,
3082
3482
  linkComponent: e.builderLinkComponent
3083
3483
  }, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
3084
- ])) : S("", !0)
3484
+ ])) : C("", !0)
3085
3485
  ]);
3086
3486
  }
3087
- const ar = /* @__PURE__ */ b(or, [["render", ir]]), lr = {
3487
+ const Ir = /* @__PURE__ */ v(Sr, [["render", Tr]]), wr = {
3088
3488
  shouldReceiveBuilderProps: {},
3089
3489
  name: "Text",
3090
3490
  static: !0,
@@ -3103,21 +3503,21 @@ const ar = /* @__PURE__ */ b(or, [["render", ir]]), lr = {
3103
3503
  height: "auto",
3104
3504
  textAlign: "center"
3105
3505
  }
3106
- }, cr = g({
3506
+ }, $r = y({
3107
3507
  name: "builder-text",
3108
3508
  props: ["text"]
3109
- }), dr = ["innerHTML"];
3110
- function ur(e, t, n, o, r, s) {
3509
+ }), Rr = ["innerHTML"];
3510
+ function Er(e, t, n, o, r, s) {
3111
3511
  var i;
3112
- return c(), p("div", {
3512
+ return d(), h("div", {
3113
3513
  class: "builder-text",
3114
3514
  innerHTML: ((i = e.text) == null ? void 0 : i.toString()) || "",
3115
3515
  style: {
3116
3516
  outline: "none"
3117
3517
  }
3118
- }, null, 8, dr);
3518
+ }, null, 8, Rr);
3119
3519
  }
3120
- const pr = /* @__PURE__ */ b(cr, [["render", ur]]), mr = {
3520
+ const Pr = /* @__PURE__ */ v($r, [["render", Er]]), Ar = {
3121
3521
  name: "Custom Code",
3122
3522
  static: !0,
3123
3523
  requiredPermissions: ["editCode"],
@@ -3139,7 +3539,7 @@ const pr = /* @__PURE__ */ b(cr, [["render", ur]]), mr = {
3139
3539
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
3140
3540
  advanced: !0
3141
3541
  }]
3142
- }, hr = g({
3542
+ }, Br = y({
3143
3543
  name: "builder-custom-code",
3144
3544
  props: ["code", "replaceNodes"],
3145
3545
  data() {
@@ -3151,7 +3551,7 @@ const pr = /* @__PURE__ */ b(cr, [["render", ur]]), mr = {
3151
3551
  watch: {
3152
3552
  onUpdateHook0: {
3153
3553
  handler() {
3154
- E() && setTimeout(() => {
3554
+ P() && setTimeout(() => {
3155
3555
  this.runScripts();
3156
3556
  }, 0);
3157
3557
  },
@@ -3189,7 +3589,7 @@ const pr = /* @__PURE__ */ b(cr, [["render", ur]]), mr = {
3189
3589
  try {
3190
3590
  this.scriptsRun.push(o.innerText), new Function(o.innerText)();
3191
3591
  } catch (r) {
3192
- P.warn(
3592
+ N.warn(
3193
3593
  "[BUILDER.IO] `CustomCode`: Error running script:",
3194
3594
  r
3195
3595
  );
@@ -3198,15 +3598,15 @@ const pr = /* @__PURE__ */ b(cr, [["render", ur]]), mr = {
3198
3598
  }
3199
3599
  }
3200
3600
  }
3201
- }), fr = ["innerHTML"];
3202
- function gr(e, t, n, o, r, s) {
3203
- return c(), p("div", {
3601
+ }), Vr = ["innerHTML"];
3602
+ function Nr(e, t, n, o, r, s) {
3603
+ return d(), h("div", {
3204
3604
  ref: "elementRef",
3205
- class: J("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
3605
+ class: ee("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
3206
3606
  innerHTML: e.code
3207
- }, null, 10, fr);
3607
+ }, null, 10, Vr);
3208
3608
  }
3209
- const br = /* @__PURE__ */ b(hr, [["render", gr]]), yr = {
3609
+ const Wr = /* @__PURE__ */ v(Br, [["render", Nr]]), xr = {
3210
3610
  name: "Embed",
3211
3611
  static: !0,
3212
3612
  inputs: [{
@@ -3221,7 +3621,7 @@ const br = /* @__PURE__ */ b(hr, [["render", gr]]), yr = {
3221
3621
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
3222
3622
  hideFromUI: !0
3223
3623
  }]
3224
- }, kr = ["text/javascript", "application/javascript", "application/ecmascript"], vr = (e) => kr.includes(e.type), Sr = g({
3624
+ }, Dr = ["text/javascript", "application/javascript", "application/ecmascript"], Or = (e) => Dr.includes(e.type), Ur = y({
3225
3625
  name: "builder-embed",
3226
3626
  props: ["content"],
3227
3627
  data() {
@@ -3254,24 +3654,24 @@ const br = /* @__PURE__ */ b(hr, [["render", gr]]), yr = {
3254
3654
  this.scriptsInserted.push(n.src);
3255
3655
  const o = document.createElement("script");
3256
3656
  o.async = !0, o.src = n.src, document.head.appendChild(o);
3257
- } else if (vr(n) && !this.scriptsRun.includes(n.innerText))
3657
+ } else if (Or(n) && !this.scriptsRun.includes(n.innerText))
3258
3658
  try {
3259
3659
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
3260
3660
  } catch (o) {
3261
- P.warn("[BUILDER.IO] `Embed`: Error running script:", o);
3661
+ N.warn("[BUILDER.IO] `Embed`: Error running script:", o);
3262
3662
  }
3263
3663
  }
3264
3664
  }
3265
3665
  }
3266
- }), Cr = ["innerHTML"];
3267
- function wr(e, t, n, o, r, s) {
3268
- return c(), p("div", {
3666
+ }), Fr = ["innerHTML"];
3667
+ function Lr(e, t, n, o, r, s) {
3668
+ return d(), h("div", {
3269
3669
  class: "builder-embed",
3270
3670
  ref: "elem",
3271
3671
  innerHTML: e.content
3272
- }, null, 8, Cr);
3672
+ }, null, 8, Fr);
3273
3673
  }
3274
- const Tr = /* @__PURE__ */ b(Sr, [["render", wr]]), Ir = {
3674
+ const Hr = /* @__PURE__ */ v(Ur, [["render", Lr]]), Mr = {
3275
3675
  name: "Form:Form",
3276
3676
  // editableTags: ['builder-form-error']
3277
3677
  defaults: {
@@ -3508,12 +3908,12 @@ const Tr = /* @__PURE__ */ b(Sr, [["render", wr]]), Ir = {
3508
3908
  builderComponents: !0,
3509
3909
  builderLinkComponent: !0
3510
3910
  }
3511
- }, $r = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Rr = () => {
3911
+ }, jr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Kr = () => {
3512
3912
  const e = process.env.NODE_ENV || "production";
3513
- return $r.includes(e) ? e : "production";
3514
- }, Er = g({
3913
+ return jr.includes(e) ? e : "production";
3914
+ }, qr = y({
3515
3915
  name: "builder-form-component",
3516
- components: { Blocks: H },
3916
+ components: { Blocks: q },
3517
3917
  props: [
3518
3918
  "builderContext",
3519
3919
  "previewState",
@@ -3539,7 +3939,7 @@ const Tr = /* @__PURE__ */ b(Sr, [["render", wr]]), Ir = {
3539
3939
  formState: "unsubmitted",
3540
3940
  responseData: null,
3541
3941
  formErrorMessage: "",
3542
- filterAttrs: V
3942
+ filterAttrs: W
3543
3943
  };
3544
3944
  },
3545
3945
  methods: {
@@ -3552,7 +3952,7 @@ const Tr = /* @__PURE__ */ b(Sr, [["render", wr]]), Ir = {
3552
3952
  this.builderContext.rootSetState ? (o = (n = this.builderContext).rootSetState) == null || o.call(n, t) : this.builderContext.rootState = t;
3553
3953
  },
3554
3954
  submissionState() {
3555
- return E() && this.previewState || this.formState;
3955
+ return P() && this.previewState || this.formState;
3556
3956
  },
3557
3957
  onSubmit(e) {
3558
3958
  var n;
@@ -3567,42 +3967,42 @@ const Tr = /* @__PURE__ */ b(Sr, [["render", wr]]), Ir = {
3567
3967
  e.preventDefault();
3568
3968
  const o = e.currentTarget || e.target, r = this.customHeaders || {};
3569
3969
  let s;
3570
- const i = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((d) => !!d.name).map((d) => {
3571
- let f;
3572
- const v = d.name;
3573
- if (d instanceof HTMLInputElement)
3574
- if (d.type === "radio") {
3575
- if (d.checked)
3576
- return f = d.name, {
3577
- key: v,
3578
- value: f
3970
+ const i = new FormData(o), a = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).map((c) => {
3971
+ let m;
3972
+ const b = c.name;
3973
+ if (c instanceof HTMLInputElement)
3974
+ if (c.type === "radio") {
3975
+ if (c.checked)
3976
+ return m = c.name, {
3977
+ key: b,
3978
+ value: m
3579
3979
  };
3580
- } else if (d.type === "checkbox")
3581
- f = d.checked;
3582
- else if (d.type === "number" || d.type === "range") {
3583
- const T = d.valueAsNumber;
3584
- isNaN(T) || (f = T);
3980
+ } else if (c.type === "checkbox")
3981
+ m = c.checked;
3982
+ else if (c.type === "number" || c.type === "range") {
3983
+ const g = c.valueAsNumber;
3984
+ isNaN(g) || (m = g);
3585
3985
  } else
3586
- d.type === "file" ? f = d.files : f = d.value;
3986
+ c.type === "file" ? m = c.files : m = c.value;
3587
3987
  else
3588
- f = d.value;
3988
+ m = c.value;
3589
3989
  return {
3590
- key: v,
3591
- value: f
3990
+ key: b,
3991
+ value: m
3592
3992
  };
3593
3993
  });
3594
- let a = this.contentType;
3595
- if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value: d }) => {
3596
- (d instanceof File || Array.isArray(d) && d[0] instanceof File || d instanceof FileList) && (a = "multipart/form-data");
3597
- }), a !== "application/json")
3994
+ let l = this.contentType;
3995
+ if (this.sendSubmissionsTo === "email" && (l = "multipart/form-data"), Array.from(a).forEach(({ value: c }) => {
3996
+ (c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (l = "multipart/form-data");
3997
+ }), l !== "application/json")
3598
3998
  s = i;
3599
3999
  else {
3600
- const d = {};
3601
- Array.from(l).forEach(({ value: f, key: v }) => {
3602
- ze(d, v, f);
3603
- }), s = JSON.stringify(d);
4000
+ const c = {};
4001
+ Array.from(a).forEach(({ value: m, key: b }) => {
4002
+ qe(c, b, m);
4003
+ }), s = JSON.stringify(c);
3604
4004
  }
3605
- a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
4005
+ l && l !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = l));
3606
4006
  const u = new CustomEvent("presubmit", {
3607
4007
  detail: {
3608
4008
  body: s
@@ -3610,97 +4010,116 @@ const Tr = /* @__PURE__ */ b(Sr, [["render", wr]]), Ir = {
3610
4010
  });
3611
4011
  if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(u), u.defaultPrevented))
3612
4012
  return;
3613
- this.formState = "sending";
3614
- const h = `${Rr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
4013
+ if (this.formState = "sending", this.sendSubmissionsTo === "email" && (this.sendSubmissionsToEmail === "your@email.com" || !this.sendSubmissionsToEmail)) {
4014
+ const c = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
4015
+ console.error(c), this.formState = "error", this.mergeNewRootState({
4016
+ formErrorMessage: c
4017
+ });
4018
+ return;
4019
+ }
4020
+ const p = `${Kr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
3615
4021
  this.sendSubmissionsToEmail || ""
3616
- )}&name=${encodeURIComponent(this.name || "")}`, m = this.sendSubmissionsTo === "email" ? h : this.action;
3617
- be(m), fetch(m, {
4022
+ )}&name=${encodeURIComponent(this.name || "")}`, f = this.sendSubmissionsTo === "email" ? p : this.action;
4023
+ we(f), fetch(f, {
3618
4024
  body: s,
3619
4025
  headers: r,
3620
4026
  method: this.method || "post"
3621
4027
  }).then(
3622
- async (d) => {
3623
- let f;
3624
- const v = d.headers.get("content-type");
3625
- if (v && v.indexOf("application/json") !== -1 ? f = await d.json() : f = await d.text(), !d.ok && this.errorMessagePath) {
3626
- let T = Fe(f, this.errorMessagePath);
3627
- T && (typeof T != "string" && (T = JSON.stringify(T)), this.formErrorMessage = T, this.mergeNewRootState({
3628
- formErrorMessage: T
3629
- }));
4028
+ async (c) => {
4029
+ var g, A;
4030
+ let m;
4031
+ const b = c.headers.get("content-type");
4032
+ if (b && b.indexOf("application/json") !== -1 ? m = await c.json() : m = await c.text(), !c.ok) {
4033
+ const F = new CustomEvent("submit:error", {
4034
+ detail: {
4035
+ error: m,
4036
+ status: c.status
4037
+ }
4038
+ });
4039
+ if ((g = this.$refs.formRef) != null && g.nativeElement && ((A = this.$refs.formRef) == null || A.nativeElement.dispatchEvent(
4040
+ F
4041
+ ), F.defaultPrevented))
4042
+ return;
4043
+ this.responseData = m, this.formState = "error";
4044
+ let B = this.errorMessagePath ? Je(m, this.errorMessagePath) : m.message || m.error || m;
4045
+ typeof B != "string" && (B = JSON.stringify(B)), this.formErrorMessage = B, this.mergeNewRootState({
4046
+ formErrorMessage: B
4047
+ });
4048
+ return;
3630
4049
  }
3631
- if (this.responseData = f, this.formState = d.ok ? "success" : "error", d.ok) {
3632
- const T = new CustomEvent("submit:success", {
4050
+ if (this.responseData = m, this.formState = c.ok ? "success" : "error", c.ok) {
4051
+ const F = new CustomEvent("submit:success", {
3633
4052
  detail: {
3634
- res: d,
3635
- body: f
4053
+ res: c,
4054
+ body: m
3636
4055
  }
3637
4056
  });
3638
4057
  if (this.$refs.formRef) {
3639
- if (this.$refs.formRef.dispatchEvent(T), T.defaultPrevented)
4058
+ if (this.$refs.formRef.dispatchEvent(F), F.defaultPrevented)
3640
4059
  return;
3641
4060
  this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
3642
4061
  }
3643
4062
  if (this.successUrl)
3644
4063
  if (this.$refs.formRef) {
3645
- const F = new CustomEvent("route", {
4064
+ const B = new CustomEvent("route", {
3646
4065
  detail: {
3647
4066
  url: this.successUrl
3648
4067
  }
3649
4068
  });
3650
- this.$refs.formRef.dispatchEvent(F), F.defaultPrevented || (location.href = this.successUrl);
4069
+ this.$refs.formRef.dispatchEvent(B), B.defaultPrevented || (location.href = this.successUrl);
3651
4070
  } else
3652
4071
  location.href = this.successUrl;
3653
4072
  }
3654
4073
  },
3655
- (d) => {
3656
- const f = new CustomEvent("submit:error", {
4074
+ (c) => {
4075
+ const m = new CustomEvent("submit:error", {
3657
4076
  detail: {
3658
- error: d
4077
+ error: c
3659
4078
  }
3660
4079
  });
3661
- this.$refs.formRef && (this.$refs.formRef.dispatchEvent(f), f.defaultPrevented) || (this.responseData = d, this.formState = "error");
4080
+ this.$refs.formRef && (this.$refs.formRef.dispatchEvent(m), m.defaultPrevented) || (this.responseData = c, this.formState = "error");
3662
4081
  }
3663
4082
  );
3664
4083
  }
3665
4084
  }
3666
4085
  }
3667
- }), Pr = ["validate", "action", "method", "name"], Br = {
4086
+ }), zr = ["validate", "action", "method", "name"], Gr = {
3668
4087
  key: 2,
3669
4088
  class: "builder-form-error-text pre-1hjwvu3r5mj"
3670
4089
  };
3671
- function Ar(e, t, n, o, r, s) {
4090
+ function Jr(e, t, n, o, r, s) {
3672
4091
  const i = k("Blocks");
3673
- return c(), p("form", C({
4092
+ return d(), h("form", w({
3674
4093
  validate: e.validate,
3675
4094
  ref: "formRef",
3676
4095
  action: !e.sendWithJs && e.action,
3677
4096
  method: e.method,
3678
4097
  name: e.name,
3679
- onSubmit: t[0] || (t[0] = async (l) => e.onSubmit(l))
3680
- }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3681
- A(e.$slots, "default", {}, void 0, !0),
3682
- e.submissionState() === "error" ? (c(), y(i, {
4098
+ onSubmit: t[0] || (t[0] = async (a) => e.onSubmit(a))
4099
+ }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4100
+ V(e.$slots, "default", {}, void 0, !0),
4101
+ e.submissionState() === "error" ? (d(), S(i, {
3683
4102
  key: 0,
3684
4103
  path: "errorMessage",
3685
4104
  blocks: e.errorMessage,
3686
4105
  context: e.builderContext
3687
- }, null, 8, ["blocks", "context"])) : S("", !0),
3688
- e.submissionState() === "sending" ? (c(), y(i, {
4106
+ }, null, 8, ["blocks", "context"])) : C("", !0),
4107
+ e.submissionState() === "sending" ? (d(), S(i, {
3689
4108
  key: 1,
3690
4109
  path: "sendingMessage",
3691
4110
  blocks: e.sendingMessage,
3692
4111
  context: e.builderContext
3693
- }, null, 8, ["blocks", "context"])) : S("", !0),
3694
- e.submissionState() === "error" && e.responseData ? (c(), p("pre", Br, ne(JSON.stringify(e.responseData, null, 2)), 1)) : S("", !0),
3695
- e.submissionState() === "success" ? (c(), y(i, {
4112
+ }, null, 8, ["blocks", "context"])) : C("", !0),
4113
+ e.submissionState() === "error" && e.responseData ? (d(), h("pre", Gr, le(JSON.stringify(e.responseData, null, 2)), 1)) : C("", !0),
4114
+ e.submissionState() === "success" ? (d(), S(i, {
3696
4115
  key: 3,
3697
4116
  path: "successMessage",
3698
4117
  blocks: e.successMessage,
3699
4118
  context: e.builderContext
3700
- }, null, 8, ["blocks", "context"])) : S("", !0)
3701
- ], 16, Pr);
4119
+ }, null, 8, ["blocks", "context"])) : C("", !0)
4120
+ ], 16, zr);
3702
4121
  }
3703
- const xr = /* @__PURE__ */ b(Er, [["render", Ar], ["__scopeId", "data-v-4ef43cdd"]]), Vr = {
4122
+ const Qr = /* @__PURE__ */ v(qr, [["render", Jr], ["__scopeId", "data-v-89aa89a6"]]), Yr = {
3704
4123
  name: "Form:Input",
3705
4124
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
3706
4125
  inputs: [
@@ -3751,7 +4170,7 @@ const xr = /* @__PURE__ */ b(Er, [["render", Ar], ["__scopeId", "data-v-4ef43cdd
3751
4170
  borderStyle: "solid",
3752
4171
  borderColor: "#ccc"
3753
4172
  }
3754
- }, Nr = g({
4173
+ }, Xr = y({
3755
4174
  name: "builder-form-input-component",
3756
4175
  props: [
3757
4176
  "attributes",
@@ -3763,11 +4182,11 @@ const xr = /* @__PURE__ */ b(Er, [["render", Ar], ["__scopeId", "data-v-4ef43cdd
3763
4182
  "required"
3764
4183
  ],
3765
4184
  data() {
3766
- return { isEditing: E, filterAttrs: V };
4185
+ return { isEditing: P, filterAttrs: W };
3767
4186
  }
3768
- }), Wr = ["placeholder", "type", "name", "value", "defaultValue", "required"];
3769
- function Or(e, t, n, o, r, s) {
3770
- return c(), p("input", C({
4187
+ }), _r = ["placeholder", "type", "name", "value", "defaultValue", "required"];
4188
+ function Zr(e, t, n, o, r, s) {
4189
+ return d(), h("input", w({
3771
4190
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
3772
4191
  placeholder: e.placeholder,
3773
4192
  type: e.type,
@@ -3775,9 +4194,9 @@ function Or(e, t, n, o, r, s) {
3775
4194
  value: e.value,
3776
4195
  defaultValue: e.defaultValue,
3777
4196
  required: e.required
3778
- }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Wr);
4197
+ }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, _r);
3779
4198
  }
3780
- const Ur = /* @__PURE__ */ b(Nr, [["render", Or]]), Dr = {
4199
+ const ei = /* @__PURE__ */ v(Xr, [["render", Zr]]), ti = {
3781
4200
  name: "Form:Select",
3782
4201
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
3783
4202
  defaultStyles: {
@@ -3819,28 +4238,28 @@ const Ur = /* @__PURE__ */ b(Nr, [["render", Or]]), Dr = {
3819
4238
  }],
3820
4239
  static: !0,
3821
4240
  noWrap: !0
3822
- }, Fr = g({
4241
+ }, ni = y({
3823
4242
  name: "builder-select-component",
3824
4243
  props: ["attributes", "value", "defaultValue", "name", "required", "options"],
3825
4244
  data() {
3826
- return { isEditing: E, filterAttrs: V };
4245
+ return { isEditing: P, filterAttrs: W };
3827
4246
  }
3828
- }), Lr = ["value", "defaultValue", "name", "required"], Mr = ["value"];
3829
- function Hr(e, t, n, o, r, s) {
3830
- return c(), p("select", C({
4247
+ }), oi = ["value", "defaultValue", "name", "required"], ri = ["value"];
4248
+ function ii(e, t, n, o, r, s) {
4249
+ return d(), h("select", w({
3831
4250
  value: e.value,
3832
4251
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
3833
4252
  defaultValue: e.defaultValue,
3834
4253
  name: e.name,
3835
4254
  required: e.required
3836
- }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3837
- (c(!0), p($, null, N(e.options, (i, l) => (c(), p("option", {
3838
- key: `${i.name}-${l}`,
4255
+ }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4256
+ (d(!0), h(I, null, L(e.options, (i, a) => (d(), h("option", {
4257
+ key: `${i.name}-${a}`,
3839
4258
  value: i.value
3840
- }, ne(i.name || i.value), 9, Mr))), 128))
3841
- ], 16, Lr);
4259
+ }, le(i.name || i.value), 9, ri))), 128))
4260
+ ], 16, oi);
3842
4261
  }
3843
- const Kr = /* @__PURE__ */ b(Fr, [["render", Hr]]), jr = {
4262
+ const si = /* @__PURE__ */ v(ni, [["render", ii]]), ai = {
3844
4263
  name: "Form:SubmitButton",
3845
4264
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
3846
4265
  defaultStyles: {
@@ -3865,17 +4284,17 @@ const Kr = /* @__PURE__ */ b(Fr, [["render", Hr]]), jr = {
3865
4284
  // that only shows if advanced setting is flipped
3866
4285
  // TODO: defaultChildren
3867
4286
  // canHaveChildren: true,
3868
- }, zr = g({
4287
+ }, li = y({
3869
4288
  name: "builder-submit-button",
3870
4289
  props: ["attributes", "text"],
3871
4290
  data() {
3872
- return { filterAttrs: V };
4291
+ return { filterAttrs: W };
3873
4292
  }
3874
4293
  });
3875
- function qr(e, t, n, o, r, s) {
3876
- return c(), p("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ne(e.text), 17);
4294
+ function ci(e, t, n, o, r, s) {
4295
+ return d(), h("button", w({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), le(e.text), 17);
3877
4296
  }
3878
- const Jr = /* @__PURE__ */ b(zr, [["render", qr]]), Gr = {
4297
+ const di = /* @__PURE__ */ v(li, [["render", ci]]), ui = {
3879
4298
  name: "Form:TextArea",
3880
4299
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
3881
4300
  inputs: [{
@@ -3911,7 +4330,7 @@ const Jr = /* @__PURE__ */ b(zr, [["render", qr]]), Gr = {
3911
4330
  },
3912
4331
  static: !0,
3913
4332
  noWrap: !0
3914
- }, Yr = g({
4333
+ }, pi = y({
3915
4334
  name: "builder-textarea",
3916
4335
  props: [
3917
4336
  "attributes",
@@ -3922,19 +4341,19 @@ const Jr = /* @__PURE__ */ b(zr, [["render", qr]]), Gr = {
3922
4341
  "required"
3923
4342
  ],
3924
4343
  data() {
3925
- return { filterAttrs: V };
4344
+ return { filterAttrs: W };
3926
4345
  }
3927
- }), Xr = ["placeholder", "name", "value", "defaultValue", "required"];
3928
- function Qr(e, t, n, o, r, s) {
3929
- return c(), p("textarea", C({
4346
+ }), mi = ["placeholder", "name", "value", "defaultValue", "required"];
4347
+ function hi(e, t, n, o, r, s) {
4348
+ return d(), h("textarea", w({
3930
4349
  placeholder: e.placeholder,
3931
4350
  name: e.name,
3932
4351
  value: e.value,
3933
4352
  defaultValue: e.defaultValue,
3934
4353
  required: e.required
3935
- }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Xr);
4354
+ }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, mi);
3936
4355
  }
3937
- const Zr = /* @__PURE__ */ b(Yr, [["render", Qr]]), _r = {
4356
+ const fi = /* @__PURE__ */ v(pi, [["render", hi]]), bi = {
3938
4357
  // friendlyName?
3939
4358
  name: "Raw:Img",
3940
4359
  hideFromInsertMenu: !0,
@@ -3943,12 +4362,12 @@ const Zr = /* @__PURE__ */ b(Yr, [["render", Qr]]), _r = {
3943
4362
  name: "image",
3944
4363
  bubble: !0,
3945
4364
  type: "file",
3946
- allowedFileTypes: we,
4365
+ allowedFileTypes: Ae,
3947
4366
  required: !0
3948
4367
  }],
3949
4368
  noWrap: !0,
3950
4369
  static: !0
3951
- }, es = g({
4370
+ }, gi = y({
3952
4371
  name: "builder-img-component",
3953
4372
  props: [
3954
4373
  "backgroundSize",
@@ -3959,11 +4378,11 @@ const Zr = /* @__PURE__ */ b(Yr, [["render", Qr]]), _r = {
3959
4378
  "attributes"
3960
4379
  ],
3961
4380
  data() {
3962
- return { isEditing: E, filterAttrs: V };
4381
+ return { isEditing: P, filterAttrs: W };
3963
4382
  }
3964
- }), ts = ["alt", "src"];
3965
- function ns(e, t, n, o, r, s) {
3966
- return c(), p("img", C({
4383
+ }), yi = ["alt", "src"];
4384
+ function vi(e, t, n, o, r, s) {
4385
+ return d(), h("img", w({
3967
4386
  style: {
3968
4387
  objectFit: e.backgroundSize || "cover",
3969
4388
  objectPosition: e.backgroundPosition || "center"
@@ -3971,9 +4390,9 @@ function ns(e, t, n, o, r, s) {
3971
4390
  key: e.isEditing() && e.imgSrc || "default-key",
3972
4391
  alt: e.altText,
3973
4392
  src: e.imgSrc || e.image
3974
- }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, ts);
4393
+ }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, yi);
3975
4394
  }
3976
- const os = /* @__PURE__ */ b(es, [["render", ns]]), rs = {
4395
+ const Si = /* @__PURE__ */ v(gi, [["render", vi]]), ki = {
3977
4396
  name: "Video",
3978
4397
  canHaveChildren: !0,
3979
4398
  defaultStyles: {
@@ -3984,14 +4403,14 @@ const os = /* @__PURE__ */ b(es, [["render", ns]]), rs = {
3984
4403
  inputs: [{
3985
4404
  name: "video",
3986
4405
  type: "file",
3987
- allowedFileTypes: Go,
4406
+ allowedFileTypes: ar,
3988
4407
  bubble: !0,
3989
4408
  defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
3990
4409
  required: !0
3991
4410
  }, {
3992
4411
  name: "posterImage",
3993
4412
  type: "file",
3994
- allowedFileTypes: we,
4413
+ allowedFileTypes: Ae,
3995
4414
  helperText: "Image to show before the video plays"
3996
4415
  }, {
3997
4416
  name: "autoPlay",
@@ -4057,7 +4476,7 @@ const os = /* @__PURE__ */ b(es, [["render", ns]]), rs = {
4057
4476
  shouldReceiveBuilderProps: {
4058
4477
  builderBlock: !0
4059
4478
  }
4060
- }, ss = g({
4479
+ }, Ci = y({
4061
4480
  name: "builder-video",
4062
4481
  props: [
4063
4482
  "lazyLoad",
@@ -4130,16 +4549,16 @@ const os = /* @__PURE__ */ b(es, [["render", ns]]), rs = {
4130
4549
  };
4131
4550
  }
4132
4551
  }
4133
- }), is = { style: {
4552
+ }), Ti = { style: {
4134
4553
  position: "relative"
4135
- } }, as = ["preload", "poster"], ls = {
4554
+ } }, Ii = ["preload", "poster"], wi = {
4136
4555
  key: 1,
4137
4556
  style: {
4138
4557
  display: "flex",
4139
4558
  flexDirection: "column",
4140
4559
  alignItems: "stretch"
4141
4560
  }
4142
- }, cs = {
4561
+ }, $i = {
4143
4562
  key: 2,
4144
4563
  style: {
4145
4564
  pointerEvents: "none",
@@ -4153,10 +4572,10 @@ const os = /* @__PURE__ */ b(es, [["render", ns]]), rs = {
4153
4572
  height: "100%"
4154
4573
  }
4155
4574
  };
4156
- function ds(e, t, n, o, r, s) {
4157
- var i, l, a, u, h, m, d;
4158
- return c(), p("div", is, [
4159
- M("video", C({
4575
+ function Ri(e, t, n, o, r, s) {
4576
+ var i, a, l, u, p, f, c;
4577
+ return d(), h("div", Ti, [
4578
+ z("video", w({
4160
4579
  class: "builder-video",
4161
4580
  ref: "videoRef",
4162
4581
  preload: e.lazyLoad ? "none" : e.preload || "metadata",
@@ -4175,7 +4594,7 @@ function ds(e, t, n, o, r, s) {
4175
4594
  },
4176
4595
  poster: e.posterImage
4177
4596
  }, e.spreadProps), [
4178
- M("source", C(
4597
+ z("source", w(
4179
4598
  { type: "video/mp4" },
4180
4599
  e.lazyLoad ? {
4181
4600
  "data-src": e.video
@@ -4183,82 +4602,85 @@ function ds(e, t, n, o, r, s) {
4183
4602
  src: e.video
4184
4603
  }
4185
4604
  ), null, 16)
4186
- ], 16, as),
4187
- e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (c(), p("div", {
4605
+ ], 16, Ii),
4606
+ e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length)) ? (d(), h("div", {
4188
4607
  key: 0,
4189
- style: U({
4608
+ style: j({
4190
4609
  width: "100%",
4191
4610
  paddingTop: e.aspectRatio * 100 + "%",
4192
4611
  pointerEvents: "none",
4193
4612
  fontSize: "0px"
4194
4613
  })
4195
- }, null, 4)) : S("", !0),
4196
- (h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (c(), p("div", ls, [
4197
- A(e.$slots, "default")
4198
- ])) : S("", !0),
4199
- (d = (m = e.builderBlock) == null ? void 0 : m.children) != null && d.length && !e.fitContent ? (c(), p("div", cs, [
4200
- A(e.$slots, "default")
4201
- ])) : S("", !0)
4614
+ }, null, 4)) : C("", !0),
4615
+ (p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length && e.fitContent ? (d(), h("div", wi, [
4616
+ V(e.$slots, "default")
4617
+ ])) : C("", !0),
4618
+ (c = (f = e.builderBlock) == null ? void 0 : f.children) != null && c.length && !e.fitContent ? (d(), h("div", $i, [
4619
+ V(e.$slots, "default")
4620
+ ])) : C("", !0)
4202
4621
  ]);
4203
4622
  }
4204
- const us = /* @__PURE__ */ b(ss, [["render", ds]]), ps = () => [{
4205
- component: br,
4206
- ...mr
4207
- }, {
4208
- component: Tr,
4209
- ...yr
4623
+ const Ei = /* @__PURE__ */ v(Ci, [["render", Ri]]), Pi = () => [{
4624
+ component: Wr,
4625
+ ...Ar
4210
4626
  }, {
4211
- component: xr,
4212
- ...Ir
4627
+ component: Hr,
4628
+ ...xr
4213
4629
  }, {
4214
- component: Ur,
4215
- ...Vr
4630
+ component: Qr,
4631
+ ...Mr
4216
4632
  }, {
4217
- component: Jr,
4218
- ...jr
4633
+ component: ei,
4634
+ ...Yr
4219
4635
  }, {
4220
- component: Kr,
4221
- ...Dr
4636
+ component: di,
4637
+ ...ai
4222
4638
  }, {
4223
- component: Zr,
4224
- ...Gr
4639
+ component: si,
4640
+ ...ti
4225
4641
  }, {
4226
- component: os,
4227
- ..._r
4642
+ component: fi,
4643
+ ...ui
4228
4644
  }, {
4229
- component: us,
4230
- ...rs
4231
- }], Ne = () => [{
4232
- component: At,
4233
- ...zo
4645
+ component: Si,
4646
+ ...bi
4234
4647
  }, {
4235
- component: To,
4236
- ...qo
4648
+ component: Ei,
4649
+ ...ki
4650
+ }], He = () => [{
4651
+ component: jt,
4652
+ ...rr
4237
4653
  }, {
4238
4654
  component: Ro,
4239
- ...Jo
4655
+ ...ir
4240
4656
  }, {
4241
- component: Wo,
4242
- ...Yo
4657
+ component: Ao,
4658
+ ...sr
4243
4659
  }, {
4244
- component: Do,
4245
- ...Xo
4660
+ component: Uo,
4661
+ ...lr
4246
4662
  }, {
4247
- component: er,
4248
- ...Qo
4663
+ component: Ho,
4664
+ ...mr
4249
4665
  }, {
4250
- component: Xs,
4251
- ...tr
4666
+ component: gr,
4667
+ ...hr
4252
4668
  }, {
4253
- component: pr,
4254
- ...lr
4669
+ component: ms,
4670
+ ...yr
4255
4671
  }, {
4256
- component: ar,
4257
- ...nr
4672
+ component: Pr,
4673
+ ...wr
4674
+ }, ...kt.includes($) ? [{
4675
+ component: pr,
4676
+ ...cr
4677
+ }] : [], {
4678
+ component: Ir,
4679
+ ...vr
4258
4680
  }, {
4259
- component: jo,
4260
- ...Fo
4261
- }, ...ps()], ms = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
4681
+ component: or,
4682
+ ..._o
4683
+ }, ...Pi()], Ai = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
4262
4684
  function getAndSetVariantId() {
4263
4685
  function setCookie(name, value, days) {
4264
4686
  let expires = '';
@@ -4317,7 +4739,7 @@ const us = /* @__PURE__ */ b(ss, [["render", ds]]), ps = () => [{
4317
4739
  }).join('');
4318
4740
  styleEl.innerHTML = newStyleStr;
4319
4741
  }
4320
- }`, hs = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4742
+ }`, Bi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4321
4743
  if (!navigator.cookieEnabled) {
4322
4744
  return;
4323
4745
  }
@@ -4351,29 +4773,29 @@ const us = /* @__PURE__ */ b(ss, [["render", ds]]), ps = () => [{
4351
4773
  thisScriptEl?.remove();
4352
4774
  }
4353
4775
  return;
4354
- }`, yt = "builderIoAbTest", kt = "builderIoRenderContent", Z = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4776
+ }`, It = "builderIoAbTest", wt = "builderIoRenderContent", re = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4355
4777
  ...t,
4356
4778
  testVariationId: t.id,
4357
4779
  id: e == null ? void 0 : e.id
4358
- })), fs = ({
4780
+ })), Vi = ({
4359
4781
  canTrack: e,
4360
4782
  content: t
4361
- }) => !(!(Z(t).length > 0) || !e), gs = (e) => e === "react" || e === "reactNative", bs = R === "angular", vt = gs(R), ys = () => `
4362
- window.${yt} = ${ms}
4363
- window.${kt} = ${hs}
4364
- `, ks = (e, t) => `
4365
- window.${yt}(
4366
- "${t}",${JSON.stringify(e)}, ${vt}, ${bs}
4367
- )`, vs = ({
4783
+ }) => !(!(re(t).length > 0) || !e), Ni = (e) => e === "react" || e === "reactNative", Wi = $ === "angular", $t = Ni($), xi = () => `
4784
+ window.${It} = ${Ai}
4785
+ window.${wt} = ${Bi}
4786
+ `, Di = (e, t) => `
4787
+ window.${It}(
4788
+ "${t}",${JSON.stringify(e)}, ${$t}, ${Wi}
4789
+ )`, Oi = ({
4368
4790
  contentId: e,
4369
4791
  variationId: t
4370
- }) => `window.${kt}(
4371
- "${t}", "${e}", ${vt}
4792
+ }) => `window.${wt}(
4793
+ "${t}", "${e}", ${$t}
4372
4794
  )`;
4373
- function We(e) {
4795
+ function Me(e) {
4374
4796
  return Math.round(e * 1e3) / 1e3;
4375
4797
  }
4376
- const Ss = (e, t, n = !0) => {
4798
+ const Ui = (e, t, n = !0) => {
4377
4799
  if (!(e instanceof HTMLElement))
4378
4800
  return null;
4379
4801
  let o = n ? e : e.parentElement;
@@ -4384,35 +4806,35 @@ const Ss = (e, t, n = !0) => {
4384
4806
  return o;
4385
4807
  } while (o = o.parentElement);
4386
4808
  return null;
4387
- }, Cs = (e) => Ss(e, (t) => {
4809
+ }, Fi = (e) => Ui(e, (t) => {
4388
4810
  const n = t.getAttribute("builder-id") || t.id;
4389
4811
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
4390
- }), Oe = ({
4812
+ }), je = ({
4391
4813
  event: e,
4392
4814
  target: t
4393
4815
  }) => {
4394
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, s = We(o / n.width), i = We(r / n.height);
4816
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, s = Me(o / n.width), i = Me(r / n.height);
4395
4817
  return {
4396
4818
  x: s,
4397
4819
  y: i
4398
4820
  };
4399
- }, ws = (e) => {
4400
- const t = e.target, n = t && Cs(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4821
+ }, Li = (e) => {
4822
+ const t = e.target, n = t && Fi(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4401
4823
  return {
4402
4824
  targetBuilderElement: o || void 0,
4403
4825
  metadata: {
4404
- targetOffset: t ? Oe({
4826
+ targetOffset: t ? je({
4405
4827
  event: e,
4406
4828
  target: t
4407
4829
  }) : void 0,
4408
- builderTargetOffset: n ? Oe({
4830
+ builderTargetOffset: n ? je({
4409
4831
  event: e,
4410
4832
  target: n
4411
4833
  }) : void 0,
4412
4834
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
4413
4835
  }
4414
4836
  };
4415
- }, Ts = ["svelte", "qwik", "vue"], Is = () => Ts.includes(R) && (E() || qe()), $s = (e) => {
4837
+ }, Hi = ["svelte", "qwik", "vue"], Mi = () => Hi.includes($) && (P() || Te()), ji = (e) => {
4416
4838
  var s;
4417
4839
  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);
4418
4840
  let r = "";
@@ -4427,26 +4849,26 @@ font-weight: 400;
4427
4849
  for (const i in e.files) {
4428
4850
  if (!(String(Number(i)) === i))
4429
4851
  continue;
4430
- const a = e.files[i];
4431
- a && a !== o && (r += `
4852
+ const l = e.files[i];
4853
+ l && l !== o && (r += `
4432
4854
  @font-face {
4433
4855
  font-family: "${t}";
4434
- src: url('${a}') format('woff2');
4856
+ src: url('${l}') format('woff2');
4435
4857
  font-display: fallback;
4436
4858
  font-weight: ${i};
4437
4859
  }
4438
4860
  `.trim());
4439
4861
  }
4440
4862
  return r;
4441
- }, Rs = ({
4863
+ }, Ki = ({
4442
4864
  customFonts: e
4443
4865
  }) => {
4444
4866
  var t;
4445
- return ((t = e == null ? void 0 : e.map((n) => $s(n))) == null ? void 0 : t.join(" ")) || "";
4446
- }, Es = ({
4867
+ return ((t = e == null ? void 0 : e.map((n) => ji(n))) == null ? void 0 : t.join(" ")) || "";
4868
+ }, qi = ({
4447
4869
  cssCode: e,
4448
4870
  contentId: t
4449
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ps = `
4871
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", zi = `
4450
4872
  .builder-button {
4451
4873
  all: unset;
4452
4874
  }
@@ -4463,9 +4885,9 @@ font-weight: ${i};
4463
4885
  text-align: inherit;
4464
4886
  font-family: inherit;
4465
4887
  }
4466
- `, Bs = (e) => e ? "" : Ps, As = (e) => `variant-${e}`, xs = g({
4888
+ `, Gi = (e) => e ? "" : zi, Ji = (e) => `variant-${e}`, Qi = y({
4467
4889
  name: "enable-editor",
4468
- components: { DynamicDiv: X },
4890
+ components: { DynamicDiv: ne },
4469
4891
  props: [
4470
4892
  "isNestedRender",
4471
4893
  "builderContextSignal",
@@ -4490,15 +4912,15 @@ font-weight: ${i};
4490
4912
  httpReqsData: {},
4491
4913
  httpReqsPending: {},
4492
4914
  clicked: !1,
4493
- builderContext: de,
4494
- needsElementRefDivForEditing: Is,
4495
- getWrapperClassName: As
4915
+ builderContext: be,
4916
+ needsElementRefDivForEditing: Mi,
4917
+ getWrapperClassName: Ji
4496
4918
  };
4497
4919
  },
4498
4920
  provide() {
4499
4921
  const e = this;
4500
4922
  return {
4501
- [de.key]: e.builderContextSignal
4923
+ [be.key]: e.builderContextSignal
4502
4924
  };
4503
4925
  },
4504
4926
  created() {
@@ -4506,26 +4928,26 @@ font-weight: ${i};
4506
4928
  },
4507
4929
  mounted() {
4508
4930
  var e, t, n;
4509
- if (w()) {
4510
- E() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4931
+ if (R()) {
4932
+ P() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4511
4933
  new CustomEvent("initeditingbldr")
4512
4934
  );
4513
- const o = this.builderContextSignal.content && G(this.canTrack), r = oe({
4935
+ const o = this.builderContextSignal.content && J(this.canTrack), r = ce({
4514
4936
  name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
4515
4937
  canTrack: !0
4516
4938
  }), s = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
4517
4939
  if (o && s === r) {
4518
- const i = (n = this.builderContextSignal.content) == null ? void 0 : n.id, l = this.apiKey;
4519
- pe({
4940
+ const i = (n = this.builderContextSignal.content) == null ? void 0 : n.id, a = this.apiKey;
4941
+ ye({
4520
4942
  apiHost: this.apiHost,
4521
4943
  type: "impression",
4522
4944
  canTrack: !0,
4523
4945
  contentId: i,
4524
- apiKey: l,
4946
+ apiKey: a,
4525
4947
  variationId: r !== i ? r : void 0
4526
4948
  });
4527
4949
  }
4528
- qe() && !E() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4950
+ Te() && !P() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4529
4951
  new CustomEvent("initpreviewingbldr")
4530
4952
  );
4531
4953
  }
@@ -4559,7 +4981,7 @@ font-weight: ${i};
4559
4981
  }
4560
4982
  },
4561
4983
  unmounted() {
4562
- w() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
4984
+ R() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
4563
4985
  "builder:component:stateChangeListenerActivated",
4564
4986
  this.emitStateUpdate
4565
4987
  ));
@@ -4619,7 +5041,7 @@ font-weight: ${i};
4619
5041
  this.builderContextSignal.content = t;
4620
5042
  },
4621
5043
  processMessage(e) {
4622
- return ot({
5044
+ return st({
4623
5045
  model: this.model,
4624
5046
  trustedHosts: this.trustedHosts,
4625
5047
  callbacks: {
@@ -4633,7 +5055,7 @@ font-weight: ${i};
4633
5055
  });
4634
5056
  },
4635
5057
  animation: (t) => {
4636
- ut(t);
5058
+ mt(t);
4637
5059
  },
4638
5060
  contentUpdate: (t) => {
4639
5061
  this.mergeNewContent(t);
@@ -4648,14 +5070,14 @@ font-weight: ${i};
4648
5070
  var t, n;
4649
5071
  if (this.builderContextSignal.content) {
4650
5072
  const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
4651
- pe({
5073
+ ye({
4652
5074
  apiHost: this.apiHost,
4653
5075
  type: "click",
4654
- canTrack: G(this.canTrack),
5076
+ canTrack: J(this.canTrack),
4655
5077
  contentId: r,
4656
5078
  apiKey: this.apiKey,
4657
5079
  variationId: o !== r ? o : void 0,
4658
- ...ws(e),
5080
+ ...Li(e),
4659
5081
  unique: !this.clicked
4660
5082
  });
4661
5083
  }
@@ -4665,14 +5087,14 @@ font-weight: ${i};
4665
5087
  var t, n;
4666
5088
  const e = ((n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) ?? {};
4667
5089
  Object.entries(e).forEach(([o, r]) => {
4668
- if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !E())
5090
+ if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !P())
4669
5091
  return;
4670
5092
  this.httpReqsPending[o] = !0;
4671
5093
  const s = r.replace(
4672
5094
  /{{([^}]+)}}/g,
4673
- (i, l) => String(
4674
- Y({
4675
- code: l,
5095
+ (i, a) => String(
5096
+ te({
5097
+ code: a,
4676
5098
  context: this.context || {},
4677
5099
  localState: void 0,
4678
5100
  rootState: this.builderContextSignal.rootState,
@@ -4680,7 +5102,7 @@ font-weight: ${i};
4680
5102
  })
4681
5103
  )
4682
5104
  );
4683
- be(s), fetch(s).then((i) => i.json()).then((i) => {
5105
+ we(s), fetch(s).then((i) => i.json()).then((i) => {
4684
5106
  this.mergeNewRootState({
4685
5107
  [o]: i
4686
5108
  }), this.httpReqsData[o] = !0;
@@ -4692,12 +5114,12 @@ font-weight: ${i};
4692
5114
  });
4693
5115
  },
4694
5116
  emitStateUpdate() {
4695
- E() && window.dispatchEvent(
5117
+ P() && window.dispatchEvent(
4696
5118
  new CustomEvent(
4697
5119
  "builder:component:stateChange",
4698
5120
  {
4699
5121
  detail: {
4700
- state: fe(this.builderContextSignal.rootState),
5122
+ state: ke(this.builderContextSignal.rootState),
4701
5123
  ref: {
4702
5124
  name: this.model
4703
5125
  }
@@ -4707,7 +5129,7 @@ font-weight: ${i};
4707
5129
  );
4708
5130
  },
4709
5131
  elementRef_onIniteditingbldr(e) {
4710
- window.addEventListener("message", this.processMessage), In(), nt({
5132
+ window.addEventListener("message", this.processMessage), Pn(), it({
4711
5133
  ...this.locale ? {
4712
5134
  locale: this.locale
4713
5135
  } : {},
@@ -4724,7 +5146,7 @@ font-weight: ${i};
4724
5146
  ).forEach((t) => {
4725
5147
  var n, o;
4726
5148
  if (!((n = t.models) != null && n.length) || t.models.includes(this.model)) {
4727
- const r = on(t);
5149
+ const r = ln(t);
4728
5150
  (o = window.parent) == null || o.postMessage(r, "*");
4729
5151
  }
4730
5152
  }), window.addEventListener(
@@ -4737,7 +5159,7 @@ font-weight: ${i};
4737
5159
  const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
4738
5160
  `builder.overrides.${n}`
4739
5161
  ), r = t.get("apiKey") || t.get("builder.space");
4740
- (n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && ve({
5162
+ (n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && Ee({
4741
5163
  model: this.model,
4742
5164
  apiKey: this.apiKey,
4743
5165
  apiVersion: this.builderContextSignal.apiVersion,
@@ -4752,63 +5174,63 @@ font-weight: ${i};
4752
5174
  }
4753
5175
  }
4754
5176
  });
4755
- function Vs(e, t, n, o, r, s) {
4756
- var i, l, a;
4757
- return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (c(), y(z(e.ContentWrapper), C({
5177
+ function Yi(e, t, n, o, r, s) {
5178
+ var i, a, l;
5179
+ return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(_(e.ContentWrapper), w({
4758
5180
  key: 0,
4759
5181
  ref: "elementRef",
4760
5182
  onClick: (u) => e.onClick(u),
4761
5183
  "builder-content-id": (i = e.builderContextSignal.content) == null ? void 0 : i.id,
4762
5184
  "builder-model": e.model,
4763
- className: e.getWrapperClassName(((l = e.content) == null ? void 0 : l.testVariationId) || ((a = e.content) == null ? void 0 : a.id)),
5185
+ className: e.getWrapperClassName(((a = e.content) == null ? void 0 : a.testVariationId) || ((l = e.content) == null ? void 0 : l.id)),
4764
5186
  style: {
4765
5187
  display: !e.builderContextSignal.content && e.needsElementRefDivForEditing() ? "none" : void 0
4766
5188
  },
4767
5189
  onIniteditingbldr: (u) => e.elementRef_onIniteditingbldr(u),
4768
5190
  onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
4769
5191
  }, { ...e.showContentProps, ...e.contentWrapperProps }), {
4770
- default: W(() => [
4771
- A(e.$slots, "default")
5192
+ default: U(() => [
5193
+ V(e.$slots, "default")
4772
5194
  ]),
4773
5195
  _: 3
4774
- }, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : S("", !0);
5196
+ }, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : C("", !0);
4775
5197
  }
4776
- const Ns = /* @__PURE__ */ b(xs, [["render", Vs]]), Ws = g({
5198
+ const Xi = /* @__PURE__ */ v(Qi, [["render", Yi]]), _i = y({
4777
5199
  name: "content-styles",
4778
- components: { InlinedStyles: Ce },
5200
+ components: { InlinedStyles: de },
4779
5201
  props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
4780
5202
  data() {
4781
5203
  return {
4782
5204
  injectedStyles: `
4783
- ${Es({
5205
+ ${qi({
4784
5206
  cssCode: this.cssCode,
4785
5207
  contentId: this.contentId
4786
5208
  })}
4787
- ${Rs({
5209
+ ${Ki({
4788
5210
  customFonts: this.customFonts
4789
5211
  })}
4790
- ${Bs(this.isNestedRender)}
5212
+ ${Gi(this.isNestedRender)}
4791
5213
  `.trim()
4792
5214
  };
4793
5215
  }
4794
5216
  });
4795
- function Os(e, t, n, o, r, s) {
5217
+ function Zi(e, t, n, o, r, s) {
4796
5218
  const i = k("InlinedStyles");
4797
- return c(), y(i, {
5219
+ return d(), S(i, {
4798
5220
  id: "builderio-content",
4799
5221
  styles: e.injectedStyles,
4800
5222
  nonce: e.nonce
4801
5223
  }, null, 8, ["styles", "nonce"]);
4802
5224
  }
4803
- const Us = /* @__PURE__ */ b(Ws, [["render", Os]]), Ds = ({
5225
+ const es = /* @__PURE__ */ v(_i, [["render", Zi]]), ts = ({
4804
5226
  content: e,
4805
5227
  data: t,
4806
5228
  locale: n
4807
5229
  }) => {
4808
- var s, i, l;
5230
+ var s, i, a;
4809
5231
  const o = {}, r = ((s = e == null ? void 0 : e.data) == null ? void 0 : s.state) || {};
4810
- return (l = (i = e == null ? void 0 : e.data) == null ? void 0 : i.inputs) == null || l.forEach((a) => {
4811
- a.name && a.defaultValue !== void 0 && (o[a.name] = a.defaultValue);
5232
+ return (a = (i = e == null ? void 0 : e.data) == null ? void 0 : i.inputs) == null || a.forEach((l) => {
5233
+ l.name && l.defaultValue !== void 0 && (o[l.name] = l.defaultValue);
4812
5234
  }), {
4813
5235
  ...o,
4814
5236
  ...r,
@@ -4817,7 +5239,7 @@ const Us = /* @__PURE__ */ b(Ws, [["render", Os]]), Ds = ({
4817
5239
  locale: n
4818
5240
  } : {}
4819
5241
  };
4820
- }, Fs = ({
5242
+ }, ns = ({
4821
5243
  content: e,
4822
5244
  data: t
4823
5245
  }) => e ? {
@@ -4827,14 +5249,14 @@ const Us = /* @__PURE__ */ b(Ws, [["render", Os]]), Ds = ({
4827
5249
  ...t
4828
5250
  },
4829
5251
  meta: e == null ? void 0 : e.meta
4830
- } : void 0, Ls = Tt, Ms = g({
5252
+ } : void 0, os = Et, rs = y({
4831
5253
  name: "content-component",
4832
5254
  components: {
4833
- EnableEditor: Ns,
4834
- InlinedScript: bt,
4835
- ContentStyles: Us,
4836
- Blocks: H,
4837
- DynamicDiv: X
5255
+ EnableEditor: Xi,
5256
+ InlinedScript: Be,
5257
+ ContentStyles: es,
5258
+ Blocks: q,
5259
+ DynamicDiv: ne
4838
5260
  },
4839
5261
  props: [
4840
5262
  "apiKey",
@@ -4862,32 +5284,32 @@ const Us = /* @__PURE__ */ b(Ws, [["render", Os]]), Ds = ({
4862
5284
  data() {
4863
5285
  var e, t;
4864
5286
  return {
4865
- scriptStr: vs({
5287
+ scriptStr: Oi({
4866
5288
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4867
5289
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
4868
5290
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4869
5291
  contentId: (t = this.content) == null ? void 0 : t.id
4870
5292
  }),
4871
5293
  registeredComponents: [
4872
- ...Ne(),
5294
+ ...He(),
4873
5295
  ...this.customComponents || []
4874
5296
  ].reduce(
4875
5297
  (n, { component: o, ...r }) => ({
4876
5298
  ...n,
4877
5299
  [r.name]: {
4878
- component: Ls(o),
4879
- ...te(r)
5300
+ component: os(o),
5301
+ ...se(r)
4880
5302
  }
4881
5303
  }),
4882
5304
  {}
4883
5305
  ),
4884
5306
  builderContextSignal: {
4885
- content: Fs({
5307
+ content: ns({
4886
5308
  content: this.content,
4887
5309
  data: this.data
4888
5310
  }),
4889
5311
  localState: void 0,
4890
- rootState: Ds({
5312
+ rootState: ts({
4891
5313
  content: this.content,
4892
5314
  data: this.data,
4893
5315
  locale: this.locale
@@ -4898,12 +5320,12 @@ const Us = /* @__PURE__ */ b(Ws, [["render", Os]]), Ds = ({
4898
5320
  apiKey: this.apiKey,
4899
5321
  apiVersion: this.apiVersion,
4900
5322
  componentInfos: [
4901
- ...Ne(),
5323
+ ...He(),
4902
5324
  ...this.customComponents || []
4903
5325
  ].reduce(
4904
5326
  (n, { component: o, ...r }) => ({
4905
5327
  ...n,
4906
- [r.name]: te(r)
5328
+ [r.name]: se(r)
4907
5329
  }),
4908
5330
  {}
4909
5331
  ),
@@ -4913,24 +5335,24 @@ const Us = /* @__PURE__ */ b(Ws, [["render", Os]]), Ds = ({
4913
5335
  nonce: this.nonce || "",
4914
5336
  model: this.model
4915
5337
  },
4916
- TARGET: R
5338
+ TARGET: $
4917
5339
  };
4918
5340
  },
4919
5341
  provide() {
4920
5342
  const e = this;
4921
5343
  return {
4922
- [De.key]: {
5344
+ [Ge.key]: {
4923
5345
  registeredComponents: e.registeredComponents
4924
5346
  }
4925
5347
  };
4926
5348
  },
4927
5349
  created() {
4928
5350
  var t, n;
4929
- this.apiKey || P.error(
5351
+ this.apiKey || N.error(
4930
5352
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4931
5353
  );
4932
5354
  const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
4933
- e && Y({
5355
+ e && te({
4934
5356
  code: e,
4935
5357
  context: this.context || {},
4936
5358
  localState: void 0,
@@ -4947,9 +5369,9 @@ const Us = /* @__PURE__ */ b(Ws, [["render", Os]]), Ds = ({
4947
5369
  }
4948
5370
  }
4949
5371
  });
4950
- function Hs(e, t, n, o, r, s) {
4951
- const i = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
4952
- return c(), y(u, C({
5372
+ function is(e, t, n, o, r, s) {
5373
+ const i = k("InlinedScript"), a = k("ContentStyles"), l = k("Blocks"), u = k("EnableEditor");
5374
+ return d(), S(u, w({
4953
5375
  apiHost: e.apiHost,
4954
5376
  nonce: e.nonce,
4955
5377
  content: e.content,
@@ -4967,25 +5389,25 @@ function Hs(e, t, n, o, r, s) {
4967
5389
  trustedHosts: e.trustedHosts,
4968
5390
  isNestedRender: e.isNestedRender
4969
5391
  }, {}), {
4970
- default: W(() => {
4971
- var h, m, d, f, v, T, F;
5392
+ default: U(() => {
5393
+ var p, f, c, m, b, g, A;
4972
5394
  return [
4973
- e.isSsrAbTest ? (c(), y(i, {
5395
+ e.isSsrAbTest ? (d(), S(i, {
4974
5396
  key: 0,
4975
5397
  id: "builderio-variant-visibility",
4976
5398
  scriptStr: e.scriptStr,
4977
5399
  nonce: e.nonce || ""
4978
- }, null, 8, ["scriptStr", "nonce"])) : S("", !0),
4979
- e.TARGET !== "reactNative" ? (c(), y(l, {
5400
+ }, null, 8, ["scriptStr", "nonce"])) : C("", !0),
5401
+ e.TARGET !== "reactNative" ? (d(), S(a, {
4980
5402
  key: 1,
4981
5403
  nonce: e.nonce || "",
4982
5404
  isNestedRender: e.isNestedRender,
4983
- contentId: (h = e.builderContextSignal.content) == null ? void 0 : h.id,
4984
- cssCode: (d = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : d.cssCode,
4985
- customFonts: (v = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : v.customFonts
4986
- }, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : S("", !0),
4987
- B(a, {
4988
- blocks: (F = (T = e.builderContextSignal.content) == null ? void 0 : T.data) == null ? void 0 : F.blocks,
5405
+ contentId: (p = e.builderContextSignal.content) == null ? void 0 : p.id,
5406
+ cssCode: (c = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : c.cssCode,
5407
+ customFonts: (b = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : b.customFonts
5408
+ }, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : C("", !0),
5409
+ E(l, {
5410
+ blocks: (A = (g = e.builderContextSignal.content) == null ? void 0 : g.data) == null ? void 0 : A.blocks,
4989
5411
  context: e.builderContextSignal,
4990
5412
  registeredComponents: e.registeredComponents,
4991
5413
  linkComponent: e.linkComponent
@@ -4995,12 +5417,12 @@ function Hs(e, t, n, o, r, s) {
4995
5417
  _: 1
4996
5418
  }, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
4997
5419
  }
4998
- const Ks = /* @__PURE__ */ b(Ms, [["render", Hs]]), js = g({
5420
+ const ss = /* @__PURE__ */ v(rs, [["render", is]]), as = y({
4999
5421
  name: "content-variants",
5000
5422
  components: {
5001
- InlinedScript: bt,
5002
- InlinedStyles: Ce,
5003
- ContentComponent: Ks
5423
+ InlinedScript: Be,
5424
+ InlinedStyles: de,
5425
+ ContentComponent: ss
5004
5426
  },
5005
5427
  props: [
5006
5428
  "canTrack",
@@ -5025,13 +5447,15 @@ const Ks = /* @__PURE__ */ b(Ms, [["render", Hs]]), js = g({
5025
5447
  ],
5026
5448
  data() {
5027
5449
  return {
5028
- shouldRenderVariants: fs({
5029
- canTrack: G(this.canTrack),
5450
+ shouldRenderVariants: Vi({
5451
+ canTrack: J(this.canTrack),
5030
5452
  content: this.content
5031
5453
  }),
5032
- TARGET: R,
5033
- getInitVariantsFnsScriptString: ys,
5034
- getVariants: Z
5454
+ SDKS_SUPPORTING_PERSONALIZATION: kt,
5455
+ getInitPersonalizationVariantsFnsScriptString: Qo,
5456
+ TARGET: $,
5457
+ getInitVariantsFnsScriptString: xi,
5458
+ getVariants: re
5035
5459
  };
5036
5460
  },
5037
5461
  mounted() {
@@ -5039,8 +5463,8 @@ const Ks = /* @__PURE__ */ b(Ms, [["render", Hs]]), js = g({
5039
5463
  computed: {
5040
5464
  updateCookieAndStylesScriptStr() {
5041
5465
  var e;
5042
- return ks(
5043
- Z(this.content).map((t) => ({
5466
+ return Di(
5467
+ re(this.content).map((t) => ({
5044
5468
  id: t.testVariationId,
5045
5469
  testRatio: t.testRatio
5046
5470
  })),
@@ -5048,41 +5472,48 @@ const Ks = /* @__PURE__ */ b(Ms, [["render", Hs]]), js = g({
5048
5472
  );
5049
5473
  },
5050
5474
  hideVariantsStyleString() {
5051
- return Z(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
5475
+ return re(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
5052
5476
  },
5053
5477
  defaultContent() {
5054
5478
  var e;
5055
5479
  return this.shouldRenderVariants ? {
5056
5480
  ...this.content,
5057
5481
  testVariationId: (e = this.content) == null ? void 0 : e.id
5058
- } : An({
5482
+ } : xn({
5059
5483
  item: this.content,
5060
- canTrack: G(this.canTrack)
5484
+ canTrack: J(this.canTrack)
5061
5485
  });
5062
5486
  }
5063
5487
  }
5064
5488
  });
5065
- function zs(e, t, n, o, r, s) {
5066
- const i = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
5067
- return c(), p($, null, [
5068
- !e.isNestedRender && e.TARGET !== "reactNative" ? (c(), y(i, {
5069
- key: 0,
5070
- id: "builderio-init-variants-fns",
5071
- scriptStr: e.getInitVariantsFnsScriptString(),
5072
- nonce: e.nonce || ""
5073
- }, null, 8, ["scriptStr", "nonce"])) : S("", !0),
5074
- e.shouldRenderVariants ? (c(), p($, { key: 1 }, [
5075
- B(l, {
5489
+ function ls(e, t, n, o, r, s) {
5490
+ const i = k("InlinedScript"), a = k("InlinedStyles"), l = k("ContentComponent");
5491
+ return d(), h(I, null, [
5492
+ !e.isNestedRender && e.TARGET !== "reactNative" ? (d(), h(I, { key: 0 }, [
5493
+ E(i, {
5494
+ id: "builderio-init-variants-fns",
5495
+ scriptStr: e.getInitVariantsFnsScriptString(),
5496
+ nonce: e.nonce || ""
5497
+ }, null, 8, ["scriptStr", "nonce"]),
5498
+ e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (d(), S(i, {
5499
+ key: 0,
5500
+ id: "builderio-init-personalization-variants-fns",
5501
+ nonce: e.nonce || "",
5502
+ scriptStr: e.getInitPersonalizationVariantsFnsScriptString()
5503
+ }, null, 8, ["nonce", "scriptStr"])) : C("", !0)
5504
+ ], 64)) : C("", !0),
5505
+ e.shouldRenderVariants ? (d(), h(I, { key: 1 }, [
5506
+ E(a, {
5076
5507
  id: "builderio-variants",
5077
5508
  styles: e.hideVariantsStyleString,
5078
5509
  nonce: e.nonce || ""
5079
5510
  }, null, 8, ["styles", "nonce"]),
5080
- B(i, {
5511
+ E(i, {
5081
5512
  id: "builderio-variants-visibility",
5082
5513
  scriptStr: e.updateCookieAndStylesScriptStr,
5083
5514
  nonce: e.nonce || ""
5084
5515
  }, null, 8, ["scriptStr", "nonce"]),
5085
- (c(!0), p($, null, N(e.getVariants(e.content), (u, h) => (c(), y(a, C({
5516
+ (d(!0), h(I, null, L(e.getVariants(e.content), (u, p) => (d(), S(l, w({
5086
5517
  key: u.testVariationId,
5087
5518
  apiHost: e.apiHost,
5088
5519
  isNestedRender: e.isNestedRender,
@@ -5106,8 +5537,8 @@ function zs(e, t, n, o, r, s) {
5106
5537
  contentWrapperProps: e.contentWrapperProps,
5107
5538
  trustedHosts: e.trustedHosts
5108
5539
  }, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
5109
- ], 64)) : S("", !0),
5110
- B(a, C({
5540
+ ], 64)) : C("", !0),
5541
+ E(l, w({
5111
5542
  apiHost: e.apiHost,
5112
5543
  nonce: e.nonce,
5113
5544
  isNestedRender: e.isNestedRender,
@@ -5134,13 +5565,13 @@ function zs(e, t, n, o, r, s) {
5134
5565
  }), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
5135
5566
  ], 64);
5136
5567
  }
5137
- const qs = /* @__PURE__ */ b(js, [["render", zs]]), Js = async ({
5568
+ const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = async ({
5138
5569
  builderContextValue: e,
5139
5570
  symbol: t
5140
5571
  }) => {
5141
5572
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
5142
5573
  (e != null && e.apiKey))
5143
- return ve({
5574
+ return Ee({
5144
5575
  model: t.model,
5145
5576
  apiKey: e.apiKey,
5146
5577
  apiVersion: e.apiVersion,
@@ -5150,11 +5581,11 @@ const qs = /* @__PURE__ */ b(js, [["render", zs]]), Js = async ({
5150
5581
  }
5151
5582
  }
5152
5583
  }).catch((n) => {
5153
- P.error("Could not fetch symbol content: ", n);
5584
+ N.error("Could not fetch symbol content: ", n);
5154
5585
  });
5155
- }, Gs = g({
5586
+ }, us = y({
5156
5587
  name: "builder-symbol",
5157
- components: { ContentVariants: qs, DynamicDiv: X },
5588
+ components: { ContentVariants: cs, DynamicDiv: ne },
5158
5589
  props: [
5159
5590
  "symbol",
5160
5591
  "attributes",
@@ -5169,7 +5600,7 @@ const qs = /* @__PURE__ */ b(js, [["render", zs]]), Js = async ({
5169
5600
  return {
5170
5601
  contentToUse: (e = this.symbol) == null ? void 0 : e.content,
5171
5602
  symbolEntry: (t = this.symbol) == null ? void 0 : t.entry,
5172
- filterAttrs: V
5603
+ filterAttrs: W
5173
5604
  };
5174
5605
  },
5175
5606
  mounted() {
@@ -5193,7 +5624,7 @@ const qs = /* @__PURE__ */ b(js, [["render", zs]]), Js = async ({
5193
5624
  className() {
5194
5625
  var e, t;
5195
5626
  return [
5196
- this.attributes[_()],
5627
+ this.attributes[G()],
5197
5628
  "builder-symbol",
5198
5629
  (e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
5199
5630
  (t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
@@ -5208,7 +5639,7 @@ const qs = /* @__PURE__ */ b(js, [["render", zs]]), Js = async ({
5208
5639
  methods: {
5209
5640
  setContent() {
5210
5641
  var e;
5211
- this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || Js({
5642
+ this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || ds({
5212
5643
  symbol: this.symbol,
5213
5644
  builderContextValue: this.builderContext
5214
5645
  }).then((t) => {
@@ -5218,27 +5649,27 @@ const qs = /* @__PURE__ */ b(js, [["render", zs]]), Js = async ({
5218
5649
  }
5219
5650
  }
5220
5651
  });
5221
- function Ys(e, t, n, o, r, s) {
5222
- var l, a, u, h, m;
5652
+ function ps(e, t, n, o, r, s) {
5653
+ var a, l, u, p, f;
5223
5654
  const i = k("ContentVariants");
5224
- return c(), p("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
5225
- B(i, {
5655
+ return d(), h("div", w({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
5656
+ E(i, {
5226
5657
  nonce: e.builderContext.nonce,
5227
5658
  isNestedRender: !0,
5228
5659
  apiVersion: e.builderContext.apiVersion,
5229
5660
  apiKey: e.builderContext.apiKey,
5230
5661
  context: {
5231
5662
  ...e.builderContext.context,
5232
- symbolId: (l = e.builderBlock) == null ? void 0 : l.id
5663
+ symbolId: (a = e.builderBlock) == null ? void 0 : a.id
5233
5664
  },
5234
5665
  customComponents: Object.values(e.builderComponents),
5235
5666
  data: {
5236
- ...(a = e.symbol) == null ? void 0 : a.data,
5667
+ ...(l = e.symbol) == null ? void 0 : l.data,
5237
5668
  ...e.builderContext.localState,
5238
- ...(h = (u = e.contentToUse) == null ? void 0 : u.data) == null ? void 0 : h.state
5669
+ ...(p = (u = e.contentToUse) == null ? void 0 : u.data) == null ? void 0 : p.state
5239
5670
  },
5240
5671
  canTrack: e.builderContext.canTrack,
5241
- model: ((m = e.symbol) == null ? void 0 : m.model) ?? "",
5672
+ model: ((f = e.symbol) == null ? void 0 : f.model) ?? "",
5242
5673
  content: e.contentToUse,
5243
5674
  linkComponent: e.builderLinkComponent,
5244
5675
  blocksWrapper: e.blocksWrapper,
@@ -5246,45 +5677,42 @@ function Ys(e, t, n, o, r, s) {
5246
5677
  }, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
5247
5678
  ], 16);
5248
5679
  }
5249
- const Xs = /* @__PURE__ */ b(Gs, [["render", Ys]]);
5680
+ const ms = /* @__PURE__ */ v(us, [["render", ps]]);
5250
5681
  export {
5251
- Kn as A,
5252
- ft as B,
5253
- To as C,
5254
- jn as D,
5255
- ve as E,
5256
- Ro as F,
5257
- _s as G,
5258
- ai as H,
5259
- Wo as I,
5260
- Do as S,
5261
- R as T,
5262
- us as V,
5263
- Ce as _,
5264
- si as a,
5265
- li as b,
5266
- D as c,
5267
- Se as d,
5268
- b as e,
5269
- Y as f,
5270
- vo as g,
5271
- ii as h,
5272
- _ as i,
5273
- de as j,
5274
- At as k,
5275
- Xs as l,
5276
- pr as m,
5277
- H as n,
5278
- qs as o,
5279
- E as p,
5280
- qe as q,
5281
- on as r,
5282
- oi as s,
5283
- sn as t,
5284
- ei as u,
5285
- Je as v,
5286
- Ls as w,
5287
- ti as x,
5288
- ni as y,
5289
- ri as z
5682
+ bs as A,
5683
+ gt as B,
5684
+ Ro as C,
5685
+ Is as D,
5686
+ Ao as F,
5687
+ Uo as I,
5688
+ Ho as S,
5689
+ Pr as T,
5690
+ Ei as V,
5691
+ de as _,
5692
+ ws as a,
5693
+ Pe as b,
5694
+ Cs as c,
5695
+ v as d,
5696
+ te as e,
5697
+ Ts as f,
5698
+ To as g,
5699
+ G as h,
5700
+ be as i,
5701
+ jt as j,
5702
+ ms as k,
5703
+ q as l,
5704
+ cs as m,
5705
+ Te as n,
5706
+ ln as o,
5707
+ gs as p,
5708
+ Ye as q,
5709
+ dn as r,
5710
+ Ss as s,
5711
+ ys as t,
5712
+ vs as u,
5713
+ ks as v,
5714
+ os as w,
5715
+ zn as x,
5716
+ Gn as y,
5717
+ Ee as z
5290
5718
  };