@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,17 +1,11 @@
1
1
  const y = "vue2";
2
- function h() {
2
+ function u() {
3
3
  return typeof window < "u" && typeof document < "u";
4
4
  }
5
- function H() {
6
- return h() && window.self !== window.top;
7
- }
8
- function f() {
9
- return H() && window.location.search.indexOf("builder.frameEditing=") !== -1;
10
- }
11
- const k = {};
12
- function q(t, e) {
13
- let n = k[t];
14
- if (n || (n = k[t] = []), n.push(e), h()) {
5
+ const w = {};
6
+ function z(t, e) {
7
+ let n = w[t];
8
+ if (n || (n = w[t] = []), n.push(e), u()) {
15
9
  const o = {
16
10
  type: "builder.register",
17
11
  data: {
@@ -26,8 +20,8 @@ function q(t, e) {
26
20
  }
27
21
  }
28
22
  }
29
- const D = () => {
30
- q("insertMenu", {
23
+ const q = () => {
24
+ z("insertMenu", {
31
25
  name: "_default",
32
26
  default: !0,
33
27
  items: [
@@ -41,56 +35,49 @@ const D = () => {
41
35
  { name: "Custom Code" }
42
36
  ]
43
37
  });
44
- }, K = (t) => {
45
- var e, n;
46
- f() && ((e = window.parent) == null || e.postMessage(
38
+ }, K = () => {
39
+ var t;
40
+ u() && ((t = window.parent) == null || t.postMessage(
47
41
  {
48
42
  type: "builder.sdkInfo",
49
43
  data: {
50
44
  target: y,
51
- supportsPatchUpdates: !1
52
- }
53
- },
54
- "*"
55
- ), (n = window.parent) == null || n.postMessage(
56
- {
57
- type: "builder.updateContent",
58
- data: {
59
- options: t
45
+ supportsPatchUpdates: !1,
46
+ supportsAddBlockScoping: !0
60
47
  }
61
48
  },
62
49
  "*"
63
- ), window.addEventListener("message", ({ data: o }) => {
64
- var s, r;
65
- if (o)
66
- switch (o.type) {
50
+ ), window.addEventListener("message", ({ data: e }) => {
51
+ var n, o;
52
+ if (!!(e != null && e.type))
53
+ switch (e.type) {
67
54
  case "builder.evaluate": {
68
- const a = o.data.text, c = o.data.arguments || [], i = o.data.id, d = new Function(a);
69
- let l, m = null;
55
+ const s = e.data.text, r = e.data.arguments || [], a = e.data.id, c = new Function(s);
56
+ let i, l = null;
70
57
  try {
71
- l = d.apply(null, c);
72
- } catch (u) {
73
- m = u;
58
+ i = c.apply(null, r);
59
+ } catch (d) {
60
+ l = d;
74
61
  }
75
- m ? (s = window.parent) == null || s.postMessage(
62
+ l ? (n = window.parent) == null || n.postMessage(
76
63
  {
77
64
  type: "builder.evaluateError",
78
- data: { id: i, error: m.message }
65
+ data: { id: a, error: l.message }
79
66
  },
80
67
  "*"
81
- ) : l && typeof l.then == "function" ? l.then((u) => {
82
- var g;
83
- (g = window.parent) == null || g.postMessage(
68
+ ) : i && typeof i.then == "function" ? i.then((d) => {
69
+ var h;
70
+ (h = window.parent) == null || h.postMessage(
84
71
  {
85
72
  type: "builder.evaluateResult",
86
- data: { id: i, result: u }
73
+ data: { id: a, result: d }
87
74
  },
88
75
  "*"
89
76
  );
90
- }).catch(console.error) : (r = window.parent) == null || r.postMessage(
77
+ }).catch(console.error) : (o = window.parent) == null || o.postMessage(
91
78
  {
92
79
  type: "builder.evaluateResult",
93
- data: { result: l, id: i }
80
+ data: { result: i, id: a }
94
81
  },
95
82
  "*"
96
83
  );
@@ -105,14 +92,14 @@ function x(t) {
105
92
  function cn(t) {
106
93
  return t;
107
94
  }
108
- const G = () => Promise.resolve().then(() => z).then((t) => t.default).catch((t) => {
95
+ const D = () => Promise.resolve().then(() => N).then((t) => t.default).catch((t) => {
109
96
  throw console.error(
110
97
  "Error while attempting to dynamically import component RenderBlocks at ../../components/render-blocks.vue",
111
98
  t
112
99
  ), t;
113
100
  }), J = {
114
101
  name: "builder-columns",
115
- components: { RenderBlocks: G },
102
+ components: { RenderBlocks: D },
116
103
  props: [
117
104
  "space",
118
105
  "columns",
@@ -163,60 +150,60 @@ const G = () => Promise.resolve().then(() => z).then((t) => t.default).catch((t)
163
150
  function p(t, e, n, o, s, r, a, c) {
164
151
  var i = typeof t == "function" ? t.options : t;
165
152
  e && (i.render = e, i.staticRenderFns = n, i._compiled = !0), o && (i.functional = !0), r && (i._scopeId = "data-v-" + r);
166
- var d;
167
- if (a ? (d = function(u) {
168
- u = u || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !u && typeof __VUE_SSR_CONTEXT__ < "u" && (u = __VUE_SSR_CONTEXT__), s && s.call(this, u), u && u._registeredComponents && u._registeredComponents.add(a);
169
- }, i._ssrRegister = d) : s && (d = c ? function() {
153
+ var l;
154
+ if (a ? (l = function(m) {
155
+ m = m || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !m && typeof __VUE_SSR_CONTEXT__ < "u" && (m = __VUE_SSR_CONTEXT__), s && s.call(this, m), m && m._registeredComponents && m._registeredComponents.add(a);
156
+ }, i._ssrRegister = l) : s && (l = c ? function() {
170
157
  s.call(
171
158
  this,
172
159
  (i.functional ? this.parent : this).$root.$options.shadowRoot
173
160
  );
174
- } : s), d)
161
+ } : s), l)
175
162
  if (i.functional) {
176
- i._injectStyles = d;
177
- var l = i.render;
178
- i.render = function(g, w) {
179
- return d.call(w), l(g, w);
163
+ i._injectStyles = l;
164
+ var d = i.render;
165
+ i.render = function(H, k) {
166
+ return l.call(k), d(H, k);
180
167
  };
181
168
  } else {
182
- var m = i.beforeCreate;
183
- i.beforeCreate = m ? [].concat(m, d) : [d];
169
+ var h = i.beforeCreate;
170
+ i.beforeCreate = h ? [].concat(h, l) : [l];
184
171
  }
185
172
  return {
186
173
  exports: t,
187
174
  options: i
188
175
  };
189
176
  }
190
- var X = function() {
177
+ var G = function() {
191
178
  var e = this, n = e._self._c;
192
179
  return n("div", { staticClass: "builder-columns div-t9spj7joih", style: e.columnsCssVars }, e._l(e.columns, function(o, s) {
193
180
  return n("div", { key: s, staticClass: "builder-column div-t9spj7joih-2", style: {
194
181
  width: e.getColumnCssWidth(s),
195
182
  marginLeft: `${s === 0 ? 0 : e.getGutterSize()}px`,
196
183
  ...e.columnCssVars
197
- } }, [n("render-blocks", { style: {
184
+ } }, [n("render-blocks", { attrs: { blocks: e.markMutable(o.blocks), path: `component.options.columns.${s}.blocks`, parent: e.builderBlock.id, styleProp: {
198
185
  flexGrow: "1"
199
- }, attrs: { blocks: e.markMutable(o.blocks), path: `component.options.columns.${s}.blocks`, parent: e.builderBlock.id } })], 1);
186
+ } } })], 1);
200
187
  }), 0);
201
- }, Y = [], Q = /* @__PURE__ */ p(
188
+ }, X = [], Y = /* @__PURE__ */ p(
202
189
  J,
190
+ G,
203
191
  X,
204
- Y,
205
192
  !1,
206
193
  null,
207
- "0f3ea004",
194
+ "634e4254",
208
195
  null,
209
196
  null
210
197
  );
211
- const Z = Q.exports;
198
+ const Q = Y.exports;
212
199
  function S(t) {
213
200
  return t.replace(/http(s)?:/, "");
214
201
  }
215
- function ee(t = "", e, n) {
202
+ function Z(t = "", e, n) {
216
203
  const o = new RegExp("([?&])" + e + "=.*?(&|$)", "i"), s = t.indexOf("?") !== -1 ? "&" : "?";
217
204
  return t.match(o) ? t.replace(o, "$1" + e + "=" + encodeURIComponent(n) + "$2") : t + s + e + "=" + encodeURIComponent(n);
218
205
  }
219
- function te(t, e) {
206
+ function ee(t, e) {
220
207
  if (!t || !(t != null && t.match(/cdn\.shopify\.com/)) || !e)
221
208
  return t;
222
209
  if (e === "master")
@@ -230,18 +217,18 @@ function te(t, e) {
230
217
  }
231
218
  return null;
232
219
  }
233
- function v(t) {
220
+ function b(t) {
234
221
  if (!t)
235
222
  return t;
236
223
  const e = [100, 200, 400, 800, 1200, 1600, 2e3];
237
224
  if (t.match(/builder\.io/)) {
238
225
  let n = t;
239
226
  const o = Number(t.split("?width=")[1]);
240
- return isNaN(o) || (n = `${n} ${o}w`), e.filter((s) => s !== o).map((s) => `${ee(t, "width", s)} ${s}w`).concat([n]).join(", ");
227
+ return isNaN(o) || (n = `${n} ${o}w`), e.filter((s) => s !== o).map((s) => `${Z(t, "width", s)} ${s}w`).concat([n]).join(", ");
241
228
  }
242
- return t.match(/cdn\.shopify\.com/) ? e.map((n) => [te(t, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([t]).join(", ") : t;
229
+ return t.match(/cdn\.shopify\.com/) ? e.map((n) => [ee(t, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([t]).join(", ") : t;
243
230
  }
244
- const ne = {
231
+ const te = {
245
232
  name: "builder-image",
246
233
  props: [
247
234
  "image",
@@ -264,10 +251,10 @@ const ne = {
264
251
  return this.srcset;
265
252
  if (this.srcset && ((n = this.image) == null ? void 0 : n.includes("builder.io/api/v1/image"))) {
266
253
  if (!this.srcset.includes(this.image.split("?")[0]))
267
- return console.debug("Removed given srcset"), v(e);
254
+ return console.debug("Removed given srcset"), b(e);
268
255
  } else if (this.image && !this.srcset)
269
- return v(e);
270
- return v(e);
256
+ return b(e);
257
+ return b(e);
271
258
  },
272
259
  webpSrcSet() {
273
260
  var t;
@@ -286,45 +273,45 @@ const ne = {
286
273
  }
287
274
  }
288
275
  };
289
- var oe = function() {
276
+ var ne = function() {
290
277
  var o, s, r, a;
291
278
  var e = this, n = e._self._c;
292
279
  return n("div", [n("picture", [e.webpSrcSet ? [n("source", { attrs: { type: "image/webp", srcset: e.webpSrcSet } })] : e._e(), n("img", { class: e._classStringToObject(
293
- "builder-image" + (e.className ? " " + e.className : "") + " img-29wpyomtntv"
280
+ "builder-image" + (e.className ? " " + e.className : "") + " img-1j57pcfa436"
294
281
  ), style: {
295
282
  objectPosition: e.backgroundSize || "center",
296
283
  objectFit: e.backgroundSize || "cover"
297
- }, attrs: { loading: "lazy", alt: e.altText, role: e.altText ? "presentation" : void 0, src: e.image, srcset: e.srcSetToUse, sizes: e.sizes } }), n("source", { attrs: { srcset: e.srcSetToUse } })], 2), e.aspectRatio && !(((s = (o = e.builderBlock) == null ? void 0 : o.children) == null ? void 0 : s.length) && e.fitContent) ? [n("div", { staticClass: "builder-image-sizer div-29wpyomtntv", style: {
284
+ }, attrs: { loading: "lazy", alt: e.altText, role: e.altText ? "presentation" : void 0, src: e.image, srcset: e.srcSetToUse, sizes: e.sizes } }), n("source", { attrs: { srcset: e.srcSetToUse } })], 2), e.aspectRatio && !(((s = (o = e.builderBlock) == null ? void 0 : o.children) == null ? void 0 : s.length) && e.fitContent) ? [n("div", { staticClass: "builder-image-sizer div-1j57pcfa436", style: {
298
285
  paddingTop: e.aspectRatio * 100 + "%"
299
- } })] : e._e(), ((a = (r = e.builderBlock) == null ? void 0 : r.children) == null ? void 0 : a.length) && e.fitContent ? [e._t("default")] : e._e(), !e.fitContent && e.children ? [n("div", { staticClass: "div-29wpyomtntv-2" }, [e._t("default")], 2)] : e._e()], 2);
300
- }, se = [], re = /* @__PURE__ */ p(
286
+ } })] : e._e(), ((a = (r = e.builderBlock) == null ? void 0 : r.children) == null ? void 0 : a.length) && e.fitContent ? [e._t("default")] : e._e(), !e.fitContent && e.children ? [n("div", { staticClass: "div-1j57pcfa436-2" }, [e._t("default")], 2)] : e._e()], 2);
287
+ }, oe = [], se = /* @__PURE__ */ p(
288
+ te,
301
289
  ne,
302
290
  oe,
303
- se,
304
291
  !1,
305
292
  null,
306
- "d5be32e0",
293
+ "c75d9535",
307
294
  null,
308
295
  null
309
296
  );
310
- const ae = re.exports, ie = {
297
+ const re = se.exports, ae = {
311
298
  name: "builder-text",
312
299
  props: ["text"]
313
300
  };
314
- var ce = function() {
301
+ var ie = function() {
315
302
  var e = this, n = e._self._c;
316
303
  return n("span", { staticClass: "builder-text", domProps: { innerHTML: e._s(e.text) } });
317
- }, le = [], de = /* @__PURE__ */ p(
304
+ }, ce = [], le = /* @__PURE__ */ p(
305
+ ae,
318
306
  ie,
319
307
  ce,
320
- le,
321
308
  !1,
322
309
  null,
323
310
  null,
324
311
  null,
325
312
  null
326
313
  );
327
- const ue = de.exports, pe = {
314
+ const de = le.exports, ue = {
328
315
  name: "builder-video",
329
316
  props: [
330
317
  "autoPlay",
@@ -357,10 +344,16 @@ const ue = de.exports, pe = {
357
344
  playsInline: !0
358
345
  } : {}
359
346
  };
347
+ },
348
+ spreadProps() {
349
+ return {
350
+ ...this.attributes,
351
+ ...this.videoProps
352
+ };
360
353
  }
361
354
  }
362
355
  };
363
- var me = function() {
356
+ var pe = function() {
364
357
  var o;
365
358
  var e = this, n = e._self._c;
366
359
  return n("video", e._b({ style: {
@@ -370,64 +363,64 @@ var me = function() {
370
363
  objectFit: e.fit,
371
364
  objectPosition: e.position,
372
365
  borderRadius: 1
373
- }, attrs: { src: e.video || "no-src", poster: e.posterImage } }, "video", e.videoProps, !1));
374
- }, he = [], fe = /* @__PURE__ */ p(
366
+ }, attrs: { src: e.video || "no-src", poster: e.posterImage } }, "video", e.spreadProps, !1));
367
+ }, me = [], he = /* @__PURE__ */ p(
368
+ ue,
375
369
  pe,
376
370
  me,
377
- he,
378
371
  !1,
379
372
  null,
380
373
  null,
381
374
  null,
382
375
  null
383
376
  );
384
- const ge = fe.exports;
385
- function _(t, e = null, n = ".") {
377
+ const fe = he.exports;
378
+ function v(t, e = null, n = ".") {
386
379
  return Object.keys(t).reduce((o, s) => {
387
380
  const r = t[s], a = [e, s].filter(Boolean).join(n);
388
381
  return [
389
382
  typeof r == "object",
390
383
  r !== null,
391
384
  !(Array.isArray(r) && r.length === 0)
392
- ].every(Boolean) ? { ...o, ..._(r, a, n) } : { ...o, [a]: r };
385
+ ].every(Boolean) ? { ...o, ...v(r, a, n) } : { ...o, [a]: r };
393
386
  }, {});
394
387
  }
395
- const I = "builder.", be = (t) => {
388
+ const I = "builder.", ge = (t) => {
396
389
  const e = {};
397
390
  return t.forEach((n, o) => {
398
391
  e[o] = n;
399
392
  }), e;
400
- }, ve = (t) => {
393
+ }, be = (t) => {
401
394
  if (!t)
402
395
  return {};
403
- const e = F(t), n = {};
396
+ const e = E(t), n = {};
404
397
  return Object.keys(e).forEach((o) => {
405
398
  if (o.startsWith(I)) {
406
399
  const s = o.replace(I, "");
407
400
  n[s] = e[o];
408
401
  }
409
402
  }), n;
410
- }, _e = () => {
411
- if (!h())
403
+ }, ve = () => {
404
+ if (!u())
412
405
  return {};
413
406
  const t = new URLSearchParams(window.location.search);
414
- return ve(t);
415
- }, F = (t) => t instanceof URLSearchParams ? be(t) : t;
416
- function ye() {
407
+ return be(t);
408
+ }, E = (t) => t instanceof URLSearchParams ? ge(t) : t;
409
+ function _e() {
417
410
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : null;
418
411
  }
419
- async function j() {
420
- const t = ye().fetch;
412
+ async function F() {
413
+ const t = _e().fetch;
421
414
  if (typeof t > "u" && typeof global < "u") {
422
415
  const e = import("node-fetch").then((n) => n.default);
423
416
  return e.default || e;
424
417
  }
425
418
  return t.default || t;
426
419
  }
427
- const xe = (t) => {
420
+ const ye = (t) => {
428
421
  const e = t.split(".");
429
422
  return e.length > 2 ? e.slice(1).join(".") : t;
430
- }, U = async ({
423
+ }, j = async ({
431
424
  name: t,
432
425
  canTrack: e
433
426
  }) => {
@@ -437,7 +430,7 @@ const xe = (t) => {
437
430
  } catch (o) {
438
431
  console.debug("[COOKIE] GET error: ", o);
439
432
  }
440
- }, Ce = (t) => t.map(([e, n]) => n ? `${e}=${n}` : e).join("; "), we = [
433
+ }, xe = (t) => t.map(([e, n]) => n ? `${e}=${n}` : e).join("; "), Ce = [
441
434
  ["secure", ""],
442
435
  ["SameSite", "None"]
443
436
  ], ke = ({
@@ -445,15 +438,15 @@ const xe = (t) => {
445
438
  value: e,
446
439
  expires: n
447
440
  }) => {
448
- const s = (h() ? location.protocol === "https:" : !0) ? we : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], a = [
441
+ const s = (u() ? location.protocol === "https:" : !0) ? Ce : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], a = [
449
442
  [t, e],
450
443
  ...r,
451
444
  ["path", "/"],
452
- ["domain", xe(window.location.hostname)],
445
+ ["domain", ye(window.location.hostname)],
453
446
  ...s
454
447
  ];
455
- return Ce(a);
456
- }, V = async ({
448
+ return xe(a);
449
+ }, U = async ({
457
450
  name: t,
458
451
  value: e,
459
452
  expires: n,
@@ -467,14 +460,14 @@ const xe = (t) => {
467
460
  } catch (s) {
468
461
  console.warn("[COOKIE] SET error: ", s);
469
462
  }
470
- }, Se = "builderio.variations", A = (t) => `${Se}.${t}`, Ie = ({
463
+ }, we = "builderio.variations", V = (t) => `${we}.${t}`, Se = ({
471
464
  contentId: t,
472
465
  canTrack: e
473
- }) => U({ name: A(t), canTrack: e }), Re = ({
466
+ }) => j({ name: V(t), canTrack: e }), Ie = ({
474
467
  contentId: t,
475
468
  canTrack: e,
476
469
  value: n
477
- }) => V({ name: A(t), value: n, canTrack: e }), b = (t) => t != null, Te = (t) => b(t.id) && b(t.variations) && Object.keys(t.variations).length > 0, $e = ({
470
+ }) => U({ name: V(t), value: n, canTrack: e }), g = (t) => t != null, Te = (t) => g(t.id) && g(t.variations) && Object.keys(t.variations).length > 0, Re = ({
478
471
  id: t,
479
472
  variations: e
480
473
  }) => {
@@ -485,7 +478,7 @@ const xe = (t) => {
485
478
  if (n += (s = e[r]) == null ? void 0 : s.testRatio, o < n)
486
479
  return r;
487
480
  return t;
488
- }, R = ({
481
+ }, T = ({
489
482
  item: t,
490
483
  testGroupId: e
491
484
  }) => {
@@ -498,42 +491,42 @@ const xe = (t) => {
498
491
  testVariationId: n.id,
499
492
  testVariationName: n.name || (n.id === t.id ? "Default" : "")
500
493
  };
501
- }, Ee = async ({
494
+ }, $e = async ({
502
495
  item: t,
503
496
  canTrack: e
504
497
  }) => {
505
- const n = await Ie({
498
+ const n = await Se({
506
499
  canTrack: e,
507
500
  contentId: t.id
508
- }), o = n ? R({ item: t, testGroupId: n }) : void 0;
501
+ }), o = n ? T({ item: t, testGroupId: n }) : void 0;
509
502
  if (o)
510
503
  return o;
511
504
  {
512
- const s = $e({
505
+ const s = Re({
513
506
  variations: t.variations,
514
507
  id: t.id
515
508
  });
516
- return Re({
509
+ return Ie({
517
510
  contentId: t.id,
518
511
  value: s,
519
512
  canTrack: e
520
513
  }).catch((r) => {
521
514
  console.error("could not store A/B test variation: ", r);
522
- }), R({ item: t, testGroupId: s });
515
+ }), T({ item: t, testGroupId: s });
523
516
  }
524
- }, Fe = async ({
517
+ }, Ee = async ({
525
518
  item: t,
526
519
  canTrack: e
527
520
  }) => {
528
521
  if (!Te(t))
529
522
  return;
530
- const n = await Ee({ item: t, canTrack: e });
523
+ const n = await $e({ item: t, canTrack: e });
531
524
  Object.assign(t, n);
532
525
  };
533
- async function O(t) {
534
- return (await Ue({ ...t, limit: 1 })).results[0] || null;
526
+ async function A(t) {
527
+ return (await je({ ...t, limit: 1 })).results[0] || null;
535
528
  }
536
- const je = (t) => {
529
+ const Fe = (t) => {
537
530
  const {
538
531
  limit: e = 30,
539
532
  userAttributes: n,
@@ -544,63 +537,67 @@ const je = (t) => {
544
537
  } = t, c = new URL(
545
538
  `https://cdn.builder.io/api/v2/content/${r}?apiKey=${a}&limit=${e}&noTraverse=${s}`
546
539
  ), i = {
547
- ..._e(),
548
- ...F(t.options || {})
549
- }, d = _(i);
550
- for (const l in d)
551
- c.searchParams.set(l, String(d[l]));
540
+ ...ve(),
541
+ ...E(t.options || {})
542
+ }, l = v(i);
543
+ for (const d in l)
544
+ c.searchParams.set(d, String(l[d]));
552
545
  if (n && c.searchParams.set("userAttributes", JSON.stringify(n)), o) {
553
- const l = _({ query: o });
554
- for (const m in l)
555
- c.searchParams.set(m, JSON.stringify(l[m]));
546
+ const d = v({ query: o });
547
+ for (const h in d)
548
+ c.searchParams.set(h, JSON.stringify(d[h]));
556
549
  }
557
550
  return c;
558
551
  };
559
- async function Ue(t) {
560
- const e = je(t), o = await (await j())(e.href).then(
552
+ async function je(t) {
553
+ const e = Fe(t), o = await (await F())(e.href).then(
561
554
  (r) => r.json()
562
555
  ), s = t.canTrack !== !1;
563
556
  if (s)
564
557
  for (const r of o.results)
565
- await Fe({ item: r, canTrack: s });
558
+ await Ee({ item: r, canTrack: s });
566
559
  return o;
567
560
  }
568
- const Ve = () => Promise.resolve().then(() => Zt).then((t) => t.default).catch((t) => {
561
+ const Ue = () => Promise.resolve().then(() => Zt).then((t) => t.default).catch((t) => {
569
562
  throw console.error(
570
563
  "Error while attempting to dynamically import component RenderContent at ../../components/render-content/render-content.vue",
571
564
  t
572
565
  ), t;
573
- }), Ae = {
566
+ }), Ve = {
574
567
  name: "builder-symbol",
575
- components: { RenderContent: Ve },
568
+ components: { RenderContent: Ue },
576
569
  props: ["symbol", "attributes"],
577
- data: () => ({ className: "builder-symbol", content: null, markMutable: x }),
570
+ data: () => ({
571
+ className: "builder-symbol",
572
+ fetchedContent: null,
573
+ markMutable: x
574
+ }),
578
575
  inject: {
579
576
  builderContext: "BuilderContext"
580
577
  },
581
- mounted() {
582
- var t;
583
- this.content = (t = this.symbol) == null ? void 0 : t.content;
584
- },
585
578
  watch: {
586
579
  onUpdateHook0() {
587
580
  const t = this.symbol;
588
- t && !t.content && !this.content && t.model && O({
581
+ t && !t.content && !this.fetchedContent && t.model && A({
589
582
  model: t.model,
590
583
  apiKey: this.builderContext.apiKey,
591
584
  query: {
592
585
  id: t.entry
593
586
  }
594
587
  }).then((e) => {
595
- this.content = e;
588
+ this.fetchedContent = e;
596
589
  });
597
590
  }
598
591
  },
599
592
  computed: {
593
+ contentToUse() {
594
+ var t;
595
+ return ((t = this.symbol) == null ? void 0 : t.content) || this.fetchedContent;
596
+ },
600
597
  onUpdateHook0() {
601
598
  return {
602
599
  0: this.symbol,
603
- 1: this.content
600
+ 1: this.fetchedContent
604
601
  };
605
602
  }
606
603
  },
@@ -616,7 +613,7 @@ const Ve = () => Promise.resolve().then(() => Zt).then((t) => t.default).catch((
616
613
  }
617
614
  }
618
615
  };
619
- var Oe = function() {
616
+ var Ae = function() {
620
617
  var o, s, r, a, c;
621
618
  var e = this, n = e._self._c;
622
619
  return n("div", e._b({ class: e._classStringToObject(e.className), attrs: { dataSet: {
@@ -625,46 +622,46 @@ var Oe = function() {
625
622
  ...(o = e.symbol) == null ? void 0 : o.data,
626
623
  ...e.builderContext.state,
627
624
  ...(a = (r = (s = e.symbol) == null ? void 0 : s.content) == null ? void 0 : r.data) == null ? void 0 : a.state
628
- }), model: (c = e.symbol) == null ? void 0 : c.model, content: e.markMutable(e.content) } })], 1);
629
- }, Pe = [], We = /* @__PURE__ */ p(
625
+ }), model: (c = e.symbol) == null ? void 0 : c.model, content: e.markMutable(e.contentToUse) } })], 1);
626
+ }, Oe = [], Pe = /* @__PURE__ */ p(
627
+ Ve,
630
628
  Ae,
631
629
  Oe,
632
- Pe,
633
630
  !1,
634
631
  null,
635
632
  null,
636
633
  null,
637
634
  null
638
635
  );
639
- const Be = We.exports, Le = {
636
+ const We = Pe.exports, Be = {
640
637
  name: "builder-button",
641
638
  props: ["attributes", "text", "link", "openLinkInNewTab"]
642
639
  };
643
- var Me = function() {
640
+ var Le = function() {
644
641
  var e = this, n = e._self._c;
645
642
  return e.link ? n("a", e._b({ attrs: { role: "button", href: e.link, target: e.openLinkInNewTab ? "_blank" : void 0 } }, "a", e.attributes, !1), [e._v(" " + e._s(e.text) + " ")]) : n("button", e._b({ staticClass: "button-2fnk003dqad" }, "button", e.attributes, !1), [e._v(" " + e._s(e.text) + " ")]);
646
- }, Ne = [], ze = /* @__PURE__ */ p(
643
+ }, Me = [], Ne = /* @__PURE__ */ p(
644
+ Be,
647
645
  Le,
648
646
  Me,
649
- Ne,
650
647
  !1,
651
648
  null,
652
649
  "490b8c29",
653
650
  null,
654
651
  null
655
652
  );
656
- const He = ze.exports, qe = {
653
+ const He = Ne.exports, ze = {
657
654
  name: "builder-section-component",
658
655
  props: ["attributes", "maxWidth"]
659
656
  };
660
- var De = function() {
657
+ var qe = function() {
661
658
  var e = this, n = e._self._c;
662
659
  return n("section", e._b({ style: e.maxWidth && typeof e.maxWidth == "number" ? {
663
660
  maxWidth: e.maxWidth
664
661
  } : void 0 }, "section", e.attributes, !1), [e._t("default")], 2);
665
- }, Ke = [], Ge = /* @__PURE__ */ p(
662
+ }, Ke = [], De = /* @__PURE__ */ p(
663
+ ze,
666
664
  qe,
667
- De,
668
665
  Ke,
669
666
  !1,
670
667
  null,
@@ -672,24 +669,24 @@ var De = function() {
672
669
  null,
673
670
  null
674
671
  );
675
- const Je = Ge.exports, Xe = {
672
+ const Je = De.exports, Ge = {
676
673
  name: "builder-fragment-component",
677
674
  props: []
678
675
  };
679
- var Ye = function() {
676
+ var Xe = function() {
680
677
  var e = this, n = e._self._c;
681
678
  return n("span", [e._t("default")], 2);
682
- }, Qe = [], Ze = /* @__PURE__ */ p(
679
+ }, Ye = [], Qe = /* @__PURE__ */ p(
680
+ Ge,
683
681
  Xe,
684
682
  Ye,
685
- Qe,
686
683
  !1,
687
684
  null,
688
685
  null,
689
686
  null,
690
687
  null
691
688
  );
692
- const et = Ze.exports, tt = {
689
+ const Ze = Qe.exports, et = {
693
690
  name: "Core:Button",
694
691
  builtIn: !0,
695
692
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
@@ -730,7 +727,7 @@ const et = Ze.exports, tt = {
730
727
  function C(t) {
731
728
  return t.__qwik_serializable__ = !0, t;
732
729
  }
733
- const nt = {
730
+ const tt = {
734
731
  name: "Columns",
735
732
  builtIn: !0,
736
733
  inputs: [
@@ -955,14 +952,14 @@ const nt = {
955
952
  advanced: !0
956
953
  }
957
954
  ]
958
- }, ot = {
955
+ }, nt = {
959
956
  name: "Fragment",
960
957
  static: !0,
961
958
  hidden: !0,
962
959
  builtIn: !0,
963
960
  canHaveChildren: !0,
964
961
  noWrap: !0
965
- }, st = {
962
+ }, ot = {
966
963
  name: "Image",
967
964
  static: !0,
968
965
  builtIn: !0,
@@ -985,15 +982,15 @@ const nt = {
985
982
  onChange: C((t) => {
986
983
  t.delete("srcset"), t.delete("noWebp");
987
984
  function n(a, c = 6e4) {
988
- return new Promise((i, d) => {
989
- const l = document.createElement("img");
990
- let m = !1;
991
- l.onload = () => {
992
- m = !0, i(l);
993
- }, l.addEventListener("error", (u) => {
994
- console.warn("Image load failed", u.error), d(u.error);
995
- }), l.src = a, setTimeout(() => {
996
- m || d(new Error("Image load timed out"));
985
+ return new Promise((i, l) => {
986
+ const d = document.createElement("img");
987
+ let h = !1;
988
+ d.onload = () => {
989
+ h = !0, i(d);
990
+ }, d.addEventListener("error", (m) => {
991
+ console.warn("Image load failed", m.error), l(m.error);
992
+ }), d.src = a, setTimeout(() => {
993
+ h || l(new Error("Image load timed out"));
997
994
  }, c);
998
995
  });
999
996
  }
@@ -1088,7 +1085,7 @@ const nt = {
1088
1085
  defaultValue: 0.7041
1089
1086
  }
1090
1087
  ]
1091
- }, rt = {
1088
+ }, st = {
1092
1089
  name: "Core:Section",
1093
1090
  static: !0,
1094
1091
  builtIn: !0,
@@ -1133,7 +1130,7 @@ const nt = {
1133
1130
  }
1134
1131
  }
1135
1132
  ]
1136
- }, at = {
1133
+ }, rt = {
1137
1134
  name: "Symbol",
1138
1135
  noWrap: !0,
1139
1136
  static: !0,
@@ -1172,7 +1169,7 @@ const nt = {
1172
1169
  type: "boolean"
1173
1170
  }
1174
1171
  ]
1175
- }, it = {
1172
+ }, at = {
1176
1173
  name: "Text",
1177
1174
  static: !0,
1178
1175
  builtIn: !0,
@@ -1192,7 +1189,7 @@ const nt = {
1192
1189
  height: "auto",
1193
1190
  textAlign: "center"
1194
1191
  }
1195
- }, ct = {
1192
+ }, it = {
1196
1193
  name: "Video",
1197
1194
  canHaveChildren: !0,
1198
1195
  builtIn: !0,
@@ -1294,7 +1291,7 @@ const nt = {
1294
1291
  advanced: !0
1295
1292
  }
1296
1293
  ]
1297
- }, lt = {
1294
+ }, ct = {
1298
1295
  name: "Embed",
1299
1296
  static: !0,
1300
1297
  builtIn: !0,
@@ -1328,11 +1325,11 @@ const nt = {
1328
1325
  hideFromUI: !0
1329
1326
  }
1330
1327
  ]
1331
- }, dt = [
1328
+ }, lt = [
1332
1329
  "text/javascript",
1333
1330
  "application/javascript",
1334
1331
  "application/ecmascript"
1335
- ], ut = (t) => dt.includes(t.type), pt = {
1332
+ ], dt = (t) => lt.includes(t.type), ut = {
1336
1333
  name: "builder-embed",
1337
1334
  props: ["content"],
1338
1335
  data: () => ({ scriptsInserted: [], scriptsRun: [], ranInitFn: !1 }),
@@ -1360,7 +1357,7 @@ const nt = {
1360
1357
  this.scriptsInserted.push(n.src);
1361
1358
  const o = document.createElement("script");
1362
1359
  o.async = !0, o.src = n.src, document.head.appendChild(o);
1363
- } else if (ut(n) && !this.scriptsRun.includes(n.innerText))
1360
+ } else if (dt(n) && !this.scriptsRun.includes(n.innerText))
1364
1361
  try {
1365
1362
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
1366
1363
  } catch (o) {
@@ -1370,20 +1367,27 @@ const nt = {
1370
1367
  }
1371
1368
  }
1372
1369
  };
1373
- var mt = function() {
1370
+ var pt = function() {
1374
1371
  var e = this, n = e._self._c;
1375
1372
  return n("div", { ref: "elem", staticClass: "builder-embed", domProps: { innerHTML: e._s(e.content) } });
1376
- }, ht = [], ft = /* @__PURE__ */ p(
1373
+ }, mt = [], ht = /* @__PURE__ */ p(
1374
+ ut,
1377
1375
  pt,
1378
1376
  mt,
1379
- ht,
1380
1377
  !1,
1381
1378
  null,
1382
1379
  null,
1383
1380
  null,
1384
1381
  null
1385
1382
  );
1386
- const gt = ft.exports, bt = {
1383
+ const ft = ht.exports;
1384
+ function gt() {
1385
+ return u() && window.self !== window.top;
1386
+ }
1387
+ function f() {
1388
+ return gt() && window.location.search.indexOf("builder.frameEditing=") !== -1;
1389
+ }
1390
+ const bt = {
1387
1391
  name: "builder-img-component",
1388
1392
  props: [
1389
1393
  "backgroundSize",
@@ -1427,7 +1431,7 @@ const xt = yt.exports, Ct = {
1427
1431
  ],
1428
1432
  noWrap: !0,
1429
1433
  static: !0
1430
- }, wt = {
1434
+ }, kt = {
1431
1435
  name: "builder-custom-code",
1432
1436
  props: ["replaceNodes", "code"],
1433
1437
  data: () => ({ scriptsInserted: [], scriptsRun: [] }),
@@ -1473,14 +1477,14 @@ const xt = yt.exports, Ct = {
1473
1477
  }
1474
1478
  }
1475
1479
  };
1476
- var kt = function() {
1480
+ var wt = function() {
1477
1481
  var e = this, n = e._self._c;
1478
1482
  return n("div", { ref: "elem", class: e._classStringToObject(
1479
1483
  "builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")
1480
1484
  ), domProps: { innerHTML: e._s(e.code) } });
1481
1485
  }, St = [], It = /* @__PURE__ */ p(
1482
- wt,
1483
1486
  kt,
1487
+ wt,
1484
1488
  St,
1485
1489
  !1,
1486
1490
  null,
@@ -1488,7 +1492,7 @@ var kt = function() {
1488
1492
  null,
1489
1493
  null
1490
1494
  );
1491
- const Rt = It.exports, Tt = {
1495
+ const Tt = It.exports, Rt = {
1492
1496
  name: "Custom Code",
1493
1497
  static: !0,
1494
1498
  builtIn: !0,
@@ -1516,19 +1520,19 @@ const Rt = It.exports, Tt = {
1516
1520
  }
1517
1521
  ]
1518
1522
  }, $t = () => [
1519
- { component: Z, ...nt },
1520
- { component: ae, ...st },
1523
+ { component: Q, ...tt },
1524
+ { component: re, ...ot },
1521
1525
  { component: xt, ...Ct },
1522
- { component: ue, ...it },
1523
- { component: ge, ...ct },
1524
- { component: Be, ...at },
1525
- { component: He, ...tt },
1526
- { component: Je, ...rt },
1527
- { component: et, ...ot },
1528
- { component: gt, ...lt },
1529
- { component: Rt, ...Tt }
1526
+ { component: de, ...at },
1527
+ { component: fe, ...it },
1528
+ { component: We, ...rt },
1529
+ { component: He, ...et },
1530
+ { component: Je, ...st },
1531
+ { component: Ze, ...nt },
1532
+ { component: ft, ...ct },
1533
+ { component: Tt, ...Rt }
1530
1534
  ];
1531
- function T({
1535
+ function R({
1532
1536
  code: t,
1533
1537
  context: e,
1534
1538
  state: n,
@@ -1540,8 +1544,8 @@ function T({
1540
1544
  }
1541
1545
  const s = {
1542
1546
  isEditing: f(),
1543
- isBrowser: h(),
1544
- isServer: !h()
1547
+ isBrowser: u(),
1548
+ isServer: !u()
1545
1549
  }, a = !(t.includes(";") || t.includes(" return ") || t.trim().startsWith("return ")) ? `return (${t});` : t;
1546
1550
  try {
1547
1551
  return new Function(
@@ -1565,9 +1569,9 @@ function T({
1565
1569
  }
1566
1570
  }
1567
1571
  function Et() {
1568
- return !h() || f() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
1572
+ return !u() || f() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
1569
1573
  }
1570
- const P = [];
1574
+ const O = (t) => JSON.parse(JSON.stringify(t)), P = [];
1571
1575
  function ln(t, e) {
1572
1576
  return P.push({ component: t, ...e }), console.warn(
1573
1577
  "registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."
@@ -1579,14 +1583,14 @@ const Ft = ({
1579
1583
  }) => ({
1580
1584
  type: "builder.registerComponent",
1581
1585
  data: Vt(e)
1582
- }), W = (t) => JSON.parse(JSON.stringify(t)), jt = (t) => typeof t == "function" ? Ut(t) : W(t), Ut = (t) => {
1586
+ }), jt = (t) => typeof t == "function" ? Ut(t) : O(t), Ut = (t) => {
1583
1587
  const e = t.toString().trim();
1584
1588
  return `return (${!e.startsWith("function") && !e.startsWith("(") ? "function " : ""}${e}).apply(this, arguments)`;
1585
1589
  }, Vt = ({
1586
1590
  inputs: t,
1587
1591
  ...e
1588
1592
  }) => ({
1589
- ...W(e),
1593
+ ...O(e),
1590
1594
  inputs: t == null ? void 0 : t.map(
1591
1595
  (n) => Object.entries(n).reduce(
1592
1596
  (o, [s, r]) => ({
@@ -1603,32 +1607,32 @@ function At() {
1603
1607
  return (t == "x" ? e : e & 3 | 8).toString(16);
1604
1608
  });
1605
1609
  }
1606
- function B() {
1610
+ function W() {
1607
1611
  return At().replace(/-/g, "");
1608
1612
  }
1609
- const L = "builderSessionId", Ot = async ({ canTrack: t }) => {
1613
+ const B = "builderSessionId", Ot = async ({ canTrack: t }) => {
1610
1614
  if (!t)
1611
1615
  return;
1612
- const e = await U({
1613
- name: L,
1616
+ const e = await j({
1617
+ name: B,
1614
1618
  canTrack: t
1615
1619
  });
1616
- if (b(e))
1620
+ if (g(e))
1617
1621
  return e;
1618
1622
  {
1619
1623
  const n = Pt();
1620
1624
  Wt({ id: n, canTrack: t });
1621
1625
  }
1622
- }, Pt = () => B(), Wt = ({
1626
+ }, Pt = () => W(), Wt = ({
1623
1627
  id: t,
1624
1628
  canTrack: e
1625
- }) => V({ name: L, value: t, canTrack: e }), M = () => h() && typeof localStorage < "u" ? localStorage : void 0, Bt = ({
1629
+ }) => U({ name: B, value: t, canTrack: e }), L = () => u() && typeof localStorage < "u" ? localStorage : void 0, Bt = ({
1626
1630
  key: t,
1627
1631
  canTrack: e
1628
1632
  }) => {
1629
1633
  var n;
1630
1634
  try {
1631
- return e ? (n = M()) == null ? void 0 : n.getItem(t) : void 0;
1635
+ return e ? (n = L()) == null ? void 0 : n.getItem(t) : void 0;
1632
1636
  } catch (o) {
1633
1637
  console.debug("[LocalStorage] GET error: ", o);
1634
1638
  }
@@ -1639,31 +1643,31 @@ const L = "builderSessionId", Ot = async ({ canTrack: t }) => {
1639
1643
  }) => {
1640
1644
  var o;
1641
1645
  try {
1642
- e && ((o = M()) == null || o.setItem(t, n));
1646
+ e && ((o = L()) == null || o.setItem(t, n));
1643
1647
  } catch (s) {
1644
1648
  console.debug("[LocalStorage] SET error: ", s);
1645
1649
  }
1646
- }, N = "builderVisitorId", Mt = ({ canTrack: t }) => {
1650
+ }, M = "builderVisitorId", Mt = ({ canTrack: t }) => {
1647
1651
  if (!t)
1648
1652
  return;
1649
1653
  const e = Bt({
1650
- key: N,
1654
+ key: M,
1651
1655
  canTrack: t
1652
1656
  });
1653
- if (b(e))
1657
+ if (g(e))
1654
1658
  return e;
1655
1659
  {
1656
1660
  const n = Nt();
1657
- zt({ id: n, canTrack: t });
1661
+ Ht({ id: n, canTrack: t });
1658
1662
  }
1659
- }, Nt = () => B(), zt = ({
1663
+ }, Nt = () => W(), Ht = ({
1660
1664
  id: t,
1661
1665
  canTrack: e
1662
1666
  }) => Lt({
1663
- key: N,
1667
+ key: M,
1664
1668
  value: t,
1665
1669
  canTrack: e
1666
- }), Ht = async ({
1670
+ }), zt = async ({
1667
1671
  canTrack: t
1668
1672
  }) => {
1669
1673
  if (!t)
@@ -1676,20 +1680,20 @@ const L = "builderSessionId", Ot = async ({ canTrack: t }) => {
1676
1680
  }, qt = async ({
1677
1681
  type: t,
1678
1682
  canTrack: e,
1679
- orgId: n,
1680
- contentId: o,
1683
+ apiKey: n,
1684
+ metadata: o,
1681
1685
  ...s
1682
1686
  }) => ({
1683
1687
  type: t,
1684
1688
  data: {
1685
1689
  ...s,
1686
- ...await Ht({ canTrack: e }),
1687
- ownerId: n,
1688
- contentId: o
1690
+ metadata: JSON.stringify(o),
1691
+ ...await zt({ canTrack: e }),
1692
+ ownerId: n
1689
1693
  }
1690
1694
  });
1691
- async function $(t) {
1692
- if (!!t.canTrack && !f() && !!(h() || y === "reactNative"))
1695
+ async function _(t) {
1696
+ if (!!t.canTrack && !f() && !!(u() || y === "reactNative"))
1693
1697
  return fetch("https://builder.io/api/v1/track", {
1694
1698
  method: "POST",
1695
1699
  body: JSON.stringify({
@@ -1703,21 +1707,21 @@ async function $(t) {
1703
1707
  console.error("Failed to track: ", e);
1704
1708
  });
1705
1709
  }
1706
- const Dt = () => Promise.resolve().then(() => z).then((t) => t.default).catch((t) => {
1710
+ const dn = (t) => _({ ...t, canTrack: !0 }), Kt = () => Promise.resolve().then(() => N).then((t) => t.default).catch((t) => {
1707
1711
  throw console.error(
1708
1712
  "Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",
1709
1713
  t
1710
1714
  ), t;
1711
- }), Kt = () => import("./render-styles.ad89c45c.js").then((t) => t.default).catch((t) => {
1715
+ }), Dt = () => import("./render-styles.6722cee5.js").then((t) => t.default).catch((t) => {
1712
1716
  throw console.error(
1713
1717
  "Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",
1714
1718
  t
1715
1719
  ), t;
1716
- }), Gt = {
1720
+ }), Jt = {
1717
1721
  name: "render-content",
1718
1722
  components: {
1719
- RenderContentStyles: Kt,
1720
- RenderBlocks: Dt
1723
+ RenderContentStyles: Dt,
1724
+ RenderBlocks: Kt
1721
1725
  },
1722
1726
  props: [
1723
1727
  "content",
@@ -1726,9 +1730,7 @@ const Dt = () => Promise.resolve().then(() => z).then((t) => t.default).catch((t
1726
1730
  "context",
1727
1731
  "customComponents",
1728
1732
  "model",
1729
- "apiKey",
1730
- "locale",
1731
- "includeRefs"
1733
+ "apiKey"
1732
1734
  ],
1733
1735
  data: () => ({
1734
1736
  forceReRenderCount: 0,
@@ -1760,38 +1762,36 @@ const Dt = () => Promise.resolve().then(() => z).then((t) => t.default).catch((t
1760
1762
  };
1761
1763
  },
1762
1764
  mounted() {
1763
- var t;
1764
- if (h()) {
1765
- if (f() && (this.forceReRenderCount = this.forceReRenderCount + 1, D(), K({
1766
- ...this.locale ? {
1767
- locale: this.locale
1768
- } : {},
1769
- ...this.includeRefs ? {
1770
- includeRefs: this.includeRefs
1771
- } : {}
1772
- }), Object.values(this.allRegisteredComponents).forEach(
1773
- (e) => {
1774
- var o;
1775
- const n = Ft(e);
1776
- (o = window.parent) == null || o.postMessage(n, "*");
1765
+ var t, e;
1766
+ if (u()) {
1767
+ if (f() && (this.forceReRenderCount = this.forceReRenderCount + 1, q(), K(), Object.values(this.allRegisteredComponents).forEach(
1768
+ (n) => {
1769
+ var s;
1770
+ const o = Ft(n);
1771
+ (s = window.parent) == null || s.postMessage(o, "*");
1777
1772
  }
1778
1773
  ), window.addEventListener("message", this.processMessage), window.addEventListener(
1779
1774
  "builder:component:stateChangeListenerActivated",
1780
1775
  this.emitStateUpdate
1781
- )), this.useContent && $({
1782
- type: "impression",
1783
- canTrack: this.canTrackToUse,
1784
- contentId: (t = this.useContent) == null ? void 0 : t.id,
1785
- orgId: this.apiKey
1786
- }), Et()) {
1787
- const e = new URL(location.href).searchParams;
1788
- if (this.model && e.get("builder.preview") === this.model) {
1789
- const n = e.get("apiKey") || e.get("builder.space");
1790
- n && O({
1776
+ )), this.useContent) {
1777
+ const n = (t = this.useContent) == null ? void 0 : t.testVariationId, o = (e = this.useContent) == null ? void 0 : e.id;
1778
+ _({
1779
+ type: "impression",
1780
+ canTrack: this.canTrackToUse,
1781
+ contentId: o,
1782
+ apiKey: this.apiKey,
1783
+ variationId: n !== o ? n : void 0
1784
+ });
1785
+ }
1786
+ if (Et()) {
1787
+ const n = new URL(location.href).searchParams;
1788
+ if (this.model && n.get("builder.preview") === this.model) {
1789
+ const o = n.get("apiKey") || n.get("builder.space");
1790
+ o && A({
1791
1791
  model: this.model,
1792
- apiKey: n
1793
- }).then((o) => {
1794
- o && (this.overrideContent = o);
1792
+ apiKey: o
1793
+ }).then((s) => {
1794
+ s && (this.overrideContent = s);
1795
1795
  });
1796
1796
  }
1797
1797
  }
@@ -1810,7 +1810,7 @@ const Dt = () => Promise.resolve().then(() => z).then((t) => t.default).catch((t
1810
1810
  }
1811
1811
  },
1812
1812
  unmounted() {
1813
- h() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
1813
+ u() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
1814
1814
  "builder:component:stateChangeListenerActivated",
1815
1815
  this.emitStateUpdate
1816
1816
  ));
@@ -1848,7 +1848,10 @@ const Dt = () => Promise.resolve().then(() => z).then((t) => t.default).catch((t
1848
1848
  ...P,
1849
1849
  ...this.customComponents || []
1850
1850
  ].reduce(
1851
- (n, o) => ({ ...n, [o.name]: o }),
1851
+ (n, o) => ({
1852
+ ...n,
1853
+ [o.name]: o
1854
+ }),
1852
1855
  {}
1853
1856
  );
1854
1857
  },
@@ -1894,25 +1897,29 @@ const Dt = () => Promise.resolve().then(() => z).then((t) => t.default).catch((t
1894
1897
  evaluateJsCode() {
1895
1898
  var e, n;
1896
1899
  const t = (n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.jsCode;
1897
- t && T({
1900
+ t && R({
1898
1901
  code: t,
1899
1902
  context: this.contextContext,
1900
1903
  state: this.contentState
1901
1904
  });
1902
1905
  },
1903
1906
  onClick(t) {
1904
- var e;
1905
- this.useContent && $({
1906
- type: "click",
1907
- canTrack: this.canTrackToUse,
1908
- contentId: (e = this.useContent) == null ? void 0 : e.id,
1909
- orgId: this.apiKey
1910
- });
1907
+ var e, n;
1908
+ if (this.useContent) {
1909
+ const o = (e = this.useContent) == null ? void 0 : e.testVariationId, s = (n = this.useContent) == null ? void 0 : n.id;
1910
+ _({
1911
+ type: "click",
1912
+ canTrack: this.canTrackToUse,
1913
+ contentId: s,
1914
+ apiKey: this.apiKey,
1915
+ variationId: o !== s ? o : void 0
1916
+ });
1917
+ }
1911
1918
  },
1912
1919
  evalExpression(t) {
1913
1920
  return t.replace(
1914
1921
  /{{([^}]+)}}/g,
1915
- (e, n) => T({
1922
+ (e, n) => R({
1916
1923
  code: n,
1917
1924
  context: this.contextContext,
1918
1925
  state: this.contentState
@@ -1920,8 +1927,11 @@ const Dt = () => Promise.resolve().then(() => z).then((t) => t.default).catch((t
1920
1927
  );
1921
1928
  },
1922
1929
  handleRequest({ url: t, key: e }) {
1923
- j().then((n) => n(t)).then((n) => n.json()).then((n) => {
1924
- const o = { ...this.overrideState, [e]: n };
1930
+ F().then((n) => n(t)).then((n) => n.json()).then((n) => {
1931
+ const o = {
1932
+ ...this.overrideState,
1933
+ [e]: n
1934
+ };
1925
1935
  this.overrideState = o;
1926
1936
  }).catch((n) => {
1927
1937
  console.log("error fetching dynamic data", t, n);
@@ -1954,15 +1964,15 @@ const Dt = () => Promise.resolve().then(() => z).then((t) => t.default).catch((t
1954
1964
  }
1955
1965
  }
1956
1966
  };
1957
- var Jt = function() {
1958
- var o, s, r, a, c, i, d;
1967
+ var Gt = function() {
1968
+ var o, s, r, a, c, i, l;
1959
1969
  var e = this, n = e._self._c;
1960
- return e.useContent ? n("div", { ref: "elementRef", attrs: { "builder-content-id": (o = e.useContent) == null ? void 0 : o.id }, on: { click: function(l) {
1961
- return e.onClick(l);
1962
- } } }, [e.shouldRenderContentStyles ? [n("render-content-styles", { attrs: { cssCode: (r = (s = e.useContent) == null ? void 0 : s.data) == null ? void 0 : r.cssCode, customFonts: (c = (a = e.useContent) == null ? void 0 : a.data) == null ? void 0 : c.customFonts } })] : e._e(), n("render-blocks", { key: e.forceReRenderCount, attrs: { blocks: e.markMutable((d = (i = e.useContent) == null ? void 0 : i.data) == null ? void 0 : d.blocks) } })], 2) : e._e();
1970
+ return e.useContent ? n("div", { ref: "elementRef", attrs: { "builder-content-id": (o = e.useContent) == null ? void 0 : o.id, "builder-model": e.model }, on: { click: function(d) {
1971
+ return e.onClick(d);
1972
+ } } }, [e.shouldRenderContentStyles ? [n("render-content-styles", { attrs: { cssCode: (r = (s = e.useContent) == null ? void 0 : s.data) == null ? void 0 : r.cssCode, customFonts: (c = (a = e.useContent) == null ? void 0 : a.data) == null ? void 0 : c.customFonts } })] : e._e(), n("render-blocks", { key: e.forceReRenderCount, attrs: { blocks: e.markMutable((l = (i = e.useContent) == null ? void 0 : i.data) == null ? void 0 : l.blocks) } })], 2) : e._e();
1963
1973
  }, Xt = [], Yt = /* @__PURE__ */ p(
1964
- Gt,
1965
1974
  Jt,
1975
+ Gt,
1966
1976
  Xt,
1967
1977
  !1,
1968
1978
  null,
@@ -1973,12 +1983,12 @@ var Jt = function() {
1973
1983
  const Qt = Yt.exports, Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1974
1984
  __proto__: null,
1975
1985
  default: Qt
1976
- }, Symbol.toStringTag, { value: "Module" })), en = () => import("./block-styles.234651b2.js").then((t) => t.default).catch((t) => {
1986
+ }, Symbol.toStringTag, { value: "Module" })), en = () => import("./block-styles.fc09dcaf.js").then((t) => t.default).catch((t) => {
1977
1987
  throw console.error(
1978
1988
  "Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
1979
1989
  t
1980
1990
  ), t;
1981
- }), tn = () => import("./render-block.3cf39e0e.js").then((t) => t.default).catch((t) => {
1991
+ }), tn = () => import("./render-block.089abc43.js").then((t) => t.default).catch((t) => {
1982
1992
  throw console.error(
1983
1993
  "Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
1984
1994
  t
@@ -1986,7 +1996,7 @@ const Qt = Yt.exports, Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object
1986
1996
  }), nn = {
1987
1997
  name: "render-blocks",
1988
1998
  components: { RenderBlock: tn, BlockStyles: en },
1989
- props: ["blocks", "parent", "path", "style"],
1999
+ props: ["blocks", "parent", "path", "styleProp"],
1990
2000
  inject: {
1991
2001
  builderContext: "BuilderContext"
1992
2002
  },
@@ -2036,7 +2046,7 @@ const Qt = Yt.exports, Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object
2036
2046
  };
2037
2047
  var on = function() {
2038
2048
  var e = this, n = e._self._c;
2039
- return n("div", { class: e._classStringToObject(e.className + " div-21azgz5avex"), style: e.style, attrs: { "builder-path": e.path, "builder-parent-id": e.parent, dataSet: {
2049
+ return n("div", { class: e._classStringToObject(e.className + " div-23e8fqt91nf"), style: e.styleProp, attrs: { "builder-path": e.path, "builder-parent-id": e.parent, dataSet: {
2040
2050
  class: e.className
2041
2051
  } }, on: { click: function(o) {
2042
2052
  return e.onClick();
@@ -2053,51 +2063,53 @@ var on = function() {
2053
2063
  sn,
2054
2064
  !1,
2055
2065
  null,
2056
- "75050a7e",
2066
+ "713efc9e",
2057
2067
  null,
2058
2068
  null
2059
2069
  );
2060
- const an = rn.exports, z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2070
+ const an = rn.exports, N = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2061
2071
  __proto__: null,
2062
2072
  default: an
2063
- }, Symbol.toStringTag, { value: "Module" })), E = {};
2064
- function dn(t) {
2065
- if (h()) {
2066
- Object.assign(E, t);
2073
+ }, Symbol.toStringTag, { value: "Module" })), $ = {};
2074
+ function un(t) {
2075
+ if (u()) {
2076
+ Object.assign($, t);
2067
2077
  const e = {
2068
2078
  type: "builder.settingsChange",
2069
- data: E
2079
+ data: $
2070
2080
  };
2071
2081
  parent.postMessage(e, "*");
2072
2082
  }
2073
2083
  }
2074
2084
  export {
2075
2085
  He as B,
2076
- Z as C,
2077
- et as F,
2078
- ae as I,
2079
- Be as S,
2086
+ Q as C,
2087
+ Ze as F,
2088
+ re as I,
2089
+ We as S,
2080
2090
  y as T,
2081
- ge as V,
2082
- ue as a,
2091
+ fe as V,
2092
+ de as a,
2083
2093
  Je as b,
2084
2094
  an as c,
2085
2095
  Et as d,
2086
- T as e,
2087
- P as f,
2088
- ln as g,
2089
- Ft as h,
2096
+ R as e,
2097
+ O as f,
2098
+ P as g,
2099
+ ln as h,
2090
2100
  f as i,
2091
- q as j,
2092
- O as k,
2093
- je as l,
2101
+ Ft as j,
2102
+ z as k,
2103
+ A as l,
2094
2104
  cn as m,
2095
2105
  p as n,
2096
- Ue as o,
2097
- be as p,
2098
- ve as q,
2106
+ Fe as o,
2107
+ je as p,
2108
+ ge as q,
2099
2109
  Qt as r,
2100
- dn as s,
2101
- _e as t,
2102
- F as u
2110
+ un as s,
2111
+ dn as t,
2112
+ be as u,
2113
+ ve as v,
2114
+ E as w
2103
2115
  };