@builder.io/sdk-vue 5.2.16 → 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-sma99jcM.cjs → awaiter-2uzflb3S.cjs} +1 -1
  3. package/lib/browser/{awaiter-xl6zu7C3.js → awaiter-4aFQAEvG.js} +1 -1
  4. package/lib/browser/{block-wrapper-RAvXLpEQ.cjs → block-wrapper-1ItsXF0j.cjs} +1 -1
  5. package/lib/browser/{block-wrapper-5K0uC4T-.js → block-wrapper-Uj0c_ct-.js} +3 -3
  6. package/lib/browser/{component-ref-xLqT_jOc.js → component-ref-826ipClg.js} +4 -4
  7. package/lib/browser/{component-ref-Tya2rDO2.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-PdAD_uE2.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-3sJN4pWL.js → index-Jf8hjJYZ.js} +1095 -995
  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-Sgr9Viar.cjs → live-edit-BxSoS0rX.cjs} +1 -1
  29. package/lib/browser/{live-edit-j4eofiKh.js → live-edit-uev5ovOr.js} +1 -1
  30. package/lib/browser/{repeated-block-HKaLji2X.cjs → repeated-block-Mj7AAxUa.cjs} +1 -1
  31. package/lib/browser/{repeated-block-2KvsgJoX.js → repeated-block-s-uTJJ2l.js} +2 -2
  32. package/lib/browser/{style-wrapper-MZ3hUHCo.cjs → style-wrapper-C17hpa9C.cjs} +1 -1
  33. package/lib/browser/{style-wrapper-9lr-T4FL.js → style-wrapper-WeOZ3wU5.js} +1 -1
  34. package/lib/edge/{awaiter-vRSBu8iR.js → awaiter-3P7HNK2U.js} +1 -1
  35. package/lib/edge/{awaiter-nGRnkiX-.cjs → awaiter-tL_1GDRg.cjs} +1 -1
  36. package/lib/{node/block-wrapper-fc6BPhIM.cjs → edge/block-wrapper-AJ9g81fv.cjs} +1 -1
  37. package/lib/edge/{block-wrapper-dMzRh0wq.js → block-wrapper-W6_AJxdH.js} +3 -3
  38. package/lib/edge/{component-ref-XuJa5YQU.js → component-ref-2H6t6CVL.js} +4 -4
  39. package/lib/edge/{component-ref-u8AFcxuW.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-lu3ijq_9.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-CP41tPKH.js → index-0OjD7npr.js} +1879 -1779
  57. package/lib/edge/{index-2DMPkBgw.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-tT8gysr5.js → live-edit-es0ntXpd.js} +1 -1
  61. package/lib/{node/live-edit-x06K74KY.cjs → edge/live-edit-hyHdyjeL.cjs} +1 -1
  62. package/lib/edge/{repeated-block-4rbJPAPK.js → repeated-block-UG8Sns3u.js} +2 -2
  63. package/lib/edge/{repeated-block-5aHuPiq3.cjs → repeated-block-d6gfiTTu.cjs} +1 -1
  64. package/lib/edge/{style-wrapper-6PnkoOq4.js → style-wrapper-UpCDtTSA.js} +1 -1
  65. package/lib/edge/{style-wrapper-sPnVD1R-.cjs → style-wrapper-pawaG9qF.cjs} +1 -1
  66. package/lib/node/{awaiter-UWXH3tw0.js → awaiter-AN3_pw27.js} +1 -1
  67. package/lib/node/{awaiter-bcSiDzNQ.cjs → awaiter-bGTvqMbD.cjs} +1 -1
  68. package/lib/node/{block-wrapper-8T5wRKIN.js → block-wrapper-e5lqTjH4.js} +3 -3
  69. package/lib/{edge/block-wrapper-jhPTdeIL.cjs → node/block-wrapper-uIhnB7Vo.cjs} +1 -1
  70. package/lib/node/{component-ref-IPdlOOp0.cjs → component-ref-hWkVL5In.cjs} +1 -1
  71. package/lib/node/{component-ref-T9N8WIw7.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-WEdzaQYx.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-RMd-8REX.cjs → index-3pN6fdOW.cjs} +42 -42
  89. package/lib/node/{index-xh_ab-8r.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-AtFUb3WY.js → live-edit-GfW2VTki.js} +1 -1
  95. package/lib/{edge/live-edit-IztuqB6L.cjs → node/live-edit-iCnhUEuS.cjs} +1 -1
  96. package/lib/node/{repeated-block-YbKmZjn5.cjs → repeated-block-RuIC6FQv.cjs} +1 -1
  97. package/lib/node/{repeated-block-EYdA5P-G.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-1VLAyo7U.cjs → style-wrapper-c9ma8_oR.cjs} +1 -1
  101. package/lib/node/{style-wrapper-If0xZQdH.js → style-wrapper-y6_fa2q6.js} +8 -8
  102. package/package.json +1 -1
  103. package/lib/browser/get-block-properties-2sbfjttK.cjs +0 -1
  104. package/lib/browser/index-i151V2-T.cjs +0 -368
  105. package/lib/edge/get-block-properties-GGRkyJ2n.cjs +0 -1
  106. package/lib/node/get-block-properties-Oqi1CKFa.cjs +0 -1
  107. package/lib/node/should-force-browser-runtime-in-node-GnAFs4J8.js +0 -503
  108. package/lib/node/should-force-browser-runtime-in-node-Kyj0J4tl.cjs +0 -48
@@ -1,6 +1,6 @@
1
- import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as w, createBlock as S, resolveDynamicComponent as _, mergeProps as I, toHandlers as U, withCtx as D, renderSlot as V, resolveComponent as k, createTextVNode as $t, toDisplayString as de, defineAsyncComponent as Y, createVNode as $, renderList as x, createCommentVNode as T, h as Ze, createElementVNode as K, normalizeStyle as H, normalizeClass as Z, markRaw as Rt } from "vue";
2
- import { T as R, g as Et, f as Pt, i as E, s as At, r as Bt, p as Vt, a as Nt, l as F, b as et, c as Ie, d as Wt, n as tt, S as Dt, e as $e, h as se, j as Ot, k as nt, m as Ut, o as A, q as ot, _ as Ue } from "./should-force-browser-runtime-in-node-GnAFs4J8.js";
3
- const xt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ft = (e) => typeof e == "string" && xt.has(e.toLowerCase());
1
+ import { defineComponent as y, openBlock as u, createElementBlock as h, Fragment as w, createBlock as k, resolveDynamicComponent as X, mergeProps as I, toHandlers as U, withCtx as O, renderSlot as V, resolveComponent as v, createTextVNode as Ot, toDisplayString as pe, defineAsyncComponent as Q, createVNode as $, renderList as x, createCommentVNode as T, h as at, createElementVNode as K, normalizeStyle as M, normalizeClass as ee, markRaw as Dt } from "vue";
2
+ import { T as E, g as Ut, f as xt, c as lt, i as R, s as Ft, r as Lt, p as Mt, a as Ht, l as F, b as jt, d as A, e as zt, n as ct, S as qt, h as Re, j as ce, k as Kt, m as dt, o as Gt, q as Jt, t as ut, _ as xe, u as _t } from "./should-force-browser-runtime-in-node-r2oi-Y6E.js";
3
+ const Qt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Yt = (e) => typeof e == "string" && Qt.has(e.toLowerCase());
4
4
  function N(e = {}, t, n) {
5
5
  const o = {};
6
6
  for (const r in e) {
@@ -11,38 +11,38 @@ function N(e = {}, t, n) {
11
11
  }
12
12
  return o;
13
13
  }
14
- const Lt = y({
14
+ const Xt = y({
15
15
  name: "dynamic-renderer",
16
16
  props: ["TagName", "attributes", "actionAttributes"],
17
17
  data() {
18
- return { isEmptyElement: Ft };
18
+ return { isEmptyElement: Yt };
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 Ht(e, t, n, o, r, i) {
27
- return e.isEmptyElement(e.TagName) ? (d(), S(_(e.TagName), I({ key: 1 }, e.attributes, U(e.actionAttributes)), null, 16)) : (d(), h(w, { key: 0 }, [
28
- typeof e.TagName == "string" ? (d(), S(_(e.TagName), I({ key: 0 }, e.attributes, U(e.actionAttributes)), {
29
- default: D(() => [
26
+ function Zt(e, t, n, o, r, i) {
27
+ return e.isEmptyElement(e.TagName) ? (u(), k(X(e.TagName), I({ key: 1 }, e.attributes, U(e.actionAttributes)), null, 16)) : (u(), h(w, { key: 0 }, [
28
+ typeof e.TagName == "string" ? (u(), k(X(e.TagName), I({ key: 0 }, e.attributes, U(e.actionAttributes)), {
29
+ default: O(() => [
30
30
  V(e.$slots, "default")
31
31
  ]),
32
32
  _: 3
33
- }, 16)) : (d(), S(_(e.TagName), I({ key: 1 }, e.attributes, U(e.actionAttributes)), {
34
- default: D(() => [
33
+ }, 16)) : (u(), k(X(e.TagName), I({ key: 1 }, e.attributes, U(e.actionAttributes)), {
34
+ default: O(() => [
35
35
  V(e.$slots, "default")
36
36
  ]),
37
37
  _: 3
38
38
  }, 16))
39
39
  ], 64));
40
40
  }
41
- const Re = /* @__PURE__ */ v(Lt, [["render", Ht]]), ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41
+ const Ee = /* @__PURE__ */ S(Xt, [["render", Zt]]), Ts = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42
42
  __proto__: null,
43
- default: Re
44
- }, Symbol.toStringTag, { value: "Module" })), M = () => {
45
- switch (R) {
43
+ default: Ee
44
+ }, Symbol.toStringTag, { value: "Module" })), H = () => {
45
+ switch (E) {
46
46
  case "react":
47
47
  case "reactNative":
48
48
  case "rsc":
@@ -54,9 +54,9 @@ const Re = /* @__PURE__ */ v(Lt, [["render", Ht]]), ss = /* @__PURE__ */ Object.
54
54
  case "angular":
55
55
  return "class";
56
56
  }
57
- }, Mt = y({
57
+ }, en = y({
58
58
  name: "builder-button",
59
- components: { DynamicRenderer: Re },
59
+ components: { DynamicRenderer: Ee },
60
60
  props: [
61
61
  "attributes",
62
62
  "link",
@@ -71,7 +71,7 @@ const Re = /* @__PURE__ */ v(Lt, [["render", Ht]]), ss = /* @__PURE__ */ Object.
71
71
  attrs() {
72
72
  return {
73
73
  ...N(this.attributes, "v-on:", !1),
74
- [M()]: `${this.link ? "" : "builder-button"} ${this.attributes[M()] || ""}`,
74
+ [H()]: `${this.link ? "" : "builder-button"} ${this.attributes[H()] || ""}`,
75
75
  ...this.link ? {
76
76
  href: this.link,
77
77
  target: this.openLinkInNewTab ? "_blank" : void 0,
@@ -83,20 +83,20 @@ const Re = /* @__PURE__ */ v(Lt, [["render", Ht]]), ss = /* @__PURE__ */ Object.
83
83
  }
84
84
  }
85
85
  });
86
- function zt(e, t, n, o, r, i) {
87
- const s = k("DynamicRenderer");
88
- return d(), S(s, {
86
+ function tn(e, t, n, o, r, i) {
87
+ const s = v("DynamicRenderer");
88
+ return u(), k(s, {
89
89
  attributes: e.attrs(),
90
90
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
91
91
  actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
92
92
  }, {
93
- default: D(() => [
94
- $t(de(e.text), 1)
93
+ default: O(() => [
94
+ Ot(pe(e.text), 1)
95
95
  ]),
96
96
  _: 1
97
97
  }, 8, ["attributes", "TagName", "actionAttributes"]);
98
98
  }
99
- const jt = /* @__PURE__ */ v(Mt, [["render", zt]]), qt = Symbol(), be = {
99
+ const nn = /* @__PURE__ */ S(en, [["render", tn]]), on = Symbol(), Se = {
100
100
  Builder: {
101
101
  content: null,
102
102
  context: {},
@@ -113,14 +113,17 @@ const jt = /* @__PURE__ */ v(Mt, [["render", zt]]), qt = Symbol(), be = {
113
113
  nonce: "",
114
114
  model: ""
115
115
  },
116
- key: qt
117
- }, Kt = Symbol(), rt = {
116
+ key: on
117
+ }, rn = Symbol(), pt = {
118
118
  Components: { registeredComponents: {} },
119
- key: Kt
120
- }, it = (e, t, n) => {
119
+ key: rn
120
+ }, mt = (e, t, n) => {
121
121
  const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
122
122
  return o === void 0 || o === e ? n : o;
123
- }, Jt = ({
123
+ }, sn = 5e3, Fe = lt(sn), an = (e, t) => {
124
+ let n = Fe.get(t);
125
+ return n || (n = new Function(...e, t), Fe.set(t, n)), n;
126
+ }, ln = ({
124
127
  code: e,
125
128
  builder: t,
126
129
  context: n,
@@ -129,24 +132,30 @@ const jt = /* @__PURE__ */ v(Mt, [["render", zt]]), qt = Symbol(), be = {
129
132
  rootSetState: i,
130
133
  rootState: s
131
134
  }) => {
132
- const l = Et({
135
+ const a = Ut({
133
136
  builder: t,
134
137
  context: n,
135
138
  event: o,
136
- state: Pt({
139
+ state: xt({
137
140
  rootState: s,
138
141
  localState: r,
139
142
  rootSetState: i
140
143
  })
141
144
  });
142
- return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
143
- }, Gt = (e) => E() || At({
145
+ return an(a.map(([l]) => l), e)(...a.map(([, l]) => l));
146
+ }, cn = (e) => R() || Ft({
144
147
  shouldLogWarning: !0
145
- }) ? Jt(e) : Bt(e), Qt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Yt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, _t = (e) => {
148
+ }) ? ln(e) : Lt(e), dn = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, un = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, pn = (e) => {
146
149
  var t, n, o, r, i, s;
147
- return ((o = (n = (t = Qt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = Yt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
150
+ return ((o = (n = (t = dn.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));
151
+ }, mn = 5e3, Le = lt(mn), hn = (e) => {
152
+ let t = Le.get(e);
153
+ return t === void 0 && (t = pn(e) || null, Le.set(e, t)), t;
154
+ }, fn = (e, t, n) => {
155
+ const o = n.split(".")[0], r = t && Object.prototype.hasOwnProperty.call(t, o) ? t : e;
156
+ return mt(r, n);
148
157
  };
149
- function ee({
158
+ function te({
150
159
  code: e,
151
160
  context: t,
152
161
  localState: n,
@@ -154,21 +163,18 @@ function ee({
154
163
  rootSetState: r,
155
164
  event: i,
156
165
  isExpression: s = !0,
157
- trackingContext: l
166
+ trackingContext: a
158
167
  }) {
159
168
  if (e.trim() === "")
160
169
  return;
161
- const a = _t(e.trim());
162
- if (a)
163
- return it({
164
- ...o,
165
- ...n
166
- }, a);
167
- const u = {
168
- code: Vt(e, {
170
+ const l = hn(e.trim());
171
+ if (l)
172
+ return fn(o, n, l);
173
+ const d = {
174
+ code: Mt(e, {
169
175
  isExpression: s
170
176
  }),
171
- builder: Nt(l),
177
+ builder: Ht(a),
172
178
  context: t,
173
179
  event: i,
174
180
  rootSetState: r,
@@ -176,7 +182,7 @@ function ee({
176
182
  localState: n
177
183
  };
178
184
  try {
179
- return Gt(u);
185
+ return cn(d);
180
186
  } catch (p) {
181
187
  F.error("Failed code evaluation: " + p.message, {
182
188
  code: e
@@ -184,20 +190,20 @@ function ee({
184
190
  return;
185
191
  }
186
192
  }
187
- function Xt(e, t) {
193
+ function bn(e, t) {
188
194
  var n;
189
195
  return {
190
196
  ...(n = e.component) == null ? void 0 : n.options,
191
197
  ...e.options,
192
- ...Zt(e, t)
198
+ ...gn(e, t)
193
199
  };
194
200
  }
195
- const Zt = (e, t) => {
201
+ const gn = (e, t) => {
196
202
  var n, o;
197
203
  if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((o = e.component.options) != null && o.text) && typeof e.component.options.text == "string")
198
204
  return {
199
205
  ...e.component.options,
200
- text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, i) => ee({
206
+ text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, i) => te({
201
207
  code: i,
202
208
  context: t,
203
209
  localState: t.localState,
@@ -206,91 +212,61 @@ const Zt = (e, t) => {
206
212
  }))
207
213
  };
208
214
  };
209
- function en(e, ...t) {
210
- const n = Object.assign({}, e);
211
- for (const o of t)
212
- delete n[o];
213
- return n;
214
- }
215
- function ae(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
216
- if (e == null || typeof e != "object") {
217
- t(e, (i) => {
218
- n !== null && o !== null && (n[o] = i);
219
- });
220
- return;
221
- }
222
- r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((i, s) => {
223
- t(i, (a) => {
224
- e[s] = a;
225
- }), ae(i, t, e, s, r);
226
- }) : Object.entries(e).forEach(([i, s]) => {
227
- t(s, (a) => {
228
- e[i] = a;
229
- }), ae(s, t, e, i, r);
230
- }));
231
- }
232
- function st(e) {
215
+ function ht(e) {
233
216
  return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
234
217
  }
235
- function tn(e) {
236
- if (!e || !Object.getOwnPropertyNames(e).length)
237
- return !1;
238
- let t = !1;
239
- return ae(e, (n) => {
240
- if (st(n)) {
241
- t = !0;
242
- return;
243
- }
244
- }), t;
245
- }
246
- function nn(e, t) {
247
- return !e || !Object.getOwnPropertyNames(e).length ? {} : (ae(e, (n, o) => {
248
- st(n) && o(n[t] ?? void 0);
249
- }), e);
250
- }
251
- function on(e, t) {
252
- var n, o;
253
- return (n = e.component) != null && n.options && tn((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 = nn(e.component.options, t ?? "Default")), e;
254
- }
255
- function ge(e) {
218
+ const yn = (e) => {
219
+ if (Array.isArray(e))
220
+ return !0;
221
+ const t = Object.getPrototypeOf(e);
222
+ return t === Object.prototype || t === null;
223
+ };
224
+ function ie(e, t, n) {
256
225
  if (e === null || typeof e != "object")
257
226
  return e;
227
+ if (ht(e))
228
+ return ie(e[t] ?? void 0, t, n);
229
+ if (!yn(e))
230
+ return e;
231
+ if (n.has(e))
232
+ return n.get(e);
233
+ n.set(e, e);
234
+ let o = null;
258
235
  if (Array.isArray(e))
259
- return e.map((n) => ge(n));
260
- if (e["@type"] === "@builder.io/sdk:Element")
236
+ for (let i = 0; i < e.length; i++) {
237
+ const s = ie(e[i], t, n);
238
+ s !== e[i] && (o || (o = e.slice()), o[i] = s);
239
+ }
240
+ else
241
+ for (const i of Object.keys(e)) {
242
+ const s = ie(e[i], t, n);
243
+ s !== e[i] && (o || (o = {
244
+ ...e
245
+ }), o[i] = s);
246
+ }
247
+ const r = o ?? e;
248
+ return n.set(e, r), r;
249
+ }
250
+ function Sn(e, t) {
251
+ var r;
252
+ const n = (r = e.component) == null ? void 0 : r.options;
253
+ if (!n || typeof n != "object" || ht(n))
261
254
  return e;
262
- const t = {};
263
- for (const n in e)
264
- n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ge(e[n]));
265
- return t;
255
+ const o = ie(n, t ?? "Default", /* @__PURE__ */ new WeakMap());
256
+ 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"), {
257
+ ...e,
258
+ component: {
259
+ ...e.component,
260
+ options: o
261
+ }
262
+ });
266
263
  }
267
- const rn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), sn = (e) => {
268
- if (rn) {
269
- const t = Ie(e);
270
- return {
271
- ...t,
272
- properties: {
273
- ...t.properties
274
- },
275
- actions: {
276
- ...t.actions
277
- }
278
- };
279
- } else {
280
- const t = ge(en(e, "children", "meta"));
281
- return {
282
- ...t,
283
- properties: {
284
- ...t.properties
285
- },
286
- actions: {
287
- ...t.actions
288
- },
289
- children: e.children,
290
- meta: e.meta
291
- };
292
- }
293
- }, an = ({
264
+ function me(e) {
265
+ const t = e || (R() ? window.location.search : void 0);
266
+ return t ? jt(t).indexOf("builder.preview=") !== -1 : !1;
267
+ }
268
+ const ft = () => A() || me();
269
+ const kn = ({
294
270
  block: e,
295
271
  context: t,
296
272
  localState: n,
@@ -299,54 +275,74 @@ const rn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), sn = (e) =
299
275
  }) => {
300
276
  if (!e.bindings)
301
277
  return e;
302
- const i = sn(e);
303
- for (const s in e.bindings) {
304
- const l = e.bindings[s], a = ee({
278
+ const i = /* @__PURE__ */ new WeakSet(), s = {
279
+ ...e,
280
+ properties: {
281
+ ...e.properties
282
+ },
283
+ actions: {
284
+ ...e.actions
285
+ }
286
+ };
287
+ i.add(s.properties), i.add(s.actions);
288
+ for (const a in e.bindings) {
289
+ const l = e.bindings[a], d = te({
305
290
  code: l,
306
291
  localState: n,
307
292
  rootState: o,
308
293
  rootSetState: r,
309
294
  context: t
310
295
  });
311
- et(i, s, a);
296
+ zt(s, a, d, i);
312
297
  }
313
- return i;
298
+ return s;
299
+ }, Me = /* @__PURE__ */ new WeakMap(), vn = (e) => {
300
+ if (!e.bindings)
301
+ return !1;
302
+ for (const t in e.bindings)
303
+ return !0;
304
+ return !1;
314
305
  };
315
- function ln({
306
+ function Cn({
316
307
  block: e,
317
308
  context: t,
318
309
  localState: n,
319
310
  rootState: o,
320
311
  rootSetState: r
321
312
  }) {
322
- let i = e;
323
- return i = an({
324
- block: i,
313
+ const i = o.locale, s = !vn(e) && typeof e == "object" && e !== null && !ft(), a = i ?? "";
314
+ if (s) {
315
+ const d = Me.get(e);
316
+ if (d && d.locale === a)
317
+ return d.block;
318
+ }
319
+ let l = e;
320
+ return l = kn({
321
+ block: l,
325
322
  localState: n,
326
323
  rootState: o,
327
324
  rootSetState: r,
328
325
  context: t
329
- }), i = on(i, o.locale), i;
330
- }
331
- function Ee(e) {
332
- const t = e || (E() ? window.location.search : void 0);
333
- return t ? Wt(t).indexOf("builder.preview=") !== -1 : !1;
326
+ }), l = Sn(l, i), s && Me.set(e, {
327
+ locale: a,
328
+ block: l
329
+ }), l;
334
330
  }
335
- const cn = (e) => ({
331
+ const Tn = (e) => ({
336
332
  type: "builder.registerComponent",
337
- data: le(e)
338
- }), dn = (e) => {
333
+ data: Pe(e)
334
+ }), wn = (e) => {
339
335
  const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
340
336
  return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
341
337
  };
342
- function le(e) {
343
- return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? dn(n) : n));
338
+ function Pe(e) {
339
+ return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? wn(n) : n));
344
340
  }
345
- const xe = {};
346
- function as(e, t) {
347
- e === "plugin" && (t = le(t));
348
- let n = xe[e];
349
- if (n || (n = xe[e] = []), n.push(t), E()) {
341
+ const He = {};
342
+ function ws(e, t) {
343
+ e === "plugin" && (t = Pe(t));
344
+ let n = He[e];
345
+ if (n || (n = He[e] = []), n.push(t), R()) {
350
346
  const o = {
351
347
  type: "builder.register",
352
348
  data: {
@@ -361,9 +357,9 @@ function as(e, t) {
361
357
  }
362
358
  }
363
359
  }
364
- function ls(e) {
360
+ function Is(e) {
365
361
  var t;
366
- if (E()) {
362
+ if (R()) {
367
363
  const n = JSON.parse(JSON.stringify(e));
368
364
  e.action && (n.action = e.action.toString()), (t = window.parent) == null || t.postMessage({
369
365
  type: "builder.registerAction",
@@ -371,50 +367,50 @@ function ls(e) {
371
367
  }, "*");
372
368
  }
373
369
  }
374
- const Fe = {};
375
- function cs(e) {
376
- if (E()) {
377
- Object.assign(Fe, e);
370
+ const je = {};
371
+ function $s(e) {
372
+ if (R()) {
373
+ Object.assign(je, e);
378
374
  const t = {
379
375
  type: "builder.settingsChange",
380
- data: Fe
376
+ data: je
381
377
  };
382
378
  parent.postMessage(t, "*");
383
379
  }
384
380
  }
385
- const Le = "builder.", un = "options.", at = (e) => {
381
+ const ze = "builder.", In = "options.", bt = (e) => {
386
382
  if (!e)
387
383
  return {};
388
- const t = tt(e), n = {};
384
+ const t = ct(e), n = {};
389
385
  return Object.keys(t).forEach((o) => {
390
- if (o.startsWith(Le)) {
391
- const r = o.replace(Le, "").replace(un, "");
386
+ if (o.startsWith(ze)) {
387
+ const r = o.replace(ze, "").replace(In, "");
392
388
  n[r] = t[o];
393
389
  }
394
390
  }), n;
395
- }, pn = () => {
396
- if (!E())
391
+ }, $n = () => {
392
+ if (!R())
397
393
  return {};
398
394
  const e = new URLSearchParams(window.location.search);
399
- return at(e);
400
- }, mn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
401
- function lt(e, t) {
395
+ return bt(e);
396
+ }, Rn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
397
+ function gt(e, t) {
402
398
  let n;
403
399
  try {
404
400
  n = new URL(t.origin);
405
401
  } catch {
406
402
  return !1;
407
403
  }
408
- return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e || mn).findIndex((o) => o.startsWith("*.") ? n.hostname.endsWith(o.slice(1)) : o === n.hostname) > -1;
404
+ return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e || Rn).findIndex((o) => o.startsWith("*.") ? n.hostname.endsWith(o.slice(1)) : o === n.hostname) > -1;
409
405
  }
410
- let He = !1;
411
- const ct = (e) => {
406
+ let qe = !1;
407
+ const yt = (e) => {
412
408
  var t, n;
413
- He || (He = !0, E() && ((t = window.parent) == null || t.postMessage({
409
+ qe || (qe = !0, R() && ((t = window.parent) == null || t.postMessage({
414
410
  type: "builder.sdkInfo",
415
411
  data: {
416
- target: R,
417
- version: Dt,
412
+ target: E,
413
+ version: qt,
418
414
  supportsPatchUpdates: !1,
419
415
  // Supports builder-model="..." attribute which is needed to
420
416
  // scope our '+ add block' button styling
@@ -432,7 +428,7 @@ const ct = (e) => {
432
428
  }
433
429
  }, "*"), window.addEventListener("message", (o) => {
434
430
  var i, s;
435
- if (!lt(e.trustedHosts, o))
431
+ if (!gt(e.trustedHosts, o))
436
432
  return;
437
433
  const {
438
434
  data: r
@@ -440,17 +436,17 @@ const ct = (e) => {
440
436
  if (r != null && r.type)
441
437
  switch (r.type) {
442
438
  case "builder.evaluate": {
443
- const l = r.data.text, a = r.data.arguments || [], u = r.data.id, p = new Function(l);
439
+ const a = r.data.text, l = r.data.arguments || [], d = r.data.id, p = new Function(a);
444
440
  let b, c = null;
445
441
  try {
446
- b = p.apply(null, a);
442
+ b = p.apply(null, l);
447
443
  } catch (m) {
448
444
  c = m;
449
445
  }
450
446
  c ? (i = window.parent) == null || i.postMessage({
451
447
  type: "builder.evaluateError",
452
448
  data: {
453
- id: u,
449
+ id: d,
454
450
  error: c.message
455
451
  }
456
452
  }, "*") : b && typeof b.then == "function" ? b.then((m) => {
@@ -458,7 +454,7 @@ const ct = (e) => {
458
454
  (f = window.parent) == null || f.postMessage({
459
455
  type: "builder.evaluateResult",
460
456
  data: {
461
- id: u,
457
+ id: d,
462
458
  result: m
463
459
  }
464
460
  }, "*");
@@ -466,19 +462,19 @@ const ct = (e) => {
466
462
  type: "builder.evaluateResult",
467
463
  data: {
468
464
  result: b,
469
- id: u
465
+ id: d
470
466
  }
471
467
  }, "*");
472
468
  break;
473
469
  }
474
470
  }
475
471
  })));
476
- }, dt = ({
472
+ }, St = ({
477
473
  model: e,
478
474
  trustedHosts: t,
479
475
  callbacks: n
480
476
  }) => (o) => {
481
- if (!lt(t, o))
477
+ if (!gt(t, o))
482
478
  return;
483
479
  const {
484
480
  data: r
@@ -494,30 +490,30 @@ const ct = (e) => {
494
490
  break;
495
491
  }
496
492
  case "builder.resetState": {
497
- const i = r.data, s = i.model, l = i == null ? void 0 : i.state, a = i.editType;
498
- s === e && l && n.stateUpdate(l, a);
493
+ const i = r.data, s = i.model, a = i == null ? void 0 : i.state, l = i.editType;
494
+ s === e && a && n.stateUpdate(a, l);
499
495
  break;
500
496
  }
501
497
  case "builder.contentUpdate": {
502
- const i = r.data, s = i.key || i.alias || i.entry || i.modelName, l = i.data, a = i.editType;
503
- s === e && n.contentUpdate(l, a);
498
+ const i = r.data, s = i.key || i.alias || i.entry || i.modelName, a = i.data, l = i.editType;
499
+ s === e && n.contentUpdate(a, l);
504
500
  break;
505
501
  }
506
502
  }
507
- }, ds = ({
503
+ }, Rs = ({
508
504
  model: e,
509
505
  apiKey: t,
510
506
  callback: n,
511
507
  trustedHosts: o
512
508
  }) => {
513
- if (!E)
509
+ if (!R)
514
510
  return F.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
515
511
  };
516
- ct({
512
+ yt({
517
513
  modelName: e,
518
514
  apiKey: t
519
515
  });
520
- const r = dt({
516
+ const r = St({
521
517
  callbacks: {
522
518
  contentUpdate: n,
523
519
  animation: () => {
@@ -533,24 +529,24 @@ const ct = (e) => {
533
529
  return window.addEventListener("message", r), () => {
534
530
  window.removeEventListener("message", r);
535
531
  };
536
- }, hn = "builder.tests", Pe = (e) => `${hn}.${e}`, fn = ({
532
+ }, En = "builder.tests", Ae = (e) => `${En}.${e}`, Pn = ({
537
533
  contentId: e
538
- }) => Ot({
539
- name: Pe(e),
534
+ }) => Kt({
535
+ name: Ae(e),
540
536
  canTrack: !0
541
- }), bn = ({
537
+ }), An = ({
542
538
  contentId: e
543
- }) => $e({
544
- name: Pe(e),
539
+ }) => Re({
540
+ name: Ae(e),
545
541
  canTrack: !0
546
- }), gn = ({
542
+ }), Bn = ({
547
543
  contentId: e,
548
544
  value: t
549
- }) => nt({
550
- name: Pe(e),
545
+ }) => dt({
546
+ name: Ae(e),
551
547
  value: t,
552
548
  canTrack: !0
553
- }), ut = (e) => se(e.id) && se(e.variations) && Object.keys(e.variations).length > 0, yn = ({
549
+ }), kt = (e) => ce(e.id) && ce(e.variations) && Object.keys(e.variations).length > 0, Vn = ({
554
550
  id: e,
555
551
  variations: t
556
552
  }) => {
@@ -563,15 +559,15 @@ const ct = (e) => {
563
559
  return i;
564
560
  }
565
561
  return e;
566
- }, pt = (e) => {
567
- const t = yn(e);
568
- return gn({
562
+ }, vt = (e) => {
563
+ const t = Vn(e);
564
+ return Bn({
569
565
  contentId: e.id,
570
566
  value: t
571
567
  }).catch((n) => {
572
568
  F.error("could not store A/B test variation: ", n);
573
569
  }), t;
574
- }, mt = ({
570
+ }, Ct = ({
575
571
  item: e,
576
572
  testGroupId: t
577
573
  }) => {
@@ -585,7 +581,7 @@ const ct = (e) => {
585
581
  testVariationId: n.id,
586
582
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
587
583
  };
588
- }, vn = ({
584
+ }, Nn = ({
589
585
  item: e,
590
586
  canTrack: t
591
587
  }) => {
@@ -593,14 +589,14 @@ const ct = (e) => {
593
589
  return e;
594
590
  if (!e)
595
591
  return;
596
- if (!ut(e))
592
+ if (!kt(e))
597
593
  return e;
598
- const n = bn({
594
+ const n = An({
599
595
  contentId: e.id
600
- }) || pt({
596
+ }) || vt({
601
597
  variations: e.variations,
602
598
  id: e.id
603
- }), o = mt({
599
+ }), o = Ct({
604
600
  item: e,
605
601
  testGroupId: n
606
602
  });
@@ -608,18 +604,18 @@ const ct = (e) => {
608
604
  ...e,
609
605
  ...o
610
606
  };
611
- }, Sn = async ({
607
+ }, Wn = async ({
612
608
  item: e,
613
609
  canTrack: t
614
610
  }) => {
615
- if (!t || !ut(e))
611
+ if (!t || !kt(e))
616
612
  return e;
617
- const o = await fn({
613
+ const o = await Pn({
618
614
  contentId: e.id
619
- }) || pt({
615
+ }) || vt({
620
616
  variations: e.variations,
621
617
  id: e.id
622
- }), r = mt({
618
+ }), r = Ct({
623
619
  item: e,
624
620
  testGroupId: o
625
621
  });
@@ -628,49 +624,49 @@ const ct = (e) => {
628
624
  ...r
629
625
  };
630
626
  };
631
- const kn = "builder.preview", Cn = "BUILDER_STUDIO", Me = "builder.userAttributes.", Tn = (e) => e === "true" ? !0 : e === "false" ? !1 : e, ze = () => {
632
- if (!E())
627
+ const On = "builder.preview", Dn = "BUILDER_STUDIO", Ke = "builder.userAttributes.", Un = (e) => e === "true" ? !0 : e === "false" ? !1 : e, Ge = () => {
628
+ if (!R())
633
629
  return {};
634
630
  const e = new URLSearchParams(window.location.search);
635
- if (e.get(kn) !== Cn)
631
+ if (e.get(On) !== Dn)
636
632
  return {};
637
633
  const t = {};
638
634
  return e.forEach((n, o) => {
639
- o.startsWith(Me) && (t[o.slice(Me.length)] = Tn(n));
635
+ o.startsWith(Ke) && (t[o.slice(Ke.length)] = Un(n));
640
636
  }), t;
641
- }, je = "builder.userAttributes";
642
- function qe() {
637
+ }, Je = "builder.userAttributes";
638
+ function _e() {
643
639
  let e = !0;
644
640
  const t = /* @__PURE__ */ new Set(), n = () => {
645
- const o = $e({
646
- name: je,
641
+ const o = Re({
642
+ name: Je,
647
643
  canTrack: e
648
644
  });
649
645
  return o ? JSON.parse(o) : {};
650
646
  };
651
647
  return {
652
648
  setUserAttributes(o) {
653
- if (!E())
649
+ if (!R())
654
650
  return;
655
651
  const r = {
656
652
  ...n(),
657
653
  ...o
658
654
  };
659
- nt({
660
- name: je,
655
+ dt({
656
+ name: Je,
661
657
  value: JSON.stringify(r),
662
658
  canTrack: e
663
659
  });
664
- const i = ze();
660
+ const i = Ge();
665
661
  t.forEach((s) => s({
666
662
  ...r,
667
663
  ...i
668
664
  }));
669
665
  },
670
666
  getUserAttributes() {
671
- return E() ? {
667
+ return R() ? {
672
668
  ...n(),
673
- ...ze()
669
+ ...Ge()
674
670
  } : {};
675
671
  },
676
672
  subscribeOnUserAttributesChange(o, {
@@ -685,25 +681,25 @@ function qe() {
685
681
  }
686
682
  };
687
683
  }
688
- let ye;
689
- E() && R === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = qe()), ye = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : ye = qe();
690
- const ce = ye, us = (e) => {
691
- ce.setUserAttributes(e);
692
- }, J = (e) => {
693
- const t = se(e) ? e : !0;
694
- return ce.setCanTrack(t), t;
684
+ let ke;
685
+ R() && E === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = _e()), ke = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : ke = _e();
686
+ const de = ke, Es = (e) => {
687
+ de.setUserAttributes(e);
688
+ }, G = (e) => {
689
+ const t = ce(e) ? e : !0;
690
+ return de.setCanTrack(t), t;
695
691
  };
696
- function wn() {
692
+ function xn() {
697
693
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
698
694
  }
699
- function In() {
700
- const e = wn().fetch;
695
+ function Fn() {
696
+ const e = xn().fetch;
701
697
  if (typeof e > "u")
702
698
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
703
699
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
704
700
  return e;
705
701
  }
706
- const $n = In();
702
+ const Ln = Fn();
707
703
  function ve(e, t = null, n = ".") {
708
704
  return Object.keys(e).reduce((o, r) => {
709
705
  const i = e[r], s = [t, r].filter(Boolean).join(n);
@@ -716,14 +712,14 @@ function ve(e, t = null, n = ".") {
716
712
  };
717
713
  }, {});
718
714
  }
719
- function ht(e, t, n = {}) {
715
+ function Tt(e, t, n = {}) {
720
716
  for (const o in e) {
721
717
  const r = e[o], i = t ? t + "." + o : o;
722
- r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? ht(r, i, n) : n[i] = r;
718
+ r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? Tt(r, i, n) : n[i] = r;
723
719
  }
724
720
  return n;
725
721
  }
726
- function Rn(e) {
722
+ function Mn(e) {
727
723
  const t = {};
728
724
  for (const n in e) {
729
725
  const o = n.split(".");
@@ -735,7 +731,7 @@ function Rn(e) {
735
731
  }
736
732
  return t;
737
733
  }
738
- const En = "v3", Ke = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ae = (e) => {
734
+ const Hn = "v3", Qe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Be = (e) => {
739
735
  const {
740
736
  limit: t = 30,
741
737
  userAttributes: n,
@@ -743,9 +739,9 @@ const En = "v3", Ke = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ae = (
743
739
  model: r,
744
740
  apiKey: i,
745
741
  enrich: s,
746
- enrichOptions: l,
747
- locale: a,
748
- apiVersion: u = En,
742
+ enrichOptions: a,
743
+ locale: l,
744
+ apiVersion: d = Hn,
749
745
  fields: p,
750
746
  omit: b,
751
747
  offset: c,
@@ -753,87 +749,87 @@ const En = "v3", Ke = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ae = (
753
749
  staleCacheSeconds: f,
754
750
  sort: g,
755
751
  includeUnpublished: P,
756
- apiHost: O
752
+ apiHost: D
757
753
  } = e;
758
754
  if (!i)
759
755
  throw new Error("Missing API key");
760
- if (!["v3"].includes(u))
761
- throw new Error(`Invalid apiVersion: expected 'v3', received '${u}'`);
762
- const B = t !== 1, q = O || "https://cdn.builder.io", C = new URL(`${q}/api/${u}/content/${r}`);
763
- C.searchParams.set("apiKey", i), C.searchParams.set("limit", String(t)), C.searchParams.set("noTraverse", String(B)), C.searchParams.set("includeRefs", String(!0)), a && C.searchParams.set("locale", a);
764
- let z = n || {};
765
- 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 && Ke(m) && C.searchParams.set("cacheSeconds", String(m)), f && Ke(f) && C.searchParams.set("staleCacheSeconds", String(f)), g) {
756
+ if (!["v3"].includes(d))
757
+ throw new Error(`Invalid apiVersion: expected 'v3', received '${d}'`);
758
+ const B = t !== 1, q = D || "https://cdn.builder.io", C = new URL(`${q}/api/${d}/content/${r}`);
759
+ C.searchParams.set("apiKey", i), C.searchParams.set("limit", String(t)), C.searchParams.set("noTraverse", String(B)), C.searchParams.set("includeRefs", String(!0)), l && C.searchParams.set("locale", l);
760
+ let j = n || {};
761
+ if (s && C.searchParams.set("enrich", String(s)), s && a && C.searchParams.set("enrichOptions", JSON.stringify(a)), 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 && Qe(m) && C.searchParams.set("cacheSeconds", String(m)), f && Qe(f) && C.searchParams.set("staleCacheSeconds", String(f)), g) {
766
762
  const W = ve({
767
763
  sort: g
768
764
  });
769
765
  for (const L in W)
770
766
  C.searchParams.set(L, JSON.stringify(W[L]));
771
767
  }
772
- const G = {
773
- ...pn(),
774
- ...tt(e.options || {})
768
+ const J = {
769
+ ...$n(),
770
+ ...ct(e.options || {})
775
771
  };
776
- z = {
777
- ...z,
778
- ...Bn(G)
772
+ j = {
773
+ ...j,
774
+ ...qn(J)
779
775
  };
780
- const Q = ve(G);
781
- for (const W in Q)
782
- W !== "apiKey" && C.searchParams.set(W, String(Q[W]));
783
- if (Object.keys(z).length > 0 && C.searchParams.set("userAttributes", JSON.stringify(z)), o) {
784
- const W = ht({
776
+ const _ = ve(J);
777
+ for (const W in _)
778
+ W !== "apiKey" && C.searchParams.set(W, String(_[W]));
779
+ if (Object.keys(j).length > 0 && C.searchParams.set("userAttributes", JSON.stringify(j)), o) {
780
+ const W = Tt({
785
781
  query: o
786
782
  });
787
783
  for (const L in W)
788
784
  C.searchParams.set(L, JSON.stringify(W[L]));
789
785
  }
790
786
  return C;
791
- }, Pn = (e) => e === "true" ? !0 : e === "false" ? !1 : e, An = (e) => {
787
+ }, jn = (e) => e === "true" ? !0 : e === "false" ? !1 : e, zn = (e) => {
792
788
  const t = {};
793
789
  for (const n in e)
794
- n.startsWith("userAttributes.") && (t[n] = Pn(e[n]), delete e[n]);
790
+ n.startsWith("userAttributes.") && (t[n] = jn(e[n]), delete e[n]);
795
791
  return t;
796
- }, Bn = (e) => {
797
- if (E() && e.preview === "BUILDER_STUDIO") {
792
+ }, qn = (e) => {
793
+ if (R() && e.preview === "BUILDER_STUDIO") {
798
794
  e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
799
- const t = An(e), {
795
+ const t = zn(e), {
800
796
  userAttributes: n
801
- } = Rn(t);
797
+ } = Mn(t);
802
798
  return n;
803
799
  }
804
800
  return {};
805
- }, Vn = (e) => "results" in e;
806
- async function Be(e) {
801
+ }, Kn = (e) => "results" in e;
802
+ async function Ve(e) {
807
803
  var o;
808
804
  const t = e.locale || ((o = e.userAttributes) == null ? void 0 : o.locale);
809
805
  t && (e.locale = t, e.userAttributes = {
810
806
  locale: t,
811
807
  ...e.userAttributes
812
808
  });
813
- const n = await Dn({
809
+ const n = await _n({
814
810
  ...e,
815
811
  limit: 1
816
812
  });
817
813
  return n && n[0] || null;
818
814
  }
819
- const Nn = async (e) => {
815
+ const Gn = async (e) => {
820
816
  var s;
821
- const t = Ae(e), n = e.fetch ?? $n, o = {
817
+ const t = Be(e), n = e.fetch ?? Ln, o = {
822
818
  ...e.fetchOptions,
823
819
  headers: {
824
820
  ...(s = e.fetchOptions) == null ? void 0 : s.headers,
825
- ...Ut()
821
+ ...Gt()
826
822
  }
827
823
  };
828
824
  return await (await n(t.href, o)).json();
829
- }, Wn = async (e, t, n = Ae(e)) => {
830
- const o = J(e.canTrack);
831
- if (n.search.includes("preview="), !o || !(E() || R === "reactNative"))
825
+ }, Jn = async (e, t, n = Be(e)) => {
826
+ const o = G(e.canTrack);
827
+ if (n.search.includes("preview="), !o || !(R() || E === "reactNative"))
832
828
  return t.results;
833
829
  try {
834
830
  const r = [];
835
831
  for (const i of t.results)
836
- r.push(await Sn({
832
+ r.push(await Wn({
837
833
  item: i,
838
834
  canTrack: o
839
835
  }));
@@ -843,17 +839,17 @@ const Nn = async (e) => {
843
839
  }
844
840
  return t.results;
845
841
  };
846
- async function Dn(e) {
847
- const t = Ae(e), n = await Nn(e);
848
- if (!Vn(n))
842
+ async function _n(e) {
843
+ const t = Be(e), n = await Gn(e);
844
+ if (!Kn(n))
849
845
  throw F.error("Error fetching data. ", {
850
846
  url: t,
851
847
  content: n,
852
848
  options: e
853
849
  }), n;
854
- return Wn(e, n);
850
+ return Jn(e, n);
855
851
  }
856
- const ps = async (e) => {
852
+ const Ps = async (e) => {
857
853
  var o, r, i;
858
854
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
859
855
  ...e,
@@ -865,27 +861,27 @@ const ps = async (e) => {
865
861
  urlPath: t
866
862
  } : {}
867
863
  },
868
- options: at(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
864
+ options: bt(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
869
865
  };
870
866
  return {
871
867
  apiKey: n.apiKey,
872
868
  model: n.model,
873
- content: await Be(n)
869
+ content: await Ve(n)
874
870
  };
875
- }, Ve = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
876
- function On(e, t, n = {}) {
877
- let o, r, i, s = null, l = 0;
878
- const a = function() {
879
- l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
871
+ }, Ne = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
872
+ function Qn(e, t, n = {}) {
873
+ let o, r, i, s = null, a = 0;
874
+ const l = function() {
875
+ a = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
880
876
  };
881
877
  return function() {
882
- const u = Date.now();
883
- !l && n.leading === !1 && (l = u);
884
- const p = t - (u - l);
885
- 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;
878
+ const d = Date.now();
879
+ !a && n.leading === !1 && (a = d);
880
+ const p = t - (d - a);
881
+ return o = this, r = arguments, p <= 0 || p > t ? (s && (clearTimeout(s), s = null), a = d, i = e.apply(o, r), s || (o = r = null)) : !s && n.trailing !== !1 && (s = setTimeout(l, p)), i;
886
882
  };
887
883
  }
888
- function X(e, ...t) {
884
+ function Z(e, ...t) {
889
885
  const n = Object(e);
890
886
  for (let o = 1; o < arguments.length; o++) {
891
887
  const r = arguments[o];
@@ -895,130 +891,130 @@ function X(e, ...t) {
895
891
  }
896
892
  return n;
897
893
  }
898
- function Un(e) {
894
+ function Yn(e) {
899
895
  for (const t of e)
900
896
  switch (t.trigger) {
901
897
  case "pageLoad":
902
- gt(t);
898
+ $t(t);
903
899
  break;
904
900
  case "scrollInView":
905
- Fn(t);
901
+ Zn(t);
906
902
  break;
907
903
  }
908
904
  }
909
- function ft(e) {
905
+ function wt(e) {
910
906
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
911
907
  }
912
- function bt(e, t) {
913
- const n = xn(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
914
- for (const l of s)
915
- for (const a of n)
916
- a in l || (l[a] = o[a]);
908
+ function It(e, t) {
909
+ const n = Xn(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
910
+ for (const a of s)
911
+ for (const l of n)
912
+ l in a || (a[l] = o[l]);
917
913
  }
918
- function xn(e) {
914
+ function Xn(e) {
919
915
  const t = [];
920
916
  for (const n of e.steps)
921
917
  for (const o in n.styles)
922
918
  t.indexOf(o) === -1 && t.push(o);
923
919
  return t;
924
920
  }
925
- function gt(e) {
921
+ function $t(e) {
926
922
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
927
923
  if (!t.length) {
928
- ft(e.elementId || e.id || "");
924
+ wt(e.elementId || e.id || "");
929
925
  return;
930
926
  }
931
927
  Array.from(t).forEach((n) => {
932
- bt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", X(n.style, e.steps[0].styles), setTimeout(() => {
933
- n.style.transition = `all ${e.duration}s ${Ve(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), X(n.style, e.steps[1].styles), setTimeout(() => {
928
+ It(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Z(n.style, e.steps[0].styles), setTimeout(() => {
929
+ n.style.transition = `all ${e.duration}s ${Ne(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Z(n.style, e.steps[1].styles), setTimeout(() => {
934
930
  n.style.transition = "", n.style.transitionDelay = "";
935
931
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
936
932
  });
937
933
  });
938
934
  }
939
- function Fn(e) {
935
+ function Zn(e) {
940
936
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
941
937
  if (!t.length) {
942
- ft(e.elementId || e.id || "");
938
+ wt(e.elementId || e.id || "");
943
939
  return;
944
940
  }
945
941
  Array.from(t).forEach((n) => {
946
- bt(e, n);
942
+ It(e, n);
947
943
  let o = !1, r = !1;
948
944
  function i() {
949
- !o && l(n) ? (o = !0, r = !0, setTimeout(() => {
950
- X(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
945
+ !o && a(n) ? (o = !0, r = !0, setTimeout(() => {
946
+ Z(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
951
947
  r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
952
948
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
953
- })) : e.repeat && o && !r && !l(n) && (o = !1, X(n.style, e.steps[0].styles));
949
+ })) : e.repeat && o && !r && !a(n) && (o = !1, Z(n.style, e.steps[0].styles));
954
950
  }
955
- const s = On(i, 200, {
951
+ const s = Qn(i, 200, {
956
952
  leading: !1
957
953
  });
958
- function l(p) {
954
+ function a(p) {
959
955
  const b = p.getBoundingClientRect(), c = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * c;
960
956
  return b.bottom > f && b.top < c - f;
961
957
  }
962
- const a = e.steps[0].styles;
963
- function u() {
964
- X(n.style, a);
958
+ const l = e.steps[0].styles;
959
+ function d() {
960
+ Z(n.style, l);
965
961
  }
966
- u(), setTimeout(() => {
967
- n.style.transition = `all ${e.duration}s ${Ve(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
962
+ d(), setTimeout(() => {
963
+ n.style.transition = `all ${e.duration}s ${Ne(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
968
964
  }), document.addEventListener("scroll", s, {
969
965
  capture: !0,
970
966
  passive: !0
971
967
  }), i();
972
968
  });
973
969
  }
974
- const ne = (e, t) => {
970
+ const oe = (e, t) => {
975
971
  const n = (e == null ? void 0 : e.objectPosition) || t;
976
972
  return n ? {
977
973
  ...e,
978
974
  "--builder-image-position": n
979
975
  } : e;
980
- }, ms = (e, t) => t ? {
976
+ }, As = (e, t) => t ? {
981
977
  ...e,
982
- large: ne(e == null ? void 0 : e.large, "initial"),
983
- medium: ne(e == null ? void 0 : e.medium),
984
- small: ne(e == null ? void 0 : e.small),
985
- xsmall: ne(e == null ? void 0 : e.xsmall)
986
- } : e, yt = (e) => Object.entries(e).map(([n, o]) => {
978
+ large: oe(e == null ? void 0 : e.large, "initial"),
979
+ medium: oe(e == null ? void 0 : e.medium),
980
+ small: oe(e == null ? void 0 : e.small),
981
+ xsmall: oe(e == null ? void 0 : e.xsmall)
982
+ } : e, Rt = (e) => Object.entries(e).map(([n, o]) => {
987
983
  if (typeof o == "string")
988
- return `${Ve(n)}: ${o};`;
989
- }).filter(se), Ln = (e) => yt(e).join(`
990
- `), hs = ({
984
+ return `${Ne(n)}: ${o};`;
985
+ }).filter(ce), eo = (e) => Rt(e).join(`
986
+ `), Bs = ({
991
987
  mediaQuery: e,
992
988
  className: t,
993
989
  styles: n
994
990
  }) => {
995
991
  const o = `.${t} {
996
- ${Ln(n)}
992
+ ${eo(n)}
997
993
  }`;
998
994
  return e ? `${e} {
999
995
  ${o}
1000
996
  }` : o;
1001
997
  };
1002
- function Hn({
998
+ function to({
1003
999
  style: e
1004
1000
  }) {
1005
1001
  return e;
1006
1002
  }
1007
- const fs = ({
1003
+ const Vs = ({
1008
1004
  block: e,
1009
1005
  context: t
1010
- }) => vt(Hn({
1006
+ }) => Et(to({
1011
1007
  style: e.style || {},
1012
1008
  context: t,
1013
1009
  block: e
1014
1010
  }));
1015
- function vt(e) {
1016
- switch (R) {
1011
+ function Et(e) {
1012
+ switch (E) {
1017
1013
  case "svelte":
1018
1014
  case "vue":
1019
1015
  case "solid":
1020
1016
  case "angular":
1021
- return yt(e).join(" ");
1017
+ return Rt(e).join(" ");
1022
1018
  case "qwik":
1023
1019
  case "reactNative":
1024
1020
  case "react":
@@ -1026,7 +1022,7 @@ function vt(e) {
1026
1022
  return e;
1027
1023
  }
1028
1024
  }
1029
- const St = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Mn = ({
1025
+ const Pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, no = ({
1030
1026
  block: e,
1031
1027
  registeredComponents: t,
1032
1028
  model: n
@@ -1036,99 +1032,121 @@ const St = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1036
1032
  if (!o)
1037
1033
  return null;
1038
1034
  const r = t[o];
1039
- if (!r || St(r, n)) {
1035
+ if (!r || Pt(r, n)) {
1040
1036
  console.warn(`
1041
1037
  Could not find a registered component named "${o}".
1042
1038
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
1043
1039
  return;
1044
1040
  } else
1045
1041
  return r;
1046
- }, zn = ({
1042
+ }, Ye = /* @__PURE__ */ new WeakMap(), oo = (e) => {
1043
+ if (ft()) {
1044
+ const {
1045
+ repeat: n,
1046
+ ...o
1047
+ } = e;
1048
+ return o;
1049
+ }
1050
+ let t = Ye.get(e);
1051
+ if (!t) {
1052
+ const {
1053
+ repeat: n,
1054
+ ...o
1055
+ } = e;
1056
+ t = o, Ye.set(e, t);
1057
+ }
1058
+ return t;
1059
+ }, ro = ({
1047
1060
  block: e,
1048
1061
  context: t
1049
1062
  }) => {
1050
1063
  const {
1051
- repeat: n,
1052
- ...o
1064
+ repeat: n
1053
1065
  } = e;
1054
1066
  if (!(n != null && n.collection))
1055
1067
  return;
1056
- const r = ee({
1068
+ const o = te({
1057
1069
  code: n.collection,
1058
1070
  localState: t.localState,
1059
1071
  rootState: t.rootState,
1060
1072
  rootSetState: t.rootSetState,
1061
1073
  context: t.context
1062
1074
  });
1063
- if (!Array.isArray(r))
1075
+ if (!Array.isArray(o))
1064
1076
  return;
1065
- const i = n.collection.split(".").pop(), s = n.itemName || (i ? i + "Item" : "item");
1066
- return r.map((a, u) => ({
1077
+ const r = n.collection.split(".").pop(), i = n.itemName || (r ? r + "Item" : "item"), s = oo(e);
1078
+ return o.map((l, d) => ({
1067
1079
  context: {
1068
1080
  ...t,
1069
1081
  localState: {
1070
1082
  ...t.localState,
1071
- $index: u,
1072
- $item: a,
1073
- [s]: a,
1074
- [`$${s}Index`]: u
1083
+ $index: d,
1084
+ $item: l,
1085
+ [i]: l,
1086
+ [`$${i}Index`]: d
1075
1087
  }
1076
1088
  },
1077
- block: o
1089
+ block: s
1078
1090
  }));
1079
- }, jn = (e, t) => {
1091
+ }, io = (e, t) => {
1080
1092
  var n;
1081
1093
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
1082
1094
  builderLinkComponent: t
1083
1095
  } : {};
1084
- }, qn = (e, t, n) => {
1096
+ }, Xe = /* @__PURE__ */ new WeakMap(), so = (e, t, n) => {
1085
1097
  var o;
1086
- return (o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents ? {
1087
- builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !St(s, n)))
1088
- } : {};
1089
- }, Kn = (e, t) => {
1098
+ if ((o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents) {
1099
+ let r = Xe.get(t);
1100
+ r || (r = /* @__PURE__ */ new Map(), Xe.set(t, r));
1101
+ let i = r.get(n);
1102
+ return i || (i = Object.fromEntries(Object.entries(t).filter(([s, a]) => !Pt(a, n))), r.set(n, i)), {
1103
+ builderComponents: i
1104
+ };
1105
+ }
1106
+ return {};
1107
+ }, ao = (e, t) => {
1090
1108
  var n;
1091
1109
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
1092
1110
  builderBlock: t
1093
1111
  } : {};
1094
- }, Jn = (e, t) => {
1112
+ }, lo = (e, t) => {
1095
1113
  var n;
1096
1114
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
1097
1115
  builderContext: t
1098
1116
  } : {};
1099
- }, Gn = (e) => e.toString(), Qn = () => Promise.resolve().then(() => co).then((e) => e.default).catch((e) => {
1117
+ }, co = (e) => e.toString(), uo = () => Promise.resolve().then(() => Io).then((e) => e.default).catch((e) => {
1100
1118
  throw console.error(
1101
1119
  "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
1102
1120
  e
1103
1121
  ), e;
1104
- }), Yn = () => import("./block-wrapper-8T5wRKIN.js").then((e) => e.default).catch((e) => {
1122
+ }), po = () => import("./block-wrapper-e5lqTjH4.js").then((e) => e.default).catch((e) => {
1105
1123
  throw console.error(
1106
1124
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
1107
1125
  e
1108
1126
  ), e;
1109
- }), _n = () => import("./component-ref-T9N8WIw7.js").then((e) => e.default).catch((e) => {
1127
+ }), mo = () => import("./component-ref-lBfIlbHs.js").then((e) => e.default).catch((e) => {
1110
1128
  throw console.error(
1111
1129
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
1112
1130
  e
1113
1131
  ), e;
1114
- }), Xn = () => import("./repeated-block-EYdA5P-G.js").then((e) => e.default).catch((e) => {
1132
+ }), ho = () => import("./repeated-block-hte-wY9-.js").then((e) => e.default).catch((e) => {
1115
1133
  throw console.error(
1116
1134
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
1117
1135
  e
1118
1136
  ), e;
1119
- }), Zn = () => import("./style-wrapper-If0xZQdH.js").then((e) => e.default).catch((e) => {
1137
+ }), fo = () => import("./style-wrapper-y6_fa2q6.js").then((e) => e.default).catch((e) => {
1120
1138
  throw console.error(
1121
1139
  "Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
1122
1140
  e
1123
1141
  ), e;
1124
- }), eo = y({
1142
+ }), bo = y({
1125
1143
  name: "block",
1126
1144
  components: {
1127
- StyleWrapper: Y(Zn),
1128
- RepeatedBlock: Y(Xn),
1129
- ComponentRef: Y(_n),
1130
- BlockWrapper: Y(Yn),
1131
- DynamicDiv: Y(Qn)
1145
+ StyleWrapper: Q(fo),
1146
+ RepeatedBlock: Q(ho),
1147
+ ComponentRef: Q(mo),
1148
+ BlockWrapper: Q(po),
1149
+ DynamicDiv: Q(uo)
1132
1150
  },
1133
1151
  props: ["block", "context", "registeredComponents", "linkComponent"],
1134
1152
  data() {
@@ -1137,12 +1155,16 @@ const St = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1137
1155
  value: null,
1138
1156
  update: !1
1139
1157
  },
1140
- generateKey: Gn
1158
+ _componentRefProps: {
1159
+ value: null,
1160
+ deps: []
1161
+ },
1162
+ generateKey: co
1141
1163
  };
1142
1164
  },
1143
1165
  mounted() {
1144
1166
  const e = this.processedBlock.id, t = this.processedBlock.animations;
1145
- t && e && Un(
1167
+ t && e && Yn(
1146
1168
  t.map((n) => ({
1147
1169
  ...n,
1148
1170
  elementId: e
@@ -1153,14 +1175,14 @@ const St = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1153
1175
  },
1154
1176
  computed: {
1155
1177
  repeatItem() {
1156
- return zn({
1178
+ return ro({
1157
1179
  block: this.block,
1158
1180
  context: this.context
1159
1181
  });
1160
1182
  },
1161
1183
  processedBlock() {
1162
1184
  var t;
1163
- return (t = this.block.repeat) != null && t.collection ? this.block : ln({
1185
+ return (t = this.block.repeat) != null && t.collection ? this.block : Cn({
1164
1186
  block: this.block,
1165
1187
  localState: this.context.localState,
1166
1188
  rootState: this.context.rootState,
@@ -1169,7 +1191,7 @@ const St = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1169
1191
  });
1170
1192
  },
1171
1193
  blockComponent() {
1172
- return Mn({
1194
+ return no({
1173
1195
  block: this.processedBlock,
1174
1196
  registeredComponents: this.registeredComponents,
1175
1197
  model: this.context.model
@@ -1191,16 +1213,16 @@ const St = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1191
1213
  return !((t = this.blockComponent) != null && t.component) && !this.repeatItem ? this.processedBlock.children ?? [] : [];
1192
1214
  },
1193
1215
  componentRefProps() {
1194
- var e, t, n;
1195
- return {
1216
+ var t, n, o;
1217
+ return this.processedBlock, this.context, this.context.rootState, this.context.localState, this.registeredComponents, this.linkComponent, {
1196
1218
  blockChildren: this.processedBlock.children ?? [],
1197
- componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
1219
+ componentRef: (t = this.blockComponent) == null ? void 0 : t.component,
1198
1220
  componentOptions: {
1199
- ...Xt(this.processedBlock, this.context),
1200
- ...Kn(this.blockComponent, this.processedBlock),
1201
- ...Jn(this.blockComponent, this.context),
1202
- ...jn(this.blockComponent, this.linkComponent),
1203
- ...qn(
1221
+ ...bn(this.processedBlock, this.context),
1222
+ ...ao(this.blockComponent, this.processedBlock),
1223
+ ...lo(this.blockComponent, this.context),
1224
+ ...io(this.blockComponent, this.linkComponent),
1225
+ ...so(
1204
1226
  this.blockComponent,
1205
1227
  this.registeredComponents,
1206
1228
  this.context.model
@@ -1210,29 +1232,29 @@ const St = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1210
1232
  linkComponent: this.linkComponent,
1211
1233
  registeredComponents: this.registeredComponents,
1212
1234
  builderBlock: this.processedBlock,
1213
- includeBlockProps: ((t = this.blockComponent) == null ? void 0 : t.noWrap) === !0,
1214
- isInteractive: !((n = this.blockComponent) != null && n.isRSC && R === "rsc")
1235
+ includeBlockProps: ((n = this.blockComponent) == null ? void 0 : n.noWrap) === !0,
1236
+ isInteractive: !((o = this.blockComponent) != null && o.isRSC && E === "rsc")
1215
1237
  };
1216
1238
  }
1217
1239
  }
1218
1240
  });
1219
- function to(e, t, n, o, r, i) {
1241
+ function go(e, t, n, o, r, i) {
1220
1242
  var b;
1221
- const s = k("StyleWrapper"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), p = k("RepeatedBlock");
1222
- return e.canShowBlock ? (d(), h(w, { key: 0 }, [
1243
+ const s = v("StyleWrapper"), a = v("ComponentRef"), l = v("Block", !0), d = v("BlockWrapper"), p = v("RepeatedBlock");
1244
+ return e.canShowBlock ? (u(), h(w, { key: 0 }, [
1223
1245
  $(s, {
1224
1246
  block: e.processedBlock,
1225
1247
  context: e.context,
1226
1248
  id: e.block.id
1227
1249
  }, null, 8, ["block", "context", "id"]),
1228
- (b = e.blockComponent) != null && b.noWrap ? (d(), h(w, { key: 1 }, [
1229
- e.repeatItem ? (d(!0), h(w, { key: 1 }, x(e.repeatItem, (c, m) => (d(), S(p, {
1250
+ (b = e.blockComponent) != null && b.noWrap ? (u(), h(w, { key: 1 }, [
1251
+ e.repeatItem ? (u(!0), h(w, { key: 1 }, x(e.repeatItem, (c, m) => (u(), k(p, {
1230
1252
  key: e.generateKey(m),
1231
1253
  repeatContext: c.context,
1232
1254
  block: c.block,
1233
1255
  registeredComponents: e.registeredComponents,
1234
1256
  linkComponent: e.linkComponent
1235
- }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (d(), S(l, {
1257
+ }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (u(), k(a, {
1236
1258
  key: 0,
1237
1259
  componentRef: e.componentRefProps.componentRef,
1238
1260
  componentOptions: e.componentRefProps.componentOptions,
@@ -1244,21 +1266,21 @@ function to(e, t, n, o, r, i) {
1244
1266
  includeBlockProps: e.componentRefProps.includeBlockProps,
1245
1267
  isInteractive: e.componentRefProps.isInteractive
1246
1268
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
1247
- ], 64)) : (d(), h(w, { key: 0 }, [
1248
- e.repeatItem ? (d(!0), h(w, { key: 1 }, x(e.repeatItem, (c, m) => (d(), S(p, {
1269
+ ], 64)) : (u(), h(w, { key: 0 }, [
1270
+ e.repeatItem ? (u(!0), h(w, { key: 1 }, x(e.repeatItem, (c, m) => (u(), k(p, {
1249
1271
  key: e.generateKey(m),
1250
1272
  repeatContext: c.context,
1251
1273
  block: c.block,
1252
1274
  registeredComponents: e.registeredComponents,
1253
1275
  linkComponent: e.linkComponent
1254
- }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (d(), S(u, {
1276
+ }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (u(), k(d, {
1255
1277
  key: 0,
1256
1278
  Wrapper: e.Tag,
1257
1279
  block: e.processedBlock,
1258
1280
  context: e.context
1259
1281
  }, {
1260
- default: D(() => [
1261
- $(l, {
1282
+ default: O(() => [
1283
+ $(a, {
1262
1284
  componentRef: e.componentRefProps.componentRef,
1263
1285
  componentOptions: e.componentRefProps.componentOptions,
1264
1286
  blockChildren: e.componentRefProps.blockChildren,
@@ -1269,7 +1291,7 @@ function to(e, t, n, o, r, i) {
1269
1291
  includeBlockProps: e.componentRefProps.includeBlockProps,
1270
1292
  isInteractive: e.componentRefProps.isInteractive
1271
1293
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
1272
- (d(!0), h(w, null, x(e.childrenWithoutParentComponent, (c, m) => (d(), S(a, {
1294
+ (u(!0), h(w, null, x(e.childrenWithoutParentComponent, (c, m) => (u(), k(l, {
1273
1295
  key: c.id,
1274
1296
  block: c,
1275
1297
  registeredComponents: e.registeredComponents,
@@ -1282,10 +1304,10 @@ function to(e, t, n, o, r, i) {
1282
1304
  ], 64))
1283
1305
  ], 64)) : T("", !0);
1284
1306
  }
1285
- const kt = /* @__PURE__ */ v(eo, [["render", to]]), bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1307
+ const At = /* @__PURE__ */ S(bo, [["render", go]]), Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1286
1308
  __proto__: null,
1287
- default: kt
1288
- }, Symbol.toStringTag, { value: "Module" })), no = y({
1309
+ default: At
1310
+ }, Symbol.toStringTag, { value: "Module" })), yo = y({
1289
1311
  name: "builder-blocks-wrapper",
1290
1312
  props: [
1291
1313
  "blocks",
@@ -1355,8 +1377,8 @@ const kt = /* @__PURE__ */ v(eo, [["render", to]]), bs = /* @__PURE__ */ Object.
1355
1377
  }
1356
1378
  }
1357
1379
  });
1358
- function oo(e, t, n, o, r, i) {
1359
- return d(), S(_(e.BlocksWrapper), I({
1380
+ function So(e, t, n, o, r, i) {
1381
+ return u(), k(X(e.BlocksWrapper), I({
1360
1382
  ref: "blocksWrapperRef",
1361
1383
  class: e.className + " component-5vz8uirn7sc",
1362
1384
  "builder-path": e.dataPath,
@@ -1366,15 +1388,15 @@ function oo(e, t, n, o, r, i) {
1366
1388
  onMouseEnter: (s) => e.onMouseEnter(),
1367
1389
  onKeyPress: (s) => e.onClick()
1368
1390
  }, { ...e.BlocksWrapperProps }), {
1369
- default: D(() => [
1391
+ default: O(() => [
1370
1392
  V(e.$slots, "default", {}, void 0, !0)
1371
1393
  ]),
1372
1394
  _: 3
1373
1395
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
1374
1396
  }
1375
- const ro = /* @__PURE__ */ v(no, [["render", oo], ["__scopeId", "data-v-82fc93d6"]]), io = y({
1397
+ const ko = /* @__PURE__ */ S(yo, [["render", So], ["__scopeId", "data-v-82fc93d6"]]), vo = y({
1376
1398
  name: "builder-blocks",
1377
- components: { BlocksWrapper: ro, Block: kt },
1399
+ components: { BlocksWrapper: ko, Block: At },
1378
1400
  props: [
1379
1401
  "blocks",
1380
1402
  "parent",
@@ -1387,27 +1409,27 @@ const ro = /* @__PURE__ */ v(no, [["render", oo], ["__scopeId", "data-v-82fc93d6
1387
1409
  "registeredComponents"
1388
1410
  ],
1389
1411
  inject: {
1390
- builderContext: be.key,
1391
- componentsContext: rt.key
1412
+ builderContext: Se.key,
1413
+ componentsContext: pt.key
1392
1414
  }
1393
1415
  });
1394
- function so(e, t, n, o, r, i) {
1395
- var a, u, p, b;
1396
- const s = k("Block"), l = k("BlocksWrapper");
1397
- return d(), S(l, {
1416
+ function Co(e, t, n, o, r, i) {
1417
+ var l, d, p, b;
1418
+ const s = v("Block"), a = v("BlocksWrapper");
1419
+ return u(), k(a, {
1398
1420
  blocks: e.blocks,
1399
1421
  parent: e.parent,
1400
1422
  path: e.path,
1401
1423
  styleProp: e.styleProp,
1402
- BlocksWrapperProps: e.BlocksWrapperProps || ((a = e.context) == null ? void 0 : a.BlocksWrapperProps) || ((u = e.builderContext) == null ? void 0 : u.BlocksWrapperProps),
1424
+ BlocksWrapperProps: e.BlocksWrapperProps || ((l = e.context) == null ? void 0 : l.BlocksWrapperProps) || ((d = e.builderContext) == null ? void 0 : d.BlocksWrapperProps),
1403
1425
  classNameProp: e.className,
1404
1426
  BlocksWrapper: ((p = e.context) == null ? void 0 : p.BlocksWrapper) || ((b = e.builderContext) == null ? void 0 : b.BlocksWrapper)
1405
1427
  }, {
1406
- default: D(() => [
1428
+ default: O(() => [
1407
1429
  V(e.$slots, "default"),
1408
- e.blocks ? (d(!0), h(w, { key: 0 }, x(e.blocks, (c, m) => {
1430
+ e.blocks ? (u(!0), h(w, { key: 0 }, x(e.blocks, (c, m) => {
1409
1431
  var f;
1410
- return d(), S(s, {
1432
+ return u(), k(s, {
1411
1433
  key: c.id,
1412
1434
  block: c,
1413
1435
  linkComponent: e.linkComponent,
@@ -1419,21 +1441,21 @@ function so(e, t, n, o, r, i) {
1419
1441
  _: 3
1420
1442
  }, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapperProps", "classNameProp", "BlocksWrapper"]);
1421
1443
  }
1422
- const j = /* @__PURE__ */ v(io, [["render", so]]), ao = y({
1444
+ const z = /* @__PURE__ */ S(vo, [["render", Co]]), To = y({
1423
1445
  name: "dynamic-div",
1424
1446
  props: []
1425
1447
  });
1426
- function lo(e, t, n, o, r, i) {
1427
- return d(), h("div", null, [
1448
+ function wo(e, t, n, o, r, i) {
1449
+ return u(), h("div", null, [
1428
1450
  V(e.$slots, "default")
1429
1451
  ]);
1430
1452
  }
1431
- const te = /* @__PURE__ */ v(ao, [["render", lo]]), co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1453
+ const ne = /* @__PURE__ */ S(To, [["render", wo]]), Io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1432
1454
  __proto__: null,
1433
- default: te
1434
- }, Symbol.toStringTag, { value: "Module" })), ue = y({
1455
+ default: ne
1456
+ }, Symbol.toStringTag, { value: "Module" })), he = y({
1435
1457
  render() {
1436
- return Ze("style", {
1458
+ return at("style", {
1437
1459
  innerHTML: this.styles,
1438
1460
  "data-id": this.id,
1439
1461
  nonce: this.nonce
@@ -1441,7 +1463,7 @@ const te = /* @__PURE__ */ v(ao, [["render", lo]]), co = /* @__PURE__ */ Object.
1441
1463
  },
1442
1464
  name: "inlined-styles",
1443
1465
  props: ["styles", "id", "nonce"]
1444
- }), Ct = {
1466
+ }), Y = {
1445
1467
  xsmall: {
1446
1468
  min: 0,
1447
1469
  default: 160,
@@ -1462,8 +1484,21 @@ const te = /* @__PURE__ */ v(ao, [["render", lo]]), co = /* @__PURE__ */ Object.
1462
1484
  default: 991,
1463
1485
  max: 1200
1464
1486
  }
1465
- }, gs = (e, t = Ct) => `@media (max-width: ${t[e].max}px)`, uo = (e) => {
1466
- const t = Ie(Ct);
1487
+ }, Ws = (e, t = Y) => `@media (max-width: ${t[e].max}px)`, $o = (e) => {
1488
+ const t = {
1489
+ xsmall: {
1490
+ ...Y.xsmall
1491
+ },
1492
+ small: {
1493
+ ...Y.small
1494
+ },
1495
+ medium: {
1496
+ ...Y.medium
1497
+ },
1498
+ large: {
1499
+ ...Y.large
1500
+ }
1501
+ };
1467
1502
  if (!e)
1468
1503
  return t;
1469
1504
  const {
@@ -1472,11 +1507,11 @@ const te = /* @__PURE__ */ v(ao, [["render", lo]]), co = /* @__PURE__ */ Object.
1472
1507
  medium: r
1473
1508
  } = e;
1474
1509
  if (n) {
1475
- const a = Math.floor(n / 2);
1510
+ const l = Math.floor(n / 2);
1476
1511
  t.xsmall = {
1477
1512
  max: n,
1478
- min: a,
1479
- default: a + 1
1513
+ min: l,
1514
+ default: l + 1
1480
1515
  };
1481
1516
  }
1482
1517
  if (!o || !r)
@@ -1493,20 +1528,20 @@ const te = /* @__PURE__ */ v(ao, [["render", lo]]), co = /* @__PURE__ */ Object.
1493
1528
  min: s,
1494
1529
  default: s + 1
1495
1530
  };
1496
- const l = t.medium.max + 1;
1531
+ const a = t.medium.max + 1;
1497
1532
  return t.large = {
1498
1533
  max: 2e3,
1499
1534
  // TODO: decide upper limit
1500
- min: l,
1501
- default: l + 1
1535
+ min: a,
1536
+ default: a + 1
1502
1537
  }, t;
1503
- }, po = (e) => `builder-columns ${e}-breakpoints`, mo = y({
1538
+ }, Ro = (e) => `builder-columns ${e}-breakpoints`, Eo = y({
1504
1539
  name: "builder-columns",
1505
1540
  components: {
1506
- InlinedStyles: ue,
1507
- DynamicRenderer: Re,
1508
- Blocks: j,
1509
- DynamicDiv: te
1541
+ InlinedStyles: he,
1542
+ DynamicRenderer: Ee,
1543
+ Blocks: z,
1544
+ DynamicDiv: ne
1510
1545
  },
1511
1546
  props: [
1512
1547
  "space",
@@ -1519,7 +1554,7 @@ const te = /* @__PURE__ */ v(ao, [["render", lo]]), co = /* @__PURE__ */ Object.
1519
1554
  "builderComponents"
1520
1555
  ],
1521
1556
  data() {
1522
- return { TARGET: R, getColumnsClass: po };
1557
+ return { TARGET: E, getColumnsClass: Ro };
1523
1558
  },
1524
1559
  computed: {
1525
1560
  gutterSize() {
@@ -1598,7 +1633,7 @@ const te = /* @__PURE__ */ v(ao, [["render", lo]]), co = /* @__PURE__ */ Object.
1598
1633
  },
1599
1634
  getWidthForBreakpointSize(e) {
1600
1635
  var n, o;
1601
- return uo(
1636
+ return $o(
1602
1637
  ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
1603
1638
  )[e].max;
1604
1639
  },
@@ -1635,33 +1670,33 @@ const te = /* @__PURE__ */ v(ao, [["render", lo]]), co = /* @__PURE__ */ Object.
1635
1670
  ...e.link ? {
1636
1671
  href: e.link
1637
1672
  } : {},
1638
- [M()]: "builder-column",
1639
- style: vt(this.columnCssVars(t))
1673
+ [H()]: "builder-column",
1674
+ style: Et(this.columnCssVars(t))
1640
1675
  };
1641
1676
  }
1642
1677
  }
1643
1678
  });
1644
- function ho(e, t, n, o, r, i) {
1645
- var u;
1646
- const s = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
1647
- return d(), h("div", I({
1648
- class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-1be3j8m9ewb",
1679
+ function Po(e, t, n, o, r, i) {
1680
+ var d;
1681
+ const s = v("InlinedStyles"), a = v("Blocks"), l = v("DynamicRenderer");
1682
+ return u(), h("div", I({
1683
+ class: e.getColumnsClass((d = e.builderBlock) == null ? void 0 : d.id) + " div-1be3j8m9ewb",
1649
1684
  style: e.columnsCssVars()
1650
1685
  }, {}), [
1651
- e.TARGET !== "reactNative" ? (d(), S(s, {
1686
+ e.TARGET !== "reactNative" ? (u(), k(s, {
1652
1687
  key: 0,
1653
1688
  id: "builderio-columns",
1654
1689
  styles: e.columnsStyles(),
1655
1690
  nonce: e.builderContext.nonce
1656
1691
  }, null, 8, ["styles", "nonce"])) : T("", !0),
1657
- (d(!0), h(w, null, x(e.columns, (p, b) => (d(), S(a, {
1692
+ (u(!0), h(w, null, x(e.columns, (p, b) => (u(), k(l, {
1658
1693
  key: b,
1659
1694
  TagName: e.getTagName(p),
1660
1695
  actionAttributes: {},
1661
1696
  attributes: e.getAttributes(p, b)
1662
1697
  }, {
1663
- default: D(() => [
1664
- $(l, {
1698
+ default: O(() => [
1699
+ $(a, {
1665
1700
  path: `columns.${b}.blocks`,
1666
1701
  parent: e.builderBlock.id,
1667
1702
  context: e.builderContext,
@@ -1677,47 +1712,47 @@ function ho(e, t, n, o, r, i) {
1677
1712
  }, 1032, ["TagName", "attributes"]))), 128))
1678
1713
  ], 16);
1679
1714
  }
1680
- const fo = /* @__PURE__ */ v(mo, [["render", ho], ["__scopeId", "data-v-ab15749a"]]), bo = y({
1715
+ const Ao = /* @__PURE__ */ S(Eo, [["render", Po], ["__scopeId", "data-v-ab15749a"]]), Bo = y({
1681
1716
  name: "builder-fragment-component",
1682
1717
  props: []
1683
1718
  });
1684
- function go(e, t, n, o, r, i) {
1685
- return d(), h("span", null, [
1719
+ function Vo(e, t, n, o, r, i) {
1720
+ return u(), h("span", null, [
1686
1721
  V(e.$slots, "default")
1687
1722
  ]);
1688
1723
  }
1689
- const yo = /* @__PURE__ */ v(bo, [["render", go]]);
1690
- function Je(e) {
1724
+ const No = /* @__PURE__ */ S(Bo, [["render", Vo]]);
1725
+ function Ze(e) {
1691
1726
  return e.replace(/http(s)?:/, "");
1692
1727
  }
1693
- function vo(e = "", t, n) {
1728
+ function Wo(e = "", t, n) {
1694
1729
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
1695
1730
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
1696
1731
  }
1697
- function So(e, t) {
1732
+ function Oo(e, t) {
1698
1733
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1699
1734
  return e;
1700
1735
  if (t === "master")
1701
- return Je(e);
1736
+ return Ze(e);
1702
1737
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1703
1738
  if (n) {
1704
1739
  const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
1705
- return Je(`${o[0]}_${i}${r}`);
1740
+ return Ze(`${o[0]}_${i}${r}`);
1706
1741
  }
1707
1742
  return null;
1708
1743
  }
1709
- function oe(e) {
1744
+ function se(e) {
1710
1745
  if (!e)
1711
1746
  return e;
1712
1747
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1713
1748
  if (e.match(/builder\.io/)) {
1714
1749
  let n = e;
1715
1750
  const o = Number(e.split("?width=")[1]);
1716
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${vo(e, "width", r)} ${r}w`).concat([n]).join(", ");
1751
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Wo(e, "width", r)} ${r}w`).concat([n]).join(", ");
1717
1752
  }
1718
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [So(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1753
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Oo(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1719
1754
  }
1720
- const ko = y({
1755
+ const Do = y({
1721
1756
  name: "builder-image",
1722
1757
  props: [
1723
1758
  "lazy",
@@ -1747,10 +1782,10 @@ const ko = y({
1747
1782
  if (!this.noWebp) {
1748
1783
  if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
1749
1784
  if (!this.srcset.includes(this.image.split("?")[0]))
1750
- return console.debug("Removed given srcset"), oe(t);
1785
+ return console.debug("Removed given srcset"), se(t);
1751
1786
  } else if (this.image && !this.srcset)
1752
- return oe(t);
1753
- return oe(t);
1787
+ return se(t);
1788
+ return se(t);
1754
1789
  }
1755
1790
  },
1756
1791
  webpSrcSet() {
@@ -1771,60 +1806,60 @@ const ko = y({
1771
1806
  return this.aspectRatio ? e : void 0;
1772
1807
  }
1773
1808
  }
1774
- }), Co = ["srcset", "sizes"], To = ["loading", "fetchpriority", "alt", "title", "src", "srcset", "sizes"], wo = {
1809
+ }), Uo = ["srcset", "sizes"], xo = ["loading", "fetchpriority", "alt", "title", "src", "srcset", "sizes"], Fo = {
1775
1810
  key: 2,
1776
1811
  class: "div-t43jfuqn6g-2"
1777
1812
  };
1778
- function Io(e, t, n, o, r, i) {
1779
- var s, l, a, u, p, b;
1780
- return d(), h(w, null, [
1813
+ function Lo(e, t, n, o, r, i) {
1814
+ var s, a, l, d, p, b;
1815
+ return u(), h(w, null, [
1781
1816
  K("picture", null, [
1782
- e.webpSrcSet ? (d(), h("source", {
1817
+ e.webpSrcSet ? (u(), h("source", {
1783
1818
  key: 0,
1784
1819
  type: "image/webp",
1785
1820
  srcset: e.webpSrcSet,
1786
1821
  sizes: e.sizesToUse
1787
- }, null, 8, Co)) : T("", !0),
1822
+ }, null, 8, Uo)) : T("", !0),
1788
1823
  K("img", {
1789
1824
  loading: e.highPriority ? "eager" : "lazy",
1790
1825
  fetchpriority: e.highPriority ? "high" : "auto",
1791
1826
  alt: e.altText || "",
1792
1827
  title: e.title,
1793
- style: H({
1828
+ style: M({
1794
1829
  objectPosition: `var(--builder-image-position, ${e.backgroundPosition || "center"})`,
1795
1830
  objectFit: e.backgroundSize || "cover",
1796
1831
  ...e.aspectRatioCss
1797
1832
  }),
1798
- class: Z(
1833
+ class: ee(
1799
1834
  "builder-image" + (e.className ? " " + e.className : "") + " img-t43jfuqn6g"
1800
1835
  ),
1801
1836
  src: e.image,
1802
1837
  srcset: e.srcSetToUse,
1803
1838
  sizes: e.sizesToUse
1804
- }, null, 14, To)
1839
+ }, null, 14, xo)
1805
1840
  ]),
1806
- e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (d(), h("div", {
1841
+ e.aspectRatio && !((a = (s = e.builderBlock) == null ? void 0 : s.children) != null && a.length && e.fitContent) ? (u(), h("div", {
1807
1842
  key: 0,
1808
1843
  class: "builder-image-sizer div-t43jfuqn6g",
1809
- style: H({
1844
+ style: M({
1810
1845
  paddingTop: e.aspectRatio * 100 + "%"
1811
1846
  })
1812
1847
  }, null, 4)) : T("", !0),
1813
- (u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? V(e.$slots, "default", { key: 1 }, void 0, !0) : T("", !0),
1814
- !e.fitContent && ((b = (p = e.builderBlock) == null ? void 0 : p.children) != null && b.length) ? (d(), h("div", wo, [
1848
+ (d = (l = e.builderBlock) == null ? void 0 : l.children) != null && d.length && e.fitContent ? V(e.$slots, "default", { key: 1 }, void 0, !0) : T("", !0),
1849
+ !e.fitContent && ((b = (p = e.builderBlock) == null ? void 0 : p.children) != null && b.length) ? (u(), h("div", Fo, [
1815
1850
  V(e.$slots, "default", {}, void 0, !0)
1816
1851
  ])) : T("", !0)
1817
1852
  ], 64);
1818
1853
  }
1819
- const $o = /* @__PURE__ */ v(ko, [["render", Io], ["__scopeId", "data-v-8fff0ea5"]]), Ro = y({
1854
+ const Mo = /* @__PURE__ */ S(Do, [["render", Lo], ["__scopeId", "data-v-8fff0ea5"]]), Ho = y({
1820
1855
  name: "builder-section-component",
1821
1856
  props: ["attributes", "maxWidth"],
1822
1857
  data() {
1823
1858
  return { filterAttrs: N };
1824
1859
  }
1825
1860
  });
1826
- function Eo(e, t, n, o, r, i) {
1827
- return d(), h("section", I({
1861
+ function jo(e, t, n, o, r, i) {
1862
+ return u(), h("section", I({
1828
1863
  style: {
1829
1864
  width: "100%",
1830
1865
  alignSelf: "stretch",
@@ -1841,31 +1876,31 @@ function Eo(e, t, n, o, r, i) {
1841
1876
  V(e.$slots, "default")
1842
1877
  ], 16);
1843
1878
  }
1844
- const Po = /* @__PURE__ */ v(Ro, [["render", Eo]]);
1845
- function Ao(e, t, n, o) {
1846
- function r(u) {
1847
- return typeof u == "string";
1879
+ const zo = /* @__PURE__ */ S(Ho, [["render", jo]]);
1880
+ function qo(e, t, n, o) {
1881
+ function r(d) {
1882
+ return typeof d == "string";
1848
1883
  }
1849
- function i(u) {
1850
- return typeof u == "number";
1884
+ function i(d) {
1885
+ return typeof d == "number";
1851
1886
  }
1852
- function s(u, p) {
1887
+ function s(d, p) {
1853
1888
  return (() => {
1854
1889
  const c = p.property, m = p.operator;
1855
1890
  let f = p.value;
1856
1891
  if (p && p.property === "urlPath" && p.value && typeof p.value == "string" && p.value !== "/" && p.value.endsWith("/") && (f = p.value.slice(0, -1)), !(c && m))
1857
1892
  return !0;
1858
1893
  if (Array.isArray(f))
1859
- return m === "isNot" ? f.every((P) => s(u, {
1894
+ return m === "isNot" ? f.every((P) => s(d, {
1860
1895
  property: c,
1861
1896
  operator: m,
1862
1897
  value: P
1863
- })) : !!f.find((P) => s(u, {
1898
+ })) : !!f.find((P) => s(d, {
1864
1899
  property: c,
1865
1900
  operator: m,
1866
1901
  value: P
1867
1902
  }));
1868
- const g = u[c];
1903
+ const g = d[c];
1869
1904
  if (Array.isArray(g))
1870
1905
  return g.includes(f);
1871
1906
  switch (m) {
@@ -1892,14 +1927,14 @@ function Ao(e, t, n, o) {
1892
1927
  }
1893
1928
  })();
1894
1929
  }
1895
- const l = {
1930
+ const a = {
1896
1931
  query: t,
1897
1932
  startDate: n,
1898
1933
  endDate: o
1899
- }, a = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
1900
- 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));
1934
+ }, l = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
1935
+ return a.startDate && new Date(a.startDate) > l || a.endDate && new Date(a.endDate) < l ? !1 : !a.query || !a.query.length ? !0 : a.query.every((d) => s(e, d));
1901
1936
  }
1902
- const Bo = `function getStudioUserAttributes() {
1937
+ const Ko = `function getStudioUserAttributes() {
1903
1938
  const params = new URLSearchParams(window.location.search);
1904
1939
  if (params.get('builder.preview') !== 'BUILDER_STUDIO') {
1905
1940
  return {};
@@ -1912,7 +1947,7 @@ const Bo = `function getStudioUserAttributes() {
1912
1947
  }
1913
1948
  });
1914
1949
  return attributes;
1915
- }`, Vo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
1950
+ }`, Go = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
1916
1951
  if (!navigator.cookieEnabled) {
1917
1952
  return;
1918
1953
  }
@@ -1958,7 +1993,7 @@ const Bo = `function getStudioUserAttributes() {
1958
1993
  thisScript.remove();
1959
1994
  }
1960
1995
  }
1961
- }`, No = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
1996
+ }`, Jo = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
1962
1997
  function isString(val) {
1963
1998
  return typeof val === 'string';
1964
1999
  }
@@ -2036,7 +2071,7 @@ const Bo = `function getStudioUserAttributes() {
2036
2071
  return item.query.every(filter => {
2037
2072
  return objectMatchesQuery(userAttributes, filter);
2038
2073
  });
2039
- }`, Wo = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
2074
+ }`, _o = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
2040
2075
  function getCookie(name) {
2041
2076
  const nameEQ = name + '=';
2042
2077
  const ca = document.cookie.split(';');
@@ -2075,11 +2110,11 @@ const Bo = `function getStudioUserAttributes() {
2075
2110
  visibilityStylesEl.innerHTML = newStyleStr;
2076
2111
  }
2077
2112
  }
2078
- }`, re = "default", Ge = "filterWithCustomTargeting", Se = "builderIoPersonalization", ke = "updateVisibilityStylesScript", Qe = "builderIoStudioUserAttributes", Do = "PersonalizationContainer", Tt = ["react", "vue", "svelte", "qwik"], wt = ["vue", "svelte", "qwik"];
2079
- function Oo(e, t) {
2080
- return !(e && e.length > 0) || !t ? !1 : wt.includes(R) ? !0 : !E();
2113
+ }`, ae = "default", et = "filterWithCustomTargeting", Ce = "builderIoPersonalization", Te = "updateVisibilityStylesScript", tt = "builderIoStudioUserAttributes", Qo = "PersonalizationContainer", Bt = ["react", "vue", "svelte", "qwik"], Vt = ["vue", "svelte", "qwik"];
2114
+ function Yo(e, t) {
2115
+ return !(e && e.length > 0) || !t ? !1 : Vt.includes(E) ? !0 : !R();
2081
2116
  }
2082
- function Uo({
2117
+ function Xo({
2083
2118
  variants: e,
2084
2119
  previewingIndex: t,
2085
2120
  isHydrated: n,
@@ -2089,7 +2124,7 @@ function Uo({
2089
2124
  const i = {
2090
2125
  blocks: r ?? [],
2091
2126
  path: "this.children",
2092
- index: re
2127
+ index: ae
2093
2128
  };
2094
2129
  if (n && A()) {
2095
2130
  if (typeof t == "number" && t < ((e == null ? void 0 : e.length) ?? 0)) {
@@ -2103,39 +2138,39 @@ function Uo({
2103
2138
  }
2104
2139
  return i;
2105
2140
  }
2106
- if (E()) {
2141
+ if (R()) {
2107
2142
  const s = o == null ? void 0 : o[0];
2108
2143
  if (s && e) {
2109
- const l = e.indexOf(s);
2110
- if (l !== -1)
2144
+ const a = e.indexOf(s);
2145
+ if (a !== -1)
2111
2146
  return {
2112
2147
  blocks: s.blocks,
2113
- path: `variants.${l}.blocks`,
2114
- index: l
2148
+ path: `variants.${a}.blocks`,
2149
+ index: a
2115
2150
  };
2116
2151
  }
2117
2152
  }
2118
2153
  return i;
2119
2154
  }
2120
- const Ce = (e) => {
2155
+ const we = (e) => {
2121
2156
  var t;
2122
- return Array.isArray(e) ? e.some(Ce) : !e || typeof e != "object" ? !1 : ((t = e.component) == null ? void 0 : t.name) === Do ? !0 : Object.values(e).some(Ce);
2123
- }, xo = (e) => Ce(e), Fo = () => `
2157
+ return Array.isArray(e) ? e.some(we) : !e || typeof e != "object" ? !1 : ((t = e.component) == null ? void 0 : t.name) === Qo ? !0 : Object.values(e).some(we);
2158
+ }, Zo = (e) => we(e), er = () => `
2124
2159
  (function() {
2125
- if (!window.${Qe}) {
2126
- window.${Qe} = ${Bo};
2160
+ if (!window.${tt}) {
2161
+ window.${tt} = ${Ko};
2127
2162
  }
2128
- if (!window.${Ge}) {
2129
- window.${Ge} = ${No};
2163
+ if (!window.${et}) {
2164
+ window.${et} = ${Jo};
2130
2165
  }
2131
- if (!window.${Se}) {
2132
- window.${Se} = ${Vo};
2166
+ if (!window.${Ce}) {
2167
+ window.${Ce} = ${Go};
2133
2168
  }
2134
- if (!window.${ke}) {
2135
- window.${ke} = ${Wo};
2169
+ if (!window.${Te}) {
2170
+ window.${Te} = ${_o};
2136
2171
  }
2137
2172
  })();
2138
- `, It = R === "react", Lo = (e, t, n) => `window.${Se}(${JSON.stringify(e)}, "${t}", ${It}${n ? `, "${n}"` : ""})`, Ho = (e, t, n) => `window.${ke}(${JSON.stringify(e)}, "${t}", ${It}${n ? `, "${n}"` : ""})`, pe = {
2173
+ `, Nt = E === "react", tr = (e, t, n) => `window.${Ce}(${JSON.stringify(e)}, "${t}", ${Nt}${n ? `, "${n}"` : ""})`, nr = (e, t, n) => `window.${Te}(${JSON.stringify(e)}, "${t}", ${Nt}${n ? `, "${n}"` : ""})`, fe = {
2139
2174
  "@type": "@builder.io/sdk:Element",
2140
2175
  layerName: "Accordion item title",
2141
2176
  responsiveStyles: {
@@ -2164,7 +2199,7 @@ const Ce = (e) => {
2164
2199
  }
2165
2200
  }
2166
2201
  }]
2167
- }, me = {
2202
+ }, be = {
2168
2203
  "@type": "@builder.io/sdk:Element",
2169
2204
  layerName: "Accordion item detail",
2170
2205
  responsiveStyles: {
@@ -2195,7 +2230,7 @@ const Ce = (e) => {
2195
2230
  }
2196
2231
  }
2197
2232
  }]
2198
- }, Mo = {
2233
+ }, or = {
2199
2234
  name: "Builder:Accordion",
2200
2235
  canHaveChildren: !0,
2201
2236
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -2212,19 +2247,19 @@ const Ce = (e) => {
2212
2247
  name: "title",
2213
2248
  type: "uiBlocks",
2214
2249
  hideFromUI: !0,
2215
- defaultValue: [pe]
2250
+ defaultValue: [fe]
2216
2251
  }, {
2217
2252
  name: "detail",
2218
2253
  type: "uiBlocks",
2219
2254
  hideFromUI: !0,
2220
- defaultValue: [me]
2255
+ defaultValue: [be]
2221
2256
  }],
2222
2257
  defaultValue: [{
2223
- title: [pe],
2224
- detail: [me]
2258
+ title: [fe],
2259
+ detail: [be]
2225
2260
  }, {
2226
- title: [pe],
2227
- detail: [me]
2261
+ title: [fe],
2262
+ detail: [be]
2228
2263
  }],
2229
2264
  showIf: (e) => !e.get("useChildrenForItems")
2230
2265
  }, {
@@ -2259,9 +2294,9 @@ const Ce = (e) => {
2259
2294
  builderComponents: !0,
2260
2295
  builderLinkComponent: !0
2261
2296
  }
2262
- }, zo = (e) => e.toString(), jo = y({
2297
+ }, rr = (e) => e.toString(), ir = y({
2263
2298
  name: "builder-accordion",
2264
- components: { Blocks: j },
2299
+ components: { Blocks: z },
2265
2300
  props: [
2266
2301
  "grid",
2267
2302
  "oneAtATime",
@@ -2273,7 +2308,7 @@ const Ce = (e) => {
2273
2308
  "builderLinkComponent"
2274
2309
  ],
2275
2310
  data() {
2276
- return { open: [], convertOrderNumberToString: zo };
2311
+ return { open: [], convertOrderNumberToString: rr };
2277
2312
  },
2278
2313
  computed: {
2279
2314
  onlyOneAtATime() {
@@ -2319,11 +2354,11 @@ const Ce = (e) => {
2319
2354
  continue;
2320
2355
  const s = r.getBoundingClientRect();
2321
2356
  if (s.left > i.left) {
2322
- const l = parseInt(
2357
+ const a = parseInt(
2323
2358
  r.getAttribute("data-index") || "",
2324
2359
  10
2325
2360
  );
2326
- isNaN(l) || (i = s, e = l);
2361
+ isNaN(a) || (i = s, e = a);
2327
2362
  } else
2328
2363
  break;
2329
2364
  }
@@ -2354,43 +2389,43 @@ const Ce = (e) => {
2354
2389
  this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
2355
2390
  }
2356
2391
  }
2357
- }), qo = ["data-index", "onClick"];
2358
- function Ko(e, t, n, o, r, i) {
2359
- const s = k("Blocks");
2360
- return d(), h("div", {
2392
+ }), sr = ["data-index", "onClick"];
2393
+ function ar(e, t, n, o, r, i) {
2394
+ const s = v("Blocks");
2395
+ return u(), h("div", {
2361
2396
  class: "builder-accordion",
2362
- style: H(e.accordionStyles)
2397
+ style: M(e.accordionStyles)
2363
2398
  }, [
2364
- (d(!0), h(w, null, x(e.items, (l, a) => (d(), h(w, { key: a }, [
2399
+ (u(!0), h(w, null, x(e.items, (a, l) => (u(), h(w, { key: l }, [
2365
2400
  K("div", {
2366
- class: Z(e.getAccordionTitleClassName(a)),
2367
- style: H({
2401
+ class: ee(e.getAccordionTitleClassName(l)),
2402
+ style: M({
2368
2403
  ...e.accordionTitleStyles,
2369
2404
  ...e.grid && {
2370
2405
  width: e.gridRowWidth,
2371
- order: e.openGridItemOrder !== null ? e.convertOrderNumberToString(a) : e.convertOrderNumberToString(a + 1)
2406
+ order: e.openGridItemOrder !== null ? e.convertOrderNumberToString(l) : e.convertOrderNumberToString(l + 1)
2372
2407
  }
2373
2408
  }),
2374
- "data-index": a,
2375
- onClick: async (u) => e.onClick(a)
2409
+ "data-index": l,
2410
+ onClick: async (d) => e.onClick(l)
2376
2411
  }, [
2377
2412
  $(s, {
2378
- blocks: l.title,
2379
- path: `items.${a}.title`,
2413
+ blocks: a.title,
2414
+ path: `items.${l}.title`,
2380
2415
  parent: e.builderBlock.id,
2381
2416
  context: e.builderContext,
2382
2417
  registeredComponents: e.builderComponents,
2383
2418
  linkComponent: e.builderLinkComponent
2384
2419
  }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
2385
- ], 14, qo),
2386
- e.open.includes(a) ? (d(), h("div", {
2420
+ ], 14, sr),
2421
+ e.open.includes(l) ? (u(), h("div", {
2387
2422
  key: 0,
2388
- class: Z(e.getAccordionDetailClassName(a)),
2389
- style: H(e.accordionDetailStyles)
2423
+ class: ee(e.getAccordionDetailClassName(l)),
2424
+ style: M(e.accordionDetailStyles)
2390
2425
  }, [
2391
2426
  $(s, {
2392
- blocks: l.detail,
2393
- path: `items.${a}.detail`,
2427
+ blocks: a.detail,
2428
+ path: `items.${l}.detail`,
2394
2429
  parent: e.builderBlock.id,
2395
2430
  context: e.builderContext,
2396
2431
  registeredComponents: e.builderComponents,
@@ -2400,7 +2435,7 @@ function Ko(e, t, n, o, r, i) {
2400
2435
  ], 64))), 128))
2401
2436
  ], 4);
2402
2437
  }
2403
- const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
2438
+ const lr = /* @__PURE__ */ S(ir, [["render", ar]]), cr = {
2404
2439
  name: "Core:Button",
2405
2440
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
2406
2441
  defaultStyles: {
@@ -2436,7 +2471,7 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
2436
2471
  shouldReceiveBuilderProps: {
2437
2472
  builderLinkComponent: !0
2438
2473
  }
2439
- }, Qo = {
2474
+ }, dr = {
2440
2475
  // TODO: ways to statically preprocess JSON for references, functions, etc
2441
2476
  name: "Columns",
2442
2477
  isRSC: !0,
@@ -2615,7 +2650,7 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
2615
2650
  });
2616
2651
  }
2617
2652
  const n = e.get("columns");
2618
- Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((i) => !i.get("width")) || n.reduce((l, a) => l + a.get("width"), 0) !== 100) && t();
2653
+ Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((i) => !i.get("width")) || n.reduce((a, l) => a + l.get("width"), 0) !== 100) && t();
2619
2654
  }
2620
2655
  }, {
2621
2656
  name: "space",
@@ -2643,13 +2678,13 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
2643
2678
  builderComponents: !0,
2644
2679
  builderLinkComponent: !0
2645
2680
  }
2646
- }, Yo = {
2681
+ }, ur = {
2647
2682
  name: "Fragment",
2648
2683
  static: !0,
2649
2684
  hidden: !0,
2650
2685
  canHaveChildren: !0,
2651
2686
  noWrap: !0
2652
- }, Ne = ["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"], _o = ["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"], Xo = {
2687
+ }, We = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], pr = ["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"], mr = {
2653
2688
  name: "Image",
2654
2689
  static: !0,
2655
2690
  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",
@@ -2664,22 +2699,22 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
2664
2699
  name: "image",
2665
2700
  type: "file",
2666
2701
  bubble: !0,
2667
- allowedFileTypes: Ne,
2702
+ allowedFileTypes: We,
2668
2703
  required: !0,
2669
2704
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
2670
2705
  onChange: (e) => {
2671
2706
  e.delete("srcset"), e.delete("noWebp");
2672
- function n(s, l = 6e4) {
2673
- return new Promise((a, u) => {
2707
+ function n(s, a = 6e4) {
2708
+ return new Promise((l, d) => {
2674
2709
  const p = document.createElement("img");
2675
2710
  let b = !1;
2676
2711
  p.onload = () => {
2677
- b = !0, a(p);
2712
+ b = !0, l(p);
2678
2713
  }, p.addEventListener("error", (c) => {
2679
- console.warn("Image load failed", c.error), u(c.error);
2714
+ console.warn("Image load failed", c.error), d(c.error);
2680
2715
  }), p.src = s, setTimeout(() => {
2681
- b || u(new Error("Image load timed out"));
2682
- }, l);
2716
+ b || d(new Error("Image load timed out"));
2717
+ }, a);
2683
2718
  });
2684
2719
  }
2685
2720
  function o(s) {
@@ -2690,8 +2725,8 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
2690
2725
  s.type.includes("svg") && e.set("noWebp", !0);
2691
2726
  }), r && (!i || i === 0.7041))
2692
2727
  return n(r).then((s) => {
2693
- const l = e.get("aspectRatio");
2694
- e.get("image") === r && (!l || l === 0.7041) && s.width && s.height && (e.set("aspectRatio", o(s.height / s.width)), e.set("height", s.height), e.set("width", s.width));
2728
+ const a = e.get("aspectRatio");
2729
+ e.get("image") === r && (!a || a === 0.7041) && s.width && s.height && (e.set("aspectRatio", o(s.height / s.width)), e.set("height", s.height), e.set("width", s.width));
2695
2730
  });
2696
2731
  }
2697
2732
  }, {
@@ -2762,7 +2797,7 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
2762
2797
  shouldReceiveBuilderProps: {
2763
2798
  builderBlock: !0
2764
2799
  }
2765
- }, Zo = {
2800
+ }, hr = {
2766
2801
  name: "PersonalizationContainer",
2767
2802
  shouldReceiveBuilderProps: {
2768
2803
  builderBlock: !0,
@@ -2798,9 +2833,9 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
2798
2833
  defaultValue: []
2799
2834
  }]
2800
2835
  }]
2801
- }, We = y({
2836
+ }, Oe = y({
2802
2837
  render() {
2803
- return Ze("script", {
2838
+ return at("script", {
2804
2839
  innerHTML: this.scriptStr,
2805
2840
  "data-id": this.id,
2806
2841
  nonce: this.nonce
@@ -2808,12 +2843,12 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
2808
2843
  },
2809
2844
  name: "inlined-script",
2810
2845
  props: ["scriptStr", "id", "nonce"]
2811
- }), er = y({
2846
+ }), fr = y({
2812
2847
  name: "builder-personalization-container",
2813
2848
  components: {
2814
- Blocks: j,
2815
- InlinedStyles: ue,
2816
- InlinedScript: We
2849
+ Blocks: z,
2850
+ InlinedStyles: he,
2851
+ InlinedScript: Oe
2817
2852
  },
2818
2853
  props: [
2819
2854
  "builderContext",
@@ -2826,45 +2861,45 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
2826
2861
  data() {
2827
2862
  var e, t, n, o, r, i, s;
2828
2863
  return {
2829
- userAttributes: ce.getUserAttributes(),
2830
- scriptStr: Lo(
2864
+ userAttributes: de.getUserAttributes(),
2865
+ scriptStr: tr(
2831
2866
  this.variants,
2832
2867
  ((e = this.builderBlock) == null ? void 0 : e.id) || "none",
2833
2868
  (n = (t = this.builderContext) == null ? void 0 : t.rootState) == null ? void 0 : n.locale
2834
2869
  ),
2835
- updateVisibilityStylesScript: Ho(
2870
+ updateVisibilityStylesScript: nr(
2836
2871
  this.variants,
2837
2872
  ((o = this.builderBlock) == null ? void 0 : o.id) || "none",
2838
2873
  (i = (r = this.builderContext) == null ? void 0 : r.rootState) == null ? void 0 : i.locale
2839
2874
  ),
2840
2875
  unsubscribers: [],
2841
- shouldRenderVariants: Oo(
2876
+ shouldRenderVariants: Yo(
2842
2877
  this.variants,
2843
- J((s = this.builderContext) == null ? void 0 : s.canTrack)
2878
+ G((s = this.builderContext) == null ? void 0 : s.canTrack)
2844
2879
  ),
2845
2880
  shouldResetVariants: !1,
2846
- TARGET: R,
2847
- DEFAULT_INDEX: re,
2848
- SDKS_REQUIRING_RESET_APPROACH: wt
2881
+ TARGET: E,
2882
+ DEFAULT_INDEX: ae,
2883
+ SDKS_REQUIRING_RESET_APPROACH: Vt
2849
2884
  };
2850
2885
  },
2851
2886
  mounted() {
2852
2887
  var t;
2853
2888
  this.shouldResetVariants = !0;
2854
- const e = ce.subscribeOnUserAttributesChange(
2889
+ const e = de.subscribeOnUserAttributesChange(
2855
2890
  (n) => {
2856
2891
  this.userAttributes = n;
2857
2892
  },
2858
2893
  {
2859
- fireImmediately: R === "qwik"
2894
+ fireImmediately: E === "qwik"
2860
2895
  }
2861
2896
  );
2862
- if (!(A() || Ee())) {
2897
+ if (!(A() || me())) {
2863
2898
  const n = this.filteredVariants[0];
2864
2899
  this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
2865
2900
  new CustomEvent("builder.variantLoaded", {
2866
2901
  detail: {
2867
- variant: n || re,
2902
+ variant: n || ae,
2868
2903
  content: (t = this.builderContext) == null ? void 0 : t.content
2869
2904
  },
2870
2905
  bubbles: !0
@@ -2875,7 +2910,7 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
2875
2910
  i.isIntersecting && this.$refs.rootRef && this.$refs.rootRef.dispatchEvent(
2876
2911
  new CustomEvent("builder.variantDisplayed", {
2877
2912
  detail: {
2878
- variant: n || re,
2913
+ variant: n || ae,
2879
2914
  content: (s = this.builderContext) == null ? void 0 : s.content
2880
2915
  },
2881
2916
  bubbles: !0
@@ -2894,13 +2929,13 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
2894
2929
  return {
2895
2930
  ...N(this.attributes, "v-on:", !1),
2896
2931
  ...N(this.attributes, "v-on:", !0),
2897
- [M()]: `builder-personalization-container ${this.attributes[M()] || ""}`
2932
+ [H()]: `builder-personalization-container ${this.attributes[H()] || ""}`
2898
2933
  };
2899
2934
  },
2900
2935
  filteredVariants() {
2901
2936
  return (this.variants || []).filter((e) => {
2902
2937
  var t, n, o, r;
2903
- return Ao(
2938
+ return qo(
2904
2939
  {
2905
2940
  ...(n = (t = this.builderContext) == null ? void 0 : t.rootState) != null && n.locale ? {
2906
2941
  locale: (r = (o = this.builderContext) == null ? void 0 : o.rootState) == null ? void 0 : r.locale
@@ -2915,7 +2950,7 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
2915
2950
  },
2916
2951
  blocksToRender() {
2917
2952
  var e;
2918
- return Uo({
2953
+ return Xo({
2919
2954
  variants: this.variants,
2920
2955
  fallbackBlocks: (e = this.builderBlock) == null ? void 0 : e.children,
2921
2956
  isHydrated: this.shouldResetVariants,
@@ -2933,14 +2968,14 @@ const Jo = /* @__PURE__ */ v(jo, [["render", Ko]]), Go = {
2933
2968
  }
2934
2969
  }
2935
2970
  });
2936
- function tr(e, t, n, o, r, i) {
2937
- var u, p, b, c, m, f, g, P, O, B;
2938
- const s = k("Blocks"), l = k("InlinedStyles"), a = k("InlinedScript");
2939
- return d(), h("div", I({ ref: "rootRef" }, e.attrs), [
2940
- e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), S(s, {
2971
+ function br(e, t, n, o, r, i) {
2972
+ var d, p, b, c, m, f, g, P, D, B;
2973
+ const s = v("Blocks"), a = v("InlinedStyles"), l = v("InlinedScript");
2974
+ return u(), h("div", I({ ref: "rootRef" }, e.attrs), [
2975
+ e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (u(), k(s, {
2941
2976
  key: 0,
2942
2977
  blocks: e.blocksToRender.blocks,
2943
- parent: (u = e.builderBlock) == null ? void 0 : u.id,
2978
+ parent: (d = e.builderBlock) == null ? void 0 : d.id,
2944
2979
  path: e.blocksToRender.path,
2945
2980
  context: e.builderContext,
2946
2981
  registeredComponents: e.builderComponents,
@@ -2949,27 +2984,27 @@ function tr(e, t, n, o, r, i) {
2949
2984
  "data-variant-id": `${(b = e.builderBlock) == null ? void 0 : b.id}-${e.blocksToRender.index}`
2950
2985
  }
2951
2986
  }, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) : T("", !0),
2952
- !e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), h(w, { key: 1 }, [
2953
- e.shouldRenderVariants ? (d(), h(w, { key: 0 }, [
2954
- $(l, {
2987
+ !e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (u(), h(w, { key: 1 }, [
2988
+ e.shouldRenderVariants ? (u(), h(w, { key: 0 }, [
2989
+ $(a, {
2955
2990
  nonce: ((c = e.builderContext) == null ? void 0 : c.nonce) || "",
2956
2991
  styles: e.hideVariantsStyleString,
2957
2992
  id: `variants-styles-${(m = e.builderBlock) == null ? void 0 : m.id}`
2958
2993
  }, null, 8, ["nonce", "styles", "id"]),
2959
- $(a, {
2994
+ $(l, {
2960
2995
  nonce: ((f = e.builderContext) == null ? void 0 : f.nonce) || "",
2961
2996
  scriptStr: e.updateVisibilityStylesScript,
2962
2997
  id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
2963
2998
  }, null, 8, ["nonce", "scriptStr", "id"]),
2964
- (d(!0), h(w, null, x(e.variants, (q, C) => {
2965
- var z, G, Q, W;
2966
- return d(), S(s, {
2967
- key: `${(z = e.builderBlock) == null ? void 0 : z.id}-${C}`,
2999
+ (u(!0), h(w, null, x(e.variants, (q, C) => {
3000
+ var j, J, _, W;
3001
+ return u(), k(s, {
3002
+ key: `${(j = e.builderBlock) == null ? void 0 : j.id}-${C}`,
2968
3003
  BlocksWrapperProps: {
2969
- ...(G = e.builderContext) == null ? void 0 : G.BlocksWrapperProps,
3004
+ ...(J = e.builderContext) == null ? void 0 : J.BlocksWrapperProps,
2970
3005
  "aria-hidden": !0,
2971
3006
  hidden: !0,
2972
- "data-variant-id": `${(Q = e.builderBlock) == null ? void 0 : Q.id}-${C}`
3007
+ "data-variant-id": `${(_ = e.builderBlock) == null ? void 0 : _.id}-${C}`
2973
3008
  },
2974
3009
  blocks: q.blocks,
2975
3010
  parent: (W = e.builderBlock) == null ? void 0 : W.id,
@@ -2977,13 +3012,13 @@ function tr(e, t, n, o, r, i) {
2977
3012
  context: e.builderContext,
2978
3013
  registeredComponents: e.builderComponents
2979
3014
  }, {
2980
- default: D(() => {
2981
- var L, Oe;
3015
+ default: O(() => {
3016
+ var L, Ue;
2982
3017
  return [
2983
- $(a, {
3018
+ $(l, {
2984
3019
  nonce: ((L = e.builderContext) == null ? void 0 : L.nonce) || "",
2985
3020
  scriptStr: e.scriptStr,
2986
- id: `variants-script-${(Oe = e.builderBlock) == null ? void 0 : Oe.id}-${C}`
3021
+ id: `variants-script-${(Ue = e.builderBlock) == null ? void 0 : Ue.id}-${C}`
2987
3022
  }, null, 8, ["nonce", "scriptStr", "id"])
2988
3023
  ];
2989
3024
  }),
@@ -2998,14 +3033,14 @@ function tr(e, t, n, o, r, i) {
2998
3033
  context: e.builderContext,
2999
3034
  registeredComponents: e.builderComponents,
3000
3035
  BlocksWrapperProps: {
3001
- ...(O = e.builderContext) == null ? void 0 : O.BlocksWrapperProps,
3036
+ ...(D = e.builderContext) == null ? void 0 : D.BlocksWrapperProps,
3002
3037
  "data-variant-id": `${(B = e.builderBlock) == null ? void 0 : B.id}-${e.blocksToRender.index}`
3003
3038
  }
3004
3039
  }, {
3005
- default: D(() => {
3040
+ default: O(() => {
3006
3041
  var q, C;
3007
3042
  return [
3008
- e.shouldRenderVariants ? (d(), S(a, {
3043
+ e.shouldRenderVariants ? (u(), k(l, {
3009
3044
  key: 0,
3010
3045
  nonce: ((q = e.builderContext) == null ? void 0 : q.nonce) || "",
3011
3046
  scriptStr: e.scriptStr,
@@ -3018,7 +3053,7 @@ function tr(e, t, n, o, r, i) {
3018
3053
  ], 64)) : T("", !0)
3019
3054
  ], 16);
3020
3055
  }
3021
- const nr = /* @__PURE__ */ v(er, [["render", tr]]), or = {
3056
+ const gr = /* @__PURE__ */ S(fr, [["render", br]]), yr = {
3022
3057
  name: "Core:Section",
3023
3058
  static: !0,
3024
3059
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -3057,7 +3092,7 @@ const nr = /* @__PURE__ */ v(er, [["render", tr]]), or = {
3057
3092
  }
3058
3093
  }
3059
3094
  }]
3060
- }, rr = {
3095
+ }, Sr = {
3061
3096
  name: "Slot",
3062
3097
  isRSC: !0,
3063
3098
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -3074,32 +3109,32 @@ const nr = /* @__PURE__ */ v(er, [["render", tr]]), or = {
3074
3109
  builderContext: !0,
3075
3110
  builderComponents: !0
3076
3111
  }
3077
- }, ir = y({
3112
+ }, kr = y({
3078
3113
  name: "builder-slot",
3079
- components: { Blocks: j },
3114
+ components: { Blocks: z },
3080
3115
  props: ["builderContext", "name", "builderComponents"]
3081
3116
  });
3082
- function sr(e, t, n, o, r, i) {
3083
- var l, a, u;
3084
- const s = k("Blocks");
3085
- return d(), h("div", I(
3117
+ function vr(e, t, n, o, r, i) {
3118
+ var a, l, d;
3119
+ const s = v("Blocks");
3120
+ return u(), h("div", I(
3086
3121
  { style: {
3087
3122
  pointerEvents: "auto"
3088
3123
  } },
3089
- !((l = e.builderContext.context) != null && l.symbolId) && {
3124
+ !((a = e.builderContext.context) != null && a.symbolId) && {
3090
3125
  "builder-slot": e.name
3091
3126
  }
3092
3127
  ), [
3093
3128
  $(s, {
3094
- parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
3129
+ parent: (l = e.builderContext.context) == null ? void 0 : l.symbolId,
3095
3130
  path: `symbol.data.${e.name}`,
3096
3131
  context: e.builderContext,
3097
3132
  registeredComponents: e.builderComponents,
3098
- blocks: (u = e.builderContext.rootState) == null ? void 0 : u[e.name]
3133
+ blocks: (d = e.builderContext.rootState) == null ? void 0 : d[e.name]
3099
3134
  }, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
3100
3135
  ], 16);
3101
3136
  }
3102
- const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
3137
+ const Cr = /* @__PURE__ */ S(kr, [["render", vr]]), Tr = {
3103
3138
  name: "Symbol",
3104
3139
  noWrap: !0,
3105
3140
  static: !0,
@@ -3138,7 +3173,7 @@ const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
3138
3173
  builderComponents: !0,
3139
3174
  builderLinkComponent: !0
3140
3175
  }
3141
- }, he = {
3176
+ }, ge = {
3142
3177
  "@type": "@builder.io/sdk:Element",
3143
3178
  responsiveStyles: {
3144
3179
  large: {
@@ -3160,7 +3195,7 @@ const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
3160
3195
  text: "New tab"
3161
3196
  }
3162
3197
  }
3163
- }, fe = {
3198
+ }, ye = {
3164
3199
  "@type": "@builder.io/sdk:Element",
3165
3200
  responsiveStyles: {
3166
3201
  large: {
@@ -3176,7 +3211,7 @@ const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
3176
3211
  text: "New tab content "
3177
3212
  }
3178
3213
  }
3179
- }, cr = {
3214
+ }, wr = {
3180
3215
  name: "Builder: Tabs",
3181
3216
  inputs: [{
3182
3217
  name: "tabs",
@@ -3186,16 +3221,16 @@ const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
3186
3221
  name: "label",
3187
3222
  type: "uiBlocks",
3188
3223
  hideFromUI: !0,
3189
- defaultValue: [he]
3224
+ defaultValue: [ge]
3190
3225
  }, {
3191
3226
  name: "content",
3192
3227
  type: "uiBlocks",
3193
3228
  hideFromUI: !0,
3194
- defaultValue: [fe]
3229
+ defaultValue: [ye]
3195
3230
  }],
3196
3231
  defaultValue: [{
3197
3232
  label: [{
3198
- ...he,
3233
+ ...ge,
3199
3234
  component: {
3200
3235
  name: "Text",
3201
3236
  options: {
@@ -3204,7 +3239,7 @@ const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
3204
3239
  }
3205
3240
  }],
3206
3241
  content: [{
3207
- ...fe,
3242
+ ...ye,
3208
3243
  component: {
3209
3244
  name: "Text",
3210
3245
  options: {
@@ -3214,7 +3249,7 @@ const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
3214
3249
  }]
3215
3250
  }, {
3216
3251
  label: [{
3217
- ...he,
3252
+ ...ge,
3218
3253
  component: {
3219
3254
  name: "Text",
3220
3255
  options: {
@@ -3223,7 +3258,7 @@ const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
3223
3258
  }
3224
3259
  }],
3225
3260
  content: [{
3226
- ...fe,
3261
+ ...ye,
3227
3262
  component: {
3228
3263
  name: "Text",
3229
3264
  options: {
@@ -3279,9 +3314,9 @@ const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
3279
3314
  builderComponents: !0,
3280
3315
  builderLinkComponent: !0
3281
3316
  }
3282
- }, dr = y({
3317
+ }, Ir = y({
3283
3318
  name: "builder-tabs",
3284
- components: { Blocks: j },
3319
+ components: { Blocks: z },
3285
3320
  props: [
3286
3321
  "defaultActiveTab",
3287
3322
  "tabs",
@@ -3307,36 +3342,36 @@ const ar = /* @__PURE__ */ v(ir, [["render", sr]]), lr = {
3307
3342
  e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
3308
3343
  }
3309
3344
  }
3310
- }), ur = ["onClick"], pr = { key: 0 };
3311
- function mr(e, t, n, o, r, i) {
3312
- const s = k("Blocks");
3313
- return d(), h("div", null, [
3345
+ }), $r = ["onClick"], Rr = { key: 0 };
3346
+ function Er(e, t, n, o, r, i) {
3347
+ const s = v("Blocks");
3348
+ return u(), h("div", null, [
3314
3349
  K("div", {
3315
3350
  class: "builder-tabs-wrap",
3316
- style: H({
3351
+ style: M({
3317
3352
  display: "flex",
3318
3353
  flexDirection: "row",
3319
3354
  justifyContent: e.tabHeaderLayout || "flex-start",
3320
3355
  overflow: "auto"
3321
3356
  })
3322
3357
  }, [
3323
- (d(!0), h(w, null, x(e.tabs, (l, a) => (d(), h("span", {
3324
- key: a,
3325
- class: Z(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
3326
- style: H(e.getTabStyle(a)),
3327
- onClick: async (u) => e.onClick(a)
3358
+ (u(!0), h(w, null, x(e.tabs, (a, l) => (u(), h("span", {
3359
+ key: l,
3360
+ class: ee(`builder-tab-wrap ${e.activeTab === l ? "builder-tab-active" : ""}`),
3361
+ style: M(e.getTabStyle(l)),
3362
+ onClick: async (d) => e.onClick(l)
3328
3363
  }, [
3329
3364
  $(s, {
3330
3365
  parent: e.builderBlock.id,
3331
- path: `tabs.${a}.label`,
3332
- blocks: l.label,
3366
+ path: `tabs.${l}.label`,
3367
+ blocks: a.label,
3333
3368
  context: e.builderContext,
3334
3369
  registeredComponents: e.builderComponents,
3335
3370
  linkComponent: e.builderLinkComponent
3336
3371
  }, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
3337
- ], 14, ur))), 128))
3372
+ ], 14, $r))), 128))
3338
3373
  ], 4),
3339
- e.activeTabContent(e.activeTab) ? (d(), h("div", pr, [
3374
+ e.activeTabContent(e.activeTab) ? (u(), h("div", Rr, [
3340
3375
  $(s, {
3341
3376
  parent: e.builderBlock.id,
3342
3377
  path: `tabs.${e.activeTab}.content`,
@@ -3348,7 +3383,7 @@ function mr(e, t, n, o, r, i) {
3348
3383
  ])) : T("", !0)
3349
3384
  ]);
3350
3385
  }
3351
- const hr = /* @__PURE__ */ v(dr, [["render", mr]]), fr = {
3386
+ const Pr = /* @__PURE__ */ S(Ir, [["render", Er]]), Ar = {
3352
3387
  shouldReceiveBuilderProps: {},
3353
3388
  name: "Text",
3354
3389
  static: !0,
@@ -3366,21 +3401,21 @@ const hr = /* @__PURE__ */ v(dr, [["render", mr]]), fr = {
3366
3401
  height: "auto",
3367
3402
  textAlign: "center"
3368
3403
  }
3369
- }, br = y({
3404
+ }, Br = y({
3370
3405
  name: "builder-text",
3371
3406
  props: ["text"]
3372
- }), gr = ["innerHTML"];
3373
- function yr(e, t, n, o, r, i) {
3407
+ }), Vr = ["innerHTML"];
3408
+ function Nr(e, t, n, o, r, i) {
3374
3409
  var s;
3375
- return d(), h("div", {
3410
+ return u(), h("div", {
3376
3411
  class: "builder-text",
3377
3412
  innerHTML: ((s = e.text) == null ? void 0 : s.toString()) || "",
3378
3413
  style: {
3379
3414
  outline: "none"
3380
3415
  }
3381
- }, null, 8, gr);
3416
+ }, null, 8, Vr);
3382
3417
  }
3383
- const vr = /* @__PURE__ */ v(br, [["render", yr]]), Sr = {
3418
+ const Wr = /* @__PURE__ */ S(Br, [["render", Nr]]), Or = {
3384
3419
  name: "Custom Code",
3385
3420
  static: !0,
3386
3421
  requiredPermissions: ["editCode"],
@@ -3402,7 +3437,7 @@ const vr = /* @__PURE__ */ v(br, [["render", yr]]), Sr = {
3402
3437
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
3403
3438
  advanced: !0
3404
3439
  }]
3405
- }, kr = y({
3440
+ }, Dr = y({
3406
3441
  name: "builder-custom-code",
3407
3442
  props: ["code", "replaceNodes"],
3408
3443
  data() {
@@ -3461,15 +3496,15 @@ const vr = /* @__PURE__ */ v(br, [["render", yr]]), Sr = {
3461
3496
  }
3462
3497
  }
3463
3498
  }
3464
- }), Cr = ["innerHTML"];
3465
- function Tr(e, t, n, o, r, i) {
3466
- return d(), h("div", {
3499
+ }), Ur = ["innerHTML"];
3500
+ function xr(e, t, n, o, r, i) {
3501
+ return u(), h("div", {
3467
3502
  ref: "elementRef",
3468
- class: Z("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
3503
+ class: ee("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
3469
3504
  innerHTML: e.code
3470
- }, null, 10, Cr);
3505
+ }, null, 10, Ur);
3471
3506
  }
3472
- const wr = /* @__PURE__ */ v(kr, [["render", Tr]]), Ir = {
3507
+ const Fr = /* @__PURE__ */ S(Dr, [["render", xr]]), Lr = {
3473
3508
  name: "Embed",
3474
3509
  static: !0,
3475
3510
  inputs: [{
@@ -3484,7 +3519,7 @@ const wr = /* @__PURE__ */ v(kr, [["render", Tr]]), Ir = {
3484
3519
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
3485
3520
  hideFromUI: !0
3486
3521
  }]
3487
- }, $r = ["text/javascript", "application/javascript", "application/ecmascript"], Rr = (e) => $r.includes(e.type), Er = y({
3522
+ }, Mr = ["text/javascript", "application/javascript", "application/ecmascript"], Hr = (e) => Mr.includes(e.type), jr = y({
3488
3523
  name: "builder-embed",
3489
3524
  props: ["content"],
3490
3525
  data() {
@@ -3517,7 +3552,7 @@ const wr = /* @__PURE__ */ v(kr, [["render", Tr]]), Ir = {
3517
3552
  this.scriptsInserted.push(n.src);
3518
3553
  const o = document.createElement("script");
3519
3554
  o.async = !0, o.src = n.src, document.head.appendChild(o);
3520
- } else if (Rr(n) && !this.scriptsRun.includes(n.innerText))
3555
+ } else if (Hr(n) && !this.scriptsRun.includes(n.innerText))
3521
3556
  try {
3522
3557
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
3523
3558
  } catch (o) {
@@ -3526,15 +3561,15 @@ const wr = /* @__PURE__ */ v(kr, [["render", Tr]]), Ir = {
3526
3561
  }
3527
3562
  }
3528
3563
  }
3529
- }), Pr = ["innerHTML"];
3530
- function Ar(e, t, n, o, r, i) {
3531
- return d(), h("div", {
3564
+ }), zr = ["innerHTML"];
3565
+ function qr(e, t, n, o, r, i) {
3566
+ return u(), h("div", {
3532
3567
  class: "builder-embed",
3533
3568
  ref: "elem",
3534
3569
  innerHTML: e.content
3535
- }, null, 8, Pr);
3570
+ }, null, 8, zr);
3536
3571
  }
3537
- const Br = /* @__PURE__ */ v(Er, [["render", Ar]]), Vr = {
3572
+ const Kr = /* @__PURE__ */ S(jr, [["render", qr]]), Gr = {
3538
3573
  name: "Form:Form",
3539
3574
  // editableTags: ['builder-form-error']
3540
3575
  defaults: {
@@ -3771,12 +3806,12 @@ const Br = /* @__PURE__ */ v(Er, [["render", Ar]]), Vr = {
3771
3806
  builderComponents: !0,
3772
3807
  builderLinkComponent: !0
3773
3808
  }
3774
- }, Nr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Wr = () => {
3809
+ }, Jr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], _r = () => {
3775
3810
  const e = process.env.NODE_ENV || "production";
3776
- return Nr.includes(e) ? e : "production";
3777
- }, Dr = y({
3811
+ return Jr.includes(e) ? e : "production";
3812
+ }, Qr = y({
3778
3813
  name: "builder-form-component",
3779
- components: { Blocks: j },
3814
+ components: { Blocks: z },
3780
3815
  props: [
3781
3816
  "builderContext",
3782
3817
  "previewState",
@@ -3833,7 +3868,7 @@ const Br = /* @__PURE__ */ v(Er, [["render", Ar]]), Vr = {
3833
3868
  e.preventDefault();
3834
3869
  const o = e.currentTarget || e.target, r = this.customHeaders || {};
3835
3870
  let i;
3836
- const s = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).filter(
3871
+ const s = new FormData(o), a = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).filter(
3837
3872
  (c) => !!c.name && (c.type !== "radio" || c.checked)
3838
3873
  ).map((c) => {
3839
3874
  let m;
@@ -3859,24 +3894,24 @@ const Br = /* @__PURE__ */ v(Er, [["render", Ar]]), Vr = {
3859
3894
  value: m
3860
3895
  };
3861
3896
  });
3862
- let a = this.contentType;
3863
- if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value: c }) => {
3864
- (c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (a = "multipart/form-data");
3865
- }), a !== "application/json")
3897
+ let l = this.contentType;
3898
+ if (this.sendSubmissionsTo === "email" && (l = "multipart/form-data"), Array.from(a).forEach(({ value: c }) => {
3899
+ (c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (l = "multipart/form-data");
3900
+ }), l !== "application/json")
3866
3901
  i = s;
3867
3902
  else {
3868
3903
  const c = {};
3869
- Array.from(l).forEach(({ value: m, key: f }) => {
3870
- et(c, f, m);
3904
+ Array.from(a).forEach(({ value: m, key: f }) => {
3905
+ Jt(c, f, m);
3871
3906
  }), i = JSON.stringify(c);
3872
3907
  }
3873
- a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
3874
- const u = new CustomEvent("presubmit", {
3908
+ l && l !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = l));
3909
+ const d = new CustomEvent("presubmit", {
3875
3910
  detail: {
3876
3911
  body: i
3877
3912
  }
3878
3913
  });
3879
- if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(u), u.defaultPrevented))
3914
+ if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(d), d.defaultPrevented))
3880
3915
  return;
3881
3916
  if (this.formState = "sending", this.sendSubmissionsTo === "email" && (this.sendSubmissionsToEmail === "your@email.com" || !this.sendSubmissionsToEmail)) {
3882
3917
  const c = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
@@ -3885,10 +3920,10 @@ const Br = /* @__PURE__ */ v(Er, [["render", Ar]]), Vr = {
3885
3920
  });
3886
3921
  return;
3887
3922
  }
3888
- const p = `${Wr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
3923
+ const p = `${_r() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
3889
3924
  this.sendSubmissionsToEmail || ""
3890
3925
  )}&name=${encodeURIComponent(this.name || "")}`, b = this.sendSubmissionsTo === "email" ? p : this.action;
3891
- ot(b), fetch(b, {
3926
+ ut(b), fetch(b, {
3892
3927
  body: i,
3893
3928
  headers: r,
3894
3929
  method: this.method || "post"
@@ -3898,32 +3933,32 @@ const Br = /* @__PURE__ */ v(Er, [["render", Ar]]), Vr = {
3898
3933
  let m;
3899
3934
  const f = c.headers.get("content-type");
3900
3935
  if (f && f.indexOf("application/json") !== -1 ? m = await c.json() : m = await c.text(), !c.ok) {
3901
- const O = new CustomEvent("submit:error", {
3936
+ const D = new CustomEvent("submit:error", {
3902
3937
  detail: {
3903
3938
  error: m,
3904
3939
  status: c.status
3905
3940
  }
3906
3941
  });
3907
3942
  if ((g = this.$refs.formRef) != null && g.nativeElement && ((P = this.$refs.formRef) == null || P.nativeElement.dispatchEvent(
3908
- O
3909
- ), O.defaultPrevented))
3943
+ D
3944
+ ), D.defaultPrevented))
3910
3945
  return;
3911
3946
  this.responseData = m, this.formState = "error";
3912
- let B = this.errorMessagePath ? it(m, this.errorMessagePath) : m.message || m.error || m;
3947
+ let B = this.errorMessagePath ? mt(m, this.errorMessagePath) : m.message || m.error || m;
3913
3948
  typeof B != "string" && (B = JSON.stringify(B)), this.formErrorMessage = B, this.mergeNewRootState({
3914
3949
  formErrorMessage: B
3915
3950
  });
3916
3951
  return;
3917
3952
  }
3918
3953
  if (this.responseData = m, this.formState = c.ok ? "success" : "error", c.ok) {
3919
- const O = new CustomEvent("submit:success", {
3954
+ const D = new CustomEvent("submit:success", {
3920
3955
  detail: {
3921
3956
  res: c,
3922
3957
  body: m
3923
3958
  }
3924
3959
  });
3925
3960
  if (this.$refs.formRef) {
3926
- if (this.$refs.formRef.dispatchEvent(O), O.defaultPrevented)
3961
+ if (this.$refs.formRef.dispatchEvent(D), D.defaultPrevented)
3927
3962
  return;
3928
3963
  this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
3929
3964
  }
@@ -3951,43 +3986,43 @@ const Br = /* @__PURE__ */ v(Er, [["render", Ar]]), Vr = {
3951
3986
  }
3952
3987
  }
3953
3988
  }
3954
- }), Or = ["validate", "action", "method", "name"], Ur = {
3989
+ }), Yr = ["validate", "action", "method", "name"], Xr = {
3955
3990
  key: 2,
3956
3991
  class: "builder-form-error-text pre-2oa2wtipkzk"
3957
3992
  };
3958
- function xr(e, t, n, o, r, i) {
3959
- const s = k("Blocks");
3960
- return d(), h("form", I({
3993
+ function Zr(e, t, n, o, r, i) {
3994
+ const s = v("Blocks");
3995
+ return u(), h("form", I({
3961
3996
  validate: e.validate,
3962
3997
  ref: "formRef",
3963
3998
  action: !e.sendWithJs && e.action,
3964
3999
  method: e.method,
3965
4000
  name: e.name,
3966
- onSubmit: t[0] || (t[0] = async (l) => e.onSubmit(l))
4001
+ onSubmit: t[0] || (t[0] = async (a) => e.onSubmit(a))
3967
4002
  }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3968
4003
  V(e.$slots, "default", {}, void 0, !0),
3969
- e.submissionState() === "error" ? (d(), S(s, {
4004
+ e.submissionState() === "error" ? (u(), k(s, {
3970
4005
  key: 0,
3971
4006
  path: "errorMessage",
3972
4007
  blocks: e.errorMessage,
3973
4008
  context: e.builderContext
3974
4009
  }, null, 8, ["blocks", "context"])) : T("", !0),
3975
- e.submissionState() === "sending" ? (d(), S(s, {
4010
+ e.submissionState() === "sending" ? (u(), k(s, {
3976
4011
  key: 1,
3977
4012
  path: "sendingMessage",
3978
4013
  blocks: e.sendingMessage,
3979
4014
  context: e.builderContext
3980
4015
  }, null, 8, ["blocks", "context"])) : T("", !0),
3981
- e.submissionState() === "error" && e.responseData ? (d(), h("pre", Ur, de(e.errorResponse(e.responseData)), 1)) : T("", !0),
3982
- e.submissionState() === "success" ? (d(), S(s, {
4016
+ e.submissionState() === "error" && e.responseData ? (u(), h("pre", Xr, pe(e.errorResponse(e.responseData)), 1)) : T("", !0),
4017
+ e.submissionState() === "success" ? (u(), k(s, {
3983
4018
  key: 3,
3984
4019
  path: "successMessage",
3985
4020
  blocks: e.successMessage,
3986
4021
  context: e.builderContext
3987
4022
  }, null, 8, ["blocks", "context"])) : T("", !0)
3988
- ], 16, Or);
4023
+ ], 16, Yr);
3989
4024
  }
3990
- const Fr = /* @__PURE__ */ v(Dr, [["render", xr], ["__scopeId", "data-v-77c7888c"]]), Lr = {
4025
+ const ei = /* @__PURE__ */ S(Qr, [["render", Zr], ["__scopeId", "data-v-77c7888c"]]), ti = {
3991
4026
  name: "Form:Input",
3992
4027
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
3993
4028
  inputs: [
@@ -4038,7 +4073,7 @@ const Fr = /* @__PURE__ */ v(Dr, [["render", xr], ["__scopeId", "data-v-77c7888c
4038
4073
  borderStyle: "solid",
4039
4074
  borderColor: "#ccc"
4040
4075
  }
4041
- }, Hr = y({
4076
+ }, ni = y({
4042
4077
  name: "builder-form-input-component",
4043
4078
  props: [
4044
4079
  "attributes",
@@ -4052,9 +4087,9 @@ const Fr = /* @__PURE__ */ v(Dr, [["render", xr], ["__scopeId", "data-v-77c7888c
4052
4087
  data() {
4053
4088
  return { isEditing: A, filterAttrs: N };
4054
4089
  }
4055
- }), Mr = ["placeholder", "type", "name", "value", "defaultValue", "required"];
4056
- function zr(e, t, n, o, r, i) {
4057
- return d(), h("input", I({
4090
+ }), oi = ["placeholder", "type", "name", "value", "defaultValue", "required"];
4091
+ function ri(e, t, n, o, r, i) {
4092
+ return u(), h("input", I({
4058
4093
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
4059
4094
  placeholder: e.placeholder,
4060
4095
  type: e.type,
@@ -4062,9 +4097,9 @@ function zr(e, t, n, o, r, i) {
4062
4097
  value: e.value,
4063
4098
  defaultValue: e.defaultValue,
4064
4099
  required: e.required
4065
- }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Mr);
4100
+ }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, oi);
4066
4101
  }
4067
- const jr = /* @__PURE__ */ v(Hr, [["render", zr]]), qr = {
4102
+ const ii = /* @__PURE__ */ S(ni, [["render", ri]]), si = {
4068
4103
  name: "Form:Select",
4069
4104
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
4070
4105
  defaultStyles: {
@@ -4106,28 +4141,28 @@ const jr = /* @__PURE__ */ v(Hr, [["render", zr]]), qr = {
4106
4141
  }],
4107
4142
  static: !0,
4108
4143
  noWrap: !0
4109
- }, Kr = y({
4144
+ }, ai = y({
4110
4145
  name: "builder-select-component",
4111
4146
  props: ["attributes", "value", "defaultValue", "name", "required", "options"],
4112
4147
  data() {
4113
4148
  return { isEditing: A, filterAttrs: N };
4114
4149
  }
4115
- }), Jr = ["value", "defaultValue", "name", "required"], Gr = ["value"];
4116
- function Qr(e, t, n, o, r, i) {
4117
- return d(), h("select", I({
4150
+ }), li = ["value", "defaultValue", "name", "required"], ci = ["value"];
4151
+ function di(e, t, n, o, r, i) {
4152
+ return u(), h("select", I({
4118
4153
  value: e.value,
4119
4154
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
4120
4155
  defaultValue: e.defaultValue,
4121
4156
  name: e.name,
4122
4157
  required: e.required
4123
4158
  }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4124
- (d(!0), h(w, null, x(e.options, (s, l) => (d(), h("option", {
4125
- key: `${s.name}-${l}`,
4159
+ (u(!0), h(w, null, x(e.options, (s, a) => (u(), h("option", {
4160
+ key: `${s.name}-${a}`,
4126
4161
  value: s.value
4127
- }, de(s.name || s.value), 9, Gr))), 128))
4128
- ], 16, Jr);
4162
+ }, pe(s.name || s.value), 9, ci))), 128))
4163
+ ], 16, li);
4129
4164
  }
4130
- const Yr = /* @__PURE__ */ v(Kr, [["render", Qr]]), _r = {
4165
+ const ui = /* @__PURE__ */ S(ai, [["render", di]]), pi = {
4131
4166
  name: "Form:SubmitButton",
4132
4167
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
4133
4168
  defaultStyles: {
@@ -4152,17 +4187,17 @@ const Yr = /* @__PURE__ */ v(Kr, [["render", Qr]]), _r = {
4152
4187
  // that only shows if advanced setting is flipped
4153
4188
  // TODO: defaultChildren
4154
4189
  // canHaveChildren: true,
4155
- }, Xr = y({
4190
+ }, mi = y({
4156
4191
  name: "builder-submit-button",
4157
4192
  props: ["attributes", "text"],
4158
4193
  data() {
4159
4194
  return { filterAttrs: N };
4160
4195
  }
4161
4196
  });
4162
- function Zr(e, t, n, o, r, i) {
4163
- return d(), h("button", I({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), de(e.text), 17);
4197
+ function hi(e, t, n, o, r, i) {
4198
+ return u(), h("button", I({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), pe(e.text), 17);
4164
4199
  }
4165
- const ei = /* @__PURE__ */ v(Xr, [["render", Zr]]), ti = {
4200
+ const fi = /* @__PURE__ */ S(mi, [["render", hi]]), bi = {
4166
4201
  name: "Form:TextArea",
4167
4202
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
4168
4203
  inputs: [{
@@ -4198,7 +4233,7 @@ const ei = /* @__PURE__ */ v(Xr, [["render", Zr]]), ti = {
4198
4233
  },
4199
4234
  static: !0,
4200
4235
  noWrap: !0
4201
- }, ni = y({
4236
+ }, gi = y({
4202
4237
  name: "builder-textarea",
4203
4238
  props: [
4204
4239
  "attributes",
@@ -4211,17 +4246,17 @@ const ei = /* @__PURE__ */ v(Xr, [["render", Zr]]), ti = {
4211
4246
  data() {
4212
4247
  return { filterAttrs: N };
4213
4248
  }
4214
- }), oi = ["placeholder", "name", "value", "defaultValue", "required"];
4215
- function ri(e, t, n, o, r, i) {
4216
- return d(), h("textarea", I({
4249
+ }), yi = ["placeholder", "name", "value", "defaultValue", "required"];
4250
+ function Si(e, t, n, o, r, i) {
4251
+ return u(), h("textarea", I({
4217
4252
  placeholder: e.placeholder,
4218
4253
  name: e.name,
4219
4254
  value: e.value,
4220
4255
  defaultValue: e.defaultValue,
4221
4256
  required: e.required
4222
- }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, oi);
4257
+ }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, yi);
4223
4258
  }
4224
- const ii = /* @__PURE__ */ v(ni, [["render", ri]]), si = {
4259
+ const ki = /* @__PURE__ */ S(gi, [["render", Si]]), vi = {
4225
4260
  name: "Raw:Img",
4226
4261
  hideFromInsertMenu: !0,
4227
4262
  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",
@@ -4229,7 +4264,7 @@ const ii = /* @__PURE__ */ v(ni, [["render", ri]]), si = {
4229
4264
  name: "image",
4230
4265
  bubble: !0,
4231
4266
  type: "file",
4232
- allowedFileTypes: Ne,
4267
+ allowedFileTypes: We,
4233
4268
  required: !0
4234
4269
  }, {
4235
4270
  name: "backgroundSize",
@@ -4265,7 +4300,7 @@ const ii = /* @__PURE__ */ v(ni, [["render", ri]]), si = {
4265
4300
  defaultValue: 0.7041
4266
4301
  }],
4267
4302
  noWrap: !0
4268
- }, ai = y({
4303
+ }, Ci = y({
4269
4304
  name: "builder-img-component",
4270
4305
  props: [
4271
4306
  "imgSrc",
@@ -4284,21 +4319,21 @@ const ii = /* @__PURE__ */ v(ni, [["render", ri]]), si = {
4284
4319
  srcSetToUse() {
4285
4320
  const e = this.imgSrc || this.image;
4286
4321
  if (!(!e || typeof e != "string") && e.match(/builder\.io/))
4287
- return oe(e);
4322
+ return se(e);
4288
4323
  },
4289
4324
  imgAttrs() {
4290
4325
  const e = {
4291
4326
  ...N(this.attributes, "v-on:", !1),
4292
4327
  ...N(this.attributes, "v-on:", !0),
4293
- [M()]: `builder-raw-img ${this.attributes[M()] || ""}`
4328
+ [H()]: `builder-raw-img ${this.attributes[H()] || ""}`
4294
4329
  };
4295
4330
  return delete e.style, e;
4296
4331
  }
4297
4332
  }
4298
- }), li = ["alt", "title", "src"];
4299
- function ci(e, t, n, o, r, i) {
4333
+ }), Ti = ["alt", "title", "src"];
4334
+ function wi(e, t, n, o, r, i) {
4300
4335
  var s;
4301
- return d(), h("img", I({
4336
+ return u(), h("img", I({
4302
4337
  loading: "lazy",
4303
4338
  key: e.isEditing() && e.imgSrc || "default-key",
4304
4339
  alt: e.altText,
@@ -4310,9 +4345,9 @@ function ci(e, t, n, o, r, i) {
4310
4345
  aspectRatio: e.aspectRatio || void 0,
4311
4346
  ...((s = e.attributes) == null ? void 0 : s.style) || {}
4312
4347
  }
4313
- }, e.imgAttrs), null, 16, li);
4348
+ }, e.imgAttrs), null, 16, Ti);
4314
4349
  }
4315
- const di = /* @__PURE__ */ v(ai, [["render", ci]]), ui = {
4350
+ const Ii = /* @__PURE__ */ S(Ci, [["render", wi]]), $i = {
4316
4351
  name: "Video",
4317
4352
  canHaveChildren: !0,
4318
4353
  defaultStyles: {
@@ -4323,14 +4358,14 @@ const di = /* @__PURE__ */ v(ai, [["render", ci]]), ui = {
4323
4358
  inputs: [{
4324
4359
  name: "video",
4325
4360
  type: "file",
4326
- allowedFileTypes: _o,
4361
+ allowedFileTypes: pr,
4327
4362
  bubble: !0,
4328
4363
  defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
4329
4364
  required: !0
4330
4365
  }, {
4331
4366
  name: "posterImage",
4332
4367
  type: "file",
4333
- allowedFileTypes: Ne,
4368
+ allowedFileTypes: We,
4334
4369
  helperText: "Image to show before the video plays"
4335
4370
  }, {
4336
4371
  name: "autoPlay",
@@ -4396,7 +4431,7 @@ const di = /* @__PURE__ */ v(ai, [["render", ci]]), ui = {
4396
4431
  shouldReceiveBuilderProps: {
4397
4432
  builderBlock: !0
4398
4433
  }
4399
- }, pi = y({
4434
+ }, Ri = y({
4400
4435
  name: "builder-video",
4401
4436
  props: [
4402
4437
  "lazyLoad",
@@ -4469,16 +4504,16 @@ const di = /* @__PURE__ */ v(ai, [["render", ci]]), ui = {
4469
4504
  };
4470
4505
  }
4471
4506
  }
4472
- }), mi = { style: {
4507
+ }), Ei = { style: {
4473
4508
  position: "relative"
4474
- } }, hi = ["preload", "poster"], fi = {
4509
+ } }, Pi = ["preload", "poster"], Ai = {
4475
4510
  key: 1,
4476
4511
  style: {
4477
4512
  display: "flex",
4478
4513
  flexDirection: "column",
4479
4514
  alignItems: "stretch"
4480
4515
  }
4481
- }, bi = {
4516
+ }, Bi = {
4482
4517
  key: 2,
4483
4518
  style: {
4484
4519
  pointerEvents: "none",
@@ -4492,9 +4527,9 @@ const di = /* @__PURE__ */ v(ai, [["render", ci]]), ui = {
4492
4527
  height: "100%"
4493
4528
  }
4494
4529
  };
4495
- function gi(e, t, n, o, r, i) {
4496
- var s, l, a, u, p, b, c;
4497
- return d(), h("div", mi, [
4530
+ function Vi(e, t, n, o, r, i) {
4531
+ var s, a, l, d, p, b, c;
4532
+ return u(), h("div", Ei, [
4498
4533
  K("video", I({
4499
4534
  class: "builder-video",
4500
4535
  ref: "videoRef",
@@ -4522,85 +4557,87 @@ function gi(e, t, n, o, r, i) {
4522
4557
  src: e.video
4523
4558
  }
4524
4559
  ), null, 16)
4525
- ], 16, hi),
4526
- e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), h("div", {
4560
+ ], 16, Pi),
4561
+ e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length)) ? (u(), h("div", {
4527
4562
  key: 0,
4528
- style: H({
4563
+ style: M({
4529
4564
  width: "100%",
4530
4565
  paddingTop: e.aspectRatio * 100 + "%",
4531
4566
  pointerEvents: "none",
4532
4567
  fontSize: "0px"
4533
4568
  })
4534
4569
  }, null, 4)) : T("", !0),
4535
- (p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length && e.fitContent ? (d(), h("div", fi, [
4570
+ (p = (d = e.builderBlock) == null ? void 0 : d.children) != null && p.length && e.fitContent ? (u(), h("div", Ai, [
4536
4571
  V(e.$slots, "default")
4537
4572
  ])) : T("", !0),
4538
- (c = (b = e.builderBlock) == null ? void 0 : b.children) != null && c.length && !e.fitContent ? (d(), h("div", bi, [
4573
+ (c = (b = e.builderBlock) == null ? void 0 : b.children) != null && c.length && !e.fitContent ? (u(), h("div", Bi, [
4539
4574
  V(e.$slots, "default")
4540
4575
  ])) : T("", !0)
4541
4576
  ]);
4542
4577
  }
4543
- const yi = /* @__PURE__ */ v(pi, [["render", gi]]), vi = () => [{
4544
- component: wr,
4545
- ...Sr
4546
- }, {
4547
- component: Br,
4548
- ...Ir
4549
- }, {
4578
+ const Ni = /* @__PURE__ */ S(Ri, [["render", Vi]]), Wi = () => [{
4550
4579
  component: Fr,
4551
- ...Vr
4580
+ ...Or
4552
4581
  }, {
4553
- component: jr,
4582
+ component: Kr,
4554
4583
  ...Lr
4555
4584
  }, {
4556
4585
  component: ei,
4557
- ..._r
4558
- }, {
4559
- component: Yr,
4560
- ...qr
4586
+ ...Gr
4561
4587
  }, {
4562
4588
  component: ii,
4563
4589
  ...ti
4564
4590
  }, {
4565
- component: di,
4591
+ component: fi,
4592
+ ...pi
4593
+ }, {
4594
+ component: ui,
4566
4595
  ...si
4567
4596
  }, {
4568
- component: yi,
4569
- ...ui
4570
- }], Ye = () => [{
4571
- component: jt,
4572
- ...Go
4597
+ component: ki,
4598
+ ...bi
4573
4599
  }, {
4574
- component: fo,
4575
- ...Qo
4600
+ component: Ii,
4601
+ ...vi
4576
4602
  }, {
4577
- component: yo,
4578
- ...Yo
4603
+ component: Ni,
4604
+ ...$i
4605
+ }];
4606
+ let re;
4607
+ const nt = () => re || (re = [{
4608
+ component: nn,
4609
+ ...cr
4579
4610
  }, {
4580
- component: $o,
4581
- ...Xo
4611
+ component: Ao,
4612
+ ...dr
4582
4613
  }, {
4583
- component: Po,
4584
- ...or
4614
+ component: No,
4615
+ ...ur
4616
+ }, {
4617
+ component: Mo,
4618
+ ...mr
4585
4619
  }, {
4586
- component: ar,
4587
- ...rr
4620
+ component: zo,
4621
+ ...yr
4622
+ }, {
4623
+ component: Cr,
4624
+ ...Sr
4588
4625
  }, {
4589
- component: os,
4590
- ...lr
4626
+ component: ks,
4627
+ ...Tr
4591
4628
  }, {
4592
- component: vr,
4593
- ...fr
4594
- }, ...Tt.includes(R) ? [{
4595
- component: nr,
4596
- ...Zo
4629
+ component: Wr,
4630
+ ...Ar
4631
+ }, ...Bt.includes(E) ? [{
4632
+ component: gr,
4633
+ ...hr
4597
4634
  }] : [], {
4598
- component: hr,
4599
- ...cr
4635
+ component: Pr,
4636
+ ...wr
4600
4637
  }, {
4601
- component: Jo,
4602
- ...Mo
4603
- }, ...vi()], Si = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
4638
+ component: lr,
4639
+ ...or
4640
+ }, ...Wi()], re), Oi = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
4604
4641
  function getAndSetVariantId() {
4605
4642
  function setCookie(name, value, days) {
4606
4643
  let expires = '';
@@ -4659,7 +4696,7 @@ const yi = /* @__PURE__ */ v(pi, [["render", gi]]), vi = () => [{
4659
4696
  }).join('');
4660
4697
  styleEl.innerHTML = newStyleStr;
4661
4698
  }
4662
- }`, ki = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4699
+ }`, Di = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4663
4700
  if (!navigator.cookieEnabled) {
4664
4701
  return;
4665
4702
  }
@@ -4693,37 +4730,37 @@ const yi = /* @__PURE__ */ v(pi, [["render", gi]]), vi = () => [{
4693
4730
  thisScriptEl?.remove();
4694
4731
  }
4695
4732
  return;
4696
- }`, Te = "builderIoAbTest", we = "builderIoRenderContent", ie = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4733
+ }`, Ie = "builderIoAbTest", $e = "builderIoRenderContent", le = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4697
4734
  ...t,
4698
4735
  testVariationId: t.id,
4699
4736
  id: e == null ? void 0 : e.id
4700
- })), Ci = ({
4737
+ })), Ui = ({
4701
4738
  canTrack: e,
4702
4739
  content: t
4703
- }) => !(!(ie(t).length > 0) || !e), Ti = (e) => e === "react" || e === "reactNative", wi = R === "angular", De = Ti(R), Ii = () => `
4740
+ }) => !(!(le(t).length > 0) || !e), xi = (e) => e === "react" || e === "reactNative", Fi = E === "angular", De = xi(E), Li = () => `
4704
4741
  (function() {
4705
- if (!window.${Te}) {
4706
- window.${Te} = ${Si};
4742
+ if (!window.${Ie}) {
4743
+ window.${Ie} = ${Oi};
4707
4744
  }
4708
- if (!window.${we}) {
4709
- window.${we} = ${ki};
4745
+ if (!window.${$e}) {
4746
+ window.${$e} = ${Di};
4710
4747
  }${De ? `
4711
4748
  var thisScriptEl = document.currentScript;
4712
4749
  if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
4713
4750
  })();
4714
- `, $i = (e, t) => `
4715
- window.${Te}(
4716
- "${t}",${JSON.stringify(e)}, ${De}, ${wi}
4717
- )`, Ri = ({
4751
+ `, Mi = (e, t) => `
4752
+ window.${Ie}(
4753
+ "${t}",${JSON.stringify(e)}, ${De}, ${Fi}
4754
+ )`, Hi = ({
4718
4755
  contentId: e,
4719
4756
  variationId: t
4720
- }) => `window.${we}(
4757
+ }) => `window.${$e}(
4721
4758
  "${t}", "${e}", ${De}
4722
4759
  )`;
4723
- function _e(e) {
4760
+ function ot(e) {
4724
4761
  return Math.round(e * 1e3) / 1e3;
4725
4762
  }
4726
- const Ei = (e, t, n = !0) => {
4763
+ const ji = (e, t, n = !0) => {
4727
4764
  if (!(e instanceof HTMLElement))
4728
4765
  return null;
4729
4766
  let o = n ? e : e.parentElement;
@@ -4734,35 +4771,35 @@ const Ei = (e, t, n = !0) => {
4734
4771
  return o;
4735
4772
  } while (o = o.parentElement);
4736
4773
  return null;
4737
- }, Pi = (e) => Ei(e, (t) => {
4774
+ }, zi = (e) => ji(e, (t) => {
4738
4775
  const n = t.getAttribute("builder-id") || t.id;
4739
4776
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
4740
- }), Xe = ({
4777
+ }), rt = ({
4741
4778
  event: e,
4742
4779
  target: t
4743
4780
  }) => {
4744
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = _e(o / n.width), s = _e(r / n.height);
4781
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = ot(o / n.width), s = ot(r / n.height);
4745
4782
  return {
4746
4783
  x: i,
4747
4784
  y: s
4748
4785
  };
4749
- }, Ai = (e) => {
4750
- const t = e.target, n = t && Pi(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4786
+ }, qi = (e) => {
4787
+ const t = e.target, n = t && zi(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4751
4788
  return {
4752
4789
  targetBuilderElement: o || void 0,
4753
4790
  metadata: {
4754
- targetOffset: t ? Xe({
4791
+ targetOffset: t ? rt({
4755
4792
  event: e,
4756
4793
  target: t
4757
4794
  }) : void 0,
4758
- builderTargetOffset: n ? Xe({
4795
+ builderTargetOffset: n ? rt({
4759
4796
  event: e,
4760
4797
  target: n
4761
4798
  }) : void 0,
4762
4799
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
4763
4800
  }
4764
4801
  };
4765
- }, Bi = ["svelte", "qwik", "vue"], Vi = () => Bi.includes(R) && (A() || Ee()), Ni = (e) => {
4802
+ }, Ki = ["svelte", "qwik", "vue"], Gi = () => Ki.includes(E) && (A() || me()), Ji = (e) => {
4766
4803
  var i;
4767
4804
  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);
4768
4805
  let r = "";
@@ -4777,27 +4814,27 @@ font-weight: 400;
4777
4814
  for (const s in e.files) {
4778
4815
  if (!(String(Number(s)) === s))
4779
4816
  continue;
4780
- const a = e.files[s];
4781
- a && a !== o && (r += `
4817
+ const l = e.files[s];
4818
+ l && l !== o && (r += `
4782
4819
  @font-face {
4783
4820
  font-family: "${t}";
4784
- src: url('${a}') format('woff2');
4821
+ src: url('${l}') format('woff2');
4785
4822
  font-display: fallback;
4786
4823
  font-weight: ${s};
4787
4824
  }
4788
4825
  `.trim());
4789
4826
  }
4790
4827
  return r;
4791
- }, Wi = ({
4828
+ }, _i = ({
4792
4829
  customFonts: e
4793
4830
  }) => {
4794
4831
  var t;
4795
- return ((t = e == null ? void 0 : e.map((n) => Ni(n))) == null ? void 0 : t.join(" ")) || "";
4796
- }, Di = ({
4832
+ return ((t = e == null ? void 0 : e.map((n) => Ji(n))) == null ? void 0 : t.join(" ")) || "";
4833
+ }, Qi = ({
4797
4834
  cssCode: e,
4798
4835
  contentId: t
4799
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Oi = `
4800
- .builder-button {
4836
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Yi = `
4837
+ :where(.builder-button) {
4801
4838
  all: unset;
4802
4839
  }
4803
4840
 
@@ -4813,9 +4850,9 @@ font-weight: ${s};
4813
4850
  text-align: inherit;
4814
4851
  font-family: inherit;
4815
4852
  }
4816
- `, Ui = (e) => e ? "" : Oi, xi = (e) => `variant-${e}`, Fi = y({
4853
+ `, Xi = (e) => e ? "" : Yi, Zi = (e) => `variant-${e}`, es = y({
4817
4854
  name: "enable-editor",
4818
- components: { DynamicDiv: te },
4855
+ components: { DynamicDiv: ne },
4819
4856
  props: [
4820
4857
  "isNestedRender",
4821
4858
  "builderContextSignal",
@@ -4845,15 +4882,15 @@ font-weight: ${s};
4845
4882
  httpReqsData: {},
4846
4883
  httpReqsPending: {},
4847
4884
  clicked: !1,
4848
- builderContext: be,
4849
- needsElementRefDivForEditing: Vi,
4850
- getWrapperClassName: xi
4885
+ builderContext: Se,
4886
+ needsElementRefDivForEditing: Gi,
4887
+ getWrapperClassName: Zi
4851
4888
  };
4852
4889
  },
4853
4890
  provide() {
4854
4891
  const e = this;
4855
4892
  return {
4856
- [be.key]: e.builderContextSignal
4893
+ [Se.key]: e.builderContextSignal
4857
4894
  };
4858
4895
  },
4859
4896
  created() {
@@ -4861,26 +4898,26 @@ font-weight: ${s};
4861
4898
  },
4862
4899
  mounted() {
4863
4900
  var e, t, n;
4864
- if (E()) {
4901
+ if (R()) {
4865
4902
  A() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4866
4903
  new CustomEvent("initeditingbldr")
4867
4904
  );
4868
- const o = this.builderContextSignal.content && J(this.canTrack), r = $e({
4905
+ const o = this.builderContextSignal.content && G(this.canTrack), r = Re({
4869
4906
  name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
4870
4907
  canTrack: !0
4871
4908
  }), i = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
4872
4909
  if (o && i === r) {
4873
- const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id, l = this.apiKey;
4874
- Ue({
4910
+ const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id, a = this.apiKey;
4911
+ xe({
4875
4912
  apiHost: this.apiHost,
4876
4913
  type: "impression",
4877
4914
  canTrack: !0,
4878
4915
  contentId: s,
4879
- apiKey: l,
4916
+ apiKey: a,
4880
4917
  variationId: r !== s ? r : void 0
4881
4918
  });
4882
4919
  }
4883
- Ee() && !A() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4920
+ me() && !A() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4884
4921
  new CustomEvent("initpreviewingbldr")
4885
4922
  );
4886
4923
  }
@@ -4922,7 +4959,7 @@ font-weight: ${s};
4922
4959
  }
4923
4960
  },
4924
4961
  unmounted() {
4925
- E() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
4962
+ R() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
4926
4963
  "builder:component:stateChangeListenerActivated",
4927
4964
  this.emitStateUpdate
4928
4965
  ));
@@ -4965,7 +5002,7 @@ font-weight: ${s};
4965
5002
  this.builderContextSignal.rootSetState ? (r = (o = this.builderContextSignal).rootSetState) == null || r.call(o, n) : this.builderContextSignal.rootState = n, this.builderContextSignal.rootSetState ? this.builderContextSignal.rootSetState(n) : this.builderContextSignal.rootState = n;
4966
5003
  },
4967
5004
  mergeNewContent(e, t) {
4968
- var o, r, i, s, l;
5005
+ var o, r, i, s, a;
4969
5006
  const n = {
4970
5007
  ...this.builderContextSignal.content,
4971
5008
  ...e,
@@ -4976,13 +5013,13 @@ font-weight: ${s};
4976
5013
  meta: {
4977
5014
  ...(r = this.builderContextSignal.content) == null ? void 0 : r.meta,
4978
5015
  ...e == null ? void 0 : e.meta,
4979
- breakpoints: ((i = e == null ? void 0 : e.meta) == null ? void 0 : i.breakpoints) || ((l = (s = this.builderContextSignal.content) == null ? void 0 : s.meta) == null ? void 0 : l.breakpoints)
5016
+ breakpoints: ((i = e == null ? void 0 : e.meta) == null ? void 0 : i.breakpoints) || ((a = (s = this.builderContextSignal.content) == null ? void 0 : s.meta) == null ? void 0 : a.breakpoints)
4980
5017
  }
4981
5018
  };
4982
5019
  this.builderContextSignal.content = n;
4983
5020
  },
4984
5021
  processMessage(e) {
4985
- return dt({
5022
+ return St({
4986
5023
  model: this.model,
4987
5024
  trustedHosts: this.trustedHosts,
4988
5025
  callbacks: {
@@ -4996,7 +5033,7 @@ font-weight: ${s};
4996
5033
  });
4997
5034
  },
4998
5035
  animation: (t) => {
4999
- gt(t);
5036
+ $t(t);
5000
5037
  },
5001
5038
  contentUpdate: (t, n) => {
5002
5039
  this.mergeNewContent(t, n);
@@ -5011,14 +5048,14 @@ font-weight: ${s};
5011
5048
  var t, n;
5012
5049
  if (this.builderContextSignal.content) {
5013
5050
  const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
5014
- Ue({
5051
+ xe({
5015
5052
  apiHost: this.apiHost,
5016
5053
  type: "click",
5017
- canTrack: J(this.canTrack),
5054
+ canTrack: G(this.canTrack),
5018
5055
  contentId: r,
5019
5056
  apiKey: this.apiKey,
5020
5057
  variationId: o !== r ? o : void 0,
5021
- ...Ai(e),
5058
+ ...qi(e),
5022
5059
  unique: !this.clicked
5023
5060
  });
5024
5061
  }
@@ -5036,10 +5073,10 @@ font-weight: ${s};
5036
5073
  return;
5037
5074
  const s = i ? r.request.url : r;
5038
5075
  this.httpReqsPending[o] = !0;
5039
- const l = s.replace(
5076
+ const a = s.replace(
5040
5077
  /{{([^}]+)}}/g,
5041
5078
  (p, b) => String(
5042
- ee({
5079
+ te({
5043
5080
  code: b,
5044
5081
  context: this.context || {},
5045
5082
  localState: void 0,
@@ -5047,22 +5084,22 @@ font-weight: ${s};
5047
5084
  rootSetState: this.builderContextSignal.rootSetState
5048
5085
  })
5049
5086
  )
5050
- ), a = i ? {
5051
- url: l,
5087
+ ), l = i ? {
5088
+ url: a,
5052
5089
  method: r.request.method,
5053
5090
  headers: r.request.headers,
5054
5091
  body: r.request.body
5055
5092
  } : {
5056
- url: l,
5093
+ url: a,
5057
5094
  method: "GET"
5058
5095
  };
5059
- ot(JSON.stringify(a));
5060
- const u = {
5061
- method: a.method,
5062
- headers: a.headers,
5063
- body: a.body
5096
+ ut(JSON.stringify(l));
5097
+ const d = {
5098
+ method: l.method,
5099
+ headers: l.headers,
5100
+ body: l.body
5064
5101
  };
5065
- a.method === "GET" && delete u.body, fetch(a.url, u).then((p) => p.json()).then((p) => {
5102
+ l.method === "GET" && delete d.body, fetch(l.url, d).then((p) => p.json()).then((p) => {
5066
5103
  this.mergeNewRootState({
5067
5104
  [o]: p
5068
5105
  }), this.httpReqsData[o] = !0;
@@ -5084,7 +5121,7 @@ font-weight: ${s};
5084
5121
  "builder:component:stateChange",
5085
5122
  {
5086
5123
  detail: {
5087
- state: Ie(this.builderContextSignal.rootState),
5124
+ state: _t(this.builderContextSignal.rootState),
5088
5125
  ref: {
5089
5126
  name: this.model
5090
5127
  }
@@ -5094,7 +5131,7 @@ font-weight: ${s};
5094
5131
  );
5095
5132
  },
5096
5133
  elementRef_onIniteditingbldr(e) {
5097
- window.addEventListener("message", this.processMessage), ct({
5134
+ window.addEventListener("message", this.processMessage), yt({
5098
5135
  ...this.locale ? {
5099
5136
  locale: this.locale
5100
5137
  } : {},
@@ -5114,7 +5151,7 @@ font-weight: ${s};
5114
5151
  ).forEach((t) => {
5115
5152
  var n, o;
5116
5153
  if (!((n = t.models) != null && n.length) || t.models.includes(this.model)) {
5117
- const r = cn(t);
5154
+ const r = Tn(t);
5118
5155
  (o = window.parent) == null || o.postMessage(r, "*");
5119
5156
  }
5120
5157
  }), window.addEventListener(
@@ -5127,7 +5164,7 @@ font-weight: ${s};
5127
5164
  const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
5128
5165
  `builder.overrides.${n}`
5129
5166
  ), r = t.get("apiKey") || t.get("builder.space");
5130
- (n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && Be({
5167
+ (n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && Ve({
5131
5168
  model: this.model,
5132
5169
  apiKey: this.apiKey,
5133
5170
  apiVersion: this.builderContextSignal.apiVersion,
@@ -5142,72 +5179,123 @@ font-weight: ${s};
5142
5179
  }
5143
5180
  }
5144
5181
  });
5145
- function Li(e, t, n, o, r, i) {
5146
- var s, l, a;
5147
- return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(_(e.ContentWrapper), I({
5182
+ function ts(e, t, n, o, r, i) {
5183
+ var s, a, l;
5184
+ return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (u(), k(X(e.ContentWrapper), I({
5148
5185
  key: 0,
5149
5186
  ref: "elementRef",
5150
- onClick: (u) => e.onClick(u),
5187
+ onClick: (d) => e.onClick(d),
5151
5188
  "builder-content-id": (s = e.builderContextSignal.content) == null ? void 0 : s.id,
5152
5189
  "builder-model": e.model,
5153
- className: e.getWrapperClassName(((l = e.content) == null ? void 0 : l.testVariationId) || ((a = e.content) == null ? void 0 : a.id)),
5190
+ className: e.getWrapperClassName(((a = e.content) == null ? void 0 : a.testVariationId) || ((l = e.content) == null ? void 0 : l.id)),
5154
5191
  style: {
5155
5192
  display: !e.builderContextSignal.content && e.needsElementRefDivForEditing() ? "none" : void 0
5156
5193
  },
5157
- onIniteditingbldr: (u) => e.elementRef_onIniteditingbldr(u),
5158
- onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
5194
+ onIniteditingbldr: (d) => e.elementRef_onIniteditingbldr(d),
5195
+ onInitpreviewingbldr: (d) => e.elementRef_onInitpreviewingbldr(d)
5159
5196
  }, { ...e.showContentProps, ...e.contentWrapperProps }), {
5160
- default: D(() => [
5197
+ default: O(() => [
5161
5198
  V(e.$slots, "default")
5162
5199
  ]),
5163
5200
  _: 3
5164
5201
  }, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : T("", !0);
5165
5202
  }
5166
- const Hi = /* @__PURE__ */ v(Fi, [["render", Li]]), Mi = y({
5203
+ const ns = /* @__PURE__ */ S(es, [["render", ts]]), os = y({
5167
5204
  name: "content-styles",
5168
- components: { InlinedStyles: ue },
5205
+ components: { InlinedStyles: he },
5169
5206
  props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
5170
5207
  data() {
5171
5208
  return {
5172
5209
  injectedStyles: `
5173
- ${Di({
5210
+ ${Qi({
5174
5211
  cssCode: this.cssCode,
5175
5212
  contentId: this.contentId
5176
5213
  })}
5177
- ${Wi({
5214
+ ${_i({
5178
5215
  customFonts: this.customFonts
5179
5216
  })}
5180
- ${Ui(this.isNestedRender)}
5217
+ ${Xi(this.isNestedRender)}
5181
5218
  `.trim()
5182
5219
  };
5183
5220
  }
5184
5221
  });
5185
- function zi(e, t, n, o, r, i) {
5186
- const s = k("InlinedStyles");
5187
- return d(), S(s, {
5222
+ function rs(e, t, n, o, r, i) {
5223
+ const s = v("InlinedStyles");
5224
+ return u(), k(s, {
5188
5225
  id: "builderio-content",
5189
5226
  styles: e.injectedStyles,
5190
5227
  nonce: e.nonce
5191
5228
  }, null, 8, ["styles", "nonce"]);
5192
5229
  }
5193
- const ji = /* @__PURE__ */ v(Mi, [["render", zi]]), qi = ({
5230
+ const is = /* @__PURE__ */ S(os, [["render", rs]]), ue = (e, t = /* @__PURE__ */ new WeakMap()) => {
5231
+ if (e === null || typeof e != "object")
5232
+ return e;
5233
+ if (t.has(e))
5234
+ return t.get(e);
5235
+ if (Array.isArray(e)) {
5236
+ const r = [];
5237
+ t.set(e, r);
5238
+ for (let i = 0; i < e.length; i++)
5239
+ r[i] = ue(e[i], t);
5240
+ return r;
5241
+ }
5242
+ const n = Object.getPrototypeOf(e);
5243
+ if (n !== Object.prototype && n !== null)
5244
+ return e;
5245
+ const o = {};
5246
+ t.set(e, o);
5247
+ for (const r of Object.keys(e)) {
5248
+ const i = ue(e[r], t);
5249
+ r === "__proto__" ? Object.defineProperty(o, r, {
5250
+ value: i,
5251
+ enumerable: !0,
5252
+ writable: !0,
5253
+ configurable: !0
5254
+ }) : o[r] = i;
5255
+ }
5256
+ return o;
5257
+ }, it = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap(), Wt = (e) => {
5258
+ const t = it.get(e);
5259
+ if (t)
5260
+ return t;
5261
+ const {
5262
+ component: n,
5263
+ ...o
5264
+ } = e, r = Pe(o);
5265
+ return it.set(e, r), r;
5266
+ }, ss = (e, t) => {
5267
+ const n = {};
5268
+ for (const o of e) {
5269
+ let r = st.get(o);
5270
+ r || (r = {
5271
+ component: t(o.component),
5272
+ ...Wt(o)
5273
+ }, st.set(o, r)), n[o.name] = r;
5274
+ }
5275
+ return n;
5276
+ }, as = (e) => {
5277
+ const t = {};
5278
+ for (const n of e)
5279
+ t[n.name] = Wt(n);
5280
+ return t;
5281
+ }, ls = ({
5194
5282
  content: e,
5195
5283
  data: t,
5196
5284
  locale: n
5197
5285
  }) => {
5198
- var i, s, l;
5199
- const o = {}, r = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.state) || {};
5200
- return (l = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || l.forEach((a) => {
5201
- a.name && a.defaultValue !== void 0 && (o[a.name] = a.defaultValue);
5286
+ var s, a, l;
5287
+ const o = {}, r = /* @__PURE__ */ new WeakMap(), i = ue(((s = e == null ? void 0 : e.data) == null ? void 0 : s.state) || {}, r);
5288
+ return (l = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || l.forEach((d) => {
5289
+ d.name && d.defaultValue !== void 0 && (o[d.name] = ue(d.defaultValue, r));
5202
5290
  }), {
5203
5291
  ...o,
5204
- ...r,
5292
+ ...i,
5205
5293
  ...t,
5206
5294
  ...n ? {
5207
5295
  locale: n
5208
5296
  } : {}
5209
5297
  };
5210
- }, Ki = ({
5298
+ }, cs = ({
5211
5299
  content: e,
5212
5300
  data: t
5213
5301
  }) => e ? {
@@ -5217,14 +5305,14 @@ const ji = /* @__PURE__ */ v(Mi, [["render", zi]]), qi = ({
5217
5305
  ...t
5218
5306
  },
5219
5307
  meta: e == null ? void 0 : e.meta
5220
- } : void 0, Ji = Rt, Gi = y({
5308
+ } : void 0, ds = Dt, us = y({
5221
5309
  name: "content-component",
5222
5310
  components: {
5223
- EnableEditor: Hi,
5224
- InlinedScript: We,
5225
- ContentStyles: ji,
5226
- Blocks: j,
5227
- DynamicDiv: te
5311
+ EnableEditor: ns,
5312
+ InlinedScript: Oe,
5313
+ ContentStyles: is,
5314
+ Blocks: z,
5315
+ DynamicDiv: ne
5228
5316
  },
5229
5317
  props: [
5230
5318
  "content",
@@ -5253,32 +5341,23 @@ const ji = /* @__PURE__ */ v(Mi, [["render", zi]]), qi = ({
5253
5341
  data() {
5254
5342
  var e, t;
5255
5343
  return {
5256
- scriptStr: Ri({
5344
+ scriptStr: Hi({
5257
5345
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
5258
5346
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
5259
5347
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
5260
5348
  contentId: (t = this.content) == null ? void 0 : t.id
5261
5349
  }),
5262
- registeredComponents: [
5263
- ...Ye(),
5264
- ...this.customComponents || []
5265
- ].reduce(
5266
- (n, { component: o, ...r }) => ({
5267
- ...n,
5268
- [r.name]: {
5269
- component: Ji(o),
5270
- ...le(r)
5271
- }
5272
- }),
5273
- {}
5350
+ registeredComponents: ss(
5351
+ [...nt(), ...this.customComponents || []],
5352
+ (n) => ds(n)
5274
5353
  ),
5275
5354
  builderContextSignal: {
5276
- content: Ki({
5355
+ content: cs({
5277
5356
  content: this.content,
5278
5357
  data: this.data
5279
5358
  }),
5280
5359
  localState: void 0,
5281
- rootState: qi({
5360
+ rootState: ls({
5282
5361
  content: this.content,
5283
5362
  data: this.data,
5284
5363
  locale: this.locale
@@ -5288,29 +5367,23 @@ const ji = /* @__PURE__ */ v(Mi, [["render", zi]]), qi = ({
5288
5367
  canTrack: this.canTrack,
5289
5368
  apiKey: this.apiKey,
5290
5369
  apiVersion: this.apiVersion,
5291
- componentInfos: [
5292
- ...Ye(),
5370
+ componentInfos: as([
5371
+ ...nt(),
5293
5372
  ...this.customComponents || []
5294
- ].reduce(
5295
- (n, { component: o, ...r }) => ({
5296
- ...n,
5297
- [r.name]: le(r)
5298
- }),
5299
- {}
5300
- ),
5373
+ ]),
5301
5374
  inheritedStyles: {},
5302
5375
  BlocksWrapper: this.blocksWrapper || "div",
5303
5376
  BlocksWrapperProps: this.blocksWrapperProps || {},
5304
5377
  nonce: this.nonce || "",
5305
5378
  model: this.model
5306
5379
  },
5307
- TARGET: R
5380
+ TARGET: E
5308
5381
  };
5309
5382
  },
5310
5383
  provide() {
5311
5384
  const e = this;
5312
5385
  return {
5313
- [rt.key]: {
5386
+ [pt.key]: {
5314
5387
  registeredComponents: e.registeredComponents
5315
5388
  }
5316
5389
  };
@@ -5321,7 +5394,7 @@ const ji = /* @__PURE__ */ v(Mi, [["render", zi]]), qi = ({
5321
5394
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
5322
5395
  );
5323
5396
  const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
5324
- e && ee({
5397
+ e && te({
5325
5398
  code: e,
5326
5399
  context: this.context || {},
5327
5400
  localState: void 0,
@@ -5354,9 +5427,9 @@ const ji = /* @__PURE__ */ v(Mi, [["render", zi]]), qi = ({
5354
5427
  }
5355
5428
  }
5356
5429
  });
5357
- function Qi(e, t, n, o, r, i) {
5358
- const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
5359
- return d(), S(u, I({
5430
+ function ps(e, t, n, o, r, i) {
5431
+ const s = v("InlinedScript"), a = v("ContentStyles"), l = v("Blocks"), d = v("EnableEditor");
5432
+ return u(), k(d, I({
5360
5433
  apiHost: e.apiHost,
5361
5434
  nonce: e.nonce,
5362
5435
  content: e.content,
@@ -5375,16 +5448,16 @@ function Qi(e, t, n, o, r, i) {
5375
5448
  trustedHosts: e.trustedHosts,
5376
5449
  isNestedRender: e.isNestedRender
5377
5450
  }, {}), {
5378
- default: D(() => {
5451
+ default: O(() => {
5379
5452
  var p, b, c, m, f, g, P;
5380
5453
  return [
5381
- e.isSsrAbTest ? (d(), S(s, {
5454
+ e.isSsrAbTest ? (u(), k(s, {
5382
5455
  key: 0,
5383
5456
  id: "builderio-variant-visibility",
5384
5457
  scriptStr: e.scriptStr,
5385
5458
  nonce: e.nonce || ""
5386
5459
  }, null, 8, ["scriptStr", "nonce"])) : T("", !0),
5387
- e.TARGET !== "reactNative" ? (d(), S(l, {
5460
+ e.TARGET !== "reactNative" ? (u(), k(a, {
5388
5461
  key: 1,
5389
5462
  nonce: e.nonce || "",
5390
5463
  isNestedRender: e.isNestedRender,
@@ -5392,7 +5465,7 @@ function Qi(e, t, n, o, r, i) {
5392
5465
  cssCode: (c = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : c.cssCode,
5393
5466
  customFonts: (f = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : f.customFonts
5394
5467
  }, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : T("", !0),
5395
- $(a, {
5468
+ $(l, {
5396
5469
  blocks: (P = (g = e.builderContextSignal.content) == null ? void 0 : g.data) == null ? void 0 : P.blocks,
5397
5470
  context: e.builderContextSignal,
5398
5471
  registeredComponents: e.registeredComponents,
@@ -5403,12 +5476,12 @@ function Qi(e, t, n, o, r, i) {
5403
5476
  _: 1
5404
5477
  }, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "enrichOptions", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
5405
5478
  }
5406
- const Yi = /* @__PURE__ */ v(Gi, [["render", Qi]]), _i = y({
5479
+ const ms = /* @__PURE__ */ S(us, [["render", ps]]), hs = y({
5407
5480
  name: "content-variants",
5408
5481
  components: {
5409
- InlinedScript: We,
5410
- InlinedStyles: ue,
5411
- ContentComponent: Yi
5482
+ InlinedScript: Oe,
5483
+ InlinedStyles: he,
5484
+ ContentComponent: ms
5412
5485
  },
5413
5486
  props: [
5414
5487
  "canTrack",
@@ -5434,16 +5507,16 @@ const Yi = /* @__PURE__ */ v(Gi, [["render", Qi]]), _i = y({
5434
5507
  ],
5435
5508
  data() {
5436
5509
  return {
5437
- shouldRenderVariants: Ci({
5438
- canTrack: J(this.canTrack),
5510
+ shouldRenderVariants: Ui({
5511
+ canTrack: G(this.canTrack),
5439
5512
  content: this.content
5440
5513
  }),
5441
- shouldEmitPersonalizationFns: xo(this.content),
5442
- SDKS_SUPPORTING_PERSONALIZATION: Tt,
5443
- getInitPersonalizationVariantsFnsScriptString: Fo,
5444
- TARGET: R,
5445
- getInitVariantsFnsScriptString: Ii,
5446
- getVariants: ie
5514
+ shouldEmitPersonalizationFns: Zo(this.content),
5515
+ SDKS_SUPPORTING_PERSONALIZATION: Bt,
5516
+ getInitPersonalizationVariantsFnsScriptString: er,
5517
+ TARGET: E,
5518
+ getInitVariantsFnsScriptString: Li,
5519
+ getVariants: le
5447
5520
  };
5448
5521
  },
5449
5522
  mounted() {
@@ -5451,8 +5524,8 @@ const Yi = /* @__PURE__ */ v(Gi, [["render", Qi]]), _i = y({
5451
5524
  computed: {
5452
5525
  updateCookieAndStylesScriptStr() {
5453
5526
  var e;
5454
- return $i(
5455
- ie(this.content).map((t) => ({
5527
+ return Mi(
5528
+ le(this.content).map((t) => ({
5456
5529
  id: t.testVariationId,
5457
5530
  testRatio: t.testRatio
5458
5531
  })),
@@ -5460,38 +5533,38 @@ const Yi = /* @__PURE__ */ v(Gi, [["render", Qi]]), _i = y({
5460
5533
  );
5461
5534
  },
5462
5535
  hideVariantsStyleString() {
5463
- return ie(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
5536
+ return le(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
5464
5537
  },
5465
5538
  defaultContent() {
5466
5539
  var e;
5467
5540
  return this.shouldRenderVariants ? {
5468
5541
  ...this.content,
5469
5542
  testVariationId: (e = this.content) == null ? void 0 : e.id
5470
- } : vn({
5543
+ } : Nn({
5471
5544
  item: this.content,
5472
- canTrack: J(this.canTrack)
5545
+ canTrack: G(this.canTrack)
5473
5546
  });
5474
5547
  }
5475
5548
  }
5476
5549
  });
5477
- function Xi(e, t, n, o, r, i) {
5478
- const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
5479
- return d(), h(w, null, [
5480
- e.shouldEmitPersonalizationFns ? (d(), h(w, { key: 0 }, [
5481
- e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (d(), S(s, {
5550
+ function fs(e, t, n, o, r, i) {
5551
+ const s = v("InlinedScript"), a = v("InlinedStyles"), l = v("ContentComponent");
5552
+ return u(), h(w, null, [
5553
+ e.shouldEmitPersonalizationFns ? (u(), h(w, { key: 0 }, [
5554
+ e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (u(), k(s, {
5482
5555
  key: 0,
5483
5556
  id: "builderio-init-personalization-variants-fns",
5484
5557
  nonce: e.nonce || "",
5485
5558
  scriptStr: e.getInitPersonalizationVariantsFnsScriptString()
5486
5559
  }, null, 8, ["nonce", "scriptStr"])) : T("", !0)
5487
5560
  ], 64)) : T("", !0),
5488
- e.shouldRenderVariants ? (d(), h(w, { key: 1 }, [
5561
+ e.shouldRenderVariants ? (u(), h(w, { key: 1 }, [
5489
5562
  $(s, {
5490
5563
  id: "builderio-init-variants-fns",
5491
5564
  scriptStr: e.getInitVariantsFnsScriptString(),
5492
5565
  nonce: e.nonce || ""
5493
5566
  }, null, 8, ["scriptStr", "nonce"]),
5494
- $(l, {
5567
+ $(a, {
5495
5568
  id: "builderio-variants",
5496
5569
  styles: e.hideVariantsStyleString,
5497
5570
  nonce: e.nonce || ""
@@ -5501,12 +5574,12 @@ function Xi(e, t, n, o, r, i) {
5501
5574
  scriptStr: e.updateCookieAndStylesScriptStr,
5502
5575
  nonce: e.nonce || ""
5503
5576
  }, null, 8, ["scriptStr", "nonce"]),
5504
- (d(!0), h(w, null, x(e.getVariants(e.content), (u, p) => (d(), S(a, I({
5505
- key: u.testVariationId,
5577
+ (u(!0), h(w, null, x(e.getVariants(e.content), (d, p) => (u(), k(l, I({
5578
+ key: d.testVariationId,
5506
5579
  apiHost: e.apiHost,
5507
5580
  isNestedRender: e.isNestedRender,
5508
5581
  nonce: e.nonce,
5509
- content: u,
5582
+ content: d,
5510
5583
  showContent: !1,
5511
5584
  model: e.model,
5512
5585
  data: e.data,
@@ -5527,7 +5600,7 @@ function Xi(e, t, n, o, r, i) {
5527
5600
  trustedHosts: e.trustedHosts
5528
5601
  }, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "enrichOptions", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
5529
5602
  ], 64)) : T("", !0),
5530
- $(a, I({
5603
+ $(l, I({
5531
5604
  apiHost: e.apiHost,
5532
5605
  nonce: e.nonce,
5533
5606
  isNestedRender: e.isNestedRender,
@@ -5555,13 +5628,13 @@ function Xi(e, t, n, o, r, i) {
5555
5628
  }), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "enrichOptions", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
5556
5629
  ], 64);
5557
5630
  }
5558
- const Zi = /* @__PURE__ */ v(_i, [["render", Xi]]), es = async ({
5631
+ const bs = /* @__PURE__ */ S(hs, [["render", fs]]), gs = async ({
5559
5632
  builderContextValue: e,
5560
5633
  symbol: t
5561
5634
  }) => {
5562
5635
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
5563
5636
  (e != null && e.apiKey))
5564
- return Be({
5637
+ return Ve({
5565
5638
  model: t.model,
5566
5639
  apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
5567
5640
  apiVersion: e.apiVersion,
@@ -5573,9 +5646,9 @@ const Zi = /* @__PURE__ */ v(_i, [["render", Xi]]), es = async ({
5573
5646
  }).catch((n) => {
5574
5647
  F.error("Could not fetch symbol content: ", n);
5575
5648
  });
5576
- }, ts = y({
5649
+ }, ys = y({
5577
5650
  name: "builder-symbol",
5578
- components: { ContentVariants: Zi, DynamicDiv: te },
5651
+ components: { ContentVariants: bs, DynamicDiv: ne },
5579
5652
  props: [
5580
5653
  "symbol",
5581
5654
  "builderComponents",
@@ -5617,7 +5690,7 @@ const Zi = /* @__PURE__ */ v(_i, [["render", Xi]]), es = async ({
5617
5690
  className() {
5618
5691
  var e, t;
5619
5692
  return [
5620
- this.attributes[M()],
5693
+ this.attributes[H()],
5621
5694
  "builder-symbol",
5622
5695
  (e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
5623
5696
  (t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
@@ -5632,7 +5705,7 @@ const Zi = /* @__PURE__ */ v(_i, [["render", Xi]]), es = async ({
5632
5705
  methods: {
5633
5706
  setContent() {
5634
5707
  var e;
5635
- this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || es({
5708
+ this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || gs({
5636
5709
  symbol: this.symbol,
5637
5710
  builderContextValue: this.builderContext
5638
5711
  }).then((t) => {
@@ -5642,18 +5715,18 @@ const Zi = /* @__PURE__ */ v(_i, [["render", Xi]]), es = async ({
5642
5715
  }
5643
5716
  }
5644
5717
  });
5645
- function ns(e, t, n, o, r, i) {
5646
- var l, a, u, p, b, c, m;
5647
- const s = k("ContentVariants");
5648
- return d(), h("div", I({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
5718
+ function Ss(e, t, n, o, r, i) {
5719
+ var a, l, d, p, b, c, m;
5720
+ const s = v("ContentVariants");
5721
+ return u(), h("div", I({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
5649
5722
  $(s, {
5650
5723
  nonce: e.builderContext.nonce,
5651
5724
  isNestedRender: !0,
5652
5725
  apiVersion: e.builderContext.apiVersion,
5653
- apiKey: (l = e.symbol) != null && l.global && ((a = e.symbol) != null && a.ownerId) ? e.symbol.ownerId : e.builderContext.apiKey,
5726
+ apiKey: (a = e.symbol) != null && a.global && ((l = e.symbol) != null && l.ownerId) ? e.symbol.ownerId : e.builderContext.apiKey,
5654
5727
  context: {
5655
5728
  ...e.builderContext.context,
5656
- symbolId: (u = e.builderBlock) == null ? void 0 : u.id
5729
+ symbolId: (d = e.builderBlock) == null ? void 0 : d.id
5657
5730
  },
5658
5731
  customComponents: e.customComponents,
5659
5732
  data: {
@@ -5670,44 +5743,44 @@ function ns(e, t, n, o, r, i) {
5670
5743
  }, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
5671
5744
  ], 16);
5672
5745
  }
5673
- const os = /* @__PURE__ */ v(ts, [["render", ns]]);
5746
+ const ks = /* @__PURE__ */ S(ys, [["render", Ss]]);
5674
5747
  export {
5675
- Dn as A,
5676
- kt as B,
5677
- fo as C,
5678
- Be as D,
5679
- ss as E,
5680
- yo as F,
5681
- bs as G,
5682
- $o as I,
5683
- Po as S,
5684
- vr as T,
5685
- yi as V,
5686
- v as _,
5687
- M as a,
5688
- be as b,
5689
- ue as c,
5690
- ms as d,
5691
- ee as e,
5692
- uo as f,
5693
- fs as g,
5694
- hs as h,
5695
- gs as i,
5696
- Ve as j,
5697
- ln as k,
5698
- jt as l,
5699
- os as m,
5700
- j as n,
5701
- Zi as o,
5702
- Ee as p,
5703
- cn as q,
5704
- as as r,
5705
- us as s,
5706
- ls as t,
5707
- cs as u,
5708
- at as v,
5709
- Ji as w,
5710
- ds as x,
5711
- ps as y,
5712
- Wn as z
5748
+ _n as A,
5749
+ At as B,
5750
+ Ao as C,
5751
+ Ve as D,
5752
+ Ts as E,
5753
+ No as F,
5754
+ Ns as G,
5755
+ Mo as I,
5756
+ zo as S,
5757
+ Wr as T,
5758
+ Ni as V,
5759
+ S as _,
5760
+ H as a,
5761
+ Se as b,
5762
+ he as c,
5763
+ As as d,
5764
+ te as e,
5765
+ $o as f,
5766
+ Vs as g,
5767
+ Bs as h,
5768
+ Ws as i,
5769
+ Ne as j,
5770
+ Cn as k,
5771
+ nn as l,
5772
+ ks as m,
5773
+ z as n,
5774
+ bs as o,
5775
+ me as p,
5776
+ Tn as q,
5777
+ ws as r,
5778
+ Es as s,
5779
+ Is as t,
5780
+ $s as u,
5781
+ bt as v,
5782
+ ds as w,
5783
+ Rs as x,
5784
+ Ps as y,
5785
+ Jn as z
5713
5786
  };