@builder.io/sdk-vue 0.7.3 → 0.7.5
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/package.json +1 -1
- package/vue2/lib/{edge/block-b774a93c.js → browser/block-b8bfcb77.js} +11 -9
- package/vue2/lib/browser/block-f18eeef5.cjs +3 -0
- package/vue2/lib/{node/block-styles-eba3ea7b.js → browser/block-styles-33adc3cd.js} +5 -5
- package/vue2/lib/{edge/block-styles-c8c8b8d3.cjs → browser/block-styles-e0d81772.cjs} +1 -1
- package/vue2/lib/browser/{block-wrapper-dd6ba030.cjs → block-wrapper-41011f58.cjs} +1 -1
- package/vue2/lib/browser/{block-wrapper-6e7d432c.js → block-wrapper-950d3006.js} +5 -5
- package/vue2/lib/browser/blocks/video/video.vue.d.ts +24 -2
- package/vue2/lib/{edge/blocks-wrapper-a3348911.cjs → browser/blocks-wrapper-77802ec6.cjs} +1 -1
- package/vue2/lib/{edge/blocks-wrapper-1d254421.js → browser/blocks-wrapper-a522cccb.js} +1 -1
- package/vue2/lib/{edge/component-ref-b47a7cb7.js → browser/component-ref-2413b882.js} +6 -6
- package/vue2/lib/{edge/component-ref-0621d5d9.cjs → browser/component-ref-f0dd90c7.cjs} +1 -1
- package/vue2/lib/browser/components/content/content.helpers.d.ts +1 -1
- package/vue2/lib/browser/components/content/content.types.d.ts +0 -4
- package/vue2/lib/browser/components/content/content.vue.d.ts +1 -1
- package/vue2/lib/browser/components/content-variants/content-variants.vue.d.ts +1 -1
- package/vue2/lib/browser/components/content-variants/helpers.d.ts +3 -3
- package/vue2/lib/browser/components/content-variants/inlined-fns.d.ts +14 -0
- package/vue2/lib/browser/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/browser/{content-30d3c506.js → content-43a1dc9c.js} +32 -38
- package/vue2/lib/{node/content-88b32cda.cjs → browser/content-45906cc9.cjs} +1 -1
- package/vue2/lib/browser/{css-95da9602.js → css-42aa7f84.js} +1 -1
- package/vue2/lib/{node/css-efdd92ad.cjs → browser/css-605fcc40.cjs} +1 -1
- package/vue2/lib/browser/{enable-editor-89367603.js → enable-editor-bba63d74.js} +15 -16
- package/vue2/lib/browser/enable-editor-f0119e65.cjs +1 -0
- package/vue2/lib/browser/{evaluate-7de8534a.cjs → evaluate-0e925150.cjs} +1 -1
- package/vue2/lib/browser/{evaluate-53f7e690.js → evaluate-9a88b50c.js} +1 -1
- package/vue2/lib/{node/get-block-actions-becefe5e.js → browser/get-block-actions-abefbd5a.js} +2 -2
- package/vue2/lib/browser/{get-block-actions-cd507d3e.cjs → get-block-actions-f45b7d64.cjs} +1 -1
- package/vue2/lib/browser/{get-block-properties-af19618f.js → get-block-properties-6bf3a9f6.js} +2 -2
- package/vue2/lib/{node/get-block-properties-5bf39e63.cjs → browser/get-block-properties-deacdc91.cjs} +1 -1
- package/vue2/lib/browser/{get-processed-block-9288ea54.js → get-processed-block-2f7badd8.js} +2 -2
- package/vue2/lib/browser/{get-processed-block-91e4a6e7.cjs → get-processed-block-44868ee6.cjs} +1 -1
- package/vue2/lib/{node/index-c57f5973.js → browser/index-6ce45901.js} +390 -345
- package/vue2/lib/browser/index-bf80435b.cjs +124 -0
- package/vue2/lib/browser/index-helpers/blocks-exports.d.ts +1 -1
- package/vue2/lib/browser/index.cjs +1 -1
- package/vue2/lib/browser/index.js +1 -1
- package/vue2/lib/browser/inlined-script-567369fc.cjs +1 -0
- package/vue2/lib/{edge/inlined-script-fc1632d4.js → browser/inlined-script-c0cae21b.js} +2 -2
- package/vue2/lib/{node/inlined-styles-42260024.cjs → browser/inlined-styles-420ee28e.cjs} +1 -1
- package/vue2/lib/{node/inlined-styles-240de5b4.js → browser/inlined-styles-a5789a45.js} +1 -1
- package/vue2/lib/{node/interactive-element-1350568d.cjs → browser/interactive-element-3a8e1819.cjs} +1 -1
- package/vue2/lib/{node/interactive-element-b4e340c4.js → browser/interactive-element-be7c3cca.js} +5 -5
- package/vue2/lib/browser/{repeated-block-97182eb4.cjs → repeated-block-cda24fc1.cjs} +1 -1
- package/vue2/lib/{node/repeated-block-6878e061.js → browser/repeated-block-d2924830.js} +2 -2
- package/vue2/lib/{node/styles-5dab5d20.cjs → browser/styles-4394cb3b.cjs} +2 -2
- package/vue2/lib/{node/styles-10277cc4.js → browser/styles-761dab39.js} +2 -2
- package/vue2/lib/{browser/block-bbdd4bbb.js → edge/block-6b69b000.js} +11 -9
- package/vue2/lib/edge/block-ca6608fc.cjs +3 -0
- package/vue2/lib/edge/{block-styles-20474584.js → block-styles-4cc9f141.js} +5 -5
- package/vue2/lib/{node/block-styles-adf14a80.cjs → edge/block-styles-7b5f3a8f.cjs} +1 -1
- package/vue2/lib/{node/block-wrapper-54248068.js → edge/block-wrapper-2b945a1b.js} +5 -5
- package/vue2/lib/edge/{block-wrapper-c985a6b3.cjs → block-wrapper-47a17093.cjs} +1 -1
- package/vue2/lib/edge/blocks/video/video.vue.d.ts +24 -2
- package/vue2/lib/{browser/blocks-wrapper-a3b425e3.js → edge/blocks-wrapper-70a091a6.js} +1 -1
- package/vue2/lib/{browser/blocks-wrapper-d3c9afbc.cjs → edge/blocks-wrapper-7339087f.cjs} +1 -1
- package/vue2/lib/{node/component-ref-c8e396f3.js → edge/component-ref-560915c3.js} +6 -6
- package/vue2/lib/{node/component-ref-33c4e95f.cjs → edge/component-ref-d30e784b.cjs} +1 -1
- package/vue2/lib/edge/components/content/content.helpers.d.ts +1 -1
- package/vue2/lib/edge/components/content/content.types.d.ts +0 -4
- package/vue2/lib/edge/components/content/content.vue.d.ts +1 -1
- package/vue2/lib/edge/components/content-variants/content-variants.vue.d.ts +1 -1
- package/vue2/lib/edge/components/content-variants/helpers.d.ts +3 -3
- package/vue2/lib/edge/components/content-variants/inlined-fns.d.ts +14 -0
- package/vue2/lib/edge/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/edge/{content-805edb5d.js → content-57bc4f42.js} +32 -38
- package/vue2/lib/{browser/content-484c1d94.cjs → edge/content-b151215b.cjs} +1 -1
- package/vue2/lib/{browser/css-a80a98f6.cjs → edge/css-212b6f26.cjs} +1 -1
- package/vue2/lib/edge/{css-9f79d13d.js → css-e71756bc.js} +1 -1
- package/vue2/lib/edge/enable-editor-7cda726f.cjs +1 -0
- package/vue2/lib/{node/enable-editor-e908239e.js → edge/enable-editor-f32de0ee.js} +15 -16
- package/vue2/lib/edge/{evaluate-b67dfd22.js → evaluate-7ef8d079.js} +1 -1
- package/vue2/lib/edge/{evaluate-d3b0ca3a.cjs → evaluate-ae242f0c.cjs} +1 -1
- package/vue2/lib/{browser/get-block-actions-b68490d6.js → edge/get-block-actions-16aad06a.js} +2 -2
- package/vue2/lib/edge/{get-block-actions-96e37194.cjs → get-block-actions-7ecb51a0.cjs} +1 -1
- package/vue2/lib/edge/{get-block-properties-778edb4c.js → get-block-properties-29a2d888.js} +2 -2
- package/vue2/lib/{browser/get-block-properties-286be966.cjs → edge/get-block-properties-8ea816eb.cjs} +1 -1
- package/vue2/lib/edge/{get-processed-block-602a1b01.cjs → get-processed-block-c2f59c36.cjs} +1 -1
- package/vue2/lib/{node/get-processed-block-81f805a3.js → edge/get-processed-block-ceeee74c.js} +2 -2
- package/vue2/lib/{browser/index-415058f0.js → edge/index-13a478c9.js} +390 -345
- package/vue2/lib/edge/index-17aded8e.cjs +124 -0
- package/vue2/lib/edge/index-helpers/blocks-exports.d.ts +1 -1
- package/vue2/lib/edge/index.cjs +1 -1
- package/vue2/lib/edge/index.js +1 -1
- package/vue2/lib/{node/inlined-script-dcb17d43.js → edge/inlined-script-46088a59.js} +2 -2
- package/vue2/lib/edge/inlined-script-c18f4bac.cjs +1 -0
- package/vue2/lib/{browser/inlined-styles-07758945.cjs → edge/inlined-styles-036d1968.cjs} +1 -1
- package/vue2/lib/edge/{inlined-styles-d20349d7.js → inlined-styles-7ddf1959.js} +1 -1
- package/vue2/lib/{browser/interactive-element-a3d3be9d.cjs → edge/interactive-element-473210e5.cjs} +1 -1
- package/vue2/lib/edge/{interactive-element-b4849ceb.js → interactive-element-50db3a7e.js} +5 -5
- package/vue2/lib/edge/{repeated-block-5aaeef66.cjs → repeated-block-2d730ce8.cjs} +1 -1
- package/vue2/lib/{browser/repeated-block-9791978c.js → edge/repeated-block-ae7fe7ad.js} +2 -2
- package/vue2/lib/{browser/styles-154aef3f.cjs → edge/styles-229bdcb6.cjs} +2 -2
- package/vue2/lib/{browser/styles-051d498f.js → edge/styles-514a7860.js} +2 -2
- package/vue2/lib/node/block-67819011.cjs +3 -0
- package/vue2/lib/node/{block-78ba2a3e.js → block-fe2e5888.js} +11 -9
- package/vue2/lib/{browser/block-styles-29b829dd.js → node/block-styles-6dd31eb8.js} +5 -5
- package/vue2/lib/{browser/block-styles-9328fb7d.cjs → node/block-styles-b28a2e1f.cjs} +1 -1
- package/vue2/lib/node/{block-wrapper-27fb6132.cjs → block-wrapper-403d207d.cjs} +1 -1
- package/vue2/lib/{edge/block-wrapper-32af7936.js → node/block-wrapper-c1574900.js} +5 -5
- package/vue2/lib/node/blocks/video/video.vue.d.ts +24 -2
- package/vue2/lib/node/{blocks-wrapper-e1d963b3.cjs → blocks-wrapper-0de6d65d.cjs} +1 -1
- package/vue2/lib/node/{blocks-wrapper-b59829bd.js → blocks-wrapper-ca5a81fb.js} +1 -1
- package/vue2/lib/{browser/component-ref-0589d5a6.cjs → node/component-ref-5c513a84.cjs} +1 -1
- package/vue2/lib/{browser/component-ref-b2801b9d.js → node/component-ref-efab49f4.js} +6 -6
- package/vue2/lib/node/components/content/content.helpers.d.ts +1 -1
- package/vue2/lib/node/components/content/content.types.d.ts +0 -4
- package/vue2/lib/node/components/content/content.vue.d.ts +1 -1
- package/vue2/lib/node/components/content-variants/content-variants.vue.d.ts +1 -1
- package/vue2/lib/node/components/content-variants/helpers.d.ts +3 -3
- package/vue2/lib/node/components/content-variants/inlined-fns.d.ts +14 -0
- package/vue2/lib/node/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/node/{content-ab7f569f.js → content-55436eac.js} +32 -38
- package/vue2/lib/{edge/content-f7a25139.cjs → node/content-a5b1f8b2.cjs} +1 -1
- package/vue2/lib/node/{css-e106e812.js → css-a05e89b2.js} +1 -1
- package/vue2/lib/{edge/css-15966f53.cjs → node/css-a083942f.cjs} +1 -1
- package/vue2/lib/{edge/enable-editor-74dc919f.js → node/enable-editor-b1a0289d.js} +15 -16
- package/vue2/lib/node/enable-editor-f903aba9.cjs +1 -0
- package/vue2/lib/node/{evaluate-8ce74ed7.js → evaluate-524b960e.js} +1 -1
- package/vue2/lib/node/{evaluate-578e7319.cjs → evaluate-654ec4aa.cjs} +1 -1
- package/vue2/lib/node/{get-block-actions-e89270ee.cjs → get-block-actions-1fed2d11.cjs} +1 -1
- package/vue2/lib/{edge/get-block-actions-c94a37cf.js → node/get-block-actions-f7890b23.js} +2 -2
- package/vue2/lib/node/{get-block-properties-69b8d069.js → get-block-properties-12b28e9b.js} +2 -2
- package/vue2/lib/{edge/get-block-properties-f5fa3731.cjs → node/get-block-properties-f2ba3458.cjs} +1 -1
- package/vue2/lib/node/{get-processed-block-97df756c.cjs → get-processed-block-19c83033.cjs} +1 -1
- package/vue2/lib/{edge/get-processed-block-54bff0fc.js → node/get-processed-block-7aabe9a2.js} +2 -2
- package/vue2/lib/node/index-acebd2be.cjs +124 -0
- package/vue2/lib/{edge/index-77e26970.js → node/index-f0eb3cdd.js} +390 -345
- package/vue2/lib/node/index-helpers/blocks-exports.d.ts +1 -1
- package/vue2/lib/node/index.cjs +1 -1
- package/vue2/lib/node/index.js +1 -1
- package/vue2/lib/{browser/inlined-script-1c7edb12.js → node/inlined-script-87aaded8.js} +2 -2
- package/vue2/lib/node/inlined-script-cf7aba95.cjs +1 -0
- package/vue2/lib/{browser/inlined-styles-68e291c0.js → node/inlined-styles-6405713e.js} +1 -1
- package/vue2/lib/{edge/inlined-styles-caad3a42.cjs → node/inlined-styles-c8d067f7.cjs} +1 -1
- package/vue2/lib/{edge/interactive-element-9eab9ce1.cjs → node/interactive-element-552d9c1d.cjs} +1 -1
- package/vue2/lib/{browser/interactive-element-79a97fd6.js → node/interactive-element-891aeec9.js} +5 -5
- package/vue2/lib/node/{repeated-block-27a3e1d3.cjs → repeated-block-07c3fd09.cjs} +1 -1
- package/vue2/lib/{edge/repeated-block-d8050ade.js → node/repeated-block-e394bfe9.js} +2 -2
- package/vue2/lib/{edge/styles-0a856ca5.cjs → node/styles-58b07f41.cjs} +2 -2
- package/vue2/lib/{edge/styles-e5a274a0.js → node/styles-bd4da0bf.js} +2 -2
- package/vue2/package.json +7 -1
- package/vue3/lib/{edge/block-wrapper.1f927343.js → browser/block-wrapper.1f981181.js} +2 -2
- package/vue3/lib/browser/{block-wrapper.d6e60490.cjs → block-wrapper.a606ebe4.cjs} +1 -1
- package/vue3/lib/browser/blocks/video/video.vue.d.ts +23 -1
- package/vue3/lib/{edge/component-ref.f2ae1ebb.js → browser/component-ref.c8d76b1a.js} +2 -2
- package/vue3/lib/{edge/component-ref.534af9c2.cjs → browser/component-ref.dab1249c.cjs} +1 -1
- package/vue3/lib/browser/components/content/components/enable-editor.vue.d.ts +0 -3
- package/vue3/lib/browser/components/content/content.helpers.d.ts +1 -1
- package/vue3/lib/browser/components/content/content.types.d.ts +0 -4
- package/vue3/lib/browser/components/content/content.vue.d.ts +1 -4
- package/vue3/lib/browser/components/content-variants/content-variants.vue.d.ts +2 -4
- package/vue3/lib/browser/components/content-variants/helpers.d.ts +3 -3
- package/vue3/lib/browser/components/content-variants/inlined-fns.d.ts +14 -0
- package/vue3/lib/browser/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/{edge/get-block-actions.a33a6af2.js → browser/get-block-actions.16dc4164.js} +1 -1
- package/vue3/lib/browser/{get-block-actions.eb7c0337.cjs → get-block-actions.79d46437.cjs} +1 -1
- package/vue3/lib/browser/index-helpers/blocks-exports.d.ts +1 -1
- package/vue3/lib/browser/index.27a34e20.cjs +161 -0
- package/vue3/lib/browser/{index.46955270.js → index.2d766828.js} +811 -747
- package/vue3/lib/browser/index.cjs +1 -1
- package/vue3/lib/browser/index.js +1 -1
- package/vue3/lib/browser/{repeated-block.89fbe870.cjs → repeated-block.4627ce3b.cjs} +1 -1
- package/vue3/lib/{edge/repeated-block.fe22cc98.js → browser/repeated-block.af88918c.js} +2 -2
- package/vue3/lib/{browser/block-wrapper.e408ea89.js → edge/block-wrapper.34ad49eb.js} +2 -2
- package/vue3/lib/edge/{block-wrapper.78571e4d.cjs → block-wrapper.3525d917.cjs} +1 -1
- package/vue3/lib/edge/blocks/video/video.vue.d.ts +23 -1
- package/vue3/lib/{browser/component-ref.0e8b6425.js → edge/component-ref.868e79d9.js} +2 -2
- package/vue3/lib/{browser/component-ref.50435d0f.cjs → edge/component-ref.9057a2c5.cjs} +1 -1
- package/vue3/lib/edge/components/content/components/enable-editor.vue.d.ts +0 -3
- package/vue3/lib/edge/components/content/content.helpers.d.ts +1 -1
- package/vue3/lib/edge/components/content/content.types.d.ts +0 -4
- package/vue3/lib/edge/components/content/content.vue.d.ts +1 -4
- package/vue3/lib/edge/components/content-variants/content-variants.vue.d.ts +2 -4
- package/vue3/lib/edge/components/content-variants/helpers.d.ts +3 -3
- package/vue3/lib/edge/components/content-variants/inlined-fns.d.ts +14 -0
- package/vue3/lib/edge/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/{node/get-block-actions.29e1fd1c.cjs → edge/get-block-actions.a62ff620.cjs} +1 -1
- package/vue3/lib/{browser/get-block-actions.ace1771f.js → edge/get-block-actions.d5d9bee8.js} +1 -1
- package/vue3/lib/edge/index-helpers/blocks-exports.d.ts +1 -1
- package/vue3/lib/edge/{index.3e2fe9ff.js → index.78e1db34.js} +1251 -1187
- package/vue3/lib/edge/index.cjs +1 -1
- package/vue3/lib/edge/index.dfd25e6d.cjs +181 -0
- package/vue3/lib/edge/index.js +1 -1
- package/vue3/lib/{browser/repeated-block.b30c8a4a.js → edge/repeated-block.078146fa.js} +2 -2
- package/vue3/lib/edge/{repeated-block.76e3553f.cjs → repeated-block.c5a87c23.cjs} +1 -1
- package/vue3/lib/node/{block-wrapper.0414e44b.js → block-wrapper.1f42acaf.js} +2 -2
- package/vue3/lib/node/{block-wrapper.2cee43bd.cjs → block-wrapper.807f65f7.cjs} +1 -1
- package/vue3/lib/node/blocks/video/video.vue.d.ts +23 -1
- package/vue3/lib/node/{component-ref.c303a83f.js → component-ref.2e134a43.js} +2 -2
- package/vue3/lib/node/{component-ref.719df81c.cjs → component-ref.68fab46d.cjs} +1 -1
- package/vue3/lib/node/components/content/components/enable-editor.vue.d.ts +0 -3
- package/vue3/lib/node/components/content/content.helpers.d.ts +1 -1
- package/vue3/lib/node/components/content/content.types.d.ts +0 -4
- package/vue3/lib/node/components/content/content.vue.d.ts +1 -4
- package/vue3/lib/node/components/content-variants/content-variants.vue.d.ts +2 -4
- package/vue3/lib/node/components/content-variants/helpers.d.ts +3 -3
- package/vue3/lib/node/components/content-variants/inlined-fns.d.ts +14 -0
- package/vue3/lib/node/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/{edge/get-block-actions.15671f27.cjs → node/get-block-actions.4aa48fd9.cjs} +1 -1
- package/vue3/lib/node/{get-block-actions.e790b914.js → get-block-actions.51b5b9e1.js} +1 -1
- package/vue3/lib/node/index-helpers/blocks-exports.d.ts +1 -1
- package/vue3/lib/node/index.cjs +1 -1
- package/vue3/lib/node/index.d650e668.cjs +201 -0
- package/vue3/lib/node/{index.f69e3181.js → index.fd3a9724.js} +773 -709
- package/vue3/lib/node/index.js +1 -1
- package/vue3/lib/node/{repeated-block.bd1fbe63.cjs → repeated-block.89e247ac.cjs} +1 -1
- package/vue3/lib/node/{repeated-block.7000302e.js → repeated-block.a5d8bef5.js} +2 -2
- package/vue3/package.json +7 -1
- package/vue2/lib/browser/block-7fc4bd0f.cjs +0 -3
- package/vue2/lib/browser/enable-editor-707dc987.cjs +0 -1
- package/vue2/lib/browser/index-da0b5822.cjs +0 -32
- package/vue2/lib/browser/inlined-script-e9825733.cjs +0 -1
- package/vue2/lib/edge/block-10ec81cd.cjs +0 -3
- package/vue2/lib/edge/enable-editor-d2f9e563.cjs +0 -1
- package/vue2/lib/edge/index-fa9296e5.cjs +0 -32
- package/vue2/lib/edge/inlined-script-cf7d9fb7.cjs +0 -1
- package/vue2/lib/node/block-09c38329.cjs +0 -3
- package/vue2/lib/node/enable-editor-96fb8ac5.cjs +0 -1
- package/vue2/lib/node/index-4d92a1cd.cjs +0 -32
- package/vue2/lib/node/inlined-script-589725e1.cjs +0 -1
- package/vue3/lib/browser/index.af59269f.cjs +0 -69
- package/vue3/lib/edge/index.2fc5bcab.cjs +0 -89
- package/vue3/lib/node/index.d4e23d88.cjs +0 -109
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as g, openBlock as d, createElementBlock as p, mergeProps as I, toHandlers as U, toDisplayString as ce, defineAsyncComponent as M, resolveComponent as k, Fragment as w, createBlock as v, createCommentVNode as b, renderList as B, withCtx as oe, createVNode as V, h as Se, renderSlot as P, createElementVNode as Q, normalizeStyle as X, normalizeClass as Ce, markRaw as tt } from "vue";
|
|
2
2
|
import { createRequire as nt } from "node:module";
|
|
3
|
-
function
|
|
3
|
+
function z(e = {}, t, n) {
|
|
4
4
|
const o = {};
|
|
5
5
|
for (const r in e) {
|
|
6
6
|
if (!e[r] || n && !r.startsWith(t))
|
|
7
7
|
continue;
|
|
8
|
-
const
|
|
9
|
-
o[
|
|
8
|
+
const i = n ? r.replace(t, "") : r;
|
|
9
|
+
o[i] = e[r];
|
|
10
10
|
}
|
|
11
11
|
return o;
|
|
12
12
|
}
|
|
13
|
-
const ot =
|
|
13
|
+
const ot = g({
|
|
14
14
|
name: "builder-button",
|
|
15
15
|
props: ["attributes", "text", "link", "openLinkInNewTab"],
|
|
16
16
|
data() {
|
|
17
|
-
return { filterAttrs:
|
|
17
|
+
return { filterAttrs: z };
|
|
18
18
|
},
|
|
19
19
|
methods: {
|
|
20
20
|
_classStringToObject(e) {
|
|
@@ -28,25 +28,25 @@ const ot = y({
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
|
-
const
|
|
31
|
+
const y = (e, t) => {
|
|
32
32
|
const n = e.__vccOpts || e;
|
|
33
33
|
for (const [o, r] of t)
|
|
34
34
|
n[o] = r;
|
|
35
35
|
return n;
|
|
36
36
|
}, rt = ["href", "target"];
|
|
37
|
-
function
|
|
38
|
-
return e.link ? (
|
|
37
|
+
function it(e, t, n, o, r, i) {
|
|
38
|
+
return e.link ? (d(), p("a", I({
|
|
39
39
|
key: 0,
|
|
40
40
|
href: e.link,
|
|
41
41
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
42
42
|
role: "button"
|
|
43
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)),
|
|
43
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ce(e.text), 17, rt)) : (d(), p("button", I({
|
|
44
44
|
key: 1,
|
|
45
45
|
style: e.attributes.style,
|
|
46
46
|
class: e._classStringToObject(e.attributes.class + " button-21azgz5avex")
|
|
47
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)),
|
|
47
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ce(e.text), 17));
|
|
48
48
|
}
|
|
49
|
-
const
|
|
49
|
+
const st = /* @__PURE__ */ y(ot, [["render", it], ["__scopeId", "data-v-becdf225"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/button/button.vue"]]), at = Symbol(), Z = {
|
|
50
50
|
Builder: {
|
|
51
51
|
content: null,
|
|
52
52
|
context: {},
|
|
@@ -72,11 +72,11 @@ function ct(e) {
|
|
|
72
72
|
builderBlock: e
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
|
-
const
|
|
75
|
+
const E = "vue3", dt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), x = (e) => e != null, ut = (e) => Object.entries(e).map(([n, o]) => {
|
|
76
76
|
if (typeof o == "string")
|
|
77
|
-
return `${
|
|
78
|
-
}).filter(
|
|
79
|
-
`),
|
|
77
|
+
return `${dt(n)}: ${o};`;
|
|
78
|
+
}).filter(x), pt = (e) => ut(e).join(`
|
|
79
|
+
`), J = ({
|
|
80
80
|
mediaQuery: e,
|
|
81
81
|
className: t,
|
|
82
82
|
styles: n
|
|
@@ -87,28 +87,28 @@ const A = "vue3", ut = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2")
|
|
|
87
87
|
return e ? `${e} {
|
|
88
88
|
${o}
|
|
89
89
|
}` : o;
|
|
90
|
-
}, L = "[Builder.io]: ",
|
|
90
|
+
}, L = "[Builder.io]: ", T = {
|
|
91
91
|
log: (...e) => console.log(L, ...e),
|
|
92
92
|
error: (...e) => console.error(L, ...e),
|
|
93
93
|
warn: (...e) => console.warn(L, ...e),
|
|
94
94
|
debug: (...e) => console.debug(L, ...e)
|
|
95
95
|
};
|
|
96
|
-
function
|
|
96
|
+
function S() {
|
|
97
97
|
return typeof window < "u" && typeof document < "u";
|
|
98
98
|
}
|
|
99
99
|
function mt() {
|
|
100
|
-
return
|
|
100
|
+
return S() && window.self !== window.top;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function R() {
|
|
103
103
|
return mt() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
104
104
|
}
|
|
105
105
|
const ht = () => {
|
|
106
|
-
if (
|
|
106
|
+
if (S()) {
|
|
107
107
|
const e = new URL(location.href);
|
|
108
108
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
109
109
|
} else
|
|
110
110
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
111
|
-
}, ft = () => typeof navigator == "object" && navigator.userAgent || "",
|
|
111
|
+
}, ft = () => typeof navigator == "object" && navigator.userAgent || "", Ie = () => {
|
|
112
112
|
const e = ft(), t = {
|
|
113
113
|
Android() {
|
|
114
114
|
return e.match(/Android/i);
|
|
@@ -126,7 +126,7 @@ const ht = () => {
|
|
|
126
126
|
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
127
127
|
},
|
|
128
128
|
any() {
|
|
129
|
-
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() ||
|
|
129
|
+
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || E === "reactNative";
|
|
130
130
|
}
|
|
131
131
|
}, n = e.match(/Tablet|iPad/i), o = ht();
|
|
132
132
|
return {
|
|
@@ -134,7 +134,7 @@ const ht = () => {
|
|
|
134
134
|
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
135
135
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
136
136
|
};
|
|
137
|
-
},
|
|
137
|
+
}, $e = ({
|
|
138
138
|
builder: e,
|
|
139
139
|
context: t,
|
|
140
140
|
event: n,
|
|
@@ -146,10 +146,10 @@ const ht = () => {
|
|
|
146
146
|
context: t,
|
|
147
147
|
event: n
|
|
148
148
|
}), bt = () => ({
|
|
149
|
-
isEditing:
|
|
150
|
-
isBrowser:
|
|
151
|
-
isServer:
|
|
152
|
-
getUserAttributes: () =>
|
|
149
|
+
isEditing: R(),
|
|
150
|
+
isBrowser: S(),
|
|
151
|
+
isServer: !S(),
|
|
152
|
+
getUserAttributes: () => Ie()
|
|
153
153
|
}), gt = (e, {
|
|
154
154
|
isExpression: t = !0
|
|
155
155
|
}) => t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, yt = ({
|
|
@@ -158,14 +158,14 @@ const ht = () => {
|
|
|
158
158
|
context: n,
|
|
159
159
|
event: o,
|
|
160
160
|
localState: r,
|
|
161
|
-
rootSetState:
|
|
162
|
-
rootState:
|
|
161
|
+
rootSetState: i,
|
|
162
|
+
rootState: s
|
|
163
163
|
}) => {
|
|
164
|
-
const a =
|
|
164
|
+
const a = $e({
|
|
165
165
|
builder: t,
|
|
166
166
|
context: n,
|
|
167
167
|
event: o,
|
|
168
|
-
state: kt(
|
|
168
|
+
state: kt(s, r, i)
|
|
169
169
|
});
|
|
170
170
|
return new Function(...a.map(([l]) => l), e)(...a.map(([, l]) => l));
|
|
171
171
|
};
|
|
@@ -174,25 +174,25 @@ function kt(e, t, n) {
|
|
|
174
174
|
throw new Error("rootState === localState");
|
|
175
175
|
return new Proxy(e, {
|
|
176
176
|
get: (o, r) => t && r in t ? t[r] : e[r],
|
|
177
|
-
set: (o, r,
|
|
177
|
+
set: (o, r, i) => {
|
|
178
178
|
if (t && r in t)
|
|
179
179
|
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
180
|
-
return e[r] =
|
|
180
|
+
return e[r] = i, n == null || n(e), !0;
|
|
181
181
|
}
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
|
-
const
|
|
184
|
+
const O = (e) => JSON.parse(JSON.stringify(e)), Te = (e, t, n) => {
|
|
185
185
|
if (Object(e) !== e)
|
|
186
186
|
return e;
|
|
187
187
|
const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
188
|
-
return o.slice(0, -1).reduce((r,
|
|
188
|
+
return o.slice(0, -1).reduce((r, i, s) => Object(r[i]) === r[i] ? r[i] : r[i] = Math.abs(Number(o[s + 1])) >> 0 === +o[s + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
|
|
189
189
|
}, vt = () => null;
|
|
190
|
-
let
|
|
190
|
+
let Re = vt;
|
|
191
191
|
try {
|
|
192
|
-
|
|
192
|
+
Re = nt(import.meta.url);
|
|
193
193
|
} catch {
|
|
194
194
|
}
|
|
195
|
-
const
|
|
195
|
+
const ee = Re("isolated-vm"), xe = (e) => `bldr_${e}_sync`, Ee = "BUILDER_SET_STATE", _e = "BUILDER_IVM", St = `
|
|
196
196
|
var refToProxy = (obj) => {
|
|
197
197
|
if (typeof obj !== 'object' || obj === null) {
|
|
198
198
|
return obj;
|
|
@@ -209,7 +209,7 @@ var refToProxy = (obj) => {
|
|
|
209
209
|
return val;
|
|
210
210
|
},
|
|
211
211
|
set(target, key, value) {
|
|
212
|
-
const v = typeof value === 'object' ? new ${
|
|
212
|
+
const v = typeof value === 'object' ? new ${_e}.Reference(value) : value;
|
|
213
213
|
obj.setSync(key, v);
|
|
214
214
|
${Ee}(key, value)
|
|
215
215
|
},
|
|
@@ -238,77 +238,77 @@ if (typeof output === 'object' && output !== null) {
|
|
|
238
238
|
|
|
239
239
|
output;
|
|
240
240
|
`;
|
|
241
|
-
}, wt = () => new
|
|
241
|
+
}, wt = () => new ee.Isolate({
|
|
242
242
|
memoryLimit: 128
|
|
243
|
-
}).createContextSync(),
|
|
243
|
+
}).createContextSync(), It = ({
|
|
244
244
|
code: e,
|
|
245
245
|
builder: t,
|
|
246
246
|
context: n,
|
|
247
247
|
event: o,
|
|
248
248
|
localState: r,
|
|
249
|
-
rootSetState:
|
|
250
|
-
rootState:
|
|
249
|
+
rootSetState: i,
|
|
250
|
+
rootState: s
|
|
251
251
|
}) => {
|
|
252
|
-
const a =
|
|
253
|
-
...
|
|
252
|
+
const a = O({
|
|
253
|
+
...s,
|
|
254
254
|
...r
|
|
255
|
-
}), l =
|
|
255
|
+
}), l = $e({
|
|
256
256
|
builder: t,
|
|
257
257
|
context: n,
|
|
258
258
|
event: o,
|
|
259
259
|
state: a
|
|
260
|
-
}), c = wt(),
|
|
261
|
-
|
|
262
|
-
console.log(...
|
|
263
|
-
}),
|
|
264
|
-
Te(
|
|
265
|
-
}), l.forEach(([
|
|
266
|
-
const
|
|
267
|
-
|
|
268
|
-
...
|
|
269
|
-
getUserAttributes: () =>
|
|
270
|
-
} :
|
|
260
|
+
}), c = wt(), u = c.global;
|
|
261
|
+
u.setSync("global", u.derefInto()), u.setSync("log", function(...f) {
|
|
262
|
+
console.log(...f);
|
|
263
|
+
}), u.setSync(Ee, function(f, C) {
|
|
264
|
+
Te(s, f, C), i == null || i(s);
|
|
265
|
+
}), l.forEach(([f, C]) => {
|
|
266
|
+
const _ = typeof C == "object" ? new ee.Reference(
|
|
267
|
+
f === "builder" ? {
|
|
268
|
+
...C,
|
|
269
|
+
getUserAttributes: () => C.getUserAttributes()
|
|
270
|
+
} : C
|
|
271
271
|
) : null;
|
|
272
|
-
|
|
273
|
-
}),
|
|
274
|
-
const
|
|
272
|
+
u.setSync(xe(f), _);
|
|
273
|
+
}), u.setSync(_e, ee);
|
|
274
|
+
const h = Ct({
|
|
275
275
|
code: e,
|
|
276
276
|
args: l
|
|
277
|
-
}), m = c.evalSync(
|
|
277
|
+
}), m = c.evalSync(h);
|
|
278
278
|
try {
|
|
279
279
|
return JSON.parse(m);
|
|
280
280
|
} catch {
|
|
281
281
|
return m;
|
|
282
282
|
}
|
|
283
|
-
},
|
|
284
|
-
function
|
|
283
|
+
}, $t = (e) => S() ? yt(e) : It(e);
|
|
284
|
+
function H({
|
|
285
285
|
code: e,
|
|
286
286
|
context: t,
|
|
287
287
|
localState: n,
|
|
288
288
|
rootState: o,
|
|
289
289
|
rootSetState: r,
|
|
290
|
-
event:
|
|
291
|
-
isExpression:
|
|
290
|
+
event: i,
|
|
291
|
+
isExpression: s = !0
|
|
292
292
|
}) {
|
|
293
293
|
if (e === "") {
|
|
294
|
-
|
|
294
|
+
T.warn("Skipping evaluation of empty code block.");
|
|
295
295
|
return;
|
|
296
296
|
}
|
|
297
297
|
const a = {
|
|
298
298
|
code: gt(e, {
|
|
299
|
-
isExpression:
|
|
299
|
+
isExpression: s
|
|
300
300
|
}),
|
|
301
301
|
builder: bt(),
|
|
302
302
|
context: t,
|
|
303
|
-
event:
|
|
303
|
+
event: i,
|
|
304
304
|
rootSetState: r,
|
|
305
305
|
rootState: o,
|
|
306
306
|
localState: n
|
|
307
307
|
};
|
|
308
308
|
try {
|
|
309
|
-
return
|
|
309
|
+
return $t(a);
|
|
310
310
|
} catch (l) {
|
|
311
|
-
|
|
311
|
+
T.error("Failed code evaluation: " + l.message, {
|
|
312
312
|
code: e
|
|
313
313
|
});
|
|
314
314
|
return;
|
|
@@ -323,58 +323,58 @@ const Tt = ({
|
|
|
323
323
|
}) => {
|
|
324
324
|
if (!e.bindings)
|
|
325
325
|
return e;
|
|
326
|
-
const
|
|
327
|
-
...
|
|
326
|
+
const i = O(e), s = {
|
|
327
|
+
...i,
|
|
328
328
|
properties: {
|
|
329
|
-
...
|
|
329
|
+
...i.properties
|
|
330
330
|
},
|
|
331
331
|
actions: {
|
|
332
|
-
...
|
|
332
|
+
...i.actions
|
|
333
333
|
}
|
|
334
334
|
};
|
|
335
335
|
for (const a in e.bindings) {
|
|
336
|
-
const l = e.bindings[a], c =
|
|
336
|
+
const l = e.bindings[a], c = H({
|
|
337
337
|
code: l,
|
|
338
338
|
localState: n,
|
|
339
339
|
rootState: o,
|
|
340
340
|
rootSetState: r,
|
|
341
341
|
context: t
|
|
342
342
|
});
|
|
343
|
-
Te(
|
|
343
|
+
Te(s, a, c);
|
|
344
344
|
}
|
|
345
|
-
return
|
|
345
|
+
return s;
|
|
346
346
|
};
|
|
347
|
-
function
|
|
347
|
+
function K({
|
|
348
348
|
block: e,
|
|
349
349
|
context: t,
|
|
350
350
|
shouldEvaluateBindings: n,
|
|
351
351
|
localState: o,
|
|
352
352
|
rootState: r,
|
|
353
|
-
rootSetState:
|
|
353
|
+
rootSetState: i
|
|
354
354
|
}) {
|
|
355
|
-
const
|
|
355
|
+
const s = e;
|
|
356
356
|
return n ? Tt({
|
|
357
|
-
block:
|
|
357
|
+
block: s,
|
|
358
358
|
localState: o,
|
|
359
359
|
rootState: r,
|
|
360
|
-
rootSetState:
|
|
360
|
+
rootSetState: i,
|
|
361
361
|
context: t
|
|
362
|
-
}) :
|
|
362
|
+
}) : s;
|
|
363
363
|
}
|
|
364
|
-
const
|
|
364
|
+
const Rt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], xt = (e) => typeof e == "string" && Rt.includes(e.toLowerCase()), Et = ({
|
|
365
365
|
block: e,
|
|
366
366
|
context: t,
|
|
367
367
|
registeredComponents: n
|
|
368
368
|
}) => {
|
|
369
|
-
var
|
|
370
|
-
const o = (
|
|
369
|
+
var i;
|
|
370
|
+
const o = (i = K({
|
|
371
371
|
block: e,
|
|
372
372
|
localState: t.localState,
|
|
373
373
|
rootState: t.rootState,
|
|
374
374
|
rootSetState: t.rootSetState,
|
|
375
375
|
context: t.context,
|
|
376
376
|
shouldEvaluateBindings: !1
|
|
377
|
-
}).component) == null ? void 0 :
|
|
377
|
+
}).component) == null ? void 0 : i.name;
|
|
378
378
|
if (!o)
|
|
379
379
|
return null;
|
|
380
380
|
const r = n[o];
|
|
@@ -383,7 +383,7 @@ const It = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
383
383
|
console.warn(`
|
|
384
384
|
Could not find a registered component named "${o}".
|
|
385
385
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
386
|
-
},
|
|
386
|
+
}, _t = ({
|
|
387
387
|
block: e,
|
|
388
388
|
context: t
|
|
389
389
|
}) => {
|
|
@@ -393,7 +393,7 @@ const It = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
393
393
|
} = e;
|
|
394
394
|
if (!(n != null && n.collection))
|
|
395
395
|
return;
|
|
396
|
-
const r =
|
|
396
|
+
const r = H({
|
|
397
397
|
code: n.collection,
|
|
398
398
|
localState: t.localState,
|
|
399
399
|
rootState: t.rootState,
|
|
@@ -402,7 +402,7 @@ const It = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
402
402
|
});
|
|
403
403
|
if (!Array.isArray(r))
|
|
404
404
|
return;
|
|
405
|
-
const
|
|
405
|
+
const i = n.collection.split(".").pop(), s = n.itemName || (i ? i + "Item" : "item");
|
|
406
406
|
return r.map((l, c) => ({
|
|
407
407
|
context: {
|
|
408
408
|
...t,
|
|
@@ -410,39 +410,39 @@ const It = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
410
410
|
...t.localState,
|
|
411
411
|
$index: c,
|
|
412
412
|
$item: l,
|
|
413
|
-
[
|
|
414
|
-
[`$${
|
|
413
|
+
[s]: l,
|
|
414
|
+
[`$${s}Index`]: c
|
|
415
415
|
}
|
|
416
416
|
},
|
|
417
417
|
block: o
|
|
418
418
|
}));
|
|
419
|
-
},
|
|
419
|
+
}, At = () => Promise.resolve().then(() => Mt).then((e) => e.default).catch((e) => {
|
|
420
420
|
throw console.error(
|
|
421
421
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
422
422
|
e
|
|
423
423
|
), e;
|
|
424
|
-
}),
|
|
424
|
+
}), Pt = () => import("./block-wrapper.1f42acaf.js").then((e) => e.default).catch((e) => {
|
|
425
425
|
throw console.error(
|
|
426
426
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
427
427
|
e
|
|
428
428
|
), e;
|
|
429
|
-
}), Bt = () => import("./component-ref.
|
|
429
|
+
}), Bt = () => import("./component-ref.2e134a43.js").then((e) => e.default).catch((e) => {
|
|
430
430
|
throw console.error(
|
|
431
431
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
432
432
|
e
|
|
433
433
|
), e;
|
|
434
|
-
}), Vt = () => import("./repeated-block.
|
|
434
|
+
}), Vt = () => import("./repeated-block.a5d8bef5.js").then((e) => e.default).catch((e) => {
|
|
435
435
|
throw console.error(
|
|
436
436
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
437
437
|
e
|
|
438
438
|
), e;
|
|
439
|
-
}),
|
|
439
|
+
}), Ot = g({
|
|
440
440
|
name: "block",
|
|
441
441
|
components: {
|
|
442
|
-
ComponentRef:
|
|
443
|
-
BlockWrapper:
|
|
444
|
-
RepeatedBlock:
|
|
445
|
-
BlockStyles:
|
|
442
|
+
ComponentRef: M(Bt),
|
|
443
|
+
BlockWrapper: M(Pt),
|
|
444
|
+
RepeatedBlock: M(Vt),
|
|
445
|
+
BlockStyles: M(At)
|
|
446
446
|
},
|
|
447
447
|
props: ["block", "context", "registeredComponents"],
|
|
448
448
|
data() {
|
|
@@ -457,13 +457,14 @@ const It = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
457
457
|
});
|
|
458
458
|
},
|
|
459
459
|
repeatItem() {
|
|
460
|
-
return
|
|
460
|
+
return _t({
|
|
461
461
|
block: this.block,
|
|
462
462
|
context: this.context
|
|
463
463
|
});
|
|
464
464
|
},
|
|
465
465
|
processedBlock() {
|
|
466
|
-
|
|
466
|
+
var e;
|
|
467
|
+
return (e = this.block.repeat) != null && e.collection ? this.block : K({
|
|
467
468
|
block: this.block,
|
|
468
469
|
localState: this.context.localState,
|
|
469
470
|
rootState: this.context.rootState,
|
|
@@ -476,14 +477,15 @@ const It = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
476
477
|
return this.block.tagName || "div";
|
|
477
478
|
},
|
|
478
479
|
canShowBlock() {
|
|
479
|
-
|
|
480
|
+
var e, t;
|
|
481
|
+
return "hide" in this.processedBlock ? !this.processedBlock.hide : "show" in this.processedBlock ? this.processedBlock.show : !(((e = this.block.repeat) == null ? void 0 : e.collection) && !((t = this.repeatItem) != null && t.length));
|
|
480
482
|
},
|
|
481
483
|
childrenWithoutParentComponent() {
|
|
482
484
|
var t, n;
|
|
483
485
|
return !((t = this.blockComponent) != null && t.component) && !this.repeatItem ? (n = this.processedBlock.children) != null ? n : [] : [];
|
|
484
486
|
},
|
|
485
487
|
componentRefProps() {
|
|
486
|
-
var e, t, n, o, r,
|
|
488
|
+
var e, t, n, o, r, i;
|
|
487
489
|
return {
|
|
488
490
|
blockChildren: (e = this.processedBlock.children) != null ? e : [],
|
|
489
491
|
componentRef: (t = this.blockComponent) == null ? void 0 : t.component,
|
|
@@ -498,16 +500,16 @@ const It = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
498
500
|
registeredComponents: this.registeredComponents,
|
|
499
501
|
builderBlock: this.processedBlock,
|
|
500
502
|
includeBlockProps: ((r = this.blockComponent) == null ? void 0 : r.noWrap) === !0,
|
|
501
|
-
isInteractive: !((
|
|
503
|
+
isInteractive: !((i = this.blockComponent) != null && i.isRSC)
|
|
502
504
|
};
|
|
503
505
|
}
|
|
504
506
|
}
|
|
505
507
|
});
|
|
506
|
-
function
|
|
507
|
-
var
|
|
508
|
-
const
|
|
509
|
-
return e.canShowBlock ? (
|
|
510
|
-
(
|
|
508
|
+
function jt(e, t, n, o, r, i) {
|
|
509
|
+
var h;
|
|
510
|
+
const s = k("block-wrapper"), a = k("repeated-block"), l = k("component-ref"), c = k("block", !0), u = k("block-styles");
|
|
511
|
+
return e.canShowBlock ? (d(), p(w, { key: 0 }, [
|
|
512
|
+
(h = e.blockComponent) != null && h.noWrap ? (d(), v(l, {
|
|
511
513
|
key: 1,
|
|
512
514
|
componentRef: e.componentRefProps.componentRef,
|
|
513
515
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -517,29 +519,29 @@ function Ot(e, t, n, o, r, s) {
|
|
|
517
519
|
builderBlock: e.componentRefProps.builderBlock,
|
|
518
520
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
519
521
|
isInteractive: e.componentRefProps.isInteractive
|
|
520
|
-
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"])) : (
|
|
521
|
-
e.isEmptyHtmlElement(e.Tag) ? (
|
|
522
|
+
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"])) : (d(), p(w, { key: 0 }, [
|
|
523
|
+
e.isEmptyHtmlElement(e.Tag) ? (d(), v(s, {
|
|
522
524
|
key: 0,
|
|
523
525
|
Wrapper: e.Tag,
|
|
524
526
|
block: e.processedBlock,
|
|
525
527
|
context: e.context,
|
|
526
528
|
hasChildren: !1
|
|
527
|
-
}, null, 8, ["Wrapper", "block", "context"])) :
|
|
528
|
-
!e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (
|
|
529
|
-
key:
|
|
529
|
+
}, null, 8, ["Wrapper", "block", "context"])) : b("v-if", !0),
|
|
530
|
+
!e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (d(!0), p(w, { key: 1 }, B(e.repeatItem, (m, f) => (d(), v(a, {
|
|
531
|
+
key: f,
|
|
530
532
|
repeatContext: m.context,
|
|
531
533
|
block: m.block,
|
|
532
534
|
registeredComponents: e.registeredComponents
|
|
533
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents"]))), 128)) :
|
|
534
|
-
!e.isEmptyHtmlElement(e.Tag) && !e.repeatItem ? (
|
|
535
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents"]))), 128)) : b("v-if", !0),
|
|
536
|
+
!e.isEmptyHtmlElement(e.Tag) && !e.repeatItem ? (d(), v(s, {
|
|
535
537
|
key: 2,
|
|
536
538
|
Wrapper: e.Tag,
|
|
537
539
|
block: e.processedBlock,
|
|
538
540
|
context: e.context,
|
|
539
541
|
hasChildren: !0
|
|
540
542
|
}, {
|
|
541
|
-
default:
|
|
542
|
-
|
|
543
|
+
default: oe(() => [
|
|
544
|
+
V(l, {
|
|
543
545
|
componentRef: e.componentRefProps.componentRef,
|
|
544
546
|
componentOptions: e.componentRefProps.componentOptions,
|
|
545
547
|
blockChildren: e.componentRefProps.blockChildren,
|
|
@@ -549,27 +551,27 @@ function Ot(e, t, n, o, r, s) {
|
|
|
549
551
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
550
552
|
isInteractive: e.componentRefProps.isInteractive
|
|
551
553
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
552
|
-
(
|
|
554
|
+
(d(!0), p(w, null, B(e.childrenWithoutParentComponent, (m, f) => (d(), v(c, {
|
|
553
555
|
key: "block-" + m.id,
|
|
554
556
|
block: m,
|
|
555
557
|
context: e.childrenContext,
|
|
556
558
|
registeredComponents: e.registeredComponents
|
|
557
559
|
}, null, 8, ["block", "context", "registeredComponents"]))), 128)),
|
|
558
|
-
(
|
|
560
|
+
(d(!0), p(w, null, B(e.childrenWithoutParentComponent, (m, f) => (d(), v(u, {
|
|
559
561
|
key: "block-style-" + m.id,
|
|
560
562
|
block: m,
|
|
561
563
|
context: e.childrenContext
|
|
562
564
|
}, null, 8, ["block", "context"]))), 128))
|
|
563
565
|
]),
|
|
564
566
|
_: 1
|
|
565
|
-
}, 8, ["Wrapper", "block", "context"])) :
|
|
567
|
+
}, 8, ["Wrapper", "block", "context"])) : b("v-if", !0)
|
|
566
568
|
], 64))
|
|
567
|
-
], 64)) :
|
|
569
|
+
], 64)) : b("v-if", !0);
|
|
568
570
|
}
|
|
569
|
-
const
|
|
571
|
+
const Ae = /* @__PURE__ */ y(Ot, [["render", jt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/block/block.vue"]]), fr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
570
572
|
__proto__: null,
|
|
571
|
-
default:
|
|
572
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
573
|
+
default: Ae
|
|
574
|
+
}, Symbol.toStringTag, { value: "Module" })), Pe = {
|
|
573
575
|
small: {
|
|
574
576
|
min: 320,
|
|
575
577
|
default: 321,
|
|
@@ -585,11 +587,11 @@ const _e = /* @__PURE__ */ k(jt, [["render", Ot], ["__file", "/home/runner/work/
|
|
|
585
587
|
default: 991,
|
|
586
588
|
max: 1200
|
|
587
589
|
}
|
|
588
|
-
},
|
|
590
|
+
}, de = (e, t = Pe) => `@media (max-width: ${t[e].max}px)`, Be = ({
|
|
589
591
|
small: e,
|
|
590
592
|
medium: t
|
|
591
593
|
}) => {
|
|
592
|
-
const n =
|
|
594
|
+
const n = O(Pe);
|
|
593
595
|
if (!e || !t)
|
|
594
596
|
return n;
|
|
595
597
|
const o = Math.floor(e / 2);
|
|
@@ -604,28 +606,28 @@ const _e = /* @__PURE__ */ k(jt, [["render", Ot], ["__file", "/home/runner/work/
|
|
|
604
606
|
min: r,
|
|
605
607
|
default: r + 1
|
|
606
608
|
};
|
|
607
|
-
const
|
|
609
|
+
const i = n.medium.max + 1;
|
|
608
610
|
return n.large = {
|
|
609
611
|
max: 2e3,
|
|
610
|
-
min:
|
|
611
|
-
default:
|
|
612
|
+
min: i,
|
|
613
|
+
default: i + 1
|
|
612
614
|
}, n;
|
|
613
|
-
}, Nt =
|
|
615
|
+
}, Nt = g({
|
|
614
616
|
render() {
|
|
615
617
|
return Se("style", { id: this.id, innerHTML: this.styles });
|
|
616
618
|
},
|
|
617
619
|
name: "inlined-styles",
|
|
618
620
|
props: ["styles", "id"]
|
|
619
|
-
}),
|
|
621
|
+
}), q = /* @__PURE__ */ y(Nt, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/inlined-styles.vue"]]), Ut = g({
|
|
620
622
|
name: "block-styles",
|
|
621
|
-
components: { InlinedStyles:
|
|
623
|
+
components: { InlinedStyles: q },
|
|
622
624
|
props: ["block", "context"],
|
|
623
625
|
data() {
|
|
624
|
-
return { TARGET:
|
|
626
|
+
return { TARGET: E };
|
|
625
627
|
},
|
|
626
628
|
computed: {
|
|
627
629
|
canShowBlock() {
|
|
628
|
-
const e =
|
|
630
|
+
const e = K({
|
|
629
631
|
block: this.block,
|
|
630
632
|
localState: this.context.localState,
|
|
631
633
|
rootState: this.context.rootState,
|
|
@@ -633,11 +635,11 @@ const _e = /* @__PURE__ */ k(jt, [["render", Ot], ["__file", "/home/runner/work/
|
|
|
633
635
|
context: this.context.context,
|
|
634
636
|
shouldEvaluateBindings: !0
|
|
635
637
|
});
|
|
636
|
-
return
|
|
638
|
+
return x(e.hide) ? !e.hide : x(e.show) ? e.show : !0;
|
|
637
639
|
},
|
|
638
640
|
css() {
|
|
639
|
-
var
|
|
640
|
-
const e =
|
|
641
|
+
var h;
|
|
642
|
+
const e = K({
|
|
641
643
|
block: this.block,
|
|
642
644
|
localState: this.context.localState,
|
|
643
645
|
rootState: this.context.rootState,
|
|
@@ -645,43 +647,43 @@ const _e = /* @__PURE__ */ k(jt, [["render", Ot], ["__file", "/home/runner/work/
|
|
|
645
647
|
context: this.context.context,
|
|
646
648
|
shouldEvaluateBindings: !0
|
|
647
649
|
}), t = e.responsiveStyles, n = this.context.content, o = Be(
|
|
648
|
-
((
|
|
649
|
-
), r = t == null ? void 0 : t.large,
|
|
650
|
+
((h = n == null ? void 0 : n.meta) == null ? void 0 : h.breakpoints) || {}
|
|
651
|
+
), r = t == null ? void 0 : t.large, i = t == null ? void 0 : t.medium, s = t == null ? void 0 : t.small, a = e.id;
|
|
650
652
|
if (!a)
|
|
651
653
|
return "";
|
|
652
|
-
const l = r ?
|
|
654
|
+
const l = r ? J({
|
|
653
655
|
className: a,
|
|
654
656
|
styles: r
|
|
655
|
-
}) : "", c =
|
|
657
|
+
}) : "", c = i ? J({
|
|
656
658
|
className: a,
|
|
657
|
-
styles:
|
|
658
|
-
mediaQuery:
|
|
659
|
+
styles: i,
|
|
660
|
+
mediaQuery: de(
|
|
659
661
|
"medium",
|
|
660
662
|
o
|
|
661
663
|
)
|
|
662
|
-
}) : "",
|
|
664
|
+
}) : "", u = s ? J({
|
|
663
665
|
className: a,
|
|
664
|
-
styles:
|
|
665
|
-
mediaQuery:
|
|
666
|
+
styles: s,
|
|
667
|
+
mediaQuery: de(
|
|
666
668
|
"small",
|
|
667
669
|
o
|
|
668
670
|
)
|
|
669
671
|
}) : "";
|
|
670
|
-
return [l, c,
|
|
672
|
+
return [l, c, u].join(" ");
|
|
671
673
|
}
|
|
672
674
|
}
|
|
673
675
|
});
|
|
674
|
-
function
|
|
675
|
-
const
|
|
676
|
-
return e.TARGET !== "reactNative" && e.css && e.canShowBlock ? (
|
|
676
|
+
function Ft(e, t, n, o, r, i) {
|
|
677
|
+
const s = k("inlined-styles");
|
|
678
|
+
return e.TARGET !== "reactNative" && e.css && e.canShowBlock ? (d(), v(s, {
|
|
677
679
|
key: 0,
|
|
678
680
|
styles: e.css
|
|
679
|
-
}, null, 8, ["styles"])) :
|
|
681
|
+
}, null, 8, ["styles"])) : b("v-if", !0);
|
|
680
682
|
}
|
|
681
|
-
const Ve = /* @__PURE__ */
|
|
683
|
+
const Ve = /* @__PURE__ */ y(Ut, [["render", Ft], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/block/components/block-styles.vue"]]), Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
682
684
|
__proto__: null,
|
|
683
685
|
default: Ve
|
|
684
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
686
|
+
}, Symbol.toStringTag, { value: "Module" })), Lt = g({
|
|
685
687
|
name: "builder-blocks-wrapper",
|
|
686
688
|
props: ["blocks", "parent", "path", "styleProp"],
|
|
687
689
|
computed: {
|
|
@@ -693,7 +695,7 @@ const Ve = /* @__PURE__ */ k(Ft, [["render", Ut], ["__file", "/home/runner/work/
|
|
|
693
695
|
methods: {
|
|
694
696
|
onClick() {
|
|
695
697
|
var e, t;
|
|
696
|
-
|
|
698
|
+
R() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
697
699
|
{
|
|
698
700
|
type: "builder.clickEmptyBlocks",
|
|
699
701
|
data: {
|
|
@@ -706,7 +708,7 @@ const Ve = /* @__PURE__ */ k(Ft, [["render", Ut], ["__file", "/home/runner/work/
|
|
|
706
708
|
},
|
|
707
709
|
onMouseEnter() {
|
|
708
710
|
var e, t;
|
|
709
|
-
|
|
711
|
+
R() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
710
712
|
{
|
|
711
713
|
type: "builder.hoverEmptyBlocks",
|
|
712
714
|
data: {
|
|
@@ -728,25 +730,25 @@ const Ve = /* @__PURE__ */ k(Ft, [["render", Ut], ["__file", "/home/runner/work/
|
|
|
728
730
|
}
|
|
729
731
|
}
|
|
730
732
|
});
|
|
731
|
-
const
|
|
732
|
-
function
|
|
733
|
-
return
|
|
733
|
+
const Wt = ["builder-path", "builder-parent-id"];
|
|
734
|
+
function Dt(e, t, n, o, r, i) {
|
|
735
|
+
return d(), p("div", I({
|
|
734
736
|
class: e._classStringToObject(e.className + " div-178o76acnws"),
|
|
735
737
|
"builder-path": e.path,
|
|
736
738
|
"builder-parent-id": e.parent,
|
|
737
739
|
style: e.styleProp,
|
|
738
|
-
onClick: t[0] || (t[0] = (
|
|
739
|
-
onMouseenter: t[1] || (t[1] = (
|
|
740
|
-
onKeypress: t[2] || (t[2] = (
|
|
740
|
+
onClick: t[0] || (t[0] = (s) => e.onClick()),
|
|
741
|
+
onMouseenter: t[1] || (t[1] = (s) => e.onMouseEnter()),
|
|
742
|
+
onKeypress: t[2] || (t[2] = (s) => e.onClick())
|
|
741
743
|
}, {}), [
|
|
742
|
-
|
|
743
|
-
], 16,
|
|
744
|
+
P(e.$slots, "default", {}, void 0, !0)
|
|
745
|
+
], 16, Wt);
|
|
744
746
|
}
|
|
745
|
-
const Ht = /* @__PURE__ */
|
|
747
|
+
const Ht = /* @__PURE__ */ y(Lt, [["render", Dt], ["__scopeId", "data-v-1f8aab9f"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/blocks/blocks-wrapper.vue"]]), Kt = g({
|
|
746
748
|
name: "builder-blocks",
|
|
747
749
|
components: {
|
|
748
750
|
BlocksWrapper: Ht,
|
|
749
|
-
Block:
|
|
751
|
+
Block: Ae,
|
|
750
752
|
BlockStyles: Ve
|
|
751
753
|
},
|
|
752
754
|
props: [
|
|
@@ -758,37 +760,37 @@ const Ht = /* @__PURE__ */ k(Wt, [["render", Kt], ["__scopeId", "data-v-1f8aab9f
|
|
|
758
760
|
"registeredComponents"
|
|
759
761
|
],
|
|
760
762
|
inject: {
|
|
761
|
-
builderContext:
|
|
763
|
+
builderContext: Z.key,
|
|
762
764
|
componentsContext: we.key
|
|
763
765
|
}
|
|
764
766
|
});
|
|
765
|
-
function
|
|
766
|
-
const
|
|
767
|
-
return
|
|
767
|
+
function zt(e, t, n, o, r, i) {
|
|
768
|
+
const s = k("block"), a = k("block-styles"), l = k("blocks-wrapper");
|
|
769
|
+
return d(), v(l, {
|
|
768
770
|
blocks: e.blocks,
|
|
769
771
|
parent: e.parent,
|
|
770
772
|
path: e.path,
|
|
771
773
|
styleProp: e.styleProp
|
|
772
774
|
}, {
|
|
773
|
-
default:
|
|
774
|
-
e.blocks ? (
|
|
775
|
+
default: oe(() => [
|
|
776
|
+
e.blocks ? (d(!0), p(w, { key: 0 }, B(e.blocks, (c, u) => (d(), v(s, {
|
|
775
777
|
key: "render-block-" + c.id,
|
|
776
778
|
block: c,
|
|
777
779
|
context: e.context || e.builderContext,
|
|
778
780
|
registeredComponents: e.registeredComponents || e.componentsContext.registeredComponents
|
|
779
|
-
}, null, 8, ["block", "context", "registeredComponents"]))), 128)) :
|
|
780
|
-
e.blocks ? (
|
|
781
|
+
}, null, 8, ["block", "context", "registeredComponents"]))), 128)) : b("v-if", !0),
|
|
782
|
+
e.blocks ? (d(!0), p(w, { key: 1 }, B(e.blocks, (c, u) => (d(), v(a, {
|
|
781
783
|
key: "block-style-" + c.id,
|
|
782
784
|
block: c,
|
|
783
785
|
context: e.context || e.builderContext
|
|
784
|
-
}, null, 8, ["block", "context"]))), 128)) :
|
|
786
|
+
}, null, 8, ["block", "context"]))), 128)) : b("v-if", !0)
|
|
785
787
|
]),
|
|
786
788
|
_: 1
|
|
787
789
|
}, 8, ["blocks", "parent", "path", "styleProp"]);
|
|
788
790
|
}
|
|
789
|
-
const
|
|
791
|
+
const re = /* @__PURE__ */ y(Kt, [["render", zt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/blocks/blocks.vue"]]), qt = g({
|
|
790
792
|
name: "builder-columns",
|
|
791
|
-
components: { InlinedStyles:
|
|
793
|
+
components: { InlinedStyles: q, Blocks: re },
|
|
792
794
|
props: [
|
|
793
795
|
"js",
|
|
794
796
|
"space",
|
|
@@ -805,7 +807,7 @@ const oe = /* @__PURE__ */ k(zt, [["render", Dt], ["__file", "/home/runner/work/
|
|
|
805
807
|
cols: this.columns || [],
|
|
806
808
|
stackAt: this.stackColumnsAt || "tablet",
|
|
807
809
|
flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
808
|
-
TARGET:
|
|
810
|
+
TARGET: E
|
|
809
811
|
};
|
|
810
812
|
},
|
|
811
813
|
computed: {
|
|
@@ -868,7 +870,7 @@ const oe = /* @__PURE__ */ k(zt, [["render", Dt], ["__file", "/home/runner/work/
|
|
|
868
870
|
return this.stackAt === "never" ? t : e;
|
|
869
871
|
},
|
|
870
872
|
columnCssVars(e) {
|
|
871
|
-
const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, r = "100%",
|
|
873
|
+
const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, r = "100%", i = 0;
|
|
872
874
|
return {
|
|
873
875
|
width: n,
|
|
874
876
|
["margin-left"]: o,
|
|
@@ -877,7 +879,7 @@ const oe = /* @__PURE__ */ k(zt, [["render", Dt], ["__file", "/home/runner/work/
|
|
|
877
879
|
desktopStyle: n
|
|
878
880
|
}),
|
|
879
881
|
"--column-margin-left-mobile": this.getMobileStyle({
|
|
880
|
-
stackedStyle:
|
|
882
|
+
stackedStyle: i,
|
|
881
883
|
desktopStyle: o
|
|
882
884
|
}),
|
|
883
885
|
"--column-width-tablet": this.getTabletStyle({
|
|
@@ -885,7 +887,7 @@ const oe = /* @__PURE__ */ k(zt, [["render", Dt], ["__file", "/home/runner/work/
|
|
|
885
887
|
desktopStyle: n
|
|
886
888
|
}),
|
|
887
889
|
"--column-margin-left-tablet": this.getTabletStyle({
|
|
888
|
-
stackedStyle:
|
|
890
|
+
stackedStyle: i,
|
|
889
891
|
desktopStyle: o
|
|
890
892
|
})
|
|
891
893
|
};
|
|
@@ -907,24 +909,24 @@ const oe = /* @__PURE__ */ k(zt, [["render", Dt], ["__file", "/home/runner/work/
|
|
|
907
909
|
}
|
|
908
910
|
}
|
|
909
911
|
});
|
|
910
|
-
function Gt(e, t, n, o, r,
|
|
911
|
-
const
|
|
912
|
-
return
|
|
912
|
+
function Gt(e, t, n, o, r, i) {
|
|
913
|
+
const s = k("inlined-styles"), a = k("blocks");
|
|
914
|
+
return d(), p("div", I({
|
|
913
915
|
class: e._classStringToObject(
|
|
914
916
|
`builder-columns ${e.builderBlock.id}-breakpoints div-16nol0lwi20`
|
|
915
917
|
),
|
|
916
918
|
style: e.columnsCssVars
|
|
917
919
|
}, {}), [
|
|
918
|
-
e.TARGET !== "reactNative" ? (
|
|
920
|
+
e.TARGET !== "reactNative" ? (d(), v(s, {
|
|
919
921
|
key: 0,
|
|
920
922
|
styles: e.columnsStyles
|
|
921
|
-
}, null, 8, ["styles"])) :
|
|
922
|
-
(
|
|
923
|
+
}, null, 8, ["styles"])) : b("v-if", !0),
|
|
924
|
+
(d(!0), p(w, null, B(e.columns, (l, c) => (d(), p("div", I({
|
|
923
925
|
key: c,
|
|
924
926
|
class: "builder-column div-16nol0lwi20-2",
|
|
925
927
|
style: e.columnCssVars(c)
|
|
926
928
|
}, {}), [
|
|
927
|
-
|
|
929
|
+
V(a, {
|
|
928
930
|
path: `component.options.columns.${c}.blocks`,
|
|
929
931
|
parent: e.builderBlock.id,
|
|
930
932
|
styleProp: {
|
|
@@ -937,17 +939,17 @@ function Gt(e, t, n, o, r, s) {
|
|
|
937
939
|
], 16))), 128))
|
|
938
940
|
], 16);
|
|
939
941
|
}
|
|
940
|
-
const Jt = /* @__PURE__ */
|
|
942
|
+
const Jt = /* @__PURE__ */ y(qt, [["render", Gt], ["__scopeId", "data-v-7be099dc"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/columns/columns.vue"]]), Yt = g({
|
|
941
943
|
name: "builder-fragment-component",
|
|
942
944
|
props: []
|
|
943
945
|
});
|
|
944
|
-
function
|
|
945
|
-
return
|
|
946
|
-
|
|
946
|
+
function Qt(e, t, n, o, r, i) {
|
|
947
|
+
return d(), p("span", null, [
|
|
948
|
+
P(e.$slots, "default")
|
|
947
949
|
]);
|
|
948
950
|
}
|
|
949
|
-
const
|
|
950
|
-
function
|
|
951
|
+
const Xt = /* @__PURE__ */ y(Yt, [["render", Qt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/fragment/fragment.vue"]]);
|
|
952
|
+
function ue(e) {
|
|
951
953
|
return e.replace(/http(s)?:/, "");
|
|
952
954
|
}
|
|
953
955
|
function Zt(e = "", t, n) {
|
|
@@ -958,15 +960,15 @@ function en(e, t) {
|
|
|
958
960
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
959
961
|
return e;
|
|
960
962
|
if (t === "master")
|
|
961
|
-
return
|
|
963
|
+
return ue(e);
|
|
962
964
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
963
965
|
if (n) {
|
|
964
|
-
const o = e.split(n[0]), r = n[3],
|
|
965
|
-
return
|
|
966
|
+
const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
|
|
967
|
+
return ue(`${o[0]}_${i}${r}`);
|
|
966
968
|
}
|
|
967
969
|
return null;
|
|
968
970
|
}
|
|
969
|
-
function
|
|
971
|
+
function Y(e) {
|
|
970
972
|
if (!e)
|
|
971
973
|
return e;
|
|
972
974
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
@@ -977,7 +979,7 @@ function X(e) {
|
|
|
977
979
|
}
|
|
978
980
|
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [en(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
979
981
|
}
|
|
980
|
-
const tn =
|
|
982
|
+
const tn = g({
|
|
981
983
|
name: "builder-image",
|
|
982
984
|
props: [
|
|
983
985
|
"image",
|
|
@@ -1001,10 +1003,10 @@ const tn = y({
|
|
|
1001
1003
|
return this.srcset;
|
|
1002
1004
|
if (this.srcset && ((n = this.image) == null ? void 0 : n.includes("builder.io/api/v1/image"))) {
|
|
1003
1005
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
1004
|
-
return console.debug("Removed given srcset"),
|
|
1006
|
+
return console.debug("Removed given srcset"), Y(t);
|
|
1005
1007
|
} else if (this.image && !this.srcset)
|
|
1006
|
-
return
|
|
1007
|
-
return
|
|
1008
|
+
return Y(t);
|
|
1009
|
+
return Y(t);
|
|
1008
1010
|
},
|
|
1009
1011
|
webpSrcSet() {
|
|
1010
1012
|
var e;
|
|
@@ -1037,20 +1039,20 @@ const nn = ["srcset"], on = ["alt", "role", "src", "srcset", "sizes"], rn = {
|
|
|
1037
1039
|
key: 2,
|
|
1038
1040
|
class: "div-1be3j8m9ewb-2"
|
|
1039
1041
|
};
|
|
1040
|
-
function sn(e, t, n, o, r,
|
|
1041
|
-
var
|
|
1042
|
-
return
|
|
1043
|
-
|
|
1044
|
-
e.webpSrcSet ? (
|
|
1042
|
+
function sn(e, t, n, o, r, i) {
|
|
1043
|
+
var s, a, l, c;
|
|
1044
|
+
return d(), p(w, null, [
|
|
1045
|
+
Q("picture", null, [
|
|
1046
|
+
e.webpSrcSet ? (d(), p("source", {
|
|
1045
1047
|
key: 0,
|
|
1046
1048
|
type: "image/webp",
|
|
1047
1049
|
srcset: e.webpSrcSet
|
|
1048
|
-
}, null, 8, nn)) :
|
|
1049
|
-
|
|
1050
|
+
}, null, 8, nn)) : b("v-if", !0),
|
|
1051
|
+
Q("img", {
|
|
1050
1052
|
loading: "lazy",
|
|
1051
1053
|
alt: e.altText,
|
|
1052
1054
|
role: e.altText ? "presentation" : void 0,
|
|
1053
|
-
style:
|
|
1055
|
+
style: X({
|
|
1054
1056
|
objectPosition: e.backgroundPosition || "center",
|
|
1055
1057
|
objectFit: e.backgroundSize || "cover",
|
|
1056
1058
|
...e.aspectRatioCss
|
|
@@ -1065,28 +1067,28 @@ function sn(e, t, n, o, r, s) {
|
|
|
1065
1067
|
sizes: e.sizes
|
|
1066
1068
|
}, null, 14, on)
|
|
1067
1069
|
]),
|
|
1068
|
-
e.aspectRatio && !(((a = (
|
|
1070
|
+
e.aspectRatio && !(((a = (s = e.builderBlock) == null ? void 0 : s.children) == null ? void 0 : a.length) && e.fitContent) ? (d(), p("div", {
|
|
1069
1071
|
key: 0,
|
|
1070
1072
|
class: "builder-image-sizer div-1be3j8m9ewb",
|
|
1071
|
-
style:
|
|
1073
|
+
style: X({
|
|
1072
1074
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1073
1075
|
})
|
|
1074
|
-
}, null, 4)) :
|
|
1075
|
-
((c = (l = e.builderBlock) == null ? void 0 : l.children) == null ? void 0 : c.length) && e.fitContent ?
|
|
1076
|
-
!e.fitContent && e.$slots.default ? (
|
|
1077
|
-
|
|
1078
|
-
])) :
|
|
1076
|
+
}, null, 4)) : b("v-if", !0),
|
|
1077
|
+
((c = (l = e.builderBlock) == null ? void 0 : l.children) == null ? void 0 : c.length) && e.fitContent ? P(e.$slots, "default", { key: 1 }, void 0, !0) : b("v-if", !0),
|
|
1078
|
+
!e.fitContent && e.$slots.default ? (d(), p("div", rn, [
|
|
1079
|
+
P(e.$slots, "default", {}, void 0, !0)
|
|
1080
|
+
])) : b("v-if", !0)
|
|
1079
1081
|
], 64);
|
|
1080
1082
|
}
|
|
1081
|
-
const an = /* @__PURE__ */
|
|
1083
|
+
const an = /* @__PURE__ */ y(tn, [["render", sn], ["__scopeId", "data-v-58ca75d1"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/image/image.vue"]]), ln = g({
|
|
1082
1084
|
name: "builder-section-component",
|
|
1083
1085
|
props: ["attributes", "maxWidth"],
|
|
1084
1086
|
data() {
|
|
1085
|
-
return { filterAttrs:
|
|
1087
|
+
return { filterAttrs: z };
|
|
1086
1088
|
}
|
|
1087
1089
|
});
|
|
1088
|
-
function cn(e, t, n, o, r,
|
|
1089
|
-
return
|
|
1090
|
+
function cn(e, t, n, o, r, i) {
|
|
1091
|
+
return d(), p("section", I({
|
|
1090
1092
|
style: {
|
|
1091
1093
|
width: "100%",
|
|
1092
1094
|
alignSelf: "stretch",
|
|
@@ -1100,15 +1102,15 @@ function cn(e, t, n, o, r, s) {
|
|
|
1100
1102
|
marginRight: "auto"
|
|
1101
1103
|
}
|
|
1102
1104
|
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
1103
|
-
|
|
1105
|
+
P(e.$slots, "default")
|
|
1104
1106
|
], 16);
|
|
1105
1107
|
}
|
|
1106
|
-
const
|
|
1108
|
+
const dn = /* @__PURE__ */ y(ln, [["render", cn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/section/section.vue"]]), un = (e) => {
|
|
1107
1109
|
if (e === "localhost" || e === "127.0.0.1")
|
|
1108
1110
|
return e;
|
|
1109
1111
|
const t = e.split(".");
|
|
1110
1112
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
1111
|
-
},
|
|
1113
|
+
}, Oe = ({
|
|
1112
1114
|
name: e,
|
|
1113
1115
|
canTrack: t
|
|
1114
1116
|
}) => {
|
|
@@ -1116,16 +1118,16 @@ const un = /* @__PURE__ */ k(ln, [["render", cn], ["__file", "/home/runner/work/
|
|
|
1116
1118
|
try {
|
|
1117
1119
|
return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
1118
1120
|
} catch (o) {
|
|
1119
|
-
|
|
1121
|
+
T.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
1120
1122
|
return;
|
|
1121
1123
|
}
|
|
1122
|
-
},
|
|
1124
|
+
}, je = async (e) => Oe(e), pn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(x).join("; "), mn = [["secure", ""], ["SameSite", "None"]], hn = ({
|
|
1123
1125
|
name: e,
|
|
1124
1126
|
value: t,
|
|
1125
1127
|
expires: n
|
|
1126
1128
|
}) => {
|
|
1127
|
-
const r = (
|
|
1128
|
-
return pn(
|
|
1129
|
+
const r = (S() ? location.protocol === "https:" : !0) ? mn : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", un(window.location.hostname)], ...r];
|
|
1130
|
+
return pn(s);
|
|
1129
1131
|
}, Ne = async ({
|
|
1130
1132
|
name: e,
|
|
1131
1133
|
value: t,
|
|
@@ -1142,45 +1144,45 @@ const un = /* @__PURE__ */ k(ln, [["render", cn], ["__file", "/home/runner/work/
|
|
|
1142
1144
|
});
|
|
1143
1145
|
document.cookie = r;
|
|
1144
1146
|
} catch (r) {
|
|
1145
|
-
|
|
1147
|
+
T.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
1146
1148
|
}
|
|
1147
|
-
}, fn = "builder.tests",
|
|
1149
|
+
}, fn = "builder.tests", ie = (e) => `${fn}.${e}`, bn = ({
|
|
1148
1150
|
contentId: e
|
|
1149
|
-
}) =>
|
|
1150
|
-
name:
|
|
1151
|
+
}) => je({
|
|
1152
|
+
name: ie(e),
|
|
1151
1153
|
canTrack: !0
|
|
1152
1154
|
}), gn = ({
|
|
1153
1155
|
contentId: e
|
|
1154
|
-
}) =>
|
|
1155
|
-
name:
|
|
1156
|
+
}) => Oe({
|
|
1157
|
+
name: ie(e),
|
|
1156
1158
|
canTrack: !0
|
|
1157
1159
|
}), yn = ({
|
|
1158
1160
|
contentId: e,
|
|
1159
1161
|
value: t
|
|
1160
1162
|
}) => Ne({
|
|
1161
|
-
name:
|
|
1163
|
+
name: ie(e),
|
|
1162
1164
|
value: t,
|
|
1163
1165
|
canTrack: !0
|
|
1164
|
-
}),
|
|
1166
|
+
}), Ue = (e) => x(e.id) && x(e.variations) && Object.keys(e.variations).length > 0, kn = ({
|
|
1165
1167
|
id: e,
|
|
1166
1168
|
variations: t
|
|
1167
1169
|
}) => {
|
|
1168
1170
|
var r;
|
|
1169
1171
|
let n = 0;
|
|
1170
1172
|
const o = Math.random();
|
|
1171
|
-
for (const
|
|
1172
|
-
const
|
|
1173
|
-
if (n +=
|
|
1174
|
-
return
|
|
1173
|
+
for (const i in t) {
|
|
1174
|
+
const s = (r = t[i]) == null ? void 0 : r.testRatio;
|
|
1175
|
+
if (n += s, o < n)
|
|
1176
|
+
return i;
|
|
1175
1177
|
}
|
|
1176
1178
|
return e;
|
|
1177
|
-
},
|
|
1179
|
+
}, Fe = (e) => {
|
|
1178
1180
|
const t = kn(e);
|
|
1179
1181
|
return yn({
|
|
1180
1182
|
contentId: e.id,
|
|
1181
1183
|
value: t
|
|
1182
1184
|
}).catch((n) => {
|
|
1183
|
-
|
|
1185
|
+
T.error("could not store A/B test variation: ", n);
|
|
1184
1186
|
}), t;
|
|
1185
1187
|
}, Me = ({
|
|
1186
1188
|
item: e,
|
|
@@ -1203,11 +1205,11 @@ const un = /* @__PURE__ */ k(ln, [["render", cn], ["__file", "/home/runner/work/
|
|
|
1203
1205
|
return e;
|
|
1204
1206
|
if (!e)
|
|
1205
1207
|
return;
|
|
1206
|
-
if (!
|
|
1208
|
+
if (!Ue(e))
|
|
1207
1209
|
return e;
|
|
1208
1210
|
const n = gn({
|
|
1209
1211
|
contentId: e.id
|
|
1210
|
-
}) ||
|
|
1212
|
+
}) || Fe({
|
|
1211
1213
|
variations: e.variations,
|
|
1212
1214
|
id: e.id
|
|
1213
1215
|
}), o = Me({
|
|
@@ -1222,11 +1224,11 @@ const un = /* @__PURE__ */ k(ln, [["render", cn], ["__file", "/home/runner/work/
|
|
|
1222
1224
|
item: e,
|
|
1223
1225
|
canTrack: t
|
|
1224
1226
|
}) => {
|
|
1225
|
-
if (!t || !
|
|
1227
|
+
if (!t || !Ue(e))
|
|
1226
1228
|
return e;
|
|
1227
1229
|
const o = await bn({
|
|
1228
1230
|
contentId: e.id
|
|
1229
|
-
}) ||
|
|
1231
|
+
}) || Fe({
|
|
1230
1232
|
variations: e.variations,
|
|
1231
1233
|
id: e.id
|
|
1232
1234
|
}), r = Me({
|
|
@@ -1237,7 +1239,7 @@ const un = /* @__PURE__ */ k(ln, [["render", cn], ["__file", "/home/runner/work/
|
|
|
1237
1239
|
...e,
|
|
1238
1240
|
...r
|
|
1239
1241
|
};
|
|
1240
|
-
},
|
|
1242
|
+
}, F = (e) => x(e) ? e : !0, Cn = {
|
|
1241
1243
|
name: "Core:Button",
|
|
1242
1244
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1243
1245
|
defaultStyles: {
|
|
@@ -1447,7 +1449,7 @@ const un = /* @__PURE__ */ k(ln, [["render", cn], ["__file", "/home/runner/work/
|
|
|
1447
1449
|
});
|
|
1448
1450
|
}
|
|
1449
1451
|
const n = e.get("columns");
|
|
1450
|
-
Array.isArray(n) && !!n.find((r) => r.get("width")) && (!!n.find((
|
|
1452
|
+
Array.isArray(n) && !!n.find((r) => r.get("width")) && (!!n.find((i) => !i.get("width")) || n.reduce((a, l) => a + l.get("width"), 0) !== 100) && t();
|
|
1451
1453
|
}
|
|
1452
1454
|
}, {
|
|
1453
1455
|
name: "space",
|
|
@@ -1469,7 +1471,7 @@ const un = /* @__PURE__ */ k(ln, [["render", cn], ["__file", "/home/runner/work/
|
|
|
1469
1471
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1470
1472
|
advanced: !0
|
|
1471
1473
|
}]
|
|
1472
|
-
},
|
|
1474
|
+
}, In = {
|
|
1473
1475
|
name: "Custom Code",
|
|
1474
1476
|
static: !0,
|
|
1475
1477
|
requiredPermissions: ["editCode"],
|
|
@@ -1491,7 +1493,7 @@ const un = /* @__PURE__ */ k(ln, [["render", cn], ["__file", "/home/runner/work/
|
|
|
1491
1493
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
1492
1494
|
advanced: !0
|
|
1493
1495
|
}]
|
|
1494
|
-
},
|
|
1496
|
+
}, $n = g({
|
|
1495
1497
|
name: "builder-custom-code",
|
|
1496
1498
|
props: ["replaceNodes", "code"],
|
|
1497
1499
|
data() {
|
|
@@ -1537,8 +1539,8 @@ const un = /* @__PURE__ */ k(ln, [["render", cn], ["__file", "/home/runner/work/
|
|
|
1537
1539
|
}
|
|
1538
1540
|
}
|
|
1539
1541
|
}), Tn = ["innerHTML"];
|
|
1540
|
-
function
|
|
1541
|
-
return
|
|
1542
|
+
function Rn(e, t, n, o, r, i) {
|
|
1543
|
+
return d(), p("div", {
|
|
1542
1544
|
ref: "elementRef",
|
|
1543
1545
|
class: Ce(
|
|
1544
1546
|
e._classStringToObject(
|
|
@@ -1548,7 +1550,7 @@ function In(e, t, n, o, r, s) {
|
|
|
1548
1550
|
innerHTML: e.code
|
|
1549
1551
|
}, null, 10, Tn);
|
|
1550
1552
|
}
|
|
1551
|
-
const xn = /* @__PURE__ */
|
|
1553
|
+
const xn = /* @__PURE__ */ y($n, [["render", Rn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/custom-code/custom-code.vue"]]), En = {
|
|
1552
1554
|
name: "Embed",
|
|
1553
1555
|
static: !0,
|
|
1554
1556
|
inputs: [{
|
|
@@ -1573,7 +1575,7 @@ const xn = /* @__PURE__ */ k(Rn, [["render", In], ["__file", "/home/runner/work/
|
|
|
1573
1575
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1574
1576
|
hideFromUI: !0
|
|
1575
1577
|
}]
|
|
1576
|
-
},
|
|
1578
|
+
}, _n = ["text/javascript", "application/javascript", "application/ecmascript"], An = (e) => _n.includes(e.type), Pn = g({
|
|
1577
1579
|
name: "builder-embed",
|
|
1578
1580
|
props: ["content"],
|
|
1579
1581
|
data() {
|
|
@@ -1606,7 +1608,7 @@ const xn = /* @__PURE__ */ k(Rn, [["render", In], ["__file", "/home/runner/work/
|
|
|
1606
1608
|
this.scriptsInserted.push(n.src);
|
|
1607
1609
|
const o = document.createElement("script");
|
|
1608
1610
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
1609
|
-
} else if (
|
|
1611
|
+
} else if (An(n) && !this.scriptsRun.includes(n.innerText))
|
|
1610
1612
|
try {
|
|
1611
1613
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
1612
1614
|
} catch (o) {
|
|
@@ -1616,14 +1618,14 @@ const xn = /* @__PURE__ */ k(Rn, [["render", In], ["__file", "/home/runner/work/
|
|
|
1616
1618
|
}
|
|
1617
1619
|
}
|
|
1618
1620
|
}), Bn = ["innerHTML"];
|
|
1619
|
-
function Vn(e, t, n, o, r,
|
|
1620
|
-
return
|
|
1621
|
+
function Vn(e, t, n, o, r, i) {
|
|
1622
|
+
return d(), p("div", {
|
|
1621
1623
|
class: "builder-embed",
|
|
1622
1624
|
ref: "elem",
|
|
1623
1625
|
innerHTML: e.content
|
|
1624
1626
|
}, null, 8, Bn);
|
|
1625
1627
|
}
|
|
1626
|
-
const
|
|
1628
|
+
const On = /* @__PURE__ */ y(Pn, [["render", Vn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/embed/embed.vue"]]), jn = {
|
|
1627
1629
|
name: "Fragment",
|
|
1628
1630
|
static: !0,
|
|
1629
1631
|
hidden: !0,
|
|
@@ -1649,29 +1651,29 @@ const jn = /* @__PURE__ */ k(An, [["render", Vn], ["__file", "/home/runner/work/
|
|
|
1649
1651
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1650
1652
|
onChange: (e) => {
|
|
1651
1653
|
e.delete("srcset"), e.delete("noWebp");
|
|
1652
|
-
function n(
|
|
1654
|
+
function n(s, a = 6e4) {
|
|
1653
1655
|
return new Promise((l, c) => {
|
|
1654
|
-
const
|
|
1655
|
-
let
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
},
|
|
1656
|
+
const u = document.createElement("img");
|
|
1657
|
+
let h = !1;
|
|
1658
|
+
u.onload = () => {
|
|
1659
|
+
h = !0, l(u);
|
|
1660
|
+
}, u.addEventListener("error", (m) => {
|
|
1659
1661
|
console.warn("Image load failed", m.error), c(m.error);
|
|
1660
|
-
}),
|
|
1661
|
-
|
|
1662
|
+
}), u.src = s, setTimeout(() => {
|
|
1663
|
+
h || c(new Error("Image load timed out"));
|
|
1662
1664
|
}, a);
|
|
1663
1665
|
});
|
|
1664
1666
|
}
|
|
1665
|
-
function o(
|
|
1666
|
-
return Math.round(
|
|
1667
|
+
function o(s) {
|
|
1668
|
+
return Math.round(s * 1e3) / 1e3;
|
|
1667
1669
|
}
|
|
1668
|
-
const r = e.get("image"),
|
|
1669
|
-
if (fetch(r).then((
|
|
1670
|
-
|
|
1671
|
-
}), r && (!
|
|
1672
|
-
return n(r).then((
|
|
1670
|
+
const r = e.get("image"), i = e.get("aspectRatio");
|
|
1671
|
+
if (fetch(r).then((s) => s.blob()).then((s) => {
|
|
1672
|
+
s.type.includes("svg") && e.set("noWebp", !0);
|
|
1673
|
+
}), r && (!i || i === 0.7041))
|
|
1674
|
+
return n(r).then((s) => {
|
|
1673
1675
|
const a = e.get("aspectRatio");
|
|
1674
|
-
e.get("image") === r && (!a || a === 0.7041) &&
|
|
1676
|
+
e.get("image") === r && (!a || a === 0.7041) && s.width && s.height && (e.set("aspectRatio", o(s.height / s.width)), e.set("height", s.height), e.set("width", s.width));
|
|
1675
1677
|
});
|
|
1676
1678
|
}
|
|
1677
1679
|
}, {
|
|
@@ -1729,7 +1731,7 @@ const jn = /* @__PURE__ */ k(An, [["render", Vn], ["__file", "/home/runner/work/
|
|
|
1729
1731
|
advanced: !0,
|
|
1730
1732
|
defaultValue: 0.7041
|
|
1731
1733
|
}]
|
|
1732
|
-
},
|
|
1734
|
+
}, Un = {
|
|
1733
1735
|
name: "Raw:Img",
|
|
1734
1736
|
hideFromInsertMenu: !0,
|
|
1735
1737
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -1742,7 +1744,7 @@ const jn = /* @__PURE__ */ k(An, [["render", Vn], ["__file", "/home/runner/work/
|
|
|
1742
1744
|
}],
|
|
1743
1745
|
noWrap: !0,
|
|
1744
1746
|
static: !0
|
|
1745
|
-
},
|
|
1747
|
+
}, Fn = g({
|
|
1746
1748
|
name: "builder-img-component",
|
|
1747
1749
|
props: [
|
|
1748
1750
|
"backgroundSize",
|
|
@@ -1753,11 +1755,11 @@ const jn = /* @__PURE__ */ k(An, [["render", Vn], ["__file", "/home/runner/work/
|
|
|
1753
1755
|
"attributes"
|
|
1754
1756
|
],
|
|
1755
1757
|
data() {
|
|
1756
|
-
return { isEditing:
|
|
1758
|
+
return { isEditing: R, filterAttrs: z };
|
|
1757
1759
|
}
|
|
1758
1760
|
}), Mn = ["alt", "src"];
|
|
1759
|
-
function
|
|
1760
|
-
return
|
|
1761
|
+
function Ln(e, t, n, o, r, i) {
|
|
1762
|
+
return d(), p("img", I({
|
|
1761
1763
|
style: {
|
|
1762
1764
|
objectFit: e.backgroundSize || "cover",
|
|
1763
1765
|
objectPosition: e.backgroundPosition || "center"
|
|
@@ -1767,7 +1769,7 @@ function Wn(e, t, n, o, r, s) {
|
|
|
1767
1769
|
src: e.imgSrc || e.image
|
|
1768
1770
|
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Mn);
|
|
1769
1771
|
}
|
|
1770
|
-
const
|
|
1772
|
+
const Wn = /* @__PURE__ */ y(Fn, [["render", Ln], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/img/img.vue"]]), Dn = {
|
|
1771
1773
|
name: "Core:Section",
|
|
1772
1774
|
static: !0,
|
|
1773
1775
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1839,7 +1841,7 @@ const Ln = /* @__PURE__ */ k(Un, [["render", Wn], ["__file", "/home/runner/work/
|
|
|
1839
1841
|
hideFromUI: !0,
|
|
1840
1842
|
type: "boolean"
|
|
1841
1843
|
}]
|
|
1842
|
-
},
|
|
1844
|
+
}, Kn = {
|
|
1843
1845
|
name: "Text",
|
|
1844
1846
|
static: !0,
|
|
1845
1847
|
isRSC: !0,
|
|
@@ -1857,21 +1859,21 @@ const Ln = /* @__PURE__ */ k(Un, [["render", Wn], ["__file", "/home/runner/work/
|
|
|
1857
1859
|
height: "auto",
|
|
1858
1860
|
textAlign: "center"
|
|
1859
1861
|
}
|
|
1860
|
-
},
|
|
1862
|
+
}, zn = g({
|
|
1861
1863
|
name: "builder-text",
|
|
1862
1864
|
props: ["text"]
|
|
1863
1865
|
}), qn = ["innerHTML"];
|
|
1864
|
-
function Gn(e, t, n, o, r,
|
|
1865
|
-
var
|
|
1866
|
-
return
|
|
1866
|
+
function Gn(e, t, n, o, r, i) {
|
|
1867
|
+
var s;
|
|
1868
|
+
return d(), p("div", {
|
|
1867
1869
|
class: "builder-text",
|
|
1868
|
-
innerHTML: ((
|
|
1870
|
+
innerHTML: ((s = e.text) == null ? void 0 : s.toString()) || "",
|
|
1869
1871
|
style: {
|
|
1870
1872
|
outline: "none"
|
|
1871
1873
|
}
|
|
1872
1874
|
}, null, 8, qn);
|
|
1873
1875
|
}
|
|
1874
|
-
const Jn = /* @__PURE__ */
|
|
1876
|
+
const Jn = /* @__PURE__ */ y(zn, [["render", Gn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/text/text.vue"]]), Yn = {
|
|
1875
1877
|
name: "Video",
|
|
1876
1878
|
canHaveChildren: !0,
|
|
1877
1879
|
defaultStyles: {
|
|
@@ -1952,7 +1954,7 @@ const Jn = /* @__PURE__ */ k(Dn, [["render", Gn], ["__file", "/home/runner/work/
|
|
|
1952
1954
|
defaultValue: !0,
|
|
1953
1955
|
advanced: !0
|
|
1954
1956
|
}]
|
|
1955
|
-
},
|
|
1957
|
+
}, Qn = g({
|
|
1956
1958
|
name: "builder-video",
|
|
1957
1959
|
props: [
|
|
1958
1960
|
"autoPlay",
|
|
@@ -1960,12 +1962,16 @@ const Jn = /* @__PURE__ */ k(Dn, [["render", Gn], ["__file", "/home/runner/work/
|
|
|
1960
1962
|
"controls",
|
|
1961
1963
|
"loop",
|
|
1962
1964
|
"playsInline",
|
|
1963
|
-
"attributes",
|
|
1964
1965
|
"preload",
|
|
1966
|
+
"attributes",
|
|
1965
1967
|
"fit",
|
|
1966
1968
|
"position",
|
|
1969
|
+
"aspectRatio",
|
|
1967
1970
|
"video",
|
|
1968
|
-
"posterImage"
|
|
1971
|
+
"posterImage",
|
|
1972
|
+
"lazyLoad",
|
|
1973
|
+
"fitContent",
|
|
1974
|
+
"builderBlock"
|
|
1969
1975
|
],
|
|
1970
1976
|
computed: {
|
|
1971
1977
|
videoProps() {
|
|
@@ -1989,218 +1995,284 @@ const Jn = /* @__PURE__ */ k(Dn, [["render", Gn], ["__file", "/home/runner/work/
|
|
|
1989
1995
|
},
|
|
1990
1996
|
spreadProps() {
|
|
1991
1997
|
return {
|
|
1992
|
-
...this.attributes,
|
|
1993
1998
|
...this.videoProps
|
|
1994
1999
|
};
|
|
1995
2000
|
}
|
|
1996
2001
|
}
|
|
1997
|
-
}),
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2002
|
+
}), Xn = { style: {
|
|
2003
|
+
position: "relative"
|
|
2004
|
+
} }, Zn = ["preload", "src", "poster"], eo = ["src"], to = {
|
|
2005
|
+
key: 1,
|
|
2006
|
+
style: {
|
|
2007
|
+
display: "flex",
|
|
2008
|
+
flexDirection: "column",
|
|
2009
|
+
alignItems: "stretch"
|
|
2010
|
+
}
|
|
2011
|
+
}, no = {
|
|
2012
|
+
key: 2,
|
|
2013
|
+
style: {
|
|
2014
|
+
pointerEvents: "none",
|
|
2015
|
+
display: "flex",
|
|
2016
|
+
flexDirection: "column",
|
|
2017
|
+
alignItems: "stretch",
|
|
2018
|
+
position: "absolute",
|
|
2019
|
+
top: "0",
|
|
2020
|
+
left: "0",
|
|
2021
|
+
width: "100%",
|
|
2022
|
+
height: "100%"
|
|
2023
|
+
}
|
|
2024
|
+
};
|
|
2025
|
+
function oo(e, t, n, o, r, i) {
|
|
2026
|
+
var s, a, l, c, u, h, m;
|
|
2027
|
+
return d(), p("div", Xn, [
|
|
2028
|
+
Q("video", I({
|
|
2029
|
+
class: "builder-video",
|
|
2030
|
+
preload: e.preload || "metadata",
|
|
2031
|
+
style: {
|
|
2032
|
+
width: "100%",
|
|
2033
|
+
height: "100%",
|
|
2034
|
+
...(s = e.attributes) == null ? void 0 : s.style,
|
|
2035
|
+
objectFit: e.fit,
|
|
2036
|
+
objectPosition: e.position,
|
|
2037
|
+
zIndex: 2,
|
|
2038
|
+
borderRadius: "1px",
|
|
2039
|
+
...e.aspectRatio ? {
|
|
2040
|
+
position: "absolute"
|
|
2041
|
+
} : null
|
|
2042
|
+
},
|
|
2043
|
+
src: e.video || "no-src",
|
|
2044
|
+
poster: e.posterImage
|
|
2045
|
+
}, e.spreadProps), [
|
|
2046
|
+
e.lazyLoad ? b("v-if", !0) : (d(), p("source", {
|
|
2047
|
+
key: 0,
|
|
2048
|
+
type: "video/mp4",
|
|
2049
|
+
src: e.video
|
|
2050
|
+
}, null, 8, eo))
|
|
2051
|
+
], 16, Zn),
|
|
2052
|
+
e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) == null ? void 0 : l.length)) ? (d(), p("div", {
|
|
2053
|
+
key: 0,
|
|
2054
|
+
style: X({
|
|
2055
|
+
width: "100%",
|
|
2056
|
+
paddingTop: e.aspectRatio * 100 + "%",
|
|
2057
|
+
pointerEvents: "none",
|
|
2058
|
+
fontSize: "0px"
|
|
2059
|
+
})
|
|
2060
|
+
}, null, 4)) : b("v-if", !0),
|
|
2061
|
+
((u = (c = e.builderBlock) == null ? void 0 : c.children) == null ? void 0 : u.length) && e.fitContent ? (d(), p("div", to, [
|
|
2062
|
+
P(e.$slots, "default")
|
|
2063
|
+
])) : b("v-if", !0),
|
|
2064
|
+
((m = (h = e.builderBlock) == null ? void 0 : h.children) == null ? void 0 : m.length) && !e.fitContent ? (d(), p("div", no, [
|
|
2065
|
+
P(e.$slots, "default")
|
|
2066
|
+
])) : b("v-if", !0)
|
|
2067
|
+
]);
|
|
2013
2068
|
}
|
|
2014
|
-
const
|
|
2015
|
-
component:
|
|
2069
|
+
const ro = /* @__PURE__ */ y(Qn, [["render", oo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/video/video.vue"]]), pe = () => [{
|
|
2070
|
+
component: st,
|
|
2016
2071
|
...Cn
|
|
2017
2072
|
}, {
|
|
2018
2073
|
component: Jt,
|
|
2019
2074
|
...wn
|
|
2020
2075
|
}, {
|
|
2021
2076
|
component: xn,
|
|
2022
|
-
|
|
2077
|
+
...In
|
|
2023
2078
|
}, {
|
|
2024
|
-
component:
|
|
2079
|
+
component: On,
|
|
2025
2080
|
...En
|
|
2026
2081
|
}, {
|
|
2027
|
-
component:
|
|
2028
|
-
...
|
|
2082
|
+
component: Xt,
|
|
2083
|
+
...jn
|
|
2029
2084
|
}, {
|
|
2030
2085
|
component: an,
|
|
2031
2086
|
...Nn
|
|
2032
2087
|
}, {
|
|
2033
|
-
component:
|
|
2034
|
-
...
|
|
2088
|
+
component: Wn,
|
|
2089
|
+
...Un
|
|
2035
2090
|
}, {
|
|
2036
|
-
component:
|
|
2037
|
-
...
|
|
2091
|
+
component: dn,
|
|
2092
|
+
...Dn
|
|
2038
2093
|
}, {
|
|
2039
|
-
component:
|
|
2094
|
+
component: pr,
|
|
2040
2095
|
...Hn
|
|
2041
2096
|
}, {
|
|
2042
2097
|
component: Jn,
|
|
2043
|
-
...
|
|
2098
|
+
...Kn
|
|
2044
2099
|
}, {
|
|
2045
|
-
component:
|
|
2100
|
+
component: ro,
|
|
2046
2101
|
...Yn
|
|
2047
|
-
}], me = [],
|
|
2102
|
+
}], me = [], io = (e) => ({
|
|
2048
2103
|
type: "builder.registerComponent",
|
|
2049
|
-
data:
|
|
2050
|
-
}),
|
|
2104
|
+
data: te(e)
|
|
2105
|
+
}), so = (e) => {
|
|
2051
2106
|
const t = e.toString().trim();
|
|
2052
2107
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
2053
|
-
},
|
|
2108
|
+
}, ao = (e) => typeof e == "function" ? so(e) : O(e), te = ({
|
|
2054
2109
|
inputs: e,
|
|
2055
2110
|
...t
|
|
2056
2111
|
}) => ({
|
|
2057
|
-
...
|
|
2058
|
-
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r,
|
|
2112
|
+
...O(t),
|
|
2113
|
+
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, i]) => ({
|
|
2059
2114
|
...o,
|
|
2060
|
-
[r]:
|
|
2115
|
+
[r]: ao(i)
|
|
2061
2116
|
}), {}))
|
|
2062
|
-
}),
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
function so(e, t, n) {
|
|
2071
|
-
var i;
|
|
2072
|
-
function o() {
|
|
2073
|
-
function a(b, S, R) {
|
|
2074
|
-
let E = "";
|
|
2075
|
-
if (R) {
|
|
2076
|
-
const g = new Date();
|
|
2077
|
-
g.setTime(g.getTime() + R * 24 * 60 * 60 * 1e3), E = "; expires=" + g.toUTCString();
|
|
2117
|
+
}), lo = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
2118
|
+
function getAndSetVariantId() {
|
|
2119
|
+
function setCookie(name, value, days) {
|
|
2120
|
+
let expires = '';
|
|
2121
|
+
if (days) {
|
|
2122
|
+
const date = new Date();
|
|
2123
|
+
date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);
|
|
2124
|
+
expires = '; expires=' + date.toUTCString();
|
|
2078
2125
|
}
|
|
2079
|
-
document.cookie =
|
|
2126
|
+
document.cookie = name + '=' + (value || '') + expires + '; path=/' + '; Secure; SameSite=None';
|
|
2080
2127
|
}
|
|
2081
|
-
function
|
|
2082
|
-
const
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
if (
|
|
2088
|
-
return g.substring(S.length, g.length);
|
|
2128
|
+
function getCookie(name) {
|
|
2129
|
+
const nameEQ = name + '=';
|
|
2130
|
+
const ca = document.cookie.split(';');
|
|
2131
|
+
for (let i = 0; i < ca.length; i++) {
|
|
2132
|
+
let c = ca[i];
|
|
2133
|
+
while (c.charAt(0) === ' ') c = c.substring(1, c.length);
|
|
2134
|
+
if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);
|
|
2089
2135
|
}
|
|
2090
2136
|
return null;
|
|
2091
2137
|
}
|
|
2092
|
-
const
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2138
|
+
const cookieName = \`builder.tests.\${contentId}\`;
|
|
2139
|
+
const variantInCookie = getCookie(cookieName);
|
|
2140
|
+
const availableIDs = variants.map(vr => vr.id).concat(contentId);
|
|
2141
|
+
if (variantInCookie && availableIDs.includes(variantInCookie)) {
|
|
2142
|
+
return variantInCookie;
|
|
2143
|
+
}
|
|
2144
|
+
let n = 0;
|
|
2145
|
+
const random = Math.random();
|
|
2146
|
+
for (let i = 0; i < variants.length; i++) {
|
|
2147
|
+
const variant = variants[i];
|
|
2148
|
+
const testRatio = variant.testRatio;
|
|
2149
|
+
n += testRatio;
|
|
2150
|
+
if (random < n) {
|
|
2151
|
+
setCookie(cookieName, variant.id);
|
|
2152
|
+
return variant.id;
|
|
2153
|
+
}
|
|
2101
2154
|
}
|
|
2102
|
-
|
|
2155
|
+
setCookie(cookieName, contentId);
|
|
2156
|
+
return contentId;
|
|
2103
2157
|
}
|
|
2104
|
-
const
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2158
|
+
const winningVariantId = getAndSetVariantId();
|
|
2159
|
+
const styleEl = document.currentScript?.previousElementSibling;
|
|
2160
|
+
if (isHydrationTarget) {
|
|
2161
|
+
styleEl.remove();
|
|
2162
|
+
const thisScriptEl = document.currentScript;
|
|
2163
|
+
thisScriptEl?.remove();
|
|
2109
2164
|
} else {
|
|
2110
|
-
const
|
|
2111
|
-
id:
|
|
2112
|
-
}).filter(
|
|
2113
|
-
|
|
2114
|
-
|
|
2165
|
+
const newStyleStr = variants.concat({
|
|
2166
|
+
id: contentId
|
|
2167
|
+
}).filter(variant => variant.id !== winningVariantId).map(value => {
|
|
2168
|
+
return \`.variant-\${value.id} { display: none; }
|
|
2169
|
+
\`;
|
|
2170
|
+
}).join('');
|
|
2171
|
+
styleEl.innerHTML = newStyleStr;
|
|
2115
2172
|
}
|
|
2116
|
-
}
|
|
2117
|
-
|
|
2118
|
-
var l;
|
|
2119
|
-
if (!navigator.cookieEnabled)
|
|
2173
|
+
}`, co = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
2174
|
+
if (!navigator.cookieEnabled) {
|
|
2120
2175
|
return;
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2176
|
+
}
|
|
2177
|
+
function getCookie(name) {
|
|
2178
|
+
const nameEQ = name + '=';
|
|
2179
|
+
const ca = document.cookie.split(';');
|
|
2180
|
+
for (let i = 0; i < ca.length; i++) {
|
|
2181
|
+
let c = ca[i];
|
|
2182
|
+
while (c.charAt(0) === ' ') c = c.substring(1, c.length);
|
|
2183
|
+
if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);
|
|
2129
2184
|
}
|
|
2130
2185
|
return null;
|
|
2131
2186
|
}
|
|
2132
|
-
const
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2187
|
+
const cookieName = \`builder.tests.\${defaultContentId}\`;
|
|
2188
|
+
const winningVariant = getCookie(cookieName);
|
|
2189
|
+
const parentDiv = document.currentScript?.parentElement;
|
|
2190
|
+
const isDefaultContent = variantContentId === defaultContentId;
|
|
2191
|
+
const isWinningVariant = winningVariant === variantContentId;
|
|
2192
|
+
if (isWinningVariant && !isDefaultContent) {
|
|
2193
|
+
parentDiv?.removeAttribute('hidden');
|
|
2194
|
+
parentDiv?.removeAttribute('aria-hidden');
|
|
2195
|
+
} else if (!isWinningVariant && isDefaultContent) {
|
|
2196
|
+
parentDiv?.setAttribute('hidden', 'true');
|
|
2197
|
+
parentDiv?.setAttribute('aria-hidden', 'true');
|
|
2140
2198
|
}
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2199
|
+
if (isHydrationTarget) {
|
|
2200
|
+
if (!isWinningVariant) {
|
|
2201
|
+
parentDiv?.remove();
|
|
2202
|
+
}
|
|
2203
|
+
const thisScriptEl = document.currentScript;
|
|
2204
|
+
thisScriptEl?.remove();
|
|
2205
|
+
}
|
|
2206
|
+
return;
|
|
2207
|
+
}`, Le = "builderIoAbTest", We = "builderIoRenderContent", W = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
2208
|
+
...t,
|
|
2209
|
+
testVariationId: t.id,
|
|
2210
|
+
id: e == null ? void 0 : e.id
|
|
2211
|
+
})), uo = ({
|
|
2212
|
+
canTrack: e,
|
|
2213
|
+
content: t
|
|
2214
|
+
}) => !(!(W(t).length > 0) || !e), po = (e) => e === "react" || e === "reactNative", De = po(E), mo = () => `
|
|
2215
|
+
window.${Le} = ${lo}
|
|
2216
|
+
window.${We} = ${co}
|
|
2217
|
+
`, ho = (e, t) => `
|
|
2218
|
+
window.${Le}(
|
|
2219
|
+
"${t}",${JSON.stringify(e)}, ${De}
|
|
2220
|
+
)`, fo = ({
|
|
2150
2221
|
contentId: e,
|
|
2151
2222
|
variationId: t
|
|
2152
|
-
}) => `
|
|
2153
|
-
|
|
2223
|
+
}) => `window.${We}(
|
|
2224
|
+
"${t}", "${e}", ${De}
|
|
2225
|
+
)`, bo = g({
|
|
2154
2226
|
render() {
|
|
2155
2227
|
return Se("script", { id: this.id, innerHTML: this.scriptStr });
|
|
2156
2228
|
},
|
|
2157
2229
|
name: "inlined-script",
|
|
2158
2230
|
props: ["scriptStr", "id"]
|
|
2159
|
-
}), He = /* @__PURE__ */
|
|
2160
|
-
function
|
|
2231
|
+
}), He = /* @__PURE__ */ y(bo, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/inlined-script.vue"]]);
|
|
2232
|
+
function go() {
|
|
2161
2233
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
2162
2234
|
}
|
|
2163
|
-
function
|
|
2164
|
-
const e =
|
|
2235
|
+
function yo() {
|
|
2236
|
+
const e = go().fetch;
|
|
2165
2237
|
if (typeof e > "u")
|
|
2166
2238
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
2167
2239
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
2168
2240
|
return e;
|
|
2169
2241
|
}
|
|
2170
|
-
const
|
|
2171
|
-
function
|
|
2242
|
+
const Ke = yo();
|
|
2243
|
+
function D(e, t = null, n = ".") {
|
|
2172
2244
|
return Object.keys(e).reduce((o, r) => {
|
|
2173
|
-
const
|
|
2174
|
-
return [typeof
|
|
2245
|
+
const i = e[r], s = [t, r].filter(Boolean).join(n);
|
|
2246
|
+
return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
|
|
2175
2247
|
...o,
|
|
2176
|
-
...
|
|
2248
|
+
...D(i, s, n)
|
|
2177
2249
|
} : {
|
|
2178
2250
|
...o,
|
|
2179
|
-
[
|
|
2251
|
+
[s]: i
|
|
2180
2252
|
};
|
|
2181
2253
|
}, {});
|
|
2182
2254
|
}
|
|
2183
|
-
const
|
|
2255
|
+
const ko = "v3", he = "builder.", vo = "options.", So = (e) => {
|
|
2184
2256
|
const t = {};
|
|
2185
2257
|
return e.forEach((n, o) => {
|
|
2186
2258
|
t[o] = n;
|
|
2187
2259
|
}), t;
|
|
2188
|
-
},
|
|
2260
|
+
}, ze = (e) => {
|
|
2189
2261
|
if (!e)
|
|
2190
2262
|
return {};
|
|
2191
2263
|
const t = qe(e), n = {};
|
|
2192
2264
|
return Object.keys(t).forEach((o) => {
|
|
2193
2265
|
if (o.startsWith(he)) {
|
|
2194
|
-
const r = o.replace(he, "").replace(
|
|
2266
|
+
const r = o.replace(he, "").replace(vo, "");
|
|
2195
2267
|
n[r] = t[o];
|
|
2196
2268
|
}
|
|
2197
2269
|
}), n;
|
|
2198
|
-
},
|
|
2199
|
-
if (
|
|
2270
|
+
}, Co = () => {
|
|
2271
|
+
if (!S())
|
|
2200
2272
|
return {};
|
|
2201
2273
|
const e = new URLSearchParams(window.location.search);
|
|
2202
|
-
return
|
|
2203
|
-
}, qe = (e) => e instanceof URLSearchParams ?
|
|
2274
|
+
return ze(e);
|
|
2275
|
+
}, qe = (e) => e instanceof URLSearchParams ? So(e) : e, fe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, se = (e) => {
|
|
2204
2276
|
let {
|
|
2205
2277
|
noTraverse: t = !1
|
|
2206
2278
|
} = e;
|
|
@@ -2208,173 +2280,173 @@ const fo = "v3", he = "builder.", bo = "options.", go = (e) => {
|
|
|
2208
2280
|
limit: n = 30,
|
|
2209
2281
|
userAttributes: o,
|
|
2210
2282
|
query: r,
|
|
2211
|
-
model:
|
|
2212
|
-
apiKey:
|
|
2283
|
+
model: i,
|
|
2284
|
+
apiKey: s,
|
|
2213
2285
|
includeRefs: a = !0,
|
|
2214
2286
|
enrich: l,
|
|
2215
2287
|
locale: c,
|
|
2216
|
-
apiVersion:
|
|
2217
|
-
fields:
|
|
2288
|
+
apiVersion: u = ko,
|
|
2289
|
+
fields: h,
|
|
2218
2290
|
omit: m,
|
|
2219
|
-
offset:
|
|
2220
|
-
cacheSeconds:
|
|
2221
|
-
staleCacheSeconds:
|
|
2222
|
-
sort:
|
|
2223
|
-
includeUnpublished:
|
|
2291
|
+
offset: f,
|
|
2292
|
+
cacheSeconds: C,
|
|
2293
|
+
staleCacheSeconds: _,
|
|
2294
|
+
sort: j,
|
|
2295
|
+
includeUnpublished: ae
|
|
2224
2296
|
} = e;
|
|
2225
|
-
if (!
|
|
2297
|
+
if (!s)
|
|
2226
2298
|
throw new Error("Missing API key");
|
|
2227
|
-
if (!["v2", "v3"].includes(
|
|
2228
|
-
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${
|
|
2299
|
+
if (!["v2", "v3"].includes(u))
|
|
2300
|
+
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${u}'`);
|
|
2229
2301
|
(e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
|
|
2230
|
-
const
|
|
2231
|
-
if (
|
|
2232
|
-
const
|
|
2233
|
-
sort:
|
|
2302
|
+
const $ = new URL(`https://cdn.builder.io/api/${u}/content/${i}?apiKey=${s}&limit=${n}&noTraverse=${t}&includeRefs=${a}${c ? `&locale=${c}` : ""}${l ? `&enrich=${l}` : ""}`);
|
|
2303
|
+
if ($.searchParams.set("omit", m || "meta.componentsUsed"), h && $.searchParams.set("fields", h), Number.isFinite(f) && f > -1 && $.searchParams.set("offset", String(Math.floor(f))), typeof ae == "boolean" && $.searchParams.set("includeUnpublished", String(ae)), C && fe(C) && $.searchParams.set("cacheSeconds", String(C)), _ && fe(_) && $.searchParams.set("staleCacheSeconds", String(_)), j) {
|
|
2304
|
+
const A = D({
|
|
2305
|
+
sort: j
|
|
2234
2306
|
});
|
|
2235
|
-
for (const
|
|
2236
|
-
|
|
2307
|
+
for (const N in A)
|
|
2308
|
+
$.searchParams.set(N, JSON.stringify(A[N]));
|
|
2237
2309
|
}
|
|
2238
2310
|
const et = {
|
|
2239
|
-
...
|
|
2311
|
+
...Co(),
|
|
2240
2312
|
...qe(e.options || {})
|
|
2241
|
-
},
|
|
2242
|
-
for (const
|
|
2243
|
-
|
|
2244
|
-
if (o &&
|
|
2245
|
-
const
|
|
2313
|
+
}, le = D(et);
|
|
2314
|
+
for (const A in le)
|
|
2315
|
+
$.searchParams.set(A, String(le[A]));
|
|
2316
|
+
if (o && $.searchParams.set("userAttributes", JSON.stringify(o)), r) {
|
|
2317
|
+
const A = D({
|
|
2246
2318
|
query: r
|
|
2247
2319
|
});
|
|
2248
|
-
for (const
|
|
2249
|
-
|
|
2320
|
+
for (const N in A)
|
|
2321
|
+
$.searchParams.set(N, JSON.stringify(A[N]));
|
|
2250
2322
|
}
|
|
2251
|
-
return
|
|
2252
|
-
},
|
|
2253
|
-
async function
|
|
2323
|
+
return $;
|
|
2324
|
+
}, wo = (e) => "results" in e;
|
|
2325
|
+
async function G(e) {
|
|
2254
2326
|
const t = await Ge({
|
|
2255
2327
|
...e,
|
|
2256
2328
|
limit: 1
|
|
2257
2329
|
});
|
|
2258
2330
|
return t && t.results[0] || null;
|
|
2259
2331
|
}
|
|
2260
|
-
const
|
|
2332
|
+
const br = G, Io = async (e) => {
|
|
2261
2333
|
const t = se(e);
|
|
2262
|
-
return await (await
|
|
2263
|
-
},
|
|
2264
|
-
const o =
|
|
2265
|
-
if (n.search.includes("preview="), !o || !(
|
|
2334
|
+
return await (await Ke(t.href)).json();
|
|
2335
|
+
}, $o = async (e, t, n = se(e)) => {
|
|
2336
|
+
const o = F(e.canTrack);
|
|
2337
|
+
if (n.search.includes("preview="), !o || !(S() || E === "reactNative"))
|
|
2266
2338
|
return t;
|
|
2267
2339
|
try {
|
|
2268
2340
|
const r = [];
|
|
2269
|
-
for (const
|
|
2341
|
+
for (const i of t.results)
|
|
2270
2342
|
r.push(await Sn({
|
|
2271
|
-
item:
|
|
2343
|
+
item: i,
|
|
2272
2344
|
canTrack: o
|
|
2273
2345
|
}));
|
|
2274
2346
|
t.results = r;
|
|
2275
2347
|
} catch (r) {
|
|
2276
|
-
|
|
2348
|
+
T.error("Could not process A/B tests. ", r);
|
|
2277
2349
|
}
|
|
2278
2350
|
return t;
|
|
2279
2351
|
};
|
|
2280
2352
|
async function Ge(e) {
|
|
2281
2353
|
try {
|
|
2282
|
-
const t = se(e), n = await
|
|
2283
|
-
return
|
|
2354
|
+
const t = se(e), n = await Io(e);
|
|
2355
|
+
return wo(n) ? $o(e, n) : (T.error("Error fetching data. ", {
|
|
2284
2356
|
url: t,
|
|
2285
2357
|
content: n,
|
|
2286
2358
|
options: e
|
|
2287
2359
|
}), null);
|
|
2288
2360
|
} catch (t) {
|
|
2289
|
-
return
|
|
2361
|
+
return T.error("Error fetching data. ", t), null;
|
|
2290
2362
|
}
|
|
2291
2363
|
}
|
|
2292
|
-
const
|
|
2293
|
-
function
|
|
2294
|
-
return
|
|
2364
|
+
const gr = Ge;
|
|
2365
|
+
function To() {
|
|
2366
|
+
return !S() || R() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
2295
2367
|
}
|
|
2296
|
-
function
|
|
2368
|
+
function Ro() {
|
|
2297
2369
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
2298
2370
|
const t = Math.random() * 16 | 0;
|
|
2299
2371
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
2300
2372
|
});
|
|
2301
2373
|
}
|
|
2302
2374
|
function Je() {
|
|
2303
|
-
return
|
|
2375
|
+
return Ro().replace(/-/g, "");
|
|
2304
2376
|
}
|
|
2305
|
-
const Ye = "builderSessionId",
|
|
2377
|
+
const Ye = "builderSessionId", xo = async ({
|
|
2306
2378
|
canTrack: e
|
|
2307
2379
|
}) => {
|
|
2308
2380
|
if (!e)
|
|
2309
2381
|
return;
|
|
2310
|
-
const t = await
|
|
2382
|
+
const t = await je({
|
|
2311
2383
|
name: Ye,
|
|
2312
2384
|
canTrack: e
|
|
2313
2385
|
});
|
|
2314
|
-
if (
|
|
2386
|
+
if (x(t))
|
|
2315
2387
|
return t;
|
|
2316
2388
|
{
|
|
2317
|
-
const n =
|
|
2318
|
-
return
|
|
2389
|
+
const n = Eo();
|
|
2390
|
+
return _o({
|
|
2319
2391
|
id: n,
|
|
2320
2392
|
canTrack: e
|
|
2321
2393
|
}), n;
|
|
2322
2394
|
}
|
|
2323
|
-
},
|
|
2395
|
+
}, Eo = () => Je(), _o = ({
|
|
2324
2396
|
id: e,
|
|
2325
2397
|
canTrack: t
|
|
2326
2398
|
}) => Ne({
|
|
2327
2399
|
name: Ye,
|
|
2328
2400
|
value: e,
|
|
2329
2401
|
canTrack: t
|
|
2330
|
-
}),
|
|
2402
|
+
}), Qe = () => S() && typeof localStorage < "u" ? localStorage : void 0, Ao = ({
|
|
2331
2403
|
key: e,
|
|
2332
2404
|
canTrack: t
|
|
2333
2405
|
}) => {
|
|
2334
2406
|
var n;
|
|
2335
2407
|
try {
|
|
2336
|
-
return t ? (n =
|
|
2408
|
+
return t ? (n = Qe()) == null ? void 0 : n.getItem(e) : void 0;
|
|
2337
2409
|
} catch (o) {
|
|
2338
2410
|
console.debug("[LocalStorage] GET error: ", o);
|
|
2339
2411
|
return;
|
|
2340
2412
|
}
|
|
2341
|
-
},
|
|
2413
|
+
}, Po = ({
|
|
2342
2414
|
key: e,
|
|
2343
2415
|
canTrack: t,
|
|
2344
2416
|
value: n
|
|
2345
2417
|
}) => {
|
|
2346
2418
|
var o;
|
|
2347
2419
|
try {
|
|
2348
|
-
t && ((o =
|
|
2420
|
+
t && ((o = Qe()) == null || o.setItem(e, n));
|
|
2349
2421
|
} catch (r) {
|
|
2350
2422
|
console.debug("[LocalStorage] SET error: ", r);
|
|
2351
2423
|
}
|
|
2352
|
-
},
|
|
2424
|
+
}, Xe = "builderVisitorId", Bo = ({
|
|
2353
2425
|
canTrack: e
|
|
2354
2426
|
}) => {
|
|
2355
2427
|
if (!e)
|
|
2356
2428
|
return;
|
|
2357
|
-
const t =
|
|
2358
|
-
key:
|
|
2429
|
+
const t = Ao({
|
|
2430
|
+
key: Xe,
|
|
2359
2431
|
canTrack: e
|
|
2360
2432
|
});
|
|
2361
|
-
if (
|
|
2433
|
+
if (x(t))
|
|
2362
2434
|
return t;
|
|
2363
2435
|
{
|
|
2364
|
-
const n =
|
|
2365
|
-
return
|
|
2436
|
+
const n = Vo();
|
|
2437
|
+
return Oo({
|
|
2366
2438
|
id: n,
|
|
2367
2439
|
canTrack: e
|
|
2368
2440
|
}), n;
|
|
2369
2441
|
}
|
|
2370
|
-
},
|
|
2442
|
+
}, Vo = () => Je(), Oo = ({
|
|
2371
2443
|
id: e,
|
|
2372
2444
|
canTrack: t
|
|
2373
|
-
}) =>
|
|
2374
|
-
key:
|
|
2445
|
+
}) => Po({
|
|
2446
|
+
key: Xe,
|
|
2375
2447
|
value: e,
|
|
2376
2448
|
canTrack: t
|
|
2377
|
-
}),
|
|
2449
|
+
}), jo = async ({
|
|
2378
2450
|
canTrack: e
|
|
2379
2451
|
}) => {
|
|
2380
2452
|
if (!e)
|
|
@@ -2382,16 +2454,16 @@ const Ye = "builderSessionId", $o = async ({
|
|
|
2382
2454
|
visitorId: void 0,
|
|
2383
2455
|
sessionId: void 0
|
|
2384
2456
|
};
|
|
2385
|
-
const t = await
|
|
2457
|
+
const t = await xo({
|
|
2386
2458
|
canTrack: e
|
|
2387
|
-
}), n =
|
|
2459
|
+
}), n = Bo({
|
|
2388
2460
|
canTrack: e
|
|
2389
2461
|
});
|
|
2390
2462
|
return {
|
|
2391
2463
|
sessionId: t,
|
|
2392
2464
|
visitorId: n
|
|
2393
2465
|
};
|
|
2394
|
-
},
|
|
2466
|
+
}, No = async ({
|
|
2395
2467
|
type: e,
|
|
2396
2468
|
canTrack: t,
|
|
2397
2469
|
apiKey: n,
|
|
@@ -2405,23 +2477,23 @@ const Ye = "builderSessionId", $o = async ({
|
|
|
2405
2477
|
url: location.href,
|
|
2406
2478
|
...o
|
|
2407
2479
|
},
|
|
2408
|
-
...await
|
|
2480
|
+
...await jo({
|
|
2409
2481
|
canTrack: t
|
|
2410
2482
|
}),
|
|
2411
|
-
userAttributes:
|
|
2483
|
+
userAttributes: Ie(),
|
|
2412
2484
|
ownerId: n
|
|
2413
2485
|
}
|
|
2414
2486
|
});
|
|
2415
|
-
async function
|
|
2487
|
+
async function ne(e) {
|
|
2416
2488
|
if (!e.apiKey) {
|
|
2417
|
-
|
|
2489
|
+
T.error("Missing API key for track call. Please provide your API key.");
|
|
2418
2490
|
return;
|
|
2419
2491
|
}
|
|
2420
|
-
if (!!e.canTrack && !
|
|
2492
|
+
if (!!e.canTrack && !R() && !!(S() || E === "reactNative"))
|
|
2421
2493
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
2422
2494
|
method: "POST",
|
|
2423
2495
|
body: JSON.stringify({
|
|
2424
|
-
events: [await
|
|
2496
|
+
events: [await No(e)]
|
|
2425
2497
|
}),
|
|
2426
2498
|
headers: {
|
|
2427
2499
|
"content-type": "application/json"
|
|
@@ -2431,14 +2503,14 @@ async function te(e) {
|
|
|
2431
2503
|
console.error("Failed to track: ", t);
|
|
2432
2504
|
});
|
|
2433
2505
|
}
|
|
2434
|
-
const
|
|
2506
|
+
const yr = (e) => ne({
|
|
2435
2507
|
...e,
|
|
2436
2508
|
canTrack: !0
|
|
2437
2509
|
});
|
|
2438
2510
|
function be(e) {
|
|
2439
2511
|
return Math.round(e * 1e3) / 1e3;
|
|
2440
2512
|
}
|
|
2441
|
-
const
|
|
2513
|
+
const Uo = (e, t, n = !0) => {
|
|
2442
2514
|
if (!(e instanceof HTMLElement))
|
|
2443
2515
|
return null;
|
|
2444
2516
|
let o = n ? e : e.parentElement;
|
|
@@ -2449,20 +2521,20 @@ const Vo = (e, t, n = !0) => {
|
|
|
2449
2521
|
return o;
|
|
2450
2522
|
} while (o = o.parentElement);
|
|
2451
2523
|
return null;
|
|
2452
|
-
},
|
|
2524
|
+
}, Fo = (e) => Uo(e, (t) => {
|
|
2453
2525
|
const n = t.getAttribute("builder-id") || t.id;
|
|
2454
2526
|
return Boolean((n == null ? void 0 : n.indexOf("builder-")) === 0);
|
|
2455
2527
|
}), ge = ({
|
|
2456
2528
|
event: e,
|
|
2457
2529
|
target: t
|
|
2458
2530
|
}) => {
|
|
2459
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top,
|
|
2531
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = be(o / n.width), s = be(r / n.height);
|
|
2460
2532
|
return {
|
|
2461
|
-
x:
|
|
2462
|
-
y:
|
|
2533
|
+
x: i,
|
|
2534
|
+
y: s
|
|
2463
2535
|
};
|
|
2464
|
-
},
|
|
2465
|
-
const t = e.target, n = t &&
|
|
2536
|
+
}, Mo = (e) => {
|
|
2537
|
+
const t = e.target, n = t && Fo(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2466
2538
|
return {
|
|
2467
2539
|
targetBuilderElement: o || void 0,
|
|
2468
2540
|
metadata: {
|
|
@@ -2477,10 +2549,10 @@ const Vo = (e, t, n = !0) => {
|
|
|
2477
2549
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
2478
2550
|
}
|
|
2479
2551
|
};
|
|
2480
|
-
},
|
|
2481
|
-
function
|
|
2552
|
+
}, Lo = "0.7.5", ye = {};
|
|
2553
|
+
function Wo(e, t) {
|
|
2482
2554
|
let n = ye[e];
|
|
2483
|
-
if (n || (n = ye[e] = []), n.push(t),
|
|
2555
|
+
if (n || (n = ye[e] = []), n.push(t), S()) {
|
|
2484
2556
|
const o = {
|
|
2485
2557
|
type: "builder.register",
|
|
2486
2558
|
data: {
|
|
@@ -2495,8 +2567,8 @@ function Fo(e, t) {
|
|
|
2495
2567
|
}
|
|
2496
2568
|
}
|
|
2497
2569
|
}
|
|
2498
|
-
const
|
|
2499
|
-
|
|
2570
|
+
const Do = () => {
|
|
2571
|
+
Wo("insertMenu", {
|
|
2500
2572
|
name: "_default",
|
|
2501
2573
|
default: !0,
|
|
2502
2574
|
items: [{
|
|
@@ -2519,13 +2591,13 @@ const Uo = () => {
|
|
|
2519
2591
|
});
|
|
2520
2592
|
};
|
|
2521
2593
|
let ke = !1;
|
|
2522
|
-
const
|
|
2594
|
+
const Ho = (e = {}) => {
|
|
2523
2595
|
var t, n;
|
|
2524
|
-
ke || (ke = !0,
|
|
2596
|
+
ke || (ke = !0, S() && ((t = window.parent) == null || t.postMessage({
|
|
2525
2597
|
type: "builder.sdkInfo",
|
|
2526
2598
|
data: {
|
|
2527
|
-
target:
|
|
2528
|
-
version:
|
|
2599
|
+
target: E,
|
|
2600
|
+
version: Lo,
|
|
2529
2601
|
supportsPatchUpdates: !1,
|
|
2530
2602
|
supportsAddBlockScoping: !0,
|
|
2531
2603
|
supportsCustomBreakpoints: !0
|
|
@@ -2538,36 +2610,36 @@ const Mo = (e = {}) => {
|
|
|
2538
2610
|
}, "*"), window.addEventListener("message", ({
|
|
2539
2611
|
data: o
|
|
2540
2612
|
}) => {
|
|
2541
|
-
var r,
|
|
2613
|
+
var r, i;
|
|
2542
2614
|
if (!!(o != null && o.type))
|
|
2543
2615
|
switch (o.type) {
|
|
2544
2616
|
case "builder.evaluate": {
|
|
2545
|
-
const
|
|
2546
|
-
let
|
|
2617
|
+
const s = o.data.text, a = o.data.arguments || [], l = o.data.id, c = new Function(s);
|
|
2618
|
+
let u, h = null;
|
|
2547
2619
|
try {
|
|
2548
|
-
|
|
2620
|
+
u = c.apply(null, a);
|
|
2549
2621
|
} catch (m) {
|
|
2550
|
-
|
|
2622
|
+
h = m;
|
|
2551
2623
|
}
|
|
2552
|
-
|
|
2624
|
+
h ? (r = window.parent) == null || r.postMessage({
|
|
2553
2625
|
type: "builder.evaluateError",
|
|
2554
2626
|
data: {
|
|
2555
2627
|
id: l,
|
|
2556
|
-
error:
|
|
2628
|
+
error: h.message
|
|
2557
2629
|
}
|
|
2558
|
-
}, "*") :
|
|
2559
|
-
var
|
|
2560
|
-
(
|
|
2630
|
+
}, "*") : u && typeof u.then == "function" ? u.then((m) => {
|
|
2631
|
+
var f;
|
|
2632
|
+
(f = window.parent) == null || f.postMessage({
|
|
2561
2633
|
type: "builder.evaluateResult",
|
|
2562
2634
|
data: {
|
|
2563
2635
|
id: l,
|
|
2564
2636
|
result: m
|
|
2565
2637
|
}
|
|
2566
2638
|
}, "*");
|
|
2567
|
-
}).catch(console.error) : (
|
|
2639
|
+
}).catch(console.error) : (i = window.parent) == null || i.postMessage({
|
|
2568
2640
|
type: "builder.evaluateResult",
|
|
2569
2641
|
data: {
|
|
2570
|
-
result:
|
|
2642
|
+
result: u,
|
|
2571
2643
|
id: l
|
|
2572
2644
|
}
|
|
2573
2645
|
}, "*");
|
|
@@ -2575,7 +2647,7 @@ const Mo = (e = {}) => {
|
|
|
2575
2647
|
}
|
|
2576
2648
|
}
|
|
2577
2649
|
})));
|
|
2578
|
-
},
|
|
2650
|
+
}, Ko = g({
|
|
2579
2651
|
name: "enable-editor",
|
|
2580
2652
|
props: [
|
|
2581
2653
|
"builderContextSignal",
|
|
@@ -2587,8 +2659,7 @@ const Mo = (e = {}) => {
|
|
|
2587
2659
|
"includeRefs",
|
|
2588
2660
|
"enrich",
|
|
2589
2661
|
"content",
|
|
2590
|
-
"showContent"
|
|
2591
|
-
"classNameProp"
|
|
2662
|
+
"showContent"
|
|
2592
2663
|
],
|
|
2593
2664
|
data() {
|
|
2594
2665
|
return {
|
|
@@ -2597,37 +2668,37 @@ const Mo = (e = {}) => {
|
|
|
2597
2668
|
shouldSendResetCookie: !1,
|
|
2598
2669
|
httpReqsData: {},
|
|
2599
2670
|
clicked: !1,
|
|
2600
|
-
builderContext:
|
|
2671
|
+
builderContext: Z
|
|
2601
2672
|
};
|
|
2602
2673
|
},
|
|
2603
2674
|
provide() {
|
|
2604
2675
|
const e = this;
|
|
2605
2676
|
return {
|
|
2606
|
-
[
|
|
2677
|
+
[Z.key]: e.builderContextSignal
|
|
2607
2678
|
};
|
|
2608
2679
|
},
|
|
2609
2680
|
mounted() {
|
|
2610
2681
|
(() => {
|
|
2611
2682
|
var n, o;
|
|
2612
|
-
if (
|
|
2613
|
-
if (
|
|
2683
|
+
if (S()) {
|
|
2684
|
+
if (R() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
2614
2685
|
new CustomEvent("initeditingbldr")
|
|
2615
|
-
), this.builderContextSignal.content &&
|
|
2616
|
-
const
|
|
2617
|
-
|
|
2686
|
+
), this.builderContextSignal.content && F(this.canTrack)) {
|
|
2687
|
+
const i = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, s = (o = this.builderContextSignal.content) == null ? void 0 : o.id, a = this.apiKey;
|
|
2688
|
+
ne({
|
|
2618
2689
|
type: "impression",
|
|
2619
2690
|
canTrack: !0,
|
|
2620
|
-
contentId:
|
|
2691
|
+
contentId: s,
|
|
2621
2692
|
apiKey: a,
|
|
2622
|
-
variationId:
|
|
2693
|
+
variationId: i !== s ? i : void 0
|
|
2623
2694
|
});
|
|
2624
2695
|
}
|
|
2625
|
-
|
|
2696
|
+
To() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
2626
2697
|
new CustomEvent("initpreviewingbldr")
|
|
2627
2698
|
);
|
|
2628
2699
|
}
|
|
2629
2700
|
})(), (() => {
|
|
2630
|
-
this.apiKey ||
|
|
2701
|
+
this.apiKey || T.error(
|
|
2631
2702
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
2632
2703
|
), this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
|
|
2633
2704
|
})();
|
|
@@ -2661,7 +2732,7 @@ const Mo = (e = {}) => {
|
|
|
2661
2732
|
}
|
|
2662
2733
|
},
|
|
2663
2734
|
unmounted() {
|
|
2664
|
-
|
|
2735
|
+
S() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
2665
2736
|
"builder:component:stateChangeListenerActivated",
|
|
2666
2737
|
this.emitStateUpdate
|
|
2667
2738
|
));
|
|
@@ -2698,7 +2769,7 @@ const Mo = (e = {}) => {
|
|
|
2698
2769
|
},
|
|
2699
2770
|
methods: {
|
|
2700
2771
|
mergeNewContent(e) {
|
|
2701
|
-
var n, o, r,
|
|
2772
|
+
var n, o, r, i, s;
|
|
2702
2773
|
const t = {
|
|
2703
2774
|
...this.builderContextSignal.content,
|
|
2704
2775
|
...e,
|
|
@@ -2709,7 +2780,7 @@ const Mo = (e = {}) => {
|
|
|
2709
2780
|
meta: {
|
|
2710
2781
|
...(o = this.builderContextSignal.content) == null ? void 0 : o.meta,
|
|
2711
2782
|
...e == null ? void 0 : e.meta,
|
|
2712
|
-
breakpoints: ((r = e == null ? void 0 : e.meta) == null ? void 0 : r.breakpoints) || ((
|
|
2783
|
+
breakpoints: ((r = e == null ? void 0 : e.meta) == null ? void 0 : r.breakpoints) || ((s = (i = this.builderContextSignal.content) == null ? void 0 : i.meta) == null ? void 0 : s.breakpoints)
|
|
2713
2784
|
}
|
|
2714
2785
|
};
|
|
2715
2786
|
this.builderContextSignal.content = t;
|
|
@@ -2720,8 +2791,8 @@ const Mo = (e = {}) => {
|
|
|
2720
2791
|
if (t)
|
|
2721
2792
|
switch (t.type) {
|
|
2722
2793
|
case "builder.configureSdk": {
|
|
2723
|
-
const o = t.data, { breakpoints: r, contentId:
|
|
2724
|
-
if (!
|
|
2794
|
+
const o = t.data, { breakpoints: r, contentId: i } = o;
|
|
2795
|
+
if (!i || i !== ((n = this.builderContextSignal.content) == null ? void 0 : n.id))
|
|
2725
2796
|
return;
|
|
2726
2797
|
r && this.mergeNewContent({
|
|
2727
2798
|
meta: {
|
|
@@ -2731,8 +2802,8 @@ const Mo = (e = {}) => {
|
|
|
2731
2802
|
break;
|
|
2732
2803
|
}
|
|
2733
2804
|
case "builder.contentUpdate": {
|
|
2734
|
-
const o = t.data, r = o.key || o.alias || o.entry || o.modelName,
|
|
2735
|
-
r === this.model && (this.mergeNewContent(
|
|
2805
|
+
const o = t.data, r = o.key || o.alias || o.entry || o.modelName, i = o.data;
|
|
2806
|
+
r === this.model && (this.mergeNewContent(i), this.forceReRenderCount = this.forceReRenderCount + 1);
|
|
2736
2807
|
break;
|
|
2737
2808
|
}
|
|
2738
2809
|
}
|
|
@@ -2740,7 +2811,7 @@ const Mo = (e = {}) => {
|
|
|
2740
2811
|
evaluateJsCode() {
|
|
2741
2812
|
var t, n;
|
|
2742
2813
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
2743
|
-
e &&
|
|
2814
|
+
e && H({
|
|
2744
2815
|
code: e,
|
|
2745
2816
|
context: this.context || {},
|
|
2746
2817
|
localState: void 0,
|
|
@@ -2752,13 +2823,13 @@ const Mo = (e = {}) => {
|
|
|
2752
2823
|
var t, n;
|
|
2753
2824
|
if (this.builderContextSignal.content) {
|
|
2754
2825
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
2755
|
-
|
|
2826
|
+
ne({
|
|
2756
2827
|
type: "click",
|
|
2757
|
-
canTrack:
|
|
2828
|
+
canTrack: F(this.canTrack),
|
|
2758
2829
|
contentId: r,
|
|
2759
2830
|
apiKey: this.apiKey,
|
|
2760
2831
|
variationId: o !== r ? o : void 0,
|
|
2761
|
-
...
|
|
2832
|
+
...Mo(e),
|
|
2762
2833
|
unique: !this.clicked
|
|
2763
2834
|
});
|
|
2764
2835
|
}
|
|
@@ -2767,7 +2838,7 @@ const Mo = (e = {}) => {
|
|
|
2767
2838
|
evalExpression(e) {
|
|
2768
2839
|
return e.replace(
|
|
2769
2840
|
/{{([^}]+)}}/g,
|
|
2770
|
-
(t, n) =>
|
|
2841
|
+
(t, n) => H({
|
|
2771
2842
|
code: n,
|
|
2772
2843
|
context: this.context || {},
|
|
2773
2844
|
localState: void 0,
|
|
@@ -2777,13 +2848,13 @@ const Mo = (e = {}) => {
|
|
|
2777
2848
|
);
|
|
2778
2849
|
},
|
|
2779
2850
|
handleRequest({ url: e, key: t }) {
|
|
2780
|
-
|
|
2781
|
-
var r,
|
|
2851
|
+
Ke(e).then((n) => n.json()).then((n) => {
|
|
2852
|
+
var r, i;
|
|
2782
2853
|
const o = {
|
|
2783
2854
|
...this.builderContextSignal.rootState,
|
|
2784
2855
|
[t]: n
|
|
2785
2856
|
};
|
|
2786
|
-
(
|
|
2857
|
+
(i = (r = this.builderContextSignal).rootSetState) == null || i.call(r, o), this.httpReqsData[t] = !0;
|
|
2787
2858
|
}).catch((n) => {
|
|
2788
2859
|
console.error("error fetching dynamic data", e, n);
|
|
2789
2860
|
});
|
|
@@ -2791,23 +2862,23 @@ const Mo = (e = {}) => {
|
|
|
2791
2862
|
runHttpRequests() {
|
|
2792
2863
|
var t, n, o;
|
|
2793
2864
|
const e = (o = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) != null ? o : {};
|
|
2794
|
-
Object.entries(e).forEach(([r,
|
|
2795
|
-
if (
|
|
2796
|
-
const
|
|
2865
|
+
Object.entries(e).forEach(([r, i]) => {
|
|
2866
|
+
if (i && (!this.httpReqsData[r] || R())) {
|
|
2867
|
+
const s = this.evalExpression(i);
|
|
2797
2868
|
this.handleRequest({
|
|
2798
|
-
url:
|
|
2869
|
+
url: s,
|
|
2799
2870
|
key: r
|
|
2800
2871
|
});
|
|
2801
2872
|
}
|
|
2802
2873
|
});
|
|
2803
2874
|
},
|
|
2804
2875
|
emitStateUpdate() {
|
|
2805
|
-
|
|
2876
|
+
R() && window.dispatchEvent(
|
|
2806
2877
|
new CustomEvent(
|
|
2807
2878
|
"builder:component:stateChange",
|
|
2808
2879
|
{
|
|
2809
2880
|
detail: {
|
|
2810
|
-
state:
|
|
2881
|
+
state: O(this.builderContextSignal.rootState),
|
|
2811
2882
|
ref: {
|
|
2812
2883
|
name: this.model
|
|
2813
2884
|
}
|
|
@@ -2817,7 +2888,7 @@ const Mo = (e = {}) => {
|
|
|
2817
2888
|
);
|
|
2818
2889
|
},
|
|
2819
2890
|
elementRef_onIniteditingbldr(e) {
|
|
2820
|
-
this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage),
|
|
2891
|
+
this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage), Do(), Ho({
|
|
2821
2892
|
...this.locale ? {
|
|
2822
2893
|
locale: this.locale
|
|
2823
2894
|
} : {},
|
|
@@ -2831,7 +2902,7 @@ const Mo = (e = {}) => {
|
|
|
2831
2902
|
this.builderContextSignal.componentInfos
|
|
2832
2903
|
).forEach((t) => {
|
|
2833
2904
|
var o;
|
|
2834
|
-
const n =
|
|
2905
|
+
const n = io(t);
|
|
2835
2906
|
(o = window.parent) == null || o.postMessage(n, "*");
|
|
2836
2907
|
}), window.addEventListener(
|
|
2837
2908
|
"builder:component:stateChangeListenerActivated",
|
|
@@ -2842,12 +2913,12 @@ const Mo = (e = {}) => {
|
|
|
2842
2913
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
|
|
2843
2914
|
`builder.preview.${n}`
|
|
2844
2915
|
), r = t.get("apiKey") || t.get("builder.space");
|
|
2845
|
-
n === this.model && r === this.apiKey && (!this.content || o === this.content.id) &&
|
|
2916
|
+
n === this.model && r === this.apiKey && (!this.content || o === this.content.id) && G({
|
|
2846
2917
|
model: this.model,
|
|
2847
2918
|
apiKey: this.apiKey,
|
|
2848
2919
|
apiVersion: this.builderContextSignal.apiVersion
|
|
2849
|
-
}).then((
|
|
2850
|
-
|
|
2920
|
+
}).then((i) => {
|
|
2921
|
+
i && this.mergeNewContent(i);
|
|
2851
2922
|
});
|
|
2852
2923
|
},
|
|
2853
2924
|
_classStringToObject(e) {
|
|
@@ -2860,30 +2931,32 @@ const Mo = (e = {}) => {
|
|
|
2860
2931
|
return t;
|
|
2861
2932
|
}
|
|
2862
2933
|
}
|
|
2863
|
-
}),
|
|
2864
|
-
function
|
|
2865
|
-
var
|
|
2866
|
-
return e.builderContextSignal.content ? (
|
|
2934
|
+
}), zo = ["builder-content-id", "builder-model"];
|
|
2935
|
+
function qo(e, t, n, o, r, i) {
|
|
2936
|
+
var s, a, l;
|
|
2937
|
+
return e.builderContextSignal.content ? (d(), p("div", I({
|
|
2867
2938
|
key: e.forceReRenderCount,
|
|
2868
2939
|
ref: "elementRef",
|
|
2869
|
-
onClick: t[0] || (t[0] = (
|
|
2870
|
-
"builder-content-id": (
|
|
2940
|
+
onClick: t[0] || (t[0] = (c) => e.onClick(c)),
|
|
2941
|
+
"builder-content-id": (s = e.builderContextSignal.content) == null ? void 0 : s.id,
|
|
2871
2942
|
"builder-model": e.model,
|
|
2872
|
-
class: e._classStringToObject(
|
|
2873
|
-
|
|
2874
|
-
|
|
2943
|
+
class: e._classStringToObject(
|
|
2944
|
+
`variant-${((a = e.content) == null ? void 0 : a.testVariationId) || ((l = e.content) == null ? void 0 : l.id)}`
|
|
2945
|
+
),
|
|
2946
|
+
onIniteditingbldr: t[1] || (t[1] = (c) => e.elementRef_onIniteditingbldr(c)),
|
|
2947
|
+
onInitpreviewingbldr: t[2] || (t[2] = (c) => e.elementRef_onInitpreviewingbldr(c))
|
|
2875
2948
|
}, {
|
|
2876
2949
|
...e.showContent ? {} : {
|
|
2877
2950
|
hidden: !0,
|
|
2878
2951
|
"aria-hidden": !0
|
|
2879
2952
|
}
|
|
2880
2953
|
}), [
|
|
2881
|
-
|
|
2882
|
-
], 16,
|
|
2954
|
+
P(e.$slots, "default")
|
|
2955
|
+
], 16, zo)) : b("v-if", !0);
|
|
2883
2956
|
}
|
|
2884
|
-
const
|
|
2885
|
-
var
|
|
2886
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = (
|
|
2957
|
+
const Go = /* @__PURE__ */ y(Ko, [["render", qo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/content/components/enable-editor.vue"]]), Jo = (e) => {
|
|
2958
|
+
var i, s;
|
|
2959
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = (s = e.fileUrl) != null ? s : (i = e == null ? void 0 : e.files) == null ? void 0 : i.regular;
|
|
2887
2960
|
let r = "";
|
|
2888
2961
|
if (o && t && n && (r += `
|
|
2889
2962
|
@font-face {
|
|
@@ -2907,26 +2980,26 @@ font-weight: ${a};
|
|
|
2907
2980
|
`.trim());
|
|
2908
2981
|
}
|
|
2909
2982
|
return r;
|
|
2910
|
-
},
|
|
2983
|
+
}, Yo = ({
|
|
2911
2984
|
customFonts: e
|
|
2912
2985
|
}) => {
|
|
2913
2986
|
var t;
|
|
2914
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
2915
|
-
},
|
|
2987
|
+
return ((t = e == null ? void 0 : e.map((n) => Jo(n))) == null ? void 0 : t.join(" ")) || "";
|
|
2988
|
+
}, Qo = ({
|
|
2916
2989
|
cssCode: e,
|
|
2917
2990
|
contentId: t
|
|
2918
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
2991
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Xo = g({
|
|
2919
2992
|
name: "content-styles",
|
|
2920
|
-
components: { InlinedStyles:
|
|
2993
|
+
components: { InlinedStyles: q },
|
|
2921
2994
|
props: ["cssCode", "contentId", "customFonts"],
|
|
2922
2995
|
data() {
|
|
2923
2996
|
return {
|
|
2924
2997
|
injectedStyles: `
|
|
2925
|
-
${
|
|
2998
|
+
${Qo({
|
|
2926
2999
|
cssCode: this.cssCode,
|
|
2927
3000
|
contentId: this.contentId
|
|
2928
3001
|
})}
|
|
2929
|
-
${
|
|
3002
|
+
${Yo({
|
|
2930
3003
|
customFonts: this.customFonts
|
|
2931
3004
|
})}
|
|
2932
3005
|
|
|
@@ -2946,33 +3019,28 @@ ${Do({
|
|
|
2946
3019
|
};
|
|
2947
3020
|
}
|
|
2948
3021
|
});
|
|
2949
|
-
function
|
|
2950
|
-
const
|
|
2951
|
-
return
|
|
3022
|
+
function Zo(e, t, n, o, r, i) {
|
|
3023
|
+
const s = k("inlined-styles");
|
|
3024
|
+
return d(), v(s, { styles: e.injectedStyles }, null, 8, ["styles"]);
|
|
2952
3025
|
}
|
|
2953
|
-
const
|
|
3026
|
+
const er = /* @__PURE__ */ y(Xo, [["render", Zo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/content/components/styles.vue"]]), tr = ({
|
|
2954
3027
|
content: e,
|
|
2955
3028
|
data: t,
|
|
2956
3029
|
locale: n
|
|
2957
3030
|
}) => {
|
|
2958
|
-
var
|
|
2959
|
-
const o = {};
|
|
2960
|
-
(
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
...(a = e == null ? void 0 : e.data) == null ? void 0 : a.state,
|
|
3031
|
+
var i, s, a;
|
|
3032
|
+
const o = {}, r = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.state) || {};
|
|
3033
|
+
return (a = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || a.forEach((l) => {
|
|
3034
|
+
l.name && l.defaultValue !== void 0 && (o[l.name] = l.defaultValue);
|
|
3035
|
+
}), {
|
|
3036
|
+
...o,
|
|
3037
|
+
...r,
|
|
2966
3038
|
...t,
|
|
2967
3039
|
...n ? {
|
|
2968
3040
|
locale: n
|
|
2969
3041
|
} : {}
|
|
2970
3042
|
};
|
|
2971
|
-
|
|
2972
|
-
...o,
|
|
2973
|
-
...r
|
|
2974
|
-
};
|
|
2975
|
-
}, Qo = ({
|
|
3043
|
+
}, nr = ({
|
|
2976
3044
|
content: e,
|
|
2977
3045
|
data: t
|
|
2978
3046
|
}) => e ? {
|
|
@@ -2982,13 +3050,13 @@ const Yo = /* @__PURE__ */ k(Go, [["render", Jo], ["__file", "/home/runner/work/
|
|
|
2982
3050
|
...t
|
|
2983
3051
|
},
|
|
2984
3052
|
meta: e == null ? void 0 : e.meta
|
|
2985
|
-
} : void 0,
|
|
3053
|
+
} : void 0, or = tt, rr = g({
|
|
2986
3054
|
name: "content-component",
|
|
2987
3055
|
components: {
|
|
2988
|
-
EnableEditor:
|
|
3056
|
+
EnableEditor: Go,
|
|
2989
3057
|
InlinedScript: He,
|
|
2990
|
-
ContentStyles:
|
|
2991
|
-
Blocks:
|
|
3058
|
+
ContentStyles: er,
|
|
3059
|
+
Blocks: re
|
|
2992
3060
|
},
|
|
2993
3061
|
props: [
|
|
2994
3062
|
"content",
|
|
@@ -3002,14 +3070,13 @@ const Yo = /* @__PURE__ */ k(Go, [["render", Jo], ["__file", "/home/runner/work/
|
|
|
3002
3070
|
"canTrack",
|
|
3003
3071
|
"includeRefs",
|
|
3004
3072
|
"enrich",
|
|
3005
|
-
"classNameProp",
|
|
3006
3073
|
"showContent",
|
|
3007
3074
|
"isSsrAbTest"
|
|
3008
3075
|
],
|
|
3009
3076
|
data() {
|
|
3010
3077
|
var e, t;
|
|
3011
3078
|
return {
|
|
3012
|
-
scriptStr:
|
|
3079
|
+
scriptStr: fo({
|
|
3013
3080
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
3014
3081
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
3015
3082
|
}),
|
|
@@ -3021,19 +3088,19 @@ const Yo = /* @__PURE__ */ k(Go, [["render", Jo], ["__file", "/home/runner/work/
|
|
|
3021
3088
|
(n, { component: o, ...r }) => ({
|
|
3022
3089
|
...n,
|
|
3023
3090
|
[r.name]: {
|
|
3024
|
-
component:
|
|
3025
|
-
...
|
|
3091
|
+
component: or(o),
|
|
3092
|
+
...te(r)
|
|
3026
3093
|
}
|
|
3027
3094
|
}),
|
|
3028
3095
|
{}
|
|
3029
3096
|
),
|
|
3030
3097
|
builderContextSignal: {
|
|
3031
|
-
content:
|
|
3098
|
+
content: nr({
|
|
3032
3099
|
content: this.content,
|
|
3033
3100
|
data: this.data
|
|
3034
3101
|
}),
|
|
3035
3102
|
localState: void 0,
|
|
3036
|
-
rootState:
|
|
3103
|
+
rootState: tr({
|
|
3037
3104
|
content: this.content,
|
|
3038
3105
|
data: this.data,
|
|
3039
3106
|
locale: this.locale
|
|
@@ -3049,13 +3116,13 @@ const Yo = /* @__PURE__ */ k(Go, [["render", Jo], ["__file", "/home/runner/work/
|
|
|
3049
3116
|
].reduce(
|
|
3050
3117
|
(n, { component: o, ...r }) => ({
|
|
3051
3118
|
...n,
|
|
3052
|
-
[r.name]:
|
|
3119
|
+
[r.name]: te(r)
|
|
3053
3120
|
}),
|
|
3054
3121
|
{}
|
|
3055
3122
|
),
|
|
3056
3123
|
inheritedStyles: {}
|
|
3057
3124
|
},
|
|
3058
|
-
TARGET:
|
|
3125
|
+
TARGET: E
|
|
3059
3126
|
};
|
|
3060
3127
|
},
|
|
3061
3128
|
provide() {
|
|
@@ -3072,9 +3139,9 @@ const Yo = /* @__PURE__ */ k(Go, [["render", Jo], ["__file", "/home/runner/work/
|
|
|
3072
3139
|
}
|
|
3073
3140
|
}
|
|
3074
3141
|
});
|
|
3075
|
-
function
|
|
3076
|
-
const
|
|
3077
|
-
return
|
|
3142
|
+
function ir(e, t, n, o, r, i) {
|
|
3143
|
+
const s = k("inlined-script"), a = k("content-styles"), l = k("blocks"), c = k("enable-editor");
|
|
3144
|
+
return d(), v(c, I({
|
|
3078
3145
|
content: e.content,
|
|
3079
3146
|
model: e.model,
|
|
3080
3147
|
context: e.context,
|
|
@@ -3083,39 +3150,38 @@ function tr(e, t, n, o, r, s) {
|
|
|
3083
3150
|
locale: e.locale,
|
|
3084
3151
|
includeRefs: e.includeRefs,
|
|
3085
3152
|
enrich: e.enrich,
|
|
3086
|
-
classNameProp: e.classNameProp,
|
|
3087
3153
|
showContent: e.showContent,
|
|
3088
3154
|
builderContextSignal: e.builderContextSignal
|
|
3089
3155
|
}, {}), {
|
|
3090
|
-
default:
|
|
3091
|
-
var
|
|
3156
|
+
default: oe(() => {
|
|
3157
|
+
var u, h, m, f, C, _, j;
|
|
3092
3158
|
return [
|
|
3093
|
-
e.isSsrAbTest ? (
|
|
3159
|
+
e.isSsrAbTest ? (d(), v(s, {
|
|
3094
3160
|
key: 0,
|
|
3095
3161
|
scriptStr: e.scriptStr
|
|
3096
|
-
}, null, 8, ["scriptStr"])) :
|
|
3097
|
-
e.TARGET !== "reactNative" ? (
|
|
3162
|
+
}, null, 8, ["scriptStr"])) : b("v-if", !0),
|
|
3163
|
+
e.TARGET !== "reactNative" ? (d(), v(a, {
|
|
3098
3164
|
key: 1,
|
|
3099
|
-
contentId: (
|
|
3100
|
-
cssCode: (m = (
|
|
3101
|
-
customFonts: (
|
|
3102
|
-
}, null, 8, ["contentId", "cssCode", "customFonts"])) :
|
|
3103
|
-
|
|
3104
|
-
blocks: (
|
|
3165
|
+
contentId: (u = e.builderContextSignal.content) == null ? void 0 : u.id,
|
|
3166
|
+
cssCode: (m = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : m.cssCode,
|
|
3167
|
+
customFonts: (C = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : C.customFonts
|
|
3168
|
+
}, null, 8, ["contentId", "cssCode", "customFonts"])) : b("v-if", !0),
|
|
3169
|
+
V(l, {
|
|
3170
|
+
blocks: (j = (_ = e.builderContextSignal.content) == null ? void 0 : _.data) == null ? void 0 : j.blocks,
|
|
3105
3171
|
context: e.builderContextSignal,
|
|
3106
3172
|
registeredComponents: e.registeredComponents
|
|
3107
3173
|
}, null, 8, ["blocks", "context", "registeredComponents"])
|
|
3108
3174
|
];
|
|
3109
3175
|
}),
|
|
3110
3176
|
_: 1
|
|
3111
|
-
}, 16, ["content", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "
|
|
3177
|
+
}, 16, ["content", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "showContent", "builderContextSignal"]);
|
|
3112
3178
|
}
|
|
3113
|
-
const
|
|
3179
|
+
const sr = /* @__PURE__ */ y(rr, [["render", ir], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/content/content.vue"]]), ar = g({
|
|
3114
3180
|
name: "content-variants",
|
|
3115
3181
|
components: {
|
|
3116
3182
|
InlinedScript: He,
|
|
3117
|
-
InlinedStyles:
|
|
3118
|
-
ContentComponent:
|
|
3183
|
+
InlinedStyles: q,
|
|
3184
|
+
ContentComponent: sr
|
|
3119
3185
|
},
|
|
3120
3186
|
props: [
|
|
3121
3187
|
"canTrack",
|
|
@@ -3133,23 +3199,23 @@ const nr = /* @__PURE__ */ k(er, [["render", tr], ["__file", "/home/runner/work/
|
|
|
3133
3199
|
],
|
|
3134
3200
|
data() {
|
|
3135
3201
|
return {
|
|
3136
|
-
shouldRenderVariants:
|
|
3137
|
-
canTrack:
|
|
3202
|
+
shouldRenderVariants: uo({
|
|
3203
|
+
canTrack: F(this.canTrack),
|
|
3138
3204
|
content: this.content
|
|
3139
3205
|
}),
|
|
3140
|
-
TARGET:
|
|
3141
|
-
getScriptString:
|
|
3142
|
-
getVariants:
|
|
3206
|
+
TARGET: E,
|
|
3207
|
+
getScriptString: mo,
|
|
3208
|
+
getVariants: W
|
|
3143
3209
|
};
|
|
3144
3210
|
},
|
|
3145
3211
|
mounted() {
|
|
3146
3212
|
this.shouldRenderVariants = !1;
|
|
3147
3213
|
},
|
|
3148
3214
|
computed: {
|
|
3149
|
-
|
|
3215
|
+
updateCookieAndStylesScriptStr() {
|
|
3150
3216
|
var e;
|
|
3151
|
-
return
|
|
3152
|
-
|
|
3217
|
+
return ho(
|
|
3218
|
+
W(this.content).map((t) => ({
|
|
3153
3219
|
id: t.testVariationId,
|
|
3154
3220
|
testRatio: t.testRatio
|
|
3155
3221
|
})),
|
|
@@ -3157,7 +3223,7 @@ const nr = /* @__PURE__ */ k(er, [["render", tr], ["__file", "/home/runner/work/
|
|
|
3157
3223
|
);
|
|
3158
3224
|
},
|
|
3159
3225
|
hideVariantsStyleString() {
|
|
3160
|
-
return
|
|
3226
|
+
return W(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
|
|
3161
3227
|
},
|
|
3162
3228
|
defaultContent() {
|
|
3163
3229
|
var e;
|
|
@@ -3166,30 +3232,29 @@ const nr = /* @__PURE__ */ k(er, [["render", tr], ["__file", "/home/runner/work/
|
|
|
3166
3232
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
3167
3233
|
} : vn({
|
|
3168
3234
|
item: this.content,
|
|
3169
|
-
canTrack:
|
|
3235
|
+
canTrack: F(this.canTrack)
|
|
3170
3236
|
});
|
|
3171
3237
|
}
|
|
3172
3238
|
}
|
|
3173
3239
|
});
|
|
3174
|
-
function
|
|
3175
|
-
var c
|
|
3176
|
-
const
|
|
3177
|
-
return
|
|
3178
|
-
!e.__isNestedRender && e.TARGET !== "reactNative" ? (
|
|
3240
|
+
function lr(e, t, n, o, r, i) {
|
|
3241
|
+
var c;
|
|
3242
|
+
const s = k("inlined-script"), a = k("inlined-styles"), l = k("content-component");
|
|
3243
|
+
return d(), p(w, null, [
|
|
3244
|
+
!e.__isNestedRender && e.TARGET !== "reactNative" ? (d(), v(s, {
|
|
3179
3245
|
key: 0,
|
|
3180
3246
|
scriptStr: e.getScriptString()
|
|
3181
|
-
}, null, 8, ["scriptStr"])) :
|
|
3182
|
-
e.shouldRenderVariants ? (
|
|
3183
|
-
|
|
3247
|
+
}, null, 8, ["scriptStr"])) : b("v-if", !0),
|
|
3248
|
+
e.shouldRenderVariants ? (d(), p(w, { key: 1 }, [
|
|
3249
|
+
V(a, {
|
|
3184
3250
|
id: `variants-styles-${(c = e.content) == null ? void 0 : c.id}`,
|
|
3185
3251
|
styles: e.hideVariantsStyleString
|
|
3186
3252
|
}, null, 8, ["id", "styles"]),
|
|
3187
|
-
|
|
3188
|
-
(
|
|
3189
|
-
key:
|
|
3190
|
-
content:
|
|
3253
|
+
V(s, { scriptStr: e.updateCookieAndStylesScriptStr }, null, 8, ["scriptStr"]),
|
|
3254
|
+
(d(!0), p(w, null, B(e.getVariants(e.content), (u, h) => (d(), v(l, {
|
|
3255
|
+
key: u.testVariationId,
|
|
3256
|
+
content: u,
|
|
3191
3257
|
showContent: !1,
|
|
3192
|
-
classNameProp: void 0,
|
|
3193
3258
|
model: e.model,
|
|
3194
3259
|
data: e.data,
|
|
3195
3260
|
context: e.context,
|
|
@@ -3202,10 +3267,9 @@ function rr(e, t, n, o, r, s) {
|
|
|
3202
3267
|
enrich: e.enrich,
|
|
3203
3268
|
isSsrAbTest: e.shouldRenderVariants
|
|
3204
3269
|
}, null, 8, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest"]))), 128))
|
|
3205
|
-
], 64)) :
|
|
3206
|
-
|
|
3270
|
+
], 64)) : b("v-if", !0),
|
|
3271
|
+
V(l, I({
|
|
3207
3272
|
content: e.defaultContent,
|
|
3208
|
-
classNameProp: `variant-${(d = e.content) == null ? void 0 : d.id}`,
|
|
3209
3273
|
showContent: !0,
|
|
3210
3274
|
model: e.model,
|
|
3211
3275
|
data: e.data,
|
|
@@ -3220,15 +3284,15 @@ function rr(e, t, n, o, r, s) {
|
|
|
3220
3284
|
isSsrAbTest: e.shouldRenderVariants
|
|
3221
3285
|
}, {
|
|
3222
3286
|
key: e.shouldRenderVariants.toString()
|
|
3223
|
-
}), null, 16, ["content", "
|
|
3287
|
+
}), null, 16, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest"])
|
|
3224
3288
|
], 64);
|
|
3225
3289
|
}
|
|
3226
|
-
const Ze = /* @__PURE__ */
|
|
3290
|
+
const Ze = /* @__PURE__ */ y(ar, [["render", lr], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/content-variants/content-variants.vue"]]), cr = async ({
|
|
3227
3291
|
builderContextValue: e,
|
|
3228
3292
|
symbol: t
|
|
3229
3293
|
}) => {
|
|
3230
3294
|
if ((t == null ? void 0 : t.model) && (e == null ? void 0 : e.apiKey))
|
|
3231
|
-
return
|
|
3295
|
+
return G({
|
|
3232
3296
|
model: t.model,
|
|
3233
3297
|
apiKey: e.apiKey,
|
|
3234
3298
|
apiVersion: e.apiVersion,
|
|
@@ -3238,9 +3302,9 @@ const Ze = /* @__PURE__ */ k(or, [["render", rr], ["__file", "/home/runner/work/
|
|
|
3238
3302
|
}
|
|
3239
3303
|
}
|
|
3240
3304
|
}).catch((n) => {
|
|
3241
|
-
|
|
3305
|
+
T.error("Could not fetch symbol content: ", n);
|
|
3242
3306
|
});
|
|
3243
|
-
},
|
|
3307
|
+
}, dr = g({
|
|
3244
3308
|
name: "builder-symbol",
|
|
3245
3309
|
components: { ContentVariants: Ze },
|
|
3246
3310
|
props: [
|
|
@@ -3253,7 +3317,7 @@ const Ze = /* @__PURE__ */ k(or, [["render", rr], ["__file", "/home/runner/work/
|
|
|
3253
3317
|
],
|
|
3254
3318
|
data() {
|
|
3255
3319
|
var e;
|
|
3256
|
-
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs:
|
|
3320
|
+
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: z };
|
|
3257
3321
|
},
|
|
3258
3322
|
mounted() {
|
|
3259
3323
|
this.setContent();
|
|
@@ -3284,7 +3348,7 @@ const Ze = /* @__PURE__ */ k(or, [["render", rr], ["__file", "/home/runner/work/
|
|
|
3284
3348
|
},
|
|
3285
3349
|
methods: {
|
|
3286
3350
|
setContent() {
|
|
3287
|
-
this.contentToUse ||
|
|
3351
|
+
this.contentToUse || cr({
|
|
3288
3352
|
symbol: this.symbol,
|
|
3289
3353
|
builderContextValue: this.builderContext
|
|
3290
3354
|
}).then((e) => {
|
|
@@ -3302,13 +3366,13 @@ const Ze = /* @__PURE__ */ k(or, [["render", rr], ["__file", "/home/runner/work/
|
|
|
3302
3366
|
}
|
|
3303
3367
|
}
|
|
3304
3368
|
});
|
|
3305
|
-
function
|
|
3306
|
-
var a, l, c,
|
|
3307
|
-
const
|
|
3308
|
-
return
|
|
3369
|
+
function ur(e, t, n, o, r, i) {
|
|
3370
|
+
var a, l, c, u;
|
|
3371
|
+
const s = k("content-variants");
|
|
3372
|
+
return d(), p("div", I({
|
|
3309
3373
|
class: e._classStringToObject(e.className)
|
|
3310
3374
|
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3311
|
-
|
|
3375
|
+
V(s, {
|
|
3312
3376
|
__isNestedRender: !0,
|
|
3313
3377
|
apiVersion: e.builderContext.apiVersion,
|
|
3314
3378
|
apiKey: e.builderContext.apiKey,
|
|
@@ -3319,14 +3383,14 @@ function ar(e, t, n, o, r, s) {
|
|
|
3319
3383
|
...e.builderContext.localState,
|
|
3320
3384
|
...(c = (l = e.contentToUse) == null ? void 0 : l.data) == null ? void 0 : c.state
|
|
3321
3385
|
},
|
|
3322
|
-
model: (
|
|
3386
|
+
model: (u = e.symbol) == null ? void 0 : u.model,
|
|
3323
3387
|
content: e.contentToUse
|
|
3324
3388
|
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content"])
|
|
3325
3389
|
], 16);
|
|
3326
3390
|
}
|
|
3327
|
-
const
|
|
3328
|
-
function
|
|
3329
|
-
if (
|
|
3391
|
+
const pr = /* @__PURE__ */ y(dr, [["render", ur], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/symbol/symbol.vue"]]), kr = re, vr = Ze, ve = {};
|
|
3392
|
+
function Sr(e) {
|
|
3393
|
+
if (S()) {
|
|
3330
3394
|
Object.assign(ve, e);
|
|
3331
3395
|
const t = {
|
|
3332
3396
|
type: "builder.settingsChange",
|
|
@@ -3335,8 +3399,8 @@ function gr(e) {
|
|
|
3335
3399
|
parent.postMessage(t, "*");
|
|
3336
3400
|
}
|
|
3337
3401
|
}
|
|
3338
|
-
const
|
|
3339
|
-
var o, r,
|
|
3402
|
+
const Cr = async (e) => {
|
|
3403
|
+
var o, r, i;
|
|
3340
3404
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
3341
3405
|
...e,
|
|
3342
3406
|
apiKey: e.apiKey,
|
|
@@ -3347,47 +3411,47 @@ const yr = async (e) => {
|
|
|
3347
3411
|
urlPath: t
|
|
3348
3412
|
} : {}
|
|
3349
3413
|
},
|
|
3350
|
-
options:
|
|
3414
|
+
options: ze(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
3351
3415
|
};
|
|
3352
3416
|
return {
|
|
3353
3417
|
apiKey: n.apiKey,
|
|
3354
3418
|
model: n.model,
|
|
3355
|
-
content: await
|
|
3419
|
+
content: await G(n)
|
|
3356
3420
|
};
|
|
3357
3421
|
};
|
|
3358
3422
|
export {
|
|
3359
|
-
|
|
3423
|
+
Ae as B,
|
|
3360
3424
|
Ze as C,
|
|
3361
|
-
|
|
3425
|
+
Xt as F,
|
|
3362
3426
|
an as I,
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3427
|
+
kr as R,
|
|
3428
|
+
dn as S,
|
|
3429
|
+
E as T,
|
|
3430
|
+
ro as V,
|
|
3431
|
+
y as _,
|
|
3368
3432
|
Ve as a,
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3433
|
+
Z as b,
|
|
3434
|
+
ut as c,
|
|
3435
|
+
re as d,
|
|
3436
|
+
H as e,
|
|
3437
|
+
vr as f,
|
|
3438
|
+
st as g,
|
|
3375
3439
|
Jt as h,
|
|
3376
|
-
|
|
3440
|
+
pr as i,
|
|
3377
3441
|
Jn as j,
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3442
|
+
R as k,
|
|
3443
|
+
To as l,
|
|
3444
|
+
io as m,
|
|
3445
|
+
$o as n,
|
|
3382
3446
|
Ge as o,
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3447
|
+
G as p,
|
|
3448
|
+
gr as q,
|
|
3449
|
+
Wo as r,
|
|
3450
|
+
Sr as s,
|
|
3451
|
+
br as t,
|
|
3452
|
+
ze as u,
|
|
3453
|
+
yr as v,
|
|
3454
|
+
or as w,
|
|
3455
|
+
Cr as x,
|
|
3456
|
+
fr as y
|
|
3393
3457
|
};
|