@builder.io/sdk-vue 0.4.5 → 0.5.0

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 (232) hide show
  1. package/package.json +1 -1
  2. package/packages/_vue2/dist/block-styles.6a14fec4.cjs +1 -0
  3. package/packages/_vue2/dist/block-styles.982735c2.js +77 -0
  4. package/packages/_vue2/dist/block-wrapper.701626ff.cjs +1 -0
  5. package/packages/_vue2/dist/block-wrapper.fbaeab1b.js +66 -0
  6. package/packages/_vue2/dist/block.a18a495f.cjs +3 -0
  7. package/packages/_vue2/dist/block.e9484073.js +178 -0
  8. package/packages/_vue2/dist/blocks-wrapper.4afaccc5.js +72 -0
  9. package/packages/_vue2/dist/blocks-wrapper.e0086c60.cjs +1 -0
  10. package/packages/_vue2/dist/builder.context.29ec27bd.js +18 -0
  11. package/packages/_vue2/dist/builder.context.e22f06a0.cjs +1 -0
  12. package/packages/_vue2/dist/component-ref.8772e5f7.cjs +1 -0
  13. package/packages/_vue2/dist/component-ref.ad8ecffe.js +98 -0
  14. package/packages/_vue2/dist/content.697b2fbd.js +905 -0
  15. package/packages/_vue2/dist/content.fb93079e.cjs +1 -0
  16. package/packages/_vue2/dist/css.1aff1efe.js +21 -0
  17. package/packages/_vue2/dist/css.daac46ac.cjs +6 -0
  18. package/packages/_vue2/dist/enable-editor.12c3716b.cjs +1 -0
  19. package/packages/_vue2/dist/enable-editor.8d1c24b0.js +428 -0
  20. package/packages/_vue2/dist/evaluate.b0496c3f.js +4970 -0
  21. package/packages/_vue2/dist/evaluate.d1bef2c5.cjs +31 -0
  22. package/packages/_vue2/dist/get-block-actions.88b6dbbf.cjs +1 -0
  23. package/packages/_vue2/dist/get-block-actions.a39f0f6b.js +36 -0
  24. package/packages/_vue2/dist/get-block-properties.316bbdf9.js +48 -0
  25. package/packages/_vue2/dist/get-block-properties.3ab4b67f.cjs +1 -0
  26. package/packages/_vue2/dist/get-processed-block.2c6787e1.js +52 -0
  27. package/packages/_vue2/dist/get-processed-block.deb6b33a.cjs +1 -0
  28. package/packages/_vue2/dist/index.051a3d7b.cjs +32 -0
  29. package/packages/_vue2/dist/{index.dcd9672f.js → index.8352d880.js} +484 -517
  30. package/packages/_vue2/dist/inlined-script.874c7b5a.cjs +1 -0
  31. package/packages/_vue2/dist/{inlined-script.5b4b5fc3.js → inlined-script.b4595308.js} +1 -1
  32. package/packages/_vue2/dist/{inlined-styles.9ddda3d7.cjs → inlined-styles.d8b2af39.cjs} +1 -1
  33. package/packages/_vue2/dist/{inlined-styles.759d26e8.js → inlined-styles.dd4a079a.js} +1 -1
  34. package/packages/_vue2/dist/interactive-element.12db10c4.cjs +1 -0
  35. package/packages/_vue2/dist/interactive-element.e2f7ca88.js +42 -0
  36. package/packages/_vue2/dist/repeated-block.0343c63e.cjs +1 -0
  37. package/packages/_vue2/dist/repeated-block.c74334c2.js +39 -0
  38. package/packages/_vue2/dist/sdk.cjs +1 -1
  39. package/packages/_vue2/dist/sdk.js +11 -11
  40. package/packages/_vue2/dist/src/blocks/button/button.vue.d.ts +9 -18
  41. package/packages/_vue2/dist/src/blocks/button/component-info.d.ts +1 -1
  42. package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +7 -6
  43. package/packages/_vue2/dist/src/blocks/columns/component-info.d.ts +1 -1
  44. package/packages/_vue2/dist/src/blocks/custom-code/component-info.d.ts +1 -1
  45. package/packages/_vue2/dist/src/blocks/embed/component-info.d.ts +1 -1
  46. package/packages/_vue2/dist/src/blocks/embed/embed.vue.d.ts +1 -1
  47. package/packages/_vue2/dist/src/blocks/fragment/component-info.d.ts +1 -1
  48. package/packages/_vue2/dist/src/blocks/helpers.d.ts +13 -0
  49. package/packages/_vue2/dist/src/blocks/image/component-info.d.ts +1 -1
  50. package/packages/_vue2/dist/src/blocks/image/image.vue.d.ts +6 -6
  51. package/packages/_vue2/dist/src/blocks/img/component-info.d.ts +1 -1
  52. package/packages/_vue2/dist/src/blocks/img/img.vue.d.ts +27 -6
  53. package/packages/_vue2/dist/src/blocks/section/component-info.d.ts +1 -1
  54. package/packages/_vue2/dist/src/blocks/section/section.vue.d.ts +9 -6
  55. package/packages/_vue2/dist/src/blocks/symbol/component-info.d.ts +1 -1
  56. package/packages/_vue2/dist/src/blocks/symbol/symbol.helpers.d.ts +14 -0
  57. package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +11 -7
  58. package/packages/_vue2/dist/src/blocks/text/component-info.d.ts +1 -1
  59. package/packages/_vue2/dist/src/blocks/video/component-info.d.ts +1 -1
  60. package/packages/_vue2/dist/src/blocks/video/video.vue.d.ts +7 -3
  61. package/packages/_vue2/dist/src/components/block/block.helpers.d.ts +13 -0
  62. package/packages/{_vue3/dist/src/components/render-block/render-block.vue.d.ts → _vue2/dist/src/components/block/block.vue.d.ts} +3 -2
  63. package/packages/_vue2/dist/src/components/{render-block → block/components}/block-styles.vue.d.ts +4 -4
  64. package/packages/_vue2/dist/src/components/block/components/block-wrapper.vue.d.ts +29 -0
  65. package/packages/_vue2/dist/src/components/block/components/component-ref/component-ref.helpers.d.ts +30 -0
  66. package/packages/_vue2/dist/src/components/block/components/component-ref/component-ref.vue.d.ts +2 -0
  67. package/packages/_vue2/dist/src/components/block/components/interactive-element.vue.d.ts +30 -0
  68. package/packages/_vue2/dist/src/components/block/components/repeated-block.vue.d.ts +16 -0
  69. package/packages/_vue2/dist/src/components/{render-blocks.vue.d.ts → blocks/blocks-wrapper.vue.d.ts} +6 -6
  70. package/packages/_vue2/dist/src/components/blocks/blocks.vue.d.ts +29 -0
  71. package/packages/_vue2/dist/src/components/{render-content/render-content.vue.d.ts → content/components/enable-editor.vue.d.ts} +12 -34
  72. package/packages/{_vue3/dist/src/components/render-content/components/render-styles.helpers.d.ts → _vue2/dist/src/components/content/components/styles.helpers.d.ts} +1 -1
  73. package/packages/_vue2/dist/src/components/{render-content/components/render-styles.vue.d.ts → content/components/styles.vue.d.ts} +1 -1
  74. package/packages/_vue2/dist/src/components/content/content.helpers.d.ts +7 -0
  75. package/packages/{_vue3/dist/src/components/render-content/render-content.types.d.ts → _vue2/dist/src/components/content/content.types.d.ts} +4 -4
  76. package/packages/_vue2/dist/src/components/content/content.vue.d.ts +26 -0
  77. package/packages/_vue2/dist/src/components/{render-content-variants/render-content-variants.types.d.ts → content-variants/content-variants.types.d.ts} +5 -5
  78. package/packages/_vue2/dist/src/components/{render-content-variants/render-content-variants.vue.d.ts → content-variants/content-variants.vue.d.ts} +9 -8
  79. package/packages/_vue2/dist/src/components/{render-content-variants → content-variants}/helpers.d.ts +4 -4
  80. package/packages/_vue2/dist/src/constants/sdk-version.d.ts +1 -1
  81. package/packages/_vue2/dist/src/constants/target.d.ts +1 -1
  82. package/packages/_vue2/dist/src/context/builder.context.d.ts +1 -1
  83. package/packages/_vue2/dist/src/context/types.d.ts +1 -1
  84. package/packages/_vue2/dist/src/functions/{evaluate.d.ts → evaluate/evaluate.d.ts} +5 -2
  85. package/packages/_vue2/dist/src/functions/evaluate/index.d.ts +1 -0
  86. package/packages/_vue2/dist/src/functions/evaluate/interpreter.d.ts +2 -0
  87. package/packages/_vue2/dist/src/functions/evaluate/non-node-runtime.d.ts +2 -0
  88. package/packages/_vue2/dist/src/functions/evaluate/types.d.ts +10 -0
  89. package/packages/_vue2/dist/src/functions/get-block-actions.d.ts +1 -0
  90. package/packages/_vue2/dist/src/functions/get-block-properties.d.ts +5 -1
  91. package/packages/_vue2/dist/src/functions/get-content/index.d.ts +2 -6
  92. package/packages/_vue2/dist/src/functions/get-processed-block.d.ts +1 -1
  93. package/packages/_vue2/dist/src/functions/get-react-native-block-styles.d.ts +1 -1
  94. package/packages/_vue2/dist/src/functions/is-non-node-server.d.ts +4 -0
  95. package/packages/_vue2/dist/src/functions/register-component.d.ts +2 -1
  96. package/packages/_vue2/dist/src/helpers/ab-tests.d.ts +2 -2
  97. package/packages/_vue2/dist/src/helpers/cookie.d.ts +2 -2
  98. package/packages/_vue2/dist/src/helpers/css.d.ts +1 -1
  99. package/packages/_vue2/dist/src/helpers/localStorage.d.ts +2 -2
  100. package/packages/_vue2/dist/src/helpers/preview-lru-cache/get.d.ts +1 -0
  101. package/packages/_vue2/dist/src/helpers/preview-lru-cache/helpers.d.ts +1 -0
  102. package/packages/_vue2/dist/src/helpers/preview-lru-cache/init.d.ts +6 -0
  103. package/packages/_vue2/dist/src/helpers/preview-lru-cache/set.d.ts +7 -0
  104. package/packages/_vue2/dist/src/helpers/preview-lru-cache/types.d.ts +12 -0
  105. package/packages/_vue2/dist/src/helpers/sessionId.d.ts +2 -2
  106. package/packages/_vue2/dist/src/helpers/visitorId.d.ts +1 -1
  107. package/packages/_vue2/dist/src/index-helpers/blocks-exports.d.ts +2 -2
  108. package/packages/_vue2/dist/src/index.d.ts +2 -2
  109. package/packages/_vue2/dist/src/types/builder-props.d.ts +9 -0
  110. package/packages/_vue2/dist/src/types/components.d.ts +8 -2
  111. package/packages/_vue2/dist/src/types/enforced-partials.d.ts +1 -1
  112. package/packages/_vue2/dist/src/types/targets.d.ts +1 -3
  113. package/packages/_vue2/dist/src/types/typescript.d.ts +3 -0
  114. package/packages/_vue2/dist/style.css +1 -1
  115. package/packages/_vue2/dist/{render-styles.b41f1309.js → styles.367c17da.js} +7 -5
  116. package/packages/_vue2/dist/{render-styles.ba0e223a.cjs → styles.716893e3.cjs} +4 -4
  117. package/packages/_vue3/dist/block-wrapper.0590efed.js +54 -0
  118. package/packages/_vue3/dist/block-wrapper.caa27b4d.cjs +1 -0
  119. package/packages/_vue3/dist/component-ref.7c88b254.cjs +1 -0
  120. package/packages/_vue3/dist/component-ref.9039745a.js +111 -0
  121. package/packages/_vue3/dist/get-block-actions.a8cbb712.cjs +1 -0
  122. package/packages/_vue3/dist/get-block-actions.cc5999ea.js +79 -0
  123. package/packages/_vue3/dist/index.52e5e57e.js +8079 -0
  124. package/packages/_vue3/dist/index.a789f147.cjs +99 -0
  125. package/packages/_vue3/dist/repeated-block.1eba0fc4.js +33 -0
  126. package/packages/_vue3/dist/repeated-block.e0f9db51.cjs +1 -0
  127. package/packages/_vue3/dist/sdk.cjs +1 -72
  128. package/packages/_vue3/dist/sdk.js +22 -3275
  129. package/packages/_vue3/dist/src/blocks/button/button.vue.d.ts +10 -6
  130. package/packages/_vue3/dist/src/blocks/button/component-info.d.ts +1 -1
  131. package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +18 -8
  132. package/packages/_vue3/dist/src/blocks/columns/component-info.d.ts +1 -1
  133. package/packages/_vue3/dist/src/blocks/custom-code/component-info.d.ts +1 -1
  134. package/packages/_vue3/dist/src/blocks/custom-code/custom-code.vue.d.ts +3 -3
  135. package/packages/_vue3/dist/src/blocks/embed/component-info.d.ts +1 -1
  136. package/packages/_vue3/dist/src/blocks/fragment/component-info.d.ts +1 -1
  137. package/packages/_vue3/dist/src/blocks/helpers.d.ts +13 -0
  138. package/packages/_vue3/dist/src/blocks/image/component-info.d.ts +1 -1
  139. package/packages/_vue3/dist/src/blocks/image/image.vue.d.ts +6 -6
  140. package/packages/_vue3/dist/src/blocks/img/component-info.d.ts +1 -1
  141. package/packages/_vue3/dist/src/blocks/img/img.vue.d.ts +9 -7
  142. package/packages/_vue3/dist/src/blocks/section/component-info.d.ts +1 -1
  143. package/packages/_vue3/dist/src/blocks/section/section.vue.d.ts +9 -6
  144. package/packages/_vue3/dist/src/blocks/symbol/component-info.d.ts +1 -1
  145. package/packages/_vue3/dist/src/blocks/symbol/symbol.helpers.d.ts +14 -0
  146. package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +20 -7
  147. package/packages/_vue3/dist/src/blocks/text/component-info.d.ts +1 -1
  148. package/packages/_vue3/dist/src/blocks/video/component-info.d.ts +1 -1
  149. package/packages/_vue3/dist/src/blocks/video/video.vue.d.ts +7 -3
  150. package/packages/_vue3/dist/src/components/block/block.helpers.d.ts +13 -0
  151. package/packages/{_vue2/dist/src/components/render-block/render-block.vue.d.ts → _vue3/dist/src/components/block/block.vue.d.ts} +3 -2
  152. package/packages/_vue3/dist/src/components/{render-block → block/components}/block-styles.vue.d.ts +4 -4
  153. package/packages/_vue3/dist/src/components/block/components/block-wrapper.vue.d.ts +29 -0
  154. package/packages/_vue3/dist/src/components/block/components/component-ref/component-ref.helpers.d.ts +30 -0
  155. package/packages/_vue3/dist/src/components/block/components/component-ref/component-ref.vue.d.ts +2 -0
  156. package/packages/_vue3/dist/src/components/block/components/interactive-element.vue.d.ts +30 -0
  157. package/packages/_vue3/dist/src/components/{render-block/render-repeated-block.vue.d.ts → block/components/repeated-block.vue.d.ts} +3 -0
  158. package/packages/_vue3/dist/src/components/{render-blocks.vue.d.ts → blocks/blocks-wrapper.vue.d.ts} +6 -6
  159. package/packages/_vue3/dist/src/components/blocks/blocks.vue.d.ts +29 -0
  160. package/packages/_vue3/dist/src/components/{render-content/render-content.vue.d.ts → content/components/enable-editor.vue.d.ts} +18 -49
  161. package/packages/{_vue2/dist/src/components/render-content/components/render-styles.helpers.d.ts → _vue3/dist/src/components/content/components/styles.helpers.d.ts} +1 -1
  162. package/packages/_vue3/dist/src/components/content/content.helpers.d.ts +7 -0
  163. package/packages/{_vue2/dist/src/components/render-content/render-content.types.d.ts → _vue3/dist/src/components/content/content.types.d.ts} +4 -4
  164. package/packages/_vue3/dist/src/components/content/content.vue.d.ts +69 -0
  165. package/packages/_vue3/dist/src/components/{render-content-variants/render-content-variants.types.d.ts → content-variants/content-variants.types.d.ts} +5 -5
  166. package/packages/_vue3/dist/src/components/{render-content-variants/render-content-variants.vue.d.ts → content-variants/content-variants.vue.d.ts} +21 -20
  167. package/packages/_vue3/dist/src/components/{render-content-variants → content-variants}/helpers.d.ts +7 -7
  168. package/packages/_vue3/dist/src/constants/sdk-version.d.ts +1 -1
  169. package/packages/_vue3/dist/src/constants/target.d.ts +1 -1
  170. package/packages/_vue3/dist/src/context/builder.context.d.ts +1 -1
  171. package/packages/_vue3/dist/src/context/types.d.ts +1 -1
  172. package/packages/_vue3/dist/src/functions/{evaluate.d.ts → evaluate/evaluate.d.ts} +5 -2
  173. package/packages/_vue3/dist/src/functions/evaluate/index.d.ts +1 -0
  174. package/packages/_vue3/dist/src/functions/evaluate/interpreter.d.ts +2 -0
  175. package/packages/_vue3/dist/src/functions/evaluate/non-node-runtime.d.ts +2 -0
  176. package/packages/_vue3/dist/src/functions/evaluate/types.d.ts +10 -0
  177. package/packages/_vue3/dist/src/functions/get-block-actions.d.ts +1 -0
  178. package/packages/_vue3/dist/src/functions/get-block-properties.d.ts +5 -1
  179. package/packages/_vue3/dist/src/functions/get-content/index.d.ts +2 -6
  180. package/packages/_vue3/dist/src/functions/get-processed-block.d.ts +1 -1
  181. package/packages/_vue3/dist/src/functions/get-react-native-block-styles.d.ts +1 -1
  182. package/packages/_vue3/dist/src/functions/is-non-node-server.d.ts +4 -0
  183. package/packages/_vue3/dist/src/functions/register-component.d.ts +2 -1
  184. package/packages/_vue3/dist/src/helpers/ab-tests.d.ts +2 -2
  185. package/packages/_vue3/dist/src/helpers/cookie.d.ts +2 -2
  186. package/packages/_vue3/dist/src/helpers/css.d.ts +1 -1
  187. package/packages/_vue3/dist/src/helpers/localStorage.d.ts +2 -2
  188. package/packages/_vue3/dist/src/helpers/preview-lru-cache/get.d.ts +1 -0
  189. package/packages/_vue3/dist/src/helpers/preview-lru-cache/helpers.d.ts +1 -0
  190. package/packages/_vue3/dist/src/helpers/preview-lru-cache/init.d.ts +6 -0
  191. package/packages/_vue3/dist/src/helpers/preview-lru-cache/set.d.ts +7 -0
  192. package/packages/_vue3/dist/src/helpers/preview-lru-cache/types.d.ts +12 -0
  193. package/packages/_vue3/dist/src/helpers/sessionId.d.ts +2 -2
  194. package/packages/_vue3/dist/src/helpers/visitorId.d.ts +1 -1
  195. package/packages/_vue3/dist/src/index-helpers/blocks-exports.d.ts +2 -2
  196. package/packages/_vue3/dist/src/index.d.ts +2 -2
  197. package/packages/_vue3/dist/src/types/builder-props.d.ts +9 -0
  198. package/packages/_vue3/dist/src/types/components.d.ts +8 -2
  199. package/packages/_vue3/dist/src/types/enforced-partials.d.ts +1 -1
  200. package/packages/_vue3/dist/src/types/targets.d.ts +1 -3
  201. package/packages/_vue3/dist/src/types/typescript.d.ts +3 -0
  202. package/packages/_vue3/dist/style.css +1 -1
  203. package/packages/_vue2/dist/block-styles.503c2141.cjs +0 -1
  204. package/packages/_vue2/dist/block-styles.76e698a7.js +0 -72
  205. package/packages/_vue2/dist/css.1601c108.js +0 -75
  206. package/packages/_vue2/dist/css.6d92c2ca.cjs +0 -6
  207. package/packages/_vue2/dist/evaluate.5365c739.js +0 -63
  208. package/packages/_vue2/dist/evaluate.97a0f474.cjs +0 -4
  209. package/packages/_vue2/dist/index.4de025de.cjs +0 -32
  210. package/packages/_vue2/dist/inlined-script.6a6ca760.cjs +0 -1
  211. package/packages/_vue2/dist/render-block.844495c0.js +0 -263
  212. package/packages/_vue2/dist/render-block.c0841b5d.cjs +0 -3
  213. package/packages/_vue2/dist/render-component.a3770d92.cjs +0 -1
  214. package/packages/_vue2/dist/render-component.a57a8b32.js +0 -38
  215. package/packages/_vue2/dist/render-content.19fe4991.cjs +0 -1
  216. package/packages/_vue2/dist/render-content.8d297efd.js +0 -1359
  217. package/packages/_vue2/dist/render-repeated-block.be86aae1.cjs +0 -1
  218. package/packages/_vue2/dist/render-repeated-block.f51da3f5.js +0 -38
  219. package/packages/_vue2/dist/src/blocks/util.d.ts +0 -4
  220. package/packages/_vue2/dist/src/components/render-block/render-block.helpers.d.ts +0 -12
  221. package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +0 -16
  222. package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +0 -13
  223. package/packages/_vue2/dist/src/components/render-content/render-content.helpers.d.ts +0 -7
  224. package/packages/_vue3/dist/src/blocks/util.d.ts +0 -4
  225. package/packages/_vue3/dist/src/components/render-block/render-block.helpers.d.ts +0 -12
  226. package/packages/_vue3/dist/src/components/render-block/render-component.vue.d.ts +0 -16
  227. package/packages/_vue3/dist/src/components/render-content/render-content.helpers.d.ts +0 -7
  228. /package/packages/_vue2/dist/src/components/{render-block → block}/types.d.ts +0 -0
  229. /package/packages/_vue2/dist/src/components/{render-content → content}/wrap-component-ref.d.ts +0 -0
  230. /package/packages/_vue3/dist/src/components/{render-block → block}/types.d.ts +0 -0
  231. /package/packages/_vue3/dist/src/components/{render-content/components/render-styles.vue.d.ts → content/components/styles.vue.d.ts} +0 -0
  232. /package/packages/_vue3/dist/src/components/{render-content → content}/wrap-component-ref.d.ts +0 -0
@@ -1,46 +1,44 @@
1
- import { defineComponent as b } from "vue";
2
- const et = b({
1
+ import { defineComponent as g } from "vue";
2
+ function A(e = {}, t, n) {
3
+ const o = {};
4
+ for (const r in e) {
5
+ if (!e[r] || n && !r.startsWith(t))
6
+ continue;
7
+ const s = n ? r.replace(t, "") : r;
8
+ o[s] = e[r];
9
+ }
10
+ return o;
11
+ }
12
+ const tt = g({
3
13
  name: "builder-button",
4
14
  props: ["attributes", "text", "link", "openLinkInNewTab"],
15
+ data() {
16
+ return { filterAttrs: A };
17
+ },
5
18
  methods: {
6
- filterAttrs: function(t = {}, n) {
7
- const r = "v-on:";
8
- return Object.keys(t).filter((o) => {
9
- if (!t[o])
10
- return !1;
11
- const s = o.startsWith(r);
12
- return n ? s : !s;
13
- }).reduce(
14
- (o, s) => ({
15
- ...o,
16
- [s.replace(r, "")]: t[s]
17
- }),
18
- {}
19
- );
20
- },
21
19
  _classStringToObject(e) {
22
20
  const t = {};
23
21
  if (typeof e != "string")
24
22
  return t;
25
23
  const n = e.trim().split(/\s+/);
26
- for (const r of n)
27
- t[r] = !0;
24
+ for (const o of n)
25
+ t[o] = !0;
28
26
  return t;
29
27
  }
30
28
  }
31
29
  });
32
- function g(e, t, n, r, o, s, i, u) {
30
+ function b(e, t, n, o, r, s, i, u) {
33
31
  var a = typeof e == "function" ? e.options : e;
34
- t && (a.render = t, a.staticRenderFns = n, a._compiled = !0), r && (a.functional = !0), s && (a._scopeId = "data-v-" + s);
32
+ t && (a.render = t, a.staticRenderFns = n, a._compiled = !0), o && (a.functional = !0), s && (a._scopeId = "data-v-" + s);
35
33
  var d;
36
34
  if (i ? (d = function(c) {
37
- c = c || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !c && typeof __VUE_SSR_CONTEXT__ < "u" && (c = __VUE_SSR_CONTEXT__), o && o.call(this, c), c && c._registeredComponents && c._registeredComponents.add(i);
38
- }, a._ssrRegister = d) : o && (d = u ? function() {
39
- o.call(
35
+ c = c || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !c && typeof __VUE_SSR_CONTEXT__ < "u" && (c = __VUE_SSR_CONTEXT__), r && r.call(this, c), c && c._registeredComponents && c._registeredComponents.add(i);
36
+ }, a._ssrRegister = d) : r && (d = u ? function() {
37
+ r.call(
40
38
  this,
41
39
  (a.functional ? this.parent : this).$root.$options.shadowRoot
42
40
  );
43
- } : o), d)
41
+ } : r), d)
44
42
  if (a.functional) {
45
43
  a._injectStyles = d;
46
44
  var m = a.render;
@@ -56,22 +54,20 @@ function g(e, t, n, r, o, s, i, u) {
56
54
  options: a
57
55
  };
58
56
  }
59
- var nt = function() {
57
+ var et = function() {
60
58
  var t = this, n = t._self._c;
61
- return t._self._setupProxy, t.link ? n("a", t._g(t._b({ attrs: { role: "button", href: t.link, target: t.openLinkInNewTab ? "_blank" : void 0 } }, "a", t.filterAttrs(t.attributes, !1), !1), t.filterAttrs(t.attributes, !0)), [t._v(" " + t._s(t.text) + " ")]) : n("button", t._g(t._b({ class: t._classStringToObject(
62
- t.attributes.class + " button-t9spj7joih"
63
- ) }, "button", t.filterAttrs(t.attributes, !1), !1), t.filterAttrs(t.attributes, !0)), [t._v(" " + t._s(t.text) + " ")]);
64
- }, rt = [], ot = /* @__PURE__ */ g(
59
+ return t._self._setupProxy, t.link ? n("a", t._g(t._b({ attrs: { role: "button", href: t.link, target: t.openLinkInNewTab ? "_blank" : void 0 } }, "a", t.filterAttrs(t.attributes, "v-on:", !1), !1), t.filterAttrs(t.attributes, "v-on:", !0)), [t._v(" " + t._s(t.text) + " ")]) : n("button", t._g(t._b({ class: t._classStringToObject(t.attributes.class + " button-2fnk003dqad"), style: t.attributes.style }, "button", t.filterAttrs(t.attributes, "v-on:", !1), !1), t.filterAttrs(t.attributes, "v-on:", !0)), [t._v(" " + t._s(t.text) + " ")]);
60
+ }, nt = [], ot = /* @__PURE__ */ b(
61
+ tt,
65
62
  et,
66
63
  nt,
67
- rt,
68
64
  !1,
69
65
  null,
70
- "90ea412a",
66
+ "d03c6eb1",
71
67
  null,
72
68
  null
73
69
  );
74
- const Ye = ot.exports, A = (e) => JSON.parse(JSON.stringify(e)), F = {
70
+ const Ye = ot.exports, V = (e) => JSON.parse(JSON.stringify(e)), F = {
75
71
  small: {
76
72
  min: 320,
77
73
  default: 321,
@@ -87,21 +83,24 @@ const Ye = ot.exports, A = (e) => JSON.parse(JSON.stringify(e)), F = {
87
83
  default: 991,
88
84
  max: 1200
89
85
  }
90
- }, Ze = (e, t = F) => `@media (max-width: ${t[e].max}px)`, st = ({ small: e, medium: t }) => {
91
- const n = A(F);
86
+ }, Ze = (e, t = F) => `@media (max-width: ${t[e].max}px)`, rt = ({
87
+ small: e,
88
+ medium: t
89
+ }) => {
90
+ const n = V(F);
92
91
  if (!e || !t)
93
92
  return n;
94
- const r = Math.floor(e / 2);
93
+ const o = Math.floor(e / 2);
95
94
  n.small = {
96
95
  max: e,
97
- min: r,
98
- default: r + 1
96
+ min: o,
97
+ default: o + 1
99
98
  };
100
- const o = n.small.max + 1;
99
+ const r = n.small.max + 1;
101
100
  n.medium = {
102
101
  max: t,
103
- min: o,
104
- default: o + 1
102
+ min: r,
103
+ default: r + 1
105
104
  };
106
105
  const s = n.medium.max + 1;
107
106
  return n.large = {
@@ -109,39 +108,28 @@ const Ye = ot.exports, A = (e) => JSON.parse(JSON.stringify(e)), F = {
109
108
  min: s,
110
109
  default: s + 1
111
110
  }, n;
112
- }, w = "vue2", it = Symbol(), E = {
113
- Builder: {
114
- content: null,
115
- context: {},
116
- localState: void 0,
117
- rootSetState() {
118
- },
119
- rootState: {},
120
- apiKey: null,
121
- apiVersion: void 0,
122
- registeredComponents: {},
123
- inheritedStyles: {}
124
- },
125
- key: it
126
- }, at = () => Promise.resolve().then(() => At).then((e) => e.default).catch((e) => {
111
+ }, w = "vue2", st = () => Promise.resolve().then(() => Rt).then((e) => e.default).catch((e) => {
127
112
  throw console.error(
128
- "Error while attempting to dynamically import component RenderBlocks at ../../components/render-blocks.vue",
113
+ "Error while attempting to dynamically import component Blocks at ../../components/blocks/blocks.vue",
129
114
  e
130
115
  ), e;
131
- }), ct = () => import("./inlined-styles.759d26e8.js").then((e) => e.default).catch((e) => {
116
+ }), it = () => import("./inlined-styles.dd4a079a.js").then((e) => e.default).catch((e) => {
132
117
  throw console.error(
133
118
  "Error while attempting to dynamically import component InlinedStyles at ../../components/inlined-styles.vue",
134
119
  e
135
120
  ), e;
136
- }), lt = b({
121
+ }), at = g({
137
122
  name: "builder-columns",
138
- components: { InlinedStyles: ct, RenderBlocks: at },
123
+ components: { "inlined-styles": it, blocks: st },
139
124
  props: [
125
+ "js",
140
126
  "space",
141
127
  "columns",
142
128
  "stackColumnsAt",
143
129
  "reverseColumnsWhenStacked",
144
- "builderBlock"
130
+ "builderContext",
131
+ "builderBlock",
132
+ "builderComponents"
145
133
  ],
146
134
  data() {
147
135
  return {
@@ -152,9 +140,6 @@ const Ye = ot.exports, A = (e) => JSON.parse(JSON.stringify(e)), F = {
152
140
  TARGET: w
153
141
  };
154
142
  },
155
- inject: {
156
- builderContext: E.key
157
- },
158
143
  computed: {
159
144
  columnsCssVars() {
160
145
  return {
@@ -215,32 +200,32 @@ const Ye = ot.exports, A = (e) => JSON.parse(JSON.stringify(e)), F = {
215
200
  return this.stackAt === "never" ? t : e;
216
201
  },
217
202
  columnCssVars(e) {
218
- const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), r = `${t}px`, o = "100%", s = 0;
203
+ const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, r = "100%", s = 0;
219
204
  return {
220
205
  width: n,
221
- "margin-left": r,
206
+ ["margin-left"]: o,
222
207
  "--column-width-mobile": this.getMobileStyle({
223
- stackedStyle: o,
208
+ stackedStyle: r,
224
209
  desktopStyle: n
225
210
  }),
226
211
  "--column-margin-left-mobile": this.getMobileStyle({
227
212
  stackedStyle: s,
228
- desktopStyle: r
213
+ desktopStyle: o
229
214
  }),
230
215
  "--column-width-tablet": this.getTabletStyle({
231
- stackedStyle: o,
216
+ stackedStyle: r,
232
217
  desktopStyle: n
233
218
  }),
234
219
  "--column-margin-left-tablet": this.getTabletStyle({
235
220
  stackedStyle: s,
236
- desktopStyle: r
221
+ desktopStyle: o
237
222
  })
238
223
  };
239
224
  },
240
225
  getWidthForBreakpointSize(e) {
241
- var n, r;
242
- return st(
243
- ((r = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : r.breakpoints) || {}
226
+ var n, o;
227
+ return rt(
228
+ ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
244
229
  )[e].max;
245
230
  },
246
231
  _classStringToObject(e) {
@@ -248,86 +233,80 @@ const Ye = ot.exports, A = (e) => JSON.parse(JSON.stringify(e)), F = {
248
233
  if (typeof e != "string")
249
234
  return t;
250
235
  const n = e.trim().split(/\s+/);
251
- for (const r of n)
252
- t[r] = !0;
236
+ for (const o of n)
237
+ t[o] = !0;
253
238
  return t;
254
239
  }
255
240
  }
256
241
  });
257
- var ut = function() {
242
+ var ct = function() {
258
243
  var t = this, n = t._self._c;
259
- return t._self._setupProxy, n("div", { class: t._classStringToObject(
260
- `builder-columns ${t.builderBlock.id}-breakpoints div-2brhoa1k8gd`
261
- ), style: t.columnsCssVars, attrs: { dataSet: {
262
- "builder-block-name": "builder-columns"
263
- } } }, [t.TARGET !== "reactNative" ? [n("inlined-styles", { attrs: { styles: t.columnsStyles } })] : t._e(), t._l(t.columns, function(r, o) {
264
- return n("div", { key: o, staticClass: "builder-column div-2brhoa1k8gd-2", style: t.columnCssVars(o), attrs: { dataSet: {
265
- "builder-block-name": "builder-column"
266
- } } }, [n("render-blocks", { attrs: { blocks: r.blocks, path: `component.options.columns.${o}.blocks`, parent: t.builderBlock.id, styleProp: {
244
+ return t._self._setupProxy, n("div", t._b({ class: t._classStringToObject(
245
+ `builder-columns ${t.builderBlock.id}-breakpoints div-t9spj7joih`
246
+ ), style: t.columnsCssVars }, "div", {}, !1), [t.TARGET !== "reactNative" ? [n("inlined-styles", { attrs: { styles: t.columnsStyles } })] : t._e(), t._l(t.columns, function(o, r) {
247
+ return n("div", t._b({ key: r, staticClass: "builder-column div-t9spj7joih-2", style: t.columnCssVars(r) }, "div", {}, !1), [n("blocks", { attrs: { blocks: o.blocks, path: `component.options.columns.${r}.blocks`, parent: t.builderBlock.id, styleProp: {
267
248
  flexGrow: "1"
268
- } } })], 1);
249
+ }, context: t.builderContext, registeredComponents: t.builderComponents } })], 1);
269
250
  })], 2);
270
- }, dt = [], ft = /* @__PURE__ */ g(
251
+ }, lt = [], ut = /* @__PURE__ */ b(
252
+ at,
253
+ ct,
271
254
  lt,
272
- ut,
273
- dt,
274
255
  !1,
275
256
  null,
276
- "7bfe490c",
257
+ "b1c2e5e0",
277
258
  null,
278
259
  null
279
260
  );
280
- const tn = ft.exports, mt = b({
261
+ const tn = ut.exports, dt = g({
281
262
  name: "builder-fragment-component",
282
263
  props: []
283
264
  });
284
- var pt = function() {
265
+ var ft = function() {
285
266
  var t = this, n = t._self._c;
286
267
  return t._self._setupProxy, n("span", [t._t("default")], 2);
287
- }, ht = [], _t = /* @__PURE__ */ g(
268
+ }, mt = [], pt = /* @__PURE__ */ b(
269
+ dt,
270
+ ft,
288
271
  mt,
289
- pt,
290
- ht,
291
272
  !1,
292
273
  null,
293
274
  null,
294
275
  null,
295
276
  null
296
277
  );
297
- const en = _t.exports;
278
+ const en = pt.exports;
298
279
  function P(e) {
299
280
  return e.replace(/http(s)?:/, "");
300
281
  }
301
- function bt(e = "", t, n) {
302
- const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
303
- return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
282
+ function ht(e = "", t, n) {
283
+ const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
284
+ return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
304
285
  }
305
- function gt(e, t) {
286
+ function _t(e, t) {
306
287
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
307
288
  return e;
308
289
  if (t === "master")
309
290
  return P(e);
310
- const n = e.match(
311
- /(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i
312
- );
291
+ const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
313
292
  if (n) {
314
- const r = e.split(n[0]), o = n[3], s = t.match("x") ? t : `${t}x`;
315
- return P(`${r[0]}_${s}${o}`);
293
+ const o = e.split(n[0]), r = n[3], s = t.match("x") ? t : `${t}x`;
294
+ return P(`${o[0]}_${s}${r}`);
316
295
  }
317
296
  return null;
318
297
  }
319
- function R(e) {
298
+ function T(e) {
320
299
  if (!e)
321
300
  return e;
322
301
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
323
302
  if (e.match(/builder\.io/)) {
324
303
  let n = e;
325
- const r = Number(e.split("?width=")[1]);
326
- return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${bt(e, "width", o)} ${o}w`).concat([n]).join(", ");
304
+ const o = Number(e.split("?width=")[1]);
305
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${ht(e, "width", r)} ${r}w`).concat([n]).join(", ");
327
306
  }
328
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [gt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
307
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [_t(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
329
308
  }
330
- const yt = b({
309
+ const gt = g({
331
310
  name: "builder-image",
332
311
  props: [
333
312
  "image",
@@ -351,10 +330,10 @@ const yt = b({
351
330
  return this.srcset;
352
331
  if (this.srcset && ((n = this.image) == null ? void 0 : n.includes("builder.io/api/v1/image"))) {
353
332
  if (!this.srcset.includes(this.image.split("?")[0]))
354
- return console.debug("Removed given srcset"), R(t);
333
+ return console.debug("Removed given srcset"), T(t);
355
334
  } else if (this.image && !this.srcset)
356
- return R(t);
357
- return R(t);
335
+ return T(t);
336
+ return T(t);
358
337
  },
359
338
  webpSrcSet() {
360
339
  var e;
@@ -377,155 +356,93 @@ const yt = b({
377
356
  if (typeof e != "string")
378
357
  return t;
379
358
  const n = e.trim().split(/\s+/);
380
- for (const r of n)
381
- t[r] = !0;
359
+ for (const o of n)
360
+ t[o] = !0;
382
361
  return t;
383
362
  }
384
363
  }
385
364
  });
386
- var vt = function() {
387
- var r, o, s, i;
365
+ var bt = function() {
366
+ var o, r, s, i;
388
367
  var t = this, n = t._self._c;
389
368
  return t._self._setupProxy, n("div", [n("picture", [t.webpSrcSet ? [n("source", { attrs: { type: "image/webp", srcset: t.webpSrcSet } })] : t._e(), n("img", { class: t._classStringToObject(
390
- "builder-image" + (t.className ? " " + t.className : "") + " img-29wpyomtntv"
369
+ "builder-image" + (t.className ? " " + t.className : "") + " img-1pl23ac79ld"
391
370
  ), style: {
392
371
  objectPosition: t.backgroundPosition || "center",
393
372
  objectFit: t.backgroundSize || "cover",
394
373
  ...t.aspectRatioCss
395
- }, attrs: { loading: "lazy", alt: t.altText, role: t.altText ? "presentation" : void 0, src: t.image, srcset: t.srcSetToUse, sizes: t.sizes } })], 2), t.aspectRatio && !(((o = (r = t.builderBlock) == null ? void 0 : r.children) == null ? void 0 : o.length) && t.fitContent) ? [n("div", { staticClass: "builder-image-sizer div-29wpyomtntv", style: {
374
+ }, attrs: { loading: "lazy", alt: t.altText, role: t.altText ? "presentation" : void 0, src: t.image, srcset: t.srcSetToUse, sizes: t.sizes } })], 2), t.aspectRatio && !(((r = (o = t.builderBlock) == null ? void 0 : o.children) == null ? void 0 : r.length) && t.fitContent) ? [n("div", { staticClass: "builder-image-sizer div-1pl23ac79ld", style: {
396
375
  paddingTop: t.aspectRatio * 100 + "%"
397
- } })] : t._e(), ((i = (s = t.builderBlock) == null ? void 0 : s.children) == null ? void 0 : i.length) && t.fitContent ? [t._t("default")] : t._e(), !t.fitContent && t.children ? [n("div", { staticClass: "div-29wpyomtntv-2" }, [t._t("default")], 2)] : t._e()], 2);
398
- }, St = [], kt = /* @__PURE__ */ g(
376
+ } })] : t._e(), ((i = (s = t.builderBlock) == null ? void 0 : s.children) == null ? void 0 : i.length) && t.fitContent ? [t._t("default")] : t._e(), !t.fitContent && t.$slots.default ? [n("div", { staticClass: "div-1pl23ac79ld-2" }, [t._t("default")], 2)] : t._e()], 2);
377
+ }, yt = [], vt = /* @__PURE__ */ b(
378
+ gt,
379
+ bt,
399
380
  yt,
400
- vt,
401
- St,
402
381
  !1,
403
382
  null,
404
- "28890a77",
383
+ "29cdebee",
405
384
  null,
406
385
  null
407
386
  );
408
- const nn = kt.exports;
409
- function y() {
410
- return typeof window < "u" && typeof document < "u";
411
- }
412
- function xt() {
413
- return y() && window.self !== window.top;
414
- }
415
- function T() {
416
- return xt() && window.location.search.indexOf("builder.frameEditing=") !== -1;
417
- }
418
- const wt = () => import("./block-styles.76e698a7.js").then((e) => e.default).catch((e) => {
387
+ const nn = vt.exports, St = () => import("./block-styles.982735c2.js").then((e) => e.default).catch((e) => {
419
388
  throw console.error(
420
- "Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
389
+ "Error while attempting to dynamically import component BlockStyles at ../block/components/block-styles.vue",
421
390
  e
422
391
  ), e;
423
- }), Ct = () => import("./render-block.844495c0.js").then((e) => e.default).catch((e) => {
392
+ }), kt = () => import("./block.e9484073.js").then((e) => e.default).catch((e) => {
424
393
  throw console.error(
425
- "Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
394
+ "Error while attempting to dynamically import component Block at ../block/block.vue",
426
395
  e
427
396
  ), e;
428
- }), $t = b({
429
- name: "render-blocks",
430
- components: { RenderBlock: Ct, BlockStyles: wt },
431
- props: ["blocks", "parent", "path", "styleProp"],
432
- inject: {
433
- builderContext: E.key
434
- },
435
- computed: {
436
- className() {
437
- var e;
438
- return "builder-blocks" + ((e = this.blocks) != null && e.length ? "" : " no-blocks");
439
- }
397
+ }), xt = () => import("./blocks-wrapper.4afaccc5.js").then((e) => e.default).catch((e) => {
398
+ throw console.error(
399
+ "Error while attempting to dynamically import component BlocksWrapper at ./blocks-wrapper.vue",
400
+ e
401
+ ), e;
402
+ }), wt = g({
403
+ name: "builder-blocks",
404
+ components: {
405
+ "blocks-wrapper": xt,
406
+ block: kt,
407
+ "block-styles": St
440
408
  },
441
- methods: {
442
- onClick() {
443
- var e, t;
444
- T() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
445
- {
446
- type: "builder.clickEmptyBlocks",
447
- data: {
448
- parentElementId: this.parent,
449
- dataPath: this.path
450
- }
451
- },
452
- "*"
453
- ));
454
- },
455
- onMouseEnter() {
456
- var e, t;
457
- T() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
458
- {
459
- type: "builder.hoverEmptyBlocks",
460
- data: {
461
- parentElementId: this.parent,
462
- dataPath: this.path
463
- }
464
- },
465
- "*"
466
- ));
467
- },
468
- _classStringToObject(e) {
469
- const t = {};
470
- if (typeof e != "string")
471
- return t;
472
- const n = e.trim().split(/\s+/);
473
- for (const r of n)
474
- t[r] = !0;
475
- return t;
476
- }
477
- }
409
+ props: [
410
+ "blocks",
411
+ "parent",
412
+ "path",
413
+ "styleProp",
414
+ "context",
415
+ "registeredComponents"
416
+ ]
478
417
  });
479
- var Tt = function() {
418
+ var Ct = function() {
480
419
  var t = this, n = t._self._c;
481
- return t._self._setupProxy, n("div", { class: t._classStringToObject(t.className + " div-2fnk003dqad"), style: t.styleProp, attrs: { "builder-path": t.path, "builder-parent-id": t.parent, dataSet: {
482
- class: t.className
483
- } }, on: { click: function(r) {
484
- return t.onClick();
485
- }, mouseenter: function(r) {
486
- return t.onMouseEnter();
487
- }, keypress: function(r) {
488
- return t.onClick();
489
- } } }, [t.blocks ? t._l(t.blocks, function(r, o) {
490
- return n("render-block", { key: "render-block-" + r.id, attrs: { block: r, context: t.builderContext } });
491
- }) : t._e(), t.blocks ? t._l(t.blocks, function(r, o) {
492
- return n("block-styles", { key: "block-style-" + r.id, attrs: { block: r, context: t.builderContext } });
420
+ return t._self._setupProxy, n("blocks-wrapper", { attrs: { blocks: t.blocks, parent: t.parent, path: t.path, styleProp: t.styleProp } }, [t.blocks ? t._l(t.blocks, function(o, r) {
421
+ return n("block", { key: "render-block-" + o.id, attrs: { block: o, context: t.context, registeredComponents: t.registeredComponents } });
422
+ }) : t._e(), t.blocks ? t._l(t.blocks, function(o, r) {
423
+ return n("block-styles", { key: "block-style-" + o.id, attrs: { block: o, context: t.context } });
493
424
  }) : t._e()], 2);
494
- }, Rt = [], It = /* @__PURE__ */ g(
425
+ }, $t = [], Tt = /* @__PURE__ */ b(
426
+ wt,
427
+ Ct,
495
428
  $t,
496
- Tt,
497
- Rt,
498
429
  !1,
499
430
  null,
500
- "b740fd05",
431
+ null,
501
432
  null,
502
433
  null
503
434
  );
504
- const Vt = It.exports, At = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
435
+ const It = Tt.exports, Rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
505
436
  __proto__: null,
506
- default: Vt
507
- }, Symbol.toStringTag, { value: "Module" })), Et = b({
437
+ default: It
438
+ }, Symbol.toStringTag, { value: "Module" })), At = g({
508
439
  name: "builder-section-component",
509
- props: ["maxWidth", "attributes"],
510
- methods: {
511
- filterAttrs: function(t = {}, n) {
512
- const r = "v-on:";
513
- return Object.keys(t).filter((o) => {
514
- if (!t[o])
515
- return !1;
516
- const s = o.startsWith(r);
517
- return n ? s : !s;
518
- }).reduce(
519
- (o, s) => ({
520
- ...o,
521
- [s.replace(r, "")]: t[s]
522
- }),
523
- {}
524
- );
525
- }
440
+ props: ["attributes", "maxWidth"],
441
+ data() {
442
+ return { filterAttrs: A };
526
443
  }
527
444
  });
528
- var Ot = function() {
445
+ var Vt = function() {
529
446
  var t = this, n = t._self._c;
530
447
  return t._self._setupProxy, n("section", t._g(t._b({ style: {
531
448
  width: "100%",
@@ -538,87 +455,100 @@ var Ot = function() {
538
455
  alignItems: "stretch",
539
456
  marginLeft: "auto",
540
457
  marginRight: "auto"
541
- } }, "section", t.filterAttrs(t.attributes, !1), !1), t.filterAttrs(t.attributes, !0)), [t._t("default")], 2);
542
- }, Pt = [], jt = /* @__PURE__ */ g(
543
- Et,
458
+ } }, "section", t.filterAttrs(t.attributes, "v-on:", !1), !1), t.filterAttrs(t.attributes, "v-on:", !0)), [t._t("default")], 2);
459
+ }, Ot = [], Et = /* @__PURE__ */ b(
460
+ At,
461
+ Vt,
544
462
  Ot,
545
- Pt,
546
463
  !1,
547
464
  null,
548
465
  null,
549
466
  null,
550
467
  null
551
468
  );
552
- const rn = jt.exports, C = "[Builder.io]: ", v = {
469
+ const on = Et.exports;
470
+ function y() {
471
+ return typeof window < "u" && typeof document < "u";
472
+ }
473
+ const C = "[Builder.io]: ", v = {
553
474
  log: (...e) => console.log(C, ...e),
554
475
  error: (...e) => console.error(C, ...e),
555
476
  warn: (...e) => console.warn(C, ...e),
556
477
  debug: (...e) => console.debug(C, ...e)
557
- }, x = (e) => e != null, Bt = (e) => {
478
+ }, x = (e) => e != null, Pt = (e) => {
558
479
  if (e === "localhost" || e === "127.0.0.1")
559
480
  return e;
560
481
  const t = e.split(".");
561
482
  return t.length > 2 ? t.slice(1).join(".") : e;
562
- }, M = ({
483
+ }, U = ({
563
484
  name: e,
564
485
  canTrack: t
565
486
  }) => {
566
487
  var n;
567
488
  try {
568
- return t ? (n = document.cookie.split("; ").find((r) => r.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
569
- } catch (r) {
570
- v.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
489
+ return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
490
+ } catch (o) {
491
+ v.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
571
492
  return;
572
493
  }
573
- }, U = async (e) => M(e), Nt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(x).join("; "), Ft = [
574
- ["secure", ""],
575
- ["SameSite", "None"]
576
- ], Mt = ({
494
+ }, M = async (e) => U(e), jt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(x).join("; "), Bt = [["secure", ""], ["SameSite", "None"]], Nt = ({
577
495
  name: e,
578
496
  value: t,
579
497
  expires: n
580
498
  }) => {
581
- const o = (y() ? location.protocol === "https:" : !0) ? Ft : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [
582
- [e, t],
583
- ...s,
584
- ["path", "/"],
585
- ["domain", Bt(window.location.hostname)],
586
- ...o
587
- ];
588
- return Nt(i);
499
+ const r = (y() ? location.protocol === "https:" : !0) ? Bt : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", Pt(window.location.hostname)], ...r];
500
+ return jt(i);
589
501
  }, W = async ({
590
502
  name: e,
591
503
  value: t,
592
504
  expires: n,
593
- canTrack: r
505
+ canTrack: o
594
506
  }) => {
595
507
  try {
596
- if (!r)
508
+ if (!o)
597
509
  return;
598
- const o = Mt({ name: e, value: t, expires: n });
599
- document.cookie = o;
600
- } catch (o) {
601
- v.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
510
+ const r = Nt({
511
+ name: e,
512
+ value: t,
513
+ expires: n
514
+ });
515
+ document.cookie = r;
516
+ } catch (r) {
517
+ v.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
602
518
  }
603
- }, Ut = "builder.tests", O = (e) => `${Ut}.${e}`, Wt = ({ contentId: e }) => U({ name: O(e), canTrack: !0 }), Lt = ({ contentId: e }) => M({ name: O(e), canTrack: !0 }), Kt = ({
519
+ }, Ft = "builder.tests", O = (e) => `${Ft}.${e}`, Ut = ({
520
+ contentId: e
521
+ }) => M({
522
+ name: O(e),
523
+ canTrack: !0
524
+ }), Mt = ({
525
+ contentId: e
526
+ }) => U({
527
+ name: O(e),
528
+ canTrack: !0
529
+ }), Wt = ({
604
530
  contentId: e,
605
531
  value: t
606
- }) => W({ name: O(e), value: t, canTrack: !0 }), L = (e) => x(e.id) && x(e.variations) && Object.keys(e.variations).length > 0, zt = ({
532
+ }) => W({
533
+ name: O(e),
534
+ value: t,
535
+ canTrack: !0
536
+ }), L = (e) => x(e.id) && x(e.variations) && Object.keys(e.variations).length > 0, Lt = ({
607
537
  id: e,
608
538
  variations: t
609
539
  }) => {
610
- var o;
540
+ var r;
611
541
  let n = 0;
612
- const r = Math.random();
542
+ const o = Math.random();
613
543
  for (const s in t) {
614
- const i = (o = t[s]) == null ? void 0 : o.testRatio;
615
- if (n += i, r < n)
544
+ const i = (r = t[s]) == null ? void 0 : r.testRatio;
545
+ if (n += i, o < n)
616
546
  return s;
617
547
  }
618
548
  return e;
619
549
  }, K = (e) => {
620
- const t = zt(e);
621
- return Kt({
550
+ const t = Lt(e);
551
+ return Wt({
622
552
  contentId: e.id,
623
553
  value: t
624
554
  }).catch((n) => {
@@ -637,7 +567,7 @@ const rn = jt.exports, C = "[Builder.io]: ", v = {
637
567
  testVariationId: n.id,
638
568
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
639
569
  };
640
- }, Gt = ({
570
+ }, Kt = ({
641
571
  item: e,
642
572
  canTrack: t
643
573
  }) => {
@@ -647,125 +577,135 @@ const rn = jt.exports, C = "[Builder.io]: ", v = {
647
577
  return;
648
578
  if (!L(e))
649
579
  return e;
650
- const n = Lt({
580
+ const n = Mt({
651
581
  contentId: e.id
652
582
  }) || K({
653
583
  variations: e.variations,
654
584
  id: e.id
655
- }), r = z({ item: e, testGroupId: n });
585
+ }), o = z({
586
+ item: e,
587
+ testGroupId: n
588
+ });
656
589
  return {
657
590
  ...e,
658
- ...r
591
+ ...o
659
592
  };
660
- }, Dt = async ({
593
+ }, zt = async ({
661
594
  item: e,
662
595
  canTrack: t
663
596
  }) => {
664
597
  if (!t || !L(e))
665
598
  return e;
666
- const r = await Wt({
599
+ const o = await Ut({
667
600
  contentId: e.id
668
601
  }) || K({
669
602
  variations: e.variations,
670
603
  id: e.id
671
- }), o = z({ item: e, testGroupId: r });
604
+ }), r = z({
605
+ item: e,
606
+ testGroupId: o
607
+ });
672
608
  return {
673
609
  ...e,
674
- ...o
610
+ ...r
675
611
  };
676
612
  }, I = (e) => x(e) ? e : !0;
677
- function Ht() {
613
+ function Gt() {
678
614
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
679
615
  }
680
- function Jt() {
681
- const e = Ht().fetch;
616
+ function Dt() {
617
+ const e = Gt().fetch;
682
618
  if (typeof e > "u")
683
- throw console.warn(
684
- `Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
685
- For more information, read https://github.com/BuilderIO/this-package-uses-fetch`
686
- ), new Error("Builder SDK could not find a global `fetch` function");
619
+ throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
620
+ For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
687
621
  return e;
688
622
  }
689
- const Xt = Jt();
690
- function V(e, t = null, n = ".") {
691
- return Object.keys(e).reduce((r, o) => {
692
- const s = e[o], i = [t, o].filter(Boolean).join(n);
693
- return [
694
- typeof s == "object",
695
- s !== null,
696
- !(Array.isArray(s) && s.length === 0)
697
- ].every(Boolean) ? { ...r, ...V(s, i, n) } : { ...r, [i]: s };
623
+ const Ht = Dt();
624
+ function R(e, t = null, n = ".") {
625
+ return Object.keys(e).reduce((o, r) => {
626
+ const s = e[r], i = [t, r].filter(Boolean).join(n);
627
+ return [typeof s == "object", s !== null, !(Array.isArray(s) && s.length === 0)].every(Boolean) ? {
628
+ ...o,
629
+ ...R(s, i, n)
630
+ } : {
631
+ ...o,
632
+ [i]: s
633
+ };
698
634
  }, {});
699
635
  }
700
- const j = "builder.", qt = "options.", Qt = (e) => {
636
+ const j = "builder.", Jt = "options.", Xt = (e) => {
701
637
  const t = {};
702
- return e.forEach((n, r) => {
703
- t[r] = n;
638
+ return e.forEach((n, o) => {
639
+ t[o] = n;
704
640
  }), t;
705
- }, Yt = (e) => {
641
+ }, qt = (e) => {
706
642
  if (!e)
707
643
  return {};
708
644
  const t = G(e), n = {};
709
- return Object.keys(t).forEach((r) => {
710
- if (r.startsWith(j)) {
711
- const o = r.replace(j, "").replace(qt, "");
712
- n[o] = t[r];
645
+ return Object.keys(t).forEach((o) => {
646
+ if (o.startsWith(j)) {
647
+ const r = o.replace(j, "").replace(Jt, "");
648
+ n[r] = t[o];
713
649
  }
714
650
  }), n;
715
- }, Zt = () => {
651
+ }, Qt = () => {
716
652
  if (!y())
717
653
  return {};
718
654
  const e = new URLSearchParams(window.location.search);
719
- return Yt(e);
720
- }, G = (e) => e instanceof URLSearchParams ? Qt(e) : e, te = "v3", D = (e) => {
655
+ return qt(e);
656
+ }, G = (e) => e instanceof URLSearchParams ? Xt(e) : e, Yt = "v3", E = (e) => {
721
657
  const {
722
658
  limit: t = 30,
723
659
  userAttributes: n,
724
- query: r,
725
- noTraverse: o = !1,
660
+ query: o,
661
+ noTraverse: r = !1,
726
662
  model: s,
727
663
  apiKey: i,
728
664
  includeRefs: u = !0,
729
665
  enrich: a,
730
666
  locale: d,
731
- apiVersion: m = te
667
+ apiVersion: m = Yt
732
668
  } = e;
733
669
  if (!i)
734
670
  throw new Error("Missing API key");
735
671
  if (!["v2", "v3"].includes(m))
736
- throw new Error(
737
- `Invalid apiVersion: expected 'v2' or 'v3', received '${m}'`
738
- );
739
- const p = new URL(
740
- `https://cdn.builder.io/api/${m}/content/${s}?apiKey=${i}&limit=${t}&noTraverse=${o}&includeRefs=${u}${d ? `&locale=${d}` : ""}${a ? `&enrich=${a}` : ""}`
741
- ), c = {
742
- ...Zt(),
672
+ throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${m}'`);
673
+ const p = new URL(`https://cdn.builder.io/api/${m}/content/${s}?apiKey=${i}&limit=${t}&noTraverse=${r}&includeRefs=${u}${d ? `&locale=${d}` : ""}${a ? `&enrich=${a}` : ""}`), c = {
674
+ ...Qt(),
743
675
  ...G(e.options || {})
744
- }, f = V(c);
676
+ }, f = R(c);
745
677
  for (const l in f)
746
678
  p.searchParams.set(l, String(f[l]));
747
- if (n && p.searchParams.set("userAttributes", JSON.stringify(n)), r) {
748
- const l = V({ query: r });
679
+ if (n && p.searchParams.set("userAttributes", JSON.stringify(n)), o) {
680
+ const l = R({
681
+ query: o
682
+ });
749
683
  for (const h in l)
750
684
  p.searchParams.set(h, JSON.stringify(l[h]));
751
685
  }
752
686
  return p;
753
- }, H = (e) => "results" in e;
754
- async function ee(e) {
755
- const t = await oe({ ...e, limit: 1 });
756
- return t && H(t) && t.results[0] || null;
687
+ }, Zt = (e) => "results" in e;
688
+ async function te(e) {
689
+ const t = await oe({
690
+ ...e,
691
+ limit: 1
692
+ });
693
+ return t && t.results[0] || null;
757
694
  }
758
- const ne = async (e) => {
759
- const t = D(e);
760
- return await (await Xt(t.href)).json();
761
- }, re = async (e, t) => {
762
- const n = I(e.canTrack);
763
- if (!n || !(y() || w === "reactNative"))
695
+ const ee = async (e) => {
696
+ const t = E(e);
697
+ return await (await Ht(t.href)).json();
698
+ }, ne = async (e, t, n = E(e)) => {
699
+ const o = I(e.canTrack);
700
+ if (n.search.includes("preview="), !o || !(y() || w === "reactNative"))
764
701
  return t;
765
702
  try {
766
703
  const r = [];
767
- for (const o of t.results)
768
- r.push(await Dt({ item: o, canTrack: n }));
704
+ for (const s of t.results)
705
+ r.push(await zt({
706
+ item: s,
707
+ canTrack: o
708
+ }));
769
709
  t.results = r;
770
710
  } catch (r) {
771
711
  v.error("Could not process A/B tests. ", r);
@@ -774,48 +714,74 @@ const ne = async (e) => {
774
714
  };
775
715
  async function oe(e) {
776
716
  try {
777
- const t = D(e), n = await ne(e);
778
- return H(n) ? re(e, n) : (v.error("Error fetching data. ", { url: t, content: n, options: e }), n);
717
+ const t = E(e), n = await ee(e);
718
+ return Zt(n) ? ne(e, n) : (v.error("Error fetching data. ", {
719
+ url: t,
720
+ content: n,
721
+ options: e
722
+ }), null);
779
723
  } catch (t) {
780
724
  return v.error("Error fetching data. ", t), null;
781
725
  }
782
726
  }
783
- const se = () => Promise.resolve().then(() => Ee).then((e) => e.default).catch((e) => {
727
+ const re = async ({
728
+ builderContextValue: e,
729
+ symbol: t
730
+ }) => {
731
+ if ((t == null ? void 0 : t.model) && (e == null ? void 0 : e.apiKey))
732
+ return te({
733
+ model: t.model,
734
+ apiKey: e.apiKey,
735
+ apiVersion: e.apiVersion,
736
+ ...(t == null ? void 0 : t.entry) && {
737
+ query: {
738
+ id: t.entry
739
+ }
740
+ }
741
+ }).catch((n) => {
742
+ v.error("Could not fetch symbol content: ", n);
743
+ });
744
+ }, se = () => Promise.resolve().then(() => Oe).then((e) => e.default).catch((e) => {
784
745
  throw console.error(
785
- "Error while attempting to dynamically import component RenderContentVariants at ../../components/render-content-variants/render-content-variants.vue",
746
+ "Error while attempting to dynamically import component ContentVariants at ../../components/content-variants/content-variants.vue",
786
747
  e
787
748
  ), e;
788
- }), ie = b({
749
+ }), ie = g({
789
750
  name: "builder-symbol",
790
- components: { RenderContentVariants: se },
791
- props: ["attributes", "symbol", "dynamic"],
751
+ components: { "content-variants": se },
752
+ props: [
753
+ "js",
754
+ "attributes",
755
+ "symbol",
756
+ "dynamic",
757
+ "builderContext",
758
+ "builderComponents"
759
+ ],
792
760
  data() {
793
- var e, t, n;
794
- return {
795
- className: [
796
- ...Object.keys(this.attributes.class),
797
- "builder-symbol",
798
- (e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
799
- ((t = this.symbol) == null ? void 0 : t.dynamic) || this.dynamic ? "builder-dynamic-symbol" : void 0
800
- ].filter(Boolean).join(" "),
801
- contentToUse: (n = this.symbol) == null ? void 0 : n.content
802
- };
803
- },
804
- inject: {
805
- builderContext: E.key
761
+ var e;
762
+ return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: A };
806
763
  },
807
764
  mounted() {
808
- this.fetchContent();
765
+ this.setContent();
809
766
  },
810
767
  watch: {
811
768
  onUpdateHook0: {
812
769
  handler() {
813
- this.fetchContent();
770
+ this.setContent();
814
771
  },
815
772
  immediate: !0
816
773
  }
817
774
  },
818
775
  computed: {
776
+ className() {
777
+ var e, t;
778
+ return [
779
+ ...Object.keys(this.attributes.class),
780
+ "builder-symbol",
781
+ (e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
782
+ ((t = this.symbol) == null ? void 0 : t.dynamic) || this.dynamic ? "builder-dynamic-symbol" : void 0
783
+ ].filter(Boolean).join(" ");
784
+ },
819
785
  onUpdateHook0() {
820
786
  return {
821
787
  0: this.symbol
@@ -823,60 +789,34 @@ const se = () => Promise.resolve().then(() => Ee).then((e) => e.default).catch((
823
789
  }
824
790
  },
825
791
  methods: {
826
- fetchContent() {
827
- var e, t, n;
828
- !this.contentToUse && ((e = this.symbol) == null ? void 0 : e.model) && ((t = this.builderContext) == null ? void 0 : t.apiKey) && ee({
829
- model: this.symbol.model,
830
- apiKey: this.builderContext.apiKey,
831
- apiVersion: this.builderContext.apiVersion,
832
- ...((n = this.symbol) == null ? void 0 : n.entry) && {
833
- query: {
834
- id: this.symbol.entry
835
- }
836
- }
837
- }).then((r) => {
838
- r && (this.contentToUse = r);
839
- }).catch((r) => {
840
- v.error("Could not fetch symbol content: ", r);
792
+ setContent() {
793
+ this.contentToUse || re({
794
+ symbol: this.symbol,
795
+ builderContextValue: this.builderContext
796
+ }).then((e) => {
797
+ e && (this.contentToUse = e);
841
798
  });
842
799
  },
843
- filterAttrs: function(t = {}, n) {
844
- const r = "v-on:";
845
- return Object.keys(t).filter((o) => {
846
- if (!t[o])
847
- return !1;
848
- const s = o.startsWith(r);
849
- return n ? s : !s;
850
- }).reduce(
851
- (o, s) => ({
852
- ...o,
853
- [s.replace(r, "")]: t[s]
854
- }),
855
- {}
856
- );
857
- },
858
800
  _classStringToObject(e) {
859
801
  const t = {};
860
802
  if (typeof e != "string")
861
803
  return t;
862
804
  const n = e.trim().split(/\s+/);
863
- for (const r of n)
864
- t[r] = !0;
805
+ for (const o of n)
806
+ t[o] = !0;
865
807
  return t;
866
808
  }
867
809
  }
868
810
  });
869
811
  var ae = function() {
870
- var r, o, s, i;
812
+ var o, r, s, i;
871
813
  var t = this, n = t._self._c;
872
- return t._self._setupProxy, n("div", t._g(t._b({ class: t._classStringToObject(t.className), attrs: { dataSet: {
873
- class: t.className
874
- } } }, "div", t.filterAttrs(t.attributes, !1), !1), t.filterAttrs(t.attributes, !0)), [n("render-content-variants", { attrs: { __isNestedRender: !0, apiVersion: t.builderContext.apiVersion, apiKey: t.builderContext.apiKey, context: t.builderContext.context, customComponents: Object.values(t.builderContext.registeredComponents), data: {
875
- ...(r = t.symbol) == null ? void 0 : r.data,
814
+ return t._self._setupProxy, n("div", t._g(t._b({ class: t._classStringToObject(t.className) }, "div", { ...t.filterAttrs(t.attributes, "v-on:", !1) }, !1), t.filterAttrs(t.attributes, "v-on:", !0)), [n("content-variants", { attrs: { __isNestedRender: !0, apiVersion: t.builderContext.apiVersion, apiKey: t.builderContext.apiKey, context: t.builderContext.context, customComponents: Object.values(t.builderComponents), data: {
815
+ ...(o = t.symbol) == null ? void 0 : o.data,
876
816
  ...t.builderContext.localState,
877
- ...(s = (o = t.contentToUse) == null ? void 0 : o.data) == null ? void 0 : s.state
817
+ ...(s = (r = t.contentToUse) == null ? void 0 : r.data) == null ? void 0 : s.state
878
818
  }, model: (i = t.symbol) == null ? void 0 : i.model, content: t.contentToUse } })], 1);
879
- }, ce = [], le = /* @__PURE__ */ g(
819
+ }, ce = [], le = /* @__PURE__ */ b(
880
820
  ie,
881
821
  ae,
882
822
  ce,
@@ -886,17 +826,17 @@ var ae = function() {
886
826
  null,
887
827
  null
888
828
  );
889
- const on = le.exports, ue = b({
829
+ const rn = le.exports, ue = g({
890
830
  name: "builder-text",
891
831
  props: ["text"]
892
832
  });
893
833
  var de = function() {
894
- var r;
834
+ var o;
895
835
  var t = this, n = t._self._c;
896
836
  return t._self._setupProxy, n("span", { staticClass: "builder-text", style: {
897
837
  outline: "none"
898
- }, domProps: { innerHTML: t._s((r = t.text) == null ? void 0 : r.toString()) } });
899
- }, fe = [], me = /* @__PURE__ */ g(
838
+ }, domProps: { innerHTML: t._s(((o = t.text) == null ? void 0 : o.toString()) || "") } });
839
+ }, fe = [], me = /* @__PURE__ */ b(
900
840
  ue,
901
841
  de,
902
842
  fe,
@@ -906,7 +846,7 @@ var de = function() {
906
846
  null,
907
847
  null
908
848
  );
909
- const sn = me.exports, pe = b({
849
+ const sn = me.exports, pe = g({
910
850
  name: "builder-video",
911
851
  props: [
912
852
  "autoPlay",
@@ -915,6 +855,7 @@ const sn = me.exports, pe = b({
915
855
  "loop",
916
856
  "playsInline",
917
857
  "attributes",
858
+ "preload",
918
859
  "fit",
919
860
  "position",
920
861
  "video",
@@ -949,17 +890,17 @@ const sn = me.exports, pe = b({
949
890
  }
950
891
  });
951
892
  var he = function() {
952
- var r;
893
+ var o;
953
894
  var t = this, n = t._self._c;
954
895
  return t._self._setupProxy, n("video", t._b({ style: {
955
896
  width: "100%",
956
897
  height: "100%",
957
- ...(r = t.attributes) == null ? void 0 : r.style,
898
+ ...(o = t.attributes) == null ? void 0 : o.style,
958
899
  objectFit: t.fit,
959
900
  objectPosition: t.position,
960
901
  borderRadius: 1
961
- }, attrs: { src: t.video || "no-src", poster: t.posterImage } }, "video", t.spreadProps, !1));
962
- }, _e = [], be = /* @__PURE__ */ g(
902
+ }, attrs: { preload: t.preload || "metadata", src: t.video || "no-src", poster: t.posterImage } }, "video", t.spreadProps, !1));
903
+ }, _e = [], ge = /* @__PURE__ */ b(
963
904
  pe,
964
905
  he,
965
906
  _e,
@@ -969,17 +910,17 @@ var he = function() {
969
910
  null,
970
911
  null
971
912
  );
972
- const an = be.exports, $ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
913
+ const an = ge.exports, $ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
973
914
  ...t,
974
915
  testVariationId: t.id,
975
916
  id: e == null ? void 0 : e.id
976
- })), ge = ({
917
+ })), be = ({
977
918
  canTrack: e,
978
919
  content: t
979
920
  }) => !(!($(t).length > 0) || !e);
980
921
  function ye(e, t, n) {
981
922
  var i;
982
- function r() {
923
+ function o() {
983
924
  function u(l, h, S) {
984
925
  let k = "";
985
926
  if (S) {
@@ -1011,13 +952,15 @@ function ye(e, t, n) {
1011
952
  }
1012
953
  return u(d, e), e;
1013
954
  }
1014
- const o = r(), s = (i = document.currentScript) == null ? void 0 : i.previousElementSibling;
955
+ const r = o(), s = (i = document.currentScript) == null ? void 0 : i.previousElementSibling;
1015
956
  if (n) {
1016
957
  s.remove();
1017
958
  const u = document.currentScript;
1018
959
  u == null || u.remove();
1019
960
  } else {
1020
- const u = t.concat({ id: e }).filter((a) => a.id !== o).map((a) => `.variant-${a.id} { display: none; }
961
+ const u = t.concat({
962
+ id: e
963
+ }).filter((a) => a.id !== r).map((a) => `.variant-${a.id} { display: none; }
1021
964
  `).join("");
1022
965
  s.innerHTML = u;
1023
966
  }
@@ -1026,7 +969,7 @@ function ve(e, t, n) {
1026
969
  var a;
1027
970
  if (!navigator.cookieEnabled)
1028
971
  return;
1029
- function r(d) {
972
+ function o(d) {
1030
973
  const m = d + "=", p = document.cookie.split(";");
1031
974
  for (let c = 0; c < p.length; c++) {
1032
975
  let f = p[c];
@@ -1037,7 +980,7 @@ function ve(e, t, n) {
1037
980
  }
1038
981
  return null;
1039
982
  }
1040
- const o = `builder.tests.${t}`, s = r(o), i = (a = document.currentScript) == null ? void 0 : a.parentElement, u = e === t;
983
+ const r = `builder.tests.${t}`, s = o(r), i = (a = document.currentScript) == null ? void 0 : a.parentElement, u = e === t;
1041
984
  if (s === e) {
1042
985
  if (u)
1043
986
  return;
@@ -1047,40 +990,38 @@ function ve(e, t, n) {
1047
990
  return;
1048
991
  }
1049
992
  }
1050
- const Se = (e) => e === "react" || e === "reactNative", J = Se(w), X = "builderIoAbTest", q = "builderIoRenderContent", ke = () => {
993
+ const Se = (e) => e === "react" || e === "reactNative", D = Se(w), H = "builderIoAbTest", J = "builderIoRenderContent", ke = () => {
1051
994
  const e = ye.toString().replace(/\s+/g, " "), t = ve.toString().replace(/\s+/g, " ");
1052
995
  return `
1053
- window.${X} = ${e}
1054
- window.${q} = ${t}
996
+ window.${H} = ${e}
997
+ window.${J} = ${t}
1055
998
  `;
1056
999
  }, xe = (e, t) => `
1057
- window.${X}("${t}",${JSON.stringify(
1058
- e
1059
- )}, ${J})`, cn = ({
1000
+ window.${H}("${t}",${JSON.stringify(e)}, ${D})`, cn = ({
1060
1001
  contentId: e,
1061
1002
  variationId: t
1062
1003
  }) => `
1063
- window.${q}("${t}", "${e}", ${J})`, we = () => import("./render-content.8d297efd.js").then((e) => e.default).catch((e) => {
1004
+ window.${J}("${t}", "${e}", ${D})`, we = () => import("./content.697b2fbd.js").then((e) => e.default).catch((e) => {
1064
1005
  throw console.error(
1065
- "Error while attempting to dynamically import component RenderContent at ../render-content/render-content.vue",
1006
+ "Error while attempting to dynamically import component ContentComponent at ../content/content.vue",
1066
1007
  e
1067
1008
  ), e;
1068
- }), Ce = () => import("./inlined-styles.759d26e8.js").then((e) => e.default).catch((e) => {
1009
+ }), Ce = () => import("./inlined-styles.dd4a079a.js").then((e) => e.default).catch((e) => {
1069
1010
  throw console.error(
1070
1011
  "Error while attempting to dynamically import component InlinedStyles at ../inlined-styles.vue",
1071
1012
  e
1072
1013
  ), e;
1073
- }), $e = () => import("./inlined-script.5b4b5fc3.js").then((e) => e.default).catch((e) => {
1014
+ }), $e = () => import("./inlined-script.b4595308.js").then((e) => e.default).catch((e) => {
1074
1015
  throw console.error(
1075
1016
  "Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",
1076
1017
  e
1077
1018
  ), e;
1078
- }), Te = b({
1079
- name: "render-content-variants",
1019
+ }), Te = g({
1020
+ name: "content-variants",
1080
1021
  components: {
1081
- InlinedScript: $e,
1082
- InlinedStyles: Ce,
1083
- RenderContent: we
1022
+ "inlined-script": $e,
1023
+ "inlined-styles": Ce,
1024
+ "content-component": we
1084
1025
  },
1085
1026
  props: [
1086
1027
  "canTrack",
@@ -1097,87 +1038,91 @@ const Se = (e) => e === "react" || e === "reactNative", J = Se(w), X = "builderI
1097
1038
  "enrich"
1098
1039
  ],
1099
1040
  data() {
1100
- var e;
1101
1041
  return {
1102
- shouldRenderVariants: ge({
1042
+ shouldRenderVariants: be({
1103
1043
  canTrack: I(this.canTrack),
1104
1044
  content: this.content
1105
1045
  }),
1106
- variantScriptStr: xe(
1107
- $(this.content).map((t) => ({
1108
- id: t.testVariationId,
1109
- testRatio: t.testRatio
1110
- })),
1111
- ((e = this.content) == null ? void 0 : e.id) || ""
1112
- ),
1113
- hideVariantsStyleString: $(this.content).map((t) => `.variant-${t.testVariationId} { display: none; } `).join(""),
1114
1046
  getScriptString: ke,
1115
1047
  getVariants: $,
1116
1048
  getDefaultCanTrack: I,
1117
- handleABTestingSync: Gt,
1049
+ handleABTestingSync: Kt,
1118
1050
  TARGET: w
1119
1051
  };
1120
1052
  },
1121
1053
  mounted() {
1122
1054
  this.shouldRenderVariants = !1;
1055
+ },
1056
+ computed: {
1057
+ variantScriptStr() {
1058
+ var e;
1059
+ return xe(
1060
+ $(this.content).map((t) => ({
1061
+ id: t.testVariationId,
1062
+ testRatio: t.testRatio
1063
+ })),
1064
+ ((e = this.content) == null ? void 0 : e.id) || ""
1065
+ );
1066
+ },
1067
+ hideVariantsStyleString() {
1068
+ return $(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
1069
+ }
1123
1070
  }
1124
1071
  });
1125
- var Re = function() {
1126
- var r, o;
1072
+ var Ie = function() {
1073
+ var o, r;
1127
1074
  var t = this, n = t._self._c;
1128
- return t._self._setupProxy, n("div", [!t.__isNestedRender && t.TARGET !== "reactNative" ? [n("inlined-script", { attrs: { scriptStr: t.getScriptString() } })] : t._e(), t.shouldRenderVariants ? [n("inlined-styles", { attrs: { id: `variants-styles-${(r = t.content) == null ? void 0 : r.id}`, styles: t.hideVariantsStyleString } }), n("inlined-script", { attrs: { scriptStr: t.variantScriptStr } }), t._l(t.getVariants(t.content), function(s, i) {
1129
- return n("render-content", { key: s.testVariationId, attrs: { content: s, showContent: !1, classNameProp: void 0, model: t.model, data: t.data, context: t.context, apiKey: t.apiKey, apiVersion: t.apiVersion, customComponents: t.customComponents, canTrack: t.canTrack, locale: t.locale, includeRefs: t.includeRefs, enrich: t.enrich, isSsrAbTest: t.shouldRenderVariants } });
1130
- })] : t._e(), n("render-content", t._b({ attrs: { content: t.shouldRenderVariants ? t.content : t.handleABTestingSync({
1075
+ return t._self._setupProxy, n("div", [!t.__isNestedRender && t.TARGET !== "reactNative" ? [n("inlined-script", { attrs: { scriptStr: t.getScriptString() } })] : t._e(), t.shouldRenderVariants ? [n("inlined-styles", { attrs: { id: `variants-styles-${(o = t.content) == null ? void 0 : o.id}`, styles: t.hideVariantsStyleString } }), n("inlined-script", { attrs: { scriptStr: t.variantScriptStr } }), t._l(t.getVariants(t.content), function(s, i) {
1076
+ return n("content-component", { key: s.testVariationId, attrs: { content: s, showContent: !1, classNameProp: void 0, model: t.model, data: t.data, context: t.context, apiKey: t.apiKey, apiVersion: t.apiVersion, customComponents: t.customComponents, canTrack: t.canTrack, locale: t.locale, includeRefs: t.includeRefs, enrich: t.enrich, isSsrAbTest: t.shouldRenderVariants } });
1077
+ })] : t._e(), n("content-component", t._b({ attrs: { content: t.shouldRenderVariants ? t.content : t.handleABTestingSync({
1131
1078
  item: t.content,
1132
1079
  canTrack: t.getDefaultCanTrack(t.canTrack)
1133
- }), classNameProp: `variant-${(o = t.content) == null ? void 0 : o.id}`, showContent: !0, model: t.model, data: t.data, context: t.context, apiKey: t.apiKey, apiVersion: t.apiVersion, customComponents: t.customComponents, canTrack: t.canTrack, locale: t.locale, includeRefs: t.includeRefs, enrich: t.enrich, isSsrAbTest: t.shouldRenderVariants } }, "render-content", {
1080
+ }), classNameProp: `variant-${(r = t.content) == null ? void 0 : r.id}`, showContent: !0, model: t.model, data: t.data, context: t.context, apiKey: t.apiKey, apiVersion: t.apiVersion, customComponents: t.customComponents, canTrack: t.canTrack, locale: t.locale, includeRefs: t.includeRefs, enrich: t.enrich, isSsrAbTest: t.shouldRenderVariants } }, "content-component", {
1134
1081
  key: t.shouldRenderVariants.toString()
1135
1082
  }, !1))], 2);
1136
- }, Ie = [], Ve = /* @__PURE__ */ g(
1083
+ }, Re = [], Ae = /* @__PURE__ */ b(
1137
1084
  Te,
1138
- Re,
1139
1085
  Ie,
1086
+ Re,
1140
1087
  !1,
1141
1088
  null,
1142
1089
  null,
1143
1090
  null,
1144
1091
  null
1145
1092
  );
1146
- const Ae = Ve.exports, Ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1093
+ const Ve = Ae.exports, Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1147
1094
  __proto__: null,
1148
- default: Ae
1095
+ default: Ve
1149
1096
  }, Symbol.toStringTag, { value: "Module" }));
1097
+ function Ee() {
1098
+ return y() && window.self !== window.top;
1099
+ }
1100
+ function X() {
1101
+ return Ee() && window.location.search.indexOf("builder.frameEditing=") !== -1;
1102
+ }
1150
1103
  function ln() {
1151
- return !y() || T() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
1104
+ return !y() || X() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
1152
1105
  }
1153
- const Oe = (e) => {
1106
+ const un = [], dn = (e) => ({
1107
+ type: "builder.registerComponent",
1108
+ data: e
1109
+ }), Pe = (e) => {
1154
1110
  const t = e.toString().trim();
1155
1111
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
1156
- }, un = [], dn = ({
1157
- component: e,
1158
- ...t
1159
- }) => ({
1160
- type: "builder.registerComponent",
1161
- data: je(t)
1162
- }), Pe = (e) => typeof e == "function" ? Oe(e) : A(e), je = ({
1112
+ }, je = (e) => typeof e == "function" ? Pe(e) : V(e), fn = ({
1163
1113
  inputs: e,
1164
1114
  ...t
1165
1115
  }) => ({
1166
- ...A(t),
1167
- inputs: e == null ? void 0 : e.map(
1168
- (n) => Object.entries(n).reduce(
1169
- (r, [o, s]) => ({
1170
- ...r,
1171
- [o]: Pe(s)
1172
- }),
1173
- {}
1174
- )
1175
- )
1116
+ ...V(t),
1117
+ inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, s]) => ({
1118
+ ...o,
1119
+ [r]: je(s)
1120
+ }), {}))
1176
1121
  }), B = {};
1177
- function fn(e, t) {
1122
+ function mn(e, t) {
1178
1123
  let n = B[e];
1179
1124
  if (n || (n = B[e] = []), n.push(t), y()) {
1180
- const r = {
1125
+ const o = {
1181
1126
  type: "builder.register",
1182
1127
  data: {
1183
1128
  type: e,
@@ -1185,14 +1130,14 @@ function fn(e, t) {
1185
1130
  }
1186
1131
  };
1187
1132
  try {
1188
- parent.postMessage(r, "*"), parent !== window && window.postMessage(r, "*");
1189
- } catch (o) {
1190
- console.debug("Could not postmessage", o);
1133
+ parent.postMessage(o, "*"), parent !== window && window.postMessage(o, "*");
1134
+ } catch (r) {
1135
+ console.debug("Could not postmessage", r);
1191
1136
  }
1192
1137
  }
1193
1138
  }
1194
1139
  const N = {};
1195
- function mn(e) {
1140
+ function pn(e) {
1196
1141
  if (y()) {
1197
1142
  Object.assign(N, e);
1198
1143
  const t = {
@@ -1208,36 +1153,43 @@ function Be() {
1208
1153
  return (e == "x" ? t : t & 3 | 8).toString(16);
1209
1154
  });
1210
1155
  }
1211
- function Q() {
1156
+ function q() {
1212
1157
  return Be().replace(/-/g, "");
1213
1158
  }
1214
- const Y = "builderSessionId", Ne = async ({
1159
+ const Q = "builderSessionId", Ne = async ({
1215
1160
  canTrack: e
1216
1161
  }) => {
1217
1162
  if (!e)
1218
1163
  return;
1219
- const t = await U({
1220
- name: Y,
1164
+ const t = await M({
1165
+ name: Q,
1221
1166
  canTrack: e
1222
1167
  });
1223
1168
  if (x(t))
1224
1169
  return t;
1225
1170
  {
1226
1171
  const n = Fe();
1227
- return Me({ id: n, canTrack: e }), n;
1172
+ return Ue({
1173
+ id: n,
1174
+ canTrack: e
1175
+ }), n;
1228
1176
  }
1229
- }, Fe = () => Q(), Me = ({
1177
+ }, Fe = () => q(), Ue = ({
1230
1178
  id: e,
1231
1179
  canTrack: t
1232
- }) => W({ name: Y, value: e, canTrack: t }), Z = () => y() && typeof localStorage < "u" ? localStorage : void 0, Ue = ({
1180
+ }) => W({
1181
+ name: Q,
1182
+ value: e,
1183
+ canTrack: t
1184
+ }), Y = () => y() && typeof localStorage < "u" ? localStorage : void 0, Me = ({
1233
1185
  key: e,
1234
1186
  canTrack: t
1235
1187
  }) => {
1236
1188
  var n;
1237
1189
  try {
1238
- return t ? (n = Z()) == null ? void 0 : n.getItem(e) : void 0;
1239
- } catch (r) {
1240
- console.debug("[LocalStorage] GET error: ", r);
1190
+ return t ? (n = Y()) == null ? void 0 : n.getItem(e) : void 0;
1191
+ } catch (o) {
1192
+ console.debug("[LocalStorage] GET error: ", o);
1241
1193
  return;
1242
1194
  }
1243
1195
  }, We = ({
@@ -1245,30 +1197,35 @@ const Y = "builderSessionId", Ne = async ({
1245
1197
  canTrack: t,
1246
1198
  value: n
1247
1199
  }) => {
1248
- var r;
1200
+ var o;
1249
1201
  try {
1250
- t && ((r = Z()) == null || r.setItem(e, n));
1251
- } catch (o) {
1252
- console.debug("[LocalStorage] SET error: ", o);
1202
+ t && ((o = Y()) == null || o.setItem(e, n));
1203
+ } catch (r) {
1204
+ console.debug("[LocalStorage] SET error: ", r);
1253
1205
  }
1254
- }, tt = "builderVisitorId", Le = ({ canTrack: e }) => {
1206
+ }, Z = "builderVisitorId", Le = ({
1207
+ canTrack: e
1208
+ }) => {
1255
1209
  if (!e)
1256
1210
  return;
1257
- const t = Ue({
1258
- key: tt,
1211
+ const t = Me({
1212
+ key: Z,
1259
1213
  canTrack: e
1260
1214
  });
1261
1215
  if (x(t))
1262
1216
  return t;
1263
1217
  {
1264
1218
  const n = Ke();
1265
- return ze({ id: n, canTrack: e }), n;
1219
+ return ze({
1220
+ id: n,
1221
+ canTrack: e
1222
+ }), n;
1266
1223
  }
1267
- }, Ke = () => Q(), ze = ({
1224
+ }, Ke = () => q(), ze = ({
1268
1225
  id: e,
1269
1226
  canTrack: t
1270
1227
  }) => We({
1271
- key: tt,
1228
+ key: Z,
1272
1229
  value: e,
1273
1230
  canTrack: t
1274
1231
  }), Ge = () => {
@@ -1297,18 +1254,25 @@ const Y = "builderSessionId", Ne = async ({
1297
1254
  any() {
1298
1255
  return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || w === "reactNative";
1299
1256
  }
1300
- }, n = e.match(/Tablet|iPad/i), r = Ge();
1257
+ }, n = e.match(/Tablet|iPad/i), o = Ge();
1301
1258
  return {
1302
- urlPath: r == null ? void 0 : r.pathname,
1303
- host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
1259
+ urlPath: o == null ? void 0 : o.pathname,
1260
+ host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
1304
1261
  device: n ? "tablet" : t.any() ? "mobile" : "desktop"
1305
1262
  };
1306
1263
  }, Je = async ({
1307
1264
  canTrack: e
1308
1265
  }) => {
1309
1266
  if (!e)
1310
- return { visitorId: void 0, sessionId: void 0 };
1311
- const t = await Ne({ canTrack: e }), n = Le({ canTrack: e });
1267
+ return {
1268
+ visitorId: void 0,
1269
+ sessionId: void 0
1270
+ };
1271
+ const t = await Ne({
1272
+ canTrack: e
1273
+ }), n = Le({
1274
+ canTrack: e
1275
+ });
1312
1276
  return {
1313
1277
  sessionId: t,
1314
1278
  visitorId: n
@@ -1317,29 +1281,29 @@ const Y = "builderSessionId", Ne = async ({
1317
1281
  type: e,
1318
1282
  canTrack: t,
1319
1283
  apiKey: n,
1320
- metadata: r,
1321
- ...o
1284
+ metadata: o,
1285
+ ...r
1322
1286
  }) => ({
1323
1287
  type: e,
1324
1288
  data: {
1325
- ...o,
1289
+ ...r,
1326
1290
  metadata: {
1327
1291
  url: location.href,
1328
- ...r
1292
+ ...o
1329
1293
  },
1330
- ...await Je({ canTrack: t }),
1294
+ ...await Je({
1295
+ canTrack: t
1296
+ }),
1331
1297
  userAttributes: He(),
1332
1298
  ownerId: n
1333
1299
  }
1334
1300
  });
1335
1301
  async function qe(e) {
1336
1302
  if (!e.apiKey) {
1337
- v.error(
1338
- "Missing API key for track call. Please provide your API key."
1339
- );
1303
+ v.error("Missing API key for track call. Please provide your API key.");
1340
1304
  return;
1341
1305
  }
1342
- if (!!e.canTrack && !T() && !!(y() || w === "reactNative"))
1306
+ if (!!e.canTrack && !X() && !!(y() || w === "reactNative"))
1343
1307
  return fetch("https://cdn.builder.io/api/v1/track", {
1344
1308
  method: "POST",
1345
1309
  body: JSON.stringify({
@@ -1353,41 +1317,44 @@ async function qe(e) {
1353
1317
  console.error("Failed to track: ", t);
1354
1318
  });
1355
1319
  }
1356
- const pn = (e) => qe({ ...e, canTrack: !0 });
1320
+ const hn = (e) => qe({
1321
+ ...e,
1322
+ canTrack: !0
1323
+ });
1357
1324
  export {
1358
- At as A,
1325
+ Rt as A,
1359
1326
  Ye as B,
1360
1327
  tn as C,
1361
1328
  en as F,
1362
1329
  nn as I,
1363
- rn as S,
1330
+ on as S,
1364
1331
  w as T,
1365
1332
  an as V,
1366
1333
  qe as _,
1367
1334
  Ze as a,
1368
- y as b,
1335
+ X as b,
1369
1336
  x as c,
1370
- on as d,
1371
- sn as e,
1372
- A as f,
1373
- st as g,
1374
- cn as h,
1375
- T as i,
1376
- un as j,
1377
- E as k,
1337
+ A as d,
1338
+ rn as e,
1339
+ V as f,
1340
+ rt as g,
1341
+ sn as h,
1342
+ y as i,
1343
+ cn as j,
1344
+ un as k,
1378
1345
  v as l,
1379
- dn as m,
1380
- g as n,
1381
- ln as o,
1382
- ee as p,
1383
- Xt as q,
1384
- fn as r,
1385
- Oe as s,
1386
- mn as t,
1346
+ ln as m,
1347
+ b as n,
1348
+ te as o,
1349
+ Ht as p,
1350
+ dn as q,
1351
+ mn as r,
1352
+ fn as s,
1353
+ pn as t,
1387
1354
  oe as u,
1388
- re as v,
1389
- Yt as w,
1390
- pn as x,
1391
- Vt as y,
1392
- Ae as z
1355
+ ne as v,
1356
+ qt as w,
1357
+ hn as x,
1358
+ It as y,
1359
+ Ve as z
1393
1360
  };