@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,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
function
|
|
1
|
+
import { defineComponent as b, openBlock as d, createElementBlock as u, mergeProps as w, toHandlers as N, toDisplayString as le, defineAsyncComponent as W, resolveComponent as y, Fragment as C, createBlock as k, createCommentVNode as f, renderList as A, withCtx as ne, createVNode as B, h as Se, renderSlot as P, createElementVNode as Q, normalizeStyle as X, normalizeClass as Ce, markRaw as Je } from "vue";
|
|
2
|
+
function z(e = {}, t, n) {
|
|
3
3
|
const o = {};
|
|
4
|
-
for (const
|
|
5
|
-
if (!e[
|
|
4
|
+
for (const i in e) {
|
|
5
|
+
if (!e[i] || n && !i.startsWith(t))
|
|
6
6
|
continue;
|
|
7
|
-
const
|
|
8
|
-
o[
|
|
7
|
+
const r = n ? i.replace(t, "") : i;
|
|
8
|
+
o[r] = e[i];
|
|
9
9
|
}
|
|
10
10
|
return o;
|
|
11
11
|
}
|
|
12
|
-
const Ye =
|
|
12
|
+
const Ye = b({
|
|
13
13
|
name: "builder-button",
|
|
14
14
|
props: ["attributes", "text", "link", "openLinkInNewTab"],
|
|
15
15
|
data() {
|
|
16
|
-
return { filterAttrs:
|
|
16
|
+
return { filterAttrs: z };
|
|
17
17
|
},
|
|
18
18
|
methods: {
|
|
19
19
|
_classStringToObject(e) {
|
|
@@ -27,25 +27,25 @@ const Ye = g({
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
const
|
|
30
|
+
const g = (e, t) => {
|
|
31
31
|
const n = e.__vccOpts || e;
|
|
32
|
-
for (const [o,
|
|
33
|
-
n[o] =
|
|
32
|
+
for (const [o, i] of t)
|
|
33
|
+
n[o] = i;
|
|
34
34
|
return n;
|
|
35
|
-
},
|
|
36
|
-
function
|
|
37
|
-
return e.link ? (d(),
|
|
35
|
+
}, Qe = ["href", "target"];
|
|
36
|
+
function Xe(e, t, n, o, i, r) {
|
|
37
|
+
return e.link ? (d(), u("a", w({
|
|
38
38
|
key: 0,
|
|
39
39
|
href: e.link,
|
|
40
40
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
41
41
|
role: "button"
|
|
42
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
42
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), N(e.filterAttrs(e.attributes, "v-on:", !0), !0)), le(e.text), 17, Qe)) : (d(), u("button", w({
|
|
43
43
|
key: 1,
|
|
44
44
|
style: e.attributes.style,
|
|
45
45
|
class: e._classStringToObject(e.attributes.class + " button-21azgz5avex")
|
|
46
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
46
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), N(e.filterAttrs(e.attributes, "v-on:", !0), !0)), le(e.text), 17));
|
|
47
47
|
}
|
|
48
|
-
const Ze = /* @__PURE__ */
|
|
48
|
+
const Ze = /* @__PURE__ */ g(Ye, [["render", Xe], ["__scopeId", "data-v-becdf225"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/button/button.vue"]]), et = Symbol(), Z = {
|
|
49
49
|
Builder: {
|
|
50
50
|
content: null,
|
|
51
51
|
context: {},
|
|
@@ -71,43 +71,43 @@ function nt(e) {
|
|
|
71
71
|
builderBlock: e
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
|
-
const
|
|
74
|
+
const x = "vue3", ot = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), T = (e) => e != null, it = (e) => Object.entries(e).map(([n, o]) => {
|
|
75
75
|
if (typeof o == "string")
|
|
76
76
|
return `${ot(n)}: ${o};`;
|
|
77
|
-
}).filter(
|
|
78
|
-
`),
|
|
77
|
+
}).filter(T), rt = (e) => it(e).join(`
|
|
78
|
+
`), J = ({
|
|
79
79
|
mediaQuery: e,
|
|
80
80
|
className: t,
|
|
81
81
|
styles: n
|
|
82
82
|
}) => {
|
|
83
83
|
const o = `.${t} {
|
|
84
|
-
${
|
|
84
|
+
${rt(n)}
|
|
85
85
|
}`;
|
|
86
86
|
return e ? `${e} {
|
|
87
87
|
${o}
|
|
88
88
|
}` : o;
|
|
89
|
-
},
|
|
90
|
-
log: (...e) => console.log(
|
|
91
|
-
error: (...e) => console.error(
|
|
92
|
-
warn: (...e) => console.warn(
|
|
93
|
-
debug: (...e) => console.debug(
|
|
89
|
+
}, M = "[Builder.io]: ", $ = {
|
|
90
|
+
log: (...e) => console.log(M, ...e),
|
|
91
|
+
error: (...e) => console.error(M, ...e),
|
|
92
|
+
warn: (...e) => console.warn(M, ...e),
|
|
93
|
+
debug: (...e) => console.debug(M, ...e)
|
|
94
94
|
};
|
|
95
|
-
function
|
|
95
|
+
function v() {
|
|
96
96
|
return typeof window < "u" && typeof document < "u";
|
|
97
97
|
}
|
|
98
|
-
function
|
|
99
|
-
return
|
|
98
|
+
function st() {
|
|
99
|
+
return v() && window.self !== window.top;
|
|
100
100
|
}
|
|
101
|
-
function
|
|
102
|
-
return
|
|
101
|
+
function R() {
|
|
102
|
+
return st() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
103
103
|
}
|
|
104
104
|
const at = () => {
|
|
105
|
-
if (
|
|
105
|
+
if (v()) {
|
|
106
106
|
const e = new URL(location.href);
|
|
107
107
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
108
108
|
} else
|
|
109
109
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
110
|
-
}, lt = () => typeof navigator == "object" && navigator.userAgent || "",
|
|
110
|
+
}, lt = () => typeof navigator == "object" && navigator.userAgent || "", Ie = () => {
|
|
111
111
|
const e = lt(), t = {
|
|
112
112
|
Android() {
|
|
113
113
|
return e.match(/Android/i);
|
|
@@ -125,7 +125,7 @@ const at = () => {
|
|
|
125
125
|
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
126
126
|
},
|
|
127
127
|
any() {
|
|
128
|
-
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() ||
|
|
128
|
+
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || x === "reactNative";
|
|
129
129
|
}
|
|
130
130
|
}, n = e.match(/Tablet|iPad/i), o = at();
|
|
131
131
|
return {
|
|
@@ -145,10 +145,10 @@ const at = () => {
|
|
|
145
145
|
context: t,
|
|
146
146
|
event: n
|
|
147
147
|
}), dt = () => ({
|
|
148
|
-
isEditing:
|
|
149
|
-
isBrowser:
|
|
150
|
-
isServer: !
|
|
151
|
-
getUserAttributes: () =>
|
|
148
|
+
isEditing: R(),
|
|
149
|
+
isBrowser: v(),
|
|
150
|
+
isServer: !v(),
|
|
151
|
+
getUserAttributes: () => Ie()
|
|
152
152
|
}), ut = (e, {
|
|
153
153
|
isExpression: t = !0
|
|
154
154
|
}) => t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, ce = ({
|
|
@@ -156,15 +156,15 @@ const at = () => {
|
|
|
156
156
|
builder: t,
|
|
157
157
|
context: n,
|
|
158
158
|
event: o,
|
|
159
|
-
localState:
|
|
160
|
-
rootSetState:
|
|
161
|
-
rootState:
|
|
159
|
+
localState: i,
|
|
160
|
+
rootSetState: r,
|
|
161
|
+
rootState: s
|
|
162
162
|
}) => {
|
|
163
163
|
const a = ct({
|
|
164
164
|
builder: t,
|
|
165
165
|
context: n,
|
|
166
166
|
event: o,
|
|
167
|
-
state: pt(i, r
|
|
167
|
+
state: pt(s, i, r)
|
|
168
168
|
});
|
|
169
169
|
return new Function(...a.map(([l]) => l), e)(...a.map(([, l]) => l));
|
|
170
170
|
};
|
|
@@ -172,120 +172,120 @@ function pt(e, t, n) {
|
|
|
172
172
|
if (e === t)
|
|
173
173
|
throw new Error("rootState === localState");
|
|
174
174
|
return new Proxy(e, {
|
|
175
|
-
get: (o,
|
|
176
|
-
set: (o,
|
|
177
|
-
if (t &&
|
|
175
|
+
get: (o, i) => t && i in t ? t[i] : e[i],
|
|
176
|
+
set: (o, i, r) => {
|
|
177
|
+
if (t && i in t)
|
|
178
178
|
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
179
|
-
return e[
|
|
179
|
+
return e[i] = r, n == null || n(e), !0;
|
|
180
180
|
}
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
|
-
const mt = (e) => (
|
|
184
|
-
function
|
|
183
|
+
const mt = (e) => (v(), ce(e));
|
|
184
|
+
function K({
|
|
185
185
|
code: e,
|
|
186
186
|
context: t,
|
|
187
187
|
localState: n,
|
|
188
188
|
rootState: o,
|
|
189
|
-
rootSetState:
|
|
190
|
-
event:
|
|
191
|
-
isExpression:
|
|
189
|
+
rootSetState: i,
|
|
190
|
+
event: r,
|
|
191
|
+
isExpression: s = !0
|
|
192
192
|
}) {
|
|
193
193
|
if (e === "") {
|
|
194
|
-
|
|
194
|
+
$.warn("Skipping evaluation of empty code block.");
|
|
195
195
|
return;
|
|
196
196
|
}
|
|
197
197
|
const a = {
|
|
198
198
|
code: ut(e, {
|
|
199
|
-
isExpression:
|
|
199
|
+
isExpression: s
|
|
200
200
|
}),
|
|
201
201
|
builder: dt(),
|
|
202
202
|
context: t,
|
|
203
|
-
event:
|
|
204
|
-
rootSetState:
|
|
203
|
+
event: r,
|
|
204
|
+
rootSetState: i,
|
|
205
205
|
rootState: o,
|
|
206
206
|
localState: n
|
|
207
207
|
};
|
|
208
208
|
try {
|
|
209
209
|
return mt(a);
|
|
210
210
|
} catch (l) {
|
|
211
|
-
|
|
211
|
+
$.error("Failed code evaluation: " + l.message, {
|
|
212
212
|
code: e
|
|
213
213
|
});
|
|
214
214
|
return;
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
const
|
|
217
|
+
const F = (e) => JSON.parse(JSON.stringify(e)), ht = (e, t, n) => {
|
|
218
218
|
if (Object(e) !== e)
|
|
219
219
|
return e;
|
|
220
220
|
const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
221
|
-
return o.slice(0, -1).reduce((r, s
|
|
221
|
+
return o.slice(0, -1).reduce((i, r, s) => Object(i[r]) === i[r] ? i[r] : i[r] = Math.abs(Number(o[s + 1])) >> 0 === +o[s + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
|
|
222
222
|
};
|
|
223
223
|
const ft = ({
|
|
224
224
|
block: e,
|
|
225
225
|
context: t,
|
|
226
226
|
localState: n,
|
|
227
227
|
rootState: o,
|
|
228
|
-
rootSetState:
|
|
228
|
+
rootSetState: i
|
|
229
229
|
}) => {
|
|
230
230
|
if (!e.bindings)
|
|
231
231
|
return e;
|
|
232
|
-
const
|
|
233
|
-
...
|
|
232
|
+
const r = F(e), s = {
|
|
233
|
+
...r,
|
|
234
234
|
properties: {
|
|
235
|
-
...
|
|
235
|
+
...r.properties
|
|
236
236
|
},
|
|
237
237
|
actions: {
|
|
238
|
-
...
|
|
238
|
+
...r.actions
|
|
239
239
|
}
|
|
240
240
|
};
|
|
241
241
|
for (const a in e.bindings) {
|
|
242
|
-
const l = e.bindings[a], c =
|
|
242
|
+
const l = e.bindings[a], c = K({
|
|
243
243
|
code: l,
|
|
244
244
|
localState: n,
|
|
245
245
|
rootState: o,
|
|
246
|
-
rootSetState:
|
|
246
|
+
rootSetState: i,
|
|
247
247
|
context: t
|
|
248
248
|
});
|
|
249
|
-
ht(
|
|
249
|
+
ht(s, a, c);
|
|
250
250
|
}
|
|
251
|
-
return
|
|
251
|
+
return s;
|
|
252
252
|
};
|
|
253
253
|
function D({
|
|
254
254
|
block: e,
|
|
255
255
|
context: t,
|
|
256
256
|
shouldEvaluateBindings: n,
|
|
257
257
|
localState: o,
|
|
258
|
-
rootState:
|
|
259
|
-
rootSetState:
|
|
258
|
+
rootState: i,
|
|
259
|
+
rootSetState: r
|
|
260
260
|
}) {
|
|
261
|
-
const
|
|
261
|
+
const s = e;
|
|
262
262
|
return n ? ft({
|
|
263
|
-
block:
|
|
263
|
+
block: s,
|
|
264
264
|
localState: o,
|
|
265
|
-
rootState:
|
|
266
|
-
rootSetState:
|
|
265
|
+
rootState: i,
|
|
266
|
+
rootSetState: r,
|
|
267
267
|
context: t
|
|
268
|
-
}) :
|
|
268
|
+
}) : s;
|
|
269
269
|
}
|
|
270
270
|
const bt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], gt = (e) => typeof e == "string" && bt.includes(e.toLowerCase()), yt = ({
|
|
271
271
|
block: e,
|
|
272
272
|
context: t,
|
|
273
273
|
registeredComponents: n
|
|
274
274
|
}) => {
|
|
275
|
-
var
|
|
276
|
-
const o = (
|
|
275
|
+
var r;
|
|
276
|
+
const o = (r = D({
|
|
277
277
|
block: e,
|
|
278
278
|
localState: t.localState,
|
|
279
279
|
rootState: t.rootState,
|
|
280
280
|
rootSetState: t.rootSetState,
|
|
281
281
|
context: t.context,
|
|
282
282
|
shouldEvaluateBindings: !1
|
|
283
|
-
}).component) == null ? void 0 :
|
|
283
|
+
}).component) == null ? void 0 : r.name;
|
|
284
284
|
if (!o)
|
|
285
285
|
return null;
|
|
286
|
-
const
|
|
287
|
-
if (
|
|
288
|
-
return
|
|
286
|
+
const i = n[o];
|
|
287
|
+
if (i)
|
|
288
|
+
return i;
|
|
289
289
|
console.warn(`
|
|
290
290
|
Could not find a registered component named "${o}".
|
|
291
291
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
@@ -299,25 +299,25 @@ const bt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
299
299
|
} = e;
|
|
300
300
|
if (!(n != null && n.collection))
|
|
301
301
|
return;
|
|
302
|
-
const
|
|
302
|
+
const i = K({
|
|
303
303
|
code: n.collection,
|
|
304
304
|
localState: t.localState,
|
|
305
305
|
rootState: t.rootState,
|
|
306
306
|
rootSetState: t.rootSetState,
|
|
307
307
|
context: t.context
|
|
308
308
|
});
|
|
309
|
-
if (!Array.isArray(
|
|
309
|
+
if (!Array.isArray(i))
|
|
310
310
|
return;
|
|
311
|
-
const
|
|
312
|
-
return
|
|
311
|
+
const r = n.collection.split(".").pop(), s = n.itemName || (r ? r + "Item" : "item");
|
|
312
|
+
return i.map((l, c) => ({
|
|
313
313
|
context: {
|
|
314
314
|
...t,
|
|
315
315
|
localState: {
|
|
316
316
|
...t.localState,
|
|
317
317
|
$index: c,
|
|
318
318
|
$item: l,
|
|
319
|
-
[
|
|
320
|
-
[`$${
|
|
319
|
+
[s]: l,
|
|
320
|
+
[`$${s}Index`]: c
|
|
321
321
|
}
|
|
322
322
|
},
|
|
323
323
|
block: o
|
|
@@ -327,22 +327,22 @@ const bt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
327
327
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
328
328
|
e
|
|
329
329
|
), e;
|
|
330
|
-
}), St = () => import("./block-wrapper.
|
|
330
|
+
}), St = () => import("./block-wrapper.1f981181.js").then((e) => e.default).catch((e) => {
|
|
331
331
|
throw console.error(
|
|
332
332
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
333
333
|
e
|
|
334
334
|
), e;
|
|
335
|
-
}), Ct = () => import("./component-ref.
|
|
335
|
+
}), Ct = () => import("./component-ref.c8d76b1a.js").then((e) => e.default).catch((e) => {
|
|
336
336
|
throw console.error(
|
|
337
337
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
338
338
|
e
|
|
339
339
|
), e;
|
|
340
|
-
}), wt = () => import("./repeated-block.
|
|
340
|
+
}), wt = () => import("./repeated-block.af88918c.js").then((e) => e.default).catch((e) => {
|
|
341
341
|
throw console.error(
|
|
342
342
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
343
343
|
e
|
|
344
344
|
), e;
|
|
345
|
-
}),
|
|
345
|
+
}), It = b({
|
|
346
346
|
name: "block",
|
|
347
347
|
components: {
|
|
348
348
|
ComponentRef: W(Ct),
|
|
@@ -369,7 +369,8 @@ const bt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
369
369
|
});
|
|
370
370
|
},
|
|
371
371
|
processedBlock() {
|
|
372
|
-
|
|
372
|
+
var e;
|
|
373
|
+
return (e = this.block.repeat) != null && e.collection ? this.block : D({
|
|
373
374
|
block: this.block,
|
|
374
375
|
localState: this.context.localState,
|
|
375
376
|
rootState: this.context.rootState,
|
|
@@ -382,14 +383,15 @@ const bt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
382
383
|
return this.block.tagName || "div";
|
|
383
384
|
},
|
|
384
385
|
canShowBlock() {
|
|
385
|
-
|
|
386
|
+
var e, t;
|
|
387
|
+
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));
|
|
386
388
|
},
|
|
387
389
|
childrenWithoutParentComponent() {
|
|
388
390
|
var t, n;
|
|
389
391
|
return !((t = this.blockComponent) != null && t.component) && !this.repeatItem ? (n = this.processedBlock.children) != null ? n : [] : [];
|
|
390
392
|
},
|
|
391
393
|
componentRefProps() {
|
|
392
|
-
var e, t, n, o,
|
|
394
|
+
var e, t, n, o, i, r;
|
|
393
395
|
return {
|
|
394
396
|
blockChildren: (e = this.processedBlock.children) != null ? e : [],
|
|
395
397
|
componentRef: (t = this.blockComponent) == null ? void 0 : t.component,
|
|
@@ -403,17 +405,17 @@ const bt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
403
405
|
context: this.childrenContext,
|
|
404
406
|
registeredComponents: this.registeredComponents,
|
|
405
407
|
builderBlock: this.processedBlock,
|
|
406
|
-
includeBlockProps: ((
|
|
407
|
-
isInteractive: !((
|
|
408
|
+
includeBlockProps: ((i = this.blockComponent) == null ? void 0 : i.noWrap) === !0,
|
|
409
|
+
isInteractive: !((r = this.blockComponent) != null && r.isRSC)
|
|
408
410
|
};
|
|
409
411
|
}
|
|
410
412
|
}
|
|
411
413
|
});
|
|
412
|
-
function
|
|
414
|
+
function $t(e, t, n, o, i, r) {
|
|
413
415
|
var h;
|
|
414
|
-
const
|
|
415
|
-
return e.canShowBlock ? (d(),
|
|
416
|
-
(h = e.blockComponent) != null && h.noWrap ? (d(),
|
|
416
|
+
const s = y("block-wrapper"), a = y("repeated-block"), l = y("component-ref"), c = y("block", !0), p = y("block-styles");
|
|
417
|
+
return e.canShowBlock ? (d(), u(C, { key: 0 }, [
|
|
418
|
+
(h = e.blockComponent) != null && h.noWrap ? (d(), k(l, {
|
|
417
419
|
key: 1,
|
|
418
420
|
componentRef: e.componentRefProps.componentRef,
|
|
419
421
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -423,29 +425,29 @@ function Rt(e, t, n, o, r, s) {
|
|
|
423
425
|
builderBlock: e.componentRefProps.builderBlock,
|
|
424
426
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
425
427
|
isInteractive: e.componentRefProps.isInteractive
|
|
426
|
-
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"])) : (d(),
|
|
427
|
-
e.isEmptyHtmlElement(e.Tag) ? (d(),
|
|
428
|
+
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"])) : (d(), u(C, { key: 0 }, [
|
|
429
|
+
e.isEmptyHtmlElement(e.Tag) ? (d(), k(s, {
|
|
428
430
|
key: 0,
|
|
429
431
|
Wrapper: e.Tag,
|
|
430
432
|
block: e.processedBlock,
|
|
431
433
|
context: e.context,
|
|
432
434
|
hasChildren: !1
|
|
433
|
-
}, null, 8, ["Wrapper", "block", "context"])) :
|
|
434
|
-
!e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (d(!0),
|
|
435
|
-
key:
|
|
435
|
+
}, null, 8, ["Wrapper", "block", "context"])) : f("v-if", !0),
|
|
436
|
+
!e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (d(!0), u(C, { key: 1 }, A(e.repeatItem, (m, S) => (d(), k(a, {
|
|
437
|
+
key: S,
|
|
436
438
|
repeatContext: m.context,
|
|
437
439
|
block: m.block,
|
|
438
440
|
registeredComponents: e.registeredComponents
|
|
439
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents"]))), 128)) :
|
|
440
|
-
!e.isEmptyHtmlElement(e.Tag) && !e.repeatItem ? (d(),
|
|
441
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents"]))), 128)) : f("v-if", !0),
|
|
442
|
+
!e.isEmptyHtmlElement(e.Tag) && !e.repeatItem ? (d(), k(s, {
|
|
441
443
|
key: 2,
|
|
442
444
|
Wrapper: e.Tag,
|
|
443
445
|
block: e.processedBlock,
|
|
444
446
|
context: e.context,
|
|
445
447
|
hasChildren: !0
|
|
446
448
|
}, {
|
|
447
|
-
default:
|
|
448
|
-
|
|
449
|
+
default: ne(() => [
|
|
450
|
+
B(l, {
|
|
449
451
|
componentRef: e.componentRefProps.componentRef,
|
|
450
452
|
componentOptions: e.componentRefProps.componentOptions,
|
|
451
453
|
blockChildren: e.componentRefProps.blockChildren,
|
|
@@ -455,27 +457,27 @@ function Rt(e, t, n, o, r, s) {
|
|
|
455
457
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
456
458
|
isInteractive: e.componentRefProps.isInteractive
|
|
457
459
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
458
|
-
(d(!0),
|
|
460
|
+
(d(!0), u(C, null, A(e.childrenWithoutParentComponent, (m, S) => (d(), k(c, {
|
|
459
461
|
key: "block-" + m.id,
|
|
460
462
|
block: m,
|
|
461
463
|
context: e.childrenContext,
|
|
462
464
|
registeredComponents: e.registeredComponents
|
|
463
465
|
}, null, 8, ["block", "context", "registeredComponents"]))), 128)),
|
|
464
|
-
(d(!0),
|
|
466
|
+
(d(!0), u(C, null, A(e.childrenWithoutParentComponent, (m, S) => (d(), k(p, {
|
|
465
467
|
key: "block-style-" + m.id,
|
|
466
468
|
block: m,
|
|
467
469
|
context: e.childrenContext
|
|
468
470
|
}, null, 8, ["block", "context"]))), 128))
|
|
469
471
|
]),
|
|
470
472
|
_: 1
|
|
471
|
-
}, 8, ["Wrapper", "block", "context"])) :
|
|
473
|
+
}, 8, ["Wrapper", "block", "context"])) : f("v-if", !0)
|
|
472
474
|
], 64))
|
|
473
|
-
], 64)) :
|
|
475
|
+
], 64)) : f("v-if", !0);
|
|
474
476
|
}
|
|
475
|
-
const
|
|
477
|
+
const $e = /* @__PURE__ */ g(It, [["render", $t], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/block/block.vue"]]), oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
476
478
|
__proto__: null,
|
|
477
|
-
default:
|
|
478
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
479
|
+
default: $e
|
|
480
|
+
}, Symbol.toStringTag, { value: "Module" })), Re = {
|
|
479
481
|
small: {
|
|
480
482
|
min: 320,
|
|
481
483
|
default: 321,
|
|
@@ -491,11 +493,11 @@ const Re = /* @__PURE__ */ y($t, [["render", Rt], ["__file", "/home/runner/work/
|
|
|
491
493
|
default: 991,
|
|
492
494
|
max: 1200
|
|
493
495
|
}
|
|
494
|
-
}, de = (e, t =
|
|
496
|
+
}, de = (e, t = Re) => `@media (max-width: ${t[e].max}px)`, Te = ({
|
|
495
497
|
small: e,
|
|
496
498
|
medium: t
|
|
497
499
|
}) => {
|
|
498
|
-
const n =
|
|
500
|
+
const n = F(Re);
|
|
499
501
|
if (!e || !t)
|
|
500
502
|
return n;
|
|
501
503
|
const o = Math.floor(e / 2);
|
|
@@ -504,30 +506,30 @@ const Re = /* @__PURE__ */ y($t, [["render", Rt], ["__file", "/home/runner/work/
|
|
|
504
506
|
min: o,
|
|
505
507
|
default: o + 1
|
|
506
508
|
};
|
|
507
|
-
const
|
|
509
|
+
const i = n.small.max + 1;
|
|
508
510
|
n.medium = {
|
|
509
511
|
max: t,
|
|
510
|
-
min:
|
|
511
|
-
default:
|
|
512
|
+
min: i,
|
|
513
|
+
default: i + 1
|
|
512
514
|
};
|
|
513
|
-
const
|
|
515
|
+
const r = n.medium.max + 1;
|
|
514
516
|
return n.large = {
|
|
515
517
|
max: 2e3,
|
|
516
|
-
min:
|
|
517
|
-
default:
|
|
518
|
+
min: r,
|
|
519
|
+
default: r + 1
|
|
518
520
|
}, n;
|
|
519
|
-
},
|
|
521
|
+
}, Rt = b({
|
|
520
522
|
render() {
|
|
521
523
|
return Se("style", { id: this.id, innerHTML: this.styles });
|
|
522
524
|
},
|
|
523
525
|
name: "inlined-styles",
|
|
524
526
|
props: ["styles", "id"]
|
|
525
|
-
}),
|
|
527
|
+
}), q = /* @__PURE__ */ g(Rt, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/inlined-styles.vue"]]), Tt = b({
|
|
526
528
|
name: "block-styles",
|
|
527
|
-
components: { InlinedStyles:
|
|
529
|
+
components: { InlinedStyles: q },
|
|
528
530
|
props: ["block", "context"],
|
|
529
531
|
data() {
|
|
530
|
-
return { TARGET:
|
|
532
|
+
return { TARGET: x };
|
|
531
533
|
},
|
|
532
534
|
computed: {
|
|
533
535
|
canShowBlock() {
|
|
@@ -539,7 +541,7 @@ const Re = /* @__PURE__ */ y($t, [["render", Rt], ["__file", "/home/runner/work/
|
|
|
539
541
|
context: this.context.context,
|
|
540
542
|
shouldEvaluateBindings: !0
|
|
541
543
|
});
|
|
542
|
-
return
|
|
544
|
+
return T(e.hide) ? !e.hide : T(e.show) ? e.show : !0;
|
|
543
545
|
},
|
|
544
546
|
css() {
|
|
545
547
|
var h;
|
|
@@ -550,44 +552,44 @@ const Re = /* @__PURE__ */ y($t, [["render", Rt], ["__file", "/home/runner/work/
|
|
|
550
552
|
rootSetState: this.context.rootSetState,
|
|
551
553
|
context: this.context.context,
|
|
552
554
|
shouldEvaluateBindings: !0
|
|
553
|
-
}), t = e.responsiveStyles, n = this.context.content, o =
|
|
555
|
+
}), t = e.responsiveStyles, n = this.context.content, o = Te(
|
|
554
556
|
((h = n == null ? void 0 : n.meta) == null ? void 0 : h.breakpoints) || {}
|
|
555
|
-
),
|
|
557
|
+
), i = t == null ? void 0 : t.large, r = t == null ? void 0 : t.medium, s = t == null ? void 0 : t.small, a = e.id;
|
|
556
558
|
if (!a)
|
|
557
559
|
return "";
|
|
558
|
-
const l =
|
|
560
|
+
const l = i ? J({
|
|
559
561
|
className: a,
|
|
560
|
-
styles:
|
|
561
|
-
}) : "", c =
|
|
562
|
+
styles: i
|
|
563
|
+
}) : "", c = r ? J({
|
|
562
564
|
className: a,
|
|
563
|
-
styles:
|
|
565
|
+
styles: r,
|
|
564
566
|
mediaQuery: de(
|
|
565
567
|
"medium",
|
|
566
568
|
o
|
|
567
569
|
)
|
|
568
|
-
}) : "",
|
|
570
|
+
}) : "", p = s ? J({
|
|
569
571
|
className: a,
|
|
570
|
-
styles:
|
|
572
|
+
styles: s,
|
|
571
573
|
mediaQuery: de(
|
|
572
574
|
"small",
|
|
573
575
|
o
|
|
574
576
|
)
|
|
575
577
|
}) : "";
|
|
576
|
-
return [l, c,
|
|
578
|
+
return [l, c, p].join(" ");
|
|
577
579
|
}
|
|
578
580
|
}
|
|
579
581
|
});
|
|
580
|
-
function xt(e, t, n, o,
|
|
581
|
-
const
|
|
582
|
-
return e.TARGET !== "reactNative" && e.css && e.canShowBlock ? (d(),
|
|
582
|
+
function xt(e, t, n, o, i, r) {
|
|
583
|
+
const s = y("inlined-styles");
|
|
584
|
+
return e.TARGET !== "reactNative" && e.css && e.canShowBlock ? (d(), k(s, {
|
|
583
585
|
key: 0,
|
|
584
586
|
styles: e.css
|
|
585
|
-
}, null, 8, ["styles"])) :
|
|
587
|
+
}, null, 8, ["styles"])) : f("v-if", !0);
|
|
586
588
|
}
|
|
587
|
-
const xe = /* @__PURE__ */
|
|
589
|
+
const xe = /* @__PURE__ */ g(Tt, [["render", xt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/block/components/block-styles.vue"]]), Et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
588
590
|
__proto__: null,
|
|
589
591
|
default: xe
|
|
590
|
-
}, Symbol.toStringTag, { value: "Module" })), Pt =
|
|
592
|
+
}, Symbol.toStringTag, { value: "Module" })), Pt = b({
|
|
591
593
|
name: "builder-blocks-wrapper",
|
|
592
594
|
props: ["blocks", "parent", "path", "styleProp"],
|
|
593
595
|
computed: {
|
|
@@ -599,7 +601,7 @@ const xe = /* @__PURE__ */ y(It, [["render", xt], ["__file", "/home/runner/work/
|
|
|
599
601
|
methods: {
|
|
600
602
|
onClick() {
|
|
601
603
|
var e, t;
|
|
602
|
-
|
|
604
|
+
R() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
603
605
|
{
|
|
604
606
|
type: "builder.clickEmptyBlocks",
|
|
605
607
|
data: {
|
|
@@ -612,7 +614,7 @@ const xe = /* @__PURE__ */ y(It, [["render", xt], ["__file", "/home/runner/work/
|
|
|
612
614
|
},
|
|
613
615
|
onMouseEnter() {
|
|
614
616
|
var e, t;
|
|
615
|
-
|
|
617
|
+
R() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
616
618
|
{
|
|
617
619
|
type: "builder.hoverEmptyBlocks",
|
|
618
620
|
data: {
|
|
@@ -634,25 +636,25 @@ const xe = /* @__PURE__ */ y(It, [["render", xt], ["__file", "/home/runner/work/
|
|
|
634
636
|
}
|
|
635
637
|
}
|
|
636
638
|
});
|
|
637
|
-
const
|
|
638
|
-
function
|
|
639
|
-
return d(),
|
|
639
|
+
const At = ["builder-path", "builder-parent-id"];
|
|
640
|
+
function Bt(e, t, n, o, i, r) {
|
|
641
|
+
return d(), u("div", w({
|
|
640
642
|
class: e._classStringToObject(e.className + " div-178o76acnws"),
|
|
641
643
|
"builder-path": e.path,
|
|
642
644
|
"builder-parent-id": e.parent,
|
|
643
645
|
style: e.styleProp,
|
|
644
|
-
onClick: t[0] || (t[0] = (
|
|
645
|
-
onMouseenter: t[1] || (t[1] = (
|
|
646
|
-
onKeypress: t[2] || (t[2] = (
|
|
646
|
+
onClick: t[0] || (t[0] = (s) => e.onClick()),
|
|
647
|
+
onMouseenter: t[1] || (t[1] = (s) => e.onMouseEnter()),
|
|
648
|
+
onKeypress: t[2] || (t[2] = (s) => e.onClick())
|
|
647
649
|
}, {}), [
|
|
648
|
-
|
|
649
|
-
], 16,
|
|
650
|
+
P(e.$slots, "default", {}, void 0, !0)
|
|
651
|
+
], 16, At);
|
|
650
652
|
}
|
|
651
|
-
const
|
|
653
|
+
const Vt = /* @__PURE__ */ g(Pt, [["render", Bt], ["__scopeId", "data-v-1f8aab9f"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/blocks/blocks-wrapper.vue"]]), _t = b({
|
|
652
654
|
name: "builder-blocks",
|
|
653
655
|
components: {
|
|
654
|
-
BlocksWrapper:
|
|
655
|
-
Block:
|
|
656
|
+
BlocksWrapper: Vt,
|
|
657
|
+
Block: $e,
|
|
656
658
|
BlockStyles: xe
|
|
657
659
|
},
|
|
658
660
|
props: [
|
|
@@ -664,37 +666,37 @@ const _t = /* @__PURE__ */ y(Pt, [["render", At], ["__scopeId", "data-v-1f8aab9f
|
|
|
664
666
|
"registeredComponents"
|
|
665
667
|
],
|
|
666
668
|
inject: {
|
|
667
|
-
builderContext:
|
|
669
|
+
builderContext: Z.key,
|
|
668
670
|
componentsContext: we.key
|
|
669
671
|
}
|
|
670
672
|
});
|
|
671
|
-
function Ot(e, t, n, o,
|
|
672
|
-
const
|
|
673
|
-
return d(),
|
|
673
|
+
function Ot(e, t, n, o, i, r) {
|
|
674
|
+
const s = y("block"), a = y("block-styles"), l = y("blocks-wrapper");
|
|
675
|
+
return d(), k(l, {
|
|
674
676
|
blocks: e.blocks,
|
|
675
677
|
parent: e.parent,
|
|
676
678
|
path: e.path,
|
|
677
679
|
styleProp: e.styleProp
|
|
678
680
|
}, {
|
|
679
|
-
default:
|
|
680
|
-
e.blocks ? (d(!0),
|
|
681
|
+
default: ne(() => [
|
|
682
|
+
e.blocks ? (d(!0), u(C, { key: 0 }, A(e.blocks, (c, p) => (d(), k(s, {
|
|
681
683
|
key: "render-block-" + c.id,
|
|
682
684
|
block: c,
|
|
683
685
|
context: e.context || e.builderContext,
|
|
684
686
|
registeredComponents: e.registeredComponents || e.componentsContext.registeredComponents
|
|
685
|
-
}, null, 8, ["block", "context", "registeredComponents"]))), 128)) :
|
|
686
|
-
e.blocks ? (d(!0),
|
|
687
|
+
}, null, 8, ["block", "context", "registeredComponents"]))), 128)) : f("v-if", !0),
|
|
688
|
+
e.blocks ? (d(!0), u(C, { key: 1 }, A(e.blocks, (c, p) => (d(), k(a, {
|
|
687
689
|
key: "block-style-" + c.id,
|
|
688
690
|
block: c,
|
|
689
691
|
context: e.context || e.builderContext
|
|
690
|
-
}, null, 8, ["block", "context"]))), 128)) :
|
|
692
|
+
}, null, 8, ["block", "context"]))), 128)) : f("v-if", !0)
|
|
691
693
|
]),
|
|
692
694
|
_: 1
|
|
693
695
|
}, 8, ["blocks", "parent", "path", "styleProp"]);
|
|
694
696
|
}
|
|
695
|
-
const
|
|
697
|
+
const oe = /* @__PURE__ */ g(_t, [["render", Ot], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/blocks/blocks.vue"]]), jt = b({
|
|
696
698
|
name: "builder-columns",
|
|
697
|
-
components: { InlinedStyles:
|
|
699
|
+
components: { InlinedStyles: q, Blocks: oe },
|
|
698
700
|
props: [
|
|
699
701
|
"js",
|
|
700
702
|
"space",
|
|
@@ -711,7 +713,7 @@ const ne = /* @__PURE__ */ y(Vt, [["render", Ot], ["__file", "/home/runner/work/
|
|
|
711
713
|
cols: this.columns || [],
|
|
712
714
|
stackAt: this.stackColumnsAt || "tablet",
|
|
713
715
|
flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
714
|
-
TARGET:
|
|
716
|
+
TARGET: x
|
|
715
717
|
};
|
|
716
718
|
},
|
|
717
719
|
computed: {
|
|
@@ -774,31 +776,31 @@ const ne = /* @__PURE__ */ y(Vt, [["render", Ot], ["__file", "/home/runner/work/
|
|
|
774
776
|
return this.stackAt === "never" ? t : e;
|
|
775
777
|
},
|
|
776
778
|
columnCssVars(e) {
|
|
777
|
-
const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`,
|
|
779
|
+
const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, i = "100%", r = 0;
|
|
778
780
|
return {
|
|
779
781
|
width: n,
|
|
780
782
|
["margin-left"]: o,
|
|
781
783
|
"--column-width-mobile": this.getMobileStyle({
|
|
782
|
-
stackedStyle:
|
|
784
|
+
stackedStyle: i,
|
|
783
785
|
desktopStyle: n
|
|
784
786
|
}),
|
|
785
787
|
"--column-margin-left-mobile": this.getMobileStyle({
|
|
786
|
-
stackedStyle:
|
|
788
|
+
stackedStyle: r,
|
|
787
789
|
desktopStyle: o
|
|
788
790
|
}),
|
|
789
791
|
"--column-width-tablet": this.getTabletStyle({
|
|
790
|
-
stackedStyle:
|
|
792
|
+
stackedStyle: i,
|
|
791
793
|
desktopStyle: n
|
|
792
794
|
}),
|
|
793
795
|
"--column-margin-left-tablet": this.getTabletStyle({
|
|
794
|
-
stackedStyle:
|
|
796
|
+
stackedStyle: r,
|
|
795
797
|
desktopStyle: o
|
|
796
798
|
})
|
|
797
799
|
};
|
|
798
800
|
},
|
|
799
801
|
getWidthForBreakpointSize(e) {
|
|
800
802
|
var n, o;
|
|
801
|
-
return
|
|
803
|
+
return Te(
|
|
802
804
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
803
805
|
)[e].max;
|
|
804
806
|
},
|
|
@@ -813,24 +815,24 @@ const ne = /* @__PURE__ */ y(Vt, [["render", Ot], ["__file", "/home/runner/work/
|
|
|
813
815
|
}
|
|
814
816
|
}
|
|
815
817
|
});
|
|
816
|
-
function
|
|
817
|
-
const
|
|
818
|
-
return d(),
|
|
818
|
+
function Nt(e, t, n, o, i, r) {
|
|
819
|
+
const s = y("inlined-styles"), a = y("blocks");
|
|
820
|
+
return d(), u("div", w({
|
|
819
821
|
class: e._classStringToObject(
|
|
820
822
|
`builder-columns ${e.builderBlock.id}-breakpoints div-16nol0lwi20`
|
|
821
823
|
),
|
|
822
824
|
style: e.columnsCssVars
|
|
823
825
|
}, {}), [
|
|
824
|
-
e.TARGET !== "reactNative" ? (d(),
|
|
826
|
+
e.TARGET !== "reactNative" ? (d(), k(s, {
|
|
825
827
|
key: 0,
|
|
826
828
|
styles: e.columnsStyles
|
|
827
|
-
}, null, 8, ["styles"])) :
|
|
828
|
-
(d(!0),
|
|
829
|
+
}, null, 8, ["styles"])) : f("v-if", !0),
|
|
830
|
+
(d(!0), u(C, null, A(e.columns, (l, c) => (d(), u("div", w({
|
|
829
831
|
key: c,
|
|
830
832
|
class: "builder-column div-16nol0lwi20-2",
|
|
831
833
|
style: e.columnCssVars(c)
|
|
832
834
|
}, {}), [
|
|
833
|
-
|
|
835
|
+
B(a, {
|
|
834
836
|
path: `component.options.columns.${c}.blocks`,
|
|
835
837
|
parent: e.builderBlock.id,
|
|
836
838
|
styleProp: {
|
|
@@ -843,47 +845,47 @@ function jt(e, t, n, o, r, s) {
|
|
|
843
845
|
], 16))), 128))
|
|
844
846
|
], 16);
|
|
845
847
|
}
|
|
846
|
-
const
|
|
848
|
+
const Ut = /* @__PURE__ */ g(jt, [["render", Nt], ["__scopeId", "data-v-7be099dc"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/columns/columns.vue"]]), Ft = b({
|
|
847
849
|
name: "builder-fragment-component",
|
|
848
850
|
props: []
|
|
849
851
|
});
|
|
850
|
-
function
|
|
851
|
-
return d(),
|
|
852
|
-
|
|
852
|
+
function Wt(e, t, n, o, i, r) {
|
|
853
|
+
return d(), u("span", null, [
|
|
854
|
+
P(e.$slots, "default")
|
|
853
855
|
]);
|
|
854
856
|
}
|
|
855
|
-
const
|
|
857
|
+
const Mt = /* @__PURE__ */ g(Ft, [["render", Wt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/fragment/fragment.vue"]]);
|
|
856
858
|
function ue(e) {
|
|
857
859
|
return e.replace(/http(s)?:/, "");
|
|
858
860
|
}
|
|
859
861
|
function Lt(e = "", t, n) {
|
|
860
|
-
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"),
|
|
861
|
-
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e +
|
|
862
|
+
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), i = e.indexOf("?") !== -1 ? "&" : "?";
|
|
863
|
+
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + i + t + "=" + encodeURIComponent(n);
|
|
862
864
|
}
|
|
863
|
-
function
|
|
865
|
+
function Ht(e, t) {
|
|
864
866
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
865
867
|
return e;
|
|
866
868
|
if (t === "master")
|
|
867
869
|
return ue(e);
|
|
868
870
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
869
871
|
if (n) {
|
|
870
|
-
const o = e.split(n[0]),
|
|
871
|
-
return ue(`${o[0]}_${
|
|
872
|
+
const o = e.split(n[0]), i = n[3], r = t.match("x") ? t : `${t}x`;
|
|
873
|
+
return ue(`${o[0]}_${r}${i}`);
|
|
872
874
|
}
|
|
873
875
|
return null;
|
|
874
876
|
}
|
|
875
|
-
function
|
|
877
|
+
function Y(e) {
|
|
876
878
|
if (!e)
|
|
877
879
|
return e;
|
|
878
880
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
879
881
|
if (e.match(/builder\.io/)) {
|
|
880
882
|
let n = e;
|
|
881
883
|
const o = Number(e.split("?width=")[1]);
|
|
882
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((
|
|
884
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((i) => i !== o).map((i) => `${Lt(e, "width", i)} ${i}w`).concat([n]).join(", ");
|
|
883
885
|
}
|
|
884
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
886
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ht(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
885
887
|
}
|
|
886
|
-
const
|
|
888
|
+
const Kt = b({
|
|
887
889
|
name: "builder-image",
|
|
888
890
|
props: [
|
|
889
891
|
"image",
|
|
@@ -907,10 +909,10 @@ const Ht = g({
|
|
|
907
909
|
return this.srcset;
|
|
908
910
|
if (this.srcset && ((n = this.image) == null ? void 0 : n.includes("builder.io/api/v1/image"))) {
|
|
909
911
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
910
|
-
return console.debug("Removed given srcset"),
|
|
912
|
+
return console.debug("Removed given srcset"), Y(t);
|
|
911
913
|
} else if (this.image && !this.srcset)
|
|
912
|
-
return
|
|
913
|
-
return
|
|
914
|
+
return Y(t);
|
|
915
|
+
return Y(t);
|
|
914
916
|
},
|
|
915
917
|
webpSrcSet() {
|
|
916
918
|
var e;
|
|
@@ -939,24 +941,24 @@ const Ht = g({
|
|
|
939
941
|
}
|
|
940
942
|
}
|
|
941
943
|
});
|
|
942
|
-
const
|
|
944
|
+
const Dt = ["srcset"], zt = ["alt", "role", "src", "srcset", "sizes"], qt = {
|
|
943
945
|
key: 2,
|
|
944
946
|
class: "div-1be3j8m9ewb-2"
|
|
945
947
|
};
|
|
946
|
-
function Gt(e, t, n, o,
|
|
947
|
-
var
|
|
948
|
-
return d(),
|
|
949
|
-
|
|
950
|
-
e.webpSrcSet ? (d(),
|
|
948
|
+
function Gt(e, t, n, o, i, r) {
|
|
949
|
+
var s, a, l, c;
|
|
950
|
+
return d(), u(C, null, [
|
|
951
|
+
Q("picture", null, [
|
|
952
|
+
e.webpSrcSet ? (d(), u("source", {
|
|
951
953
|
key: 0,
|
|
952
954
|
type: "image/webp",
|
|
953
955
|
srcset: e.webpSrcSet
|
|
954
|
-
}, null, 8,
|
|
955
|
-
|
|
956
|
+
}, null, 8, Dt)) : f("v-if", !0),
|
|
957
|
+
Q("img", {
|
|
956
958
|
loading: "lazy",
|
|
957
959
|
alt: e.altText,
|
|
958
960
|
role: e.altText ? "presentation" : void 0,
|
|
959
|
-
style:
|
|
961
|
+
style: X({
|
|
960
962
|
objectPosition: e.backgroundPosition || "center",
|
|
961
963
|
objectFit: e.backgroundSize || "cover",
|
|
962
964
|
...e.aspectRatioCss
|
|
@@ -969,30 +971,30 @@ function Gt(e, t, n, o, r, s) {
|
|
|
969
971
|
src: e.image,
|
|
970
972
|
srcset: e.srcSetToUse,
|
|
971
973
|
sizes: e.sizes
|
|
972
|
-
}, null, 14,
|
|
974
|
+
}, null, 14, zt)
|
|
973
975
|
]),
|
|
974
|
-
e.aspectRatio && !(((a = (
|
|
976
|
+
e.aspectRatio && !(((a = (s = e.builderBlock) == null ? void 0 : s.children) == null ? void 0 : a.length) && e.fitContent) ? (d(), u("div", {
|
|
975
977
|
key: 0,
|
|
976
978
|
class: "builder-image-sizer div-1be3j8m9ewb",
|
|
977
|
-
style:
|
|
979
|
+
style: X({
|
|
978
980
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
979
981
|
})
|
|
980
|
-
}, null, 4)) :
|
|
981
|
-
((c = (l = e.builderBlock) == null ? void 0 : l.children) == null ? void 0 : c.length) && e.fitContent ?
|
|
982
|
-
!e.fitContent && e.$slots.default ? (d(),
|
|
983
|
-
|
|
984
|
-
])) :
|
|
982
|
+
}, null, 4)) : f("v-if", !0),
|
|
983
|
+
((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) : f("v-if", !0),
|
|
984
|
+
!e.fitContent && e.$slots.default ? (d(), u("div", qt, [
|
|
985
|
+
P(e.$slots, "default", {}, void 0, !0)
|
|
986
|
+
])) : f("v-if", !0)
|
|
985
987
|
], 64);
|
|
986
988
|
}
|
|
987
|
-
const Jt = /* @__PURE__ */
|
|
989
|
+
const Jt = /* @__PURE__ */ g(Kt, [["render", Gt], ["__scopeId", "data-v-58ca75d1"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/image/image.vue"]]), Yt = b({
|
|
988
990
|
name: "builder-section-component",
|
|
989
991
|
props: ["attributes", "maxWidth"],
|
|
990
992
|
data() {
|
|
991
|
-
return { filterAttrs:
|
|
993
|
+
return { filterAttrs: z };
|
|
992
994
|
}
|
|
993
995
|
});
|
|
994
|
-
function
|
|
995
|
-
return d(),
|
|
996
|
+
function Qt(e, t, n, o, i, r) {
|
|
997
|
+
return d(), u("section", w({
|
|
996
998
|
style: {
|
|
997
999
|
width: "100%",
|
|
998
1000
|
alignSelf: "stretch",
|
|
@@ -1005,11 +1007,11 @@ function Xt(e, t, n, o, r, s) {
|
|
|
1005
1007
|
marginLeft: "auto",
|
|
1006
1008
|
marginRight: "auto"
|
|
1007
1009
|
}
|
|
1008
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
1009
|
-
|
|
1010
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), N(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
1011
|
+
P(e.$slots, "default")
|
|
1010
1012
|
], 16);
|
|
1011
1013
|
}
|
|
1012
|
-
const
|
|
1014
|
+
const Xt = /* @__PURE__ */ g(Yt, [["render", Qt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/section/section.vue"]]), Zt = (e) => {
|
|
1013
1015
|
if (e === "localhost" || e === "127.0.0.1")
|
|
1014
1016
|
return e;
|
|
1015
1017
|
const t = e.split(".");
|
|
@@ -1022,17 +1024,17 @@ const Qt = /* @__PURE__ */ y(Yt, [["render", Xt], ["__file", "/home/runner/work/
|
|
|
1022
1024
|
try {
|
|
1023
1025
|
return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
1024
1026
|
} catch (o) {
|
|
1025
|
-
|
|
1027
|
+
$.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
1026
1028
|
return;
|
|
1027
1029
|
}
|
|
1028
|
-
}, Pe = async (e) => Ee(e), en = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(
|
|
1030
|
+
}, Pe = async (e) => Ee(e), en = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(T).join("; "), tn = [["secure", ""], ["SameSite", "None"]], nn = ({
|
|
1029
1031
|
name: e,
|
|
1030
1032
|
value: t,
|
|
1031
1033
|
expires: n
|
|
1032
1034
|
}) => {
|
|
1033
|
-
const
|
|
1034
|
-
return en(
|
|
1035
|
-
},
|
|
1035
|
+
const i = (v() ? location.protocol === "https:" : !0) ? tn : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...r, ["path", "/"], ["domain", Zt(window.location.hostname)], ...i];
|
|
1036
|
+
return en(s);
|
|
1037
|
+
}, Ae = async ({
|
|
1036
1038
|
name: e,
|
|
1037
1039
|
value: t,
|
|
1038
1040
|
expires: n,
|
|
@@ -1041,54 +1043,54 @@ const Qt = /* @__PURE__ */ y(Yt, [["render", Xt], ["__file", "/home/runner/work/
|
|
|
1041
1043
|
try {
|
|
1042
1044
|
if (!o)
|
|
1043
1045
|
return;
|
|
1044
|
-
const
|
|
1046
|
+
const i = nn({
|
|
1045
1047
|
name: e,
|
|
1046
1048
|
value: t,
|
|
1047
1049
|
expires: n
|
|
1048
1050
|
});
|
|
1049
|
-
document.cookie =
|
|
1050
|
-
} catch (
|
|
1051
|
-
|
|
1051
|
+
document.cookie = i;
|
|
1052
|
+
} catch (i) {
|
|
1053
|
+
$.warn("[COOKIE] SET error: ", (i == null ? void 0 : i.message) || i);
|
|
1052
1054
|
}
|
|
1053
|
-
}, on = "builder.tests",
|
|
1055
|
+
}, on = "builder.tests", ie = (e) => `${on}.${e}`, rn = ({
|
|
1054
1056
|
contentId: e
|
|
1055
1057
|
}) => Pe({
|
|
1056
|
-
name:
|
|
1058
|
+
name: ie(e),
|
|
1057
1059
|
canTrack: !0
|
|
1058
1060
|
}), sn = ({
|
|
1059
1061
|
contentId: e
|
|
1060
1062
|
}) => Ee({
|
|
1061
|
-
name:
|
|
1063
|
+
name: ie(e),
|
|
1062
1064
|
canTrack: !0
|
|
1063
1065
|
}), an = ({
|
|
1064
1066
|
contentId: e,
|
|
1065
1067
|
value: t
|
|
1066
|
-
}) =>
|
|
1067
|
-
name:
|
|
1068
|
+
}) => Ae({
|
|
1069
|
+
name: ie(e),
|
|
1068
1070
|
value: t,
|
|
1069
1071
|
canTrack: !0
|
|
1070
|
-
}),
|
|
1072
|
+
}), Be = (e) => T(e.id) && T(e.variations) && Object.keys(e.variations).length > 0, ln = ({
|
|
1071
1073
|
id: e,
|
|
1072
1074
|
variations: t
|
|
1073
1075
|
}) => {
|
|
1074
|
-
var
|
|
1076
|
+
var i;
|
|
1075
1077
|
let n = 0;
|
|
1076
1078
|
const o = Math.random();
|
|
1077
|
-
for (const
|
|
1078
|
-
const
|
|
1079
|
-
if (n +=
|
|
1080
|
-
return
|
|
1079
|
+
for (const r in t) {
|
|
1080
|
+
const s = (i = t[r]) == null ? void 0 : i.testRatio;
|
|
1081
|
+
if (n += s, o < n)
|
|
1082
|
+
return r;
|
|
1081
1083
|
}
|
|
1082
1084
|
return e;
|
|
1083
|
-
},
|
|
1085
|
+
}, Ve = (e) => {
|
|
1084
1086
|
const t = ln(e);
|
|
1085
1087
|
return an({
|
|
1086
1088
|
contentId: e.id,
|
|
1087
1089
|
value: t
|
|
1088
1090
|
}).catch((n) => {
|
|
1089
|
-
|
|
1091
|
+
$.error("could not store A/B test variation: ", n);
|
|
1090
1092
|
}), t;
|
|
1091
|
-
},
|
|
1093
|
+
}, _e = ({
|
|
1092
1094
|
item: e,
|
|
1093
1095
|
testGroupId: t
|
|
1094
1096
|
}) => {
|
|
@@ -1109,14 +1111,14 @@ const Qt = /* @__PURE__ */ y(Yt, [["render", Xt], ["__file", "/home/runner/work/
|
|
|
1109
1111
|
return e;
|
|
1110
1112
|
if (!e)
|
|
1111
1113
|
return;
|
|
1112
|
-
if (!
|
|
1114
|
+
if (!Be(e))
|
|
1113
1115
|
return e;
|
|
1114
1116
|
const n = sn({
|
|
1115
1117
|
contentId: e.id
|
|
1116
|
-
}) ||
|
|
1118
|
+
}) || Ve({
|
|
1117
1119
|
variations: e.variations,
|
|
1118
1120
|
id: e.id
|
|
1119
|
-
}), o =
|
|
1121
|
+
}), o = _e({
|
|
1120
1122
|
item: e,
|
|
1121
1123
|
testGroupId: n
|
|
1122
1124
|
});
|
|
@@ -1128,22 +1130,22 @@ const Qt = /* @__PURE__ */ y(Yt, [["render", Xt], ["__file", "/home/runner/work/
|
|
|
1128
1130
|
item: e,
|
|
1129
1131
|
canTrack: t
|
|
1130
1132
|
}) => {
|
|
1131
|
-
if (!t || !
|
|
1133
|
+
if (!t || !Be(e))
|
|
1132
1134
|
return e;
|
|
1133
1135
|
const o = await rn({
|
|
1134
1136
|
contentId: e.id
|
|
1135
|
-
}) ||
|
|
1137
|
+
}) || Ve({
|
|
1136
1138
|
variations: e.variations,
|
|
1137
1139
|
id: e.id
|
|
1138
|
-
}),
|
|
1140
|
+
}), i = _e({
|
|
1139
1141
|
item: e,
|
|
1140
1142
|
testGroupId: o
|
|
1141
1143
|
});
|
|
1142
1144
|
return {
|
|
1143
1145
|
...e,
|
|
1144
|
-
...
|
|
1146
|
+
...i
|
|
1145
1147
|
};
|
|
1146
|
-
}, U = (e) =>
|
|
1148
|
+
}, U = (e) => T(e) ? e : !0, un = {
|
|
1147
1149
|
name: "Core:Button",
|
|
1148
1150
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1149
1151
|
defaultStyles: {
|
|
@@ -1353,7 +1355,7 @@ const Qt = /* @__PURE__ */ y(Yt, [["render", Xt], ["__file", "/home/runner/work/
|
|
|
1353
1355
|
});
|
|
1354
1356
|
}
|
|
1355
1357
|
const n = e.get("columns");
|
|
1356
|
-
Array.isArray(n) && !!n.find((
|
|
1358
|
+
Array.isArray(n) && !!n.find((i) => i.get("width")) && (!!n.find((r) => !r.get("width")) || n.reduce((a, l) => a + l.get("width"), 0) !== 100) && t();
|
|
1357
1359
|
}
|
|
1358
1360
|
}, {
|
|
1359
1361
|
name: "space",
|
|
@@ -1397,7 +1399,7 @@ const Qt = /* @__PURE__ */ y(Yt, [["render", Xt], ["__file", "/home/runner/work/
|
|
|
1397
1399
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
1398
1400
|
advanced: !0
|
|
1399
1401
|
}]
|
|
1400
|
-
}, hn =
|
|
1402
|
+
}, hn = b({
|
|
1401
1403
|
name: "builder-custom-code",
|
|
1402
1404
|
props: ["replaceNodes", "code"],
|
|
1403
1405
|
data() {
|
|
@@ -1414,8 +1416,8 @@ const Qt = /* @__PURE__ */ y(Yt, [["render", Xt], ["__file", "/home/runner/work/
|
|
|
1414
1416
|
if (this.scriptsInserted.includes(o.src))
|
|
1415
1417
|
continue;
|
|
1416
1418
|
this.scriptsInserted.push(o.src);
|
|
1417
|
-
const
|
|
1418
|
-
|
|
1419
|
+
const i = document.createElement("script");
|
|
1420
|
+
i.async = !0, i.src = o.src, document.head.appendChild(i);
|
|
1419
1421
|
} else if (!o.type || [
|
|
1420
1422
|
"text/javascript",
|
|
1421
1423
|
"application/javascript",
|
|
@@ -1425,8 +1427,8 @@ const Qt = /* @__PURE__ */ y(Yt, [["render", Xt], ["__file", "/home/runner/work/
|
|
|
1425
1427
|
continue;
|
|
1426
1428
|
try {
|
|
1427
1429
|
this.scriptsRun.push(o.innerText), new Function(o.innerText)();
|
|
1428
|
-
} catch (
|
|
1429
|
-
console.warn("`CustomCode`: Error running script:",
|
|
1430
|
+
} catch (i) {
|
|
1431
|
+
console.warn("`CustomCode`: Error running script:", i);
|
|
1430
1432
|
}
|
|
1431
1433
|
}
|
|
1432
1434
|
}
|
|
@@ -1443,8 +1445,8 @@ const Qt = /* @__PURE__ */ y(Yt, [["render", Xt], ["__file", "/home/runner/work/
|
|
|
1443
1445
|
}
|
|
1444
1446
|
}
|
|
1445
1447
|
}), fn = ["innerHTML"];
|
|
1446
|
-
function bn(e, t, n, o,
|
|
1447
|
-
return d(),
|
|
1448
|
+
function bn(e, t, n, o, i, r) {
|
|
1449
|
+
return d(), u("div", {
|
|
1448
1450
|
ref: "elementRef",
|
|
1449
1451
|
class: Ce(
|
|
1450
1452
|
e._classStringToObject(
|
|
@@ -1454,7 +1456,7 @@ function bn(e, t, n, o, r, s) {
|
|
|
1454
1456
|
innerHTML: e.code
|
|
1455
1457
|
}, null, 10, fn);
|
|
1456
1458
|
}
|
|
1457
|
-
const gn = /* @__PURE__ */
|
|
1459
|
+
const gn = /* @__PURE__ */ g(hn, [["render", bn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/custom-code/custom-code.vue"]]), yn = {
|
|
1458
1460
|
name: "Embed",
|
|
1459
1461
|
static: !0,
|
|
1460
1462
|
inputs: [{
|
|
@@ -1479,7 +1481,7 @@ const gn = /* @__PURE__ */ y(hn, [["render", bn], ["__file", "/home/runner/work/
|
|
|
1479
1481
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1480
1482
|
hideFromUI: !0
|
|
1481
1483
|
}]
|
|
1482
|
-
}, kn = ["text/javascript", "application/javascript", "application/ecmascript"], vn = (e) => kn.includes(e.type), Sn =
|
|
1484
|
+
}, kn = ["text/javascript", "application/javascript", "application/ecmascript"], vn = (e) => kn.includes(e.type), Sn = b({
|
|
1483
1485
|
name: "builder-embed",
|
|
1484
1486
|
props: ["content"],
|
|
1485
1487
|
data() {
|
|
@@ -1522,20 +1524,20 @@ const gn = /* @__PURE__ */ y(hn, [["render", bn], ["__file", "/home/runner/work/
|
|
|
1522
1524
|
}
|
|
1523
1525
|
}
|
|
1524
1526
|
}), Cn = ["innerHTML"];
|
|
1525
|
-
function wn(e, t, n, o,
|
|
1526
|
-
return d(),
|
|
1527
|
+
function wn(e, t, n, o, i, r) {
|
|
1528
|
+
return d(), u("div", {
|
|
1527
1529
|
class: "builder-embed",
|
|
1528
1530
|
ref: "elem",
|
|
1529
1531
|
innerHTML: e.content
|
|
1530
1532
|
}, null, 8, Cn);
|
|
1531
1533
|
}
|
|
1532
|
-
const
|
|
1534
|
+
const In = /* @__PURE__ */ g(Sn, [["render", wn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/embed/embed.vue"]]), $n = {
|
|
1533
1535
|
name: "Fragment",
|
|
1534
1536
|
static: !0,
|
|
1535
1537
|
hidden: !0,
|
|
1536
1538
|
canHaveChildren: !0,
|
|
1537
1539
|
noWrap: !0
|
|
1538
|
-
},
|
|
1540
|
+
}, Rn = {
|
|
1539
1541
|
name: "Image",
|
|
1540
1542
|
static: !0,
|
|
1541
1543
|
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",
|
|
@@ -1555,29 +1557,29 @@ const $n = /* @__PURE__ */ y(Sn, [["render", wn], ["__file", "/home/runner/work/
|
|
|
1555
1557
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1556
1558
|
onChange: (e) => {
|
|
1557
1559
|
e.delete("srcset"), e.delete("noWebp");
|
|
1558
|
-
function n(
|
|
1560
|
+
function n(s, a = 6e4) {
|
|
1559
1561
|
return new Promise((l, c) => {
|
|
1560
|
-
const
|
|
1562
|
+
const p = document.createElement("img");
|
|
1561
1563
|
let h = !1;
|
|
1562
|
-
|
|
1563
|
-
h = !0, l(
|
|
1564
|
-
},
|
|
1564
|
+
p.onload = () => {
|
|
1565
|
+
h = !0, l(p);
|
|
1566
|
+
}, p.addEventListener("error", (m) => {
|
|
1565
1567
|
console.warn("Image load failed", m.error), c(m.error);
|
|
1566
|
-
}),
|
|
1568
|
+
}), p.src = s, setTimeout(() => {
|
|
1567
1569
|
h || c(new Error("Image load timed out"));
|
|
1568
1570
|
}, a);
|
|
1569
1571
|
});
|
|
1570
1572
|
}
|
|
1571
|
-
function o(
|
|
1572
|
-
return Math.round(
|
|
1573
|
+
function o(s) {
|
|
1574
|
+
return Math.round(s * 1e3) / 1e3;
|
|
1573
1575
|
}
|
|
1574
|
-
const
|
|
1575
|
-
if (fetch(
|
|
1576
|
-
|
|
1577
|
-
}),
|
|
1578
|
-
return n(
|
|
1576
|
+
const i = e.get("image"), r = e.get("aspectRatio");
|
|
1577
|
+
if (fetch(i).then((s) => s.blob()).then((s) => {
|
|
1578
|
+
s.type.includes("svg") && e.set("noWebp", !0);
|
|
1579
|
+
}), i && (!r || r === 0.7041))
|
|
1580
|
+
return n(i).then((s) => {
|
|
1579
1581
|
const a = e.get("aspectRatio");
|
|
1580
|
-
e.get("image") ===
|
|
1582
|
+
e.get("image") === i && (!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));
|
|
1581
1583
|
});
|
|
1582
1584
|
}
|
|
1583
1585
|
}, {
|
|
@@ -1635,7 +1637,7 @@ const $n = /* @__PURE__ */ y(Sn, [["render", wn], ["__file", "/home/runner/work/
|
|
|
1635
1637
|
advanced: !0,
|
|
1636
1638
|
defaultValue: 0.7041
|
|
1637
1639
|
}]
|
|
1638
|
-
},
|
|
1640
|
+
}, Tn = {
|
|
1639
1641
|
name: "Raw:Img",
|
|
1640
1642
|
hideFromInsertMenu: !0,
|
|
1641
1643
|
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",
|
|
@@ -1648,7 +1650,7 @@ const $n = /* @__PURE__ */ y(Sn, [["render", wn], ["__file", "/home/runner/work/
|
|
|
1648
1650
|
}],
|
|
1649
1651
|
noWrap: !0,
|
|
1650
1652
|
static: !0
|
|
1651
|
-
}, xn =
|
|
1653
|
+
}, xn = b({
|
|
1652
1654
|
name: "builder-img-component",
|
|
1653
1655
|
props: [
|
|
1654
1656
|
"backgroundSize",
|
|
@@ -1659,11 +1661,11 @@ const $n = /* @__PURE__ */ y(Sn, [["render", wn], ["__file", "/home/runner/work/
|
|
|
1659
1661
|
"attributes"
|
|
1660
1662
|
],
|
|
1661
1663
|
data() {
|
|
1662
|
-
return { isEditing:
|
|
1664
|
+
return { isEditing: R, filterAttrs: z };
|
|
1663
1665
|
}
|
|
1664
1666
|
}), En = ["alt", "src"];
|
|
1665
|
-
function Pn(e, t, n, o,
|
|
1666
|
-
return d(),
|
|
1667
|
+
function Pn(e, t, n, o, i, r) {
|
|
1668
|
+
return d(), u("img", w({
|
|
1667
1669
|
style: {
|
|
1668
1670
|
objectFit: e.backgroundSize || "cover",
|
|
1669
1671
|
objectPosition: e.backgroundPosition || "center"
|
|
@@ -1671,9 +1673,9 @@ function Pn(e, t, n, o, r, s) {
|
|
|
1671
1673
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
1672
1674
|
alt: e.altText,
|
|
1673
1675
|
src: e.imgSrc || e.image
|
|
1674
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
1676
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), N(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, En);
|
|
1675
1677
|
}
|
|
1676
|
-
const
|
|
1678
|
+
const An = /* @__PURE__ */ g(xn, [["render", Pn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/img/img.vue"]]), Bn = {
|
|
1677
1679
|
name: "Core:Section",
|
|
1678
1680
|
static: !0,
|
|
1679
1681
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1712,7 +1714,7 @@ const Bn = /* @__PURE__ */ y(xn, [["render", Pn], ["__file", "/home/runner/work/
|
|
|
1712
1714
|
}
|
|
1713
1715
|
}
|
|
1714
1716
|
}]
|
|
1715
|
-
},
|
|
1717
|
+
}, Vn = {
|
|
1716
1718
|
name: "Symbol",
|
|
1717
1719
|
noWrap: !0,
|
|
1718
1720
|
static: !0,
|
|
@@ -1745,7 +1747,7 @@ const Bn = /* @__PURE__ */ y(xn, [["render", Pn], ["__file", "/home/runner/work/
|
|
|
1745
1747
|
hideFromUI: !0,
|
|
1746
1748
|
type: "boolean"
|
|
1747
1749
|
}]
|
|
1748
|
-
},
|
|
1750
|
+
}, _n = {
|
|
1749
1751
|
name: "Text",
|
|
1750
1752
|
static: !0,
|
|
1751
1753
|
isRSC: !0,
|
|
@@ -1763,21 +1765,21 @@ const Bn = /* @__PURE__ */ y(xn, [["render", Pn], ["__file", "/home/runner/work/
|
|
|
1763
1765
|
height: "auto",
|
|
1764
1766
|
textAlign: "center"
|
|
1765
1767
|
}
|
|
1766
|
-
}, On =
|
|
1768
|
+
}, On = b({
|
|
1767
1769
|
name: "builder-text",
|
|
1768
1770
|
props: ["text"]
|
|
1769
|
-
}),
|
|
1770
|
-
function
|
|
1771
|
-
var
|
|
1772
|
-
return d(),
|
|
1771
|
+
}), jn = ["innerHTML"];
|
|
1772
|
+
function Nn(e, t, n, o, i, r) {
|
|
1773
|
+
var s;
|
|
1774
|
+
return d(), u("div", {
|
|
1773
1775
|
class: "builder-text",
|
|
1774
|
-
innerHTML: ((
|
|
1776
|
+
innerHTML: ((s = e.text) == null ? void 0 : s.toString()) || "",
|
|
1775
1777
|
style: {
|
|
1776
1778
|
outline: "none"
|
|
1777
1779
|
}
|
|
1778
|
-
}, null, 8,
|
|
1780
|
+
}, null, 8, jn);
|
|
1779
1781
|
}
|
|
1780
|
-
const
|
|
1782
|
+
const Un = /* @__PURE__ */ g(On, [["render", Nn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/text/text.vue"]]), Fn = {
|
|
1781
1783
|
name: "Video",
|
|
1782
1784
|
canHaveChildren: !0,
|
|
1783
1785
|
defaultStyles: {
|
|
@@ -1858,7 +1860,7 @@ const Fn = /* @__PURE__ */ y(On, [["render", jn], ["__file", "/home/runner/work/
|
|
|
1858
1860
|
defaultValue: !0,
|
|
1859
1861
|
advanced: !0
|
|
1860
1862
|
}]
|
|
1861
|
-
},
|
|
1863
|
+
}, Wn = b({
|
|
1862
1864
|
name: "builder-video",
|
|
1863
1865
|
props: [
|
|
1864
1866
|
"autoPlay",
|
|
@@ -1866,12 +1868,16 @@ const Fn = /* @__PURE__ */ y(On, [["render", jn], ["__file", "/home/runner/work/
|
|
|
1866
1868
|
"controls",
|
|
1867
1869
|
"loop",
|
|
1868
1870
|
"playsInline",
|
|
1869
|
-
"attributes",
|
|
1870
1871
|
"preload",
|
|
1872
|
+
"attributes",
|
|
1871
1873
|
"fit",
|
|
1872
1874
|
"position",
|
|
1875
|
+
"aspectRatio",
|
|
1873
1876
|
"video",
|
|
1874
|
-
"posterImage"
|
|
1877
|
+
"posterImage",
|
|
1878
|
+
"lazyLoad",
|
|
1879
|
+
"fitContent",
|
|
1880
|
+
"builderBlock"
|
|
1875
1881
|
],
|
|
1876
1882
|
computed: {
|
|
1877
1883
|
videoProps() {
|
|
@@ -1895,392 +1901,458 @@ const Fn = /* @__PURE__ */ y(On, [["render", jn], ["__file", "/home/runner/work/
|
|
|
1895
1901
|
},
|
|
1896
1902
|
spreadProps() {
|
|
1897
1903
|
return {
|
|
1898
|
-
...this.attributes,
|
|
1899
1904
|
...this.videoProps
|
|
1900
1905
|
};
|
|
1901
1906
|
}
|
|
1902
1907
|
}
|
|
1903
|
-
}),
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1908
|
+
}), Mn = { style: {
|
|
1909
|
+
position: "relative"
|
|
1910
|
+
} }, Ln = ["preload", "src", "poster"], Hn = ["src"], Kn = {
|
|
1911
|
+
key: 1,
|
|
1912
|
+
style: {
|
|
1913
|
+
display: "flex",
|
|
1914
|
+
flexDirection: "column",
|
|
1915
|
+
alignItems: "stretch"
|
|
1916
|
+
}
|
|
1917
|
+
}, Dn = {
|
|
1918
|
+
key: 2,
|
|
1919
|
+
style: {
|
|
1920
|
+
pointerEvents: "none",
|
|
1921
|
+
display: "flex",
|
|
1922
|
+
flexDirection: "column",
|
|
1923
|
+
alignItems: "stretch",
|
|
1924
|
+
position: "absolute",
|
|
1925
|
+
top: "0",
|
|
1926
|
+
left: "0",
|
|
1927
|
+
width: "100%",
|
|
1928
|
+
height: "100%"
|
|
1929
|
+
}
|
|
1930
|
+
};
|
|
1931
|
+
function zn(e, t, n, o, i, r) {
|
|
1932
|
+
var s, a, l, c, p, h, m;
|
|
1933
|
+
return d(), u("div", Mn, [
|
|
1934
|
+
Q("video", w({
|
|
1935
|
+
class: "builder-video",
|
|
1936
|
+
preload: e.preload || "metadata",
|
|
1937
|
+
style: {
|
|
1938
|
+
width: "100%",
|
|
1939
|
+
height: "100%",
|
|
1940
|
+
...(s = e.attributes) == null ? void 0 : s.style,
|
|
1941
|
+
objectFit: e.fit,
|
|
1942
|
+
objectPosition: e.position,
|
|
1943
|
+
zIndex: 2,
|
|
1944
|
+
borderRadius: "1px",
|
|
1945
|
+
...e.aspectRatio ? {
|
|
1946
|
+
position: "absolute"
|
|
1947
|
+
} : null
|
|
1948
|
+
},
|
|
1949
|
+
src: e.video || "no-src",
|
|
1950
|
+
poster: e.posterImage
|
|
1951
|
+
}, e.spreadProps), [
|
|
1952
|
+
e.lazyLoad ? f("v-if", !0) : (d(), u("source", {
|
|
1953
|
+
key: 0,
|
|
1954
|
+
type: "video/mp4",
|
|
1955
|
+
src: e.video
|
|
1956
|
+
}, null, 8, Hn))
|
|
1957
|
+
], 16, Ln),
|
|
1958
|
+
e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) == null ? void 0 : l.length)) ? (d(), u("div", {
|
|
1959
|
+
key: 0,
|
|
1960
|
+
style: X({
|
|
1961
|
+
width: "100%",
|
|
1962
|
+
paddingTop: e.aspectRatio * 100 + "%",
|
|
1963
|
+
pointerEvents: "none",
|
|
1964
|
+
fontSize: "0px"
|
|
1965
|
+
})
|
|
1966
|
+
}, null, 4)) : f("v-if", !0),
|
|
1967
|
+
((p = (c = e.builderBlock) == null ? void 0 : c.children) == null ? void 0 : p.length) && e.fitContent ? (d(), u("div", Kn, [
|
|
1968
|
+
P(e.$slots, "default")
|
|
1969
|
+
])) : f("v-if", !0),
|
|
1970
|
+
((m = (h = e.builderBlock) == null ? void 0 : h.children) == null ? void 0 : m.length) && !e.fitContent ? (d(), u("div", Dn, [
|
|
1971
|
+
P(e.$slots, "default")
|
|
1972
|
+
])) : f("v-if", !0)
|
|
1973
|
+
]);
|
|
1919
1974
|
}
|
|
1920
|
-
const
|
|
1975
|
+
const qn = /* @__PURE__ */ g(Wn, [["render", zn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/video/video.vue"]]), pe = () => [{
|
|
1921
1976
|
component: Ze,
|
|
1922
1977
|
...un
|
|
1923
1978
|
}, {
|
|
1924
|
-
component:
|
|
1979
|
+
component: Ut,
|
|
1925
1980
|
...pn
|
|
1926
1981
|
}, {
|
|
1927
1982
|
component: gn,
|
|
1928
1983
|
...mn
|
|
1929
1984
|
}, {
|
|
1930
|
-
component:
|
|
1985
|
+
component: In,
|
|
1931
1986
|
...yn
|
|
1932
1987
|
}, {
|
|
1933
|
-
component:
|
|
1934
|
-
|
|
1988
|
+
component: Mt,
|
|
1989
|
+
...$n
|
|
1935
1990
|
}, {
|
|
1936
1991
|
component: Jt,
|
|
1992
|
+
...Rn
|
|
1993
|
+
}, {
|
|
1994
|
+
component: An,
|
|
1937
1995
|
...Tn
|
|
1938
1996
|
}, {
|
|
1939
|
-
component:
|
|
1940
|
-
...
|
|
1997
|
+
component: Xt,
|
|
1998
|
+
...Bn
|
|
1941
1999
|
}, {
|
|
1942
|
-
component:
|
|
1943
|
-
...
|
|
2000
|
+
component: ti,
|
|
2001
|
+
...Vn
|
|
1944
2002
|
}, {
|
|
1945
|
-
component:
|
|
2003
|
+
component: Un,
|
|
1946
2004
|
..._n
|
|
1947
2005
|
}, {
|
|
1948
|
-
component:
|
|
1949
|
-
...
|
|
1950
|
-
}, {
|
|
1951
|
-
component: Kn,
|
|
1952
|
-
...Un
|
|
1953
|
-
}], me = [], Hn = (e) => ({
|
|
2006
|
+
component: qn,
|
|
2007
|
+
...Fn
|
|
2008
|
+
}], me = [], Gn = (e) => ({
|
|
1954
2009
|
type: "builder.registerComponent",
|
|
1955
|
-
data:
|
|
1956
|
-
}),
|
|
2010
|
+
data: ee(e)
|
|
2011
|
+
}), Jn = (e) => {
|
|
1957
2012
|
const t = e.toString().trim();
|
|
1958
2013
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
1959
|
-
},
|
|
2014
|
+
}, Yn = (e) => typeof e == "function" ? Jn(e) : F(e), ee = ({
|
|
1960
2015
|
inputs: e,
|
|
1961
2016
|
...t
|
|
1962
2017
|
}) => ({
|
|
1963
|
-
...
|
|
1964
|
-
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [
|
|
2018
|
+
...F(t),
|
|
2019
|
+
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [i, r]) => ({
|
|
1965
2020
|
...o,
|
|
1966
|
-
[
|
|
2021
|
+
[i]: Yn(r)
|
|
1967
2022
|
}), {}))
|
|
1968
|
-
}),
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
function Gn(e, t, n) {
|
|
1977
|
-
var i;
|
|
1978
|
-
function o() {
|
|
1979
|
-
function a(C, $, R) {
|
|
1980
|
-
let E = "";
|
|
1981
|
-
if (R) {
|
|
1982
|
-
const b = new Date();
|
|
1983
|
-
b.setTime(b.getTime() + R * 24 * 60 * 60 * 1e3), E = "; expires=" + b.toUTCString();
|
|
2023
|
+
}), Qn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
2024
|
+
function getAndSetVariantId() {
|
|
2025
|
+
function setCookie(name, value, days) {
|
|
2026
|
+
let expires = '';
|
|
2027
|
+
if (days) {
|
|
2028
|
+
const date = new Date();
|
|
2029
|
+
date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);
|
|
2030
|
+
expires = '; expires=' + date.toUTCString();
|
|
1984
2031
|
}
|
|
1985
|
-
document.cookie =
|
|
2032
|
+
document.cookie = name + '=' + (value || '') + expires + '; path=/' + '; Secure; SameSite=None';
|
|
1986
2033
|
}
|
|
1987
|
-
function
|
|
1988
|
-
const
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
if (
|
|
1994
|
-
return b.substring($.length, b.length);
|
|
2034
|
+
function getCookie(name) {
|
|
2035
|
+
const nameEQ = name + '=';
|
|
2036
|
+
const ca = document.cookie.split(';');
|
|
2037
|
+
for (let i = 0; i < ca.length; i++) {
|
|
2038
|
+
let c = ca[i];
|
|
2039
|
+
while (c.charAt(0) === ' ') c = c.substring(1, c.length);
|
|
2040
|
+
if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);
|
|
1995
2041
|
}
|
|
1996
2042
|
return null;
|
|
1997
2043
|
}
|
|
1998
|
-
const
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2044
|
+
const cookieName = \`builder.tests.\${contentId}\`;
|
|
2045
|
+
const variantInCookie = getCookie(cookieName);
|
|
2046
|
+
const availableIDs = variants.map(vr => vr.id).concat(contentId);
|
|
2047
|
+
if (variantInCookie && availableIDs.includes(variantInCookie)) {
|
|
2048
|
+
return variantInCookie;
|
|
2049
|
+
}
|
|
2050
|
+
let n = 0;
|
|
2051
|
+
const random = Math.random();
|
|
2052
|
+
for (let i = 0; i < variants.length; i++) {
|
|
2053
|
+
const variant = variants[i];
|
|
2054
|
+
const testRatio = variant.testRatio;
|
|
2055
|
+
n += testRatio;
|
|
2056
|
+
if (random < n) {
|
|
2057
|
+
setCookie(cookieName, variant.id);
|
|
2058
|
+
return variant.id;
|
|
2059
|
+
}
|
|
2007
2060
|
}
|
|
2008
|
-
|
|
2061
|
+
setCookie(cookieName, contentId);
|
|
2062
|
+
return contentId;
|
|
2009
2063
|
}
|
|
2010
|
-
const
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2064
|
+
const winningVariantId = getAndSetVariantId();
|
|
2065
|
+
const styleEl = document.currentScript?.previousElementSibling;
|
|
2066
|
+
if (isHydrationTarget) {
|
|
2067
|
+
styleEl.remove();
|
|
2068
|
+
const thisScriptEl = document.currentScript;
|
|
2069
|
+
thisScriptEl?.remove();
|
|
2015
2070
|
} else {
|
|
2016
|
-
const
|
|
2017
|
-
id:
|
|
2018
|
-
}).filter(
|
|
2019
|
-
|
|
2020
|
-
|
|
2071
|
+
const newStyleStr = variants.concat({
|
|
2072
|
+
id: contentId
|
|
2073
|
+
}).filter(variant => variant.id !== winningVariantId).map(value => {
|
|
2074
|
+
return \`.variant-\${value.id} { display: none; }
|
|
2075
|
+
\`;
|
|
2076
|
+
}).join('');
|
|
2077
|
+
styleEl.innerHTML = newStyleStr;
|
|
2021
2078
|
}
|
|
2022
|
-
}
|
|
2023
|
-
|
|
2024
|
-
var l;
|
|
2025
|
-
if (!navigator.cookieEnabled)
|
|
2079
|
+
}`, Xn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
2080
|
+
if (!navigator.cookieEnabled) {
|
|
2026
2081
|
return;
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2082
|
+
}
|
|
2083
|
+
function getCookie(name) {
|
|
2084
|
+
const nameEQ = name + '=';
|
|
2085
|
+
const ca = document.cookie.split(';');
|
|
2086
|
+
for (let i = 0; i < ca.length; i++) {
|
|
2087
|
+
let c = ca[i];
|
|
2088
|
+
while (c.charAt(0) === ' ') c = c.substring(1, c.length);
|
|
2089
|
+
if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);
|
|
2035
2090
|
}
|
|
2036
2091
|
return null;
|
|
2037
2092
|
}
|
|
2038
|
-
const
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2093
|
+
const cookieName = \`builder.tests.\${defaultContentId}\`;
|
|
2094
|
+
const winningVariant = getCookie(cookieName);
|
|
2095
|
+
const parentDiv = document.currentScript?.parentElement;
|
|
2096
|
+
const isDefaultContent = variantContentId === defaultContentId;
|
|
2097
|
+
const isWinningVariant = winningVariant === variantContentId;
|
|
2098
|
+
if (isWinningVariant && !isDefaultContent) {
|
|
2099
|
+
parentDiv?.removeAttribute('hidden');
|
|
2100
|
+
parentDiv?.removeAttribute('aria-hidden');
|
|
2101
|
+
} else if (!isWinningVariant && isDefaultContent) {
|
|
2102
|
+
parentDiv?.setAttribute('hidden', 'true');
|
|
2103
|
+
parentDiv?.setAttribute('aria-hidden', 'true');
|
|
2046
2104
|
}
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2105
|
+
if (isHydrationTarget) {
|
|
2106
|
+
if (!isWinningVariant) {
|
|
2107
|
+
parentDiv?.remove();
|
|
2108
|
+
}
|
|
2109
|
+
const thisScriptEl = document.currentScript;
|
|
2110
|
+
thisScriptEl?.remove();
|
|
2111
|
+
}
|
|
2112
|
+
return;
|
|
2113
|
+
}`, Oe = "builderIoAbTest", je = "builderIoRenderContent", L = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
2114
|
+
...t,
|
|
2115
|
+
testVariationId: t.id,
|
|
2116
|
+
id: e == null ? void 0 : e.id
|
|
2117
|
+
})), Zn = ({
|
|
2118
|
+
canTrack: e,
|
|
2119
|
+
content: t
|
|
2120
|
+
}) => !(!(L(t).length > 0) || !e), eo = (e) => e === "react" || e === "reactNative", Ne = eo(x), to = () => `
|
|
2121
|
+
window.${Oe} = ${Qn}
|
|
2122
|
+
window.${je} = ${Xn}
|
|
2123
|
+
`, no = (e, t) => `
|
|
2124
|
+
window.${Oe}(
|
|
2125
|
+
"${t}",${JSON.stringify(e)}, ${Ne}
|
|
2126
|
+
)`, oo = ({
|
|
2056
2127
|
contentId: e,
|
|
2057
2128
|
variationId: t
|
|
2058
|
-
}) => `
|
|
2059
|
-
|
|
2129
|
+
}) => `window.${je}(
|
|
2130
|
+
"${t}", "${e}", ${Ne}
|
|
2131
|
+
)`, io = b({
|
|
2060
2132
|
render() {
|
|
2061
2133
|
return Se("script", { id: this.id, innerHTML: this.scriptStr });
|
|
2062
2134
|
},
|
|
2063
2135
|
name: "inlined-script",
|
|
2064
2136
|
props: ["scriptStr", "id"]
|
|
2065
|
-
}),
|
|
2066
|
-
function
|
|
2137
|
+
}), Ue = /* @__PURE__ */ g(io, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/inlined-script.vue"]]);
|
|
2138
|
+
function ro() {
|
|
2067
2139
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
2068
2140
|
}
|
|
2069
|
-
function
|
|
2070
|
-
const e =
|
|
2141
|
+
function so() {
|
|
2142
|
+
const e = ro().fetch;
|
|
2071
2143
|
if (typeof e > "u")
|
|
2072
2144
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
2073
2145
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
2074
2146
|
return e;
|
|
2075
2147
|
}
|
|
2076
|
-
const
|
|
2148
|
+
const Fe = so();
|
|
2077
2149
|
function H(e, t = null, n = ".") {
|
|
2078
|
-
return Object.keys(e).reduce((o,
|
|
2079
|
-
const
|
|
2080
|
-
return [typeof
|
|
2150
|
+
return Object.keys(e).reduce((o, i) => {
|
|
2151
|
+
const r = e[i], s = [t, i].filter(Boolean).join(n);
|
|
2152
|
+
return [typeof r == "object", r !== null, !(Array.isArray(r) && r.length === 0)].every(Boolean) ? {
|
|
2081
2153
|
...o,
|
|
2082
|
-
...H(
|
|
2154
|
+
...H(r, s, n)
|
|
2083
2155
|
} : {
|
|
2084
2156
|
...o,
|
|
2085
|
-
[
|
|
2157
|
+
[s]: r
|
|
2086
2158
|
};
|
|
2087
2159
|
}, {});
|
|
2088
2160
|
}
|
|
2089
|
-
const
|
|
2161
|
+
const ao = "v3", he = "builder.", lo = "options.", co = (e) => {
|
|
2090
2162
|
const t = {};
|
|
2091
2163
|
return e.forEach((n, o) => {
|
|
2092
2164
|
t[o] = n;
|
|
2093
2165
|
}), t;
|
|
2094
|
-
},
|
|
2166
|
+
}, We = (e) => {
|
|
2095
2167
|
if (!e)
|
|
2096
2168
|
return {};
|
|
2097
|
-
const t =
|
|
2169
|
+
const t = Me(e), n = {};
|
|
2098
2170
|
return Object.keys(t).forEach((o) => {
|
|
2099
2171
|
if (o.startsWith(he)) {
|
|
2100
|
-
const
|
|
2101
|
-
n[
|
|
2172
|
+
const i = o.replace(he, "").replace(lo, "");
|
|
2173
|
+
n[i] = t[o];
|
|
2102
2174
|
}
|
|
2103
2175
|
}), n;
|
|
2104
|
-
},
|
|
2105
|
-
if (!
|
|
2176
|
+
}, uo = () => {
|
|
2177
|
+
if (!v())
|
|
2106
2178
|
return {};
|
|
2107
2179
|
const e = new URLSearchParams(window.location.search);
|
|
2108
|
-
return
|
|
2109
|
-
},
|
|
2180
|
+
return We(e);
|
|
2181
|
+
}, Me = (e) => e instanceof URLSearchParams ? co(e) : e, fe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, re = (e) => {
|
|
2110
2182
|
let {
|
|
2111
2183
|
noTraverse: t = !1
|
|
2112
2184
|
} = e;
|
|
2113
2185
|
const {
|
|
2114
2186
|
limit: n = 30,
|
|
2115
2187
|
userAttributes: o,
|
|
2116
|
-
query:
|
|
2117
|
-
model:
|
|
2118
|
-
apiKey:
|
|
2188
|
+
query: i,
|
|
2189
|
+
model: r,
|
|
2190
|
+
apiKey: s,
|
|
2119
2191
|
includeRefs: a = !0,
|
|
2120
2192
|
enrich: l,
|
|
2121
2193
|
locale: c,
|
|
2122
|
-
apiVersion:
|
|
2194
|
+
apiVersion: p = ao,
|
|
2123
2195
|
fields: h,
|
|
2124
2196
|
omit: m,
|
|
2125
|
-
offset:
|
|
2126
|
-
cacheSeconds:
|
|
2127
|
-
staleCacheSeconds:
|
|
2128
|
-
sort:
|
|
2129
|
-
includeUnpublished:
|
|
2197
|
+
offset: S,
|
|
2198
|
+
cacheSeconds: V,
|
|
2199
|
+
staleCacheSeconds: _,
|
|
2200
|
+
sort: O,
|
|
2201
|
+
includeUnpublished: se
|
|
2130
2202
|
} = e;
|
|
2131
|
-
if (!
|
|
2203
|
+
if (!s)
|
|
2132
2204
|
throw new Error("Missing API key");
|
|
2133
|
-
if (!["v2", "v3"].includes(
|
|
2134
|
-
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${
|
|
2205
|
+
if (!["v2", "v3"].includes(p))
|
|
2206
|
+
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${p}'`);
|
|
2135
2207
|
(e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
|
|
2136
|
-
const
|
|
2137
|
-
if (
|
|
2138
|
-
const
|
|
2139
|
-
sort:
|
|
2208
|
+
const I = new URL(`https://cdn.builder.io/api/${p}/content/${r}?apiKey=${s}&limit=${n}&noTraverse=${t}&includeRefs=${a}${c ? `&locale=${c}` : ""}${l ? `&enrich=${l}` : ""}`);
|
|
2209
|
+
if (I.searchParams.set("omit", m || "meta.componentsUsed"), h && I.searchParams.set("fields", h), Number.isFinite(S) && S > -1 && I.searchParams.set("offset", String(Math.floor(S))), typeof se == "boolean" && I.searchParams.set("includeUnpublished", String(se)), V && fe(V) && I.searchParams.set("cacheSeconds", String(V)), _ && fe(_) && I.searchParams.set("staleCacheSeconds", String(_)), O) {
|
|
2210
|
+
const E = H({
|
|
2211
|
+
sort: O
|
|
2140
2212
|
});
|
|
2141
|
-
for (const j in
|
|
2142
|
-
|
|
2213
|
+
for (const j in E)
|
|
2214
|
+
I.searchParams.set(j, JSON.stringify(E[j]));
|
|
2143
2215
|
}
|
|
2144
2216
|
const Ge = {
|
|
2145
|
-
...
|
|
2146
|
-
...
|
|
2147
|
-
},
|
|
2148
|
-
for (const
|
|
2149
|
-
|
|
2150
|
-
if (o &&
|
|
2151
|
-
const
|
|
2152
|
-
query:
|
|
2217
|
+
...uo(),
|
|
2218
|
+
...Me(e.options || {})
|
|
2219
|
+
}, ae = H(Ge);
|
|
2220
|
+
for (const E in ae)
|
|
2221
|
+
I.searchParams.set(E, String(ae[E]));
|
|
2222
|
+
if (o && I.searchParams.set("userAttributes", JSON.stringify(o)), i) {
|
|
2223
|
+
const E = H({
|
|
2224
|
+
query: i
|
|
2153
2225
|
});
|
|
2154
|
-
for (const j in
|
|
2155
|
-
|
|
2226
|
+
for (const j in E)
|
|
2227
|
+
I.searchParams.set(j, JSON.stringify(E[j]));
|
|
2156
2228
|
}
|
|
2157
|
-
return
|
|
2158
|
-
},
|
|
2159
|
-
async function
|
|
2229
|
+
return I;
|
|
2230
|
+
}, po = (e) => "results" in e;
|
|
2231
|
+
async function G(e) {
|
|
2160
2232
|
const t = await Le({
|
|
2161
2233
|
...e,
|
|
2162
2234
|
limit: 1
|
|
2163
2235
|
});
|
|
2164
2236
|
return t && t.results[0] || null;
|
|
2165
2237
|
}
|
|
2166
|
-
const
|
|
2238
|
+
const ii = G, mo = async (e) => {
|
|
2167
2239
|
const t = re(e);
|
|
2168
|
-
return await (await
|
|
2169
|
-
},
|
|
2240
|
+
return await (await Fe(t.href)).json();
|
|
2241
|
+
}, ho = async (e, t, n = re(e)) => {
|
|
2170
2242
|
const o = U(e.canTrack);
|
|
2171
|
-
if (n.search.includes("preview="), !o || !(
|
|
2243
|
+
if (n.search.includes("preview="), !o || !(v() || x === "reactNative"))
|
|
2172
2244
|
return t;
|
|
2173
2245
|
try {
|
|
2174
|
-
const
|
|
2175
|
-
for (const
|
|
2176
|
-
|
|
2177
|
-
item:
|
|
2246
|
+
const i = [];
|
|
2247
|
+
for (const r of t.results)
|
|
2248
|
+
i.push(await dn({
|
|
2249
|
+
item: r,
|
|
2178
2250
|
canTrack: o
|
|
2179
2251
|
}));
|
|
2180
|
-
t.results =
|
|
2181
|
-
} catch (
|
|
2182
|
-
|
|
2252
|
+
t.results = i;
|
|
2253
|
+
} catch (i) {
|
|
2254
|
+
$.error("Could not process A/B tests. ", i);
|
|
2183
2255
|
}
|
|
2184
2256
|
return t;
|
|
2185
2257
|
};
|
|
2186
2258
|
async function Le(e) {
|
|
2187
2259
|
try {
|
|
2188
|
-
const t = re(e), n = await
|
|
2189
|
-
return
|
|
2260
|
+
const t = re(e), n = await mo(e);
|
|
2261
|
+
return po(n) ? ho(e, n) : ($.error("Error fetching data. ", {
|
|
2190
2262
|
url: t,
|
|
2191
2263
|
content: n,
|
|
2192
2264
|
options: e
|
|
2193
2265
|
}), null);
|
|
2194
2266
|
} catch (t) {
|
|
2195
|
-
return
|
|
2267
|
+
return $.error("Error fetching data. ", t), null;
|
|
2196
2268
|
}
|
|
2197
2269
|
}
|
|
2198
|
-
const
|
|
2199
|
-
function
|
|
2200
|
-
return !
|
|
2270
|
+
const ri = Le;
|
|
2271
|
+
function fo() {
|
|
2272
|
+
return !v() || R() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
2201
2273
|
}
|
|
2202
|
-
function
|
|
2274
|
+
function bo() {
|
|
2203
2275
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
2204
2276
|
const t = Math.random() * 16 | 0;
|
|
2205
2277
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
2206
2278
|
});
|
|
2207
2279
|
}
|
|
2208
|
-
function
|
|
2209
|
-
return
|
|
2280
|
+
function He() {
|
|
2281
|
+
return bo().replace(/-/g, "");
|
|
2210
2282
|
}
|
|
2211
|
-
const
|
|
2283
|
+
const Ke = "builderSessionId", go = async ({
|
|
2212
2284
|
canTrack: e
|
|
2213
2285
|
}) => {
|
|
2214
2286
|
if (!e)
|
|
2215
2287
|
return;
|
|
2216
2288
|
const t = await Pe({
|
|
2217
|
-
name:
|
|
2289
|
+
name: Ke,
|
|
2218
2290
|
canTrack: e
|
|
2219
2291
|
});
|
|
2220
|
-
if (
|
|
2292
|
+
if (T(t))
|
|
2221
2293
|
return t;
|
|
2222
2294
|
{
|
|
2223
|
-
const n =
|
|
2224
|
-
return
|
|
2295
|
+
const n = yo();
|
|
2296
|
+
return ko({
|
|
2225
2297
|
id: n,
|
|
2226
2298
|
canTrack: e
|
|
2227
2299
|
}), n;
|
|
2228
2300
|
}
|
|
2229
|
-
},
|
|
2301
|
+
}, yo = () => He(), ko = ({
|
|
2230
2302
|
id: e,
|
|
2231
2303
|
canTrack: t
|
|
2232
|
-
}) =>
|
|
2233
|
-
name:
|
|
2304
|
+
}) => Ae({
|
|
2305
|
+
name: Ke,
|
|
2234
2306
|
value: e,
|
|
2235
2307
|
canTrack: t
|
|
2236
|
-
}),
|
|
2308
|
+
}), De = () => v() && typeof localStorage < "u" ? localStorage : void 0, vo = ({
|
|
2237
2309
|
key: e,
|
|
2238
2310
|
canTrack: t
|
|
2239
2311
|
}) => {
|
|
2240
2312
|
var n;
|
|
2241
2313
|
try {
|
|
2242
|
-
return t ? (n =
|
|
2314
|
+
return t ? (n = De()) == null ? void 0 : n.getItem(e) : void 0;
|
|
2243
2315
|
} catch (o) {
|
|
2244
2316
|
console.debug("[LocalStorage] GET error: ", o);
|
|
2245
2317
|
return;
|
|
2246
2318
|
}
|
|
2247
|
-
},
|
|
2319
|
+
}, So = ({
|
|
2248
2320
|
key: e,
|
|
2249
2321
|
canTrack: t,
|
|
2250
2322
|
value: n
|
|
2251
2323
|
}) => {
|
|
2252
2324
|
var o;
|
|
2253
2325
|
try {
|
|
2254
|
-
t && ((o =
|
|
2255
|
-
} catch (
|
|
2256
|
-
console.debug("[LocalStorage] SET error: ",
|
|
2326
|
+
t && ((o = De()) == null || o.setItem(e, n));
|
|
2327
|
+
} catch (i) {
|
|
2328
|
+
console.debug("[LocalStorage] SET error: ", i);
|
|
2257
2329
|
}
|
|
2258
|
-
},
|
|
2330
|
+
}, ze = "builderVisitorId", Co = ({
|
|
2259
2331
|
canTrack: e
|
|
2260
2332
|
}) => {
|
|
2261
2333
|
if (!e)
|
|
2262
2334
|
return;
|
|
2263
|
-
const t =
|
|
2264
|
-
key:
|
|
2335
|
+
const t = vo({
|
|
2336
|
+
key: ze,
|
|
2265
2337
|
canTrack: e
|
|
2266
2338
|
});
|
|
2267
|
-
if (
|
|
2339
|
+
if (T(t))
|
|
2268
2340
|
return t;
|
|
2269
2341
|
{
|
|
2270
|
-
const n =
|
|
2271
|
-
return
|
|
2342
|
+
const n = wo();
|
|
2343
|
+
return Io({
|
|
2272
2344
|
id: n,
|
|
2273
2345
|
canTrack: e
|
|
2274
2346
|
}), n;
|
|
2275
2347
|
}
|
|
2276
|
-
},
|
|
2348
|
+
}, wo = () => He(), Io = ({
|
|
2277
2349
|
id: e,
|
|
2278
2350
|
canTrack: t
|
|
2279
|
-
}) =>
|
|
2280
|
-
key:
|
|
2351
|
+
}) => So({
|
|
2352
|
+
key: ze,
|
|
2281
2353
|
value: e,
|
|
2282
2354
|
canTrack: t
|
|
2283
|
-
}),
|
|
2355
|
+
}), $o = async ({
|
|
2284
2356
|
canTrack: e
|
|
2285
2357
|
}) => {
|
|
2286
2358
|
if (!e)
|
|
@@ -2288,46 +2360,46 @@ const He = "builderSessionId", mo = async ({
|
|
|
2288
2360
|
visitorId: void 0,
|
|
2289
2361
|
sessionId: void 0
|
|
2290
2362
|
};
|
|
2291
|
-
const t = await
|
|
2363
|
+
const t = await go({
|
|
2292
2364
|
canTrack: e
|
|
2293
|
-
}), n =
|
|
2365
|
+
}), n = Co({
|
|
2294
2366
|
canTrack: e
|
|
2295
2367
|
});
|
|
2296
2368
|
return {
|
|
2297
2369
|
sessionId: t,
|
|
2298
2370
|
visitorId: n
|
|
2299
2371
|
};
|
|
2300
|
-
},
|
|
2372
|
+
}, Ro = async ({
|
|
2301
2373
|
type: e,
|
|
2302
2374
|
canTrack: t,
|
|
2303
2375
|
apiKey: n,
|
|
2304
2376
|
metadata: o,
|
|
2305
|
-
...
|
|
2377
|
+
...i
|
|
2306
2378
|
}) => ({
|
|
2307
2379
|
type: e,
|
|
2308
2380
|
data: {
|
|
2309
|
-
...
|
|
2381
|
+
...i,
|
|
2310
2382
|
metadata: {
|
|
2311
2383
|
url: location.href,
|
|
2312
2384
|
...o
|
|
2313
2385
|
},
|
|
2314
|
-
...await
|
|
2386
|
+
...await $o({
|
|
2315
2387
|
canTrack: t
|
|
2316
2388
|
}),
|
|
2317
|
-
userAttributes:
|
|
2389
|
+
userAttributes: Ie(),
|
|
2318
2390
|
ownerId: n
|
|
2319
2391
|
}
|
|
2320
2392
|
});
|
|
2321
|
-
async function
|
|
2393
|
+
async function te(e) {
|
|
2322
2394
|
if (!e.apiKey) {
|
|
2323
|
-
|
|
2395
|
+
$.error("Missing API key for track call. Please provide your API key.");
|
|
2324
2396
|
return;
|
|
2325
2397
|
}
|
|
2326
|
-
if (!!e.canTrack && !
|
|
2398
|
+
if (!!e.canTrack && !R() && !!(v() || x === "reactNative"))
|
|
2327
2399
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
2328
2400
|
method: "POST",
|
|
2329
2401
|
body: JSON.stringify({
|
|
2330
|
-
events: [await
|
|
2402
|
+
events: [await Ro(e)]
|
|
2331
2403
|
}),
|
|
2332
2404
|
headers: {
|
|
2333
2405
|
"content-type": "application/json"
|
|
@@ -2337,14 +2409,14 @@ async function ee(e) {
|
|
|
2337
2409
|
console.error("Failed to track: ", t);
|
|
2338
2410
|
});
|
|
2339
2411
|
}
|
|
2340
|
-
const
|
|
2412
|
+
const si = (e) => te({
|
|
2341
2413
|
...e,
|
|
2342
2414
|
canTrack: !0
|
|
2343
2415
|
});
|
|
2344
2416
|
function be(e) {
|
|
2345
2417
|
return Math.round(e * 1e3) / 1e3;
|
|
2346
2418
|
}
|
|
2347
|
-
const
|
|
2419
|
+
const To = (e, t, n = !0) => {
|
|
2348
2420
|
if (!(e instanceof HTMLElement))
|
|
2349
2421
|
return null;
|
|
2350
2422
|
let o = n ? e : e.parentElement;
|
|
@@ -2355,20 +2427,20 @@ const wo = (e, t, n = !0) => {
|
|
|
2355
2427
|
return o;
|
|
2356
2428
|
} while (o = o.parentElement);
|
|
2357
2429
|
return null;
|
|
2358
|
-
},
|
|
2430
|
+
}, xo = (e) => To(e, (t) => {
|
|
2359
2431
|
const n = t.getAttribute("builder-id") || t.id;
|
|
2360
2432
|
return Boolean((n == null ? void 0 : n.indexOf("builder-")) === 0);
|
|
2361
2433
|
}), ge = ({
|
|
2362
2434
|
event: e,
|
|
2363
2435
|
target: t
|
|
2364
2436
|
}) => {
|
|
2365
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left,
|
|
2437
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, i = e.clientY - n.top, r = be(o / n.width), s = be(i / n.height);
|
|
2366
2438
|
return {
|
|
2367
|
-
x:
|
|
2368
|
-
y:
|
|
2439
|
+
x: r,
|
|
2440
|
+
y: s
|
|
2369
2441
|
};
|
|
2370
|
-
},
|
|
2371
|
-
const t = e.target, n = t &&
|
|
2442
|
+
}, Eo = (e) => {
|
|
2443
|
+
const t = e.target, n = t && xo(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2372
2444
|
return {
|
|
2373
2445
|
targetBuilderElement: o || void 0,
|
|
2374
2446
|
metadata: {
|
|
@@ -2383,10 +2455,10 @@ const wo = (e, t, n = !0) => {
|
|
|
2383
2455
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
2384
2456
|
}
|
|
2385
2457
|
};
|
|
2386
|
-
},
|
|
2387
|
-
function
|
|
2458
|
+
}, Po = "0.7.5", ye = {};
|
|
2459
|
+
function Ao(e, t) {
|
|
2388
2460
|
let n = ye[e];
|
|
2389
|
-
if (n || (n = ye[e] = []), n.push(t),
|
|
2461
|
+
if (n || (n = ye[e] = []), n.push(t), v()) {
|
|
2390
2462
|
const o = {
|
|
2391
2463
|
type: "builder.register",
|
|
2392
2464
|
data: {
|
|
@@ -2396,13 +2468,13 @@ function Io(e, t) {
|
|
|
2396
2468
|
};
|
|
2397
2469
|
try {
|
|
2398
2470
|
parent.postMessage(o, "*"), parent !== window && window.postMessage(o, "*");
|
|
2399
|
-
} catch (
|
|
2400
|
-
console.debug("Could not postmessage",
|
|
2471
|
+
} catch (i) {
|
|
2472
|
+
console.debug("Could not postmessage", i);
|
|
2401
2473
|
}
|
|
2402
2474
|
}
|
|
2403
2475
|
}
|
|
2404
|
-
const
|
|
2405
|
-
|
|
2476
|
+
const Bo = () => {
|
|
2477
|
+
Ao("insertMenu", {
|
|
2406
2478
|
name: "_default",
|
|
2407
2479
|
default: !0,
|
|
2408
2480
|
items: [{
|
|
@@ -2425,13 +2497,13 @@ const xo = () => {
|
|
|
2425
2497
|
});
|
|
2426
2498
|
};
|
|
2427
2499
|
let ke = !1;
|
|
2428
|
-
const
|
|
2500
|
+
const Vo = (e = {}) => {
|
|
2429
2501
|
var t, n;
|
|
2430
|
-
ke || (ke = !0,
|
|
2502
|
+
ke || (ke = !0, v() && ((t = window.parent) == null || t.postMessage({
|
|
2431
2503
|
type: "builder.sdkInfo",
|
|
2432
2504
|
data: {
|
|
2433
|
-
target:
|
|
2434
|
-
version:
|
|
2505
|
+
target: x,
|
|
2506
|
+
version: Po,
|
|
2435
2507
|
supportsPatchUpdates: !1,
|
|
2436
2508
|
supportsAddBlockScoping: !0,
|
|
2437
2509
|
supportsCustomBreakpoints: !0
|
|
@@ -2444,36 +2516,36 @@ const Eo = (e = {}) => {
|
|
|
2444
2516
|
}, "*"), window.addEventListener("message", ({
|
|
2445
2517
|
data: o
|
|
2446
2518
|
}) => {
|
|
2447
|
-
var
|
|
2519
|
+
var i, r;
|
|
2448
2520
|
if (!!(o != null && o.type))
|
|
2449
2521
|
switch (o.type) {
|
|
2450
2522
|
case "builder.evaluate": {
|
|
2451
|
-
const
|
|
2452
|
-
let
|
|
2523
|
+
const s = o.data.text, a = o.data.arguments || [], l = o.data.id, c = new Function(s);
|
|
2524
|
+
let p, h = null;
|
|
2453
2525
|
try {
|
|
2454
|
-
|
|
2526
|
+
p = c.apply(null, a);
|
|
2455
2527
|
} catch (m) {
|
|
2456
2528
|
h = m;
|
|
2457
2529
|
}
|
|
2458
|
-
h ? (
|
|
2530
|
+
h ? (i = window.parent) == null || i.postMessage({
|
|
2459
2531
|
type: "builder.evaluateError",
|
|
2460
2532
|
data: {
|
|
2461
2533
|
id: l,
|
|
2462
2534
|
error: h.message
|
|
2463
2535
|
}
|
|
2464
|
-
}, "*") :
|
|
2465
|
-
var
|
|
2466
|
-
(
|
|
2536
|
+
}, "*") : p && typeof p.then == "function" ? p.then((m) => {
|
|
2537
|
+
var S;
|
|
2538
|
+
(S = window.parent) == null || S.postMessage({
|
|
2467
2539
|
type: "builder.evaluateResult",
|
|
2468
2540
|
data: {
|
|
2469
2541
|
id: l,
|
|
2470
2542
|
result: m
|
|
2471
2543
|
}
|
|
2472
2544
|
}, "*");
|
|
2473
|
-
}).catch(console.error) : (
|
|
2545
|
+
}).catch(console.error) : (r = window.parent) == null || r.postMessage({
|
|
2474
2546
|
type: "builder.evaluateResult",
|
|
2475
2547
|
data: {
|
|
2476
|
-
result:
|
|
2548
|
+
result: p,
|
|
2477
2549
|
id: l
|
|
2478
2550
|
}
|
|
2479
2551
|
}, "*");
|
|
@@ -2481,7 +2553,7 @@ const Eo = (e = {}) => {
|
|
|
2481
2553
|
}
|
|
2482
2554
|
}
|
|
2483
2555
|
})));
|
|
2484
|
-
},
|
|
2556
|
+
}, _o = b({
|
|
2485
2557
|
name: "enable-editor",
|
|
2486
2558
|
props: [
|
|
2487
2559
|
"builderContextSignal",
|
|
@@ -2493,8 +2565,7 @@ const Eo = (e = {}) => {
|
|
|
2493
2565
|
"includeRefs",
|
|
2494
2566
|
"enrich",
|
|
2495
2567
|
"content",
|
|
2496
|
-
"showContent"
|
|
2497
|
-
"classNameProp"
|
|
2568
|
+
"showContent"
|
|
2498
2569
|
],
|
|
2499
2570
|
data() {
|
|
2500
2571
|
return {
|
|
@@ -2503,37 +2574,37 @@ const Eo = (e = {}) => {
|
|
|
2503
2574
|
shouldSendResetCookie: !1,
|
|
2504
2575
|
httpReqsData: {},
|
|
2505
2576
|
clicked: !1,
|
|
2506
|
-
builderContext:
|
|
2577
|
+
builderContext: Z
|
|
2507
2578
|
};
|
|
2508
2579
|
},
|
|
2509
2580
|
provide() {
|
|
2510
2581
|
const e = this;
|
|
2511
2582
|
return {
|
|
2512
|
-
[
|
|
2583
|
+
[Z.key]: e.builderContextSignal
|
|
2513
2584
|
};
|
|
2514
2585
|
},
|
|
2515
2586
|
mounted() {
|
|
2516
2587
|
(() => {
|
|
2517
2588
|
var n, o;
|
|
2518
|
-
if (
|
|
2519
|
-
if (
|
|
2589
|
+
if (v()) {
|
|
2590
|
+
if (R() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
2520
2591
|
new CustomEvent("initeditingbldr")
|
|
2521
2592
|
), this.builderContextSignal.content && U(this.canTrack)) {
|
|
2522
|
-
const
|
|
2523
|
-
|
|
2593
|
+
const r = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, s = (o = this.builderContextSignal.content) == null ? void 0 : o.id, a = this.apiKey;
|
|
2594
|
+
te({
|
|
2524
2595
|
type: "impression",
|
|
2525
2596
|
canTrack: !0,
|
|
2526
|
-
contentId:
|
|
2597
|
+
contentId: s,
|
|
2527
2598
|
apiKey: a,
|
|
2528
|
-
variationId:
|
|
2599
|
+
variationId: r !== s ? r : void 0
|
|
2529
2600
|
});
|
|
2530
2601
|
}
|
|
2531
|
-
|
|
2602
|
+
fo() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
2532
2603
|
new CustomEvent("initpreviewingbldr")
|
|
2533
2604
|
);
|
|
2534
2605
|
}
|
|
2535
2606
|
})(), (() => {
|
|
2536
|
-
this.apiKey ||
|
|
2607
|
+
this.apiKey || $.error(
|
|
2537
2608
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
2538
2609
|
), this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
|
|
2539
2610
|
})();
|
|
@@ -2567,7 +2638,7 @@ const Eo = (e = {}) => {
|
|
|
2567
2638
|
}
|
|
2568
2639
|
},
|
|
2569
2640
|
unmounted() {
|
|
2570
|
-
|
|
2641
|
+
v() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
2571
2642
|
"builder:component:stateChangeListenerActivated",
|
|
2572
2643
|
this.emitStateUpdate
|
|
2573
2644
|
));
|
|
@@ -2604,7 +2675,7 @@ const Eo = (e = {}) => {
|
|
|
2604
2675
|
},
|
|
2605
2676
|
methods: {
|
|
2606
2677
|
mergeNewContent(e) {
|
|
2607
|
-
var n, o, r, s
|
|
2678
|
+
var n, o, i, r, s;
|
|
2608
2679
|
const t = {
|
|
2609
2680
|
...this.builderContextSignal.content,
|
|
2610
2681
|
...e,
|
|
@@ -2615,7 +2686,7 @@ const Eo = (e = {}) => {
|
|
|
2615
2686
|
meta: {
|
|
2616
2687
|
...(o = this.builderContextSignal.content) == null ? void 0 : o.meta,
|
|
2617
2688
|
...e == null ? void 0 : e.meta,
|
|
2618
|
-
breakpoints: ((
|
|
2689
|
+
breakpoints: ((i = e == null ? void 0 : e.meta) == null ? void 0 : i.breakpoints) || ((s = (r = this.builderContextSignal.content) == null ? void 0 : r.meta) == null ? void 0 : s.breakpoints)
|
|
2619
2690
|
}
|
|
2620
2691
|
};
|
|
2621
2692
|
this.builderContextSignal.content = t;
|
|
@@ -2626,19 +2697,19 @@ const Eo = (e = {}) => {
|
|
|
2626
2697
|
if (t)
|
|
2627
2698
|
switch (t.type) {
|
|
2628
2699
|
case "builder.configureSdk": {
|
|
2629
|
-
const o = t.data, { breakpoints:
|
|
2630
|
-
if (!
|
|
2700
|
+
const o = t.data, { breakpoints: i, contentId: r } = o;
|
|
2701
|
+
if (!r || r !== ((n = this.builderContextSignal.content) == null ? void 0 : n.id))
|
|
2631
2702
|
return;
|
|
2632
|
-
|
|
2703
|
+
i && this.mergeNewContent({
|
|
2633
2704
|
meta: {
|
|
2634
|
-
breakpoints:
|
|
2705
|
+
breakpoints: i
|
|
2635
2706
|
}
|
|
2636
2707
|
}), this.forceReRenderCount = this.forceReRenderCount + 1;
|
|
2637
2708
|
break;
|
|
2638
2709
|
}
|
|
2639
2710
|
case "builder.contentUpdate": {
|
|
2640
|
-
const o = t.data,
|
|
2641
|
-
|
|
2711
|
+
const o = t.data, i = o.key || o.alias || o.entry || o.modelName, r = o.data;
|
|
2712
|
+
i === this.model && (this.mergeNewContent(r), this.forceReRenderCount = this.forceReRenderCount + 1);
|
|
2642
2713
|
break;
|
|
2643
2714
|
}
|
|
2644
2715
|
}
|
|
@@ -2646,7 +2717,7 @@ const Eo = (e = {}) => {
|
|
|
2646
2717
|
evaluateJsCode() {
|
|
2647
2718
|
var t, n;
|
|
2648
2719
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
2649
|
-
e &&
|
|
2720
|
+
e && K({
|
|
2650
2721
|
code: e,
|
|
2651
2722
|
context: this.context || {},
|
|
2652
2723
|
localState: void 0,
|
|
@@ -2657,14 +2728,14 @@ const Eo = (e = {}) => {
|
|
|
2657
2728
|
onClick(e) {
|
|
2658
2729
|
var t, n;
|
|
2659
2730
|
if (this.builderContextSignal.content) {
|
|
2660
|
-
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId,
|
|
2661
|
-
|
|
2731
|
+
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, i = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
2732
|
+
te({
|
|
2662
2733
|
type: "click",
|
|
2663
2734
|
canTrack: U(this.canTrack),
|
|
2664
|
-
contentId:
|
|
2735
|
+
contentId: i,
|
|
2665
2736
|
apiKey: this.apiKey,
|
|
2666
|
-
variationId: o !==
|
|
2667
|
-
...
|
|
2737
|
+
variationId: o !== i ? o : void 0,
|
|
2738
|
+
...Eo(e),
|
|
2668
2739
|
unique: !this.clicked
|
|
2669
2740
|
});
|
|
2670
2741
|
}
|
|
@@ -2673,7 +2744,7 @@ const Eo = (e = {}) => {
|
|
|
2673
2744
|
evalExpression(e) {
|
|
2674
2745
|
return e.replace(
|
|
2675
2746
|
/{{([^}]+)}}/g,
|
|
2676
|
-
(t, n) =>
|
|
2747
|
+
(t, n) => K({
|
|
2677
2748
|
code: n,
|
|
2678
2749
|
context: this.context || {},
|
|
2679
2750
|
localState: void 0,
|
|
@@ -2683,13 +2754,13 @@ const Eo = (e = {}) => {
|
|
|
2683
2754
|
);
|
|
2684
2755
|
},
|
|
2685
2756
|
handleRequest({ url: e, key: t }) {
|
|
2686
|
-
|
|
2687
|
-
var
|
|
2757
|
+
Fe(e).then((n) => n.json()).then((n) => {
|
|
2758
|
+
var i, r;
|
|
2688
2759
|
const o = {
|
|
2689
2760
|
...this.builderContextSignal.rootState,
|
|
2690
2761
|
[t]: n
|
|
2691
2762
|
};
|
|
2692
|
-
(
|
|
2763
|
+
(r = (i = this.builderContextSignal).rootSetState) == null || r.call(i, o), this.httpReqsData[t] = !0;
|
|
2693
2764
|
}).catch((n) => {
|
|
2694
2765
|
console.error("error fetching dynamic data", e, n);
|
|
2695
2766
|
});
|
|
@@ -2697,23 +2768,23 @@ const Eo = (e = {}) => {
|
|
|
2697
2768
|
runHttpRequests() {
|
|
2698
2769
|
var t, n, o;
|
|
2699
2770
|
const e = (o = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) != null ? o : {};
|
|
2700
|
-
Object.entries(e).forEach(([
|
|
2701
|
-
if (
|
|
2702
|
-
const
|
|
2771
|
+
Object.entries(e).forEach(([i, r]) => {
|
|
2772
|
+
if (r && (!this.httpReqsData[i] || R())) {
|
|
2773
|
+
const s = this.evalExpression(r);
|
|
2703
2774
|
this.handleRequest({
|
|
2704
|
-
url:
|
|
2705
|
-
key:
|
|
2775
|
+
url: s,
|
|
2776
|
+
key: i
|
|
2706
2777
|
});
|
|
2707
2778
|
}
|
|
2708
2779
|
});
|
|
2709
2780
|
},
|
|
2710
2781
|
emitStateUpdate() {
|
|
2711
|
-
|
|
2782
|
+
R() && window.dispatchEvent(
|
|
2712
2783
|
new CustomEvent(
|
|
2713
2784
|
"builder:component:stateChange",
|
|
2714
2785
|
{
|
|
2715
2786
|
detail: {
|
|
2716
|
-
state:
|
|
2787
|
+
state: F(this.builderContextSignal.rootState),
|
|
2717
2788
|
ref: {
|
|
2718
2789
|
name: this.model
|
|
2719
2790
|
}
|
|
@@ -2723,7 +2794,7 @@ const Eo = (e = {}) => {
|
|
|
2723
2794
|
);
|
|
2724
2795
|
},
|
|
2725
2796
|
elementRef_onIniteditingbldr(e) {
|
|
2726
|
-
this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage),
|
|
2797
|
+
this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage), Bo(), Vo({
|
|
2727
2798
|
...this.locale ? {
|
|
2728
2799
|
locale: this.locale
|
|
2729
2800
|
} : {},
|
|
@@ -2737,7 +2808,7 @@ const Eo = (e = {}) => {
|
|
|
2737
2808
|
this.builderContextSignal.componentInfos
|
|
2738
2809
|
).forEach((t) => {
|
|
2739
2810
|
var o;
|
|
2740
|
-
const n =
|
|
2811
|
+
const n = Gn(t);
|
|
2741
2812
|
(o = window.parent) == null || o.postMessage(n, "*");
|
|
2742
2813
|
}), window.addEventListener(
|
|
2743
2814
|
"builder:component:stateChangeListenerActivated",
|
|
@@ -2747,13 +2818,13 @@ const Eo = (e = {}) => {
|
|
|
2747
2818
|
elementRef_onInitpreviewingbldr(e) {
|
|
2748
2819
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
|
|
2749
2820
|
`builder.preview.${n}`
|
|
2750
|
-
),
|
|
2751
|
-
n === this.model &&
|
|
2821
|
+
), i = t.get("apiKey") || t.get("builder.space");
|
|
2822
|
+
n === this.model && i === this.apiKey && (!this.content || o === this.content.id) && G({
|
|
2752
2823
|
model: this.model,
|
|
2753
2824
|
apiKey: this.apiKey,
|
|
2754
2825
|
apiVersion: this.builderContextSignal.apiVersion
|
|
2755
|
-
}).then((
|
|
2756
|
-
|
|
2826
|
+
}).then((r) => {
|
|
2827
|
+
r && this.mergeNewContent(r);
|
|
2757
2828
|
});
|
|
2758
2829
|
},
|
|
2759
2830
|
_classStringToObject(e) {
|
|
@@ -2766,32 +2837,34 @@ const Eo = (e = {}) => {
|
|
|
2766
2837
|
return t;
|
|
2767
2838
|
}
|
|
2768
2839
|
}
|
|
2769
|
-
}),
|
|
2770
|
-
function
|
|
2771
|
-
var
|
|
2772
|
-
return e.builderContextSignal.content ? (d(),
|
|
2840
|
+
}), Oo = ["builder-content-id", "builder-model"];
|
|
2841
|
+
function jo(e, t, n, o, i, r) {
|
|
2842
|
+
var s, a, l;
|
|
2843
|
+
return e.builderContextSignal.content ? (d(), u("div", w({
|
|
2773
2844
|
key: e.forceReRenderCount,
|
|
2774
2845
|
ref: "elementRef",
|
|
2775
|
-
onClick: t[0] || (t[0] = (
|
|
2776
|
-
"builder-content-id": (
|
|
2846
|
+
onClick: t[0] || (t[0] = (c) => e.onClick(c)),
|
|
2847
|
+
"builder-content-id": (s = e.builderContextSignal.content) == null ? void 0 : s.id,
|
|
2777
2848
|
"builder-model": e.model,
|
|
2778
|
-
class: e._classStringToObject(
|
|
2779
|
-
|
|
2780
|
-
|
|
2849
|
+
class: e._classStringToObject(
|
|
2850
|
+
`variant-${((a = e.content) == null ? void 0 : a.testVariationId) || ((l = e.content) == null ? void 0 : l.id)}`
|
|
2851
|
+
),
|
|
2852
|
+
onIniteditingbldr: t[1] || (t[1] = (c) => e.elementRef_onIniteditingbldr(c)),
|
|
2853
|
+
onInitpreviewingbldr: t[2] || (t[2] = (c) => e.elementRef_onInitpreviewingbldr(c))
|
|
2781
2854
|
}, {
|
|
2782
2855
|
...e.showContent ? {} : {
|
|
2783
2856
|
hidden: !0,
|
|
2784
2857
|
"aria-hidden": !0
|
|
2785
2858
|
}
|
|
2786
2859
|
}), [
|
|
2787
|
-
|
|
2788
|
-
], 16,
|
|
2860
|
+
P(e.$slots, "default")
|
|
2861
|
+
], 16, Oo)) : f("v-if", !0);
|
|
2789
2862
|
}
|
|
2790
|
-
const
|
|
2791
|
-
var
|
|
2792
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = (
|
|
2793
|
-
let
|
|
2794
|
-
if (o && t && n && (
|
|
2863
|
+
const No = /* @__PURE__ */ g(_o, [["render", jo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/content/components/enable-editor.vue"]]), Uo = (e) => {
|
|
2864
|
+
var r, s;
|
|
2865
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = (s = e.fileUrl) != null ? s : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
|
|
2866
|
+
let i = "";
|
|
2867
|
+
if (o && t && n && (i += `
|
|
2795
2868
|
@font-face {
|
|
2796
2869
|
font-family: "${t}";
|
|
2797
2870
|
src: local("${n}"), url('${o}') format('woff2');
|
|
@@ -2803,7 +2876,7 @@ font-weight: 400;
|
|
|
2803
2876
|
if (!(String(Number(a)) === a))
|
|
2804
2877
|
continue;
|
|
2805
2878
|
const c = e.files[a];
|
|
2806
|
-
c && c !== o && (
|
|
2879
|
+
c && c !== o && (i += `
|
|
2807
2880
|
@font-face {
|
|
2808
2881
|
font-family: "${t}";
|
|
2809
2882
|
src: url('${c}') format('woff2');
|
|
@@ -2812,27 +2885,27 @@ font-weight: ${a};
|
|
|
2812
2885
|
}
|
|
2813
2886
|
`.trim());
|
|
2814
2887
|
}
|
|
2815
|
-
return
|
|
2816
|
-
},
|
|
2888
|
+
return i;
|
|
2889
|
+
}, Fo = ({
|
|
2817
2890
|
customFonts: e
|
|
2818
2891
|
}) => {
|
|
2819
2892
|
var t;
|
|
2820
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
2821
|
-
},
|
|
2893
|
+
return ((t = e == null ? void 0 : e.map((n) => Uo(n))) == null ? void 0 : t.join(" ")) || "";
|
|
2894
|
+
}, Wo = ({
|
|
2822
2895
|
cssCode: e,
|
|
2823
2896
|
contentId: t
|
|
2824
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
2897
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Mo = b({
|
|
2825
2898
|
name: "content-styles",
|
|
2826
|
-
components: { InlinedStyles:
|
|
2899
|
+
components: { InlinedStyles: q },
|
|
2827
2900
|
props: ["cssCode", "contentId", "customFonts"],
|
|
2828
2901
|
data() {
|
|
2829
2902
|
return {
|
|
2830
2903
|
injectedStyles: `
|
|
2831
|
-
${
|
|
2904
|
+
${Wo({
|
|
2832
2905
|
cssCode: this.cssCode,
|
|
2833
2906
|
contentId: this.contentId
|
|
2834
2907
|
})}
|
|
2835
|
-
${
|
|
2908
|
+
${Fo({
|
|
2836
2909
|
customFonts: this.customFonts
|
|
2837
2910
|
})}
|
|
2838
2911
|
|
|
@@ -2852,33 +2925,28 @@ ${Oo({
|
|
|
2852
2925
|
};
|
|
2853
2926
|
}
|
|
2854
2927
|
});
|
|
2855
|
-
function
|
|
2856
|
-
const
|
|
2857
|
-
return d(),
|
|
2928
|
+
function Lo(e, t, n, o, i, r) {
|
|
2929
|
+
const s = y("inlined-styles");
|
|
2930
|
+
return d(), k(s, { styles: e.injectedStyles }, null, 8, ["styles"]);
|
|
2858
2931
|
}
|
|
2859
|
-
const
|
|
2932
|
+
const Ho = /* @__PURE__ */ g(Mo, [["render", Lo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/content/components/styles.vue"]]), Ko = ({
|
|
2860
2933
|
content: e,
|
|
2861
2934
|
data: t,
|
|
2862
2935
|
locale: n
|
|
2863
2936
|
}) => {
|
|
2864
|
-
var
|
|
2865
|
-
const o = {};
|
|
2866
|
-
(
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
...(a = e == null ? void 0 : e.data) == null ? void 0 : a.state,
|
|
2937
|
+
var r, s, a;
|
|
2938
|
+
const o = {}, i = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
|
|
2939
|
+
return (a = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || a.forEach((l) => {
|
|
2940
|
+
l.name && l.defaultValue !== void 0 && (o[l.name] = l.defaultValue);
|
|
2941
|
+
}), {
|
|
2942
|
+
...o,
|
|
2943
|
+
...i,
|
|
2872
2944
|
...t,
|
|
2873
2945
|
...n ? {
|
|
2874
2946
|
locale: n
|
|
2875
2947
|
} : {}
|
|
2876
2948
|
};
|
|
2877
|
-
|
|
2878
|
-
...o,
|
|
2879
|
-
...r
|
|
2880
|
-
};
|
|
2881
|
-
}, Wo = ({
|
|
2949
|
+
}, Do = ({
|
|
2882
2950
|
content: e,
|
|
2883
2951
|
data: t
|
|
2884
2952
|
}) => e ? {
|
|
@@ -2888,13 +2956,13 @@ const Uo = /* @__PURE__ */ y(jo, [["render", Fo], ["__file", "/home/runner/work/
|
|
|
2888
2956
|
...t
|
|
2889
2957
|
},
|
|
2890
2958
|
meta: e == null ? void 0 : e.meta
|
|
2891
|
-
} : void 0,
|
|
2959
|
+
} : void 0, zo = Je, qo = b({
|
|
2892
2960
|
name: "content-component",
|
|
2893
2961
|
components: {
|
|
2894
|
-
EnableEditor:
|
|
2895
|
-
InlinedScript:
|
|
2896
|
-
ContentStyles:
|
|
2897
|
-
Blocks:
|
|
2962
|
+
EnableEditor: No,
|
|
2963
|
+
InlinedScript: Ue,
|
|
2964
|
+
ContentStyles: Ho,
|
|
2965
|
+
Blocks: oe
|
|
2898
2966
|
},
|
|
2899
2967
|
props: [
|
|
2900
2968
|
"content",
|
|
@@ -2908,14 +2976,13 @@ const Uo = /* @__PURE__ */ y(jo, [["render", Fo], ["__file", "/home/runner/work/
|
|
|
2908
2976
|
"canTrack",
|
|
2909
2977
|
"includeRefs",
|
|
2910
2978
|
"enrich",
|
|
2911
|
-
"classNameProp",
|
|
2912
2979
|
"showContent",
|
|
2913
2980
|
"isSsrAbTest"
|
|
2914
2981
|
],
|
|
2915
2982
|
data() {
|
|
2916
2983
|
var e, t;
|
|
2917
2984
|
return {
|
|
2918
|
-
scriptStr:
|
|
2985
|
+
scriptStr: oo({
|
|
2919
2986
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
2920
2987
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
2921
2988
|
}),
|
|
@@ -2924,22 +2991,22 @@ const Uo = /* @__PURE__ */ y(jo, [["render", Fo], ["__file", "/home/runner/work/
|
|
|
2924
2991
|
...me,
|
|
2925
2992
|
...this.customComponents || []
|
|
2926
2993
|
].reduce(
|
|
2927
|
-
(n, { component: o, ...
|
|
2994
|
+
(n, { component: o, ...i }) => ({
|
|
2928
2995
|
...n,
|
|
2929
|
-
[
|
|
2930
|
-
component:
|
|
2931
|
-
...
|
|
2996
|
+
[i.name]: {
|
|
2997
|
+
component: zo(o),
|
|
2998
|
+
...ee(i)
|
|
2932
2999
|
}
|
|
2933
3000
|
}),
|
|
2934
3001
|
{}
|
|
2935
3002
|
),
|
|
2936
3003
|
builderContextSignal: {
|
|
2937
|
-
content:
|
|
3004
|
+
content: Do({
|
|
2938
3005
|
content: this.content,
|
|
2939
3006
|
data: this.data
|
|
2940
3007
|
}),
|
|
2941
3008
|
localState: void 0,
|
|
2942
|
-
rootState:
|
|
3009
|
+
rootState: Ko({
|
|
2943
3010
|
content: this.content,
|
|
2944
3011
|
data: this.data,
|
|
2945
3012
|
locale: this.locale
|
|
@@ -2953,15 +3020,15 @@ const Uo = /* @__PURE__ */ y(jo, [["render", Fo], ["__file", "/home/runner/work/
|
|
|
2953
3020
|
...me,
|
|
2954
3021
|
...this.customComponents || []
|
|
2955
3022
|
].reduce(
|
|
2956
|
-
(n, { component: o, ...
|
|
3023
|
+
(n, { component: o, ...i }) => ({
|
|
2957
3024
|
...n,
|
|
2958
|
-
[
|
|
3025
|
+
[i.name]: ee(i)
|
|
2959
3026
|
}),
|
|
2960
3027
|
{}
|
|
2961
3028
|
),
|
|
2962
3029
|
inheritedStyles: {}
|
|
2963
3030
|
},
|
|
2964
|
-
TARGET:
|
|
3031
|
+
TARGET: x
|
|
2965
3032
|
};
|
|
2966
3033
|
},
|
|
2967
3034
|
provide() {
|
|
@@ -2978,9 +3045,9 @@ const Uo = /* @__PURE__ */ y(jo, [["render", Fo], ["__file", "/home/runner/work/
|
|
|
2978
3045
|
}
|
|
2979
3046
|
}
|
|
2980
3047
|
});
|
|
2981
|
-
function
|
|
2982
|
-
const
|
|
2983
|
-
return d(),
|
|
3048
|
+
function Go(e, t, n, o, i, r) {
|
|
3049
|
+
const s = y("inlined-script"), a = y("content-styles"), l = y("blocks"), c = y("enable-editor");
|
|
3050
|
+
return d(), k(c, w({
|
|
2984
3051
|
content: e.content,
|
|
2985
3052
|
model: e.model,
|
|
2986
3053
|
context: e.context,
|
|
@@ -2989,39 +3056,38 @@ function Ho(e, t, n, o, r, s) {
|
|
|
2989
3056
|
locale: e.locale,
|
|
2990
3057
|
includeRefs: e.includeRefs,
|
|
2991
3058
|
enrich: e.enrich,
|
|
2992
|
-
classNameProp: e.classNameProp,
|
|
2993
3059
|
showContent: e.showContent,
|
|
2994
3060
|
builderContextSignal: e.builderContextSignal
|
|
2995
3061
|
}, {}), {
|
|
2996
|
-
default:
|
|
2997
|
-
var
|
|
3062
|
+
default: ne(() => {
|
|
3063
|
+
var p, h, m, S, V, _, O;
|
|
2998
3064
|
return [
|
|
2999
|
-
e.isSsrAbTest ? (d(),
|
|
3065
|
+
e.isSsrAbTest ? (d(), k(s, {
|
|
3000
3066
|
key: 0,
|
|
3001
3067
|
scriptStr: e.scriptStr
|
|
3002
|
-
}, null, 8, ["scriptStr"])) :
|
|
3003
|
-
e.TARGET !== "reactNative" ? (d(),
|
|
3068
|
+
}, null, 8, ["scriptStr"])) : f("v-if", !0),
|
|
3069
|
+
e.TARGET !== "reactNative" ? (d(), k(a, {
|
|
3004
3070
|
key: 1,
|
|
3005
|
-
contentId: (
|
|
3071
|
+
contentId: (p = e.builderContextSignal.content) == null ? void 0 : p.id,
|
|
3006
3072
|
cssCode: (m = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : m.cssCode,
|
|
3007
|
-
customFonts: (
|
|
3008
|
-
}, null, 8, ["contentId", "cssCode", "customFonts"])) :
|
|
3009
|
-
|
|
3010
|
-
blocks: (
|
|
3073
|
+
customFonts: (V = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : V.customFonts
|
|
3074
|
+
}, null, 8, ["contentId", "cssCode", "customFonts"])) : f("v-if", !0),
|
|
3075
|
+
B(l, {
|
|
3076
|
+
blocks: (O = (_ = e.builderContextSignal.content) == null ? void 0 : _.data) == null ? void 0 : O.blocks,
|
|
3011
3077
|
context: e.builderContextSignal,
|
|
3012
3078
|
registeredComponents: e.registeredComponents
|
|
3013
3079
|
}, null, 8, ["blocks", "context", "registeredComponents"])
|
|
3014
3080
|
];
|
|
3015
3081
|
}),
|
|
3016
3082
|
_: 1
|
|
3017
|
-
}, 16, ["content", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "
|
|
3083
|
+
}, 16, ["content", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "showContent", "builderContextSignal"]);
|
|
3018
3084
|
}
|
|
3019
|
-
const
|
|
3085
|
+
const Jo = /* @__PURE__ */ g(qo, [["render", Go], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/content/content.vue"]]), Yo = b({
|
|
3020
3086
|
name: "content-variants",
|
|
3021
3087
|
components: {
|
|
3022
|
-
InlinedScript:
|
|
3023
|
-
InlinedStyles:
|
|
3024
|
-
ContentComponent:
|
|
3088
|
+
InlinedScript: Ue,
|
|
3089
|
+
InlinedStyles: q,
|
|
3090
|
+
ContentComponent: Jo
|
|
3025
3091
|
},
|
|
3026
3092
|
props: [
|
|
3027
3093
|
"canTrack",
|
|
@@ -3039,23 +3105,23 @@ const zo = /* @__PURE__ */ y(Ko, [["render", Ho], ["__file", "/home/runner/work/
|
|
|
3039
3105
|
],
|
|
3040
3106
|
data() {
|
|
3041
3107
|
return {
|
|
3042
|
-
shouldRenderVariants:
|
|
3108
|
+
shouldRenderVariants: Zn({
|
|
3043
3109
|
canTrack: U(this.canTrack),
|
|
3044
3110
|
content: this.content
|
|
3045
3111
|
}),
|
|
3046
|
-
TARGET:
|
|
3047
|
-
getScriptString:
|
|
3048
|
-
getVariants:
|
|
3112
|
+
TARGET: x,
|
|
3113
|
+
getScriptString: to,
|
|
3114
|
+
getVariants: L
|
|
3049
3115
|
};
|
|
3050
3116
|
},
|
|
3051
3117
|
mounted() {
|
|
3052
3118
|
this.shouldRenderVariants = !1;
|
|
3053
3119
|
},
|
|
3054
3120
|
computed: {
|
|
3055
|
-
|
|
3121
|
+
updateCookieAndStylesScriptStr() {
|
|
3056
3122
|
var e;
|
|
3057
|
-
return
|
|
3058
|
-
|
|
3123
|
+
return no(
|
|
3124
|
+
L(this.content).map((t) => ({
|
|
3059
3125
|
id: t.testVariationId,
|
|
3060
3126
|
testRatio: t.testRatio
|
|
3061
3127
|
})),
|
|
@@ -3063,7 +3129,7 @@ const zo = /* @__PURE__ */ y(Ko, [["render", Ho], ["__file", "/home/runner/work/
|
|
|
3063
3129
|
);
|
|
3064
3130
|
},
|
|
3065
3131
|
hideVariantsStyleString() {
|
|
3066
|
-
return
|
|
3132
|
+
return L(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
|
|
3067
3133
|
},
|
|
3068
3134
|
defaultContent() {
|
|
3069
3135
|
var e;
|
|
@@ -3077,25 +3143,24 @@ const zo = /* @__PURE__ */ y(Ko, [["render", Ho], ["__file", "/home/runner/work/
|
|
|
3077
3143
|
}
|
|
3078
3144
|
}
|
|
3079
3145
|
});
|
|
3080
|
-
function
|
|
3081
|
-
var c
|
|
3082
|
-
const
|
|
3083
|
-
return d(),
|
|
3084
|
-
!e.__isNestedRender && e.TARGET !== "reactNative" ? (d(),
|
|
3146
|
+
function Qo(e, t, n, o, i, r) {
|
|
3147
|
+
var c;
|
|
3148
|
+
const s = y("inlined-script"), a = y("inlined-styles"), l = y("content-component");
|
|
3149
|
+
return d(), u(C, null, [
|
|
3150
|
+
!e.__isNestedRender && e.TARGET !== "reactNative" ? (d(), k(s, {
|
|
3085
3151
|
key: 0,
|
|
3086
3152
|
scriptStr: e.getScriptString()
|
|
3087
|
-
}, null, 8, ["scriptStr"])) :
|
|
3088
|
-
e.shouldRenderVariants ? (d(),
|
|
3089
|
-
|
|
3153
|
+
}, null, 8, ["scriptStr"])) : f("v-if", !0),
|
|
3154
|
+
e.shouldRenderVariants ? (d(), u(C, { key: 1 }, [
|
|
3155
|
+
B(a, {
|
|
3090
3156
|
id: `variants-styles-${(c = e.content) == null ? void 0 : c.id}`,
|
|
3091
3157
|
styles: e.hideVariantsStyleString
|
|
3092
3158
|
}, null, 8, ["id", "styles"]),
|
|
3093
|
-
|
|
3094
|
-
(d(!0),
|
|
3095
|
-
key:
|
|
3096
|
-
content:
|
|
3159
|
+
B(s, { scriptStr: e.updateCookieAndStylesScriptStr }, null, 8, ["scriptStr"]),
|
|
3160
|
+
(d(!0), u(C, null, A(e.getVariants(e.content), (p, h) => (d(), k(l, {
|
|
3161
|
+
key: p.testVariationId,
|
|
3162
|
+
content: p,
|
|
3097
3163
|
showContent: !1,
|
|
3098
|
-
classNameProp: void 0,
|
|
3099
3164
|
model: e.model,
|
|
3100
3165
|
data: e.data,
|
|
3101
3166
|
context: e.context,
|
|
@@ -3108,10 +3173,9 @@ function qo(e, t, n, o, r, s) {
|
|
|
3108
3173
|
enrich: e.enrich,
|
|
3109
3174
|
isSsrAbTest: e.shouldRenderVariants
|
|
3110
3175
|
}, null, 8, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest"]))), 128))
|
|
3111
|
-
], 64)) :
|
|
3112
|
-
|
|
3176
|
+
], 64)) : f("v-if", !0),
|
|
3177
|
+
B(l, w({
|
|
3113
3178
|
content: e.defaultContent,
|
|
3114
|
-
classNameProp: `variant-${(u = e.content) == null ? void 0 : u.id}`,
|
|
3115
3179
|
showContent: !0,
|
|
3116
3180
|
model: e.model,
|
|
3117
3181
|
data: e.data,
|
|
@@ -3126,15 +3190,15 @@ function qo(e, t, n, o, r, s) {
|
|
|
3126
3190
|
isSsrAbTest: e.shouldRenderVariants
|
|
3127
3191
|
}, {
|
|
3128
3192
|
key: e.shouldRenderVariants.toString()
|
|
3129
|
-
}), null, 16, ["content", "
|
|
3193
|
+
}), null, 16, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest"])
|
|
3130
3194
|
], 64);
|
|
3131
3195
|
}
|
|
3132
|
-
const qe = /* @__PURE__ */
|
|
3196
|
+
const qe = /* @__PURE__ */ g(Yo, [["render", Qo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/content-variants/content-variants.vue"]]), Xo = async ({
|
|
3133
3197
|
builderContextValue: e,
|
|
3134
3198
|
symbol: t
|
|
3135
3199
|
}) => {
|
|
3136
3200
|
if ((t == null ? void 0 : t.model) && (e == null ? void 0 : e.apiKey))
|
|
3137
|
-
return
|
|
3201
|
+
return G({
|
|
3138
3202
|
model: t.model,
|
|
3139
3203
|
apiKey: e.apiKey,
|
|
3140
3204
|
apiVersion: e.apiVersion,
|
|
@@ -3144,9 +3208,9 @@ const qe = /* @__PURE__ */ y(Do, [["render", qo], ["__file", "/home/runner/work/
|
|
|
3144
3208
|
}
|
|
3145
3209
|
}
|
|
3146
3210
|
}).catch((n) => {
|
|
3147
|
-
|
|
3211
|
+
$.error("Could not fetch symbol content: ", n);
|
|
3148
3212
|
});
|
|
3149
|
-
},
|
|
3213
|
+
}, Zo = b({
|
|
3150
3214
|
name: "builder-symbol",
|
|
3151
3215
|
components: { ContentVariants: qe },
|
|
3152
3216
|
props: [
|
|
@@ -3159,7 +3223,7 @@ const qe = /* @__PURE__ */ y(Do, [["render", qo], ["__file", "/home/runner/work/
|
|
|
3159
3223
|
],
|
|
3160
3224
|
data() {
|
|
3161
3225
|
var e;
|
|
3162
|
-
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs:
|
|
3226
|
+
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: z };
|
|
3163
3227
|
},
|
|
3164
3228
|
mounted() {
|
|
3165
3229
|
this.setContent();
|
|
@@ -3190,7 +3254,7 @@ const qe = /* @__PURE__ */ y(Do, [["render", qo], ["__file", "/home/runner/work/
|
|
|
3190
3254
|
},
|
|
3191
3255
|
methods: {
|
|
3192
3256
|
setContent() {
|
|
3193
|
-
this.contentToUse ||
|
|
3257
|
+
this.contentToUse || Xo({
|
|
3194
3258
|
symbol: this.symbol,
|
|
3195
3259
|
builderContextValue: this.builderContext
|
|
3196
3260
|
}).then((e) => {
|
|
@@ -3208,13 +3272,13 @@ const qe = /* @__PURE__ */ y(Do, [["render", qo], ["__file", "/home/runner/work/
|
|
|
3208
3272
|
}
|
|
3209
3273
|
}
|
|
3210
3274
|
});
|
|
3211
|
-
function
|
|
3212
|
-
var a, l, c,
|
|
3213
|
-
const
|
|
3214
|
-
return d(),
|
|
3275
|
+
function ei(e, t, n, o, i, r) {
|
|
3276
|
+
var a, l, c, p;
|
|
3277
|
+
const s = y("content-variants");
|
|
3278
|
+
return d(), u("div", w({
|
|
3215
3279
|
class: e._classStringToObject(e.className)
|
|
3216
|
-
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
3217
|
-
|
|
3280
|
+
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, N(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3281
|
+
B(s, {
|
|
3218
3282
|
__isNestedRender: !0,
|
|
3219
3283
|
apiVersion: e.builderContext.apiVersion,
|
|
3220
3284
|
apiKey: e.builderContext.apiKey,
|
|
@@ -3225,14 +3289,14 @@ function Yo(e, t, n, o, r, s) {
|
|
|
3225
3289
|
...e.builderContext.localState,
|
|
3226
3290
|
...(c = (l = e.contentToUse) == null ? void 0 : l.data) == null ? void 0 : c.state
|
|
3227
3291
|
},
|
|
3228
|
-
model: (
|
|
3292
|
+
model: (p = e.symbol) == null ? void 0 : p.model,
|
|
3229
3293
|
content: e.contentToUse
|
|
3230
3294
|
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content"])
|
|
3231
3295
|
], 16);
|
|
3232
3296
|
}
|
|
3233
|
-
const
|
|
3234
|
-
function
|
|
3235
|
-
if (
|
|
3297
|
+
const ti = /* @__PURE__ */ g(Zo, [["render", ei], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/symbol/symbol.vue"]]), ai = oe, li = qe, ve = {};
|
|
3298
|
+
function ci(e) {
|
|
3299
|
+
if (v()) {
|
|
3236
3300
|
Object.assign(ve, e);
|
|
3237
3301
|
const t = {
|
|
3238
3302
|
type: "builder.settingsChange",
|
|
@@ -3241,9 +3305,9 @@ function sr(e) {
|
|
|
3241
3305
|
parent.postMessage(t, "*");
|
|
3242
3306
|
}
|
|
3243
3307
|
}
|
|
3244
|
-
const
|
|
3245
|
-
var o,
|
|
3246
|
-
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((
|
|
3308
|
+
const di = async (e) => {
|
|
3309
|
+
var o, i, r;
|
|
3310
|
+
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((i = e.userAttributes) == null ? void 0 : i.urlPath), n = {
|
|
3247
3311
|
...e,
|
|
3248
3312
|
apiKey: e.apiKey,
|
|
3249
3313
|
model: e.model || "page",
|
|
@@ -3253,47 +3317,47 @@ const ir = async (e) => {
|
|
|
3253
3317
|
urlPath: t
|
|
3254
3318
|
} : {}
|
|
3255
3319
|
},
|
|
3256
|
-
options:
|
|
3320
|
+
options: We(e.searchParams || ((r = e.url) == null ? void 0 : r.searchParams) || e.options)
|
|
3257
3321
|
};
|
|
3258
3322
|
return {
|
|
3259
3323
|
apiKey: n.apiKey,
|
|
3260
3324
|
model: n.model,
|
|
3261
|
-
content: await
|
|
3325
|
+
content: await G(n)
|
|
3262
3326
|
};
|
|
3263
3327
|
};
|
|
3264
3328
|
export {
|
|
3265
|
-
|
|
3329
|
+
$e as B,
|
|
3266
3330
|
qe as C,
|
|
3267
|
-
|
|
3331
|
+
Mt as F,
|
|
3268
3332
|
Jt as I,
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3333
|
+
ai as R,
|
|
3334
|
+
Xt as S,
|
|
3335
|
+
x as T,
|
|
3336
|
+
qn as V,
|
|
3337
|
+
g as _,
|
|
3274
3338
|
xe as a,
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3339
|
+
Z as b,
|
|
3340
|
+
it as c,
|
|
3341
|
+
oe as d,
|
|
3342
|
+
K as e,
|
|
3343
|
+
li as f,
|
|
3280
3344
|
Ze as g,
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3345
|
+
Ut as h,
|
|
3346
|
+
ti as i,
|
|
3347
|
+
Un as j,
|
|
3348
|
+
R as k,
|
|
3349
|
+
fo as l,
|
|
3350
|
+
Gn as m,
|
|
3351
|
+
ho as n,
|
|
3288
3352
|
Le as o,
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3353
|
+
G as p,
|
|
3354
|
+
ri as q,
|
|
3355
|
+
Ao as r,
|
|
3356
|
+
ci as s,
|
|
3357
|
+
ii as t,
|
|
3358
|
+
We as u,
|
|
3359
|
+
si as v,
|
|
3360
|
+
zo as w,
|
|
3361
|
+
di as x,
|
|
3362
|
+
oi as y
|
|
3299
3363
|
};
|