@builder.io/sdk-vue 0.7.1-1 → 0.7.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 (1029) hide show
  1. package/package.json +1 -5
  2. package/vue2/package.json +1 -0
  3. package/vue3/package.json +1 -0
  4. package/vue2/lib/browser/block-2cb52597.cjs +0 -3
  5. package/vue2/lib/browser/block-dc97e982.js +0 -181
  6. package/vue2/lib/browser/block-styles-8f571c43.cjs +0 -1
  7. package/vue2/lib/browser/block-styles-bc460f14.js +0 -82
  8. package/vue2/lib/browser/block-wrapper-2d901f3f.cjs +0 -1
  9. package/vue2/lib/browser/block-wrapper-b1a6d78a.js +0 -66
  10. package/vue2/lib/browser/blocks/button/button.vue.d.ts +0 -17
  11. package/vue2/lib/browser/blocks/button/component-info.d.ts +0 -2
  12. package/vue2/lib/browser/blocks/columns/columns.vue.d.ts +0 -44
  13. package/vue2/lib/browser/blocks/columns/component-info.d.ts +0 -2
  14. package/vue2/lib/browser/blocks/custom-code/component-info.d.ts +0 -2
  15. package/vue2/lib/browser/blocks/custom-code/custom-code.vue.d.ts +0 -13
  16. package/vue2/lib/browser/blocks/embed/component-info.d.ts +0 -2
  17. package/vue2/lib/browser/blocks/embed/embed.vue.d.ts +0 -18
  18. package/vue2/lib/browser/blocks/embed/helpers.d.ts +0 -1
  19. package/vue2/lib/browser/blocks/form/component-info.d.ts +0 -2
  20. package/vue2/lib/browser/blocks/fragment/component-info.d.ts +0 -2
  21. package/vue2/lib/browser/blocks/fragment/fragment.vue.d.ts +0 -7
  22. package/vue2/lib/browser/blocks/helpers.d.ts +0 -13
  23. package/vue2/lib/browser/blocks/image/component-info.d.ts +0 -2
  24. package/vue2/lib/browser/blocks/image/image.helpers.d.ts +0 -1
  25. package/vue2/lib/browser/blocks/image/image.vue.d.ts +0 -72
  26. package/vue2/lib/browser/blocks/img/component-info.d.ts +0 -2
  27. package/vue2/lib/browser/blocks/img/img.vue.d.ts +0 -38
  28. package/vue2/lib/browser/blocks/input/component-info.d.ts +0 -2
  29. package/vue2/lib/browser/blocks/raw-text/component-info.d.ts +0 -2
  30. package/vue2/lib/browser/blocks/section/component-info.d.ts +0 -2
  31. package/vue2/lib/browser/blocks/section/section.vue.d.ts +0 -22
  32. package/vue2/lib/browser/blocks/select/component-info.d.ts +0 -2
  33. package/vue2/lib/browser/blocks/submit-button/component-info.d.ts +0 -2
  34. package/vue2/lib/browser/blocks/symbol/component-info.d.ts +0 -2
  35. package/vue2/lib/browser/blocks/symbol/symbol.helpers.d.ts +0 -14
  36. package/vue2/lib/browser/blocks/symbol/symbol.vue.d.ts +0 -37
  37. package/vue2/lib/browser/blocks/text/component-info.d.ts +0 -2
  38. package/vue2/lib/browser/blocks/text/text.vue.d.ts +0 -11
  39. package/vue2/lib/browser/blocks/textarea/component-info.d.ts +0 -2
  40. package/vue2/lib/browser/blocks/video/component-info.d.ts +0 -2
  41. package/vue2/lib/browser/blocks/video/video.vue.d.ts +0 -64
  42. package/vue2/lib/browser/blocks-wrapper-9e8dd7a2.cjs +0 -1
  43. package/vue2/lib/browser/blocks-wrapper-fcb480f0.js +0 -72
  44. package/vue2/lib/browser/component-ref-68e3a5b6.js +0 -102
  45. package/vue2/lib/browser/component-ref-bc236051.cjs +0 -1
  46. package/vue2/lib/browser/components/block/block.helpers.d.ts +0 -13
  47. package/vue2/lib/browser/components/block/block.vue.d.ts +0 -41
  48. package/vue2/lib/browser/components/block/components/block-styles.vue.d.ts +0 -22
  49. package/vue2/lib/browser/components/block/components/block-wrapper.vue.d.ts +0 -29
  50. package/vue2/lib/browser/components/block/components/component-ref/component-ref.helpers.d.ts +0 -30
  51. package/vue2/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +0 -41
  52. package/vue2/lib/browser/components/block/components/interactive-element.vue.d.ts +0 -30
  53. package/vue2/lib/browser/components/block/components/repeated-block.vue.d.ts +0 -16
  54. package/vue2/lib/browser/components/block/types.d.ts +0 -6
  55. package/vue2/lib/browser/components/blocks/blocks-wrapper.vue.d.ts +0 -30
  56. package/vue2/lib/browser/components/blocks/blocks.vue.d.ts +0 -29
  57. package/vue2/lib/browser/components/content/components/enable-editor.vue.d.ts +0 -57
  58. package/vue2/lib/browser/components/content/components/styles.helpers.d.ts +0 -15
  59. package/vue2/lib/browser/components/content/components/styles.vue.d.ts +0 -16
  60. package/vue2/lib/browser/components/content/content.helpers.d.ts +0 -7
  61. package/vue2/lib/browser/components/content/content.types.d.ts +0 -24
  62. package/vue2/lib/browser/components/content/content.vue.d.ts +0 -26
  63. package/vue2/lib/browser/components/content/index.d.ts +0 -1
  64. package/vue2/lib/browser/components/content/wrap-component-ref.d.ts +0 -6
  65. package/vue2/lib/browser/components/content-variants/content-variants.types.d.ts +0 -20
  66. package/vue2/lib/browser/components/content-variants/content-variants.vue.d.ts +0 -50
  67. package/vue2/lib/browser/components/content-variants/helpers.d.ts +0 -18
  68. package/vue2/lib/browser/components/inlined-script.vue.d.ts +0 -11
  69. package/vue2/lib/browser/components/inlined-styles.vue.d.ts +0 -11
  70. package/vue2/lib/browser/constants/builder-registered-components.d.ts +0 -6
  71. package/vue2/lib/browser/constants/device-sizes.d.ts +0 -13
  72. package/vue2/lib/browser/constants/sdk-version.d.ts +0 -1
  73. package/vue2/lib/browser/constants/target.d.ts +0 -2
  74. package/vue2/lib/browser/content-1a8d2e10.cjs +0 -1
  75. package/vue2/lib/browser/content-76b432c4.js +0 -926
  76. package/vue2/lib/browser/context/builder.context.d.ts +0 -15
  77. package/vue2/lib/browser/context/components.context.d.ts +0 -7
  78. package/vue2/lib/browser/context/types.d.ts +0 -35
  79. package/vue2/lib/browser/css-32f0c7fe.cjs +0 -6
  80. package/vue2/lib/browser/css-d68fe0e5.js +0 -21
  81. package/vue2/lib/browser/enable-editor-29804f7c.js +0 -443
  82. package/vue2/lib/browser/enable-editor-58cd5d33.cjs +0 -1
  83. package/vue2/lib/browser/evaluate-5f291a57.cjs +0 -1
  84. package/vue2/lib/browser/evaluate-c21703b5.js +0 -86
  85. package/vue2/lib/browser/functions/apply-patch-with-mutation.d.ts +0 -10
  86. package/vue2/lib/browser/functions/camel-to-kebab-case.d.ts +0 -1
  87. package/vue2/lib/browser/functions/deopt.d.ts +0 -4
  88. package/vue2/lib/browser/functions/evaluate/browser-runtime/browser.d.ts +0 -4
  89. package/vue2/lib/browser/functions/evaluate/browser-runtime/index.d.ts +0 -1
  90. package/vue2/lib/browser/functions/evaluate/choose-eval.d.ts +0 -6
  91. package/vue2/lib/browser/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +0 -2
  92. package/vue2/lib/browser/functions/evaluate/edge-runtime/edge-runtime.d.ts +0 -2
  93. package/vue2/lib/browser/functions/evaluate/edge-runtime/index.d.ts +0 -1
  94. package/vue2/lib/browser/functions/evaluate/evaluate.d.ts +0 -2
  95. package/vue2/lib/browser/functions/evaluate/helpers.d.ts +0 -24
  96. package/vue2/lib/browser/functions/evaluate/index.d.ts +0 -1
  97. package/vue2/lib/browser/functions/evaluate/node-runtime/index.d.ts +0 -1
  98. package/vue2/lib/browser/functions/evaluate/node-runtime/node-runtime.d.ts +0 -2
  99. package/vue2/lib/browser/functions/evaluate/placeholder-runtime.d.ts +0 -2
  100. package/vue2/lib/browser/functions/event-handler-name.d.ts +0 -1
  101. package/vue2/lib/browser/functions/extract-text-styles.d.ts +0 -4
  102. package/vue2/lib/browser/functions/fast-clone.d.ts +0 -4
  103. package/vue2/lib/browser/functions/fetch-builder-props.d.ts +0 -53
  104. package/vue2/lib/browser/functions/get-block-actions-handler.d.ts +0 -8
  105. package/vue2/lib/browser/functions/get-block-actions.d.ts +0 -10
  106. package/vue2/lib/browser/functions/get-block-component-options.d.ts +0 -2
  107. package/vue2/lib/browser/functions/get-block-properties.d.ts +0 -6
  108. package/vue2/lib/browser/functions/get-builder-search-params/index.d.ts +0 -12
  109. package/vue2/lib/browser/functions/get-content/generate-content-url.d.ts +0 -2
  110. package/vue2/lib/browser/functions/get-content/index.d.ts +0 -28
  111. package/vue2/lib/browser/functions/get-content/types.d.ts +0 -142
  112. package/vue2/lib/browser/functions/get-fetch.d.ts +0 -1
  113. package/vue2/lib/browser/functions/get-processed-block.d.ts +0 -10
  114. package/vue2/lib/browser/functions/get-react-native-block-styles.d.ts +0 -7
  115. package/vue2/lib/browser/functions/is-browser.d.ts +0 -1
  116. package/vue2/lib/browser/functions/is-edge-runtime.d.ts +0 -4
  117. package/vue2/lib/browser/functions/is-editing.d.ts +0 -1
  118. package/vue2/lib/browser/functions/is-iframe.d.ts +0 -1
  119. package/vue2/lib/browser/functions/is-node-runtime.d.ts +0 -4
  120. package/vue2/lib/browser/functions/is-previewing.d.ts +0 -1
  121. package/vue2/lib/browser/functions/on-change.d.ts +0 -7
  122. package/vue2/lib/browser/functions/register-component.d.ts +0 -15
  123. package/vue2/lib/browser/functions/register.d.ts +0 -16
  124. package/vue2/lib/browser/functions/sanitize-react-native-block-styles.d.ts +0 -3
  125. package/vue2/lib/browser/functions/set-editor-settings.d.ts +0 -4
  126. package/vue2/lib/browser/functions/set.d.ts +0 -7
  127. package/vue2/lib/browser/functions/track/helpers.d.ts +0 -5
  128. package/vue2/lib/browser/functions/track/index.d.ts +0 -51
  129. package/vue2/lib/browser/functions/track/interaction.d.ts +0 -13
  130. package/vue2/lib/browser/functions/transform-block-properties.d.ts +0 -2
  131. package/vue2/lib/browser/functions/transform-block.d.ts +0 -2
  132. package/vue2/lib/browser/get-block-actions-47eb8bee.js +0 -35
  133. package/vue2/lib/browser/get-block-actions-4f4fdc14.cjs +0 -1
  134. package/vue2/lib/browser/get-block-properties-14335b2d.js +0 -48
  135. package/vue2/lib/browser/get-block-properties-4c2072d0.cjs +0 -1
  136. package/vue2/lib/browser/get-processed-block-7dbd0508.cjs +0 -1
  137. package/vue2/lib/browser/get-processed-block-9c43bb30.js +0 -58
  138. package/vue2/lib/browser/helpers/ab-tests.d.ts +0 -9
  139. package/vue2/lib/browser/helpers/canTrack.d.ts +0 -1
  140. package/vue2/lib/browser/helpers/cookie.d.ts +0 -19
  141. package/vue2/lib/browser/helpers/css.d.ts +0 -7
  142. package/vue2/lib/browser/helpers/flatten.d.ts +0 -6
  143. package/vue2/lib/browser/helpers/localStorage.d.ts +0 -9
  144. package/vue2/lib/browser/helpers/logger.d.ts +0 -6
  145. package/vue2/lib/browser/helpers/nullable.d.ts +0 -2
  146. package/vue2/lib/browser/helpers/preview-lru-cache/get.d.ts +0 -2
  147. package/vue2/lib/browser/helpers/preview-lru-cache/helpers.d.ts +0 -0
  148. package/vue2/lib/browser/helpers/preview-lru-cache/init.d.ts +0 -6
  149. package/vue2/lib/browser/helpers/preview-lru-cache/set.d.ts +0 -7
  150. package/vue2/lib/browser/helpers/preview-lru-cache/types.d.ts +0 -0
  151. package/vue2/lib/browser/helpers/sessionId.d.ts +0 -6
  152. package/vue2/lib/browser/helpers/time.d.ts +0 -1
  153. package/vue2/lib/browser/helpers/url.d.ts +0 -6
  154. package/vue2/lib/browser/helpers/uuid.d.ts +0 -8
  155. package/vue2/lib/browser/helpers/visitorId.d.ts +0 -6
  156. package/vue2/lib/browser/index-7528c088.cjs +0 -32
  157. package/vue2/lib/browser/index-bb14138e.js +0 -1441
  158. package/vue2/lib/browser/index-helpers/blocks-exports.d.ts +0 -88
  159. package/vue2/lib/browser/index-helpers/top-of-file.d.ts +0 -1
  160. package/vue2/lib/browser/index.cjs +0 -1
  161. package/vue2/lib/browser/index.d.ts +0 -7
  162. package/vue2/lib/browser/index.js +0 -29
  163. package/vue2/lib/browser/inlined-script-431b5967.js +0 -23
  164. package/vue2/lib/browser/inlined-script-cc25d25c.cjs +0 -1
  165. package/vue2/lib/browser/inlined-styles-1717d4f0.js +0 -23
  166. package/vue2/lib/browser/inlined-styles-da08b05d.cjs +0 -1
  167. package/vue2/lib/browser/interactive-element-03353733.cjs +0 -1
  168. package/vue2/lib/browser/interactive-element-ac3e10b7.js +0 -42
  169. package/vue2/lib/browser/repeated-block-51e74834.js +0 -38
  170. package/vue2/lib/browser/repeated-block-ba80a339.cjs +0 -1
  171. package/vue2/lib/browser/scripts/init-editing.d.ts +0 -6
  172. package/vue2/lib/browser/server-index.d.ts +0 -15
  173. package/vue2/lib/browser/style.css +0 -1
  174. package/vue2/lib/browser/styles-5eb21cb8.js +0 -89
  175. package/vue2/lib/browser/styles-931da5e8.cjs +0 -31
  176. package/vue2/lib/browser/types/api-version.d.ts +0 -2
  177. package/vue2/lib/browser/types/builder-block.d.ts +0 -66
  178. package/vue2/lib/browser/types/builder-content.d.ts +0 -44
  179. package/vue2/lib/browser/types/builder-props.d.ts +0 -9
  180. package/vue2/lib/browser/types/can-track.d.ts +0 -3
  181. package/vue2/lib/browser/types/components.d.ts +0 -110
  182. package/vue2/lib/browser/types/deep-partial.d.ts +0 -3
  183. package/vue2/lib/browser/types/element.d.ts +0 -59
  184. package/vue2/lib/browser/types/enforced-partials.d.ts +0 -21
  185. package/vue2/lib/browser/types/input.d.ts +0 -121
  186. package/vue2/lib/browser/types/targets.d.ts +0 -1
  187. package/vue2/lib/browser/types/typescript.d.ts +0 -11
  188. package/vue2/lib/edge/block-2c7301d0.js +0 -181
  189. package/vue2/lib/edge/block-40b0f7b5.cjs +0 -3
  190. package/vue2/lib/edge/block-styles-ba691a55.cjs +0 -1
  191. package/vue2/lib/edge/block-styles-bd09453c.js +0 -82
  192. package/vue2/lib/edge/block-wrapper-4210f268.js +0 -66
  193. package/vue2/lib/edge/block-wrapper-8e1bd00b.cjs +0 -1
  194. package/vue2/lib/edge/blocks/button/button.vue.d.ts +0 -17
  195. package/vue2/lib/edge/blocks/button/component-info.d.ts +0 -2
  196. package/vue2/lib/edge/blocks/columns/columns.vue.d.ts +0 -44
  197. package/vue2/lib/edge/blocks/columns/component-info.d.ts +0 -2
  198. package/vue2/lib/edge/blocks/custom-code/component-info.d.ts +0 -2
  199. package/vue2/lib/edge/blocks/custom-code/custom-code.vue.d.ts +0 -13
  200. package/vue2/lib/edge/blocks/embed/component-info.d.ts +0 -2
  201. package/vue2/lib/edge/blocks/embed/embed.vue.d.ts +0 -18
  202. package/vue2/lib/edge/blocks/embed/helpers.d.ts +0 -1
  203. package/vue2/lib/edge/blocks/form/component-info.d.ts +0 -2
  204. package/vue2/lib/edge/blocks/fragment/component-info.d.ts +0 -2
  205. package/vue2/lib/edge/blocks/fragment/fragment.vue.d.ts +0 -7
  206. package/vue2/lib/edge/blocks/helpers.d.ts +0 -13
  207. package/vue2/lib/edge/blocks/image/component-info.d.ts +0 -2
  208. package/vue2/lib/edge/blocks/image/image.helpers.d.ts +0 -1
  209. package/vue2/lib/edge/blocks/image/image.vue.d.ts +0 -72
  210. package/vue2/lib/edge/blocks/img/component-info.d.ts +0 -2
  211. package/vue2/lib/edge/blocks/img/img.vue.d.ts +0 -38
  212. package/vue2/lib/edge/blocks/input/component-info.d.ts +0 -2
  213. package/vue2/lib/edge/blocks/raw-text/component-info.d.ts +0 -2
  214. package/vue2/lib/edge/blocks/section/component-info.d.ts +0 -2
  215. package/vue2/lib/edge/blocks/section/section.vue.d.ts +0 -22
  216. package/vue2/lib/edge/blocks/select/component-info.d.ts +0 -2
  217. package/vue2/lib/edge/blocks/submit-button/component-info.d.ts +0 -2
  218. package/vue2/lib/edge/blocks/symbol/component-info.d.ts +0 -2
  219. package/vue2/lib/edge/blocks/symbol/symbol.helpers.d.ts +0 -14
  220. package/vue2/lib/edge/blocks/symbol/symbol.vue.d.ts +0 -37
  221. package/vue2/lib/edge/blocks/text/component-info.d.ts +0 -2
  222. package/vue2/lib/edge/blocks/text/text.vue.d.ts +0 -11
  223. package/vue2/lib/edge/blocks/textarea/component-info.d.ts +0 -2
  224. package/vue2/lib/edge/blocks/video/component-info.d.ts +0 -2
  225. package/vue2/lib/edge/blocks/video/video.vue.d.ts +0 -64
  226. package/vue2/lib/edge/blocks-wrapper-7e831b51.cjs +0 -1
  227. package/vue2/lib/edge/blocks-wrapper-9c7effa2.js +0 -72
  228. package/vue2/lib/edge/component-ref-02d30d18.cjs +0 -1
  229. package/vue2/lib/edge/component-ref-0404fc38.js +0 -102
  230. package/vue2/lib/edge/components/block/block.helpers.d.ts +0 -13
  231. package/vue2/lib/edge/components/block/block.vue.d.ts +0 -41
  232. package/vue2/lib/edge/components/block/components/block-styles.vue.d.ts +0 -22
  233. package/vue2/lib/edge/components/block/components/block-wrapper.vue.d.ts +0 -29
  234. package/vue2/lib/edge/components/block/components/component-ref/component-ref.helpers.d.ts +0 -30
  235. package/vue2/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +0 -41
  236. package/vue2/lib/edge/components/block/components/interactive-element.vue.d.ts +0 -30
  237. package/vue2/lib/edge/components/block/components/repeated-block.vue.d.ts +0 -16
  238. package/vue2/lib/edge/components/block/types.d.ts +0 -6
  239. package/vue2/lib/edge/components/blocks/blocks-wrapper.vue.d.ts +0 -30
  240. package/vue2/lib/edge/components/blocks/blocks.vue.d.ts +0 -29
  241. package/vue2/lib/edge/components/content/components/enable-editor.vue.d.ts +0 -57
  242. package/vue2/lib/edge/components/content/components/styles.helpers.d.ts +0 -15
  243. package/vue2/lib/edge/components/content/components/styles.vue.d.ts +0 -16
  244. package/vue2/lib/edge/components/content/content.helpers.d.ts +0 -7
  245. package/vue2/lib/edge/components/content/content.types.d.ts +0 -24
  246. package/vue2/lib/edge/components/content/content.vue.d.ts +0 -26
  247. package/vue2/lib/edge/components/content/index.d.ts +0 -1
  248. package/vue2/lib/edge/components/content/wrap-component-ref.d.ts +0 -6
  249. package/vue2/lib/edge/components/content-variants/content-variants.types.d.ts +0 -20
  250. package/vue2/lib/edge/components/content-variants/content-variants.vue.d.ts +0 -50
  251. package/vue2/lib/edge/components/content-variants/helpers.d.ts +0 -18
  252. package/vue2/lib/edge/components/inlined-script.vue.d.ts +0 -11
  253. package/vue2/lib/edge/components/inlined-styles.vue.d.ts +0 -11
  254. package/vue2/lib/edge/constants/builder-registered-components.d.ts +0 -6
  255. package/vue2/lib/edge/constants/device-sizes.d.ts +0 -13
  256. package/vue2/lib/edge/constants/sdk-version.d.ts +0 -1
  257. package/vue2/lib/edge/constants/target.d.ts +0 -2
  258. package/vue2/lib/edge/content-173f7be0.js +0 -926
  259. package/vue2/lib/edge/content-36b34b86.cjs +0 -1
  260. package/vue2/lib/edge/context/builder.context.d.ts +0 -15
  261. package/vue2/lib/edge/context/components.context.d.ts +0 -7
  262. package/vue2/lib/edge/context/types.d.ts +0 -35
  263. package/vue2/lib/edge/css-00393f8a.cjs +0 -6
  264. package/vue2/lib/edge/css-081095c1.js +0 -21
  265. package/vue2/lib/edge/enable-editor-c36df3b5.cjs +0 -1
  266. package/vue2/lib/edge/enable-editor-d3f018c6.js +0 -443
  267. package/vue2/lib/edge/evaluate-47aeba42.cjs +0 -21
  268. package/vue2/lib/edge/evaluate-d31c253f.js +0 -2565
  269. package/vue2/lib/edge/functions/apply-patch-with-mutation.d.ts +0 -10
  270. package/vue2/lib/edge/functions/camel-to-kebab-case.d.ts +0 -1
  271. package/vue2/lib/edge/functions/deopt.d.ts +0 -4
  272. package/vue2/lib/edge/functions/evaluate/browser-runtime/browser.d.ts +0 -4
  273. package/vue2/lib/edge/functions/evaluate/browser-runtime/index.d.ts +0 -1
  274. package/vue2/lib/edge/functions/evaluate/choose-eval.d.ts +0 -6
  275. package/vue2/lib/edge/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +0 -2
  276. package/vue2/lib/edge/functions/evaluate/edge-runtime/edge-runtime.d.ts +0 -2
  277. package/vue2/lib/edge/functions/evaluate/edge-runtime/index.d.ts +0 -1
  278. package/vue2/lib/edge/functions/evaluate/evaluate.d.ts +0 -2
  279. package/vue2/lib/edge/functions/evaluate/helpers.d.ts +0 -24
  280. package/vue2/lib/edge/functions/evaluate/index.d.ts +0 -1
  281. package/vue2/lib/edge/functions/evaluate/node-runtime/index.d.ts +0 -1
  282. package/vue2/lib/edge/functions/evaluate/node-runtime/node-runtime.d.ts +0 -2
  283. package/vue2/lib/edge/functions/evaluate/placeholder-runtime.d.ts +0 -2
  284. package/vue2/lib/edge/functions/event-handler-name.d.ts +0 -1
  285. package/vue2/lib/edge/functions/extract-text-styles.d.ts +0 -4
  286. package/vue2/lib/edge/functions/fast-clone.d.ts +0 -4
  287. package/vue2/lib/edge/functions/fetch-builder-props.d.ts +0 -53
  288. package/vue2/lib/edge/functions/get-block-actions-handler.d.ts +0 -8
  289. package/vue2/lib/edge/functions/get-block-actions.d.ts +0 -10
  290. package/vue2/lib/edge/functions/get-block-component-options.d.ts +0 -2
  291. package/vue2/lib/edge/functions/get-block-properties.d.ts +0 -6
  292. package/vue2/lib/edge/functions/get-builder-search-params/index.d.ts +0 -12
  293. package/vue2/lib/edge/functions/get-content/generate-content-url.d.ts +0 -2
  294. package/vue2/lib/edge/functions/get-content/index.d.ts +0 -28
  295. package/vue2/lib/edge/functions/get-content/types.d.ts +0 -142
  296. package/vue2/lib/edge/functions/get-fetch.d.ts +0 -1
  297. package/vue2/lib/edge/functions/get-processed-block.d.ts +0 -10
  298. package/vue2/lib/edge/functions/get-react-native-block-styles.d.ts +0 -7
  299. package/vue2/lib/edge/functions/is-browser.d.ts +0 -1
  300. package/vue2/lib/edge/functions/is-edge-runtime.d.ts +0 -4
  301. package/vue2/lib/edge/functions/is-editing.d.ts +0 -1
  302. package/vue2/lib/edge/functions/is-iframe.d.ts +0 -1
  303. package/vue2/lib/edge/functions/is-node-runtime.d.ts +0 -4
  304. package/vue2/lib/edge/functions/is-previewing.d.ts +0 -1
  305. package/vue2/lib/edge/functions/on-change.d.ts +0 -7
  306. package/vue2/lib/edge/functions/register-component.d.ts +0 -15
  307. package/vue2/lib/edge/functions/register.d.ts +0 -16
  308. package/vue2/lib/edge/functions/sanitize-react-native-block-styles.d.ts +0 -3
  309. package/vue2/lib/edge/functions/set-editor-settings.d.ts +0 -4
  310. package/vue2/lib/edge/functions/set.d.ts +0 -7
  311. package/vue2/lib/edge/functions/track/helpers.d.ts +0 -5
  312. package/vue2/lib/edge/functions/track/index.d.ts +0 -51
  313. package/vue2/lib/edge/functions/track/interaction.d.ts +0 -13
  314. package/vue2/lib/edge/functions/transform-block-properties.d.ts +0 -2
  315. package/vue2/lib/edge/functions/transform-block.d.ts +0 -2
  316. package/vue2/lib/edge/get-block-actions-33002e58.js +0 -35
  317. package/vue2/lib/edge/get-block-actions-fc18e691.cjs +0 -1
  318. package/vue2/lib/edge/get-block-properties-c1a43e4b.cjs +0 -1
  319. package/vue2/lib/edge/get-block-properties-d0176121.js +0 -48
  320. package/vue2/lib/edge/get-processed-block-1280c9d5.js +0 -52
  321. package/vue2/lib/edge/get-processed-block-2d9f33f5.cjs +0 -1
  322. package/vue2/lib/edge/helpers/ab-tests.d.ts +0 -9
  323. package/vue2/lib/edge/helpers/canTrack.d.ts +0 -1
  324. package/vue2/lib/edge/helpers/cookie.d.ts +0 -19
  325. package/vue2/lib/edge/helpers/css.d.ts +0 -7
  326. package/vue2/lib/edge/helpers/flatten.d.ts +0 -6
  327. package/vue2/lib/edge/helpers/localStorage.d.ts +0 -9
  328. package/vue2/lib/edge/helpers/logger.d.ts +0 -6
  329. package/vue2/lib/edge/helpers/nullable.d.ts +0 -2
  330. package/vue2/lib/edge/helpers/preview-lru-cache/get.d.ts +0 -2
  331. package/vue2/lib/edge/helpers/preview-lru-cache/helpers.d.ts +0 -0
  332. package/vue2/lib/edge/helpers/preview-lru-cache/init.d.ts +0 -6
  333. package/vue2/lib/edge/helpers/preview-lru-cache/set.d.ts +0 -7
  334. package/vue2/lib/edge/helpers/preview-lru-cache/types.d.ts +0 -0
  335. package/vue2/lib/edge/helpers/sessionId.d.ts +0 -6
  336. package/vue2/lib/edge/helpers/time.d.ts +0 -1
  337. package/vue2/lib/edge/helpers/url.d.ts +0 -6
  338. package/vue2/lib/edge/helpers/uuid.d.ts +0 -8
  339. package/vue2/lib/edge/helpers/visitorId.d.ts +0 -6
  340. package/vue2/lib/edge/index-6e4d121e.js +0 -1441
  341. package/vue2/lib/edge/index-ca5baf07.cjs +0 -32
  342. package/vue2/lib/edge/index-helpers/blocks-exports.d.ts +0 -88
  343. package/vue2/lib/edge/index-helpers/top-of-file.d.ts +0 -1
  344. package/vue2/lib/edge/index.cjs +0 -1
  345. package/vue2/lib/edge/index.d.ts +0 -7
  346. package/vue2/lib/edge/index.js +0 -29
  347. package/vue2/lib/edge/inlined-script-7a7207fd.js +0 -23
  348. package/vue2/lib/edge/inlined-script-e57329a5.cjs +0 -1
  349. package/vue2/lib/edge/inlined-styles-9a96b77e.cjs +0 -1
  350. package/vue2/lib/edge/inlined-styles-f109793f.js +0 -23
  351. package/vue2/lib/edge/interactive-element-6a866621.js +0 -42
  352. package/vue2/lib/edge/interactive-element-9c12c501.cjs +0 -1
  353. package/vue2/lib/edge/repeated-block-1093b757.cjs +0 -1
  354. package/vue2/lib/edge/repeated-block-f7b967cf.js +0 -38
  355. package/vue2/lib/edge/scripts/init-editing.d.ts +0 -6
  356. package/vue2/lib/edge/server-index.d.ts +0 -15
  357. package/vue2/lib/edge/style.css +0 -1
  358. package/vue2/lib/edge/styles-a211b4e1.cjs +0 -31
  359. package/vue2/lib/edge/styles-aa2c087b.js +0 -89
  360. package/vue2/lib/edge/types/api-version.d.ts +0 -2
  361. package/vue2/lib/edge/types/builder-block.d.ts +0 -66
  362. package/vue2/lib/edge/types/builder-content.d.ts +0 -44
  363. package/vue2/lib/edge/types/builder-props.d.ts +0 -9
  364. package/vue2/lib/edge/types/can-track.d.ts +0 -3
  365. package/vue2/lib/edge/types/components.d.ts +0 -110
  366. package/vue2/lib/edge/types/deep-partial.d.ts +0 -3
  367. package/vue2/lib/edge/types/element.d.ts +0 -59
  368. package/vue2/lib/edge/types/enforced-partials.d.ts +0 -21
  369. package/vue2/lib/edge/types/input.d.ts +0 -121
  370. package/vue2/lib/edge/types/targets.d.ts +0 -1
  371. package/vue2/lib/edge/types/typescript.d.ts +0 -11
  372. package/vue2/lib/node/block-979d66e1.js +0 -181
  373. package/vue2/lib/node/block-d7e689a7.cjs +0 -3
  374. package/vue2/lib/node/block-styles-00a3a4d7.cjs +0 -1
  375. package/vue2/lib/node/block-styles-50528f05.js +0 -82
  376. package/vue2/lib/node/block-wrapper-8bd5d40b.js +0 -66
  377. package/vue2/lib/node/block-wrapper-d7b449f1.cjs +0 -1
  378. package/vue2/lib/node/blocks/button/button.vue.d.ts +0 -17
  379. package/vue2/lib/node/blocks/button/component-info.d.ts +0 -2
  380. package/vue2/lib/node/blocks/columns/columns.vue.d.ts +0 -44
  381. package/vue2/lib/node/blocks/columns/component-info.d.ts +0 -2
  382. package/vue2/lib/node/blocks/custom-code/component-info.d.ts +0 -2
  383. package/vue2/lib/node/blocks/custom-code/custom-code.vue.d.ts +0 -13
  384. package/vue2/lib/node/blocks/embed/component-info.d.ts +0 -2
  385. package/vue2/lib/node/blocks/embed/embed.vue.d.ts +0 -18
  386. package/vue2/lib/node/blocks/embed/helpers.d.ts +0 -1
  387. package/vue2/lib/node/blocks/form/component-info.d.ts +0 -2
  388. package/vue2/lib/node/blocks/fragment/component-info.d.ts +0 -2
  389. package/vue2/lib/node/blocks/fragment/fragment.vue.d.ts +0 -7
  390. package/vue2/lib/node/blocks/helpers.d.ts +0 -13
  391. package/vue2/lib/node/blocks/image/component-info.d.ts +0 -2
  392. package/vue2/lib/node/blocks/image/image.helpers.d.ts +0 -1
  393. package/vue2/lib/node/blocks/image/image.vue.d.ts +0 -72
  394. package/vue2/lib/node/blocks/img/component-info.d.ts +0 -2
  395. package/vue2/lib/node/blocks/img/img.vue.d.ts +0 -38
  396. package/vue2/lib/node/blocks/input/component-info.d.ts +0 -2
  397. package/vue2/lib/node/blocks/raw-text/component-info.d.ts +0 -2
  398. package/vue2/lib/node/blocks/section/component-info.d.ts +0 -2
  399. package/vue2/lib/node/blocks/section/section.vue.d.ts +0 -22
  400. package/vue2/lib/node/blocks/select/component-info.d.ts +0 -2
  401. package/vue2/lib/node/blocks/submit-button/component-info.d.ts +0 -2
  402. package/vue2/lib/node/blocks/symbol/component-info.d.ts +0 -2
  403. package/vue2/lib/node/blocks/symbol/symbol.helpers.d.ts +0 -14
  404. package/vue2/lib/node/blocks/symbol/symbol.vue.d.ts +0 -37
  405. package/vue2/lib/node/blocks/text/component-info.d.ts +0 -2
  406. package/vue2/lib/node/blocks/text/text.vue.d.ts +0 -11
  407. package/vue2/lib/node/blocks/textarea/component-info.d.ts +0 -2
  408. package/vue2/lib/node/blocks/video/component-info.d.ts +0 -2
  409. package/vue2/lib/node/blocks/video/video.vue.d.ts +0 -64
  410. package/vue2/lib/node/blocks-wrapper-50937fc2.js +0 -72
  411. package/vue2/lib/node/blocks-wrapper-d425bec5.cjs +0 -1
  412. package/vue2/lib/node/component-ref-123ffd3c.js +0 -102
  413. package/vue2/lib/node/component-ref-3ba26510.cjs +0 -1
  414. package/vue2/lib/node/components/block/block.helpers.d.ts +0 -13
  415. package/vue2/lib/node/components/block/block.vue.d.ts +0 -41
  416. package/vue2/lib/node/components/block/components/block-styles.vue.d.ts +0 -22
  417. package/vue2/lib/node/components/block/components/block-wrapper.vue.d.ts +0 -29
  418. package/vue2/lib/node/components/block/components/component-ref/component-ref.helpers.d.ts +0 -30
  419. package/vue2/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +0 -41
  420. package/vue2/lib/node/components/block/components/interactive-element.vue.d.ts +0 -30
  421. package/vue2/lib/node/components/block/components/repeated-block.vue.d.ts +0 -16
  422. package/vue2/lib/node/components/block/types.d.ts +0 -6
  423. package/vue2/lib/node/components/blocks/blocks-wrapper.vue.d.ts +0 -30
  424. package/vue2/lib/node/components/blocks/blocks.vue.d.ts +0 -29
  425. package/vue2/lib/node/components/content/components/enable-editor.vue.d.ts +0 -57
  426. package/vue2/lib/node/components/content/components/styles.helpers.d.ts +0 -15
  427. package/vue2/lib/node/components/content/components/styles.vue.d.ts +0 -16
  428. package/vue2/lib/node/components/content/content.helpers.d.ts +0 -7
  429. package/vue2/lib/node/components/content/content.types.d.ts +0 -24
  430. package/vue2/lib/node/components/content/content.vue.d.ts +0 -26
  431. package/vue2/lib/node/components/content/index.d.ts +0 -1
  432. package/vue2/lib/node/components/content/wrap-component-ref.d.ts +0 -6
  433. package/vue2/lib/node/components/content-variants/content-variants.types.d.ts +0 -20
  434. package/vue2/lib/node/components/content-variants/content-variants.vue.d.ts +0 -50
  435. package/vue2/lib/node/components/content-variants/helpers.d.ts +0 -18
  436. package/vue2/lib/node/components/inlined-script.vue.d.ts +0 -11
  437. package/vue2/lib/node/components/inlined-styles.vue.d.ts +0 -11
  438. package/vue2/lib/node/constants/builder-registered-components.d.ts +0 -6
  439. package/vue2/lib/node/constants/device-sizes.d.ts +0 -13
  440. package/vue2/lib/node/constants/sdk-version.d.ts +0 -1
  441. package/vue2/lib/node/constants/target.d.ts +0 -2
  442. package/vue2/lib/node/content-d31377e7.js +0 -926
  443. package/vue2/lib/node/content-d8e76f5c.cjs +0 -1
  444. package/vue2/lib/node/context/builder.context.d.ts +0 -15
  445. package/vue2/lib/node/context/components.context.d.ts +0 -7
  446. package/vue2/lib/node/context/types.d.ts +0 -35
  447. package/vue2/lib/node/css-469bd1df.js +0 -21
  448. package/vue2/lib/node/css-c566c7a4.cjs +0 -6
  449. package/vue2/lib/node/enable-editor-8c4e460a.cjs +0 -1
  450. package/vue2/lib/node/enable-editor-96dbd852.js +0 -443
  451. package/vue2/lib/node/evaluate-45bac138.cjs +0 -41
  452. package/vue2/lib/node/evaluate-946bbbf4.js +0 -187
  453. package/vue2/lib/node/functions/apply-patch-with-mutation.d.ts +0 -10
  454. package/vue2/lib/node/functions/camel-to-kebab-case.d.ts +0 -1
  455. package/vue2/lib/node/functions/deopt.d.ts +0 -4
  456. package/vue2/lib/node/functions/evaluate/browser-runtime/browser.d.ts +0 -4
  457. package/vue2/lib/node/functions/evaluate/browser-runtime/index.d.ts +0 -1
  458. package/vue2/lib/node/functions/evaluate/choose-eval.d.ts +0 -6
  459. package/vue2/lib/node/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +0 -2
  460. package/vue2/lib/node/functions/evaluate/edge-runtime/edge-runtime.d.ts +0 -2
  461. package/vue2/lib/node/functions/evaluate/edge-runtime/index.d.ts +0 -1
  462. package/vue2/lib/node/functions/evaluate/evaluate.d.ts +0 -2
  463. package/vue2/lib/node/functions/evaluate/helpers.d.ts +0 -24
  464. package/vue2/lib/node/functions/evaluate/index.d.ts +0 -1
  465. package/vue2/lib/node/functions/evaluate/node-runtime/index.d.ts +0 -1
  466. package/vue2/lib/node/functions/evaluate/node-runtime/node-runtime.d.ts +0 -2
  467. package/vue2/lib/node/functions/evaluate/placeholder-runtime.d.ts +0 -2
  468. package/vue2/lib/node/functions/event-handler-name.d.ts +0 -1
  469. package/vue2/lib/node/functions/extract-text-styles.d.ts +0 -4
  470. package/vue2/lib/node/functions/fast-clone.d.ts +0 -4
  471. package/vue2/lib/node/functions/fetch-builder-props.d.ts +0 -53
  472. package/vue2/lib/node/functions/get-block-actions-handler.d.ts +0 -8
  473. package/vue2/lib/node/functions/get-block-actions.d.ts +0 -10
  474. package/vue2/lib/node/functions/get-block-component-options.d.ts +0 -2
  475. package/vue2/lib/node/functions/get-block-properties.d.ts +0 -6
  476. package/vue2/lib/node/functions/get-builder-search-params/index.d.ts +0 -12
  477. package/vue2/lib/node/functions/get-content/generate-content-url.d.ts +0 -2
  478. package/vue2/lib/node/functions/get-content/index.d.ts +0 -28
  479. package/vue2/lib/node/functions/get-content/types.d.ts +0 -142
  480. package/vue2/lib/node/functions/get-fetch.d.ts +0 -1
  481. package/vue2/lib/node/functions/get-processed-block.d.ts +0 -10
  482. package/vue2/lib/node/functions/get-react-native-block-styles.d.ts +0 -7
  483. package/vue2/lib/node/functions/is-browser.d.ts +0 -1
  484. package/vue2/lib/node/functions/is-edge-runtime.d.ts +0 -4
  485. package/vue2/lib/node/functions/is-editing.d.ts +0 -1
  486. package/vue2/lib/node/functions/is-iframe.d.ts +0 -1
  487. package/vue2/lib/node/functions/is-node-runtime.d.ts +0 -4
  488. package/vue2/lib/node/functions/is-previewing.d.ts +0 -1
  489. package/vue2/lib/node/functions/on-change.d.ts +0 -7
  490. package/vue2/lib/node/functions/register-component.d.ts +0 -15
  491. package/vue2/lib/node/functions/register.d.ts +0 -16
  492. package/vue2/lib/node/functions/sanitize-react-native-block-styles.d.ts +0 -3
  493. package/vue2/lib/node/functions/set-editor-settings.d.ts +0 -4
  494. package/vue2/lib/node/functions/set.d.ts +0 -7
  495. package/vue2/lib/node/functions/track/helpers.d.ts +0 -5
  496. package/vue2/lib/node/functions/track/index.d.ts +0 -51
  497. package/vue2/lib/node/functions/track/interaction.d.ts +0 -13
  498. package/vue2/lib/node/functions/transform-block-properties.d.ts +0 -2
  499. package/vue2/lib/node/functions/transform-block.d.ts +0 -2
  500. package/vue2/lib/node/get-block-actions-a7c25deb.js +0 -35
  501. package/vue2/lib/node/get-block-actions-fa0f60c5.cjs +0 -1
  502. package/vue2/lib/node/get-block-properties-5524be2a.js +0 -48
  503. package/vue2/lib/node/get-block-properties-75f3f91a.cjs +0 -1
  504. package/vue2/lib/node/get-processed-block-231c050b.js +0 -52
  505. package/vue2/lib/node/get-processed-block-e246d1ed.cjs +0 -1
  506. package/vue2/lib/node/helpers/ab-tests.d.ts +0 -9
  507. package/vue2/lib/node/helpers/canTrack.d.ts +0 -1
  508. package/vue2/lib/node/helpers/cookie.d.ts +0 -19
  509. package/vue2/lib/node/helpers/css.d.ts +0 -7
  510. package/vue2/lib/node/helpers/flatten.d.ts +0 -6
  511. package/vue2/lib/node/helpers/localStorage.d.ts +0 -9
  512. package/vue2/lib/node/helpers/logger.d.ts +0 -6
  513. package/vue2/lib/node/helpers/nullable.d.ts +0 -2
  514. package/vue2/lib/node/helpers/preview-lru-cache/get.d.ts +0 -2
  515. package/vue2/lib/node/helpers/preview-lru-cache/helpers.d.ts +0 -0
  516. package/vue2/lib/node/helpers/preview-lru-cache/init.d.ts +0 -6
  517. package/vue2/lib/node/helpers/preview-lru-cache/set.d.ts +0 -7
  518. package/vue2/lib/node/helpers/preview-lru-cache/types.d.ts +0 -0
  519. package/vue2/lib/node/helpers/sessionId.d.ts +0 -6
  520. package/vue2/lib/node/helpers/time.d.ts +0 -1
  521. package/vue2/lib/node/helpers/url.d.ts +0 -6
  522. package/vue2/lib/node/helpers/uuid.d.ts +0 -8
  523. package/vue2/lib/node/helpers/visitorId.d.ts +0 -6
  524. package/vue2/lib/node/index-7ce12494.js +0 -1441
  525. package/vue2/lib/node/index-ea4df31a.cjs +0 -32
  526. package/vue2/lib/node/index-helpers/blocks-exports.d.ts +0 -88
  527. package/vue2/lib/node/index-helpers/top-of-file.d.ts +0 -1
  528. package/vue2/lib/node/index.cjs +0 -1
  529. package/vue2/lib/node/index.d.ts +0 -7
  530. package/vue2/lib/node/index.js +0 -29
  531. package/vue2/lib/node/inlined-script-073d04d2.js +0 -23
  532. package/vue2/lib/node/inlined-script-dccfb7fc.cjs +0 -1
  533. package/vue2/lib/node/inlined-styles-08dbb945.cjs +0 -1
  534. package/vue2/lib/node/inlined-styles-8982c8a6.js +0 -23
  535. package/vue2/lib/node/interactive-element-caabd2d9.js +0 -42
  536. package/vue2/lib/node/interactive-element-fc5a4f1d.cjs +0 -1
  537. package/vue2/lib/node/repeated-block-0ab8e6be.js +0 -38
  538. package/vue2/lib/node/repeated-block-f65d29a5.cjs +0 -1
  539. package/vue2/lib/node/scripts/init-editing.d.ts +0 -6
  540. package/vue2/lib/node/server-index.d.ts +0 -15
  541. package/vue2/lib/node/style.css +0 -1
  542. package/vue2/lib/node/styles-6e09a0cc.js +0 -89
  543. package/vue2/lib/node/styles-96606872.cjs +0 -31
  544. package/vue2/lib/node/types/api-version.d.ts +0 -2
  545. package/vue2/lib/node/types/builder-block.d.ts +0 -66
  546. package/vue2/lib/node/types/builder-content.d.ts +0 -44
  547. package/vue2/lib/node/types/builder-props.d.ts +0 -9
  548. package/vue2/lib/node/types/can-track.d.ts +0 -3
  549. package/vue2/lib/node/types/components.d.ts +0 -110
  550. package/vue2/lib/node/types/deep-partial.d.ts +0 -3
  551. package/vue2/lib/node/types/element.d.ts +0 -59
  552. package/vue2/lib/node/types/enforced-partials.d.ts +0 -21
  553. package/vue2/lib/node/types/input.d.ts +0 -121
  554. package/vue2/lib/node/types/targets.d.ts +0 -1
  555. package/vue2/lib/node/types/typescript.d.ts +0 -11
  556. package/vue3/lib/browser/block-wrapper.09b54dd3.js +0 -54
  557. package/vue3/lib/browser/block-wrapper.49af98a6.cjs +0 -1
  558. package/vue3/lib/browser/blocks/button/button.vue.d.ts +0 -30
  559. package/vue3/lib/browser/blocks/button/component-info.d.ts +0 -2
  560. package/vue3/lib/browser/blocks/columns/columns.vue.d.ts +0 -69
  561. package/vue3/lib/browser/blocks/columns/component-info.d.ts +0 -2
  562. package/vue3/lib/browser/blocks/custom-code/component-info.d.ts +0 -2
  563. package/vue3/lib/browser/blocks/custom-code/custom-code.vue.d.ts +0 -20
  564. package/vue3/lib/browser/blocks/embed/component-info.d.ts +0 -2
  565. package/vue3/lib/browser/blocks/embed/embed.vue.d.ts +0 -22
  566. package/vue3/lib/browser/blocks/embed/helpers.d.ts +0 -1
  567. package/vue3/lib/browser/blocks/form/component-info.d.ts +0 -2
  568. package/vue3/lib/browser/blocks/fragment/component-info.d.ts +0 -2
  569. package/vue3/lib/browser/blocks/fragment/fragment.vue.d.ts +0 -7
  570. package/vue3/lib/browser/blocks/helpers.d.ts +0 -13
  571. package/vue3/lib/browser/blocks/image/component-info.d.ts +0 -2
  572. package/vue3/lib/browser/blocks/image/image.helpers.d.ts +0 -1
  573. package/vue3/lib/browser/blocks/image/image.vue.d.ts +0 -72
  574. package/vue3/lib/browser/blocks/img/component-info.d.ts +0 -2
  575. package/vue3/lib/browser/blocks/img/img.vue.d.ts +0 -38
  576. package/vue3/lib/browser/blocks/input/component-info.d.ts +0 -2
  577. package/vue3/lib/browser/blocks/raw-text/component-info.d.ts +0 -2
  578. package/vue3/lib/browser/blocks/section/component-info.d.ts +0 -2
  579. package/vue3/lib/browser/blocks/section/section.vue.d.ts +0 -22
  580. package/vue3/lib/browser/blocks/select/component-info.d.ts +0 -2
  581. package/vue3/lib/browser/blocks/submit-button/component-info.d.ts +0 -2
  582. package/vue3/lib/browser/blocks/symbol/component-info.d.ts +0 -2
  583. package/vue3/lib/browser/blocks/symbol/symbol.helpers.d.ts +0 -14
  584. package/vue3/lib/browser/blocks/symbol/symbol.vue.d.ts +0 -56
  585. package/vue3/lib/browser/blocks/text/component-info.d.ts +0 -2
  586. package/vue3/lib/browser/blocks/text/text.vue.d.ts +0 -11
  587. package/vue3/lib/browser/blocks/textarea/component-info.d.ts +0 -2
  588. package/vue3/lib/browser/blocks/video/component-info.d.ts +0 -2
  589. package/vue3/lib/browser/blocks/video/video.vue.d.ts +0 -64
  590. package/vue3/lib/browser/component-ref.63194b25.js +0 -111
  591. package/vue3/lib/browser/component-ref.78f795cd.cjs +0 -1
  592. package/vue3/lib/browser/components/block/block.helpers.d.ts +0 -13
  593. package/vue3/lib/browser/components/block/block.vue.d.ts +0 -41
  594. package/vue3/lib/browser/components/block/components/block-styles.vue.d.ts +0 -22
  595. package/vue3/lib/browser/components/block/components/block-wrapper.vue.d.ts +0 -29
  596. package/vue3/lib/browser/components/block/components/component-ref/component-ref.helpers.d.ts +0 -30
  597. package/vue3/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +0 -41
  598. package/vue3/lib/browser/components/block/components/interactive-element.vue.d.ts +0 -30
  599. package/vue3/lib/browser/components/block/components/repeated-block.vue.d.ts +0 -16
  600. package/vue3/lib/browser/components/block/types.d.ts +0 -6
  601. package/vue3/lib/browser/components/blocks/blocks-wrapper.vue.d.ts +0 -30
  602. package/vue3/lib/browser/components/blocks/blocks.vue.d.ts +0 -29
  603. package/vue3/lib/browser/components/content/components/enable-editor.vue.d.ts +0 -91
  604. package/vue3/lib/browser/components/content/components/styles.helpers.d.ts +0 -15
  605. package/vue3/lib/browser/components/content/components/styles.vue.d.ts +0 -16
  606. package/vue3/lib/browser/components/content/content.helpers.d.ts +0 -7
  607. package/vue3/lib/browser/components/content/content.types.d.ts +0 -24
  608. package/vue3/lib/browser/components/content/content.vue.d.ts +0 -69
  609. package/vue3/lib/browser/components/content/index.d.ts +0 -1
  610. package/vue3/lib/browser/components/content/wrap-component-ref.d.ts +0 -6
  611. package/vue3/lib/browser/components/content-variants/content-variants.types.d.ts +0 -20
  612. package/vue3/lib/browser/components/content-variants/content-variants.vue.d.ts +0 -73
  613. package/vue3/lib/browser/components/content-variants/helpers.d.ts +0 -41
  614. package/vue3/lib/browser/components/inlined-script.vue.d.ts +0 -11
  615. package/vue3/lib/browser/components/inlined-styles.vue.d.ts +0 -11
  616. package/vue3/lib/browser/constants/builder-registered-components.d.ts +0 -6
  617. package/vue3/lib/browser/constants/device-sizes.d.ts +0 -13
  618. package/vue3/lib/browser/constants/sdk-version.d.ts +0 -1
  619. package/vue3/lib/browser/constants/target.d.ts +0 -2
  620. package/vue3/lib/browser/context/builder.context.d.ts +0 -15
  621. package/vue3/lib/browser/context/components.context.d.ts +0 -7
  622. package/vue3/lib/browser/context/types.d.ts +0 -35
  623. package/vue3/lib/browser/functions/apply-patch-with-mutation.d.ts +0 -10
  624. package/vue3/lib/browser/functions/camel-to-kebab-case.d.ts +0 -1
  625. package/vue3/lib/browser/functions/deopt.d.ts +0 -4
  626. package/vue3/lib/browser/functions/evaluate/browser-runtime/browser.d.ts +0 -4
  627. package/vue3/lib/browser/functions/evaluate/browser-runtime/index.d.ts +0 -1
  628. package/vue3/lib/browser/functions/evaluate/choose-eval.d.ts +0 -6
  629. package/vue3/lib/browser/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +0 -2
  630. package/vue3/lib/browser/functions/evaluate/edge-runtime/edge-runtime.d.ts +0 -2
  631. package/vue3/lib/browser/functions/evaluate/edge-runtime/index.d.ts +0 -1
  632. package/vue3/lib/browser/functions/evaluate/evaluate.d.ts +0 -2
  633. package/vue3/lib/browser/functions/evaluate/helpers.d.ts +0 -24
  634. package/vue3/lib/browser/functions/evaluate/index.d.ts +0 -1
  635. package/vue3/lib/browser/functions/evaluate/node-runtime/index.d.ts +0 -1
  636. package/vue3/lib/browser/functions/evaluate/node-runtime/node-runtime.d.ts +0 -2
  637. package/vue3/lib/browser/functions/evaluate/placeholder-runtime.d.ts +0 -2
  638. package/vue3/lib/browser/functions/event-handler-name.d.ts +0 -1
  639. package/vue3/lib/browser/functions/extract-text-styles.d.ts +0 -4
  640. package/vue3/lib/browser/functions/fast-clone.d.ts +0 -4
  641. package/vue3/lib/browser/functions/fetch-builder-props.d.ts +0 -53
  642. package/vue3/lib/browser/functions/get-block-actions-handler.d.ts +0 -8
  643. package/vue3/lib/browser/functions/get-block-actions.d.ts +0 -10
  644. package/vue3/lib/browser/functions/get-block-component-options.d.ts +0 -2
  645. package/vue3/lib/browser/functions/get-block-properties.d.ts +0 -6
  646. package/vue3/lib/browser/functions/get-builder-search-params/index.d.ts +0 -12
  647. package/vue3/lib/browser/functions/get-content/generate-content-url.d.ts +0 -2
  648. package/vue3/lib/browser/functions/get-content/index.d.ts +0 -28
  649. package/vue3/lib/browser/functions/get-content/types.d.ts +0 -142
  650. package/vue3/lib/browser/functions/get-fetch.d.ts +0 -1
  651. package/vue3/lib/browser/functions/get-processed-block.d.ts +0 -10
  652. package/vue3/lib/browser/functions/get-react-native-block-styles.d.ts +0 -7
  653. package/vue3/lib/browser/functions/is-browser.d.ts +0 -1
  654. package/vue3/lib/browser/functions/is-edge-runtime.d.ts +0 -4
  655. package/vue3/lib/browser/functions/is-editing.d.ts +0 -1
  656. package/vue3/lib/browser/functions/is-iframe.d.ts +0 -1
  657. package/vue3/lib/browser/functions/is-node-runtime.d.ts +0 -4
  658. package/vue3/lib/browser/functions/is-previewing.d.ts +0 -1
  659. package/vue3/lib/browser/functions/on-change.d.ts +0 -7
  660. package/vue3/lib/browser/functions/register-component.d.ts +0 -15
  661. package/vue3/lib/browser/functions/register.d.ts +0 -16
  662. package/vue3/lib/browser/functions/sanitize-react-native-block-styles.d.ts +0 -3
  663. package/vue3/lib/browser/functions/set-editor-settings.d.ts +0 -4
  664. package/vue3/lib/browser/functions/set.d.ts +0 -7
  665. package/vue3/lib/browser/functions/track/helpers.d.ts +0 -5
  666. package/vue3/lib/browser/functions/track/index.d.ts +0 -51
  667. package/vue3/lib/browser/functions/track/interaction.d.ts +0 -13
  668. package/vue3/lib/browser/functions/transform-block-properties.d.ts +0 -2
  669. package/vue3/lib/browser/functions/transform-block.d.ts +0 -2
  670. package/vue3/lib/browser/get-block-actions.2e99e179.cjs +0 -1
  671. package/vue3/lib/browser/get-block-actions.4f330889.js +0 -79
  672. package/vue3/lib/browser/helpers/ab-tests.d.ts +0 -9
  673. package/vue3/lib/browser/helpers/canTrack.d.ts +0 -1
  674. package/vue3/lib/browser/helpers/cookie.d.ts +0 -19
  675. package/vue3/lib/browser/helpers/css.d.ts +0 -7
  676. package/vue3/lib/browser/helpers/flatten.d.ts +0 -6
  677. package/vue3/lib/browser/helpers/localStorage.d.ts +0 -9
  678. package/vue3/lib/browser/helpers/logger.d.ts +0 -6
  679. package/vue3/lib/browser/helpers/nullable.d.ts +0 -2
  680. package/vue3/lib/browser/helpers/preview-lru-cache/get.d.ts +0 -2
  681. package/vue3/lib/browser/helpers/preview-lru-cache/helpers.d.ts +0 -0
  682. package/vue3/lib/browser/helpers/preview-lru-cache/init.d.ts +0 -6
  683. package/vue3/lib/browser/helpers/preview-lru-cache/set.d.ts +0 -7
  684. package/vue3/lib/browser/helpers/preview-lru-cache/types.d.ts +0 -0
  685. package/vue3/lib/browser/helpers/sessionId.d.ts +0 -6
  686. package/vue3/lib/browser/helpers/time.d.ts +0 -1
  687. package/vue3/lib/browser/helpers/url.d.ts +0 -6
  688. package/vue3/lib/browser/helpers/uuid.d.ts +0 -8
  689. package/vue3/lib/browser/helpers/visitorId.d.ts +0 -6
  690. package/vue3/lib/browser/index-helpers/blocks-exports.d.ts +0 -111
  691. package/vue3/lib/browser/index-helpers/top-of-file.d.ts +0 -1
  692. package/vue3/lib/browser/index.88b433c6.js +0 -3281
  693. package/vue3/lib/browser/index.c04232f6.cjs +0 -69
  694. package/vue3/lib/browser/index.cjs +0 -1
  695. package/vue3/lib/browser/index.d.ts +0 -7
  696. package/vue3/lib/browser/index.js +0 -29
  697. package/vue3/lib/browser/repeated-block.067ee555.js +0 -33
  698. package/vue3/lib/browser/repeated-block.ef8176d8.cjs +0 -1
  699. package/vue3/lib/browser/scripts/init-editing.d.ts +0 -6
  700. package/vue3/lib/browser/server-index.d.ts +0 -15
  701. package/vue3/lib/browser/style.css +0 -1
  702. package/vue3/lib/browser/types/api-version.d.ts +0 -2
  703. package/vue3/lib/browser/types/builder-block.d.ts +0 -66
  704. package/vue3/lib/browser/types/builder-content.d.ts +0 -44
  705. package/vue3/lib/browser/types/builder-props.d.ts +0 -9
  706. package/vue3/lib/browser/types/can-track.d.ts +0 -3
  707. package/vue3/lib/browser/types/components.d.ts +0 -110
  708. package/vue3/lib/browser/types/deep-partial.d.ts +0 -3
  709. package/vue3/lib/browser/types/element.d.ts +0 -59
  710. package/vue3/lib/browser/types/enforced-partials.d.ts +0 -21
  711. package/vue3/lib/browser/types/input.d.ts +0 -121
  712. package/vue3/lib/browser/types/targets.d.ts +0 -1
  713. package/vue3/lib/browser/types/typescript.d.ts +0 -11
  714. package/vue3/lib/edge/block-wrapper.2d4ec833.cjs +0 -1
  715. package/vue3/lib/edge/block-wrapper.4b2f2fb3.js +0 -54
  716. package/vue3/lib/edge/blocks/button/button.vue.d.ts +0 -30
  717. package/vue3/lib/edge/blocks/button/component-info.d.ts +0 -2
  718. package/vue3/lib/edge/blocks/columns/columns.vue.d.ts +0 -69
  719. package/vue3/lib/edge/blocks/columns/component-info.d.ts +0 -2
  720. package/vue3/lib/edge/blocks/custom-code/component-info.d.ts +0 -2
  721. package/vue3/lib/edge/blocks/custom-code/custom-code.vue.d.ts +0 -20
  722. package/vue3/lib/edge/blocks/embed/component-info.d.ts +0 -2
  723. package/vue3/lib/edge/blocks/embed/embed.vue.d.ts +0 -22
  724. package/vue3/lib/edge/blocks/embed/helpers.d.ts +0 -1
  725. package/vue3/lib/edge/blocks/form/component-info.d.ts +0 -2
  726. package/vue3/lib/edge/blocks/fragment/component-info.d.ts +0 -2
  727. package/vue3/lib/edge/blocks/fragment/fragment.vue.d.ts +0 -7
  728. package/vue3/lib/edge/blocks/helpers.d.ts +0 -13
  729. package/vue3/lib/edge/blocks/image/component-info.d.ts +0 -2
  730. package/vue3/lib/edge/blocks/image/image.helpers.d.ts +0 -1
  731. package/vue3/lib/edge/blocks/image/image.vue.d.ts +0 -72
  732. package/vue3/lib/edge/blocks/img/component-info.d.ts +0 -2
  733. package/vue3/lib/edge/blocks/img/img.vue.d.ts +0 -38
  734. package/vue3/lib/edge/blocks/input/component-info.d.ts +0 -2
  735. package/vue3/lib/edge/blocks/raw-text/component-info.d.ts +0 -2
  736. package/vue3/lib/edge/blocks/section/component-info.d.ts +0 -2
  737. package/vue3/lib/edge/blocks/section/section.vue.d.ts +0 -22
  738. package/vue3/lib/edge/blocks/select/component-info.d.ts +0 -2
  739. package/vue3/lib/edge/blocks/submit-button/component-info.d.ts +0 -2
  740. package/vue3/lib/edge/blocks/symbol/component-info.d.ts +0 -2
  741. package/vue3/lib/edge/blocks/symbol/symbol.helpers.d.ts +0 -14
  742. package/vue3/lib/edge/blocks/symbol/symbol.vue.d.ts +0 -56
  743. package/vue3/lib/edge/blocks/text/component-info.d.ts +0 -2
  744. package/vue3/lib/edge/blocks/text/text.vue.d.ts +0 -11
  745. package/vue3/lib/edge/blocks/textarea/component-info.d.ts +0 -2
  746. package/vue3/lib/edge/blocks/video/component-info.d.ts +0 -2
  747. package/vue3/lib/edge/blocks/video/video.vue.d.ts +0 -64
  748. package/vue3/lib/edge/component-ref.98beaea3.js +0 -111
  749. package/vue3/lib/edge/component-ref.d8514fb0.cjs +0 -1
  750. package/vue3/lib/edge/components/block/block.helpers.d.ts +0 -13
  751. package/vue3/lib/edge/components/block/block.vue.d.ts +0 -41
  752. package/vue3/lib/edge/components/block/components/block-styles.vue.d.ts +0 -22
  753. package/vue3/lib/edge/components/block/components/block-wrapper.vue.d.ts +0 -29
  754. package/vue3/lib/edge/components/block/components/component-ref/component-ref.helpers.d.ts +0 -30
  755. package/vue3/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +0 -41
  756. package/vue3/lib/edge/components/block/components/interactive-element.vue.d.ts +0 -30
  757. package/vue3/lib/edge/components/block/components/repeated-block.vue.d.ts +0 -16
  758. package/vue3/lib/edge/components/block/types.d.ts +0 -6
  759. package/vue3/lib/edge/components/blocks/blocks-wrapper.vue.d.ts +0 -30
  760. package/vue3/lib/edge/components/blocks/blocks.vue.d.ts +0 -29
  761. package/vue3/lib/edge/components/content/components/enable-editor.vue.d.ts +0 -91
  762. package/vue3/lib/edge/components/content/components/styles.helpers.d.ts +0 -15
  763. package/vue3/lib/edge/components/content/components/styles.vue.d.ts +0 -16
  764. package/vue3/lib/edge/components/content/content.helpers.d.ts +0 -7
  765. package/vue3/lib/edge/components/content/content.types.d.ts +0 -24
  766. package/vue3/lib/edge/components/content/content.vue.d.ts +0 -69
  767. package/vue3/lib/edge/components/content/index.d.ts +0 -1
  768. package/vue3/lib/edge/components/content/wrap-component-ref.d.ts +0 -6
  769. package/vue3/lib/edge/components/content-variants/content-variants.types.d.ts +0 -20
  770. package/vue3/lib/edge/components/content-variants/content-variants.vue.d.ts +0 -73
  771. package/vue3/lib/edge/components/content-variants/helpers.d.ts +0 -41
  772. package/vue3/lib/edge/components/inlined-script.vue.d.ts +0 -11
  773. package/vue3/lib/edge/components/inlined-styles.vue.d.ts +0 -11
  774. package/vue3/lib/edge/constants/builder-registered-components.d.ts +0 -6
  775. package/vue3/lib/edge/constants/device-sizes.d.ts +0 -13
  776. package/vue3/lib/edge/constants/sdk-version.d.ts +0 -1
  777. package/vue3/lib/edge/constants/target.d.ts +0 -2
  778. package/vue3/lib/edge/context/builder.context.d.ts +0 -15
  779. package/vue3/lib/edge/context/components.context.d.ts +0 -7
  780. package/vue3/lib/edge/context/types.d.ts +0 -35
  781. package/vue3/lib/edge/functions/apply-patch-with-mutation.d.ts +0 -10
  782. package/vue3/lib/edge/functions/camel-to-kebab-case.d.ts +0 -1
  783. package/vue3/lib/edge/functions/deopt.d.ts +0 -4
  784. package/vue3/lib/edge/functions/evaluate/browser-runtime/browser.d.ts +0 -4
  785. package/vue3/lib/edge/functions/evaluate/browser-runtime/index.d.ts +0 -1
  786. package/vue3/lib/edge/functions/evaluate/choose-eval.d.ts +0 -6
  787. package/vue3/lib/edge/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +0 -2
  788. package/vue3/lib/edge/functions/evaluate/edge-runtime/edge-runtime.d.ts +0 -2
  789. package/vue3/lib/edge/functions/evaluate/edge-runtime/index.d.ts +0 -1
  790. package/vue3/lib/edge/functions/evaluate/evaluate.d.ts +0 -2
  791. package/vue3/lib/edge/functions/evaluate/helpers.d.ts +0 -24
  792. package/vue3/lib/edge/functions/evaluate/index.d.ts +0 -1
  793. package/vue3/lib/edge/functions/evaluate/node-runtime/index.d.ts +0 -1
  794. package/vue3/lib/edge/functions/evaluate/node-runtime/node-runtime.d.ts +0 -2
  795. package/vue3/lib/edge/functions/evaluate/placeholder-runtime.d.ts +0 -2
  796. package/vue3/lib/edge/functions/event-handler-name.d.ts +0 -1
  797. package/vue3/lib/edge/functions/extract-text-styles.d.ts +0 -4
  798. package/vue3/lib/edge/functions/fast-clone.d.ts +0 -4
  799. package/vue3/lib/edge/functions/fetch-builder-props.d.ts +0 -53
  800. package/vue3/lib/edge/functions/get-block-actions-handler.d.ts +0 -8
  801. package/vue3/lib/edge/functions/get-block-actions.d.ts +0 -10
  802. package/vue3/lib/edge/functions/get-block-component-options.d.ts +0 -2
  803. package/vue3/lib/edge/functions/get-block-properties.d.ts +0 -6
  804. package/vue3/lib/edge/functions/get-builder-search-params/index.d.ts +0 -12
  805. package/vue3/lib/edge/functions/get-content/generate-content-url.d.ts +0 -2
  806. package/vue3/lib/edge/functions/get-content/index.d.ts +0 -28
  807. package/vue3/lib/edge/functions/get-content/types.d.ts +0 -142
  808. package/vue3/lib/edge/functions/get-fetch.d.ts +0 -1
  809. package/vue3/lib/edge/functions/get-processed-block.d.ts +0 -10
  810. package/vue3/lib/edge/functions/get-react-native-block-styles.d.ts +0 -7
  811. package/vue3/lib/edge/functions/is-browser.d.ts +0 -1
  812. package/vue3/lib/edge/functions/is-edge-runtime.d.ts +0 -4
  813. package/vue3/lib/edge/functions/is-editing.d.ts +0 -1
  814. package/vue3/lib/edge/functions/is-iframe.d.ts +0 -1
  815. package/vue3/lib/edge/functions/is-node-runtime.d.ts +0 -4
  816. package/vue3/lib/edge/functions/is-previewing.d.ts +0 -1
  817. package/vue3/lib/edge/functions/on-change.d.ts +0 -7
  818. package/vue3/lib/edge/functions/register-component.d.ts +0 -15
  819. package/vue3/lib/edge/functions/register.d.ts +0 -16
  820. package/vue3/lib/edge/functions/sanitize-react-native-block-styles.d.ts +0 -3
  821. package/vue3/lib/edge/functions/set-editor-settings.d.ts +0 -4
  822. package/vue3/lib/edge/functions/set.d.ts +0 -7
  823. package/vue3/lib/edge/functions/track/helpers.d.ts +0 -5
  824. package/vue3/lib/edge/functions/track/index.d.ts +0 -51
  825. package/vue3/lib/edge/functions/track/interaction.d.ts +0 -13
  826. package/vue3/lib/edge/functions/transform-block-properties.d.ts +0 -2
  827. package/vue3/lib/edge/functions/transform-block.d.ts +0 -2
  828. package/vue3/lib/edge/get-block-actions.407fbfa9.cjs +0 -1
  829. package/vue3/lib/edge/get-block-actions.b460cca3.js +0 -79
  830. package/vue3/lib/edge/helpers/ab-tests.d.ts +0 -9
  831. package/vue3/lib/edge/helpers/canTrack.d.ts +0 -1
  832. package/vue3/lib/edge/helpers/cookie.d.ts +0 -19
  833. package/vue3/lib/edge/helpers/css.d.ts +0 -7
  834. package/vue3/lib/edge/helpers/flatten.d.ts +0 -6
  835. package/vue3/lib/edge/helpers/localStorage.d.ts +0 -9
  836. package/vue3/lib/edge/helpers/logger.d.ts +0 -6
  837. package/vue3/lib/edge/helpers/nullable.d.ts +0 -2
  838. package/vue3/lib/edge/helpers/preview-lru-cache/get.d.ts +0 -2
  839. package/vue3/lib/edge/helpers/preview-lru-cache/helpers.d.ts +0 -0
  840. package/vue3/lib/edge/helpers/preview-lru-cache/init.d.ts +0 -6
  841. package/vue3/lib/edge/helpers/preview-lru-cache/set.d.ts +0 -7
  842. package/vue3/lib/edge/helpers/preview-lru-cache/types.d.ts +0 -0
  843. package/vue3/lib/edge/helpers/sessionId.d.ts +0 -6
  844. package/vue3/lib/edge/helpers/time.d.ts +0 -1
  845. package/vue3/lib/edge/helpers/url.d.ts +0 -6
  846. package/vue3/lib/edge/helpers/uuid.d.ts +0 -8
  847. package/vue3/lib/edge/helpers/visitorId.d.ts +0 -6
  848. package/vue3/lib/edge/index-helpers/blocks-exports.d.ts +0 -111
  849. package/vue3/lib/edge/index-helpers/top-of-file.d.ts +0 -1
  850. package/vue3/lib/edge/index.8bdc4716.cjs +0 -89
  851. package/vue3/lib/edge/index.a8ffb479.js +0 -5753
  852. package/vue3/lib/edge/index.cjs +0 -1
  853. package/vue3/lib/edge/index.d.ts +0 -7
  854. package/vue3/lib/edge/index.js +0 -29
  855. package/vue3/lib/edge/repeated-block.cc9bbed2.js +0 -33
  856. package/vue3/lib/edge/repeated-block.f5d444e9.cjs +0 -1
  857. package/vue3/lib/edge/scripts/init-editing.d.ts +0 -6
  858. package/vue3/lib/edge/server-index.d.ts +0 -15
  859. package/vue3/lib/edge/style.css +0 -1
  860. package/vue3/lib/edge/types/api-version.d.ts +0 -2
  861. package/vue3/lib/edge/types/builder-block.d.ts +0 -66
  862. package/vue3/lib/edge/types/builder-content.d.ts +0 -44
  863. package/vue3/lib/edge/types/builder-props.d.ts +0 -9
  864. package/vue3/lib/edge/types/can-track.d.ts +0 -3
  865. package/vue3/lib/edge/types/components.d.ts +0 -110
  866. package/vue3/lib/edge/types/deep-partial.d.ts +0 -3
  867. package/vue3/lib/edge/types/element.d.ts +0 -59
  868. package/vue3/lib/edge/types/enforced-partials.d.ts +0 -21
  869. package/vue3/lib/edge/types/input.d.ts +0 -121
  870. package/vue3/lib/edge/types/targets.d.ts +0 -1
  871. package/vue3/lib/edge/types/typescript.d.ts +0 -11
  872. package/vue3/lib/node/block-wrapper.25e28ca3.cjs +0 -1
  873. package/vue3/lib/node/block-wrapper.56bce6c4.js +0 -55
  874. package/vue3/lib/node/blocks/button/button.vue.d.ts +0 -30
  875. package/vue3/lib/node/blocks/button/component-info.d.ts +0 -2
  876. package/vue3/lib/node/blocks/columns/columns.vue.d.ts +0 -69
  877. package/vue3/lib/node/blocks/columns/component-info.d.ts +0 -2
  878. package/vue3/lib/node/blocks/custom-code/component-info.d.ts +0 -2
  879. package/vue3/lib/node/blocks/custom-code/custom-code.vue.d.ts +0 -20
  880. package/vue3/lib/node/blocks/embed/component-info.d.ts +0 -2
  881. package/vue3/lib/node/blocks/embed/embed.vue.d.ts +0 -22
  882. package/vue3/lib/node/blocks/embed/helpers.d.ts +0 -1
  883. package/vue3/lib/node/blocks/form/component-info.d.ts +0 -2
  884. package/vue3/lib/node/blocks/fragment/component-info.d.ts +0 -2
  885. package/vue3/lib/node/blocks/fragment/fragment.vue.d.ts +0 -7
  886. package/vue3/lib/node/blocks/helpers.d.ts +0 -13
  887. package/vue3/lib/node/blocks/image/component-info.d.ts +0 -2
  888. package/vue3/lib/node/blocks/image/image.helpers.d.ts +0 -1
  889. package/vue3/lib/node/blocks/image/image.vue.d.ts +0 -72
  890. package/vue3/lib/node/blocks/img/component-info.d.ts +0 -2
  891. package/vue3/lib/node/blocks/img/img.vue.d.ts +0 -38
  892. package/vue3/lib/node/blocks/input/component-info.d.ts +0 -2
  893. package/vue3/lib/node/blocks/raw-text/component-info.d.ts +0 -2
  894. package/vue3/lib/node/blocks/section/component-info.d.ts +0 -2
  895. package/vue3/lib/node/blocks/section/section.vue.d.ts +0 -22
  896. package/vue3/lib/node/blocks/select/component-info.d.ts +0 -2
  897. package/vue3/lib/node/blocks/submit-button/component-info.d.ts +0 -2
  898. package/vue3/lib/node/blocks/symbol/component-info.d.ts +0 -2
  899. package/vue3/lib/node/blocks/symbol/symbol.helpers.d.ts +0 -14
  900. package/vue3/lib/node/blocks/symbol/symbol.vue.d.ts +0 -56
  901. package/vue3/lib/node/blocks/text/component-info.d.ts +0 -2
  902. package/vue3/lib/node/blocks/text/text.vue.d.ts +0 -11
  903. package/vue3/lib/node/blocks/textarea/component-info.d.ts +0 -2
  904. package/vue3/lib/node/blocks/video/component-info.d.ts +0 -2
  905. package/vue3/lib/node/blocks/video/video.vue.d.ts +0 -64
  906. package/vue3/lib/node/component-ref.c35ae123.cjs +0 -1
  907. package/vue3/lib/node/component-ref.cd59ca4d.js +0 -112
  908. package/vue3/lib/node/components/block/block.helpers.d.ts +0 -13
  909. package/vue3/lib/node/components/block/block.vue.d.ts +0 -41
  910. package/vue3/lib/node/components/block/components/block-styles.vue.d.ts +0 -22
  911. package/vue3/lib/node/components/block/components/block-wrapper.vue.d.ts +0 -29
  912. package/vue3/lib/node/components/block/components/component-ref/component-ref.helpers.d.ts +0 -30
  913. package/vue3/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +0 -41
  914. package/vue3/lib/node/components/block/components/interactive-element.vue.d.ts +0 -30
  915. package/vue3/lib/node/components/block/components/repeated-block.vue.d.ts +0 -16
  916. package/vue3/lib/node/components/block/types.d.ts +0 -6
  917. package/vue3/lib/node/components/blocks/blocks-wrapper.vue.d.ts +0 -30
  918. package/vue3/lib/node/components/blocks/blocks.vue.d.ts +0 -29
  919. package/vue3/lib/node/components/content/components/enable-editor.vue.d.ts +0 -91
  920. package/vue3/lib/node/components/content/components/styles.helpers.d.ts +0 -15
  921. package/vue3/lib/node/components/content/components/styles.vue.d.ts +0 -16
  922. package/vue3/lib/node/components/content/content.helpers.d.ts +0 -7
  923. package/vue3/lib/node/components/content/content.types.d.ts +0 -24
  924. package/vue3/lib/node/components/content/content.vue.d.ts +0 -69
  925. package/vue3/lib/node/components/content/index.d.ts +0 -1
  926. package/vue3/lib/node/components/content/wrap-component-ref.d.ts +0 -6
  927. package/vue3/lib/node/components/content-variants/content-variants.types.d.ts +0 -20
  928. package/vue3/lib/node/components/content-variants/content-variants.vue.d.ts +0 -73
  929. package/vue3/lib/node/components/content-variants/helpers.d.ts +0 -41
  930. package/vue3/lib/node/components/inlined-script.vue.d.ts +0 -11
  931. package/vue3/lib/node/components/inlined-styles.vue.d.ts +0 -11
  932. package/vue3/lib/node/constants/builder-registered-components.d.ts +0 -6
  933. package/vue3/lib/node/constants/device-sizes.d.ts +0 -13
  934. package/vue3/lib/node/constants/sdk-version.d.ts +0 -1
  935. package/vue3/lib/node/constants/target.d.ts +0 -2
  936. package/vue3/lib/node/context/builder.context.d.ts +0 -15
  937. package/vue3/lib/node/context/components.context.d.ts +0 -7
  938. package/vue3/lib/node/context/types.d.ts +0 -35
  939. package/vue3/lib/node/functions/apply-patch-with-mutation.d.ts +0 -10
  940. package/vue3/lib/node/functions/camel-to-kebab-case.d.ts +0 -1
  941. package/vue3/lib/node/functions/deopt.d.ts +0 -4
  942. package/vue3/lib/node/functions/evaluate/browser-runtime/browser.d.ts +0 -4
  943. package/vue3/lib/node/functions/evaluate/browser-runtime/index.d.ts +0 -1
  944. package/vue3/lib/node/functions/evaluate/choose-eval.d.ts +0 -6
  945. package/vue3/lib/node/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +0 -2
  946. package/vue3/lib/node/functions/evaluate/edge-runtime/edge-runtime.d.ts +0 -2
  947. package/vue3/lib/node/functions/evaluate/edge-runtime/index.d.ts +0 -1
  948. package/vue3/lib/node/functions/evaluate/evaluate.d.ts +0 -2
  949. package/vue3/lib/node/functions/evaluate/helpers.d.ts +0 -24
  950. package/vue3/lib/node/functions/evaluate/index.d.ts +0 -1
  951. package/vue3/lib/node/functions/evaluate/node-runtime/index.d.ts +0 -1
  952. package/vue3/lib/node/functions/evaluate/node-runtime/node-runtime.d.ts +0 -2
  953. package/vue3/lib/node/functions/evaluate/placeholder-runtime.d.ts +0 -2
  954. package/vue3/lib/node/functions/event-handler-name.d.ts +0 -1
  955. package/vue3/lib/node/functions/extract-text-styles.d.ts +0 -4
  956. package/vue3/lib/node/functions/fast-clone.d.ts +0 -4
  957. package/vue3/lib/node/functions/fetch-builder-props.d.ts +0 -53
  958. package/vue3/lib/node/functions/get-block-actions-handler.d.ts +0 -8
  959. package/vue3/lib/node/functions/get-block-actions.d.ts +0 -10
  960. package/vue3/lib/node/functions/get-block-component-options.d.ts +0 -2
  961. package/vue3/lib/node/functions/get-block-properties.d.ts +0 -6
  962. package/vue3/lib/node/functions/get-builder-search-params/index.d.ts +0 -12
  963. package/vue3/lib/node/functions/get-content/generate-content-url.d.ts +0 -2
  964. package/vue3/lib/node/functions/get-content/index.d.ts +0 -28
  965. package/vue3/lib/node/functions/get-content/types.d.ts +0 -142
  966. package/vue3/lib/node/functions/get-fetch.d.ts +0 -1
  967. package/vue3/lib/node/functions/get-processed-block.d.ts +0 -10
  968. package/vue3/lib/node/functions/get-react-native-block-styles.d.ts +0 -7
  969. package/vue3/lib/node/functions/is-browser.d.ts +0 -1
  970. package/vue3/lib/node/functions/is-edge-runtime.d.ts +0 -4
  971. package/vue3/lib/node/functions/is-editing.d.ts +0 -1
  972. package/vue3/lib/node/functions/is-iframe.d.ts +0 -1
  973. package/vue3/lib/node/functions/is-node-runtime.d.ts +0 -4
  974. package/vue3/lib/node/functions/is-previewing.d.ts +0 -1
  975. package/vue3/lib/node/functions/on-change.d.ts +0 -7
  976. package/vue3/lib/node/functions/register-component.d.ts +0 -15
  977. package/vue3/lib/node/functions/register.d.ts +0 -16
  978. package/vue3/lib/node/functions/sanitize-react-native-block-styles.d.ts +0 -3
  979. package/vue3/lib/node/functions/set-editor-settings.d.ts +0 -4
  980. package/vue3/lib/node/functions/set.d.ts +0 -7
  981. package/vue3/lib/node/functions/track/helpers.d.ts +0 -5
  982. package/vue3/lib/node/functions/track/index.d.ts +0 -51
  983. package/vue3/lib/node/functions/track/interaction.d.ts +0 -13
  984. package/vue3/lib/node/functions/transform-block-properties.d.ts +0 -2
  985. package/vue3/lib/node/functions/transform-block.d.ts +0 -2
  986. package/vue3/lib/node/get-block-actions.0d715e21.cjs +0 -1
  987. package/vue3/lib/node/get-block-actions.3df391e9.js +0 -79
  988. package/vue3/lib/node/helpers/ab-tests.d.ts +0 -9
  989. package/vue3/lib/node/helpers/canTrack.d.ts +0 -1
  990. package/vue3/lib/node/helpers/cookie.d.ts +0 -19
  991. package/vue3/lib/node/helpers/css.d.ts +0 -7
  992. package/vue3/lib/node/helpers/flatten.d.ts +0 -6
  993. package/vue3/lib/node/helpers/localStorage.d.ts +0 -9
  994. package/vue3/lib/node/helpers/logger.d.ts +0 -6
  995. package/vue3/lib/node/helpers/nullable.d.ts +0 -2
  996. package/vue3/lib/node/helpers/preview-lru-cache/get.d.ts +0 -2
  997. package/vue3/lib/node/helpers/preview-lru-cache/helpers.d.ts +0 -0
  998. package/vue3/lib/node/helpers/preview-lru-cache/init.d.ts +0 -6
  999. package/vue3/lib/node/helpers/preview-lru-cache/set.d.ts +0 -7
  1000. package/vue3/lib/node/helpers/preview-lru-cache/types.d.ts +0 -0
  1001. package/vue3/lib/node/helpers/sessionId.d.ts +0 -6
  1002. package/vue3/lib/node/helpers/time.d.ts +0 -1
  1003. package/vue3/lib/node/helpers/url.d.ts +0 -6
  1004. package/vue3/lib/node/helpers/uuid.d.ts +0 -8
  1005. package/vue3/lib/node/helpers/visitorId.d.ts +0 -6
  1006. package/vue3/lib/node/index-helpers/blocks-exports.d.ts +0 -111
  1007. package/vue3/lib/node/index-helpers/top-of-file.d.ts +0 -1
  1008. package/vue3/lib/node/index.88589866.js +0 -3375
  1009. package/vue3/lib/node/index.b2d2bb5e.cjs +0 -109
  1010. package/vue3/lib/node/index.cjs +0 -1
  1011. package/vue3/lib/node/index.d.ts +0 -7
  1012. package/vue3/lib/node/index.js +0 -30
  1013. package/vue3/lib/node/repeated-block.57ca2ba1.js +0 -34
  1014. package/vue3/lib/node/repeated-block.78ed5bbb.cjs +0 -1
  1015. package/vue3/lib/node/scripts/init-editing.d.ts +0 -6
  1016. package/vue3/lib/node/server-index.d.ts +0 -15
  1017. package/vue3/lib/node/style.css +0 -1
  1018. package/vue3/lib/node/types/api-version.d.ts +0 -2
  1019. package/vue3/lib/node/types/builder-block.d.ts +0 -66
  1020. package/vue3/lib/node/types/builder-content.d.ts +0 -44
  1021. package/vue3/lib/node/types/builder-props.d.ts +0 -9
  1022. package/vue3/lib/node/types/can-track.d.ts +0 -3
  1023. package/vue3/lib/node/types/components.d.ts +0 -110
  1024. package/vue3/lib/node/types/deep-partial.d.ts +0 -3
  1025. package/vue3/lib/node/types/element.d.ts +0 -59
  1026. package/vue3/lib/node/types/enforced-partials.d.ts +0 -21
  1027. package/vue3/lib/node/types/input.d.ts +0 -121
  1028. package/vue3/lib/node/types/targets.d.ts +0 -1
  1029. package/vue3/lib/node/types/typescript.d.ts +0 -11
@@ -1,3375 +0,0 @@
1
- import { defineComponent as y, openBlock as d, createElementBlock as h, mergeProps as I, toHandlers as F, toDisplayString as ae, h as Ce, resolveComponent as v, createBlock as C, createCommentVNode as w, defineAsyncComponent as W, Fragment as R, renderList as B, withCtx as ne, createVNode as V, normalizeProps as ce, guardReactiveProps as nt, renderSlot as U, createElementVNode as le, normalizeStyle as de, normalizeClass as we, markRaw as ot } from "vue";
2
- import { createRequire as st } from "node:module";
3
- function q(e = {}, t, n) {
4
- const o = {};
5
- for (const s in e) {
6
- if (!e[s] || n && !s.startsWith(t))
7
- continue;
8
- const r = n ? s.replace(t, "") : s;
9
- o[r] = e[s];
10
- }
11
- return o;
12
- }
13
- const rt = y({
14
- name: "builder-button",
15
- props: ["attributes", "text", "link", "openLinkInNewTab"],
16
- data() {
17
- return { filterAttrs: q };
18
- },
19
- methods: {
20
- _classStringToObject(e) {
21
- const t = {};
22
- if (typeof e != "string")
23
- return t;
24
- const n = e.trim().split(/\s+/);
25
- for (const o of n)
26
- t[o] = !0;
27
- return t;
28
- }
29
- }
30
- });
31
- const k = (e, t) => {
32
- const n = e.__vccOpts || e;
33
- for (const [o, s] of t)
34
- n[o] = s;
35
- return n;
36
- }, it = ["href", "target"];
37
- function at(e, t, n, o, s, r) {
38
- return e.link ? (d(), h("a", I({
39
- key: 0,
40
- role: "button",
41
- href: e.link,
42
- target: e.openLinkInNewTab ? "_blank" : void 0
43
- }, e.filterAttrs(e.attributes, "v-on:", !1), F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ae(e.text), 17, it)) : (d(), h("button", I({
44
- key: 1,
45
- style: e.attributes.style,
46
- class: e._classStringToObject(e.attributes.class + " button-21azgz5avex")
47
- }, e.filterAttrs(e.attributes, "v-on:", !1), F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ae(e.text), 17));
48
- }
49
- const ct = /* @__PURE__ */ k(rt, [["render", at], ["__scopeId", "data-v-becdf225"], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/button/button.vue"]]), N = (e) => JSON.parse(JSON.stringify(e)), $e = {
50
- small: {
51
- min: 320,
52
- default: 321,
53
- max: 640
54
- },
55
- medium: {
56
- min: 641,
57
- default: 642,
58
- max: 991
59
- },
60
- large: {
61
- min: 990,
62
- default: 991,
63
- max: 1200
64
- }
65
- }, ue = (e, t = $e) => `@media (max-width: ${t[e].max}px)`, Te = ({
66
- small: e,
67
- medium: t
68
- }) => {
69
- const n = N($e);
70
- if (!e || !t)
71
- return n;
72
- const o = Math.floor(e / 2);
73
- n.small = {
74
- max: e,
75
- min: o,
76
- default: o + 1
77
- };
78
- const s = n.small.max + 1;
79
- n.medium = {
80
- max: t,
81
- min: s,
82
- default: s + 1
83
- };
84
- const r = n.medium.max + 1;
85
- return n.large = {
86
- max: 2e3,
87
- min: r,
88
- default: r + 1
89
- }, n;
90
- }, j = "vue3", L = "[Builder.io]: ", x = {
91
- log: (...e) => console.log(L, ...e),
92
- error: (...e) => console.error(L, ...e),
93
- warn: (...e) => console.warn(L, ...e),
94
- debug: (...e) => console.debug(L, ...e)
95
- };
96
- function $() {
97
- return typeof window < "u" && typeof document < "u";
98
- }
99
- function lt() {
100
- return $() && window.self !== window.top;
101
- }
102
- function _() {
103
- return lt() && window.location.search.indexOf("builder.frameEditing=") !== -1;
104
- }
105
- const dt = () => {
106
- if ($()) {
107
- const e = new URL(location.href);
108
- return e.pathname === "" && (e.pathname = "/"), e;
109
- } else
110
- return console.warn("Cannot get location for tracking in non-browser environment"), null;
111
- }, ut = () => typeof navigator == "object" && navigator.userAgent || "", Ie = () => {
112
- const e = ut(), t = {
113
- Android() {
114
- return e.match(/Android/i);
115
- },
116
- BlackBerry() {
117
- return e.match(/BlackBerry/i);
118
- },
119
- iOS() {
120
- return e.match(/iPhone|iPod/i);
121
- },
122
- Opera() {
123
- return e.match(/Opera Mini/i);
124
- },
125
- Windows() {
126
- return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
127
- },
128
- any() {
129
- return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || j === "reactNative";
130
- }
131
- }, n = e.match(/Tablet|iPad/i), o = dt();
132
- return {
133
- urlPath: o == null ? void 0 : o.pathname,
134
- host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
135
- device: n ? "tablet" : t.any() ? "mobile" : "desktop"
136
- };
137
- }, Re = ({
138
- builder: e,
139
- context: t,
140
- event: n,
141
- state: o
142
- }) => Object.entries({
143
- state: o,
144
- Builder: e,
145
- builder: e,
146
- context: t,
147
- event: n
148
- }), pt = () => ({
149
- isEditing: _(),
150
- isBrowser: $(),
151
- isServer: !$(),
152
- getUserAttributes: () => Ie()
153
- }), mt = (e, {
154
- isExpression: t = !0
155
- }) => t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, ht = ({
156
- code: e,
157
- builder: t,
158
- context: n,
159
- event: o,
160
- localState: s,
161
- rootSetState: r,
162
- rootState: i
163
- }) => {
164
- const a = Re({
165
- builder: t,
166
- context: n,
167
- event: o,
168
- state: ft(i, s, r)
169
- });
170
- return new Function(...a.map(([c]) => c), e)(...a.map(([, c]) => c));
171
- };
172
- function ft(e, t, n) {
173
- if (e === t)
174
- throw new Error("rootState === localState");
175
- return new Proxy(e, {
176
- get: (o, s) => t && s in t ? t[s] : e[s],
177
- set: (o, s, r) => {
178
- if (t && s in t)
179
- throw new Error("Writing to local state is not allowed as it is read-only.");
180
- return e[s] = r, n == null || n(e), !0;
181
- }
182
- });
183
- }
184
- const bt = () => null;
185
- let xe = bt;
186
- try {
187
- xe = st(import.meta.url);
188
- } catch {
189
- }
190
- const Ee = (e, t, n) => {
191
- if (Object(e) !== e)
192
- return e;
193
- const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
194
- return o.slice(0, -1).reduce((s, r, i) => Object(s[r]) === s[r] ? s[r] : s[r] = Math.abs(Number(o[i + 1])) >> 0 === +o[i + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
195
- }, Q = xe("isolated-vm"), _e = (e) => `bldr_${e}_sync`, Ae = "BUILDER_SET_STATE", je = "BUILDER_IVM", gt = `
196
- var refToProxy = (obj) => {
197
- if (typeof obj !== 'object' || obj === null) {
198
- return obj;
199
- }
200
- return new Proxy({}, {
201
- get(target, key) {
202
- if (key === 'copySync') {
203
- return () => obj.copySync();
204
- }
205
- const val = obj.getSync(key);
206
- if (typeof val?.getSync === 'function') {
207
- return refToProxy(val);
208
- }
209
- return val;
210
- },
211
- set(target, key, value) {
212
- const v = typeof value === 'object' ? new ${je}.Reference(value) : value;
213
- obj.setSync(key, v);
214
- ${Ae}(key, value)
215
- },
216
- deleteProperty(target, key) {
217
- obj.deleteSync(key);
218
- }
219
- })
220
- }
221
- `, yt = ({
222
- code: e,
223
- args: t
224
- }) => {
225
- const n = t.map(([o]) => `var ${o} = refToProxy(${_e(o)}); `).join("");
226
- return `
227
- ${gt}
228
- ${n}
229
- function theFunction() {
230
- ${e}
231
- }
232
-
233
- let output = theFunction()
234
-
235
- if (typeof output === 'object' && output !== null) {
236
- output = JSON.stringify(output.copySync ? output.copySync() : output);
237
- }
238
-
239
- output;
240
- `;
241
- }, kt = () => new Q.Isolate({
242
- memoryLimit: 128
243
- }).createContextSync(), vt = ({
244
- code: e,
245
- builder: t,
246
- context: n,
247
- event: o,
248
- localState: s,
249
- rootSetState: r,
250
- rootState: i
251
- }) => {
252
- const a = N({
253
- ...i,
254
- ...s
255
- }), c = Re({
256
- builder: t,
257
- context: n,
258
- event: o,
259
- state: a
260
- }), l = kt(), u = l.global;
261
- u.setSync("global", u.derefInto()), u.setSync("log", function(...p) {
262
- console.log(...p);
263
- }), u.setSync(Ae, function(p, b) {
264
- Ee(i, p, b), r == null || r(i);
265
- }), c.forEach(([p, b]) => {
266
- const S = typeof b == "object" ? new Q.Reference(
267
- p === "builder" ? {
268
- ...b,
269
- getUserAttributes: () => b.getUserAttributes()
270
- } : b
271
- ) : null;
272
- u.setSync(_e(p), S);
273
- }), u.setSync(je, Q);
274
- const f = yt({
275
- code: e,
276
- args: c
277
- }), m = l.evalSync(f);
278
- try {
279
- return JSON.parse(m);
280
- } catch {
281
- return m;
282
- }
283
- }, St = (e) => $() ? ht(e) : vt(e);
284
- function z({
285
- code: e,
286
- context: t,
287
- localState: n,
288
- rootState: o,
289
- rootSetState: s,
290
- event: r,
291
- isExpression: i = !0
292
- }) {
293
- if (e === "") {
294
- x.warn("Skipping evaluation of empty code block.");
295
- return;
296
- }
297
- const a = {
298
- code: mt(e, {
299
- isExpression: i
300
- }),
301
- builder: pt(),
302
- context: t,
303
- event: r,
304
- rootSetState: s,
305
- rootState: o,
306
- localState: n
307
- };
308
- try {
309
- return St(a);
310
- } catch (c) {
311
- x.error("Failed code evaluation: " + c.message, {
312
- code: e
313
- });
314
- return;
315
- }
316
- }
317
- const Ct = ({
318
- block: e,
319
- context: t,
320
- localState: n,
321
- rootState: o,
322
- rootSetState: s
323
- }) => {
324
- if (!e.bindings)
325
- return e;
326
- const r = N(e), i = {
327
- ...r,
328
- properties: {
329
- ...r.properties
330
- },
331
- actions: {
332
- ...r.actions
333
- }
334
- };
335
- for (const a in e.bindings) {
336
- const c = e.bindings[a], l = z({
337
- code: c,
338
- localState: n,
339
- rootState: o,
340
- rootSetState: s,
341
- context: t
342
- });
343
- Ee(i, a, l);
344
- }
345
- return i;
346
- };
347
- function D({
348
- block: e,
349
- context: t,
350
- shouldEvaluateBindings: n,
351
- localState: o,
352
- rootState: s,
353
- rootSetState: r
354
- }) {
355
- const i = e;
356
- return n ? Ct({
357
- block: i,
358
- localState: o,
359
- rootState: s,
360
- rootSetState: r,
361
- context: t
362
- }) : i;
363
- }
364
- const wt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), A = (e) => e != null, $t = (e) => Object.entries(e).map(([n, o]) => {
365
- if (typeof o == "string")
366
- return `${wt(n)}: ${o};`;
367
- }).filter(A), Tt = (e) => $t(e).join(`
368
- `), Y = ({
369
- mediaQuery: e,
370
- className: t,
371
- styles: n
372
- }) => {
373
- const o = `.${t} {
374
- ${Tt(n)}
375
- }`;
376
- return e ? `${e} {
377
- ${o}
378
- }` : o;
379
- }, It = y({
380
- render() {
381
- return Ce("style", { id: this.id, innerHTML: this.styles });
382
- },
383
- name: "inlined-styles",
384
- props: ["styles", "id"]
385
- }), G = /* @__PURE__ */ k(It, [["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/inlined-styles.vue"]]), Rt = y({
386
- name: "block-styles",
387
- components: { InlinedStyles: G },
388
- props: ["block", "context"],
389
- data() {
390
- return { TARGET: j };
391
- },
392
- computed: {
393
- canShowBlock() {
394
- const e = D({
395
- block: this.block,
396
- localState: this.context.localState,
397
- rootState: this.context.rootState,
398
- rootSetState: this.context.rootSetState,
399
- context: this.context.context,
400
- shouldEvaluateBindings: !0
401
- });
402
- return A(e.hide) ? !e.hide : A(e.show) ? e.show : !0;
403
- },
404
- css() {
405
- var f;
406
- const e = D({
407
- block: this.block,
408
- localState: this.context.localState,
409
- rootState: this.context.rootState,
410
- rootSetState: this.context.rootSetState,
411
- context: this.context.context,
412
- shouldEvaluateBindings: !0
413
- }), t = e.responsiveStyles, n = this.context.content, o = Te(
414
- ((f = n == null ? void 0 : n.meta) == null ? void 0 : f.breakpoints) || {}
415
- ), s = t == null ? void 0 : t.large, r = t == null ? void 0 : t.medium, i = t == null ? void 0 : t.small, a = e.id;
416
- if (!a)
417
- return "";
418
- const c = s ? Y({
419
- className: a,
420
- styles: s
421
- }) : "", l = r ? Y({
422
- className: a,
423
- styles: r,
424
- mediaQuery: ue(
425
- "medium",
426
- o
427
- )
428
- }) : "", u = i ? Y({
429
- className: a,
430
- styles: i,
431
- mediaQuery: ue(
432
- "small",
433
- o
434
- )
435
- }) : "";
436
- return [c, l, u].join(" ");
437
- }
438
- }
439
- });
440
- function xt(e, t, n, o, s, r) {
441
- const i = v("inlined-styles");
442
- return e.TARGET !== "reactNative" && e.css && e.canShowBlock ? (d(), C(i, {
443
- key: 0,
444
- styles: e.css
445
- }, null, 8, ["styles"])) : w("v-if", !0);
446
- }
447
- const Pe = /* @__PURE__ */ k(Rt, [["render", xt], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/block/components/block-styles.vue"]]), Et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
448
- __proto__: null,
449
- default: Pe
450
- }, Symbol.toStringTag, { value: "Module" }));
451
- function _t(e) {
452
- var t;
453
- return {
454
- ...(t = e.component) == null ? void 0 : t.options,
455
- ...e.options,
456
- builderBlock: e
457
- };
458
- }
459
- const At = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], jt = (e) => typeof e == "string" && At.includes(e.toLowerCase()), Pt = ({
460
- block: e,
461
- context: t,
462
- registeredComponents: n
463
- }) => {
464
- var r;
465
- const o = (r = D({
466
- block: e,
467
- localState: t.localState,
468
- rootState: t.rootState,
469
- rootSetState: t.rootSetState,
470
- context: t.context,
471
- shouldEvaluateBindings: !1
472
- }).component) == null ? void 0 : r.name;
473
- if (!o)
474
- return null;
475
- const s = n[o];
476
- if (s)
477
- return s;
478
- console.warn(`
479
- Could not find a registered component named "${o}".
480
- If you registered it, is the file that registered it imported by the file that needs to render it?`);
481
- }, Bt = ({
482
- block: e,
483
- context: t
484
- }) => {
485
- const {
486
- repeat: n,
487
- ...o
488
- } = e;
489
- if (!(n != null && n.collection))
490
- return;
491
- const s = z({
492
- code: n.collection,
493
- localState: t.localState,
494
- rootState: t.rootState,
495
- rootSetState: t.rootSetState,
496
- context: t.context
497
- });
498
- if (!Array.isArray(s))
499
- return;
500
- const r = n.collection.split(".").pop(), i = n.itemName || (r ? r + "Item" : "item");
501
- return s.map((c, l) => ({
502
- context: {
503
- ...t,
504
- localState: {
505
- ...t.localState,
506
- $index: l,
507
- $item: c,
508
- [i]: c,
509
- [`$${i}Index`]: l
510
- }
511
- },
512
- block: o
513
- }));
514
- }, Vt = () => Promise.resolve().then(() => Et).then((e) => e.default).catch((e) => {
515
- throw console.error(
516
- "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
517
- e
518
- ), e;
519
- }), Ut = () => import("./repeated-block.57ca2ba1.js").then((e) => e.default).catch((e) => {
520
- throw console.error(
521
- "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
522
- e
523
- ), e;
524
- }), Nt = () => import("./component-ref.cd59ca4d.js").then((e) => e.default).catch((e) => {
525
- throw console.error(
526
- "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
527
- e
528
- ), e;
529
- }), Ot = () => import("./block-wrapper.56bce6c4.js").then((e) => e.default).catch((e) => {
530
- throw console.error(
531
- "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
532
- e
533
- ), e;
534
- }), Ft = y({
535
- name: "block",
536
- components: {
537
- ComponentRef: W(Nt),
538
- BlockWrapper: W(Ot),
539
- RepeatedBlock: W(Ut),
540
- BlockStyles: W(Vt)
541
- },
542
- props: ["block", "context", "registeredComponents"],
543
- data() {
544
- return { childrenContext: this.context, isEmptyHtmlElement: jt };
545
- },
546
- computed: {
547
- blockComponent() {
548
- return Pt({
549
- block: this.block,
550
- context: this.context,
551
- registeredComponents: this.registeredComponents
552
- });
553
- },
554
- repeatItem() {
555
- return Bt({
556
- block: this.block,
557
- context: this.context
558
- });
559
- },
560
- processedBlock() {
561
- return this.repeatItem ? this.block : D({
562
- block: this.block,
563
- localState: this.context.localState,
564
- rootState: this.context.rootState,
565
- rootSetState: this.context.rootSetState,
566
- context: this.context.context,
567
- shouldEvaluateBindings: !0
568
- });
569
- },
570
- Tag() {
571
- return this.block.tagName || "div";
572
- },
573
- canShowBlock() {
574
- return "hide" in this.processedBlock ? !this.processedBlock.hide : "show" in this.processedBlock ? this.processedBlock.show : !0;
575
- },
576
- childrenWithoutParentComponent() {
577
- var t, n;
578
- return !((t = this.blockComponent) != null && t.component) && !this.repeatItem ? (n = this.processedBlock.children) != null ? n : [] : [];
579
- },
580
- componentRefProps() {
581
- var e, t, n, o, s, r;
582
- return {
583
- blockChildren: (e = this.processedBlock.children) != null ? e : [],
584
- componentRef: (t = this.blockComponent) == null ? void 0 : t.component,
585
- componentOptions: {
586
- ..._t(this.processedBlock),
587
- builderContext: this.context,
588
- ...((n = this.blockComponent) == null ? void 0 : n.name) === "Symbol" || ((o = this.blockComponent) == null ? void 0 : o.name) === "Columns" ? {
589
- builderComponents: this.registeredComponents
590
- } : {}
591
- },
592
- context: this.childrenContext,
593
- registeredComponents: this.registeredComponents,
594
- builderBlock: this.processedBlock,
595
- includeBlockProps: ((s = this.blockComponent) == null ? void 0 : s.noWrap) === !0,
596
- isInteractive: !((r = this.blockComponent) != null && r.isRSC)
597
- };
598
- }
599
- }
600
- });
601
- function Mt(e, t, n, o, s, r) {
602
- var f;
603
- const i = v("block-wrapper"), a = v("repeated-block"), c = v("component-ref"), l = v("block", !0), u = v("block-styles");
604
- return e.canShowBlock ? (d(), h(R, { key: 0 }, [
605
- (f = e.blockComponent) != null && f.noWrap ? (d(), C(c, ce(I({ key: 1 }, e.componentRefProps)), null, 16)) : (d(), h(R, { key: 0 }, [
606
- e.isEmptyHtmlElement(e.Tag) ? (d(), C(i, {
607
- key: 0,
608
- Wrapper: e.Tag,
609
- block: e.processedBlock,
610
- context: e.context,
611
- hasChildren: !1
612
- }, null, 8, ["Wrapper", "block", "context"])) : w("v-if", !0),
613
- !e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (d(!0), h(R, { key: 1 }, B(e.repeatItem, (m, p) => (d(), C(a, {
614
- key: p,
615
- repeatContext: m.context,
616
- block: m.block,
617
- registeredComponents: e.registeredComponents
618
- }, null, 8, ["repeatContext", "block", "registeredComponents"]))), 128)) : w("v-if", !0),
619
- !e.isEmptyHtmlElement(e.Tag) && !e.repeatItem ? (d(), C(i, {
620
- key: 2,
621
- Wrapper: e.Tag,
622
- block: e.processedBlock,
623
- context: e.context,
624
- hasChildren: !0
625
- }, {
626
- default: ne(() => [
627
- V(c, ce(nt(e.componentRefProps)), null, 16),
628
- (d(!0), h(R, null, B(e.childrenWithoutParentComponent, (m, p) => (d(), C(l, {
629
- key: "block-" + m.id,
630
- block: m,
631
- context: e.childrenContext,
632
- registeredComponents: e.registeredComponents
633
- }, null, 8, ["block", "context", "registeredComponents"]))), 128)),
634
- (d(!0), h(R, null, B(e.childrenWithoutParentComponent, (m, p) => (d(), C(u, {
635
- key: "block-style-" + m.id,
636
- block: m,
637
- context: e.childrenContext
638
- }, null, 8, ["block", "context"]))), 128))
639
- ]),
640
- _: 1
641
- }, 8, ["Wrapper", "block", "context"])) : w("v-if", !0)
642
- ], 64))
643
- ], 64)) : w("v-if", !0);
644
- }
645
- const Be = /* @__PURE__ */ k(Ft, [["render", Mt], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/block/block.vue"]]), ms = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
646
- __proto__: null,
647
- default: Be
648
- }, Symbol.toStringTag, { value: "Module" })), Wt = y({
649
- name: "builder-blocks-wrapper",
650
- props: ["blocks", "parent", "path", "styleProp"],
651
- computed: {
652
- className() {
653
- var e;
654
- return "builder-blocks" + ((e = this.blocks) != null && e.length ? "" : " no-blocks");
655
- }
656
- },
657
- methods: {
658
- onClick() {
659
- var e, t;
660
- _() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
661
- {
662
- type: "builder.clickEmptyBlocks",
663
- data: {
664
- parentElementId: this.parent,
665
- dataPath: this.path
666
- }
667
- },
668
- "*"
669
- ));
670
- },
671
- onMouseEnter() {
672
- var e, t;
673
- _() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
674
- {
675
- type: "builder.hoverEmptyBlocks",
676
- data: {
677
- parentElementId: this.parent,
678
- dataPath: this.path
679
- }
680
- },
681
- "*"
682
- ));
683
- },
684
- _classStringToObject(e) {
685
- const t = {};
686
- if (typeof e != "string")
687
- return t;
688
- const n = e.trim().split(/\s+/);
689
- for (const o of n)
690
- t[o] = !0;
691
- return t;
692
- }
693
- }
694
- });
695
- const Lt = ["builder-path", "builder-parent-id"];
696
- function Kt(e, t, n, o, s, r) {
697
- return d(), h("div", I({
698
- class: e._classStringToObject(e.className + " div-178o76acnws"),
699
- "builder-path": e.path,
700
- "builder-parent-id": e.parent,
701
- style: e.styleProp,
702
- onClick: t[0] || (t[0] = (i) => e.onClick()),
703
- onMouseenter: t[1] || (t[1] = (i) => e.onMouseEnter()),
704
- onKeypress: t[2] || (t[2] = (i) => e.onClick())
705
- }, {}), [
706
- U(e.$slots, "default", {}, void 0, !0)
707
- ], 16, Lt);
708
- }
709
- const Ht = /* @__PURE__ */ k(Wt, [["render", Kt], ["__scopeId", "data-v-1f8aab9f"], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/blocks/blocks-wrapper.vue"]]), zt = Symbol(), Z = {
710
- Builder: {
711
- content: null,
712
- context: {},
713
- localState: void 0,
714
- rootSetState() {
715
- },
716
- rootState: {},
717
- apiKey: null,
718
- apiVersion: void 0,
719
- componentInfos: {},
720
- inheritedStyles: {}
721
- },
722
- key: zt
723
- }, Dt = Symbol(), Ve = {
724
- Components: { registeredComponents: {} },
725
- key: Dt
726
- }, qt = y({
727
- name: "builder-blocks",
728
- components: {
729
- BlocksWrapper: Ht,
730
- Block: Be,
731
- BlockStyles: Pe
732
- },
733
- props: [
734
- "blocks",
735
- "parent",
736
- "path",
737
- "styleProp",
738
- "context",
739
- "registeredComponents"
740
- ],
741
- inject: {
742
- builderContext: Z.key,
743
- componentsContext: Ve.key
744
- }
745
- });
746
- function Gt(e, t, n, o, s, r) {
747
- const i = v("block"), a = v("block-styles"), c = v("blocks-wrapper");
748
- return d(), C(c, {
749
- blocks: e.blocks,
750
- parent: e.parent,
751
- path: e.path,
752
- styleProp: e.styleProp
753
- }, {
754
- default: ne(() => [
755
- e.blocks ? (d(!0), h(R, { key: 0 }, B(e.blocks, (l, u) => (d(), C(i, {
756
- key: "render-block-" + l.id,
757
- block: l,
758
- context: e.context || e.builderContext,
759
- registeredComponents: e.registeredComponents || e.componentsContext.registeredComponents
760
- }, null, 8, ["block", "context", "registeredComponents"]))), 128)) : w("v-if", !0),
761
- e.blocks ? (d(!0), h(R, { key: 1 }, B(e.blocks, (l, u) => (d(), C(a, {
762
- key: "block-style-" + l.id,
763
- block: l,
764
- context: e.context || e.builderContext
765
- }, null, 8, ["block", "context"]))), 128)) : w("v-if", !0)
766
- ]),
767
- _: 1
768
- }, 8, ["blocks", "parent", "path", "styleProp"]);
769
- }
770
- const oe = /* @__PURE__ */ k(qt, [["render", Gt], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/blocks/blocks.vue"]]), Jt = y({
771
- name: "builder-columns",
772
- components: { InlinedStyles: G, Blocks: oe },
773
- props: [
774
- "js",
775
- "space",
776
- "columns",
777
- "stackColumnsAt",
778
- "reverseColumnsWhenStacked",
779
- "builderContext",
780
- "builderBlock",
781
- "builderComponents"
782
- ],
783
- data() {
784
- return {
785
- gutterSize: typeof this.space == "number" ? this.space || 0 : 20,
786
- cols: this.columns || [],
787
- stackAt: this.stackColumnsAt || "tablet",
788
- flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
789
- TARGET: j
790
- };
791
- },
792
- computed: {
793
- columnsCssVars() {
794
- return {
795
- "--flex-dir": this.flexDir,
796
- "--flex-dir-tablet": this.getTabletStyle({
797
- stackedStyle: this.flexDir,
798
- desktopStyle: "row"
799
- })
800
- };
801
- },
802
- columnsStyles() {
803
- return `
804
- @media (max-width: ${this.getWidthForBreakpointSize("medium")}px) {
805
- .${this.builderBlock.id}-breakpoints {
806
- flex-direction: var(--flex-dir-tablet);
807
- align-items: stretch;
808
- }
809
-
810
- .${this.builderBlock.id}-breakpoints > .builder-column {
811
- width: var(--column-width-tablet) !important;
812
- margin-left: var(--column-margin-left-tablet) !important;
813
- }
814
- }
815
-
816
- @media (max-width: ${this.getWidthForBreakpointSize("small")}px) {
817
- .${this.builderBlock.id}-breakpoints {
818
- flex-direction: var(--flex-dir);
819
- align-items: stretch;
820
- }
821
-
822
- .${this.builderBlock.id}-breakpoints > .builder-column {
823
- width: var(--column-width-mobile) !important;
824
- margin-left: var(--column-margin-left-mobile) !important;
825
- }
826
- },
827
- `;
828
- }
829
- },
830
- methods: {
831
- getWidth(e) {
832
- var t;
833
- return ((t = this.cols[e]) == null ? void 0 : t.width) || 100 / this.cols.length;
834
- },
835
- getColumnCssWidth(e) {
836
- const t = this.gutterSize * (this.cols.length - 1) / this.cols.length;
837
- return `calc(${this.getWidth(e)}% - ${t}px)`;
838
- },
839
- getTabletStyle({
840
- stackedStyle: e,
841
- desktopStyle: t
842
- }) {
843
- return this.stackAt === "tablet" ? e : t;
844
- },
845
- getMobileStyle({
846
- stackedStyle: e,
847
- desktopStyle: t
848
- }) {
849
- return this.stackAt === "never" ? t : e;
850
- },
851
- columnCssVars(e) {
852
- const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, s = "100%", r = 0;
853
- return {
854
- width: n,
855
- ["margin-left"]: o,
856
- "--column-width-mobile": this.getMobileStyle({
857
- stackedStyle: s,
858
- desktopStyle: n
859
- }),
860
- "--column-margin-left-mobile": this.getMobileStyle({
861
- stackedStyle: r,
862
- desktopStyle: o
863
- }),
864
- "--column-width-tablet": this.getTabletStyle({
865
- stackedStyle: s,
866
- desktopStyle: n
867
- }),
868
- "--column-margin-left-tablet": this.getTabletStyle({
869
- stackedStyle: r,
870
- desktopStyle: o
871
- })
872
- };
873
- },
874
- getWidthForBreakpointSize(e) {
875
- var n, o;
876
- return Te(
877
- ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
878
- )[e].max;
879
- },
880
- _classStringToObject(e) {
881
- const t = {};
882
- if (typeof e != "string")
883
- return t;
884
- const n = e.trim().split(/\s+/);
885
- for (const o of n)
886
- t[o] = !0;
887
- return t;
888
- }
889
- }
890
- });
891
- function Yt(e, t, n, o, s, r) {
892
- const i = v("inlined-styles"), a = v("blocks");
893
- return d(), h("div", I({
894
- class: e._classStringToObject(
895
- `builder-columns ${e.builderBlock.id}-breakpoints div-16nol0lwi20`
896
- ),
897
- style: e.columnsCssVars
898
- }, {}), [
899
- e.TARGET !== "reactNative" ? (d(), C(i, {
900
- key: 0,
901
- styles: e.columnsStyles
902
- }, null, 8, ["styles"])) : w("v-if", !0),
903
- (d(!0), h(R, null, B(e.columns, (c, l) => (d(), h("div", I({
904
- key: l,
905
- class: "builder-column div-16nol0lwi20-2",
906
- style: e.columnCssVars(l)
907
- }, {}), [
908
- V(a, {
909
- path: `component.options.columns.${l}.blocks`,
910
- parent: e.builderBlock.id,
911
- styleProp: {
912
- flexGrow: "1"
913
- },
914
- context: e.builderContext,
915
- registeredComponents: e.builderComponents,
916
- blocks: c.blocks
917
- }, null, 8, ["path", "parent", "context", "registeredComponents", "blocks"])
918
- ], 16))), 128))
919
- ], 16);
920
- }
921
- const Xt = /* @__PURE__ */ k(Jt, [["render", Yt], ["__scopeId", "data-v-7be099dc"], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/columns/columns.vue"]]), Qt = y({
922
- name: "builder-fragment-component",
923
- props: []
924
- });
925
- function Zt(e, t, n, o, s, r) {
926
- return d(), h("span", null, [
927
- U(e.$slots, "default")
928
- ]);
929
- }
930
- const en = /* @__PURE__ */ k(Qt, [["render", Zt], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/fragment/fragment.vue"]]);
931
- function pe(e) {
932
- return e.replace(/http(s)?:/, "");
933
- }
934
- function tn(e = "", t, n) {
935
- const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), s = e.indexOf("?") !== -1 ? "&" : "?";
936
- return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + s + t + "=" + encodeURIComponent(n);
937
- }
938
- function nn(e, t) {
939
- if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
940
- return e;
941
- if (t === "master")
942
- return pe(e);
943
- const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
944
- if (n) {
945
- const o = e.split(n[0]), s = n[3], r = t.match("x") ? t : `${t}x`;
946
- return pe(`${o[0]}_${r}${s}`);
947
- }
948
- return null;
949
- }
950
- function X(e) {
951
- if (!e)
952
- return e;
953
- const t = [100, 200, 400, 800, 1200, 1600, 2e3];
954
- if (e.match(/builder\.io/)) {
955
- let n = e;
956
- const o = Number(e.split("?width=")[1]);
957
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((s) => s !== o).map((s) => `${tn(e, "width", s)} ${s}w`).concat([n]).join(", ");
958
- }
959
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [nn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
960
- }
961
- const on = y({
962
- name: "builder-image",
963
- props: [
964
- "image",
965
- "src",
966
- "srcset",
967
- "noWebp",
968
- "aspectRatio",
969
- "altText",
970
- "backgroundPosition",
971
- "backgroundSize",
972
- "className",
973
- "sizes",
974
- "builderBlock",
975
- "fitContent"
976
- ],
977
- computed: {
978
- srcSetToUse() {
979
- var n;
980
- const t = this.image || this.src;
981
- if (!t || !(t.match(/builder\.io/) || t.match(/cdn\.shopify\.com/)))
982
- return this.srcset;
983
- if (this.srcset && ((n = this.image) == null ? void 0 : n.includes("builder.io/api/v1/image"))) {
984
- if (!this.srcset.includes(this.image.split("?")[0]))
985
- return console.debug("Removed given srcset"), X(t);
986
- } else if (this.image && !this.srcset)
987
- return X(t);
988
- return X(t);
989
- },
990
- webpSrcSet() {
991
- var e;
992
- return ((e = this.srcSetToUse) == null ? void 0 : e.match(/builder\.io/)) && !this.noWebp ? this.srcSetToUse.replace(/\?/g, "?format=webp&") : "";
993
- },
994
- aspectRatioCss() {
995
- const e = {
996
- position: "absolute",
997
- height: "100%",
998
- width: "100%",
999
- left: "0px",
1000
- top: "0px"
1001
- };
1002
- return this.aspectRatio ? e : void 0;
1003
- }
1004
- },
1005
- methods: {
1006
- _classStringToObject(e) {
1007
- const t = {};
1008
- if (typeof e != "string")
1009
- return t;
1010
- const n = e.trim().split(/\s+/);
1011
- for (const o of n)
1012
- t[o] = !0;
1013
- return t;
1014
- }
1015
- }
1016
- });
1017
- const sn = ["srcset"], rn = ["alt", "role", "src", "srcset", "sizes"], an = {
1018
- key: 2,
1019
- class: "div-1be3j8m9ewb-2"
1020
- };
1021
- function cn(e, t, n, o, s, r) {
1022
- var i, a, c, l;
1023
- return d(), h(R, null, [
1024
- le("picture", null, [
1025
- e.webpSrcSet ? (d(), h("source", {
1026
- key: 0,
1027
- type: "image/webp",
1028
- srcset: e.webpSrcSet
1029
- }, null, 8, sn)) : w("v-if", !0),
1030
- le("img", {
1031
- loading: "lazy",
1032
- alt: e.altText,
1033
- role: e.altText ? "presentation" : void 0,
1034
- style: de({
1035
- objectPosition: e.backgroundPosition || "center",
1036
- objectFit: e.backgroundSize || "cover",
1037
- ...e.aspectRatioCss
1038
- }),
1039
- class: we(
1040
- e._classStringToObject(
1041
- "builder-image" + (e.className ? " " + e.className : "") + " img-1be3j8m9ewb"
1042
- )
1043
- ),
1044
- src: e.image,
1045
- srcset: e.srcSetToUse,
1046
- sizes: e.sizes
1047
- }, null, 14, rn)
1048
- ]),
1049
- e.aspectRatio && !(((a = (i = e.builderBlock) == null ? void 0 : i.children) == null ? void 0 : a.length) && e.fitContent) ? (d(), h("div", {
1050
- key: 0,
1051
- class: "builder-image-sizer div-1be3j8m9ewb",
1052
- style: de({
1053
- paddingTop: e.aspectRatio * 100 + "%"
1054
- })
1055
- }, null, 4)) : w("v-if", !0),
1056
- ((l = (c = e.builderBlock) == null ? void 0 : c.children) == null ? void 0 : l.length) && e.fitContent ? U(e.$slots, "default", { key: 1 }, void 0, !0) : w("v-if", !0),
1057
- !e.fitContent && e.$slots.default ? (d(), h("div", an, [
1058
- U(e.$slots, "default", {}, void 0, !0)
1059
- ])) : w("v-if", !0)
1060
- ], 64);
1061
- }
1062
- const ln = /* @__PURE__ */ k(on, [["render", cn], ["__scopeId", "data-v-58ca75d1"], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/image/image.vue"]]), dn = y({
1063
- name: "builder-section-component",
1064
- props: ["attributes", "maxWidth"],
1065
- data() {
1066
- return { filterAttrs: q };
1067
- }
1068
- });
1069
- function un(e, t, n, o, s, r) {
1070
- return d(), h("section", I({
1071
- style: {
1072
- width: "100%",
1073
- alignSelf: "stretch",
1074
- flexGrow: 1,
1075
- boxSizing: "border-box",
1076
- maxWidth: e.maxWidth || 1200,
1077
- display: "flex",
1078
- flexDirection: "column",
1079
- alignItems: "stretch",
1080
- marginLeft: "auto",
1081
- marginRight: "auto"
1082
- }
1083
- }, e.filterAttrs(e.attributes, "v-on:", !1), F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
1084
- U(e.$slots, "default")
1085
- ], 16);
1086
- }
1087
- const pn = /* @__PURE__ */ k(dn, [["render", un], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/section/section.vue"]]), K = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1088
- ...t,
1089
- testVariationId: t.id,
1090
- id: e == null ? void 0 : e.id
1091
- })), mn = ({
1092
- canTrack: e,
1093
- content: t
1094
- }) => !(!(K(t).length > 0) || !e);
1095
- function hn(e, t, n) {
1096
- var i;
1097
- function o() {
1098
- function a(b, S, T) {
1099
- let E = "";
1100
- if (T) {
1101
- const g = new Date();
1102
- g.setTime(g.getTime() + T * 24 * 60 * 60 * 1e3), E = "; expires=" + g.toUTCString();
1103
- }
1104
- document.cookie = b + "=" + (S || "") + E + "; path=/; Secure; SameSite=None";
1105
- }
1106
- function c(b) {
1107
- const S = b + "=", T = document.cookie.split(";");
1108
- for (let E = 0; E < T.length; E++) {
1109
- let g = T[E];
1110
- for (; g.charAt(0) === " "; )
1111
- g = g.substring(1, g.length);
1112
- if (g.indexOf(S) === 0)
1113
- return g.substring(S.length, g.length);
1114
- }
1115
- return null;
1116
- }
1117
- const l = `builder.tests.${e}`, u = c(l), f = t.map((b) => b.id).concat(e);
1118
- if (u && f.includes(u))
1119
- return u;
1120
- let m = 0;
1121
- const p = Math.random();
1122
- for (let b = 0; b < t.length; b++) {
1123
- const S = t[b], T = S.testRatio;
1124
- if (m += T, p < m)
1125
- return a(l, S.id), S.id;
1126
- }
1127
- return a(l, e), e;
1128
- }
1129
- const s = o(), r = (i = document.currentScript) == null ? void 0 : i.previousElementSibling;
1130
- if (n) {
1131
- r.remove();
1132
- const a = document.currentScript;
1133
- a == null || a.remove();
1134
- } else {
1135
- const a = t.concat({
1136
- id: e
1137
- }).filter((c) => c.id !== s).map((c) => `.variant-${c.id} { display: none; }
1138
- `).join("");
1139
- r.innerHTML = a;
1140
- }
1141
- }
1142
- function fn(e, t, n) {
1143
- var c;
1144
- if (!navigator.cookieEnabled)
1145
- return;
1146
- function o(l) {
1147
- const u = l + "=", f = document.cookie.split(";");
1148
- for (let m = 0; m < f.length; m++) {
1149
- let p = f[m];
1150
- for (; p.charAt(0) === " "; )
1151
- p = p.substring(1, p.length);
1152
- if (p.indexOf(u) === 0)
1153
- return p.substring(u.length, p.length);
1154
- }
1155
- return null;
1156
- }
1157
- const s = `builder.tests.${t}`, r = o(s), i = (c = document.currentScript) == null ? void 0 : c.parentElement, a = e === t;
1158
- if (r === e) {
1159
- if (a)
1160
- return;
1161
- i == null || i.removeAttribute("hidden"), i == null || i.removeAttribute("aria-hidden");
1162
- } else {
1163
- a && (n ? i == null || i.remove() : (i == null || i.setAttribute("hidden", "true"), i == null || i.setAttribute("aria-hidden", "true")));
1164
- return;
1165
- }
1166
- }
1167
- const bn = (e) => e === "react" || e === "reactNative", Ue = bn(j), Ne = "builderIoAbTest", Oe = "builderIoRenderContent", gn = () => {
1168
- const e = hn.toString().replace(/\s+/g, " "), t = fn.toString().replace(/\s+/g, " ");
1169
- return `
1170
- window.${Ne} = ${e}
1171
- window.${Oe} = ${t}
1172
- `;
1173
- }, yn = (e, t) => `
1174
- window.${Ne}("${t}",${JSON.stringify(e)}, ${Ue})`, kn = ({
1175
- contentId: e,
1176
- variationId: t
1177
- }) => `
1178
- window.${Oe}("${t}", "${e}", ${Ue})`, vn = {
1179
- name: "Core:Button",
1180
- image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1181
- defaultStyles: {
1182
- appearance: "none",
1183
- paddingTop: "15px",
1184
- paddingBottom: "15px",
1185
- paddingLeft: "25px",
1186
- paddingRight: "25px",
1187
- backgroundColor: "#000000",
1188
- color: "white",
1189
- borderRadius: "4px",
1190
- textAlign: "center",
1191
- cursor: "pointer"
1192
- },
1193
- inputs: [{
1194
- name: "text",
1195
- type: "text",
1196
- defaultValue: "Click me!",
1197
- bubble: !0
1198
- }, {
1199
- name: "link",
1200
- type: "url",
1201
- bubble: !0
1202
- }, {
1203
- name: "openLinkInNewTab",
1204
- type: "boolean",
1205
- defaultValue: !1,
1206
- friendlyName: "Open link in new tab"
1207
- }],
1208
- static: !0,
1209
- noWrap: !0
1210
- }, Sn = {
1211
- name: "Columns",
1212
- isRSC: !0,
1213
- inputs: [{
1214
- name: "columns",
1215
- type: "array",
1216
- broadcast: !0,
1217
- subFields: [{
1218
- name: "blocks",
1219
- type: "array",
1220
- hideFromUI: !0,
1221
- defaultValue: [{
1222
- "@type": "@builder.io/sdk:Element",
1223
- responsiveStyles: {
1224
- large: {
1225
- display: "flex",
1226
- flexDirection: "column",
1227
- alignItems: "stretch",
1228
- flexShrink: "0",
1229
- position: "relative",
1230
- marginTop: "30px",
1231
- textAlign: "center",
1232
- lineHeight: "normal",
1233
- height: "auto",
1234
- minHeight: "20px",
1235
- minWidth: "20px",
1236
- overflow: "hidden"
1237
- }
1238
- },
1239
- component: {
1240
- name: "Image",
1241
- options: {
1242
- image: "https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
1243
- backgroundPosition: "center",
1244
- backgroundSize: "cover",
1245
- aspectRatio: 0.7004048582995948
1246
- }
1247
- }
1248
- }, {
1249
- "@type": "@builder.io/sdk:Element",
1250
- responsiveStyles: {
1251
- large: {
1252
- display: "flex",
1253
- flexDirection: "column",
1254
- alignItems: "stretch",
1255
- flexShrink: "0",
1256
- position: "relative",
1257
- marginTop: "30px",
1258
- textAlign: "center",
1259
- lineHeight: "normal",
1260
- height: "auto"
1261
- }
1262
- },
1263
- component: {
1264
- name: "Text",
1265
- options: {
1266
- text: "<p>Enter some text...</p>"
1267
- }
1268
- }
1269
- }]
1270
- }, {
1271
- name: "width",
1272
- type: "number",
1273
- hideFromUI: !0,
1274
- helperText: "Width %, e.g. set to 50 to fill half of the space"
1275
- }, {
1276
- name: "link",
1277
- type: "url",
1278
- helperText: "Optionally set a url that clicking this column will link to"
1279
- }],
1280
- defaultValue: [{
1281
- blocks: [{
1282
- "@type": "@builder.io/sdk:Element",
1283
- responsiveStyles: {
1284
- large: {
1285
- display: "flex",
1286
- flexDirection: "column",
1287
- alignItems: "stretch",
1288
- flexShrink: "0",
1289
- position: "relative",
1290
- marginTop: "30px",
1291
- textAlign: "center",
1292
- lineHeight: "normal",
1293
- height: "auto",
1294
- minHeight: "20px",
1295
- minWidth: "20px",
1296
- overflow: "hidden"
1297
- }
1298
- },
1299
- component: {
1300
- name: "Image",
1301
- options: {
1302
- image: "https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
1303
- backgroundPosition: "center",
1304
- backgroundSize: "cover",
1305
- aspectRatio: 0.7004048582995948
1306
- }
1307
- }
1308
- }, {
1309
- "@type": "@builder.io/sdk:Element",
1310
- responsiveStyles: {
1311
- large: {
1312
- display: "flex",
1313
- flexDirection: "column",
1314
- alignItems: "stretch",
1315
- flexShrink: "0",
1316
- position: "relative",
1317
- marginTop: "30px",
1318
- textAlign: "center",
1319
- lineHeight: "normal",
1320
- height: "auto"
1321
- }
1322
- },
1323
- component: {
1324
- name: "Text",
1325
- options: {
1326
- text: "<p>Enter some text...</p>"
1327
- }
1328
- }
1329
- }]
1330
- }, {
1331
- blocks: [{
1332
- "@type": "@builder.io/sdk:Element",
1333
- responsiveStyles: {
1334
- large: {
1335
- display: "flex",
1336
- flexDirection: "column",
1337
- alignItems: "stretch",
1338
- flexShrink: "0",
1339
- position: "relative",
1340
- marginTop: "30px",
1341
- textAlign: "center",
1342
- lineHeight: "normal",
1343
- height: "auto",
1344
- minHeight: "20px",
1345
- minWidth: "20px",
1346
- overflow: "hidden"
1347
- }
1348
- },
1349
- component: {
1350
- name: "Image",
1351
- options: {
1352
- image: "https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
1353
- backgroundPosition: "center",
1354
- backgroundSize: "cover",
1355
- aspectRatio: 0.7004048582995948
1356
- }
1357
- }
1358
- }, {
1359
- "@type": "@builder.io/sdk:Element",
1360
- responsiveStyles: {
1361
- large: {
1362
- display: "flex",
1363
- flexDirection: "column",
1364
- alignItems: "stretch",
1365
- flexShrink: "0",
1366
- position: "relative",
1367
- marginTop: "30px",
1368
- textAlign: "center",
1369
- lineHeight: "normal",
1370
- height: "auto"
1371
- }
1372
- },
1373
- component: {
1374
- name: "Text",
1375
- options: {
1376
- text: "<p>Enter some text...</p>"
1377
- }
1378
- }
1379
- }]
1380
- }],
1381
- onChange: (e) => {
1382
- function t() {
1383
- n.forEach((o) => {
1384
- o.delete("width");
1385
- });
1386
- }
1387
- const n = e.get("columns");
1388
- Array.isArray(n) && !!n.find((s) => s.get("width")) && (!!n.find((r) => !r.get("width")) || n.reduce((a, c) => a + c.get("width"), 0) !== 100) && t();
1389
- }
1390
- }, {
1391
- name: "space",
1392
- type: "number",
1393
- defaultValue: 20,
1394
- helperText: "Size of gap between columns",
1395
- advanced: !0
1396
- }, {
1397
- name: "stackColumnsAt",
1398
- type: "string",
1399
- defaultValue: "tablet",
1400
- helperText: "Convert horizontal columns to vertical at what device size",
1401
- enum: ["tablet", "mobile", "never"],
1402
- advanced: !0
1403
- }, {
1404
- name: "reverseColumnsWhenStacked",
1405
- type: "boolean",
1406
- defaultValue: !1,
1407
- helperText: "When stacking columns for mobile devices, reverse the ordering",
1408
- advanced: !0
1409
- }]
1410
- }, Cn = {
1411
- name: "Fragment",
1412
- static: !0,
1413
- hidden: !0,
1414
- canHaveChildren: !0,
1415
- noWrap: !0
1416
- }, wn = {
1417
- name: "Image",
1418
- static: !0,
1419
- image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
1420
- defaultStyles: {
1421
- position: "relative",
1422
- minHeight: "20px",
1423
- minWidth: "20px",
1424
- overflow: "hidden"
1425
- },
1426
- canHaveChildren: !0,
1427
- inputs: [{
1428
- name: "image",
1429
- type: "file",
1430
- bubble: !0,
1431
- allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
1432
- required: !0,
1433
- defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1434
- onChange: (e) => {
1435
- e.delete("srcset"), e.delete("noWebp");
1436
- function n(i, a = 6e4) {
1437
- return new Promise((c, l) => {
1438
- const u = document.createElement("img");
1439
- let f = !1;
1440
- u.onload = () => {
1441
- f = !0, c(u);
1442
- }, u.addEventListener("error", (m) => {
1443
- console.warn("Image load failed", m.error), l(m.error);
1444
- }), u.src = i, setTimeout(() => {
1445
- f || l(new Error("Image load timed out"));
1446
- }, a);
1447
- });
1448
- }
1449
- function o(i) {
1450
- return Math.round(i * 1e3) / 1e3;
1451
- }
1452
- const s = e.get("image"), r = e.get("aspectRatio");
1453
- if (fetch(s).then((i) => i.blob()).then((i) => {
1454
- i.type.includes("svg") && e.set("noWebp", !0);
1455
- }), s && (!r || r === 0.7041))
1456
- return n(s).then((i) => {
1457
- const a = e.get("aspectRatio");
1458
- e.get("image") === s && (!a || a === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
1459
- });
1460
- }
1461
- }, {
1462
- name: "backgroundSize",
1463
- type: "text",
1464
- defaultValue: "cover",
1465
- enum: [{
1466
- label: "contain",
1467
- value: "contain",
1468
- helperText: "The image should never get cropped"
1469
- }, {
1470
- label: "cover",
1471
- value: "cover",
1472
- helperText: "The image should fill it's box, cropping when needed"
1473
- }]
1474
- }, {
1475
- name: "backgroundPosition",
1476
- type: "text",
1477
- defaultValue: "center",
1478
- enum: ["center", "top", "left", "right", "bottom", "top left", "top right", "bottom left", "bottom right"]
1479
- }, {
1480
- name: "altText",
1481
- type: "string",
1482
- helperText: "Text to display when the user has images off"
1483
- }, {
1484
- name: "height",
1485
- type: "number",
1486
- hideFromUI: !0
1487
- }, {
1488
- name: "width",
1489
- type: "number",
1490
- hideFromUI: !0
1491
- }, {
1492
- name: "sizes",
1493
- type: "string",
1494
- hideFromUI: !0
1495
- }, {
1496
- name: "srcset",
1497
- type: "string",
1498
- hideFromUI: !0
1499
- }, {
1500
- name: "lazy",
1501
- type: "boolean",
1502
- defaultValue: !0,
1503
- hideFromUI: !0
1504
- }, {
1505
- name: "fitContent",
1506
- type: "boolean",
1507
- helperText: "When child blocks are provided, fit to them instead of using the image's aspect ratio",
1508
- defaultValue: !0
1509
- }, {
1510
- name: "aspectRatio",
1511
- type: "number",
1512
- helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
1513
- advanced: !0,
1514
- defaultValue: 0.7041
1515
- }]
1516
- }, $n = {
1517
- name: "Core:Section",
1518
- static: !0,
1519
- image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
1520
- inputs: [{
1521
- name: "maxWidth",
1522
- type: "number",
1523
- defaultValue: 1200
1524
- }, {
1525
- name: "lazyLoad",
1526
- type: "boolean",
1527
- defaultValue: !1,
1528
- advanced: !0,
1529
- description: "Only render this section when in view"
1530
- }],
1531
- defaultStyles: {
1532
- paddingLeft: "20px",
1533
- paddingRight: "20px",
1534
- paddingTop: "50px",
1535
- paddingBottom: "50px",
1536
- marginTop: "0px",
1537
- width: "100vw",
1538
- marginLeft: "calc(50% - 50vw)"
1539
- },
1540
- canHaveChildren: !0,
1541
- defaultChildren: [{
1542
- "@type": "@builder.io/sdk:Element",
1543
- responsiveStyles: {
1544
- large: {
1545
- textAlign: "center"
1546
- }
1547
- },
1548
- component: {
1549
- name: "Text",
1550
- options: {
1551
- text: "<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"
1552
- }
1553
- }
1554
- }]
1555
- }, Tn = {
1556
- name: "Symbol",
1557
- noWrap: !0,
1558
- static: !0,
1559
- isRSC: !0,
1560
- inputs: [{
1561
- name: "symbol",
1562
- type: "uiSymbol"
1563
- }, {
1564
- name: "dataOnly",
1565
- helperText: "Make this a data symbol that doesn't display any UI",
1566
- type: "boolean",
1567
- defaultValue: !1,
1568
- advanced: !0,
1569
- hideFromUI: !0
1570
- }, {
1571
- name: "inheritState",
1572
- helperText: "Inherit the parent component state and data",
1573
- type: "boolean",
1574
- defaultValue: !1,
1575
- advanced: !0
1576
- }, {
1577
- name: "renderToLiquid",
1578
- helperText: "Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",
1579
- type: "boolean",
1580
- defaultValue: !1,
1581
- advanced: !0,
1582
- hideFromUI: !0
1583
- }, {
1584
- name: "useChildren",
1585
- hideFromUI: !0,
1586
- type: "boolean"
1587
- }]
1588
- }, In = {
1589
- name: "Text",
1590
- static: !0,
1591
- isRSC: !0,
1592
- image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",
1593
- inputs: [{
1594
- name: "text",
1595
- type: "html",
1596
- required: !0,
1597
- autoFocus: !0,
1598
- bubble: !0,
1599
- defaultValue: "Enter some text..."
1600
- }],
1601
- defaultStyles: {
1602
- lineHeight: "normal",
1603
- height: "auto",
1604
- textAlign: "center"
1605
- }
1606
- }, Rn = y({
1607
- name: "builder-text",
1608
- props: ["text"]
1609
- }), xn = ["innerHTML"];
1610
- function En(e, t, n, o, s, r) {
1611
- var i;
1612
- return d(), h("div", {
1613
- class: "builder-text",
1614
- innerHTML: ((i = e.text) == null ? void 0 : i.toString()) || "",
1615
- style: {
1616
- outline: "none"
1617
- }
1618
- }, null, 8, xn);
1619
- }
1620
- const _n = /* @__PURE__ */ k(Rn, [["render", En], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/text/text.vue"]]), An = {
1621
- name: "Video",
1622
- canHaveChildren: !0,
1623
- defaultStyles: {
1624
- minHeight: "20px",
1625
- minWidth: "20px"
1626
- },
1627
- image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",
1628
- inputs: [{
1629
- name: "video",
1630
- type: "file",
1631
- allowedFileTypes: ["mp4"],
1632
- bubble: !0,
1633
- defaultValue: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",
1634
- required: !0
1635
- }, {
1636
- name: "posterImage",
1637
- type: "file",
1638
- allowedFileTypes: ["jpeg", "png"],
1639
- helperText: "Image to show before the video plays"
1640
- }, {
1641
- name: "autoPlay",
1642
- type: "boolean",
1643
- defaultValue: !0
1644
- }, {
1645
- name: "controls",
1646
- type: "boolean",
1647
- defaultValue: !1
1648
- }, {
1649
- name: "muted",
1650
- type: "boolean",
1651
- defaultValue: !0
1652
- }, {
1653
- name: "loop",
1654
- type: "boolean",
1655
- defaultValue: !0
1656
- }, {
1657
- name: "playsInline",
1658
- type: "boolean",
1659
- defaultValue: !0
1660
- }, {
1661
- name: "fit",
1662
- type: "text",
1663
- defaultValue: "cover",
1664
- enum: ["contain", "cover", "fill", "auto"]
1665
- }, {
1666
- name: "preload",
1667
- type: "text",
1668
- defaultValue: "metadata",
1669
- enum: ["auto", "metadata", "none"]
1670
- }, {
1671
- name: "fitContent",
1672
- type: "boolean",
1673
- helperText: "When child blocks are provided, fit to them instead of using the aspect ratio",
1674
- defaultValue: !0,
1675
- advanced: !0
1676
- }, {
1677
- name: "position",
1678
- type: "text",
1679
- defaultValue: "center",
1680
- enum: ["center", "top", "left", "right", "bottom", "top left", "top right", "bottom left", "bottom right"]
1681
- }, {
1682
- name: "height",
1683
- type: "number",
1684
- advanced: !0
1685
- }, {
1686
- name: "width",
1687
- type: "number",
1688
- advanced: !0
1689
- }, {
1690
- name: "aspectRatio",
1691
- type: "number",
1692
- advanced: !0,
1693
- defaultValue: 0.7004048582995948
1694
- }, {
1695
- name: "lazyLoad",
1696
- type: "boolean",
1697
- helperText: 'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',
1698
- defaultValue: !0,
1699
- advanced: !0
1700
- }]
1701
- }, jn = y({
1702
- name: "builder-video",
1703
- props: [
1704
- "autoPlay",
1705
- "muted",
1706
- "controls",
1707
- "loop",
1708
- "playsInline",
1709
- "attributes",
1710
- "preload",
1711
- "fit",
1712
- "position",
1713
- "video",
1714
- "posterImage"
1715
- ],
1716
- computed: {
1717
- videoProps() {
1718
- return {
1719
- ...this.autoPlay === !0 ? {
1720
- autoPlay: !0
1721
- } : {},
1722
- ...this.muted === !0 ? {
1723
- muted: !0
1724
- } : {},
1725
- ...this.controls === !0 ? {
1726
- controls: !0
1727
- } : {},
1728
- ...this.loop === !0 ? {
1729
- loop: !0
1730
- } : {},
1731
- ...this.playsInline === !0 ? {
1732
- playsInline: !0
1733
- } : {}
1734
- };
1735
- },
1736
- spreadProps() {
1737
- return {
1738
- ...this.attributes,
1739
- ...this.videoProps
1740
- };
1741
- }
1742
- }
1743
- }), Pn = ["preload", "src", "poster"];
1744
- function Bn(e, t, n, o, s, r) {
1745
- var i;
1746
- return d(), h("video", I({
1747
- preload: e.preload || "metadata",
1748
- style: {
1749
- width: "100%",
1750
- height: "100%",
1751
- ...(i = e.attributes) == null ? void 0 : i.style,
1752
- objectFit: e.fit,
1753
- objectPosition: e.position,
1754
- borderRadius: 1
1755
- },
1756
- src: e.video || "no-src",
1757
- poster: e.posterImage
1758
- }, e.spreadProps), null, 16, Pn);
1759
- }
1760
- const Vn = /* @__PURE__ */ k(jn, [["render", Bn], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/video/video.vue"]]), Un = {
1761
- name: "Embed",
1762
- static: !0,
1763
- inputs: [{
1764
- name: "url",
1765
- type: "url",
1766
- required: !0,
1767
- defaultValue: "",
1768
- helperText: "e.g. enter a youtube url, google map, etc",
1769
- onChange: (e) => {
1770
- const t = e.get("url");
1771
- if (t)
1772
- return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then((o) => o.json()).then((o) => {
1773
- e.get("url") === t && (o.html ? e.set("content", o.html) : e.set("content", "Invalid url, please try another"));
1774
- }).catch((o) => {
1775
- e.set("content", "There was an error embedding this URL, please try again or another URL");
1776
- });
1777
- e.delete("content");
1778
- }
1779
- }, {
1780
- name: "content",
1781
- type: "html",
1782
- defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1783
- hideFromUI: !0
1784
- }]
1785
- }, Nn = ["text/javascript", "application/javascript", "application/ecmascript"], On = (e) => Nn.includes(e.type), Fn = y({
1786
- name: "builder-embed",
1787
- props: ["content"],
1788
- data() {
1789
- return { scriptsInserted: [], scriptsRun: [], ranInitFn: !1 };
1790
- },
1791
- watch: {
1792
- onUpdateHook0: {
1793
- handler() {
1794
- this.$refs.elem && !this.ranInitFn && (this.ranInitFn = !0, this.findAndRunScripts());
1795
- },
1796
- immediate: !0
1797
- }
1798
- },
1799
- computed: {
1800
- onUpdateHook0() {
1801
- return {
1802
- 0: this.$refs.elem,
1803
- 1: this.ranInitFn
1804
- };
1805
- }
1806
- },
1807
- methods: {
1808
- findAndRunScripts() {
1809
- if (!this.$refs.elem || !this.$refs.elem.getElementsByTagName)
1810
- return;
1811
- const e = this.$refs.elem.getElementsByTagName("script");
1812
- for (let t = 0; t < e.length; t++) {
1813
- const n = e[t];
1814
- if (n.src && !this.scriptsInserted.includes(n.src)) {
1815
- this.scriptsInserted.push(n.src);
1816
- const o = document.createElement("script");
1817
- o.async = !0, o.src = n.src, document.head.appendChild(o);
1818
- } else if (On(n) && !this.scriptsRun.includes(n.innerText))
1819
- try {
1820
- this.scriptsRun.push(n.innerText), new Function(n.innerText)();
1821
- } catch (o) {
1822
- console.warn("`Embed`: Error running script:", o);
1823
- }
1824
- }
1825
- }
1826
- }
1827
- }), Mn = ["innerHTML"];
1828
- function Wn(e, t, n, o, s, r) {
1829
- return d(), h("div", {
1830
- class: "builder-embed",
1831
- ref: "elem",
1832
- innerHTML: e.content
1833
- }, null, 8, Mn);
1834
- }
1835
- const Ln = /* @__PURE__ */ k(Fn, [["render", Wn], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/embed/embed.vue"]]), Kn = y({
1836
- name: "builder-img-component",
1837
- props: [
1838
- "backgroundSize",
1839
- "backgroundPosition",
1840
- "imgSrc",
1841
- "altText",
1842
- "image",
1843
- "attributes"
1844
- ],
1845
- data() {
1846
- return { isEditing: _, filterAttrs: q };
1847
- }
1848
- }), Hn = ["alt", "src"];
1849
- function zn(e, t, n, o, s, r) {
1850
- return d(), h("img", I({
1851
- style: {
1852
- objectFit: e.backgroundSize || "cover",
1853
- objectPosition: e.backgroundPosition || "center"
1854
- },
1855
- key: e.isEditing() && e.imgSrc || "default-key",
1856
- alt: e.altText,
1857
- src: e.imgSrc || e.image
1858
- }, e.filterAttrs(e.attributes, "v-on:", !1), F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Hn);
1859
- }
1860
- const Dn = /* @__PURE__ */ k(Kn, [["render", zn], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/img/img.vue"]]), qn = {
1861
- name: "Raw:Img",
1862
- hideFromInsertMenu: !0,
1863
- image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
1864
- inputs: [{
1865
- name: "image",
1866
- bubble: !0,
1867
- type: "file",
1868
- allowedFileTypes: ["jpeg", "jpg", "png", "svg", "gif", "webp"],
1869
- required: !0
1870
- }],
1871
- noWrap: !0,
1872
- static: !0
1873
- }, Gn = y({
1874
- name: "builder-custom-code",
1875
- props: ["replaceNodes", "code"],
1876
- data() {
1877
- return { scriptsInserted: [], scriptsRun: [] };
1878
- },
1879
- mounted() {
1880
- var t;
1881
- if (!((t = this.$refs.elementRef) != null && t.getElementsByTagName) || typeof window > "u")
1882
- return;
1883
- const e = this.$refs.elementRef.getElementsByTagName("script");
1884
- for (let n = 0; n < e.length; n++) {
1885
- const o = e[n];
1886
- if (o.src) {
1887
- if (this.scriptsInserted.includes(o.src))
1888
- continue;
1889
- this.scriptsInserted.push(o.src);
1890
- const s = document.createElement("script");
1891
- s.async = !0, s.src = o.src, document.head.appendChild(s);
1892
- } else if (!o.type || [
1893
- "text/javascript",
1894
- "application/javascript",
1895
- "application/ecmascript"
1896
- ].includes(o.type)) {
1897
- if (this.scriptsRun.includes(o.innerText))
1898
- continue;
1899
- try {
1900
- this.scriptsRun.push(o.innerText), new Function(o.innerText)();
1901
- } catch (s) {
1902
- console.warn("`CustomCode`: Error running script:", s);
1903
- }
1904
- }
1905
- }
1906
- },
1907
- methods: {
1908
- _classStringToObject(e) {
1909
- const t = {};
1910
- if (typeof e != "string")
1911
- return t;
1912
- const n = e.trim().split(/\s+/);
1913
- for (const o of n)
1914
- t[o] = !0;
1915
- return t;
1916
- }
1917
- }
1918
- }), Jn = ["innerHTML"];
1919
- function Yn(e, t, n, o, s, r) {
1920
- return d(), h("div", {
1921
- ref: "elementRef",
1922
- class: we(
1923
- e._classStringToObject(
1924
- "builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")
1925
- )
1926
- ),
1927
- innerHTML: e.code
1928
- }, null, 10, Jn);
1929
- }
1930
- const Xn = /* @__PURE__ */ k(Gn, [["render", Yn], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/custom-code/custom-code.vue"]]), Qn = {
1931
- name: "Custom Code",
1932
- static: !0,
1933
- requiredPermissions: ["editCode"],
1934
- inputs: [{
1935
- name: "code",
1936
- type: "html",
1937
- required: !0,
1938
- defaultValue: "<p>Hello there, I am custom HTML code!</p>",
1939
- code: !0
1940
- }, {
1941
- name: "replaceNodes",
1942
- type: "boolean",
1943
- helperText: "Preserve server rendered dom nodes",
1944
- advanced: !0
1945
- }, {
1946
- name: "scriptsClientOnly",
1947
- type: "boolean",
1948
- defaultValue: !1,
1949
- helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
1950
- advanced: !0
1951
- }]
1952
- }, me = () => [{
1953
- component: ct,
1954
- ...vn
1955
- }, {
1956
- component: Xt,
1957
- ...Sn
1958
- }, {
1959
- component: Xn,
1960
- ...Qn
1961
- }, {
1962
- component: Ln,
1963
- ...Un
1964
- }, {
1965
- component: en,
1966
- ...Cn
1967
- }, {
1968
- component: ln,
1969
- ...wn
1970
- }, {
1971
- component: Dn,
1972
- ...qn
1973
- }, {
1974
- component: pn,
1975
- ...$n
1976
- }, {
1977
- component: ds,
1978
- ...Tn
1979
- }, {
1980
- component: _n,
1981
- ...In
1982
- }, {
1983
- component: Vn,
1984
- ...An
1985
- }], he = [], Zn = (e) => ({
1986
- type: "builder.registerComponent",
1987
- data: ee(e)
1988
- }), eo = (e) => {
1989
- const t = e.toString().trim();
1990
- return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
1991
- }, to = (e) => typeof e == "function" ? eo(e) : N(e), ee = ({
1992
- inputs: e,
1993
- ...t
1994
- }) => ({
1995
- ...N(t),
1996
- inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [s, r]) => ({
1997
- ...o,
1998
- [s]: to(r)
1999
- }), {}))
2000
- }), no = (e) => {
2001
- var r, i;
2002
- const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = (i = e.fileUrl) != null ? i : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
2003
- let s = "";
2004
- if (o && t && n && (s += `
2005
- @font-face {
2006
- font-family: "${t}";
2007
- src: local("${n}"), url('${o}') format('woff2');
2008
- font-display: fallback;
2009
- font-weight: 400;
2010
- }
2011
- `.trim()), e.files)
2012
- for (const a in e.files) {
2013
- if (!(String(Number(a)) === a))
2014
- continue;
2015
- const l = e.files[a];
2016
- l && l !== o && (s += `
2017
- @font-face {
2018
- font-family: "${t}";
2019
- src: url('${l}') format('woff2');
2020
- font-display: fallback;
2021
- font-weight: ${a};
2022
- }
2023
- `.trim());
2024
- }
2025
- return s;
2026
- }, oo = ({
2027
- customFonts: e
2028
- }) => {
2029
- var t;
2030
- return ((t = e == null ? void 0 : e.map((n) => no(n))) == null ? void 0 : t.join(" ")) || "";
2031
- }, so = ({
2032
- cssCode: e,
2033
- contentId: t
2034
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", ro = y({
2035
- name: "content-styles",
2036
- components: { InlinedStyles: G },
2037
- props: ["cssCode", "contentId", "customFonts"],
2038
- data() {
2039
- return {
2040
- injectedStyles: `
2041
- ${so({
2042
- cssCode: this.cssCode,
2043
- contentId: this.contentId
2044
- })}
2045
- ${oo({
2046
- customFonts: this.customFonts
2047
- })}
2048
-
2049
- .builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
2050
- margin: 0;
2051
- }
2052
- .builder-text > p, .builder-text > .builder-paragraph {
2053
- color: inherit;
2054
- line-height: inherit;
2055
- letter-spacing: inherit;
2056
- font-weight: inherit;
2057
- font-size: inherit;
2058
- text-align: inherit;
2059
- font-family: inherit;
2060
- }
2061
- `.trim()
2062
- };
2063
- }
2064
- });
2065
- function io(e, t, n, o, s, r) {
2066
- const i = v("inlined-styles");
2067
- return d(), C(i, { styles: e.injectedStyles }, null, 8, ["styles"]);
2068
- }
2069
- const ao = /* @__PURE__ */ k(ro, [["render", io], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/content/components/styles.vue"]]), co = ({
2070
- content: e,
2071
- data: t,
2072
- locale: n
2073
- }) => {
2074
- var r, i, a;
2075
- const o = {};
2076
- (i = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || i.forEach((c) => {
2077
- var l;
2078
- c.name && c.defaultValue !== void 0 && ((l = e == null ? void 0 : e.data) == null ? void 0 : l.state) && e.data.state[c.name] === void 0 && (o[c.name] = c.defaultValue);
2079
- });
2080
- const s = {
2081
- ...(a = e == null ? void 0 : e.data) == null ? void 0 : a.state,
2082
- ...t,
2083
- ...n ? {
2084
- locale: n
2085
- } : {}
2086
- };
2087
- return {
2088
- ...o,
2089
- ...s
2090
- };
2091
- }, lo = ({
2092
- content: e,
2093
- data: t
2094
- }) => e ? {
2095
- ...e,
2096
- data: {
2097
- ...e == null ? void 0 : e.data,
2098
- ...t
2099
- },
2100
- meta: e == null ? void 0 : e.meta
2101
- } : void 0;
2102
- function uo() {
2103
- return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
2104
- }
2105
- function po() {
2106
- const e = uo().fetch;
2107
- if (typeof e > "u")
2108
- throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
2109
- For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
2110
- return e;
2111
- }
2112
- const Fe = po(), mo = (e) => {
2113
- if (e === "localhost" || e === "127.0.0.1")
2114
- return e;
2115
- const t = e.split(".");
2116
- return t.length > 2 ? t.slice(1).join(".") : e;
2117
- }, Me = ({
2118
- name: e,
2119
- canTrack: t
2120
- }) => {
2121
- var n;
2122
- try {
2123
- return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
2124
- } catch (o) {
2125
- x.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
2126
- return;
2127
- }
2128
- }, We = async (e) => Me(e), ho = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(A).join("; "), fo = [["secure", ""], ["SameSite", "None"]], bo = ({
2129
- name: e,
2130
- value: t,
2131
- expires: n
2132
- }) => {
2133
- const s = ($() ? location.protocol === "https:" : !0) ? fo : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...r, ["path", "/"], ["domain", mo(window.location.hostname)], ...s];
2134
- return ho(i);
2135
- }, Le = async ({
2136
- name: e,
2137
- value: t,
2138
- expires: n,
2139
- canTrack: o
2140
- }) => {
2141
- try {
2142
- if (!o)
2143
- return;
2144
- const s = bo({
2145
- name: e,
2146
- value: t,
2147
- expires: n
2148
- });
2149
- document.cookie = s;
2150
- } catch (s) {
2151
- x.warn("[COOKIE] SET error: ", (s == null ? void 0 : s.message) || s);
2152
- }
2153
- };
2154
- function go() {
2155
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
2156
- const t = Math.random() * 16 | 0;
2157
- return (e == "x" ? t : t & 3 | 8).toString(16);
2158
- });
2159
- }
2160
- function Ke() {
2161
- return go().replace(/-/g, "");
2162
- }
2163
- const He = "builderSessionId", yo = async ({
2164
- canTrack: e
2165
- }) => {
2166
- if (!e)
2167
- return;
2168
- const t = await We({
2169
- name: He,
2170
- canTrack: e
2171
- });
2172
- if (A(t))
2173
- return t;
2174
- {
2175
- const n = ko();
2176
- return vo({
2177
- id: n,
2178
- canTrack: e
2179
- }), n;
2180
- }
2181
- }, ko = () => Ke(), vo = ({
2182
- id: e,
2183
- canTrack: t
2184
- }) => Le({
2185
- name: He,
2186
- value: e,
2187
- canTrack: t
2188
- }), ze = () => $() && typeof localStorage < "u" ? localStorage : void 0, So = ({
2189
- key: e,
2190
- canTrack: t
2191
- }) => {
2192
- var n;
2193
- try {
2194
- return t ? (n = ze()) == null ? void 0 : n.getItem(e) : void 0;
2195
- } catch (o) {
2196
- console.debug("[LocalStorage] GET error: ", o);
2197
- return;
2198
- }
2199
- }, Co = ({
2200
- key: e,
2201
- canTrack: t,
2202
- value: n
2203
- }) => {
2204
- var o;
2205
- try {
2206
- t && ((o = ze()) == null || o.setItem(e, n));
2207
- } catch (s) {
2208
- console.debug("[LocalStorage] SET error: ", s);
2209
- }
2210
- }, De = "builderVisitorId", wo = ({
2211
- canTrack: e
2212
- }) => {
2213
- if (!e)
2214
- return;
2215
- const t = So({
2216
- key: De,
2217
- canTrack: e
2218
- });
2219
- if (A(t))
2220
- return t;
2221
- {
2222
- const n = $o();
2223
- return To({
2224
- id: n,
2225
- canTrack: e
2226
- }), n;
2227
- }
2228
- }, $o = () => Ke(), To = ({
2229
- id: e,
2230
- canTrack: t
2231
- }) => Co({
2232
- key: De,
2233
- value: e,
2234
- canTrack: t
2235
- }), Io = async ({
2236
- canTrack: e
2237
- }) => {
2238
- if (!e)
2239
- return {
2240
- visitorId: void 0,
2241
- sessionId: void 0
2242
- };
2243
- const t = await yo({
2244
- canTrack: e
2245
- }), n = wo({
2246
- canTrack: e
2247
- });
2248
- return {
2249
- sessionId: t,
2250
- visitorId: n
2251
- };
2252
- }, Ro = async ({
2253
- type: e,
2254
- canTrack: t,
2255
- apiKey: n,
2256
- metadata: o,
2257
- ...s
2258
- }) => ({
2259
- type: e,
2260
- data: {
2261
- ...s,
2262
- metadata: {
2263
- url: location.href,
2264
- ...o
2265
- },
2266
- ...await Io({
2267
- canTrack: t
2268
- }),
2269
- userAttributes: Ie(),
2270
- ownerId: n
2271
- }
2272
- });
2273
- async function te(e) {
2274
- if (!e.apiKey) {
2275
- x.error("Missing API key for track call. Please provide your API key.");
2276
- return;
2277
- }
2278
- if (!!e.canTrack && !_() && !!($() || j === "reactNative"))
2279
- return fetch("https://cdn.builder.io/api/v1/track", {
2280
- method: "POST",
2281
- body: JSON.stringify({
2282
- events: [await Ro(e)]
2283
- }),
2284
- headers: {
2285
- "content-type": "application/json"
2286
- },
2287
- mode: "cors"
2288
- }).catch((t) => {
2289
- console.error("Failed to track: ", t);
2290
- });
2291
- }
2292
- const hs = (e) => te({
2293
- ...e,
2294
- canTrack: !0
2295
- }), xo = "0.7.1-1", fe = {};
2296
- function Eo(e, t) {
2297
- let n = fe[e];
2298
- if (n || (n = fe[e] = []), n.push(t), $()) {
2299
- const o = {
2300
- type: "builder.register",
2301
- data: {
2302
- type: e,
2303
- info: t
2304
- }
2305
- };
2306
- try {
2307
- parent.postMessage(o, "*"), parent !== window && window.postMessage(o, "*");
2308
- } catch (s) {
2309
- console.debug("Could not postmessage", s);
2310
- }
2311
- }
2312
- }
2313
- const _o = () => {
2314
- Eo("insertMenu", {
2315
- name: "_default",
2316
- default: !0,
2317
- items: [{
2318
- name: "Box"
2319
- }, {
2320
- name: "Text"
2321
- }, {
2322
- name: "Image"
2323
- }, {
2324
- name: "Columns"
2325
- }, {
2326
- name: "Core:Section"
2327
- }, {
2328
- name: "Core:Button"
2329
- }, {
2330
- name: "Embed"
2331
- }, {
2332
- name: "Custom Code"
2333
- }]
2334
- });
2335
- };
2336
- let be = !1;
2337
- const Ao = (e = {}) => {
2338
- var t, n;
2339
- be || (be = !0, $() && ((t = window.parent) == null || t.postMessage({
2340
- type: "builder.sdkInfo",
2341
- data: {
2342
- target: j,
2343
- version: xo,
2344
- supportsPatchUpdates: !1,
2345
- supportsAddBlockScoping: !0,
2346
- supportsCustomBreakpoints: !0
2347
- }
2348
- }, "*"), (n = window.parent) == null || n.postMessage({
2349
- type: "builder.updateContent",
2350
- data: {
2351
- options: e
2352
- }
2353
- }, "*"), window.addEventListener("message", ({
2354
- data: o
2355
- }) => {
2356
- var s, r;
2357
- if (!!(o != null && o.type))
2358
- switch (o.type) {
2359
- case "builder.evaluate": {
2360
- const i = o.data.text, a = o.data.arguments || [], c = o.data.id, l = new Function(i);
2361
- let u, f = null;
2362
- try {
2363
- u = l.apply(null, a);
2364
- } catch (m) {
2365
- f = m;
2366
- }
2367
- f ? (s = window.parent) == null || s.postMessage({
2368
- type: "builder.evaluateError",
2369
- data: {
2370
- id: c,
2371
- error: f.message
2372
- }
2373
- }, "*") : u && typeof u.then == "function" ? u.then((m) => {
2374
- var p;
2375
- (p = window.parent) == null || p.postMessage({
2376
- type: "builder.evaluateResult",
2377
- data: {
2378
- id: c,
2379
- result: m
2380
- }
2381
- }, "*");
2382
- }).catch(console.error) : (r = window.parent) == null || r.postMessage({
2383
- type: "builder.evaluateResult",
2384
- data: {
2385
- result: u,
2386
- id: c
2387
- }
2388
- }, "*");
2389
- break;
2390
- }
2391
- }
2392
- })));
2393
- };
2394
- function ge(e) {
2395
- return Math.round(e * 1e3) / 1e3;
2396
- }
2397
- const jo = (e, t, n = !0) => {
2398
- if (!(e instanceof HTMLElement))
2399
- return null;
2400
- let o = n ? e : e.parentElement;
2401
- do {
2402
- if (!o)
2403
- return null;
2404
- if (t(o))
2405
- return o;
2406
- } while (o = o.parentElement);
2407
- return null;
2408
- }, Po = (e) => jo(e, (t) => {
2409
- const n = t.getAttribute("builder-id") || t.id;
2410
- return Boolean((n == null ? void 0 : n.indexOf("builder-")) === 0);
2411
- }), ye = ({
2412
- event: e,
2413
- target: t
2414
- }) => {
2415
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, s = e.clientY - n.top, r = ge(o / n.width), i = ge(s / n.height);
2416
- return {
2417
- x: r,
2418
- y: i
2419
- };
2420
- }, Bo = (e) => {
2421
- const t = e.target, n = t && Po(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2422
- return {
2423
- targetBuilderElement: o || void 0,
2424
- metadata: {
2425
- targetOffset: t ? ye({
2426
- event: e,
2427
- target: t
2428
- }) : void 0,
2429
- builderTargetOffset: n ? ye({
2430
- event: e,
2431
- target: n
2432
- }) : void 0,
2433
- builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
2434
- }
2435
- };
2436
- }, Vo = "builder.tests", se = (e) => `${Vo}.${e}`, Uo = ({
2437
- contentId: e
2438
- }) => We({
2439
- name: se(e),
2440
- canTrack: !0
2441
- }), No = ({
2442
- contentId: e
2443
- }) => Me({
2444
- name: se(e),
2445
- canTrack: !0
2446
- }), Oo = ({
2447
- contentId: e,
2448
- value: t
2449
- }) => Le({
2450
- name: se(e),
2451
- value: t,
2452
- canTrack: !0
2453
- }), qe = (e) => A(e.id) && A(e.variations) && Object.keys(e.variations).length > 0, Fo = ({
2454
- id: e,
2455
- variations: t
2456
- }) => {
2457
- var s;
2458
- let n = 0;
2459
- const o = Math.random();
2460
- for (const r in t) {
2461
- const i = (s = t[r]) == null ? void 0 : s.testRatio;
2462
- if (n += i, o < n)
2463
- return r;
2464
- }
2465
- return e;
2466
- }, Ge = (e) => {
2467
- const t = Fo(e);
2468
- return Oo({
2469
- contentId: e.id,
2470
- value: t
2471
- }).catch((n) => {
2472
- x.error("could not store A/B test variation: ", n);
2473
- }), t;
2474
- }, Je = ({
2475
- item: e,
2476
- testGroupId: t
2477
- }) => {
2478
- const n = e.variations[t];
2479
- return t === e.id || !n ? {
2480
- testVariationId: e.id,
2481
- testVariationName: "Default"
2482
- } : {
2483
- data: n.data,
2484
- testVariationId: n.id,
2485
- testVariationName: n.name || (n.id === e.id ? "Default" : "")
2486
- };
2487
- }, Mo = ({
2488
- item: e,
2489
- canTrack: t
2490
- }) => {
2491
- if (!t)
2492
- return e;
2493
- if (!e)
2494
- return;
2495
- if (!qe(e))
2496
- return e;
2497
- const n = No({
2498
- contentId: e.id
2499
- }) || Ge({
2500
- variations: e.variations,
2501
- id: e.id
2502
- }), o = Je({
2503
- item: e,
2504
- testGroupId: n
2505
- });
2506
- return {
2507
- ...e,
2508
- ...o
2509
- };
2510
- }, Wo = async ({
2511
- item: e,
2512
- canTrack: t
2513
- }) => {
2514
- if (!t || !qe(e))
2515
- return e;
2516
- const o = await Uo({
2517
- contentId: e.id
2518
- }) || Ge({
2519
- variations: e.variations,
2520
- id: e.id
2521
- }), s = Je({
2522
- item: e,
2523
- testGroupId: o
2524
- });
2525
- return {
2526
- ...e,
2527
- ...s
2528
- };
2529
- }, M = (e) => A(e) ? e : !0;
2530
- function H(e, t = null, n = ".") {
2531
- return Object.keys(e).reduce((o, s) => {
2532
- const r = e[s], i = [t, s].filter(Boolean).join(n);
2533
- return [typeof r == "object", r !== null, !(Array.isArray(r) && r.length === 0)].every(Boolean) ? {
2534
- ...o,
2535
- ...H(r, i, n)
2536
- } : {
2537
- ...o,
2538
- [i]: r
2539
- };
2540
- }, {});
2541
- }
2542
- const ke = "builder.", Lo = "options.", Ko = (e) => {
2543
- const t = {};
2544
- return e.forEach((n, o) => {
2545
- t[o] = n;
2546
- }), t;
2547
- }, Ye = (e) => {
2548
- if (!e)
2549
- return {};
2550
- const t = Xe(e), n = {};
2551
- return Object.keys(t).forEach((o) => {
2552
- if (o.startsWith(ke)) {
2553
- const s = o.replace(ke, "").replace(Lo, "");
2554
- n[s] = t[o];
2555
- }
2556
- }), n;
2557
- }, Ho = () => {
2558
- if (!$())
2559
- return {};
2560
- const e = new URLSearchParams(window.location.search);
2561
- return Ye(e);
2562
- }, Xe = (e) => e instanceof URLSearchParams ? Ko(e) : e, zo = "v3", ve = (e) => typeof e == "number" && !isNaN(e) && e >= 0, re = (e) => {
2563
- let {
2564
- noTraverse: t = !1
2565
- } = e;
2566
- const {
2567
- limit: n = 30,
2568
- userAttributes: o,
2569
- query: s,
2570
- model: r,
2571
- apiKey: i,
2572
- includeRefs: a = !0,
2573
- enrich: c,
2574
- locale: l,
2575
- apiVersion: u = zo,
2576
- fields: f,
2577
- omit: m,
2578
- offset: p,
2579
- cacheSeconds: b,
2580
- staleCacheSeconds: S,
2581
- sort: T,
2582
- includeUnpublished: E
2583
- } = e;
2584
- if (!i)
2585
- throw new Error("Missing API key");
2586
- if (!["v2", "v3"].includes(u))
2587
- throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${u}'`);
2588
- (e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
2589
- const g = new URL(`https://cdn.builder.io/api/${u}/content/${r}?apiKey=${i}&limit=${n}&noTraverse=${t}&includeRefs=${a}${l ? `&locale=${l}` : ""}${c ? `&enrich=${c}` : ""}`);
2590
- if (g.searchParams.set("omit", m || "meta.componentsUsed"), f && g.searchParams.set("fields", f), Number.isFinite(p) && p > -1 && g.searchParams.set("offset", String(Math.floor(p))), typeof E == "boolean" && g.searchParams.set("includeUnpublished", String(E)), b && ve(b) && g.searchParams.set("cacheSeconds", String(b)), S && ve(S) && g.searchParams.set("staleCacheSeconds", String(S)), T) {
2591
- const P = H({
2592
- sort: T
2593
- });
2594
- for (const O in P)
2595
- g.searchParams.set(O, JSON.stringify(P[O]));
2596
- }
2597
- const tt = {
2598
- ...Ho(),
2599
- ...Xe(e.options || {})
2600
- }, ie = H(tt);
2601
- for (const P in ie)
2602
- g.searchParams.set(P, String(ie[P]));
2603
- if (o && g.searchParams.set("userAttributes", JSON.stringify(o)), s) {
2604
- const P = H({
2605
- query: s
2606
- });
2607
- for (const O in P)
2608
- g.searchParams.set(O, JSON.stringify(P[O]));
2609
- }
2610
- return g;
2611
- }, Do = (e) => "results" in e;
2612
- async function J(e) {
2613
- const t = await Qe({
2614
- ...e,
2615
- limit: 1
2616
- });
2617
- return t && t.results[0] || null;
2618
- }
2619
- const fs = J, qo = async (e) => {
2620
- const t = re(e);
2621
- return await (await Fe(t.href)).json();
2622
- }, Go = async (e, t, n = re(e)) => {
2623
- const o = M(e.canTrack);
2624
- if (n.search.includes("preview="), !o || !($() || j === "reactNative"))
2625
- return t;
2626
- try {
2627
- const s = [];
2628
- for (const r of t.results)
2629
- s.push(await Wo({
2630
- item: r,
2631
- canTrack: o
2632
- }));
2633
- t.results = s;
2634
- } catch (s) {
2635
- x.error("Could not process A/B tests. ", s);
2636
- }
2637
- return t;
2638
- };
2639
- async function Qe(e) {
2640
- try {
2641
- const t = re(e), n = await qo(e);
2642
- return Do(n) ? Go(e, n) : (x.error("Error fetching data. ", {
2643
- url: t,
2644
- content: n,
2645
- options: e
2646
- }), null);
2647
- } catch (t) {
2648
- return x.error("Error fetching data. ", t), null;
2649
- }
2650
- }
2651
- const bs = Qe;
2652
- function Jo() {
2653
- return !$() || _() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
2654
- }
2655
- const Yo = y({
2656
- name: "enable-editor",
2657
- props: [
2658
- "builderContextSignal",
2659
- "model",
2660
- "context",
2661
- "canTrack",
2662
- "apiKey",
2663
- "locale",
2664
- "includeRefs",
2665
- "enrich",
2666
- "content",
2667
- "showContent",
2668
- "classNameProp"
2669
- ],
2670
- data() {
2671
- return {
2672
- forceReRenderCount: 0,
2673
- lastUpdated: 0,
2674
- shouldSendResetCookie: !1,
2675
- httpReqsData: {},
2676
- clicked: !1,
2677
- builderContext: Z
2678
- };
2679
- },
2680
- provide() {
2681
- const e = this;
2682
- return {
2683
- [Z.key]: e.builderContextSignal
2684
- };
2685
- },
2686
- mounted() {
2687
- (() => {
2688
- var n, o;
2689
- if ($()) {
2690
- if (_() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
2691
- new CustomEvent("initeditingbldr")
2692
- ), this.builderContextSignal.content && M(this.canTrack)) {
2693
- const r = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, i = (o = this.builderContextSignal.content) == null ? void 0 : o.id, a = this.apiKey;
2694
- te({
2695
- type: "impression",
2696
- canTrack: !0,
2697
- contentId: i,
2698
- apiKey: a,
2699
- variationId: r !== i ? r : void 0
2700
- });
2701
- }
2702
- Jo() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
2703
- new CustomEvent("initpreviewingbldr")
2704
- );
2705
- }
2706
- })(), (() => {
2707
- this.apiKey || x.error(
2708
- "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
2709
- ), this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
2710
- })();
2711
- },
2712
- watch: {
2713
- onUpdateHook0: {
2714
- handler() {
2715
- this.content && this.mergeNewContent(this.content);
2716
- },
2717
- immediate: !0
2718
- },
2719
- onUpdateHook1: { handler() {
2720
- }, immediate: !0 },
2721
- onUpdateHook2: {
2722
- handler() {
2723
- this.evaluateJsCode();
2724
- },
2725
- immediate: !0
2726
- },
2727
- onUpdateHook3: {
2728
- handler() {
2729
- this.runHttpRequests();
2730
- },
2731
- immediate: !0
2732
- },
2733
- onUpdateHook4: {
2734
- handler() {
2735
- this.emitStateUpdate();
2736
- },
2737
- immediate: !0
2738
- }
2739
- },
2740
- unmounted() {
2741
- $() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
2742
- "builder:component:stateChangeListenerActivated",
2743
- this.emitStateUpdate
2744
- ));
2745
- },
2746
- computed: {
2747
- onUpdateHook0() {
2748
- return {
2749
- 0: this.content
2750
- };
2751
- },
2752
- onUpdateHook1() {
2753
- return {
2754
- 0: this.shouldSendResetCookie
2755
- };
2756
- },
2757
- onUpdateHook2() {
2758
- var e, t;
2759
- return {
2760
- 0: (t = (e = this.builderContextSignal.content) == null ? void 0 : e.data) == null ? void 0 : t.jsCode,
2761
- 1: this.builderContextSignal.rootState
2762
- };
2763
- },
2764
- onUpdateHook3() {
2765
- var e, t;
2766
- return {
2767
- 0: (t = (e = this.builderContextSignal.content) == null ? void 0 : e.data) == null ? void 0 : t.httpRequests
2768
- };
2769
- },
2770
- onUpdateHook4() {
2771
- return {
2772
- 0: this.builderContextSignal.rootState
2773
- };
2774
- }
2775
- },
2776
- methods: {
2777
- mergeNewContent(e) {
2778
- var n, o, s, r, i;
2779
- const t = {
2780
- ...this.builderContextSignal.content,
2781
- ...e,
2782
- data: {
2783
- ...(n = this.builderContextSignal.content) == null ? void 0 : n.data,
2784
- ...e == null ? void 0 : e.data
2785
- },
2786
- meta: {
2787
- ...(o = this.builderContextSignal.content) == null ? void 0 : o.meta,
2788
- ...e == null ? void 0 : e.meta,
2789
- breakpoints: ((s = e == null ? void 0 : e.meta) == null ? void 0 : s.breakpoints) || ((i = (r = this.builderContextSignal.content) == null ? void 0 : r.meta) == null ? void 0 : i.breakpoints)
2790
- }
2791
- };
2792
- this.builderContextSignal.content = t;
2793
- },
2794
- processMessage(e) {
2795
- var n;
2796
- const { data: t } = e;
2797
- if (t)
2798
- switch (t.type) {
2799
- case "builder.configureSdk": {
2800
- const o = t.data, { breakpoints: s, contentId: r } = o;
2801
- if (!r || r !== ((n = this.builderContextSignal.content) == null ? void 0 : n.id))
2802
- return;
2803
- s && this.mergeNewContent({
2804
- meta: {
2805
- breakpoints: s
2806
- }
2807
- }), this.forceReRenderCount = this.forceReRenderCount + 1;
2808
- break;
2809
- }
2810
- case "builder.contentUpdate": {
2811
- const o = t.data, s = o.key || o.alias || o.entry || o.modelName, r = o.data;
2812
- s === this.model && (this.mergeNewContent(r), this.forceReRenderCount = this.forceReRenderCount + 1);
2813
- break;
2814
- }
2815
- }
2816
- },
2817
- evaluateJsCode() {
2818
- var t, n;
2819
- const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
2820
- e && z({
2821
- code: e,
2822
- context: this.context || {},
2823
- localState: void 0,
2824
- rootState: this.builderContextSignal.rootState,
2825
- rootSetState: this.builderContextSignal.rootSetState
2826
- });
2827
- },
2828
- onClick(e) {
2829
- var t, n;
2830
- if (this.builderContextSignal.content) {
2831
- const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, s = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
2832
- te({
2833
- type: "click",
2834
- canTrack: M(this.canTrack),
2835
- contentId: s,
2836
- apiKey: this.apiKey,
2837
- variationId: o !== s ? o : void 0,
2838
- ...Bo(e),
2839
- unique: !this.clicked
2840
- });
2841
- }
2842
- this.clicked || (this.clicked = !0);
2843
- },
2844
- evalExpression(e) {
2845
- return e.replace(
2846
- /{{([^}]+)}}/g,
2847
- (t, n) => z({
2848
- code: n,
2849
- context: this.context || {},
2850
- localState: void 0,
2851
- rootState: this.builderContextSignal.rootState,
2852
- rootSetState: this.builderContextSignal.rootSetState
2853
- })
2854
- );
2855
- },
2856
- handleRequest({ url: e, key: t }) {
2857
- Fe(e).then((n) => n.json()).then((n) => {
2858
- var s, r;
2859
- const o = {
2860
- ...this.builderContextSignal.rootState,
2861
- [t]: n
2862
- };
2863
- (r = (s = this.builderContextSignal).rootSetState) == null || r.call(s, o), this.httpReqsData[t] = !0;
2864
- }).catch((n) => {
2865
- console.error("error fetching dynamic data", e, n);
2866
- });
2867
- },
2868
- runHttpRequests() {
2869
- var t, n, o;
2870
- const e = (o = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) != null ? o : {};
2871
- Object.entries(e).forEach(([s, r]) => {
2872
- if (r && (!this.httpReqsData[s] || _())) {
2873
- const i = this.evalExpression(r);
2874
- this.handleRequest({
2875
- url: i,
2876
- key: s
2877
- });
2878
- }
2879
- });
2880
- },
2881
- emitStateUpdate() {
2882
- _() && window.dispatchEvent(
2883
- new CustomEvent(
2884
- "builder:component:stateChange",
2885
- {
2886
- detail: {
2887
- state: N(this.builderContextSignal.rootState),
2888
- ref: {
2889
- name: this.model
2890
- }
2891
- }
2892
- }
2893
- )
2894
- );
2895
- },
2896
- elementRef_onIniteditingbldr(e) {
2897
- this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage), _o(), Ao({
2898
- ...this.locale ? {
2899
- locale: this.locale
2900
- } : {},
2901
- ...this.includeRefs ? {
2902
- includeRefs: this.includeRefs
2903
- } : {},
2904
- ...this.enrich ? {
2905
- enrich: this.enrich
2906
- } : {}
2907
- }), Object.values(
2908
- this.builderContextSignal.componentInfos
2909
- ).forEach((t) => {
2910
- var o;
2911
- const n = Zn(t);
2912
- (o = window.parent) == null || o.postMessage(n, "*");
2913
- }), window.addEventListener(
2914
- "builder:component:stateChangeListenerActivated",
2915
- this.emitStateUpdate
2916
- );
2917
- },
2918
- elementRef_onInitpreviewingbldr(e) {
2919
- const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
2920
- `builder.preview.${n}`
2921
- ), s = t.get("apiKey") || t.get("builder.space");
2922
- n === this.model && s === this.apiKey && (!this.content || o === this.content.id) && J({
2923
- model: this.model,
2924
- apiKey: this.apiKey,
2925
- apiVersion: this.builderContextSignal.apiVersion
2926
- }).then((r) => {
2927
- r && this.mergeNewContent(r);
2928
- });
2929
- },
2930
- _classStringToObject(e) {
2931
- const t = {};
2932
- if (typeof e != "string")
2933
- return t;
2934
- const n = e.trim().split(/\s+/);
2935
- for (const o of n)
2936
- t[o] = !0;
2937
- return t;
2938
- }
2939
- }
2940
- }), Xo = ["builder-content-id", "builder-model"];
2941
- function Qo(e, t, n, o, s, r) {
2942
- var i;
2943
- return e.builderContextSignal.content ? (d(), h("div", I({
2944
- key: e.forceReRenderCount,
2945
- ref: "elementRef",
2946
- onClick: t[0] || (t[0] = (a) => e.onClick(a)),
2947
- "builder-content-id": (i = e.builderContextSignal.content) == null ? void 0 : i.id,
2948
- "builder-model": e.model,
2949
- class: e._classStringToObject(e.classNameProp),
2950
- onIniteditingbldr: t[1] || (t[1] = (a) => e.elementRef_onIniteditingbldr(a)),
2951
- onInitpreviewingbldr: t[2] || (t[2] = (a) => e.elementRef_onInitpreviewingbldr(a))
2952
- }, {
2953
- ...e.showContent ? {} : {
2954
- hidden: !0,
2955
- "aria-hidden": !0
2956
- }
2957
- }), [
2958
- U(e.$slots, "default")
2959
- ], 16, Xo)) : w("v-if", !0);
2960
- }
2961
- const Zo = /* @__PURE__ */ k(Yo, [["render", Qo], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/content/components/enable-editor.vue"]]), es = y({
2962
- render() {
2963
- return Ce("script", { id: this.id, innerHTML: this.scriptStr });
2964
- },
2965
- name: "inlined-script",
2966
- props: ["scriptStr", "id"]
2967
- }), Ze = /* @__PURE__ */ k(es, [["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/inlined-script.vue"]]), ts = ot, ns = y({
2968
- name: "content-component",
2969
- components: {
2970
- EnableEditor: Zo,
2971
- InlinedScript: Ze,
2972
- ContentStyles: ao,
2973
- Blocks: oe
2974
- },
2975
- props: [
2976
- "content",
2977
- "customComponents",
2978
- "data",
2979
- "locale",
2980
- "context",
2981
- "apiKey",
2982
- "apiVersion",
2983
- "model",
2984
- "canTrack",
2985
- "includeRefs",
2986
- "enrich",
2987
- "classNameProp",
2988
- "showContent",
2989
- "isSsrAbTest"
2990
- ],
2991
- data() {
2992
- var e, t;
2993
- return {
2994
- scriptStr: kn({
2995
- variationId: (e = this.content) == null ? void 0 : e.testVariationId,
2996
- contentId: (t = this.content) == null ? void 0 : t.id
2997
- }),
2998
- registeredComponents: [
2999
- ...me(),
3000
- ...he,
3001
- ...this.customComponents || []
3002
- ].reduce(
3003
- (n, { component: o, ...s }) => ({
3004
- ...n,
3005
- [s.name]: {
3006
- component: ts(o),
3007
- ...ee(s)
3008
- }
3009
- }),
3010
- {}
3011
- ),
3012
- builderContextSignal: {
3013
- content: lo({
3014
- content: this.content,
3015
- data: this.data
3016
- }),
3017
- localState: void 0,
3018
- rootState: co({
3019
- content: this.content,
3020
- data: this.data,
3021
- locale: this.locale
3022
- }),
3023
- rootSetState: this.contentSetState,
3024
- context: this.context || {},
3025
- apiKey: this.apiKey,
3026
- apiVersion: this.apiVersion,
3027
- componentInfos: [
3028
- ...me(),
3029
- ...he,
3030
- ...this.customComponents || []
3031
- ].reduce(
3032
- (n, { component: o, ...s }) => ({
3033
- ...n,
3034
- [s.name]: ee(s)
3035
- }),
3036
- {}
3037
- ),
3038
- inheritedStyles: {}
3039
- },
3040
- TARGET: j
3041
- };
3042
- },
3043
- provide() {
3044
- const e = this;
3045
- return {
3046
- [Ve.key]: {
3047
- registeredComponents: e.registeredComponents
3048
- }
3049
- };
3050
- },
3051
- methods: {
3052
- contentSetState(e) {
3053
- this.builderContextSignal.rootState = e;
3054
- }
3055
- }
3056
- });
3057
- function os(e, t, n, o, s, r) {
3058
- const i = v("inlined-script"), a = v("content-styles"), c = v("blocks"), l = v("enable-editor");
3059
- return d(), C(l, I({
3060
- content: e.content,
3061
- model: e.model,
3062
- context: e.context,
3063
- apiKey: e.apiKey,
3064
- canTrack: e.canTrack,
3065
- locale: e.locale,
3066
- includeRefs: e.includeRefs,
3067
- enrich: e.enrich,
3068
- classNameProp: e.classNameProp,
3069
- showContent: e.showContent,
3070
- builderContextSignal: e.builderContextSignal
3071
- }, {}), {
3072
- default: ne(() => {
3073
- var u, f, m, p, b, S, T;
3074
- return [
3075
- e.isSsrAbTest ? (d(), C(i, {
3076
- key: 0,
3077
- scriptStr: e.scriptStr
3078
- }, null, 8, ["scriptStr"])) : w("v-if", !0),
3079
- e.TARGET !== "reactNative" ? (d(), C(a, {
3080
- key: 1,
3081
- contentId: (u = e.builderContextSignal.content) == null ? void 0 : u.id,
3082
- cssCode: (m = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : m.cssCode,
3083
- customFonts: (b = (p = e.builderContextSignal.content) == null ? void 0 : p.data) == null ? void 0 : b.customFonts
3084
- }, null, 8, ["contentId", "cssCode", "customFonts"])) : w("v-if", !0),
3085
- V(c, {
3086
- blocks: (T = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : T.blocks,
3087
- context: e.builderContextSignal,
3088
- registeredComponents: e.registeredComponents
3089
- }, null, 8, ["blocks", "context", "registeredComponents"])
3090
- ];
3091
- }),
3092
- _: 1
3093
- }, 16, ["content", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "classNameProp", "showContent", "builderContextSignal"]);
3094
- }
3095
- const ss = /* @__PURE__ */ k(ns, [["render", os], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/content/content.vue"]]), rs = y({
3096
- name: "content-variants",
3097
- components: {
3098
- InlinedScript: Ze,
3099
- InlinedStyles: G,
3100
- ContentComponent: ss
3101
- },
3102
- props: [
3103
- "canTrack",
3104
- "content",
3105
- "__isNestedRender",
3106
- "model",
3107
- "data",
3108
- "context",
3109
- "apiKey",
3110
- "apiVersion",
3111
- "customComponents",
3112
- "locale",
3113
- "includeRefs",
3114
- "enrich"
3115
- ],
3116
- data() {
3117
- return {
3118
- shouldRenderVariants: mn({
3119
- canTrack: M(this.canTrack),
3120
- content: this.content
3121
- }),
3122
- getScriptString: gn,
3123
- getVariants: K,
3124
- TARGET: j
3125
- };
3126
- },
3127
- mounted() {
3128
- this.shouldRenderVariants = !1;
3129
- },
3130
- computed: {
3131
- variantScriptStr() {
3132
- var e;
3133
- return yn(
3134
- K(this.content).map((t) => ({
3135
- id: t.testVariationId,
3136
- testRatio: t.testRatio
3137
- })),
3138
- ((e = this.content) == null ? void 0 : e.id) || ""
3139
- );
3140
- },
3141
- hideVariantsStyleString() {
3142
- return K(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
3143
- },
3144
- defaultContent() {
3145
- var e;
3146
- return this.shouldRenderVariants ? {
3147
- ...this.content,
3148
- testVariationId: (e = this.content) == null ? void 0 : e.id
3149
- } : Mo({
3150
- item: this.content,
3151
- canTrack: M(this.canTrack)
3152
- });
3153
- }
3154
- }
3155
- });
3156
- function is(e, t, n, o, s, r) {
3157
- var l, u;
3158
- const i = v("inlined-script"), a = v("inlined-styles"), c = v("content-component");
3159
- return d(), h(R, null, [
3160
- !e.__isNestedRender && e.TARGET !== "reactNative" ? (d(), C(i, {
3161
- key: 0,
3162
- scriptStr: e.getScriptString()
3163
- }, null, 8, ["scriptStr"])) : w("v-if", !0),
3164
- e.shouldRenderVariants ? (d(), h(R, { key: 1 }, [
3165
- V(a, {
3166
- id: `variants-styles-${(l = e.content) == null ? void 0 : l.id}`,
3167
- styles: e.hideVariantsStyleString
3168
- }, null, 8, ["id", "styles"]),
3169
- V(i, { scriptStr: e.variantScriptStr }, null, 8, ["scriptStr"]),
3170
- (d(!0), h(R, null, B(e.getVariants(e.content), (f, m) => (d(), C(c, {
3171
- key: f.testVariationId,
3172
- content: f,
3173
- showContent: !1,
3174
- classNameProp: void 0,
3175
- model: e.model,
3176
- data: e.data,
3177
- context: e.context,
3178
- apiKey: e.apiKey,
3179
- apiVersion: e.apiVersion,
3180
- customComponents: e.customComponents,
3181
- canTrack: e.canTrack,
3182
- locale: e.locale,
3183
- includeRefs: e.includeRefs,
3184
- enrich: e.enrich,
3185
- isSsrAbTest: e.shouldRenderVariants
3186
- }, null, 8, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest"]))), 128))
3187
- ], 64)) : w("v-if", !0),
3188
- V(c, I({
3189
- content: e.defaultContent,
3190
- classNameProp: `variant-${(u = e.content) == null ? void 0 : u.id}`,
3191
- showContent: !0,
3192
- model: e.model,
3193
- data: e.data,
3194
- context: e.context,
3195
- apiKey: e.apiKey,
3196
- apiVersion: e.apiVersion,
3197
- customComponents: e.customComponents,
3198
- canTrack: e.canTrack,
3199
- locale: e.locale,
3200
- includeRefs: e.includeRefs,
3201
- enrich: e.enrich,
3202
- isSsrAbTest: e.shouldRenderVariants
3203
- }, {
3204
- key: e.shouldRenderVariants.toString()
3205
- }), null, 16, ["content", "classNameProp", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest"])
3206
- ], 64);
3207
- }
3208
- const et = /* @__PURE__ */ k(rs, [["render", is], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/content-variants/content-variants.vue"]]), as = async ({
3209
- builderContextValue: e,
3210
- symbol: t
3211
- }) => {
3212
- if ((t == null ? void 0 : t.model) && (e == null ? void 0 : e.apiKey))
3213
- return J({
3214
- model: t.model,
3215
- apiKey: e.apiKey,
3216
- apiVersion: e.apiVersion,
3217
- ...(t == null ? void 0 : t.entry) && {
3218
- query: {
3219
- id: t.entry
3220
- }
3221
- }
3222
- }).catch((n) => {
3223
- x.error("Could not fetch symbol content: ", n);
3224
- });
3225
- }, cs = y({
3226
- name: "builder-symbol",
3227
- components: { ContentVariants: et },
3228
- props: [
3229
- "js",
3230
- "attributes",
3231
- "symbol",
3232
- "dynamic",
3233
- "builderContext",
3234
- "builderComponents"
3235
- ],
3236
- data() {
3237
- var e;
3238
- return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: q };
3239
- },
3240
- mounted() {
3241
- this.setContent();
3242
- },
3243
- watch: {
3244
- onUpdateHook0: {
3245
- handler() {
3246
- this.setContent();
3247
- },
3248
- immediate: !0
3249
- }
3250
- },
3251
- computed: {
3252
- className() {
3253
- var e, t;
3254
- return [
3255
- ...Object.keys(this.attributes.class),
3256
- "builder-symbol",
3257
- (e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
3258
- ((t = this.symbol) == null ? void 0 : t.dynamic) || this.dynamic ? "builder-dynamic-symbol" : void 0
3259
- ].filter(Boolean).join(" ");
3260
- },
3261
- onUpdateHook0() {
3262
- return {
3263
- 0: this.symbol
3264
- };
3265
- }
3266
- },
3267
- methods: {
3268
- setContent() {
3269
- this.contentToUse || as({
3270
- symbol: this.symbol,
3271
- builderContextValue: this.builderContext
3272
- }).then((e) => {
3273
- e && (this.contentToUse = e);
3274
- });
3275
- },
3276
- _classStringToObject(e) {
3277
- const t = {};
3278
- if (typeof e != "string")
3279
- return t;
3280
- const n = e.trim().split(/\s+/);
3281
- for (const o of n)
3282
- t[o] = !0;
3283
- return t;
3284
- }
3285
- }
3286
- });
3287
- function ls(e, t, n, o, s, r) {
3288
- var a, c, l, u;
3289
- const i = v("content-variants");
3290
- return d(), h("div", I({
3291
- class: e._classStringToObject(e.className)
3292
- }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3293
- V(i, {
3294
- __isNestedRender: !0,
3295
- apiVersion: e.builderContext.apiVersion,
3296
- apiKey: e.builderContext.apiKey,
3297
- context: e.builderContext.context,
3298
- customComponents: Object.values(e.builderComponents),
3299
- data: {
3300
- ...(a = e.symbol) == null ? void 0 : a.data,
3301
- ...e.builderContext.localState,
3302
- ...(l = (c = e.contentToUse) == null ? void 0 : c.data) == null ? void 0 : l.state
3303
- },
3304
- model: (u = e.symbol) == null ? void 0 : u.model,
3305
- content: e.contentToUse
3306
- }, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content"])
3307
- ], 16);
3308
- }
3309
- const ds = /* @__PURE__ */ k(cs, [["render", ls], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/symbol/symbol.vue"]]), gs = oe, ys = et, Se = {};
3310
- function ks(e) {
3311
- if ($()) {
3312
- Object.assign(Se, e);
3313
- const t = {
3314
- type: "builder.settingsChange",
3315
- data: Se
3316
- };
3317
- parent.postMessage(t, "*");
3318
- }
3319
- }
3320
- const vs = async (e) => {
3321
- var o, s, r;
3322
- const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((s = e.userAttributes) == null ? void 0 : s.urlPath), n = {
3323
- ...e,
3324
- apiKey: e.apiKey,
3325
- model: e.model || "page",
3326
- userAttributes: {
3327
- ...e.userAttributes,
3328
- ...t ? {
3329
- urlPath: t
3330
- } : {}
3331
- },
3332
- options: Ye(e.searchParams || ((r = e.url) == null ? void 0 : r.searchParams) || e.options)
3333
- };
3334
- return {
3335
- apiKey: n.apiKey,
3336
- model: n.model,
3337
- content: await J(n)
3338
- };
3339
- };
3340
- export {
3341
- Z as B,
3342
- et as C,
3343
- en as F,
3344
- ln as I,
3345
- gs as R,
3346
- pn as S,
3347
- j as T,
3348
- Vn as V,
3349
- k as _,
3350
- Be as a,
3351
- Pe as b,
3352
- $t as c,
3353
- oe as d,
3354
- z as e,
3355
- ys as f,
3356
- ct as g,
3357
- Xt as h,
3358
- ds as i,
3359
- _n as j,
3360
- _ as k,
3361
- Jo as l,
3362
- Zn as m,
3363
- Qe as n,
3364
- J as o,
3365
- bs as p,
3366
- fs as q,
3367
- Eo as r,
3368
- ks as s,
3369
- Go as t,
3370
- Ye as u,
3371
- hs as v,
3372
- ts as w,
3373
- vs as x,
3374
- ms as y
3375
- };