@builder.io/sdk-vue 5.2.15 → 5.3.0

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 (108) hide show
  1. package/README.md +4 -0
  2. package/lib/browser/{awaiter-2lM_rT3U.cjs → awaiter-2uzflb3S.cjs} +1 -1
  3. package/lib/browser/{awaiter-252HRRNi.js → awaiter-4aFQAEvG.js} +1 -1
  4. package/lib/browser/{block-wrapper-cfaTbC1n.cjs → block-wrapper-1ItsXF0j.cjs} +1 -1
  5. package/lib/browser/{block-wrapper-C1nlMTqm.js → block-wrapper-Uj0c_ct-.js} +3 -3
  6. package/lib/browser/{component-ref-Xhuf1e4j.js → component-ref-826ipClg.js} +4 -4
  7. package/lib/browser/{component-ref-d6ezDlQq.cjs → component-ref-U0GRcehd.cjs} +1 -1
  8. package/lib/browser/components/block/block.helpers.d.ts +1 -1
  9. package/lib/browser/components/block/block.vue.d.ts +6 -11
  10. package/lib/browser/components/content/components/styles.helpers.d.ts +1 -1
  11. package/lib/browser/components/content/content.helpers.d.ts +5 -1
  12. package/lib/browser/components/content/content.vue.d.ts +3 -5
  13. package/lib/browser/constants/builder-registered-components.d.ts +1 -0
  14. package/lib/browser/constants/sdk-version.d.ts +1 -1
  15. package/lib/browser/functions/evaluate/safe-state-expression.d.ts +33 -0
  16. package/lib/browser/functions/extract-localized-values.d.ts +4 -0
  17. package/lib/browser/functions/get-processed-block.d.ts +0 -1
  18. package/lib/browser/functions/is-editing-or-previewing.d.ts +1 -0
  19. package/lib/browser/functions/set.d.ts +29 -1
  20. package/lib/browser/get-block-properties-XhHpZEJX.cjs +1 -0
  21. package/lib/browser/{get-block-properties-ti8MfeDj.js → get-block-properties-u3S8CkNp.js} +21 -18
  22. package/lib/browser/helpers/bounded-cache.d.ts +4 -0
  23. package/lib/browser/helpers/copy-plain-data.d.ts +6 -0
  24. package/lib/browser/{index-Su1HB7sT.js → index-Jf8hjJYZ.js} +1098 -998
  25. package/lib/browser/index-KofqhXXd.cjs +368 -0
  26. package/lib/browser/index.cjs +1 -1
  27. package/lib/browser/index.mjs +1 -1
  28. package/lib/browser/{live-edit-z4s9J22F.cjs → live-edit-BxSoS0rX.cjs} +1 -1
  29. package/lib/browser/{live-edit-CB5gYO0t.js → live-edit-uev5ovOr.js} +1 -1
  30. package/lib/browser/{repeated-block-Y6bY0Wng.cjs → repeated-block-Mj7AAxUa.cjs} +1 -1
  31. package/lib/browser/{repeated-block-xzflsmu_.js → repeated-block-s-uTJJ2l.js} +2 -2
  32. package/lib/browser/{style-wrapper-akXULsFD.cjs → style-wrapper-C17hpa9C.cjs} +1 -1
  33. package/lib/browser/{style-wrapper-0oQEXIZd.js → style-wrapper-WeOZ3wU5.js} +1 -1
  34. package/lib/edge/{awaiter-ILD5v_T5.js → awaiter-3P7HNK2U.js} +1 -1
  35. package/lib/edge/{awaiter-98XudUPT.cjs → awaiter-tL_1GDRg.cjs} +1 -1
  36. package/lib/edge/{block-wrapper-8HiqIpnM.cjs → block-wrapper-AJ9g81fv.cjs} +1 -1
  37. package/lib/{node/block-wrapper-rW0pbE89.js → edge/block-wrapper-W6_AJxdH.js} +3 -3
  38. package/lib/edge/{component-ref-iOnqc5Jy.js → component-ref-2H6t6CVL.js} +4 -4
  39. package/lib/edge/{component-ref-VMmpuF1Z.cjs → component-ref-kOTGaG_S.cjs} +1 -1
  40. package/lib/edge/components/block/block.helpers.d.ts +1 -1
  41. package/lib/edge/components/block/block.vue.d.ts +6 -11
  42. package/lib/edge/components/content/components/styles.helpers.d.ts +1 -1
  43. package/lib/edge/components/content/content.helpers.d.ts +5 -1
  44. package/lib/edge/components/content/content.vue.d.ts +3 -5
  45. package/lib/edge/constants/builder-registered-components.d.ts +1 -0
  46. package/lib/edge/constants/sdk-version.d.ts +1 -1
  47. package/lib/edge/functions/evaluate/safe-state-expression.d.ts +33 -0
  48. package/lib/edge/functions/extract-localized-values.d.ts +4 -0
  49. package/lib/edge/functions/get-processed-block.d.ts +0 -1
  50. package/lib/edge/functions/is-editing-or-previewing.d.ts +1 -0
  51. package/lib/edge/functions/set.d.ts +29 -1
  52. package/lib/edge/get-block-properties-Cf0JYe8s.cjs +1 -0
  53. package/lib/edge/{get-block-properties-uLvX_s0g.js → get-block-properties-yDy5CcoJ.js} +21 -18
  54. package/lib/edge/helpers/bounded-cache.d.ts +4 -0
  55. package/lib/edge/helpers/copy-plain-data.d.ts +6 -0
  56. package/lib/edge/{index-n8ujdiJM.js → index-0OjD7npr.js} +1879 -1779
  57. package/lib/edge/{index-srIF83gr.cjs → index-Vo2N3MOA.cjs} +49 -49
  58. package/lib/edge/index.cjs +1 -1
  59. package/lib/edge/index.mjs +1 -1
  60. package/lib/edge/{live-edit-alyPFECH.js → live-edit-es0ntXpd.js} +1 -1
  61. package/lib/{node/live-edit-S1qfZXZ1.cjs → edge/live-edit-hyHdyjeL.cjs} +1 -1
  62. package/lib/edge/{repeated-block-iLuTUVQ1.js → repeated-block-UG8Sns3u.js} +2 -2
  63. package/lib/edge/{repeated-block-BbhF26Bz.cjs → repeated-block-d6gfiTTu.cjs} +1 -1
  64. package/lib/edge/{style-wrapper-EmhgSKHB.js → style-wrapper-UpCDtTSA.js} +1 -1
  65. package/lib/edge/{style-wrapper-YcHBIann.cjs → style-wrapper-pawaG9qF.cjs} +1 -1
  66. package/lib/node/{awaiter-9J3ijUCH.js → awaiter-AN3_pw27.js} +1 -1
  67. package/lib/node/{awaiter-NWae7gVL.cjs → awaiter-bGTvqMbD.cjs} +1 -1
  68. package/lib/{edge/block-wrapper-RE0mDatJ.js → node/block-wrapper-e5lqTjH4.js} +3 -3
  69. package/lib/node/{block-wrapper-qJrfCMGq.cjs → block-wrapper-uIhnB7Vo.cjs} +1 -1
  70. package/lib/node/{component-ref-DYOularh.cjs → component-ref-hWkVL5In.cjs} +1 -1
  71. package/lib/node/{component-ref-EUVN2TYe.js → component-ref-lBfIlbHs.js} +5 -5
  72. package/lib/node/components/block/block.helpers.d.ts +1 -1
  73. package/lib/node/components/block/block.vue.d.ts +6 -11
  74. package/lib/node/components/content/components/styles.helpers.d.ts +1 -1
  75. package/lib/node/components/content/content.helpers.d.ts +5 -1
  76. package/lib/node/components/content/content.vue.d.ts +3 -5
  77. package/lib/node/constants/builder-registered-components.d.ts +1 -0
  78. package/lib/node/constants/sdk-version.d.ts +1 -1
  79. package/lib/node/functions/evaluate/safe-state-expression.d.ts +33 -0
  80. package/lib/node/functions/extract-localized-values.d.ts +4 -0
  81. package/lib/node/functions/get-processed-block.d.ts +0 -1
  82. package/lib/node/functions/is-editing-or-previewing.d.ts +1 -0
  83. package/lib/node/functions/set.d.ts +29 -1
  84. package/lib/node/get-block-properties-VD2nOy1H.cjs +1 -0
  85. package/lib/node/{get-block-properties-IJF6DYIj.js → get-block-properties-pMlEyIJy.js} +20 -17
  86. package/lib/node/helpers/bounded-cache.d.ts +4 -0
  87. package/lib/node/helpers/copy-plain-data.d.ts +6 -0
  88. package/lib/node/{index-jMlC_wZp.cjs → index-3pN6fdOW.cjs} +42 -42
  89. package/lib/node/{index-Jlkd4q2q.js → index-xfji5jj1.js} +1078 -1005
  90. package/lib/node/index.cjs +1 -1
  91. package/lib/node/index.mjs +8 -8
  92. package/lib/node/init.cjs +1 -1
  93. package/lib/node/init.mjs +1 -1
  94. package/lib/node/{live-edit-xVy-DugY.js → live-edit-GfW2VTki.js} +1 -1
  95. package/lib/{edge/live-edit-eVRi7gn8.cjs → node/live-edit-iCnhUEuS.cjs} +1 -1
  96. package/lib/node/{repeated-block-qrXKn9Na.cjs → repeated-block-RuIC6FQv.cjs} +1 -1
  97. package/lib/node/{repeated-block-N4moJ_ma.js → repeated-block-hte-wY9-.js} +2 -2
  98. package/lib/node/should-force-browser-runtime-in-node-oNYv8BG3.cjs +56 -0
  99. package/lib/node/should-force-browser-runtime-in-node-r2oi-Y6E.js +725 -0
  100. package/lib/node/{style-wrapper-l93hb5Pq.cjs → style-wrapper-c9ma8_oR.cjs} +1 -1
  101. package/lib/node/{style-wrapper-ItVc2ksk.js → style-wrapper-y6_fa2q6.js} +8 -8
  102. package/package.json +1 -1
  103. package/lib/browser/get-block-properties-rnyASgT2.cjs +0 -1
  104. package/lib/browser/index-ut_ryl3Q.cjs +0 -368
  105. package/lib/edge/get-block-properties-enTU2L6v.cjs +0 -1
  106. package/lib/node/get-block-properties-7IX5w2pQ.cjs +0 -1
  107. package/lib/node/should-force-browser-runtime-in-node-EZPrW2gu.js +0 -503
  108. package/lib/node/should-force-browser-runtime-in-node-bKybXtCz.cjs +0 -48
@@ -1,7 +1,7 @@
1
1
  import "./style.css";
2
- import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as X, mergeProps as $, toHandlers as x, withCtx as D, renderSlot as N, resolveComponent as k, createTextVNode as xt, toDisplayString as pe, defineAsyncComponent as Y, createVNode as R, renderList as L, createCommentVNode as T, h as ot, createElementVNode as G, normalizeStyle as M, normalizeClass as ee, markRaw as Lt } from "vue";
3
- const Ft = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Mt = (e) => typeof e == "string" && Ft.has(e.toLowerCase());
4
- function O(e = {}, t, n) {
2
+ import { defineComponent as y, openBlock as u, createElementBlock as h, Fragment as I, createBlock as v, resolveDynamicComponent as Z, mergeProps as E, toHandlers as U, withCtx as D, renderSlot as O, resolveComponent as k, createTextVNode as Xt, toDisplayString as he, defineAsyncComponent as Y, createVNode as $, renderList as L, createCommentVNode as T, h as pt, createElementVNode as G, normalizeStyle as M, normalizeClass as te, markRaw as Zt } from "vue";
3
+ const en = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), tn = (e) => typeof e == "string" && en.has(e.toLowerCase());
4
+ function N(e = {}, t, n) {
5
5
  const o = {};
6
6
  for (const r in e) {
7
7
  if (!e[r] || n && !r.startsWith(t))
@@ -11,38 +11,38 @@ function O(e = {}, t, n) {
11
11
  }
12
12
  return o;
13
13
  }
14
- const Ht = y({
14
+ const nn = y({
15
15
  name: "dynamic-renderer",
16
16
  props: ["TagName", "attributes", "actionAttributes"],
17
17
  data() {
18
- return { isEmptyElement: Mt };
18
+ return { isEmptyElement: tn };
19
19
  }
20
- }), v = (e, t) => {
20
+ }), S = (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 jt(e, t, n, o, r, i) {
27
- return e.isEmptyElement(e.TagName) ? (d(), S(X(e.TagName), $({ key: 1 }, e.attributes, x(e.actionAttributes)), null, 16)) : (d(), h(I, { key: 0 }, [
28
- typeof e.TagName == "string" ? (d(), S(X(e.TagName), $({ key: 0 }, e.attributes, x(e.actionAttributes)), {
26
+ function on(e, t, n, o, r, i) {
27
+ return e.isEmptyElement(e.TagName) ? (u(), v(Z(e.TagName), E({ key: 1 }, e.attributes, U(e.actionAttributes)), null, 16)) : (u(), h(I, { key: 0 }, [
28
+ typeof e.TagName == "string" ? (u(), v(Z(e.TagName), E({ key: 0 }, e.attributes, U(e.actionAttributes)), {
29
29
  default: D(() => [
30
- N(e.$slots, "default")
30
+ O(e.$slots, "default")
31
31
  ]),
32
32
  _: 3
33
- }, 16)) : (d(), S(X(e.TagName), $({ key: 1 }, e.attributes, x(e.actionAttributes)), {
33
+ }, 16)) : (u(), v(Z(e.TagName), E({ key: 1 }, e.attributes, U(e.actionAttributes)), {
34
34
  default: D(() => [
35
- N(e.$slots, "default")
35
+ O(e.$slots, "default")
36
36
  ]),
37
37
  _: 3
38
38
  }, 16))
39
39
  ], 64));
40
40
  }
41
- const Re = /* @__PURE__ */ v(Ht, [["render", jt]]), Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41
+ const Pe = /* @__PURE__ */ S(nn, [["render", on]]), Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42
42
  __proto__: null,
43
- default: Re
44
- }, Symbol.toStringTag, { value: "Module" })), E = "vue", H = () => {
45
- switch (E) {
43
+ default: Pe
44
+ }, Symbol.toStringTag, { value: "Module" })), R = "vue", H = () => {
45
+ switch (R) {
46
46
  case "react":
47
47
  case "reactNative":
48
48
  case "rsc":
@@ -54,9 +54,9 @@ const Re = /* @__PURE__ */ v(Ht, [["render", jt]]), Bs = /* @__PURE__ */ Object.
54
54
  case "angular":
55
55
  return "class";
56
56
  }
57
- }, zt = y({
57
+ }, rn = y({
58
58
  name: "builder-button",
59
- components: { DynamicRenderer: Re },
59
+ components: { DynamicRenderer: Pe },
60
60
  props: [
61
61
  "attributes",
62
62
  "link",
@@ -65,12 +65,12 @@ const Re = /* @__PURE__ */ v(Ht, [["render", jt]]), Bs = /* @__PURE__ */ Object.
65
65
  "text"
66
66
  ],
67
67
  data() {
68
- return { filterAttrs: O };
68
+ return { filterAttrs: N };
69
69
  },
70
70
  methods: {
71
71
  attrs() {
72
72
  return {
73
- ...O(this.attributes, "v-on:", !1),
73
+ ...N(this.attributes, "v-on:", !1),
74
74
  [H()]: `${this.link ? "" : "builder-button"} ${this.attributes[H()] || ""}`,
75
75
  ...this.link ? {
76
76
  href: this.link,
@@ -83,20 +83,20 @@ const Re = /* @__PURE__ */ v(Ht, [["render", jt]]), Bs = /* @__PURE__ */ Object.
83
83
  }
84
84
  }
85
85
  });
86
- function Kt(e, t, n, o, r, i) {
86
+ function sn(e, t, n, o, r, i) {
87
87
  const s = k("DynamicRenderer");
88
- return d(), S(s, {
88
+ return u(), v(s, {
89
89
  attributes: e.attrs(),
90
90
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
91
91
  actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
92
92
  }, {
93
93
  default: D(() => [
94
- xt(pe(e.text), 1)
94
+ Xt(he(e.text), 1)
95
95
  ]),
96
96
  _: 1
97
97
  }, 8, ["attributes", "TagName", "actionAttributes"]);
98
98
  }
99
- const qt = /* @__PURE__ */ v(zt, [["render", Kt]]), Gt = Symbol(), ve = {
99
+ const an = /* @__PURE__ */ S(rn, [["render", sn]]), ln = Symbol(), Ce = {
100
100
  Builder: {
101
101
  content: null,
102
102
  context: {},
@@ -113,43 +113,51 @@ const qt = /* @__PURE__ */ v(zt, [["render", Kt]]), Gt = Symbol(), ve = {
113
113
  nonce: "",
114
114
  model: ""
115
115
  },
116
- key: Gt
117
- }, Jt = Symbol(), rt = {
116
+ key: ln
117
+ }, cn = Symbol(), mt = {
118
118
  Components: { registeredComponents: {} },
119
- key: Jt
120
- }, oe = "[Builder.io]: ", B = {
121
- log: (...e) => console.log(oe, ...e),
122
- error: (...e) => console.error(oe, ...e),
123
- warn: (...e) => console.warn(oe, ...e),
124
- debug: (...e) => console.debug(oe, ...e)
125
- }, it = (e, t, n) => {
119
+ key: cn
120
+ }, ht = (e) => {
121
+ const t = /* @__PURE__ */ new Map();
122
+ return {
123
+ get: (n) => t.get(n),
124
+ set: (n, o) => {
125
+ !t.has(n) && t.size >= e && t.delete(t.keys().next().value), t.set(n, o);
126
+ }
127
+ };
128
+ }, re = "[Builder.io]: ", B = {
129
+ log: (...e) => console.log(re, ...e),
130
+ error: (...e) => console.error(re, ...e),
131
+ warn: (...e) => console.warn(re, ...e),
132
+ debug: (...e) => console.debug(re, ...e)
133
+ }, ft = (e, t, n) => {
126
134
  const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
127
135
  return o === void 0 || o === e ? n : o;
128
136
  };
129
137
  function w() {
130
138
  return typeof window < "u" && typeof document < "u";
131
139
  }
132
- const Qt = (e) => {
140
+ const dn = (e) => {
133
141
  const t = {};
134
142
  return e.forEach((n, o) => {
135
143
  t[o] = n;
136
144
  }), t;
137
- }, st = (e) => e instanceof URLSearchParams ? Qt(e) : e, at = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
138
- function _t() {
145
+ }, bt = (e) => e instanceof URLSearchParams ? dn(e) : e, gt = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
146
+ function un() {
139
147
  return w() && window.self !== window.top;
140
148
  }
141
149
  function A(e) {
142
- return _t() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
143
- at(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
150
+ return un() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
151
+ gt(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
144
152
  }
145
- const Yt = () => {
153
+ const pn = () => {
146
154
  if (w()) {
147
155
  const e = new URL(location.href);
148
156
  return e.pathname === "" && (e.pathname = "/"), e;
149
157
  } else
150
158
  return console.warn("Cannot get location for tracking in non-browser environment"), null;
151
- }, Xt = () => typeof navigator == "object" && navigator.userAgent || "", lt = () => {
152
- const e = Xt(), t = {
159
+ }, mn = () => typeof navigator == "object" && navigator.userAgent || "", yt = () => {
160
+ const e = mn(), t = {
153
161
  Android() {
154
162
  return e.match(/Android/i);
155
163
  },
@@ -166,24 +174,24 @@ const Yt = () => {
166
174
  return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
167
175
  },
168
176
  any() {
169
- return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || E === "reactNative";
177
+ return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || R === "reactNative";
170
178
  }
171
- }, n = e.match(/Tablet|iPad/i), o = Yt();
179
+ }, n = e.match(/Tablet|iPad/i), o = pn();
172
180
  return {
173
181
  urlPath: o == null ? void 0 : o.pathname,
174
182
  host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
175
183
  device: n ? "tablet" : t.any() ? "mobile" : "desktop"
176
184
  };
177
- }, ct = "5.2.15", dt = () => ({
178
- "X-Builder-SDK": E,
185
+ }, St = "5.3.0", vt = () => ({
186
+ "X-Builder-SDK": R,
179
187
  "X-Builder-SDK-GEN": "2",
180
- "X-Builder-SDK-Version": ct
181
- }), j = (e) => e != null, Zt = (e) => {
188
+ "X-Builder-SDK-Version": St
189
+ }), j = (e) => e != null, hn = (e) => {
182
190
  if (e === "localhost" || e === "127.0.0.1")
183
191
  return e;
184
192
  const t = e.split(".");
185
193
  return t.length > 2 ? t.slice(1).join(".") : e;
186
- }, me = ({
194
+ }, fe = ({
187
195
  name: e,
188
196
  canTrack: t
189
197
  }) => {
@@ -194,14 +202,14 @@ const Yt = () => {
194
202
  B.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
195
203
  return;
196
204
  }
197
- }, ut = async (e) => me(e), en = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(j).join("; "), tn = [["secure", ""], ["SameSite", "None"]], nn = ({
205
+ }, kt = async (e) => fe(e), fn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(j).join("; "), bn = [["secure", ""], ["SameSite", "None"]], gn = ({
198
206
  name: e,
199
207
  value: t,
200
208
  expires: n
201
209
  }) => {
202
- const r = (w() ? location.protocol === "https:" : !0) ? tn : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Zt(window.location.hostname)], ...r];
203
- return en(s);
204
- }, Ae = async ({
210
+ const r = (w() ? location.protocol === "https:" : !0) ? bn : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", hn(window.location.hostname)], ...r];
211
+ return fn(s);
212
+ }, Be = async ({
205
213
  name: e,
206
214
  value: t,
207
215
  expires: n,
@@ -210,7 +218,7 @@ const Yt = () => {
210
218
  try {
211
219
  if (!o)
212
220
  return;
213
- const r = nn({
221
+ const r = gn({
214
222
  name: e,
215
223
  value: t,
216
224
  expires: n
@@ -220,93 +228,93 @@ const Yt = () => {
220
228
  B.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
221
229
  }
222
230
  };
223
- function on() {
231
+ function yn() {
224
232
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
225
233
  const t = Math.random() * 16 | 0;
226
234
  return (e == "x" ? t : t & 3 | 8).toString(16);
227
235
  });
228
236
  }
229
- function pt() {
230
- return on().replace(/-/g, "");
237
+ function Ct() {
238
+ return yn().replace(/-/g, "");
231
239
  }
232
- const mt = "builderSessionId", rn = async ({
240
+ const Tt = "builderSessionId", Sn = async ({
233
241
  canTrack: e
234
242
  }) => {
235
243
  if (!e)
236
244
  return;
237
- const t = await ut({
238
- name: mt,
245
+ const t = await kt({
246
+ name: Tt,
239
247
  canTrack: e
240
248
  });
241
249
  if (j(t))
242
250
  return t;
243
251
  {
244
- const n = sn();
245
- return an({
252
+ const n = vn();
253
+ return kn({
246
254
  id: n,
247
255
  canTrack: e
248
256
  }), n;
249
257
  }
250
- }, sn = () => pt(), an = ({
258
+ }, vn = () => Ct(), kn = ({
251
259
  id: e,
252
260
  canTrack: t
253
- }) => Ae({
254
- name: mt,
261
+ }) => Be({
262
+ name: Tt,
255
263
  value: e,
256
264
  canTrack: t
257
- }), ht = () => w() && typeof localStorage < "u" ? localStorage : void 0, ln = ({
265
+ }), wt = () => w() && typeof localStorage < "u" ? localStorage : void 0, Cn = ({
258
266
  key: e,
259
267
  canTrack: t
260
268
  }) => {
261
269
  var n;
262
270
  try {
263
- return t ? (n = ht()) == null ? void 0 : n.getItem(e) : void 0;
271
+ return t ? (n = wt()) == null ? void 0 : n.getItem(e) : void 0;
264
272
  } catch (o) {
265
273
  console.debug("[LocalStorage] GET error: ", o);
266
274
  return;
267
275
  }
268
- }, cn = ({
276
+ }, Tn = ({
269
277
  key: e,
270
278
  canTrack: t,
271
279
  value: n
272
280
  }) => {
273
281
  var o;
274
282
  try {
275
- t && ((o = ht()) == null || o.setItem(e, n));
283
+ t && ((o = wt()) == null || o.setItem(e, n));
276
284
  } catch (r) {
277
285
  console.debug("[LocalStorage] SET error: ", r);
278
286
  }
279
- }, ft = "builderVisitorId", dn = ({
287
+ }, It = "builderVisitorId", wn = ({
280
288
  canTrack: e
281
289
  }) => {
282
290
  if (!e)
283
291
  return;
284
- const t = ln({
285
- key: ft,
292
+ const t = Cn({
293
+ key: It,
286
294
  canTrack: e
287
295
  });
288
296
  if (j(t))
289
297
  return t;
290
298
  {
291
- const n = un();
292
- return pn({
299
+ const n = In();
300
+ return En({
293
301
  id: n,
294
302
  canTrack: e
295
303
  }), n;
296
304
  }
297
- }, un = () => pt(), pn = ({
305
+ }, In = () => Ct(), En = ({
298
306
  id: e,
299
307
  canTrack: t
300
- }) => cn({
301
- key: ft,
308
+ }) => Tn({
309
+ key: It,
302
310
  value: e,
303
311
  canTrack: t
304
312
  });
305
- function Pe(e) {
313
+ function Ve(e) {
306
314
  var t;
307
315
  typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && B.log(e);
308
316
  }
309
- const mn = async ({
317
+ const Rn = async ({
310
318
  canTrack: e
311
319
  }) => {
312
320
  if (!e)
@@ -314,16 +322,16 @@ const mn = async ({
314
322
  visitorId: void 0,
315
323
  sessionId: void 0
316
324
  };
317
- const t = await rn({
325
+ const t = await Sn({
318
326
  canTrack: e
319
- }), n = dn({
327
+ }), n = wn({
320
328
  canTrack: e
321
329
  });
322
330
  return {
323
331
  sessionId: t,
324
332
  visitorId: n
325
333
  };
326
- }, hn = async ({
334
+ }, $n = async ({
327
335
  type: e,
328
336
  canTrack: t,
329
337
  apiKey: n,
@@ -337,14 +345,14 @@ const mn = async ({
337
345
  url: location.href,
338
346
  ...o
339
347
  },
340
- ...await mn({
348
+ ...await Rn({
341
349
  canTrack: t
342
350
  }),
343
- userAttributes: lt(),
351
+ userAttributes: yt(),
344
352
  ownerId: n
345
353
  }
346
354
  });
347
- async function le({
355
+ async function ue({
348
356
  apiHost: e,
349
357
  ...t
350
358
  }) {
@@ -352,27 +360,27 @@ async function le({
352
360
  B.error("Missing API key for track call. Please provide your API key.");
353
361
  return;
354
362
  }
355
- if (!t.canTrack || A() || !(w() || E === "reactNative"))
363
+ if (!t.canTrack || A() || !(w() || R === "reactNative"))
356
364
  return;
357
365
  const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
358
- return Pe(o), fetch(o, {
366
+ return Ve(o), fetch(o, {
359
367
  method: "POST",
360
368
  body: JSON.stringify({
361
- events: [await hn(t)]
369
+ events: [await $n(t)]
362
370
  }),
363
371
  headers: {
364
372
  "content-type": "application/json",
365
- ...dt()
373
+ ...vt()
366
374
  },
367
375
  mode: "cors"
368
376
  }).catch((r) => {
369
377
  console.error("Failed to track: ", r);
370
378
  });
371
379
  }
372
- const Vs = (e) => le({
380
+ const ea = (e) => ue({
373
381
  ...e,
374
382
  canTrack: !0
375
- }), fn = ({
383
+ }), An = ({
376
384
  builder: e,
377
385
  context: t,
378
386
  event: n,
@@ -384,13 +392,13 @@ const Vs = (e) => le({
384
392
  builder: e,
385
393
  context: t,
386
394
  event: n
387
- }), bn = (e) => ({
395
+ }), Pn = (e) => ({
388
396
  isEditing: A(),
389
397
  isBrowser: w(),
390
398
  isServer: !w(),
391
- getUserAttributes: () => lt(),
399
+ getUserAttributes: () => yt(),
392
400
  trackConversion: (t, n) => {
393
- !(e != null && e.apiKey) || (e == null ? void 0 : e.canTrack) === !1 || le({
401
+ !(e != null && e.apiKey) || (e == null ? void 0 : e.canTrack) === !1 || ue({
394
402
  type: "conversion",
395
403
  apiKey: e.apiKey,
396
404
  canTrack: e.canTrack ?? !0,
@@ -404,10 +412,10 @@ const Vs = (e) => le({
404
412
  }
405
413
  });
406
414
  }
407
- }), gn = (e, {
415
+ }), Bn = (e, {
408
416
  isExpression: t = !0
409
417
  }) => /* 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;
410
- function bt({
418
+ function Et({
411
419
  rootState: e,
412
420
  localState: t,
413
421
  rootSetState: n
@@ -417,7 +425,7 @@ function bt({
417
425
  if (t && r in t)
418
426
  return t[r];
419
427
  const i = o[r];
420
- return typeof i == "object" && i !== null ? bt({
428
+ return typeof i == "object" && i !== null ? Et({
421
429
  rootState: i,
422
430
  localState: void 0,
423
431
  rootSetState: n ? (s) => {
@@ -432,7 +440,10 @@ function bt({
432
440
  }
433
441
  });
434
442
  }
435
- const Me = ({
443
+ const Vn = 5e3, He = ht(Vn), On = (e, t) => {
444
+ let n = He.get(t);
445
+ return n || (n = new Function(...e, t), He.set(t, n)), n;
446
+ }, je = ({
436
447
  code: e,
437
448
  builder: t,
438
449
  context: n,
@@ -441,37 +452,44 @@ const Me = ({
441
452
  rootSetState: i,
442
453
  rootState: s
443
454
  }) => {
444
- const l = fn({
455
+ const l = An({
445
456
  builder: t,
446
457
  context: n,
447
458
  event: o,
448
- state: bt({
459
+ state: Et({
449
460
  rootState: s,
450
461
  localState: r,
451
462
  rootSetState: i
452
463
  })
453
464
  });
454
- return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
465
+ return On(l.map(([a]) => a), e)(...l.map(([, a]) => a));
455
466
  };
456
- function yn() {
467
+ function Nn() {
457
468
  var e;
458
469
  return typeof process < "u" && j((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
459
470
  }
460
- const vn = ({
471
+ let Ke = !1;
472
+ const Wn = ({
461
473
  shouldLogWarning: e
462
474
  }) => {
463
475
  var r;
464
- if (!yn())
476
+ if (!Nn())
465
477
  return !1;
466
478
  const t = process.arch === "arm64", n = process.version.startsWith("v20"), o = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
467
- return t && n && !o ? (e && B.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
468
- }, Sn = (e) => (w() || vn({
479
+ return t && n && !o ? (e && !Ke && (Ke = !0, B.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n ")), !0) : !1;
480
+ }, Dn = (e) => (w() || Wn({
469
481
  shouldLogWarning: !0
470
- }), Me(e)), kn = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Cn = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Tn = (e) => {
482
+ }), je(e)), xn = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Un = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Ln = (e) => {
471
483
  var t, n, o, r, i, s;
472
- return ((o = (n = (t = kn.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = Cn.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
484
+ return ((o = (n = (t = xn.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = Un.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
485
+ }, Fn = 5e3, ze = ht(Fn), Mn = (e) => {
486
+ let t = ze.get(e);
487
+ return t === void 0 && (t = Ln(e) || null, ze.set(e, t)), t;
488
+ }, Hn = (e, t, n) => {
489
+ const o = n.split(".")[0], r = t && Object.prototype.hasOwnProperty.call(t, o) ? t : e;
490
+ return ft(r, n);
473
491
  };
474
- function te({
492
+ function ne({
475
493
  code: e,
476
494
  context: t,
477
495
  localState: n,
@@ -483,17 +501,14 @@ function te({
483
501
  }) {
484
502
  if (e.trim() === "")
485
503
  return;
486
- const a = Tn(e.trim());
504
+ const a = Mn(e.trim());
487
505
  if (a)
488
- return it({
489
- ...o,
490
- ...n
491
- }, a);
492
- const u = {
493
- code: gn(e, {
506
+ return Hn(o, n, a);
507
+ const d = {
508
+ code: Bn(e, {
494
509
  isExpression: s
495
510
  }),
496
- builder: bn(l),
511
+ builder: Pn(l),
497
512
  context: t,
498
513
  event: i,
499
514
  rootSetState: r,
@@ -501,7 +516,7 @@ function te({
501
516
  localState: n
502
517
  };
503
518
  try {
504
- return Sn(u);
519
+ return Dn(d);
505
520
  } catch (p) {
506
521
  B.error("Failed code evaluation: " + p.message, {
507
522
  code: e
@@ -509,20 +524,20 @@ function te({
509
524
  return;
510
525
  }
511
526
  }
512
- function wn(e, t) {
527
+ function jn(e, t) {
513
528
  var n;
514
529
  return {
515
530
  ...(n = e.component) == null ? void 0 : n.options,
516
531
  ...e.options,
517
- ...In(e, t)
532
+ ...Kn(e, t)
518
533
  };
519
534
  }
520
- const In = (e, t) => {
535
+ const Kn = (e, t) => {
521
536
  var n, o;
522
537
  if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((o = e.component.options) != null && o.text) && typeof e.component.options.text == "string")
523
538
  return {
524
539
  ...e.component.options,
525
- text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, i) => te({
540
+ text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, i) => ne({
526
541
  code: i,
527
542
  context: t,
528
543
  localState: t.localState,
@@ -531,97 +546,85 @@ const In = (e, t) => {
531
546
  }))
532
547
  };
533
548
  };
534
- function $n(e, ...t) {
535
- const n = Object.assign({}, e);
536
- for (const o of t)
537
- delete n[o];
538
- return n;
539
- }
540
- function ce(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
541
- if (e == null || typeof e != "object") {
542
- t(e, (i) => {
543
- n !== null && o !== null && (n[o] = i);
544
- });
545
- return;
546
- }
547
- r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((i, s) => {
548
- t(i, (a) => {
549
- e[s] = a;
550
- }), ce(i, t, e, s, r);
551
- }) : Object.entries(e).forEach(([i, s]) => {
552
- t(s, (a) => {
553
- e[i] = a;
554
- }), ce(s, t, e, i, r);
555
- }));
556
- }
557
- function gt(e) {
549
+ function Rt(e) {
558
550
  return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
559
551
  }
560
- function En(e) {
561
- if (!e || !Object.getOwnPropertyNames(e).length)
562
- return !1;
563
- let t = !1;
564
- return ce(e, (n) => {
565
- if (gt(n)) {
566
- t = !0;
567
- return;
552
+ const zn = (e) => {
553
+ if (Array.isArray(e))
554
+ return !0;
555
+ const t = Object.getPrototypeOf(e);
556
+ return t === Object.prototype || t === null;
557
+ };
558
+ function ae(e, t, n) {
559
+ if (e === null || typeof e != "object")
560
+ return e;
561
+ if (Rt(e))
562
+ return ae(e[t] ?? void 0, t, n);
563
+ if (!zn(e))
564
+ return e;
565
+ if (n.has(e))
566
+ return n.get(e);
567
+ n.set(e, e);
568
+ let o = null;
569
+ if (Array.isArray(e))
570
+ for (let i = 0; i < e.length; i++) {
571
+ const s = ae(e[i], t, n);
572
+ s !== e[i] && (o || (o = e.slice()), o[i] = s);
568
573
  }
569
- }), t;
574
+ else
575
+ for (const i of Object.keys(e)) {
576
+ const s = ae(e[i], t, n);
577
+ s !== e[i] && (o || (o = {
578
+ ...e
579
+ }), o[i] = s);
580
+ }
581
+ const r = o ?? e;
582
+ return n.set(e, r), r;
570
583
  }
571
- function Rn(e, t) {
572
- return !e || !Object.getOwnPropertyNames(e).length ? {} : (ce(e, (n, o) => {
573
- gt(n) && o(n[t] ?? void 0);
574
- }), e);
584
+ function qn(e, t) {
585
+ var r;
586
+ const n = (r = e.component) == null ? void 0 : r.options;
587
+ if (!n || typeof n != "object" || Rt(n))
588
+ return e;
589
+ const o = ae(n, t ?? "Default", /* @__PURE__ */ new WeakMap());
590
+ return o === n ? e : (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"), {
591
+ ...e,
592
+ component: {
593
+ ...e.component,
594
+ options: o
595
+ }
596
+ });
575
597
  }
576
- function An(e, t) {
577
- var n, o;
578
- 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 = Rn(e.component.options, t ?? "Default")), e;
598
+ function be(e) {
599
+ const t = e || (w() ? window.location.search : void 0);
600
+ return t ? gt(t).indexOf("builder.preview=") !== -1 : !1;
579
601
  }
580
- const Be = (e) => JSON.parse(JSON.stringify(e)), yt = (e, t, n) => {
602
+ const $t = () => A() || be(), At = (e) => e.toString().match(/[^.[\]]+/g), Pt = (e) => Math.abs(Number(e)) >> 0 === +e, Bt = (e) => e.some((t, n) => t === "__proto__" || n < e.length - 1 && (t === "constructor" || t === "prototype")), Vt = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, Gn = (e, t, n) => {
581
603
  if (Object(e) !== e)
582
604
  return e;
583
- const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
584
- return o.slice(0, -1).reduce((r, i, s) => Object(r[i]) === r[i] ? r[i] : r[i] = Math.abs(Number(o[s + 1])) >> 0 === +o[s + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
585
- };
586
- function Se(e) {
587
- if (e === null || typeof e != "object")
605
+ const o = Array.isArray(t) ? t : At(t);
606
+ return !o || Bt(o) || (o.slice(0, -1).reduce((r, i, s) => {
607
+ const l = Vt(r, i);
608
+ return Object(l) === l ? l : r[i] = Pt(o[s + 1]) ? [] : {};
609
+ }, e)[o[o.length - 1]] = n), e;
610
+ }, _n = (e, t, n, o) => {
611
+ if (Object(e) !== e)
588
612
  return e;
589
- if (Array.isArray(e))
590
- return e.map((n) => Se(n));
591
- if (e["@type"] === "@builder.io/sdk:Element")
613
+ const r = At(t);
614
+ if (!r || Bt(r))
592
615
  return e;
593
- const t = {};
594
- for (const n in e)
595
- n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = Se(e[n]));
596
- return t;
597
- }
598
- const Pn = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), Bn = (e) => {
599
- if (Pn) {
600
- const t = Be(e);
601
- return {
602
- ...t,
603
- properties: {
604
- ...t.properties
605
- },
606
- actions: {
607
- ...t.actions
608
- }
609
- };
610
- } else {
611
- const t = Se($n(e, "children", "meta"));
612
- return {
613
- ...t,
614
- properties: {
615
- ...t.properties
616
- },
617
- actions: {
618
- ...t.actions
619
- },
620
- children: e.children,
621
- meta: e.meta
622
- };
616
+ o.add(e);
617
+ let i = e;
618
+ for (let s = 0; s < r.length - 1; s++) {
619
+ const l = r[s];
620
+ let a = Vt(i, l);
621
+ Object(a) !== a ? (a = Pt(r[s + 1]) ? [] : {}, o.add(a), i[l] = a) : typeof a == "object" && !o.has(a) && (a = Array.isArray(a) ? a.slice() : {
622
+ ...a
623
+ }, o.add(a), i[l] = a), i = a;
623
624
  }
624
- }, Vn = ({
625
+ return i[r[r.length - 1]] = n, e;
626
+ };
627
+ const Jn = ({
625
628
  block: e,
626
629
  context: t,
627
630
  localState: n,
@@ -630,54 +633,74 @@ const Pn = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), Bn = (e) =
630
633
  }) => {
631
634
  if (!e.bindings)
632
635
  return e;
633
- const i = Bn(e);
634
- for (const s in e.bindings) {
635
- const l = e.bindings[s], a = te({
636
- code: l,
636
+ const i = /* @__PURE__ */ new WeakSet(), s = {
637
+ ...e,
638
+ properties: {
639
+ ...e.properties
640
+ },
641
+ actions: {
642
+ ...e.actions
643
+ }
644
+ };
645
+ i.add(s.properties), i.add(s.actions);
646
+ for (const l in e.bindings) {
647
+ const a = e.bindings[l], d = ne({
648
+ code: a,
637
649
  localState: n,
638
650
  rootState: o,
639
651
  rootSetState: r,
640
652
  context: t
641
653
  });
642
- yt(i, s, a);
654
+ _n(s, l, d, i);
643
655
  }
644
- return i;
656
+ return s;
657
+ }, qe = /* @__PURE__ */ new WeakMap(), Qn = (e) => {
658
+ if (!e.bindings)
659
+ return !1;
660
+ for (const t in e.bindings)
661
+ return !0;
662
+ return !1;
645
663
  };
646
- function Nn({
664
+ function Yn({
647
665
  block: e,
648
666
  context: t,
649
667
  localState: n,
650
668
  rootState: o,
651
669
  rootSetState: r
652
670
  }) {
653
- let i = e;
654
- return i = Vn({
655
- block: i,
671
+ const i = o.locale, s = !Qn(e) && typeof e == "object" && e !== null && !$t(), l = i ?? "";
672
+ if (s) {
673
+ const d = qe.get(e);
674
+ if (d && d.locale === l)
675
+ return d.block;
676
+ }
677
+ let a = e;
678
+ return a = Jn({
679
+ block: a,
656
680
  localState: n,
657
681
  rootState: o,
658
682
  rootSetState: r,
659
683
  context: t
660
- }), i = An(i, o.locale), i;
684
+ }), a = qn(a, i), s && qe.set(e, {
685
+ locale: l,
686
+ block: a
687
+ }), a;
661
688
  }
662
- function Ve(e) {
663
- const t = e || (w() ? window.location.search : void 0);
664
- return t ? at(t).indexOf("builder.preview=") !== -1 : !1;
665
- }
666
- const On = (e) => ({
689
+ const Xn = (e) => ({
667
690
  type: "builder.registerComponent",
668
- data: de(e)
669
- }), Wn = (e) => {
691
+ data: Oe(e)
692
+ }), Zn = (e) => {
670
693
  const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
671
694
  return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
672
695
  };
673
- function de(e) {
674
- return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? Wn(n) : n));
696
+ function Oe(e) {
697
+ return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? Zn(n) : n));
675
698
  }
676
- const He = {};
677
- function Ns(e, t) {
678
- e === "plugin" && (t = de(t));
679
- let n = He[e];
680
- if (n || (n = He[e] = []), n.push(t), w()) {
699
+ const Ge = {};
700
+ function ta(e, t) {
701
+ e === "plugin" && (t = Oe(t));
702
+ let n = Ge[e];
703
+ if (n || (n = Ge[e] = []), n.push(t), w()) {
681
704
  const o = {
682
705
  type: "builder.register",
683
706
  data: {
@@ -692,7 +715,7 @@ function Ns(e, t) {
692
715
  }
693
716
  }
694
717
  }
695
- function Os(e) {
718
+ function na(e) {
696
719
  var t;
697
720
  if (w()) {
698
721
  const n = JSON.parse(JSON.stringify(e));
@@ -702,50 +725,50 @@ function Os(e) {
702
725
  }, "*");
703
726
  }
704
727
  }
705
- const je = {};
706
- function Ws(e) {
728
+ const _e = {};
729
+ function oa(e) {
707
730
  if (w()) {
708
- Object.assign(je, e);
731
+ Object.assign(_e, e);
709
732
  const t = {
710
733
  type: "builder.settingsChange",
711
- data: je
734
+ data: _e
712
735
  };
713
736
  parent.postMessage(t, "*");
714
737
  }
715
738
  }
716
- const ze = "builder.", Dn = "options.", vt = (e) => {
739
+ const Je = "builder.", eo = "options.", Ot = (e) => {
717
740
  if (!e)
718
741
  return {};
719
- const t = st(e), n = {};
742
+ const t = bt(e), n = {};
720
743
  return Object.keys(t).forEach((o) => {
721
- if (o.startsWith(ze)) {
722
- const r = o.replace(ze, "").replace(Dn, "");
744
+ if (o.startsWith(Je)) {
745
+ const r = o.replace(Je, "").replace(eo, "");
723
746
  n[r] = t[o];
724
747
  }
725
748
  }), n;
726
- }, Un = () => {
749
+ }, to = () => {
727
750
  if (!w())
728
751
  return {};
729
752
  const e = new URLSearchParams(window.location.search);
730
- return vt(e);
731
- }, xn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
732
- function St(e, t) {
753
+ return Ot(e);
754
+ }, no = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
755
+ function Nt(e, t) {
733
756
  let n;
734
757
  try {
735
758
  n = new URL(t.origin);
736
759
  } catch {
737
760
  return !1;
738
761
  }
739
- return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e || xn).findIndex((o) => o.startsWith("*.") ? n.hostname.endsWith(o.slice(1)) : o === n.hostname) > -1;
762
+ return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e || no).findIndex((o) => o.startsWith("*.") ? n.hostname.endsWith(o.slice(1)) : o === n.hostname) > -1;
740
763
  }
741
- let Ke = !1;
742
- const kt = (e) => {
764
+ let Qe = !1;
765
+ const Wt = (e) => {
743
766
  var t, n;
744
- Ke || (Ke = !0, w() && ((t = window.parent) == null || t.postMessage({
767
+ Qe || (Qe = !0, w() && ((t = window.parent) == null || t.postMessage({
745
768
  type: "builder.sdkInfo",
746
769
  data: {
747
- target: E,
748
- version: ct,
770
+ target: R,
771
+ version: St,
749
772
  supportsPatchUpdates: !1,
750
773
  // Supports builder-model="..." attribute which is needed to
751
774
  // scope our '+ add block' button styling
@@ -763,7 +786,7 @@ const kt = (e) => {
763
786
  }
764
787
  }, "*"), window.addEventListener("message", (o) => {
765
788
  var i, s;
766
- if (!St(e.trustedHosts, o))
789
+ if (!Nt(e.trustedHosts, o))
767
790
  return;
768
791
  const {
769
792
  data: r
@@ -771,7 +794,7 @@ const kt = (e) => {
771
794
  if (r != null && r.type)
772
795
  switch (r.type) {
773
796
  case "builder.evaluate": {
774
- const l = r.data.text, a = r.data.arguments || [], u = r.data.id, p = new Function(l);
797
+ const l = r.data.text, a = r.data.arguments || [], d = r.data.id, p = new Function(l);
775
798
  let b, c = null;
776
799
  try {
777
800
  b = p.apply(null, a);
@@ -781,7 +804,7 @@ const kt = (e) => {
781
804
  c ? (i = window.parent) == null || i.postMessage({
782
805
  type: "builder.evaluateError",
783
806
  data: {
784
- id: u,
807
+ id: d,
785
808
  error: c.message
786
809
  }
787
810
  }, "*") : b && typeof b.then == "function" ? b.then((m) => {
@@ -789,7 +812,7 @@ const kt = (e) => {
789
812
  (f = window.parent) == null || f.postMessage({
790
813
  type: "builder.evaluateResult",
791
814
  data: {
792
- id: u,
815
+ id: d,
793
816
  result: m
794
817
  }
795
818
  }, "*");
@@ -797,19 +820,19 @@ const kt = (e) => {
797
820
  type: "builder.evaluateResult",
798
821
  data: {
799
822
  result: b,
800
- id: u
823
+ id: d
801
824
  }
802
825
  }, "*");
803
826
  break;
804
827
  }
805
828
  }
806
829
  })));
807
- }, Ct = ({
830
+ }, Dt = ({
808
831
  model: e,
809
832
  trustedHosts: t,
810
833
  callbacks: n
811
834
  }) => (o) => {
812
- if (!St(t, o))
835
+ if (!Nt(t, o))
813
836
  return;
814
837
  const {
815
838
  data: r
@@ -835,7 +858,7 @@ const kt = (e) => {
835
858
  break;
836
859
  }
837
860
  }
838
- }, Ds = ({
861
+ }, ra = ({
839
862
  model: e,
840
863
  apiKey: t,
841
864
  callback: n,
@@ -844,11 +867,11 @@ const kt = (e) => {
844
867
  if (!w)
845
868
  return B.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
846
869
  };
847
- kt({
870
+ Wt({
848
871
  modelName: e,
849
872
  apiKey: t
850
873
  });
851
- const r = Ct({
874
+ const r = Dt({
852
875
  callbacks: {
853
876
  contentUpdate: n,
854
877
  animation: () => {
@@ -864,24 +887,24 @@ const kt = (e) => {
864
887
  return window.addEventListener("message", r), () => {
865
888
  window.removeEventListener("message", r);
866
889
  };
867
- }, Ln = "builder.tests", Ne = (e) => `${Ln}.${e}`, Fn = ({
890
+ }, oo = "builder.tests", Ne = (e) => `${oo}.${e}`, ro = ({
868
891
  contentId: e
869
- }) => ut({
892
+ }) => kt({
870
893
  name: Ne(e),
871
894
  canTrack: !0
872
- }), Mn = ({
895
+ }), io = ({
873
896
  contentId: e
874
- }) => me({
897
+ }) => fe({
875
898
  name: Ne(e),
876
899
  canTrack: !0
877
- }), Hn = ({
900
+ }), so = ({
878
901
  contentId: e,
879
902
  value: t
880
- }) => Ae({
903
+ }) => Be({
881
904
  name: Ne(e),
882
905
  value: t,
883
906
  canTrack: !0
884
- }), Tt = (e) => j(e.id) && j(e.variations) && Object.keys(e.variations).length > 0, jn = ({
907
+ }), xt = (e) => j(e.id) && j(e.variations) && Object.keys(e.variations).length > 0, ao = ({
885
908
  id: e,
886
909
  variations: t
887
910
  }) => {
@@ -894,15 +917,15 @@ const kt = (e) => {
894
917
  return i;
895
918
  }
896
919
  return e;
897
- }, wt = (e) => {
898
- const t = jn(e);
899
- return Hn({
920
+ }, Ut = (e) => {
921
+ const t = ao(e);
922
+ return so({
900
923
  contentId: e.id,
901
924
  value: t
902
925
  }).catch((n) => {
903
926
  B.error("could not store A/B test variation: ", n);
904
927
  }), t;
905
- }, It = ({
928
+ }, Lt = ({
906
929
  item: e,
907
930
  testGroupId: t
908
931
  }) => {
@@ -916,7 +939,7 @@ const kt = (e) => {
916
939
  testVariationId: n.id,
917
940
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
918
941
  };
919
- }, zn = ({
942
+ }, lo = ({
920
943
  item: e,
921
944
  canTrack: t
922
945
  }) => {
@@ -924,14 +947,14 @@ const kt = (e) => {
924
947
  return e;
925
948
  if (!e)
926
949
  return;
927
- if (!Tt(e))
950
+ if (!xt(e))
928
951
  return e;
929
- const n = Mn({
952
+ const n = io({
930
953
  contentId: e.id
931
- }) || wt({
954
+ }) || Ut({
932
955
  variations: e.variations,
933
956
  id: e.id
934
- }), o = It({
957
+ }), o = Lt({
935
958
  item: e,
936
959
  testGroupId: n
937
960
  });
@@ -939,18 +962,18 @@ const kt = (e) => {
939
962
  ...e,
940
963
  ...o
941
964
  };
942
- }, Kn = async ({
965
+ }, co = async ({
943
966
  item: e,
944
967
  canTrack: t
945
968
  }) => {
946
- if (!t || !Tt(e))
969
+ if (!t || !xt(e))
947
970
  return e;
948
- const o = await Fn({
971
+ const o = await ro({
949
972
  contentId: e.id
950
- }) || wt({
973
+ }) || Ut({
951
974
  variations: e.variations,
952
975
  id: e.id
953
- }), r = It({
976
+ }), r = Lt({
954
977
  item: e,
955
978
  testGroupId: o
956
979
  });
@@ -959,22 +982,22 @@ const kt = (e) => {
959
982
  ...r
960
983
  };
961
984
  };
962
- const qn = "builder.preview", Gn = "BUILDER_STUDIO", qe = "builder.userAttributes.", Jn = (e) => e === "true" ? !0 : e === "false" ? !1 : e, Ge = () => {
985
+ const uo = "builder.preview", po = "BUILDER_STUDIO", Ye = "builder.userAttributes.", mo = (e) => e === "true" ? !0 : e === "false" ? !1 : e, Xe = () => {
963
986
  if (!w())
964
987
  return {};
965
988
  const e = new URLSearchParams(window.location.search);
966
- if (e.get(qn) !== Gn)
989
+ if (e.get(uo) !== po)
967
990
  return {};
968
991
  const t = {};
969
992
  return e.forEach((n, o) => {
970
- o.startsWith(qe) && (t[o.slice(qe.length)] = Jn(n));
993
+ o.startsWith(Ye) && (t[o.slice(Ye.length)] = mo(n));
971
994
  }), t;
972
- }, Je = "builder.userAttributes";
973
- function Qe() {
995
+ }, Ze = "builder.userAttributes";
996
+ function et() {
974
997
  let e = !0;
975
998
  const t = /* @__PURE__ */ new Set(), n = () => {
976
- const o = me({
977
- name: Je,
999
+ const o = fe({
1000
+ name: Ze,
978
1001
  canTrack: e
979
1002
  });
980
1003
  return o ? JSON.parse(o) : {};
@@ -987,12 +1010,12 @@ function Qe() {
987
1010
  ...n(),
988
1011
  ...o
989
1012
  };
990
- Ae({
991
- name: Je,
1013
+ Be({
1014
+ name: Ze,
992
1015
  value: JSON.stringify(r),
993
1016
  canTrack: e
994
1017
  });
995
- const i = Ge();
1018
+ const i = Xe();
996
1019
  t.forEach((s) => s({
997
1020
  ...r,
998
1021
  ...i
@@ -1001,7 +1024,7 @@ function Qe() {
1001
1024
  getUserAttributes() {
1002
1025
  return w() ? {
1003
1026
  ...n(),
1004
- ...Ge()
1027
+ ...Xe()
1005
1028
  } : {};
1006
1029
  },
1007
1030
  subscribeOnUserAttributesChange(o, {
@@ -1016,45 +1039,45 @@ function Qe() {
1016
1039
  }
1017
1040
  };
1018
1041
  }
1019
- let ke;
1020
- w() && E === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Qe()), ke = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : ke = Qe();
1021
- const ue = ke, Us = (e) => {
1022
- ue.setUserAttributes(e);
1023
- }, J = (e) => {
1042
+ let Te;
1043
+ w() && R === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = et()), Te = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : Te = et();
1044
+ const pe = Te, ia = (e) => {
1045
+ pe.setUserAttributes(e);
1046
+ }, _ = (e) => {
1024
1047
  const t = j(e) ? e : !0;
1025
- return ue.setCanTrack(t), t;
1048
+ return pe.setCanTrack(t), t;
1026
1049
  };
1027
- function Qn() {
1050
+ function ho() {
1028
1051
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
1029
1052
  }
1030
- function _n() {
1031
- const e = Qn().fetch;
1053
+ function fo() {
1054
+ const e = ho().fetch;
1032
1055
  if (typeof e > "u")
1033
1056
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
1034
1057
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
1035
1058
  return e;
1036
1059
  }
1037
- const Yn = _n();
1038
- function Ce(e, t = null, n = ".") {
1060
+ const bo = fo();
1061
+ function we(e, t = null, n = ".") {
1039
1062
  return Object.keys(e).reduce((o, r) => {
1040
1063
  const i = e[r], s = [t, r].filter(Boolean).join(n);
1041
1064
  return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
1042
1065
  ...o,
1043
- ...Ce(i, s, n)
1066
+ ...we(i, s, n)
1044
1067
  } : {
1045
1068
  ...o,
1046
1069
  [s]: i
1047
1070
  };
1048
1071
  }, {});
1049
1072
  }
1050
- function $t(e, t, n = {}) {
1073
+ function Ft(e, t, n = {}) {
1051
1074
  for (const o in e) {
1052
1075
  const r = e[o], i = t ? t + "." + o : o;
1053
- r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? $t(r, i, n) : n[i] = r;
1076
+ r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? Ft(r, i, n) : n[i] = r;
1054
1077
  }
1055
1078
  return n;
1056
1079
  }
1057
- function Xn(e) {
1080
+ function go(e) {
1058
1081
  const t = {};
1059
1082
  for (const n in e) {
1060
1083
  const o = n.split(".");
@@ -1066,7 +1089,7 @@ function Xn(e) {
1066
1089
  }
1067
1090
  return t;
1068
1091
  }
1069
- const Zn = "v3", _e = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Oe = (e) => {
1092
+ const yo = "v3", tt = (e) => typeof e == "number" && !isNaN(e) && e >= 0, We = (e) => {
1070
1093
  const {
1071
1094
  limit: t = 30,
1072
1095
  userAttributes: n,
@@ -1076,7 +1099,7 @@ const Zn = "v3", _e = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Oe = (
1076
1099
  enrich: s,
1077
1100
  enrichOptions: l,
1078
1101
  locale: a,
1079
- apiVersion: u = Zn,
1102
+ apiVersion: d = yo,
1080
1103
  fields: p,
1081
1104
  omit: b,
1082
1105
  offset: c,
@@ -1084,87 +1107,87 @@ const Zn = "v3", _e = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Oe = (
1084
1107
  staleCacheSeconds: f,
1085
1108
  sort: g,
1086
1109
  includeUnpublished: P,
1087
- apiHost: U
1110
+ apiHost: x
1088
1111
  } = e;
1089
1112
  if (!i)
1090
1113
  throw new Error("Missing API key");
1091
- if (!["v3"].includes(u))
1092
- throw new Error(`Invalid apiVersion: expected 'v3', received '${u}'`);
1093
- const V = t !== 1, q = U || "https://cdn.builder.io", C = new URL(`${q}/api/${u}/content/${r}`);
1114
+ if (!["v3"].includes(d))
1115
+ throw new Error(`Invalid apiVersion: expected 'v3', received '${d}'`);
1116
+ const V = t !== 1, q = x || "https://cdn.builder.io", C = new URL(`${q}/api/${d}/content/${r}`);
1094
1117
  C.searchParams.set("apiKey", i), C.searchParams.set("limit", String(t)), C.searchParams.set("noTraverse", String(V)), C.searchParams.set("includeRefs", String(!0)), a && C.searchParams.set("locale", a);
1095
- let z = n || {};
1096
- if (s && C.searchParams.set("enrich", String(s)), s && l && C.searchParams.set("enrichOptions", JSON.stringify(l)), C.searchParams.set("omit", b ?? "meta.componentsUsed"), p && C.searchParams.set("fields", p), Number.isFinite(c) && c > -1 && C.searchParams.set("offset", String(Math.floor(c))), typeof P == "boolean" && C.searchParams.set("includeUnpublished", String(P)), m && _e(m) && C.searchParams.set("cacheSeconds", String(m)), f && _e(f) && C.searchParams.set("staleCacheSeconds", String(f)), g) {
1097
- const W = Ce({
1118
+ let K = n || {};
1119
+ if (s && C.searchParams.set("enrich", String(s)), s && l && C.searchParams.set("enrichOptions", JSON.stringify(l)), C.searchParams.set("omit", b ?? "meta.componentsUsed"), p && C.searchParams.set("fields", p), Number.isFinite(c) && c > -1 && C.searchParams.set("offset", String(Math.floor(c))), typeof P == "boolean" && C.searchParams.set("includeUnpublished", String(P)), m && tt(m) && C.searchParams.set("cacheSeconds", String(m)), f && tt(f) && C.searchParams.set("staleCacheSeconds", String(f)), g) {
1120
+ const W = we({
1098
1121
  sort: g
1099
1122
  });
1100
1123
  for (const F in W)
1101
1124
  C.searchParams.set(F, JSON.stringify(W[F]));
1102
1125
  }
1103
- const Q = {
1104
- ...Un(),
1105
- ...st(e.options || {})
1126
+ const J = {
1127
+ ...to(),
1128
+ ...bt(e.options || {})
1106
1129
  };
1107
- z = {
1108
- ...z,
1109
- ...no(Q)
1130
+ K = {
1131
+ ...K,
1132
+ ...ko(J)
1110
1133
  };
1111
- const _ = Ce(Q);
1112
- for (const W in _)
1113
- W !== "apiKey" && C.searchParams.set(W, String(_[W]));
1114
- if (Object.keys(z).length > 0 && C.searchParams.set("userAttributes", JSON.stringify(z)), o) {
1115
- const W = $t({
1134
+ const Q = we(J);
1135
+ for (const W in Q)
1136
+ W !== "apiKey" && C.searchParams.set(W, String(Q[W]));
1137
+ if (Object.keys(K).length > 0 && C.searchParams.set("userAttributes", JSON.stringify(K)), o) {
1138
+ const W = Ft({
1116
1139
  query: o
1117
1140
  });
1118
1141
  for (const F in W)
1119
1142
  C.searchParams.set(F, JSON.stringify(W[F]));
1120
1143
  }
1121
1144
  return C;
1122
- }, eo = (e) => e === "true" ? !0 : e === "false" ? !1 : e, to = (e) => {
1145
+ }, So = (e) => e === "true" ? !0 : e === "false" ? !1 : e, vo = (e) => {
1123
1146
  const t = {};
1124
1147
  for (const n in e)
1125
- n.startsWith("userAttributes.") && (t[n] = eo(e[n]), delete e[n]);
1148
+ n.startsWith("userAttributes.") && (t[n] = So(e[n]), delete e[n]);
1126
1149
  return t;
1127
- }, no = (e) => {
1150
+ }, ko = (e) => {
1128
1151
  if (w() && e.preview === "BUILDER_STUDIO") {
1129
1152
  e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
1130
- const t = to(e), {
1153
+ const t = vo(e), {
1131
1154
  userAttributes: n
1132
- } = Xn(t);
1155
+ } = go(t);
1133
1156
  return n;
1134
1157
  }
1135
1158
  return {};
1136
- }, oo = (e) => "results" in e;
1137
- async function We(e) {
1159
+ }, Co = (e) => "results" in e;
1160
+ async function De(e) {
1138
1161
  var o;
1139
1162
  const t = e.locale || ((o = e.userAttributes) == null ? void 0 : o.locale);
1140
1163
  t && (e.locale = t, e.userAttributes = {
1141
1164
  locale: t,
1142
1165
  ...e.userAttributes
1143
1166
  });
1144
- const n = await so({
1167
+ const n = await Io({
1145
1168
  ...e,
1146
1169
  limit: 1
1147
1170
  });
1148
1171
  return n && n[0] || null;
1149
1172
  }
1150
- const ro = async (e) => {
1173
+ const To = async (e) => {
1151
1174
  var s;
1152
- const t = Oe(e), n = e.fetch ?? Yn, o = {
1175
+ const t = We(e), n = e.fetch ?? bo, o = {
1153
1176
  ...e.fetchOptions,
1154
1177
  headers: {
1155
1178
  ...(s = e.fetchOptions) == null ? void 0 : s.headers,
1156
- ...dt()
1179
+ ...vt()
1157
1180
  }
1158
1181
  };
1159
1182
  return await (await n(t.href, o)).json();
1160
- }, io = async (e, t, n = Oe(e)) => {
1161
- const o = J(e.canTrack);
1162
- if (n.search.includes("preview="), !o || !(w() || E === "reactNative"))
1183
+ }, wo = async (e, t, n = We(e)) => {
1184
+ const o = _(e.canTrack);
1185
+ if (n.search.includes("preview="), !o || !(w() || R === "reactNative"))
1163
1186
  return t.results;
1164
1187
  try {
1165
1188
  const r = [];
1166
1189
  for (const i of t.results)
1167
- r.push(await Kn({
1190
+ r.push(await co({
1168
1191
  item: i,
1169
1192
  canTrack: o
1170
1193
  }));
@@ -1174,17 +1197,17 @@ const ro = async (e) => {
1174
1197
  }
1175
1198
  return t.results;
1176
1199
  };
1177
- async function so(e) {
1178
- const t = Oe(e), n = await ro(e);
1179
- if (!oo(n))
1200
+ async function Io(e) {
1201
+ const t = We(e), n = await To(e);
1202
+ if (!Co(n))
1180
1203
  throw B.error("Error fetching data. ", {
1181
1204
  url: t,
1182
1205
  content: n,
1183
1206
  options: e
1184
1207
  }), n;
1185
- return io(e, n);
1208
+ return wo(e, n);
1186
1209
  }
1187
- const xs = async (e) => {
1210
+ const sa = async (e) => {
1188
1211
  var o, r, i;
1189
1212
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
1190
1213
  ...e,
@@ -1196,27 +1219,27 @@ const xs = async (e) => {
1196
1219
  urlPath: t
1197
1220
  } : {}
1198
1221
  },
1199
- options: vt(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
1222
+ options: Ot(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
1200
1223
  };
1201
1224
  return {
1202
1225
  apiKey: n.apiKey,
1203
1226
  model: n.model,
1204
- content: await We(n)
1227
+ content: await De(n)
1205
1228
  };
1206
- }, De = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
1207
- function ao(e, t, n = {}) {
1229
+ }, xe = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
1230
+ function Eo(e, t, n = {}) {
1208
1231
  let o, r, i, s = null, l = 0;
1209
1232
  const a = function() {
1210
1233
  l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
1211
1234
  };
1212
1235
  return function() {
1213
- const u = Date.now();
1214
- !l && n.leading === !1 && (l = u);
1215
- const p = t - (u - l);
1216
- return o = this, r = arguments, p <= 0 || p > t ? (s && (clearTimeout(s), s = null), l = u, i = e.apply(o, r), s || (o = r = null)) : !s && n.trailing !== !1 && (s = setTimeout(a, p)), i;
1236
+ const d = Date.now();
1237
+ !l && n.leading === !1 && (l = d);
1238
+ const p = t - (d - l);
1239
+ return o = this, r = arguments, p <= 0 || p > t ? (s && (clearTimeout(s), s = null), l = d, i = e.apply(o, r), s || (o = r = null)) : !s && n.trailing !== !1 && (s = setTimeout(a, p)), i;
1217
1240
  };
1218
1241
  }
1219
- function Z(e, ...t) {
1242
+ function ee(e, ...t) {
1220
1243
  const n = Object(e);
1221
1244
  for (let o = 1; o < arguments.length; o++) {
1222
1245
  const r = arguments[o];
@@ -1226,64 +1249,64 @@ function Z(e, ...t) {
1226
1249
  }
1227
1250
  return n;
1228
1251
  }
1229
- function lo(e) {
1252
+ function Ro(e) {
1230
1253
  for (const t of e)
1231
1254
  switch (t.trigger) {
1232
1255
  case "pageLoad":
1233
- At(t);
1256
+ jt(t);
1234
1257
  break;
1235
1258
  case "scrollInView":
1236
- uo(t);
1259
+ Ao(t);
1237
1260
  break;
1238
1261
  }
1239
1262
  }
1240
- function Et(e) {
1263
+ function Mt(e) {
1241
1264
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
1242
1265
  }
1243
- function Rt(e, t) {
1244
- const n = co(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
1266
+ function Ht(e, t) {
1267
+ const n = $o(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
1245
1268
  for (const l of s)
1246
1269
  for (const a of n)
1247
1270
  a in l || (l[a] = o[a]);
1248
1271
  }
1249
- function co(e) {
1272
+ function $o(e) {
1250
1273
  const t = [];
1251
1274
  for (const n of e.steps)
1252
1275
  for (const o in n.styles)
1253
1276
  t.indexOf(o) === -1 && t.push(o);
1254
1277
  return t;
1255
1278
  }
1256
- function At(e) {
1279
+ function jt(e) {
1257
1280
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
1258
1281
  if (!t.length) {
1259
- Et(e.elementId || e.id || "");
1282
+ Mt(e.elementId || e.id || "");
1260
1283
  return;
1261
1284
  }
1262
1285
  Array.from(t).forEach((n) => {
1263
- Rt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Z(n.style, e.steps[0].styles), setTimeout(() => {
1264
- n.style.transition = `all ${e.duration}s ${De(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Z(n.style, e.steps[1].styles), setTimeout(() => {
1286
+ Ht(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ee(n.style, e.steps[0].styles), setTimeout(() => {
1287
+ n.style.transition = `all ${e.duration}s ${xe(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ee(n.style, e.steps[1].styles), setTimeout(() => {
1265
1288
  n.style.transition = "", n.style.transitionDelay = "";
1266
1289
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
1267
1290
  });
1268
1291
  });
1269
1292
  }
1270
- function uo(e) {
1293
+ function Ao(e) {
1271
1294
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
1272
1295
  if (!t.length) {
1273
- Et(e.elementId || e.id || "");
1296
+ Mt(e.elementId || e.id || "");
1274
1297
  return;
1275
1298
  }
1276
1299
  Array.from(t).forEach((n) => {
1277
- Rt(e, n);
1300
+ Ht(e, n);
1278
1301
  let o = !1, r = !1;
1279
1302
  function i() {
1280
1303
  !o && l(n) ? (o = !0, r = !0, setTimeout(() => {
1281
- Z(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
1304
+ ee(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
1282
1305
  r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
1283
1306
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
1284
- })) : e.repeat && o && !r && !l(n) && (o = !1, Z(n.style, e.steps[0].styles));
1307
+ })) : e.repeat && o && !r && !l(n) && (o = !1, ee(n.style, e.steps[0].styles));
1285
1308
  }
1286
- const s = ao(i, 200, {
1309
+ const s = Eo(i, 200, {
1287
1310
  leading: !1
1288
1311
  });
1289
1312
  function l(p) {
@@ -1291,65 +1314,65 @@ function uo(e) {
1291
1314
  return b.bottom > f && b.top < c - f;
1292
1315
  }
1293
1316
  const a = e.steps[0].styles;
1294
- function u() {
1295
- Z(n.style, a);
1317
+ function d() {
1318
+ ee(n.style, a);
1296
1319
  }
1297
- u(), setTimeout(() => {
1298
- n.style.transition = `all ${e.duration}s ${De(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
1320
+ d(), setTimeout(() => {
1321
+ n.style.transition = `all ${e.duration}s ${xe(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
1299
1322
  }), document.addEventListener("scroll", s, {
1300
1323
  capture: !0,
1301
1324
  passive: !0
1302
1325
  }), i();
1303
1326
  });
1304
1327
  }
1305
- const re = (e, t) => {
1328
+ const ie = (e, t) => {
1306
1329
  const n = (e == null ? void 0 : e.objectPosition) || t;
1307
1330
  return n ? {
1308
1331
  ...e,
1309
1332
  "--builder-image-position": n
1310
1333
  } : e;
1311
- }, Ls = (e, t) => t ? {
1334
+ }, aa = (e, t) => t ? {
1312
1335
  ...e,
1313
- large: re(e == null ? void 0 : e.large, "initial"),
1314
- medium: re(e == null ? void 0 : e.medium),
1315
- small: re(e == null ? void 0 : e.small),
1316
- xsmall: re(e == null ? void 0 : e.xsmall)
1317
- } : e, Pt = (e) => Object.entries(e).map(([n, o]) => {
1336
+ large: ie(e == null ? void 0 : e.large, "initial"),
1337
+ medium: ie(e == null ? void 0 : e.medium),
1338
+ small: ie(e == null ? void 0 : e.small),
1339
+ xsmall: ie(e == null ? void 0 : e.xsmall)
1340
+ } : e, Kt = (e) => Object.entries(e).map(([n, o]) => {
1318
1341
  if (typeof o == "string")
1319
- return `${De(n)}: ${o};`;
1320
- }).filter(j), po = (e) => Pt(e).join(`
1321
- `), Fs = ({
1342
+ return `${xe(n)}: ${o};`;
1343
+ }).filter(j), Po = (e) => Kt(e).join(`
1344
+ `), la = ({
1322
1345
  mediaQuery: e,
1323
1346
  className: t,
1324
1347
  styles: n
1325
1348
  }) => {
1326
1349
  const o = `.${t} {
1327
- ${po(n)}
1350
+ ${Po(n)}
1328
1351
  }`;
1329
1352
  return e ? `${e} {
1330
1353
  ${o}
1331
1354
  }` : o;
1332
1355
  };
1333
- function mo({
1356
+ function Bo({
1334
1357
  style: e
1335
1358
  }) {
1336
1359
  return e;
1337
1360
  }
1338
- const Ms = ({
1361
+ const ca = ({
1339
1362
  block: e,
1340
1363
  context: t
1341
- }) => Bt(mo({
1364
+ }) => zt(Bo({
1342
1365
  style: e.style || {},
1343
1366
  context: t,
1344
1367
  block: e
1345
1368
  }));
1346
- function Bt(e) {
1347
- switch (E) {
1369
+ function zt(e) {
1370
+ switch (R) {
1348
1371
  case "svelte":
1349
1372
  case "vue":
1350
1373
  case "solid":
1351
1374
  case "angular":
1352
- return Pt(e).join(" ");
1375
+ return Kt(e).join(" ");
1353
1376
  case "qwik":
1354
1377
  case "reactNative":
1355
1378
  case "react":
@@ -1357,7 +1380,7 @@ function Bt(e) {
1357
1380
  return e;
1358
1381
  }
1359
1382
  }
1360
- const Vt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, ho = ({
1383
+ const qt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Vo = ({
1361
1384
  block: e,
1362
1385
  registeredComponents: t,
1363
1386
  model: n
@@ -1367,99 +1390,121 @@ const Vt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1367
1390
  if (!o)
1368
1391
  return null;
1369
1392
  const r = t[o];
1370
- if (!r || Vt(r, n)) {
1393
+ if (!r || qt(r, n)) {
1371
1394
  console.warn(`
1372
1395
  Could not find a registered component named "${o}".
1373
1396
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
1374
1397
  return;
1375
1398
  } else
1376
1399
  return r;
1377
- }, fo = ({
1400
+ }, nt = /* @__PURE__ */ new WeakMap(), Oo = (e) => {
1401
+ if ($t()) {
1402
+ const {
1403
+ repeat: n,
1404
+ ...o
1405
+ } = e;
1406
+ return o;
1407
+ }
1408
+ let t = nt.get(e);
1409
+ if (!t) {
1410
+ const {
1411
+ repeat: n,
1412
+ ...o
1413
+ } = e;
1414
+ t = o, nt.set(e, t);
1415
+ }
1416
+ return t;
1417
+ }, No = ({
1378
1418
  block: e,
1379
1419
  context: t
1380
1420
  }) => {
1381
1421
  const {
1382
- repeat: n,
1383
- ...o
1422
+ repeat: n
1384
1423
  } = e;
1385
1424
  if (!(n != null && n.collection))
1386
1425
  return;
1387
- const r = te({
1426
+ const o = ne({
1388
1427
  code: n.collection,
1389
1428
  localState: t.localState,
1390
1429
  rootState: t.rootState,
1391
1430
  rootSetState: t.rootSetState,
1392
1431
  context: t.context
1393
1432
  });
1394
- if (!Array.isArray(r))
1433
+ if (!Array.isArray(o))
1395
1434
  return;
1396
- const i = n.collection.split(".").pop(), s = n.itemName || (i ? i + "Item" : "item");
1397
- return r.map((a, u) => ({
1435
+ const r = n.collection.split(".").pop(), i = n.itemName || (r ? r + "Item" : "item"), s = Oo(e);
1436
+ return o.map((a, d) => ({
1398
1437
  context: {
1399
1438
  ...t,
1400
1439
  localState: {
1401
1440
  ...t.localState,
1402
- $index: u,
1441
+ $index: d,
1403
1442
  $item: a,
1404
- [s]: a,
1405
- [`$${s}Index`]: u
1443
+ [i]: a,
1444
+ [`$${i}Index`]: d
1406
1445
  }
1407
1446
  },
1408
- block: o
1447
+ block: s
1409
1448
  }));
1410
- }, bo = (e, t) => {
1449
+ }, Wo = (e, t) => {
1411
1450
  var n;
1412
1451
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
1413
1452
  builderLinkComponent: t
1414
1453
  } : {};
1415
- }, go = (e, t, n) => {
1454
+ }, ot = /* @__PURE__ */ new WeakMap(), Do = (e, t, n) => {
1416
1455
  var o;
1417
- return (o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents ? {
1418
- builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !Vt(s, n)))
1419
- } : {};
1420
- }, yo = (e, t) => {
1456
+ if ((o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents) {
1457
+ let r = ot.get(t);
1458
+ r || (r = /* @__PURE__ */ new Map(), ot.set(t, r));
1459
+ let i = r.get(n);
1460
+ return i || (i = Object.fromEntries(Object.entries(t).filter(([s, l]) => !qt(l, n))), r.set(n, i)), {
1461
+ builderComponents: i
1462
+ };
1463
+ }
1464
+ return {};
1465
+ }, xo = (e, t) => {
1421
1466
  var n;
1422
1467
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
1423
1468
  builderBlock: t
1424
1469
  } : {};
1425
- }, vo = (e, t) => {
1470
+ }, Uo = (e, t) => {
1426
1471
  var n;
1427
1472
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
1428
1473
  builderContext: t
1429
1474
  } : {};
1430
- }, So = (e) => e.toString(), ko = () => Promise.resolve().then(() => Wo).then((e) => e.default).catch((e) => {
1475
+ }, Lo = (e) => e.toString(), Fo = () => Promise.resolve().then(() => er).then((e) => e.default).catch((e) => {
1431
1476
  throw console.error(
1432
1477
  "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
1433
1478
  e
1434
1479
  ), e;
1435
- }), Co = () => import("./block-wrapper-C1nlMTqm.js").then((e) => e.default).catch((e) => {
1480
+ }), Mo = () => import("./block-wrapper-Uj0c_ct-.js").then((e) => e.default).catch((e) => {
1436
1481
  throw console.error(
1437
1482
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
1438
1483
  e
1439
1484
  ), e;
1440
- }), To = () => import("./component-ref-Xhuf1e4j.js").then((e) => e.default).catch((e) => {
1485
+ }), Ho = () => import("./component-ref-826ipClg.js").then((e) => e.default).catch((e) => {
1441
1486
  throw console.error(
1442
1487
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
1443
1488
  e
1444
1489
  ), e;
1445
- }), wo = () => import("./repeated-block-xzflsmu_.js").then((e) => e.default).catch((e) => {
1490
+ }), jo = () => import("./repeated-block-s-uTJJ2l.js").then((e) => e.default).catch((e) => {
1446
1491
  throw console.error(
1447
1492
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
1448
1493
  e
1449
1494
  ), e;
1450
- }), Io = () => import("./style-wrapper-0oQEXIZd.js").then((e) => e.default).catch((e) => {
1495
+ }), Ko = () => import("./style-wrapper-WeOZ3wU5.js").then((e) => e.default).catch((e) => {
1451
1496
  throw console.error(
1452
1497
  "Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
1453
1498
  e
1454
1499
  ), e;
1455
- }), $o = y({
1500
+ }), zo = y({
1456
1501
  name: "block",
1457
1502
  components: {
1458
- StyleWrapper: Y(Io),
1459
- RepeatedBlock: Y(wo),
1460
- ComponentRef: Y(To),
1461
- BlockWrapper: Y(Co),
1462
- DynamicDiv: Y(ko)
1503
+ StyleWrapper: Y(Ko),
1504
+ RepeatedBlock: Y(jo),
1505
+ ComponentRef: Y(Ho),
1506
+ BlockWrapper: Y(Mo),
1507
+ DynamicDiv: Y(Fo)
1463
1508
  },
1464
1509
  props: ["block", "context", "registeredComponents", "linkComponent"],
1465
1510
  data() {
@@ -1468,12 +1513,16 @@ const Vt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1468
1513
  value: null,
1469
1514
  update: !1
1470
1515
  },
1471
- generateKey: So
1516
+ _componentRefProps: {
1517
+ value: null,
1518
+ deps: []
1519
+ },
1520
+ generateKey: Lo
1472
1521
  };
1473
1522
  },
1474
1523
  mounted() {
1475
1524
  const e = this.processedBlock.id, t = this.processedBlock.animations;
1476
- t && e && lo(
1525
+ t && e && Ro(
1477
1526
  t.map((n) => ({
1478
1527
  ...n,
1479
1528
  elementId: e
@@ -1484,14 +1533,14 @@ const Vt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1484
1533
  },
1485
1534
  computed: {
1486
1535
  repeatItem() {
1487
- return fo({
1536
+ return No({
1488
1537
  block: this.block,
1489
1538
  context: this.context
1490
1539
  });
1491
1540
  },
1492
1541
  processedBlock() {
1493
1542
  var t;
1494
- return (t = this.block.repeat) != null && t.collection ? this.block : Nn({
1543
+ return (t = this.block.repeat) != null && t.collection ? this.block : Yn({
1495
1544
  block: this.block,
1496
1545
  localState: this.context.localState,
1497
1546
  rootState: this.context.rootState,
@@ -1500,7 +1549,7 @@ const Vt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1500
1549
  });
1501
1550
  },
1502
1551
  blockComponent() {
1503
- return ho({
1552
+ return Vo({
1504
1553
  block: this.processedBlock,
1505
1554
  registeredComponents: this.registeredComponents,
1506
1555
  model: this.context.model
@@ -1522,16 +1571,16 @@ const Vt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1522
1571
  return !((t = this.blockComponent) != null && t.component) && !this.repeatItem ? this.processedBlock.children ?? [] : [];
1523
1572
  },
1524
1573
  componentRefProps() {
1525
- var e, t, n;
1526
- return {
1574
+ var t, n, o;
1575
+ return this.processedBlock, this.context, this.context.rootState, this.context.localState, this.registeredComponents, this.linkComponent, {
1527
1576
  blockChildren: this.processedBlock.children ?? [],
1528
- componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
1577
+ componentRef: (t = this.blockComponent) == null ? void 0 : t.component,
1529
1578
  componentOptions: {
1530
- ...wn(this.processedBlock, this.context),
1531
- ...yo(this.blockComponent, this.processedBlock),
1532
- ...vo(this.blockComponent, this.context),
1533
- ...bo(this.blockComponent, this.linkComponent),
1534
- ...go(
1579
+ ...jn(this.processedBlock, this.context),
1580
+ ...xo(this.blockComponent, this.processedBlock),
1581
+ ...Uo(this.blockComponent, this.context),
1582
+ ...Wo(this.blockComponent, this.linkComponent),
1583
+ ...Do(
1535
1584
  this.blockComponent,
1536
1585
  this.registeredComponents,
1537
1586
  this.context.model
@@ -1541,29 +1590,29 @@ const Vt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1541
1590
  linkComponent: this.linkComponent,
1542
1591
  registeredComponents: this.registeredComponents,
1543
1592
  builderBlock: this.processedBlock,
1544
- includeBlockProps: ((t = this.blockComponent) == null ? void 0 : t.noWrap) === !0,
1545
- isInteractive: !((n = this.blockComponent) != null && n.isRSC && E === "rsc")
1593
+ includeBlockProps: ((n = this.blockComponent) == null ? void 0 : n.noWrap) === !0,
1594
+ isInteractive: !((o = this.blockComponent) != null && o.isRSC && R === "rsc")
1546
1595
  };
1547
1596
  }
1548
1597
  }
1549
1598
  });
1550
- function Eo(e, t, n, o, r, i) {
1599
+ function qo(e, t, n, o, r, i) {
1551
1600
  var b;
1552
- const s = k("StyleWrapper"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), p = k("RepeatedBlock");
1553
- return e.canShowBlock ? (d(), h(I, { key: 0 }, [
1554
- R(s, {
1601
+ const s = k("StyleWrapper"), l = k("ComponentRef"), a = k("Block", !0), d = k("BlockWrapper"), p = k("RepeatedBlock");
1602
+ return e.canShowBlock ? (u(), h(I, { key: 0 }, [
1603
+ $(s, {
1555
1604
  block: e.processedBlock,
1556
1605
  context: e.context,
1557
1606
  id: e.block.id
1558
1607
  }, null, 8, ["block", "context", "id"]),
1559
- (b = e.blockComponent) != null && b.noWrap ? (d(), h(I, { key: 1 }, [
1560
- e.repeatItem ? (d(!0), h(I, { key: 1 }, L(e.repeatItem, (c, m) => (d(), S(p, {
1608
+ (b = e.blockComponent) != null && b.noWrap ? (u(), h(I, { key: 1 }, [
1609
+ e.repeatItem ? (u(!0), h(I, { key: 1 }, L(e.repeatItem, (c, m) => (u(), v(p, {
1561
1610
  key: e.generateKey(m),
1562
1611
  repeatContext: c.context,
1563
1612
  block: c.block,
1564
1613
  registeredComponents: e.registeredComponents,
1565
1614
  linkComponent: e.linkComponent
1566
- }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (d(), S(l, {
1615
+ }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (u(), v(l, {
1567
1616
  key: 0,
1568
1617
  componentRef: e.componentRefProps.componentRef,
1569
1618
  componentOptions: e.componentRefProps.componentOptions,
@@ -1575,21 +1624,21 @@ function Eo(e, t, n, o, r, i) {
1575
1624
  includeBlockProps: e.componentRefProps.includeBlockProps,
1576
1625
  isInteractive: e.componentRefProps.isInteractive
1577
1626
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
1578
- ], 64)) : (d(), h(I, { key: 0 }, [
1579
- e.repeatItem ? (d(!0), h(I, { key: 1 }, L(e.repeatItem, (c, m) => (d(), S(p, {
1627
+ ], 64)) : (u(), h(I, { key: 0 }, [
1628
+ e.repeatItem ? (u(!0), h(I, { key: 1 }, L(e.repeatItem, (c, m) => (u(), v(p, {
1580
1629
  key: e.generateKey(m),
1581
1630
  repeatContext: c.context,
1582
1631
  block: c.block,
1583
1632
  registeredComponents: e.registeredComponents,
1584
1633
  linkComponent: e.linkComponent
1585
- }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (d(), S(u, {
1634
+ }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (u(), v(d, {
1586
1635
  key: 0,
1587
1636
  Wrapper: e.Tag,
1588
1637
  block: e.processedBlock,
1589
1638
  context: e.context
1590
1639
  }, {
1591
1640
  default: D(() => [
1592
- R(l, {
1641
+ $(l, {
1593
1642
  componentRef: e.componentRefProps.componentRef,
1594
1643
  componentOptions: e.componentRefProps.componentOptions,
1595
1644
  blockChildren: e.componentRefProps.blockChildren,
@@ -1600,7 +1649,7 @@ function Eo(e, t, n, o, r, i) {
1600
1649
  includeBlockProps: e.componentRefProps.includeBlockProps,
1601
1650
  isInteractive: e.componentRefProps.isInteractive
1602
1651
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
1603
- (d(!0), h(I, null, L(e.childrenWithoutParentComponent, (c, m) => (d(), S(a, {
1652
+ (u(!0), h(I, null, L(e.childrenWithoutParentComponent, (c, m) => (u(), v(a, {
1604
1653
  key: c.id,
1605
1654
  block: c,
1606
1655
  registeredComponents: e.registeredComponents,
@@ -1613,10 +1662,10 @@ function Eo(e, t, n, o, r, i) {
1613
1662
  ], 64))
1614
1663
  ], 64)) : T("", !0);
1615
1664
  }
1616
- const Nt = /* @__PURE__ */ v($o, [["render", Eo]]), Hs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1665
+ const Gt = /* @__PURE__ */ S(zo, [["render", qo]]), da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1617
1666
  __proto__: null,
1618
- default: Nt
1619
- }, Symbol.toStringTag, { value: "Module" })), Ro = y({
1667
+ default: Gt
1668
+ }, Symbol.toStringTag, { value: "Module" })), Go = y({
1620
1669
  name: "builder-blocks-wrapper",
1621
1670
  props: [
1622
1671
  "blocks",
@@ -1686,8 +1735,8 @@ const Nt = /* @__PURE__ */ v($o, [["render", Eo]]), Hs = /* @__PURE__ */ Object.
1686
1735
  }
1687
1736
  }
1688
1737
  });
1689
- function Ao(e, t, n, o, r, i) {
1690
- return d(), S(X(e.BlocksWrapper), $({
1738
+ function _o(e, t, n, o, r, i) {
1739
+ return u(), v(Z(e.BlocksWrapper), E({
1691
1740
  ref: "blocksWrapperRef",
1692
1741
  class: e.className + " component-5vz8uirn7sc",
1693
1742
  "builder-path": e.dataPath,
@@ -1698,14 +1747,14 @@ function Ao(e, t, n, o, r, i) {
1698
1747
  onKeyPress: (s) => e.onClick()
1699
1748
  }, { ...e.BlocksWrapperProps }), {
1700
1749
  default: D(() => [
1701
- N(e.$slots, "default", {}, void 0, !0)
1750
+ O(e.$slots, "default", {}, void 0, !0)
1702
1751
  ]),
1703
1752
  _: 3
1704
1753
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
1705
1754
  }
1706
- const Po = /* @__PURE__ */ v(Ro, [["render", Ao], ["__scopeId", "data-v-82fc93d6"]]), Bo = y({
1755
+ const Jo = /* @__PURE__ */ S(Go, [["render", _o], ["__scopeId", "data-v-82fc93d6"]]), Qo = y({
1707
1756
  name: "builder-blocks",
1708
- components: { BlocksWrapper: Po, Block: Nt },
1757
+ components: { BlocksWrapper: Jo, Block: Gt },
1709
1758
  props: [
1710
1759
  "blocks",
1711
1760
  "parent",
@@ -1718,27 +1767,27 @@ const Po = /* @__PURE__ */ v(Ro, [["render", Ao], ["__scopeId", "data-v-82fc93d6
1718
1767
  "registeredComponents"
1719
1768
  ],
1720
1769
  inject: {
1721
- builderContext: ve.key,
1722
- componentsContext: rt.key
1770
+ builderContext: Ce.key,
1771
+ componentsContext: mt.key
1723
1772
  }
1724
1773
  });
1725
- function Vo(e, t, n, o, r, i) {
1726
- var a, u, p, b;
1774
+ function Yo(e, t, n, o, r, i) {
1775
+ var a, d, p, b;
1727
1776
  const s = k("Block"), l = k("BlocksWrapper");
1728
- return d(), S(l, {
1777
+ return u(), v(l, {
1729
1778
  blocks: e.blocks,
1730
1779
  parent: e.parent,
1731
1780
  path: e.path,
1732
1781
  styleProp: e.styleProp,
1733
- BlocksWrapperProps: e.BlocksWrapperProps || ((a = e.context) == null ? void 0 : a.BlocksWrapperProps) || ((u = e.builderContext) == null ? void 0 : u.BlocksWrapperProps),
1782
+ BlocksWrapperProps: e.BlocksWrapperProps || ((a = e.context) == null ? void 0 : a.BlocksWrapperProps) || ((d = e.builderContext) == null ? void 0 : d.BlocksWrapperProps),
1734
1783
  classNameProp: e.className,
1735
1784
  BlocksWrapper: ((p = e.context) == null ? void 0 : p.BlocksWrapper) || ((b = e.builderContext) == null ? void 0 : b.BlocksWrapper)
1736
1785
  }, {
1737
1786
  default: D(() => [
1738
- N(e.$slots, "default"),
1739
- e.blocks ? (d(!0), h(I, { key: 0 }, L(e.blocks, (c, m) => {
1787
+ O(e.$slots, "default"),
1788
+ e.blocks ? (u(!0), h(I, { key: 0 }, L(e.blocks, (c, m) => {
1740
1789
  var f;
1741
- return d(), S(s, {
1790
+ return u(), v(s, {
1742
1791
  key: c.id,
1743
1792
  block: c,
1744
1793
  linkComponent: e.linkComponent,
@@ -1750,21 +1799,21 @@ function Vo(e, t, n, o, r, i) {
1750
1799
  _: 3
1751
1800
  }, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapperProps", "classNameProp", "BlocksWrapper"]);
1752
1801
  }
1753
- const K = /* @__PURE__ */ v(Bo, [["render", Vo]]), No = y({
1802
+ const z = /* @__PURE__ */ S(Qo, [["render", Yo]]), Xo = y({
1754
1803
  name: "dynamic-div",
1755
1804
  props: []
1756
1805
  });
1757
- function Oo(e, t, n, o, r, i) {
1758
- return d(), h("div", null, [
1759
- N(e.$slots, "default")
1806
+ function Zo(e, t, n, o, r, i) {
1807
+ return u(), h("div", null, [
1808
+ O(e.$slots, "default")
1760
1809
  ]);
1761
1810
  }
1762
- const ne = /* @__PURE__ */ v(No, [["render", Oo]]), Wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1811
+ const oe = /* @__PURE__ */ S(Xo, [["render", Zo]]), er = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1763
1812
  __proto__: null,
1764
- default: ne
1765
- }, Symbol.toStringTag, { value: "Module" })), he = y({
1813
+ default: oe
1814
+ }, Symbol.toStringTag, { value: "Module" })), ge = y({
1766
1815
  render() {
1767
- return ot("style", {
1816
+ return pt("style", {
1768
1817
  innerHTML: this.styles,
1769
1818
  "data-id": this.id,
1770
1819
  nonce: this.nonce
@@ -1772,7 +1821,7 @@ const ne = /* @__PURE__ */ v(No, [["render", Oo]]), Wo = /* @__PURE__ */ Object.
1772
1821
  },
1773
1822
  name: "inlined-styles",
1774
1823
  props: ["styles", "id", "nonce"]
1775
- }), Ot = {
1824
+ }), X = {
1776
1825
  xsmall: {
1777
1826
  min: 0,
1778
1827
  default: 160,
@@ -1793,8 +1842,21 @@ const ne = /* @__PURE__ */ v(No, [["render", Oo]]), Wo = /* @__PURE__ */ Object.
1793
1842
  default: 991,
1794
1843
  max: 1200
1795
1844
  }
1796
- }, js = (e, t = Ot) => `@media (max-width: ${t[e].max}px)`, Do = (e) => {
1797
- const t = Be(Ot);
1845
+ }, ua = (e, t = X) => `@media (max-width: ${t[e].max}px)`, tr = (e) => {
1846
+ const t = {
1847
+ xsmall: {
1848
+ ...X.xsmall
1849
+ },
1850
+ small: {
1851
+ ...X.small
1852
+ },
1853
+ medium: {
1854
+ ...X.medium
1855
+ },
1856
+ large: {
1857
+ ...X.large
1858
+ }
1859
+ };
1798
1860
  if (!e)
1799
1861
  return t;
1800
1862
  const {
@@ -1831,13 +1893,13 @@ const ne = /* @__PURE__ */ v(No, [["render", Oo]]), Wo = /* @__PURE__ */ Object.
1831
1893
  min: l,
1832
1894
  default: l + 1
1833
1895
  }, t;
1834
- }, Uo = (e) => `builder-columns ${e}-breakpoints`, xo = y({
1896
+ }, nr = (e) => `builder-columns ${e}-breakpoints`, or = y({
1835
1897
  name: "builder-columns",
1836
1898
  components: {
1837
- InlinedStyles: he,
1838
- DynamicRenderer: Re,
1839
- Blocks: K,
1840
- DynamicDiv: ne
1899
+ InlinedStyles: ge,
1900
+ DynamicRenderer: Pe,
1901
+ Blocks: z,
1902
+ DynamicDiv: oe
1841
1903
  },
1842
1904
  props: [
1843
1905
  "space",
@@ -1850,7 +1912,7 @@ const ne = /* @__PURE__ */ v(No, [["render", Oo]]), Wo = /* @__PURE__ */ Object.
1850
1912
  "builderComponents"
1851
1913
  ],
1852
1914
  data() {
1853
- return { TARGET: E, getColumnsClass: Uo };
1915
+ return { TARGET: R, getColumnsClass: nr };
1854
1916
  },
1855
1917
  computed: {
1856
1918
  gutterSize() {
@@ -1929,7 +1991,7 @@ const ne = /* @__PURE__ */ v(No, [["render", Oo]]), Wo = /* @__PURE__ */ Object.
1929
1991
  },
1930
1992
  getWidthForBreakpointSize(e) {
1931
1993
  var n, o;
1932
- return Do(
1994
+ return tr(
1933
1995
  ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
1934
1996
  )[e].max;
1935
1997
  },
@@ -1967,32 +2029,32 @@ const ne = /* @__PURE__ */ v(No, [["render", Oo]]), Wo = /* @__PURE__ */ Object.
1967
2029
  href: e.link
1968
2030
  } : {},
1969
2031
  [H()]: "builder-column",
1970
- style: Bt(this.columnCssVars(t))
2032
+ style: zt(this.columnCssVars(t))
1971
2033
  };
1972
2034
  }
1973
2035
  }
1974
2036
  });
1975
- function Lo(e, t, n, o, r, i) {
1976
- var u;
2037
+ function rr(e, t, n, o, r, i) {
2038
+ var d;
1977
2039
  const s = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
1978
- return d(), h("div", $({
1979
- class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-1be3j8m9ewb",
2040
+ return u(), h("div", E({
2041
+ class: e.getColumnsClass((d = e.builderBlock) == null ? void 0 : d.id) + " div-1be3j8m9ewb",
1980
2042
  style: e.columnsCssVars()
1981
2043
  }, {}), [
1982
- e.TARGET !== "reactNative" ? (d(), S(s, {
2044
+ e.TARGET !== "reactNative" ? (u(), v(s, {
1983
2045
  key: 0,
1984
2046
  id: "builderio-columns",
1985
2047
  styles: e.columnsStyles(),
1986
2048
  nonce: e.builderContext.nonce
1987
2049
  }, null, 8, ["styles", "nonce"])) : T("", !0),
1988
- (d(!0), h(I, null, L(e.columns, (p, b) => (d(), S(a, {
2050
+ (u(!0), h(I, null, L(e.columns, (p, b) => (u(), v(a, {
1989
2051
  key: b,
1990
2052
  TagName: e.getTagName(p),
1991
2053
  actionAttributes: {},
1992
2054
  attributes: e.getAttributes(p, b)
1993
2055
  }, {
1994
2056
  default: D(() => [
1995
- R(l, {
2057
+ $(l, {
1996
2058
  path: `columns.${b}.blocks`,
1997
2059
  parent: e.builderBlock.id,
1998
2060
  context: e.builderContext,
@@ -2008,47 +2070,47 @@ function Lo(e, t, n, o, r, i) {
2008
2070
  }, 1032, ["TagName", "attributes"]))), 128))
2009
2071
  ], 16);
2010
2072
  }
2011
- const Fo = /* @__PURE__ */ v(xo, [["render", Lo], ["__scopeId", "data-v-ab15749a"]]), Mo = y({
2073
+ const ir = /* @__PURE__ */ S(or, [["render", rr], ["__scopeId", "data-v-ab15749a"]]), sr = y({
2012
2074
  name: "builder-fragment-component",
2013
2075
  props: []
2014
2076
  });
2015
- function Ho(e, t, n, o, r, i) {
2016
- return d(), h("span", null, [
2017
- N(e.$slots, "default")
2077
+ function ar(e, t, n, o, r, i) {
2078
+ return u(), h("span", null, [
2079
+ O(e.$slots, "default")
2018
2080
  ]);
2019
2081
  }
2020
- const jo = /* @__PURE__ */ v(Mo, [["render", Ho]]);
2021
- function Ye(e) {
2082
+ const lr = /* @__PURE__ */ S(sr, [["render", ar]]);
2083
+ function rt(e) {
2022
2084
  return e.replace(/http(s)?:/, "");
2023
2085
  }
2024
- function zo(e = "", t, n) {
2086
+ function cr(e = "", t, n) {
2025
2087
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
2026
2088
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
2027
2089
  }
2028
- function Ko(e, t) {
2090
+ function dr(e, t) {
2029
2091
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
2030
2092
  return e;
2031
2093
  if (t === "master")
2032
- return Ye(e);
2094
+ return rt(e);
2033
2095
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
2034
2096
  if (n) {
2035
2097
  const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
2036
- return Ye(`${o[0]}_${i}${r}`);
2098
+ return rt(`${o[0]}_${i}${r}`);
2037
2099
  }
2038
2100
  return null;
2039
2101
  }
2040
- function ie(e) {
2102
+ function le(e) {
2041
2103
  if (!e)
2042
2104
  return e;
2043
2105
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
2044
2106
  if (e.match(/builder\.io/)) {
2045
2107
  let n = e;
2046
2108
  const o = Number(e.split("?width=")[1]);
2047
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${zo(e, "width", r)} ${r}w`).concat([n]).join(", ");
2109
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${cr(e, "width", r)} ${r}w`).concat([n]).join(", ");
2048
2110
  }
2049
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ko(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
2111
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [dr(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
2050
2112
  }
2051
- const qo = y({
2113
+ const ur = y({
2052
2114
  name: "builder-image",
2053
2115
  props: [
2054
2116
  "lazy",
@@ -2078,10 +2140,10 @@ const qo = y({
2078
2140
  if (!this.noWebp) {
2079
2141
  if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
2080
2142
  if (!this.srcset.includes(this.image.split("?")[0]))
2081
- return console.debug("Removed given srcset"), ie(t);
2143
+ return console.debug("Removed given srcset"), le(t);
2082
2144
  } else if (this.image && !this.srcset)
2083
- return ie(t);
2084
- return ie(t);
2145
+ return le(t);
2146
+ return le(t);
2085
2147
  }
2086
2148
  },
2087
2149
  webpSrcSet() {
@@ -2102,20 +2164,20 @@ const qo = y({
2102
2164
  return this.aspectRatio ? e : void 0;
2103
2165
  }
2104
2166
  }
2105
- }), Go = ["srcset", "sizes"], Jo = ["loading", "fetchpriority", "alt", "title", "src", "srcset", "sizes"], Qo = {
2167
+ }), pr = ["srcset", "sizes"], mr = ["loading", "fetchpriority", "alt", "title", "src", "srcset", "sizes"], hr = {
2106
2168
  key: 2,
2107
2169
  class: "div-t43jfuqn6g-2"
2108
2170
  };
2109
- function _o(e, t, n, o, r, i) {
2110
- var s, l, a, u, p, b;
2111
- return d(), h(I, null, [
2171
+ function fr(e, t, n, o, r, i) {
2172
+ var s, l, a, d, p, b;
2173
+ return u(), h(I, null, [
2112
2174
  G("picture", null, [
2113
- e.webpSrcSet ? (d(), h("source", {
2175
+ e.webpSrcSet ? (u(), h("source", {
2114
2176
  key: 0,
2115
2177
  type: "image/webp",
2116
2178
  srcset: e.webpSrcSet,
2117
2179
  sizes: e.sizesToUse
2118
- }, null, 8, Go)) : T("", !0),
2180
+ }, null, 8, pr)) : T("", !0),
2119
2181
  G("img", {
2120
2182
  loading: e.highPriority ? "eager" : "lazy",
2121
2183
  fetchpriority: e.highPriority ? "high" : "auto",
@@ -2126,36 +2188,36 @@ function _o(e, t, n, o, r, i) {
2126
2188
  objectFit: e.backgroundSize || "cover",
2127
2189
  ...e.aspectRatioCss
2128
2190
  }),
2129
- class: ee(
2191
+ class: te(
2130
2192
  "builder-image" + (e.className ? " " + e.className : "") + " img-t43jfuqn6g"
2131
2193
  ),
2132
2194
  src: e.image,
2133
2195
  srcset: e.srcSetToUse,
2134
2196
  sizes: e.sizesToUse
2135
- }, null, 14, Jo)
2197
+ }, null, 14, mr)
2136
2198
  ]),
2137
- e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (d(), h("div", {
2199
+ e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (u(), h("div", {
2138
2200
  key: 0,
2139
2201
  class: "builder-image-sizer div-t43jfuqn6g",
2140
2202
  style: M({
2141
2203
  paddingTop: e.aspectRatio * 100 + "%"
2142
2204
  })
2143
2205
  }, null, 4)) : T("", !0),
2144
- (u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? N(e.$slots, "default", { key: 1 }, void 0, !0) : T("", !0),
2145
- !e.fitContent && ((b = (p = e.builderBlock) == null ? void 0 : p.children) != null && b.length) ? (d(), h("div", Qo, [
2146
- N(e.$slots, "default", {}, void 0, !0)
2206
+ (d = (a = e.builderBlock) == null ? void 0 : a.children) != null && d.length && e.fitContent ? O(e.$slots, "default", { key: 1 }, void 0, !0) : T("", !0),
2207
+ !e.fitContent && ((b = (p = e.builderBlock) == null ? void 0 : p.children) != null && b.length) ? (u(), h("div", hr, [
2208
+ O(e.$slots, "default", {}, void 0, !0)
2147
2209
  ])) : T("", !0)
2148
2210
  ], 64);
2149
2211
  }
2150
- const Yo = /* @__PURE__ */ v(qo, [["render", _o], ["__scopeId", "data-v-8fff0ea5"]]), Xo = y({
2212
+ const br = /* @__PURE__ */ S(ur, [["render", fr], ["__scopeId", "data-v-8fff0ea5"]]), gr = y({
2151
2213
  name: "builder-section-component",
2152
2214
  props: ["attributes", "maxWidth"],
2153
2215
  data() {
2154
- return { filterAttrs: O };
2216
+ return { filterAttrs: N };
2155
2217
  }
2156
2218
  });
2157
- function Zo(e, t, n, o, r, i) {
2158
- return d(), h("section", $({
2219
+ function yr(e, t, n, o, r, i) {
2220
+ return u(), h("section", E({
2159
2221
  style: {
2160
2222
  width: "100%",
2161
2223
  alignSelf: "stretch",
@@ -2168,35 +2230,35 @@ function Zo(e, t, n, o, r, i) {
2168
2230
  marginLeft: "auto",
2169
2231
  marginRight: "auto"
2170
2232
  }
2171
- }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
2172
- N(e.$slots, "default")
2233
+ }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
2234
+ O(e.$slots, "default")
2173
2235
  ], 16);
2174
2236
  }
2175
- const er = /* @__PURE__ */ v(Xo, [["render", Zo]]);
2176
- function tr(e, t, n, o) {
2177
- function r(u) {
2178
- return typeof u == "string";
2237
+ const Sr = /* @__PURE__ */ S(gr, [["render", yr]]);
2238
+ function vr(e, t, n, o) {
2239
+ function r(d) {
2240
+ return typeof d == "string";
2179
2241
  }
2180
- function i(u) {
2181
- return typeof u == "number";
2242
+ function i(d) {
2243
+ return typeof d == "number";
2182
2244
  }
2183
- function s(u, p) {
2245
+ function s(d, p) {
2184
2246
  return (() => {
2185
2247
  const c = p.property, m = p.operator;
2186
2248
  let f = p.value;
2187
2249
  if (p && p.property === "urlPath" && p.value && typeof p.value == "string" && p.value !== "/" && p.value.endsWith("/") && (f = p.value.slice(0, -1)), !(c && m))
2188
2250
  return !0;
2189
2251
  if (Array.isArray(f))
2190
- return m === "isNot" ? f.every((P) => s(u, {
2252
+ return m === "isNot" ? f.every((P) => s(d, {
2191
2253
  property: c,
2192
2254
  operator: m,
2193
2255
  value: P
2194
- })) : !!f.find((P) => s(u, {
2256
+ })) : !!f.find((P) => s(d, {
2195
2257
  property: c,
2196
2258
  operator: m,
2197
2259
  value: P
2198
2260
  }));
2199
- const g = u[c];
2261
+ const g = d[c];
2200
2262
  if (Array.isArray(g))
2201
2263
  return g.includes(f);
2202
2264
  switch (m) {
@@ -2228,9 +2290,9 @@ function tr(e, t, n, o) {
2228
2290
  startDate: n,
2229
2291
  endDate: o
2230
2292
  }, a = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
2231
- return l.startDate && new Date(l.startDate) > a || l.endDate && new Date(l.endDate) < a ? !1 : !l.query || !l.query.length ? !0 : l.query.every((u) => s(e, u));
2293
+ return l.startDate && new Date(l.startDate) > a || l.endDate && new Date(l.endDate) < a ? !1 : !l.query || !l.query.length ? !0 : l.query.every((d) => s(e, d));
2232
2294
  }
2233
- const nr = `function getStudioUserAttributes() {
2295
+ const kr = `function getStudioUserAttributes() {
2234
2296
  const params = new URLSearchParams(window.location.search);
2235
2297
  if (params.get('builder.preview') !== 'BUILDER_STUDIO') {
2236
2298
  return {};
@@ -2243,7 +2305,7 @@ const nr = `function getStudioUserAttributes() {
2243
2305
  }
2244
2306
  });
2245
2307
  return attributes;
2246
- }`, or = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
2308
+ }`, Cr = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
2247
2309
  if (!navigator.cookieEnabled) {
2248
2310
  return;
2249
2311
  }
@@ -2289,7 +2351,7 @@ const nr = `function getStudioUserAttributes() {
2289
2351
  thisScript.remove();
2290
2352
  }
2291
2353
  }
2292
- }`, rr = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
2354
+ }`, Tr = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
2293
2355
  function isString(val) {
2294
2356
  return typeof val === 'string';
2295
2357
  }
@@ -2367,7 +2429,7 @@ const nr = `function getStudioUserAttributes() {
2367
2429
  return item.query.every(filter => {
2368
2430
  return objectMatchesQuery(userAttributes, filter);
2369
2431
  });
2370
- }`, ir = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
2432
+ }`, wr = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
2371
2433
  function getCookie(name) {
2372
2434
  const nameEQ = name + '=';
2373
2435
  const ca = document.cookie.split(';');
@@ -2406,11 +2468,11 @@ const nr = `function getStudioUserAttributes() {
2406
2468
  visibilityStylesEl.innerHTML = newStyleStr;
2407
2469
  }
2408
2470
  }
2409
- }`, se = "default", Xe = "filterWithCustomTargeting", Te = "builderIoPersonalization", we = "updateVisibilityStylesScript", Ze = "builderIoStudioUserAttributes", sr = "PersonalizationContainer", Wt = ["react", "vue", "svelte", "qwik"], Dt = ["vue", "svelte", "qwik"];
2410
- function ar(e, t) {
2411
- return !(e && e.length > 0) || !t ? !1 : Dt.includes(E) ? !0 : !w();
2471
+ }`, ce = "default", it = "filterWithCustomTargeting", Ie = "builderIoPersonalization", Ee = "updateVisibilityStylesScript", st = "builderIoStudioUserAttributes", Ir = "PersonalizationContainer", _t = ["react", "vue", "svelte", "qwik"], Jt = ["vue", "svelte", "qwik"];
2472
+ function Er(e, t) {
2473
+ return !(e && e.length > 0) || !t ? !1 : Jt.includes(R) ? !0 : !w();
2412
2474
  }
2413
- function lr({
2475
+ function Rr({
2414
2476
  variants: e,
2415
2477
  previewingIndex: t,
2416
2478
  isHydrated: n,
@@ -2420,7 +2482,7 @@ function lr({
2420
2482
  const i = {
2421
2483
  blocks: r ?? [],
2422
2484
  path: "this.children",
2423
- index: se
2485
+ index: ce
2424
2486
  };
2425
2487
  if (n && A()) {
2426
2488
  if (typeof t == "number" && t < ((e == null ? void 0 : e.length) ?? 0)) {
@@ -2448,25 +2510,25 @@ function lr({
2448
2510
  }
2449
2511
  return i;
2450
2512
  }
2451
- const Ie = (e) => {
2513
+ const Re = (e) => {
2452
2514
  var t;
2453
- return Array.isArray(e) ? e.some(Ie) : !e || typeof e != "object" ? !1 : ((t = e.component) == null ? void 0 : t.name) === sr ? !0 : Object.values(e).some(Ie);
2454
- }, cr = (e) => Ie(e), dr = () => `
2515
+ return Array.isArray(e) ? e.some(Re) : !e || typeof e != "object" ? !1 : ((t = e.component) == null ? void 0 : t.name) === Ir ? !0 : Object.values(e).some(Re);
2516
+ }, $r = (e) => Re(e), Ar = () => `
2455
2517
  (function() {
2456
- if (!window.${Ze}) {
2457
- window.${Ze} = ${nr};
2518
+ if (!window.${st}) {
2519
+ window.${st} = ${kr};
2458
2520
  }
2459
- if (!window.${Xe}) {
2460
- window.${Xe} = ${rr};
2521
+ if (!window.${it}) {
2522
+ window.${it} = ${Tr};
2461
2523
  }
2462
- if (!window.${Te}) {
2463
- window.${Te} = ${or};
2524
+ if (!window.${Ie}) {
2525
+ window.${Ie} = ${Cr};
2464
2526
  }
2465
- if (!window.${we}) {
2466
- window.${we} = ${ir};
2527
+ if (!window.${Ee}) {
2528
+ window.${Ee} = ${wr};
2467
2529
  }
2468
2530
  })();
2469
- `, Ut = E === "react", ur = (e, t, n) => `window.${Te}(${JSON.stringify(e)}, "${t}", ${Ut}${n ? `, "${n}"` : ""})`, pr = (e, t, n) => `window.${we}(${JSON.stringify(e)}, "${t}", ${Ut}${n ? `, "${n}"` : ""})`, fe = {
2531
+ `, Qt = R === "react", Pr = (e, t, n) => `window.${Ie}(${JSON.stringify(e)}, "${t}", ${Qt}${n ? `, "${n}"` : ""})`, Br = (e, t, n) => `window.${Ee}(${JSON.stringify(e)}, "${t}", ${Qt}${n ? `, "${n}"` : ""})`, ye = {
2470
2532
  "@type": "@builder.io/sdk:Element",
2471
2533
  layerName: "Accordion item title",
2472
2534
  responsiveStyles: {
@@ -2495,7 +2557,7 @@ const Ie = (e) => {
2495
2557
  }
2496
2558
  }
2497
2559
  }]
2498
- }, be = {
2560
+ }, Se = {
2499
2561
  "@type": "@builder.io/sdk:Element",
2500
2562
  layerName: "Accordion item detail",
2501
2563
  responsiveStyles: {
@@ -2526,7 +2588,7 @@ const Ie = (e) => {
2526
2588
  }
2527
2589
  }
2528
2590
  }]
2529
- }, mr = {
2591
+ }, Vr = {
2530
2592
  name: "Builder:Accordion",
2531
2593
  canHaveChildren: !0,
2532
2594
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -2543,19 +2605,19 @@ const Ie = (e) => {
2543
2605
  name: "title",
2544
2606
  type: "uiBlocks",
2545
2607
  hideFromUI: !0,
2546
- defaultValue: [fe]
2608
+ defaultValue: [ye]
2547
2609
  }, {
2548
2610
  name: "detail",
2549
2611
  type: "uiBlocks",
2550
2612
  hideFromUI: !0,
2551
- defaultValue: [be]
2613
+ defaultValue: [Se]
2552
2614
  }],
2553
2615
  defaultValue: [{
2554
- title: [fe],
2555
- detail: [be]
2616
+ title: [ye],
2617
+ detail: [Se]
2556
2618
  }, {
2557
- title: [fe],
2558
- detail: [be]
2619
+ title: [ye],
2620
+ detail: [Se]
2559
2621
  }],
2560
2622
  showIf: (e) => !e.get("useChildrenForItems")
2561
2623
  }, {
@@ -2590,9 +2652,9 @@ const Ie = (e) => {
2590
2652
  builderComponents: !0,
2591
2653
  builderLinkComponent: !0
2592
2654
  }
2593
- }, hr = (e) => e.toString(), fr = y({
2655
+ }, Or = (e) => e.toString(), Nr = y({
2594
2656
  name: "builder-accordion",
2595
- components: { Blocks: K },
2657
+ components: { Blocks: z },
2596
2658
  props: [
2597
2659
  "grid",
2598
2660
  "oneAtATime",
@@ -2604,7 +2666,7 @@ const Ie = (e) => {
2604
2666
  "builderLinkComponent"
2605
2667
  ],
2606
2668
  data() {
2607
- return { open: [], convertOrderNumberToString: hr };
2669
+ return { open: [], convertOrderNumberToString: Or };
2608
2670
  },
2609
2671
  computed: {
2610
2672
  onlyOneAtATime() {
@@ -2685,16 +2747,16 @@ const Ie = (e) => {
2685
2747
  this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
2686
2748
  }
2687
2749
  }
2688
- }), br = ["data-index", "onClick"];
2689
- function gr(e, t, n, o, r, i) {
2750
+ }), Wr = ["data-index", "onClick"];
2751
+ function Dr(e, t, n, o, r, i) {
2690
2752
  const s = k("Blocks");
2691
- return d(), h("div", {
2753
+ return u(), h("div", {
2692
2754
  class: "builder-accordion",
2693
2755
  style: M(e.accordionStyles)
2694
2756
  }, [
2695
- (d(!0), h(I, null, L(e.items, (l, a) => (d(), h(I, { key: a }, [
2757
+ (u(!0), h(I, null, L(e.items, (l, a) => (u(), h(I, { key: a }, [
2696
2758
  G("div", {
2697
- class: ee(e.getAccordionTitleClassName(a)),
2759
+ class: te(e.getAccordionTitleClassName(a)),
2698
2760
  style: M({
2699
2761
  ...e.accordionTitleStyles,
2700
2762
  ...e.grid && {
@@ -2703,9 +2765,9 @@ function gr(e, t, n, o, r, i) {
2703
2765
  }
2704
2766
  }),
2705
2767
  "data-index": a,
2706
- onClick: async (u) => e.onClick(a)
2768
+ onClick: async (d) => e.onClick(a)
2707
2769
  }, [
2708
- R(s, {
2770
+ $(s, {
2709
2771
  blocks: l.title,
2710
2772
  path: `items.${a}.title`,
2711
2773
  parent: e.builderBlock.id,
@@ -2713,13 +2775,13 @@ function gr(e, t, n, o, r, i) {
2713
2775
  registeredComponents: e.builderComponents,
2714
2776
  linkComponent: e.builderLinkComponent
2715
2777
  }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
2716
- ], 14, br),
2717
- e.open.includes(a) ? (d(), h("div", {
2778
+ ], 14, Wr),
2779
+ e.open.includes(a) ? (u(), h("div", {
2718
2780
  key: 0,
2719
- class: ee(e.getAccordionDetailClassName(a)),
2781
+ class: te(e.getAccordionDetailClassName(a)),
2720
2782
  style: M(e.accordionDetailStyles)
2721
2783
  }, [
2722
- R(s, {
2784
+ $(s, {
2723
2785
  blocks: l.detail,
2724
2786
  path: `items.${a}.detail`,
2725
2787
  parent: e.builderBlock.id,
@@ -2731,7 +2793,7 @@ function gr(e, t, n, o, r, i) {
2731
2793
  ], 64))), 128))
2732
2794
  ], 4);
2733
2795
  }
2734
- const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
2796
+ const xr = /* @__PURE__ */ S(Nr, [["render", Dr]]), Ur = {
2735
2797
  name: "Core:Button",
2736
2798
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
2737
2799
  defaultStyles: {
@@ -2767,7 +2829,7 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
2767
2829
  shouldReceiveBuilderProps: {
2768
2830
  builderLinkComponent: !0
2769
2831
  }
2770
- }, Sr = {
2832
+ }, Lr = {
2771
2833
  // TODO: ways to statically preprocess JSON for references, functions, etc
2772
2834
  name: "Columns",
2773
2835
  isRSC: !0,
@@ -2974,13 +3036,13 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
2974
3036
  builderComponents: !0,
2975
3037
  builderLinkComponent: !0
2976
3038
  }
2977
- }, kr = {
3039
+ }, Fr = {
2978
3040
  name: "Fragment",
2979
3041
  static: !0,
2980
3042
  hidden: !0,
2981
3043
  canHaveChildren: !0,
2982
3044
  noWrap: !0
2983
- }, Ue = ["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"], Cr = ["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"], Tr = {
3045
+ }, Ue = ["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"], Mr = ["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"], Hr = {
2984
3046
  name: "Image",
2985
3047
  static: !0,
2986
3048
  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",
@@ -3001,15 +3063,15 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
3001
3063
  onChange: (e) => {
3002
3064
  e.delete("srcset"), e.delete("noWebp");
3003
3065
  function n(s, l = 6e4) {
3004
- return new Promise((a, u) => {
3066
+ return new Promise((a, d) => {
3005
3067
  const p = document.createElement("img");
3006
3068
  let b = !1;
3007
3069
  p.onload = () => {
3008
3070
  b = !0, a(p);
3009
3071
  }, p.addEventListener("error", (c) => {
3010
- console.warn("Image load failed", c.error), u(c.error);
3072
+ console.warn("Image load failed", c.error), d(c.error);
3011
3073
  }), p.src = s, setTimeout(() => {
3012
- b || u(new Error("Image load timed out"));
3074
+ b || d(new Error("Image load timed out"));
3013
3075
  }, l);
3014
3076
  });
3015
3077
  }
@@ -3093,7 +3155,7 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
3093
3155
  shouldReceiveBuilderProps: {
3094
3156
  builderBlock: !0
3095
3157
  }
3096
- }, wr = {
3158
+ }, jr = {
3097
3159
  name: "PersonalizationContainer",
3098
3160
  shouldReceiveBuilderProps: {
3099
3161
  builderBlock: !0,
@@ -3129,9 +3191,9 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
3129
3191
  defaultValue: []
3130
3192
  }]
3131
3193
  }]
3132
- }, xe = y({
3194
+ }, Le = y({
3133
3195
  render() {
3134
- return ot("script", {
3196
+ return pt("script", {
3135
3197
  innerHTML: this.scriptStr,
3136
3198
  "data-id": this.id,
3137
3199
  nonce: this.nonce
@@ -3139,12 +3201,12 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
3139
3201
  },
3140
3202
  name: "inlined-script",
3141
3203
  props: ["scriptStr", "id", "nonce"]
3142
- }), Ir = y({
3204
+ }), Kr = y({
3143
3205
  name: "builder-personalization-container",
3144
3206
  components: {
3145
- Blocks: K,
3146
- InlinedStyles: he,
3147
- InlinedScript: xe
3207
+ Blocks: z,
3208
+ InlinedStyles: ge,
3209
+ InlinedScript: Le
3148
3210
  },
3149
3211
  props: [
3150
3212
  "builderContext",
@@ -3157,45 +3219,45 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
3157
3219
  data() {
3158
3220
  var e, t, n, o, r, i, s;
3159
3221
  return {
3160
- userAttributes: ue.getUserAttributes(),
3161
- scriptStr: ur(
3222
+ userAttributes: pe.getUserAttributes(),
3223
+ scriptStr: Pr(
3162
3224
  this.variants,
3163
3225
  ((e = this.builderBlock) == null ? void 0 : e.id) || "none",
3164
3226
  (n = (t = this.builderContext) == null ? void 0 : t.rootState) == null ? void 0 : n.locale
3165
3227
  ),
3166
- updateVisibilityStylesScript: pr(
3228
+ updateVisibilityStylesScript: Br(
3167
3229
  this.variants,
3168
3230
  ((o = this.builderBlock) == null ? void 0 : o.id) || "none",
3169
3231
  (i = (r = this.builderContext) == null ? void 0 : r.rootState) == null ? void 0 : i.locale
3170
3232
  ),
3171
3233
  unsubscribers: [],
3172
- shouldRenderVariants: ar(
3234
+ shouldRenderVariants: Er(
3173
3235
  this.variants,
3174
- J((s = this.builderContext) == null ? void 0 : s.canTrack)
3236
+ _((s = this.builderContext) == null ? void 0 : s.canTrack)
3175
3237
  ),
3176
3238
  shouldResetVariants: !1,
3177
- TARGET: E,
3178
- DEFAULT_INDEX: se,
3179
- SDKS_REQUIRING_RESET_APPROACH: Dt
3239
+ TARGET: R,
3240
+ DEFAULT_INDEX: ce,
3241
+ SDKS_REQUIRING_RESET_APPROACH: Jt
3180
3242
  };
3181
3243
  },
3182
3244
  mounted() {
3183
3245
  var t;
3184
3246
  this.shouldResetVariants = !0;
3185
- const e = ue.subscribeOnUserAttributesChange(
3247
+ const e = pe.subscribeOnUserAttributesChange(
3186
3248
  (n) => {
3187
3249
  this.userAttributes = n;
3188
3250
  },
3189
3251
  {
3190
- fireImmediately: E === "qwik"
3252
+ fireImmediately: R === "qwik"
3191
3253
  }
3192
3254
  );
3193
- if (!(A() || Ve())) {
3255
+ if (!(A() || be())) {
3194
3256
  const n = this.filteredVariants[0];
3195
3257
  this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
3196
3258
  new CustomEvent("builder.variantLoaded", {
3197
3259
  detail: {
3198
- variant: n || se,
3260
+ variant: n || ce,
3199
3261
  content: (t = this.builderContext) == null ? void 0 : t.content
3200
3262
  },
3201
3263
  bubbles: !0
@@ -3206,7 +3268,7 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
3206
3268
  i.isIntersecting && this.$refs.rootRef && this.$refs.rootRef.dispatchEvent(
3207
3269
  new CustomEvent("builder.variantDisplayed", {
3208
3270
  detail: {
3209
- variant: n || se,
3271
+ variant: n || ce,
3210
3272
  content: (s = this.builderContext) == null ? void 0 : s.content
3211
3273
  },
3212
3274
  bubbles: !0
@@ -3223,15 +3285,15 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
3223
3285
  computed: {
3224
3286
  attrs() {
3225
3287
  return {
3226
- ...O(this.attributes, "v-on:", !1),
3227
- ...O(this.attributes, "v-on:", !0),
3288
+ ...N(this.attributes, "v-on:", !1),
3289
+ ...N(this.attributes, "v-on:", !0),
3228
3290
  [H()]: `builder-personalization-container ${this.attributes[H()] || ""}`
3229
3291
  };
3230
3292
  },
3231
3293
  filteredVariants() {
3232
3294
  return (this.variants || []).filter((e) => {
3233
3295
  var t, n, o, r;
3234
- return tr(
3296
+ return vr(
3235
3297
  {
3236
3298
  ...(n = (t = this.builderContext) == null ? void 0 : t.rootState) != null && n.locale ? {
3237
3299
  locale: (r = (o = this.builderContext) == null ? void 0 : o.rootState) == null ? void 0 : r.locale
@@ -3246,7 +3308,7 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
3246
3308
  },
3247
3309
  blocksToRender() {
3248
3310
  var e;
3249
- return lr({
3311
+ return Rr({
3250
3312
  variants: this.variants,
3251
3313
  fallbackBlocks: (e = this.builderBlock) == null ? void 0 : e.children,
3252
3314
  isHydrated: this.shouldResetVariants,
@@ -3264,14 +3326,14 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
3264
3326
  }
3265
3327
  }
3266
3328
  });
3267
- function $r(e, t, n, o, r, i) {
3268
- var u, p, b, c, m, f, g, P, U, V;
3329
+ function zr(e, t, n, o, r, i) {
3330
+ var d, p, b, c, m, f, g, P, x, V;
3269
3331
  const s = k("Blocks"), l = k("InlinedStyles"), a = k("InlinedScript");
3270
- return d(), h("div", $({ ref: "rootRef" }, e.attrs), [
3271
- e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), S(s, {
3332
+ return u(), h("div", E({ ref: "rootRef" }, e.attrs), [
3333
+ e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (u(), v(s, {
3272
3334
  key: 0,
3273
3335
  blocks: e.blocksToRender.blocks,
3274
- parent: (u = e.builderBlock) == null ? void 0 : u.id,
3336
+ parent: (d = e.builderBlock) == null ? void 0 : d.id,
3275
3337
  path: e.blocksToRender.path,
3276
3338
  context: e.builderContext,
3277
3339
  registeredComponents: e.builderComponents,
@@ -3280,27 +3342,27 @@ function $r(e, t, n, o, r, i) {
3280
3342
  "data-variant-id": `${(b = e.builderBlock) == null ? void 0 : b.id}-${e.blocksToRender.index}`
3281
3343
  }
3282
3344
  }, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) : T("", !0),
3283
- !e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), h(I, { key: 1 }, [
3284
- e.shouldRenderVariants ? (d(), h(I, { key: 0 }, [
3285
- R(l, {
3345
+ !e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (u(), h(I, { key: 1 }, [
3346
+ e.shouldRenderVariants ? (u(), h(I, { key: 0 }, [
3347
+ $(l, {
3286
3348
  nonce: ((c = e.builderContext) == null ? void 0 : c.nonce) || "",
3287
3349
  styles: e.hideVariantsStyleString,
3288
3350
  id: `variants-styles-${(m = e.builderBlock) == null ? void 0 : m.id}`
3289
3351
  }, null, 8, ["nonce", "styles", "id"]),
3290
- R(a, {
3352
+ $(a, {
3291
3353
  nonce: ((f = e.builderContext) == null ? void 0 : f.nonce) || "",
3292
3354
  scriptStr: e.updateVisibilityStylesScript,
3293
3355
  id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
3294
3356
  }, null, 8, ["nonce", "scriptStr", "id"]),
3295
- (d(!0), h(I, null, L(e.variants, (q, C) => {
3296
- var z, Q, _, W;
3297
- return d(), S(s, {
3298
- key: `${(z = e.builderBlock) == null ? void 0 : z.id}-${C}`,
3357
+ (u(!0), h(I, null, L(e.variants, (q, C) => {
3358
+ var K, J, Q, W;
3359
+ return u(), v(s, {
3360
+ key: `${(K = e.builderBlock) == null ? void 0 : K.id}-${C}`,
3299
3361
  BlocksWrapperProps: {
3300
- ...(Q = e.builderContext) == null ? void 0 : Q.BlocksWrapperProps,
3362
+ ...(J = e.builderContext) == null ? void 0 : J.BlocksWrapperProps,
3301
3363
  "aria-hidden": !0,
3302
3364
  hidden: !0,
3303
- "data-variant-id": `${(_ = e.builderBlock) == null ? void 0 : _.id}-${C}`
3365
+ "data-variant-id": `${(Q = e.builderBlock) == null ? void 0 : Q.id}-${C}`
3304
3366
  },
3305
3367
  blocks: q.blocks,
3306
3368
  parent: (W = e.builderBlock) == null ? void 0 : W.id,
@@ -3309,12 +3371,12 @@ function $r(e, t, n, o, r, i) {
3309
3371
  registeredComponents: e.builderComponents
3310
3372
  }, {
3311
3373
  default: D(() => {
3312
- var F, Fe;
3374
+ var F, Me;
3313
3375
  return [
3314
- R(a, {
3376
+ $(a, {
3315
3377
  nonce: ((F = e.builderContext) == null ? void 0 : F.nonce) || "",
3316
3378
  scriptStr: e.scriptStr,
3317
- id: `variants-script-${(Fe = e.builderBlock) == null ? void 0 : Fe.id}-${C}`
3379
+ id: `variants-script-${(Me = e.builderBlock) == null ? void 0 : Me.id}-${C}`
3318
3380
  }, null, 8, ["nonce", "scriptStr", "id"])
3319
3381
  ];
3320
3382
  }),
@@ -3322,21 +3384,21 @@ function $r(e, t, n, o, r, i) {
3322
3384
  }, 1032, ["BlocksWrapperProps", "blocks", "parent", "path", "context", "registeredComponents"]);
3323
3385
  }), 128))
3324
3386
  ], 64)) : T("", !0),
3325
- R(s, {
3387
+ $(s, {
3326
3388
  blocks: e.blocksToRender.blocks,
3327
3389
  parent: (P = e.builderBlock) == null ? void 0 : P.id,
3328
3390
  path: e.blocksToRender.path,
3329
3391
  context: e.builderContext,
3330
3392
  registeredComponents: e.builderComponents,
3331
3393
  BlocksWrapperProps: {
3332
- ...(U = e.builderContext) == null ? void 0 : U.BlocksWrapperProps,
3394
+ ...(x = e.builderContext) == null ? void 0 : x.BlocksWrapperProps,
3333
3395
  "data-variant-id": `${(V = e.builderBlock) == null ? void 0 : V.id}-${e.blocksToRender.index}`
3334
3396
  }
3335
3397
  }, {
3336
3398
  default: D(() => {
3337
3399
  var q, C;
3338
3400
  return [
3339
- e.shouldRenderVariants ? (d(), S(a, {
3401
+ e.shouldRenderVariants ? (u(), v(a, {
3340
3402
  key: 0,
3341
3403
  nonce: ((q = e.builderContext) == null ? void 0 : q.nonce) || "",
3342
3404
  scriptStr: e.scriptStr,
@@ -3349,7 +3411,7 @@ function $r(e, t, n, o, r, i) {
3349
3411
  ], 64)) : T("", !0)
3350
3412
  ], 16);
3351
3413
  }
3352
- const Er = /* @__PURE__ */ v(Ir, [["render", $r]]), Rr = {
3414
+ const qr = /* @__PURE__ */ S(Kr, [["render", zr]]), Gr = {
3353
3415
  name: "Core:Section",
3354
3416
  static: !0,
3355
3417
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -3388,7 +3450,7 @@ const Er = /* @__PURE__ */ v(Ir, [["render", $r]]), Rr = {
3388
3450
  }
3389
3451
  }
3390
3452
  }]
3391
- }, Ar = {
3453
+ }, _r = {
3392
3454
  name: "Slot",
3393
3455
  isRSC: !0,
3394
3456
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -3405,15 +3467,15 @@ const Er = /* @__PURE__ */ v(Ir, [["render", $r]]), Rr = {
3405
3467
  builderContext: !0,
3406
3468
  builderComponents: !0
3407
3469
  }
3408
- }, Pr = y({
3470
+ }, Jr = y({
3409
3471
  name: "builder-slot",
3410
- components: { Blocks: K },
3472
+ components: { Blocks: z },
3411
3473
  props: ["builderContext", "name", "builderComponents"]
3412
3474
  });
3413
- function Br(e, t, n, o, r, i) {
3414
- var l, a, u;
3475
+ function Qr(e, t, n, o, r, i) {
3476
+ var l, a, d;
3415
3477
  const s = k("Blocks");
3416
- return d(), h("div", $(
3478
+ return u(), h("div", E(
3417
3479
  { style: {
3418
3480
  pointerEvents: "auto"
3419
3481
  } },
@@ -3421,16 +3483,16 @@ function Br(e, t, n, o, r, i) {
3421
3483
  "builder-slot": e.name
3422
3484
  }
3423
3485
  ), [
3424
- R(s, {
3486
+ $(s, {
3425
3487
  parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
3426
3488
  path: `symbol.data.${e.name}`,
3427
3489
  context: e.builderContext,
3428
3490
  registeredComponents: e.builderComponents,
3429
- blocks: (u = e.builderContext.rootState) == null ? void 0 : u[e.name]
3491
+ blocks: (d = e.builderContext.rootState) == null ? void 0 : d[e.name]
3430
3492
  }, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
3431
3493
  ], 16);
3432
3494
  }
3433
- const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
3495
+ const Yr = /* @__PURE__ */ S(Jr, [["render", Qr]]), Xr = {
3434
3496
  name: "Symbol",
3435
3497
  noWrap: !0,
3436
3498
  static: !0,
@@ -3469,7 +3531,7 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
3469
3531
  builderComponents: !0,
3470
3532
  builderLinkComponent: !0
3471
3533
  }
3472
- }, ge = {
3534
+ }, ve = {
3473
3535
  "@type": "@builder.io/sdk:Element",
3474
3536
  responsiveStyles: {
3475
3537
  large: {
@@ -3491,7 +3553,7 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
3491
3553
  text: "New tab"
3492
3554
  }
3493
3555
  }
3494
- }, ye = {
3556
+ }, ke = {
3495
3557
  "@type": "@builder.io/sdk:Element",
3496
3558
  responsiveStyles: {
3497
3559
  large: {
@@ -3507,7 +3569,7 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
3507
3569
  text: "New tab content "
3508
3570
  }
3509
3571
  }
3510
- }, Or = {
3572
+ }, Zr = {
3511
3573
  name: "Builder: Tabs",
3512
3574
  inputs: [{
3513
3575
  name: "tabs",
@@ -3517,16 +3579,16 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
3517
3579
  name: "label",
3518
3580
  type: "uiBlocks",
3519
3581
  hideFromUI: !0,
3520
- defaultValue: [ge]
3582
+ defaultValue: [ve]
3521
3583
  }, {
3522
3584
  name: "content",
3523
3585
  type: "uiBlocks",
3524
3586
  hideFromUI: !0,
3525
- defaultValue: [ye]
3587
+ defaultValue: [ke]
3526
3588
  }],
3527
3589
  defaultValue: [{
3528
3590
  label: [{
3529
- ...ge,
3591
+ ...ve,
3530
3592
  component: {
3531
3593
  name: "Text",
3532
3594
  options: {
@@ -3535,7 +3597,7 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
3535
3597
  }
3536
3598
  }],
3537
3599
  content: [{
3538
- ...ye,
3600
+ ...ke,
3539
3601
  component: {
3540
3602
  name: "Text",
3541
3603
  options: {
@@ -3545,7 +3607,7 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
3545
3607
  }]
3546
3608
  }, {
3547
3609
  label: [{
3548
- ...ge,
3610
+ ...ve,
3549
3611
  component: {
3550
3612
  name: "Text",
3551
3613
  options: {
@@ -3554,7 +3616,7 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
3554
3616
  }
3555
3617
  }],
3556
3618
  content: [{
3557
- ...ye,
3619
+ ...ke,
3558
3620
  component: {
3559
3621
  name: "Text",
3560
3622
  options: {
@@ -3610,9 +3672,9 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
3610
3672
  builderComponents: !0,
3611
3673
  builderLinkComponent: !0
3612
3674
  }
3613
- }, Wr = y({
3675
+ }, ei = y({
3614
3676
  name: "builder-tabs",
3615
- components: { Blocks: K },
3677
+ components: { Blocks: z },
3616
3678
  props: [
3617
3679
  "defaultActiveTab",
3618
3680
  "tabs",
@@ -3638,10 +3700,10 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
3638
3700
  e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
3639
3701
  }
3640
3702
  }
3641
- }), Dr = ["onClick"], Ur = { key: 0 };
3642
- function xr(e, t, n, o, r, i) {
3703
+ }), ti = ["onClick"], ni = { key: 0 };
3704
+ function oi(e, t, n, o, r, i) {
3643
3705
  const s = k("Blocks");
3644
- return d(), h("div", null, [
3706
+ return u(), h("div", null, [
3645
3707
  G("div", {
3646
3708
  class: "builder-tabs-wrap",
3647
3709
  style: M({
@@ -3651,13 +3713,13 @@ function xr(e, t, n, o, r, i) {
3651
3713
  overflow: "auto"
3652
3714
  })
3653
3715
  }, [
3654
- (d(!0), h(I, null, L(e.tabs, (l, a) => (d(), h("span", {
3716
+ (u(!0), h(I, null, L(e.tabs, (l, a) => (u(), h("span", {
3655
3717
  key: a,
3656
- class: ee(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
3718
+ class: te(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
3657
3719
  style: M(e.getTabStyle(a)),
3658
- onClick: async (u) => e.onClick(a)
3720
+ onClick: async (d) => e.onClick(a)
3659
3721
  }, [
3660
- R(s, {
3722
+ $(s, {
3661
3723
  parent: e.builderBlock.id,
3662
3724
  path: `tabs.${a}.label`,
3663
3725
  blocks: l.label,
@@ -3665,10 +3727,10 @@ function xr(e, t, n, o, r, i) {
3665
3727
  registeredComponents: e.builderComponents,
3666
3728
  linkComponent: e.builderLinkComponent
3667
3729
  }, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
3668
- ], 14, Dr))), 128))
3730
+ ], 14, ti))), 128))
3669
3731
  ], 4),
3670
- e.activeTabContent(e.activeTab) ? (d(), h("div", Ur, [
3671
- R(s, {
3732
+ e.activeTabContent(e.activeTab) ? (u(), h("div", ni, [
3733
+ $(s, {
3672
3734
  parent: e.builderBlock.id,
3673
3735
  path: `tabs.${e.activeTab}.content`,
3674
3736
  blocks: e.activeTabContent(e.activeTab),
@@ -3679,7 +3741,7 @@ function xr(e, t, n, o, r, i) {
3679
3741
  ])) : T("", !0)
3680
3742
  ]);
3681
3743
  }
3682
- const Lr = /* @__PURE__ */ v(Wr, [["render", xr]]), Fr = {
3744
+ const ri = /* @__PURE__ */ S(ei, [["render", oi]]), ii = {
3683
3745
  shouldReceiveBuilderProps: {},
3684
3746
  name: "Text",
3685
3747
  static: !0,
@@ -3697,21 +3759,21 @@ const Lr = /* @__PURE__ */ v(Wr, [["render", xr]]), Fr = {
3697
3759
  height: "auto",
3698
3760
  textAlign: "center"
3699
3761
  }
3700
- }, Mr = y({
3762
+ }, si = y({
3701
3763
  name: "builder-text",
3702
3764
  props: ["text"]
3703
- }), Hr = ["innerHTML"];
3704
- function jr(e, t, n, o, r, i) {
3765
+ }), ai = ["innerHTML"];
3766
+ function li(e, t, n, o, r, i) {
3705
3767
  var s;
3706
- return d(), h("div", {
3768
+ return u(), h("div", {
3707
3769
  class: "builder-text",
3708
3770
  innerHTML: ((s = e.text) == null ? void 0 : s.toString()) || "",
3709
3771
  style: {
3710
3772
  outline: "none"
3711
3773
  }
3712
- }, null, 8, Hr);
3774
+ }, null, 8, ai);
3713
3775
  }
3714
- const zr = /* @__PURE__ */ v(Mr, [["render", jr]]), Kr = {
3776
+ const ci = /* @__PURE__ */ S(si, [["render", li]]), di = {
3715
3777
  name: "Custom Code",
3716
3778
  static: !0,
3717
3779
  requiredPermissions: ["editCode"],
@@ -3733,7 +3795,7 @@ const zr = /* @__PURE__ */ v(Mr, [["render", jr]]), Kr = {
3733
3795
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
3734
3796
  advanced: !0
3735
3797
  }]
3736
- }, qr = y({
3798
+ }, ui = y({
3737
3799
  name: "builder-custom-code",
3738
3800
  props: ["code", "replaceNodes"],
3739
3801
  data() {
@@ -3792,15 +3854,15 @@ const zr = /* @__PURE__ */ v(Mr, [["render", jr]]), Kr = {
3792
3854
  }
3793
3855
  }
3794
3856
  }
3795
- }), Gr = ["innerHTML"];
3796
- function Jr(e, t, n, o, r, i) {
3797
- return d(), h("div", {
3857
+ }), pi = ["innerHTML"];
3858
+ function mi(e, t, n, o, r, i) {
3859
+ return u(), h("div", {
3798
3860
  ref: "elementRef",
3799
- class: ee("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
3861
+ class: te("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
3800
3862
  innerHTML: e.code
3801
- }, null, 10, Gr);
3863
+ }, null, 10, pi);
3802
3864
  }
3803
- const Qr = /* @__PURE__ */ v(qr, [["render", Jr]]), _r = {
3865
+ const hi = /* @__PURE__ */ S(ui, [["render", mi]]), fi = {
3804
3866
  name: "Embed",
3805
3867
  static: !0,
3806
3868
  inputs: [{
@@ -3815,7 +3877,7 @@ const Qr = /* @__PURE__ */ v(qr, [["render", Jr]]), _r = {
3815
3877
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
3816
3878
  hideFromUI: !0
3817
3879
  }]
3818
- }, Yr = ["text/javascript", "application/javascript", "application/ecmascript"], Xr = (e) => Yr.includes(e.type), Zr = y({
3880
+ }, bi = ["text/javascript", "application/javascript", "application/ecmascript"], gi = (e) => bi.includes(e.type), yi = y({
3819
3881
  name: "builder-embed",
3820
3882
  props: ["content"],
3821
3883
  data() {
@@ -3848,7 +3910,7 @@ const Qr = /* @__PURE__ */ v(qr, [["render", Jr]]), _r = {
3848
3910
  this.scriptsInserted.push(n.src);
3849
3911
  const o = document.createElement("script");
3850
3912
  o.async = !0, o.src = n.src, document.head.appendChild(o);
3851
- } else if (Xr(n) && !this.scriptsRun.includes(n.innerText))
3913
+ } else if (gi(n) && !this.scriptsRun.includes(n.innerText))
3852
3914
  try {
3853
3915
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
3854
3916
  } catch (o) {
@@ -3857,15 +3919,15 @@ const Qr = /* @__PURE__ */ v(qr, [["render", Jr]]), _r = {
3857
3919
  }
3858
3920
  }
3859
3921
  }
3860
- }), ei = ["innerHTML"];
3861
- function ti(e, t, n, o, r, i) {
3862
- return d(), h("div", {
3922
+ }), Si = ["innerHTML"];
3923
+ function vi(e, t, n, o, r, i) {
3924
+ return u(), h("div", {
3863
3925
  class: "builder-embed",
3864
3926
  ref: "elem",
3865
3927
  innerHTML: e.content
3866
- }, null, 8, ei);
3928
+ }, null, 8, Si);
3867
3929
  }
3868
- const ni = /* @__PURE__ */ v(Zr, [["render", ti]]), oi = {
3930
+ const ki = /* @__PURE__ */ S(yi, [["render", vi]]), Ci = {
3869
3931
  name: "Form:Form",
3870
3932
  // editableTags: ['builder-form-error']
3871
3933
  defaults: {
@@ -4102,12 +4164,12 @@ const ni = /* @__PURE__ */ v(Zr, [["render", ti]]), oi = {
4102
4164
  builderComponents: !0,
4103
4165
  builderLinkComponent: !0
4104
4166
  }
4105
- }, ri = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], ii = () => {
4167
+ }, Ti = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], wi = () => {
4106
4168
  const e = process.env.NODE_ENV || "production";
4107
- return ri.includes(e) ? e : "production";
4108
- }, si = y({
4169
+ return Ti.includes(e) ? e : "production";
4170
+ }, Ii = y({
4109
4171
  name: "builder-form-component",
4110
- components: { Blocks: K },
4172
+ components: { Blocks: z },
4111
4173
  props: [
4112
4174
  "builderContext",
4113
4175
  "previewState",
@@ -4133,7 +4195,7 @@ const ni = /* @__PURE__ */ v(Zr, [["render", ti]]), oi = {
4133
4195
  formState: "unsubmitted",
4134
4196
  responseData: null,
4135
4197
  formErrorMessage: "",
4136
- filterAttrs: O
4198
+ filterAttrs: N
4137
4199
  };
4138
4200
  },
4139
4201
  methods: {
@@ -4198,16 +4260,16 @@ const ni = /* @__PURE__ */ v(Zr, [["render", ti]]), oi = {
4198
4260
  else {
4199
4261
  const c = {};
4200
4262
  Array.from(l).forEach(({ value: m, key: f }) => {
4201
- yt(c, f, m);
4263
+ Gn(c, f, m);
4202
4264
  }), i = JSON.stringify(c);
4203
4265
  }
4204
4266
  a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
4205
- const u = new CustomEvent("presubmit", {
4267
+ const d = new CustomEvent("presubmit", {
4206
4268
  detail: {
4207
4269
  body: i
4208
4270
  }
4209
4271
  });
4210
- if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(u), u.defaultPrevented))
4272
+ if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(d), d.defaultPrevented))
4211
4273
  return;
4212
4274
  if (this.formState = "sending", this.sendSubmissionsTo === "email" && (this.sendSubmissionsToEmail === "your@email.com" || !this.sendSubmissionsToEmail)) {
4213
4275
  const c = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
@@ -4216,10 +4278,10 @@ const ni = /* @__PURE__ */ v(Zr, [["render", ti]]), oi = {
4216
4278
  });
4217
4279
  return;
4218
4280
  }
4219
- const p = `${ii() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
4281
+ const p = `${wi() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
4220
4282
  this.sendSubmissionsToEmail || ""
4221
4283
  )}&name=${encodeURIComponent(this.name || "")}`, b = this.sendSubmissionsTo === "email" ? p : this.action;
4222
- Pe(b), fetch(b, {
4284
+ Ve(b), fetch(b, {
4223
4285
  body: i,
4224
4286
  headers: r,
4225
4287
  method: this.method || "post"
@@ -4229,32 +4291,32 @@ const ni = /* @__PURE__ */ v(Zr, [["render", ti]]), oi = {
4229
4291
  let m;
4230
4292
  const f = c.headers.get("content-type");
4231
4293
  if (f && f.indexOf("application/json") !== -1 ? m = await c.json() : m = await c.text(), !c.ok) {
4232
- const U = new CustomEvent("submit:error", {
4294
+ const x = new CustomEvent("submit:error", {
4233
4295
  detail: {
4234
4296
  error: m,
4235
4297
  status: c.status
4236
4298
  }
4237
4299
  });
4238
4300
  if ((g = this.$refs.formRef) != null && g.nativeElement && ((P = this.$refs.formRef) == null || P.nativeElement.dispatchEvent(
4239
- U
4240
- ), U.defaultPrevented))
4301
+ x
4302
+ ), x.defaultPrevented))
4241
4303
  return;
4242
4304
  this.responseData = m, this.formState = "error";
4243
- let V = this.errorMessagePath ? it(m, this.errorMessagePath) : m.message || m.error || m;
4305
+ let V = this.errorMessagePath ? ft(m, this.errorMessagePath) : m.message || m.error || m;
4244
4306
  typeof V != "string" && (V = JSON.stringify(V)), this.formErrorMessage = V, this.mergeNewRootState({
4245
4307
  formErrorMessage: V
4246
4308
  });
4247
4309
  return;
4248
4310
  }
4249
4311
  if (this.responseData = m, this.formState = c.ok ? "success" : "error", c.ok) {
4250
- const U = new CustomEvent("submit:success", {
4312
+ const x = new CustomEvent("submit:success", {
4251
4313
  detail: {
4252
4314
  res: c,
4253
4315
  body: m
4254
4316
  }
4255
4317
  });
4256
4318
  if (this.$refs.formRef) {
4257
- if (this.$refs.formRef.dispatchEvent(U), U.defaultPrevented)
4319
+ if (this.$refs.formRef.dispatchEvent(x), x.defaultPrevented)
4258
4320
  return;
4259
4321
  this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
4260
4322
  }
@@ -4282,43 +4344,43 @@ const ni = /* @__PURE__ */ v(Zr, [["render", ti]]), oi = {
4282
4344
  }
4283
4345
  }
4284
4346
  }
4285
- }), ai = ["validate", "action", "method", "name"], li = {
4347
+ }), Ei = ["validate", "action", "method", "name"], Ri = {
4286
4348
  key: 2,
4287
4349
  class: "builder-form-error-text pre-2oa2wtipkzk"
4288
4350
  };
4289
- function ci(e, t, n, o, r, i) {
4351
+ function $i(e, t, n, o, r, i) {
4290
4352
  const s = k("Blocks");
4291
- return d(), h("form", $({
4353
+ return u(), h("form", E({
4292
4354
  validate: e.validate,
4293
4355
  ref: "formRef",
4294
4356
  action: !e.sendWithJs && e.action,
4295
4357
  method: e.method,
4296
4358
  name: e.name,
4297
4359
  onSubmit: t[0] || (t[0] = async (l) => e.onSubmit(l))
4298
- }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4299
- N(e.$slots, "default", {}, void 0, !0),
4300
- e.submissionState() === "error" ? (d(), S(s, {
4360
+ }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4361
+ O(e.$slots, "default", {}, void 0, !0),
4362
+ e.submissionState() === "error" ? (u(), v(s, {
4301
4363
  key: 0,
4302
4364
  path: "errorMessage",
4303
4365
  blocks: e.errorMessage,
4304
4366
  context: e.builderContext
4305
4367
  }, null, 8, ["blocks", "context"])) : T("", !0),
4306
- e.submissionState() === "sending" ? (d(), S(s, {
4368
+ e.submissionState() === "sending" ? (u(), v(s, {
4307
4369
  key: 1,
4308
4370
  path: "sendingMessage",
4309
4371
  blocks: e.sendingMessage,
4310
4372
  context: e.builderContext
4311
4373
  }, null, 8, ["blocks", "context"])) : T("", !0),
4312
- e.submissionState() === "error" && e.responseData ? (d(), h("pre", li, pe(e.errorResponse(e.responseData)), 1)) : T("", !0),
4313
- e.submissionState() === "success" ? (d(), S(s, {
4374
+ e.submissionState() === "error" && e.responseData ? (u(), h("pre", Ri, he(e.errorResponse(e.responseData)), 1)) : T("", !0),
4375
+ e.submissionState() === "success" ? (u(), v(s, {
4314
4376
  key: 3,
4315
4377
  path: "successMessage",
4316
4378
  blocks: e.successMessage,
4317
4379
  context: e.builderContext
4318
4380
  }, null, 8, ["blocks", "context"])) : T("", !0)
4319
- ], 16, ai);
4381
+ ], 16, Ei);
4320
4382
  }
4321
- const di = /* @__PURE__ */ v(si, [["render", ci], ["__scopeId", "data-v-77c7888c"]]), ui = {
4383
+ const Ai = /* @__PURE__ */ S(Ii, [["render", $i], ["__scopeId", "data-v-77c7888c"]]), Pi = {
4322
4384
  name: "Form:Input",
4323
4385
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
4324
4386
  inputs: [
@@ -4369,7 +4431,7 @@ const di = /* @__PURE__ */ v(si, [["render", ci], ["__scopeId", "data-v-77c7888c
4369
4431
  borderStyle: "solid",
4370
4432
  borderColor: "#ccc"
4371
4433
  }
4372
- }, pi = y({
4434
+ }, Bi = y({
4373
4435
  name: "builder-form-input-component",
4374
4436
  props: [
4375
4437
  "attributes",
@@ -4381,11 +4443,11 @@ const di = /* @__PURE__ */ v(si, [["render", ci], ["__scopeId", "data-v-77c7888c
4381
4443
  "required"
4382
4444
  ],
4383
4445
  data() {
4384
- return { isEditing: A, filterAttrs: O };
4446
+ return { isEditing: A, filterAttrs: N };
4385
4447
  }
4386
- }), mi = ["placeholder", "type", "name", "value", "defaultValue", "required"];
4387
- function hi(e, t, n, o, r, i) {
4388
- return d(), h("input", $({
4448
+ }), Vi = ["placeholder", "type", "name", "value", "defaultValue", "required"];
4449
+ function Oi(e, t, n, o, r, i) {
4450
+ return u(), h("input", E({
4389
4451
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
4390
4452
  placeholder: e.placeholder,
4391
4453
  type: e.type,
@@ -4393,9 +4455,9 @@ function hi(e, t, n, o, r, i) {
4393
4455
  value: e.value,
4394
4456
  defaultValue: e.defaultValue,
4395
4457
  required: e.required
4396
- }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, mi);
4458
+ }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Vi);
4397
4459
  }
4398
- const fi = /* @__PURE__ */ v(pi, [["render", hi]]), bi = {
4460
+ const Ni = /* @__PURE__ */ S(Bi, [["render", Oi]]), Wi = {
4399
4461
  name: "Form:Select",
4400
4462
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
4401
4463
  defaultStyles: {
@@ -4437,28 +4499,28 @@ const fi = /* @__PURE__ */ v(pi, [["render", hi]]), bi = {
4437
4499
  }],
4438
4500
  static: !0,
4439
4501
  noWrap: !0
4440
- }, gi = y({
4502
+ }, Di = y({
4441
4503
  name: "builder-select-component",
4442
4504
  props: ["attributes", "value", "defaultValue", "name", "required", "options"],
4443
4505
  data() {
4444
- return { isEditing: A, filterAttrs: O };
4506
+ return { isEditing: A, filterAttrs: N };
4445
4507
  }
4446
- }), yi = ["value", "defaultValue", "name", "required"], vi = ["value"];
4447
- function Si(e, t, n, o, r, i) {
4448
- return d(), h("select", $({
4508
+ }), xi = ["value", "defaultValue", "name", "required"], Ui = ["value"];
4509
+ function Li(e, t, n, o, r, i) {
4510
+ return u(), h("select", E({
4449
4511
  value: e.value,
4450
4512
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
4451
4513
  defaultValue: e.defaultValue,
4452
4514
  name: e.name,
4453
4515
  required: e.required
4454
- }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4455
- (d(!0), h(I, null, L(e.options, (s, l) => (d(), h("option", {
4516
+ }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4517
+ (u(!0), h(I, null, L(e.options, (s, l) => (u(), h("option", {
4456
4518
  key: `${s.name}-${l}`,
4457
4519
  value: s.value
4458
- }, pe(s.name || s.value), 9, vi))), 128))
4459
- ], 16, yi);
4520
+ }, he(s.name || s.value), 9, Ui))), 128))
4521
+ ], 16, xi);
4460
4522
  }
4461
- const ki = /* @__PURE__ */ v(gi, [["render", Si]]), Ci = {
4523
+ const Fi = /* @__PURE__ */ S(Di, [["render", Li]]), Mi = {
4462
4524
  name: "Form:SubmitButton",
4463
4525
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
4464
4526
  defaultStyles: {
@@ -4483,17 +4545,17 @@ const ki = /* @__PURE__ */ v(gi, [["render", Si]]), Ci = {
4483
4545
  // that only shows if advanced setting is flipped
4484
4546
  // TODO: defaultChildren
4485
4547
  // canHaveChildren: true,
4486
- }, Ti = y({
4548
+ }, Hi = y({
4487
4549
  name: "builder-submit-button",
4488
4550
  props: ["attributes", "text"],
4489
4551
  data() {
4490
- return { filterAttrs: O };
4552
+ return { filterAttrs: N };
4491
4553
  }
4492
4554
  });
4493
- function wi(e, t, n, o, r, i) {
4494
- return d(), h("button", $({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), pe(e.text), 17);
4555
+ function ji(e, t, n, o, r, i) {
4556
+ return u(), h("button", E({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), he(e.text), 17);
4495
4557
  }
4496
- const Ii = /* @__PURE__ */ v(Ti, [["render", wi]]), $i = {
4558
+ const Ki = /* @__PURE__ */ S(Hi, [["render", ji]]), zi = {
4497
4559
  name: "Form:TextArea",
4498
4560
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
4499
4561
  inputs: [{
@@ -4529,7 +4591,7 @@ const Ii = /* @__PURE__ */ v(Ti, [["render", wi]]), $i = {
4529
4591
  },
4530
4592
  static: !0,
4531
4593
  noWrap: !0
4532
- }, Ei = y({
4594
+ }, qi = y({
4533
4595
  name: "builder-textarea",
4534
4596
  props: [
4535
4597
  "attributes",
@@ -4540,19 +4602,19 @@ const Ii = /* @__PURE__ */ v(Ti, [["render", wi]]), $i = {
4540
4602
  "required"
4541
4603
  ],
4542
4604
  data() {
4543
- return { filterAttrs: O };
4605
+ return { filterAttrs: N };
4544
4606
  }
4545
- }), Ri = ["placeholder", "name", "value", "defaultValue", "required"];
4546
- function Ai(e, t, n, o, r, i) {
4547
- return d(), h("textarea", $({
4607
+ }), Gi = ["placeholder", "name", "value", "defaultValue", "required"];
4608
+ function _i(e, t, n, o, r, i) {
4609
+ return u(), h("textarea", E({
4548
4610
  placeholder: e.placeholder,
4549
4611
  name: e.name,
4550
4612
  value: e.value,
4551
4613
  defaultValue: e.defaultValue,
4552
4614
  required: e.required
4553
- }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Ri);
4615
+ }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Gi);
4554
4616
  }
4555
- const Pi = /* @__PURE__ */ v(Ei, [["render", Ai]]), Bi = {
4617
+ const Ji = /* @__PURE__ */ S(qi, [["render", _i]]), Qi = {
4556
4618
  name: "Raw:Img",
4557
4619
  hideFromInsertMenu: !0,
4558
4620
  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",
@@ -4596,7 +4658,7 @@ const Pi = /* @__PURE__ */ v(Ei, [["render", Ai]]), Bi = {
4596
4658
  defaultValue: 0.7041
4597
4659
  }],
4598
4660
  noWrap: !0
4599
- }, Vi = y({
4661
+ }, Yi = y({
4600
4662
  name: "builder-img-component",
4601
4663
  props: [
4602
4664
  "imgSrc",
@@ -4615,21 +4677,21 @@ const Pi = /* @__PURE__ */ v(Ei, [["render", Ai]]), Bi = {
4615
4677
  srcSetToUse() {
4616
4678
  const e = this.imgSrc || this.image;
4617
4679
  if (!(!e || typeof e != "string") && e.match(/builder\.io/))
4618
- return ie(e);
4680
+ return le(e);
4619
4681
  },
4620
4682
  imgAttrs() {
4621
4683
  const e = {
4622
- ...O(this.attributes, "v-on:", !1),
4623
- ...O(this.attributes, "v-on:", !0),
4684
+ ...N(this.attributes, "v-on:", !1),
4685
+ ...N(this.attributes, "v-on:", !0),
4624
4686
  [H()]: `builder-raw-img ${this.attributes[H()] || ""}`
4625
4687
  };
4626
4688
  return delete e.style, e;
4627
4689
  }
4628
4690
  }
4629
- }), Ni = ["alt", "title", "src"];
4630
- function Oi(e, t, n, o, r, i) {
4691
+ }), Xi = ["alt", "title", "src"];
4692
+ function Zi(e, t, n, o, r, i) {
4631
4693
  var s;
4632
- return d(), h("img", $({
4694
+ return u(), h("img", E({
4633
4695
  loading: "lazy",
4634
4696
  key: e.isEditing() && e.imgSrc || "default-key",
4635
4697
  alt: e.altText,
@@ -4641,9 +4703,9 @@ function Oi(e, t, n, o, r, i) {
4641
4703
  aspectRatio: e.aspectRatio || void 0,
4642
4704
  ...((s = e.attributes) == null ? void 0 : s.style) || {}
4643
4705
  }
4644
- }, e.imgAttrs), null, 16, Ni);
4706
+ }, e.imgAttrs), null, 16, Xi);
4645
4707
  }
4646
- const Wi = /* @__PURE__ */ v(Vi, [["render", Oi]]), Di = {
4708
+ const es = /* @__PURE__ */ S(Yi, [["render", Zi]]), ts = {
4647
4709
  name: "Video",
4648
4710
  canHaveChildren: !0,
4649
4711
  defaultStyles: {
@@ -4654,7 +4716,7 @@ const Wi = /* @__PURE__ */ v(Vi, [["render", Oi]]), Di = {
4654
4716
  inputs: [{
4655
4717
  name: "video",
4656
4718
  type: "file",
4657
- allowedFileTypes: Cr,
4719
+ allowedFileTypes: Mr,
4658
4720
  bubble: !0,
4659
4721
  defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
4660
4722
  required: !0
@@ -4727,7 +4789,7 @@ const Wi = /* @__PURE__ */ v(Vi, [["render", Oi]]), Di = {
4727
4789
  shouldReceiveBuilderProps: {
4728
4790
  builderBlock: !0
4729
4791
  }
4730
- }, Ui = y({
4792
+ }, ns = y({
4731
4793
  name: "builder-video",
4732
4794
  props: [
4733
4795
  "lazyLoad",
@@ -4800,16 +4862,16 @@ const Wi = /* @__PURE__ */ v(Vi, [["render", Oi]]), Di = {
4800
4862
  };
4801
4863
  }
4802
4864
  }
4803
- }), xi = { style: {
4865
+ }), os = { style: {
4804
4866
  position: "relative"
4805
- } }, Li = ["preload", "poster"], Fi = {
4867
+ } }, rs = ["preload", "poster"], is = {
4806
4868
  key: 1,
4807
4869
  style: {
4808
4870
  display: "flex",
4809
4871
  flexDirection: "column",
4810
4872
  alignItems: "stretch"
4811
4873
  }
4812
- }, Mi = {
4874
+ }, ss = {
4813
4875
  key: 2,
4814
4876
  style: {
4815
4877
  pointerEvents: "none",
@@ -4823,10 +4885,10 @@ const Wi = /* @__PURE__ */ v(Vi, [["render", Oi]]), Di = {
4823
4885
  height: "100%"
4824
4886
  }
4825
4887
  };
4826
- function Hi(e, t, n, o, r, i) {
4827
- var s, l, a, u, p, b, c;
4828
- return d(), h("div", xi, [
4829
- G("video", $({
4888
+ function as(e, t, n, o, r, i) {
4889
+ var s, l, a, d, p, b, c;
4890
+ return u(), h("div", os, [
4891
+ G("video", E({
4830
4892
  class: "builder-video",
4831
4893
  ref: "videoRef",
4832
4894
  preload: e.lazyLoad ? "none" : e.preload || "metadata",
@@ -4845,7 +4907,7 @@ function Hi(e, t, n, o, r, i) {
4845
4907
  },
4846
4908
  poster: e.posterImage
4847
4909
  }, e.spreadProps), [
4848
- G("source", $(
4910
+ G("source", E(
4849
4911
  { type: "video/mp4" },
4850
4912
  e.lazyLoad ? {
4851
4913
  "data-src": e.video
@@ -4853,8 +4915,8 @@ function Hi(e, t, n, o, r, i) {
4853
4915
  src: e.video
4854
4916
  }
4855
4917
  ), null, 16)
4856
- ], 16, Li),
4857
- e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), h("div", {
4918
+ ], 16, rs),
4919
+ e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (u(), h("div", {
4858
4920
  key: 0,
4859
4921
  style: M({
4860
4922
  width: "100%",
@@ -4863,75 +4925,77 @@ function Hi(e, t, n, o, r, i) {
4863
4925
  fontSize: "0px"
4864
4926
  })
4865
4927
  }, null, 4)) : T("", !0),
4866
- (p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length && e.fitContent ? (d(), h("div", Fi, [
4867
- N(e.$slots, "default")
4928
+ (p = (d = e.builderBlock) == null ? void 0 : d.children) != null && p.length && e.fitContent ? (u(), h("div", is, [
4929
+ O(e.$slots, "default")
4868
4930
  ])) : T("", !0),
4869
- (c = (b = e.builderBlock) == null ? void 0 : b.children) != null && c.length && !e.fitContent ? (d(), h("div", Mi, [
4870
- N(e.$slots, "default")
4931
+ (c = (b = e.builderBlock) == null ? void 0 : b.children) != null && c.length && !e.fitContent ? (u(), h("div", ss, [
4932
+ O(e.$slots, "default")
4871
4933
  ])) : T("", !0)
4872
4934
  ]);
4873
4935
  }
4874
- const ji = /* @__PURE__ */ v(Ui, [["render", Hi]]), zi = () => [{
4875
- component: Qr,
4876
- ...Kr
4936
+ const ls = /* @__PURE__ */ S(ns, [["render", as]]), cs = () => [{
4937
+ component: hi,
4938
+ ...di
4877
4939
  }, {
4878
- component: ni,
4879
- ..._r
4940
+ component: ki,
4941
+ ...fi
4880
4942
  }, {
4881
- component: di,
4882
- ...oi
4943
+ component: Ai,
4944
+ ...Ci
4883
4945
  }, {
4884
- component: fi,
4885
- ...ui
4946
+ component: Ni,
4947
+ ...Pi
4886
4948
  }, {
4887
- component: Ii,
4888
- ...Ci
4949
+ component: Ki,
4950
+ ...Mi
4889
4951
  }, {
4890
- component: ki,
4891
- ...bi
4952
+ component: Fi,
4953
+ ...Wi
4892
4954
  }, {
4893
- component: Pi,
4894
- ...$i
4955
+ component: Ji,
4956
+ ...zi
4895
4957
  }, {
4896
- component: Wi,
4897
- ...Bi
4958
+ component: es,
4959
+ ...Qi
4898
4960
  }, {
4899
- component: ji,
4900
- ...Di
4901
- }], et = () => [{
4902
- component: qt,
4903
- ...vr
4961
+ component: ls,
4962
+ ...ts
4963
+ }];
4964
+ let se;
4965
+ const at = () => se || (se = [{
4966
+ component: an,
4967
+ ...Ur
4904
4968
  }, {
4905
- component: Fo,
4906
- ...Sr
4969
+ component: ir,
4970
+ ...Lr
4907
4971
  }, {
4908
- component: jo,
4909
- ...kr
4972
+ component: lr,
4973
+ ...Fr
4910
4974
  }, {
4911
- component: Yo,
4912
- ...Tr
4975
+ component: br,
4976
+ ...Hr
4913
4977
  }, {
4914
- component: er,
4915
- ...Rr
4978
+ component: Sr,
4979
+ ...Gr
4916
4980
  }, {
4917
- component: Vr,
4918
- ...Ar
4981
+ component: Yr,
4982
+ ..._r
4919
4983
  }, {
4920
- component: Rs,
4921
- ...Nr
4984
+ component: Qs,
4985
+ ...Xr
4922
4986
  }, {
4923
- component: zr,
4924
- ...Fr
4925
- }, ...Wt.includes(E) ? [{
4926
- component: Er,
4927
- ...wr
4987
+ component: ci,
4988
+ ...ii
4989
+ }, ..._t.includes(R) ? [{
4990
+ component: qr,
4991
+ ...jr
4928
4992
  }] : [], {
4929
- component: Lr,
4930
- ...Or
4993
+ component: ri,
4994
+ ...Zr
4931
4995
  }, {
4932
- component: yr,
4933
- ...mr
4934
- }, ...zi()], Ki = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
4996
+ component: xr,
4997
+ ...Vr
4998
+ }, ...cs()], se), ds = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
4935
4999
  function getAndSetVariantId() {
4936
5000
  function setCookie(name, value, days) {
4937
5001
  let expires = '';
@@ -4990,7 +5054,7 @@ const ji = /* @__PURE__ */ v(Ui, [["render", Hi]]), zi = () => [{
4990
5054
  }).join('');
4991
5055
  styleEl.innerHTML = newStyleStr;
4992
5056
  }
4993
- }`, qi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
5057
+ }`, us = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4994
5058
  if (!navigator.cookieEnabled) {
4995
5059
  return;
4996
5060
  }
@@ -5024,37 +5088,37 @@ const ji = /* @__PURE__ */ v(Ui, [["render", Hi]]), zi = () => [{
5024
5088
  thisScriptEl?.remove();
5025
5089
  }
5026
5090
  return;
5027
- }`, $e = "builderIoAbTest", Ee = "builderIoRenderContent", ae = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
5091
+ }`, $e = "builderIoAbTest", Ae = "builderIoRenderContent", de = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
5028
5092
  ...t,
5029
5093
  testVariationId: t.id,
5030
5094
  id: e == null ? void 0 : e.id
5031
- })), Gi = ({
5095
+ })), ps = ({
5032
5096
  canTrack: e,
5033
5097
  content: t
5034
- }) => !(!(ae(t).length > 0) || !e), Ji = (e) => e === "react" || e === "reactNative", Qi = E === "angular", Le = Ji(E), _i = () => `
5098
+ }) => !(!(de(t).length > 0) || !e), ms = (e) => e === "react" || e === "reactNative", hs = R === "angular", Fe = ms(R), fs = () => `
5035
5099
  (function() {
5036
5100
  if (!window.${$e}) {
5037
- window.${$e} = ${Ki};
5101
+ window.${$e} = ${ds};
5038
5102
  }
5039
- if (!window.${Ee}) {
5040
- window.${Ee} = ${qi};
5041
- }${Le ? `
5103
+ if (!window.${Ae}) {
5104
+ window.${Ae} = ${us};
5105
+ }${Fe ? `
5042
5106
  var thisScriptEl = document.currentScript;
5043
5107
  if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
5044
5108
  })();
5045
- `, Yi = (e, t) => `
5109
+ `, bs = (e, t) => `
5046
5110
  window.${$e}(
5047
- "${t}",${JSON.stringify(e)}, ${Le}, ${Qi}
5048
- )`, Xi = ({
5111
+ "${t}",${JSON.stringify(e)}, ${Fe}, ${hs}
5112
+ )`, gs = ({
5049
5113
  contentId: e,
5050
5114
  variationId: t
5051
- }) => `window.${Ee}(
5052
- "${t}", "${e}", ${Le}
5053
- )`;
5054
- function tt(e) {
5115
+ }) => `window.${Ae}(
5116
+ "${t}", "${e}", ${Fe}
5117
+ )`, ys = (e) => JSON.parse(JSON.stringify(e));
5118
+ function lt(e) {
5055
5119
  return Math.round(e * 1e3) / 1e3;
5056
5120
  }
5057
- const Zi = (e, t, n = !0) => {
5121
+ const Ss = (e, t, n = !0) => {
5058
5122
  if (!(e instanceof HTMLElement))
5059
5123
  return null;
5060
5124
  let o = n ? e : e.parentElement;
@@ -5065,35 +5129,35 @@ const Zi = (e, t, n = !0) => {
5065
5129
  return o;
5066
5130
  } while (o = o.parentElement);
5067
5131
  return null;
5068
- }, es = (e) => Zi(e, (t) => {
5132
+ }, vs = (e) => Ss(e, (t) => {
5069
5133
  const n = t.getAttribute("builder-id") || t.id;
5070
5134
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
5071
- }), nt = ({
5135
+ }), ct = ({
5072
5136
  event: e,
5073
5137
  target: t
5074
5138
  }) => {
5075
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = tt(o / n.width), s = tt(r / n.height);
5139
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = lt(o / n.width), s = lt(r / n.height);
5076
5140
  return {
5077
5141
  x: i,
5078
5142
  y: s
5079
5143
  };
5080
- }, ts = (e) => {
5081
- const t = e.target, n = t && es(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
5144
+ }, ks = (e) => {
5145
+ const t = e.target, n = t && vs(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
5082
5146
  return {
5083
5147
  targetBuilderElement: o || void 0,
5084
5148
  metadata: {
5085
- targetOffset: t ? nt({
5149
+ targetOffset: t ? ct({
5086
5150
  event: e,
5087
5151
  target: t
5088
5152
  }) : void 0,
5089
- builderTargetOffset: n ? nt({
5153
+ builderTargetOffset: n ? ct({
5090
5154
  event: e,
5091
5155
  target: n
5092
5156
  }) : void 0,
5093
5157
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
5094
5158
  }
5095
5159
  };
5096
- }, ns = ["svelte", "qwik", "vue"], os = () => ns.includes(E) && (A() || Ve()), rs = (e) => {
5160
+ }, Cs = ["svelte", "qwik", "vue"], Ts = () => Cs.includes(R) && (A() || be()), ws = (e) => {
5097
5161
  var i;
5098
5162
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
5099
5163
  let r = "";
@@ -5119,16 +5183,16 @@ font-weight: ${s};
5119
5183
  `.trim());
5120
5184
  }
5121
5185
  return r;
5122
- }, is = ({
5186
+ }, Is = ({
5123
5187
  customFonts: e
5124
5188
  }) => {
5125
5189
  var t;
5126
- return ((t = e == null ? void 0 : e.map((n) => rs(n))) == null ? void 0 : t.join(" ")) || "";
5127
- }, ss = ({
5190
+ return ((t = e == null ? void 0 : e.map((n) => ws(n))) == null ? void 0 : t.join(" ")) || "";
5191
+ }, Es = ({
5128
5192
  cssCode: e,
5129
5193
  contentId: t
5130
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", as = `
5131
- .builder-button {
5194
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Rs = `
5195
+ :where(.builder-button) {
5132
5196
  all: unset;
5133
5197
  }
5134
5198
 
@@ -5144,9 +5208,9 @@ font-weight: ${s};
5144
5208
  text-align: inherit;
5145
5209
  font-family: inherit;
5146
5210
  }
5147
- `, ls = (e) => e ? "" : as, cs = (e) => `variant-${e}`, ds = y({
5211
+ `, $s = (e) => e ? "" : Rs, As = (e) => `variant-${e}`, Ps = y({
5148
5212
  name: "enable-editor",
5149
- components: { DynamicDiv: ne },
5213
+ components: { DynamicDiv: oe },
5150
5214
  props: [
5151
5215
  "isNestedRender",
5152
5216
  "builderContextSignal",
@@ -5176,15 +5240,15 @@ font-weight: ${s};
5176
5240
  httpReqsData: {},
5177
5241
  httpReqsPending: {},
5178
5242
  clicked: !1,
5179
- builderContext: ve,
5180
- needsElementRefDivForEditing: os,
5181
- getWrapperClassName: cs
5243
+ builderContext: Ce,
5244
+ needsElementRefDivForEditing: Ts,
5245
+ getWrapperClassName: As
5182
5246
  };
5183
5247
  },
5184
5248
  provide() {
5185
5249
  const e = this;
5186
5250
  return {
5187
- [ve.key]: e.builderContextSignal
5251
+ [Ce.key]: e.builderContextSignal
5188
5252
  };
5189
5253
  },
5190
5254
  created() {
@@ -5196,13 +5260,13 @@ font-weight: ${s};
5196
5260
  A() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
5197
5261
  new CustomEvent("initeditingbldr")
5198
5262
  );
5199
- const o = this.builderContextSignal.content && J(this.canTrack), r = me({
5263
+ const o = this.builderContextSignal.content && _(this.canTrack), r = fe({
5200
5264
  name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
5201
5265
  canTrack: !0
5202
5266
  }), i = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
5203
5267
  if (o && i === r) {
5204
5268
  const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id, l = this.apiKey;
5205
- le({
5269
+ ue({
5206
5270
  apiHost: this.apiHost,
5207
5271
  type: "impression",
5208
5272
  canTrack: !0,
@@ -5211,7 +5275,7 @@ font-weight: ${s};
5211
5275
  variationId: r !== s ? r : void 0
5212
5276
  });
5213
5277
  }
5214
- Ve() && !A() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
5278
+ be() && !A() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
5215
5279
  new CustomEvent("initpreviewingbldr")
5216
5280
  );
5217
5281
  }
@@ -5313,7 +5377,7 @@ font-weight: ${s};
5313
5377
  this.builderContextSignal.content = n;
5314
5378
  },
5315
5379
  processMessage(e) {
5316
- return Ct({
5380
+ return Dt({
5317
5381
  model: this.model,
5318
5382
  trustedHosts: this.trustedHosts,
5319
5383
  callbacks: {
@@ -5327,7 +5391,7 @@ font-weight: ${s};
5327
5391
  });
5328
5392
  },
5329
5393
  animation: (t) => {
5330
- At(t);
5394
+ jt(t);
5331
5395
  },
5332
5396
  contentUpdate: (t, n) => {
5333
5397
  this.mergeNewContent(t, n);
@@ -5342,14 +5406,14 @@ font-weight: ${s};
5342
5406
  var t, n;
5343
5407
  if (this.builderContextSignal.content) {
5344
5408
  const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
5345
- le({
5409
+ ue({
5346
5410
  apiHost: this.apiHost,
5347
5411
  type: "click",
5348
- canTrack: J(this.canTrack),
5412
+ canTrack: _(this.canTrack),
5349
5413
  contentId: r,
5350
5414
  apiKey: this.apiKey,
5351
5415
  variationId: o !== r ? o : void 0,
5352
- ...ts(e),
5416
+ ...ks(e),
5353
5417
  unique: !this.clicked
5354
5418
  });
5355
5419
  }
@@ -5370,7 +5434,7 @@ font-weight: ${s};
5370
5434
  const l = s.replace(
5371
5435
  /{{([^}]+)}}/g,
5372
5436
  (p, b) => String(
5373
- te({
5437
+ ne({
5374
5438
  code: b,
5375
5439
  context: this.context || {},
5376
5440
  localState: void 0,
@@ -5387,13 +5451,13 @@ font-weight: ${s};
5387
5451
  url: l,
5388
5452
  method: "GET"
5389
5453
  };
5390
- Pe(JSON.stringify(a));
5391
- const u = {
5454
+ Ve(JSON.stringify(a));
5455
+ const d = {
5392
5456
  method: a.method,
5393
5457
  headers: a.headers,
5394
5458
  body: a.body
5395
5459
  };
5396
- a.method === "GET" && delete u.body, fetch(a.url, u).then((p) => p.json()).then((p) => {
5460
+ a.method === "GET" && delete d.body, fetch(a.url, d).then((p) => p.json()).then((p) => {
5397
5461
  this.mergeNewRootState({
5398
5462
  [o]: p
5399
5463
  }), this.httpReqsData[o] = !0;
@@ -5415,7 +5479,7 @@ font-weight: ${s};
5415
5479
  "builder:component:stateChange",
5416
5480
  {
5417
5481
  detail: {
5418
- state: Be(this.builderContextSignal.rootState),
5482
+ state: ys(this.builderContextSignal.rootState),
5419
5483
  ref: {
5420
5484
  name: this.model
5421
5485
  }
@@ -5425,7 +5489,7 @@ font-weight: ${s};
5425
5489
  );
5426
5490
  },
5427
5491
  elementRef_onIniteditingbldr(e) {
5428
- window.addEventListener("message", this.processMessage), kt({
5492
+ window.addEventListener("message", this.processMessage), Wt({
5429
5493
  ...this.locale ? {
5430
5494
  locale: this.locale
5431
5495
  } : {},
@@ -5445,7 +5509,7 @@ font-weight: ${s};
5445
5509
  ).forEach((t) => {
5446
5510
  var n, o;
5447
5511
  if (!((n = t.models) != null && n.length) || t.models.includes(this.model)) {
5448
- const r = On(t);
5512
+ const r = Xn(t);
5449
5513
  (o = window.parent) == null || o.postMessage(r, "*");
5450
5514
  }
5451
5515
  }), window.addEventListener(
@@ -5458,7 +5522,7 @@ font-weight: ${s};
5458
5522
  const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
5459
5523
  `builder.overrides.${n}`
5460
5524
  ), r = t.get("apiKey") || t.get("builder.space");
5461
- (n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && We({
5525
+ (n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && De({
5462
5526
  model: this.model,
5463
5527
  apiKey: this.apiKey,
5464
5528
  apiVersion: this.builderContextSignal.apiVersion,
@@ -5473,72 +5537,123 @@ font-weight: ${s};
5473
5537
  }
5474
5538
  }
5475
5539
  });
5476
- function us(e, t, n, o, r, i) {
5540
+ function Bs(e, t, n, o, r, i) {
5477
5541
  var s, l, a;
5478
- return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(X(e.ContentWrapper), $({
5542
+ return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (u(), v(Z(e.ContentWrapper), E({
5479
5543
  key: 0,
5480
5544
  ref: "elementRef",
5481
- onClick: (u) => e.onClick(u),
5545
+ onClick: (d) => e.onClick(d),
5482
5546
  "builder-content-id": (s = e.builderContextSignal.content) == null ? void 0 : s.id,
5483
5547
  "builder-model": e.model,
5484
5548
  className: e.getWrapperClassName(((l = e.content) == null ? void 0 : l.testVariationId) || ((a = e.content) == null ? void 0 : a.id)),
5485
5549
  style: {
5486
5550
  display: !e.builderContextSignal.content && e.needsElementRefDivForEditing() ? "none" : void 0
5487
5551
  },
5488
- onIniteditingbldr: (u) => e.elementRef_onIniteditingbldr(u),
5489
- onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
5552
+ onIniteditingbldr: (d) => e.elementRef_onIniteditingbldr(d),
5553
+ onInitpreviewingbldr: (d) => e.elementRef_onInitpreviewingbldr(d)
5490
5554
  }, { ...e.showContentProps, ...e.contentWrapperProps }), {
5491
5555
  default: D(() => [
5492
- N(e.$slots, "default")
5556
+ O(e.$slots, "default")
5493
5557
  ]),
5494
5558
  _: 3
5495
5559
  }, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : T("", !0);
5496
5560
  }
5497
- const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = y({
5561
+ const Vs = /* @__PURE__ */ S(Ps, [["render", Bs]]), Os = y({
5498
5562
  name: "content-styles",
5499
- components: { InlinedStyles: he },
5563
+ components: { InlinedStyles: ge },
5500
5564
  props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
5501
5565
  data() {
5502
5566
  return {
5503
5567
  injectedStyles: `
5504
- ${ss({
5568
+ ${Es({
5505
5569
  cssCode: this.cssCode,
5506
5570
  contentId: this.contentId
5507
5571
  })}
5508
- ${is({
5572
+ ${Is({
5509
5573
  customFonts: this.customFonts
5510
5574
  })}
5511
- ${ls(this.isNestedRender)}
5575
+ ${$s(this.isNestedRender)}
5512
5576
  `.trim()
5513
5577
  };
5514
5578
  }
5515
5579
  });
5516
- function hs(e, t, n, o, r, i) {
5580
+ function Ns(e, t, n, o, r, i) {
5517
5581
  const s = k("InlinedStyles");
5518
- return d(), S(s, {
5582
+ return u(), v(s, {
5519
5583
  id: "builderio-content",
5520
5584
  styles: e.injectedStyles,
5521
5585
  nonce: e.nonce
5522
5586
  }, null, 8, ["styles", "nonce"]);
5523
5587
  }
5524
- const fs = /* @__PURE__ */ v(ms, [["render", hs]]), bs = ({
5588
+ const Ws = /* @__PURE__ */ S(Os, [["render", Ns]]), me = (e, t = /* @__PURE__ */ new WeakMap()) => {
5589
+ if (e === null || typeof e != "object")
5590
+ return e;
5591
+ if (t.has(e))
5592
+ return t.get(e);
5593
+ if (Array.isArray(e)) {
5594
+ const r = [];
5595
+ t.set(e, r);
5596
+ for (let i = 0; i < e.length; i++)
5597
+ r[i] = me(e[i], t);
5598
+ return r;
5599
+ }
5600
+ const n = Object.getPrototypeOf(e);
5601
+ if (n !== Object.prototype && n !== null)
5602
+ return e;
5603
+ const o = {};
5604
+ t.set(e, o);
5605
+ for (const r of Object.keys(e)) {
5606
+ const i = me(e[r], t);
5607
+ r === "__proto__" ? Object.defineProperty(o, r, {
5608
+ value: i,
5609
+ enumerable: !0,
5610
+ writable: !0,
5611
+ configurable: !0
5612
+ }) : o[r] = i;
5613
+ }
5614
+ return o;
5615
+ }, dt = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), Yt = (e) => {
5616
+ const t = dt.get(e);
5617
+ if (t)
5618
+ return t;
5619
+ const {
5620
+ component: n,
5621
+ ...o
5622
+ } = e, r = Oe(o);
5623
+ return dt.set(e, r), r;
5624
+ }, Ds = (e, t) => {
5625
+ const n = {};
5626
+ for (const o of e) {
5627
+ let r = ut.get(o);
5628
+ r || (r = {
5629
+ component: t(o.component),
5630
+ ...Yt(o)
5631
+ }, ut.set(o, r)), n[o.name] = r;
5632
+ }
5633
+ return n;
5634
+ }, xs = (e) => {
5635
+ const t = {};
5636
+ for (const n of e)
5637
+ t[n.name] = Yt(n);
5638
+ return t;
5639
+ }, Us = ({
5525
5640
  content: e,
5526
5641
  data: t,
5527
5642
  locale: n
5528
5643
  }) => {
5529
- var i, s, l;
5530
- const o = {}, r = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.state) || {};
5531
- return (l = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || l.forEach((a) => {
5532
- a.name && a.defaultValue !== void 0 && (o[a.name] = a.defaultValue);
5644
+ var s, l, a;
5645
+ const o = {}, r = /* @__PURE__ */ new WeakMap(), i = me(((s = e == null ? void 0 : e.data) == null ? void 0 : s.state) || {}, r);
5646
+ return (a = (l = e == null ? void 0 : e.data) == null ? void 0 : l.inputs) == null || a.forEach((d) => {
5647
+ d.name && d.defaultValue !== void 0 && (o[d.name] = me(d.defaultValue, r));
5533
5648
  }), {
5534
5649
  ...o,
5535
- ...r,
5650
+ ...i,
5536
5651
  ...t,
5537
5652
  ...n ? {
5538
5653
  locale: n
5539
5654
  } : {}
5540
5655
  };
5541
- }, gs = ({
5656
+ }, Ls = ({
5542
5657
  content: e,
5543
5658
  data: t
5544
5659
  }) => e ? {
@@ -5548,14 +5663,14 @@ const fs = /* @__PURE__ */ v(ms, [["render", hs]]), bs = ({
5548
5663
  ...t
5549
5664
  },
5550
5665
  meta: e == null ? void 0 : e.meta
5551
- } : void 0, ys = Lt, vs = y({
5666
+ } : void 0, Fs = Zt, Ms = y({
5552
5667
  name: "content-component",
5553
5668
  components: {
5554
- EnableEditor: ps,
5555
- InlinedScript: xe,
5556
- ContentStyles: fs,
5557
- Blocks: K,
5558
- DynamicDiv: ne
5669
+ EnableEditor: Vs,
5670
+ InlinedScript: Le,
5671
+ ContentStyles: Ws,
5672
+ Blocks: z,
5673
+ DynamicDiv: oe
5559
5674
  },
5560
5675
  props: [
5561
5676
  "content",
@@ -5584,32 +5699,23 @@ const fs = /* @__PURE__ */ v(ms, [["render", hs]]), bs = ({
5584
5699
  data() {
5585
5700
  var e, t;
5586
5701
  return {
5587
- scriptStr: Xi({
5702
+ scriptStr: gs({
5588
5703
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
5589
5704
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
5590
5705
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
5591
5706
  contentId: (t = this.content) == null ? void 0 : t.id
5592
5707
  }),
5593
- registeredComponents: [
5594
- ...et(),
5595
- ...this.customComponents || []
5596
- ].reduce(
5597
- (n, { component: o, ...r }) => ({
5598
- ...n,
5599
- [r.name]: {
5600
- component: ys(o),
5601
- ...de(r)
5602
- }
5603
- }),
5604
- {}
5708
+ registeredComponents: Ds(
5709
+ [...at(), ...this.customComponents || []],
5710
+ (n) => Fs(n)
5605
5711
  ),
5606
5712
  builderContextSignal: {
5607
- content: gs({
5713
+ content: Ls({
5608
5714
  content: this.content,
5609
5715
  data: this.data
5610
5716
  }),
5611
5717
  localState: void 0,
5612
- rootState: bs({
5718
+ rootState: Us({
5613
5719
  content: this.content,
5614
5720
  data: this.data,
5615
5721
  locale: this.locale
@@ -5619,29 +5725,23 @@ const fs = /* @__PURE__ */ v(ms, [["render", hs]]), bs = ({
5619
5725
  canTrack: this.canTrack,
5620
5726
  apiKey: this.apiKey,
5621
5727
  apiVersion: this.apiVersion,
5622
- componentInfos: [
5623
- ...et(),
5728
+ componentInfos: xs([
5729
+ ...at(),
5624
5730
  ...this.customComponents || []
5625
- ].reduce(
5626
- (n, { component: o, ...r }) => ({
5627
- ...n,
5628
- [r.name]: de(r)
5629
- }),
5630
- {}
5631
- ),
5731
+ ]),
5632
5732
  inheritedStyles: {},
5633
5733
  BlocksWrapper: this.blocksWrapper || "div",
5634
5734
  BlocksWrapperProps: this.blocksWrapperProps || {},
5635
5735
  nonce: this.nonce || "",
5636
5736
  model: this.model
5637
5737
  },
5638
- TARGET: E
5738
+ TARGET: R
5639
5739
  };
5640
5740
  },
5641
5741
  provide() {
5642
5742
  const e = this;
5643
5743
  return {
5644
- [rt.key]: {
5744
+ [mt.key]: {
5645
5745
  registeredComponents: e.registeredComponents
5646
5746
  }
5647
5747
  };
@@ -5652,7 +5752,7 @@ const fs = /* @__PURE__ */ v(ms, [["render", hs]]), bs = ({
5652
5752
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
5653
5753
  );
5654
5754
  const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
5655
- e && te({
5755
+ e && ne({
5656
5756
  code: e,
5657
5757
  context: this.context || {},
5658
5758
  localState: void 0,
@@ -5685,9 +5785,9 @@ const fs = /* @__PURE__ */ v(ms, [["render", hs]]), bs = ({
5685
5785
  }
5686
5786
  }
5687
5787
  });
5688
- function Ss(e, t, n, o, r, i) {
5689
- const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
5690
- return d(), S(u, $({
5788
+ function Hs(e, t, n, o, r, i) {
5789
+ const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), d = k("EnableEditor");
5790
+ return u(), v(d, E({
5691
5791
  apiHost: e.apiHost,
5692
5792
  nonce: e.nonce,
5693
5793
  content: e.content,
@@ -5709,13 +5809,13 @@ function Ss(e, t, n, o, r, i) {
5709
5809
  default: D(() => {
5710
5810
  var p, b, c, m, f, g, P;
5711
5811
  return [
5712
- e.isSsrAbTest ? (d(), S(s, {
5812
+ e.isSsrAbTest ? (u(), v(s, {
5713
5813
  key: 0,
5714
5814
  id: "builderio-variant-visibility",
5715
5815
  scriptStr: e.scriptStr,
5716
5816
  nonce: e.nonce || ""
5717
5817
  }, null, 8, ["scriptStr", "nonce"])) : T("", !0),
5718
- e.TARGET !== "reactNative" ? (d(), S(l, {
5818
+ e.TARGET !== "reactNative" ? (u(), v(l, {
5719
5819
  key: 1,
5720
5820
  nonce: e.nonce || "",
5721
5821
  isNestedRender: e.isNestedRender,
@@ -5723,7 +5823,7 @@ function Ss(e, t, n, o, r, i) {
5723
5823
  cssCode: (c = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : c.cssCode,
5724
5824
  customFonts: (f = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : f.customFonts
5725
5825
  }, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : T("", !0),
5726
- R(a, {
5826
+ $(a, {
5727
5827
  blocks: (P = (g = e.builderContextSignal.content) == null ? void 0 : g.data) == null ? void 0 : P.blocks,
5728
5828
  context: e.builderContextSignal,
5729
5829
  registeredComponents: e.registeredComponents,
@@ -5734,12 +5834,12 @@ function Ss(e, t, n, o, r, i) {
5734
5834
  _: 1
5735
5835
  }, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "enrichOptions", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
5736
5836
  }
5737
- const ks = /* @__PURE__ */ v(vs, [["render", Ss]]), Cs = y({
5837
+ const js = /* @__PURE__ */ S(Ms, [["render", Hs]]), Ks = y({
5738
5838
  name: "content-variants",
5739
5839
  components: {
5740
- InlinedScript: xe,
5741
- InlinedStyles: he,
5742
- ContentComponent: ks
5840
+ InlinedScript: Le,
5841
+ InlinedStyles: ge,
5842
+ ContentComponent: js
5743
5843
  },
5744
5844
  props: [
5745
5845
  "canTrack",
@@ -5765,16 +5865,16 @@ const ks = /* @__PURE__ */ v(vs, [["render", Ss]]), Cs = y({
5765
5865
  ],
5766
5866
  data() {
5767
5867
  return {
5768
- shouldRenderVariants: Gi({
5769
- canTrack: J(this.canTrack),
5868
+ shouldRenderVariants: ps({
5869
+ canTrack: _(this.canTrack),
5770
5870
  content: this.content
5771
5871
  }),
5772
- shouldEmitPersonalizationFns: cr(this.content),
5773
- SDKS_SUPPORTING_PERSONALIZATION: Wt,
5774
- getInitPersonalizationVariantsFnsScriptString: dr,
5775
- TARGET: E,
5776
- getInitVariantsFnsScriptString: _i,
5777
- getVariants: ae
5872
+ shouldEmitPersonalizationFns: $r(this.content),
5873
+ SDKS_SUPPORTING_PERSONALIZATION: _t,
5874
+ getInitPersonalizationVariantsFnsScriptString: Ar,
5875
+ TARGET: R,
5876
+ getInitVariantsFnsScriptString: fs,
5877
+ getVariants: de
5778
5878
  };
5779
5879
  },
5780
5880
  mounted() {
@@ -5782,8 +5882,8 @@ const ks = /* @__PURE__ */ v(vs, [["render", Ss]]), Cs = y({
5782
5882
  computed: {
5783
5883
  updateCookieAndStylesScriptStr() {
5784
5884
  var e;
5785
- return Yi(
5786
- ae(this.content).map((t) => ({
5885
+ return bs(
5886
+ de(this.content).map((t) => ({
5787
5887
  id: t.testVariationId,
5788
5888
  testRatio: t.testRatio
5789
5889
  })),
@@ -5791,53 +5891,53 @@ const ks = /* @__PURE__ */ v(vs, [["render", Ss]]), Cs = y({
5791
5891
  );
5792
5892
  },
5793
5893
  hideVariantsStyleString() {
5794
- return ae(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
5894
+ return de(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
5795
5895
  },
5796
5896
  defaultContent() {
5797
5897
  var e;
5798
5898
  return this.shouldRenderVariants ? {
5799
5899
  ...this.content,
5800
5900
  testVariationId: (e = this.content) == null ? void 0 : e.id
5801
- } : zn({
5901
+ } : lo({
5802
5902
  item: this.content,
5803
- canTrack: J(this.canTrack)
5903
+ canTrack: _(this.canTrack)
5804
5904
  });
5805
5905
  }
5806
5906
  }
5807
5907
  });
5808
- function Ts(e, t, n, o, r, i) {
5908
+ function zs(e, t, n, o, r, i) {
5809
5909
  const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
5810
- return d(), h(I, null, [
5811
- e.shouldEmitPersonalizationFns ? (d(), h(I, { key: 0 }, [
5812
- e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (d(), S(s, {
5910
+ return u(), h(I, null, [
5911
+ e.shouldEmitPersonalizationFns ? (u(), h(I, { key: 0 }, [
5912
+ e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (u(), v(s, {
5813
5913
  key: 0,
5814
5914
  id: "builderio-init-personalization-variants-fns",
5815
5915
  nonce: e.nonce || "",
5816
5916
  scriptStr: e.getInitPersonalizationVariantsFnsScriptString()
5817
5917
  }, null, 8, ["nonce", "scriptStr"])) : T("", !0)
5818
5918
  ], 64)) : T("", !0),
5819
- e.shouldRenderVariants ? (d(), h(I, { key: 1 }, [
5820
- R(s, {
5919
+ e.shouldRenderVariants ? (u(), h(I, { key: 1 }, [
5920
+ $(s, {
5821
5921
  id: "builderio-init-variants-fns",
5822
5922
  scriptStr: e.getInitVariantsFnsScriptString(),
5823
5923
  nonce: e.nonce || ""
5824
5924
  }, null, 8, ["scriptStr", "nonce"]),
5825
- R(l, {
5925
+ $(l, {
5826
5926
  id: "builderio-variants",
5827
5927
  styles: e.hideVariantsStyleString,
5828
5928
  nonce: e.nonce || ""
5829
5929
  }, null, 8, ["styles", "nonce"]),
5830
- R(s, {
5930
+ $(s, {
5831
5931
  id: "builderio-variants-visibility",
5832
5932
  scriptStr: e.updateCookieAndStylesScriptStr,
5833
5933
  nonce: e.nonce || ""
5834
5934
  }, null, 8, ["scriptStr", "nonce"]),
5835
- (d(!0), h(I, null, L(e.getVariants(e.content), (u, p) => (d(), S(a, $({
5836
- key: u.testVariationId,
5935
+ (u(!0), h(I, null, L(e.getVariants(e.content), (d, p) => (u(), v(a, E({
5936
+ key: d.testVariationId,
5837
5937
  apiHost: e.apiHost,
5838
5938
  isNestedRender: e.isNestedRender,
5839
5939
  nonce: e.nonce,
5840
- content: u,
5940
+ content: d,
5841
5941
  showContent: !1,
5842
5942
  model: e.model,
5843
5943
  data: e.data,
@@ -5858,7 +5958,7 @@ function Ts(e, t, n, o, r, i) {
5858
5958
  trustedHosts: e.trustedHosts
5859
5959
  }, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "enrichOptions", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
5860
5960
  ], 64)) : T("", !0),
5861
- R(a, $({
5961
+ $(a, E({
5862
5962
  apiHost: e.apiHost,
5863
5963
  nonce: e.nonce,
5864
5964
  isNestedRender: e.isNestedRender,
@@ -5886,13 +5986,13 @@ function Ts(e, t, n, o, r, i) {
5886
5986
  }), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "enrichOptions", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
5887
5987
  ], 64);
5888
5988
  }
5889
- const ws = /* @__PURE__ */ v(Cs, [["render", Ts]]), Is = async ({
5989
+ const qs = /* @__PURE__ */ S(Ks, [["render", zs]]), Gs = async ({
5890
5990
  builderContextValue: e,
5891
5991
  symbol: t
5892
5992
  }) => {
5893
5993
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
5894
5994
  (e != null && e.apiKey))
5895
- return We({
5995
+ return De({
5896
5996
  model: t.model,
5897
5997
  apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
5898
5998
  apiVersion: e.apiVersion,
@@ -5904,9 +6004,9 @@ const ws = /* @__PURE__ */ v(Cs, [["render", Ts]]), Is = async ({
5904
6004
  }).catch((n) => {
5905
6005
  B.error("Could not fetch symbol content: ", n);
5906
6006
  });
5907
- }, $s = y({
6007
+ }, _s = y({
5908
6008
  name: "builder-symbol",
5909
- components: { ContentVariants: ws, DynamicDiv: ne },
6009
+ components: { ContentVariants: qs, DynamicDiv: oe },
5910
6010
  props: [
5911
6011
  "symbol",
5912
6012
  "builderComponents",
@@ -5921,7 +6021,7 @@ const ws = /* @__PURE__ */ v(Cs, [["render", Ts]]), Is = async ({
5921
6021
  return {
5922
6022
  contentToUse: (e = this.symbol) == null ? void 0 : e.content,
5923
6023
  symbolEntry: (t = this.symbol) == null ? void 0 : t.entry,
5924
- filterAttrs: O
6024
+ filterAttrs: N
5925
6025
  };
5926
6026
  },
5927
6027
  mounted() {
@@ -5963,7 +6063,7 @@ const ws = /* @__PURE__ */ v(Cs, [["render", Ts]]), Is = async ({
5963
6063
  methods: {
5964
6064
  setContent() {
5965
6065
  var e;
5966
- this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || Is({
6066
+ this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || Gs({
5967
6067
  symbol: this.symbol,
5968
6068
  builderContextValue: this.builderContext
5969
6069
  }).then((t) => {
@@ -5973,18 +6073,18 @@ const ws = /* @__PURE__ */ v(Cs, [["render", Ts]]), Is = async ({
5973
6073
  }
5974
6074
  }
5975
6075
  });
5976
- function Es(e, t, n, o, r, i) {
5977
- var l, a, u, p, b, c, m;
6076
+ function Js(e, t, n, o, r, i) {
6077
+ var l, a, d, p, b, c, m;
5978
6078
  const s = k("ContentVariants");
5979
- return d(), h("div", $({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
5980
- R(s, {
6079
+ return u(), h("div", E({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
6080
+ $(s, {
5981
6081
  nonce: e.builderContext.nonce,
5982
6082
  isNestedRender: !0,
5983
6083
  apiVersion: e.builderContext.apiVersion,
5984
6084
  apiKey: (l = e.symbol) != null && l.global && ((a = e.symbol) != null && a.ownerId) ? e.symbol.ownerId : e.builderContext.apiKey,
5985
6085
  context: {
5986
6086
  ...e.builderContext.context,
5987
- symbolId: (u = e.builderBlock) == null ? void 0 : u.id
6087
+ symbolId: (d = e.builderBlock) == null ? void 0 : d.id
5988
6088
  },
5989
6089
  customComponents: e.customComponents,
5990
6090
  data: {
@@ -6001,48 +6101,48 @@ function Es(e, t, n, o, r, i) {
6001
6101
  }, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
6002
6102
  ], 16);
6003
6103
  }
6004
- const Rs = /* @__PURE__ */ v($s, [["render", Es]]);
6104
+ const Qs = /* @__PURE__ */ S(_s, [["render", Js]]);
6005
6105
  export {
6006
- Vs as A,
6007
- Nt as B,
6008
- Fo as C,
6009
- Ds as D,
6010
- xs as E,
6011
- jo as F,
6012
- io as G,
6013
- so as H,
6014
- Yo as I,
6015
- We as J,
6016
- Bs as K,
6017
- Hs as L,
6018
- er as S,
6019
- E as T,
6020
- ji as V,
6021
- v as _,
6106
+ ea as A,
6107
+ Gt as B,
6108
+ ir as C,
6109
+ ra as D,
6110
+ sa as E,
6111
+ lr as F,
6112
+ wo as G,
6113
+ Io as H,
6114
+ br as I,
6115
+ De as J,
6116
+ Zs as K,
6117
+ da as L,
6118
+ Sr as S,
6119
+ R as T,
6120
+ ls as V,
6121
+ S as _,
6022
6122
  H as a,
6023
- ve as b,
6024
- he as c,
6123
+ Ce as b,
6124
+ ge as c,
6025
6125
  j as d,
6026
- te as e,
6027
- Ls as f,
6028
- Ms as g,
6029
- Do as h,
6126
+ ne as e,
6127
+ aa as f,
6128
+ ca as g,
6129
+ tr as h,
6030
6130
  A as i,
6031
- Fs as j,
6032
- js as k,
6033
- De as l,
6034
- Nn as m,
6035
- qt as n,
6036
- Rs as o,
6037
- zr as p,
6038
- K as q,
6039
- ws as r,
6040
- Us as s,
6041
- Ve as t,
6042
- On as u,
6043
- Ns as v,
6044
- ys as w,
6045
- Os as x,
6046
- Ws as y,
6047
- vt as z
6131
+ la as j,
6132
+ ua as k,
6133
+ xe as l,
6134
+ Yn as m,
6135
+ an as n,
6136
+ Qs as o,
6137
+ ci as p,
6138
+ z as q,
6139
+ qs as r,
6140
+ ia as s,
6141
+ be as t,
6142
+ Xn as u,
6143
+ ta as v,
6144
+ Fs as w,
6145
+ na as x,
6146
+ oa as y,
6147
+ Ot as z
6048
6148
  };