@builder.io/sdk-vue 0.0.3-1 → 0.0.4

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 (238) hide show
  1. package/README.md +2 -14
  2. package/package.json +5 -4
  3. package/packages/_vue2/dist/{block-styles.c531694e.cjs → block-styles.eb369124.cjs} +3 -3
  4. package/packages/_vue2/dist/{block-styles.234651b2.js → block-styles.fc09dcaf.js} +3 -3
  5. package/packages/_vue2/dist/get-processed-block.ae7861fa.js +40 -0
  6. package/packages/_vue2/dist/get-processed-block.fce88f96.cjs +1 -0
  7. package/packages/_vue2/dist/{index.19474a4f.js → index.a348d39c.js} +325 -313
  8. package/packages/_vue2/dist/index.efd88402.cjs +4 -0
  9. package/packages/_vue2/dist/{render-block.3cf39e0e.js → render-block.089abc43.js} +31 -38
  10. package/packages/_vue2/dist/render-block.d62a967f.cjs +3 -0
  11. package/packages/_vue2/dist/render-component-with-context.02a2c528.js +53 -0
  12. package/packages/_vue2/dist/render-component-with-context.1a7fd4e9.cjs +1 -0
  13. package/packages/_vue2/dist/{render-component.a9d4efb1.cjs → render-component.4342df65.cjs} +1 -1
  14. package/packages/_vue2/dist/{render-component.56e5101d.js → render-component.75cfc72e.js} +3 -3
  15. package/packages/_vue2/dist/{render-inlined-styles.9b6439ce.cjs → render-inlined-styles.36f2f1b9.cjs} +1 -1
  16. package/packages/_vue2/dist/{render-inlined-styles.b6534355.js → render-inlined-styles.6eb4d3ee.js} +1 -1
  17. package/packages/_vue2/dist/{render-repeated-block.3e536590.js → render-repeated-block.c84c107f.js} +2 -2
  18. package/packages/_vue2/dist/{render-repeated-block.95861e2e.cjs → render-repeated-block.e85c5841.cjs} +1 -1
  19. package/packages/_vue2/dist/{render-styles.9d4787d0.cjs → render-styles.13fa67a1.cjs} +1 -1
  20. package/packages/_vue2/dist/{render-styles.ad89c45c.js → render-styles.6722cee5.js} +2 -2
  21. package/packages/_vue2/dist/sdk.cjs +1 -1
  22. package/packages/_vue2/dist/sdk.js +7 -6
  23. package/packages/_vue2/dist/src/blocks/button/button.vue.d.ts +11 -0
  24. package/packages/_vue2/dist/src/blocks/button/component-info.d.ts +2 -0
  25. package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +306 -0
  26. package/packages/_vue2/dist/src/blocks/columns/component-info.d.ts +2 -0
  27. package/packages/_vue2/dist/src/blocks/custom-code/component-info.d.ts +2 -0
  28. package/packages/_vue2/dist/src/blocks/custom-code/custom-code.vue.d.ts +18 -0
  29. package/packages/_vue2/dist/src/blocks/embed/component-info.d.ts +2 -0
  30. package/packages/_vue2/dist/src/blocks/embed/embed.vue.d.ts +22 -0
  31. package/packages/_vue2/dist/src/blocks/embed/helpers.d.ts +1 -0
  32. package/packages/_vue2/dist/src/blocks/fragment/component-info.d.ts +2 -0
  33. package/packages/_vue2/dist/src/blocks/fragment/fragment.vue.d.ts +10 -0
  34. package/packages/_vue2/dist/src/blocks/image/component-info.d.ts +2 -0
  35. package/packages/_vue2/dist/src/blocks/image/image.helpers.d.ts +1 -0
  36. package/packages/_vue2/dist/src/blocks/img/component-info.d.ts +2 -0
  37. package/packages/_vue2/dist/src/blocks/img/img.vue.d.ts +17 -0
  38. package/packages/_vue2/dist/src/blocks/section/component-info.d.ts +2 -0
  39. package/packages/_vue2/dist/src/blocks/section/section.vue.d.ts +11 -0
  40. package/packages/_vue2/dist/src/blocks/symbol/component-info.d.ts +2 -0
  41. package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +396 -0
  42. package/packages/_vue2/dist/src/blocks/text/component-info.d.ts +2 -0
  43. package/packages/_vue2/dist/src/blocks/text/text.vue.d.ts +8 -0
  44. package/packages/_vue2/dist/src/blocks/util.d.ts +1 -0
  45. package/packages/_vue2/dist/src/blocks/video/component-info.d.ts +2 -0
  46. package/packages/_vue2/dist/src/blocks/video/video.vue.d.ts +25 -0
  47. package/packages/_vue2/dist/src/components/render-block/block-styles.vue.d.ts +31 -0
  48. package/packages/_vue2/dist/src/components/render-block/render-block.helpers.d.ts +1 -0
  49. package/packages/_vue2/dist/src/components/render-block/render-block.vue.d.ts +237 -0
  50. package/packages/_vue2/dist/src/components/render-block/render-component-with-context.vue.d.ts +116 -0
  51. package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +141 -0
  52. package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +231 -0
  53. package/packages/_vue2/dist/src/components/render-block/types.d.ts +6 -0
  54. package/packages/_vue2/dist/src/components/render-blocks.vue.d.ts +279 -0
  55. package/packages/_vue2/dist/src/components/render-content/components/render-styles.vue.d.ts +27 -0
  56. package/packages/_vue2/dist/src/components/render-content/render-content.vue.d.ts +368 -0
  57. package/packages/_vue2/dist/src/components/render-inlined-styles.vue.d.ts +12 -0
  58. package/packages/_vue2/dist/src/constants/builder-registered-components.d.ts +6 -0
  59. package/packages/_vue2/dist/src/constants/device-sizes.d.ts +2 -0
  60. package/packages/_vue2/dist/src/constants/target.d.ts +2 -0
  61. package/packages/_vue2/dist/src/context/builder.context.d.ts +2 -0
  62. package/packages/_vue2/dist/src/context/types.d.ts +17 -0
  63. package/packages/_vue2/dist/src/functions/camel-to-kebab-case.d.ts +1 -0
  64. package/packages/_vue2/dist/src/functions/evaluate.d.ts +5 -0
  65. package/packages/_vue2/dist/src/functions/event-handler-name.d.ts +1 -0
  66. package/packages/_vue2/dist/src/functions/extract-text-styles.d.ts +4 -0
  67. package/packages/_vue2/dist/src/functions/fast-clone.d.ts +4 -0
  68. package/packages/_vue2/dist/src/functions/get-block-actions-handler.d.ts +5 -0
  69. package/packages/_vue2/dist/src/functions/get-block-actions.d.ts +9 -0
  70. package/packages/_vue2/dist/src/functions/get-block-component-options.d.ts +2 -0
  71. package/packages/_vue2/dist/src/functions/get-block-properties.d.ts +5 -0
  72. package/packages/_vue2/dist/src/functions/get-block-tag.d.ts +3 -0
  73. package/packages/_vue2/dist/src/functions/get-builder-search-params/index.d.ts +6 -0
  74. package/packages/_vue2/dist/src/functions/get-content/ab-testing.d.ts +5 -0
  75. package/packages/_vue2/dist/src/functions/get-content/index.d.ts +9 -0
  76. package/packages/_vue2/dist/src/functions/get-content/types.d.ts +31 -0
  77. package/packages/_vue2/dist/src/functions/get-fetch.d.ts +1 -0
  78. package/packages/_vue2/dist/src/functions/get-global-this.d.ts +1 -0
  79. package/packages/_vue2/dist/src/functions/get-processed-block.d.ts +10 -0
  80. package/packages/_vue2/dist/src/functions/get-react-native-block-styles.d.ts +6 -0
  81. package/packages/_vue2/dist/src/functions/is-browser.d.ts +1 -0
  82. package/packages/_vue2/dist/src/functions/is-editing.d.ts +1 -0
  83. package/packages/_vue2/dist/src/functions/is-iframe.d.ts +1 -0
  84. package/packages/_vue2/dist/src/functions/is-previewing.d.ts +1 -0
  85. package/packages/_vue2/dist/src/functions/mark-mutable.d.ts +2 -0
  86. package/packages/_vue2/dist/src/functions/register-component.d.ts +14 -0
  87. package/packages/_vue2/dist/src/functions/register.d.ts +16 -0
  88. package/packages/_vue2/dist/src/functions/sanitize-react-native-block-styles.d.ts +3 -0
  89. package/packages/_vue2/dist/src/functions/set-editor-settings.d.ts +4 -0
  90. package/packages/_vue2/dist/src/functions/set.d.ts +7 -0
  91. package/packages/_vue2/dist/src/functions/track.d.ts +51 -0
  92. package/packages/_vue2/dist/src/functions/transform-block.d.ts +2 -0
  93. package/packages/_vue2/dist/src/helpers/ab-tests.d.ts +8 -0
  94. package/packages/_vue2/dist/src/helpers/cookie.d.ts +15 -0
  95. package/packages/_vue2/dist/src/helpers/css.d.ts +5 -0
  96. package/packages/_vue2/dist/src/helpers/flatten.d.ts +6 -0
  97. package/packages/_vue2/dist/src/helpers/localStorage.d.ts +8 -0
  98. package/packages/_vue2/dist/src/helpers/nullable.d.ts +2 -0
  99. package/packages/_vue2/dist/src/helpers/sessionId.d.ts +6 -0
  100. package/packages/_vue2/dist/src/helpers/url.d.ts +6 -0
  101. package/packages/_vue2/dist/src/helpers/uuid.d.ts +8 -0
  102. package/packages/_vue2/dist/src/helpers/visitorId.d.ts +6 -0
  103. package/packages/_vue2/dist/src/index-helpers/blocks-exports.d.ts +10 -0
  104. package/packages/_vue2/dist/src/index-helpers/top-of-file.d.ts +1 -0
  105. package/packages/_vue2/dist/src/index.d.ts +9 -0
  106. package/packages/_vue2/dist/src/scripts/init-editing.d.ts +2 -0
  107. package/packages/_vue2/dist/src/types/builder-block.d.ts +57 -0
  108. package/packages/_vue2/dist/src/types/builder-content.d.ts +38 -0
  109. package/packages/_vue2/dist/src/types/can-track.d.ts +3 -0
  110. package/packages/_vue2/dist/src/types/components.d.ts +177 -0
  111. package/packages/_vue2/dist/src/types/deep-partial.d.ts +3 -0
  112. package/packages/_vue2/dist/src/types/element.d.ts +59 -0
  113. package/packages/_vue2/dist/src/types/typescript.d.ts +5 -0
  114. package/packages/_vue2/dist/style.css +1 -1
  115. package/packages/_vue3/dist/{block-styles.e3632a69.cjs → block-styles.4388e73f.cjs} +2 -2
  116. package/packages/_vue3/dist/{block-styles.88005ace.js → block-styles.e92f0e4a.js} +3 -3
  117. package/packages/_vue3/dist/get-processed-block.91be815e.js +40 -0
  118. package/packages/_vue3/dist/get-processed-block.da7b258e.cjs +1 -0
  119. package/packages/_vue3/dist/index.528ea0ff.cjs +4 -0
  120. package/packages/_vue3/dist/{index.2472a241.js → index.7a037186.js} +438 -425
  121. package/packages/_vue3/dist/render-block.3d77314f.cjs +3 -0
  122. package/packages/_vue3/dist/{render-block.593fc01c.js → render-block.7817291b.js} +78 -95
  123. package/packages/_vue3/dist/render-component-with-context.b67db565.cjs +1 -0
  124. package/packages/_vue3/dist/{render-component-with-context.f5cab824.js → render-component-with-context.fa0fe72b.js} +15 -10
  125. package/packages/_vue3/dist/{render-component.06b4587b.cjs → render-component.2630f2f7.cjs} +1 -1
  126. package/packages/_vue3/dist/{render-component.d5c26257.js → render-component.cca10188.js} +3 -3
  127. package/packages/_vue3/dist/{render-inlined-styles.3fab5467.cjs → render-inlined-styles.7be0edda.cjs} +1 -1
  128. package/packages/_vue3/dist/{render-inlined-styles.be1aba8b.js → render-inlined-styles.bf23044d.js} +1 -1
  129. package/packages/_vue3/dist/{render-repeated-block.d1580cb5.cjs → render-repeated-block.a972d060.cjs} +1 -1
  130. package/packages/_vue3/dist/{render-repeated-block.1d1c64a8.js → render-repeated-block.fa7d9eeb.js} +2 -2
  131. package/packages/_vue3/dist/{render-styles.efaaccdf.js → render-styles.970e0a2e.js} +2 -2
  132. package/packages/_vue3/dist/{render-styles.4717b645.cjs → render-styles.b4777a9f.cjs} +1 -1
  133. package/packages/_vue3/dist/sdk.cjs +1 -1
  134. package/packages/_vue3/dist/sdk.js +10 -9
  135. package/packages/_vue3/dist/src/blocks/button/button.vue.d.ts +11 -0
  136. package/packages/_vue3/dist/src/blocks/button/component-info.d.ts +2 -0
  137. package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +77 -0
  138. package/packages/_vue3/dist/src/blocks/columns/component-info.d.ts +2 -0
  139. package/packages/_vue3/dist/src/blocks/custom-code/component-info.d.ts +2 -0
  140. package/packages/_vue3/dist/src/blocks/custom-code/custom-code.vue.d.ts +18 -0
  141. package/packages/_vue3/dist/src/blocks/embed/component-info.d.ts +2 -0
  142. package/packages/_vue3/dist/src/blocks/embed/embed.vue.d.ts +22 -0
  143. package/packages/_vue3/dist/src/blocks/embed/helpers.d.ts +1 -0
  144. package/packages/_vue3/dist/src/blocks/fragment/component-info.d.ts +2 -0
  145. package/packages/_vue3/dist/src/blocks/fragment/fragment.vue.d.ts +10 -0
  146. package/packages/_vue3/dist/src/blocks/image/component-info.d.ts +2 -0
  147. package/packages/_vue3/dist/src/blocks/image/image.helpers.d.ts +1 -0
  148. package/packages/_vue3/dist/src/blocks/image/image.vue.d.ts +31 -0
  149. package/packages/_vue3/dist/src/blocks/img/component-info.d.ts +2 -0
  150. package/packages/_vue3/dist/src/blocks/img/img.vue.d.ts +17 -0
  151. package/packages/_vue3/dist/src/blocks/section/component-info.d.ts +2 -0
  152. package/packages/_vue3/dist/src/blocks/section/section.vue.d.ts +11 -0
  153. package/packages/_vue3/dist/src/blocks/symbol/component-info.d.ts +2 -0
  154. package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +167 -0
  155. package/packages/_vue3/dist/src/blocks/text/component-info.d.ts +2 -0
  156. package/packages/_vue3/dist/src/blocks/text/text.vue.d.ts +8 -0
  157. package/packages/_vue3/dist/src/blocks/util.d.ts +1 -0
  158. package/packages/_vue3/dist/src/blocks/video/component-info.d.ts +2 -0
  159. package/packages/_vue3/dist/src/blocks/video/video.vue.d.ts +25 -0
  160. package/packages/_vue3/dist/src/components/render-block/block-styles.vue.d.ts +31 -0
  161. package/packages/_vue3/dist/src/components/render-block/render-block.helpers.d.ts +1 -0
  162. package/packages/_vue3/dist/src/components/render-block/render-block.vue.d.ts +8 -0
  163. package/packages/_vue3/dist/src/components/render-block/render-component-with-context.vue.d.ts +51 -0
  164. package/packages/_vue3/dist/src/components/render-block/render-component.vue.d.ts +44 -0
  165. package/packages/_vue3/dist/src/components/render-block/render-repeated-block.vue.d.ts +2 -0
  166. package/packages/_vue3/dist/src/components/render-block/types.d.ts +6 -0
  167. package/packages/_vue3/dist/src/components/render-blocks.vue.d.ts +50 -0
  168. package/packages/_vue3/dist/src/components/render-content/components/render-styles.vue.d.ts +27 -0
  169. package/packages/_vue3/dist/src/components/render-content/render-content.vue.d.ts +139 -0
  170. package/packages/_vue3/dist/src/components/render-inlined-styles.vue.d.ts +12 -0
  171. package/packages/_vue3/dist/src/constants/builder-registered-components.d.ts +6 -0
  172. package/packages/_vue3/dist/src/constants/device-sizes.d.ts +2 -0
  173. package/packages/_vue3/dist/src/constants/target.d.ts +2 -0
  174. package/packages/_vue3/dist/src/context/builder.context.d.ts +2 -0
  175. package/packages/_vue3/dist/src/context/types.d.ts +17 -0
  176. package/packages/_vue3/dist/src/functions/camel-to-kebab-case.d.ts +1 -0
  177. package/packages/_vue3/dist/src/functions/evaluate.d.ts +5 -0
  178. package/packages/_vue3/dist/src/functions/event-handler-name.d.ts +1 -0
  179. package/packages/_vue3/dist/src/functions/extract-text-styles.d.ts +4 -0
  180. package/packages/_vue3/dist/src/functions/fast-clone.d.ts +4 -0
  181. package/packages/_vue3/dist/src/functions/get-block-actions-handler.d.ts +5 -0
  182. package/packages/_vue3/dist/src/functions/get-block-actions.d.ts +9 -0
  183. package/packages/_vue3/dist/src/functions/get-block-component-options.d.ts +2 -0
  184. package/packages/_vue3/dist/src/functions/get-block-properties.d.ts +5 -0
  185. package/packages/_vue3/dist/src/functions/get-block-tag.d.ts +3 -0
  186. package/packages/_vue3/dist/src/functions/get-builder-search-params/index.d.ts +6 -0
  187. package/packages/_vue3/dist/src/functions/get-content/ab-testing.d.ts +5 -0
  188. package/packages/_vue3/dist/src/functions/get-content/index.d.ts +9 -0
  189. package/packages/_vue3/dist/src/functions/get-content/types.d.ts +31 -0
  190. package/packages/_vue3/dist/src/functions/get-fetch.d.ts +1 -0
  191. package/packages/_vue3/dist/src/functions/get-global-this.d.ts +1 -0
  192. package/packages/_vue3/dist/src/functions/get-processed-block.d.ts +10 -0
  193. package/packages/_vue3/dist/src/functions/get-react-native-block-styles.d.ts +6 -0
  194. package/packages/_vue3/dist/src/functions/is-browser.d.ts +1 -0
  195. package/packages/_vue3/dist/src/functions/is-editing.d.ts +1 -0
  196. package/packages/_vue3/dist/src/functions/is-iframe.d.ts +1 -0
  197. package/packages/_vue3/dist/src/functions/is-previewing.d.ts +1 -0
  198. package/packages/_vue3/dist/src/functions/mark-mutable.d.ts +2 -0
  199. package/packages/_vue3/dist/src/functions/register-component.d.ts +14 -0
  200. package/packages/_vue3/dist/src/functions/register.d.ts +16 -0
  201. package/packages/_vue3/dist/src/functions/sanitize-react-native-block-styles.d.ts +3 -0
  202. package/packages/_vue3/dist/src/functions/set-editor-settings.d.ts +4 -0
  203. package/packages/_vue3/dist/src/functions/set.d.ts +7 -0
  204. package/packages/_vue3/dist/src/functions/track.d.ts +51 -0
  205. package/packages/_vue3/dist/src/functions/transform-block.d.ts +2 -0
  206. package/packages/_vue3/dist/src/helpers/ab-tests.d.ts +8 -0
  207. package/packages/_vue3/dist/src/helpers/cookie.d.ts +15 -0
  208. package/packages/_vue3/dist/src/helpers/css.d.ts +5 -0
  209. package/packages/_vue3/dist/src/helpers/flatten.d.ts +6 -0
  210. package/packages/_vue3/dist/src/helpers/localStorage.d.ts +8 -0
  211. package/packages/_vue3/dist/src/helpers/nullable.d.ts +2 -0
  212. package/packages/_vue3/dist/src/helpers/sessionId.d.ts +6 -0
  213. package/packages/_vue3/dist/src/helpers/url.d.ts +6 -0
  214. package/packages/_vue3/dist/src/helpers/uuid.d.ts +8 -0
  215. package/packages/_vue3/dist/src/helpers/visitorId.d.ts +6 -0
  216. package/packages/_vue3/dist/src/index-helpers/blocks-exports.d.ts +10 -0
  217. package/packages/_vue3/dist/src/index-helpers/top-of-file.d.ts +1 -0
  218. package/packages/_vue3/dist/src/index.d.ts +9 -0
  219. package/packages/_vue3/dist/src/scripts/init-editing.d.ts +2 -0
  220. package/packages/_vue3/dist/src/types/builder-block.d.ts +57 -0
  221. package/packages/_vue3/dist/src/types/builder-content.d.ts +38 -0
  222. package/packages/_vue3/dist/src/types/can-track.d.ts +3 -0
  223. package/packages/_vue3/dist/src/types/components.d.ts +177 -0
  224. package/packages/_vue3/dist/src/types/deep-partial.d.ts +3 -0
  225. package/packages/_vue3/dist/src/types/element.d.ts +59 -0
  226. package/packages/_vue3/dist/src/types/typescript.d.ts +5 -0
  227. package/packages/_vue3/dist/style.css +1 -1
  228. package/packages/_vue2/dist/get-processed-block.1ba91586.js +0 -40
  229. package/packages/_vue2/dist/get-processed-block.6a23a7de.cjs +0 -1
  230. package/packages/_vue2/dist/index.e85eb7cf.cjs +0 -4
  231. package/packages/_vue2/dist/render-block.4f260352.cjs +0 -3
  232. package/packages/_vue2/dist/render-component-with-context.dcb1f5da.js +0 -53
  233. package/packages/_vue2/dist/render-component-with-context.f76bfccc.cjs +0 -1
  234. package/packages/_vue3/dist/get-processed-block.0d475a13.js +0 -40
  235. package/packages/_vue3/dist/get-processed-block.c75eb6d1.cjs +0 -1
  236. package/packages/_vue3/dist/index.e7c6fe34.cjs +0 -4
  237. package/packages/_vue3/dist/render-block.92199649.cjs +0 -3
  238. package/packages/_vue3/dist/render-component-with-context.fb4f86a9.cjs +0 -1
@@ -1,18 +1,12 @@
1
- import { defineAsyncComponent as v, resolveComponent as x, openBlock as l, createElementBlock as u, normalizeStyle as C, Fragment as w, renderList as F, createVNode as q, createElementVNode as R, createCommentVNode as y, normalizeClass as U, renderSlot as S, mergeProps as _, toDisplayString as B, createBlock as I } from "vue";
1
+ import { defineAsyncComponent as y, resolveComponent as v, openBlock as l, createElementBlock as d, normalizeStyle as _, Fragment as C, renderList as E, createVNode as K, createElementVNode as T, createCommentVNode as b, normalizeClass as U, renderSlot as w, mergeProps as x, toDisplayString as $, createBlock as S } from "vue";
2
2
  const V = "vue3";
3
- function f() {
3
+ function h() {
4
4
  return typeof window < "u" && typeof document < "u";
5
5
  }
6
- function ae() {
7
- return f() && window.self !== window.top;
8
- }
9
- function g() {
10
- return ae() && window.location.search.indexOf("builder.frameEditing=") !== -1;
11
- }
12
- const P = {};
13
- function ie(e, n) {
14
- let t = P[e];
15
- if (t || (t = P[e] = []), t.push(n), f()) {
6
+ const W = {};
7
+ function ae(e, n) {
8
+ let t = W[e];
9
+ if (t || (t = W[e] = []), t.push(n), h()) {
16
10
  const o = {
17
11
  type: "builder.register",
18
12
  data: {
@@ -22,13 +16,13 @@ function ie(e, n) {
22
16
  };
23
17
  try {
24
18
  parent.postMessage(o, "*"), parent !== window && window.postMessage(o, "*");
25
- } catch (r) {
26
- console.debug("Could not postmessage", r);
19
+ } catch (s) {
20
+ console.debug("Could not postmessage", s);
27
21
  }
28
22
  }
29
23
  }
30
- const ce = () => {
31
- ie("insertMenu", {
24
+ const ie = () => {
25
+ ae("insertMenu", {
32
26
  name: "_default",
33
27
  default: !0,
34
28
  items: [
@@ -42,56 +36,49 @@ const ce = () => {
42
36
  { name: "Custom Code" }
43
37
  ]
44
38
  });
45
- }, le = (e) => {
46
- var n, t;
47
- g() && ((n = window.parent) == null || n.postMessage(
39
+ }, ce = () => {
40
+ var e;
41
+ h() && ((e = window.parent) == null || e.postMessage(
48
42
  {
49
43
  type: "builder.sdkInfo",
50
44
  data: {
51
45
  target: V,
52
- supportsPatchUpdates: !1
46
+ supportsPatchUpdates: !1,
47
+ supportsAddBlockScoping: !0
53
48
  }
54
49
  },
55
50
  "*"
56
- ), (t = window.parent) == null || t.postMessage(
57
- {
58
- type: "builder.updateContent",
59
- data: {
60
- options: e
61
- }
62
- },
63
- "*"
64
- ), window.addEventListener("message", ({ data: o }) => {
65
- var r, s;
66
- if (o)
67
- switch (o.type) {
51
+ ), window.addEventListener("message", ({ data: n }) => {
52
+ var t, o;
53
+ if (!!(n != null && n.type))
54
+ switch (n.type) {
68
55
  case "builder.evaluate": {
69
- const a = o.data.text, c = o.data.arguments || [], i = o.data.id, m = new Function(a);
70
- let d, p = null;
56
+ const s = n.data.text, r = n.data.arguments || [], a = n.data.id, c = new Function(s);
57
+ let i, u = null;
71
58
  try {
72
- d = m.apply(null, c);
73
- } catch (b) {
74
- p = b;
59
+ i = c.apply(null, r);
60
+ } catch (m) {
61
+ u = m;
75
62
  }
76
- p ? (r = window.parent) == null || r.postMessage(
63
+ u ? (t = window.parent) == null || t.postMessage(
77
64
  {
78
65
  type: "builder.evaluateError",
79
- data: { id: i, error: p.message }
66
+ data: { id: a, error: u.message }
80
67
  },
81
68
  "*"
82
- ) : d && typeof d.then == "function" ? d.then((b) => {
83
- var k;
84
- (k = window.parent) == null || k.postMessage(
69
+ ) : i && typeof i.then == "function" ? i.then((m) => {
70
+ var p;
71
+ (p = window.parent) == null || p.postMessage(
85
72
  {
86
73
  type: "builder.evaluateResult",
87
- data: { id: i, result: b }
74
+ data: { id: a, result: m }
88
75
  },
89
76
  "*"
90
77
  );
91
- }).catch(console.error) : (s = window.parent) == null || s.postMessage(
78
+ }).catch(console.error) : (o = window.parent) == null || o.postMessage(
92
79
  {
93
80
  type: "builder.evaluateResult",
94
- data: { result: d, id: i }
81
+ data: { result: i, id: a }
95
82
  },
96
83
  "*"
97
84
  );
@@ -106,14 +93,14 @@ function A(e) {
106
93
  function mn(e) {
107
94
  return e;
108
95
  }
109
- const de = () => Promise.resolve().then(() => se).then((e) => e.default).catch((e) => {
96
+ const le = () => Promise.resolve().then(() => se).then((e) => e.default).catch((e) => {
110
97
  throw console.error(
111
98
  "Error while attempting to dynamically import component RenderBlocks at ../../components/render-blocks.vue",
112
99
  e
113
100
  ), e;
114
- }), ue = {
101
+ }), de = {
115
102
  name: "builder-columns",
116
- components: { RenderBlocks: v(de) },
103
+ components: { RenderBlocks: y(le) },
117
104
  props: [
118
105
  "space",
119
106
  "columns",
@@ -161,72 +148,72 @@ const de = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
161
148
  }
162
149
  }
163
150
  };
164
- const h = (e, n) => {
151
+ const f = (e, n) => {
165
152
  const t = e.__vccOpts || e;
166
- for (const [o, r] of n)
167
- t[o] = r;
153
+ for (const [o, s] of n)
154
+ t[o] = s;
168
155
  return t;
169
156
  };
170
- function me(e, n, t, o, r, s) {
171
- const a = x("render-blocks");
172
- return l(), u("div", {
173
- class: "builder-columns div-361b1o6wv2k",
174
- style: C(s.columnsCssVars)
157
+ function ue(e, n, t, o, s, r) {
158
+ const a = v("render-blocks");
159
+ return l(), d("div", {
160
+ class: "builder-columns div-1eih9th5ow6",
161
+ style: _(r.columnsCssVars)
175
162
  }, [
176
- (l(!0), u(w, null, F(t.columns, (c, i) => (l(), u("div", {
163
+ (l(!0), d(C, null, E(t.columns, (c, i) => (l(), d("div", {
177
164
  key: i,
178
- class: "builder-column div-361b1o6wv2k-2",
179
- style: C({
180
- width: s.getColumnCssWidth(i),
181
- marginLeft: `${i === 0 ? 0 : s.getGutterSize()}px`,
182
- ...s.columnCssVars
165
+ class: "builder-column div-1eih9th5ow6-2",
166
+ style: _({
167
+ width: r.getColumnCssWidth(i),
168
+ marginLeft: `${i === 0 ? 0 : r.getGutterSize()}px`,
169
+ ...r.columnCssVars
183
170
  })
184
171
  }, [
185
- q(a, {
172
+ K(a, {
186
173
  blocks: e.markMutable(c.blocks),
187
174
  path: `component.options.columns.${i}.blocks`,
188
175
  parent: t.builderBlock.id,
189
- style: {
176
+ styleProp: {
190
177
  flexGrow: "1"
191
178
  }
192
179
  }, null, 8, ["blocks", "path", "parent"])
193
180
  ], 4))), 128))
194
181
  ], 4);
195
182
  }
196
- const pe = /* @__PURE__ */ h(ue, [["render", me], ["__scopeId", "data-v-c19c7ec1"]]);
197
- function W(e) {
183
+ const me = /* @__PURE__ */ f(de, [["render", ue], ["__scopeId", "data-v-d50420e7"]]);
184
+ function L(e) {
198
185
  return e.replace(/http(s)?:/, "");
199
186
  }
200
- function he(e = "", n, t) {
201
- const o = new RegExp("([?&])" + n + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
202
- return e.match(o) ? e.replace(o, "$1" + n + "=" + encodeURIComponent(t) + "$2") : e + r + n + "=" + encodeURIComponent(t);
187
+ function pe(e = "", n, t) {
188
+ const o = new RegExp("([?&])" + n + "=.*?(&|$)", "i"), s = e.indexOf("?") !== -1 ? "&" : "?";
189
+ return e.match(o) ? e.replace(o, "$1" + n + "=" + encodeURIComponent(t) + "$2") : e + s + n + "=" + encodeURIComponent(t);
203
190
  }
204
- function fe(e, n) {
191
+ function he(e, n) {
205
192
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !n)
206
193
  return e;
207
194
  if (n === "master")
208
- return W(e);
195
+ return L(e);
209
196
  const t = e.match(
210
197
  /(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i
211
198
  );
212
199
  if (t) {
213
- const o = e.split(t[0]), r = t[3], s = n.match("x") ? n : `${n}x`;
214
- return W(`${o[0]}_${s}${r}`);
200
+ const o = e.split(t[0]), s = t[3], r = n.match("x") ? n : `${n}x`;
201
+ return L(`${o[0]}_${r}${s}`);
215
202
  }
216
203
  return null;
217
204
  }
218
- function E(e) {
205
+ function R(e) {
219
206
  if (!e)
220
207
  return e;
221
208
  const n = [100, 200, 400, 800, 1200, 1600, 2e3];
222
209
  if (e.match(/builder\.io/)) {
223
210
  let t = e;
224
211
  const o = Number(e.split("?width=")[1]);
225
- return isNaN(o) || (t = `${t} ${o}w`), n.filter((r) => r !== o).map((r) => `${he(e, "width", r)} ${r}w`).concat([t]).join(", ");
212
+ return isNaN(o) || (t = `${t} ${o}w`), n.filter((s) => s !== o).map((s) => `${pe(e, "width", s)} ${s}w`).concat([t]).join(", ");
226
213
  }
227
- return e.match(/cdn\.shopify\.com/) ? n.map((t) => [fe(e, `${t}x${t}`), t]).filter(([t]) => !!t).map(([t, o]) => `${t} ${o}w`).concat([e]).join(", ") : e;
214
+ return e.match(/cdn\.shopify\.com/) ? n.map((t) => [he(e, `${t}x${t}`), t]).filter(([t]) => !!t).map(([t, o]) => `${t} ${o}w`).concat([e]).join(", ") : e;
228
215
  }
229
- const ge = {
216
+ const fe = {
230
217
  name: "builder-image",
231
218
  props: [
232
219
  "image",
@@ -249,10 +236,10 @@ const ge = {
249
236
  return this.srcset;
250
237
  if (this.srcset && ((t = this.image) == null ? void 0 : t.includes("builder.io/api/v1/image"))) {
251
238
  if (!this.srcset.includes(this.image.split("?")[0]))
252
- return console.debug("Removed given srcset"), E(n);
239
+ return console.debug("Removed given srcset"), R(n);
253
240
  } else if (this.image && !this.srcset)
254
- return E(n);
255
- return E(n);
241
+ return R(n);
242
+ return R(n);
256
243
  },
257
244
  webpSrcSet() {
258
245
  var e;
@@ -271,62 +258,62 @@ const ge = {
271
258
  }
272
259
  }
273
260
  };
274
- const be = ["srcset"], ye = ["alt", "role", "src", "srcset", "sizes"], ve = ["srcset"], xe = {
261
+ const ge = ["srcset"], be = ["alt", "role", "src", "srcset", "sizes"], ye = ["srcset"], ve = {
275
262
  key: 2,
276
- class: "div-256wrwn33ry-2"
263
+ class: "div-kd7f8ex7am-2"
277
264
  };
278
- function _e(e, n, t, o, r, s) {
279
- var a, c, i, m;
280
- return l(), u(w, null, [
281
- R("picture", null, [
282
- s.webpSrcSet ? (l(), u("source", {
265
+ function xe(e, n, t, o, s, r) {
266
+ var a, c, i, u;
267
+ return l(), d(C, null, [
268
+ T("picture", null, [
269
+ r.webpSrcSet ? (l(), d("source", {
283
270
  key: 0,
284
271
  type: "image/webp",
285
- srcset: s.webpSrcSet
286
- }, null, 8, be)) : y("", !0),
287
- R("img", {
272
+ srcset: r.webpSrcSet
273
+ }, null, 8, ge)) : b("", !0),
274
+ T("img", {
288
275
  loading: "lazy",
289
276
  alt: t.altText,
290
277
  role: t.altText ? "presentation" : void 0,
291
- style: C({
278
+ style: _({
292
279
  objectPosition: t.backgroundSize || "center",
293
280
  objectFit: t.backgroundSize || "cover"
294
281
  }),
295
282
  class: U(
296
- s._classStringToObject(
297
- "builder-image" + (t.className ? " " + t.className : "") + " img-256wrwn33ry"
283
+ r._classStringToObject(
284
+ "builder-image" + (t.className ? " " + t.className : "") + " img-kd7f8ex7am"
298
285
  )
299
286
  ),
300
287
  src: t.image,
301
- srcset: s.srcSetToUse,
288
+ srcset: r.srcSetToUse,
302
289
  sizes: t.sizes
303
- }, null, 14, ye),
304
- R("source", { srcset: s.srcSetToUse }, null, 8, ve)
290
+ }, null, 14, be),
291
+ T("source", { srcset: r.srcSetToUse }, null, 8, ye)
305
292
  ]),
306
- t.aspectRatio && !(((c = (a = t.builderBlock) == null ? void 0 : a.children) == null ? void 0 : c.length) && t.fitContent) ? (l(), u("div", {
293
+ t.aspectRatio && !(((c = (a = t.builderBlock) == null ? void 0 : a.children) == null ? void 0 : c.length) && t.fitContent) ? (l(), d("div", {
307
294
  key: 0,
308
- class: "builder-image-sizer div-256wrwn33ry",
309
- style: C({
295
+ class: "builder-image-sizer div-kd7f8ex7am",
296
+ style: _({
310
297
  paddingTop: t.aspectRatio * 100 + "%"
311
298
  })
312
- }, null, 4)) : y("", !0),
313
- ((m = (i = t.builderBlock) == null ? void 0 : i.children) == null ? void 0 : m.length) && t.fitContent ? S(e.$slots, "default", { key: 1 }, void 0, !0) : y("", !0),
314
- !t.fitContent && e.children ? (l(), u("div", xe, [
315
- S(e.$slots, "default", {}, void 0, !0)
316
- ])) : y("", !0)
299
+ }, null, 4)) : b("", !0),
300
+ ((u = (i = t.builderBlock) == null ? void 0 : i.children) == null ? void 0 : u.length) && t.fitContent ? w(e.$slots, "default", { key: 1 }, void 0, !0) : b("", !0),
301
+ !t.fitContent && e.children ? (l(), d("div", ve, [
302
+ w(e.$slots, "default", {}, void 0, !0)
303
+ ])) : b("", !0)
317
304
  ], 64);
318
305
  }
319
- const ke = /* @__PURE__ */ h(ge, [["render", _e], ["__scopeId", "data-v-bf4ee294"]]), Ce = {
306
+ const ke = /* @__PURE__ */ f(fe, [["render", xe], ["__scopeId", "data-v-ebf1c7e3"]]), _e = {
320
307
  name: "builder-text",
321
308
  props: ["text"]
322
- }, we = ["innerHTML"];
323
- function Se(e, n, t, o, r, s) {
324
- return l(), u("span", {
309
+ }, Ce = ["innerHTML"];
310
+ function we(e, n, t, o, s, r) {
311
+ return l(), d("span", {
325
312
  class: "builder-text",
326
313
  innerHTML: t.text
327
- }, null, 8, we);
314
+ }, null, 8, Ce);
328
315
  }
329
- const Ie = /* @__PURE__ */ h(Ce, [["render", Se]]), Te = {
316
+ const Se = /* @__PURE__ */ f(_e, [["render", we]]), Ie = {
330
317
  name: "builder-video",
331
318
  props: [
332
319
  "autoPlay",
@@ -359,12 +346,18 @@ const Ie = /* @__PURE__ */ h(Ce, [["render", Se]]), Te = {
359
346
  playsInline: !0
360
347
  } : {}
361
348
  };
349
+ },
350
+ spreadProps() {
351
+ return {
352
+ ...this.attributes,
353
+ ...this.videoProps
354
+ };
362
355
  }
363
356
  }
364
- }, Re = ["src", "poster"];
365
- function Ee(e, n, t, o, r, s) {
357
+ }, Te = ["src", "poster"];
358
+ function Re(e, n, t, o, s, r) {
366
359
  var a;
367
- return l(), u("video", _(s.videoProps, {
360
+ return l(), d("video", x(r.spreadProps, {
368
361
  style: {
369
362
  width: "100%",
370
363
  height: "100%",
@@ -375,55 +368,55 @@ function Ee(e, n, t, o, r, s) {
375
368
  },
376
369
  src: t.video || "no-src",
377
370
  poster: t.posterImage
378
- }), null, 16, Re);
371
+ }), null, 16, Te);
379
372
  }
380
- const Fe = /* @__PURE__ */ h(Te, [["render", Ee]]);
381
- function j(e, n = null, t = ".") {
382
- return Object.keys(e).reduce((o, r) => {
383
- const s = e[r], a = [n, r].filter(Boolean).join(t);
373
+ const Ee = /* @__PURE__ */ f(Ie, [["render", Re]]);
374
+ function F(e, n = null, t = ".") {
375
+ return Object.keys(e).reduce((o, s) => {
376
+ const r = e[s], a = [n, s].filter(Boolean).join(t);
384
377
  return [
385
- typeof s == "object",
386
- s !== null,
387
- !(Array.isArray(s) && s.length === 0)
388
- ].every(Boolean) ? { ...o, ...j(s, a, t) } : { ...o, [a]: s };
378
+ typeof r == "object",
379
+ r !== null,
380
+ !(Array.isArray(r) && r.length === 0)
381
+ ].every(Boolean) ? { ...o, ...F(r, a, t) } : { ...o, [a]: r };
389
382
  }, {});
390
383
  }
391
- const L = "builder.", je = (e) => {
384
+ const M = "builder.", Fe = (e) => {
392
385
  const n = {};
393
386
  return e.forEach((t, o) => {
394
387
  n[o] = t;
395
388
  }), n;
396
- }, Ue = (e) => {
389
+ }, je = (e) => {
397
390
  if (!e)
398
391
  return {};
399
- const n = D(e), t = {};
392
+ const n = q(e), t = {};
400
393
  return Object.keys(n).forEach((o) => {
401
- if (o.startsWith(L)) {
402
- const r = o.replace(L, "");
403
- t[r] = n[o];
394
+ if (o.startsWith(M)) {
395
+ const s = o.replace(M, "");
396
+ t[s] = n[o];
404
397
  }
405
398
  }), t;
406
- }, Ve = () => {
407
- if (!f())
399
+ }, Ue = () => {
400
+ if (!h())
408
401
  return {};
409
402
  const e = new URLSearchParams(window.location.search);
410
- return Ue(e);
411
- }, D = (e) => e instanceof URLSearchParams ? je(e) : e;
412
- function Ae() {
403
+ return je(e);
404
+ }, q = (e) => e instanceof URLSearchParams ? Fe(e) : e;
405
+ function Ve() {
413
406
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : null;
414
407
  }
415
- async function K() {
416
- const e = Ae().fetch;
408
+ async function D() {
409
+ const e = Ve().fetch;
417
410
  if (typeof e > "u" && typeof global < "u") {
418
411
  const n = import("node-fetch").then((t) => t.default);
419
412
  return n.default || n;
420
413
  }
421
414
  return e.default || e;
422
415
  }
423
- const $e = (e) => {
416
+ const Ae = (e) => {
424
417
  const n = e.split(".");
425
418
  return n.length > 2 ? n.slice(1).join(".") : e;
426
- }, G = async ({
419
+ }, J = async ({
427
420
  name: e,
428
421
  canTrack: n
429
422
  }) => {
@@ -441,15 +434,15 @@ const $e = (e) => {
441
434
  value: n,
442
435
  expires: t
443
436
  }) => {
444
- const r = (f() ? location.protocol === "https:" : !0) ? Be : [[]], s = t ? [["expires", t.toUTCString()]] : [[]], a = [
437
+ const s = (h() ? location.protocol === "https:" : !0) ? Be : [[]], r = t ? [["expires", t.toUTCString()]] : [[]], a = [
445
438
  [e, n],
446
- ...s,
439
+ ...r,
447
440
  ["path", "/"],
448
- ["domain", $e(window.location.hostname)],
449
- ...r
441
+ ["domain", Ae(window.location.hostname)],
442
+ ...s
450
443
  ];
451
444
  return Oe(a);
452
- }, J = async ({
445
+ }, G = async ({
453
446
  name: e,
454
447
  value: n,
455
448
  expires: t,
@@ -458,30 +451,30 @@ const $e = (e) => {
458
451
  try {
459
452
  if (!o)
460
453
  return;
461
- const r = Pe({ name: e, value: n, expires: t });
462
- document.cookie = r;
463
- } catch (r) {
464
- console.warn("[COOKIE] SET error: ", r);
454
+ const s = Pe({ name: e, value: n, expires: t });
455
+ document.cookie = s;
456
+ } catch (s) {
457
+ console.warn("[COOKIE] SET error: ", s);
465
458
  }
466
- }, We = "builderio.variations", Y = (e) => `${We}.${e}`, Le = ({
459
+ }, $e = "builderio.variations", Y = (e) => `${$e}.${e}`, We = ({
467
460
  contentId: e,
468
461
  canTrack: n
469
- }) => G({ name: Y(e), canTrack: n }), Me = ({
462
+ }) => J({ name: Y(e), canTrack: n }), Le = ({
470
463
  contentId: e,
471
464
  canTrack: n,
472
465
  value: t
473
- }) => J({ name: Y(e), value: t, canTrack: n }), T = (e) => e != null, Ne = (e) => T(e.id) && T(e.variations) && Object.keys(e.variations).length > 0, He = ({
466
+ }) => G({ name: Y(e), value: t, canTrack: n }), I = (e) => e != null, Me = (e) => I(e.id) && I(e.variations) && Object.keys(e.variations).length > 0, Ne = ({
474
467
  id: e,
475
468
  variations: n
476
469
  }) => {
477
- var r;
470
+ var s;
478
471
  let t = 0;
479
472
  const o = Math.random();
480
- for (const s in n)
481
- if (t += (r = n[s]) == null ? void 0 : r.testRatio, o < t)
482
- return s;
473
+ for (const r in n)
474
+ if (t += (s = n[r]) == null ? void 0 : s.testRatio, o < t)
475
+ return r;
483
476
  return e;
484
- }, M = ({
477
+ }, N = ({
485
478
  item: e,
486
479
  testGroupId: n
487
480
  }) => {
@@ -494,109 +487,113 @@ const $e = (e) => {
494
487
  testVariationId: t.id,
495
488
  testVariationName: t.name || (t.id === e.id ? "Default" : "")
496
489
  };
497
- }, ze = async ({
490
+ }, He = async ({
498
491
  item: e,
499
492
  canTrack: n
500
493
  }) => {
501
- const t = await Le({
494
+ const t = await We({
502
495
  canTrack: n,
503
496
  contentId: e.id
504
- }), o = t ? M({ item: e, testGroupId: t }) : void 0;
497
+ }), o = t ? N({ item: e, testGroupId: t }) : void 0;
505
498
  if (o)
506
499
  return o;
507
500
  {
508
- const r = He({
501
+ const s = Ne({
509
502
  variations: e.variations,
510
503
  id: e.id
511
504
  });
512
- return Me({
505
+ return Le({
513
506
  contentId: e.id,
514
- value: r,
507
+ value: s,
515
508
  canTrack: n
516
- }).catch((s) => {
517
- console.error("could not store A/B test variation: ", s);
518
- }), M({ item: e, testGroupId: r });
509
+ }).catch((r) => {
510
+ console.error("could not store A/B test variation: ", r);
511
+ }), N({ item: e, testGroupId: s });
519
512
  }
520
- }, qe = async ({
513
+ }, ze = async ({
521
514
  item: e,
522
515
  canTrack: n
523
516
  }) => {
524
- if (!Ne(e))
517
+ if (!Me(e))
525
518
  return;
526
- const t = await ze({ item: e, canTrack: n });
519
+ const t = await He({ item: e, canTrack: n });
527
520
  Object.assign(e, t);
528
521
  };
529
522
  async function X(e) {
530
- return (await Ke({ ...e, limit: 1 })).results[0] || null;
523
+ return (await qe({ ...e, limit: 1 })).results[0] || null;
531
524
  }
532
- const De = (e) => {
525
+ const Ke = (e) => {
533
526
  const {
534
527
  limit: n = 30,
535
528
  userAttributes: t,
536
529
  query: o,
537
- noTraverse: r = !1,
538
- model: s,
530
+ noTraverse: s = !1,
531
+ model: r,
539
532
  apiKey: a
540
533
  } = e, c = new URL(
541
- `https://cdn.builder.io/api/v2/content/${s}?apiKey=${a}&limit=${n}&noTraverse=${r}`
534
+ `https://cdn.builder.io/api/v2/content/${r}?apiKey=${a}&limit=${n}&noTraverse=${s}`
542
535
  ), i = {
543
- ...Ve(),
544
- ...D(e.options || {})
545
- }, m = j(i);
546
- for (const d in m)
547
- c.searchParams.set(d, String(m[d]));
536
+ ...Ue(),
537
+ ...q(e.options || {})
538
+ }, u = F(i);
539
+ for (const m in u)
540
+ c.searchParams.set(m, String(u[m]));
548
541
  if (t && c.searchParams.set("userAttributes", JSON.stringify(t)), o) {
549
- const d = j({ query: o });
550
- for (const p in d)
551
- c.searchParams.set(p, JSON.stringify(d[p]));
542
+ const m = F({ query: o });
543
+ for (const p in m)
544
+ c.searchParams.set(p, JSON.stringify(m[p]));
552
545
  }
553
546
  return c;
554
547
  };
555
- async function Ke(e) {
556
- const n = De(e), o = await (await K())(n.href).then(
557
- (s) => s.json()
558
- ), r = e.canTrack !== !1;
559
- if (r)
560
- for (const s of o.results)
561
- await qe({ item: s, canTrack: r });
548
+ async function qe(e) {
549
+ const n = Ke(e), o = await (await D())(n.href).then(
550
+ (r) => r.json()
551
+ ), s = e.canTrack !== !1;
552
+ if (s)
553
+ for (const r of o.results)
554
+ await ze({ item: r, canTrack: s });
562
555
  return o;
563
556
  }
564
- const Ge = () => Promise.resolve().then(() => on).then((e) => e.default).catch((e) => {
557
+ const De = () => Promise.resolve().then(() => on).then((e) => e.default).catch((e) => {
565
558
  throw console.error(
566
559
  "Error while attempting to dynamically import component RenderContent at ../../components/render-content/render-content.vue",
567
560
  e
568
561
  ), e;
569
562
  }), Je = {
570
563
  name: "builder-symbol",
571
- components: { RenderContent: v(Ge) },
564
+ components: { RenderContent: y(De) },
572
565
  props: ["symbol", "attributes"],
573
- data: () => ({ className: "builder-symbol", content: null, markMutable: A }),
566
+ data: () => ({
567
+ className: "builder-symbol",
568
+ fetchedContent: null,
569
+ markMutable: A
570
+ }),
574
571
  inject: {
575
572
  builderContext: "BuilderContext"
576
573
  },
577
- mounted() {
578
- var e;
579
- this.content = (e = this.symbol) == null ? void 0 : e.content;
580
- },
581
574
  watch: {
582
575
  onUpdateHook0() {
583
576
  const e = this.symbol;
584
- e && !e.content && !this.content && e.model && X({
577
+ e && !e.content && !this.fetchedContent && e.model && X({
585
578
  model: e.model,
586
579
  apiKey: this.builderContext.apiKey,
587
580
  query: {
588
581
  id: e.entry
589
582
  }
590
583
  }).then((n) => {
591
- this.content = n;
584
+ this.fetchedContent = n;
592
585
  });
593
586
  }
594
587
  },
595
588
  computed: {
589
+ contentToUse() {
590
+ var e;
591
+ return ((e = this.symbol) == null ? void 0 : e.content) || this.fetchedContent;
592
+ },
596
593
  onUpdateHook0() {
597
594
  return {
598
595
  0: this.symbol,
599
- 1: this.content
596
+ 1: this.fetchedContent
600
597
  };
601
598
  }
602
599
  },
@@ -611,65 +608,65 @@ const Ge = () => Promise.resolve().then(() => on).then((e) => e.default).catch((
611
608
  return n;
612
609
  }
613
610
  }
614
- }, Ye = ["dataSet"];
615
- function Xe(e, n, t, o, r, s) {
616
- var c, i, m, d, p;
617
- const a = x("render-content");
618
- return l(), u("div", _(t.attributes, {
611
+ }, Ge = ["dataSet"];
612
+ function Ye(e, n, t, o, s, r) {
613
+ var c, i, u, m, p;
614
+ const a = v("render-content");
615
+ return l(), d("div", x(t.attributes, {
619
616
  dataSet: {
620
617
  class: e.className
621
618
  },
622
- class: s._classStringToObject(e.className)
619
+ class: r._classStringToObject(e.className)
623
620
  }), [
624
- q(a, {
625
- apiKey: s.builderContext.apiKey,
626
- context: s.builderContext.context,
627
- customComponents: e.markMutable(Object.values(s.builderContext.registeredComponents)),
621
+ K(a, {
622
+ apiKey: r.builderContext.apiKey,
623
+ context: r.builderContext.context,
624
+ customComponents: e.markMutable(Object.values(r.builderContext.registeredComponents)),
628
625
  data: e.markMutable({
629
626
  ...(c = t.symbol) == null ? void 0 : c.data,
630
- ...s.builderContext.state,
631
- ...(d = (m = (i = t.symbol) == null ? void 0 : i.content) == null ? void 0 : m.data) == null ? void 0 : d.state
627
+ ...r.builderContext.state,
628
+ ...(m = (u = (i = t.symbol) == null ? void 0 : i.content) == null ? void 0 : u.data) == null ? void 0 : m.state
632
629
  }),
633
630
  model: (p = t.symbol) == null ? void 0 : p.model,
634
- content: e.markMutable(e.content)
631
+ content: e.markMutable(r.contentToUse)
635
632
  }, null, 8, ["apiKey", "context", "customComponents", "data", "model", "content"])
636
- ], 16, Ye);
633
+ ], 16, Ge);
637
634
  }
638
- const Qe = /* @__PURE__ */ h(Je, [["render", Xe]]), Ze = {
635
+ const Xe = /* @__PURE__ */ f(Je, [["render", Ye]]), Qe = {
639
636
  name: "builder-button",
640
637
  props: ["attributes", "text", "link", "openLinkInNewTab"]
641
638
  };
642
- const et = ["href", "target"];
643
- function tt(e, n, t, o, r, s) {
644
- return t.link ? (l(), u("a", _({ key: 0 }, t.attributes, {
639
+ const Ze = ["href", "target"];
640
+ function et(e, n, t, o, s, r) {
641
+ return t.link ? (l(), d("a", x({ key: 0 }, t.attributes, {
645
642
  role: "button",
646
643
  href: t.link,
647
644
  target: t.openLinkInNewTab ? "_blank" : void 0
648
- }), B(t.text), 17, et)) : (l(), u("button", _({ key: 1 }, t.attributes, { class: "button-1yj9n7yt24z" }), B(t.text), 17));
645
+ }), $(t.text), 17, Ze)) : (l(), d("button", x({ key: 1 }, t.attributes, { class: "button-1yj9n7yt24z" }), $(t.text), 17));
649
646
  }
650
- const nt = /* @__PURE__ */ h(Ze, [["render", tt], ["__scopeId", "data-v-a1cb1b3e"]]), ot = {
647
+ const tt = /* @__PURE__ */ f(Qe, [["render", et], ["__scopeId", "data-v-a1cb1b3e"]]), nt = {
651
648
  name: "builder-section-component",
652
649
  props: ["attributes", "maxWidth"]
653
650
  };
654
- function st(e, n, t, o, r, s) {
655
- return l(), u("section", _(t.attributes, {
651
+ function ot(e, n, t, o, s, r) {
652
+ return l(), d("section", x(t.attributes, {
656
653
  style: t.maxWidth && typeof t.maxWidth == "number" ? {
657
654
  maxWidth: t.maxWidth
658
655
  } : void 0
659
656
  }), [
660
- S(e.$slots, "default")
657
+ w(e.$slots, "default")
661
658
  ], 16);
662
659
  }
663
- const rt = /* @__PURE__ */ h(ot, [["render", st]]), at = {
660
+ const st = /* @__PURE__ */ f(nt, [["render", ot]]), rt = {
664
661
  name: "builder-fragment-component",
665
662
  props: []
666
663
  };
667
- function it(e, n, t, o, r, s) {
668
- return l(), u("span", null, [
669
- S(e.$slots, "default")
664
+ function at(e, n, t, o, s, r) {
665
+ return l(), d("span", null, [
666
+ w(e.$slots, "default")
670
667
  ]);
671
668
  }
672
- const ct = /* @__PURE__ */ h(at, [["render", it]]), lt = {
669
+ const it = /* @__PURE__ */ f(rt, [["render", at]]), ct = {
673
670
  name: "Core:Button",
674
671
  builtIn: !0,
675
672
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
@@ -707,10 +704,10 @@ const ct = /* @__PURE__ */ h(at, [["render", it]]), lt = {
707
704
  static: !0,
708
705
  noWrap: !0
709
706
  };
710
- function $(e) {
707
+ function O(e) {
711
708
  return e.__qwik_serializable__ = !0, e;
712
709
  }
713
- const dt = {
710
+ const lt = {
714
711
  name: "Columns",
715
712
  builtIn: !0,
716
713
  inputs: [
@@ -898,7 +895,7 @@ const dt = {
898
895
  ]
899
896
  }
900
897
  ],
901
- onChange: $((e) => {
898
+ onChange: O((e) => {
902
899
  function n() {
903
900
  t.forEach((o) => {
904
901
  o.delete("width");
@@ -906,9 +903,9 @@ const dt = {
906
903
  }
907
904
  const t = e.get("columns");
908
905
  Array.isArray(t) && !!t.find(
909
- (r) => r.get("width")
906
+ (s) => s.get("width")
910
907
  ) && (!!t.find(
911
- (s) => !s.get("width")
908
+ (r) => !r.get("width")
912
909
  ) || t.reduce((c, i) => c + i.get("width"), 0) !== 100) && n();
913
910
  })
914
911
  },
@@ -935,14 +932,14 @@ const dt = {
935
932
  advanced: !0
936
933
  }
937
934
  ]
938
- }, ut = {
935
+ }, dt = {
939
936
  name: "Fragment",
940
937
  static: !0,
941
938
  hidden: !0,
942
939
  builtIn: !0,
943
940
  canHaveChildren: !0,
944
941
  noWrap: !0
945
- }, mt = {
942
+ }, ut = {
946
943
  name: "Image",
947
944
  static: !0,
948
945
  builtIn: !0,
@@ -962,31 +959,31 @@ const dt = {
962
959
  allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
963
960
  required: !0,
964
961
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
965
- onChange: $((e) => {
962
+ onChange: O((e) => {
966
963
  e.delete("srcset"), e.delete("noWebp");
967
964
  function t(a, c = 6e4) {
968
- return new Promise((i, m) => {
969
- const d = document.createElement("img");
965
+ return new Promise((i, u) => {
966
+ const m = document.createElement("img");
970
967
  let p = !1;
971
- d.onload = () => {
972
- p = !0, i(d);
973
- }, d.addEventListener("error", (b) => {
974
- console.warn("Image load failed", b.error), m(b.error);
975
- }), d.src = a, setTimeout(() => {
976
- p || m(new Error("Image load timed out"));
968
+ m.onload = () => {
969
+ p = !0, i(m);
970
+ }, m.addEventListener("error", (k) => {
971
+ console.warn("Image load failed", k.error), u(k.error);
972
+ }), m.src = a, setTimeout(() => {
973
+ p || u(new Error("Image load timed out"));
977
974
  }, c);
978
975
  });
979
976
  }
980
977
  function o(a) {
981
978
  return Math.round(a * 1e3) / 1e3;
982
979
  }
983
- const r = e.get("image"), s = e.get("aspectRatio");
984
- if (fetch(r).then((a) => a.blob()).then((a) => {
980
+ const s = e.get("image"), r = e.get("aspectRatio");
981
+ if (fetch(s).then((a) => a.blob()).then((a) => {
985
982
  a.type.includes("svg") && e.set("noWebp", !0);
986
- }), r && (!s || s === 0.7041))
987
- return t(r).then((a) => {
983
+ }), s && (!r || r === 0.7041))
984
+ return t(s).then((a) => {
988
985
  const c = e.get("aspectRatio");
989
- e.get("image") === r && (!c || c === 0.7041) && a.width && a.height && (e.set("aspectRatio", o(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
986
+ e.get("image") === s && (!c || c === 0.7041) && a.width && a.height && (e.set("aspectRatio", o(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
990
987
  });
991
988
  })
992
989
  },
@@ -1068,7 +1065,7 @@ const dt = {
1068
1065
  defaultValue: 0.7041
1069
1066
  }
1070
1067
  ]
1071
- }, pt = {
1068
+ }, mt = {
1072
1069
  name: "Core:Section",
1073
1070
  static: !0,
1074
1071
  builtIn: !0,
@@ -1113,7 +1110,7 @@ const dt = {
1113
1110
  }
1114
1111
  }
1115
1112
  ]
1116
- }, ht = {
1113
+ }, pt = {
1117
1114
  name: "Symbol",
1118
1115
  noWrap: !0,
1119
1116
  static: !0,
@@ -1152,7 +1149,7 @@ const dt = {
1152
1149
  type: "boolean"
1153
1150
  }
1154
1151
  ]
1155
- }, ft = {
1152
+ }, ht = {
1156
1153
  name: "Text",
1157
1154
  static: !0,
1158
1155
  builtIn: !0,
@@ -1172,7 +1169,7 @@ const dt = {
1172
1169
  height: "auto",
1173
1170
  textAlign: "center"
1174
1171
  }
1175
- }, gt = {
1172
+ }, ft = {
1176
1173
  name: "Video",
1177
1174
  canHaveChildren: !0,
1178
1175
  builtIn: !0,
@@ -1274,7 +1271,7 @@ const dt = {
1274
1271
  advanced: !0
1275
1272
  }
1276
1273
  ]
1277
- }, bt = {
1274
+ }, gt = {
1278
1275
  name: "Embed",
1279
1276
  static: !0,
1280
1277
  builtIn: !0,
@@ -1285,7 +1282,7 @@ const dt = {
1285
1282
  required: !0,
1286
1283
  defaultValue: "",
1287
1284
  helperText: "e.g. enter a youtube url, google map, etc",
1288
- onChange: $((e) => {
1285
+ onChange: O((e) => {
1289
1286
  const n = e.get("url");
1290
1287
  if (n)
1291
1288
  return e.set("content", "Loading..."), fetch(
@@ -1308,11 +1305,11 @@ const dt = {
1308
1305
  hideFromUI: !0
1309
1306
  }
1310
1307
  ]
1311
- }, yt = [
1308
+ }, bt = [
1312
1309
  "text/javascript",
1313
1310
  "application/javascript",
1314
1311
  "application/ecmascript"
1315
- ], vt = (e) => yt.includes(e.type), xt = {
1312
+ ], yt = (e) => bt.includes(e.type), vt = {
1316
1313
  name: "builder-embed",
1317
1314
  props: ["content"],
1318
1315
  data: () => ({ scriptsInserted: [], scriptsRun: [], ranInitFn: !1 }),
@@ -1340,7 +1337,7 @@ const dt = {
1340
1337
  this.scriptsInserted.push(t.src);
1341
1338
  const o = document.createElement("script");
1342
1339
  o.async = !0, o.src = t.src, document.head.appendChild(o);
1343
- } else if (vt(t) && !this.scriptsRun.includes(t.innerText))
1340
+ } else if (yt(t) && !this.scriptsRun.includes(t.innerText))
1344
1341
  try {
1345
1342
  this.scriptsRun.push(t.innerText), new Function(t.innerText)();
1346
1343
  } catch (o) {
@@ -1349,15 +1346,22 @@ const dt = {
1349
1346
  }
1350
1347
  }
1351
1348
  }
1352
- }, _t = ["innerHTML"];
1353
- function kt(e, n, t, o, r, s) {
1354
- return l(), u("div", {
1349
+ }, xt = ["innerHTML"];
1350
+ function kt(e, n, t, o, s, r) {
1351
+ return l(), d("div", {
1355
1352
  class: "builder-embed",
1356
1353
  ref: "elem",
1357
1354
  innerHTML: t.content
1358
- }, null, 8, _t);
1355
+ }, null, 8, xt);
1359
1356
  }
1360
- const Ct = /* @__PURE__ */ h(xt, [["render", kt]]), wt = {
1357
+ const _t = /* @__PURE__ */ f(vt, [["render", kt]]);
1358
+ function Ct() {
1359
+ return h() && window.self !== window.top;
1360
+ }
1361
+ function g() {
1362
+ return Ct() && window.location.search.indexOf("builder.frameEditing=") !== -1;
1363
+ }
1364
+ const wt = {
1361
1365
  name: "builder-img-component",
1362
1366
  props: [
1363
1367
  "backgroundSize",
@@ -1369,8 +1373,8 @@ const Ct = /* @__PURE__ */ h(xt, [["render", kt]]), wt = {
1369
1373
  ],
1370
1374
  data: () => ({ isEditing: g })
1371
1375
  }, St = ["alt", "src"];
1372
- function It(e, n, t, o, r, s) {
1373
- return l(), u("img", _(t.attributes, {
1376
+ function It(e, n, t, o, s, r) {
1377
+ return l(), d("img", x(t.attributes, {
1374
1378
  style: {
1375
1379
  objectFit: t.backgroundSize || "cover",
1376
1380
  objectPosition: t.backgroundPosition || "center"
@@ -1380,7 +1384,7 @@ function It(e, n, t, o, r, s) {
1380
1384
  src: t.imgSrc || t.image
1381
1385
  }), null, 16, St);
1382
1386
  }
1383
- const Tt = /* @__PURE__ */ h(wt, [["render", It]]), Rt = {
1387
+ const Tt = /* @__PURE__ */ f(wt, [["render", It]]), Rt = {
1384
1388
  name: "Raw:Img",
1385
1389
  hideFromInsertMenu: !0,
1386
1390
  builtIn: !0,
@@ -1442,18 +1446,18 @@ const Tt = /* @__PURE__ */ h(wt, [["render", It]]), Rt = {
1442
1446
  }
1443
1447
  }
1444
1448
  }, Ft = ["innerHTML"];
1445
- function jt(e, n, t, o, r, s) {
1446
- return l(), u("div", {
1449
+ function jt(e, n, t, o, s, r) {
1450
+ return l(), d("div", {
1447
1451
  ref: "elem",
1448
1452
  class: U(
1449
- s._classStringToObject(
1453
+ r._classStringToObject(
1450
1454
  "builder-custom-code" + (t.replaceNodes ? " replace-nodes" : "")
1451
1455
  )
1452
1456
  ),
1453
1457
  innerHTML: t.code
1454
1458
  }, null, 10, Ft);
1455
1459
  }
1456
- const Ut = /* @__PURE__ */ h(Et, [["render", jt]]), Vt = {
1460
+ const Ut = /* @__PURE__ */ f(Et, [["render", jt]]), Vt = {
1457
1461
  name: "Custom Code",
1458
1462
  static: !0,
1459
1463
  builtIn: !0,
@@ -1481,19 +1485,19 @@ const Ut = /* @__PURE__ */ h(Et, [["render", jt]]), Vt = {
1481
1485
  }
1482
1486
  ]
1483
1487
  }, At = () => [
1484
- { component: pe, ...dt },
1485
- { component: ke, ...mt },
1488
+ { component: me, ...lt },
1489
+ { component: ke, ...ut },
1486
1490
  { component: Tt, ...Rt },
1487
- { component: Ie, ...ft },
1488
- { component: Fe, ...gt },
1489
- { component: Qe, ...ht },
1490
- { component: nt, ...lt },
1491
- { component: rt, ...pt },
1492
- { component: ct, ...ut },
1493
- { component: Ct, ...bt },
1491
+ { component: Se, ...ht },
1492
+ { component: Ee, ...ft },
1493
+ { component: Xe, ...pt },
1494
+ { component: tt, ...ct },
1495
+ { component: st, ...mt },
1496
+ { component: it, ...dt },
1497
+ { component: _t, ...gt },
1494
1498
  { component: Ut, ...Vt }
1495
1499
  ];
1496
- function N({
1500
+ function H({
1497
1501
  code: e,
1498
1502
  context: n,
1499
1503
  state: t,
@@ -1503,10 +1507,10 @@ function N({
1503
1507
  console.warn("Skipping evaluation of empty code block.");
1504
1508
  return;
1505
1509
  }
1506
- const r = {
1510
+ const s = {
1507
1511
  isEditing: g(),
1508
- isBrowser: f(),
1509
- isServer: !f()
1512
+ isBrowser: h(),
1513
+ isServer: !h()
1510
1514
  }, a = !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
1511
1515
  try {
1512
1516
  return new Function(
@@ -1516,7 +1520,7 @@ function N({
1516
1520
  "context",
1517
1521
  "event",
1518
1522
  a
1519
- )(r, r, t, n, o);
1523
+ )(s, s, t, n, o);
1520
1524
  } catch (c) {
1521
1525
  console.warn(
1522
1526
  `Builder custom code error:
@@ -1529,34 +1533,34 @@ function N({
1529
1533
  );
1530
1534
  }
1531
1535
  }
1532
- function $t() {
1533
- return !f() || g() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
1536
+ function Ot() {
1537
+ return !h() || g() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
1534
1538
  }
1535
- const Q = [];
1539
+ const Q = (e) => JSON.parse(JSON.stringify(e)), Z = [];
1536
1540
  function pn(e, n) {
1537
- return Q.push({ component: e, ...n }), console.warn(
1541
+ return Z.push({ component: e, ...n }), console.warn(
1538
1542
  "registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."
1539
1543
  ), e;
1540
1544
  }
1541
- const Ot = ({
1545
+ const Bt = ({
1542
1546
  component: e,
1543
1547
  ...n
1544
1548
  }) => ({
1545
1549
  type: "builder.registerComponent",
1546
1550
  data: Wt(n)
1547
- }), Z = (e) => JSON.parse(JSON.stringify(e)), Bt = (e) => typeof e == "function" ? Pt(e) : Z(e), Pt = (e) => {
1551
+ }), Pt = (e) => typeof e == "function" ? $t(e) : Q(e), $t = (e) => {
1548
1552
  const n = e.toString().trim();
1549
1553
  return `return (${!n.startsWith("function") && !n.startsWith("(") ? "function " : ""}${n}).apply(this, arguments)`;
1550
1554
  }, Wt = ({
1551
1555
  inputs: e,
1552
1556
  ...n
1553
1557
  }) => ({
1554
- ...Z(n),
1558
+ ...Q(n),
1555
1559
  inputs: e == null ? void 0 : e.map(
1556
1560
  (t) => Object.entries(t).reduce(
1557
- (o, [r, s]) => ({
1561
+ (o, [s, r]) => ({
1558
1562
  ...o,
1559
- [r]: Bt(s)
1563
+ [s]: Pt(r)
1560
1564
  }),
1561
1565
  {}
1562
1566
  )
@@ -1574,11 +1578,11 @@ function ee() {
1574
1578
  const te = "builderSessionId", Mt = async ({ canTrack: e }) => {
1575
1579
  if (!e)
1576
1580
  return;
1577
- const n = await G({
1581
+ const n = await J({
1578
1582
  name: te,
1579
1583
  canTrack: e
1580
1584
  });
1581
- if (T(n))
1585
+ if (I(n))
1582
1586
  return n;
1583
1587
  {
1584
1588
  const t = Nt();
@@ -1587,7 +1591,7 @@ const te = "builderSessionId", Mt = async ({ canTrack: e }) => {
1587
1591
  }, Nt = () => ee(), Ht = ({
1588
1592
  id: e,
1589
1593
  canTrack: n
1590
- }) => J({ name: te, value: e, canTrack: n }), ne = () => f() && typeof localStorage < "u" ? localStorage : void 0, zt = ({
1594
+ }) => G({ name: te, value: e, canTrack: n }), ne = () => h() && typeof localStorage < "u" ? localStorage : void 0, zt = ({
1591
1595
  key: e,
1592
1596
  canTrack: n
1593
1597
  }) => {
@@ -1597,7 +1601,7 @@ const te = "builderSessionId", Mt = async ({ canTrack: e }) => {
1597
1601
  } catch (o) {
1598
1602
  console.debug("[LocalStorage] GET error: ", o);
1599
1603
  }
1600
- }, qt = ({
1604
+ }, Kt = ({
1601
1605
  key: e,
1602
1606
  canTrack: n,
1603
1607
  value: t
@@ -1605,35 +1609,35 @@ const te = "builderSessionId", Mt = async ({ canTrack: e }) => {
1605
1609
  var o;
1606
1610
  try {
1607
1611
  n && ((o = ne()) == null || o.setItem(e, t));
1608
- } catch (r) {
1609
- console.debug("[LocalStorage] SET error: ", r);
1612
+ } catch (s) {
1613
+ console.debug("[LocalStorage] SET error: ", s);
1610
1614
  }
1611
- }, oe = "builderVisitorId", Dt = ({ canTrack: e }) => {
1615
+ }, oe = "builderVisitorId", qt = ({ canTrack: e }) => {
1612
1616
  if (!e)
1613
1617
  return;
1614
1618
  const n = zt({
1615
1619
  key: oe,
1616
1620
  canTrack: e
1617
1621
  });
1618
- if (T(n))
1622
+ if (I(n))
1619
1623
  return n;
1620
1624
  {
1621
- const t = Kt();
1622
- Gt({ id: t, canTrack: e });
1625
+ const t = Dt();
1626
+ Jt({ id: t, canTrack: e });
1623
1627
  }
1624
- }, Kt = () => ee(), Gt = ({
1628
+ }, Dt = () => ee(), Jt = ({
1625
1629
  id: e,
1626
1630
  canTrack: n
1627
- }) => qt({
1631
+ }) => Kt({
1628
1632
  key: oe,
1629
1633
  value: e,
1630
1634
  canTrack: n
1631
- }), Jt = async ({
1635
+ }), Gt = async ({
1632
1636
  canTrack: e
1633
1637
  }) => {
1634
1638
  if (!e)
1635
1639
  return { visitorId: void 0, sessionId: void 0 };
1636
- const n = await Mt({ canTrack: e }), t = Dt({ canTrack: e });
1640
+ const n = await Mt({ canTrack: e }), t = qt({ canTrack: e });
1637
1641
  return {
1638
1642
  sessionId: n,
1639
1643
  visitorId: t
@@ -1641,20 +1645,20 @@ const te = "builderSessionId", Mt = async ({ canTrack: e }) => {
1641
1645
  }, Yt = async ({
1642
1646
  type: e,
1643
1647
  canTrack: n,
1644
- orgId: t,
1645
- contentId: o,
1646
- ...r
1648
+ apiKey: t,
1649
+ metadata: o,
1650
+ ...s
1647
1651
  }) => ({
1648
1652
  type: e,
1649
1653
  data: {
1650
- ...r,
1651
- ...await Jt({ canTrack: n }),
1652
- ownerId: t,
1653
- contentId: o
1654
+ ...s,
1655
+ metadata: JSON.stringify(o),
1656
+ ...await Gt({ canTrack: n }),
1657
+ ownerId: t
1654
1658
  }
1655
1659
  });
1656
- async function H(e) {
1657
- if (!!e.canTrack && !g() && !!(f() || V === "reactNative"))
1660
+ async function j(e) {
1661
+ if (!!e.canTrack && !g() && !!(h() || V === "reactNative"))
1658
1662
  return fetch("https://builder.io/api/v1/track", {
1659
1663
  method: "POST",
1660
1664
  body: JSON.stringify({
@@ -1668,12 +1672,12 @@ async function H(e) {
1668
1672
  console.error("Failed to track: ", n);
1669
1673
  });
1670
1674
  }
1671
- const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((e) => {
1675
+ const hn = (e) => j({ ...e, canTrack: !0 }), Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((e) => {
1672
1676
  throw console.error(
1673
1677
  "Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",
1674
1678
  e
1675
1679
  ), e;
1676
- }), Qt = () => import("./render-styles.efaaccdf.js").then((e) => e.default).catch((e) => {
1680
+ }), Qt = () => import("./render-styles.970e0a2e.js").then((e) => e.default).catch((e) => {
1677
1681
  throw console.error(
1678
1682
  "Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",
1679
1683
  e
@@ -1681,8 +1685,8 @@ const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
1681
1685
  }), Zt = {
1682
1686
  name: "render-content",
1683
1687
  components: {
1684
- RenderContentStyles: v(Qt),
1685
- RenderBlocks: v(Xt)
1688
+ RenderContentStyles: y(Qt),
1689
+ RenderBlocks: y(Xt)
1686
1690
  },
1687
1691
  props: [
1688
1692
  "content",
@@ -1691,9 +1695,7 @@ const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
1691
1695
  "context",
1692
1696
  "customComponents",
1693
1697
  "model",
1694
- "apiKey",
1695
- "locale",
1696
- "includeRefs"
1698
+ "apiKey"
1697
1699
  ],
1698
1700
  data: () => ({
1699
1701
  forceReRenderCount: 0,
@@ -1725,38 +1727,36 @@ const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
1725
1727
  };
1726
1728
  },
1727
1729
  mounted() {
1728
- var e;
1729
- if (f()) {
1730
- if (g() && (this.forceReRenderCount = this.forceReRenderCount + 1, ce(), le({
1731
- ...this.locale ? {
1732
- locale: this.locale
1733
- } : {},
1734
- ...this.includeRefs ? {
1735
- includeRefs: this.includeRefs
1736
- } : {}
1737
- }), Object.values(this.allRegisteredComponents).forEach(
1738
- (n) => {
1739
- var o;
1740
- const t = Ot(n);
1741
- (o = window.parent) == null || o.postMessage(t, "*");
1730
+ var e, n;
1731
+ if (h()) {
1732
+ if (g() && (this.forceReRenderCount = this.forceReRenderCount + 1, ie(), ce(), Object.values(this.allRegisteredComponents).forEach(
1733
+ (t) => {
1734
+ var s;
1735
+ const o = Bt(t);
1736
+ (s = window.parent) == null || s.postMessage(o, "*");
1742
1737
  }
1743
1738
  ), window.addEventListener("message", this.processMessage), window.addEventListener(
1744
1739
  "builder:component:stateChangeListenerActivated",
1745
1740
  this.emitStateUpdate
1746
- )), this.useContent && H({
1747
- type: "impression",
1748
- canTrack: this.canTrackToUse,
1749
- contentId: (e = this.useContent) == null ? void 0 : e.id,
1750
- orgId: this.apiKey
1751
- }), $t()) {
1752
- const n = new URL(location.href).searchParams;
1753
- if (this.model && n.get("builder.preview") === this.model) {
1754
- const t = n.get("apiKey") || n.get("builder.space");
1755
- t && X({
1741
+ )), this.useContent) {
1742
+ const t = (e = this.useContent) == null ? void 0 : e.testVariationId, o = (n = this.useContent) == null ? void 0 : n.id;
1743
+ j({
1744
+ type: "impression",
1745
+ canTrack: this.canTrackToUse,
1746
+ contentId: o,
1747
+ apiKey: this.apiKey,
1748
+ variationId: t !== o ? t : void 0
1749
+ });
1750
+ }
1751
+ if (Ot()) {
1752
+ const t = new URL(location.href).searchParams;
1753
+ if (this.model && t.get("builder.preview") === this.model) {
1754
+ const o = t.get("apiKey") || t.get("builder.space");
1755
+ o && X({
1756
1756
  model: this.model,
1757
- apiKey: t
1758
- }).then((o) => {
1759
- o && (this.overrideContent = o);
1757
+ apiKey: o
1758
+ }).then((s) => {
1759
+ s && (this.overrideContent = s);
1760
1760
  });
1761
1761
  }
1762
1762
  }
@@ -1775,7 +1775,7 @@ const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
1775
1775
  }
1776
1776
  },
1777
1777
  unmounted() {
1778
- f() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
1778
+ h() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
1779
1779
  "builder:component:stateChangeListenerActivated",
1780
1780
  this.emitStateUpdate
1781
1781
  ));
@@ -1810,10 +1810,13 @@ const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
1810
1810
  allRegisteredComponents() {
1811
1811
  return [
1812
1812
  ...At(),
1813
- ...Q,
1813
+ ...Z,
1814
1814
  ...this.customComponents || []
1815
1815
  ].reduce(
1816
- (t, o) => ({ ...t, [o.name]: o }),
1816
+ (t, o) => ({
1817
+ ...t,
1818
+ [o.name]: o
1819
+ }),
1817
1820
  {}
1818
1821
  );
1819
1822
  },
@@ -1821,9 +1824,9 @@ const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
1821
1824
  return {};
1822
1825
  },
1823
1826
  shouldRenderContentStyles() {
1824
- var e, n, t, o, r;
1827
+ var e, n, t, o, s;
1825
1828
  return Boolean(
1826
- (((n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.cssCode) || ((r = (o = (t = this.useContent) == null ? void 0 : t.data) == null ? void 0 : o.customFonts) == null ? void 0 : r.length)) && V !== "reactNative"
1829
+ (((n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.cssCode) || ((s = (o = (t = this.useContent) == null ? void 0 : t.data) == null ? void 0 : o.customFonts) == null ? void 0 : s.length)) && V !== "reactNative"
1827
1830
  );
1828
1831
  },
1829
1832
  onUpdateHook0() {
@@ -1850,8 +1853,8 @@ const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
1850
1853
  if (n)
1851
1854
  switch (n.type) {
1852
1855
  case "builder.contentUpdate": {
1853
- const t = n.data, o = t.key || t.alias || t.entry || t.modelName, r = t.data;
1854
- o === this.model && (this.overrideContent = r, this.forceReRenderCount = this.forceReRenderCount + 1);
1856
+ const t = n.data, o = t.key || t.alias || t.entry || t.modelName, s = t.data;
1857
+ o === this.model && (this.overrideContent = s, this.forceReRenderCount = this.forceReRenderCount + 1);
1855
1858
  break;
1856
1859
  }
1857
1860
  }
@@ -1859,25 +1862,29 @@ const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
1859
1862
  evaluateJsCode() {
1860
1863
  var n, t;
1861
1864
  const e = (t = (n = this.useContent) == null ? void 0 : n.data) == null ? void 0 : t.jsCode;
1862
- e && N({
1865
+ e && H({
1863
1866
  code: e,
1864
1867
  context: this.contextContext,
1865
1868
  state: this.contentState
1866
1869
  });
1867
1870
  },
1868
1871
  onClick(e) {
1869
- var n;
1870
- this.useContent && H({
1871
- type: "click",
1872
- canTrack: this.canTrackToUse,
1873
- contentId: (n = this.useContent) == null ? void 0 : n.id,
1874
- orgId: this.apiKey
1875
- });
1872
+ var n, t;
1873
+ if (this.useContent) {
1874
+ const o = (n = this.useContent) == null ? void 0 : n.testVariationId, s = (t = this.useContent) == null ? void 0 : t.id;
1875
+ j({
1876
+ type: "click",
1877
+ canTrack: this.canTrackToUse,
1878
+ contentId: s,
1879
+ apiKey: this.apiKey,
1880
+ variationId: o !== s ? o : void 0
1881
+ });
1882
+ }
1876
1883
  },
1877
1884
  evalExpression(e) {
1878
1885
  return e.replace(
1879
1886
  /{{([^}]+)}}/g,
1880
- (n, t) => N({
1887
+ (n, t) => H({
1881
1888
  code: t,
1882
1889
  context: this.contextContext,
1883
1890
  state: this.contentState
@@ -1885,8 +1892,11 @@ const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
1885
1892
  );
1886
1893
  },
1887
1894
  handleRequest({ url: e, key: n }) {
1888
- K().then((t) => t(e)).then((t) => t.json()).then((t) => {
1889
- const o = { ...this.overrideState, [n]: t };
1895
+ D().then((t) => t(e)).then((t) => t.json()).then((t) => {
1896
+ const o = {
1897
+ ...this.overrideState,
1898
+ [n]: t
1899
+ };
1890
1900
  this.overrideState = o;
1891
1901
  }).catch((t) => {
1892
1902
  console.log("error fetching dynamic data", e, t);
@@ -1895,12 +1905,12 @@ const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
1895
1905
  runHttpRequests() {
1896
1906
  var n, t, o;
1897
1907
  const e = (o = (t = (n = this.useContent) == null ? void 0 : n.data) == null ? void 0 : t.httpRequests) != null ? o : {};
1898
- Object.entries(e).forEach(([r, s]) => {
1899
- if (s && (!this.httpReqsData[r] || g())) {
1900
- const a = this.evalExpression(s);
1908
+ Object.entries(e).forEach(([s, r]) => {
1909
+ if (r && (!this.httpReqsData[s] || g())) {
1910
+ const a = this.evalExpression(r);
1901
1911
  this.handleRequest({
1902
1912
  url: a,
1903
- key: r
1913
+ key: s
1904
1914
  });
1905
1915
  }
1906
1916
  });
@@ -1918,36 +1928,37 @@ const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
1918
1928
  );
1919
1929
  }
1920
1930
  }
1921
- }, en = ["builder-content-id"];
1922
- function tn(e, n, t, o, r, s) {
1923
- var i, m, d, p, b, k, O;
1924
- const a = x("render-content-styles"), c = x("render-blocks");
1925
- return s.useContent ? (l(), u("div", {
1931
+ }, en = ["builder-content-id", "builder-model"];
1932
+ function tn(e, n, t, o, s, r) {
1933
+ var i, u, m, p, k, B, P;
1934
+ const a = v("render-content-styles"), c = v("render-blocks");
1935
+ return r.useContent ? (l(), d("div", {
1926
1936
  key: 0,
1927
1937
  ref: "elementRef",
1928
- onClick: n[0] || (n[0] = (re) => s.onClick(re)),
1929
- "builder-content-id": (i = s.useContent) == null ? void 0 : i.id
1938
+ onClick: n[0] || (n[0] = (re) => r.onClick(re)),
1939
+ "builder-content-id": (i = r.useContent) == null ? void 0 : i.id,
1940
+ "builder-model": t.model
1930
1941
  }, [
1931
- s.shouldRenderContentStyles ? (l(), I(a, {
1942
+ r.shouldRenderContentStyles ? (l(), S(a, {
1932
1943
  key: 0,
1933
- cssCode: (d = (m = s.useContent) == null ? void 0 : m.data) == null ? void 0 : d.cssCode,
1934
- customFonts: (b = (p = s.useContent) == null ? void 0 : p.data) == null ? void 0 : b.customFonts
1935
- }, null, 8, ["cssCode", "customFonts"])) : y("", !0),
1936
- (l(), I(c, {
1937
- blocks: e.markMutable((O = (k = s.useContent) == null ? void 0 : k.data) == null ? void 0 : O.blocks),
1944
+ cssCode: (m = (u = r.useContent) == null ? void 0 : u.data) == null ? void 0 : m.cssCode,
1945
+ customFonts: (k = (p = r.useContent) == null ? void 0 : p.data) == null ? void 0 : k.customFonts
1946
+ }, null, 8, ["cssCode", "customFonts"])) : b("", !0),
1947
+ (l(), S(c, {
1948
+ blocks: e.markMutable((P = (B = r.useContent) == null ? void 0 : B.data) == null ? void 0 : P.blocks),
1938
1949
  key: e.forceReRenderCount
1939
1950
  }, null, 8, ["blocks"]))
1940
- ], 8, en)) : y("", !0);
1951
+ ], 8, en)) : b("", !0);
1941
1952
  }
1942
- const nn = /* @__PURE__ */ h(Zt, [["render", tn]]), on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1953
+ const nn = /* @__PURE__ */ f(Zt, [["render", tn]]), on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1943
1954
  __proto__: null,
1944
1955
  default: nn
1945
- }, Symbol.toStringTag, { value: "Module" })), sn = () => import("./block-styles.88005ace.js").then((e) => e.default).catch((e) => {
1956
+ }, Symbol.toStringTag, { value: "Module" })), sn = () => import("./block-styles.e92f0e4a.js").then((e) => e.default).catch((e) => {
1946
1957
  throw console.error(
1947
1958
  "Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
1948
1959
  e
1949
1960
  ), e;
1950
- }), rn = () => import("./render-block.593fc01c.js").then((e) => e.default).catch((e) => {
1961
+ }), rn = () => import("./render-block.7817291b.js").then((e) => e.default).catch((e) => {
1951
1962
  throw console.error(
1952
1963
  "Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
1953
1964
  e
@@ -1955,10 +1966,10 @@ const nn = /* @__PURE__ */ h(Zt, [["render", tn]]), on = /* @__PURE__ */ Object.
1955
1966
  }), an = {
1956
1967
  name: "render-blocks",
1957
1968
  components: {
1958
- RenderBlock: v(rn),
1959
- BlockStyles: v(sn)
1969
+ RenderBlock: y(rn),
1970
+ BlockStyles: y(sn)
1960
1971
  },
1961
- props: ["blocks", "parent", "path", "style"],
1972
+ props: ["blocks", "parent", "path", "styleProp"],
1962
1973
  inject: {
1963
1974
  builderContext: "BuilderContext"
1964
1975
  },
@@ -2007,37 +2018,37 @@ const nn = /* @__PURE__ */ h(Zt, [["render", tn]]), on = /* @__PURE__ */ Object.
2007
2018
  }
2008
2019
  };
2009
2020
  const cn = ["builder-path", "builder-parent-id", "dataSet"];
2010
- function ln(e, n, t, o, r, s) {
2011
- const a = x("render-block"), c = x("block-styles");
2012
- return l(), u("div", {
2013
- class: U(s._classStringToObject(s.className + " div-7fq9d0i380")),
2021
+ function ln(e, n, t, o, s, r) {
2022
+ const a = v("render-block"), c = v("block-styles");
2023
+ return l(), d("div", {
2024
+ class: U(r._classStringToObject(r.className + " div-2oa2wtipkzk")),
2014
2025
  "builder-path": t.path,
2015
2026
  "builder-parent-id": t.parent,
2016
2027
  dataSet: {
2017
- class: s.className
2028
+ class: r.className
2018
2029
  },
2019
- style: C(t.style),
2020
- onClick: n[0] || (n[0] = (i) => s.onClick()),
2021
- onMouseenter: n[1] || (n[1] = (i) => s.onMouseEnter())
2030
+ style: _(t.styleProp),
2031
+ onClick: n[0] || (n[0] = (i) => r.onClick()),
2032
+ onMouseenter: n[1] || (n[1] = (i) => r.onMouseEnter())
2022
2033
  }, [
2023
- t.blocks ? (l(!0), u(w, { key: 0 }, F(t.blocks, (i, m) => (l(), I(a, {
2034
+ t.blocks ? (l(!0), d(C, { key: 0 }, E(t.blocks, (i, u) => (l(), S(a, {
2024
2035
  key: "render-block-" + i.id,
2025
2036
  block: i,
2026
- context: s.builderContext
2027
- }, null, 8, ["block", "context"]))), 128)) : y("", !0),
2028
- t.blocks ? (l(!0), u(w, { key: 1 }, F(t.blocks, (i, m) => (l(), I(c, {
2037
+ context: r.builderContext
2038
+ }, null, 8, ["block", "context"]))), 128)) : b("", !0),
2039
+ t.blocks ? (l(!0), d(C, { key: 1 }, E(t.blocks, (i, u) => (l(), S(c, {
2029
2040
  key: "block-style-" + i.id,
2030
2041
  block: i,
2031
- context: s.builderContext
2032
- }, null, 8, ["block", "context"]))), 128)) : y("", !0)
2042
+ context: r.builderContext
2043
+ }, null, 8, ["block", "context"]))), 128)) : b("", !0)
2033
2044
  ], 46, cn);
2034
2045
  }
2035
- const dn = /* @__PURE__ */ h(an, [["render", ln], ["__scopeId", "data-v-768b9dd4"]]), se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2046
+ const dn = /* @__PURE__ */ f(an, [["render", ln], ["__scopeId", "data-v-75c39314"]]), se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2036
2047
  __proto__: null,
2037
2048
  default: dn
2038
2049
  }, Symbol.toStringTag, { value: "Module" })), z = {};
2039
- function hn(e) {
2040
- if (f()) {
2050
+ function fn(e) {
2051
+ if (h()) {
2041
2052
  Object.assign(z, e);
2042
2053
  const n = {
2043
2054
  type: "builder.settingsChange",
@@ -2047,32 +2058,34 @@ function hn(e) {
2047
2058
  }
2048
2059
  }
2049
2060
  export {
2050
- nt as B,
2051
- pe as C,
2052
- ct as F,
2061
+ tt as B,
2062
+ me as C,
2063
+ it as F,
2053
2064
  ke as I,
2054
- Qe as S,
2065
+ Xe as S,
2055
2066
  V as T,
2056
- Fe as V,
2057
- h as _,
2058
- Ie as a,
2059
- rt as b,
2067
+ Ee as V,
2068
+ f as _,
2069
+ Se as a,
2070
+ st as b,
2060
2071
  dn as c,
2061
- $t as d,
2062
- N as e,
2072
+ Ot as d,
2073
+ H as e,
2063
2074
  Q as f,
2064
- pn as g,
2065
- Ot as h,
2075
+ Z as g,
2076
+ pn as h,
2066
2077
  g as i,
2067
- ie as j,
2068
- X as k,
2069
- De as l,
2078
+ Bt as j,
2079
+ ae as k,
2080
+ X as l,
2070
2081
  mn as m,
2071
2082
  Ke as n,
2072
- je as o,
2073
- Ue as p,
2074
- Ve as q,
2083
+ qe as o,
2084
+ Fe as p,
2085
+ je as q,
2075
2086
  nn as r,
2076
- hn as s,
2077
- D as t
2087
+ fn as s,
2088
+ hn as t,
2089
+ Ue as u,
2090
+ q as v
2078
2091
  };