@builder.io/sdk-vue 0.11.1 → 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 (133) 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/{node/block-wrapper.f2c88f1b.js → browser/block-wrapper.56a0b862.js} +3 -3
  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/{node/component-ref.130474d3.js → browser/component-ref.6b764356.js} +38 -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.3fb3fc2a.js → browser/get-block-actions.ea82379d.js} +11 -10
  34. package/lib/browser/{index.81d49325.js → index.cf8f3cf0.js} +686 -773
  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.0e1c5e05.cjs +1 -0
  39. package/lib/{edge/repeated-block.c411bac0.js → browser/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.7f48d4fe.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/edge/{component-ref.d68927ae.js → 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.c6593feb.js → edge/get-block-actions.f0aac0c8.js} +4 -4
  73. package/lib/edge/{index.e790fe96.cjs → index.6014202a.cjs} +26 -31
  74. package/lib/edge/{index.382b8dbf.js → index.6b327d2e.js} +1228 -1316
  75. package/lib/edge/index.cjs +1 -1
  76. package/lib/edge/index.js +25 -26
  77. package/lib/{node/repeated-block.2c78eba4.js → edge/repeated-block.2b8fbf14.js} +6 -8
  78. package/lib/edge/repeated-block.409149dc.cjs +1 -0
  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/{browser/component-ref.882caae9.js → node/component-ref.2211624f.js} +41 -49
  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.4fc76296.js → node/get-block-actions.f7b1ef76.js} +4 -4
  112. package/lib/node/{index.cc3260e1.js → index.29fcda33.js} +278 -366
  113. package/lib/node/{index.356c6953.cjs → index.c9e2c835.cjs} +6 -11
  114. package/lib/node/index.cjs +1 -1
  115. package/lib/node/index.js +24 -25
  116. package/lib/{edge/repeated-block.ffceb5bb.cjs → node/repeated-block.bf2609f9.cjs} +1 -1
  117. package/lib/{browser/repeated-block.cca0a723.js → node/repeated-block.f9ea4988.js} +3 -3
  118. package/lib/node/server-index.d.ts +10 -1
  119. package/nuxt.js +10 -0
  120. package/package.json +57 -2
  121. package/lib/browser/block-wrapper.24616a36.cjs +0 -1
  122. package/lib/browser/component-ref.6a1f9724.cjs +0 -1
  123. package/lib/browser/get-block-actions.db148a56.cjs +0 -1
  124. package/lib/browser/index.aa209acd.cjs +0 -161
  125. package/lib/browser/repeated-block.83d2cfa3.cjs +0 -1
  126. package/lib/edge/block-wrapper.3c4203ff.cjs +0 -1
  127. package/lib/edge/block-wrapper.f4a95bbc.js +0 -55
  128. package/lib/edge/component-ref.27cab64c.cjs +0 -1
  129. package/lib/edge/get-block-actions.c7759664.cjs +0 -1
  130. package/lib/node/block-wrapper.1d4009cf.cjs +0 -1
  131. package/lib/node/component-ref.065ff556.cjs +0 -1
  132. package/lib/node/get-block-actions.ca43c4fe.cjs +0 -1
  133. package/lib/node/repeated-block.4c468fb3.cjs +0 -1
@@ -1,17 +1,16 @@
1
- import "./style.css";
2
- import { defineComponent, openBlock, createElementBlock, mergeProps, toHandlers, toDisplayString, defineAsyncComponent, resolveComponent, Fragment as Fragment$1, createBlock, createCommentVNode, renderList, withCtx, createVNode, h, resolveDynamicComponent, renderSlot, createElementVNode, normalizeStyle, normalizeClass, markRaw } from "vue";
1
+ import { defineComponent, openBlock, createElementBlock, mergeProps, toHandlers, toDisplayString, defineAsyncComponent, resolveComponent, Fragment as Fragment$1, createVNode, createBlock, createCommentVNode, renderList, withCtx, resolveDynamicComponent, renderSlot, h, createElementVNode, normalizeStyle, normalizeClass, markRaw } from "vue";
3
2
  import { createRequire } from "node:module";
4
3
  function filterAttrs(e = {}, t, n) {
5
4
  const o = {};
6
5
  for (const r in e) {
7
6
  if (!e[r] || n && !r.startsWith(t))
8
7
  continue;
9
- const s = n ? r.replace(t, "") : r;
10
- o[s] = e[r];
8
+ const i = n ? r.replace(t, "") : r;
9
+ o[i] = e[r];
11
10
  }
12
11
  return o;
13
12
  }
14
- const _sfc_main$k = defineComponent({
13
+ const _sfc_main$j = defineComponent({
15
14
  name: "builder-button",
16
15
  props: ["attributes", "text", "link", "openLinkInNewTab"],
17
16
  data() {
@@ -34,7 +33,7 @@ const _sfc_main$k = defineComponent({
34
33
  n[o] = r;
35
34
  return n;
36
35
  }, _hoisted_1$6 = ["href", "target"];
37
- function _sfc_render$i(e, t, n, o, r, s) {
36
+ function _sfc_render$h(e, t, n, o, r, i) {
38
37
  return e.link ? (openBlock(), createElementBlock("a", mergeProps({
39
38
  key: 0,
40
39
  href: e.link,
@@ -46,7 +45,7 @@ function _sfc_render$i(e, t, n, o, r, s) {
46
45
  class: e._classStringToObject(e.attributes.class + " button-21azgz5avex")
47
46
  }, e.filterAttrs(e.attributes, "v-on:", !1), toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), toDisplayString(e.text), 17));
48
47
  }
49
- const Button = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$i], ["__scopeId", "data-v-becdf225"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/button/button.vue"]]), key$1 = Symbol(), BuilderContext = {
48
+ const Button = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$h], ["__scopeId", "data-v-becdf225"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/button/button.vue"]]), key$1 = Symbol(), BuilderContext = {
50
49
  Builder: {
51
50
  content: null,
52
51
  context: {},
@@ -74,22 +73,7 @@ function getBlockComponentOptions(e) {
74
73
  builderBlock: e
75
74
  };
76
75
  }
77
- const TARGET = "vue", camelToKebabCase = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), checkIsDefined = (e) => e != null, convertStyleMapToCSSArray = (e) => Object.entries(e).map(([n, o]) => {
78
- if (typeof o == "string")
79
- return `${camelToKebabCase(n)}: ${o};`;
80
- }).filter(checkIsDefined), convertStyleMapToCSS = (e) => convertStyleMapToCSSArray(e).join(`
81
- `), createCssClass = ({
82
- mediaQuery: e,
83
- className: t,
84
- styles: n
85
- }) => {
86
- const o = `.${t} {
87
- ${convertStyleMapToCSS(n)}
88
- }`;
89
- return e ? `${e} {
90
- ${o}
91
- }` : o;
92
- }, MSG_PREFIX = "[Builder.io]: ", logger = {
76
+ const TARGET = "vue", checkIsDefined = (e) => e != null, MSG_PREFIX = "[Builder.io]: ", logger = {
93
77
  log: (...e) => console.log(MSG_PREFIX, ...e),
94
78
  error: (...e) => console.error(MSG_PREFIX, ...e),
95
79
  warn: (...e) => console.warn(MSG_PREFIX, ...e),
@@ -102,7 +86,7 @@ function isIframe() {
102
86
  return isBrowser() && window.self !== window.top;
103
87
  }
104
88
  function isEditing() {
105
- return isIframe() && window.location.search.indexOf("builder.frameEditing=") !== -1;
89
+ return isIframe() && (TARGET === "reactNative" || window.location.search.indexOf("builder.frameEditing=") !== -1);
106
90
  }
107
91
  const getLocation = () => {
108
92
  if (isBrowser()) {
@@ -160,14 +144,14 @@ const getLocation = () => {
160
144
  context: n,
161
145
  event: o,
162
146
  localState: r,
163
- rootSetState: s,
164
- rootState: i
147
+ rootSetState: i,
148
+ rootState: s
165
149
  }) => {
166
150
  const a = getFunctionArguments({
167
151
  builder: t,
168
152
  context: n,
169
153
  event: o,
170
- state: flattenState(i, r, s)
154
+ state: flattenState(s, r, i)
171
155
  });
172
156
  return new Function(...a.map(([c]) => c), e)(...a.map(([, c]) => c));
173
157
  };
@@ -176,10 +160,10 @@ function flattenState(e, t, n) {
176
160
  throw new Error("rootState === localState");
177
161
  return new Proxy(e, {
178
162
  get: (o, r) => t && r in t ? t[r] : e[r],
179
- set: (o, r, s) => {
163
+ set: (o, r, i) => {
180
164
  if (t && r in t)
181
165
  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;
166
+ return e[r] = i, n == null || n(e), !0;
183
167
  }
184
168
  });
185
169
  }
@@ -187,7 +171,7 @@ const fastClone = (e) => JSON.parse(JSON.stringify(e)), set = (e, t, n) => {
187
171
  if (Object(e) !== e)
188
172
  return e;
189
173
  const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
190
- 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;
174
+ 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;
191
175
  }, noop = () => {
192
176
  };
193
177
  let safeDynamicRequire = noop;
@@ -253,11 +237,11 @@ output;
253
237
  context: n,
254
238
  event: o,
255
239
  localState: r,
256
- rootSetState: s,
257
- rootState: i
240
+ rootSetState: i,
241
+ rootState: s
258
242
  }) => {
259
243
  const a = fastClone({
260
- ...i,
244
+ ...s,
261
245
  ...r
262
246
  }), c = getFunctionArguments({
263
247
  builder: t,
@@ -268,7 +252,7 @@ output;
268
252
  d.setSync("global", d.derefInto()), d.setSync("log", function(...m) {
269
253
  console.log(...m);
270
254
  }), d.setSync(BUILDER_SET_STATE_NAME, function(m, f) {
271
- set(i, m, f), s == null || s(i);
255
+ set(s, m, f), i == null || i(s);
272
256
  }), c.forEach(([m, f]) => {
273
257
  const b = typeof f == "object" ? new ivm.Reference(
274
258
  m === "builder" ? {
@@ -278,14 +262,14 @@ output;
278
262
  ) : null;
279
263
  d.setSync(getSyncValName(m), b);
280
264
  }), d.setSync(INJECTED_IVM_GLOBAL, ivm);
281
- const u = processCode({
265
+ const p = processCode({
282
266
  code: e,
283
267
  args: c
284
- }), p = l.evalSync(u);
268
+ }), u = l.evalSync(p);
285
269
  try {
286
- return JSON.parse(p);
270
+ return JSON.parse(u);
287
271
  } catch {
288
- return p;
272
+ return u;
289
273
  }
290
274
  }, chooseBrowserOrServerEval = (e) => isBrowser() ? runInBrowser(e) : runInNode(e);
291
275
  function evaluate({
@@ -294,8 +278,8 @@ function evaluate({
294
278
  localState: n,
295
279
  rootState: o,
296
280
  rootSetState: r,
297
- event: s,
298
- isExpression: i = !0
281
+ event: i,
282
+ isExpression: s = !0
299
283
  }) {
300
284
  if (e === "") {
301
285
  logger.warn("Skipping evaluation of empty code block.");
@@ -303,11 +287,11 @@ function evaluate({
303
287
  }
304
288
  const a = {
305
289
  code: parseCode(e, {
306
- isExpression: i
290
+ isExpression: s
307
291
  }),
308
292
  builder: getBuilderGlobals(),
309
293
  context: t,
310
- event: s,
294
+ event: i,
311
295
  rootSetState: r,
312
296
  rootState: o,
313
297
  localState: n
@@ -333,13 +317,13 @@ const evaluateBindings = ({
333
317
  }) => {
334
318
  if (!e.bindings)
335
319
  return e;
336
- const s = fastClone(e), i = {
337
- ...s,
320
+ const i = fastClone(e), s = {
321
+ ...i,
338
322
  properties: {
339
- ...s.properties
323
+ ...i.properties
340
324
  },
341
325
  actions: {
342
- ...s.actions
326
+ ...i.actions
343
327
  }
344
328
  };
345
329
  for (const a in e.bindings) {
@@ -350,9 +334,9 @@ const evaluateBindings = ({
350
334
  rootSetState: r,
351
335
  context: t
352
336
  });
353
- set(i, a, l);
337
+ set(s, a, l);
354
338
  }
355
- return i;
339
+ return s;
356
340
  };
357
341
  function getProcessedBlock({
358
342
  block: e,
@@ -360,31 +344,31 @@ function getProcessedBlock({
360
344
  shouldEvaluateBindings: n,
361
345
  localState: o,
362
346
  rootState: r,
363
- rootSetState: s
347
+ rootSetState: i
364
348
  }) {
365
- const i = e;
349
+ const s = e;
366
350
  return n ? evaluateBindings({
367
- block: i,
351
+ block: s,
368
352
  localState: o,
369
353
  rootState: r,
370
- rootSetState: s,
354
+ rootSetState: i,
371
355
  context: t
372
- }) : i;
356
+ }) : s;
373
357
  }
374
358
  const EMPTY_HTML_ELEMENTS = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], isEmptyHtmlElement = (e) => typeof e == "string" && EMPTY_HTML_ELEMENTS.includes(e.toLowerCase()), getComponent = ({
375
359
  block: e,
376
360
  context: t,
377
361
  registeredComponents: n
378
362
  }) => {
379
- var s;
380
- const o = (s = getProcessedBlock({
363
+ var i;
364
+ const o = (i = getProcessedBlock({
381
365
  block: e,
382
366
  localState: t.localState,
383
367
  rootState: t.rootState,
384
368
  rootSetState: t.rootSetState,
385
369
  context: t.context,
386
370
  shouldEvaluateBindings: !1
387
- }).component) == null ? void 0 : s.name;
371
+ }).component) == null ? void 0 : i.name;
388
372
  if (!o)
389
373
  return null;
390
374
  const r = n[o];
@@ -412,7 +396,7 @@ const EMPTY_HTML_ELEMENTS = ["area", "base", "br", "col", "embed", "hr", "img",
412
396
  });
413
397
  if (!Array.isArray(r))
414
398
  return;
415
- const s = n.collection.split(".").pop(), i = n.itemName || (s ? s + "Item" : "item");
399
+ const i = n.collection.split(".").pop(), s = n.itemName || (i ? i + "Item" : "item");
416
400
  return r.map((c, l) => ({
417
401
  context: {
418
402
  ...t,
@@ -420,39 +404,39 @@ const EMPTY_HTML_ELEMENTS = ["area", "base", "br", "col", "embed", "hr", "img",
420
404
  ...t.localState,
421
405
  $index: l,
422
406
  $item: c,
423
- [i]: c,
424
- [`$${i}Index`]: l
407
+ [s]: c,
408
+ [`$${s}Index`]: l
425
409
  }
426
410
  },
427
411
  block: o
428
412
  }));
429
- }, BlockStyles$1 = () => Promise.resolve().then(() => blockStyles).then((e) => e.default).catch((e) => {
413
+ }, BlockStyles = () => import("./block-styles.b4e350c6.js").then((e) => e.default).catch((e) => {
430
414
  throw console.error(
431
415
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
432
416
  e
433
417
  ), e;
434
- }), BlockWrapper = () => import("./block-wrapper.f2c88f1b.js").then((e) => e.default).catch((e) => {
418
+ }), BlockWrapper = () => import("./block-wrapper.35fb80b6.js").then((e) => e.default).catch((e) => {
435
419
  throw console.error(
436
420
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
437
421
  e
438
422
  ), e;
439
- }), ComponentRef = () => import("./component-ref.130474d3.js").then((e) => e.default).catch((e) => {
423
+ }), ComponentRef = () => import("./component-ref.2211624f.js").then((e) => e.default).catch((e) => {
440
424
  throw console.error(
441
425
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
442
426
  e
443
427
  ), e;
444
- }), RepeatedBlock = () => import("./repeated-block.2c78eba4.js").then((e) => e.default).catch((e) => {
428
+ }), RepeatedBlock = () => import("./repeated-block.f9ea4988.js").then((e) => e.default).catch((e) => {
445
429
  throw console.error(
446
430
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
447
431
  e
448
432
  ), e;
449
- }), _sfc_main$j = defineComponent({
433
+ }), _sfc_main$i = defineComponent({
450
434
  name: "block",
451
435
  components: {
436
+ BlockStyles: defineAsyncComponent(BlockStyles),
452
437
  ComponentRef: defineAsyncComponent(ComponentRef),
453
438
  BlockWrapper: defineAsyncComponent(BlockWrapper),
454
- RepeatedBlock: defineAsyncComponent(RepeatedBlock),
455
- BlockStyles: defineAsyncComponent(BlockStyles$1)
439
+ RepeatedBlock: defineAsyncComponent(RepeatedBlock)
456
440
  },
457
441
  props: ["block", "context", "registeredComponents"],
458
442
  data() {
@@ -498,7 +482,7 @@ const EMPTY_HTML_ELEMENTS = ["area", "base", "br", "col", "embed", "hr", "img",
498
482
  return !((t = this.blockComponent) != null && t.component) && !this.repeatItem ? (n = this.processedBlock.children) != null ? n : [] : [];
499
483
  },
500
484
  componentRefProps() {
501
- var e, t, n, o, r, s;
485
+ var e, t, n, o, r, i;
502
486
  return {
503
487
  blockChildren: (e = this.processedBlock.children) != null ? e : [],
504
488
  componentRef: (t = this.blockComponent) == null ? void 0 : t.component,
@@ -513,16 +497,20 @@ const EMPTY_HTML_ELEMENTS = ["area", "base", "br", "col", "embed", "hr", "img",
513
497
  registeredComponents: this.registeredComponents,
514
498
  builderBlock: this.processedBlock,
515
499
  includeBlockProps: ((r = this.blockComponent) == null ? void 0 : r.noWrap) === !0,
516
- isInteractive: !((s = this.blockComponent) != null && s.isRSC)
500
+ isInteractive: !((i = this.blockComponent) != null && i.isRSC)
517
501
  };
518
502
  }
519
503
  }
520
504
  });
521
- function _sfc_render$h(e, t, n, o, r, s) {
522
- var u;
523
- const i = resolveComponent("block-wrapper"), a = resolveComponent("repeated-block"), c = resolveComponent("component-ref"), l = resolveComponent("block", !0), d = resolveComponent("block-styles");
505
+ function _sfc_render$g(e, t, n, o, r, i) {
506
+ var p;
507
+ const s = resolveComponent("block-styles"), a = resolveComponent("block-wrapper"), c = resolveComponent("repeated-block"), l = resolveComponent("component-ref"), d = resolveComponent("block", !0);
524
508
  return e.canShowBlock ? (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
525
- (u = e.blockComponent) != null && u.noWrap ? (openBlock(), createBlock(c, {
509
+ createVNode(s, {
510
+ block: e.block,
511
+ context: e.context
512
+ }, null, 8, ["block", "context"]),
513
+ (p = e.blockComponent) != null && p.noWrap ? (openBlock(), createBlock(l, {
526
514
  key: 1,
527
515
  componentRef: e.componentRefProps.componentRef,
528
516
  componentOptions: e.componentRefProps.componentOptions,
@@ -533,20 +521,20 @@ function _sfc_render$h(e, t, n, o, r, s) {
533
521
  includeBlockProps: e.componentRefProps.includeBlockProps,
534
522
  isInteractive: e.componentRefProps.isInteractive
535
523
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"])) : (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
536
- e.isEmptyHtmlElement(e.Tag) ? (openBlock(), createBlock(i, {
524
+ e.isEmptyHtmlElement(e.Tag) ? (openBlock(), createBlock(a, {
537
525
  key: 0,
538
526
  Wrapper: e.Tag,
539
527
  block: e.processedBlock,
540
528
  context: e.context,
541
529
  hasChildren: !1
542
530
  }, null, 8, ["Wrapper", "block", "context"])) : createCommentVNode("v-if", !0),
543
- !e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (openBlock(!0), createElementBlock(Fragment$1, { key: 1 }, renderList(e.repeatItem, (p, m) => (openBlock(), createBlock(a, {
531
+ !e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (openBlock(!0), createElementBlock(Fragment$1, { key: 1 }, renderList(e.repeatItem, (u, m) => (openBlock(), createBlock(c, {
544
532
  key: m,
545
- repeatContext: p.context,
546
- block: p.block,
533
+ repeatContext: u.context,
534
+ block: u.block,
547
535
  registeredComponents: e.registeredComponents
548
536
  }, null, 8, ["repeatContext", "block", "registeredComponents"]))), 128)) : createCommentVNode("v-if", !0),
549
- !e.isEmptyHtmlElement(e.Tag) && !e.repeatItem ? (openBlock(), createBlock(i, {
537
+ !e.isEmptyHtmlElement(e.Tag) && !e.repeatItem ? (openBlock(), createBlock(a, {
550
538
  key: 2,
551
539
  Wrapper: e.Tag,
552
540
  block: e.processedBlock,
@@ -554,7 +542,7 @@ function _sfc_render$h(e, t, n, o, r, s) {
554
542
  hasChildren: !0
555
543
  }, {
556
544
  default: withCtx(() => [
557
- createVNode(c, {
545
+ createVNode(l, {
558
546
  componentRef: e.componentRefProps.componentRef,
559
547
  componentOptions: e.componentRefProps.componentOptions,
560
548
  blockChildren: e.componentRefProps.blockChildren,
@@ -564,139 +552,22 @@ function _sfc_render$h(e, t, n, o, r, s) {
564
552
  includeBlockProps: e.componentRefProps.includeBlockProps,
565
553
  isInteractive: e.componentRefProps.isInteractive
566
554
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"]),
567
- (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.childrenWithoutParentComponent, (p, m) => (openBlock(), createBlock(l, {
568
- key: "block-" + p.id,
569
- block: p,
555
+ (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.childrenWithoutParentComponent, (u, m) => (openBlock(), createBlock(d, {
556
+ key: u.id,
557
+ block: u,
570
558
  context: e.childrenContext,
571
559
  registeredComponents: e.registeredComponents
572
- }, null, 8, ["block", "context", "registeredComponents"]))), 128)),
573
- (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.childrenWithoutParentComponent, (p, m) => (openBlock(), createBlock(d, {
574
- key: "block-style-" + p.id,
575
- block: p,
576
- context: e.childrenContext
577
- }, null, 8, ["block", "context"]))), 128))
560
+ }, null, 8, ["block", "context", "registeredComponents"]))), 128))
578
561
  ]),
579
562
  _: 1
580
563
  }, 8, ["Wrapper", "block", "context"])) : createCommentVNode("v-if", !0)
581
564
  ], 64))
582
565
  ], 64)) : createCommentVNode("v-if", !0);
583
566
  }
584
- const Block = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$h], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/block.vue"]]), block = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
567
+ const Block = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$g], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/block.vue"]]), block = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
585
568
  __proto__: null,
586
569
  default: Block
587
- }, Symbol.toStringTag, { value: "Module" })), SIZES = {
588
- small: {
589
- min: 320,
590
- default: 321,
591
- max: 640
592
- },
593
- medium: {
594
- min: 641,
595
- default: 642,
596
- max: 991
597
- },
598
- large: {
599
- min: 990,
600
- default: 991,
601
- max: 1200
602
- }
603
- }, getMaxWidthQueryForSize = (e, t = SIZES) => `@media (max-width: ${t[e].max}px)`, getSizesForBreakpoints = ({
604
- small: e,
605
- medium: t
606
- }) => {
607
- const n = fastClone(SIZES);
608
- if (!e || !t)
609
- return n;
610
- const o = Math.floor(e / 2);
611
- n.small = {
612
- max: e,
613
- min: o,
614
- default: o + 1
615
- };
616
- const r = n.small.max + 1;
617
- n.medium = {
618
- max: t,
619
- min: r,
620
- default: r + 1
621
- };
622
- const s = n.medium.max + 1;
623
- return n.large = {
624
- max: 2e3,
625
- min: s,
626
- default: s + 1
627
- }, n;
628
- }, _sfc_main$i = defineComponent({
629
- render() {
630
- return h("style", { id: this.id, innerHTML: this.styles });
631
- },
632
- name: "inlined-styles",
633
- props: ["styles", "id"]
634
- }), InlinedStyles = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/inlined-styles.vue"]]), _sfc_main$h = defineComponent({
635
- name: "block-styles",
636
- components: { InlinedStyles },
637
- props: ["block", "context"],
638
- data() {
639
- return { TARGET };
640
- },
641
- computed: {
642
- canShowBlock() {
643
- const e = getProcessedBlock({
644
- block: this.block,
645
- localState: this.context.localState,
646
- rootState: this.context.rootState,
647
- rootSetState: this.context.rootSetState,
648
- context: this.context.context,
649
- shouldEvaluateBindings: !0
650
- });
651
- return checkIsDefined(e.hide) ? !e.hide : checkIsDefined(e.show) ? e.show : !0;
652
- },
653
- css() {
654
- var u;
655
- const e = getProcessedBlock({
656
- block: this.block,
657
- localState: this.context.localState,
658
- rootState: this.context.rootState,
659
- rootSetState: this.context.rootSetState,
660
- context: this.context.context,
661
- shouldEvaluateBindings: !0
662
- }), t = e.responsiveStyles, n = this.context.content, o = getSizesForBreakpoints(
663
- ((u = n == null ? void 0 : n.meta) == null ? void 0 : u.breakpoints) || {}
664
- ), r = t == null ? void 0 : t.large, s = t == null ? void 0 : t.medium, i = t == null ? void 0 : t.small, a = e.id;
665
- if (!a)
666
- return "";
667
- const c = r ? createCssClass({
668
- className: a,
669
- styles: r
670
- }) : "", l = s ? createCssClass({
671
- className: a,
672
- styles: s,
673
- mediaQuery: getMaxWidthQueryForSize(
674
- "medium",
675
- o
676
- )
677
- }) : "", d = i ? createCssClass({
678
- className: a,
679
- styles: i,
680
- mediaQuery: getMaxWidthQueryForSize(
681
- "small",
682
- o
683
- )
684
- }) : "";
685
- return [c, l, d].join(" ");
686
- }
687
- }
688
- });
689
- function _sfc_render$g(e, t, n, o, r, s) {
690
- const i = resolveComponent("inlined-styles");
691
- return e.TARGET !== "reactNative" && e.css && e.canShowBlock ? (openBlock(), createBlock(i, {
692
- key: 0,
693
- styles: e.css
694
- }, null, 8, ["styles"])) : createCommentVNode("v-if", !0);
695
- }
696
- const BlockStyles = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/components/block-styles.vue"]]), blockStyles = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
697
- __proto__: null,
698
- default: BlockStyles
699
- }, Symbol.toStringTag, { value: "Module" })), _sfc_main$g = defineComponent({
570
+ }, Symbol.toStringTag, { value: "Module" })), _sfc_main$h = defineComponent({
700
571
  name: "builder-blocks-wrapper",
701
572
  props: [
702
573
  "BlocksWrapper",
@@ -750,15 +621,15 @@ const BlockStyles = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_re
750
621
  }
751
622
  }
752
623
  }), blocksWrapper_vue_vue_type_style_index_0_scoped_1f8aab9f_lang = "";
753
- function _sfc_render$f(e, t, n, o, r, s) {
624
+ function _sfc_render$f(e, t, n, o, r, i) {
754
625
  return openBlock(), createBlock(resolveDynamicComponent(e.BlocksWrapper), mergeProps({
755
626
  class: e._classStringToObject(e.className + " component-178o76acnws"),
756
627
  "builder-path": e.path,
757
628
  "builder-parent-id": e.parent,
758
629
  style: e.styleProp,
759
- onClick: (i) => e.onClick(),
760
- onMouseEnter: (i) => e.onMouseEnter(),
761
- onKeyPress: (i) => e.onClick()
630
+ onClick: (s) => e.onClick(),
631
+ onMouseEnter: (s) => e.onMouseEnter(),
632
+ onKeyPress: (s) => e.onClick()
762
633
  }, { ...e.BlocksWrapperProps }), {
763
634
  default: withCtx(() => [
764
635
  renderSlot(e.$slots, "default", {}, void 0, !0)
@@ -766,13 +637,9 @@ function _sfc_render$f(e, t, n, o, r, s) {
766
637
  _: 3
767
638
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
768
639
  }
769
- const BlocksWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$f], ["__scopeId", "data-v-1f8aab9f"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/blocks/blocks-wrapper.vue"]]), _sfc_main$f = defineComponent({
640
+ const BlocksWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$f], ["__scopeId", "data-v-1f8aab9f"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/blocks/blocks-wrapper.vue"]]), _sfc_main$g = defineComponent({
770
641
  name: "builder-blocks",
771
- components: {
772
- BlocksWrapper,
773
- Block,
774
- BlockStyles
775
- },
642
+ components: { BlocksWrapper, Block },
776
643
  props: [
777
644
  "blocks",
778
645
  "parent",
@@ -786,34 +653,76 @@ const BlocksWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_
786
653
  componentsContext: ComponentsContext.key
787
654
  }
788
655
  });
789
- function _sfc_render$e(e, t, n, o, r, s) {
790
- var l, d;
791
- const i = resolveComponent("block"), a = resolveComponent("block-styles"), c = resolveComponent("blocks-wrapper");
792
- return openBlock(), createBlock(c, {
656
+ function _sfc_render$e(e, t, n, o, r, i) {
657
+ var c, l;
658
+ const s = resolveComponent("block"), a = resolveComponent("blocks-wrapper");
659
+ return openBlock(), createBlock(a, {
793
660
  blocks: e.blocks,
794
661
  parent: e.parent,
795
662
  path: e.path,
796
663
  styleProp: e.styleProp,
797
- BlocksWrapper: (l = e.context) == null ? void 0 : l.BlocksWrapper,
798
- BlocksWrapperProps: (d = e.context) == null ? void 0 : d.BlocksWrapperProps
664
+ BlocksWrapper: (c = e.context) == null ? void 0 : c.BlocksWrapper,
665
+ BlocksWrapperProps: (l = e.context) == null ? void 0 : l.BlocksWrapperProps
799
666
  }, {
800
667
  default: withCtx(() => [
801
- e.blocks ? (openBlock(!0), createElementBlock(Fragment$1, { key: 0 }, renderList(e.blocks, (u, p) => (openBlock(), createBlock(i, {
802
- key: "render-block-" + u.id,
803
- block: u,
668
+ e.blocks ? (openBlock(!0), createElementBlock(Fragment$1, { key: 0 }, renderList(e.blocks, (d, p) => (openBlock(), createBlock(s, {
669
+ key: d.id,
670
+ block: d,
804
671
  context: e.context || e.builderContext,
805
672
  registeredComponents: e.registeredComponents || e.componentsContext.registeredComponents
806
- }, null, 8, ["block", "context", "registeredComponents"]))), 128)) : createCommentVNode("v-if", !0),
807
- e.blocks ? (openBlock(!0), createElementBlock(Fragment$1, { key: 1 }, renderList(e.blocks, (u, p) => (openBlock(), createBlock(a, {
808
- key: "block-style-" + u.id,
809
- block: u,
810
- context: e.context || e.builderContext
811
- }, null, 8, ["block", "context"]))), 128)) : createCommentVNode("v-if", !0)
673
+ }, null, 8, ["block", "context", "registeredComponents"]))), 128)) : createCommentVNode("v-if", !0)
812
674
  ]),
813
675
  _: 1
814
676
  }, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
815
677
  }
816
- const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$e], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/blocks/blocks.vue"]]), _sfc_main$e = defineComponent({
678
+ const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$e], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/blocks/blocks.vue"]]), _sfc_main$f = defineComponent({
679
+ render() {
680
+ return h("style", { id: this.id, innerHTML: this.styles });
681
+ },
682
+ name: "inlined-styles",
683
+ props: ["styles", "id"]
684
+ }), InlinedStyles = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/inlined-styles.vue"]]), SIZES = {
685
+ small: {
686
+ min: 320,
687
+ default: 321,
688
+ max: 640
689
+ },
690
+ medium: {
691
+ min: 641,
692
+ default: 642,
693
+ max: 991
694
+ },
695
+ large: {
696
+ min: 990,
697
+ default: 991,
698
+ max: 1200
699
+ }
700
+ }, getMaxWidthQueryForSize = (e, t = SIZES) => `@media (max-width: ${t[e].max}px)`, getSizesForBreakpoints = ({
701
+ small: e,
702
+ medium: t
703
+ }) => {
704
+ const n = fastClone(SIZES);
705
+ if (!e || !t)
706
+ return n;
707
+ const o = Math.floor(e / 2);
708
+ n.small = {
709
+ max: e,
710
+ min: o,
711
+ default: o + 1
712
+ };
713
+ const r = n.small.max + 1;
714
+ n.medium = {
715
+ max: t,
716
+ min: r,
717
+ default: r + 1
718
+ };
719
+ const i = n.medium.max + 1;
720
+ return n.large = {
721
+ max: 2e3,
722
+ min: i,
723
+ default: i + 1
724
+ }, n;
725
+ }, _sfc_main$e = defineComponent({
817
726
  name: "builder-columns",
818
727
  components: { InlinedStyles, Blocks },
819
728
  props: [
@@ -895,7 +804,7 @@ const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$
895
804
  return this.stackAt === "never" ? t : e;
896
805
  },
897
806
  columnCssVars(e) {
898
- const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, r = "100%", s = 0;
807
+ const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, r = "100%", i = 0;
899
808
  return {
900
809
  width: n,
901
810
  ["margin-left"]: o,
@@ -904,7 +813,7 @@ const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$
904
813
  desktopStyle: n
905
814
  }),
906
815
  "--column-margin-left-mobile": this.getMobileStyle({
907
- stackedStyle: s,
816
+ stackedStyle: i,
908
817
  desktopStyle: o
909
818
  }),
910
819
  "--column-width-tablet": this.getTabletStyle({
@@ -912,7 +821,7 @@ const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$
912
821
  desktopStyle: n
913
822
  }),
914
823
  "--column-margin-left-tablet": this.getTabletStyle({
915
- stackedStyle: s,
824
+ stackedStyle: i,
916
825
  desktopStyle: o
917
826
  })
918
827
  };
@@ -934,15 +843,15 @@ const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$
934
843
  }
935
844
  }
936
845
  }), columns_vue_vue_type_style_index_0_scoped_7be099dc_lang = "";
937
- function _sfc_render$d(e, t, n, o, r, s) {
938
- const i = resolveComponent("inlined-styles"), a = resolveComponent("blocks");
846
+ function _sfc_render$d(e, t, n, o, r, i) {
847
+ const s = resolveComponent("inlined-styles"), a = resolveComponent("blocks");
939
848
  return openBlock(), createElementBlock("div", mergeProps({
940
849
  class: e._classStringToObject(
941
850
  `builder-columns ${e.builderBlock.id}-breakpoints div-16nol0lwi20`
942
851
  ),
943
852
  style: e.columnsCssVars
944
853
  }, {}), [
945
- e.TARGET !== "reactNative" ? (openBlock(), createBlock(i, {
854
+ e.TARGET !== "reactNative" ? (openBlock(), createBlock(s, {
946
855
  key: 0,
947
856
  styles: e.columnsStyles
948
857
  }, null, 8, ["styles"])) : createCommentVNode("v-if", !0),
@@ -968,7 +877,7 @@ const Columns = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render
968
877
  name: "builder-fragment-component",
969
878
  props: []
970
879
  });
971
- function _sfc_render$c(e, t, n, o, r, s) {
880
+ function _sfc_render$c(e, t, n, o, r, i) {
972
881
  return openBlock(), createElementBlock("span", null, [
973
882
  renderSlot(e.$slots, "default")
974
883
  ]);
@@ -988,8 +897,8 @@ function getShopifyImageUrl(e, t) {
988
897
  return removeProtocol(e);
989
898
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
990
899
  if (n) {
991
- const o = e.split(n[0]), r = n[3], s = t.match("x") ? t : `${t}x`;
992
- return removeProtocol(`${o[0]}_${s}${r}`);
900
+ const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
901
+ return removeProtocol(`${o[0]}_${i}${r}`);
993
902
  }
994
903
  return null;
995
904
  }
@@ -1063,8 +972,8 @@ const _sfc_main$c = defineComponent({
1063
972
  key: 2,
1064
973
  class: "div-1be3j8m9ewb-2"
1065
974
  };
1066
- function _sfc_render$b(e, t, n, o, r, s) {
1067
- var i, a, c, l;
975
+ function _sfc_render$b(e, t, n, o, r, i) {
976
+ var s, a, c, l;
1068
977
  return openBlock(), createElementBlock(Fragment$1, null, [
1069
978
  createElementVNode("picture", null, [
1070
979
  e.webpSrcSet ? (openBlock(), createElementBlock("source", {
@@ -1091,7 +1000,7 @@ function _sfc_render$b(e, t, n, o, r, s) {
1091
1000
  sizes: e.sizes
1092
1001
  }, null, 14, _hoisted_2$1)
1093
1002
  ]),
1094
- e.aspectRatio && !(((a = (i = e.builderBlock) == null ? void 0 : i.children) == null ? void 0 : a.length) && e.fitContent) ? (openBlock(), createElementBlock("div", {
1003
+ e.aspectRatio && !(((a = (s = e.builderBlock) == null ? void 0 : s.children) == null ? void 0 : a.length) && e.fitContent) ? (openBlock(), createElementBlock("div", {
1095
1004
  key: 0,
1096
1005
  class: "builder-image-sizer div-1be3j8m9ewb",
1097
1006
  style: normalizeStyle({
@@ -1111,7 +1020,7 @@ const Image = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b
1111
1020
  return { filterAttrs };
1112
1021
  }
1113
1022
  });
1114
- function _sfc_render$a(e, t, n, o, r, s) {
1023
+ function _sfc_render$a(e, t, n, o, r, i) {
1115
1024
  return openBlock(), createElementBlock("section", mergeProps({
1116
1025
  style: {
1117
1026
  width: "100%",
@@ -1150,8 +1059,8 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render
1150
1059
  value: t,
1151
1060
  expires: n
1152
1061
  }) => {
1153
- const r = (isBrowser() ? location.protocol === "https:" : !0) ? SECURE_CONFIG : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", getTopLevelDomain(window.location.hostname)], ...r];
1154
- return stringifyCookie(i);
1062
+ const r = (isBrowser() ? location.protocol === "https:" : !0) ? SECURE_CONFIG : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", getTopLevelDomain(window.location.hostname)], ...r];
1063
+ return stringifyCookie(s);
1155
1064
  }, setCookie = async ({
1156
1065
  name: e,
1157
1066
  value: t,
@@ -1194,10 +1103,10 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render
1194
1103
  var r;
1195
1104
  let n = 0;
1196
1105
  const o = Math.random();
1197
- for (const s in t) {
1198
- const i = (r = t[s]) == null ? void 0 : r.testRatio;
1199
- if (n += i, o < n)
1200
- return s;
1106
+ for (const i in t) {
1107
+ const s = (r = t[i]) == null ? void 0 : r.testRatio;
1108
+ if (n += s, o < n)
1109
+ return i;
1201
1110
  }
1202
1111
  return e;
1203
1112
  }, getAndSetVariantId = (e) => {
@@ -1473,7 +1382,7 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render
1473
1382
  });
1474
1383
  }
1475
1384
  const n = e.get("columns");
1476
- Array.isArray(n) && !!n.find((r) => r.get("width")) && (!!n.find((s) => !s.get("width")) || n.reduce((a, c) => a + c.get("width"), 0) !== 100) && t();
1385
+ Array.isArray(n) && !!n.find((r) => r.get("width")) && (!!n.find((i) => !i.get("width")) || n.reduce((a, c) => a + c.get("width"), 0) !== 100) && t();
1477
1386
  }
1478
1387
  }, {
1479
1388
  name: "space",
@@ -1563,7 +1472,7 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render
1563
1472
  }
1564
1473
  }
1565
1474
  }), _hoisted_1$4 = ["innerHTML"];
1566
- function _sfc_render$9(e, t, n, o, r, s) {
1475
+ function _sfc_render$9(e, t, n, o, r, i) {
1567
1476
  return openBlock(), createElementBlock("div", {
1568
1477
  ref: "elementRef",
1569
1478
  class: normalizeClass(
@@ -1642,7 +1551,7 @@ const customCode = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_ren
1642
1551
  }
1643
1552
  }
1644
1553
  }), _hoisted_1$3 = ["innerHTML"];
1645
- function _sfc_render$8(e, t, n, o, r, s) {
1554
+ function _sfc_render$8(e, t, n, o, r, i) {
1646
1555
  return openBlock(), createElementBlock("div", {
1647
1556
  class: "builder-embed",
1648
1557
  ref: "elem",
@@ -1675,29 +1584,29 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$8
1675
1584
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1676
1585
  onChange: (e) => {
1677
1586
  e.delete("srcset"), e.delete("noWebp");
1678
- function n(i, a = 6e4) {
1587
+ function n(s, a = 6e4) {
1679
1588
  return new Promise((c, l) => {
1680
1589
  const d = document.createElement("img");
1681
- let u = !1;
1590
+ let p = !1;
1682
1591
  d.onload = () => {
1683
- u = !0, c(d);
1684
- }, d.addEventListener("error", (p) => {
1685
- console.warn("Image load failed", p.error), l(p.error);
1686
- }), d.src = i, setTimeout(() => {
1687
- u || l(new Error("Image load timed out"));
1592
+ p = !0, c(d);
1593
+ }, d.addEventListener("error", (u) => {
1594
+ console.warn("Image load failed", u.error), l(u.error);
1595
+ }), d.src = s, setTimeout(() => {
1596
+ p || l(new Error("Image load timed out"));
1688
1597
  }, a);
1689
1598
  });
1690
1599
  }
1691
- function o(i) {
1692
- return Math.round(i * 1e3) / 1e3;
1600
+ function o(s) {
1601
+ return Math.round(s * 1e3) / 1e3;
1693
1602
  }
1694
- const r = e.get("image"), s = e.get("aspectRatio");
1695
- if (fetch(r).then((i) => i.blob()).then((i) => {
1696
- i.type.includes("svg") && e.set("noWebp", !0);
1697
- }), r && (!s || s === 0.7041))
1698
- return n(r).then((i) => {
1603
+ const r = e.get("image"), i = e.get("aspectRatio");
1604
+ if (fetch(r).then((s) => s.blob()).then((s) => {
1605
+ s.type.includes("svg") && e.set("noWebp", !0);
1606
+ }), r && (!i || i === 0.7041))
1607
+ return n(r).then((s) => {
1699
1608
  const a = e.get("aspectRatio");
1700
- 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));
1609
+ 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));
1701
1610
  });
1702
1611
  }
1703
1612
  }, {
@@ -1782,7 +1691,7 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$8
1782
1691
  return { isEditing, filterAttrs };
1783
1692
  }
1784
1693
  }), _hoisted_1$2 = ["alt", "src"];
1785
- function _sfc_render$7(e, t, n, o, r, s) {
1694
+ function _sfc_render$7(e, t, n, o, r, i) {
1786
1695
  return openBlock(), createElementBlock("img", mergeProps({
1787
1696
  style: {
1788
1697
  objectFit: e.backgroundSize || "cover",
@@ -1887,11 +1796,11 @@ const Img = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$7],
1887
1796
  name: "builder-text",
1888
1797
  props: ["text"]
1889
1798
  }), _hoisted_1$1 = ["innerHTML"];
1890
- function _sfc_render$6(e, t, n, o, r, s) {
1891
- var i;
1799
+ function _sfc_render$6(e, t, n, o, r, i) {
1800
+ var s;
1892
1801
  return openBlock(), createElementBlock("div", {
1893
1802
  class: "builder-text",
1894
- innerHTML: ((i = e.text) == null ? void 0 : i.toString()) || "",
1803
+ innerHTML: ((s = e.text) == null ? void 0 : s.toString()) || "",
1895
1804
  style: {
1896
1805
  outline: "none"
1897
1806
  }
@@ -2046,8 +1955,8 @@ const Text = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6]
2046
1955
  height: "100%"
2047
1956
  }
2048
1957
  };
2049
- function _sfc_render$5(e, t, n, o, r, s) {
2050
- var i, a, c, l, d, u, p;
1958
+ function _sfc_render$5(e, t, n, o, r, i) {
1959
+ var s, a, c, l, d, p, u;
2051
1960
  return openBlock(), createElementBlock("div", _hoisted_1, [
2052
1961
  createElementVNode("video", mergeProps({
2053
1962
  class: "builder-video",
@@ -2055,7 +1964,7 @@ function _sfc_render$5(e, t, n, o, r, s) {
2055
1964
  style: {
2056
1965
  width: "100%",
2057
1966
  height: "100%",
2058
- ...(i = e.attributes) == null ? void 0 : i.style,
1967
+ ...(s = e.attributes) == null ? void 0 : s.style,
2059
1968
  objectFit: e.fit,
2060
1969
  objectPosition: e.position,
2061
1970
  zIndex: 2,
@@ -2085,7 +1994,7 @@ function _sfc_render$5(e, t, n, o, r, s) {
2085
1994
  ((d = (l = e.builderBlock) == null ? void 0 : l.children) == null ? void 0 : d.length) && e.fitContent ? (openBlock(), createElementBlock("div", _hoisted_4, [
2086
1995
  renderSlot(e.$slots, "default")
2087
1996
  ])) : createCommentVNode("v-if", !0),
2088
- ((p = (u = e.builderBlock) == null ? void 0 : u.children) == null ? void 0 : p.length) && !e.fitContent ? (openBlock(), createElementBlock("div", _hoisted_5, [
1997
+ ((u = (p = e.builderBlock) == null ? void 0 : p.children) == null ? void 0 : u.length) && !e.fitContent ? (openBlock(), createElementBlock("div", _hoisted_5, [
2089
1998
  renderSlot(e.$slots, "default")
2090
1999
  ])) : createCommentVNode("v-if", !0)
2091
2000
  ]);
@@ -2134,9 +2043,9 @@ const Video = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5
2134
2043
  ...t
2135
2044
  }) => ({
2136
2045
  ...fastClone(t),
2137
- inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, s]) => ({
2046
+ inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, i]) => ({
2138
2047
  ...o,
2139
- [r]: serializeValue(s)
2048
+ [r]: serializeValue(i)
2140
2049
  }), {}))
2141
2050
  }), UPDATE_COOKIES_AND_STYLES_SCRIPT = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2142
2051
  function getAndSetVariantId() {
@@ -2266,13 +2175,13 @@ function getFetch() {
2266
2175
  const fetch$1 = getFetch();
2267
2176
  function flatten(e, t = null, n = ".") {
2268
2177
  return Object.keys(e).reduce((o, r) => {
2269
- const s = e[r], i = [t, r].filter(Boolean).join(n);
2270
- return [typeof s == "object", s !== null, !(Array.isArray(s) && s.length === 0)].every(Boolean) ? {
2178
+ const i = e[r], s = [t, r].filter(Boolean).join(n);
2179
+ return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
2271
2180
  ...o,
2272
- ...flatten(s, i, n)
2181
+ ...flatten(i, s, n)
2273
2182
  } : {
2274
2183
  ...o,
2275
- [i]: s
2184
+ [s]: i
2276
2185
  };
2277
2186
  }, {});
2278
2187
  }
@@ -2304,27 +2213,27 @@ const DEFAULT_API_VERSION = "v3", BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUIL
2304
2213
  limit: n = 30,
2305
2214
  userAttributes: o,
2306
2215
  query: r,
2307
- model: s,
2308
- apiKey: i,
2216
+ model: i,
2217
+ apiKey: s,
2309
2218
  includeRefs: a = !0,
2310
2219
  enrich: c,
2311
2220
  locale: l,
2312
2221
  apiVersion: d = DEFAULT_API_VERSION,
2313
- fields: u,
2314
- omit: p,
2222
+ fields: p,
2223
+ omit: u,
2315
2224
  offset: m,
2316
2225
  cacheSeconds: f,
2317
2226
  staleCacheSeconds: b,
2318
2227
  sort: y,
2319
2228
  includeUnpublished: C
2320
2229
  } = e;
2321
- if (!i)
2230
+ if (!s)
2322
2231
  throw new Error("Missing API key");
2323
2232
  if (!["v2", "v3"].includes(d))
2324
2233
  throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${d}'`);
2325
2234
  (e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
2326
- const g = new URL(`https://cdn.builder.io/api/${d}/content/${s}?apiKey=${i}&limit=${n}&noTraverse=${t}&includeRefs=${a}${l ? `&locale=${l}` : ""}${c ? `&enrich=${c}` : ""}`);
2327
- if (g.searchParams.set("omit", p || "meta.componentsUsed"), u && g.searchParams.set("fields", u), Number.isFinite(m) && m > -1 && g.searchParams.set("offset", String(Math.floor(m))), typeof C == "boolean" && g.searchParams.set("includeUnpublished", String(C)), f && isPositiveNumber(f) && g.searchParams.set("cacheSeconds", String(f)), b && isPositiveNumber(b) && g.searchParams.set("staleCacheSeconds", String(b)), y) {
2235
+ const g = new URL(`https://cdn.builder.io/api/${d}/content/${i}?apiKey=${s}&limit=${n}&noTraverse=${t}&includeRefs=${a}${l ? `&locale=${l}` : ""}${c ? `&enrich=${c}` : ""}`);
2236
+ if (g.searchParams.set("omit", u || "meta.componentsUsed"), p && g.searchParams.set("fields", p), Number.isFinite(m) && m > -1 && g.searchParams.set("offset", String(Math.floor(m))), typeof C == "boolean" && g.searchParams.set("includeUnpublished", String(C)), f && isPositiveNumber(f) && g.searchParams.set("cacheSeconds", String(f)), b && isPositiveNumber(b) && g.searchParams.set("staleCacheSeconds", String(b)), y) {
2328
2237
  const k = flatten({
2329
2238
  sort: y
2330
2239
  });
@@ -2362,9 +2271,9 @@ const getContent = fetchOneEntry, _fetchContent = async (e) => {
2362
2271
  return t.results;
2363
2272
  try {
2364
2273
  const r = [];
2365
- for (const s of t.results)
2274
+ for (const i of t.results)
2366
2275
  r.push(await handleABTesting({
2367
- item: s,
2276
+ item: i,
2368
2277
  canTrack: o
2369
2278
  }));
2370
2279
  t.results = r;
@@ -2552,10 +2461,10 @@ const findParentElement = (e, t, n = !0) => {
2552
2461
  event: e,
2553
2462
  target: t
2554
2463
  }) => {
2555
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, s = round(o / n.width), i = round(r / n.height);
2464
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = round(o / n.width), s = round(r / n.height);
2556
2465
  return {
2557
- x: s,
2558
- y: i
2466
+ x: i,
2467
+ y: s
2559
2468
  };
2560
2469
  }, getInteractionPropertiesForEvent = (e) => {
2561
2470
  const t = e.target, n = t && findBuilderParent(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
@@ -2573,7 +2482,7 @@ const findParentElement = (e, t, n = !0) => {
2573
2482
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
2574
2483
  }
2575
2484
  };
2576
- }, SDK_VERSION = "0.11.1", registry = {};
2485
+ }, SDK_VERSION = "0.11.3", registry = {};
2577
2486
  function register(e, t) {
2578
2487
  let n = registry[e];
2579
2488
  if (n || (n = registry[e] = []), n.push(t), isBrowser()) {
@@ -2634,33 +2543,33 @@ const setupBrowserForEditing = (e = {}) => {
2634
2543
  }, "*"), window.addEventListener("message", ({
2635
2544
  data: o
2636
2545
  }) => {
2637
- var r, s;
2546
+ var r, i;
2638
2547
  if (!!(o != null && o.type))
2639
2548
  switch (o.type) {
2640
2549
  case "builder.evaluate": {
2641
- const i = o.data.text, a = o.data.arguments || [], c = o.data.id, l = new Function(i);
2642
- let d, u = null;
2550
+ const s = o.data.text, a = o.data.arguments || [], c = o.data.id, l = new Function(s);
2551
+ let d, p = null;
2643
2552
  try {
2644
2553
  d = l.apply(null, a);
2645
- } catch (p) {
2646
- u = p;
2554
+ } catch (u) {
2555
+ p = u;
2647
2556
  }
2648
- u ? (r = window.parent) == null || r.postMessage({
2557
+ p ? (r = window.parent) == null || r.postMessage({
2649
2558
  type: "builder.evaluateError",
2650
2559
  data: {
2651
2560
  id: c,
2652
- error: u.message
2561
+ error: p.message
2653
2562
  }
2654
- }, "*") : d && typeof d.then == "function" ? d.then((p) => {
2563
+ }, "*") : d && typeof d.then == "function" ? d.then((u) => {
2655
2564
  var m;
2656
2565
  (m = window.parent) == null || m.postMessage({
2657
2566
  type: "builder.evaluateResult",
2658
2567
  data: {
2659
2568
  id: c,
2660
- result: p
2569
+ result: u
2661
2570
  }
2662
2571
  }, "*");
2663
- }).catch(console.error) : (s = window.parent) == null || s.postMessage({
2572
+ }).catch(console.error) : (i = window.parent) == null || i.postMessage({
2664
2573
  type: "builder.evaluateResult",
2665
2574
  data: {
2666
2575
  result: d,
@@ -2711,13 +2620,13 @@ const setupBrowserForEditing = (e = {}) => {
2711
2620
  if (isEditing() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
2712
2621
  new CustomEvent("initeditingbldr")
2713
2622
  ), this.builderContextSignal.content && getDefaultCanTrack(this.canTrack)) {
2714
- const s = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, i = (o = this.builderContextSignal.content) == null ? void 0 : o.id, a = this.apiKey;
2623
+ const i = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, s = (o = this.builderContextSignal.content) == null ? void 0 : o.id, a = this.apiKey;
2715
2624
  _track({
2716
2625
  type: "impression",
2717
2626
  canTrack: !0,
2718
- contentId: i,
2627
+ contentId: s,
2719
2628
  apiKey: a,
2720
- variationId: s !== i ? s : void 0
2629
+ variationId: i !== s ? i : void 0
2721
2630
  });
2722
2631
  }
2723
2632
  isPreviewing() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
@@ -2796,7 +2705,7 @@ const setupBrowserForEditing = (e = {}) => {
2796
2705
  },
2797
2706
  methods: {
2798
2707
  mergeNewContent(e) {
2799
- var n, o, r, s, i;
2708
+ var n, o, r, i, s;
2800
2709
  const t = {
2801
2710
  ...this.builderContextSignal.content,
2802
2711
  ...e,
@@ -2807,7 +2716,7 @@ const setupBrowserForEditing = (e = {}) => {
2807
2716
  meta: {
2808
2717
  ...(o = this.builderContextSignal.content) == null ? void 0 : o.meta,
2809
2718
  ...e == null ? void 0 : e.meta,
2810
- 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)
2719
+ 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)
2811
2720
  }
2812
2721
  };
2813
2722
  this.builderContextSignal.content = t;
@@ -2818,8 +2727,8 @@ const setupBrowserForEditing = (e = {}) => {
2818
2727
  if (t)
2819
2728
  switch (t.type) {
2820
2729
  case "builder.configureSdk": {
2821
- const o = t.data, { breakpoints: r, contentId: s } = o;
2822
- if (!s || s !== ((n = this.builderContextSignal.content) == null ? void 0 : n.id))
2730
+ const o = t.data, { breakpoints: r, contentId: i } = o;
2731
+ if (!i || i !== ((n = this.builderContextSignal.content) == null ? void 0 : n.id))
2823
2732
  return;
2824
2733
  r && this.mergeNewContent({
2825
2734
  meta: {
@@ -2829,8 +2738,8 @@ const setupBrowserForEditing = (e = {}) => {
2829
2738
  break;
2830
2739
  }
2831
2740
  case "builder.contentUpdate": {
2832
- const o = t.data, r = o.key || o.alias || o.entry || o.modelName, s = o.data;
2833
- r === this.model && (this.mergeNewContent(s), this.forceReRenderCount = this.forceReRenderCount + 1);
2741
+ const o = t.data, r = o.key || o.alias || o.entry || o.modelName, i = o.data;
2742
+ r === this.model && (this.mergeNewContent(i), this.forceReRenderCount = this.forceReRenderCount + 1);
2834
2743
  break;
2835
2744
  }
2836
2745
  }
@@ -2876,12 +2785,12 @@ const setupBrowserForEditing = (e = {}) => {
2876
2785
  },
2877
2786
  handleRequest({ url: e, key: t }) {
2878
2787
  fetch$1(e).then((n) => n.json()).then((n) => {
2879
- var r, s;
2788
+ var r, i;
2880
2789
  const o = {
2881
2790
  ...this.builderContextSignal.rootState,
2882
2791
  [t]: n
2883
2792
  };
2884
- (s = (r = this.builderContextSignal).rootSetState) == null || s.call(r, o), this.httpReqsData[t] = !0;
2793
+ (i = (r = this.builderContextSignal).rootSetState) == null || i.call(r, o), this.httpReqsData[t] = !0;
2885
2794
  }).catch((n) => {
2886
2795
  console.error("error fetching dynamic data", e, n);
2887
2796
  });
@@ -2889,11 +2798,11 @@ const setupBrowserForEditing = (e = {}) => {
2889
2798
  runHttpRequests() {
2890
2799
  var t, n, o;
2891
2800
  const e = (o = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) != null ? o : {};
2892
- Object.entries(e).forEach(([r, s]) => {
2893
- if (s && (!this.httpReqsData[r] || isEditing())) {
2894
- const i = this.evalExpression(s);
2801
+ Object.entries(e).forEach(([r, i]) => {
2802
+ if (i && (!this.httpReqsData[r] || isEditing())) {
2803
+ const s = this.evalExpression(i);
2895
2804
  this.handleRequest({
2896
- url: i,
2805
+ url: s,
2897
2806
  key: r
2898
2807
  });
2899
2808
  }
@@ -2944,8 +2853,8 @@ const setupBrowserForEditing = (e = {}) => {
2944
2853
  model: this.model,
2945
2854
  apiKey: this.apiKey,
2946
2855
  apiVersion: this.builderContextSignal.apiVersion
2947
- }).then((s) => {
2948
- s && this.mergeNewContent(s);
2856
+ }).then((i) => {
2857
+ i && this.mergeNewContent(i);
2949
2858
  });
2950
2859
  },
2951
2860
  _classStringToObject(e) {
@@ -2959,13 +2868,13 @@ const setupBrowserForEditing = (e = {}) => {
2959
2868
  }
2960
2869
  }
2961
2870
  });
2962
- function _sfc_render$4(e, t, n, o, r, s) {
2963
- var i, a, c;
2871
+ function _sfc_render$4(e, t, n, o, r, i) {
2872
+ var s, a, c;
2964
2873
  return e.builderContextSignal.content ? (openBlock(), createBlock(resolveDynamicComponent(e.ContentWrapper), mergeProps({
2965
2874
  key: e.forceReRenderCount,
2966
2875
  ref: "elementRef",
2967
2876
  onClick: (l) => e.onClick(l),
2968
- "builder-content-id": (i = e.builderContextSignal.content) == null ? void 0 : i.id,
2877
+ "builder-content-id": (s = e.builderContextSignal.content) == null ? void 0 : s.id,
2969
2878
  "builder-model": e.model,
2970
2879
  class: e._classStringToObject(
2971
2880
  `variant-${((a = e.content) == null ? void 0 : a.testVariationId) || ((c = e.content) == null ? void 0 : c.id)}`
@@ -2986,8 +2895,8 @@ function _sfc_render$4(e, t, n, o, r, s) {
2986
2895
  }, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : createCommentVNode("v-if", !0);
2987
2896
  }
2988
2897
  const EnableEditor = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content/components/enable-editor.vue"]]), getCssFromFont = (e) => {
2989
- var s, i;
2990
- 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;
2898
+ var i, s;
2899
+ 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;
2991
2900
  let r = "";
2992
2901
  if (o && t && n && (r += `
2993
2902
  @font-face {
@@ -3050,18 +2959,18 @@ ${getFontCss({
3050
2959
  };
3051
2960
  }
3052
2961
  });
3053
- function _sfc_render$3(e, t, n, o, r, s) {
3054
- const i = resolveComponent("inlined-styles");
3055
- return openBlock(), createBlock(i, { styles: e.injectedStyles }, null, 8, ["styles"]);
2962
+ function _sfc_render$3(e, t, n, o, r, i) {
2963
+ const s = resolveComponent("inlined-styles");
2964
+ return openBlock(), createBlock(s, { styles: e.injectedStyles }, null, 8, ["styles"]);
3056
2965
  }
3057
2966
  const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content/components/styles.vue"]]), getContextStateInitialValue = ({
3058
2967
  content: e,
3059
2968
  data: t,
3060
2969
  locale: n
3061
2970
  }) => {
3062
- var s, i, a;
3063
- const o = {}, r = ((s = e == null ? void 0 : e.data) == null ? void 0 : s.state) || {};
3064
- return (a = (i = e == null ? void 0 : e.data) == null ? void 0 : i.inputs) == null || a.forEach((c) => {
2971
+ var i, s, a;
2972
+ const o = {}, r = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.state) || {};
2973
+ return (a = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || a.forEach((c) => {
3065
2974
  c.name && c.defaultValue !== void 0 && (o[c.name] = c.defaultValue);
3066
2975
  }), {
3067
2976
  ...o,
@@ -3176,8 +3085,8 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
3176
3085
  }
3177
3086
  }
3178
3087
  });
3179
- function _sfc_render$2(e, t, n, o, r, s) {
3180
- const i = resolveComponent("inlined-script"), a = resolveComponent("content-styles"), c = resolveComponent("blocks"), l = resolveComponent("enable-editor");
3088
+ function _sfc_render$2(e, t, n, o, r, i) {
3089
+ const s = resolveComponent("inlined-script"), a = resolveComponent("content-styles"), c = resolveComponent("blocks"), l = resolveComponent("enable-editor");
3181
3090
  return openBlock(), createBlock(l, mergeProps({
3182
3091
  content: e.content,
3183
3092
  model: e.model,
@@ -3193,16 +3102,16 @@ function _sfc_render$2(e, t, n, o, r, s) {
3193
3102
  contentWrapperProps: e.contentWrapperProps
3194
3103
  }, {}), {
3195
3104
  default: withCtx(() => {
3196
- var d, u, p, m, f, b, y;
3105
+ var d, p, u, m, f, b, y;
3197
3106
  return [
3198
- e.isSsrAbTest ? (openBlock(), createBlock(i, {
3107
+ e.isSsrAbTest ? (openBlock(), createBlock(s, {
3199
3108
  key: 0,
3200
3109
  scriptStr: e.scriptStr
3201
3110
  }, null, 8, ["scriptStr"])) : createCommentVNode("v-if", !0),
3202
3111
  e.TARGET !== "reactNative" ? (openBlock(), createBlock(a, {
3203
3112
  key: 1,
3204
3113
  contentId: (d = e.builderContextSignal.content) == null ? void 0 : d.id,
3205
- cssCode: (p = (u = e.builderContextSignal.content) == null ? void 0 : u.data) == null ? void 0 : p.cssCode,
3114
+ cssCode: (u = (p = e.builderContextSignal.content) == null ? void 0 : p.data) == null ? void 0 : u.cssCode,
3206
3115
  customFonts: (f = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : f.customFonts
3207
3116
  }, null, 8, ["contentId", "cssCode", "customFonts"])) : createCommentVNode("v-if", !0),
3208
3117
  createVNode(c, {
@@ -3280,11 +3189,11 @@ const ContentComponent = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _s
3280
3189
  }
3281
3190
  }
3282
3191
  });
3283
- function _sfc_render$1(e, t, n, o, r, s) {
3192
+ function _sfc_render$1(e, t, n, o, r, i) {
3284
3193
  var l;
3285
- const i = resolveComponent("inlined-script"), a = resolveComponent("inlined-styles"), c = resolveComponent("content-component");
3194
+ const s = resolveComponent("inlined-script"), a = resolveComponent("inlined-styles"), c = resolveComponent("content-component");
3286
3195
  return openBlock(), createElementBlock(Fragment$1, null, [
3287
- !e.__isNestedRender && e.TARGET !== "reactNative" ? (openBlock(), createBlock(i, {
3196
+ !e.__isNestedRender && e.TARGET !== "reactNative" ? (openBlock(), createBlock(s, {
3288
3197
  key: 0,
3289
3198
  scriptStr: e.getScriptString()
3290
3199
  }, null, 8, ["scriptStr"])) : createCommentVNode("v-if", !0),
@@ -3293,8 +3202,8 @@ function _sfc_render$1(e, t, n, o, r, s) {
3293
3202
  id: `variants-styles-${(l = e.content) == null ? void 0 : l.id}`,
3294
3203
  styles: e.hideVariantsStyleString
3295
3204
  }, null, 8, ["id", "styles"]),
3296
- createVNode(i, { scriptStr: e.updateCookieAndStylesScriptStr }, null, 8, ["scriptStr"]),
3297
- (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.getVariants(e.content), (d, u) => (openBlock(), createBlock(c, {
3205
+ createVNode(s, { scriptStr: e.updateCookieAndStylesScriptStr }, null, 8, ["scriptStr"]),
3206
+ (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.getVariants(e.content), (d, p) => (openBlock(), createBlock(c, {
3298
3207
  key: d.testVariationId,
3299
3208
  content: d,
3300
3209
  showContent: !1,
@@ -3417,13 +3326,13 @@ const Content = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render
3417
3326
  }
3418
3327
  }
3419
3328
  });
3420
- function _sfc_render(e, t, n, o, r, s) {
3329
+ function _sfc_render(e, t, n, o, r, i) {
3421
3330
  var a, c, l, d;
3422
- const i = resolveComponent("content-variants");
3331
+ const s = resolveComponent("content-variants");
3423
3332
  return openBlock(), createElementBlock("div", mergeProps({
3424
3333
  class: e._classStringToObject(e.className)
3425
3334
  }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3426
- createVNode(i, {
3335
+ createVNode(s, {
3427
3336
  __isNestedRender: !0,
3428
3337
  apiVersion: e.builderContext.apiVersion,
3429
3338
  apiKey: e.builderContext.apiKey,
@@ -3451,7 +3360,7 @@ function setEditorSettings(e) {
3451
3360
  }
3452
3361
  }
3453
3362
  const fetchBuilderProps = async (e) => {
3454
- var o, r, s;
3363
+ var o, r, i;
3455
3364
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
3456
3365
  ...e,
3457
3366
  apiKey: e.apiKey,
@@ -3462,7 +3371,7 @@ const fetchBuilderProps = async (e) => {
3462
3371
  urlPath: t
3463
3372
  } : {}
3464
3373
  },
3465
- options: getBuilderSearchParams(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
3374
+ options: getBuilderSearchParams(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
3466
3375
  };
3467
3376
  return {
3468
3377
  apiKey: n.apiKey,
@@ -3471,38 +3380,41 @@ const fetchBuilderProps = async (e) => {
3471
3380
  };
3472
3381
  };
3473
3382
  export {
3383
+ fetchBuilderProps as A,
3474
3384
  Block as B,
3475
3385
  Content as C,
3386
+ block as D,
3476
3387
  Fragment as F,
3477
- Image as I,
3388
+ InlinedStyles as I,
3478
3389
  RenderBlocks as R,
3479
3390
  Section as S,
3480
3391
  TARGET as T,
3481
3392
  Video as V,
3482
3393
  _export_sfc as _,
3483
- BlockStyles as a,
3484
- BuilderContext as b,
3485
- convertStyleMapToCSSArray as c,
3486
- Blocks as d,
3394
+ getSizesForBreakpoints as a,
3395
+ getMaxWidthQueryForSize as b,
3396
+ checkIsDefined as c,
3397
+ BuilderContext as d,
3487
3398
  evaluate as e,
3488
- RenderContent as f,
3489
- Button as g,
3490
- Columns as h,
3491
- Symbol$1 as i,
3492
- Text as j,
3493
- isEditing as k,
3494
- isPreviewing as l,
3495
- createRegisterComponentMessage as m,
3496
- _processContentResult as n,
3497
- fetchEntries as o,
3498
- fetchOneEntry as p,
3499
- getAllContent as q,
3399
+ Blocks as f,
3400
+ getProcessedBlock as g,
3401
+ RenderContent as h,
3402
+ Button as i,
3403
+ Columns as j,
3404
+ Image as k,
3405
+ Symbol$1 as l,
3406
+ Text as m,
3407
+ isEditing as n,
3408
+ isPreviewing as o,
3409
+ createRegisterComponentMessage as p,
3410
+ _processContentResult as q,
3500
3411
  register as r,
3501
3412
  setEditorSettings as s,
3502
- getContent as t,
3503
- getBuilderSearchParams as u,
3504
- track as v,
3413
+ fetchEntries as t,
3414
+ fetchOneEntry as u,
3415
+ getAllContent as v,
3505
3416
  wrapComponentRef as w,
3506
- fetchBuilderProps as x,
3507
- block as y
3417
+ getContent as x,
3418
+ getBuilderSearchParams as y,
3419
+ track as z
3508
3420
  };