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