@builder.io/sdk-vue 0.11.2 → 0.11.3

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 (131) hide show
  1. package/README.md +15 -12
  2. package/lib/browser/block-styles.4dd5487a.js +70 -0
  3. package/lib/browser/block-styles.6d4042d1.cjs +1 -0
  4. package/lib/browser/block-wrapper.56a0b862.js +56 -0
  5. package/lib/browser/block-wrapper.d76c58a5.cjs +1 -0
  6. package/lib/browser/blocks/button/button.types.d.ts +6 -0
  7. package/lib/browser/blocks/button/button.vue.d.ts +0 -9
  8. package/lib/browser/blocks/columns/columns.types.d.ts +15 -0
  9. package/lib/browser/blocks/columns/columns.vue.d.ts +0 -14
  10. package/lib/browser/blocks/fragment/fragment.types.d.ts +5 -0
  11. package/lib/browser/blocks/fragment/fragment.vue.d.ts +0 -5
  12. package/lib/browser/blocks/image/image.types.d.ts +19 -0
  13. package/lib/browser/blocks/image/image.vue.d.ts +0 -19
  14. package/lib/browser/blocks/section/section.types.d.ts +6 -0
  15. package/lib/browser/blocks/section/section.vue.d.ts +0 -9
  16. package/lib/browser/blocks/symbol/symbol.types.d.ts +18 -0
  17. package/lib/browser/blocks/symbol/symbol.vue.d.ts +0 -23
  18. package/lib/browser/blocks/text/text.types.d.ts +3 -0
  19. package/lib/browser/blocks/text/text.vue.d.ts +0 -3
  20. package/lib/browser/blocks/video/video.types.d.ts +21 -0
  21. package/lib/browser/blocks/video/video.vue.d.ts +0 -21
  22. package/lib/{edge/component-ref.b20baf4e.js → browser/component-ref.6b764356.js} +40 -47
  23. package/lib/browser/component-ref.c01f28a8.cjs +1 -0
  24. package/lib/browser/components/blocks/blocks.types.d.ts +6 -0
  25. package/lib/browser/components/blocks/blocks.vue.d.ts +0 -6
  26. package/lib/browser/components/content-variants/content-variants.types.d.ts +30 -1
  27. package/lib/browser/constants/sdk-version.d.ts +1 -1
  28. package/lib/browser/css.bee71b93.js +22 -0
  29. package/lib/browser/css.c905e549.cjs +6 -0
  30. package/lib/browser/functions/get-content/index.d.ts +1 -1
  31. package/lib/browser/functions/get-content/types.d.ts +2 -2
  32. package/lib/browser/get-block-actions.6c569f39.cjs +1 -0
  33. package/lib/{node/get-block-actions.93573479.js → browser/get-block-actions.ea82379d.js} +13 -11
  34. package/lib/browser/{index.523c82d0.js → index.cf8f3cf0.js} +688 -775
  35. package/lib/browser/index.cjs +1 -1
  36. package/lib/browser/index.e420a426.cjs +156 -0
  37. package/lib/browser/index.js +8 -8
  38. package/lib/browser/{repeated-block.a0ed3abf.cjs → repeated-block.0e1c5e05.cjs} +1 -1
  39. package/lib/browser/{repeated-block.b8d63262.js → repeated-block.a2b6e71d.js} +2 -2
  40. package/lib/browser/server-index.d.ts +10 -1
  41. package/lib/edge/block-styles.6941072a.cjs +1 -0
  42. package/lib/edge/block-styles.c251cc50.js +69 -0
  43. package/lib/{browser/block-wrapper.166db2f3.js → edge/block-wrapper.17244a32.js} +3 -3
  44. package/lib/edge/block-wrapper.a4b57a19.cjs +1 -0
  45. package/lib/edge/blocks/button/button.types.d.ts +6 -0
  46. package/lib/edge/blocks/button/button.vue.d.ts +0 -9
  47. package/lib/edge/blocks/columns/columns.types.d.ts +15 -0
  48. package/lib/edge/blocks/columns/columns.vue.d.ts +0 -14
  49. package/lib/edge/blocks/fragment/fragment.types.d.ts +5 -0
  50. package/lib/edge/blocks/fragment/fragment.vue.d.ts +0 -5
  51. package/lib/edge/blocks/image/image.types.d.ts +19 -0
  52. package/lib/edge/blocks/image/image.vue.d.ts +0 -19
  53. package/lib/edge/blocks/section/section.types.d.ts +6 -0
  54. package/lib/edge/blocks/section/section.vue.d.ts +0 -9
  55. package/lib/edge/blocks/symbol/symbol.types.d.ts +18 -0
  56. package/lib/edge/blocks/symbol/symbol.vue.d.ts +0 -23
  57. package/lib/edge/blocks/text/text.types.d.ts +3 -0
  58. package/lib/edge/blocks/text/text.vue.d.ts +0 -3
  59. package/lib/edge/blocks/video/video.types.d.ts +21 -0
  60. package/lib/edge/blocks/video/video.vue.d.ts +0 -21
  61. package/lib/{browser/component-ref.10189e21.js → edge/component-ref.a9555536.js} +40 -49
  62. package/lib/edge/component-ref.c6ef9f36.cjs +1 -0
  63. package/lib/edge/components/blocks/blocks.types.d.ts +6 -0
  64. package/lib/edge/components/blocks/blocks.vue.d.ts +0 -6
  65. package/lib/edge/components/content-variants/content-variants.types.d.ts +30 -1
  66. package/lib/edge/constants/sdk-version.d.ts +1 -1
  67. package/lib/edge/css.a1099f86.cjs +6 -0
  68. package/lib/edge/css.d3b9ec3d.js +21 -0
  69. package/lib/edge/functions/get-content/index.d.ts +1 -1
  70. package/lib/edge/functions/get-content/types.d.ts +2 -2
  71. package/lib/edge/get-block-actions.c862ea25.cjs +1 -0
  72. package/lib/{browser/get-block-actions.cf32df43.js → edge/get-block-actions.f0aac0c8.js} +4 -4
  73. package/lib/edge/{index.0db08bf0.cjs → index.6014202a.cjs} +26 -31
  74. package/lib/edge/{index.75e7a27c.js → index.6b327d2e.js} +1287 -1374
  75. package/lib/edge/index.cjs +1 -1
  76. package/lib/edge/index.js +7 -7
  77. package/lib/edge/{repeated-block.d5c52934.js → repeated-block.2b8fbf14.js} +2 -2
  78. package/lib/edge/{repeated-block.c831f250.cjs → repeated-block.409149dc.cjs} +1 -1
  79. package/lib/edge/server-index.d.ts +10 -1
  80. package/lib/node/block-styles.b4e350c6.js +70 -0
  81. package/lib/node/block-styles.daaf5082.cjs +1 -0
  82. package/lib/node/block-wrapper.35fb80b6.js +56 -0
  83. package/lib/node/block-wrapper.7ec7b19a.cjs +1 -0
  84. package/lib/node/blocks/button/button.types.d.ts +6 -0
  85. package/lib/node/blocks/button/button.vue.d.ts +0 -9
  86. package/lib/node/blocks/columns/columns.types.d.ts +15 -0
  87. package/lib/node/blocks/columns/columns.vue.d.ts +0 -14
  88. package/lib/node/blocks/fragment/fragment.types.d.ts +5 -0
  89. package/lib/node/blocks/fragment/fragment.vue.d.ts +0 -5
  90. package/lib/node/blocks/image/image.types.d.ts +19 -0
  91. package/lib/node/blocks/image/image.vue.d.ts +0 -19
  92. package/lib/node/blocks/section/section.types.d.ts +6 -0
  93. package/lib/node/blocks/section/section.vue.d.ts +0 -9
  94. package/lib/node/blocks/symbol/symbol.types.d.ts +18 -0
  95. package/lib/node/blocks/symbol/symbol.vue.d.ts +0 -23
  96. package/lib/node/blocks/text/text.types.d.ts +3 -0
  97. package/lib/node/blocks/text/text.vue.d.ts +0 -3
  98. package/lib/node/blocks/video/video.types.d.ts +21 -0
  99. package/lib/node/blocks/video/video.vue.d.ts +0 -21
  100. package/lib/node/component-ref.04b89158.cjs +1 -0
  101. package/lib/node/{component-ref.a61e19d0.js → component-ref.2211624f.js} +40 -48
  102. package/lib/node/components/blocks/blocks.types.d.ts +6 -0
  103. package/lib/node/components/blocks/blocks.vue.d.ts +0 -6
  104. package/lib/node/components/content-variants/content-variants.types.d.ts +30 -1
  105. package/lib/node/constants/sdk-version.d.ts +1 -1
  106. package/lib/node/css.92fd0ea1.cjs +6 -0
  107. package/lib/node/css.9a474d8f.js +21 -0
  108. package/lib/node/functions/get-content/index.d.ts +1 -1
  109. package/lib/node/functions/get-content/types.d.ts +2 -2
  110. package/lib/node/get-block-actions.b15d24e5.cjs +1 -0
  111. package/lib/{edge/get-block-actions.01191962.js → node/get-block-actions.f7b1ef76.js} +10 -9
  112. package/lib/node/{index.e41a8ad1.js → index.29fcda33.js} +277 -364
  113. package/lib/node/{index.c2ecfe73.cjs → index.c9e2c835.cjs} +6 -11
  114. package/lib/node/index.cjs +1 -1
  115. package/lib/node/index.js +8 -8
  116. package/lib/node/{repeated-block.088dd1eb.cjs → repeated-block.bf2609f9.cjs} +1 -1
  117. package/lib/node/{repeated-block.7c2934b2.js → repeated-block.f9ea4988.js} +2 -2
  118. package/lib/node/server-index.d.ts +10 -1
  119. package/package.json +47 -1
  120. package/lib/browser/block-wrapper.c7230ad9.cjs +0 -1
  121. package/lib/browser/component-ref.1ce72666.cjs +0 -1
  122. package/lib/browser/get-block-actions.8886d821.cjs +0 -1
  123. package/lib/browser/index.12ba04ce.cjs +0 -161
  124. package/lib/edge/block-wrapper.15cada1a.cjs +0 -1
  125. package/lib/edge/block-wrapper.ca1e4088.js +0 -54
  126. package/lib/edge/component-ref.8713bd04.cjs +0 -1
  127. package/lib/edge/get-block-actions.3e82e320.cjs +0 -1
  128. package/lib/node/block-wrapper.225409d6.cjs +0 -1
  129. package/lib/node/block-wrapper.90336157.js +0 -55
  130. package/lib/node/component-ref.2e739af9.cjs +0 -1
  131. package/lib/node/get-block-actions.f91cf957.cjs +0 -1
@@ -1,20 +1,20 @@
1
1
  import "./style.css";
2
- import { defineComponent as b, openBlock as c, createElementBlock as p, mergeProps as w, toHandlers as N, toDisplayString as le, defineAsyncComponent as M, resolveComponent as k, Fragment as C, createBlock as y, createCommentVNode as f, renderList as B, withCtx as U, createVNode as W, h as Se, resolveDynamicComponent as Ce, renderSlot as x, createElementVNode as X, normalizeStyle as Z, normalizeClass as we, markRaw as Ye } from "vue";
3
- function q(e = {}, t, n) {
2
+ import { defineComponent as f, openBlock as d, createElementBlock as p, mergeProps as C, toHandlers as O, toDisplayString as se, defineAsyncComponent as M, resolveComponent as k, Fragment as $, createVNode as P, createBlock as y, createCommentVNode as g, renderList as N, withCtx as U, resolveDynamicComponent as ke, renderSlot as x, h as ye, createElementVNode as J, normalizeStyle as Y, normalizeClass as ve, markRaw as ze } from "vue";
3
+ function z(e = {}, t, n) {
4
4
  const o = {};
5
5
  for (const r in e) {
6
6
  if (!e[r] || n && !r.startsWith(t))
7
7
  continue;
8
- const s = n ? r.replace(t, "") : r;
9
- o[s] = e[r];
8
+ const i = n ? r.replace(t, "") : r;
9
+ o[i] = e[r];
10
10
  }
11
11
  return o;
12
12
  }
13
- const Qe = b({
13
+ const qe = f({
14
14
  name: "builder-button",
15
15
  props: ["attributes", "text", "link", "openLinkInNewTab"],
16
16
  data() {
17
- return { filterAttrs: q };
17
+ return { filterAttrs: z };
18
18
  },
19
19
  methods: {
20
20
  _classStringToObject(e) {
@@ -28,25 +28,25 @@ const Qe = b({
28
28
  }
29
29
  }
30
30
  });
31
- const g = (e, t) => {
31
+ const b = (e, t) => {
32
32
  const n = e.__vccOpts || e;
33
33
  for (const [o, r] of t)
34
34
  n[o] = r;
35
35
  return n;
36
- }, Xe = ["href", "target"];
37
- function Ze(e, t, n, o, r, s) {
38
- return e.link ? (c(), p("a", w({
36
+ }, Ge = ["href", "target"];
37
+ function Je(e, t, n, o, r, i) {
38
+ return e.link ? (d(), p("a", C({
39
39
  key: 0,
40
40
  href: e.link,
41
41
  target: e.openLinkInNewTab ? "_blank" : void 0,
42
42
  role: "button"
43
- }, e.filterAttrs(e.attributes, "v-on:", !1), N(e.filterAttrs(e.attributes, "v-on:", !0), !0)), le(e.text), 17, Xe)) : (c(), p("button", w({
43
+ }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), se(e.text), 17, Ge)) : (d(), p("button", C({
44
44
  key: 1,
45
45
  style: e.attributes.style,
46
46
  class: e._classStringToObject(e.attributes.class + " button-21azgz5avex")
47
- }, e.filterAttrs(e.attributes, "v-on:", !1), N(e.filterAttrs(e.attributes, "v-on:", !0), !0)), le(e.text), 17));
47
+ }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), se(e.text), 17));
48
48
  }
49
- const et = /* @__PURE__ */ g(Qe, [["render", Ze], ["__scopeId", "data-v-becdf225"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/button/button.vue"]]), tt = Symbol(), ee = {
49
+ const Ye = /* @__PURE__ */ b(qe, [["render", Je], ["__scopeId", "data-v-becdf225"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/button/button.vue"]]), Qe = Symbol(), Q = {
50
50
  Builder: {
51
51
  content: null,
52
52
  context: {},
@@ -61,12 +61,12 @@ const et = /* @__PURE__ */ g(Qe, [["render", Ze], ["__scopeId", "data-v-becdf225
61
61
  BlocksWrapper: "div",
62
62
  BlocksWrapperProps: {}
63
63
  },
64
- key: tt
65
- }, nt = Symbol(), Ie = {
64
+ key: Qe
65
+ }, Xe = Symbol(), Se = {
66
66
  Components: { registeredComponents: {} },
67
- key: nt
67
+ key: Xe
68
68
  };
69
- function ot(e) {
69
+ function Ze(e) {
70
70
  var t;
71
71
  return {
72
72
  ...(t = e.component) == null ? void 0 : t.options,
@@ -74,22 +74,7 @@ function ot(e) {
74
74
  builderBlock: e
75
75
  };
76
76
  }
77
- const R = "vue", rt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), P = (e) => e != null, st = (e) => Object.entries(e).map(([n, o]) => {
78
- if (typeof o == "string")
79
- return `${rt(n)}: ${o};`;
80
- }).filter(P), it = (e) => st(e).join(`
81
- `), Y = ({
82
- mediaQuery: e,
83
- className: t,
84
- styles: n
85
- }) => {
86
- const o = `.${t} {
87
- ${it(n)}
88
- }`;
89
- return e ? `${e} {
90
- ${o}
91
- }` : o;
92
- }, L = "[Builder.io]: ", $ = {
77
+ const T = "vue", A = (e) => e != null, L = "[Builder.io]: ", I = {
93
78
  log: (...e) => console.log(L, ...e),
94
79
  error: (...e) => console.error(L, ...e),
95
80
  warn: (...e) => console.warn(L, ...e),
@@ -98,20 +83,20 @@ const R = "vue", rt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").
98
83
  function v() {
99
84
  return typeof window < "u" && typeof document < "u";
100
85
  }
101
- function at() {
86
+ function et() {
102
87
  return v() && window.self !== window.top;
103
88
  }
104
- function T() {
105
- return at() && (R === "reactNative" || window.location.search.indexOf("builder.frameEditing=") !== -1);
89
+ function R() {
90
+ return et() && (T === "reactNative" || window.location.search.indexOf("builder.frameEditing=") !== -1);
106
91
  }
107
- const lt = () => {
92
+ const tt = () => {
108
93
  if (v()) {
109
94
  const e = new URL(location.href);
110
95
  return e.pathname === "" && (e.pathname = "/"), e;
111
96
  } else
112
97
  return console.warn("Cannot get location for tracking in non-browser environment"), null;
113
- }, ct = () => typeof navigator == "object" && navigator.userAgent || "", $e = () => {
114
- const e = ct(), t = {
98
+ }, nt = () => typeof navigator == "object" && navigator.userAgent || "", Ce = () => {
99
+ const e = nt(), t = {
115
100
  Android() {
116
101
  return e.match(/Android/i);
117
102
  },
@@ -128,15 +113,15 @@ const lt = () => {
128
113
  return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
129
114
  },
130
115
  any() {
131
- return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || R === "reactNative";
116
+ return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || T === "reactNative";
132
117
  }
133
- }, n = e.match(/Tablet|iPad/i), o = lt();
118
+ }, n = e.match(/Tablet|iPad/i), o = tt();
134
119
  return {
135
120
  urlPath: o == null ? void 0 : o.pathname,
136
121
  host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
137
122
  device: n ? "tablet" : t.any() ? "mobile" : "desktop"
138
123
  };
139
- }, dt = ({
124
+ }, ot = ({
140
125
  builder: e,
141
126
  context: t,
142
127
  event: n,
@@ -147,83 +132,83 @@ const lt = () => {
147
132
  builder: e,
148
133
  context: t,
149
134
  event: n
150
- }), ut = () => ({
151
- isEditing: T(),
135
+ }), rt = () => ({
136
+ isEditing: R(),
152
137
  isBrowser: v(),
153
138
  isServer: !v(),
154
- getUserAttributes: () => $e()
155
- }), pt = (e, {
139
+ getUserAttributes: () => Ce()
140
+ }), it = (e, {
156
141
  isExpression: t = !0
157
- }) => t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, ce = ({
142
+ }) => t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, ae = ({
158
143
  code: e,
159
144
  builder: t,
160
145
  context: n,
161
146
  event: o,
162
147
  localState: r,
163
- rootSetState: s,
164
- rootState: i
148
+ rootSetState: i,
149
+ rootState: s
165
150
  }) => {
166
- const a = dt({
151
+ const a = ot({
167
152
  builder: t,
168
153
  context: n,
169
154
  event: o,
170
- state: mt(i, r, s)
155
+ state: st(s, r, i)
171
156
  });
172
157
  return new Function(...a.map(([l]) => l), e)(...a.map(([, l]) => l));
173
158
  };
174
- function mt(e, t, n) {
159
+ function st(e, t, n) {
175
160
  if (e === t)
176
161
  throw new Error("rootState === localState");
177
162
  return new Proxy(e, {
178
163
  get: (o, r) => t && r in t ? t[r] : e[r],
179
- set: (o, r, s) => {
164
+ set: (o, r, i) => {
180
165
  if (t && r in t)
181
166
  throw new Error("Writing to local state is not allowed as it is read-only.");
182
- return e[r] = s, n == null || n(e), !0;
167
+ return e[r] = i, n == null || n(e), !0;
183
168
  }
184
169
  });
185
170
  }
186
- const ht = (e) => (v(), ce(e));
187
- function D({
171
+ const at = (e) => (v(), ae(e));
172
+ function K({
188
173
  code: e,
189
174
  context: t,
190
175
  localState: n,
191
176
  rootState: o,
192
177
  rootSetState: r,
193
- event: s,
194
- isExpression: i = !0
178
+ event: i,
179
+ isExpression: s = !0
195
180
  }) {
196
181
  if (e === "") {
197
- $.warn("Skipping evaluation of empty code block.");
182
+ I.warn("Skipping evaluation of empty code block.");
198
183
  return;
199
184
  }
200
185
  const a = {
201
- code: pt(e, {
202
- isExpression: i
186
+ code: it(e, {
187
+ isExpression: s
203
188
  }),
204
- builder: ut(),
189
+ builder: rt(),
205
190
  context: t,
206
- event: s,
191
+ event: i,
207
192
  rootSetState: r,
208
193
  rootState: o,
209
194
  localState: n
210
195
  };
211
196
  try {
212
- return ht(a);
197
+ return at(a);
213
198
  } catch (l) {
214
- $.error("Failed code evaluation: " + l.message, {
199
+ I.error("Failed code evaluation: " + l.message, {
215
200
  code: e
216
201
  });
217
202
  return;
218
203
  }
219
204
  }
220
- const F = (e) => JSON.parse(JSON.stringify(e)), ft = (e, t, n) => {
205
+ const F = (e) => JSON.parse(JSON.stringify(e)), lt = (e, t, n) => {
221
206
  if (Object(e) !== e)
222
207
  return e;
223
208
  const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
224
- return o.slice(0, -1).reduce((r, s, i) => Object(r[s]) === r[s] ? r[s] : r[s] = Math.abs(Number(o[i + 1])) >> 0 === +o[i + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
209
+ 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;
225
210
  };
226
- const bt = ({
211
+ const ct = ({
227
212
  block: e,
228
213
  context: t,
229
214
  localState: n,
@@ -232,58 +217,58 @@ const bt = ({
232
217
  }) => {
233
218
  if (!e.bindings)
234
219
  return e;
235
- const s = F(e), i = {
236
- ...s,
220
+ const i = F(e), s = {
221
+ ...i,
237
222
  properties: {
238
- ...s.properties
223
+ ...i.properties
239
224
  },
240
225
  actions: {
241
- ...s.actions
226
+ ...i.actions
242
227
  }
243
228
  };
244
229
  for (const a in e.bindings) {
245
- const l = e.bindings[a], d = D({
230
+ const l = e.bindings[a], c = K({
246
231
  code: l,
247
232
  localState: n,
248
233
  rootState: o,
249
234
  rootSetState: r,
250
235
  context: t
251
236
  });
252
- ft(i, a, d);
237
+ lt(s, a, c);
253
238
  }
254
- return i;
239
+ return s;
255
240
  };
256
- function z({
241
+ function we({
257
242
  block: e,
258
243
  context: t,
259
244
  shouldEvaluateBindings: n,
260
245
  localState: o,
261
246
  rootState: r,
262
- rootSetState: s
247
+ rootSetState: i
263
248
  }) {
264
- const i = e;
265
- return n ? bt({
266
- block: i,
249
+ const s = e;
250
+ return n ? ct({
251
+ block: s,
267
252
  localState: o,
268
253
  rootState: r,
269
- rootSetState: s,
254
+ rootSetState: i,
270
255
  context: t
271
- }) : i;
256
+ }) : s;
272
257
  }
273
- const gt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], kt = (e) => typeof e == "string" && gt.includes(e.toLowerCase()), yt = ({
258
+ 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 = ({
274
259
  block: e,
275
260
  context: t,
276
261
  registeredComponents: n
277
262
  }) => {
278
- var s;
279
- const o = (s = z({
263
+ var i;
264
+ const o = (i = we({
280
265
  block: e,
281
266
  localState: t.localState,
282
267
  rootState: t.rootState,
283
268
  rootSetState: t.rootSetState,
284
269
  context: t.context,
285
270
  shouldEvaluateBindings: !1
286
- }).component) == null ? void 0 : s.name;
271
+ }).component) == null ? void 0 : i.name;
287
272
  if (!o)
288
273
  return null;
289
274
  const r = n[o];
@@ -292,7 +277,7 @@ const gt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
292
277
  console.warn(`
293
278
  Could not find a registered component named "${o}".
294
279
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
295
- }, vt = ({
280
+ }, mt = ({
296
281
  block: e,
297
282
  context: t
298
283
  }) => {
@@ -302,7 +287,7 @@ const gt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
302
287
  } = e;
303
288
  if (!(n != null && n.collection))
304
289
  return;
305
- const r = D({
290
+ const r = K({
306
291
  code: n.collection,
307
292
  localState: t.localState,
308
293
  rootState: t.rootState,
@@ -311,69 +296,69 @@ const gt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
311
296
  });
312
297
  if (!Array.isArray(r))
313
298
  return;
314
- const s = n.collection.split(".").pop(), i = n.itemName || (s ? s + "Item" : "item");
315
- return r.map((l, d) => ({
299
+ const i = n.collection.split(".").pop(), s = n.itemName || (i ? i + "Item" : "item");
300
+ return r.map((l, c) => ({
316
301
  context: {
317
302
  ...t,
318
303
  localState: {
319
304
  ...t.localState,
320
- $index: d,
305
+ $index: c,
321
306
  $item: l,
322
- [i]: l,
323
- [`$${i}Index`]: d
307
+ [s]: l,
308
+ [`$${s}Index`]: c
324
309
  }
325
310
  },
326
311
  block: o
327
312
  }));
328
- }, St = () => Promise.resolve().then(() => xt).then((e) => e.default).catch((e) => {
313
+ }, ht = () => import("./block-styles.4dd5487a.js").then((e) => e.default).catch((e) => {
329
314
  throw console.error(
330
315
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
331
316
  e
332
317
  ), e;
333
- }), Ct = () => import("./block-wrapper.166db2f3.js").then((e) => e.default).catch((e) => {
318
+ }), ft = () => import("./block-wrapper.56a0b862.js").then((e) => e.default).catch((e) => {
334
319
  throw console.error(
335
320
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
336
321
  e
337
322
  ), e;
338
- }), wt = () => import("./component-ref.10189e21.js").then((e) => e.default).catch((e) => {
323
+ }), bt = () => import("./component-ref.6b764356.js").then((e) => e.default).catch((e) => {
339
324
  throw console.error(
340
325
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
341
326
  e
342
327
  ), e;
343
- }), It = () => import("./repeated-block.b8d63262.js").then((e) => e.default).catch((e) => {
328
+ }), gt = () => import("./repeated-block.a2b6e71d.js").then((e) => e.default).catch((e) => {
344
329
  throw console.error(
345
330
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
346
331
  e
347
332
  ), e;
348
- }), $t = b({
333
+ }), kt = f({
349
334
  name: "block",
350
335
  components: {
351
- ComponentRef: M(wt),
352
- BlockWrapper: M(Ct),
353
- RepeatedBlock: M(It),
354
- BlockStyles: M(St)
336
+ BlockStyles: M(ht),
337
+ ComponentRef: M(bt),
338
+ BlockWrapper: M(ft),
339
+ RepeatedBlock: M(gt)
355
340
  },
356
341
  props: ["block", "context", "registeredComponents"],
357
342
  data() {
358
- return { childrenContext: this.context, isEmptyHtmlElement: kt };
343
+ return { childrenContext: this.context, isEmptyHtmlElement: ut };
359
344
  },
360
345
  computed: {
361
346
  blockComponent() {
362
- return yt({
347
+ return pt({
363
348
  block: this.block,
364
349
  context: this.context,
365
350
  registeredComponents: this.registeredComponents
366
351
  });
367
352
  },
368
353
  repeatItem() {
369
- return vt({
354
+ return mt({
370
355
  block: this.block,
371
356
  context: this.context
372
357
  });
373
358
  },
374
359
  processedBlock() {
375
360
  var e;
376
- return (e = this.block.repeat) != null && e.collection ? this.block : z({
361
+ return (e = this.block.repeat) != null && e.collection ? this.block : we({
377
362
  block: this.block,
378
363
  localState: this.context.localState,
379
364
  rootState: this.context.rootState,
@@ -397,12 +382,12 @@ const gt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
397
382
  return !((t = this.blockComponent) != null && t.component) && !this.repeatItem ? (n = this.processedBlock.children) != null ? n : [] : [];
398
383
  },
399
384
  componentRefProps() {
400
- var e, t, n, o, r, s;
385
+ var e, t, n, o, r, i;
401
386
  return {
402
387
  blockChildren: (e = this.processedBlock.children) != null ? e : [],
403
388
  componentRef: (t = this.blockComponent) == null ? void 0 : t.component,
404
389
  componentOptions: {
405
- ...ot(this.processedBlock),
390
+ ...Ze(this.processedBlock),
406
391
  builderContext: this.context,
407
392
  ...((n = this.blockComponent) == null ? void 0 : n.name) === "Symbol" || ((o = this.blockComponent) == null ? void 0 : o.name) === "Columns" ? {
408
393
  builderComponents: this.registeredComponents
@@ -412,16 +397,20 @@ const gt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
412
397
  registeredComponents: this.registeredComponents,
413
398
  builderBlock: this.processedBlock,
414
399
  includeBlockProps: ((r = this.blockComponent) == null ? void 0 : r.noWrap) === !0,
415
- isInteractive: !((s = this.blockComponent) != null && s.isRSC)
400
+ isInteractive: !((i = this.blockComponent) != null && i.isRSC)
416
401
  };
417
402
  }
418
403
  }
419
404
  });
420
- function Rt(e, t, n, o, r, s) {
405
+ function yt(e, t, n, o, r, i) {
421
406
  var m;
422
- const i = k("block-wrapper"), a = k("repeated-block"), l = k("component-ref"), d = k("block", !0), u = k("block-styles");
423
- return e.canShowBlock ? (c(), p(C, { key: 0 }, [
424
- (m = e.blockComponent) != null && m.noWrap ? (c(), y(l, {
407
+ const s = k("block-styles"), a = k("block-wrapper"), l = k("repeated-block"), c = k("component-ref"), u = k("block", !0);
408
+ return e.canShowBlock ? (d(), p($, { key: 0 }, [
409
+ P(s, {
410
+ block: e.block,
411
+ context: e.context
412
+ }, null, 8, ["block", "context"]),
413
+ (m = e.blockComponent) != null && m.noWrap ? (d(), y(c, {
425
414
  key: 1,
426
415
  componentRef: e.componentRefProps.componentRef,
427
416
  componentOptions: e.componentRefProps.componentOptions,
@@ -431,21 +420,21 @@ function Rt(e, t, n, o, r, s) {
431
420
  builderBlock: e.componentRefProps.builderBlock,
432
421
  includeBlockProps: e.componentRefProps.includeBlockProps,
433
422
  isInteractive: e.componentRefProps.isInteractive
434
- }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"])) : (c(), p(C, { key: 0 }, [
435
- e.isEmptyHtmlElement(e.Tag) ? (c(), y(i, {
423
+ }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"])) : (d(), p($, { key: 0 }, [
424
+ e.isEmptyHtmlElement(e.Tag) ? (d(), y(a, {
436
425
  key: 0,
437
426
  Wrapper: e.Tag,
438
427
  block: e.processedBlock,
439
428
  context: e.context,
440
429
  hasChildren: !1
441
- }, null, 8, ["Wrapper", "block", "context"])) : f("v-if", !0),
442
- !e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (c(!0), p(C, { key: 1 }, B(e.repeatItem, (h, S) => (c(), y(a, {
430
+ }, null, 8, ["Wrapper", "block", "context"])) : g("v-if", !0),
431
+ !e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (d(!0), p($, { key: 1 }, N(e.repeatItem, (h, S) => (d(), y(l, {
443
432
  key: S,
444
433
  repeatContext: h.context,
445
434
  block: h.block,
446
435
  registeredComponents: e.registeredComponents
447
- }, null, 8, ["repeatContext", "block", "registeredComponents"]))), 128)) : f("v-if", !0),
448
- !e.isEmptyHtmlElement(e.Tag) && !e.repeatItem ? (c(), y(i, {
436
+ }, null, 8, ["repeatContext", "block", "registeredComponents"]))), 128)) : g("v-if", !0),
437
+ !e.isEmptyHtmlElement(e.Tag) && !e.repeatItem ? (d(), y(a, {
449
438
  key: 2,
450
439
  Wrapper: e.Tag,
451
440
  block: e.processedBlock,
@@ -453,7 +442,7 @@ function Rt(e, t, n, o, r, s) {
453
442
  hasChildren: !0
454
443
  }, {
455
444
  default: U(() => [
456
- W(l, {
445
+ P(c, {
457
446
  componentRef: e.componentRefProps.componentRef,
458
447
  componentOptions: e.componentRefProps.componentOptions,
459
448
  blockChildren: e.componentRefProps.blockChildren,
@@ -463,139 +452,22 @@ function Rt(e, t, n, o, r, s) {
463
452
  includeBlockProps: e.componentRefProps.includeBlockProps,
464
453
  isInteractive: e.componentRefProps.isInteractive
465
454
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"]),
466
- (c(!0), p(C, null, B(e.childrenWithoutParentComponent, (h, S) => (c(), y(d, {
467
- key: "block-" + h.id,
455
+ (d(!0), p($, null, N(e.childrenWithoutParentComponent, (h, S) => (d(), y(u, {
456
+ key: h.id,
468
457
  block: h,
469
458
  context: e.childrenContext,
470
459
  registeredComponents: e.registeredComponents
471
- }, null, 8, ["block", "context", "registeredComponents"]))), 128)),
472
- (c(!0), p(C, null, B(e.childrenWithoutParentComponent, (h, S) => (c(), y(u, {
473
- key: "block-style-" + h.id,
474
- block: h,
475
- context: e.childrenContext
476
- }, null, 8, ["block", "context"]))), 128))
460
+ }, null, 8, ["block", "context", "registeredComponents"]))), 128))
477
461
  ]),
478
462
  _: 1
479
- }, 8, ["Wrapper", "block", "context"])) : f("v-if", !0)
463
+ }, 8, ["Wrapper", "block", "context"])) : g("v-if", !0)
480
464
  ], 64))
481
- ], 64)) : f("v-if", !0);
482
- }
483
- const Re = /* @__PURE__ */ g($t, [["render", Rt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/block.vue"]]), or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
484
- __proto__: null,
485
- default: Re
486
- }, Symbol.toStringTag, { value: "Module" })), Te = {
487
- small: {
488
- min: 320,
489
- default: 321,
490
- max: 640
491
- },
492
- medium: {
493
- min: 641,
494
- default: 642,
495
- max: 991
496
- },
497
- large: {
498
- min: 990,
499
- default: 991,
500
- max: 1200
501
- }
502
- }, de = (e, t = Te) => `@media (max-width: ${t[e].max}px)`, Pe = ({
503
- small: e,
504
- medium: t
505
- }) => {
506
- const n = F(Te);
507
- if (!e || !t)
508
- return n;
509
- const o = Math.floor(e / 2);
510
- n.small = {
511
- max: e,
512
- min: o,
513
- default: o + 1
514
- };
515
- const r = n.small.max + 1;
516
- n.medium = {
517
- max: t,
518
- min: r,
519
- default: r + 1
520
- };
521
- const s = n.medium.max + 1;
522
- return n.large = {
523
- max: 2e3,
524
- min: s,
525
- default: s + 1
526
- }, n;
527
- }, Tt = b({
528
- render() {
529
- return Se("style", { id: this.id, innerHTML: this.styles });
530
- },
531
- name: "inlined-styles",
532
- props: ["styles", "id"]
533
- }), G = /* @__PURE__ */ g(Tt, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/inlined-styles.vue"]]), Pt = b({
534
- name: "block-styles",
535
- components: { InlinedStyles: G },
536
- props: ["block", "context"],
537
- data() {
538
- return { TARGET: R };
539
- },
540
- computed: {
541
- canShowBlock() {
542
- const e = z({
543
- block: this.block,
544
- localState: this.context.localState,
545
- rootState: this.context.rootState,
546
- rootSetState: this.context.rootSetState,
547
- context: this.context.context,
548
- shouldEvaluateBindings: !0
549
- });
550
- return P(e.hide) ? !e.hide : P(e.show) ? e.show : !0;
551
- },
552
- css() {
553
- var m;
554
- const e = z({
555
- block: this.block,
556
- localState: this.context.localState,
557
- rootState: this.context.rootState,
558
- rootSetState: this.context.rootSetState,
559
- context: this.context.context,
560
- shouldEvaluateBindings: !0
561
- }), t = e.responsiveStyles, n = this.context.content, o = Pe(
562
- ((m = n == null ? void 0 : n.meta) == null ? void 0 : m.breakpoints) || {}
563
- ), r = t == null ? void 0 : t.large, s = t == null ? void 0 : t.medium, i = t == null ? void 0 : t.small, a = e.id;
564
- if (!a)
565
- return "";
566
- const l = r ? Y({
567
- className: a,
568
- styles: r
569
- }) : "", d = s ? Y({
570
- className: a,
571
- styles: s,
572
- mediaQuery: de(
573
- "medium",
574
- o
575
- )
576
- }) : "", u = i ? Y({
577
- className: a,
578
- styles: i,
579
- mediaQuery: de(
580
- "small",
581
- o
582
- )
583
- }) : "";
584
- return [l, d, u].join(" ");
585
- }
586
- }
587
- });
588
- function Et(e, t, n, o, r, s) {
589
- const i = k("inlined-styles");
590
- return e.TARGET !== "reactNative" && e.css && e.canShowBlock ? (c(), y(i, {
591
- key: 0,
592
- styles: e.css
593
- }, null, 8, ["styles"])) : f("v-if", !0);
465
+ ], 64)) : g("v-if", !0);
594
466
  }
595
- const Ee = /* @__PURE__ */ g(Pt, [["render", Et], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/components/block-styles.vue"]]), xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
467
+ const Ie = /* @__PURE__ */ b(kt, [["render", yt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/block.vue"]]), Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
596
468
  __proto__: null,
597
- default: Ee
598
- }, Symbol.toStringTag, { value: "Module" })), Bt = b({
469
+ default: Ie
470
+ }, Symbol.toStringTag, { value: "Module" })), vt = f({
599
471
  name: "builder-blocks-wrapper",
600
472
  props: [
601
473
  "BlocksWrapper",
@@ -614,7 +486,7 @@ const Ee = /* @__PURE__ */ g(Pt, [["render", Et], ["__file", "/home/runner/work/
614
486
  methods: {
615
487
  onClick() {
616
488
  var e, t;
617
- T() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
489
+ R() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
618
490
  {
619
491
  type: "builder.clickEmptyBlocks",
620
492
  data: {
@@ -627,7 +499,7 @@ const Ee = /* @__PURE__ */ g(Pt, [["render", Et], ["__file", "/home/runner/work/
627
499
  },
628
500
  onMouseEnter() {
629
501
  var e, t;
630
- T() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
502
+ R() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
631
503
  {
632
504
  type: "builder.hoverEmptyBlocks",
633
505
  data: {
@@ -649,15 +521,15 @@ const Ee = /* @__PURE__ */ g(Pt, [["render", Et], ["__file", "/home/runner/work/
649
521
  }
650
522
  }
651
523
  });
652
- function Wt(e, t, n, o, r, s) {
653
- return c(), y(Ce(e.BlocksWrapper), w({
524
+ function St(e, t, n, o, r, i) {
525
+ return d(), y(ke(e.BlocksWrapper), C({
654
526
  class: e._classStringToObject(e.className + " component-178o76acnws"),
655
527
  "builder-path": e.path,
656
528
  "builder-parent-id": e.parent,
657
529
  style: e.styleProp,
658
- onClick: (i) => e.onClick(),
659
- onMouseEnter: (i) => e.onMouseEnter(),
660
- onKeyPress: (i) => e.onClick()
530
+ onClick: (s) => e.onClick(),
531
+ onMouseEnter: (s) => e.onMouseEnter(),
532
+ onKeyPress: (s) => e.onClick()
661
533
  }, { ...e.BlocksWrapperProps }), {
662
534
  default: U(() => [
663
535
  x(e.$slots, "default", {}, void 0, !0)
@@ -665,13 +537,9 @@ function Wt(e, t, n, o, r, s) {
665
537
  _: 3
666
538
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
667
539
  }
668
- const At = /* @__PURE__ */ g(Bt, [["render", Wt], ["__scopeId", "data-v-1f8aab9f"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/blocks/blocks-wrapper.vue"]]), Vt = b({
540
+ const Ct = /* @__PURE__ */ b(vt, [["render", St], ["__scopeId", "data-v-1f8aab9f"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/blocks/blocks-wrapper.vue"]]), wt = f({
669
541
  name: "builder-blocks",
670
- components: {
671
- BlocksWrapper: At,
672
- Block: Re,
673
- BlockStyles: Ee
674
- },
542
+ components: { BlocksWrapper: Ct, Block: Ie },
675
543
  props: [
676
544
  "blocks",
677
545
  "parent",
@@ -681,40 +549,82 @@ const At = /* @__PURE__ */ g(Bt, [["render", Wt], ["__scopeId", "data-v-1f8aab9f
681
549
  "registeredComponents"
682
550
  ],
683
551
  inject: {
684
- builderContext: ee.key,
685
- componentsContext: Ie.key
552
+ builderContext: Q.key,
553
+ componentsContext: Se.key
686
554
  }
687
555
  });
688
- function _t(e, t, n, o, r, s) {
689
- var d, u;
690
- const i = k("block"), a = k("block-styles"), l = k("blocks-wrapper");
691
- return c(), y(l, {
556
+ function It(e, t, n, o, r, i) {
557
+ var l, c;
558
+ const s = k("block"), a = k("blocks-wrapper");
559
+ return d(), y(a, {
692
560
  blocks: e.blocks,
693
561
  parent: e.parent,
694
562
  path: e.path,
695
563
  styleProp: e.styleProp,
696
- BlocksWrapper: (d = e.context) == null ? void 0 : d.BlocksWrapper,
697
- BlocksWrapperProps: (u = e.context) == null ? void 0 : u.BlocksWrapperProps
564
+ BlocksWrapper: (l = e.context) == null ? void 0 : l.BlocksWrapper,
565
+ BlocksWrapperProps: (c = e.context) == null ? void 0 : c.BlocksWrapperProps
698
566
  }, {
699
567
  default: U(() => [
700
- e.blocks ? (c(!0), p(C, { key: 0 }, B(e.blocks, (m, h) => (c(), y(i, {
701
- key: "render-block-" + m.id,
702
- block: m,
568
+ e.blocks ? (d(!0), p($, { key: 0 }, N(e.blocks, (u, m) => (d(), y(s, {
569
+ key: u.id,
570
+ block: u,
703
571
  context: e.context || e.builderContext,
704
572
  registeredComponents: e.registeredComponents || e.componentsContext.registeredComponents
705
- }, null, 8, ["block", "context", "registeredComponents"]))), 128)) : f("v-if", !0),
706
- e.blocks ? (c(!0), p(C, { key: 1 }, B(e.blocks, (m, h) => (c(), y(a, {
707
- key: "block-style-" + m.id,
708
- block: m,
709
- context: e.context || e.builderContext
710
- }, null, 8, ["block", "context"]))), 128)) : f("v-if", !0)
573
+ }, null, 8, ["block", "context", "registeredComponents"]))), 128)) : g("v-if", !0)
711
574
  ]),
712
575
  _: 1
713
576
  }, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
714
577
  }
715
- const oe = /* @__PURE__ */ g(Vt, [["render", _t], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/blocks/blocks.vue"]]), Ot = b({
578
+ const ee = /* @__PURE__ */ b(wt, [["render", It], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/blocks/blocks.vue"]]), $t = f({
579
+ render() {
580
+ return ye("style", { id: this.id, innerHTML: this.styles });
581
+ },
582
+ name: "inlined-styles",
583
+ props: ["styles", "id"]
584
+ }), te = /* @__PURE__ */ b($t, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/inlined-styles.vue"]]), $e = {
585
+ small: {
586
+ min: 320,
587
+ default: 321,
588
+ max: 640
589
+ },
590
+ medium: {
591
+ min: 641,
592
+ default: 642,
593
+ max: 991
594
+ },
595
+ large: {
596
+ min: 990,
597
+ default: 991,
598
+ max: 1200
599
+ }
600
+ }, Jo = (e, t = $e) => `@media (max-width: ${t[e].max}px)`, Rt = ({
601
+ small: e,
602
+ medium: t
603
+ }) => {
604
+ const n = F($e);
605
+ if (!e || !t)
606
+ return n;
607
+ const o = Math.floor(e / 2);
608
+ n.small = {
609
+ max: e,
610
+ min: o,
611
+ default: o + 1
612
+ };
613
+ const r = n.small.max + 1;
614
+ n.medium = {
615
+ max: t,
616
+ min: r,
617
+ default: r + 1
618
+ };
619
+ const i = n.medium.max + 1;
620
+ return n.large = {
621
+ max: 2e3,
622
+ min: i,
623
+ default: i + 1
624
+ }, n;
625
+ }, Tt = f({
716
626
  name: "builder-columns",
717
- components: { InlinedStyles: G, Blocks: oe },
627
+ components: { InlinedStyles: te, Blocks: ee },
718
628
  props: [
719
629
  "js",
720
630
  "space",
@@ -731,7 +641,7 @@ const oe = /* @__PURE__ */ g(Vt, [["render", _t], ["__file", "/home/runner/work/
731
641
  cols: this.columns || [],
732
642
  stackAt: this.stackColumnsAt || "tablet",
733
643
  flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
734
- TARGET: R
644
+ TARGET: T
735
645
  };
736
646
  },
737
647
  computed: {
@@ -794,7 +704,7 @@ const oe = /* @__PURE__ */ g(Vt, [["render", _t], ["__file", "/home/runner/work/
794
704
  return this.stackAt === "never" ? t : e;
795
705
  },
796
706
  columnCssVars(e) {
797
- const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, r = "100%", s = 0;
707
+ const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, r = "100%", i = 0;
798
708
  return {
799
709
  width: n,
800
710
  ["margin-left"]: o,
@@ -803,7 +713,7 @@ const oe = /* @__PURE__ */ g(Vt, [["render", _t], ["__file", "/home/runner/work/
803
713
  desktopStyle: n
804
714
  }),
805
715
  "--column-margin-left-mobile": this.getMobileStyle({
806
- stackedStyle: s,
716
+ stackedStyle: i,
807
717
  desktopStyle: o
808
718
  }),
809
719
  "--column-width-tablet": this.getTabletStyle({
@@ -811,14 +721,14 @@ const oe = /* @__PURE__ */ g(Vt, [["render", _t], ["__file", "/home/runner/work/
811
721
  desktopStyle: n
812
722
  }),
813
723
  "--column-margin-left-tablet": this.getTabletStyle({
814
- stackedStyle: s,
724
+ stackedStyle: i,
815
725
  desktopStyle: o
816
726
  })
817
727
  };
818
728
  },
819
729
  getWidthForBreakpointSize(e) {
820
730
  var n, o;
821
- return Pe(
731
+ return Rt(
822
732
  ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
823
733
  )[e].max;
824
734
  },
@@ -833,25 +743,25 @@ const oe = /* @__PURE__ */ g(Vt, [["render", _t], ["__file", "/home/runner/work/
833
743
  }
834
744
  }
835
745
  });
836
- function Nt(e, t, n, o, r, s) {
837
- const i = k("inlined-styles"), a = k("blocks");
838
- return c(), p("div", w({
746
+ function Et(e, t, n, o, r, i) {
747
+ const s = k("inlined-styles"), a = k("blocks");
748
+ return d(), p("div", C({
839
749
  class: e._classStringToObject(
840
750
  `builder-columns ${e.builderBlock.id}-breakpoints div-16nol0lwi20`
841
751
  ),
842
752
  style: e.columnsCssVars
843
753
  }, {}), [
844
- e.TARGET !== "reactNative" ? (c(), y(i, {
754
+ e.TARGET !== "reactNative" ? (d(), y(s, {
845
755
  key: 0,
846
756
  styles: e.columnsStyles
847
- }, null, 8, ["styles"])) : f("v-if", !0),
848
- (c(!0), p(C, null, B(e.columns, (l, d) => (c(), p("div", w({
849
- key: d,
757
+ }, null, 8, ["styles"])) : g("v-if", !0),
758
+ (d(!0), p($, null, N(e.columns, (l, c) => (d(), p("div", C({
759
+ key: c,
850
760
  class: "builder-column div-16nol0lwi20-2",
851
- style: e.columnCssVars(d)
761
+ style: e.columnCssVars(c)
852
762
  }, {}), [
853
- W(a, {
854
- path: `component.options.columns.${d}.blocks`,
763
+ P(a, {
764
+ path: `component.options.columns.${c}.blocks`,
855
765
  parent: e.builderBlock.id,
856
766
  styleProp: {
857
767
  flexGrow: "1"
@@ -863,47 +773,47 @@ function Nt(e, t, n, o, r, s) {
863
773
  ], 16))), 128))
864
774
  ], 16);
865
775
  }
866
- const jt = /* @__PURE__ */ g(Ot, [["render", Nt], ["__scopeId", "data-v-7be099dc"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/columns/columns.vue"]]), Ut = b({
776
+ const Pt = /* @__PURE__ */ b(Tt, [["render", Et], ["__scopeId", "data-v-7be099dc"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/columns/columns.vue"]]), xt = f({
867
777
  name: "builder-fragment-component",
868
778
  props: []
869
779
  });
870
- function Ft(e, t, n, o, r, s) {
871
- return c(), p("span", null, [
780
+ function Bt(e, t, n, o, r, i) {
781
+ return d(), p("span", null, [
872
782
  x(e.$slots, "default")
873
783
  ]);
874
784
  }
875
- const Mt = /* @__PURE__ */ g(Ut, [["render", Ft], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/fragment/fragment.vue"]]);
876
- function ue(e) {
785
+ const Wt = /* @__PURE__ */ b(xt, [["render", Bt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/fragment/fragment.vue"]]);
786
+ function le(e) {
877
787
  return e.replace(/http(s)?:/, "");
878
788
  }
879
- function Lt(e = "", t, n) {
789
+ function At(e = "", t, n) {
880
790
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
881
791
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
882
792
  }
883
- function Ht(e, t) {
793
+ function Vt(e, t) {
884
794
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
885
795
  return e;
886
796
  if (t === "master")
887
- return ue(e);
797
+ return le(e);
888
798
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
889
799
  if (n) {
890
- const o = e.split(n[0]), r = n[3], s = t.match("x") ? t : `${t}x`;
891
- return ue(`${o[0]}_${s}${r}`);
800
+ const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
801
+ return le(`${o[0]}_${i}${r}`);
892
802
  }
893
803
  return null;
894
804
  }
895
- function Q(e) {
805
+ function G(e) {
896
806
  if (!e)
897
807
  return e;
898
808
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
899
809
  if (e.match(/builder\.io/)) {
900
810
  let n = e;
901
811
  const o = Number(e.split("?width=")[1]);
902
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Lt(e, "width", r)} ${r}w`).concat([n]).join(", ");
812
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${At(e, "width", r)} ${r}w`).concat([n]).join(", ");
903
813
  }
904
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ht(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
814
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Vt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
905
815
  }
906
- const Kt = b({
816
+ const _t = f({
907
817
  name: "builder-image",
908
818
  props: [
909
819
  "image",
@@ -927,10 +837,10 @@ const Kt = b({
927
837
  return this.srcset;
928
838
  if (this.srcset && ((n = this.image) == null ? void 0 : n.includes("builder.io/api/v1/image"))) {
929
839
  if (!this.srcset.includes(this.image.split("?")[0]))
930
- return console.debug("Removed given srcset"), Q(t);
840
+ return console.debug("Removed given srcset"), G(t);
931
841
  } else if (this.image && !this.srcset)
932
- return Q(t);
933
- return Q(t);
842
+ return G(t);
843
+ return G(t);
934
844
  },
935
845
  webpSrcSet() {
936
846
  var e;
@@ -959,29 +869,29 @@ const Kt = b({
959
869
  }
960
870
  }
961
871
  });
962
- const Dt = ["srcset"], zt = ["alt", "role", "src", "srcset", "sizes"], qt = {
872
+ const Ot = ["srcset"], Nt = ["alt", "role", "src", "srcset", "sizes"], jt = {
963
873
  key: 2,
964
874
  class: "div-1be3j8m9ewb-2"
965
875
  };
966
- function Gt(e, t, n, o, r, s) {
967
- var i, a, l, d;
968
- return c(), p(C, null, [
969
- X("picture", null, [
970
- e.webpSrcSet ? (c(), p("source", {
876
+ function Ut(e, t, n, o, r, i) {
877
+ var s, a, l, c;
878
+ return d(), p($, null, [
879
+ J("picture", null, [
880
+ e.webpSrcSet ? (d(), p("source", {
971
881
  key: 0,
972
882
  type: "image/webp",
973
883
  srcset: e.webpSrcSet
974
- }, null, 8, Dt)) : f("v-if", !0),
975
- X("img", {
884
+ }, null, 8, Ot)) : g("v-if", !0),
885
+ J("img", {
976
886
  loading: "lazy",
977
887
  alt: e.altText,
978
888
  role: e.altText ? "presentation" : void 0,
979
- style: Z({
889
+ style: Y({
980
890
  objectPosition: e.backgroundPosition || "center",
981
891
  objectFit: e.backgroundSize || "cover",
982
892
  ...e.aspectRatioCss
983
893
  }),
984
- class: we(
894
+ class: ve(
985
895
  e._classStringToObject(
986
896
  "builder-image" + (e.className ? " " + e.className : "") + " img-1be3j8m9ewb"
987
897
  )
@@ -989,30 +899,30 @@ function Gt(e, t, n, o, r, s) {
989
899
  src: e.image,
990
900
  srcset: e.srcSetToUse,
991
901
  sizes: e.sizes
992
- }, null, 14, zt)
902
+ }, null, 14, Nt)
993
903
  ]),
994
- e.aspectRatio && !(((a = (i = e.builderBlock) == null ? void 0 : i.children) == null ? void 0 : a.length) && e.fitContent) ? (c(), p("div", {
904
+ e.aspectRatio && !(((a = (s = e.builderBlock) == null ? void 0 : s.children) == null ? void 0 : a.length) && e.fitContent) ? (d(), p("div", {
995
905
  key: 0,
996
906
  class: "builder-image-sizer div-1be3j8m9ewb",
997
- style: Z({
907
+ style: Y({
998
908
  paddingTop: e.aspectRatio * 100 + "%"
999
909
  })
1000
- }, null, 4)) : f("v-if", !0),
1001
- ((d = (l = e.builderBlock) == null ? void 0 : l.children) == null ? void 0 : d.length) && e.fitContent ? x(e.$slots, "default", { key: 1 }, void 0, !0) : f("v-if", !0),
1002
- !e.fitContent && e.$slots.default ? (c(), p("div", qt, [
910
+ }, null, 4)) : g("v-if", !0),
911
+ ((c = (l = e.builderBlock) == null ? void 0 : l.children) == null ? void 0 : c.length) && e.fitContent ? x(e.$slots, "default", { key: 1 }, void 0, !0) : g("v-if", !0),
912
+ !e.fitContent && e.$slots.default ? (d(), p("div", jt, [
1003
913
  x(e.$slots, "default", {}, void 0, !0)
1004
- ])) : f("v-if", !0)
914
+ ])) : g("v-if", !0)
1005
915
  ], 64);
1006
916
  }
1007
- const Jt = /* @__PURE__ */ g(Kt, [["render", Gt], ["__scopeId", "data-v-58ca75d1"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/image/image.vue"]]), Yt = b({
917
+ const Ft = /* @__PURE__ */ b(_t, [["render", Ut], ["__scopeId", "data-v-58ca75d1"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/image/image.vue"]]), Mt = f({
1008
918
  name: "builder-section-component",
1009
919
  props: ["attributes", "maxWidth"],
1010
920
  data() {
1011
- return { filterAttrs: q };
921
+ return { filterAttrs: z };
1012
922
  }
1013
923
  });
1014
- function Qt(e, t, n, o, r, s) {
1015
- return c(), p("section", w({
924
+ function Lt(e, t, n, o, r, i) {
925
+ return d(), p("section", C({
1016
926
  style: {
1017
927
  width: "100%",
1018
928
  alignSelf: "stretch",
@@ -1025,16 +935,16 @@ function Qt(e, t, n, o, r, s) {
1025
935
  marginLeft: "auto",
1026
936
  marginRight: "auto"
1027
937
  }
1028
- }, e.filterAttrs(e.attributes, "v-on:", !1), N(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
938
+ }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
1029
939
  x(e.$slots, "default")
1030
940
  ], 16);
1031
941
  }
1032
- const Xt = /* @__PURE__ */ g(Yt, [["render", Qt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/section/section.vue"]]), Zt = (e) => {
942
+ const Ht = /* @__PURE__ */ b(Mt, [["render", Lt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/section/section.vue"]]), Dt = (e) => {
1033
943
  if (e === "localhost" || e === "127.0.0.1")
1034
944
  return e;
1035
945
  const t = e.split(".");
1036
946
  return t.length > 2 ? t.slice(1).join(".") : e;
1037
- }, xe = ({
947
+ }, Re = ({
1038
948
  name: e,
1039
949
  canTrack: t
1040
950
  }) => {
@@ -1042,17 +952,17 @@ const Xt = /* @__PURE__ */ g(Yt, [["render", Qt], ["__file", "/home/runner/work/
1042
952
  try {
1043
953
  return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
1044
954
  } catch (o) {
1045
- $.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
955
+ I.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
1046
956
  return;
1047
957
  }
1048
- }, Be = async (e) => xe(e), en = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(P).join("; "), tn = [["secure", ""], ["SameSite", "None"]], nn = ({
958
+ }, Te = async (e) => Re(e), Kt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(A).join("; "), zt = [["secure", ""], ["SameSite", "None"]], qt = ({
1049
959
  name: e,
1050
960
  value: t,
1051
961
  expires: n
1052
962
  }) => {
1053
- const r = (v() ? location.protocol === "https:" : !0) ? tn : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", Zt(window.location.hostname)], ...r];
1054
- return en(i);
1055
- }, We = async ({
963
+ const r = (v() ? location.protocol === "https:" : !0) ? zt : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Dt(window.location.hostname)], ...r];
964
+ return Kt(s);
965
+ }, Ee = async ({
1056
966
  name: e,
1057
967
  value: t,
1058
968
  expires: n,
@@ -1061,54 +971,54 @@ const Xt = /* @__PURE__ */ g(Yt, [["render", Qt], ["__file", "/home/runner/work/
1061
971
  try {
1062
972
  if (!o)
1063
973
  return;
1064
- const r = nn({
974
+ const r = qt({
1065
975
  name: e,
1066
976
  value: t,
1067
977
  expires: n
1068
978
  });
1069
979
  document.cookie = r;
1070
980
  } catch (r) {
1071
- $.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
981
+ I.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
1072
982
  }
1073
- }, on = "builder.tests", re = (e) => `${on}.${e}`, rn = ({
983
+ }, Gt = "builder.tests", ne = (e) => `${Gt}.${e}`, Jt = ({
1074
984
  contentId: e
1075
- }) => Be({
1076
- name: re(e),
985
+ }) => Te({
986
+ name: ne(e),
1077
987
  canTrack: !0
1078
- }), sn = ({
988
+ }), Yt = ({
1079
989
  contentId: e
1080
- }) => xe({
1081
- name: re(e),
990
+ }) => Re({
991
+ name: ne(e),
1082
992
  canTrack: !0
1083
- }), an = ({
993
+ }), Qt = ({
1084
994
  contentId: e,
1085
995
  value: t
1086
- }) => We({
1087
- name: re(e),
996
+ }) => Ee({
997
+ name: ne(e),
1088
998
  value: t,
1089
999
  canTrack: !0
1090
- }), Ae = (e) => P(e.id) && P(e.variations) && Object.keys(e.variations).length > 0, ln = ({
1000
+ }), Pe = (e) => A(e.id) && A(e.variations) && Object.keys(e.variations).length > 0, Xt = ({
1091
1001
  id: e,
1092
1002
  variations: t
1093
1003
  }) => {
1094
1004
  var r;
1095
1005
  let n = 0;
1096
1006
  const o = Math.random();
1097
- for (const s in t) {
1098
- const i = (r = t[s]) == null ? void 0 : r.testRatio;
1099
- if (n += i, o < n)
1100
- return s;
1007
+ for (const i in t) {
1008
+ const s = (r = t[i]) == null ? void 0 : r.testRatio;
1009
+ if (n += s, o < n)
1010
+ return i;
1101
1011
  }
1102
1012
  return e;
1103
- }, Ve = (e) => {
1104
- const t = ln(e);
1105
- return an({
1013
+ }, xe = (e) => {
1014
+ const t = Xt(e);
1015
+ return Qt({
1106
1016
  contentId: e.id,
1107
1017
  value: t
1108
1018
  }).catch((n) => {
1109
- $.error("could not store A/B test variation: ", n);
1019
+ I.error("could not store A/B test variation: ", n);
1110
1020
  }), t;
1111
- }, _e = ({
1021
+ }, Be = ({
1112
1022
  item: e,
1113
1023
  testGroupId: t
1114
1024
  }) => {
@@ -1121,7 +1031,7 @@ const Xt = /* @__PURE__ */ g(Yt, [["render", Qt], ["__file", "/home/runner/work/
1121
1031
  testVariationId: n.id,
1122
1032
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
1123
1033
  };
1124
- }, cn = ({
1034
+ }, Zt = ({
1125
1035
  item: e,
1126
1036
  canTrack: t
1127
1037
  }) => {
@@ -1129,14 +1039,14 @@ const Xt = /* @__PURE__ */ g(Yt, [["render", Qt], ["__file", "/home/runner/work/
1129
1039
  return e;
1130
1040
  if (!e)
1131
1041
  return;
1132
- if (!Ae(e))
1042
+ if (!Pe(e))
1133
1043
  return e;
1134
- const n = sn({
1044
+ const n = Yt({
1135
1045
  contentId: e.id
1136
- }) || Ve({
1046
+ }) || xe({
1137
1047
  variations: e.variations,
1138
1048
  id: e.id
1139
- }), o = _e({
1049
+ }), o = Be({
1140
1050
  item: e,
1141
1051
  testGroupId: n
1142
1052
  });
@@ -1144,18 +1054,18 @@ const Xt = /* @__PURE__ */ g(Yt, [["render", Qt], ["__file", "/home/runner/work/
1144
1054
  ...e,
1145
1055
  ...o
1146
1056
  };
1147
- }, dn = async ({
1057
+ }, en = async ({
1148
1058
  item: e,
1149
1059
  canTrack: t
1150
1060
  }) => {
1151
- if (!t || !Ae(e))
1061
+ if (!t || !Pe(e))
1152
1062
  return e;
1153
- const o = await rn({
1063
+ const o = await Jt({
1154
1064
  contentId: e.id
1155
- }) || Ve({
1065
+ }) || xe({
1156
1066
  variations: e.variations,
1157
1067
  id: e.id
1158
- }), r = _e({
1068
+ }), r = Be({
1159
1069
  item: e,
1160
1070
  testGroupId: o
1161
1071
  });
@@ -1163,7 +1073,7 @@ const Xt = /* @__PURE__ */ g(Yt, [["render", Qt], ["__file", "/home/runner/work/
1163
1073
  ...e,
1164
1074
  ...r
1165
1075
  };
1166
- }, j = (e) => P(e) ? e : !0, un = {
1076
+ }, j = (e) => A(e) ? e : !0, tn = {
1167
1077
  name: "Core:Button",
1168
1078
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1169
1079
  defaultStyles: {
@@ -1195,7 +1105,7 @@ const Xt = /* @__PURE__ */ g(Yt, [["render", Qt], ["__file", "/home/runner/work/
1195
1105
  }],
1196
1106
  static: !0,
1197
1107
  noWrap: !0
1198
- }, pn = {
1108
+ }, nn = {
1199
1109
  name: "Columns",
1200
1110
  isRSC: !0,
1201
1111
  inputs: [{
@@ -1373,7 +1283,7 @@ const Xt = /* @__PURE__ */ g(Yt, [["render", Qt], ["__file", "/home/runner/work/
1373
1283
  });
1374
1284
  }
1375
1285
  const n = e.get("columns");
1376
- Array.isArray(n) && !!n.find((r) => r.get("width")) && (!!n.find((s) => !s.get("width")) || n.reduce((a, l) => a + l.get("width"), 0) !== 100) && t();
1286
+ Array.isArray(n) && !!n.find((r) => r.get("width")) && (!!n.find((i) => !i.get("width")) || n.reduce((a, l) => a + l.get("width"), 0) !== 100) && t();
1377
1287
  }
1378
1288
  }, {
1379
1289
  name: "space",
@@ -1395,7 +1305,7 @@ const Xt = /* @__PURE__ */ g(Yt, [["render", Qt], ["__file", "/home/runner/work/
1395
1305
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1396
1306
  advanced: !0
1397
1307
  }]
1398
- }, mn = {
1308
+ }, on = {
1399
1309
  name: "Custom Code",
1400
1310
  static: !0,
1401
1311
  requiredPermissions: ["editCode"],
@@ -1417,7 +1327,7 @@ const Xt = /* @__PURE__ */ g(Yt, [["render", Qt], ["__file", "/home/runner/work/
1417
1327
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
1418
1328
  advanced: !0
1419
1329
  }]
1420
- }, hn = b({
1330
+ }, rn = f({
1421
1331
  name: "builder-custom-code",
1422
1332
  props: ["replaceNodes", "code"],
1423
1333
  data() {
@@ -1462,19 +1372,19 @@ const Xt = /* @__PURE__ */ g(Yt, [["render", Qt], ["__file", "/home/runner/work/
1462
1372
  return t;
1463
1373
  }
1464
1374
  }
1465
- }), fn = ["innerHTML"];
1466
- function bn(e, t, n, o, r, s) {
1467
- return c(), p("div", {
1375
+ }), sn = ["innerHTML"];
1376
+ function an(e, t, n, o, r, i) {
1377
+ return d(), p("div", {
1468
1378
  ref: "elementRef",
1469
- class: we(
1379
+ class: ve(
1470
1380
  e._classStringToObject(
1471
1381
  "builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")
1472
1382
  )
1473
1383
  ),
1474
1384
  innerHTML: e.code
1475
- }, null, 10, fn);
1385
+ }, null, 10, sn);
1476
1386
  }
1477
- const gn = /* @__PURE__ */ g(hn, [["render", bn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/custom-code/custom-code.vue"]]), kn = {
1387
+ const ln = /* @__PURE__ */ b(rn, [["render", an], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/custom-code/custom-code.vue"]]), cn = {
1478
1388
  name: "Embed",
1479
1389
  static: !0,
1480
1390
  inputs: [{
@@ -1499,7 +1409,7 @@ const gn = /* @__PURE__ */ g(hn, [["render", bn], ["__file", "/home/runner/work/
1499
1409
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1500
1410
  hideFromUI: !0
1501
1411
  }]
1502
- }, yn = ["text/javascript", "application/javascript", "application/ecmascript"], vn = (e) => yn.includes(e.type), Sn = b({
1412
+ }, dn = ["text/javascript", "application/javascript", "application/ecmascript"], un = (e) => dn.includes(e.type), pn = f({
1503
1413
  name: "builder-embed",
1504
1414
  props: ["content"],
1505
1415
  data() {
@@ -1532,7 +1442,7 @@ const gn = /* @__PURE__ */ g(hn, [["render", bn], ["__file", "/home/runner/work/
1532
1442
  this.scriptsInserted.push(n.src);
1533
1443
  const o = document.createElement("script");
1534
1444
  o.async = !0, o.src = n.src, document.head.appendChild(o);
1535
- } else if (vn(n) && !this.scriptsRun.includes(n.innerText))
1445
+ } else if (un(n) && !this.scriptsRun.includes(n.innerText))
1536
1446
  try {
1537
1447
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
1538
1448
  } catch (o) {
@@ -1541,21 +1451,21 @@ const gn = /* @__PURE__ */ g(hn, [["render", bn], ["__file", "/home/runner/work/
1541
1451
  }
1542
1452
  }
1543
1453
  }
1544
- }), Cn = ["innerHTML"];
1545
- function wn(e, t, n, o, r, s) {
1546
- return c(), p("div", {
1454
+ }), mn = ["innerHTML"];
1455
+ function hn(e, t, n, o, r, i) {
1456
+ return d(), p("div", {
1547
1457
  class: "builder-embed",
1548
1458
  ref: "elem",
1549
1459
  innerHTML: e.content
1550
- }, null, 8, Cn);
1460
+ }, null, 8, mn);
1551
1461
  }
1552
- const In = /* @__PURE__ */ g(Sn, [["render", wn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/embed/embed.vue"]]), $n = {
1462
+ const fn = /* @__PURE__ */ b(pn, [["render", hn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/embed/embed.vue"]]), bn = {
1553
1463
  name: "Fragment",
1554
1464
  static: !0,
1555
1465
  hidden: !0,
1556
1466
  canHaveChildren: !0,
1557
1467
  noWrap: !0
1558
- }, Rn = {
1468
+ }, gn = {
1559
1469
  name: "Image",
1560
1470
  static: !0,
1561
1471
  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",
@@ -1575,29 +1485,29 @@ const In = /* @__PURE__ */ g(Sn, [["render", wn], ["__file", "/home/runner/work/
1575
1485
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1576
1486
  onChange: (e) => {
1577
1487
  e.delete("srcset"), e.delete("noWebp");
1578
- function n(i, a = 6e4) {
1579
- return new Promise((l, d) => {
1488
+ function n(s, a = 6e4) {
1489
+ return new Promise((l, c) => {
1580
1490
  const u = document.createElement("img");
1581
1491
  let m = !1;
1582
1492
  u.onload = () => {
1583
1493
  m = !0, l(u);
1584
1494
  }, u.addEventListener("error", (h) => {
1585
- console.warn("Image load failed", h.error), d(h.error);
1586
- }), u.src = i, setTimeout(() => {
1587
- m || d(new Error("Image load timed out"));
1495
+ console.warn("Image load failed", h.error), c(h.error);
1496
+ }), u.src = s, setTimeout(() => {
1497
+ m || c(new Error("Image load timed out"));
1588
1498
  }, a);
1589
1499
  });
1590
1500
  }
1591
- function o(i) {
1592
- return Math.round(i * 1e3) / 1e3;
1501
+ function o(s) {
1502
+ return Math.round(s * 1e3) / 1e3;
1593
1503
  }
1594
- const r = e.get("image"), s = e.get("aspectRatio");
1595
- if (fetch(r).then((i) => i.blob()).then((i) => {
1596
- i.type.includes("svg") && e.set("noWebp", !0);
1597
- }), r && (!s || s === 0.7041))
1598
- return n(r).then((i) => {
1504
+ const r = e.get("image"), i = e.get("aspectRatio");
1505
+ if (fetch(r).then((s) => s.blob()).then((s) => {
1506
+ s.type.includes("svg") && e.set("noWebp", !0);
1507
+ }), r && (!i || i === 0.7041))
1508
+ return n(r).then((s) => {
1599
1509
  const a = e.get("aspectRatio");
1600
- e.get("image") === r && (!a || a === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
1510
+ e.get("image") === r && (!a || a === 0.7041) && s.width && s.height && (e.set("aspectRatio", o(s.height / s.width)), e.set("height", s.height), e.set("width", s.width));
1601
1511
  });
1602
1512
  }
1603
1513
  }, {
@@ -1655,7 +1565,7 @@ const In = /* @__PURE__ */ g(Sn, [["render", wn], ["__file", "/home/runner/work/
1655
1565
  advanced: !0,
1656
1566
  defaultValue: 0.7041
1657
1567
  }]
1658
- }, Tn = {
1568
+ }, kn = {
1659
1569
  name: "Raw:Img",
1660
1570
  hideFromInsertMenu: !0,
1661
1571
  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",
@@ -1668,7 +1578,7 @@ const In = /* @__PURE__ */ g(Sn, [["render", wn], ["__file", "/home/runner/work/
1668
1578
  }],
1669
1579
  noWrap: !0,
1670
1580
  static: !0
1671
- }, Pn = b({
1581
+ }, yn = f({
1672
1582
  name: "builder-img-component",
1673
1583
  props: [
1674
1584
  "backgroundSize",
@@ -1679,11 +1589,11 @@ const In = /* @__PURE__ */ g(Sn, [["render", wn], ["__file", "/home/runner/work/
1679
1589
  "attributes"
1680
1590
  ],
1681
1591
  data() {
1682
- return { isEditing: T, filterAttrs: q };
1592
+ return { isEditing: R, filterAttrs: z };
1683
1593
  }
1684
- }), En = ["alt", "src"];
1685
- function xn(e, t, n, o, r, s) {
1686
- return c(), p("img", w({
1594
+ }), vn = ["alt", "src"];
1595
+ function Sn(e, t, n, o, r, i) {
1596
+ return d(), p("img", C({
1687
1597
  style: {
1688
1598
  objectFit: e.backgroundSize || "cover",
1689
1599
  objectPosition: e.backgroundPosition || "center"
@@ -1691,9 +1601,9 @@ function xn(e, t, n, o, r, s) {
1691
1601
  key: e.isEditing() && e.imgSrc || "default-key",
1692
1602
  alt: e.altText,
1693
1603
  src: e.imgSrc || e.image
1694
- }, e.filterAttrs(e.attributes, "v-on:", !1), N(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, En);
1604
+ }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, vn);
1695
1605
  }
1696
- const Bn = /* @__PURE__ */ g(Pn, [["render", xn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/img/img.vue"]]), Wn = {
1606
+ const Cn = /* @__PURE__ */ b(yn, [["render", Sn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/img/img.vue"]]), wn = {
1697
1607
  name: "Core:Section",
1698
1608
  static: !0,
1699
1609
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1732,7 +1642,7 @@ const Bn = /* @__PURE__ */ g(Pn, [["render", xn], ["__file", "/home/runner/work/
1732
1642
  }
1733
1643
  }
1734
1644
  }]
1735
- }, An = {
1645
+ }, In = {
1736
1646
  name: "Symbol",
1737
1647
  noWrap: !0,
1738
1648
  static: !0,
@@ -1765,7 +1675,7 @@ const Bn = /* @__PURE__ */ g(Pn, [["render", xn], ["__file", "/home/runner/work/
1765
1675
  hideFromUI: !0,
1766
1676
  type: "boolean"
1767
1677
  }]
1768
- }, Vn = {
1678
+ }, $n = {
1769
1679
  name: "Text",
1770
1680
  static: !0,
1771
1681
  isRSC: !0,
@@ -1783,21 +1693,21 @@ const Bn = /* @__PURE__ */ g(Pn, [["render", xn], ["__file", "/home/runner/work/
1783
1693
  height: "auto",
1784
1694
  textAlign: "center"
1785
1695
  }
1786
- }, _n = b({
1696
+ }, Rn = f({
1787
1697
  name: "builder-text",
1788
1698
  props: ["text"]
1789
- }), On = ["innerHTML"];
1790
- function Nn(e, t, n, o, r, s) {
1791
- var i;
1792
- return c(), p("div", {
1699
+ }), Tn = ["innerHTML"];
1700
+ function En(e, t, n, o, r, i) {
1701
+ var s;
1702
+ return d(), p("div", {
1793
1703
  class: "builder-text",
1794
- innerHTML: ((i = e.text) == null ? void 0 : i.toString()) || "",
1704
+ innerHTML: ((s = e.text) == null ? void 0 : s.toString()) || "",
1795
1705
  style: {
1796
1706
  outline: "none"
1797
1707
  }
1798
- }, null, 8, On);
1708
+ }, null, 8, Tn);
1799
1709
  }
1800
- const jn = /* @__PURE__ */ g(_n, [["render", Nn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/text/text.vue"]]), Un = {
1710
+ const Pn = /* @__PURE__ */ b(Rn, [["render", En], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/text/text.vue"]]), xn = {
1801
1711
  name: "Video",
1802
1712
  canHaveChildren: !0,
1803
1713
  defaultStyles: {
@@ -1878,7 +1788,7 @@ const jn = /* @__PURE__ */ g(_n, [["render", Nn], ["__file", "/home/runner/work/
1878
1788
  defaultValue: !0,
1879
1789
  advanced: !0
1880
1790
  }]
1881
- }, Fn = b({
1791
+ }, Bn = f({
1882
1792
  name: "builder-video",
1883
1793
  props: [
1884
1794
  "autoPlay",
@@ -1923,16 +1833,16 @@ const jn = /* @__PURE__ */ g(_n, [["render", Nn], ["__file", "/home/runner/work/
1923
1833
  };
1924
1834
  }
1925
1835
  }
1926
- }), Mn = { style: {
1836
+ }), Wn = { style: {
1927
1837
  position: "relative"
1928
- } }, Ln = ["preload", "src", "poster"], Hn = ["src"], Kn = {
1838
+ } }, An = ["preload", "src", "poster"], Vn = ["src"], _n = {
1929
1839
  key: 1,
1930
1840
  style: {
1931
1841
  display: "flex",
1932
1842
  flexDirection: "column",
1933
1843
  alignItems: "stretch"
1934
1844
  }
1935
- }, Dn = {
1845
+ }, On = {
1936
1846
  key: 2,
1937
1847
  style: {
1938
1848
  pointerEvents: "none",
@@ -1946,16 +1856,16 @@ const jn = /* @__PURE__ */ g(_n, [["render", Nn], ["__file", "/home/runner/work/
1946
1856
  height: "100%"
1947
1857
  }
1948
1858
  };
1949
- function zn(e, t, n, o, r, s) {
1950
- var i, a, l, d, u, m, h;
1951
- return c(), p("div", Mn, [
1952
- X("video", w({
1859
+ function Nn(e, t, n, o, r, i) {
1860
+ var s, a, l, c, u, m, h;
1861
+ return d(), p("div", Wn, [
1862
+ J("video", C({
1953
1863
  class: "builder-video",
1954
1864
  preload: e.preload || "metadata",
1955
1865
  style: {
1956
1866
  width: "100%",
1957
1867
  height: "100%",
1958
- ...(i = e.attributes) == null ? void 0 : i.style,
1868
+ ...(s = e.attributes) == null ? void 0 : s.style,
1959
1869
  objectFit: e.fit,
1960
1870
  objectPosition: e.position,
1961
1871
  zIndex: 2,
@@ -1967,78 +1877,78 @@ function zn(e, t, n, o, r, s) {
1967
1877
  src: e.video || "no-src",
1968
1878
  poster: e.posterImage
1969
1879
  }, e.spreadProps), [
1970
- e.lazyLoad ? f("v-if", !0) : (c(), p("source", {
1880
+ e.lazyLoad ? g("v-if", !0) : (d(), p("source", {
1971
1881
  key: 0,
1972
1882
  type: "video/mp4",
1973
1883
  src: e.video
1974
- }, null, 8, Hn))
1975
- ], 16, Ln),
1976
- e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) == null ? void 0 : l.length)) ? (c(), p("div", {
1884
+ }, null, 8, Vn))
1885
+ ], 16, An),
1886
+ e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) == null ? void 0 : l.length)) ? (d(), p("div", {
1977
1887
  key: 0,
1978
- style: Z({
1888
+ style: Y({
1979
1889
  width: "100%",
1980
1890
  paddingTop: e.aspectRatio * 100 + "%",
1981
1891
  pointerEvents: "none",
1982
1892
  fontSize: "0px"
1983
1893
  })
1984
- }, null, 4)) : f("v-if", !0),
1985
- ((u = (d = e.builderBlock) == null ? void 0 : d.children) == null ? void 0 : u.length) && e.fitContent ? (c(), p("div", Kn, [
1894
+ }, null, 4)) : g("v-if", !0),
1895
+ ((u = (c = e.builderBlock) == null ? void 0 : c.children) == null ? void 0 : u.length) && e.fitContent ? (d(), p("div", _n, [
1986
1896
  x(e.$slots, "default")
1987
- ])) : f("v-if", !0),
1988
- ((h = (m = e.builderBlock) == null ? void 0 : m.children) == null ? void 0 : h.length) && !e.fitContent ? (c(), p("div", Dn, [
1897
+ ])) : g("v-if", !0),
1898
+ ((h = (m = e.builderBlock) == null ? void 0 : m.children) == null ? void 0 : h.length) && !e.fitContent ? (d(), p("div", On, [
1989
1899
  x(e.$slots, "default")
1990
- ])) : f("v-if", !0)
1900
+ ])) : g("v-if", !0)
1991
1901
  ]);
1992
1902
  }
1993
- const qn = /* @__PURE__ */ g(Fn, [["render", zn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/video/video.vue"]]), pe = () => [{
1994
- component: et,
1995
- ...un
1903
+ const jn = /* @__PURE__ */ b(Bn, [["render", Nn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/video/video.vue"]]), ce = () => [{
1904
+ component: Ye,
1905
+ ...tn
1996
1906
  }, {
1997
- component: jt,
1998
- ...pn
1907
+ component: Pt,
1908
+ ...nn
1999
1909
  }, {
2000
- component: gn,
2001
- ...mn
1910
+ component: ln,
1911
+ ...on
2002
1912
  }, {
2003
- component: In,
2004
- ...kn
1913
+ component: fn,
1914
+ ...cn
2005
1915
  }, {
2006
- component: Mt,
2007
- ...$n
1916
+ component: Wt,
1917
+ ...bn
2008
1918
  }, {
2009
- component: Jt,
2010
- ...Rn
1919
+ component: Ft,
1920
+ ...gn
2011
1921
  }, {
2012
- component: Bn,
2013
- ...Tn
1922
+ component: Cn,
1923
+ ...kn
2014
1924
  }, {
2015
- component: Xt,
2016
- ...Wn
1925
+ component: Ht,
1926
+ ...wn
2017
1927
  }, {
2018
- component: er,
2019
- ...An
1928
+ component: Ko,
1929
+ ...In
2020
1930
  }, {
2021
- component: jn,
2022
- ...Vn
1931
+ component: Pn,
1932
+ ...$n
2023
1933
  }, {
2024
- component: qn,
2025
- ...Un
2026
- }], me = [], Gn = (e) => ({
1934
+ component: jn,
1935
+ ...xn
1936
+ }], de = [], Un = (e) => ({
2027
1937
  type: "builder.registerComponent",
2028
- data: te(e)
2029
- }), Jn = (e) => {
1938
+ data: X(e)
1939
+ }), Fn = (e) => {
2030
1940
  const t = e.toString().trim();
2031
1941
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
2032
- }, Yn = (e) => typeof e == "function" ? Jn(e) : F(e), te = ({
1942
+ }, Mn = (e) => typeof e == "function" ? Fn(e) : F(e), X = ({
2033
1943
  inputs: e,
2034
1944
  ...t
2035
1945
  }) => ({
2036
1946
  ...F(t),
2037
- inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, s]) => ({
1947
+ inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, i]) => ({
2038
1948
  ...o,
2039
- [r]: Yn(s)
1949
+ [r]: Mn(i)
2040
1950
  }), {}))
2041
- }), Qn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
1951
+ }), Ln = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2042
1952
  function getAndSetVariantId() {
2043
1953
  function setCookie(name, value, days) {
2044
1954
  let expires = '';
@@ -2094,7 +2004,7 @@ const qn = /* @__PURE__ */ g(Fn, [["render", zn], ["__file", "/home/runner/work/
2094
2004
  }).join('');
2095
2005
  styleEl.innerHTML = newStyleStr;
2096
2006
  }
2097
- }`, Xn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2007
+ }`, Hn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2098
2008
  if (!navigator.cookieEnabled) {
2099
2009
  return;
2100
2010
  }
@@ -2128,75 +2038,75 @@ const qn = /* @__PURE__ */ g(Fn, [["render", zn], ["__file", "/home/runner/work/
2128
2038
  thisScriptEl?.remove();
2129
2039
  }
2130
2040
  return;
2131
- }`, Oe = "builderIoAbTest", Ne = "builderIoRenderContent", H = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2041
+ }`, We = "builderIoAbTest", Ae = "builderIoRenderContent", H = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2132
2042
  ...t,
2133
2043
  testVariationId: t.id,
2134
2044
  id: e == null ? void 0 : e.id
2135
- })), Zn = ({
2045
+ })), Dn = ({
2136
2046
  canTrack: e,
2137
2047
  content: t
2138
- }) => !(!(H(t).length > 0) || !e), eo = (e) => e === "react" || e === "reactNative", je = eo(R), to = () => `
2139
- window.${Oe} = ${Qn}
2140
- window.${Ne} = ${Xn}
2141
- `, no = (e, t) => `
2142
- window.${Oe}(
2143
- "${t}",${JSON.stringify(e)}, ${je}
2144
- )`, oo = ({
2048
+ }) => !(!(H(t).length > 0) || !e), Kn = (e) => e === "react" || e === "reactNative", Ve = Kn(T), zn = () => `
2049
+ window.${We} = ${Ln}
2050
+ window.${Ae} = ${Hn}
2051
+ `, qn = (e, t) => `
2052
+ window.${We}(
2053
+ "${t}",${JSON.stringify(e)}, ${Ve}
2054
+ )`, Gn = ({
2145
2055
  contentId: e,
2146
2056
  variationId: t
2147
- }) => `window.${Ne}(
2148
- "${t}", "${e}", ${je}
2149
- )`, ro = b({
2057
+ }) => `window.${Ae}(
2058
+ "${t}", "${e}", ${Ve}
2059
+ )`, Jn = f({
2150
2060
  render() {
2151
- return Se("script", { id: this.id, innerHTML: this.scriptStr });
2061
+ return ye("script", { id: this.id, innerHTML: this.scriptStr });
2152
2062
  },
2153
2063
  name: "inlined-script",
2154
2064
  props: ["scriptStr", "id"]
2155
- }), Ue = /* @__PURE__ */ g(ro, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/inlined-script.vue"]]);
2156
- function so() {
2065
+ }), _e = /* @__PURE__ */ b(Jn, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/inlined-script.vue"]]);
2066
+ function Yn() {
2157
2067
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
2158
2068
  }
2159
- function io() {
2160
- const e = so().fetch;
2069
+ function Qn() {
2070
+ const e = Yn().fetch;
2161
2071
  if (typeof e > "u")
2162
2072
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
2163
2073
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
2164
2074
  return e;
2165
2075
  }
2166
- const Fe = io();
2167
- function K(e, t = null, n = ".") {
2076
+ const Oe = Qn();
2077
+ function D(e, t = null, n = ".") {
2168
2078
  return Object.keys(e).reduce((o, r) => {
2169
- const s = e[r], i = [t, r].filter(Boolean).join(n);
2170
- return [typeof s == "object", s !== null, !(Array.isArray(s) && s.length === 0)].every(Boolean) ? {
2079
+ const i = e[r], s = [t, r].filter(Boolean).join(n);
2080
+ return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
2171
2081
  ...o,
2172
- ...K(s, i, n)
2082
+ ...D(i, s, n)
2173
2083
  } : {
2174
2084
  ...o,
2175
- [i]: s
2085
+ [s]: i
2176
2086
  };
2177
2087
  }, {});
2178
2088
  }
2179
- const ao = "v3", he = "builder.", lo = "options.", co = (e) => {
2089
+ const Xn = "v3", ue = "builder.", Zn = "options.", eo = (e) => {
2180
2090
  const t = {};
2181
2091
  return e.forEach((n, o) => {
2182
2092
  t[o] = n;
2183
2093
  }), t;
2184
- }, Me = (e) => {
2094
+ }, Ne = (e) => {
2185
2095
  if (!e)
2186
2096
  return {};
2187
- const t = Le(e), n = {};
2097
+ const t = je(e), n = {};
2188
2098
  return Object.keys(t).forEach((o) => {
2189
- if (o.startsWith(he)) {
2190
- const r = o.replace(he, "").replace(lo, "");
2099
+ if (o.startsWith(ue)) {
2100
+ const r = o.replace(ue, "").replace(Zn, "");
2191
2101
  n[r] = t[o];
2192
2102
  }
2193
2103
  }), n;
2194
- }, uo = () => {
2104
+ }, to = () => {
2195
2105
  if (!v())
2196
2106
  return {};
2197
2107
  const e = new URLSearchParams(window.location.search);
2198
- return Me(e);
2199
- }, Le = (e) => e instanceof URLSearchParams ? co(e) : e, fe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, se = (e) => {
2108
+ return Ne(e);
2109
+ }, je = (e) => e instanceof URLSearchParams ? eo(e) : e, pe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, oe = (e) => {
2200
2110
  let {
2201
2111
  noTraverse: t = !1
2202
2112
  } = e;
@@ -2204,173 +2114,173 @@ const ao = "v3", he = "builder.", lo = "options.", co = (e) => {
2204
2114
  limit: n = 30,
2205
2115
  userAttributes: o,
2206
2116
  query: r,
2207
- model: s,
2208
- apiKey: i,
2117
+ model: i,
2118
+ apiKey: s,
2209
2119
  includeRefs: a = !0,
2210
2120
  enrich: l,
2211
- locale: d,
2212
- apiVersion: u = ao,
2121
+ locale: c,
2122
+ apiVersion: u = Xn,
2213
2123
  fields: m,
2214
2124
  omit: h,
2215
2125
  offset: S,
2216
- cacheSeconds: A,
2217
- staleCacheSeconds: V,
2218
- sort: _,
2219
- includeUnpublished: ie
2126
+ cacheSeconds: B,
2127
+ staleCacheSeconds: W,
2128
+ sort: V,
2129
+ includeUnpublished: re
2220
2130
  } = e;
2221
- if (!i)
2131
+ if (!s)
2222
2132
  throw new Error("Missing API key");
2223
2133
  if (!["v2", "v3"].includes(u))
2224
2134
  throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${u}'`);
2225
2135
  (e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
2226
- const I = new URL(`https://cdn.builder.io/api/${u}/content/${s}?apiKey=${i}&limit=${n}&noTraverse=${t}&includeRefs=${a}${d ? `&locale=${d}` : ""}${l ? `&enrich=${l}` : ""}`);
2227
- if (I.searchParams.set("omit", h || "meta.componentsUsed"), m && I.searchParams.set("fields", m), Number.isFinite(S) && S > -1 && I.searchParams.set("offset", String(Math.floor(S))), typeof ie == "boolean" && I.searchParams.set("includeUnpublished", String(ie)), A && fe(A) && I.searchParams.set("cacheSeconds", String(A)), V && fe(V) && I.searchParams.set("staleCacheSeconds", String(V)), _) {
2228
- const E = K({
2229
- sort: _
2136
+ const w = new URL(`https://cdn.builder.io/api/${u}/content/${i}?apiKey=${s}&limit=${n}&noTraverse=${t}&includeRefs=${a}${c ? `&locale=${c}` : ""}${l ? `&enrich=${l}` : ""}`);
2137
+ if (w.searchParams.set("omit", h || "meta.componentsUsed"), m && w.searchParams.set("fields", m), Number.isFinite(S) && S > -1 && w.searchParams.set("offset", String(Math.floor(S))), typeof re == "boolean" && w.searchParams.set("includeUnpublished", String(re)), B && pe(B) && w.searchParams.set("cacheSeconds", String(B)), W && pe(W) && w.searchParams.set("staleCacheSeconds", String(W)), V) {
2138
+ const E = D({
2139
+ sort: V
2230
2140
  });
2231
- for (const O in E)
2232
- I.searchParams.set(O, JSON.stringify(E[O]));
2141
+ for (const _ in E)
2142
+ w.searchParams.set(_, JSON.stringify(E[_]));
2233
2143
  }
2234
- const Je = {
2235
- ...uo(),
2236
- ...Le(e.options || {})
2237
- }, ae = K(Je);
2238
- for (const E in ae)
2239
- I.searchParams.set(E, String(ae[E]));
2240
- if (o && I.searchParams.set("userAttributes", JSON.stringify(o)), r) {
2241
- const E = K({
2144
+ const Ke = {
2145
+ ...to(),
2146
+ ...je(e.options || {})
2147
+ }, ie = D(Ke);
2148
+ for (const E in ie)
2149
+ w.searchParams.set(E, String(ie[E]));
2150
+ if (o && w.searchParams.set("userAttributes", JSON.stringify(o)), r) {
2151
+ const E = D({
2242
2152
  query: r
2243
2153
  });
2244
- for (const O in E)
2245
- I.searchParams.set(O, JSON.stringify(E[O]));
2154
+ for (const _ in E)
2155
+ w.searchParams.set(_, JSON.stringify(E[_]));
2246
2156
  }
2247
- return I;
2248
- }, po = (e) => "results" in e;
2249
- async function J(e) {
2250
- const t = await He({
2157
+ return w;
2158
+ }, no = (e) => "results" in e;
2159
+ async function q(e) {
2160
+ const t = await Ue({
2251
2161
  ...e,
2252
2162
  limit: 1
2253
2163
  });
2254
2164
  return t && t[0] || null;
2255
2165
  }
2256
- const rr = J, mo = async (e) => {
2257
- const t = se(e);
2258
- return await (await Fe(t.href)).json();
2259
- }, ho = async (e, t, n = se(e)) => {
2166
+ const Yo = q, oo = async (e) => {
2167
+ const t = oe(e);
2168
+ return await (await Oe(t.href)).json();
2169
+ }, ro = async (e, t, n = oe(e)) => {
2260
2170
  const o = j(e.canTrack);
2261
- if (n.search.includes("preview="), !o || !(v() || R === "reactNative"))
2171
+ if (n.search.includes("preview="), !o || !(v() || T === "reactNative"))
2262
2172
  return t.results;
2263
2173
  try {
2264
2174
  const r = [];
2265
- for (const s of t.results)
2266
- r.push(await dn({
2267
- item: s,
2175
+ for (const i of t.results)
2176
+ r.push(await en({
2177
+ item: i,
2268
2178
  canTrack: o
2269
2179
  }));
2270
2180
  t.results = r;
2271
2181
  } catch (r) {
2272
- $.error("Could not process A/B tests. ", r);
2182
+ I.error("Could not process A/B tests. ", r);
2273
2183
  }
2274
2184
  return t.results;
2275
2185
  };
2276
- async function He(e) {
2186
+ async function Ue(e) {
2277
2187
  try {
2278
- const t = se(e), n = await mo(e);
2279
- return po(n) ? ho(e, n) : ($.error("Error fetching data. ", {
2188
+ const t = oe(e), n = await oo(e);
2189
+ return no(n) ? ro(e, n) : (I.error("Error fetching data. ", {
2280
2190
  url: t,
2281
2191
  content: n,
2282
2192
  options: e
2283
2193
  }), null);
2284
2194
  } catch (t) {
2285
- return $.error("Error fetching data. ", t), null;
2195
+ return I.error("Error fetching data. ", t), null;
2286
2196
  }
2287
2197
  }
2288
- const sr = He;
2289
- function fo() {
2290
- return !v() || T() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
2198
+ const Qo = Ue;
2199
+ function io() {
2200
+ return !v() || R() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
2291
2201
  }
2292
- function bo() {
2202
+ function so() {
2293
2203
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
2294
2204
  const t = Math.random() * 16 | 0;
2295
2205
  return (e == "x" ? t : t & 3 | 8).toString(16);
2296
2206
  });
2297
2207
  }
2298
- function Ke() {
2299
- return bo().replace(/-/g, "");
2208
+ function Fe() {
2209
+ return so().replace(/-/g, "");
2300
2210
  }
2301
- const De = "builderSessionId", go = async ({
2211
+ const Me = "builderSessionId", ao = async ({
2302
2212
  canTrack: e
2303
2213
  }) => {
2304
2214
  if (!e)
2305
2215
  return;
2306
- const t = await Be({
2307
- name: De,
2216
+ const t = await Te({
2217
+ name: Me,
2308
2218
  canTrack: e
2309
2219
  });
2310
- if (P(t))
2220
+ if (A(t))
2311
2221
  return t;
2312
2222
  {
2313
- const n = ko();
2314
- return yo({
2223
+ const n = lo();
2224
+ return co({
2315
2225
  id: n,
2316
2226
  canTrack: e
2317
2227
  }), n;
2318
2228
  }
2319
- }, ko = () => Ke(), yo = ({
2229
+ }, lo = () => Fe(), co = ({
2320
2230
  id: e,
2321
2231
  canTrack: t
2322
- }) => We({
2323
- name: De,
2232
+ }) => Ee({
2233
+ name: Me,
2324
2234
  value: e,
2325
2235
  canTrack: t
2326
- }), ze = () => v() && typeof localStorage < "u" ? localStorage : void 0, vo = ({
2236
+ }), Le = () => v() && typeof localStorage < "u" ? localStorage : void 0, uo = ({
2327
2237
  key: e,
2328
2238
  canTrack: t
2329
2239
  }) => {
2330
2240
  var n;
2331
2241
  try {
2332
- return t ? (n = ze()) == null ? void 0 : n.getItem(e) : void 0;
2242
+ return t ? (n = Le()) == null ? void 0 : n.getItem(e) : void 0;
2333
2243
  } catch (o) {
2334
2244
  console.debug("[LocalStorage] GET error: ", o);
2335
2245
  return;
2336
2246
  }
2337
- }, So = ({
2247
+ }, po = ({
2338
2248
  key: e,
2339
2249
  canTrack: t,
2340
2250
  value: n
2341
2251
  }) => {
2342
2252
  var o;
2343
2253
  try {
2344
- t && ((o = ze()) == null || o.setItem(e, n));
2254
+ t && ((o = Le()) == null || o.setItem(e, n));
2345
2255
  } catch (r) {
2346
2256
  console.debug("[LocalStorage] SET error: ", r);
2347
2257
  }
2348
- }, qe = "builderVisitorId", Co = ({
2258
+ }, He = "builderVisitorId", mo = ({
2349
2259
  canTrack: e
2350
2260
  }) => {
2351
2261
  if (!e)
2352
2262
  return;
2353
- const t = vo({
2354
- key: qe,
2263
+ const t = uo({
2264
+ key: He,
2355
2265
  canTrack: e
2356
2266
  });
2357
- if (P(t))
2267
+ if (A(t))
2358
2268
  return t;
2359
2269
  {
2360
- const n = wo();
2361
- return Io({
2270
+ const n = ho();
2271
+ return fo({
2362
2272
  id: n,
2363
2273
  canTrack: e
2364
2274
  }), n;
2365
2275
  }
2366
- }, wo = () => Ke(), Io = ({
2276
+ }, ho = () => Fe(), fo = ({
2367
2277
  id: e,
2368
2278
  canTrack: t
2369
- }) => So({
2370
- key: qe,
2279
+ }) => po({
2280
+ key: He,
2371
2281
  value: e,
2372
2282
  canTrack: t
2373
- }), $o = async ({
2283
+ }), bo = async ({
2374
2284
  canTrack: e
2375
2285
  }) => {
2376
2286
  if (!e)
@@ -2378,16 +2288,16 @@ const De = "builderSessionId", go = async ({
2378
2288
  visitorId: void 0,
2379
2289
  sessionId: void 0
2380
2290
  };
2381
- const t = await go({
2291
+ const t = await ao({
2382
2292
  canTrack: e
2383
- }), n = Co({
2293
+ }), n = mo({
2384
2294
  canTrack: e
2385
2295
  });
2386
2296
  return {
2387
2297
  sessionId: t,
2388
2298
  visitorId: n
2389
2299
  };
2390
- }, Ro = async ({
2300
+ }, go = async ({
2391
2301
  type: e,
2392
2302
  canTrack: t,
2393
2303
  apiKey: n,
@@ -2401,23 +2311,23 @@ const De = "builderSessionId", go = async ({
2401
2311
  url: location.href,
2402
2312
  ...o
2403
2313
  },
2404
- ...await $o({
2314
+ ...await bo({
2405
2315
  canTrack: t
2406
2316
  }),
2407
- userAttributes: $e(),
2317
+ userAttributes: Ce(),
2408
2318
  ownerId: n
2409
2319
  }
2410
2320
  });
2411
- async function ne(e) {
2321
+ async function Z(e) {
2412
2322
  if (!e.apiKey) {
2413
- $.error("Missing API key for track call. Please provide your API key.");
2323
+ I.error("Missing API key for track call. Please provide your API key.");
2414
2324
  return;
2415
2325
  }
2416
- if (!!e.canTrack && !T() && !!(v() || R === "reactNative"))
2326
+ if (!!e.canTrack && !R() && !!(v() || T === "reactNative"))
2417
2327
  return fetch("https://cdn.builder.io/api/v1/track", {
2418
2328
  method: "POST",
2419
2329
  body: JSON.stringify({
2420
- events: [await Ro(e)]
2330
+ events: [await go(e)]
2421
2331
  }),
2422
2332
  headers: {
2423
2333
  "content-type": "application/json"
@@ -2427,14 +2337,14 @@ async function ne(e) {
2427
2337
  console.error("Failed to track: ", t);
2428
2338
  });
2429
2339
  }
2430
- const ir = (e) => ne({
2340
+ const Xo = (e) => Z({
2431
2341
  ...e,
2432
2342
  canTrack: !0
2433
2343
  });
2434
- function be(e) {
2344
+ function me(e) {
2435
2345
  return Math.round(e * 1e3) / 1e3;
2436
2346
  }
2437
- const To = (e, t, n = !0) => {
2347
+ const ko = (e, t, n = !0) => {
2438
2348
  if (!(e instanceof HTMLElement))
2439
2349
  return null;
2440
2350
  let o = n ? e : e.parentElement;
@@ -2445,38 +2355,38 @@ const To = (e, t, n = !0) => {
2445
2355
  return o;
2446
2356
  } while (o = o.parentElement);
2447
2357
  return null;
2448
- }, Po = (e) => To(e, (t) => {
2358
+ }, yo = (e) => ko(e, (t) => {
2449
2359
  const n = t.getAttribute("builder-id") || t.id;
2450
2360
  return Boolean((n == null ? void 0 : n.indexOf("builder-")) === 0);
2451
- }), ge = ({
2361
+ }), he = ({
2452
2362
  event: e,
2453
2363
  target: t
2454
2364
  }) => {
2455
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, s = be(o / n.width), i = be(r / n.height);
2365
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = me(o / n.width), s = me(r / n.height);
2456
2366
  return {
2457
- x: s,
2458
- y: i
2367
+ x: i,
2368
+ y: s
2459
2369
  };
2460
- }, Eo = (e) => {
2461
- const t = e.target, n = t && Po(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2370
+ }, vo = (e) => {
2371
+ const t = e.target, n = t && yo(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2462
2372
  return {
2463
2373
  targetBuilderElement: o || void 0,
2464
2374
  metadata: {
2465
- targetOffset: t ? ge({
2375
+ targetOffset: t ? he({
2466
2376
  event: e,
2467
2377
  target: t
2468
2378
  }) : void 0,
2469
- builderTargetOffset: n ? ge({
2379
+ builderTargetOffset: n ? he({
2470
2380
  event: e,
2471
2381
  target: n
2472
2382
  }) : void 0,
2473
2383
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
2474
2384
  }
2475
2385
  };
2476
- }, xo = "0.11.2", ke = {};
2477
- function Bo(e, t) {
2478
- let n = ke[e];
2479
- if (n || (n = ke[e] = []), n.push(t), v()) {
2386
+ }, So = "0.11.3", fe = {};
2387
+ function Co(e, t) {
2388
+ let n = fe[e];
2389
+ if (n || (n = fe[e] = []), n.push(t), v()) {
2480
2390
  const o = {
2481
2391
  type: "builder.register",
2482
2392
  data: {
@@ -2491,8 +2401,8 @@ function Bo(e, t) {
2491
2401
  }
2492
2402
  }
2493
2403
  }
2494
- const Wo = () => {
2495
- Bo("insertMenu", {
2404
+ const wo = () => {
2405
+ Co("insertMenu", {
2496
2406
  name: "_default",
2497
2407
  default: !0,
2498
2408
  items: [{
@@ -2514,14 +2424,14 @@ const Wo = () => {
2514
2424
  }]
2515
2425
  });
2516
2426
  };
2517
- let ye = !1;
2518
- const Ao = (e = {}) => {
2427
+ let be = !1;
2428
+ const Io = (e = {}) => {
2519
2429
  var t, n;
2520
- ye || (ye = !0, v() && ((t = window.parent) == null || t.postMessage({
2430
+ be || (be = !0, v() && ((t = window.parent) == null || t.postMessage({
2521
2431
  type: "builder.sdkInfo",
2522
2432
  data: {
2523
- target: R,
2524
- version: xo,
2433
+ target: T,
2434
+ version: So,
2525
2435
  supportsPatchUpdates: !1,
2526
2436
  supportsAddBlockScoping: !0,
2527
2437
  supportsCustomBreakpoints: !0
@@ -2534,14 +2444,14 @@ const Ao = (e = {}) => {
2534
2444
  }, "*"), window.addEventListener("message", ({
2535
2445
  data: o
2536
2446
  }) => {
2537
- var r, s;
2447
+ var r, i;
2538
2448
  if (!!(o != null && o.type))
2539
2449
  switch (o.type) {
2540
2450
  case "builder.evaluate": {
2541
- const i = o.data.text, a = o.data.arguments || [], l = o.data.id, d = new Function(i);
2451
+ const s = o.data.text, a = o.data.arguments || [], l = o.data.id, c = new Function(s);
2542
2452
  let u, m = null;
2543
2453
  try {
2544
- u = d.apply(null, a);
2454
+ u = c.apply(null, a);
2545
2455
  } catch (h) {
2546
2456
  m = h;
2547
2457
  }
@@ -2560,7 +2470,7 @@ const Ao = (e = {}) => {
2560
2470
  result: h
2561
2471
  }
2562
2472
  }, "*");
2563
- }).catch(console.error) : (s = window.parent) == null || s.postMessage({
2473
+ }).catch(console.error) : (i = window.parent) == null || i.postMessage({
2564
2474
  type: "builder.evaluateResult",
2565
2475
  data: {
2566
2476
  result: u,
@@ -2571,7 +2481,7 @@ const Ao = (e = {}) => {
2571
2481
  }
2572
2482
  }
2573
2483
  })));
2574
- }, Vo = b({
2484
+ }, $o = f({
2575
2485
  name: "enable-editor",
2576
2486
  props: [
2577
2487
  "builderContextSignal",
@@ -2595,37 +2505,37 @@ const Ao = (e = {}) => {
2595
2505
  ContentWrapper: this.contentWrapper || "div",
2596
2506
  httpReqsData: {},
2597
2507
  clicked: !1,
2598
- builderContext: ee
2508
+ builderContext: Q
2599
2509
  };
2600
2510
  },
2601
2511
  provide() {
2602
2512
  const e = this;
2603
2513
  return {
2604
- [ee.key]: e.builderContextSignal
2514
+ [Q.key]: e.builderContextSignal
2605
2515
  };
2606
2516
  },
2607
2517
  mounted() {
2608
2518
  (() => {
2609
2519
  var n, o;
2610
2520
  if (v()) {
2611
- if (T() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
2521
+ if (R() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
2612
2522
  new CustomEvent("initeditingbldr")
2613
2523
  ), this.builderContextSignal.content && j(this.canTrack)) {
2614
- const s = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, i = (o = this.builderContextSignal.content) == null ? void 0 : o.id, a = this.apiKey;
2615
- ne({
2524
+ const i = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, s = (o = this.builderContextSignal.content) == null ? void 0 : o.id, a = this.apiKey;
2525
+ Z({
2616
2526
  type: "impression",
2617
2527
  canTrack: !0,
2618
- contentId: i,
2528
+ contentId: s,
2619
2529
  apiKey: a,
2620
- variationId: s !== i ? s : void 0
2530
+ variationId: i !== s ? i : void 0
2621
2531
  });
2622
2532
  }
2623
- fo() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
2533
+ io() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
2624
2534
  new CustomEvent("initpreviewingbldr")
2625
2535
  );
2626
2536
  }
2627
2537
  })(), (() => {
2628
- this.apiKey || $.error(
2538
+ this.apiKey || I.error(
2629
2539
  "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
2630
2540
  ), this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
2631
2541
  })();
@@ -2696,7 +2606,7 @@ const Ao = (e = {}) => {
2696
2606
  },
2697
2607
  methods: {
2698
2608
  mergeNewContent(e) {
2699
- var n, o, r, s, i;
2609
+ var n, o, r, i, s;
2700
2610
  const t = {
2701
2611
  ...this.builderContextSignal.content,
2702
2612
  ...e,
@@ -2707,7 +2617,7 @@ const Ao = (e = {}) => {
2707
2617
  meta: {
2708
2618
  ...(o = this.builderContextSignal.content) == null ? void 0 : o.meta,
2709
2619
  ...e == null ? void 0 : e.meta,
2710
- breakpoints: ((r = e == null ? void 0 : e.meta) == null ? void 0 : r.breakpoints) || ((i = (s = this.builderContextSignal.content) == null ? void 0 : s.meta) == null ? void 0 : i.breakpoints)
2620
+ breakpoints: ((r = e == null ? void 0 : e.meta) == null ? void 0 : r.breakpoints) || ((s = (i = this.builderContextSignal.content) == null ? void 0 : i.meta) == null ? void 0 : s.breakpoints)
2711
2621
  }
2712
2622
  };
2713
2623
  this.builderContextSignal.content = t;
@@ -2718,8 +2628,8 @@ const Ao = (e = {}) => {
2718
2628
  if (t)
2719
2629
  switch (t.type) {
2720
2630
  case "builder.configureSdk": {
2721
- const o = t.data, { breakpoints: r, contentId: s } = o;
2722
- if (!s || s !== ((n = this.builderContextSignal.content) == null ? void 0 : n.id))
2631
+ const o = t.data, { breakpoints: r, contentId: i } = o;
2632
+ if (!i || i !== ((n = this.builderContextSignal.content) == null ? void 0 : n.id))
2723
2633
  return;
2724
2634
  r && this.mergeNewContent({
2725
2635
  meta: {
@@ -2729,8 +2639,8 @@ const Ao = (e = {}) => {
2729
2639
  break;
2730
2640
  }
2731
2641
  case "builder.contentUpdate": {
2732
- const o = t.data, r = o.key || o.alias || o.entry || o.modelName, s = o.data;
2733
- r === this.model && (this.mergeNewContent(s), this.forceReRenderCount = this.forceReRenderCount + 1);
2642
+ const o = t.data, r = o.key || o.alias || o.entry || o.modelName, i = o.data;
2643
+ r === this.model && (this.mergeNewContent(i), this.forceReRenderCount = this.forceReRenderCount + 1);
2734
2644
  break;
2735
2645
  }
2736
2646
  }
@@ -2738,7 +2648,7 @@ const Ao = (e = {}) => {
2738
2648
  evaluateJsCode() {
2739
2649
  var t, n;
2740
2650
  const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
2741
- e && D({
2651
+ e && K({
2742
2652
  code: e,
2743
2653
  context: this.context || {},
2744
2654
  localState: void 0,
@@ -2750,13 +2660,13 @@ const Ao = (e = {}) => {
2750
2660
  var t, n;
2751
2661
  if (this.builderContextSignal.content) {
2752
2662
  const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
2753
- ne({
2663
+ Z({
2754
2664
  type: "click",
2755
2665
  canTrack: j(this.canTrack),
2756
2666
  contentId: r,
2757
2667
  apiKey: this.apiKey,
2758
2668
  variationId: o !== r ? o : void 0,
2759
- ...Eo(e),
2669
+ ...vo(e),
2760
2670
  unique: !this.clicked
2761
2671
  });
2762
2672
  }
@@ -2765,7 +2675,7 @@ const Ao = (e = {}) => {
2765
2675
  evalExpression(e) {
2766
2676
  return e.replace(
2767
2677
  /{{([^}]+)}}/g,
2768
- (t, n) => D({
2678
+ (t, n) => K({
2769
2679
  code: n,
2770
2680
  context: this.context || {},
2771
2681
  localState: void 0,
@@ -2775,13 +2685,13 @@ const Ao = (e = {}) => {
2775
2685
  );
2776
2686
  },
2777
2687
  handleRequest({ url: e, key: t }) {
2778
- Fe(e).then((n) => n.json()).then((n) => {
2779
- var r, s;
2688
+ Oe(e).then((n) => n.json()).then((n) => {
2689
+ var r, i;
2780
2690
  const o = {
2781
2691
  ...this.builderContextSignal.rootState,
2782
2692
  [t]: n
2783
2693
  };
2784
- (s = (r = this.builderContextSignal).rootSetState) == null || s.call(r, o), this.httpReqsData[t] = !0;
2694
+ (i = (r = this.builderContextSignal).rootSetState) == null || i.call(r, o), this.httpReqsData[t] = !0;
2785
2695
  }).catch((n) => {
2786
2696
  console.error("error fetching dynamic data", e, n);
2787
2697
  });
@@ -2789,18 +2699,18 @@ const Ao = (e = {}) => {
2789
2699
  runHttpRequests() {
2790
2700
  var t, n, o;
2791
2701
  const e = (o = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) != null ? o : {};
2792
- Object.entries(e).forEach(([r, s]) => {
2793
- if (s && (!this.httpReqsData[r] || T())) {
2794
- const i = this.evalExpression(s);
2702
+ Object.entries(e).forEach(([r, i]) => {
2703
+ if (i && (!this.httpReqsData[r] || R())) {
2704
+ const s = this.evalExpression(i);
2795
2705
  this.handleRequest({
2796
- url: i,
2706
+ url: s,
2797
2707
  key: r
2798
2708
  });
2799
2709
  }
2800
2710
  });
2801
2711
  },
2802
2712
  emitStateUpdate() {
2803
- T() && window.dispatchEvent(
2713
+ R() && window.dispatchEvent(
2804
2714
  new CustomEvent(
2805
2715
  "builder:component:stateChange",
2806
2716
  {
@@ -2815,7 +2725,7 @@ const Ao = (e = {}) => {
2815
2725
  );
2816
2726
  },
2817
2727
  elementRef_onIniteditingbldr(e) {
2818
- this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage), Wo(), Ao({
2728
+ this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage), wo(), Io({
2819
2729
  ...this.locale ? {
2820
2730
  locale: this.locale
2821
2731
  } : {},
@@ -2829,7 +2739,7 @@ const Ao = (e = {}) => {
2829
2739
  this.builderContextSignal.componentInfos
2830
2740
  ).forEach((t) => {
2831
2741
  var o;
2832
- const n = Gn(t);
2742
+ const n = Un(t);
2833
2743
  (o = window.parent) == null || o.postMessage(n, "*");
2834
2744
  }), window.addEventListener(
2835
2745
  "builder:component:stateChangeListenerActivated",
@@ -2840,12 +2750,12 @@ const Ao = (e = {}) => {
2840
2750
  const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
2841
2751
  `builder.preview.${n}`
2842
2752
  ), r = t.get("apiKey") || t.get("builder.space");
2843
- n === this.model && r === this.apiKey && (!this.content || o === this.content.id) && J({
2753
+ n === this.model && r === this.apiKey && (!this.content || o === this.content.id) && q({
2844
2754
  model: this.model,
2845
2755
  apiKey: this.apiKey,
2846
2756
  apiVersion: this.builderContextSignal.apiVersion
2847
- }).then((s) => {
2848
- s && this.mergeNewContent(s);
2757
+ }).then((i) => {
2758
+ i && this.mergeNewContent(i);
2849
2759
  });
2850
2760
  },
2851
2761
  _classStringToObject(e) {
@@ -2859,19 +2769,19 @@ const Ao = (e = {}) => {
2859
2769
  }
2860
2770
  }
2861
2771
  });
2862
- function _o(e, t, n, o, r, s) {
2863
- var i, a, l;
2864
- return e.builderContextSignal.content ? (c(), y(Ce(e.ContentWrapper), w({
2772
+ function Ro(e, t, n, o, r, i) {
2773
+ var s, a, l;
2774
+ return e.builderContextSignal.content ? (d(), y(ke(e.ContentWrapper), C({
2865
2775
  key: e.forceReRenderCount,
2866
2776
  ref: "elementRef",
2867
- onClick: (d) => e.onClick(d),
2868
- "builder-content-id": (i = e.builderContextSignal.content) == null ? void 0 : i.id,
2777
+ onClick: (c) => e.onClick(c),
2778
+ "builder-content-id": (s = e.builderContextSignal.content) == null ? void 0 : s.id,
2869
2779
  "builder-model": e.model,
2870
2780
  class: e._classStringToObject(
2871
2781
  `variant-${((a = e.content) == null ? void 0 : a.testVariationId) || ((l = e.content) == null ? void 0 : l.id)}`
2872
2782
  ),
2873
- onIniteditingbldr: (d) => e.elementRef_onIniteditingbldr(d),
2874
- onInitpreviewingbldr: (d) => e.elementRef_onInitpreviewingbldr(d)
2783
+ onIniteditingbldr: (c) => e.elementRef_onIniteditingbldr(c),
2784
+ onInitpreviewingbldr: (c) => e.elementRef_onInitpreviewingbldr(c)
2875
2785
  }, {
2876
2786
  ...e.showContent ? {} : {
2877
2787
  hidden: !0,
@@ -2883,11 +2793,11 @@ function _o(e, t, n, o, r, s) {
2883
2793
  x(e.$slots, "default")
2884
2794
  ]),
2885
2795
  _: 3
2886
- }, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : f("v-if", !0);
2796
+ }, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : g("v-if", !0);
2887
2797
  }
2888
- const Oo = /* @__PURE__ */ g(Vo, [["render", _o], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content/components/enable-editor.vue"]]), No = (e) => {
2889
- var s, i;
2890
- const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = (i = e.fileUrl) != null ? i : (s = e == null ? void 0 : e.files) == null ? void 0 : s.regular;
2798
+ const To = /* @__PURE__ */ b($o, [["render", Ro], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content/components/enable-editor.vue"]]), Eo = (e) => {
2799
+ var i, s;
2800
+ 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;
2891
2801
  let r = "";
2892
2802
  if (o && t && n && (r += `
2893
2803
  @font-face {
@@ -2900,37 +2810,37 @@ font-weight: 400;
2900
2810
  for (const a in e.files) {
2901
2811
  if (!(String(Number(a)) === a))
2902
2812
  continue;
2903
- const d = e.files[a];
2904
- d && d !== o && (r += `
2813
+ const c = e.files[a];
2814
+ c && c !== o && (r += `
2905
2815
  @font-face {
2906
2816
  font-family: "${t}";
2907
- src: url('${d}') format('woff2');
2817
+ src: url('${c}') format('woff2');
2908
2818
  font-display: fallback;
2909
2819
  font-weight: ${a};
2910
2820
  }
2911
2821
  `.trim());
2912
2822
  }
2913
2823
  return r;
2914
- }, jo = ({
2824
+ }, Po = ({
2915
2825
  customFonts: e
2916
2826
  }) => {
2917
2827
  var t;
2918
- return ((t = e == null ? void 0 : e.map((n) => No(n))) == null ? void 0 : t.join(" ")) || "";
2919
- }, Uo = ({
2828
+ return ((t = e == null ? void 0 : e.map((n) => Eo(n))) == null ? void 0 : t.join(" ")) || "";
2829
+ }, xo = ({
2920
2830
  cssCode: e,
2921
2831
  contentId: t
2922
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Fo = b({
2832
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Bo = f({
2923
2833
  name: "content-styles",
2924
- components: { InlinedStyles: G },
2834
+ components: { InlinedStyles: te },
2925
2835
  props: ["cssCode", "contentId", "customFonts"],
2926
2836
  data() {
2927
2837
  return {
2928
2838
  injectedStyles: `
2929
- ${Uo({
2839
+ ${xo({
2930
2840
  cssCode: this.cssCode,
2931
2841
  contentId: this.contentId
2932
2842
  })}
2933
- ${jo({
2843
+ ${Po({
2934
2844
  customFonts: this.customFonts
2935
2845
  })}
2936
2846
 
@@ -2950,18 +2860,18 @@ ${jo({
2950
2860
  };
2951
2861
  }
2952
2862
  });
2953
- function Mo(e, t, n, o, r, s) {
2954
- const i = k("inlined-styles");
2955
- return c(), y(i, { styles: e.injectedStyles }, null, 8, ["styles"]);
2863
+ function Wo(e, t, n, o, r, i) {
2864
+ const s = k("inlined-styles");
2865
+ return d(), y(s, { styles: e.injectedStyles }, null, 8, ["styles"]);
2956
2866
  }
2957
- const Lo = /* @__PURE__ */ g(Fo, [["render", Mo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content/components/styles.vue"]]), Ho = ({
2867
+ const Ao = /* @__PURE__ */ b(Bo, [["render", Wo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content/components/styles.vue"]]), Vo = ({
2958
2868
  content: e,
2959
2869
  data: t,
2960
2870
  locale: n
2961
2871
  }) => {
2962
- var s, i, a;
2963
- const o = {}, r = ((s = e == null ? void 0 : e.data) == null ? void 0 : s.state) || {};
2964
- return (a = (i = e == null ? void 0 : e.data) == null ? void 0 : i.inputs) == null || a.forEach((l) => {
2872
+ var i, s, a;
2873
+ const o = {}, r = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.state) || {};
2874
+ return (a = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || a.forEach((l) => {
2965
2875
  l.name && l.defaultValue !== void 0 && (o[l.name] = l.defaultValue);
2966
2876
  }), {
2967
2877
  ...o,
@@ -2971,7 +2881,7 @@ const Lo = /* @__PURE__ */ g(Fo, [["render", Mo], ["__file", "/home/runner/work/
2971
2881
  locale: n
2972
2882
  } : {}
2973
2883
  };
2974
- }, Ko = ({
2884
+ }, _o = ({
2975
2885
  content: e,
2976
2886
  data: t
2977
2887
  }) => e ? {
@@ -2981,13 +2891,13 @@ const Lo = /* @__PURE__ */ g(Fo, [["render", Mo], ["__file", "/home/runner/work/
2981
2891
  ...t
2982
2892
  },
2983
2893
  meta: e == null ? void 0 : e.meta
2984
- } : void 0, Do = Ye, zo = b({
2894
+ } : void 0, Oo = ze, No = f({
2985
2895
  name: "content-component",
2986
2896
  components: {
2987
- EnableEditor: Oo,
2988
- InlinedScript: Ue,
2989
- ContentStyles: Lo,
2990
- Blocks: oe
2897
+ EnableEditor: To,
2898
+ InlinedScript: _e,
2899
+ ContentStyles: Ao,
2900
+ Blocks: ee
2991
2901
  },
2992
2902
  props: [
2993
2903
  "content",
@@ -3011,31 +2921,31 @@ const Lo = /* @__PURE__ */ g(Fo, [["render", Mo], ["__file", "/home/runner/work/
3011
2921
  data() {
3012
2922
  var e, t;
3013
2923
  return {
3014
- scriptStr: oo({
2924
+ scriptStr: Gn({
3015
2925
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
3016
2926
  contentId: (t = this.content) == null ? void 0 : t.id
3017
2927
  }),
3018
2928
  registeredComponents: [
3019
- ...pe(),
3020
- ...me,
2929
+ ...ce(),
2930
+ ...de,
3021
2931
  ...this.customComponents || []
3022
2932
  ].reduce(
3023
2933
  (n, { component: o, ...r }) => ({
3024
2934
  ...n,
3025
2935
  [r.name]: {
3026
- component: Do(o),
3027
- ...te(r)
2936
+ component: Oo(o),
2937
+ ...X(r)
3028
2938
  }
3029
2939
  }),
3030
2940
  {}
3031
2941
  ),
3032
2942
  builderContextSignal: {
3033
- content: Ko({
2943
+ content: _o({
3034
2944
  content: this.content,
3035
2945
  data: this.data
3036
2946
  }),
3037
2947
  localState: void 0,
3038
- rootState: Ho({
2948
+ rootState: Vo({
3039
2949
  content: this.content,
3040
2950
  data: this.data,
3041
2951
  locale: this.locale
@@ -3045,13 +2955,13 @@ const Lo = /* @__PURE__ */ g(Fo, [["render", Mo], ["__file", "/home/runner/work/
3045
2955
  apiKey: this.apiKey,
3046
2956
  apiVersion: this.apiVersion,
3047
2957
  componentInfos: [
3048
- ...pe(),
3049
- ...me,
2958
+ ...ce(),
2959
+ ...de,
3050
2960
  ...this.customComponents || []
3051
2961
  ].reduce(
3052
2962
  (n, { component: o, ...r }) => ({
3053
2963
  ...n,
3054
- [r.name]: te(r)
2964
+ [r.name]: X(r)
3055
2965
  }),
3056
2966
  {}
3057
2967
  ),
@@ -3059,13 +2969,13 @@ const Lo = /* @__PURE__ */ g(Fo, [["render", Mo], ["__file", "/home/runner/work/
3059
2969
  BlocksWrapper: this.blocksWrapper || "div",
3060
2970
  BlocksWrapperProps: this.blocksWrapperProps || {}
3061
2971
  },
3062
- TARGET: R
2972
+ TARGET: T
3063
2973
  };
3064
2974
  },
3065
2975
  provide() {
3066
2976
  const e = this;
3067
2977
  return {
3068
- [Ie.key]: {
2978
+ [Se.key]: {
3069
2979
  registeredComponents: e.registeredComponents
3070
2980
  }
3071
2981
  };
@@ -3076,9 +2986,9 @@ const Lo = /* @__PURE__ */ g(Fo, [["render", Mo], ["__file", "/home/runner/work/
3076
2986
  }
3077
2987
  }
3078
2988
  });
3079
- function qo(e, t, n, o, r, s) {
3080
- const i = k("inlined-script"), a = k("content-styles"), l = k("blocks"), d = k("enable-editor");
3081
- return c(), y(d, w({
2989
+ function jo(e, t, n, o, r, i) {
2990
+ const s = k("inlined-script"), a = k("content-styles"), l = k("blocks"), c = k("enable-editor");
2991
+ return d(), y(c, C({
3082
2992
  content: e.content,
3083
2993
  model: e.model,
3084
2994
  context: e.context,
@@ -3093,20 +3003,20 @@ function qo(e, t, n, o, r, s) {
3093
3003
  contentWrapperProps: e.contentWrapperProps
3094
3004
  }, {}), {
3095
3005
  default: U(() => {
3096
- var u, m, h, S, A, V, _;
3006
+ var u, m, h, S, B, W, V;
3097
3007
  return [
3098
- e.isSsrAbTest ? (c(), y(i, {
3008
+ e.isSsrAbTest ? (d(), y(s, {
3099
3009
  key: 0,
3100
3010
  scriptStr: e.scriptStr
3101
- }, null, 8, ["scriptStr"])) : f("v-if", !0),
3102
- e.TARGET !== "reactNative" ? (c(), y(a, {
3011
+ }, null, 8, ["scriptStr"])) : g("v-if", !0),
3012
+ e.TARGET !== "reactNative" ? (d(), y(a, {
3103
3013
  key: 1,
3104
3014
  contentId: (u = e.builderContextSignal.content) == null ? void 0 : u.id,
3105
3015
  cssCode: (h = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : h.cssCode,
3106
- customFonts: (A = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : A.customFonts
3107
- }, null, 8, ["contentId", "cssCode", "customFonts"])) : f("v-if", !0),
3108
- W(l, {
3109
- blocks: (_ = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : _.blocks,
3016
+ customFonts: (B = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : B.customFonts
3017
+ }, null, 8, ["contentId", "cssCode", "customFonts"])) : g("v-if", !0),
3018
+ P(l, {
3019
+ blocks: (V = (W = e.builderContextSignal.content) == null ? void 0 : W.data) == null ? void 0 : V.blocks,
3110
3020
  context: e.builderContextSignal,
3111
3021
  registeredComponents: e.registeredComponents
3112
3022
  }, null, 8, ["blocks", "context", "registeredComponents"])
@@ -3115,12 +3025,12 @@ function qo(e, t, n, o, r, s) {
3115
3025
  _: 1
3116
3026
  }, 16, ["content", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps"]);
3117
3027
  }
3118
- const Go = /* @__PURE__ */ g(zo, [["render", qo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content/content.vue"]]), Jo = b({
3028
+ const Uo = /* @__PURE__ */ b(No, [["render", jo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content/content.vue"]]), Fo = f({
3119
3029
  name: "content-variants",
3120
3030
  components: {
3121
- InlinedScript: Ue,
3122
- InlinedStyles: G,
3123
- ContentComponent: Go
3031
+ InlinedScript: _e,
3032
+ InlinedStyles: te,
3033
+ ContentComponent: Uo
3124
3034
  },
3125
3035
  props: [
3126
3036
  "canTrack",
@@ -3142,12 +3052,12 @@ const Go = /* @__PURE__ */ g(zo, [["render", qo], ["__file", "/home/runner/work/
3142
3052
  ],
3143
3053
  data() {
3144
3054
  return {
3145
- shouldRenderVariants: Zn({
3055
+ shouldRenderVariants: Dn({
3146
3056
  canTrack: j(this.canTrack),
3147
3057
  content: this.content
3148
3058
  }),
3149
- TARGET: R,
3150
- getScriptString: to,
3059
+ TARGET: T,
3060
+ getScriptString: zn,
3151
3061
  getVariants: H
3152
3062
  };
3153
3063
  },
@@ -3157,7 +3067,7 @@ const Go = /* @__PURE__ */ g(zo, [["render", qo], ["__file", "/home/runner/work/
3157
3067
  computed: {
3158
3068
  updateCookieAndStylesScriptStr() {
3159
3069
  var e;
3160
- return no(
3070
+ return qn(
3161
3071
  H(this.content).map((t) => ({
3162
3072
  id: t.testVariationId,
3163
3073
  testRatio: t.testRatio
@@ -3173,28 +3083,28 @@ const Go = /* @__PURE__ */ g(zo, [["render", qo], ["__file", "/home/runner/work/
3173
3083
  return this.shouldRenderVariants ? {
3174
3084
  ...this.content,
3175
3085
  testVariationId: (e = this.content) == null ? void 0 : e.id
3176
- } : cn({
3086
+ } : Zt({
3177
3087
  item: this.content,
3178
3088
  canTrack: j(this.canTrack)
3179
3089
  });
3180
3090
  }
3181
3091
  }
3182
3092
  });
3183
- function Yo(e, t, n, o, r, s) {
3184
- var d;
3185
- const i = k("inlined-script"), a = k("inlined-styles"), l = k("content-component");
3186
- return c(), p(C, null, [
3187
- !e.__isNestedRender && e.TARGET !== "reactNative" ? (c(), y(i, {
3093
+ function Mo(e, t, n, o, r, i) {
3094
+ var c;
3095
+ const s = k("inlined-script"), a = k("inlined-styles"), l = k("content-component");
3096
+ return d(), p($, null, [
3097
+ !e.__isNestedRender && e.TARGET !== "reactNative" ? (d(), y(s, {
3188
3098
  key: 0,
3189
3099
  scriptStr: e.getScriptString()
3190
- }, null, 8, ["scriptStr"])) : f("v-if", !0),
3191
- e.shouldRenderVariants ? (c(), p(C, { key: 1 }, [
3192
- W(a, {
3193
- id: `variants-styles-${(d = e.content) == null ? void 0 : d.id}`,
3100
+ }, null, 8, ["scriptStr"])) : g("v-if", !0),
3101
+ e.shouldRenderVariants ? (d(), p($, { key: 1 }, [
3102
+ P(a, {
3103
+ id: `variants-styles-${(c = e.content) == null ? void 0 : c.id}`,
3194
3104
  styles: e.hideVariantsStyleString
3195
3105
  }, null, 8, ["id", "styles"]),
3196
- W(i, { scriptStr: e.updateCookieAndStylesScriptStr }, null, 8, ["scriptStr"]),
3197
- (c(!0), p(C, null, B(e.getVariants(e.content), (u, m) => (c(), y(l, {
3106
+ P(s, { scriptStr: e.updateCookieAndStylesScriptStr }, null, 8, ["scriptStr"]),
3107
+ (d(!0), p($, null, N(e.getVariants(e.content), (u, m) => (d(), y(l, {
3198
3108
  key: u.testVariationId,
3199
3109
  content: u,
3200
3110
  showContent: !1,
@@ -3214,8 +3124,8 @@ function Yo(e, t, n, o, r, s) {
3214
3124
  contentWrapper: e.contentWrapper,
3215
3125
  contentWrapperProps: e.contentWrapperProps
3216
3126
  }, null, 8, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps"]))), 128))
3217
- ], 64)) : f("v-if", !0),
3218
- W(l, w({
3127
+ ], 64)) : g("v-if", !0),
3128
+ P(l, C({
3219
3129
  content: e.defaultContent,
3220
3130
  showContent: !0,
3221
3131
  model: e.model,
@@ -3238,12 +3148,12 @@ function Yo(e, t, n, o, r, s) {
3238
3148
  }), null, 16, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps"])
3239
3149
  ], 64);
3240
3150
  }
3241
- const Ge = /* @__PURE__ */ g(Jo, [["render", Yo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content-variants/content-variants.vue"]]), Qo = async ({
3151
+ const De = /* @__PURE__ */ b(Fo, [["render", Mo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content-variants/content-variants.vue"]]), Lo = async ({
3242
3152
  builderContextValue: e,
3243
3153
  symbol: t
3244
3154
  }) => {
3245
3155
  if ((t == null ? void 0 : t.model) && (e == null ? void 0 : e.apiKey))
3246
- return J({
3156
+ return q({
3247
3157
  model: t.model,
3248
3158
  apiKey: e.apiKey,
3249
3159
  apiVersion: e.apiVersion,
@@ -3253,11 +3163,11 @@ const Ge = /* @__PURE__ */ g(Jo, [["render", Yo], ["__file", "/home/runner/work/
3253
3163
  }
3254
3164
  }
3255
3165
  }).catch((n) => {
3256
- $.error("Could not fetch symbol content: ", n);
3166
+ I.error("Could not fetch symbol content: ", n);
3257
3167
  });
3258
- }, Xo = b({
3168
+ }, Ho = f({
3259
3169
  name: "builder-symbol",
3260
- components: { ContentVariants: Ge },
3170
+ components: { ContentVariants: De },
3261
3171
  props: [
3262
3172
  "js",
3263
3173
  "attributes",
@@ -3268,7 +3178,7 @@ const Ge = /* @__PURE__ */ g(Jo, [["render", Yo], ["__file", "/home/runner/work/
3268
3178
  ],
3269
3179
  data() {
3270
3180
  var e;
3271
- return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: q };
3181
+ return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: z };
3272
3182
  },
3273
3183
  mounted() {
3274
3184
  this.setContent();
@@ -3299,7 +3209,7 @@ const Ge = /* @__PURE__ */ g(Jo, [["render", Yo], ["__file", "/home/runner/work/
3299
3209
  },
3300
3210
  methods: {
3301
3211
  setContent() {
3302
- this.contentToUse || Qo({
3212
+ this.contentToUse || Lo({
3303
3213
  symbol: this.symbol,
3304
3214
  builderContextValue: this.builderContext
3305
3215
  }).then((e) => {
@@ -3317,13 +3227,13 @@ const Ge = /* @__PURE__ */ g(Jo, [["render", Yo], ["__file", "/home/runner/work/
3317
3227
  }
3318
3228
  }
3319
3229
  });
3320
- function Zo(e, t, n, o, r, s) {
3321
- var a, l, d, u;
3322
- const i = k("content-variants");
3323
- return c(), p("div", w({
3230
+ function Do(e, t, n, o, r, i) {
3231
+ var a, l, c, u;
3232
+ const s = k("content-variants");
3233
+ return d(), p("div", C({
3324
3234
  class: e._classStringToObject(e.className)
3325
- }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, N(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3326
- W(i, {
3235
+ }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3236
+ P(s, {
3327
3237
  __isNestedRender: !0,
3328
3238
  apiVersion: e.builderContext.apiVersion,
3329
3239
  apiKey: e.builderContext.apiKey,
@@ -3332,26 +3242,26 @@ function Zo(e, t, n, o, r, s) {
3332
3242
  data: {
3333
3243
  ...(a = e.symbol) == null ? void 0 : a.data,
3334
3244
  ...e.builderContext.localState,
3335
- ...(d = (l = e.contentToUse) == null ? void 0 : l.data) == null ? void 0 : d.state
3245
+ ...(c = (l = e.contentToUse) == null ? void 0 : l.data) == null ? void 0 : c.state
3336
3246
  },
3337
3247
  model: (u = e.symbol) == null ? void 0 : u.model,
3338
3248
  content: e.contentToUse
3339
3249
  }, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content"])
3340
3250
  ], 16);
3341
3251
  }
3342
- const er = /* @__PURE__ */ g(Xo, [["render", Zo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/symbol/symbol.vue"]]), ar = oe, lr = Ge, ve = {};
3343
- function cr(e) {
3252
+ const Ko = /* @__PURE__ */ b(Ho, [["render", Do], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/symbol/symbol.vue"]]), Zo = ee, er = De, ge = {};
3253
+ function tr(e) {
3344
3254
  if (v()) {
3345
- Object.assign(ve, e);
3255
+ Object.assign(ge, e);
3346
3256
  const t = {
3347
3257
  type: "builder.settingsChange",
3348
- data: ve
3258
+ data: ge
3349
3259
  };
3350
3260
  parent.postMessage(t, "*");
3351
3261
  }
3352
3262
  }
3353
- const dr = async (e) => {
3354
- var o, r, s;
3263
+ const nr = async (e) => {
3264
+ var o, r, i;
3355
3265
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
3356
3266
  ...e,
3357
3267
  apiKey: e.apiKey,
@@ -3362,47 +3272,50 @@ const dr = async (e) => {
3362
3272
  urlPath: t
3363
3273
  } : {}
3364
3274
  },
3365
- options: Me(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
3275
+ options: Ne(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
3366
3276
  };
3367
3277
  return {
3368
3278
  apiKey: n.apiKey,
3369
3279
  model: n.model,
3370
- content: await J(n)
3280
+ content: await q(n)
3371
3281
  };
3372
3282
  };
3373
3283
  export {
3374
- Re as B,
3375
- Ge as C,
3376
- Mt as F,
3377
- Jt as I,
3378
- ar as R,
3379
- Xt as S,
3380
- R as T,
3381
- qn as V,
3382
- g as _,
3383
- Ee as a,
3384
- ee as b,
3385
- st as c,
3386
- oe as d,
3387
- D as e,
3388
- lr as f,
3389
- et as g,
3390
- jt as h,
3391
- er as i,
3392
- jn as j,
3393
- T as k,
3394
- fo as l,
3395
- Gn as m,
3396
- ho as n,
3397
- He as o,
3398
- J as p,
3399
- sr as q,
3400
- Bo as r,
3401
- cr as s,
3402
- rr as t,
3403
- Me as u,
3404
- ir as v,
3405
- Do as w,
3406
- dr as x,
3407
- or as y
3284
+ nr as A,
3285
+ Ie as B,
3286
+ De as C,
3287
+ Go as D,
3288
+ Wt as F,
3289
+ te as I,
3290
+ Zo as R,
3291
+ Ht as S,
3292
+ T,
3293
+ jn as V,
3294
+ b as _,
3295
+ Rt as a,
3296
+ Jo as b,
3297
+ A as c,
3298
+ Q as d,
3299
+ K as e,
3300
+ ee as f,
3301
+ we as g,
3302
+ er as h,
3303
+ Ye as i,
3304
+ Pt as j,
3305
+ Ft as k,
3306
+ Ko as l,
3307
+ Pn as m,
3308
+ R as n,
3309
+ io as o,
3310
+ Un as p,
3311
+ ro as q,
3312
+ Co as r,
3313
+ tr as s,
3314
+ Ue as t,
3315
+ q as u,
3316
+ Qo as v,
3317
+ Oo as w,
3318
+ Yo as x,
3319
+ Ne as y,
3320
+ Xo as z
3408
3321
  };