@builder.io/sdk-vue 0.4.5 → 0.5.1

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.1cc420e2.js +77 -0
  3. package/packages/_vue2/dist/block-styles.2b3d669b.cjs +1 -0
  4. package/packages/_vue2/dist/block-wrapper.563cc17f.cjs +1 -0
  5. package/packages/_vue2/dist/block-wrapper.ea9a7e90.js +66 -0
  6. package/packages/_vue2/dist/block.0f28da5b.cjs +3 -0
  7. package/packages/_vue2/dist/block.7a80ed18.js +178 -0
  8. package/packages/_vue2/dist/blocks-wrapper.9aacce51.js +72 -0
  9. package/packages/_vue2/dist/blocks-wrapper.c53a5f23.cjs +1 -0
  10. package/packages/_vue2/dist/component-ref.a631e3d7.cjs +1 -0
  11. package/packages/_vue2/dist/component-ref.af9c1a83.js +98 -0
  12. package/packages/_vue2/dist/content.2c7fa09f.cjs +1 -0
  13. package/packages/_vue2/dist/content.cb96a18a.js +913 -0
  14. package/packages/_vue2/dist/css.22755cda.js +21 -0
  15. package/packages/_vue2/dist/css.30299cfb.cjs +6 -0
  16. package/packages/_vue2/dist/enable-editor.852e9797.js +427 -0
  17. package/packages/_vue2/dist/enable-editor.c1b99af3.cjs +1 -0
  18. package/packages/_vue2/dist/evaluate.80a7f105.cjs +31 -0
  19. package/packages/_vue2/dist/evaluate.ce05cec9.js +4970 -0
  20. package/packages/_vue2/dist/get-block-actions.93f4e72e.cjs +1 -0
  21. package/packages/_vue2/dist/get-block-actions.c73f00d1.js +36 -0
  22. package/packages/_vue2/dist/get-block-properties.15a37ec1.js +48 -0
  23. package/packages/_vue2/dist/get-block-properties.d0235e56.cjs +1 -0
  24. package/packages/_vue2/dist/get-processed-block.d59ca820.js +52 -0
  25. package/packages/_vue2/dist/get-processed-block.d8938868.cjs +1 -0
  26. package/packages/_vue2/dist/index.1021dd83.cjs +32 -0
  27. package/packages/_vue2/dist/{index.dcd9672f.js → index.ed62d736.js} +565 -575
  28. package/packages/_vue2/dist/inlined-script.3e3c93e8.cjs +1 -0
  29. package/packages/_vue2/dist/{inlined-script.5b4b5fc3.js → inlined-script.cf733bda.js} +1 -1
  30. package/packages/_vue2/dist/{inlined-styles.759d26e8.js → inlined-styles.2709172e.js} +1 -1
  31. package/packages/_vue2/dist/{inlined-styles.9ddda3d7.cjs → inlined-styles.cf1e15e1.cjs} +1 -1
  32. package/packages/_vue2/dist/interactive-element.d51dde5a.js +42 -0
  33. package/packages/_vue2/dist/interactive-element.ea2a7d23.cjs +1 -0
  34. package/packages/_vue2/dist/repeated-block.9a46bc14.js +38 -0
  35. package/packages/_vue2/dist/repeated-block.a299d789.cjs +1 -0
  36. package/packages/_vue2/dist/sdk.cjs +1 -1
  37. package/packages/_vue2/dist/sdk.js +10 -10
  38. package/packages/_vue2/dist/src/blocks/button/button.vue.d.ts +9 -18
  39. package/packages/_vue2/dist/src/blocks/button/component-info.d.ts +1 -1
  40. package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +7 -6
  41. package/packages/_vue2/dist/src/blocks/columns/component-info.d.ts +1 -1
  42. package/packages/_vue2/dist/src/blocks/custom-code/component-info.d.ts +1 -1
  43. package/packages/_vue2/dist/src/blocks/embed/component-info.d.ts +1 -1
  44. package/packages/_vue2/dist/src/blocks/embed/embed.vue.d.ts +1 -1
  45. package/packages/_vue2/dist/src/blocks/fragment/component-info.d.ts +1 -1
  46. package/packages/_vue2/dist/src/blocks/helpers.d.ts +13 -0
  47. package/packages/_vue2/dist/src/blocks/image/component-info.d.ts +1 -1
  48. package/packages/_vue2/dist/src/blocks/image/image.vue.d.ts +6 -6
  49. package/packages/_vue2/dist/src/blocks/img/component-info.d.ts +1 -1
  50. package/packages/_vue2/dist/src/blocks/img/img.vue.d.ts +27 -6
  51. package/packages/_vue2/dist/src/blocks/section/component-info.d.ts +1 -1
  52. package/packages/_vue2/dist/src/blocks/section/section.vue.d.ts +9 -6
  53. package/packages/_vue2/dist/src/blocks/symbol/component-info.d.ts +1 -1
  54. package/packages/_vue2/dist/src/blocks/symbol/symbol.helpers.d.ts +14 -0
  55. package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +11 -7
  56. package/packages/_vue2/dist/src/blocks/text/component-info.d.ts +1 -1
  57. package/packages/_vue2/dist/src/blocks/video/component-info.d.ts +1 -1
  58. package/packages/_vue2/dist/src/blocks/video/video.vue.d.ts +7 -3
  59. package/packages/_vue2/dist/src/components/block/block.helpers.d.ts +13 -0
  60. package/packages/{_vue3/dist/src/components/render-block/render-block.vue.d.ts → _vue2/dist/src/components/block/block.vue.d.ts} +3 -2
  61. package/packages/_vue2/dist/src/components/{render-block → block/components}/block-styles.vue.d.ts +4 -4
  62. package/packages/_vue2/dist/src/components/block/components/block-wrapper.vue.d.ts +29 -0
  63. package/packages/_vue2/dist/src/components/block/components/component-ref/component-ref.helpers.d.ts +30 -0
  64. package/packages/_vue2/dist/src/components/block/components/component-ref/component-ref.vue.d.ts +2 -0
  65. package/packages/_vue2/dist/src/components/block/components/interactive-element.vue.d.ts +30 -0
  66. package/packages/_vue2/dist/src/components/block/components/repeated-block.vue.d.ts +16 -0
  67. package/packages/_vue2/dist/src/components/{render-blocks.vue.d.ts → blocks/blocks-wrapper.vue.d.ts} +6 -6
  68. package/packages/_vue2/dist/src/components/blocks/blocks.vue.d.ts +29 -0
  69. package/packages/_vue2/dist/src/components/{render-content/render-content.vue.d.ts → content/components/enable-editor.vue.d.ts} +12 -34
  70. 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
  71. package/packages/_vue2/dist/src/components/{render-content/components/render-styles.vue.d.ts → content/components/styles.vue.d.ts} +1 -1
  72. package/packages/_vue2/dist/src/components/content/content.helpers.d.ts +7 -0
  73. package/packages/{_vue3/dist/src/components/render-content/render-content.types.d.ts → _vue2/dist/src/components/content/content.types.d.ts} +4 -4
  74. package/packages/_vue2/dist/src/components/content/content.vue.d.ts +26 -0
  75. package/packages/_vue2/dist/src/components/{render-content-variants/render-content-variants.types.d.ts → content-variants/content-variants.types.d.ts} +5 -5
  76. package/packages/_vue2/dist/src/components/{render-content-variants/render-content-variants.vue.d.ts → content-variants/content-variants.vue.d.ts} +9 -8
  77. package/packages/_vue2/dist/src/components/{render-content-variants → content-variants}/helpers.d.ts +4 -4
  78. package/packages/_vue2/dist/src/constants/sdk-version.d.ts +1 -1
  79. package/packages/_vue2/dist/src/constants/target.d.ts +1 -1
  80. package/packages/_vue2/dist/src/context/builder.context.d.ts +1 -1
  81. package/packages/_vue2/dist/src/context/components.context.d.ts +7 -0
  82. package/packages/_vue2/dist/src/context/types.d.ts +1 -1
  83. package/packages/_vue2/dist/src/functions/{evaluate.d.ts → evaluate/evaluate.d.ts} +5 -2
  84. package/packages/_vue2/dist/src/functions/evaluate/index.d.ts +1 -0
  85. package/packages/_vue2/dist/src/functions/evaluate/interpreter.d.ts +2 -0
  86. package/packages/_vue2/dist/src/functions/evaluate/non-node-runtime.d.ts +2 -0
  87. package/packages/_vue2/dist/src/functions/evaluate/types.d.ts +10 -0
  88. package/packages/_vue2/dist/src/functions/get-block-actions.d.ts +1 -0
  89. package/packages/_vue2/dist/src/functions/get-block-properties.d.ts +5 -1
  90. package/packages/_vue2/dist/src/functions/get-content/index.d.ts +2 -6
  91. package/packages/_vue2/dist/src/functions/get-processed-block.d.ts +1 -1
  92. package/packages/_vue2/dist/src/functions/get-react-native-block-styles.d.ts +1 -1
  93. package/packages/_vue2/dist/src/functions/is-non-node-server.d.ts +4 -0
  94. package/packages/_vue2/dist/src/functions/register-component.d.ts +2 -1
  95. package/packages/_vue2/dist/src/helpers/ab-tests.d.ts +2 -2
  96. package/packages/_vue2/dist/src/helpers/cookie.d.ts +2 -2
  97. package/packages/_vue2/dist/src/helpers/css.d.ts +1 -1
  98. package/packages/_vue2/dist/src/helpers/localStorage.d.ts +2 -2
  99. package/packages/_vue2/dist/src/helpers/preview-lru-cache/get.d.ts +1 -0
  100. package/packages/_vue2/dist/src/helpers/preview-lru-cache/helpers.d.ts +1 -0
  101. package/packages/_vue2/dist/src/helpers/preview-lru-cache/init.d.ts +6 -0
  102. package/packages/_vue2/dist/src/helpers/preview-lru-cache/set.d.ts +7 -0
  103. package/packages/_vue2/dist/src/helpers/preview-lru-cache/types.d.ts +12 -0
  104. package/packages/_vue2/dist/src/helpers/sessionId.d.ts +2 -2
  105. package/packages/_vue2/dist/src/helpers/visitorId.d.ts +1 -1
  106. package/packages/_vue2/dist/src/index-helpers/blocks-exports.d.ts +2 -2
  107. package/packages/_vue2/dist/src/index.d.ts +2 -2
  108. package/packages/_vue2/dist/src/types/builder-props.d.ts +9 -0
  109. package/packages/_vue2/dist/src/types/components.d.ts +8 -2
  110. package/packages/_vue2/dist/src/types/enforced-partials.d.ts +1 -1
  111. package/packages/_vue2/dist/src/types/targets.d.ts +1 -3
  112. package/packages/_vue2/dist/src/types/typescript.d.ts +3 -0
  113. package/packages/_vue2/dist/style.css +1 -1
  114. package/packages/_vue2/dist/{render-styles.b41f1309.js → styles.40b9604d.js} +7 -5
  115. package/packages/_vue2/dist/{render-styles.ba0e223a.cjs → styles.f4f6200a.cjs} +4 -4
  116. package/packages/_vue3/dist/block-wrapper.33cc2e78.js +54 -0
  117. package/packages/_vue3/dist/block-wrapper.d1ace9c6.cjs +1 -0
  118. package/packages/_vue3/dist/component-ref.20d41b64.js +111 -0
  119. package/packages/_vue3/dist/component-ref.7c98446d.cjs +1 -0
  120. package/packages/_vue3/dist/get-block-actions.1279eafb.js +79 -0
  121. package/packages/_vue3/dist/get-block-actions.9d2cfc9a.cjs +1 -0
  122. package/packages/_vue3/dist/index.a657fd9d.js +8094 -0
  123. package/packages/_vue3/dist/index.c5eee389.cjs +99 -0
  124. package/packages/_vue3/dist/repeated-block.48916c9e.js +33 -0
  125. package/packages/_vue3/dist/repeated-block.5aa51bc7.cjs +1 -0
  126. package/packages/_vue3/dist/sdk.cjs +1 -72
  127. package/packages/_vue3/dist/sdk.js +22 -3275
  128. package/packages/_vue3/dist/src/blocks/button/button.vue.d.ts +10 -6
  129. package/packages/_vue3/dist/src/blocks/button/component-info.d.ts +1 -1
  130. package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +18 -8
  131. package/packages/_vue3/dist/src/blocks/columns/component-info.d.ts +1 -1
  132. package/packages/_vue3/dist/src/blocks/custom-code/component-info.d.ts +1 -1
  133. package/packages/_vue3/dist/src/blocks/custom-code/custom-code.vue.d.ts +3 -3
  134. package/packages/_vue3/dist/src/blocks/embed/component-info.d.ts +1 -1
  135. package/packages/_vue3/dist/src/blocks/fragment/component-info.d.ts +1 -1
  136. package/packages/_vue3/dist/src/blocks/helpers.d.ts +13 -0
  137. package/packages/_vue3/dist/src/blocks/image/component-info.d.ts +1 -1
  138. package/packages/_vue3/dist/src/blocks/image/image.vue.d.ts +6 -6
  139. package/packages/_vue3/dist/src/blocks/img/component-info.d.ts +1 -1
  140. package/packages/_vue3/dist/src/blocks/img/img.vue.d.ts +9 -7
  141. package/packages/_vue3/dist/src/blocks/section/component-info.d.ts +1 -1
  142. package/packages/_vue3/dist/src/blocks/section/section.vue.d.ts +9 -6
  143. package/packages/_vue3/dist/src/blocks/symbol/component-info.d.ts +1 -1
  144. package/packages/_vue3/dist/src/blocks/symbol/symbol.helpers.d.ts +14 -0
  145. package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +20 -7
  146. package/packages/_vue3/dist/src/blocks/text/component-info.d.ts +1 -1
  147. package/packages/_vue3/dist/src/blocks/video/component-info.d.ts +1 -1
  148. package/packages/_vue3/dist/src/blocks/video/video.vue.d.ts +7 -3
  149. package/packages/_vue3/dist/src/components/block/block.helpers.d.ts +13 -0
  150. package/packages/{_vue2/dist/src/components/render-block/render-block.vue.d.ts → _vue3/dist/src/components/block/block.vue.d.ts} +3 -2
  151. package/packages/_vue3/dist/src/components/{render-block → block/components}/block-styles.vue.d.ts +4 -4
  152. package/packages/_vue3/dist/src/components/block/components/block-wrapper.vue.d.ts +29 -0
  153. package/packages/_vue3/dist/src/components/block/components/component-ref/component-ref.helpers.d.ts +30 -0
  154. package/packages/_vue3/dist/src/components/block/components/component-ref/component-ref.vue.d.ts +2 -0
  155. package/packages/_vue3/dist/src/components/block/components/interactive-element.vue.d.ts +30 -0
  156. package/packages/_vue3/dist/src/components/{render-block/render-repeated-block.vue.d.ts → block/components/repeated-block.vue.d.ts} +3 -0
  157. package/packages/_vue3/dist/src/components/{render-blocks.vue.d.ts → blocks/blocks-wrapper.vue.d.ts} +6 -6
  158. package/packages/_vue3/dist/src/components/blocks/blocks.vue.d.ts +29 -0
  159. package/packages/_vue3/dist/src/components/{render-content/render-content.vue.d.ts → content/components/enable-editor.vue.d.ts} +18 -49
  160. 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
  161. package/packages/_vue3/dist/src/components/content/content.helpers.d.ts +7 -0
  162. package/packages/{_vue2/dist/src/components/render-content/render-content.types.d.ts → _vue3/dist/src/components/content/content.types.d.ts} +4 -4
  163. package/packages/_vue3/dist/src/components/content/content.vue.d.ts +69 -0
  164. package/packages/_vue3/dist/src/components/{render-content-variants/render-content-variants.types.d.ts → content-variants/content-variants.types.d.ts} +5 -5
  165. package/packages/_vue3/dist/src/components/{render-content-variants/render-content-variants.vue.d.ts → content-variants/content-variants.vue.d.ts} +21 -20
  166. package/packages/_vue3/dist/src/components/{render-content-variants → content-variants}/helpers.d.ts +7 -7
  167. package/packages/_vue3/dist/src/constants/sdk-version.d.ts +1 -1
  168. package/packages/_vue3/dist/src/constants/target.d.ts +1 -1
  169. package/packages/_vue3/dist/src/context/builder.context.d.ts +1 -1
  170. package/packages/_vue3/dist/src/context/components.context.d.ts +7 -0
  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,51 +1,49 @@
1
- import { defineComponent as b } from "vue";
2
- const et = b({
1
+ import { defineComponent as g } from "vue";
2
+ function V(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: V };
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
- var m = a.render;
47
- a.render = function(f, l) {
48
- return d.call(l), m(f, l);
44
+ var f = a.render;
45
+ a.render = function(m, l) {
46
+ return d.call(l), f(m, l);
49
47
  };
50
48
  } else {
51
49
  var p = a.beforeCreate;
@@ -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 nn = ot.exports, A = (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 }) => {
86
+ }, on = (e, t = F) => `@media (max-width: ${t[e].max}px)`, rt = ({
87
+ small: e,
88
+ medium: t
89
+ }) => {
91
90
  const n = A(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(() => Et).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.2709172e.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 rn = ut.exports, dt = g({
281
262
  name: "builder-fragment-component",
282
263
  props: []
283
264
  });
284
- var pt = function() {
265
+ var mt = 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
+ }, ft = [], pt = /* @__PURE__ */ b(
269
+ dt,
288
270
  mt,
289
- pt,
290
- ht,
271
+ ft,
291
272
  !1,
292
273
  null,
293
274
  null,
294
275
  null,
295
276
  null
296
277
  );
297
- const en = _t.exports;
278
+ const sn = 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,114 @@ 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 an = vt.exports, St = Symbol(), kt = {
388
+ Builder: {
389
+ content: null,
390
+ context: {},
391
+ localState: void 0,
392
+ rootSetState() {
393
+ },
394
+ rootState: {},
395
+ apiKey: null,
396
+ apiVersion: void 0,
397
+ componentInfos: {},
398
+ inheritedStyles: {}
399
+ },
400
+ key: St
401
+ }, xt = Symbol(), wt = {
402
+ Components: { registeredComponents: {} },
403
+ key: xt
404
+ }, Ct = () => import("./block-styles.1cc420e2.js").then((e) => e.default).catch((e) => {
419
405
  throw console.error(
420
- "Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
406
+ "Error while attempting to dynamically import component BlockStyles at ../block/components/block-styles.vue",
421
407
  e
422
408
  ), e;
423
- }), Ct = () => import("./render-block.844495c0.js").then((e) => e.default).catch((e) => {
409
+ }), $t = () => import("./block.7a80ed18.js").then((e) => e.default).catch((e) => {
424
410
  throw console.error(
425
- "Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
411
+ "Error while attempting to dynamically import component Block at ../block/block.vue",
426
412
  e
427
413
  ), 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
- }
414
+ }), Tt = () => import("./blocks-wrapper.9aacce51.js").then((e) => e.default).catch((e) => {
415
+ throw console.error(
416
+ "Error while attempting to dynamically import component BlocksWrapper at ./blocks-wrapper.vue",
417
+ e
418
+ ), e;
419
+ }), It = g({
420
+ name: "builder-blocks",
421
+ components: {
422
+ "blocks-wrapper": Tt,
423
+ block: $t,
424
+ "block-styles": Ct
440
425
  },
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
- }
426
+ props: [
427
+ "blocks",
428
+ "parent",
429
+ "path",
430
+ "styleProp",
431
+ "context",
432
+ "registeredComponents"
433
+ ],
434
+ inject: {
435
+ builderContext: kt.key,
436
+ componentsContext: wt.key
477
437
  }
478
438
  });
479
- var Tt = function() {
439
+ var Rt = function() {
480
440
  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 } });
441
+ 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) {
442
+ return n("block", { key: "render-block-" + o.id, attrs: { block: o, context: t.context || t.builderContext, registeredComponents: t.registeredComponents || t.componentsContext.registeredComponents } });
443
+ }) : t._e(), t.blocks ? t._l(t.blocks, function(o, r) {
444
+ return n("block-styles", { key: "block-style-" + o.id, attrs: { block: o, context: t.context || t.builderContext } });
493
445
  }) : t._e()], 2);
494
- }, Rt = [], It = /* @__PURE__ */ g(
495
- $t,
496
- Tt,
446
+ }, Vt = [], At = /* @__PURE__ */ b(
447
+ It,
497
448
  Rt,
449
+ Vt,
498
450
  !1,
499
451
  null,
500
- "b740fd05",
452
+ null,
501
453
  null,
502
454
  null
503
455
  );
504
- const Vt = It.exports, At = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
456
+ const Ot = At.exports, Et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
505
457
  __proto__: null,
506
- default: Vt
507
- }, Symbol.toStringTag, { value: "Module" })), Et = b({
458
+ default: Ot
459
+ }, Symbol.toStringTag, { value: "Module" })), Pt = g({
508
460
  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
- }
461
+ props: ["attributes", "maxWidth"],
462
+ data() {
463
+ return { filterAttrs: V };
526
464
  }
527
465
  });
528
- var Ot = function() {
466
+ var jt = function() {
529
467
  var t = this, n = t._self._c;
530
468
  return t._self._setupProxy, n("section", t._g(t._b({ style: {
531
469
  width: "100%",
@@ -538,87 +476,100 @@ var Ot = function() {
538
476
  alignItems: "stretch",
539
477
  marginLeft: "auto",
540
478
  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,
544
- Ot,
479
+ } }, "section", t.filterAttrs(t.attributes, "v-on:", !1), !1), t.filterAttrs(t.attributes, "v-on:", !0)), [t._t("default")], 2);
480
+ }, Bt = [], Nt = /* @__PURE__ */ b(
545
481
  Pt,
482
+ jt,
483
+ Bt,
546
484
  !1,
547
485
  null,
548
486
  null,
549
487
  null,
550
488
  null
551
489
  );
552
- const rn = jt.exports, C = "[Builder.io]: ", v = {
490
+ const cn = Nt.exports;
491
+ function y() {
492
+ return typeof window < "u" && typeof document < "u";
493
+ }
494
+ const C = "[Builder.io]: ", v = {
553
495
  log: (...e) => console.log(C, ...e),
554
496
  error: (...e) => console.error(C, ...e),
555
497
  warn: (...e) => console.warn(C, ...e),
556
498
  debug: (...e) => console.debug(C, ...e)
557
- }, x = (e) => e != null, Bt = (e) => {
499
+ }, x = (e) => e != null, Ft = (e) => {
558
500
  if (e === "localhost" || e === "127.0.0.1")
559
501
  return e;
560
502
  const t = e.split(".");
561
503
  return t.length > 2 ? t.slice(1).join(".") : e;
562
- }, M = ({
504
+ }, U = ({
563
505
  name: e,
564
506
  canTrack: t
565
507
  }) => {
566
508
  var n;
567
509
  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);
510
+ return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
511
+ } catch (o) {
512
+ v.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
571
513
  return;
572
514
  }
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 = ({
515
+ }, M = async (e) => U(e), Ut = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(x).join("; "), Mt = [["secure", ""], ["SameSite", "None"]], Wt = ({
577
516
  name: e,
578
517
  value: t,
579
518
  expires: n
580
519
  }) => {
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);
520
+ const r = (y() ? location.protocol === "https:" : !0) ? Mt : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", Ft(window.location.hostname)], ...r];
521
+ return Ut(i);
589
522
  }, W = async ({
590
523
  name: e,
591
524
  value: t,
592
525
  expires: n,
593
- canTrack: r
526
+ canTrack: o
594
527
  }) => {
595
528
  try {
596
- if (!r)
529
+ if (!o)
597
530
  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);
531
+ const r = Wt({
532
+ name: e,
533
+ value: t,
534
+ expires: n
535
+ });
536
+ document.cookie = r;
537
+ } catch (r) {
538
+ v.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
602
539
  }
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 = ({
540
+ }, Lt = "builder.tests", O = (e) => `${Lt}.${e}`, Kt = ({
541
+ contentId: e
542
+ }) => M({
543
+ name: O(e),
544
+ canTrack: !0
545
+ }), zt = ({
546
+ contentId: e
547
+ }) => U({
548
+ name: O(e),
549
+ canTrack: !0
550
+ }), Dt = ({
604
551
  contentId: e,
605
552
  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 = ({
553
+ }) => W({
554
+ name: O(e),
555
+ value: t,
556
+ canTrack: !0
557
+ }), L = (e) => x(e.id) && x(e.variations) && Object.keys(e.variations).length > 0, Gt = ({
607
558
  id: e,
608
559
  variations: t
609
560
  }) => {
610
- var o;
561
+ var r;
611
562
  let n = 0;
612
- const r = Math.random();
563
+ const o = Math.random();
613
564
  for (const s in t) {
614
- const i = (o = t[s]) == null ? void 0 : o.testRatio;
615
- if (n += i, r < n)
565
+ const i = (r = t[s]) == null ? void 0 : r.testRatio;
566
+ if (n += i, o < n)
616
567
  return s;
617
568
  }
618
569
  return e;
619
570
  }, K = (e) => {
620
- const t = zt(e);
621
- return Kt({
571
+ const t = Gt(e);
572
+ return Dt({
622
573
  contentId: e.id,
623
574
  value: t
624
575
  }).catch((n) => {
@@ -637,7 +588,7 @@ const rn = jt.exports, C = "[Builder.io]: ", v = {
637
588
  testVariationId: n.id,
638
589
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
639
590
  };
640
- }, Gt = ({
591
+ }, Ht = ({
641
592
  item: e,
642
593
  canTrack: t
643
594
  }) => {
@@ -647,175 +598,211 @@ const rn = jt.exports, C = "[Builder.io]: ", v = {
647
598
  return;
648
599
  if (!L(e))
649
600
  return e;
650
- const n = Lt({
601
+ const n = zt({
651
602
  contentId: e.id
652
603
  }) || K({
653
604
  variations: e.variations,
654
605
  id: e.id
655
- }), r = z({ item: e, testGroupId: n });
606
+ }), o = z({
607
+ item: e,
608
+ testGroupId: n
609
+ });
656
610
  return {
657
611
  ...e,
658
- ...r
612
+ ...o
659
613
  };
660
- }, Dt = async ({
614
+ }, Jt = async ({
661
615
  item: e,
662
616
  canTrack: t
663
617
  }) => {
664
618
  if (!t || !L(e))
665
619
  return e;
666
- const r = await Wt({
620
+ const o = await Kt({
667
621
  contentId: e.id
668
622
  }) || K({
669
623
  variations: e.variations,
670
624
  id: e.id
671
- }), o = z({ item: e, testGroupId: r });
625
+ }), r = z({
626
+ item: e,
627
+ testGroupId: o
628
+ });
672
629
  return {
673
630
  ...e,
674
- ...o
631
+ ...r
675
632
  };
676
633
  }, I = (e) => x(e) ? e : !0;
677
- function Ht() {
634
+ function Xt() {
678
635
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
679
636
  }
680
- function Jt() {
681
- const e = Ht().fetch;
637
+ function qt() {
638
+ const e = Xt().fetch;
682
639
  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");
640
+ throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
641
+ For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
687
642
  return e;
688
643
  }
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 };
644
+ const Qt = qt();
645
+ function R(e, t = null, n = ".") {
646
+ return Object.keys(e).reduce((o, r) => {
647
+ const s = e[r], i = [t, r].filter(Boolean).join(n);
648
+ return [typeof s == "object", s !== null, !(Array.isArray(s) && s.length === 0)].every(Boolean) ? {
649
+ ...o,
650
+ ...R(s, i, n)
651
+ } : {
652
+ ...o,
653
+ [i]: s
654
+ };
698
655
  }, {});
699
656
  }
700
- const j = "builder.", qt = "options.", Qt = (e) => {
657
+ const j = "builder.", Yt = "options.", Zt = (e) => {
701
658
  const t = {};
702
- return e.forEach((n, r) => {
703
- t[r] = n;
659
+ return e.forEach((n, o) => {
660
+ t[o] = n;
704
661
  }), t;
705
- }, Yt = (e) => {
662
+ }, te = (e) => {
706
663
  if (!e)
707
664
  return {};
708
- 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];
665
+ const t = D(e), n = {};
666
+ return Object.keys(t).forEach((o) => {
667
+ if (o.startsWith(j)) {
668
+ const r = o.replace(j, "").replace(Yt, "");
669
+ n[r] = t[o];
713
670
  }
714
671
  }), n;
715
- }, Zt = () => {
672
+ }, ee = () => {
716
673
  if (!y())
717
674
  return {};
718
675
  const e = new URLSearchParams(window.location.search);
719
- return Yt(e);
720
- }, G = (e) => e instanceof URLSearchParams ? Qt(e) : e, te = "v3", D = (e) => {
676
+ return te(e);
677
+ }, D = (e) => e instanceof URLSearchParams ? Zt(e) : e, ne = "v3", E = (e) => {
721
678
  const {
722
679
  limit: t = 30,
723
680
  userAttributes: n,
724
- query: r,
725
- noTraverse: o = !1,
681
+ query: o,
682
+ noTraverse: r = !1,
726
683
  model: s,
727
684
  apiKey: i,
728
685
  includeRefs: u = !0,
729
686
  enrich: a,
730
687
  locale: d,
731
- apiVersion: m = te
688
+ apiVersion: f = ne
732
689
  } = e;
733
690
  if (!i)
734
691
  throw new Error("Missing API key");
735
- 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(),
743
- ...G(e.options || {})
744
- }, f = V(c);
745
- for (const l in f)
746
- p.searchParams.set(l, String(f[l]));
747
- if (n && p.searchParams.set("userAttributes", JSON.stringify(n)), r) {
748
- const l = V({ query: r });
692
+ if (!["v2", "v3"].includes(f))
693
+ throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${f}'`);
694
+ const p = new URL(`https://cdn.builder.io/api/${f}/content/${s}?apiKey=${i}&limit=${t}&noTraverse=${r}&includeRefs=${u}${d ? `&locale=${d}` : ""}${a ? `&enrich=${a}` : ""}`), c = {
695
+ ...ee(),
696
+ ...D(e.options || {})
697
+ }, m = R(c);
698
+ for (const l in m)
699
+ p.searchParams.set(l, String(m[l]));
700
+ if (n && p.searchParams.set("userAttributes", JSON.stringify(n)), o) {
701
+ const l = R({
702
+ query: o
703
+ });
749
704
  for (const h in l)
750
705
  p.searchParams.set(h, JSON.stringify(l[h]));
751
706
  }
752
707
  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;
708
+ }, oe = (e) => "results" in e;
709
+ async function re(e) {
710
+ const t = await ae({
711
+ ...e,
712
+ limit: 1
713
+ });
714
+ return t && t.results[0] || null;
757
715
  }
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"))
716
+ const se = async (e) => {
717
+ const t = E(e);
718
+ return await (await Qt(t.href)).json();
719
+ }, ie = async (e, t, n = E(e)) => {
720
+ const o = I(e.canTrack);
721
+ if (n.search.includes("preview="), !o || !(y() || w === "reactNative"))
764
722
  return t;
765
723
  try {
766
724
  const r = [];
767
- for (const o of t.results)
768
- r.push(await Dt({ item: o, canTrack: n }));
725
+ for (const s of t.results)
726
+ r.push(await Jt({
727
+ item: s,
728
+ canTrack: o
729
+ }));
769
730
  t.results = r;
770
731
  } catch (r) {
771
732
  v.error("Could not process A/B tests. ", r);
772
733
  }
773
734
  return t;
774
735
  };
775
- async function oe(e) {
736
+ async function ae(e) {
776
737
  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);
738
+ const t = E(e), n = await se(e);
739
+ return oe(n) ? ie(e, n) : (v.error("Error fetching data. ", {
740
+ url: t,
741
+ content: n,
742
+ options: e
743
+ }), null);
779
744
  } catch (t) {
780
745
  return v.error("Error fetching data. ", t), null;
781
746
  }
782
747
  }
783
- const se = () => Promise.resolve().then(() => Ee).then((e) => e.default).catch((e) => {
748
+ const ce = async ({
749
+ builderContextValue: e,
750
+ symbol: t
751
+ }) => {
752
+ if ((t == null ? void 0 : t.model) && (e == null ? void 0 : e.apiKey))
753
+ return re({
754
+ model: t.model,
755
+ apiKey: e.apiKey,
756
+ apiVersion: e.apiVersion,
757
+ ...(t == null ? void 0 : t.entry) && {
758
+ query: {
759
+ id: t.entry
760
+ }
761
+ }
762
+ }).catch((n) => {
763
+ v.error("Could not fetch symbol content: ", n);
764
+ });
765
+ }, le = () => Promise.resolve().then(() => Be).then((e) => e.default).catch((e) => {
784
766
  throw console.error(
785
- "Error while attempting to dynamically import component RenderContentVariants at ../../components/render-content-variants/render-content-variants.vue",
767
+ "Error while attempting to dynamically import component ContentVariants at ../../components/content-variants/content-variants.vue",
786
768
  e
787
769
  ), e;
788
- }), ie = b({
770
+ }), ue = g({
789
771
  name: "builder-symbol",
790
- components: { RenderContentVariants: se },
791
- props: ["attributes", "symbol", "dynamic"],
772
+ components: { "content-variants": le },
773
+ props: [
774
+ "js",
775
+ "attributes",
776
+ "symbol",
777
+ "dynamic",
778
+ "builderContext",
779
+ "builderComponents"
780
+ ],
792
781
  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
782
+ var e;
783
+ return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: V };
806
784
  },
807
785
  mounted() {
808
- this.fetchContent();
786
+ this.setContent();
809
787
  },
810
788
  watch: {
811
789
  onUpdateHook0: {
812
790
  handler() {
813
- this.fetchContent();
791
+ this.setContent();
814
792
  },
815
793
  immediate: !0
816
794
  }
817
795
  },
818
796
  computed: {
797
+ className() {
798
+ var e, t;
799
+ return [
800
+ ...Object.keys(this.attributes.class),
801
+ "builder-symbol",
802
+ (e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
803
+ ((t = this.symbol) == null ? void 0 : t.dynamic) || this.dynamic ? "builder-dynamic-symbol" : void 0
804
+ ].filter(Boolean).join(" ");
805
+ },
819
806
  onUpdateHook0() {
820
807
  return {
821
808
  0: this.symbol
@@ -823,90 +810,64 @@ const se = () => Promise.resolve().then(() => Ee).then((e) => e.default).catch((
823
810
  }
824
811
  },
825
812
  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);
813
+ setContent() {
814
+ this.contentToUse || ce({
815
+ symbol: this.symbol,
816
+ builderContextValue: this.builderContext
817
+ }).then((e) => {
818
+ e && (this.contentToUse = e);
841
819
  });
842
820
  },
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
821
  _classStringToObject(e) {
859
822
  const t = {};
860
823
  if (typeof e != "string")
861
824
  return t;
862
825
  const n = e.trim().split(/\s+/);
863
- for (const r of n)
864
- t[r] = !0;
826
+ for (const o of n)
827
+ t[o] = !0;
865
828
  return t;
866
829
  }
867
830
  }
868
831
  });
869
- var ae = function() {
870
- var r, o, s, i;
832
+ var de = function() {
833
+ var o, r, s, i;
871
834
  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,
835
+ 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: {
836
+ ...(o = t.symbol) == null ? void 0 : o.data,
876
837
  ...t.builderContext.localState,
877
- ...(s = (o = t.contentToUse) == null ? void 0 : o.data) == null ? void 0 : s.state
838
+ ...(s = (r = t.contentToUse) == null ? void 0 : r.data) == null ? void 0 : s.state
878
839
  }, model: (i = t.symbol) == null ? void 0 : i.model, content: t.contentToUse } })], 1);
879
- }, ce = [], le = /* @__PURE__ */ g(
880
- ie,
881
- ae,
882
- ce,
840
+ }, me = [], fe = /* @__PURE__ */ b(
841
+ ue,
842
+ de,
843
+ me,
883
844
  !1,
884
845
  null,
885
846
  null,
886
847
  null,
887
848
  null
888
849
  );
889
- const on = le.exports, ue = b({
850
+ const ln = fe.exports, pe = g({
890
851
  name: "builder-text",
891
852
  props: ["text"]
892
853
  });
893
- var de = function() {
894
- var r;
854
+ var he = function() {
855
+ var o;
895
856
  var t = this, n = t._self._c;
896
857
  return t._self._setupProxy, n("span", { staticClass: "builder-text", style: {
897
858
  outline: "none"
898
- }, domProps: { innerHTML: t._s((r = t.text) == null ? void 0 : r.toString()) } });
899
- }, fe = [], me = /* @__PURE__ */ g(
900
- ue,
901
- de,
902
- fe,
859
+ }, domProps: { innerHTML: t._s(((o = t.text) == null ? void 0 : o.toString()) || "") } });
860
+ }, _e = [], ge = /* @__PURE__ */ b(
861
+ pe,
862
+ he,
863
+ _e,
903
864
  !1,
904
865
  null,
905
866
  null,
906
867
  null,
907
868
  null
908
869
  );
909
- const sn = me.exports, pe = b({
870
+ const un = ge.exports, be = g({
910
871
  name: "builder-video",
911
872
  props: [
912
873
  "autoPlay",
@@ -915,6 +876,7 @@ const sn = me.exports, pe = b({
915
876
  "loop",
916
877
  "playsInline",
917
878
  "attributes",
879
+ "preload",
918
880
  "fit",
919
881
  "position",
920
882
  "video",
@@ -948,38 +910,38 @@ const sn = me.exports, pe = b({
948
910
  }
949
911
  }
950
912
  });
951
- var he = function() {
952
- var r;
913
+ var ye = function() {
914
+ var o;
953
915
  var t = this, n = t._self._c;
954
916
  return t._self._setupProxy, n("video", t._b({ style: {
955
917
  width: "100%",
956
918
  height: "100%",
957
- ...(r = t.attributes) == null ? void 0 : r.style,
919
+ ...(o = t.attributes) == null ? void 0 : o.style,
958
920
  objectFit: t.fit,
959
921
  objectPosition: t.position,
960
922
  borderRadius: 1
961
- }, attrs: { src: t.video || "no-src", poster: t.posterImage } }, "video", t.spreadProps, !1));
962
- }, _e = [], be = /* @__PURE__ */ g(
963
- pe,
964
- he,
965
- _e,
923
+ }, attrs: { preload: t.preload || "metadata", src: t.video || "no-src", poster: t.posterImage } }, "video", t.spreadProps, !1));
924
+ }, ve = [], Se = /* @__PURE__ */ b(
925
+ be,
926
+ ye,
927
+ ve,
966
928
  !1,
967
929
  null,
968
930
  null,
969
931
  null,
970
932
  null
971
933
  );
972
- const an = be.exports, $ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
934
+ const dn = Se.exports, $ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
973
935
  ...t,
974
936
  testVariationId: t.id,
975
937
  id: e == null ? void 0 : e.id
976
- })), ge = ({
938
+ })), ke = ({
977
939
  canTrack: e,
978
940
  content: t
979
941
  }) => !(!($(t).length > 0) || !e);
980
- function ye(e, t, n) {
942
+ function xe(e, t, n) {
981
943
  var i;
982
- function r() {
944
+ function o() {
983
945
  function u(l, h, S) {
984
946
  let k = "";
985
947
  if (S) {
@@ -999,45 +961,47 @@ function ye(e, t, n) {
999
961
  }
1000
962
  return null;
1001
963
  }
1002
- const d = `builder.tests.${e}`, m = a(d), p = t.map((l) => l.id).concat(e);
1003
- if (m && p.includes(m))
1004
- return m;
964
+ const d = `builder.tests.${e}`, f = a(d), p = t.map((l) => l.id).concat(e);
965
+ if (f && p.includes(f))
966
+ return f;
1005
967
  let c = 0;
1006
- const f = Math.random();
968
+ const m = Math.random();
1007
969
  for (let l = 0; l < t.length; l++) {
1008
970
  const h = t[l], S = h.testRatio;
1009
- if (c += S, f < c)
971
+ if (c += S, m < c)
1010
972
  return u(d, h.id), h.id;
1011
973
  }
1012
974
  return u(d, e), e;
1013
975
  }
1014
- const o = r(), s = (i = document.currentScript) == null ? void 0 : i.previousElementSibling;
976
+ const r = o(), s = (i = document.currentScript) == null ? void 0 : i.previousElementSibling;
1015
977
  if (n) {
1016
978
  s.remove();
1017
979
  const u = document.currentScript;
1018
980
  u == null || u.remove();
1019
981
  } else {
1020
- const u = t.concat({ id: e }).filter((a) => a.id !== o).map((a) => `.variant-${a.id} { display: none; }
982
+ const u = t.concat({
983
+ id: e
984
+ }).filter((a) => a.id !== r).map((a) => `.variant-${a.id} { display: none; }
1021
985
  `).join("");
1022
986
  s.innerHTML = u;
1023
987
  }
1024
988
  }
1025
- function ve(e, t, n) {
989
+ function we(e, t, n) {
1026
990
  var a;
1027
991
  if (!navigator.cookieEnabled)
1028
992
  return;
1029
- function r(d) {
1030
- const m = d + "=", p = document.cookie.split(";");
993
+ function o(d) {
994
+ const f = d + "=", p = document.cookie.split(";");
1031
995
  for (let c = 0; c < p.length; c++) {
1032
- let f = p[c];
1033
- for (; f.charAt(0) === " "; )
1034
- f = f.substring(1, f.length);
1035
- if (f.indexOf(m) === 0)
1036
- return f.substring(m.length, f.length);
996
+ let m = p[c];
997
+ for (; m.charAt(0) === " "; )
998
+ m = m.substring(1, m.length);
999
+ if (m.indexOf(f) === 0)
1000
+ return m.substring(f.length, m.length);
1037
1001
  }
1038
1002
  return null;
1039
1003
  }
1040
- const o = `builder.tests.${t}`, s = r(o), i = (a = document.currentScript) == null ? void 0 : a.parentElement, u = e === t;
1004
+ const r = `builder.tests.${t}`, s = o(r), i = (a = document.currentScript) == null ? void 0 : a.parentElement, u = e === t;
1041
1005
  if (s === e) {
1042
1006
  if (u)
1043
1007
  return;
@@ -1047,40 +1011,38 @@ function ve(e, t, n) {
1047
1011
  return;
1048
1012
  }
1049
1013
  }
1050
- const Se = (e) => e === "react" || e === "reactNative", J = Se(w), X = "builderIoAbTest", q = "builderIoRenderContent", ke = () => {
1051
- const e = ye.toString().replace(/\s+/g, " "), t = ve.toString().replace(/\s+/g, " ");
1014
+ const Ce = (e) => e === "react" || e === "reactNative", G = Ce(w), H = "builderIoAbTest", J = "builderIoRenderContent", $e = () => {
1015
+ const e = xe.toString().replace(/\s+/g, " "), t = we.toString().replace(/\s+/g, " ");
1052
1016
  return `
1053
- window.${X} = ${e}
1054
- window.${q} = ${t}
1017
+ window.${H} = ${e}
1018
+ window.${J} = ${t}
1055
1019
  `;
1056
- }, xe = (e, t) => `
1057
- window.${X}("${t}",${JSON.stringify(
1058
- e
1059
- )}, ${J})`, cn = ({
1020
+ }, Te = (e, t) => `
1021
+ window.${H}("${t}",${JSON.stringify(e)}, ${G})`, mn = ({
1060
1022
  contentId: e,
1061
1023
  variationId: t
1062
1024
  }) => `
1063
- window.${q}("${t}", "${e}", ${J})`, we = () => import("./render-content.8d297efd.js").then((e) => e.default).catch((e) => {
1025
+ window.${J}("${t}", "${e}", ${G})`, Ie = () => import("./content.cb96a18a.js").then((e) => e.default).catch((e) => {
1064
1026
  throw console.error(
1065
- "Error while attempting to dynamically import component RenderContent at ../render-content/render-content.vue",
1027
+ "Error while attempting to dynamically import component ContentComponent at ../content/content.vue",
1066
1028
  e
1067
1029
  ), e;
1068
- }), Ce = () => import("./inlined-styles.759d26e8.js").then((e) => e.default).catch((e) => {
1030
+ }), Re = () => import("./inlined-styles.2709172e.js").then((e) => e.default).catch((e) => {
1069
1031
  throw console.error(
1070
1032
  "Error while attempting to dynamically import component InlinedStyles at ../inlined-styles.vue",
1071
1033
  e
1072
1034
  ), e;
1073
- }), $e = () => import("./inlined-script.5b4b5fc3.js").then((e) => e.default).catch((e) => {
1035
+ }), Ve = () => import("./inlined-script.cf733bda.js").then((e) => e.default).catch((e) => {
1074
1036
  throw console.error(
1075
1037
  "Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",
1076
1038
  e
1077
1039
  ), e;
1078
- }), Te = b({
1079
- name: "render-content-variants",
1040
+ }), Ae = g({
1041
+ name: "content-variants",
1080
1042
  components: {
1081
- InlinedScript: $e,
1082
- InlinedStyles: Ce,
1083
- RenderContent: we
1043
+ "inlined-script": Ve,
1044
+ "inlined-styles": Re,
1045
+ "content-component": Ie
1084
1046
  },
1085
1047
  props: [
1086
1048
  "canTrack",
@@ -1097,87 +1059,91 @@ const Se = (e) => e === "react" || e === "reactNative", J = Se(w), X = "builderI
1097
1059
  "enrich"
1098
1060
  ],
1099
1061
  data() {
1100
- var e;
1101
1062
  return {
1102
- shouldRenderVariants: ge({
1063
+ shouldRenderVariants: ke({
1103
1064
  canTrack: I(this.canTrack),
1104
1065
  content: this.content
1105
1066
  }),
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
- getScriptString: ke,
1067
+ getScriptString: $e,
1115
1068
  getVariants: $,
1116
1069
  getDefaultCanTrack: I,
1117
- handleABTestingSync: Gt,
1070
+ handleABTestingSync: Ht,
1118
1071
  TARGET: w
1119
1072
  };
1120
1073
  },
1121
1074
  mounted() {
1122
1075
  this.shouldRenderVariants = !1;
1076
+ },
1077
+ computed: {
1078
+ variantScriptStr() {
1079
+ var e;
1080
+ return Te(
1081
+ $(this.content).map((t) => ({
1082
+ id: t.testVariationId,
1083
+ testRatio: t.testRatio
1084
+ })),
1085
+ ((e = this.content) == null ? void 0 : e.id) || ""
1086
+ );
1087
+ },
1088
+ hideVariantsStyleString() {
1089
+ return $(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
1090
+ }
1123
1091
  }
1124
1092
  });
1125
- var Re = function() {
1126
- var r, o;
1093
+ var Oe = function() {
1094
+ var o, r;
1127
1095
  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({
1096
+ 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) {
1097
+ 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 } });
1098
+ })] : t._e(), n("content-component", t._b({ attrs: { content: t.shouldRenderVariants ? t.content : t.handleABTestingSync({
1131
1099
  item: t.content,
1132
1100
  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", {
1101
+ }), 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
1102
  key: t.shouldRenderVariants.toString()
1135
1103
  }, !1))], 2);
1136
- }, Ie = [], Ve = /* @__PURE__ */ g(
1137
- Te,
1138
- Re,
1139
- Ie,
1104
+ }, Ee = [], Pe = /* @__PURE__ */ b(
1105
+ Ae,
1106
+ Oe,
1107
+ Ee,
1140
1108
  !1,
1141
1109
  null,
1142
1110
  null,
1143
1111
  null,
1144
1112
  null
1145
1113
  );
1146
- const Ae = Ve.exports, Ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1114
+ const je = Pe.exports, Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1147
1115
  __proto__: null,
1148
- default: Ae
1116
+ default: je
1149
1117
  }, Symbol.toStringTag, { value: "Module" }));
1150
- function ln() {
1151
- return !y() || T() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
1118
+ function Ne() {
1119
+ return y() && window.self !== window.top;
1120
+ }
1121
+ function X() {
1122
+ return Ne() && window.location.search.indexOf("builder.frameEditing=") !== -1;
1123
+ }
1124
+ function fn() {
1125
+ return !y() || X() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
1152
1126
  }
1153
- const Oe = (e) => {
1127
+ const pn = [], hn = (e) => ({
1128
+ type: "builder.registerComponent",
1129
+ data: e
1130
+ }), Fe = (e) => {
1154
1131
  const t = e.toString().trim();
1155
1132
  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 = ({
1133
+ }, Ue = (e) => typeof e == "function" ? Fe(e) : A(e), _n = ({
1163
1134
  inputs: e,
1164
1135
  ...t
1165
1136
  }) => ({
1166
1137
  ...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
- )
1138
+ inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, s]) => ({
1139
+ ...o,
1140
+ [r]: Ue(s)
1141
+ }), {}))
1176
1142
  }), B = {};
1177
- function fn(e, t) {
1143
+ function gn(e, t) {
1178
1144
  let n = B[e];
1179
1145
  if (n || (n = B[e] = []), n.push(t), y()) {
1180
- const r = {
1146
+ const o = {
1181
1147
  type: "builder.register",
1182
1148
  data: {
1183
1149
  type: e,
@@ -1185,14 +1151,14 @@ function fn(e, t) {
1185
1151
  }
1186
1152
  };
1187
1153
  try {
1188
- parent.postMessage(r, "*"), parent !== window && window.postMessage(r, "*");
1189
- } catch (o) {
1190
- console.debug("Could not postmessage", o);
1154
+ parent.postMessage(o, "*"), parent !== window && window.postMessage(o, "*");
1155
+ } catch (r) {
1156
+ console.debug("Could not postmessage", r);
1191
1157
  }
1192
1158
  }
1193
1159
  }
1194
1160
  const N = {};
1195
- function mn(e) {
1161
+ function bn(e) {
1196
1162
  if (y()) {
1197
1163
  Object.assign(N, e);
1198
1164
  const t = {
@@ -1202,83 +1168,95 @@ function mn(e) {
1202
1168
  parent.postMessage(t, "*");
1203
1169
  }
1204
1170
  }
1205
- function Be() {
1171
+ function Me() {
1206
1172
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
1207
1173
  const t = Math.random() * 16 | 0;
1208
1174
  return (e == "x" ? t : t & 3 | 8).toString(16);
1209
1175
  });
1210
1176
  }
1211
- function Q() {
1212
- return Be().replace(/-/g, "");
1177
+ function q() {
1178
+ return Me().replace(/-/g, "");
1213
1179
  }
1214
- const Y = "builderSessionId", Ne = async ({
1180
+ const Q = "builderSessionId", We = async ({
1215
1181
  canTrack: e
1216
1182
  }) => {
1217
1183
  if (!e)
1218
1184
  return;
1219
- const t = await U({
1220
- name: Y,
1185
+ const t = await M({
1186
+ name: Q,
1221
1187
  canTrack: e
1222
1188
  });
1223
1189
  if (x(t))
1224
1190
  return t;
1225
1191
  {
1226
- const n = Fe();
1227
- return Me({ id: n, canTrack: e }), n;
1192
+ const n = Le();
1193
+ return Ke({
1194
+ id: n,
1195
+ canTrack: e
1196
+ }), n;
1228
1197
  }
1229
- }, Fe = () => Q(), Me = ({
1198
+ }, Le = () => q(), Ke = ({
1230
1199
  id: e,
1231
1200
  canTrack: t
1232
- }) => W({ name: Y, value: e, canTrack: t }), Z = () => y() && typeof localStorage < "u" ? localStorage : void 0, Ue = ({
1201
+ }) => W({
1202
+ name: Q,
1203
+ value: e,
1204
+ canTrack: t
1205
+ }), Y = () => y() && typeof localStorage < "u" ? localStorage : void 0, ze = ({
1233
1206
  key: e,
1234
1207
  canTrack: t
1235
1208
  }) => {
1236
1209
  var n;
1237
1210
  try {
1238
- return t ? (n = Z()) == null ? void 0 : n.getItem(e) : void 0;
1239
- } catch (r) {
1240
- console.debug("[LocalStorage] GET error: ", r);
1211
+ return t ? (n = Y()) == null ? void 0 : n.getItem(e) : void 0;
1212
+ } catch (o) {
1213
+ console.debug("[LocalStorage] GET error: ", o);
1241
1214
  return;
1242
1215
  }
1243
- }, We = ({
1216
+ }, De = ({
1244
1217
  key: e,
1245
1218
  canTrack: t,
1246
1219
  value: n
1247
1220
  }) => {
1248
- var r;
1221
+ var o;
1249
1222
  try {
1250
- t && ((r = Z()) == null || r.setItem(e, n));
1251
- } catch (o) {
1252
- console.debug("[LocalStorage] SET error: ", o);
1223
+ t && ((o = Y()) == null || o.setItem(e, n));
1224
+ } catch (r) {
1225
+ console.debug("[LocalStorage] SET error: ", r);
1253
1226
  }
1254
- }, tt = "builderVisitorId", Le = ({ canTrack: e }) => {
1227
+ }, Z = "builderVisitorId", Ge = ({
1228
+ canTrack: e
1229
+ }) => {
1255
1230
  if (!e)
1256
1231
  return;
1257
- const t = Ue({
1258
- key: tt,
1232
+ const t = ze({
1233
+ key: Z,
1259
1234
  canTrack: e
1260
1235
  });
1261
1236
  if (x(t))
1262
1237
  return t;
1263
1238
  {
1264
- const n = Ke();
1265
- return ze({ id: n, canTrack: e }), n;
1239
+ const n = He();
1240
+ return Je({
1241
+ id: n,
1242
+ canTrack: e
1243
+ }), n;
1266
1244
  }
1267
- }, Ke = () => Q(), ze = ({
1245
+ }, He = () => q(), Je = ({
1268
1246
  id: e,
1269
1247
  canTrack: t
1270
- }) => We({
1271
- key: tt,
1248
+ }) => De({
1249
+ key: Z,
1272
1250
  value: e,
1273
1251
  canTrack: t
1274
- }), Ge = () => {
1252
+ }), Xe = () => {
1275
1253
  if (y()) {
1276
1254
  const e = new URL(location.href);
1277
1255
  return e.pathname === "" && (e.pathname = "/"), e;
1278
1256
  } else
1279
1257
  return console.warn("Cannot get location for tracking in non-browser environment"), null;
1280
- }, De = () => typeof navigator == "object" && navigator.userAgent || "", He = () => {
1281
- const e = De(), t = {
1258
+ }, qe = () => typeof navigator == "object" && navigator.userAgent || "", Qe = () => {
1259
+ const e = qe(), t = {
1282
1260
  Android() {
1283
1261
  return e.match(/Android/i);
1284
1262
  },
@@ -1297,53 +1275,60 @@ const Y = "builderSessionId", Ne = async ({
1297
1275
  any() {
1298
1276
  return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || w === "reactNative";
1299
1277
  }
1300
- }, n = e.match(/Tablet|iPad/i), r = Ge();
1278
+ }, n = e.match(/Tablet|iPad/i), o = Xe();
1301
1279
  return {
1302
- urlPath: r == null ? void 0 : r.pathname,
1303
- host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
1280
+ urlPath: o == null ? void 0 : o.pathname,
1281
+ host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
1304
1282
  device: n ? "tablet" : t.any() ? "mobile" : "desktop"
1305
1283
  };
1306
- }, Je = async ({
1284
+ }, Ye = async ({
1307
1285
  canTrack: e
1308
1286
  }) => {
1309
1287
  if (!e)
1310
- return { visitorId: void 0, sessionId: void 0 };
1311
- const t = await Ne({ canTrack: e }), n = Le({ canTrack: e });
1288
+ return {
1289
+ visitorId: void 0,
1290
+ sessionId: void 0
1291
+ };
1292
+ const t = await We({
1293
+ canTrack: e
1294
+ }), n = Ge({
1295
+ canTrack: e
1296
+ });
1312
1297
  return {
1313
1298
  sessionId: t,
1314
1299
  visitorId: n
1315
1300
  };
1316
- }, Xe = async ({
1301
+ }, Ze = async ({
1317
1302
  type: e,
1318
1303
  canTrack: t,
1319
1304
  apiKey: n,
1320
- metadata: r,
1321
- ...o
1305
+ metadata: o,
1306
+ ...r
1322
1307
  }) => ({
1323
1308
  type: e,
1324
1309
  data: {
1325
- ...o,
1310
+ ...r,
1326
1311
  metadata: {
1327
1312
  url: location.href,
1328
- ...r
1313
+ ...o
1329
1314
  },
1330
- ...await Je({ canTrack: t }),
1331
- userAttributes: He(),
1315
+ ...await Ye({
1316
+ canTrack: t
1317
+ }),
1318
+ userAttributes: Qe(),
1332
1319
  ownerId: n
1333
1320
  }
1334
1321
  });
1335
- async function qe(e) {
1322
+ async function tn(e) {
1336
1323
  if (!e.apiKey) {
1337
- v.error(
1338
- "Missing API key for track call. Please provide your API key."
1339
- );
1324
+ v.error("Missing API key for track call. Please provide your API key.");
1340
1325
  return;
1341
1326
  }
1342
- if (!!e.canTrack && !T() && !!(y() || w === "reactNative"))
1327
+ if (!!e.canTrack && !X() && !!(y() || w === "reactNative"))
1343
1328
  return fetch("https://cdn.builder.io/api/v1/track", {
1344
1329
  method: "POST",
1345
1330
  body: JSON.stringify({
1346
- events: [await Xe(e)]
1331
+ events: [await Ze(e)]
1347
1332
  }),
1348
1333
  headers: {
1349
1334
  "content-type": "application/json"
@@ -1353,41 +1338,46 @@ async function qe(e) {
1353
1338
  console.error("Failed to track: ", t);
1354
1339
  });
1355
1340
  }
1356
- const pn = (e) => qe({ ...e, canTrack: !0 });
1341
+ const yn = (e) => tn({
1342
+ ...e,
1343
+ canTrack: !0
1344
+ });
1357
1345
  export {
1358
- At as A,
1359
- Ye as B,
1360
- tn as C,
1361
- en as F,
1362
- nn as I,
1363
- rn as S,
1346
+ Ot as A,
1347
+ nn as B,
1348
+ rn as C,
1349
+ je as D,
1350
+ Et as E,
1351
+ sn as F,
1352
+ an as I,
1353
+ cn as S,
1364
1354
  w as T,
1365
- an as V,
1366
- qe as _,
1367
- Ze as a,
1368
- y as b,
1355
+ dn as V,
1356
+ tn as _,
1357
+ on as a,
1358
+ X as b,
1369
1359
  x as c,
1370
- on as d,
1371
- sn as e,
1360
+ V as d,
1361
+ ln as e,
1372
1362
  A as f,
1373
- st as g,
1374
- cn as h,
1375
- T as i,
1376
- un as j,
1377
- E as k,
1363
+ rt as g,
1364
+ un as h,
1365
+ y as i,
1366
+ mn as j,
1367
+ pn as k,
1378
1368
  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,
1387
- oe as u,
1388
- re as v,
1389
- Yt as w,
1390
- pn as x,
1391
- Vt as y,
1392
- Ae as z
1369
+ wt as m,
1370
+ b as n,
1371
+ kt as o,
1372
+ fn as p,
1373
+ re as q,
1374
+ gn as r,
1375
+ _n as s,
1376
+ Qt as t,
1377
+ hn as u,
1378
+ bn as v,
1379
+ ae as w,
1380
+ ie as x,
1381
+ te as y,
1382
+ yn as z
1393
1383
  };