@builder.io/sdk-vue 0.5.9 → 0.6.1-0

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