@builder.io/sdk-vue 1.1.1 → 2.0.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 (101) hide show
  1. package/lib/browser/{block-styles-IgeLKqtO.js → block-styles-cVSrkWog.js} +1 -1
  2. package/lib/browser/{block-styles-JNa4oaKg.cjs → block-styles-fmMk_gc8.cjs} +1 -1
  3. package/lib/browser/{block-wrapper-DKAcCWUl.cjs → block-wrapper-WsC3tXV8.cjs} +1 -1
  4. package/lib/browser/{block-wrapper-2dz0ANfE.js → block-wrapper-maIbj8Gi.js} +3 -3
  5. package/lib/browser/blocks/accordion/accordion.vue.d.ts +3 -3
  6. package/lib/browser/blocks/button/button.vue.d.ts +3 -3
  7. package/lib/browser/blocks/columns/columns.vue.d.ts +9 -9
  8. package/lib/browser/blocks/form/form/form.vue.d.ts +9 -9
  9. package/lib/browser/blocks/form/input/input.vue.d.ts +6 -6
  10. package/lib/browser/blocks/form/textarea/textarea.vue.d.ts +3 -3
  11. package/lib/browser/blocks/symbol/symbol.vue.d.ts +9 -9
  12. package/lib/browser/blocks/tabs/tabs.vue.d.ts +3 -3
  13. package/lib/browser/blocks/video/video.vue.d.ts +3 -3
  14. package/lib/browser/{component-ref-V2PjOzrU.js → component-ref-1N_Kijok.js} +2 -2
  15. package/lib/browser/{component-ref-QrMSo5Xp.cjs → component-ref-da6lIO9c.cjs} +1 -1
  16. package/lib/browser/components/block/block.helpers.d.ts +8 -8
  17. package/lib/browser/components/block/block.vue.d.ts +3 -3
  18. package/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +6 -6
  19. package/lib/browser/components/block/components/repeated-block.vue.d.ts +3 -3
  20. package/lib/browser/components/blocks/blocks.vue.d.ts +3 -3
  21. package/lib/browser/components/content/components/enable-editor.vue.d.ts +12 -12
  22. package/lib/browser/components/content/content.vue.d.ts +18 -18
  23. package/lib/browser/components/content-variants/content-variants.vue.d.ts +12 -12
  24. package/lib/browser/constants/sdk-version.d.ts +1 -1
  25. package/lib/browser/{get-block-properties-tGP5LRTK.cjs → get-block-properties-0QNsXkZI.cjs} +1 -1
  26. package/lib/browser/{get-block-properties-TdaLYLBc.js → get-block-properties-AuDiFohY.js} +1 -1
  27. package/lib/browser/index-7PcQ3One.cjs +166 -0
  28. package/lib/browser/{index-ZjI6yLCn.js → index-pDvo-fub.js} +577 -655
  29. package/lib/browser/index.cjs +1 -1
  30. package/lib/browser/index.mjs +1 -1
  31. package/lib/browser/{repeated-block-b1ywSZOA.cjs → repeated-block-Z2UnXIU-.cjs} +1 -1
  32. package/lib/browser/{repeated-block-N87PTuTY.js → repeated-block-nP-Etgd7.js} +2 -2
  33. package/lib/browser/style.css +1 -1
  34. package/lib/{node/block-styles-zct_8ddd.js → edge/block-styles--vY4nPqp.js} +1 -1
  35. package/lib/edge/{block-styles-k6csWHEr.cjs → block-styles-UnZvcuhz.cjs} +1 -1
  36. package/lib/edge/{block-wrapper-_oCLYjA0.js → block-wrapper-JdVK1HVZ.js} +3 -3
  37. package/lib/{node/block-wrapper-INTUvEJp.cjs → edge/block-wrapper-szOQNDWW.cjs} +1 -1
  38. package/lib/edge/blocks/accordion/accordion.vue.d.ts +3 -3
  39. package/lib/edge/blocks/button/button.vue.d.ts +3 -3
  40. package/lib/edge/blocks/columns/columns.vue.d.ts +9 -9
  41. package/lib/edge/blocks/form/form/form.vue.d.ts +9 -9
  42. package/lib/edge/blocks/form/input/input.vue.d.ts +6 -6
  43. package/lib/edge/blocks/form/textarea/textarea.vue.d.ts +3 -3
  44. package/lib/edge/blocks/symbol/symbol.vue.d.ts +9 -9
  45. package/lib/edge/blocks/tabs/tabs.vue.d.ts +3 -3
  46. package/lib/edge/blocks/video/video.vue.d.ts +3 -3
  47. package/lib/{node/component-ref-onSus3rm.cjs → edge/component-ref-7HkRGS_l.cjs} +1 -1
  48. package/lib/{node/component-ref-6qaPMg_V.js → edge/component-ref-Ffo8HUWI.js} +2 -2
  49. package/lib/edge/components/block/block.helpers.d.ts +8 -8
  50. package/lib/edge/components/block/block.vue.d.ts +3 -3
  51. package/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +6 -6
  52. package/lib/edge/components/block/components/repeated-block.vue.d.ts +3 -3
  53. package/lib/edge/components/blocks/blocks.vue.d.ts +3 -3
  54. package/lib/edge/components/content/components/enable-editor.vue.d.ts +12 -12
  55. package/lib/edge/components/content/content.vue.d.ts +18 -18
  56. package/lib/edge/components/content-variants/content-variants.vue.d.ts +12 -12
  57. package/lib/edge/constants/sdk-version.d.ts +1 -1
  58. package/lib/edge/{get-block-properties-by2fStX3.cjs → get-block-properties-dww-G4lx.cjs} +1 -1
  59. package/lib/edge/{get-block-properties-KooliJEr.js → get-block-properties-hYo7UjjZ.js} +1 -1
  60. package/lib/edge/{index-FfRBzdcb.js → index-OtE_7PIE.js} +1036 -1114
  61. package/lib/edge/{index-roTI7Hky.cjs → index-lFidbDeW.cjs} +29 -29
  62. package/lib/edge/index.cjs +1 -1
  63. package/lib/edge/index.mjs +1 -1
  64. package/lib/edge/{repeated-block-GKGq6dYq.cjs → repeated-block-IMXruThl.cjs} +1 -1
  65. package/lib/edge/{repeated-block-Bv_1I8Ud.js → repeated-block-vPgWRa-A.js} +2 -2
  66. package/lib/edge/style.css +1 -1
  67. package/lib/{edge/block-styles-9G0dzHlX.js → node/block-styles-JjLwXWt4.js} +1 -1
  68. package/lib/node/{block-styles-DIWBbAnH.cjs → block-styles-houtGRpT.cjs} +1 -1
  69. package/lib/node/{block-wrapper-_BPFTFXt.js → block-wrapper--XSKGCL-.js} +3 -3
  70. package/lib/{edge/block-wrapper-e76eazMP.cjs → node/block-wrapper-TveOxTSb.cjs} +1 -1
  71. package/lib/node/blocks/accordion/accordion.vue.d.ts +3 -3
  72. package/lib/node/blocks/button/button.vue.d.ts +3 -3
  73. package/lib/node/blocks/columns/columns.vue.d.ts +9 -9
  74. package/lib/node/blocks/form/form/form.vue.d.ts +9 -9
  75. package/lib/node/blocks/form/input/input.vue.d.ts +6 -6
  76. package/lib/node/blocks/form/textarea/textarea.vue.d.ts +3 -3
  77. package/lib/node/blocks/symbol/symbol.vue.d.ts +9 -9
  78. package/lib/node/blocks/tabs/tabs.vue.d.ts +3 -3
  79. package/lib/node/blocks/video/video.vue.d.ts +3 -3
  80. package/lib/{edge/component-ref-vunvHoZn.js → node/component-ref-KnwCIp0k.js} +2 -2
  81. package/lib/{edge/component-ref-kpSD1Znd.cjs → node/component-ref-N8Z1onkW.cjs} +1 -1
  82. package/lib/node/components/block/block.helpers.d.ts +8 -8
  83. package/lib/node/components/block/block.vue.d.ts +3 -3
  84. package/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +6 -6
  85. package/lib/node/components/block/components/repeated-block.vue.d.ts +3 -3
  86. package/lib/node/components/blocks/blocks.vue.d.ts +3 -3
  87. package/lib/node/components/content/components/enable-editor.vue.d.ts +12 -12
  88. package/lib/node/components/content/content.vue.d.ts +18 -18
  89. package/lib/node/components/content-variants/content-variants.vue.d.ts +12 -12
  90. package/lib/node/constants/sdk-version.d.ts +1 -1
  91. package/lib/node/{get-block-properties-Z8dbhv04.js → get-block-properties-Xr5L4Okr.js} +1 -1
  92. package/lib/node/{get-block-properties-J2hYDEjG.cjs → get-block-properties-inIHDjNu.cjs} +1 -1
  93. package/lib/node/{index-mwT6ab1s.js → index-EVLuO1iu.js} +37 -115
  94. package/lib/node/{index-LYUOXK6N.cjs → index-QFbjU7Zd.cjs} +4 -4
  95. package/lib/node/index.cjs +1 -1
  96. package/lib/node/index.mjs +1 -1
  97. package/lib/node/{repeated-block-KIbLvY78.cjs → repeated-block-Co8byFSc.cjs} +1 -1
  98. package/lib/node/{repeated-block-DHUq5Kzz.js → repeated-block-gAw64HdW.js} +2 -2
  99. package/lib/node/style.css +1 -1
  100. package/package.json +1 -1
  101. package/lib/browser/index-6J8hb-U4.cjs +0 -166
@@ -1,9 +1,9 @@
1
- var mt = Object.defineProperty;
2
- var ht = (e, t, n) => t in e ? mt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var re = (e, t, n) => (ht(e, typeof t != "symbol" ? t + "" : t, n), n);
1
+ var pt = Object.defineProperty;
2
+ var mt = (e, t, n) => t in e ? pt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var oe = (e, t, n) => (mt(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import "./style.css";
5
- import { defineComponent as f, openBlock as d, createElementBlock as p, Fragment as I, createBlock as k, resolveDynamicComponent as K, mergeProps as S, toHandlers as P, withCtx as W, renderSlot as E, resolveComponent as g, createTextVNode as ft, toDisplayString as ne, defineAsyncComponent as H, createVNode as $, renderList as N, createCommentVNode as v, h as Ae, createElementVNode as z, normalizeStyle as O, normalizeClass as J, markRaw as bt } from "vue";
6
- const gt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), yt = (e) => typeof e == "string" && gt.has(e.toLowerCase());
5
+ import { defineComponent as f, openBlock as d, createElementBlock as p, Fragment as I, createBlock as k, resolveDynamicComponent as K, mergeProps as C, toHandlers as P, withCtx as W, renderSlot as E, resolveComponent as g, createTextVNode as ht, toDisplayString as ne, defineAsyncComponent as H, createVNode as $, renderList as N, createCommentVNode as v, h as xe, createElementVNode as z, normalizeStyle as L, normalizeClass as J, markRaw as ft } from "vue";
6
+ const bt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), gt = (e) => typeof e == "string" && bt.has(e.toLowerCase());
7
7
  function x(e = {}, t, n) {
8
8
  const o = {};
9
9
  for (const r in e) {
@@ -14,11 +14,11 @@ function x(e = {}, t, n) {
14
14
  }
15
15
  return o;
16
16
  }
17
- const kt = f({
17
+ const yt = f({
18
18
  name: "dynamic-renderer",
19
19
  props: ["TagName", "attributes", "actionAttributes"],
20
20
  data() {
21
- return { isEmptyElement: yt };
21
+ return { isEmptyElement: gt };
22
22
  }
23
23
  }), b = (e, t) => {
24
24
  const n = e.__vccOpts || e;
@@ -26,14 +26,14 @@ const kt = f({
26
26
  n[o] = r;
27
27
  return n;
28
28
  };
29
- function vt(e, t, n, o, r, i) {
30
- return e.isEmptyElement(e.TagName) ? (d(), k(K(e.TagName), S({ key: 1 }, e.attributes, P(e.actionAttributes)), null, 16)) : (d(), p(I, { key: 0 }, [
31
- typeof e.TagName == "string" ? (d(), k(K(e.TagName), S({ key: 0 }, e.attributes, P(e.actionAttributes)), {
29
+ function kt(e, t, n, o, r, i) {
30
+ return e.isEmptyElement(e.TagName) ? (d(), k(K(e.TagName), C({ key: 1 }, e.attributes, P(e.actionAttributes)), null, 16)) : (d(), p(I, { key: 0 }, [
31
+ typeof e.TagName == "string" ? (d(), k(K(e.TagName), C({ key: 0 }, e.attributes, P(e.actionAttributes)), {
32
32
  default: W(() => [
33
33
  E(e.$slots, "default")
34
34
  ]),
35
35
  _: 3
36
- }, 16)) : (d(), k(K(e.TagName), S({ key: 1 }, e.attributes, P(e.actionAttributes)), {
36
+ }, 16)) : (d(), k(K(e.TagName), C({ key: 1 }, e.attributes, P(e.actionAttributes)), {
37
37
  default: W(() => [
38
38
  E(e.$slots, "default")
39
39
  ]),
@@ -41,9 +41,9 @@ function vt(e, t, n, o, r, i) {
41
41
  }, 16))
42
42
  ], 64));
43
43
  }
44
- const he = /* @__PURE__ */ b(kt, [["render", vt]]), Ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
44
+ const me = /* @__PURE__ */ b(yt, [["render", kt]]), Pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
45
45
  __proto__: null,
46
- default: he
46
+ default: me
47
47
  }, Symbol.toStringTag, { value: "Module" })), A = "vue", ee = () => {
48
48
  switch (A) {
49
49
  case "react":
@@ -57,9 +57,9 @@ const he = /* @__PURE__ */ b(kt, [["render", vt]]), Ei = /* @__PURE__ */ Object.
57
57
  case "angular":
58
58
  return "class";
59
59
  }
60
- }, Ct = f({
60
+ }, vt = f({
61
61
  name: "builder-button",
62
- components: { DynamicRenderer: he },
62
+ components: { DynamicRenderer: me },
63
63
  props: [
64
64
  "attributes",
65
65
  "link",
@@ -94,12 +94,12 @@ function St(e, t, n, o, r, i) {
94
94
  actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
95
95
  }, {
96
96
  default: W(() => [
97
- ft(ne(e.text), 1)
97
+ ht(ne(e.text), 1)
98
98
  ]),
99
99
  _: 1
100
100
  }, 8, ["attributes", "TagName", "actionAttributes"]);
101
101
  }
102
- const wt = /* @__PURE__ */ b(Ct, [["render", St]]), Tt = Symbol(), de = {
102
+ const Ct = /* @__PURE__ */ b(vt, [["render", St]]), wt = Symbol(), ce = {
103
103
  Builder: {
104
104
  content: null,
105
105
  context: {},
@@ -114,12 +114,12 @@ const wt = /* @__PURE__ */ b(Ct, [["render", St]]), Tt = Symbol(), de = {
114
114
  BlocksWrapper: "div",
115
115
  BlocksWrapperProps: {}
116
116
  },
117
- key: Tt
118
- }, It = Symbol(), Ve = {
117
+ key: wt
118
+ }, Tt = Symbol(), Ae = {
119
119
  Components: { registeredComponents: {} },
120
- key: It
120
+ key: Tt
121
121
  };
122
- function $t(e) {
122
+ function It(e) {
123
123
  var t;
124
124
  return {
125
125
  ...(t = e.component) == null ? void 0 : t.options,
@@ -135,27 +135,27 @@ const Z = "[Builder.io]: ", B = {
135
135
  function T() {
136
136
  return typeof window < "u" && typeof document < "u";
137
137
  }
138
- const Rt = (e) => {
138
+ const $t = (e) => {
139
139
  const t = {};
140
140
  return e.forEach((n, o) => {
141
141
  t[o] = n;
142
142
  }), t;
143
- }, We = (e) => e instanceof URLSearchParams ? Rt(e) : e, Ne = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
144
- function Bt() {
143
+ }, Ve = (e) => e instanceof URLSearchParams ? $t(e) : e, We = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
144
+ function Rt() {
145
145
  return T() && window.self !== window.top;
146
146
  }
147
147
  function R(e) {
148
- return Bt() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
149
- Ne(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
148
+ return Rt() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
149
+ We(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
150
150
  }
151
- const Pt = () => {
151
+ const Bt = () => {
152
152
  if (T()) {
153
153
  const e = new URL(location.href);
154
154
  return e.pathname === "" && (e.pathname = "/"), e;
155
155
  } else
156
156
  return console.warn("Cannot get location for tracking in non-browser environment"), null;
157
- }, Et = () => typeof navigator == "object" && navigator.userAgent || "", Le = () => {
158
- const e = Et(), t = {
157
+ }, Pt = () => typeof navigator == "object" && navigator.userAgent || "", Ne = () => {
158
+ const e = Pt(), t = {
159
159
  Android() {
160
160
  return e.match(/Android/i);
161
161
  },
@@ -174,13 +174,13 @@ const Pt = () => {
174
174
  any() {
175
175
  return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || A === "reactNative";
176
176
  }
177
- }, n = e.match(/Tablet|iPad/i), o = Pt();
177
+ }, n = e.match(/Tablet|iPad/i), o = Bt();
178
178
  return {
179
179
  urlPath: o == null ? void 0 : o.pathname,
180
180
  host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
181
181
  device: n ? "tablet" : t.any() ? "mobile" : "desktop"
182
182
  };
183
- }, xt = ({
183
+ }, Et = ({
184
184
  builder: e,
185
185
  context: t,
186
186
  event: n,
@@ -192,12 +192,12 @@ const Pt = () => {
192
192
  builder: e,
193
193
  context: t,
194
194
  event: n
195
- }), At = () => ({
195
+ }), xt = () => ({
196
196
  isEditing: R(),
197
197
  isBrowser: T(),
198
198
  isServer: !T(),
199
- getUserAttributes: () => Le()
200
- }), Vt = (e, {
199
+ getUserAttributes: () => Ne()
200
+ }), At = (e, {
201
201
  isExpression: t = !0
202
202
  }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, Se = ({
203
203
  code: e,
@@ -208,7 +208,7 @@ const Pt = () => {
208
208
  rootSetState: i,
209
209
  rootState: s
210
210
  }) => {
211
- const l = xt({
211
+ const l = Et({
212
212
  builder: t,
213
213
  context: n,
214
214
  event: o,
@@ -246,17 +246,17 @@ function Fe({
246
246
  });
247
247
  }
248
248
  const D = (e) => e != null;
249
- function Wt() {
249
+ function Vt() {
250
250
  var e;
251
251
  return typeof process < "u" && D((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
252
252
  }
253
- const Nt = () => {
253
+ const Wt = () => {
254
254
  var o;
255
- if (!Wt())
255
+ if (!Vt())
256
256
  return !1;
257
257
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
258
258
  return e && t && !n ? (B.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
259
- }, Lt = (e) => (T() || Nt(), Se(e)), V = class V {
259
+ }, Nt = (e) => (T() || Wt(), Se(e)), V = class V {
260
260
  static getCacheKey(t) {
261
261
  return JSON.stringify({
262
262
  ...t,
@@ -274,7 +274,7 @@ const Nt = () => {
274
274
  });
275
275
  }
276
276
  };
277
- re(V, "cacheLimit", 20), re(V, "cache", /* @__PURE__ */ new Map());
277
+ oe(V, "cacheLimit", 20), oe(V, "cache", /* @__PURE__ */ new Map());
278
278
  let U = V;
279
279
  function te({
280
280
  code: e,
@@ -289,10 +289,10 @@ function te({
289
289
  if (e === "")
290
290
  return;
291
291
  const a = {
292
- code: Vt(e, {
292
+ code: At(e, {
293
293
  isExpression: s
294
294
  }),
295
- builder: At(),
295
+ builder: xt(),
296
296
  context: t,
297
297
  event: i,
298
298
  rootSetState: r,
@@ -305,7 +305,7 @@ function te({
305
305
  return h.value;
306
306
  }
307
307
  try {
308
- const u = Lt(a);
308
+ const u = Nt(a);
309
309
  if (l) {
310
310
  const h = U.getCacheKey(a);
311
311
  U.setCachedValue(h, u);
@@ -355,7 +355,7 @@ const Ft = ({
355
355
  }
356
356
  return s;
357
357
  };
358
- function De({
358
+ function Le({
359
359
  block: e,
360
360
  context: t,
361
361
  shouldEvaluateBindings: n,
@@ -372,7 +372,7 @@ function De({
372
372
  context: t
373
373
  }) : s;
374
374
  }
375
- const fe = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
375
+ const he = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
376
376
  function Ot(e, t, n = {}) {
377
377
  let o, r, i, s = null, l = 0;
378
378
  const a = function() {
@@ -395,55 +395,55 @@ function q(e, ...t) {
395
395
  }
396
396
  return n;
397
397
  }
398
- function Dt(e) {
398
+ function Lt(e) {
399
399
  for (const t of e)
400
400
  switch (t.trigger) {
401
401
  case "pageLoad":
402
- je(t);
402
+ Me(t);
403
403
  break;
404
404
  case "scrollInView":
405
- Mt(t);
405
+ Ut(t);
406
406
  break;
407
407
  }
408
408
  }
409
- function Ue(e) {
409
+ function De(e) {
410
410
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
411
411
  }
412
- function Me(e, t) {
413
- const n = Ut(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
412
+ function Ue(e, t) {
413
+ const n = Dt(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
414
414
  for (const l of s)
415
415
  for (const a of n)
416
416
  a in l || (l[a] = o[a]);
417
417
  }
418
- function Ut(e) {
418
+ function Dt(e) {
419
419
  const t = [];
420
420
  for (const n of e.steps)
421
421
  for (const o in n.styles)
422
422
  t.indexOf(o) === -1 && t.push(o);
423
423
  return t;
424
424
  }
425
- function je(e) {
425
+ function Me(e) {
426
426
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
427
427
  if (!t.length) {
428
- Ue(e.elementId || e.id || "");
428
+ De(e.elementId || e.id || "");
429
429
  return;
430
430
  }
431
431
  Array.from(t).forEach((n) => {
432
- Me(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
433
- n.style.transition = `all ${e.duration}s ${fe(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), q(n.style, e.steps[1].styles), setTimeout(() => {
432
+ Ue(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
433
+ n.style.transition = `all ${e.duration}s ${he(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), q(n.style, e.steps[1].styles), setTimeout(() => {
434
434
  n.style.transition = "", n.style.transitionDelay = "";
435
435
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
436
436
  });
437
437
  });
438
438
  }
439
- function Mt(e) {
439
+ function Ut(e) {
440
440
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
441
441
  if (!t.length) {
442
- Ue(e.elementId || e.id || "");
442
+ De(e.elementId || e.id || "");
443
443
  return;
444
444
  }
445
445
  Array.from(t).forEach((n) => {
446
- Me(e, n);
446
+ Ue(e, n);
447
447
  let o = !1, r = !1;
448
448
  function i() {
449
449
  !o && l(n) ? (o = !0, r = !0, setTimeout(() => {
@@ -464,49 +464,49 @@ function Mt(e) {
464
464
  q(n.style, a);
465
465
  }
466
466
  u(), setTimeout(() => {
467
- n.style.transition = `all ${e.duration}s ${fe(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
467
+ n.style.transition = `all ${e.duration}s ${he(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
468
468
  }), document.addEventListener("scroll", s, {
469
469
  capture: !0,
470
470
  passive: !0
471
471
  }), i();
472
472
  });
473
473
  }
474
- const He = (e) => Object.entries(e).map(([n, o]) => {
474
+ const je = (e) => Object.entries(e).map(([n, o]) => {
475
475
  if (typeof o == "string")
476
- return `${fe(n)}: ${o};`;
477
- }).filter(D), jt = (e) => He(e).join(`
478
- `), xi = ({
476
+ return `${he(n)}: ${o};`;
477
+ }).filter(D), Mt = (e) => je(e).join(`
478
+ `), Ei = ({
479
479
  mediaQuery: e,
480
480
  className: t,
481
481
  styles: n
482
482
  }) => {
483
483
  const o = `.${t} {
484
- ${jt(n)}
484
+ ${Mt(n)}
485
485
  }`;
486
486
  return e ? `${e} {
487
487
  ${o}
488
488
  }` : o;
489
489
  };
490
- function Ht({
490
+ function jt({
491
491
  style: e
492
492
  }) {
493
493
  return e;
494
494
  }
495
- const Ai = ({
495
+ const xi = ({
496
496
  block: e,
497
497
  context: t
498
- }) => Ke(Ht({
498
+ }) => He(jt({
499
499
  style: e.style || {},
500
500
  context: t,
501
501
  block: e
502
502
  }));
503
- function Ke(e) {
503
+ function He(e) {
504
504
  switch (A) {
505
505
  case "svelte":
506
506
  case "vue":
507
507
  case "solid":
508
508
  case "angular":
509
- return He(e).join(" ");
509
+ return je(e).join(" ");
510
510
  case "qwik":
511
511
  case "reactNative":
512
512
  case "react":
@@ -514,13 +514,13 @@ function Ke(e) {
514
514
  return e;
515
515
  }
516
516
  }
517
- const Kt = ({
517
+ const Ht = ({
518
518
  block: e,
519
519
  context: t,
520
520
  registeredComponents: n
521
521
  }) => {
522
522
  var i;
523
- const o = (i = De({
523
+ const o = (i = Le({
524
524
  block: e,
525
525
  localState: t.localState,
526
526
  rootState: t.rootState,
@@ -536,7 +536,7 @@ const Kt = ({
536
536
  console.warn(`
537
537
  Could not find a registered component named "${o}".
538
538
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
539
- }, qt = ({
539
+ }, Kt = ({
540
540
  block: e,
541
541
  context: t
542
542
  }) => {
@@ -570,60 +570,64 @@ const Kt = ({
570
570
  },
571
571
  block: o
572
572
  }));
573
- }, oe = (e) => ({
574
- // once we bump to a major version, toggle this to `false`.
575
- builderBlock: !0,
576
- // once we bump to a major version, toggle this to `false`.
577
- builderContext: !0,
578
- builderComponents: !1,
579
- builderLinkComponent: !1,
580
- ...e
581
- }), zt = (e, t) => e ? oe(e.shouldReceiveBuilderProps).builderLinkComponent ? {
582
- builderLinkComponent: t
583
- } : {} : {}, Jt = (e, t) => e ? oe(e.shouldReceiveBuilderProps).builderComponents ? {
584
- builderComponents: t
585
- } : {} : {}, Gt = (e, t) => e ? oe(e.shouldReceiveBuilderProps).builderBlock ? {
586
- builderBlock: t
587
- } : {} : {}, Yt = (e, t) => e ? oe(e.shouldReceiveBuilderProps).builderContext ? {
588
- builderContext: t
589
- } : {} : {}, Qt = () => Promise.resolve().then(() => un).then((e) => e.default).catch((e) => {
573
+ }, qt = (e, t) => {
574
+ var n;
575
+ return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
576
+ builderLinkComponent: t
577
+ } : {};
578
+ }, zt = (e, t) => {
579
+ var n;
580
+ return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
581
+ builderComponents: t
582
+ } : {};
583
+ }, Jt = (e, t) => {
584
+ var n;
585
+ return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
586
+ builderBlock: t
587
+ } : {};
588
+ }, Gt = (e, t) => {
589
+ var n;
590
+ return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
591
+ builderContext: t
592
+ } : {};
593
+ }, Yt = () => Promise.resolve().then(() => dn).then((e) => e.default).catch((e) => {
590
594
  throw console.error(
591
595
  "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
592
596
  e
593
597
  ), e;
594
- }), Xt = () => import("./block-styles-IgeLKqtO.js").then((e) => e.default).catch((e) => {
598
+ }), Qt = () => import("./block-styles-cVSrkWog.js").then((e) => e.default).catch((e) => {
595
599
  throw console.error(
596
600
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
597
601
  e
598
602
  ), e;
599
- }), Zt = () => import("./block-wrapper-2dz0ANfE.js").then((e) => e.default).catch((e) => {
603
+ }), Xt = () => import("./block-wrapper-maIbj8Gi.js").then((e) => e.default).catch((e) => {
600
604
  throw console.error(
601
605
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
602
606
  e
603
607
  ), e;
604
- }), _t = () => import("./component-ref-V2PjOzrU.js").then((e) => e.default).catch((e) => {
608
+ }), Zt = () => import("./component-ref-1N_Kijok.js").then((e) => e.default).catch((e) => {
605
609
  throw console.error(
606
610
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
607
611
  e
608
612
  ), e;
609
- }), en = () => import("./repeated-block-N87PTuTY.js").then((e) => e.default).catch((e) => {
613
+ }), _t = () => import("./repeated-block-nP-Etgd7.js").then((e) => e.default).catch((e) => {
610
614
  throw console.error(
611
615
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
612
616
  e
613
617
  ), e;
614
- }), tn = f({
618
+ }), en = f({
615
619
  name: "block",
616
620
  components: {
617
- BlockStyles: H(Xt),
618
- ComponentRef: H(_t),
619
- RepeatedBlock: H(en),
620
- BlockWrapper: H(Zt),
621
- DynamicDiv: H(Qt)
621
+ BlockStyles: H(Qt),
622
+ ComponentRef: H(Zt),
623
+ RepeatedBlock: H(_t),
624
+ BlockWrapper: H(Xt),
625
+ DynamicDiv: H(Yt)
622
626
  },
623
627
  props: ["block", "context", "registeredComponents", "linkComponent"],
624
628
  mounted() {
625
629
  const e = this.processedBlock.id, t = this.processedBlock.animations;
626
- t && e && Dt(
630
+ t && e && Lt(
627
631
  t.map((n) => ({
628
632
  ...n,
629
633
  elementId: e
@@ -632,21 +636,21 @@ const Kt = ({
632
636
  },
633
637
  computed: {
634
638
  blockComponent() {
635
- return Kt({
639
+ return Ht({
636
640
  block: this.block,
637
641
  context: this.context,
638
642
  registeredComponents: this.registeredComponents
639
643
  });
640
644
  },
641
645
  repeatItem() {
642
- return qt({
646
+ return Kt({
643
647
  block: this.block,
644
648
  context: this.context
645
649
  });
646
650
  },
647
651
  processedBlock() {
648
652
  var e;
649
- return (e = this.block.repeat) != null && e.collection ? this.block : De({
653
+ return (e = this.block.repeat) != null && e.collection ? this.block : Le({
650
654
  block: this.block,
651
655
  localState: this.context.localState,
652
656
  rootState: this.context.rootState,
@@ -676,11 +680,11 @@ const Kt = ({
676
680
  blockChildren: this.processedBlock.children ?? [],
677
681
  componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
678
682
  componentOptions: {
679
- ...$t(this.processedBlock),
680
- ...Gt(this.blockComponent, this.processedBlock),
681
- ...Yt(this.blockComponent, this.context),
682
- ...zt(this.blockComponent, this.linkComponent),
683
- ...Jt(
683
+ ...It(this.processedBlock),
684
+ ...Jt(this.blockComponent, this.processedBlock),
685
+ ...Gt(this.blockComponent, this.context),
686
+ ...qt(this.blockComponent, this.linkComponent),
687
+ ...zt(
684
688
  this.blockComponent,
685
689
  this.registeredComponents
686
690
  )
@@ -695,7 +699,7 @@ const Kt = ({
695
699
  }
696
700
  }
697
701
  });
698
- function nn(e, t, n, o, r, i) {
702
+ function tn(e, t, n, o, r, i) {
699
703
  var c;
700
704
  const s = g("BlockStyles"), l = g("ComponentRef"), a = g("Block", !0), u = g("BlockWrapper"), h = g("RepeatedBlock");
701
705
  return e.canShowBlock ? (d(), p(I, { key: 0 }, [
@@ -715,8 +719,8 @@ function nn(e, t, n, o, r, i) {
715
719
  includeBlockProps: e.componentRefProps.includeBlockProps,
716
720
  isInteractive: e.componentRefProps.isInteractive
717
721
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"])) : (d(), p(I, { key: 0 }, [
718
- e.repeatItem ? (d(!0), p(I, { key: 1 }, N(e.repeatItem, (m, C) => (d(), k(h, {
719
- key: C,
722
+ e.repeatItem ? (d(!0), p(I, { key: 1 }, N(e.repeatItem, (m, S) => (d(), k(h, {
723
+ key: S,
720
724
  repeatContext: m.context,
721
725
  block: m.block,
722
726
  registeredComponents: e.registeredComponents,
@@ -739,7 +743,7 @@ function nn(e, t, n, o, r, i) {
739
743
  includeBlockProps: e.componentRefProps.includeBlockProps,
740
744
  isInteractive: e.componentRefProps.isInteractive
741
745
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
742
- (d(!0), p(I, null, N(e.childrenWithoutParentComponent, (m, C) => (d(), k(a, {
746
+ (d(!0), p(I, null, N(e.childrenWithoutParentComponent, (m, S) => (d(), k(a, {
743
747
  key: m.id,
744
748
  block: m,
745
749
  registeredComponents: e.registeredComponents,
@@ -752,10 +756,10 @@ function nn(e, t, n, o, r, i) {
752
756
  ], 64))
753
757
  ], 64)) : v("", !0);
754
758
  }
755
- const be = /* @__PURE__ */ b(tn, [["render", nn]]), Vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
759
+ const fe = /* @__PURE__ */ b(en, [["render", tn]]), Ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
756
760
  __proto__: null,
757
- default: be
758
- }, Symbol.toStringTag, { value: "Module" })), on = f({
761
+ default: fe
762
+ }, Symbol.toStringTag, { value: "Module" })), nn = f({
759
763
  name: "builder-blocks-wrapper",
760
764
  props: [
761
765
  "blocks",
@@ -800,8 +804,8 @@ const be = /* @__PURE__ */ b(tn, [["render", nn]]), Vi = /* @__PURE__ */ Object.
800
804
  }
801
805
  }
802
806
  });
803
- function rn(e, t, n, o, r, i) {
804
- return d(), k(K(e.BlocksWrapper), S({
807
+ function on(e, t, n, o, r, i) {
808
+ return d(), k(K(e.BlocksWrapper), C({
805
809
  class: e.className + " component-178o76acnws",
806
810
  "builder-path": e.path,
807
811
  "builder-parent-id": e.parent,
@@ -816,9 +820,9 @@ function rn(e, t, n, o, r, i) {
816
820
  _: 3
817
821
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
818
822
  }
819
- const sn = /* @__PURE__ */ b(on, [["render", rn], ["__scopeId", "data-v-a5b13ef9"]]), an = f({
823
+ const rn = /* @__PURE__ */ b(nn, [["render", on], ["__scopeId", "data-v-a5b13ef9"]]), sn = f({
820
824
  name: "builder-blocks",
821
- components: { BlocksWrapper: sn, Block: be },
825
+ components: { BlocksWrapper: rn, Block: fe },
822
826
  props: [
823
827
  "blocks",
824
828
  "parent",
@@ -829,11 +833,11 @@ const sn = /* @__PURE__ */ b(on, [["render", rn], ["__scopeId", "data-v-a5b13ef9
829
833
  "registeredComponents"
830
834
  ],
831
835
  inject: {
832
- builderContext: de.key,
833
- componentsContext: Ve.key
836
+ builderContext: ce.key,
837
+ componentsContext: Ae.key
834
838
  }
835
839
  });
836
- function ln(e, t, n, o, r, i) {
840
+ function an(e, t, n, o, r, i) {
837
841
  var a, u;
838
842
  const s = g("Block"), l = g("BlocksWrapper");
839
843
  return d(), k(l, {
@@ -856,28 +860,28 @@ function ln(e, t, n, o, r, i) {
856
860
  _: 1
857
861
  }, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
858
862
  }
859
- const M = /* @__PURE__ */ b(an, [["render", ln]]), cn = f({
863
+ const M = /* @__PURE__ */ b(sn, [["render", an]]), ln = f({
860
864
  name: "dynamic-div",
861
865
  props: []
862
866
  });
863
- function dn(e, t, n, o, r, i) {
867
+ function cn(e, t, n, o, r, i) {
864
868
  return d(), p("div", null, [
865
869
  E(e.$slots, "default")
866
870
  ]);
867
871
  }
868
- const Q = /* @__PURE__ */ b(cn, [["render", dn]]), un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
872
+ const Q = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
869
873
  __proto__: null,
870
874
  default: Q
871
- }, Symbol.toStringTag, { value: "Module" })), ge = f({
875
+ }, Symbol.toStringTag, { value: "Module" })), be = f({
872
876
  render() {
873
- return Ae("style", {
877
+ return xe("style", {
874
878
  innerHTML: this.styles,
875
879
  "data-id": this.id
876
880
  });
877
881
  },
878
882
  name: "inlined-styles",
879
883
  props: ["styles", "id"]
880
- }), qe = {
884
+ }), Ke = {
881
885
  small: {
882
886
  min: 320,
883
887
  default: 321,
@@ -893,11 +897,11 @@ const Q = /* @__PURE__ */ b(cn, [["render", dn]]), un = /* @__PURE__ */ Object.f
893
897
  default: 991,
894
898
  max: 1200
895
899
  }
896
- }, Wi = (e, t = qe) => `@media (max-width: ${t[e].max}px)`, pn = ({
900
+ }, Vi = (e, t = Ke) => `@media (max-width: ${t[e].max}px)`, un = ({
897
901
  small: e,
898
902
  medium: t
899
903
  }) => {
900
- const n = Y(qe);
904
+ const n = Y(Ke);
901
905
  if (!e || !t)
902
906
  return n;
903
907
  const o = Math.floor(e / 2);
@@ -919,11 +923,11 @@ const Q = /* @__PURE__ */ b(cn, [["render", dn]]), un = /* @__PURE__ */ Object.f
919
923
  min: i,
920
924
  default: i + 1
921
925
  }, n;
922
- }, mn = (e) => `builder-columns ${e}-breakpoints`, hn = f({
926
+ }, pn = (e) => `builder-columns ${e}-breakpoints`, mn = f({
923
927
  name: "builder-columns",
924
928
  components: {
925
- InlinedStyles: ge,
926
- DynamicRenderer: he,
929
+ InlinedStyles: be,
930
+ DynamicRenderer: me,
927
931
  Blocks: M,
928
932
  DynamicDiv: Q
929
933
  },
@@ -944,7 +948,7 @@ const Q = /* @__PURE__ */ b(cn, [["render", dn]]), un = /* @__PURE__ */ Object.f
944
948
  stackAt: this.stackColumnsAt || "tablet",
945
949
  flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
946
950
  TARGET: A,
947
- getColumnsClass: mn
951
+ getColumnsClass: pn
948
952
  };
949
953
  },
950
954
  methods: {
@@ -956,8 +960,8 @@ const Q = /* @__PURE__ */ b(cn, [["render", dn]]), un = /* @__PURE__ */ Object.f
956
960
  return ((t = this.cols[e]) == null ? void 0 : t.width) || 100 / this.cols.length;
957
961
  },
958
962
  getColumnCssWidth(e) {
959
- const t = this.gutterSize * (this.cols.length - 1) / this.cols.length;
960
- return `calc(${this.getWidth(e)}% - ${t}px)`;
963
+ const t = this.getWidth(e), n = this.gutterSize * (this.cols.length - 1) * (t / 100);
964
+ return `calc(${t}% - ${n}px)`;
961
965
  },
962
966
  getTabletStyle({
963
967
  stackedStyle: e,
@@ -1010,7 +1014,7 @@ const Q = /* @__PURE__ */ b(cn, [["render", dn]]), un = /* @__PURE__ */ Object.f
1010
1014
  },
1011
1015
  getWidthForBreakpointSize(e) {
1012
1016
  var n, o;
1013
- return pn(
1017
+ return un(
1014
1018
  ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
1015
1019
  )[e].max;
1016
1020
  },
@@ -1047,15 +1051,15 @@ const Q = /* @__PURE__ */ b(cn, [["render", dn]]), un = /* @__PURE__ */ Object.f
1047
1051
  href: e.link
1048
1052
  } : {},
1049
1053
  [ee()]: "builder-column",
1050
- style: Ke(this.columnCssVars(t))
1054
+ style: He(this.columnCssVars(t))
1051
1055
  };
1052
1056
  }
1053
1057
  }
1054
1058
  });
1055
- function fn(e, t, n, o, r, i) {
1059
+ function hn(e, t, n, o, r, i) {
1056
1060
  var u;
1057
1061
  const s = g("InlinedStyles"), l = g("Blocks"), a = g("DynamicRenderer");
1058
- return d(), p("div", S({
1062
+ return d(), p("div", C({
1059
1063
  class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-2brhoa1k8gd",
1060
1064
  style: e.columnsCssVars()
1061
1065
  }, {}), [
@@ -1087,45 +1091,45 @@ function fn(e, t, n, o, r, i) {
1087
1091
  }, 1032, ["TagName", "attributes"]))), 128))
1088
1092
  ], 16);
1089
1093
  }
1090
- const bn = /* @__PURE__ */ b(hn, [["render", fn], ["__scopeId", "data-v-27a4dde0"]]), gn = f({
1094
+ const fn = /* @__PURE__ */ b(mn, [["render", hn], ["__scopeId", "data-v-5320212d"]]), bn = f({
1091
1095
  name: "builder-fragment-component",
1092
1096
  props: []
1093
1097
  });
1094
- function yn(e, t, n, o, r, i) {
1098
+ function gn(e, t, n, o, r, i) {
1095
1099
  return d(), p("span", null, [
1096
1100
  E(e.$slots, "default")
1097
1101
  ]);
1098
1102
  }
1099
- const kn = /* @__PURE__ */ b(gn, [["render", yn]]);
1100
- function we(e) {
1103
+ const yn = /* @__PURE__ */ b(bn, [["render", gn]]);
1104
+ function Ce(e) {
1101
1105
  return e.replace(/http(s)?:/, "");
1102
1106
  }
1103
- function vn(e = "", t, n) {
1107
+ function kn(e = "", t, n) {
1104
1108
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
1105
1109
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
1106
1110
  }
1107
- function Cn(e, t) {
1111
+ function vn(e, t) {
1108
1112
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1109
1113
  return e;
1110
1114
  if (t === "master")
1111
- return we(e);
1115
+ return Ce(e);
1112
1116
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1113
1117
  if (n) {
1114
1118
  const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
1115
- return we(`${o[0]}_${i}${r}`);
1119
+ return Ce(`${o[0]}_${i}${r}`);
1116
1120
  }
1117
1121
  return null;
1118
1122
  }
1119
- function ie(e) {
1123
+ function re(e) {
1120
1124
  if (!e)
1121
1125
  return e;
1122
1126
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1123
1127
  if (e.match(/builder\.io/)) {
1124
1128
  let n = e;
1125
1129
  const o = Number(e.split("?width=")[1]);
1126
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${vn(e, "width", r)} ${r}w`).concat([n]).join(", ");
1130
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${kn(e, "width", r)} ${r}w`).concat([n]).join(", ");
1127
1131
  }
1128
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Cn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1132
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [vn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1129
1133
  }
1130
1134
  const Sn = f({
1131
1135
  name: "builder-image",
@@ -1154,10 +1158,10 @@ const Sn = f({
1154
1158
  return this.srcset;
1155
1159
  if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
1156
1160
  if (!this.srcset.includes(this.image.split("?")[0]))
1157
- return console.debug("Removed given srcset"), ie(t);
1161
+ return console.debug("Removed given srcset"), re(t);
1158
1162
  } else if (this.image && !this.srcset)
1159
- return ie(t);
1160
- return ie(t);
1163
+ return re(t);
1164
+ return re(t);
1161
1165
  },
1162
1166
  webpSrcSet() {
1163
1167
  var e;
@@ -1174,11 +1178,11 @@ const Sn = f({
1174
1178
  return this.aspectRatio ? e : void 0;
1175
1179
  }
1176
1180
  }
1177
- }), wn = ["srcset"], Tn = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], In = {
1181
+ }), Cn = ["srcset"], wn = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], Tn = {
1178
1182
  key: 2,
1179
1183
  class: "div-1pl23ac79ld-2"
1180
1184
  };
1181
- function $n(e, t, n, o, r, i) {
1185
+ function In(e, t, n, o, r, i) {
1182
1186
  var s, l, a, u, h, c;
1183
1187
  return d(), p(I, null, [
1184
1188
  z("picture", null, [
@@ -1186,13 +1190,13 @@ function $n(e, t, n, o, r, i) {
1186
1190
  key: 0,
1187
1191
  type: "image/webp",
1188
1192
  srcset: e.webpSrcSet
1189
- }, null, 8, wn)) : v("", !0),
1193
+ }, null, 8, Cn)) : v("", !0),
1190
1194
  z("img", {
1191
1195
  loading: e.highPriority ? "eager" : "lazy",
1192
1196
  fetchpriority: e.highPriority ? "high" : "auto",
1193
1197
  alt: e.altText,
1194
1198
  role: e.altText ? void 0 : "presentation",
1195
- style: O({
1199
+ style: L({
1196
1200
  objectPosition: e.backgroundPosition || "center",
1197
1201
  objectFit: e.backgroundSize || "cover",
1198
1202
  ...e.aspectRatioCss
@@ -1203,30 +1207,30 @@ function $n(e, t, n, o, r, i) {
1203
1207
  src: e.image,
1204
1208
  srcset: e.srcSetToUse,
1205
1209
  sizes: e.sizes
1206
- }, null, 14, Tn)
1210
+ }, null, 14, wn)
1207
1211
  ]),
1208
1212
  e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (d(), p("div", {
1209
1213
  key: 0,
1210
1214
  class: "builder-image-sizer div-1pl23ac79ld",
1211
- style: O({
1215
+ style: L({
1212
1216
  paddingTop: e.aspectRatio * 100 + "%"
1213
1217
  })
1214
1218
  }, null, 4)) : v("", !0),
1215
1219
  (u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? E(e.$slots, "default", { key: 1 }, void 0, !0) : v("", !0),
1216
- !e.fitContent && ((c = (h = e.builderBlock) == null ? void 0 : h.children) != null && c.length) ? (d(), p("div", In, [
1220
+ !e.fitContent && ((c = (h = e.builderBlock) == null ? void 0 : h.children) != null && c.length) ? (d(), p("div", Tn, [
1217
1221
  E(e.$slots, "default", {}, void 0, !0)
1218
1222
  ])) : v("", !0)
1219
1223
  ], 64);
1220
1224
  }
1221
- const Rn = /* @__PURE__ */ b(Sn, [["render", $n], ["__scopeId", "data-v-0d528855"]]), Bn = f({
1225
+ const $n = /* @__PURE__ */ b(Sn, [["render", In], ["__scopeId", "data-v-0d528855"]]), Rn = f({
1222
1226
  name: "builder-section-component",
1223
1227
  props: ["attributes", "maxWidth"],
1224
1228
  data() {
1225
1229
  return { filterAttrs: x };
1226
1230
  }
1227
1231
  });
1228
- function Pn(e, t, n, o, r, i) {
1229
- return d(), p("section", S({
1232
+ function Bn(e, t, n, o, r, i) {
1233
+ return d(), p("section", C({
1230
1234
  style: {
1231
1235
  width: "100%",
1232
1236
  alignSelf: "stretch",
@@ -1243,12 +1247,12 @@ function Pn(e, t, n, o, r, i) {
1243
1247
  E(e.$slots, "default")
1244
1248
  ], 16);
1245
1249
  }
1246
- const En = /* @__PURE__ */ b(Bn, [["render", Pn]]), xn = (e) => {
1250
+ const Pn = /* @__PURE__ */ b(Rn, [["render", Bn]]), En = (e) => {
1247
1251
  if (e === "localhost" || e === "127.0.0.1")
1248
1252
  return e;
1249
1253
  const t = e.split(".");
1250
1254
  return t.length > 2 ? t.slice(1).join(".") : e;
1251
- }, ze = ({
1255
+ }, qe = ({
1252
1256
  name: e,
1253
1257
  canTrack: t
1254
1258
  }) => {
@@ -1259,14 +1263,14 @@ const En = /* @__PURE__ */ b(Bn, [["render", Pn]]), xn = (e) => {
1259
1263
  B.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
1260
1264
  return;
1261
1265
  }
1262
- }, Je = async (e) => ze(e), An = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(D).join("; "), Vn = [["secure", ""], ["SameSite", "None"]], Wn = ({
1266
+ }, ze = async (e) => qe(e), xn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(D).join("; "), An = [["secure", ""], ["SameSite", "None"]], Vn = ({
1263
1267
  name: e,
1264
1268
  value: t,
1265
1269
  expires: n
1266
1270
  }) => {
1267
- const r = (T() ? location.protocol === "https:" : !0) ? Vn : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", xn(window.location.hostname)], ...r];
1268
- return An(s);
1269
- }, Ge = async ({
1271
+ const r = (T() ? location.protocol === "https:" : !0) ? An : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", En(window.location.hostname)], ...r];
1272
+ return xn(s);
1273
+ }, Je = async ({
1270
1274
  name: e,
1271
1275
  value: t,
1272
1276
  expires: n,
@@ -1275,7 +1279,7 @@ const En = /* @__PURE__ */ b(Bn, [["render", Pn]]), xn = (e) => {
1275
1279
  try {
1276
1280
  if (!o)
1277
1281
  return;
1278
- const r = Wn({
1282
+ const r = Vn({
1279
1283
  name: e,
1280
1284
  value: t,
1281
1285
  expires: n
@@ -1284,24 +1288,24 @@ const En = /* @__PURE__ */ b(Bn, [["render", Pn]]), xn = (e) => {
1284
1288
  } catch (r) {
1285
1289
  B.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
1286
1290
  }
1287
- }, Nn = "builder.tests", ye = (e) => `${Nn}.${e}`, Ln = ({
1291
+ }, Wn = "builder.tests", ge = (e) => `${Wn}.${e}`, Nn = ({
1288
1292
  contentId: e
1289
- }) => Je({
1290
- name: ye(e),
1293
+ }) => ze({
1294
+ name: ge(e),
1291
1295
  canTrack: !0
1292
1296
  }), Fn = ({
1293
1297
  contentId: e
1294
- }) => ze({
1295
- name: ye(e),
1298
+ }) => qe({
1299
+ name: ge(e),
1296
1300
  canTrack: !0
1297
1301
  }), On = ({
1298
1302
  contentId: e,
1299
1303
  value: t
1300
- }) => Ge({
1301
- name: ye(e),
1304
+ }) => Je({
1305
+ name: ge(e),
1302
1306
  value: t,
1303
1307
  canTrack: !0
1304
- }), Ye = (e) => D(e.id) && D(e.variations) && Object.keys(e.variations).length > 0, Dn = ({
1308
+ }), Ge = (e) => D(e.id) && D(e.variations) && Object.keys(e.variations).length > 0, Ln = ({
1305
1309
  id: e,
1306
1310
  variations: t
1307
1311
  }) => {
@@ -1314,15 +1318,15 @@ const En = /* @__PURE__ */ b(Bn, [["render", Pn]]), xn = (e) => {
1314
1318
  return i;
1315
1319
  }
1316
1320
  return e;
1317
- }, Qe = (e) => {
1318
- const t = Dn(e);
1321
+ }, Ye = (e) => {
1322
+ const t = Ln(e);
1319
1323
  return On({
1320
1324
  contentId: e.id,
1321
1325
  value: t
1322
1326
  }).catch((n) => {
1323
1327
  B.error("could not store A/B test variation: ", n);
1324
1328
  }), t;
1325
- }, Xe = ({
1329
+ }, Qe = ({
1326
1330
  item: e,
1327
1331
  testGroupId: t
1328
1332
  }) => {
@@ -1336,7 +1340,7 @@ const En = /* @__PURE__ */ b(Bn, [["render", Pn]]), xn = (e) => {
1336
1340
  testVariationId: n.id,
1337
1341
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
1338
1342
  };
1339
- }, Un = ({
1343
+ }, Dn = ({
1340
1344
  item: e,
1341
1345
  canTrack: t
1342
1346
  }) => {
@@ -1344,14 +1348,14 @@ const En = /* @__PURE__ */ b(Bn, [["render", Pn]]), xn = (e) => {
1344
1348
  return e;
1345
1349
  if (!e)
1346
1350
  return;
1347
- if (!Ye(e))
1351
+ if (!Ge(e))
1348
1352
  return e;
1349
1353
  const n = Fn({
1350
1354
  contentId: e.id
1351
- }) || Qe({
1355
+ }) || Ye({
1352
1356
  variations: e.variations,
1353
1357
  id: e.id
1354
- }), o = Xe({
1358
+ }), o = Qe({
1355
1359
  item: e,
1356
1360
  testGroupId: n
1357
1361
  });
@@ -1359,18 +1363,18 @@ const En = /* @__PURE__ */ b(Bn, [["render", Pn]]), xn = (e) => {
1359
1363
  ...e,
1360
1364
  ...o
1361
1365
  };
1362
- }, Mn = async ({
1366
+ }, Un = async ({
1363
1367
  item: e,
1364
1368
  canTrack: t
1365
1369
  }) => {
1366
- if (!t || !Ye(e))
1370
+ if (!t || !Ge(e))
1367
1371
  return e;
1368
- const o = await Ln({
1372
+ const o = await Nn({
1369
1373
  contentId: e.id
1370
- }) || Qe({
1374
+ }) || Ye({
1371
1375
  variations: e.variations,
1372
1376
  id: e.id
1373
- }), r = Xe({
1377
+ }), r = Qe({
1374
1378
  item: e,
1375
1379
  testGroupId: o
1376
1380
  });
@@ -1378,7 +1382,7 @@ const En = /* @__PURE__ */ b(Bn, [["render", Pn]]), xn = (e) => {
1378
1382
  ...e,
1379
1383
  ...r
1380
1384
  };
1381
- }, G = (e) => D(e) ? e : !0, se = {
1385
+ }, G = (e) => D(e) ? e : !0, ie = {
1382
1386
  "@type": "@builder.io/sdk:Element",
1383
1387
  layerName: "Accordion item title",
1384
1388
  responsiveStyles: {
@@ -1407,7 +1411,7 @@ const En = /* @__PURE__ */ b(Bn, [["render", Pn]]), xn = (e) => {
1407
1411
  }
1408
1412
  }
1409
1413
  }]
1410
- }, ae = {
1414
+ }, se = {
1411
1415
  "@type": "@builder.io/sdk:Element",
1412
1416
  layerName: "Accordion item detail",
1413
1417
  responsiveStyles: {
@@ -1438,7 +1442,7 @@ const En = /* @__PURE__ */ b(Bn, [["render", Pn]]), xn = (e) => {
1438
1442
  }
1439
1443
  }
1440
1444
  }]
1441
- }, jn = {
1445
+ }, Mn = {
1442
1446
  name: "Builder:Accordion",
1443
1447
  canHaveChildren: !0,
1444
1448
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1455,19 +1459,19 @@ const En = /* @__PURE__ */ b(Bn, [["render", Pn]]), xn = (e) => {
1455
1459
  name: "title",
1456
1460
  type: "uiBlocks",
1457
1461
  hideFromUI: !0,
1458
- defaultValue: [se]
1462
+ defaultValue: [ie]
1459
1463
  }, {
1460
1464
  name: "detail",
1461
1465
  type: "uiBlocks",
1462
1466
  hideFromUI: !0,
1463
- defaultValue: [ae]
1467
+ defaultValue: [se]
1464
1468
  }],
1465
1469
  defaultValue: [{
1466
- title: [se],
1467
- detail: [ae]
1470
+ title: [ie],
1471
+ detail: [se]
1468
1472
  }, {
1469
- title: [se],
1470
- detail: [ae]
1473
+ title: [ie],
1474
+ detail: [se]
1471
1475
  }],
1472
1476
  showIf: (e) => !e.get("useChildrenForItems")
1473
1477
  }, {
@@ -1502,7 +1506,7 @@ const En = /* @__PURE__ */ b(Bn, [["render", Pn]]), xn = (e) => {
1502
1506
  builderComponents: !0,
1503
1507
  builderLinkComponent: !0
1504
1508
  }
1505
- }, Hn = (e) => e.toString(), Kn = f({
1509
+ }, jn = (e) => e.toString(), Hn = f({
1506
1510
  name: "builder-accordion",
1507
1511
  components: { Blocks: M },
1508
1512
  props: [
@@ -1516,7 +1520,7 @@ const En = /* @__PURE__ */ b(Bn, [["render", Pn]]), xn = (e) => {
1516
1520
  "builderLinkComponent"
1517
1521
  ],
1518
1522
  data() {
1519
- return { open: [], convertOrderNumberToString: Hn };
1523
+ return { open: [], convertOrderNumberToString: jn };
1520
1524
  },
1521
1525
  computed: {
1522
1526
  onlyOneAtATime() {
@@ -1597,17 +1601,17 @@ const En = /* @__PURE__ */ b(Bn, [["render", Pn]]), xn = (e) => {
1597
1601
  this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
1598
1602
  }
1599
1603
  }
1600
- }), qn = ["data-index", "onClick"];
1601
- function zn(e, t, n, o, r, i) {
1604
+ }), Kn = ["data-index", "onClick"];
1605
+ function qn(e, t, n, o, r, i) {
1602
1606
  const s = g("Blocks");
1603
1607
  return d(), p("div", {
1604
1608
  class: "builder-accordion",
1605
- style: O(e.accordionStyles)
1609
+ style: L(e.accordionStyles)
1606
1610
  }, [
1607
1611
  (d(!0), p(I, null, N(e.items, (l, a) => (d(), p(I, { key: a }, [
1608
1612
  z("div", {
1609
1613
  class: J(e.getAccordionTitleClassName(a)),
1610
- style: O({
1614
+ style: L({
1611
1615
  ...e.accordionTitleStyles,
1612
1616
  width: e.grid ? e.gridRowWidth : void 0,
1613
1617
  order: e.openGridItemOrder !== null ? e.convertOrderNumberToString(a) : e.convertOrderNumberToString(a + 1)
@@ -1623,11 +1627,11 @@ function zn(e, t, n, o, r, i) {
1623
1627
  registeredComponents: e.builderComponents,
1624
1628
  linkComponent: e.builderLinkComponent
1625
1629
  }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
1626
- ], 14, qn),
1630
+ ], 14, Kn),
1627
1631
  e.open.includes(a) ? (d(), p("div", {
1628
1632
  key: 0,
1629
1633
  class: J(e.getAccordionDetailClassName(a)),
1630
- style: O(e.accordionDetailStyles)
1634
+ style: L(e.accordionDetailStyles)
1631
1635
  }, [
1632
1636
  $(s, {
1633
1637
  blocks: l.detail,
@@ -1641,7 +1645,7 @@ function zn(e, t, n, o, r, i) {
1641
1645
  ], 64))), 128))
1642
1646
  ], 4);
1643
1647
  }
1644
- const Jn = /* @__PURE__ */ b(Kn, [["render", zn]]), Gn = {
1648
+ const zn = /* @__PURE__ */ b(Hn, [["render", qn]]), Jn = {
1645
1649
  name: "Core:Button",
1646
1650
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1647
1651
  defaultStyles: {
@@ -1675,12 +1679,9 @@ const Jn = /* @__PURE__ */ b(Kn, [["render", zn]]), Gn = {
1675
1679
  static: !0,
1676
1680
  noWrap: !0,
1677
1681
  shouldReceiveBuilderProps: {
1678
- builderBlock: !1,
1679
- builderContext: !1,
1680
- builderComponents: !1,
1681
1682
  builderLinkComponent: !0
1682
1683
  }
1683
- }, Yn = {
1684
+ }, Gn = {
1684
1685
  // TODO: ways to statically preprocess JSON for references, functions, etc
1685
1686
  name: "Columns",
1686
1687
  isRSC: !0,
@@ -1887,19 +1888,13 @@ const Jn = /* @__PURE__ */ b(Kn, [["render", zn]]), Gn = {
1887
1888
  builderComponents: !0,
1888
1889
  builderLinkComponent: !0
1889
1890
  }
1890
- }, Qn = {
1891
- shouldReceiveBuilderProps: {
1892
- builderBlock: !1,
1893
- builderContext: !1,
1894
- builderComponents: !1,
1895
- builderLinkComponent: !1
1896
- },
1891
+ }, Yn = {
1897
1892
  name: "Fragment",
1898
1893
  static: !0,
1899
1894
  hidden: !0,
1900
1895
  canHaveChildren: !0,
1901
1896
  noWrap: !0
1902
- }, Xn = {
1897
+ }, Qn = {
1903
1898
  name: "Image",
1904
1899
  static: !0,
1905
1900
  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",
@@ -2005,18 +2000,9 @@ const Jn = /* @__PURE__ */ b(Kn, [["render", zn]]), Gn = {
2005
2000
  defaultValue: 0.7041
2006
2001
  }],
2007
2002
  shouldReceiveBuilderProps: {
2008
- builderBlock: !0,
2009
- builderContext: !1,
2010
- builderComponents: !1,
2011
- builderLinkComponent: !1
2003
+ builderBlock: !0
2012
2004
  }
2013
- }, Zn = {
2014
- shouldReceiveBuilderProps: {
2015
- builderBlock: !1,
2016
- builderContext: !1,
2017
- builderComponents: !1,
2018
- builderLinkComponent: !1
2019
- },
2005
+ }, Xn = {
2020
2006
  name: "Core:Section",
2021
2007
  static: !0,
2022
2008
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -2055,7 +2041,7 @@ const Jn = /* @__PURE__ */ b(Kn, [["render", zn]]), Gn = {
2055
2041
  }
2056
2042
  }
2057
2043
  }]
2058
- }, _n = {
2044
+ }, Zn = {
2059
2045
  name: "Slot",
2060
2046
  isRSC: !0,
2061
2047
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -2069,20 +2055,17 @@ const Jn = /* @__PURE__ */ b(Kn, [["render", zn]]), Gn = {
2069
2055
  defaultValue: "children"
2070
2056
  }],
2071
2057
  shouldReceiveBuilderProps: {
2072
- builderBlock: !1,
2073
- builderContext: !0,
2074
- builderComponents: !1,
2075
- builderLinkComponent: !1
2058
+ builderContext: !0
2076
2059
  }
2077
- }, eo = f({
2060
+ }, _n = f({
2078
2061
  name: "builder-slot",
2079
2062
  components: { Blocks: M },
2080
2063
  props: ["builderContext", "name"]
2081
2064
  });
2082
- function to(e, t, n, o, r, i) {
2065
+ function eo(e, t, n, o, r, i) {
2083
2066
  var l, a, u;
2084
2067
  const s = g("Blocks");
2085
- return d(), p("div", S(
2068
+ return d(), p("div", C(
2086
2069
  { style: {
2087
2070
  pointerEvents: "auto"
2088
2071
  } },
@@ -2098,7 +2081,7 @@ function to(e, t, n, o, r, i) {
2098
2081
  }, null, 8, ["parent", "path", "context", "blocks"])
2099
2082
  ], 16);
2100
2083
  }
2101
- const no = /* @__PURE__ */ b(eo, [["render", to]]), oo = {
2084
+ const to = /* @__PURE__ */ b(_n, [["render", eo]]), no = {
2102
2085
  name: "Symbol",
2103
2086
  noWrap: !0,
2104
2087
  static: !0,
@@ -2137,7 +2120,7 @@ const no = /* @__PURE__ */ b(eo, [["render", to]]), oo = {
2137
2120
  builderComponents: !0,
2138
2121
  builderLinkComponent: !0
2139
2122
  }
2140
- }, le = {
2123
+ }, ae = {
2141
2124
  "@type": "@builder.io/sdk:Element",
2142
2125
  responsiveStyles: {
2143
2126
  large: {
@@ -2159,7 +2142,7 @@ const no = /* @__PURE__ */ b(eo, [["render", to]]), oo = {
2159
2142
  text: "New tab"
2160
2143
  }
2161
2144
  }
2162
- }, ce = {
2145
+ }, le = {
2163
2146
  "@type": "@builder.io/sdk:Element",
2164
2147
  responsiveStyles: {
2165
2148
  large: {
@@ -2175,7 +2158,7 @@ const no = /* @__PURE__ */ b(eo, [["render", to]]), oo = {
2175
2158
  text: "New tab content "
2176
2159
  }
2177
2160
  }
2178
- }, ro = {
2161
+ }, oo = {
2179
2162
  name: "Builder: Tabs",
2180
2163
  inputs: [{
2181
2164
  name: "tabs",
@@ -2185,16 +2168,16 @@ const no = /* @__PURE__ */ b(eo, [["render", to]]), oo = {
2185
2168
  name: "label",
2186
2169
  type: "uiBlocks",
2187
2170
  hideFromUI: !0,
2188
- defaultValue: [le]
2171
+ defaultValue: [ae]
2189
2172
  }, {
2190
2173
  name: "content",
2191
2174
  type: "uiBlocks",
2192
2175
  hideFromUI: !0,
2193
- defaultValue: [ce]
2176
+ defaultValue: [le]
2194
2177
  }],
2195
2178
  defaultValue: [{
2196
2179
  label: [{
2197
- ...le,
2180
+ ...ae,
2198
2181
  component: {
2199
2182
  name: "Text",
2200
2183
  options: {
@@ -2203,7 +2186,7 @@ const no = /* @__PURE__ */ b(eo, [["render", to]]), oo = {
2203
2186
  }
2204
2187
  }],
2205
2188
  content: [{
2206
- ...ce,
2189
+ ...le,
2207
2190
  component: {
2208
2191
  name: "Text",
2209
2192
  options: {
@@ -2213,7 +2196,7 @@ const no = /* @__PURE__ */ b(eo, [["render", to]]), oo = {
2213
2196
  }]
2214
2197
  }, {
2215
2198
  label: [{
2216
- ...le,
2199
+ ...ae,
2217
2200
  component: {
2218
2201
  name: "Text",
2219
2202
  options: {
@@ -2222,7 +2205,7 @@ const no = /* @__PURE__ */ b(eo, [["render", to]]), oo = {
2222
2205
  }
2223
2206
  }],
2224
2207
  content: [{
2225
- ...ce,
2208
+ ...le,
2226
2209
  component: {
2227
2210
  name: "Text",
2228
2211
  options: {
@@ -2278,7 +2261,7 @@ const no = /* @__PURE__ */ b(eo, [["render", to]]), oo = {
2278
2261
  builderComponents: !0,
2279
2262
  builderLinkComponent: !0
2280
2263
  }
2281
- }, io = f({
2264
+ }, ro = f({
2282
2265
  name: "builder-tabs",
2283
2266
  components: { Blocks: M },
2284
2267
  props: [
@@ -2303,13 +2286,13 @@ const no = /* @__PURE__ */ b(eo, [["render", to]]), oo = {
2303
2286
  e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
2304
2287
  }
2305
2288
  }
2306
- }), so = ["onClick"], ao = { key: 0 };
2307
- function lo(e, t, n, o, r, i) {
2289
+ }), io = ["onClick"], so = { key: 0 };
2290
+ function ao(e, t, n, o, r, i) {
2308
2291
  const s = g("Blocks");
2309
2292
  return d(), p("div", null, [
2310
2293
  z("div", {
2311
2294
  class: "builder-tabs-wrap",
2312
- style: O({
2295
+ style: L({
2313
2296
  display: "flex",
2314
2297
  flexDirection: "row",
2315
2298
  justifyContent: e.tabHeaderLayout || "flex-start",
@@ -2319,7 +2302,7 @@ function lo(e, t, n, o, r, i) {
2319
2302
  (d(!0), p(I, null, N(e.tabs, (l, a) => (d(), p("span", {
2320
2303
  key: a,
2321
2304
  class: J(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
2322
- style: O({
2305
+ style: L({
2323
2306
  ...e.activeTab === a ? e.activeTabStyle : {}
2324
2307
  }),
2325
2308
  onClick: (u) => e.onClick(a)
@@ -2332,9 +2315,9 @@ function lo(e, t, n, o, r, i) {
2332
2315
  registeredComponents: e.builderComponents,
2333
2316
  linkComponent: e.builderLinkComponent
2334
2317
  }, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
2335
- ], 14, so))), 128))
2318
+ ], 14, io))), 128))
2336
2319
  ], 4),
2337
- e.activeTabContent(e.activeTab) ? (d(), p("div", ao, [
2320
+ e.activeTabContent(e.activeTab) ? (d(), p("div", so, [
2338
2321
  $(s, {
2339
2322
  parent: e.builderBlock.id,
2340
2323
  path: `component.options.tabs.${e.activeTab}.content`,
@@ -2346,12 +2329,9 @@ function lo(e, t, n, o, r, i) {
2346
2329
  ])) : v("", !0)
2347
2330
  ]);
2348
2331
  }
2349
- const co = /* @__PURE__ */ b(io, [["render", lo]]), uo = {
2332
+ const lo = /* @__PURE__ */ b(ro, [["render", ao]]), co = {
2350
2333
  shouldReceiveBuilderProps: {
2351
- builderBlock: !1,
2352
- builderContext: !1,
2353
- builderComponents: !1,
2354
- builderLinkComponent: !1
2334
+ builderBlock: !1
2355
2335
  },
2356
2336
  name: "Text",
2357
2337
  static: !0,
@@ -2370,11 +2350,11 @@ const co = /* @__PURE__ */ b(io, [["render", lo]]), uo = {
2370
2350
  height: "auto",
2371
2351
  textAlign: "center"
2372
2352
  }
2373
- }, po = f({
2353
+ }, uo = f({
2374
2354
  name: "builder-text",
2375
2355
  props: ["text"]
2376
- }), mo = ["innerHTML"];
2377
- function ho(e, t, n, o, r, i) {
2356
+ }), po = ["innerHTML"];
2357
+ function mo(e, t, n, o, r, i) {
2378
2358
  var s;
2379
2359
  return d(), p("div", {
2380
2360
  class: "builder-text",
@@ -2382,15 +2362,9 @@ function ho(e, t, n, o, r, i) {
2382
2362
  style: {
2383
2363
  outline: "none"
2384
2364
  }
2385
- }, null, 8, mo);
2365
+ }, null, 8, po);
2386
2366
  }
2387
- const fo = /* @__PURE__ */ b(po, [["render", ho]]), bo = {
2388
- shouldReceiveBuilderProps: {
2389
- builderBlock: !1,
2390
- builderContext: !1,
2391
- builderComponents: !1,
2392
- builderLinkComponent: !1
2393
- },
2367
+ const ho = /* @__PURE__ */ b(uo, [["render", mo]]), fo = {
2394
2368
  name: "Custom Code",
2395
2369
  static: !0,
2396
2370
  requiredPermissions: ["editCode"],
@@ -2412,7 +2386,7 @@ const fo = /* @__PURE__ */ b(po, [["render", ho]]), bo = {
2412
2386
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
2413
2387
  advanced: !0
2414
2388
  }]
2415
- }, go = f({
2389
+ }, bo = f({
2416
2390
  name: "builder-custom-code",
2417
2391
  props: ["replaceNodes", "code"],
2418
2392
  data() {
@@ -2446,21 +2420,15 @@ const fo = /* @__PURE__ */ b(po, [["render", ho]]), bo = {
2446
2420
  }
2447
2421
  }
2448
2422
  }
2449
- }), yo = ["innerHTML"];
2450
- function ko(e, t, n, o, r, i) {
2423
+ }), go = ["innerHTML"];
2424
+ function yo(e, t, n, o, r, i) {
2451
2425
  return d(), p("div", {
2452
2426
  ref: "elementRef",
2453
2427
  class: J("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
2454
2428
  innerHTML: e.code
2455
- }, null, 10, yo);
2429
+ }, null, 10, go);
2456
2430
  }
2457
- const vo = /* @__PURE__ */ b(go, [["render", ko]]), Co = {
2458
- shouldReceiveBuilderProps: {
2459
- builderBlock: !1,
2460
- builderContext: !1,
2461
- builderComponents: !1,
2462
- builderLinkComponent: !1
2463
- },
2431
+ const ko = /* @__PURE__ */ b(bo, [["render", yo]]), vo = {
2464
2432
  name: "Embed",
2465
2433
  static: !0,
2466
2434
  inputs: [{
@@ -2468,27 +2436,14 @@ const vo = /* @__PURE__ */ b(go, [["render", ko]]), Co = {
2468
2436
  type: "url",
2469
2437
  required: !0,
2470
2438
  defaultValue: "",
2471
- helperText: "e.g. enter a youtube url, google map, etc",
2472
- onChange: (e) => {
2473
- const t = e.get("url");
2474
- if (t) {
2475
- e.set("content", "Loading...");
2476
- const n = _iframelyApiKey;
2477
- return fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=${n}`).then((o) => o.json()).then((o) => {
2478
- e.get("url") === t && (o.html ? e.set("content", o.html) : e.set("content", "Invalid url, please try another"));
2479
- }).catch((o) => {
2480
- e.set("content", "There was an error embedding this URL, please try again or another URL");
2481
- });
2482
- } else
2483
- e.delete("content");
2484
- }
2439
+ helperText: "e.g. enter a youtube url, google map, etc"
2485
2440
  }, {
2486
2441
  name: "content",
2487
2442
  type: "html",
2488
2443
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2489
2444
  hideFromUI: !0
2490
2445
  }]
2491
- }, So = ["text/javascript", "application/javascript", "application/ecmascript"], wo = (e) => So.includes(e.type), To = f({
2446
+ }, So = ["text/javascript", "application/javascript", "application/ecmascript"], Co = (e) => So.includes(e.type), wo = f({
2492
2447
  name: "builder-embed",
2493
2448
  props: ["content"],
2494
2449
  data() {
@@ -2521,7 +2476,7 @@ const vo = /* @__PURE__ */ b(go, [["render", ko]]), Co = {
2521
2476
  this.scriptsInserted.push(n.src);
2522
2477
  const o = document.createElement("script");
2523
2478
  o.async = !0, o.src = n.src, document.head.appendChild(o);
2524
- } else if (wo(n) && !this.scriptsRun.includes(n.innerText))
2479
+ } else if (Co(n) && !this.scriptsRun.includes(n.innerText))
2525
2480
  try {
2526
2481
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
2527
2482
  } catch (o) {
@@ -2530,15 +2485,15 @@ const vo = /* @__PURE__ */ b(go, [["render", ko]]), Co = {
2530
2485
  }
2531
2486
  }
2532
2487
  }
2533
- }), Io = ["innerHTML"];
2534
- function $o(e, t, n, o, r, i) {
2488
+ }), To = ["innerHTML"];
2489
+ function Io(e, t, n, o, r, i) {
2535
2490
  return d(), p("div", {
2536
2491
  class: "builder-embed",
2537
2492
  ref: "elem",
2538
2493
  innerHTML: e.content
2539
- }, null, 8, Io);
2494
+ }, null, 8, To);
2540
2495
  }
2541
- const Ro = /* @__PURE__ */ b(To, [["render", $o]]), Bo = {
2496
+ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
2542
2497
  name: "Form:Form",
2543
2498
  // editableTags: ['builder-form-error']
2544
2499
  defaults: {
@@ -2775,15 +2730,15 @@ const Ro = /* @__PURE__ */ b(To, [["render", $o]]), Bo = {
2775
2730
  builderComponents: !0,
2776
2731
  builderLinkComponent: !0
2777
2732
  }
2778
- }, Po = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Eo = () => {
2733
+ }, Bo = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Po = () => {
2779
2734
  const e = process.env.NODE_ENV || "production";
2780
- return Po.includes(e) ? e : "production";
2781
- }, xo = (e, t, n) => {
2735
+ return Bo.includes(e) ? e : "production";
2736
+ }, Eo = (e, t, n) => {
2782
2737
  const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
2783
2738
  return o === void 0 || o === e ? n : o;
2784
- }, Ao = f({
2739
+ }, xo = f({
2785
2740
  name: "builder-form-component",
2786
- components: { Block: be, Blocks: M },
2741
+ components: { Block: fe, Blocks: M },
2787
2742
  props: [
2788
2743
  "builderContext",
2789
2744
  "previewState",
@@ -2842,12 +2797,12 @@ const Ro = /* @__PURE__ */ b(To, [["render", $o]]), Bo = {
2842
2797
  let i;
2843
2798
  const s = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).map((c) => {
2844
2799
  let m;
2845
- const C = c.name;
2800
+ const S = c.name;
2846
2801
  if (c instanceof HTMLInputElement)
2847
2802
  if (c.type === "radio") {
2848
2803
  if (c.checked)
2849
2804
  return m = c.name, {
2850
- key: C,
2805
+ key: S,
2851
2806
  value: m
2852
2807
  };
2853
2808
  } else if (c.type === "checkbox")
@@ -2860,7 +2815,7 @@ const Ro = /* @__PURE__ */ b(To, [["render", $o]]), Bo = {
2860
2815
  else
2861
2816
  m = c.value;
2862
2817
  return {
2863
- key: C,
2818
+ key: S,
2864
2819
  value: m
2865
2820
  };
2866
2821
  });
@@ -2871,8 +2826,8 @@ const Ro = /* @__PURE__ */ b(To, [["render", $o]]), Bo = {
2871
2826
  i = s;
2872
2827
  else {
2873
2828
  const c = {};
2874
- Array.from(l).forEach(({ value: m, key: C }) => {
2875
- Oe(c, C, m);
2829
+ Array.from(l).forEach(({ value: m, key: S }) => {
2830
+ Oe(c, S, m);
2876
2831
  }), i = JSON.stringify(c);
2877
2832
  }
2878
2833
  a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
@@ -2884,7 +2839,7 @@ const Ro = /* @__PURE__ */ b(To, [["render", $o]]), Bo = {
2884
2839
  if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(u), u.defaultPrevented))
2885
2840
  return;
2886
2841
  this.formState = "sending";
2887
- const h = `${Eo() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
2842
+ const h = `${Po() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
2888
2843
  this.sendSubmissionsToEmail || ""
2889
2844
  )}&name=${encodeURIComponent(this.name || "")}`;
2890
2845
  fetch(
@@ -2897,9 +2852,9 @@ const Ro = /* @__PURE__ */ b(To, [["render", $o]]), Bo = {
2897
2852
  ).then(
2898
2853
  async (c) => {
2899
2854
  let m;
2900
- const C = c.headers.get("content-type");
2901
- if (C && C.indexOf("application/json") !== -1 ? m = await c.json() : m = await c.text(), !c.ok && this.errorMessagePath) {
2902
- let y = xo(m, this.errorMessagePath);
2855
+ const S = c.headers.get("content-type");
2856
+ if (S && S.indexOf("application/json") !== -1 ? m = await c.json() : m = await c.text(), !c.ok && this.errorMessagePath) {
2857
+ let y = Eo(m, this.errorMessagePath);
2903
2858
  y && (typeof y != "string" && (y = JSON.stringify(y)), this.formErrorMessage = y, this.mergeNewRootState({
2904
2859
  formErrorMessage: y
2905
2860
  }));
@@ -2918,12 +2873,12 @@ const Ro = /* @__PURE__ */ b(To, [["render", $o]]), Bo = {
2918
2873
  }
2919
2874
  if (this.successUrl)
2920
2875
  if (this.$refs.formRef) {
2921
- const L = new CustomEvent("route", {
2876
+ const F = new CustomEvent("route", {
2922
2877
  detail: {
2923
2878
  url: this.successUrl
2924
2879
  }
2925
2880
  });
2926
- this.$refs.formRef.dispatchEvent(L), L.defaultPrevented || (location.href = this.successUrl);
2881
+ this.$refs.formRef.dispatchEvent(F), F.defaultPrevented || (location.href = this.successUrl);
2927
2882
  } else
2928
2883
  location.href = this.successUrl;
2929
2884
  }
@@ -2940,14 +2895,14 @@ const Ro = /* @__PURE__ */ b(To, [["render", $o]]), Bo = {
2940
2895
  }
2941
2896
  }
2942
2897
  }
2943
- }), Vo = ["validate", "action", "method", "name"], Wo = {
2898
+ }), Ao = ["validate", "action", "method", "name"], Vo = {
2944
2899
  key: 3,
2945
2900
  class: "builder-form-error-text pre-3i4ezorcfhi"
2946
2901
  };
2947
- function No(e, t, n, o, r, i) {
2902
+ function Wo(e, t, n, o, r, i) {
2948
2903
  var a;
2949
2904
  const s = g("Block"), l = g("Blocks");
2950
- return d(), p("form", S({
2905
+ return d(), p("form", C({
2951
2906
  validate: e.validate,
2952
2907
  ref: "formRef",
2953
2908
  action: !e.sendWithJs && e.action,
@@ -2974,22 +2929,16 @@ function No(e, t, n, o, r, i) {
2974
2929
  blocks: e.sendingMessage,
2975
2930
  context: e.builderContext
2976
2931
  }, null, 8, ["blocks", "context"])) : v("", !0),
2977
- e.submissionState() === "error" && e.responseData ? (d(), p("pre", Wo, ne(JSON.stringify(e.responseData, null, 2)), 1)) : v("", !0),
2932
+ e.submissionState() === "error" && e.responseData ? (d(), p("pre", Vo, ne(JSON.stringify(e.responseData, null, 2)), 1)) : v("", !0),
2978
2933
  e.submissionState() === "success" ? (d(), k(l, {
2979
2934
  key: 4,
2980
2935
  path: "successMessage",
2981
2936
  blocks: e.successMessage,
2982
2937
  context: e.builderContext
2983
2938
  }, null, 8, ["blocks", "context"])) : v("", !0)
2984
- ], 16, Vo);
2939
+ ], 16, Ao);
2985
2940
  }
2986
- const Lo = /* @__PURE__ */ b(Ao, [["render", No], ["__scopeId", "data-v-489330f7"]]), Fo = {
2987
- shouldReceiveBuilderProps: {
2988
- builderBlock: !1,
2989
- builderContext: !1,
2990
- builderComponents: !1,
2991
- builderLinkComponent: !1
2992
- },
2941
+ const No = /* @__PURE__ */ b(xo, [["render", Wo], ["__scopeId", "data-v-489330f7"]]), Fo = {
2993
2942
  name: "Form:Input",
2994
2943
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2995
2944
  inputs: [
@@ -3054,9 +3003,9 @@ const Lo = /* @__PURE__ */ b(Ao, [["render", No], ["__scopeId", "data-v-489330f7
3054
3003
  data() {
3055
3004
  return { isEditing: R, filterAttrs: x };
3056
3005
  }
3057
- }), Do = ["placeholder", "type", "name", "value", "defaultValue", "required"];
3058
- function Uo(e, t, n, o, r, i) {
3059
- return d(), p("input", S({
3006
+ }), Lo = ["placeholder", "type", "name", "value", "defaultValue", "required"];
3007
+ function Do(e, t, n, o, r, i) {
3008
+ return d(), p("input", C({
3060
3009
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
3061
3010
  placeholder: e.placeholder,
3062
3011
  type: e.type,
@@ -3064,15 +3013,9 @@ function Uo(e, t, n, o, r, i) {
3064
3013
  value: e.value,
3065
3014
  defaultValue: e.defaultValue,
3066
3015
  required: e.required
3067
- }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Do);
3016
+ }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Lo);
3068
3017
  }
3069
- const Mo = /* @__PURE__ */ b(Oo, [["render", Uo]]), jo = {
3070
- shouldReceiveBuilderProps: {
3071
- builderBlock: !1,
3072
- builderContext: !1,
3073
- builderComponents: !1,
3074
- builderLinkComponent: !1
3075
- },
3018
+ const Uo = /* @__PURE__ */ b(Oo, [["render", Do]]), Mo = {
3076
3019
  name: "Form:Select",
3077
3020
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
3078
3021
  defaultStyles: {
@@ -3114,15 +3057,15 @@ const Mo = /* @__PURE__ */ b(Oo, [["render", Uo]]), jo = {
3114
3057
  }],
3115
3058
  static: !0,
3116
3059
  noWrap: !0
3117
- }, Ho = f({
3060
+ }, jo = f({
3118
3061
  name: "builder-select-component",
3119
3062
  props: ["attributes", "value", "defaultValue", "name", "required", "options"],
3120
3063
  data() {
3121
3064
  return { isEditing: R, filterAttrs: x };
3122
3065
  }
3123
- }), Ko = ["value", "defaultValue", "name", "required"], qo = ["value"];
3124
- function zo(e, t, n, o, r, i) {
3125
- return d(), p("select", S({
3066
+ }), Ho = ["value", "defaultValue", "name", "required"], Ko = ["value"];
3067
+ function qo(e, t, n, o, r, i) {
3068
+ return d(), p("select", C({
3126
3069
  value: e.value,
3127
3070
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
3128
3071
  defaultValue: e.defaultValue,
@@ -3132,16 +3075,10 @@ function zo(e, t, n, o, r, i) {
3132
3075
  (d(!0), p(I, null, N(e.options, (s, l) => (d(), p("option", {
3133
3076
  key: `${s.name}-${l}`,
3134
3077
  value: s.value
3135
- }, ne(s.name || s.value), 9, qo))), 128))
3136
- ], 16, Ko);
3078
+ }, ne(s.name || s.value), 9, Ko))), 128))
3079
+ ], 16, Ho);
3137
3080
  }
3138
- const Jo = /* @__PURE__ */ b(Ho, [["render", zo]]), Go = {
3139
- shouldReceiveBuilderProps: {
3140
- builderBlock: !1,
3141
- builderContext: !1,
3142
- builderComponents: !1,
3143
- builderLinkComponent: !1
3144
- },
3081
+ const zo = /* @__PURE__ */ b(jo, [["render", qo]]), Jo = {
3145
3082
  name: "Form:SubmitButton",
3146
3083
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
3147
3084
  defaultStyles: {
@@ -3166,23 +3103,17 @@ const Jo = /* @__PURE__ */ b(Ho, [["render", zo]]), Go = {
3166
3103
  // that only shows if advanced setting is flipped
3167
3104
  // TODO: defaultChildren
3168
3105
  // canHaveChildren: true,
3169
- }, Yo = f({
3106
+ }, Go = f({
3170
3107
  name: "builder-submit-button",
3171
3108
  props: ["attributes", "text"],
3172
3109
  data() {
3173
3110
  return { filterAttrs: x };
3174
3111
  }
3175
3112
  });
3176
- function Qo(e, t, n, o, r, i) {
3177
- return d(), p("button", S({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ne(e.text), 17);
3113
+ function Yo(e, t, n, o, r, i) {
3114
+ return d(), p("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ne(e.text), 17);
3178
3115
  }
3179
- const Xo = /* @__PURE__ */ b(Yo, [["render", Qo]]), Zo = {
3180
- shouldReceiveBuilderProps: {
3181
- builderBlock: !1,
3182
- builderContext: !1,
3183
- builderComponents: !1,
3184
- builderLinkComponent: !1
3185
- },
3116
+ const Qo = /* @__PURE__ */ b(Go, [["render", Yo]]), Xo = {
3186
3117
  name: "Form:TextArea",
3187
3118
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
3188
3119
  inputs: [{
@@ -3218,7 +3149,7 @@ const Xo = /* @__PURE__ */ b(Yo, [["render", Qo]]), Zo = {
3218
3149
  },
3219
3150
  static: !0,
3220
3151
  noWrap: !0
3221
- }, _o = f({
3152
+ }, Zo = f({
3222
3153
  name: "builder-textarea",
3223
3154
  props: [
3224
3155
  "attributes",
@@ -3231,23 +3162,17 @@ const Xo = /* @__PURE__ */ b(Yo, [["render", Qo]]), Zo = {
3231
3162
  data() {
3232
3163
  return { filterAttrs: x };
3233
3164
  }
3234
- }), er = ["placeholder", "name", "value", "defaultValue", "required"];
3235
- function tr(e, t, n, o, r, i) {
3236
- return d(), p("textarea", S({
3165
+ }), _o = ["placeholder", "name", "value", "defaultValue", "required"];
3166
+ function er(e, t, n, o, r, i) {
3167
+ return d(), p("textarea", C({
3237
3168
  placeholder: e.placeholder,
3238
3169
  name: e.name,
3239
3170
  value: e.value,
3240
3171
  defaultValue: e.defaultValue,
3241
3172
  required: e.required
3242
- }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, er);
3173
+ }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, _o);
3243
3174
  }
3244
- const nr = /* @__PURE__ */ b(_o, [["render", tr]]), or = {
3245
- shouldReceiveBuilderProps: {
3246
- builderBlock: !1,
3247
- builderContext: !1,
3248
- builderComponents: !1,
3249
- builderLinkComponent: !1
3250
- },
3175
+ const tr = /* @__PURE__ */ b(Zo, [["render", er]]), nr = {
3251
3176
  // friendlyName?
3252
3177
  name: "Raw:Img",
3253
3178
  hideFromInsertMenu: !0,
@@ -3261,7 +3186,7 @@ const nr = /* @__PURE__ */ b(_o, [["render", tr]]), or = {
3261
3186
  }],
3262
3187
  noWrap: !0,
3263
3188
  static: !0
3264
- }, rr = f({
3189
+ }, or = f({
3265
3190
  name: "builder-img-component",
3266
3191
  props: [
3267
3192
  "backgroundSize",
@@ -3274,9 +3199,9 @@ const nr = /* @__PURE__ */ b(_o, [["render", tr]]), or = {
3274
3199
  data() {
3275
3200
  return { isEditing: R, filterAttrs: x };
3276
3201
  }
3277
- }), ir = ["alt", "src"];
3278
- function sr(e, t, n, o, r, i) {
3279
- return d(), p("img", S({
3202
+ }), rr = ["alt", "src"];
3203
+ function ir(e, t, n, o, r, i) {
3204
+ return d(), p("img", C({
3280
3205
  style: {
3281
3206
  objectFit: e.backgroundSize || "cover",
3282
3207
  objectPosition: e.backgroundPosition || "center"
@@ -3284,9 +3209,9 @@ function sr(e, t, n, o, r, i) {
3284
3209
  key: e.isEditing() && e.imgSrc || "default-key",
3285
3210
  alt: e.altText,
3286
3211
  src: e.imgSrc || e.image
3287
- }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, ir);
3212
+ }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, rr);
3288
3213
  }
3289
- const ar = /* @__PURE__ */ b(rr, [["render", sr]]), lr = {
3214
+ const sr = /* @__PURE__ */ b(or, [["render", ir]]), ar = {
3290
3215
  name: "Video",
3291
3216
  canHaveChildren: !0,
3292
3217
  defaultStyles: {
@@ -3368,12 +3293,9 @@ const ar = /* @__PURE__ */ b(rr, [["render", sr]]), lr = {
3368
3293
  advanced: !0
3369
3294
  }],
3370
3295
  shouldReceiveBuilderProps: {
3371
- builderBlock: !0,
3372
- builderContext: !1,
3373
- builderComponents: !1,
3374
- builderLinkComponent: !1
3296
+ builderBlock: !0
3375
3297
  }
3376
- }, cr = f({
3298
+ }, lr = f({
3377
3299
  name: "builder-video",
3378
3300
  props: [
3379
3301
  "autoPlay",
@@ -3418,16 +3340,16 @@ const ar = /* @__PURE__ */ b(rr, [["render", sr]]), lr = {
3418
3340
  };
3419
3341
  }
3420
3342
  }
3421
- }), dr = { style: {
3343
+ }), cr = { style: {
3422
3344
  position: "relative"
3423
- } }, ur = ["preload", "src", "poster"], pr = ["src"], mr = {
3345
+ } }, dr = ["preload", "src", "poster"], ur = ["src"], pr = {
3424
3346
  key: 1,
3425
3347
  style: {
3426
3348
  display: "flex",
3427
3349
  flexDirection: "column",
3428
3350
  alignItems: "stretch"
3429
3351
  }
3430
- }, hr = {
3352
+ }, mr = {
3431
3353
  key: 2,
3432
3354
  style: {
3433
3355
  pointerEvents: "none",
@@ -3441,10 +3363,10 @@ const ar = /* @__PURE__ */ b(rr, [["render", sr]]), lr = {
3441
3363
  height: "100%"
3442
3364
  }
3443
3365
  };
3444
- function fr(e, t, n, o, r, i) {
3366
+ function hr(e, t, n, o, r, i) {
3445
3367
  var s, l, a, u, h, c, m;
3446
- return d(), p("div", dr, [
3447
- z("video", S({
3368
+ return d(), p("div", cr, [
3369
+ z("video", C({
3448
3370
  class: "builder-video",
3449
3371
  preload: e.preload || "metadata",
3450
3372
  style: {
@@ -3468,98 +3390,98 @@ function fr(e, t, n, o, r, i) {
3468
3390
  key: 0,
3469
3391
  type: "video/mp4",
3470
3392
  src: e.video
3471
- }, null, 8, pr))
3472
- ], 16, ur),
3393
+ }, null, 8, ur))
3394
+ ], 16, dr),
3473
3395
  e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), p("div", {
3474
3396
  key: 0,
3475
- style: O({
3397
+ style: L({
3476
3398
  width: "100%",
3477
3399
  paddingTop: e.aspectRatio * 100 + "%",
3478
3400
  pointerEvents: "none",
3479
3401
  fontSize: "0px"
3480
3402
  })
3481
3403
  }, null, 4)) : v("", !0),
3482
- (h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (d(), p("div", mr, [
3404
+ (h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (d(), p("div", pr, [
3483
3405
  E(e.$slots, "default")
3484
3406
  ])) : v("", !0),
3485
- (m = (c = e.builderBlock) == null ? void 0 : c.children) != null && m.length && !e.fitContent ? (d(), p("div", hr, [
3407
+ (m = (c = e.builderBlock) == null ? void 0 : c.children) != null && m.length && !e.fitContent ? (d(), p("div", mr, [
3486
3408
  E(e.$slots, "default")
3487
3409
  ])) : v("", !0)
3488
3410
  ]);
3489
3411
  }
3490
- const br = /* @__PURE__ */ b(cr, [["render", fr]]), gr = () => [{
3491
- component: vo,
3492
- ...bo
3412
+ const fr = /* @__PURE__ */ b(lr, [["render", hr]]), br = () => [{
3413
+ component: ko,
3414
+ ...fo
3493
3415
  }, {
3494
- component: Ro,
3495
- ...Co
3416
+ component: $o,
3417
+ ...vo
3496
3418
  }, {
3497
- component: Lo,
3498
- ...Bo
3419
+ component: No,
3420
+ ...Ro
3499
3421
  }, {
3500
- component: Mo,
3422
+ component: Uo,
3501
3423
  ...Fo
3502
3424
  }, {
3503
- component: Xo,
3504
- ...Go
3425
+ component: Qo,
3426
+ ...Jo
3505
3427
  }, {
3506
- component: Jo,
3507
- ...jo
3428
+ component: zo,
3429
+ ...Mo
3508
3430
  }, {
3509
- component: nr,
3510
- ...Zo
3431
+ component: tr,
3432
+ ...Xo
3511
3433
  }, {
3512
- component: ar,
3513
- ...or
3434
+ component: sr,
3435
+ ...nr
3514
3436
  }, {
3515
- component: br,
3516
- ...lr
3517
- }], Te = () => [{
3518
- component: wt,
3437
+ component: fr,
3438
+ ...ar
3439
+ }], we = () => [{
3440
+ component: Ct,
3441
+ ...Jn
3442
+ }, {
3443
+ component: fn,
3519
3444
  ...Gn
3520
3445
  }, {
3521
- component: bn,
3446
+ component: yn,
3522
3447
  ...Yn
3523
3448
  }, {
3524
- component: kn,
3449
+ component: $n,
3525
3450
  ...Qn
3526
3451
  }, {
3527
- component: Rn,
3452
+ component: Pn,
3528
3453
  ...Xn
3529
3454
  }, {
3530
- component: En,
3455
+ component: to,
3531
3456
  ...Zn
3532
3457
  }, {
3533
- component: no,
3534
- ..._n
3535
- }, {
3536
- component: $i,
3537
- ...oo
3458
+ component: Ii,
3459
+ ...no
3538
3460
  }, {
3539
- component: fo,
3540
- ...uo
3461
+ component: ho,
3462
+ ...co
3541
3463
  }, {
3542
- component: co,
3543
- ...ro
3464
+ component: lo,
3465
+ ...oo
3544
3466
  }, {
3545
- component: Jn,
3546
- ...jn
3547
- }, ...gr()], yr = (e) => ({
3467
+ component: zn,
3468
+ ...Mn
3469
+ }, ...br()], gr = (e) => ({
3548
3470
  type: "builder.registerComponent",
3549
- data: ue(e)
3550
- }), kr = (e) => {
3471
+ data: de(e)
3472
+ }), yr = (e) => {
3551
3473
  const t = e.toString().trim();
3552
3474
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
3553
- }, vr = (e) => typeof e == "function" ? kr(e) : Y(e), ue = ({
3475
+ }, kr = (e) => typeof e == "function" ? yr(e) : Y(e), de = ({
3554
3476
  inputs: e,
3555
3477
  ...t
3556
3478
  }) => ({
3557
3479
  ...Y(t),
3558
3480
  inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, i]) => ({
3559
3481
  ...o,
3560
- [r]: vr(i)
3482
+ [r]: kr(i)
3561
3483
  }), {}))
3562
- }), Cr = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3484
+ }), vr = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3563
3485
  function getAndSetVariantId() {
3564
3486
  function setCookie(name, value, days) {
3565
3487
  let expires = '';
@@ -3649,27 +3571,27 @@ const br = /* @__PURE__ */ b(cr, [["render", fr]]), gr = () => [{
3649
3571
  thisScriptEl?.remove();
3650
3572
  }
3651
3573
  return;
3652
- }`, Ze = "builderIoAbTest", _e = "builderIoRenderContent", _ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3574
+ }`, Xe = "builderIoAbTest", Ze = "builderIoRenderContent", _ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3653
3575
  ...t,
3654
3576
  testVariationId: t.id,
3655
3577
  id: e == null ? void 0 : e.id
3656
- })), wr = ({
3578
+ })), Cr = ({
3657
3579
  canTrack: e,
3658
3580
  content: t
3659
- }) => !(!(_(t).length > 0) || !e), Tr = (e) => e === "react" || e === "reactNative", et = Tr(A), Ir = () => `
3660
- window.${Ze} = ${Cr}
3661
- window.${_e} = ${Sr}
3662
- `, $r = (e, t) => `
3663
- window.${Ze}(
3664
- "${t}",${JSON.stringify(e)}, ${et}
3665
- )`, Rr = ({
3581
+ }) => !(!(_(t).length > 0) || !e), wr = (e) => e === "react" || e === "reactNative", _e = wr(A), Tr = () => `
3582
+ window.${Xe} = ${vr}
3583
+ window.${Ze} = ${Sr}
3584
+ `, Ir = (e, t) => `
3585
+ window.${Xe}(
3586
+ "${t}",${JSON.stringify(e)}, ${_e}
3587
+ )`, $r = ({
3666
3588
  contentId: e,
3667
3589
  variationId: t
3668
- }) => `window.${_e}(
3669
- "${t}", "${e}", ${et}
3670
- )`, tt = f({
3590
+ }) => `window.${Ze}(
3591
+ "${t}", "${e}", ${_e}
3592
+ )`, et = f({
3671
3593
  render() {
3672
- return Ae("script", {
3594
+ return xe("script", {
3673
3595
  innerHTML: this.scriptStr,
3674
3596
  "data-id": this.id
3675
3597
  });
@@ -3677,52 +3599,52 @@ const br = /* @__PURE__ */ b(cr, [["render", fr]]), gr = () => [{
3677
3599
  name: "inlined-script",
3678
3600
  props: ["scriptStr", "id"]
3679
3601
  });
3680
- function Br() {
3602
+ function Rr() {
3681
3603
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
3682
3604
  }
3683
- function Pr() {
3684
- const e = Br().fetch;
3605
+ function Br() {
3606
+ const e = Rr().fetch;
3685
3607
  if (typeof e > "u")
3686
3608
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
3687
3609
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
3688
3610
  return e;
3689
3611
  }
3690
- const nt = Pr();
3691
- function pe(e, t = null, n = ".") {
3612
+ const tt = Br();
3613
+ function ue(e, t = null, n = ".") {
3692
3614
  return Object.keys(e).reduce((o, r) => {
3693
3615
  const i = e[r], s = [t, r].filter(Boolean).join(n);
3694
3616
  return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
3695
3617
  ...o,
3696
- ...pe(i, s, n)
3618
+ ...ue(i, s, n)
3697
3619
  } : {
3698
3620
  ...o,
3699
3621
  [s]: i
3700
3622
  };
3701
3623
  }, {});
3702
3624
  }
3703
- function ot(e, t, n = {}) {
3625
+ function nt(e, t, n = {}) {
3704
3626
  for (const o in e) {
3705
3627
  const r = e[o], i = t ? t + "." + o : o;
3706
- r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? ot(r, i, n) : n[i] = r;
3628
+ r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? nt(r, i, n) : n[i] = r;
3707
3629
  }
3708
3630
  return n;
3709
3631
  }
3710
- const Er = "v3", Ie = "builder.", xr = "options.", rt = (e) => {
3632
+ const Pr = "v3", Te = "builder.", Er = "options.", ot = (e) => {
3711
3633
  if (!e)
3712
3634
  return {};
3713
- const t = We(e), n = {};
3635
+ const t = Ve(e), n = {};
3714
3636
  return Object.keys(t).forEach((o) => {
3715
- if (o.startsWith(Ie)) {
3716
- const r = o.replace(Ie, "").replace(xr, "");
3637
+ if (o.startsWith(Te)) {
3638
+ const r = o.replace(Te, "").replace(Er, "");
3717
3639
  n[r] = t[o];
3718
3640
  }
3719
3641
  }), n;
3720
- }, Ar = () => {
3642
+ }, xr = () => {
3721
3643
  if (!T())
3722
3644
  return {};
3723
3645
  const e = new URLSearchParams(window.location.search);
3724
- return rt(e);
3725
- }, $e = (e) => typeof e == "number" && !isNaN(e) && e >= 0, ke = (e) => {
3646
+ return ot(e);
3647
+ }, Ie = (e) => typeof e == "number" && !isNaN(e) && e >= 0, ye = (e) => {
3726
3648
  const {
3727
3649
  limit: t = 30,
3728
3650
  userAttributes: n,
@@ -3731,60 +3653,60 @@ const Er = "v3", Ie = "builder.", xr = "options.", rt = (e) => {
3731
3653
  apiKey: i,
3732
3654
  enrich: s,
3733
3655
  locale: l,
3734
- apiVersion: a = Er,
3656
+ apiVersion: a = Pr,
3735
3657
  fields: u,
3736
3658
  omit: h,
3737
3659
  offset: c,
3738
3660
  cacheSeconds: m,
3739
- staleCacheSeconds: C,
3661
+ staleCacheSeconds: S,
3740
3662
  sort: y,
3741
- includeUnpublished: L
3663
+ includeUnpublished: F
3742
3664
  } = e;
3743
3665
  if (!i)
3744
3666
  throw new Error("Missing API key");
3745
3667
  if (!["v3"].includes(a))
3746
3668
  throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
3747
3669
  const X = t !== 1, w = new URL(`https://cdn.builder.io/api/${a}/content/${r}`);
3748
- if (w.searchParams.set("apiKey", i), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(X)), w.searchParams.set("includeRefs", String(!0)), l && w.searchParams.set("locale", l), s && w.searchParams.set("enrich", String(s)), w.searchParams.set("omit", h || "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(c) && c > -1 && w.searchParams.set("offset", String(Math.floor(c))), typeof L == "boolean" && w.searchParams.set("includeUnpublished", String(L)), m && $e(m) && w.searchParams.set("cacheSeconds", String(m)), C && $e(C) && w.searchParams.set("staleCacheSeconds", String(C)), y) {
3749
- const F = pe({
3670
+ if (w.searchParams.set("apiKey", i), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(X)), w.searchParams.set("includeRefs", String(!0)), l && w.searchParams.set("locale", l), s && w.searchParams.set("enrich", String(s)), w.searchParams.set("omit", h || "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(c) && c > -1 && w.searchParams.set("offset", String(Math.floor(c))), typeof F == "boolean" && w.searchParams.set("includeUnpublished", String(F)), m && Ie(m) && w.searchParams.set("cacheSeconds", String(m)), S && Ie(S) && w.searchParams.set("staleCacheSeconds", String(S)), y) {
3671
+ const O = ue({
3750
3672
  sort: y
3751
3673
  });
3752
- for (const j in F)
3753
- w.searchParams.set(j, JSON.stringify(F[j]));
3674
+ for (const j in O)
3675
+ w.searchParams.set(j, JSON.stringify(O[j]));
3754
3676
  }
3755
- const pt = {
3756
- ...Ar(),
3757
- ...We(e.options || {})
3758
- }, Ce = pe(pt);
3759
- for (const F in Ce)
3760
- w.searchParams.set(F, String(Ce[F]));
3677
+ const ut = {
3678
+ ...xr(),
3679
+ ...Ve(e.options || {})
3680
+ }, ve = ue(ut);
3681
+ for (const O in ve)
3682
+ w.searchParams.set(O, String(ve[O]));
3761
3683
  if (n && w.searchParams.set("userAttributes", JSON.stringify(n)), o) {
3762
- const F = ot({
3684
+ const O = nt({
3763
3685
  query: o
3764
3686
  });
3765
- for (const j in F)
3766
- w.searchParams.set(j, JSON.stringify(F[j]));
3687
+ for (const j in O)
3688
+ w.searchParams.set(j, JSON.stringify(O[j]));
3767
3689
  }
3768
3690
  return w;
3769
- }, Vr = (e) => "results" in e;
3770
- async function ve(e) {
3771
- const t = await Lr({
3691
+ }, Ar = (e) => "results" in e;
3692
+ async function ke(e) {
3693
+ const t = await Nr({
3772
3694
  ...e,
3773
3695
  limit: 1
3774
3696
  });
3775
3697
  return t && t[0] || null;
3776
3698
  }
3777
- const Wr = async (e) => {
3778
- const t = ke(e);
3779
- return await (await (e.fetch ?? nt)(t.href, e.fetchOptions)).json();
3780
- }, Nr = async (e, t, n = ke(e)) => {
3699
+ const Vr = async (e) => {
3700
+ const t = ye(e);
3701
+ return await (await (e.fetch ?? tt)(t.href, e.fetchOptions)).json();
3702
+ }, Wr = async (e, t, n = ye(e)) => {
3781
3703
  const o = G(e.canTrack);
3782
3704
  if (n.search.includes("preview="), !o || !(T() || A === "reactNative"))
3783
3705
  return t.results;
3784
3706
  try {
3785
3707
  const r = [];
3786
3708
  for (const i of t.results)
3787
- r.push(await Mn({
3709
+ r.push(await Un({
3788
3710
  item: i,
3789
3711
  canTrack: o
3790
3712
  }));
@@ -3794,10 +3716,10 @@ const Wr = async (e) => {
3794
3716
  }
3795
3717
  return t.results;
3796
3718
  };
3797
- async function Lr(e) {
3719
+ async function Nr(e) {
3798
3720
  try {
3799
- const t = ke(e), n = await Wr(e);
3800
- return Vr(n) ? Nr(e, n) : (B.error("Error fetching data. ", {
3721
+ const t = ye(e), n = await Vr(e);
3722
+ return Ar(n) ? Wr(e, n) : (B.error("Error fetching data. ", {
3801
3723
  url: t,
3802
3724
  content: n,
3803
3725
  options: e
@@ -3808,7 +3730,7 @@ async function Lr(e) {
3808
3730
  }
3809
3731
  function Fr(e) {
3810
3732
  const t = e || (T() ? window.location.search : void 0);
3811
- return t ? Ne(t).indexOf("builder.preview=") !== -1 : !1;
3733
+ return t ? We(t).indexOf("builder.preview=") !== -1 : !1;
3812
3734
  }
3813
3735
  function Or() {
3814
3736
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
@@ -3816,82 +3738,82 @@ function Or() {
3816
3738
  return (e == "x" ? t : t & 3 | 8).toString(16);
3817
3739
  });
3818
3740
  }
3819
- function it() {
3741
+ function rt() {
3820
3742
  return Or().replace(/-/g, "");
3821
3743
  }
3822
- const st = "builderSessionId", Dr = async ({
3744
+ const it = "builderSessionId", Lr = async ({
3823
3745
  canTrack: e
3824
3746
  }) => {
3825
3747
  if (!e)
3826
3748
  return;
3827
- const t = await Je({
3828
- name: st,
3749
+ const t = await ze({
3750
+ name: it,
3829
3751
  canTrack: e
3830
3752
  });
3831
3753
  if (D(t))
3832
3754
  return t;
3833
3755
  {
3834
- const n = Ur();
3835
- return Mr({
3756
+ const n = Dr();
3757
+ return Ur({
3836
3758
  id: n,
3837
3759
  canTrack: e
3838
3760
  }), n;
3839
3761
  }
3840
- }, Ur = () => it(), Mr = ({
3762
+ }, Dr = () => rt(), Ur = ({
3841
3763
  id: e,
3842
3764
  canTrack: t
3843
- }) => Ge({
3844
- name: st,
3765
+ }) => Je({
3766
+ name: it,
3845
3767
  value: e,
3846
3768
  canTrack: t
3847
- }), at = () => T() && typeof localStorage < "u" ? localStorage : void 0, jr = ({
3769
+ }), st = () => T() && typeof localStorage < "u" ? localStorage : void 0, Mr = ({
3848
3770
  key: e,
3849
3771
  canTrack: t
3850
3772
  }) => {
3851
3773
  var n;
3852
3774
  try {
3853
- return t ? (n = at()) == null ? void 0 : n.getItem(e) : void 0;
3775
+ return t ? (n = st()) == null ? void 0 : n.getItem(e) : void 0;
3854
3776
  } catch (o) {
3855
3777
  console.debug("[LocalStorage] GET error: ", o);
3856
3778
  return;
3857
3779
  }
3858
- }, Hr = ({
3780
+ }, jr = ({
3859
3781
  key: e,
3860
3782
  canTrack: t,
3861
3783
  value: n
3862
3784
  }) => {
3863
3785
  var o;
3864
3786
  try {
3865
- t && ((o = at()) == null || o.setItem(e, n));
3787
+ t && ((o = st()) == null || o.setItem(e, n));
3866
3788
  } catch (r) {
3867
3789
  console.debug("[LocalStorage] SET error: ", r);
3868
3790
  }
3869
- }, lt = "builderVisitorId", Kr = ({
3791
+ }, at = "builderVisitorId", Hr = ({
3870
3792
  canTrack: e
3871
3793
  }) => {
3872
3794
  if (!e)
3873
3795
  return;
3874
- const t = jr({
3875
- key: lt,
3796
+ const t = Mr({
3797
+ key: at,
3876
3798
  canTrack: e
3877
3799
  });
3878
3800
  if (D(t))
3879
3801
  return t;
3880
3802
  {
3881
- const n = qr();
3882
- return zr({
3803
+ const n = Kr();
3804
+ return qr({
3883
3805
  id: n,
3884
3806
  canTrack: e
3885
3807
  }), n;
3886
3808
  }
3887
- }, qr = () => it(), zr = ({
3809
+ }, Kr = () => rt(), qr = ({
3888
3810
  id: e,
3889
3811
  canTrack: t
3890
- }) => Hr({
3891
- key: lt,
3812
+ }) => jr({
3813
+ key: at,
3892
3814
  value: e,
3893
3815
  canTrack: t
3894
- }), Jr = async ({
3816
+ }), zr = async ({
3895
3817
  canTrack: e
3896
3818
  }) => {
3897
3819
  if (!e)
@@ -3899,16 +3821,16 @@ const st = "builderSessionId", Dr = async ({
3899
3821
  visitorId: void 0,
3900
3822
  sessionId: void 0
3901
3823
  };
3902
- const t = await Dr({
3824
+ const t = await Lr({
3903
3825
  canTrack: e
3904
- }), n = Kr({
3826
+ }), n = Hr({
3905
3827
  canTrack: e
3906
3828
  });
3907
3829
  return {
3908
3830
  sessionId: t,
3909
3831
  visitorId: n
3910
3832
  };
3911
- }, Gr = async ({
3833
+ }, Jr = async ({
3912
3834
  type: e,
3913
3835
  canTrack: t,
3914
3836
  apiKey: n,
@@ -3922,14 +3844,14 @@ const st = "builderSessionId", Dr = async ({
3922
3844
  url: location.href,
3923
3845
  ...o
3924
3846
  },
3925
- ...await Jr({
3847
+ ...await zr({
3926
3848
  canTrack: t
3927
3849
  }),
3928
- userAttributes: Le(),
3850
+ userAttributes: Ne(),
3929
3851
  ownerId: n
3930
3852
  }
3931
3853
  });
3932
- async function me(e) {
3854
+ async function pe(e) {
3933
3855
  if (!e.apiKey) {
3934
3856
  B.error("Missing API key for track call. Please provide your API key.");
3935
3857
  return;
@@ -3938,7 +3860,7 @@ async function me(e) {
3938
3860
  return fetch("https://cdn.builder.io/api/v1/track", {
3939
3861
  method: "POST",
3940
3862
  body: JSON.stringify({
3941
- events: [await Gr(e)]
3863
+ events: [await Jr(e)]
3942
3864
  }),
3943
3865
  headers: {
3944
3866
  "content-type": "application/json"
@@ -3948,14 +3870,14 @@ async function me(e) {
3948
3870
  console.error("Failed to track: ", t);
3949
3871
  });
3950
3872
  }
3951
- const Ni = (e) => me({
3873
+ const Wi = (e) => pe({
3952
3874
  ...e,
3953
3875
  canTrack: !0
3954
3876
  });
3955
- function Re(e) {
3877
+ function $e(e) {
3956
3878
  return Math.round(e * 1e3) / 1e3;
3957
3879
  }
3958
- const Yr = (e, t, n = !0) => {
3880
+ const Gr = (e, t, n = !0) => {
3959
3881
  if (!(e instanceof HTMLElement))
3960
3882
  return null;
3961
3883
  let o = n ? e : e.parentElement;
@@ -3966,45 +3888,45 @@ const Yr = (e, t, n = !0) => {
3966
3888
  return o;
3967
3889
  } while (o = o.parentElement);
3968
3890
  return null;
3969
- }, Qr = (e) => Yr(e, (t) => {
3891
+ }, Yr = (e) => Gr(e, (t) => {
3970
3892
  const n = t.getAttribute("builder-id") || t.id;
3971
3893
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3972
- }), Be = ({
3894
+ }), Re = ({
3973
3895
  event: e,
3974
3896
  target: t
3975
3897
  }) => {
3976
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = Re(o / n.width), s = Re(r / n.height);
3898
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = $e(o / n.width), s = $e(r / n.height);
3977
3899
  return {
3978
3900
  x: i,
3979
3901
  y: s
3980
3902
  };
3981
- }, Xr = (e) => {
3982
- const t = e.target, n = t && Qr(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3903
+ }, Qr = (e) => {
3904
+ const t = e.target, n = t && Yr(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3983
3905
  return {
3984
3906
  targetBuilderElement: o || void 0,
3985
3907
  metadata: {
3986
- targetOffset: t ? Be({
3908
+ targetOffset: t ? Re({
3987
3909
  event: e,
3988
3910
  target: t
3989
3911
  }) : void 0,
3990
- builderTargetOffset: n ? Be({
3912
+ builderTargetOffset: n ? Re({
3991
3913
  event: e,
3992
3914
  target: n
3993
3915
  }) : void 0,
3994
3916
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
3995
3917
  }
3996
3918
  };
3997
- }, Zr = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
3998
- function ct(e, t) {
3919
+ }, Xr = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
3920
+ function lt(e, t) {
3999
3921
  if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
4000
3922
  return !1;
4001
3923
  const n = new URL(t.origin), o = n.hostname;
4002
- return (e || Zr).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
3924
+ return (e || Xr).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
4003
3925
  }
4004
- const _r = "1.1.1", Pe = {};
4005
- function ei(e, t) {
4006
- let n = Pe[e];
4007
- if (n || (n = Pe[e] = []), n.push(t), T()) {
3926
+ const Zr = "2.0.0", Be = {};
3927
+ function _r(e, t) {
3928
+ let n = Be[e];
3929
+ if (n || (n = Be[e] = []), n.push(t), T()) {
4008
3930
  const o = {
4009
3931
  type: "builder.register",
4010
3932
  data: {
@@ -4019,8 +3941,8 @@ function ei(e, t) {
4019
3941
  }
4020
3942
  }
4021
3943
  }
4022
- const ti = () => {
4023
- ei("insertMenu", {
3944
+ const ei = () => {
3945
+ _r("insertMenu", {
4024
3946
  name: "_default",
4025
3947
  default: !0,
4026
3948
  items: [{
@@ -4042,14 +3964,14 @@ const ti = () => {
4042
3964
  }]
4043
3965
  });
4044
3966
  };
4045
- let Ee = !1;
4046
- const dt = (e = {}) => {
3967
+ let Pe = !1;
3968
+ const ct = (e = {}) => {
4047
3969
  var t, n;
4048
- Ee || (Ee = !0, T() && ((t = window.parent) == null || t.postMessage({
3970
+ Pe || (Pe = !0, T() && ((t = window.parent) == null || t.postMessage({
4049
3971
  type: "builder.sdkInfo",
4050
3972
  data: {
4051
3973
  target: A,
4052
- version: _r,
3974
+ version: Zr,
4053
3975
  supportsPatchUpdates: !1,
4054
3976
  // Supports builder-model="..." attribute which is needed to
4055
3977
  // scope our '+ add block' button styling
@@ -4063,7 +3985,7 @@ const dt = (e = {}) => {
4063
3985
  }
4064
3986
  }, "*"), window.addEventListener("message", (o) => {
4065
3987
  var i, s;
4066
- if (!ct(e.trustedHosts, o))
3988
+ if (!lt(e.trustedHosts, o))
4067
3989
  return;
4068
3990
  const {
4069
3991
  data: r
@@ -4075,8 +3997,8 @@ const dt = (e = {}) => {
4075
3997
  let c, m = null;
4076
3998
  try {
4077
3999
  c = h.apply(null, a);
4078
- } catch (C) {
4079
- m = C;
4000
+ } catch (S) {
4001
+ m = S;
4080
4002
  }
4081
4003
  m ? (i = window.parent) == null || i.postMessage({
4082
4004
  type: "builder.evaluateError",
@@ -4084,13 +4006,13 @@ const dt = (e = {}) => {
4084
4006
  id: u,
4085
4007
  error: m.message
4086
4008
  }
4087
- }, "*") : c && typeof c.then == "function" ? c.then((C) => {
4009
+ }, "*") : c && typeof c.then == "function" ? c.then((S) => {
4088
4010
  var y;
4089
4011
  (y = window.parent) == null || y.postMessage({
4090
4012
  type: "builder.evaluateResult",
4091
4013
  data: {
4092
4014
  id: u,
4093
- result: C
4015
+ result: S
4094
4016
  }
4095
4017
  }, "*");
4096
4018
  }).catch(console.error) : (s = window.parent) == null || s.postMessage({
@@ -4104,12 +4026,12 @@ const dt = (e = {}) => {
4104
4026
  }
4105
4027
  }
4106
4028
  })));
4107
- }, ut = ({
4029
+ }, dt = ({
4108
4030
  model: e,
4109
4031
  trustedHosts: t,
4110
4032
  callbacks: n
4111
4033
  }) => (o) => {
4112
- if (!ct(t, o))
4034
+ if (!lt(t, o))
4113
4035
  return;
4114
4036
  const {
4115
4037
  data: r
@@ -4130,12 +4052,12 @@ const dt = (e = {}) => {
4130
4052
  break;
4131
4053
  }
4132
4054
  }
4133
- }, Li = (e, t, n) => {
4055
+ }, Ni = (e, t, n) => {
4134
4056
  if (!T)
4135
4057
  return B.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
4136
4058
  };
4137
- dt();
4138
- const o = ut({
4059
+ ct();
4060
+ const o = dt({
4139
4061
  callbacks: {
4140
4062
  contentUpdate: t,
4141
4063
  animation: () => {
@@ -4149,7 +4071,7 @@ const dt = (e = {}) => {
4149
4071
  return window.addEventListener("message", o), () => {
4150
4072
  window.removeEventListener("message", o);
4151
4073
  };
4152
- }, ni = (e) => {
4074
+ }, ti = (e) => {
4153
4075
  var i;
4154
4076
  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);
4155
4077
  let r = "";
@@ -4175,15 +4097,15 @@ font-weight: ${s};
4175
4097
  `.trim());
4176
4098
  }
4177
4099
  return r;
4178
- }, oi = ({
4100
+ }, ni = ({
4179
4101
  customFonts: e
4180
4102
  }) => {
4181
4103
  var t;
4182
- return ((t = e == null ? void 0 : e.map((n) => ni(n))) == null ? void 0 : t.join(" ")) || "";
4183
- }, ri = ({
4104
+ return ((t = e == null ? void 0 : e.map((n) => ti(n))) == null ? void 0 : t.join(" ")) || "";
4105
+ }, oi = ({
4184
4106
  cssCode: e,
4185
4107
  contentId: t
4186
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", ii = `
4108
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", ri = `
4187
4109
  .builder-button {
4188
4110
  all: unset;
4189
4111
  }
@@ -4200,7 +4122,7 @@ font-weight: ${s};
4200
4122
  text-align: inherit;
4201
4123
  font-family: inherit;
4202
4124
  }
4203
- `, si = (e) => e ? "" : ii, ai = (e) => `variant-${e}`, li = f({
4125
+ `, ii = (e) => e ? "" : ri, si = (e) => `variant-${e}`, ai = f({
4204
4126
  name: "enable-editor",
4205
4127
  components: { DynamicDiv: Q },
4206
4128
  props: [
@@ -4224,14 +4146,14 @@ font-weight: ${s};
4224
4146
  httpReqsData: {},
4225
4147
  httpReqsPending: {},
4226
4148
  clicked: !1,
4227
- builderContext: de,
4228
- getWrapperClassName: ai
4149
+ builderContext: ce,
4150
+ getWrapperClassName: si
4229
4151
  };
4230
4152
  },
4231
4153
  provide() {
4232
4154
  const e = this;
4233
4155
  return {
4234
- [de.key]: e.builderContextSignal
4156
+ [ce.key]: e.builderContextSignal
4235
4157
  };
4236
4158
  },
4237
4159
  mounted() {
@@ -4242,7 +4164,7 @@ font-weight: ${s};
4242
4164
  new CustomEvent("initeditingbldr")
4243
4165
  ), this.builderContextSignal.content && G(this.canTrack)) {
4244
4166
  const i = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, s = (o = this.builderContextSignal.content) == null ? void 0 : o.id, l = this.apiKey;
4245
- me({
4167
+ pe({
4246
4168
  type: "impression",
4247
4169
  canTrack: !0,
4248
4170
  contentId: s,
@@ -4373,7 +4295,7 @@ font-weight: ${s};
4373
4295
  this.builderContextSignal.content = t;
4374
4296
  },
4375
4297
  processMessage(e) {
4376
- return ut({
4298
+ return dt({
4377
4299
  model: this.model,
4378
4300
  trustedHosts: this.trustedHosts,
4379
4301
  callbacks: {
@@ -4387,7 +4309,7 @@ font-weight: ${s};
4387
4309
  });
4388
4310
  },
4389
4311
  animation: (t) => {
4390
- je(t);
4312
+ Me(t);
4391
4313
  },
4392
4314
  contentUpdate: (t) => {
4393
4315
  this.mergeNewContent(t);
@@ -4414,13 +4336,13 @@ font-weight: ${s};
4414
4336
  var t, n;
4415
4337
  if (this.builderContextSignal.content) {
4416
4338
  const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
4417
- me({
4339
+ pe({
4418
4340
  type: "click",
4419
4341
  canTrack: G(this.canTrack),
4420
4342
  contentId: r,
4421
4343
  apiKey: this.apiKey,
4422
4344
  variationId: o !== r ? o : void 0,
4423
- ...Xr(e),
4345
+ ...Qr(e),
4424
4346
  unique: !this.clicked
4425
4347
  });
4426
4348
  }
@@ -4446,7 +4368,7 @@ font-weight: ${s};
4446
4368
  })
4447
4369
  )
4448
4370
  );
4449
- nt(i).then((s) => s.json()).then((s) => {
4371
+ tt(i).then((s) => s.json()).then((s) => {
4450
4372
  this.mergeNewRootState({
4451
4373
  [o]: s
4452
4374
  }), this.httpReqsData[o] = !0;
@@ -4473,7 +4395,7 @@ font-weight: ${s};
4473
4395
  );
4474
4396
  },
4475
4397
  elementRef_onIniteditingbldr(e) {
4476
- window.addEventListener("message", this.processMessage), ti(), dt({
4398
+ window.addEventListener("message", this.processMessage), ei(), ct({
4477
4399
  ...this.locale ? {
4478
4400
  locale: this.locale
4479
4401
  } : {},
@@ -4487,7 +4409,7 @@ font-weight: ${s};
4487
4409
  this.builderContextSignal.componentInfos
4488
4410
  ).forEach((t) => {
4489
4411
  var o;
4490
- const n = yr(t);
4412
+ const n = gr(t);
4491
4413
  (o = window.parent) == null || o.postMessage(n, "*");
4492
4414
  }), window.addEventListener(
4493
4415
  "builder:component:stateChangeListenerActivated",
@@ -4498,7 +4420,7 @@ font-weight: ${s};
4498
4420
  const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
4499
4421
  `builder.overrides.${n}`
4500
4422
  ), r = t.get("apiKey") || t.get("builder.space");
4501
- n === this.model && r === this.apiKey && (!this.content || o === this.content.id) && ve({
4423
+ n === this.model && r === this.apiKey && (!this.content || o === this.content.id) && ke({
4502
4424
  model: this.model,
4503
4425
  apiKey: this.apiKey,
4504
4426
  apiVersion: this.builderContextSignal.apiVersion
@@ -4508,9 +4430,9 @@ font-weight: ${s};
4508
4430
  }
4509
4431
  }
4510
4432
  });
4511
- function ci(e, t, n, o, r, i) {
4433
+ function li(e, t, n, o, r, i) {
4512
4434
  var s, l, a;
4513
- return e.builderContextSignal.content ? (d(), k(K(e.ContentWrapper), S({
4435
+ return e.builderContextSignal.content ? (d(), k(K(e.ContentWrapper), C({
4514
4436
  key: 0,
4515
4437
  ref: "elementRef",
4516
4438
  onClick: (u) => e.onClick(u),
@@ -4526,33 +4448,33 @@ function ci(e, t, n, o, r, i) {
4526
4448
  _: 3
4527
4449
  }, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : v("", !0);
4528
4450
  }
4529
- const di = /* @__PURE__ */ b(li, [["render", ci]]), ui = f({
4451
+ const ci = /* @__PURE__ */ b(ai, [["render", li]]), di = f({
4530
4452
  name: "content-styles",
4531
- components: { InlinedStyles: ge },
4453
+ components: { InlinedStyles: be },
4532
4454
  props: ["cssCode", "contentId", "customFonts", "isNestedRender"],
4533
4455
  data() {
4534
4456
  return {
4535
4457
  injectedStyles: `
4536
- ${ri({
4458
+ ${oi({
4537
4459
  cssCode: this.cssCode,
4538
4460
  contentId: this.contentId
4539
4461
  })}
4540
- ${oi({
4462
+ ${ni({
4541
4463
  customFonts: this.customFonts
4542
4464
  })}
4543
- ${si(this.isNestedRender)}
4465
+ ${ii(this.isNestedRender)}
4544
4466
  `.trim()
4545
4467
  };
4546
4468
  }
4547
4469
  });
4548
- function pi(e, t, n, o, r, i) {
4470
+ function ui(e, t, n, o, r, i) {
4549
4471
  const s = g("InlinedStyles");
4550
4472
  return d(), k(s, {
4551
4473
  id: "builderio-content",
4552
4474
  styles: e.injectedStyles
4553
4475
  }, null, 8, ["styles"]);
4554
4476
  }
4555
- const mi = /* @__PURE__ */ b(ui, [["render", pi]]), hi = ({
4477
+ const pi = /* @__PURE__ */ b(di, [["render", ui]]), mi = ({
4556
4478
  content: e,
4557
4479
  data: t,
4558
4480
  locale: n
@@ -4569,7 +4491,7 @@ const mi = /* @__PURE__ */ b(ui, [["render", pi]]), hi = ({
4569
4491
  locale: n
4570
4492
  } : {}
4571
4493
  };
4572
- }, fi = ({
4494
+ }, hi = ({
4573
4495
  content: e,
4574
4496
  data: t
4575
4497
  }) => e ? {
@@ -4579,12 +4501,12 @@ const mi = /* @__PURE__ */ b(ui, [["render", pi]]), hi = ({
4579
4501
  ...t
4580
4502
  },
4581
4503
  meta: e == null ? void 0 : e.meta
4582
- } : void 0, bi = bt, gi = f({
4504
+ } : void 0, fi = ft, bi = f({
4583
4505
  name: "content-component",
4584
4506
  components: {
4585
- EnableEditor: di,
4586
- InlinedScript: tt,
4587
- ContentStyles: mi,
4507
+ EnableEditor: ci,
4508
+ InlinedScript: et,
4509
+ ContentStyles: pi,
4588
4510
  Blocks: M,
4589
4511
  DynamicDiv: Q
4590
4512
  },
@@ -4612,32 +4534,32 @@ const mi = /* @__PURE__ */ b(ui, [["render", pi]]), hi = ({
4612
4534
  data() {
4613
4535
  var e, t;
4614
4536
  return {
4615
- scriptStr: Rr({
4537
+ scriptStr: $r({
4616
4538
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4617
4539
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
4618
4540
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4619
4541
  contentId: (t = this.content) == null ? void 0 : t.id
4620
4542
  }),
4621
4543
  registeredComponents: [
4622
- ...Te(),
4544
+ ...we(),
4623
4545
  ...this.customComponents || []
4624
4546
  ].reduce(
4625
4547
  (n, { component: o, ...r }) => ({
4626
4548
  ...n,
4627
4549
  [r.name]: {
4628
- component: bi(o),
4629
- ...ue(r)
4550
+ component: fi(o),
4551
+ ...de(r)
4630
4552
  }
4631
4553
  }),
4632
4554
  {}
4633
4555
  ),
4634
4556
  builderContextSignal: {
4635
- content: fi({
4557
+ content: hi({
4636
4558
  content: this.content,
4637
4559
  data: this.data
4638
4560
  }),
4639
4561
  localState: void 0,
4640
- rootState: hi({
4562
+ rootState: mi({
4641
4563
  content: this.content,
4642
4564
  data: this.data,
4643
4565
  locale: this.locale
@@ -4648,12 +4570,12 @@ const mi = /* @__PURE__ */ b(ui, [["render", pi]]), hi = ({
4648
4570
  apiKey: this.apiKey,
4649
4571
  apiVersion: this.apiVersion,
4650
4572
  componentInfos: [
4651
- ...Te(),
4573
+ ...we(),
4652
4574
  ...this.customComponents || []
4653
4575
  ].reduce(
4654
4576
  (n, { component: o, ...r }) => ({
4655
4577
  ...n,
4656
- [r.name]: ue(r)
4578
+ [r.name]: de(r)
4657
4579
  }),
4658
4580
  {}
4659
4581
  ),
@@ -4667,7 +4589,7 @@ const mi = /* @__PURE__ */ b(ui, [["render", pi]]), hi = ({
4667
4589
  provide() {
4668
4590
  const e = this;
4669
4591
  return {
4670
- [Ve.key]: {
4592
+ [Ae.key]: {
4671
4593
  registeredComponents: e.registeredComponents
4672
4594
  }
4673
4595
  };
@@ -4678,9 +4600,9 @@ const mi = /* @__PURE__ */ b(ui, [["render", pi]]), hi = ({
4678
4600
  }
4679
4601
  }
4680
4602
  });
4681
- function yi(e, t, n, o, r, i) {
4603
+ function gi(e, t, n, o, r, i) {
4682
4604
  const s = g("InlinedScript"), l = g("ContentStyles"), a = g("Blocks"), u = g("EnableEditor");
4683
- return d(), k(u, S({
4605
+ return d(), k(u, C({
4684
4606
  content: e.content,
4685
4607
  data: e.data,
4686
4608
  model: e.model,
@@ -4696,7 +4618,7 @@ function yi(e, t, n, o, r, i) {
4696
4618
  trustedHosts: e.trustedHosts
4697
4619
  }, {}), {
4698
4620
  default: W(() => {
4699
- var h, c, m, C, y, L, X;
4621
+ var h, c, m, S, y, F, X;
4700
4622
  return [
4701
4623
  e.isSsrAbTest ? (d(), k(s, {
4702
4624
  key: 0,
@@ -4708,10 +4630,10 @@ function yi(e, t, n, o, r, i) {
4708
4630
  isNestedRender: e.isNestedRender,
4709
4631
  contentId: (h = e.builderContextSignal.content) == null ? void 0 : h.id,
4710
4632
  cssCode: (m = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : m.cssCode,
4711
- customFonts: (y = (C = e.builderContextSignal.content) == null ? void 0 : C.data) == null ? void 0 : y.customFonts
4633
+ customFonts: (y = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : y.customFonts
4712
4634
  }, null, 8, ["isNestedRender", "contentId", "cssCode", "customFonts"])) : v("", !0),
4713
4635
  $(a, {
4714
- blocks: (X = (L = e.builderContextSignal.content) == null ? void 0 : L.data) == null ? void 0 : X.blocks,
4636
+ blocks: (X = (F = e.builderContextSignal.content) == null ? void 0 : F.data) == null ? void 0 : X.blocks,
4715
4637
  context: e.builderContextSignal,
4716
4638
  registeredComponents: e.registeredComponents,
4717
4639
  linkComponent: e.linkComponent
@@ -4721,12 +4643,12 @@ function yi(e, t, n, o, r, i) {
4721
4643
  _: 1
4722
4644
  }, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts"]);
4723
4645
  }
4724
- const ki = /* @__PURE__ */ b(gi, [["render", yi]]), vi = f({
4646
+ const yi = /* @__PURE__ */ b(bi, [["render", gi]]), ki = f({
4725
4647
  name: "content-variants",
4726
4648
  components: {
4727
- InlinedScript: tt,
4728
- InlinedStyles: ge,
4729
- ContentComponent: ki
4649
+ InlinedScript: et,
4650
+ InlinedStyles: be,
4651
+ ContentComponent: yi
4730
4652
  },
4731
4653
  props: [
4732
4654
  "canTrack",
@@ -4749,12 +4671,12 @@ const ki = /* @__PURE__ */ b(gi, [["render", yi]]), vi = f({
4749
4671
  ],
4750
4672
  data() {
4751
4673
  return {
4752
- shouldRenderVariants: wr({
4674
+ shouldRenderVariants: Cr({
4753
4675
  canTrack: G(this.canTrack),
4754
4676
  content: this.content
4755
4677
  }),
4756
4678
  TARGET: A,
4757
- getInitVariantsFnsScriptString: Ir,
4679
+ getInitVariantsFnsScriptString: Tr,
4758
4680
  getVariants: _
4759
4681
  };
4760
4682
  },
@@ -4765,7 +4687,7 @@ const ki = /* @__PURE__ */ b(gi, [["render", yi]]), vi = f({
4765
4687
  computed: {
4766
4688
  updateCookieAndStylesScriptStr() {
4767
4689
  var e;
4768
- return $r(
4690
+ return Ir(
4769
4691
  _(this.content).map((t) => ({
4770
4692
  id: t.testVariationId,
4771
4693
  testRatio: t.testRatio
@@ -4781,14 +4703,14 @@ const ki = /* @__PURE__ */ b(gi, [["render", yi]]), vi = f({
4781
4703
  return this.shouldRenderVariants ? {
4782
4704
  ...this.content,
4783
4705
  testVariationId: (e = this.content) == null ? void 0 : e.id
4784
- } : Un({
4706
+ } : Dn({
4785
4707
  item: this.content,
4786
4708
  canTrack: G(this.canTrack)
4787
4709
  });
4788
4710
  }
4789
4711
  }
4790
4712
  });
4791
- function Ci(e, t, n, o, r, i) {
4713
+ function vi(e, t, n, o, r, i) {
4792
4714
  const s = g("InlinedScript"), l = g("InlinedStyles"), a = g("ContentComponent");
4793
4715
  return d(), p(I, null, [
4794
4716
  !e.isNestedRender && e.TARGET !== "reactNative" ? (d(), k(s, {
@@ -4828,7 +4750,7 @@ function Ci(e, t, n, o, r, i) {
4828
4750
  trustedHosts: e.trustedHosts
4829
4751
  }, null, 8, ["isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
4830
4752
  ], 64)) : v("", !0),
4831
- $(a, S({
4753
+ $(a, C({
4832
4754
  isNestedRender: e.isNestedRender,
4833
4755
  content: e.defaultContent,
4834
4756
  showContent: !0,
@@ -4853,13 +4775,13 @@ function Ci(e, t, n, o, r, i) {
4853
4775
  }), null, 16, ["isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
4854
4776
  ], 64);
4855
4777
  }
4856
- const Si = /* @__PURE__ */ b(vi, [["render", Ci]]), wi = async ({
4778
+ const Si = /* @__PURE__ */ b(ki, [["render", vi]]), Ci = async ({
4857
4779
  builderContextValue: e,
4858
4780
  symbol: t
4859
4781
  }) => {
4860
4782
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4861
4783
  (e != null && e.apiKey))
4862
- return ve({
4784
+ return ke({
4863
4785
  model: t.model,
4864
4786
  apiKey: e.apiKey,
4865
4787
  apiVersion: e.apiVersion,
@@ -4871,7 +4793,7 @@ const Si = /* @__PURE__ */ b(vi, [["render", Ci]]), wi = async ({
4871
4793
  }).catch((n) => {
4872
4794
  B.error("Could not fetch symbol content: ", n);
4873
4795
  });
4874
- }, Ti = f({
4796
+ }, wi = f({
4875
4797
  name: "builder-symbol",
4876
4798
  components: { ContentVariants: Si, DynamicDiv: Q },
4877
4799
  props: [
@@ -4922,7 +4844,7 @@ const Si = /* @__PURE__ */ b(vi, [["render", Ci]]), wi = async ({
4922
4844
  },
4923
4845
  methods: {
4924
4846
  setContent() {
4925
- this.contentToUse || wi({
4847
+ this.contentToUse || Ci({
4926
4848
  symbol: this.symbol,
4927
4849
  builderContextValue: this.builderContext
4928
4850
  }).then((e) => {
@@ -4931,10 +4853,10 @@ const Si = /* @__PURE__ */ b(vi, [["render", Ci]]), wi = async ({
4931
4853
  }
4932
4854
  }
4933
4855
  });
4934
- function Ii(e, t, n, o, r, i) {
4856
+ function Ti(e, t, n, o, r, i) {
4935
4857
  var l, a, u, h, c;
4936
4858
  const s = g("ContentVariants");
4937
- return d(), p("div", S({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4859
+ return d(), p("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4938
4860
  $(s, {
4939
4861
  isNestedRender: !0,
4940
4862
  apiVersion: e.builderContext.apiVersion,
@@ -4958,13 +4880,13 @@ function Ii(e, t, n, o, r, i) {
4958
4880
  }, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
4959
4881
  ], 16);
4960
4882
  }
4961
- const $i = /* @__PURE__ */ b(Ti, [["render", Ii]]), xe = {};
4883
+ const Ii = /* @__PURE__ */ b(wi, [["render", Ti]]), Ee = {};
4962
4884
  function Fi(e) {
4963
4885
  if (T()) {
4964
- Object.assign(xe, e);
4886
+ Object.assign(Ee, e);
4965
4887
  const t = {
4966
4888
  type: "builder.settingsChange",
4967
- data: xe
4889
+ data: Ee
4968
4890
  };
4969
4891
  parent.postMessage(t, "*");
4970
4892
  }
@@ -4981,52 +4903,52 @@ const Oi = async (e) => {
4981
4903
  urlPath: t
4982
4904
  } : {}
4983
4905
  },
4984
- options: rt(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
4906
+ options: ot(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
4985
4907
  };
4986
4908
  return {
4987
4909
  apiKey: n.apiKey,
4988
4910
  model: n.model,
4989
- content: await ve(n)
4911
+ content: await ke(n)
4990
4912
  };
4991
4913
  };
4992
4914
  export {
4993
- Nr as A,
4994
- be as B,
4995
- bn as C,
4996
- Lr as D,
4997
- ve as E,
4998
- kn as F,
4999
- Ei as G,
5000
- Vi as H,
5001
- Rn as I,
5002
- En as S,
4915
+ Wr as A,
4916
+ fe as B,
4917
+ fn as C,
4918
+ Nr as D,
4919
+ ke as E,
4920
+ yn as F,
4921
+ Pi as G,
4922
+ Ai as H,
4923
+ $n as I,
4924
+ Pn as S,
5003
4925
  A as T,
5004
- br as V,
5005
- ge as _,
5006
- pn as a,
5007
- xi as b,
4926
+ fr as V,
4927
+ be as _,
4928
+ un as a,
4929
+ Ei as b,
5008
4930
  D as c,
5009
- Wi as d,
5010
- fe as e,
4931
+ Vi as d,
4932
+ he as e,
5011
4933
  b as f,
5012
- De as g,
4934
+ Le as g,
5013
4935
  te as h,
5014
- Ai as i,
4936
+ xi as i,
5015
4937
  ee as j,
5016
- de as k,
5017
- wt as l,
5018
- $i as m,
5019
- fo as n,
4938
+ ce as k,
4939
+ Ct as l,
4940
+ Ii as m,
4941
+ ho as n,
5020
4942
  M as o,
5021
4943
  Si as p,
5022
4944
  R as q,
5023
4945
  Fr as r,
5024
- yr as s,
5025
- ei as t,
4946
+ gr as s,
4947
+ _r as t,
5026
4948
  Fi as u,
5027
- rt as v,
5028
- bi as w,
5029
- Ni as x,
5030
- Li as y,
4949
+ ot as v,
4950
+ fi as w,
4951
+ Wi as x,
4952
+ Ni as y,
5031
4953
  Oi as z
5032
4954
  };