@builder.io/sdk-vue 0.5.8 → 0.5.9

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 (86) hide show
  1. package/package.json +1 -1
  2. package/packages/_vue2/dist/{block-styles.53de235b.js → block-styles.2f2d681c.js} +5 -5
  3. package/packages/_vue2/dist/{block-styles.62ab6928.cjs → block-styles.e0c362f1.cjs} +1 -1
  4. package/packages/_vue2/dist/{block-wrapper.ffff3ae1.cjs → block-wrapper.60491ece.cjs} +1 -1
  5. package/packages/_vue2/dist/{block-wrapper.42f7cc18.js → block-wrapper.675417b1.js} +5 -5
  6. package/packages/_vue2/dist/{block.e75fc1fd.cjs → block.2b1ac86c.cjs} +2 -2
  7. package/packages/_vue2/dist/{block.32028ed9.js → block.b10ffc8d.js} +7 -7
  8. package/packages/_vue2/dist/{blocks-wrapper.545648f8.js → blocks-wrapper.1f4e53ec.js} +1 -1
  9. package/packages/_vue2/dist/{blocks-wrapper.f2ac2ced.cjs → blocks-wrapper.87c356a1.cjs} +1 -1
  10. package/packages/_vue2/dist/{component-ref.93c96dcf.js → component-ref.d1a3e1db.js} +16 -16
  11. package/packages/_vue2/dist/component-ref.e0e18275.cjs +1 -0
  12. package/packages/_vue2/dist/{content.f9bd5fcb.js → content.4dd9bed9.js} +5 -5
  13. package/packages/_vue2/dist/{content.f8c10901.cjs → content.e0c272e6.cjs} +1 -1
  14. package/packages/_vue2/dist/{css.3ca25316.js → css.3b52add0.js} +1 -1
  15. package/packages/_vue2/dist/{css.0a7231c0.cjs → css.5b6afc6e.cjs} +1 -1
  16. package/packages/_vue2/dist/{enable-editor.02af1249.cjs → enable-editor.29678a79.cjs} +1 -1
  17. package/packages/_vue2/dist/{enable-editor.94619084.js → enable-editor.c8c377d7.js} +3 -3
  18. package/packages/_vue2/dist/evaluate.585803ce.cjs +1 -0
  19. package/packages/_vue2/dist/evaluate.b622b309.js +97 -0
  20. package/packages/_vue2/dist/{get-block-actions.fcd3a65b.js → get-block-actions.17f0418a.js} +2 -2
  21. package/packages/_vue2/dist/{get-block-actions.f638af63.cjs → get-block-actions.cc26a1a3.cjs} +1 -1
  22. package/packages/_vue2/dist/{get-block-properties.1c8b2787.js → get-block-properties.3a4c9314.js} +2 -2
  23. package/packages/_vue2/dist/{get-block-properties.f62d4730.cjs → get-block-properties.fbe48fae.cjs} +1 -1
  24. package/packages/_vue2/dist/{get-processed-block.e1ff6ece.cjs → get-processed-block.5937bfa6.cjs} +1 -1
  25. package/packages/_vue2/dist/{get-processed-block.39e600d4.js → get-processed-block.92e6395c.js} +2 -2
  26. package/packages/_vue2/dist/{index.df94ab6d.cjs → index.04a22940.cjs} +7 -7
  27. package/packages/_vue2/dist/{index.68a558a0.js → index.835b8ee0.js} +52 -51
  28. package/packages/_vue2/dist/{inlined-script.4c3c12d0.cjs → inlined-script.0c7f9ce3.cjs} +1 -1
  29. package/packages/_vue2/dist/{inlined-script.502cfeff.js → inlined-script.3ec95873.js} +1 -1
  30. package/packages/_vue2/dist/{inlined-styles.f6b48786.cjs → inlined-styles.89ce41e1.cjs} +1 -1
  31. package/packages/_vue2/dist/{inlined-styles.1f1d5537.js → inlined-styles.ccff7c47.js} +1 -1
  32. package/packages/_vue2/dist/{interactive-element.a31f191b.js → interactive-element.fa779554.js} +5 -5
  33. package/packages/_vue2/dist/{interactive-element.edc14cd8.cjs → interactive-element.fdd261bc.cjs} +1 -1
  34. package/packages/_vue2/dist/{non-node-runtime.fc00e390.cjs → non-node-runtime.ddfeed94.cjs} +9 -9
  35. package/packages/{_vue3/dist/non-node-runtime.814a2495.js → _vue2/dist/non-node-runtime.eb7f6595.js} +66 -65
  36. package/packages/_vue2/dist/{repeated-block.d58b000e.js → repeated-block.3c989659.js} +2 -2
  37. package/packages/_vue2/dist/{repeated-block.9268c636.cjs → repeated-block.48fbaaab.cjs} +1 -1
  38. package/packages/_vue2/dist/sdk.cjs +1 -1
  39. package/packages/_vue2/dist/sdk.js +4 -4
  40. package/packages/_vue2/dist/src/components/content/content.types.d.ts +2 -2
  41. package/packages/_vue2/dist/src/components/content-variants/content-variants.types.d.ts +1 -1
  42. package/packages/_vue2/dist/src/constants/sdk-version.d.ts +1 -1
  43. package/packages/_vue2/dist/src/functions/evaluate/browser-runtime/browser.d.ts +4 -0
  44. package/packages/_vue2/dist/src/functions/evaluate/evaluate.d.ts +4 -8
  45. package/packages/_vue2/dist/src/functions/evaluate/helpers.d.ts +18 -0
  46. package/packages/_vue2/dist/src/functions/evaluate/index.d.ts +1 -1
  47. package/packages/_vue2/dist/src/functions/evaluate/non-node-runtime/non-node-runtime.d.ts +2 -2
  48. package/packages/_vue2/dist/src/functions/fetch-builder-props.d.ts +2 -2
  49. package/packages/_vue2/dist/src/index.d.ts +5 -14
  50. package/packages/_vue2/dist/src/server-index.d.ts +15 -0
  51. package/packages/_vue2/dist/{styles.4301545b.js → styles.22b87564.js} +2 -2
  52. package/packages/_vue2/dist/{styles.46962285.cjs → styles.a3209286.cjs} +3 -3
  53. package/packages/_vue3/dist/{block-wrapper.bf1030b0.cjs → block-wrapper.4abbfa5d.cjs} +1 -1
  54. package/packages/_vue3/dist/{block-wrapper.c8ec3e80.js → block-wrapper.e6a959ca.js} +2 -2
  55. package/packages/_vue3/dist/component-ref.16c18e90.cjs +1 -0
  56. package/packages/_vue3/dist/{component-ref.5b93cf21.js → component-ref.b3232d22.js} +19 -19
  57. package/packages/_vue3/dist/{get-block-actions.6af8791d.js → get-block-actions.48118020.js} +1 -1
  58. package/packages/_vue3/dist/{get-block-actions.60bff98a.cjs → get-block-actions.83a66ea4.cjs} +1 -1
  59. package/packages/_vue3/dist/{index.953837d2.js → index.ee80c2d7.js} +368 -349
  60. package/packages/_vue3/dist/index.f36face2.cjs +69 -0
  61. package/packages/{_vue2/dist/non-node-runtime.ded1660b.js → _vue3/dist/non-node-runtime.15581a63.js} +62 -64
  62. package/packages/_vue3/dist/{non-node-runtime.5930ba44.cjs → non-node-runtime.fb2b33d0.cjs} +8 -8
  63. package/packages/_vue3/dist/{repeated-block.0a776412.cjs → repeated-block.33f567b4.cjs} +1 -1
  64. package/packages/_vue3/dist/{repeated-block.f409b451.js → repeated-block.53ae8c41.js} +2 -2
  65. package/packages/_vue3/dist/sdk.cjs +1 -1
  66. package/packages/_vue3/dist/sdk.js +2 -2
  67. package/packages/_vue3/dist/src/components/content/content.types.d.ts +2 -2
  68. package/packages/_vue3/dist/src/components/content-variants/content-variants.types.d.ts +1 -1
  69. package/packages/_vue3/dist/src/constants/sdk-version.d.ts +1 -1
  70. package/packages/_vue3/dist/src/functions/evaluate/browser-runtime/browser.d.ts +4 -0
  71. package/packages/_vue3/dist/src/functions/evaluate/evaluate.d.ts +4 -8
  72. package/packages/_vue3/dist/src/functions/evaluate/helpers.d.ts +18 -0
  73. package/packages/_vue3/dist/src/functions/evaluate/index.d.ts +1 -1
  74. package/packages/_vue3/dist/src/functions/evaluate/non-node-runtime/non-node-runtime.d.ts +2 -2
  75. package/packages/_vue3/dist/src/functions/fetch-builder-props.d.ts +2 -2
  76. package/packages/_vue3/dist/src/index.d.ts +5 -14
  77. package/packages/_vue3/dist/src/server-index.d.ts +15 -0
  78. package/packages/_vue2/dist/component-ref.db6118ae.cjs +0 -1
  79. package/packages/_vue2/dist/evaluate.05948f83.js +0 -79
  80. package/packages/_vue2/dist/evaluate.0c3fa60b.cjs +0 -4
  81. package/packages/_vue2/dist/src/functions/evaluate/types.d.ts +0 -11
  82. package/packages/_vue3/dist/component-ref.cd85a4b1.cjs +0 -1
  83. package/packages/_vue3/dist/index.39827af2.cjs +0 -72
  84. package/packages/_vue3/dist/src/functions/evaluate/types.d.ts +0 -11
  85. /package/packages/_vue2/dist/src/functions/evaluate/{acorn-interpreter.d.ts → non-node-runtime/acorn-interpreter.d.ts} +0 -0
  86. /package/packages/_vue3/dist/src/functions/evaluate/{acorn-interpreter.d.ts → non-node-runtime/acorn-interpreter.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import { defineComponent as g, openBlock as d, createElementBlock as p, mergeProps as $, toHandlers as O, toDisplayString as re, h as ye, resolveComponent as b, createBlock as S, createCommentVNode as v, defineAsyncComponent as F, Fragment as I, renderList as V, withCtx as Z, createVNode as P, normalizeProps as se, guardReactiveProps as De, renderSlot as j, createElementVNode as ie, normalizeStyle as ae, normalizeClass as ke, markRaw as qe } from "vue";
1
+ import { defineComponent as g, openBlock as d, createElementBlock as p, mergeProps as $, toHandlers as O, toDisplayString as re, h as ke, resolveComponent as b, createBlock as S, createCommentVNode as v, defineAsyncComponent as F, Fragment as I, renderList as V, withCtx as Z, createVNode as P, normalizeProps as se, guardReactiveProps as qe, renderSlot as j, createElementVNode as ie, normalizeStyle as ae, normalizeClass as Se, markRaw as Ge } from "vue";
2
2
  function L(e = {}, t, n) {
3
3
  const o = {};
4
4
  for (const r in e) {
@@ -9,7 +9,7 @@ function L(e = {}, t, n) {
9
9
  }
10
10
  return o;
11
11
  }
12
- const Ge = g({
12
+ const Je = g({
13
13
  name: "builder-button",
14
14
  props: ["attributes", "text", "link", "openLinkInNewTab"],
15
15
  data() {
@@ -32,20 +32,20 @@ const y = (e, t) => {
32
32
  for (const [o, r] of t)
33
33
  n[o] = r;
34
34
  return n;
35
- }, Je = ["href", "target"];
36
- function Ye(e, t, n, o, r, i) {
35
+ }, Ye = ["href", "target"];
36
+ function Xe(e, t, n, o, r, i) {
37
37
  return e.link ? (d(), p("a", $({
38
38
  key: 0,
39
39
  role: "button",
40
40
  href: e.link,
41
41
  target: e.openLinkInNewTab ? "_blank" : void 0
42
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), re(e.text), 17, Je)) : (d(), p("button", $({
42
+ }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), re(e.text), 17, Ye)) : (d(), p("button", $({
43
43
  key: 1,
44
44
  style: e.attributes.style,
45
45
  class: e._classStringToObject(e.attributes.class + " button-21azgz5avex")
46
46
  }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), re(e.text), 17));
47
47
  }
48
- const Xe = /* @__PURE__ */ y(Ge, [["render", Ye], ["__scopeId", "data-v-ab4af752"]]), _ = (e) => JSON.parse(JSON.stringify(e)), Se = {
48
+ const Qe = /* @__PURE__ */ y(Je, [["render", Xe], ["__scopeId", "data-v-ab4af752"]]), _ = (e) => JSON.parse(JSON.stringify(e)), ve = {
49
49
  small: {
50
50
  min: 320,
51
51
  default: 321,
@@ -61,11 +61,11 @@ const Xe = /* @__PURE__ */ y(Ge, [["render", Ye], ["__scopeId", "data-v-ab4af752
61
61
  default: 991,
62
62
  max: 1200
63
63
  }
64
- }, le = (e, t = Se) => `@media (max-width: ${t[e].max}px)`, ve = ({
64
+ }, le = (e, t = ve) => `@media (max-width: ${t[e].max}px)`, Ce = ({
65
65
  small: e,
66
66
  medium: t
67
67
  }) => {
68
- const n = _(Se);
68
+ const n = _(ve);
69
69
  if (!e || !t)
70
70
  return n;
71
71
  const o = Math.floor(e / 2);
@@ -95,13 +95,85 @@ const Xe = /* @__PURE__ */ y(Ge, [["render", Ye], ["__scopeId", "data-v-ab4af752
95
95
  function C() {
96
96
  return typeof window < "u" && typeof document < "u";
97
97
  }
98
- function Qe() {
98
+ function Ze() {
99
99
  return C() && window.self !== window.top;
100
100
  }
101
101
  function A() {
102
- return Qe() && window.location.search.indexOf("builder.frameEditing=") !== -1;
102
+ return Ze() && window.location.search.indexOf("builder.frameEditing=") !== -1;
103
103
  }
104
- function Ce() {
104
+ const et = () => {
105
+ if (C()) {
106
+ const e = new URL(location.href);
107
+ return e.pathname === "" && (e.pathname = "/"), e;
108
+ } else
109
+ return console.warn("Cannot get location for tracking in non-browser environment"), null;
110
+ }, tt = () => typeof navigator == "object" && navigator.userAgent || "", we = () => {
111
+ const e = tt(), t = {
112
+ Android() {
113
+ return e.match(/Android/i);
114
+ },
115
+ BlackBerry() {
116
+ return e.match(/BlackBerry/i);
117
+ },
118
+ iOS() {
119
+ return e.match(/iPhone|iPod/i);
120
+ },
121
+ Opera() {
122
+ return e.match(/Opera Mini/i);
123
+ },
124
+ Windows() {
125
+ return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
126
+ },
127
+ any() {
128
+ return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || B === "reactNative";
129
+ }
130
+ }, n = e.match(/Tablet|iPad/i), o = et();
131
+ return {
132
+ urlPath: o == null ? void 0 : o.pathname,
133
+ host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
134
+ device: n ? "tablet" : t.any() ? "mobile" : "desktop"
135
+ };
136
+ }, nt = ({
137
+ builder: e,
138
+ context: t,
139
+ event: n,
140
+ state: o
141
+ }) => Object.entries({
142
+ state: o,
143
+ Builder: e,
144
+ builder: e,
145
+ context: t,
146
+ event: n
147
+ }), ce = ({
148
+ code: e,
149
+ builder: t,
150
+ context: n,
151
+ event: o,
152
+ localState: r,
153
+ rootSetState: i,
154
+ rootState: s
155
+ }) => {
156
+ const a = nt({
157
+ builder: t,
158
+ context: n,
159
+ event: o,
160
+ state: ot(s, r, i)
161
+ });
162
+ return new Function(...a.map(([l]) => l), e)(...a.map(([, l]) => l));
163
+ };
164
+ function ot(e, t, n) {
165
+ if (e === t)
166
+ throw new Error("rootState === localState");
167
+ return new Proxy(e, {
168
+ get: (o, r) => t && r in t ? t[r] : e[r],
169
+ set: (o, r, i) => {
170
+ if (t && r in t)
171
+ throw new Error("Writing to local state is not allowed as it is read-only.");
172
+ return e[r] = i, n == null || n(e), !0;
173
+ }
174
+ });
175
+ }
176
+ function $e() {
105
177
  const e = () => {
106
178
  var t;
107
179
  return typeof process < "u" && ((t = process == null ? void 0 : process.versions) == null ? void 0 : t.node);
@@ -109,7 +181,7 @@ function Ce() {
109
181
  return !C() && !e();
110
182
  }
111
183
  let q;
112
- Ce() && import("./non-node-runtime.814a2495.js").then((e) => {
184
+ $e() && import("./non-node-runtime.15581a63.js").then((e) => {
113
185
  q = e.runInNonNode;
114
186
  }).catch((e) => {
115
187
  const t = "Error importing JS interpreter for non-Node.js runtimes. Make sure `js-interpreter` is installed.\n Read more here: https://github.com/BuilderIO/builder/tree/main/packages/sdks/README.md#non-nodejs-runtimes-edge-serverless\n ";
@@ -133,9 +205,10 @@ function W({
133
205
  const a = {
134
206
  isEditing: A(),
135
207
  isBrowser: C(),
136
- isServer: !C()
208
+ isServer: !C(),
209
+ getUserAttributes: () => we()
137
210
  }, u = {
138
- useCode: s && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
211
+ code: s && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
139
212
  builder: a,
140
213
  context: t,
141
214
  event: i,
@@ -143,46 +216,22 @@ function W({
143
216
  rootState: o,
144
217
  localState: n
145
218
  };
146
- return C() ? we(u) : Ce() ? q(u) : Ze(u);
147
- }
148
- const we = ({
149
- useCode: e,
150
- builder: t,
151
- context: n,
152
- event: o,
153
- localState: r,
154
- rootSetState: i,
155
- rootState: s
156
- }) => {
157
- const a = et(s, r, i);
158
219
  try {
159
- return new Function("builder", "Builder", "state", "context", "event", e)(t, t, a, n, o);
160
- } catch (l) {
161
- T.warn(`Builder custom code error:
162
- While Evaluating:
163
- `, e, `
164
- `, l);
220
+ return C() ? ce(u) : $e() ? q(u) : ce(u);
221
+ } catch (h) {
222
+ T.error("Failed code evaluation: " + h.message, {
223
+ code: e
224
+ });
225
+ return;
165
226
  }
166
- }, Ze = (e) => we(e);
167
- function et(e, t, n) {
168
- if (e === t)
169
- throw new Error("rootState === localState");
170
- return new Proxy(e, {
171
- get: (o, r) => t && r in t ? t[r] : e[r],
172
- set: (o, r, i) => {
173
- if (t && r in t)
174
- throw new Error("Writing to local state is not allowed as it is read-only.");
175
- return e[r] = i, n == null || n(e), !0;
176
- }
177
- });
178
227
  }
179
- const tt = (e, t, n) => {
228
+ const rt = (e, t, n) => {
180
229
  if (Object(e) !== e)
181
230
  return e;
182
231
  const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
183
232
  return o.slice(0, -1).reduce((r, i, s) => Object(r[i]) === r[i] ? r[i] : r[i] = Math.abs(Number(o[s + 1])) >> 0 === +o[s + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
184
233
  };
185
- const nt = ({
234
+ const st = ({
186
235
  block: e,
187
236
  context: t,
188
237
  localState: n,
@@ -208,7 +257,7 @@ const nt = ({
208
257
  rootSetState: r,
209
258
  context: t
210
259
  });
211
- tt(s, a, c);
260
+ rt(s, a, c);
212
261
  }
213
262
  return s;
214
263
  };
@@ -221,7 +270,7 @@ function ee({
221
270
  rootSetState: i
222
271
  }) {
223
272
  const s = e;
224
- return n ? nt({
273
+ return n ? st({
225
274
  block: s,
226
275
  localState: o,
227
276
  rootState: r,
@@ -229,28 +278,28 @@ function ee({
229
278
  context: t
230
279
  }) : s;
231
280
  }
232
- const ot = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), E = (e) => e != null, rt = (e) => Object.entries(e).map(([n, o]) => {
281
+ const it = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), E = (e) => e != null, at = (e) => Object.entries(e).map(([n, o]) => {
233
282
  if (typeof o == "string")
234
- return `${ot(n)}: ${o};`;
235
- }).filter(E), st = (e) => rt(e).join(`
283
+ return `${it(n)}: ${o};`;
284
+ }).filter(E), lt = (e) => at(e).join(`
236
285
  `), z = ({
237
286
  mediaQuery: e,
238
287
  className: t,
239
288
  styles: n
240
289
  }) => {
241
290
  const o = `.${t} {
242
- ${st(n)}
291
+ ${lt(n)}
243
292
  }`;
244
293
  return e ? `${e} {
245
294
  ${o}
246
295
  }` : o;
247
296
  }, K = g({
248
297
  render() {
249
- return ye("style", { id: this.id, innerHTML: this.styles });
298
+ return ke("style", { id: this.id, innerHTML: this.styles });
250
299
  },
251
300
  name: "inlined-styles",
252
301
  props: ["styles", "id"]
253
- }), it = g({
302
+ }), ct = g({
254
303
  name: "block-styles",
255
304
  components: { InlinedStyles: K },
256
305
  props: ["block", "context"],
@@ -273,7 +322,7 @@ const ot = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase
273
322
  },
274
323
  css() {
275
324
  var u;
276
- const e = this.processedBlock.responsiveStyles, t = this.context.content, n = ve(
325
+ const e = this.processedBlock.responsiveStyles, t = this.context.content, n = Ce(
277
326
  ((u = t == null ? void 0 : t.meta) == null ? void 0 : u.breakpoints) || {}
278
327
  ), o = e == null ? void 0 : e.large, r = e == null ? void 0 : e.medium, i = e == null ? void 0 : e.small, s = this.processedBlock.id;
279
328
  if (!s)
@@ -300,18 +349,18 @@ const ot = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase
300
349
  }
301
350
  }
302
351
  });
303
- function at(e, t, n, o, r, i) {
352
+ function dt(e, t, n, o, r, i) {
304
353
  const s = b("inlined-styles");
305
354
  return e.TARGET !== "reactNative" && e.css && e.canShowBlock ? (d(), S(s, {
306
355
  key: 0,
307
356
  styles: e.css
308
357
  }, null, 8, ["styles"])) : v("", !0);
309
358
  }
310
- const $e = /* @__PURE__ */ y(it, [["render", at]]), lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
359
+ const Te = /* @__PURE__ */ y(ct, [["render", dt]]), ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
311
360
  __proto__: null,
312
- default: $e
361
+ default: Te
313
362
  }, Symbol.toStringTag, { value: "Module" }));
314
- function ct(e) {
363
+ function pt(e) {
315
364
  var t;
316
365
  return {
317
366
  ...(t = e.component) == null ? void 0 : t.options,
@@ -319,7 +368,7 @@ function ct(e) {
319
368
  builderBlock: e
320
369
  };
321
370
  }
322
- const dt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], ut = (e) => typeof e == "string" && dt.includes(e.toLowerCase()), pt = ({
371
+ const mt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], ht = (e) => typeof e == "string" && mt.includes(e.toLowerCase()), ft = ({
323
372
  block: e,
324
373
  context: t,
325
374
  registeredComponents: n
@@ -341,7 +390,7 @@ const dt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
341
390
  console.warn(`
342
391
  Could not find a registered component named "${o}".
343
392
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
344
- }, mt = ({
393
+ }, gt = ({
345
394
  block: e,
346
395
  context: t
347
396
  }) => {
@@ -374,48 +423,48 @@ const dt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
374
423
  },
375
424
  block: o
376
425
  }));
377
- }, ht = () => Promise.resolve().then(() => lt).then((e) => e.default).catch((e) => {
426
+ }, bt = () => Promise.resolve().then(() => ut).then((e) => e.default).catch((e) => {
378
427
  throw console.error(
379
428
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
380
429
  e
381
430
  ), e;
382
- }), ft = () => import("./repeated-block.f409b451.js").then((e) => e.default).catch((e) => {
431
+ }), yt = () => import("./repeated-block.53ae8c41.js").then((e) => e.default).catch((e) => {
383
432
  throw console.error(
384
433
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
385
434
  e
386
435
  ), e;
387
- }), gt = () => import("./component-ref.5b93cf21.js").then((e) => e.default).catch((e) => {
436
+ }), kt = () => import("./component-ref.b3232d22.js").then((e) => e.default).catch((e) => {
388
437
  throw console.error(
389
438
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
390
439
  e
391
440
  ), e;
392
- }), bt = () => import("./block-wrapper.c8ec3e80.js").then((e) => e.default).catch((e) => {
441
+ }), St = () => import("./block-wrapper.e6a959ca.js").then((e) => e.default).catch((e) => {
393
442
  throw console.error(
394
443
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
395
444
  e
396
445
  ), e;
397
- }), yt = g({
446
+ }), vt = g({
398
447
  name: "block",
399
448
  components: {
400
- ComponentRef: F(gt),
401
- BlockWrapper: F(bt),
402
- RepeatedBlock: F(ft),
403
- BlockStyles: F(ht)
449
+ ComponentRef: F(kt),
450
+ BlockWrapper: F(St),
451
+ RepeatedBlock: F(yt),
452
+ BlockStyles: F(bt)
404
453
  },
405
454
  props: ["block", "context", "registeredComponents"],
406
455
  data() {
407
- return { childrenContext: this.context, isEmptyHtmlElement: ut };
456
+ return { childrenContext: this.context, isEmptyHtmlElement: ht };
408
457
  },
409
458
  computed: {
410
459
  blockComponent() {
411
- return pt({
460
+ return ft({
412
461
  block: this.block,
413
462
  context: this.context,
414
463
  registeredComponents: this.registeredComponents
415
464
  });
416
465
  },
417
466
  repeatItem() {
418
- return mt({
467
+ return gt({
419
468
  block: this.block,
420
469
  context: this.context
421
470
  });
@@ -446,7 +495,7 @@ const dt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
446
495
  blockChildren: (e = this.processedBlock.children) != null ? e : [],
447
496
  componentRef: (t = this.blockComponent) == null ? void 0 : t.component,
448
497
  componentOptions: {
449
- ...ct(this.processedBlock),
498
+ ...pt(this.processedBlock),
450
499
  builderContext: this.context,
451
500
  ...((n = this.blockComponent) == null ? void 0 : n.name) === "Symbol" || ((o = this.blockComponent) == null ? void 0 : o.name) === "Columns" ? {
452
501
  builderComponents: this.registeredComponents
@@ -461,7 +510,7 @@ const dt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
461
510
  }
462
511
  }
463
512
  });
464
- function kt(e, t, n, o, r, i) {
513
+ function Ct(e, t, n, o, r, i) {
465
514
  var h;
466
515
  const s = b("block-wrapper"), a = b("repeated-block"), l = b("component-ref"), c = b("block", !0), u = b("block-styles");
467
516
  return e.canShowBlock ? (d(), p(I, { key: 0 }, [
@@ -487,7 +536,7 @@ function kt(e, t, n, o, r, i) {
487
536
  hasChildren: !0
488
537
  }, {
489
538
  default: Z(() => [
490
- P(l, se(De(e.componentRefProps)), null, 16),
539
+ P(l, se(qe(e.componentRefProps)), null, 16),
491
540
  (d(!0), p(I, null, V(e.childrenWithoutParentComponent, (m, f) => (d(), S(c, {
492
541
  key: "block-" + m.id,
493
542
  block: m,
@@ -505,10 +554,10 @@ function kt(e, t, n, o, r, i) {
505
554
  ], 64))
506
555
  ], 64)) : v("", !0);
507
556
  }
508
- const Te = /* @__PURE__ */ y(yt, [["render", kt]]), qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
557
+ const Ie = /* @__PURE__ */ y(vt, [["render", Ct]]), qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
509
558
  __proto__: null,
510
- default: Te
511
- }, Symbol.toStringTag, { value: "Module" })), St = g({
559
+ default: Ie
560
+ }, Symbol.toStringTag, { value: "Module" })), wt = g({
512
561
  name: "builder-blocks-wrapper",
513
562
  props: ["blocks", "parent", "path", "styleProp"],
514
563
  computed: {
@@ -555,8 +604,8 @@ const Te = /* @__PURE__ */ y(yt, [["render", kt]]), qo = /* @__PURE__ */ Object.
555
604
  }
556
605
  }
557
606
  });
558
- const vt = ["builder-path", "builder-parent-id"];
559
- function Ct(e, t, n, o, r, i) {
607
+ const $t = ["builder-path", "builder-parent-id"];
608
+ function Tt(e, t, n, o, r, i) {
560
609
  return d(), p("div", $({
561
610
  class: e._classStringToObject(e.className + " div-178o76acnws"),
562
611
  "builder-path": e.path,
@@ -567,9 +616,9 @@ function Ct(e, t, n, o, r, i) {
567
616
  onKeypress: t[2] || (t[2] = (s) => e.onClick())
568
617
  }, {}), [
569
618
  j(e.$slots, "default", {}, void 0, !0)
570
- ], 16, vt);
619
+ ], 16, $t);
571
620
  }
572
- const wt = /* @__PURE__ */ y(St, [["render", Ct], ["__scopeId", "data-v-4d6a880e"]]), $t = Symbol(), G = {
621
+ const It = /* @__PURE__ */ y(wt, [["render", Tt], ["__scopeId", "data-v-4d6a880e"]]), Rt = Symbol(), G = {
573
622
  Builder: {
574
623
  content: null,
575
624
  context: {},
@@ -582,16 +631,16 @@ const wt = /* @__PURE__ */ y(St, [["render", Ct], ["__scopeId", "data-v-4d6a880e
582
631
  componentInfos: {},
583
632
  inheritedStyles: {}
584
633
  },
585
- key: $t
586
- }, Tt = Symbol(), Ie = {
634
+ key: Rt
635
+ }, xt = Symbol(), Re = {
587
636
  Components: { registeredComponents: {} },
588
- key: Tt
589
- }, It = g({
637
+ key: xt
638
+ }, Et = g({
590
639
  name: "builder-blocks",
591
640
  components: {
592
- BlocksWrapper: wt,
593
- Block: Te,
594
- BlockStyles: $e
641
+ BlocksWrapper: It,
642
+ Block: Ie,
643
+ BlockStyles: Te
595
644
  },
596
645
  props: [
597
646
  "blocks",
@@ -603,10 +652,10 @@ const wt = /* @__PURE__ */ y(St, [["render", Ct], ["__scopeId", "data-v-4d6a880e
603
652
  ],
604
653
  inject: {
605
654
  builderContext: G.key,
606
- componentsContext: Ie.key
655
+ componentsContext: Re.key
607
656
  }
608
657
  });
609
- function Rt(e, t, n, o, r, i) {
658
+ function At(e, t, n, o, r, i) {
610
659
  const s = b("block"), a = b("block-styles"), l = b("blocks-wrapper");
611
660
  return d(), S(l, {
612
661
  blocks: e.blocks,
@@ -630,7 +679,7 @@ function Rt(e, t, n, o, r, i) {
630
679
  _: 1
631
680
  }, 8, ["blocks", "parent", "path", "styleProp"]);
632
681
  }
633
- const te = /* @__PURE__ */ y(It, [["render", Rt]]), xt = g({
682
+ const te = /* @__PURE__ */ y(Et, [["render", At]]), Bt = g({
634
683
  name: "builder-columns",
635
684
  components: { InlinedStyles: K, Blocks: te },
636
685
  props: [
@@ -736,7 +785,7 @@ const te = /* @__PURE__ */ y(It, [["render", Rt]]), xt = g({
736
785
  },
737
786
  getWidthForBreakpointSize(e) {
738
787
  var n, o;
739
- return ve(
788
+ return Ce(
740
789
  ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
741
790
  )[e].max;
742
791
  },
@@ -751,7 +800,7 @@ const te = /* @__PURE__ */ y(It, [["render", Rt]]), xt = g({
751
800
  }
752
801
  }
753
802
  });
754
- function Et(e, t, n, o, r, i) {
803
+ function Vt(e, t, n, o, r, i) {
755
804
  const s = b("inlined-styles"), a = b("blocks");
756
805
  return d(), p("div", $({
757
806
  class: e._classStringToObject(
@@ -781,32 +830,32 @@ function Et(e, t, n, o, r, i) {
781
830
  ], 16))), 128))
782
831
  ], 16);
783
832
  }
784
- const At = /* @__PURE__ */ y(xt, [["render", Et], ["__scopeId", "data-v-c37bdfa8"]]), Bt = g({
833
+ const Pt = /* @__PURE__ */ y(Bt, [["render", Vt], ["__scopeId", "data-v-c37bdfa8"]]), Nt = g({
785
834
  name: "builder-fragment-component",
786
835
  props: []
787
836
  });
788
- function Vt(e, t, n, o, r, i) {
837
+ function jt(e, t, n, o, r, i) {
789
838
  return d(), p("span", null, [
790
839
  j(e.$slots, "default")
791
840
  ]);
792
841
  }
793
- const Pt = /* @__PURE__ */ y(Bt, [["render", Vt]]);
794
- function ce(e) {
842
+ const Ot = /* @__PURE__ */ y(Nt, [["render", jt]]);
843
+ function de(e) {
795
844
  return e.replace(/http(s)?:/, "");
796
845
  }
797
- function Nt(e = "", t, n) {
846
+ function _t(e = "", t, n) {
798
847
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
799
848
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
800
849
  }
801
- function jt(e, t) {
850
+ function Ft(e, t) {
802
851
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
803
852
  return e;
804
853
  if (t === "master")
805
- return ce(e);
854
+ return de(e);
806
855
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
807
856
  if (n) {
808
857
  const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
809
- return ce(`${o[0]}_${i}${r}`);
858
+ return de(`${o[0]}_${i}${r}`);
810
859
  }
811
860
  return null;
812
861
  }
@@ -817,11 +866,11 @@ function D(e) {
817
866
  if (e.match(/builder\.io/)) {
818
867
  let n = e;
819
868
  const o = Number(e.split("?width=")[1]);
820
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Nt(e, "width", r)} ${r}w`).concat([n]).join(", ");
869
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${_t(e, "width", r)} ${r}w`).concat([n]).join(", ");
821
870
  }
822
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [jt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
871
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ft(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
823
872
  }
824
- const Ot = g({
873
+ const Ut = g({
825
874
  name: "builder-image",
826
875
  props: [
827
876
  "image",
@@ -877,11 +926,11 @@ const Ot = g({
877
926
  }
878
927
  }
879
928
  });
880
- const _t = ["srcset"], Ft = ["alt", "role", "src", "srcset", "sizes"], Ut = {
929
+ const Mt = ["srcset"], Wt = ["alt", "role", "src", "srcset", "sizes"], Lt = {
881
930
  key: 2,
882
931
  class: "div-1be3j8m9ewb-2"
883
932
  };
884
- function Mt(e, t, n, o, r, i) {
933
+ function Kt(e, t, n, o, r, i) {
885
934
  var s, a, l, c;
886
935
  return d(), p(I, null, [
887
936
  ie("picture", null, [
@@ -889,7 +938,7 @@ function Mt(e, t, n, o, r, i) {
889
938
  key: 0,
890
939
  type: "image/webp",
891
940
  srcset: e.webpSrcSet
892
- }, null, 8, _t)) : v("", !0),
941
+ }, null, 8, Mt)) : v("", !0),
893
942
  ie("img", {
894
943
  loading: "lazy",
895
944
  alt: e.altText,
@@ -899,7 +948,7 @@ function Mt(e, t, n, o, r, i) {
899
948
  objectFit: e.backgroundSize || "cover",
900
949
  ...e.aspectRatioCss
901
950
  }),
902
- class: ke(
951
+ class: Se(
903
952
  e._classStringToObject(
904
953
  "builder-image" + (e.className ? " " + e.className : "") + " img-1be3j8m9ewb"
905
954
  )
@@ -907,7 +956,7 @@ function Mt(e, t, n, o, r, i) {
907
956
  src: e.image,
908
957
  srcset: e.srcSetToUse,
909
958
  sizes: e.sizes
910
- }, null, 14, Ft)
959
+ }, null, 14, Wt)
911
960
  ]),
912
961
  e.aspectRatio && !(((a = (s = e.builderBlock) == null ? void 0 : s.children) == null ? void 0 : a.length) && e.fitContent) ? (d(), p("div", {
913
962
  key: 0,
@@ -917,19 +966,19 @@ function Mt(e, t, n, o, r, i) {
917
966
  })
918
967
  }, null, 4)) : v("", !0),
919
968
  ((c = (l = e.builderBlock) == null ? void 0 : l.children) == null ? void 0 : c.length) && e.fitContent ? j(e.$slots, "default", { key: 1 }, void 0, !0) : v("", !0),
920
- !e.fitContent && e.$slots.default ? (d(), p("div", Ut, [
969
+ !e.fitContent && e.$slots.default ? (d(), p("div", Lt, [
921
970
  j(e.$slots, "default", {}, void 0, !0)
922
971
  ])) : v("", !0)
923
972
  ], 64);
924
973
  }
925
- const Wt = /* @__PURE__ */ y(Ot, [["render", Mt], ["__scopeId", "data-v-22a5a139"]]), Lt = g({
974
+ const Ht = /* @__PURE__ */ y(Ut, [["render", Kt], ["__scopeId", "data-v-22a5a139"]]), zt = g({
926
975
  name: "builder-section-component",
927
976
  props: ["attributes", "maxWidth"],
928
977
  data() {
929
978
  return { filterAttrs: L };
930
979
  }
931
980
  });
932
- function Kt(e, t, n, o, r, i) {
981
+ function Dt(e, t, n, o, r, i) {
933
982
  return d(), p("section", $({
934
983
  style: {
935
984
  width: "100%",
@@ -947,15 +996,15 @@ function Kt(e, t, n, o, r, i) {
947
996
  j(e.$slots, "default")
948
997
  ], 16);
949
998
  }
950
- const Ht = /* @__PURE__ */ y(Lt, [["render", Kt]]), M = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
999
+ const qt = /* @__PURE__ */ y(zt, [["render", Dt]]), M = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
951
1000
  ...t,
952
1001
  testVariationId: t.id,
953
1002
  id: e == null ? void 0 : e.id
954
- })), zt = ({
1003
+ })), Gt = ({
955
1004
  canTrack: e,
956
1005
  content: t
957
1006
  }) => !(!(M(t).length > 0) || !e);
958
- function Dt(e, t, n) {
1007
+ function Jt(e, t, n) {
959
1008
  var s;
960
1009
  function o() {
961
1010
  function a(k, w, x) {
@@ -1002,7 +1051,7 @@ function Dt(e, t, n) {
1002
1051
  i.innerHTML = a;
1003
1052
  }
1004
1053
  }
1005
- function qt(e, t, n) {
1054
+ function Yt(e, t, n) {
1006
1055
  var l;
1007
1056
  if (!navigator.cookieEnabled)
1008
1057
  return;
@@ -1027,18 +1076,18 @@ function qt(e, t, n) {
1027
1076
  return;
1028
1077
  }
1029
1078
  }
1030
- const Gt = (e) => e === "react" || e === "reactNative", Re = Gt(B), xe = "builderIoAbTest", Ee = "builderIoRenderContent", Jt = () => {
1031
- const e = Dt.toString().replace(/\s+/g, " "), t = qt.toString().replace(/\s+/g, " ");
1079
+ const Xt = (e) => e === "react" || e === "reactNative", xe = Xt(B), Ee = "builderIoAbTest", Ae = "builderIoRenderContent", Qt = () => {
1080
+ const e = Jt.toString().replace(/\s+/g, " "), t = Yt.toString().replace(/\s+/g, " ");
1032
1081
  return `
1033
- window.${xe} = ${e}
1034
- window.${Ee} = ${t}
1082
+ window.${Ee} = ${e}
1083
+ window.${Ae} = ${t}
1035
1084
  `;
1036
- }, Yt = (e, t) => `
1037
- window.${xe}("${t}",${JSON.stringify(e)}, ${Re})`, Xt = ({
1085
+ }, Zt = (e, t) => `
1086
+ window.${Ee}("${t}",${JSON.stringify(e)}, ${xe})`, en = ({
1038
1087
  contentId: e,
1039
1088
  variationId: t
1040
1089
  }) => `
1041
- window.${Ee}("${t}", "${e}", ${Re})`, Qt = {
1090
+ window.${Ae}("${t}", "${e}", ${xe})`, tn = {
1042
1091
  name: "Core:Button",
1043
1092
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1044
1093
  defaultStyles: {
@@ -1070,7 +1119,7 @@ const Gt = (e) => e === "react" || e === "reactNative", Re = Gt(B), xe = "builde
1070
1119
  }],
1071
1120
  static: !0,
1072
1121
  noWrap: !0
1073
- }, Zt = {
1122
+ }, nn = {
1074
1123
  name: "Columns",
1075
1124
  isRSC: !0,
1076
1125
  inputs: [{
@@ -1270,13 +1319,13 @@ const Gt = (e) => e === "react" || e === "reactNative", Re = Gt(B), xe = "builde
1270
1319
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1271
1320
  advanced: !0
1272
1321
  }]
1273
- }, en = {
1322
+ }, on = {
1274
1323
  name: "Fragment",
1275
1324
  static: !0,
1276
1325
  hidden: !0,
1277
1326
  canHaveChildren: !0,
1278
1327
  noWrap: !0
1279
- }, tn = {
1328
+ }, rn = {
1280
1329
  name: "Image",
1281
1330
  static: !0,
1282
1331
  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",
@@ -1376,7 +1425,7 @@ const Gt = (e) => e === "react" || e === "reactNative", Re = Gt(B), xe = "builde
1376
1425
  advanced: !0,
1377
1426
  defaultValue: 0.7041
1378
1427
  }]
1379
- }, nn = {
1428
+ }, sn = {
1380
1429
  name: "Core:Section",
1381
1430
  static: !0,
1382
1431
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1415,7 +1464,7 @@ const Gt = (e) => e === "react" || e === "reactNative", Re = Gt(B), xe = "builde
1415
1464
  }
1416
1465
  }
1417
1466
  }]
1418
- }, on = {
1467
+ }, an = {
1419
1468
  name: "Symbol",
1420
1469
  noWrap: !0,
1421
1470
  static: !0,
@@ -1448,7 +1497,7 @@ const Gt = (e) => e === "react" || e === "reactNative", Re = Gt(B), xe = "builde
1448
1497
  hideFromUI: !0,
1449
1498
  type: "boolean"
1450
1499
  }]
1451
- }, rn = {
1500
+ }, ln = {
1452
1501
  name: "Text",
1453
1502
  static: !0,
1454
1503
  isRSC: !0,
@@ -1466,11 +1515,11 @@ const Gt = (e) => e === "react" || e === "reactNative", Re = Gt(B), xe = "builde
1466
1515
  height: "auto",
1467
1516
  textAlign: "center"
1468
1517
  }
1469
- }, sn = g({
1518
+ }, cn = g({
1470
1519
  name: "builder-text",
1471
1520
  props: ["text"]
1472
- }), an = ["innerHTML"];
1473
- function ln(e, t, n, o, r, i) {
1521
+ }), dn = ["innerHTML"];
1522
+ function un(e, t, n, o, r, i) {
1474
1523
  var s;
1475
1524
  return d(), p("span", $({
1476
1525
  class: "builder-text",
@@ -1478,9 +1527,9 @@ function ln(e, t, n, o, r, i) {
1478
1527
  style: {
1479
1528
  outline: "none"
1480
1529
  }
1481
- }, {}), null, 16, an);
1530
+ }, {}), null, 16, dn);
1482
1531
  }
1483
- const cn = /* @__PURE__ */ y(sn, [["render", ln]]), dn = {
1532
+ const pn = /* @__PURE__ */ y(cn, [["render", un]]), mn = {
1484
1533
  name: "Video",
1485
1534
  canHaveChildren: !0,
1486
1535
  defaultStyles: {
@@ -1561,7 +1610,7 @@ const cn = /* @__PURE__ */ y(sn, [["render", ln]]), dn = {
1561
1610
  defaultValue: !0,
1562
1611
  advanced: !0
1563
1612
  }]
1564
- }, un = g({
1613
+ }, hn = g({
1565
1614
  name: "builder-video",
1566
1615
  props: [
1567
1616
  "autoPlay",
@@ -1603,8 +1652,8 @@ const cn = /* @__PURE__ */ y(sn, [["render", ln]]), dn = {
1603
1652
  };
1604
1653
  }
1605
1654
  }
1606
- }), pn = ["preload", "src", "poster"];
1607
- function mn(e, t, n, o, r, i) {
1655
+ }), fn = ["preload", "src", "poster"];
1656
+ function gn(e, t, n, o, r, i) {
1608
1657
  var s;
1609
1658
  return d(), p("video", $({
1610
1659
  preload: e.preload || "metadata",
@@ -1618,9 +1667,9 @@ function mn(e, t, n, o, r, i) {
1618
1667
  },
1619
1668
  src: e.video || "no-src",
1620
1669
  poster: e.posterImage
1621
- }, e.spreadProps), null, 16, pn);
1670
+ }, e.spreadProps), null, 16, fn);
1622
1671
  }
1623
- const hn = /* @__PURE__ */ y(un, [["render", mn]]), fn = {
1672
+ const bn = /* @__PURE__ */ y(hn, [["render", gn]]), yn = {
1624
1673
  name: "Embed",
1625
1674
  static: !0,
1626
1675
  inputs: [{
@@ -1645,7 +1694,7 @@ const hn = /* @__PURE__ */ y(un, [["render", mn]]), fn = {
1645
1694
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1646
1695
  hideFromUI: !0
1647
1696
  }]
1648
- }, gn = ["text/javascript", "application/javascript", "application/ecmascript"], bn = (e) => gn.includes(e.type), yn = g({
1697
+ }, kn = ["text/javascript", "application/javascript", "application/ecmascript"], Sn = (e) => kn.includes(e.type), vn = g({
1649
1698
  name: "builder-embed",
1650
1699
  props: ["content"],
1651
1700
  data() {
@@ -1678,7 +1727,7 @@ const hn = /* @__PURE__ */ y(un, [["render", mn]]), fn = {
1678
1727
  this.scriptsInserted.push(n.src);
1679
1728
  const o = document.createElement("script");
1680
1729
  o.async = !0, o.src = n.src, document.head.appendChild(o);
1681
- } else if (bn(n) && !this.scriptsRun.includes(n.innerText))
1730
+ } else if (Sn(n) && !this.scriptsRun.includes(n.innerText))
1682
1731
  try {
1683
1732
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
1684
1733
  } catch (o) {
@@ -1687,15 +1736,15 @@ const hn = /* @__PURE__ */ y(un, [["render", mn]]), fn = {
1687
1736
  }
1688
1737
  }
1689
1738
  }
1690
- }), kn = ["innerHTML"];
1691
- function Sn(e, t, n, o, r, i) {
1739
+ }), Cn = ["innerHTML"];
1740
+ function wn(e, t, n, o, r, i) {
1692
1741
  return d(), p("div", {
1693
1742
  class: "builder-embed",
1694
1743
  ref: "elem",
1695
1744
  innerHTML: e.content
1696
- }, null, 8, kn);
1745
+ }, null, 8, Cn);
1697
1746
  }
1698
- const vn = /* @__PURE__ */ y(yn, [["render", Sn]]), Cn = g({
1747
+ const $n = /* @__PURE__ */ y(vn, [["render", wn]]), Tn = g({
1699
1748
  name: "builder-img-component",
1700
1749
  props: [
1701
1750
  "backgroundSize",
@@ -1708,8 +1757,8 @@ const vn = /* @__PURE__ */ y(yn, [["render", Sn]]), Cn = g({
1708
1757
  data() {
1709
1758
  return { isEditing: A, filterAttrs: L };
1710
1759
  }
1711
- }), wn = ["alt", "src"];
1712
- function $n(e, t, n, o, r, i) {
1760
+ }), In = ["alt", "src"];
1761
+ function Rn(e, t, n, o, r, i) {
1713
1762
  return d(), p("img", $({
1714
1763
  style: {
1715
1764
  objectFit: e.backgroundSize || "cover",
@@ -1718,9 +1767,9 @@ function $n(e, t, n, o, r, i) {
1718
1767
  key: e.isEditing() && e.imgSrc || "default-key",
1719
1768
  alt: e.altText,
1720
1769
  src: e.imgSrc || e.image
1721
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, wn);
1770
+ }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, In);
1722
1771
  }
1723
- const Tn = /* @__PURE__ */ y(Cn, [["render", $n]]), In = {
1772
+ const xn = /* @__PURE__ */ y(Tn, [["render", Rn]]), En = {
1724
1773
  name: "Raw:Img",
1725
1774
  hideFromInsertMenu: !0,
1726
1775
  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",
@@ -1733,7 +1782,7 @@ const Tn = /* @__PURE__ */ y(Cn, [["render", $n]]), In = {
1733
1782
  }],
1734
1783
  noWrap: !0,
1735
1784
  static: !0
1736
- }, Rn = g({
1785
+ }, An = g({
1737
1786
  name: "builder-custom-code",
1738
1787
  props: ["replaceNodes", "code"],
1739
1788
  data() {
@@ -1780,19 +1829,19 @@ const Tn = /* @__PURE__ */ y(Cn, [["render", $n]]), In = {
1780
1829
  return t;
1781
1830
  }
1782
1831
  }
1783
- }), xn = ["innerHTML"];
1784
- function En(e, t, n, o, r, i) {
1832
+ }), Bn = ["innerHTML"];
1833
+ function Vn(e, t, n, o, r, i) {
1785
1834
  return d(), p("div", {
1786
1835
  ref: "elem",
1787
- class: ke(
1836
+ class: Se(
1788
1837
  e._classStringToObject(
1789
1838
  "builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")
1790
1839
  )
1791
1840
  ),
1792
1841
  innerHTML: e.code
1793
- }, null, 10, xn);
1842
+ }, null, 10, Bn);
1794
1843
  }
1795
- const An = /* @__PURE__ */ y(Rn, [["render", En]]), Bn = {
1844
+ const Pn = /* @__PURE__ */ y(An, [["render", Vn]]), Nn = {
1796
1845
  name: "Custom Code",
1797
1846
  static: !0,
1798
1847
  requiredPermissions: ["editCode"],
@@ -1814,55 +1863,55 @@ const An = /* @__PURE__ */ y(Rn, [["render", En]]), Bn = {
1814
1863
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
1815
1864
  advanced: !0
1816
1865
  }]
1817
- }, de = () => [{
1818
- component: Xe,
1819
- ...Qt
1866
+ }, ue = () => [{
1867
+ component: Qe,
1868
+ ...tn
1820
1869
  }, {
1821
- component: At,
1822
- ...Zt
1870
+ component: Pt,
1871
+ ...nn
1823
1872
  }, {
1824
- component: An,
1825
- ...Bn
1873
+ component: Pn,
1874
+ ...Nn
1826
1875
  }, {
1827
- component: vn,
1828
- ...fn
1876
+ component: $n,
1877
+ ...yn
1829
1878
  }, {
1830
- component: Pt,
1831
- ...en
1879
+ component: Ot,
1880
+ ...on
1832
1881
  }, {
1833
- component: Wt,
1834
- ...tn
1882
+ component: Ht,
1883
+ ...rn
1835
1884
  }, {
1836
- component: Tn,
1837
- ...In
1885
+ component: xn,
1886
+ ...En
1838
1887
  }, {
1839
- component: Ht,
1840
- ...nn
1888
+ component: qt,
1889
+ ...sn
1841
1890
  }, {
1842
1891
  component: zo,
1843
- ...on
1892
+ ...an
1844
1893
  }, {
1845
- component: cn,
1846
- ...rn
1894
+ component: pn,
1895
+ ...ln
1847
1896
  }, {
1848
- component: hn,
1849
- ...dn
1850
- }], ue = [], Vn = (e) => ({
1897
+ component: bn,
1898
+ ...mn
1899
+ }], pe = [], jn = (e) => ({
1851
1900
  type: "builder.registerComponent",
1852
1901
  data: J(e)
1853
- }), Pn = (e) => {
1902
+ }), On = (e) => {
1854
1903
  const t = e.toString().trim();
1855
1904
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
1856
- }, Nn = (e) => typeof e == "function" ? Pn(e) : _(e), J = ({
1905
+ }, _n = (e) => typeof e == "function" ? On(e) : _(e), J = ({
1857
1906
  inputs: e,
1858
1907
  ...t
1859
1908
  }) => ({
1860
1909
  ..._(t),
1861
1910
  inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, i]) => ({
1862
1911
  ...o,
1863
- [r]: Nn(i)
1912
+ [r]: _n(i)
1864
1913
  }), {}))
1865
- }), jn = (e) => {
1914
+ }), Fn = (e) => {
1866
1915
  var i, s;
1867
1916
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = (s = e.fileUrl) != null ? s : (i = e == null ? void 0 : e.files) == null ? void 0 : i.regular;
1868
1917
  let r = "";
@@ -1888,26 +1937,26 @@ font-weight: ${a};
1888
1937
  `.trim());
1889
1938
  }
1890
1939
  return r;
1891
- }, On = ({
1940
+ }, Un = ({
1892
1941
  customFonts: e
1893
1942
  }) => {
1894
1943
  var t;
1895
- return ((t = e == null ? void 0 : e.map((n) => jn(n))) == null ? void 0 : t.join(" ")) || "";
1896
- }, _n = ({
1944
+ return ((t = e == null ? void 0 : e.map((n) => Fn(n))) == null ? void 0 : t.join(" ")) || "";
1945
+ }, Mn = ({
1897
1946
  cssCode: e,
1898
1947
  contentId: t
1899
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Fn = g({
1948
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Wn = g({
1900
1949
  name: "content-styles",
1901
1950
  components: { InlinedStyles: K },
1902
1951
  props: ["cssCode", "contentId", "customFonts"],
1903
1952
  data() {
1904
1953
  return {
1905
1954
  injectedStyles: `
1906
- ${_n({
1955
+ ${Mn({
1907
1956
  cssCode: this.cssCode,
1908
1957
  contentId: this.contentId
1909
1958
  })}
1910
- ${On({
1959
+ ${Un({
1911
1960
  customFonts: this.customFonts
1912
1961
  })}
1913
1962
 
@@ -1927,11 +1976,11 @@ ${On({
1927
1976
  };
1928
1977
  }
1929
1978
  });
1930
- function Un(e, t, n, o, r, i) {
1979
+ function Ln(e, t, n, o, r, i) {
1931
1980
  const s = b("inlined-styles");
1932
1981
  return d(), S(s, { styles: e.injectedStyles }, null, 8, ["styles"]);
1933
1982
  }
1934
- const Mn = /* @__PURE__ */ y(Fn, [["render", Un]]), Wn = ({
1983
+ const Kn = /* @__PURE__ */ y(Wn, [["render", Ln]]), Hn = ({
1935
1984
  content: e,
1936
1985
  data: t,
1937
1986
  locale: n
@@ -1953,7 +2002,7 @@ const Mn = /* @__PURE__ */ y(Fn, [["render", Un]]), Wn = ({
1953
2002
  ...o,
1954
2003
  ...r
1955
2004
  };
1956
- }, Ln = ({
2005
+ }, zn = ({
1957
2006
  content: e,
1958
2007
  data: t
1959
2008
  }) => e ? {
@@ -1964,22 +2013,22 @@ const Mn = /* @__PURE__ */ y(Fn, [["render", Un]]), Wn = ({
1964
2013
  },
1965
2014
  meta: e == null ? void 0 : e.meta
1966
2015
  } : void 0;
1967
- function Kn() {
2016
+ function Dn() {
1968
2017
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
1969
2018
  }
1970
- function Hn() {
1971
- const e = Kn().fetch;
2019
+ function qn() {
2020
+ const e = Dn().fetch;
1972
2021
  if (typeof e > "u")
1973
2022
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
1974
2023
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
1975
2024
  return e;
1976
2025
  }
1977
- const Ae = Hn(), zn = (e) => {
2026
+ const Be = qn(), Gn = (e) => {
1978
2027
  if (e === "localhost" || e === "127.0.0.1")
1979
2028
  return e;
1980
2029
  const t = e.split(".");
1981
2030
  return t.length > 2 ? t.slice(1).join(".") : e;
1982
- }, Be = ({
2031
+ }, Ve = ({
1983
2032
  name: e,
1984
2033
  canTrack: t
1985
2034
  }) => {
@@ -1990,14 +2039,14 @@ const Ae = Hn(), zn = (e) => {
1990
2039
  T.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
1991
2040
  return;
1992
2041
  }
1993
- }, Ve = async (e) => Be(e), Dn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(E).join("; "), qn = [["secure", ""], ["SameSite", "None"]], Gn = ({
2042
+ }, Pe = async (e) => Ve(e), Jn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(E).join("; "), Yn = [["secure", ""], ["SameSite", "None"]], Xn = ({
1994
2043
  name: e,
1995
2044
  value: t,
1996
2045
  expires: n
1997
2046
  }) => {
1998
- const r = (C() ? location.protocol === "https:" : !0) ? qn : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", zn(window.location.hostname)], ...r];
1999
- return Dn(s);
2000
- }, Pe = async ({
2047
+ const r = (C() ? location.protocol === "https:" : !0) ? Yn : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Gn(window.location.hostname)], ...r];
2048
+ return Jn(s);
2049
+ }, Ne = async ({
2001
2050
  name: e,
2002
2051
  value: t,
2003
2052
  expires: n,
@@ -2006,7 +2055,7 @@ const Ae = Hn(), zn = (e) => {
2006
2055
  try {
2007
2056
  if (!o)
2008
2057
  return;
2009
- const r = Gn({
2058
+ const r = Xn({
2010
2059
  name: e,
2011
2060
  value: t,
2012
2061
  expires: n
@@ -2016,120 +2065,88 @@ const Ae = Hn(), zn = (e) => {
2016
2065
  T.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
2017
2066
  }
2018
2067
  };
2019
- function Jn() {
2068
+ function Qn() {
2020
2069
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
2021
2070
  const t = Math.random() * 16 | 0;
2022
2071
  return (e == "x" ? t : t & 3 | 8).toString(16);
2023
2072
  });
2024
2073
  }
2025
- function Ne() {
2026
- return Jn().replace(/-/g, "");
2074
+ function je() {
2075
+ return Qn().replace(/-/g, "");
2027
2076
  }
2028
- const je = "builderSessionId", Yn = async ({
2077
+ const Oe = "builderSessionId", Zn = async ({
2029
2078
  canTrack: e
2030
2079
  }) => {
2031
2080
  if (!e)
2032
2081
  return;
2033
- const t = await Ve({
2034
- name: je,
2082
+ const t = await Pe({
2083
+ name: Oe,
2035
2084
  canTrack: e
2036
2085
  });
2037
2086
  if (E(t))
2038
2087
  return t;
2039
2088
  {
2040
- const n = Xn();
2041
- return Qn({
2089
+ const n = eo();
2090
+ return to({
2042
2091
  id: n,
2043
2092
  canTrack: e
2044
2093
  }), n;
2045
2094
  }
2046
- }, Xn = () => Ne(), Qn = ({
2095
+ }, eo = () => je(), to = ({
2047
2096
  id: e,
2048
2097
  canTrack: t
2049
- }) => Pe({
2050
- name: je,
2098
+ }) => Ne({
2099
+ name: Oe,
2051
2100
  value: e,
2052
2101
  canTrack: t
2053
- }), Oe = () => C() && typeof localStorage < "u" ? localStorage : void 0, Zn = ({
2102
+ }), _e = () => C() && typeof localStorage < "u" ? localStorage : void 0, no = ({
2054
2103
  key: e,
2055
2104
  canTrack: t
2056
2105
  }) => {
2057
2106
  var n;
2058
2107
  try {
2059
- return t ? (n = Oe()) == null ? void 0 : n.getItem(e) : void 0;
2108
+ return t ? (n = _e()) == null ? void 0 : n.getItem(e) : void 0;
2060
2109
  } catch (o) {
2061
2110
  console.debug("[LocalStorage] GET error: ", o);
2062
2111
  return;
2063
2112
  }
2064
- }, eo = ({
2113
+ }, oo = ({
2065
2114
  key: e,
2066
2115
  canTrack: t,
2067
2116
  value: n
2068
2117
  }) => {
2069
2118
  var o;
2070
2119
  try {
2071
- t && ((o = Oe()) == null || o.setItem(e, n));
2120
+ t && ((o = _e()) == null || o.setItem(e, n));
2072
2121
  } catch (r) {
2073
2122
  console.debug("[LocalStorage] SET error: ", r);
2074
2123
  }
2075
- }, _e = "builderVisitorId", to = ({
2124
+ }, Fe = "builderVisitorId", ro = ({
2076
2125
  canTrack: e
2077
2126
  }) => {
2078
2127
  if (!e)
2079
2128
  return;
2080
- const t = Zn({
2081
- key: _e,
2129
+ const t = no({
2130
+ key: Fe,
2082
2131
  canTrack: e
2083
2132
  });
2084
2133
  if (E(t))
2085
2134
  return t;
2086
2135
  {
2087
- const n = no();
2088
- return oo({
2136
+ const n = so();
2137
+ return io({
2089
2138
  id: n,
2090
2139
  canTrack: e
2091
2140
  }), n;
2092
2141
  }
2093
- }, no = () => Ne(), oo = ({
2142
+ }, so = () => je(), io = ({
2094
2143
  id: e,
2095
2144
  canTrack: t
2096
- }) => eo({
2097
- key: _e,
2145
+ }) => oo({
2146
+ key: Fe,
2098
2147
  value: e,
2099
2148
  canTrack: t
2100
- }), ro = () => {
2101
- if (C()) {
2102
- const e = new URL(location.href);
2103
- return e.pathname === "" && (e.pathname = "/"), e;
2104
- } else
2105
- return console.warn("Cannot get location for tracking in non-browser environment"), null;
2106
- }, so = () => typeof navigator == "object" && navigator.userAgent || "", io = () => {
2107
- const e = so(), t = {
2108
- Android() {
2109
- return e.match(/Android/i);
2110
- },
2111
- BlackBerry() {
2112
- return e.match(/BlackBerry/i);
2113
- },
2114
- iOS() {
2115
- return e.match(/iPhone|iPod/i);
2116
- },
2117
- Opera() {
2118
- return e.match(/Opera Mini/i);
2119
- },
2120
- Windows() {
2121
- return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
2122
- },
2123
- any() {
2124
- return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || B === "reactNative";
2125
- }
2126
- }, n = e.match(/Tablet|iPad/i), o = ro();
2127
- return {
2128
- urlPath: o == null ? void 0 : o.pathname,
2129
- host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
2130
- device: n ? "tablet" : t.any() ? "mobile" : "desktop"
2131
- };
2132
- }, ao = async ({
2149
+ }), ao = async ({
2133
2150
  canTrack: e
2134
2151
  }) => {
2135
2152
  if (!e)
@@ -2137,9 +2154,9 @@ const je = "builderSessionId", Yn = async ({
2137
2154
  visitorId: void 0,
2138
2155
  sessionId: void 0
2139
2156
  };
2140
- const t = await Yn({
2157
+ const t = await Zn({
2141
2158
  canTrack: e
2142
- }), n = to({
2159
+ }), n = ro({
2143
2160
  canTrack: e
2144
2161
  });
2145
2162
  return {
@@ -2163,7 +2180,7 @@ const je = "builderSessionId", Yn = async ({
2163
2180
  ...await ao({
2164
2181
  canTrack: t
2165
2182
  }),
2166
- userAttributes: io(),
2183
+ userAttributes: we(),
2167
2184
  ownerId: n
2168
2185
  }
2169
2186
  });
@@ -2189,10 +2206,10 @@ async function Y(e) {
2189
2206
  const Go = (e) => Y({
2190
2207
  ...e,
2191
2208
  canTrack: !0
2192
- }), co = "0.5.8", pe = {};
2209
+ }), co = "0.5.9", me = {};
2193
2210
  function uo(e, t) {
2194
- let n = pe[e];
2195
- if (n || (n = pe[e] = []), n.push(t), C()) {
2211
+ let n = me[e];
2212
+ if (n || (n = me[e] = []), n.push(t), C()) {
2196
2213
  const o = {
2197
2214
  type: "builder.register",
2198
2215
  data: {
@@ -2230,10 +2247,10 @@ const po = () => {
2230
2247
  }]
2231
2248
  });
2232
2249
  };
2233
- let me = !1;
2250
+ let he = !1;
2234
2251
  const mo = (e = {}) => {
2235
2252
  var t, n;
2236
- me || (me = !0, C() && ((t = window.parent) == null || t.postMessage({
2253
+ he || (he = !0, C() && ((t = window.parent) == null || t.postMessage({
2237
2254
  type: "builder.sdkInfo",
2238
2255
  data: {
2239
2256
  target: B,
@@ -2288,7 +2305,7 @@ const mo = (e = {}) => {
2288
2305
  }
2289
2306
  })));
2290
2307
  };
2291
- function he(e) {
2308
+ function fe(e) {
2292
2309
  return Math.round(e * 1e3) / 1e3;
2293
2310
  }
2294
2311
  const ho = (e, t, n = !0) => {
@@ -2305,11 +2322,11 @@ const ho = (e, t, n = !0) => {
2305
2322
  }, fo = (e) => ho(e, (t) => {
2306
2323
  const n = t.getAttribute("builder-id") || t.id;
2307
2324
  return Boolean((n == null ? void 0 : n.indexOf("builder-")) === 0);
2308
- }), fe = ({
2325
+ }), ge = ({
2309
2326
  event: e,
2310
2327
  target: t
2311
2328
  }) => {
2312
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = he(o / n.width), s = he(r / n.height);
2329
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = fe(o / n.width), s = fe(r / n.height);
2313
2330
  return {
2314
2331
  x: i,
2315
2332
  y: s
@@ -2319,11 +2336,11 @@ const ho = (e, t, n = !0) => {
2319
2336
  return {
2320
2337
  targetBuilderElement: o || void 0,
2321
2338
  metadata: {
2322
- targetOffset: t ? fe({
2339
+ targetOffset: t ? ge({
2323
2340
  event: e,
2324
2341
  target: t
2325
2342
  }) : void 0,
2326
- builderTargetOffset: n ? fe({
2343
+ builderTargetOffset: n ? ge({
2327
2344
  event: e,
2328
2345
  target: n
2329
2346
  }) : void 0,
@@ -2332,22 +2349,22 @@ const ho = (e, t, n = !0) => {
2332
2349
  };
2333
2350
  }, bo = "builder.tests", ne = (e) => `${bo}.${e}`, yo = ({
2334
2351
  contentId: e
2335
- }) => Ve({
2352
+ }) => Pe({
2336
2353
  name: ne(e),
2337
2354
  canTrack: !0
2338
2355
  }), ko = ({
2339
2356
  contentId: e
2340
- }) => Be({
2357
+ }) => Ve({
2341
2358
  name: ne(e),
2342
2359
  canTrack: !0
2343
2360
  }), So = ({
2344
2361
  contentId: e,
2345
2362
  value: t
2346
- }) => Pe({
2363
+ }) => Ne({
2347
2364
  name: ne(e),
2348
2365
  value: t,
2349
2366
  canTrack: !0
2350
- }), Fe = (e) => E(e.id) && E(e.variations) && Object.keys(e.variations).length > 0, vo = ({
2367
+ }), Ue = (e) => E(e.id) && E(e.variations) && Object.keys(e.variations).length > 0, vo = ({
2351
2368
  id: e,
2352
2369
  variations: t
2353
2370
  }) => {
@@ -2360,7 +2377,7 @@ const ho = (e, t, n = !0) => {
2360
2377
  return i;
2361
2378
  }
2362
2379
  return e;
2363
- }, Ue = (e) => {
2380
+ }, Me = (e) => {
2364
2381
  const t = vo(e);
2365
2382
  return So({
2366
2383
  contentId: e.id,
@@ -2368,7 +2385,7 @@ const ho = (e, t, n = !0) => {
2368
2385
  }).catch((n) => {
2369
2386
  T.error("could not store A/B test variation: ", n);
2370
2387
  }), t;
2371
- }, Me = ({
2388
+ }, We = ({
2372
2389
  item: e,
2373
2390
  testGroupId: t
2374
2391
  }) => {
@@ -2389,14 +2406,14 @@ const ho = (e, t, n = !0) => {
2389
2406
  return e;
2390
2407
  if (!e)
2391
2408
  return;
2392
- if (!Fe(e))
2409
+ if (!Ue(e))
2393
2410
  return e;
2394
2411
  const n = ko({
2395
2412
  contentId: e.id
2396
- }) || Ue({
2413
+ }) || Me({
2397
2414
  variations: e.variations,
2398
2415
  id: e.id
2399
- }), o = Me({
2416
+ }), o = We({
2400
2417
  item: e,
2401
2418
  testGroupId: n
2402
2419
  });
@@ -2408,14 +2425,14 @@ const ho = (e, t, n = !0) => {
2408
2425
  item: e,
2409
2426
  canTrack: t
2410
2427
  }) => {
2411
- if (!t || !Fe(e))
2428
+ if (!t || !Ue(e))
2412
2429
  return e;
2413
2430
  const o = await yo({
2414
2431
  contentId: e.id
2415
- }) || Ue({
2432
+ }) || Me({
2416
2433
  variations: e.variations,
2417
2434
  id: e.id
2418
- }), r = Me({
2435
+ }), r = We({
2419
2436
  item: e,
2420
2437
  testGroupId: o
2421
2438
  });
@@ -2436,18 +2453,18 @@ function Q(e, t = null, n = ".") {
2436
2453
  };
2437
2454
  }, {});
2438
2455
  }
2439
- const ge = "builder.", $o = "options.", To = (e) => {
2456
+ const be = "builder.", $o = "options.", To = (e) => {
2440
2457
  const t = {};
2441
2458
  return e.forEach((n, o) => {
2442
2459
  t[o] = n;
2443
2460
  }), t;
2444
- }, We = (e) => {
2461
+ }, Le = (e) => {
2445
2462
  if (!e)
2446
2463
  return {};
2447
- const t = Le(e), n = {};
2464
+ const t = Ke(e), n = {};
2448
2465
  return Object.keys(t).forEach((o) => {
2449
- if (o.startsWith(ge)) {
2450
- const r = o.replace(ge, "").replace($o, "");
2466
+ if (o.startsWith(be)) {
2467
+ const r = o.replace(be, "").replace($o, "");
2451
2468
  n[r] = t[o];
2452
2469
  }
2453
2470
  }), n;
@@ -2455,8 +2472,8 @@ const ge = "builder.", $o = "options.", To = (e) => {
2455
2472
  if (!C())
2456
2473
  return {};
2457
2474
  const e = new URLSearchParams(window.location.search);
2458
- return We(e);
2459
- }, Le = (e) => e instanceof URLSearchParams ? To(e) : e, Ro = "v3", oe = (e) => {
2475
+ return Le(e);
2476
+ }, Ke = (e) => e instanceof URLSearchParams ? To(e) : e, Ro = "v3", oe = (e) => {
2460
2477
  const {
2461
2478
  limit: t = 30,
2462
2479
  userAttributes: n,
@@ -2475,7 +2492,7 @@ const ge = "builder.", $o = "options.", To = (e) => {
2475
2492
  throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${u}'`);
2476
2493
  const h = new URL(`https://cdn.builder.io/api/${u}/content/${i}?apiKey=${s}&limit=${t}&noTraverse=${r}&includeRefs=${a}${c ? `&locale=${c}` : ""}${l ? `&enrich=${l}` : ""}`), m = {
2477
2494
  ...Io(),
2478
- ...Le(e.options || {})
2495
+ ...Ke(e.options || {})
2479
2496
  }, f = Q(m);
2480
2497
  for (const k in f)
2481
2498
  h.searchParams.set(k, String(f[k]));
@@ -2489,7 +2506,7 @@ const ge = "builder.", $o = "options.", To = (e) => {
2489
2506
  return h;
2490
2507
  }, xo = (e) => "results" in e;
2491
2508
  async function H(e) {
2492
- const t = await Ke({
2509
+ const t = await He({
2493
2510
  ...e,
2494
2511
  limit: 1
2495
2512
  });
@@ -2497,7 +2514,7 @@ async function H(e) {
2497
2514
  }
2498
2515
  const Jo = H, Eo = async (e) => {
2499
2516
  const t = oe(e);
2500
- return await (await Ae(t.href)).json();
2517
+ return await (await Be(t.href)).json();
2501
2518
  }, Ao = async (e, t, n = oe(e)) => {
2502
2519
  const o = X(e.canTrack);
2503
2520
  if (n.search.includes("preview="), !o || !(C() || B === "reactNative"))
@@ -2515,7 +2532,7 @@ const Jo = H, Eo = async (e) => {
2515
2532
  }
2516
2533
  return t;
2517
2534
  };
2518
- async function Ke(e) {
2535
+ async function He(e) {
2519
2536
  try {
2520
2537
  const t = oe(e), n = await Eo(e);
2521
2538
  return xo(n) ? Ao(e, n) : (T.error("Error fetching data. ", {
@@ -2527,7 +2544,7 @@ async function Ke(e) {
2527
2544
  return T.error("Error fetching data. ", t), null;
2528
2545
  }
2529
2546
  }
2530
- const Yo = Ke;
2547
+ const Yo = He;
2531
2548
  function Bo() {
2532
2549
  return !C() || A() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
2533
2550
  }
@@ -2582,7 +2599,7 @@ const Vo = g({
2582
2599
  this.builderContextSignal.componentInfos
2583
2600
  ).forEach((n) => {
2584
2601
  var r;
2585
- const o = Vn(n);
2602
+ const o = jn(n);
2586
2603
  (r = window.parent) == null || r.postMessage(o, "*");
2587
2604
  }), window.addEventListener(
2588
2605
  "builder:component:stateChangeListenerActivated",
@@ -2757,7 +2774,7 @@ const Vo = g({
2757
2774
  );
2758
2775
  },
2759
2776
  handleRequest({ url: e, key: t }) {
2760
- Ae(e).then((n) => n.json()).then((n) => {
2777
+ Be(e).then((n) => n.json()).then((n) => {
2761
2778
  var r, i;
2762
2779
  const o = {
2763
2780
  ...this.builderContextSignal.rootState,
@@ -2825,18 +2842,18 @@ function No(e, t, n, o, r, i) {
2825
2842
  j(e.$slots, "default")
2826
2843
  ], 16, Po)) : v("", !0);
2827
2844
  }
2828
- const jo = /* @__PURE__ */ y(Vo, [["render", No]]), He = g({
2845
+ const jo = /* @__PURE__ */ y(Vo, [["render", No]]), ze = g({
2829
2846
  render() {
2830
- return ye("script", { id: this.id, innerHTML: this.scriptStr });
2847
+ return ke("script", { id: this.id, innerHTML: this.scriptStr });
2831
2848
  },
2832
2849
  name: "inlined-script",
2833
2850
  props: ["scriptStr", "id"]
2834
- }), Oo = qe, _o = g({
2851
+ }), Oo = Ge, _o = g({
2835
2852
  name: "content-component",
2836
2853
  components: {
2837
2854
  EnableEditor: jo,
2838
- InlinedScript: He,
2839
- ContentStyles: Mn,
2855
+ InlinedScript: ze,
2856
+ ContentStyles: Kn,
2840
2857
  Blocks: te
2841
2858
  },
2842
2859
  props: [
@@ -2858,13 +2875,13 @@ const jo = /* @__PURE__ */ y(Vo, [["render", No]]), He = g({
2858
2875
  data() {
2859
2876
  var e, t;
2860
2877
  return {
2861
- scriptStr: Xt({
2878
+ scriptStr: en({
2862
2879
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
2863
2880
  contentId: (t = this.content) == null ? void 0 : t.id
2864
2881
  }),
2865
2882
  registeredComponents: [
2866
- ...de(),
2867
- ...ue,
2883
+ ...ue(),
2884
+ ...pe,
2868
2885
  ...this.customComponents || []
2869
2886
  ].reduce(
2870
2887
  (n, { component: o, ...r }) => ({
@@ -2877,12 +2894,12 @@ const jo = /* @__PURE__ */ y(Vo, [["render", No]]), He = g({
2877
2894
  {}
2878
2895
  ),
2879
2896
  builderContextSignal: {
2880
- content: Ln({
2897
+ content: zn({
2881
2898
  content: this.content,
2882
2899
  data: this.data
2883
2900
  }),
2884
2901
  localState: void 0,
2885
- rootState: Wn({
2902
+ rootState: Hn({
2886
2903
  content: this.content,
2887
2904
  data: this.data,
2888
2905
  locale: this.locale
@@ -2892,8 +2909,8 @@ const jo = /* @__PURE__ */ y(Vo, [["render", No]]), He = g({
2892
2909
  apiKey: this.apiKey,
2893
2910
  apiVersion: this.apiVersion,
2894
2911
  componentInfos: [
2895
- ...de(),
2896
- ...ue,
2912
+ ...ue(),
2913
+ ...pe,
2897
2914
  ...this.customComponents || []
2898
2915
  ].reduce(
2899
2916
  (n, { component: o, ...r }) => ({
@@ -2910,7 +2927,7 @@ const jo = /* @__PURE__ */ y(Vo, [["render", No]]), He = g({
2910
2927
  provide() {
2911
2928
  const e = this;
2912
2929
  return {
2913
- [Ie.key]: {
2930
+ [Re.key]: {
2914
2931
  registeredComponents: e.registeredComponents
2915
2932
  }
2916
2933
  };
@@ -2962,7 +2979,7 @@ function Fo(e, t, n, o, r, i) {
2962
2979
  const Uo = /* @__PURE__ */ y(_o, [["render", Fo]]), Mo = g({
2963
2980
  name: "content-variants",
2964
2981
  components: {
2965
- InlinedScript: He,
2982
+ InlinedScript: ze,
2966
2983
  InlinedStyles: K,
2967
2984
  ContentComponent: Uo
2968
2985
  },
@@ -2982,11 +2999,11 @@ const Uo = /* @__PURE__ */ y(_o, [["render", Fo]]), Mo = g({
2982
2999
  ],
2983
3000
  data() {
2984
3001
  return {
2985
- shouldRenderVariants: zt({
3002
+ shouldRenderVariants: Gt({
2986
3003
  canTrack: X(this.canTrack),
2987
3004
  content: this.content
2988
3005
  }),
2989
- getScriptString: Jt,
3006
+ getScriptString: Qt,
2990
3007
  getVariants: M,
2991
3008
  TARGET: B
2992
3009
  };
@@ -2997,7 +3014,7 @@ const Uo = /* @__PURE__ */ y(_o, [["render", Fo]]), Mo = g({
2997
3014
  computed: {
2998
3015
  variantScriptStr() {
2999
3016
  var e;
3000
- return Yt(
3017
+ return Zt(
3001
3018
  M(this.content).map((t) => ({
3002
3019
  id: t.testVariationId,
3003
3020
  testRatio: t.testRatio
@@ -3072,7 +3089,7 @@ function Wo(e, t, n, o, r, i) {
3072
3089
  }), null, 16, ["content", "classNameProp", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest"])
3073
3090
  ], 64);
3074
3091
  }
3075
- const ze = /* @__PURE__ */ y(Mo, [["render", Wo]]), Lo = async ({
3092
+ const De = /* @__PURE__ */ y(Mo, [["render", Wo]]), Lo = async ({
3076
3093
  builderContextValue: e,
3077
3094
  symbol: t
3078
3095
  }) => {
@@ -3091,7 +3108,7 @@ const ze = /* @__PURE__ */ y(Mo, [["render", Wo]]), Lo = async ({
3091
3108
  });
3092
3109
  }, Ko = g({
3093
3110
  name: "builder-symbol",
3094
- components: { ContentVariants: ze },
3111
+ components: { ContentVariants: De },
3095
3112
  props: [
3096
3113
  "js",
3097
3114
  "attributes",
@@ -3173,13 +3190,13 @@ function Ho(e, t, n, o, r, i) {
3173
3190
  }, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content"])
3174
3191
  ], 16);
3175
3192
  }
3176
- const zo = /* @__PURE__ */ y(Ko, [["render", Ho]]), Xo = te, Qo = ze, be = {};
3193
+ const zo = /* @__PURE__ */ y(Ko, [["render", Ho]]), Xo = te, Qo = De, ye = {};
3177
3194
  function Zo(e) {
3178
3195
  if (C()) {
3179
- Object.assign(be, e);
3196
+ Object.assign(ye, e);
3180
3197
  const t = {
3181
3198
  type: "builder.settingsChange",
3182
- data: be
3199
+ data: ye
3183
3200
  };
3184
3201
  parent.postMessage(t, "*");
3185
3202
  }
@@ -3196,7 +3213,7 @@ const er = async (e) => {
3196
3213
  urlPath: t
3197
3214
  } : {}
3198
3215
  },
3199
- options: We(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
3216
+ options: Le(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
3200
3217
  };
3201
3218
  return {
3202
3219
  apiKey: n.apiKey,
@@ -3205,39 +3222,41 @@ const er = async (e) => {
3205
3222
  };
3206
3223
  };
3207
3224
  export {
3225
+ er as A,
3208
3226
  G as B,
3209
- ze as C,
3210
- Pt as F,
3211
- Wt as I,
3227
+ De as C,
3228
+ qo as D,
3229
+ Ot as F,
3230
+ Ht as I,
3212
3231
  Xo as R,
3213
- Ht as S,
3232
+ qt as S,
3214
3233
  B as T,
3215
- hn as V,
3234
+ bn as V,
3216
3235
  y as _,
3217
- Te as a,
3218
- $e as b,
3219
- rt as c,
3220
- Bo as d,
3236
+ Ie as a,
3237
+ Te as b,
3238
+ at as c,
3239
+ te as d,
3221
3240
  W as e,
3222
- Vn as f,
3223
- Zo as g,
3224
- Ke as h,
3225
- A as i,
3226
- H as j,
3227
- Yo as k,
3241
+ Qo as f,
3242
+ nt as g,
3243
+ Qe as h,
3244
+ Pt as i,
3245
+ zo as j,
3246
+ pn as k,
3228
3247
  T as l,
3229
- Jo as m,
3230
- Ao as n,
3231
- We as o,
3232
- er as p,
3233
- te as q,
3248
+ A as m,
3249
+ Bo as n,
3250
+ jn as o,
3251
+ Zo as p,
3252
+ He as q,
3234
3253
  uo as r,
3235
- tt as s,
3236
- Go as t,
3237
- Qo as u,
3238
- Xe as v,
3239
- At as w,
3240
- zo as x,
3241
- cn as y,
3242
- qo as z
3254
+ rt as s,
3255
+ H as t,
3256
+ Yo as u,
3257
+ Jo as v,
3258
+ Oo as w,
3259
+ Ao as x,
3260
+ Le as y,
3261
+ Go as z
3243
3262
  };