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