@builder.io/sdk-vue 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -4
- package/package.json +1 -1
- package/vue2/lib/browser/{block-9d4161fb.cjs → block-8eb8a717.cjs} +2 -2
- package/vue2/lib/{edge/block-c6f466c0.js → browser/block-f46a2e5f.js} +7 -7
- package/vue2/lib/{node/block-styles-b947dfc5.js → browser/block-styles-5d933df0.js} +5 -5
- package/vue2/lib/{node/block-styles-c4974a44.cjs → browser/block-styles-c36b606c.cjs} +1 -1
- package/vue2/lib/browser/{block-wrapper-0d4fe902.js → block-wrapper-9032b3aa.js} +5 -5
- package/vue2/lib/browser/{block-wrapper-3157e1bc.cjs → block-wrapper-e68eb3ce.cjs} +1 -1
- package/vue2/lib/browser/blocks-wrapper-13a20963.js +74 -0
- package/vue2/lib/browser/blocks-wrapper-233d7a58.cjs +1 -0
- package/vue2/lib/{node/component-ref-7f93a1f0.cjs → browser/component-ref-3eabf9d3.cjs} +1 -1
- package/vue2/lib/{edge/component-ref-b3b70fa9.js → browser/component-ref-aff72404.js} +6 -6
- package/vue2/lib/browser/components/block/components/component-ref/component-ref.helpers.d.ts +1 -3
- package/vue2/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +1 -3
- package/vue2/lib/browser/components/blocks/blocks-wrapper.vue.d.ts +14 -0
- package/vue2/lib/browser/components/blocks/blocks.vue.d.ts +1 -1
- package/vue2/lib/browser/components/content/components/enable-editor.vue.d.ts +3 -0
- package/vue2/lib/browser/components/content/content.vue.d.ts +2 -0
- package/vue2/lib/browser/components/content-variants/content-variants.types.d.ts +16 -0
- package/vue2/lib/browser/components/content-variants/content-variants.vue.d.ts +12 -0
- package/vue2/lib/browser/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/browser/{content-0575efdf.cjs → content-01c5295f.cjs} +1 -1
- package/vue2/lib/{edge/content-90700d7e.js → browser/content-5ff1bf50.js} +29 -23
- package/vue2/lib/browser/context/builder.context.d.ts +2 -0
- package/vue2/lib/browser/context/types.d.ts +2 -1
- package/vue2/lib/{node/css-97122c97.js → browser/css-0e1a5906.js} +1 -1
- package/vue2/lib/browser/{css-9cb1ef7e.cjs → css-8f0dfb3a.cjs} +1 -1
- package/vue2/lib/browser/enable-editor-79943def.cjs +1 -0
- package/vue2/lib/browser/{enable-editor-c377a256.js → enable-editor-ba199201.js} +25 -27
- package/vue2/lib/browser/{evaluate-2857c518.js → evaluate-c7aac0ee.js} +1 -1
- package/vue2/lib/browser/{evaluate-5a5f1e1a.cjs → evaluate-ec382d17.cjs} +1 -1
- package/vue2/lib/browser/functions/get-block-properties.d.ts +1 -1
- package/vue2/lib/browser/functions/transform-block-properties.d.ts +5 -2
- package/vue2/lib/browser/{get-block-actions-797d49a2.cjs → get-block-actions-34f93bab.cjs} +1 -1
- package/vue2/lib/{edge/get-block-actions-a4c6a740.js → browser/get-block-actions-80d8a41d.js} +2 -2
- package/vue2/lib/browser/{get-block-properties-eb393578.js → get-block-properties-b80c51fd.js} +10 -4
- package/vue2/lib/browser/get-block-properties-fcbe86d3.cjs +1 -0
- package/vue2/lib/browser/{get-processed-block-d2849656.js → get-processed-block-08346ffe.js} +2 -2
- package/vue2/lib/browser/{get-processed-block-e9eb76d5.cjs → get-processed-block-bb410f6f.cjs} +1 -1
- package/vue2/lib/{node/index-f82ca488.cjs → browser/index-4d603d94.cjs} +7 -7
- package/vue2/lib/{edge/index-22fb0dfe.js → browser/index-d4551a7a.js} +110 -103
- package/vue2/lib/browser/index-helpers/blocks-exports.d.ts +12 -0
- package/vue2/lib/browser/index.cjs +1 -1
- package/vue2/lib/browser/index.js +1 -1
- package/vue2/lib/{edge/inlined-script-f5a56ea4.js → browser/inlined-script-18dd0beb.js} +1 -1
- package/vue2/lib/browser/{inlined-script-166d99c7.cjs → inlined-script-ff6b73ba.cjs} +1 -1
- package/vue2/lib/browser/{inlined-styles-4c4a89e2.cjs → inlined-styles-3c12a021.cjs} +1 -1
- package/vue2/lib/{node/inlined-styles-4fa88e65.js → browser/inlined-styles-b687d7f1.js} +1 -1
- package/vue2/lib/{node/interactive-element-f08c324e.cjs → browser/interactive-element-52eda23c.cjs} +1 -1
- package/vue2/lib/{node/interactive-element-f46aae31.js → browser/interactive-element-91f198a4.js} +5 -5
- package/vue2/lib/{node/repeated-block-fe5a6df8.js → browser/repeated-block-6a55f793.js} +2 -2
- package/vue2/lib/{node/repeated-block-5d832619.cjs → browser/repeated-block-956e883f.cjs} +1 -1
- package/vue2/lib/browser/style.css +1 -1
- package/vue2/lib/browser/{styles-3945b4c7.js → styles-36c9fddb.js} +2 -2
- package/vue2/lib/{node/styles-85761eb4.cjs → browser/styles-8dc5678c.cjs} +2 -2
- package/vue2/lib/browser/types/enforced-partials.d.ts +7 -2
- package/vue2/lib/{browser/block-f5679152.js → edge/block-3d9fb7c2.js} +7 -7
- package/vue2/lib/{node/block-f9029bc3.cjs → edge/block-f15be379.cjs} +2 -2
- package/vue2/lib/edge/{block-styles-37805084.js → block-styles-8d163d7c.js} +5 -5
- package/vue2/lib/edge/{block-styles-adc484c6.cjs → block-styles-b8533af9.cjs} +1 -1
- package/vue2/lib/{node/block-wrapper-04b443cd.js → edge/block-wrapper-5c00ae5e.js} +5 -5
- package/vue2/lib/{node/block-wrapper-8ba974d4.cjs → edge/block-wrapper-aaa3ed0e.cjs} +1 -1
- package/vue2/lib/edge/blocks-wrapper-61df90f4.js +74 -0
- package/vue2/lib/edge/blocks-wrapper-69c07fcc.cjs +1 -0
- package/vue2/lib/{browser/component-ref-c51b0a20.cjs → edge/component-ref-0f3a0ba1.cjs} +1 -1
- package/vue2/lib/{node/component-ref-5f0d480f.js → edge/component-ref-193f3231.js} +6 -6
- package/vue2/lib/edge/components/block/components/component-ref/component-ref.helpers.d.ts +1 -3
- package/vue2/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +1 -3
- package/vue2/lib/edge/components/blocks/blocks-wrapper.vue.d.ts +14 -0
- package/vue2/lib/edge/components/blocks/blocks.vue.d.ts +1 -1
- package/vue2/lib/edge/components/content/components/enable-editor.vue.d.ts +3 -0
- package/vue2/lib/edge/components/content/content.vue.d.ts +2 -0
- package/vue2/lib/edge/components/content-variants/content-variants.types.d.ts +16 -0
- package/vue2/lib/edge/components/content-variants/content-variants.vue.d.ts +12 -0
- package/vue2/lib/edge/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/{browser/content-84bda2e9.js → edge/content-0e433688.js} +29 -23
- package/vue2/lib/{node/content-a860398a.cjs → edge/content-deb91a9b.cjs} +1 -1
- package/vue2/lib/edge/context/builder.context.d.ts +2 -0
- package/vue2/lib/edge/context/types.d.ts +2 -1
- package/vue2/lib/{browser/css-bdeda4e4.js → edge/css-81e2e40c.js} +1 -1
- package/vue2/lib/{node/css-fb2674c8.cjs → edge/css-a72ded40.cjs} +1 -1
- package/vue2/lib/edge/enable-editor-27dc580b.cjs +1 -0
- package/vue2/lib/{node/enable-editor-df62e3bf.js → edge/enable-editor-cd9aa0aa.js} +25 -27
- package/vue2/lib/edge/{evaluate-4bd2a851.cjs → evaluate-128da0ac.cjs} +1 -1
- package/vue2/lib/edge/{evaluate-2a5e2028.js → evaluate-8d0bbfbd.js} +1 -1
- package/vue2/lib/edge/functions/get-block-properties.d.ts +1 -1
- package/vue2/lib/edge/functions/transform-block-properties.d.ts +5 -2
- package/vue2/lib/edge/{get-block-actions-84b02e58.cjs → get-block-actions-1b4a42bd.cjs} +1 -1
- package/vue2/lib/{node/get-block-actions-035815cd.js → edge/get-block-actions-b804a4ed.js} +2 -2
- package/vue2/lib/{node/get-block-properties-b3de78f4.js → edge/get-block-properties-248979b7.js} +10 -4
- package/vue2/lib/edge/get-block-properties-91cdf9bd.cjs +1 -0
- package/vue2/lib/edge/{get-processed-block-8f70184a.cjs → get-processed-block-08d699f0.cjs} +1 -1
- package/vue2/lib/{node/get-processed-block-e16b5f0b.js → edge/get-processed-block-9ad00b6e.js} +2 -2
- package/vue2/lib/{browser/index-1fdc0dd8.js → edge/index-23a8bb60.js} +110 -103
- package/vue2/lib/edge/{index-cf208007.cjs → index-4db92fa7.cjs} +7 -7
- package/vue2/lib/edge/index-helpers/blocks-exports.d.ts +12 -0
- package/vue2/lib/edge/index.cjs +1 -1
- package/vue2/lib/edge/index.js +1 -1
- package/vue2/lib/{node/inlined-script-a6f84120.js → edge/inlined-script-3796a498.js} +1 -1
- package/vue2/lib/edge/{inlined-script-f460fc92.cjs → inlined-script-e880446d.cjs} +1 -1
- package/vue2/lib/edge/{inlined-styles-ea805c3d.js → inlined-styles-ae4fbc9f.js} +1 -1
- package/vue2/lib/edge/{inlined-styles-c9c77496.cjs → inlined-styles-ae989bfa.cjs} +1 -1
- package/vue2/lib/{browser/interactive-element-f3bc9b6c.js → edge/interactive-element-4613d798.js} +5 -5
- package/vue2/lib/edge/{interactive-element-d909635d.cjs → interactive-element-e0de8a75.cjs} +1 -1
- package/vue2/lib/{browser/repeated-block-8c6f0ef0.cjs → edge/repeated-block-061a93e5.cjs} +1 -1
- package/vue2/lib/{browser/repeated-block-59ab7fe5.js → edge/repeated-block-277f2b40.js} +2 -2
- package/vue2/lib/edge/style.css +1 -1
- package/vue2/lib/{browser/styles-0fbadb80.cjs → edge/styles-290ae837.cjs} +2 -2
- package/vue2/lib/edge/{styles-8840ca47.js → styles-cca4b08e.js} +2 -2
- package/vue2/lib/edge/types/enforced-partials.d.ts +7 -2
- package/vue2/lib/node/{block-6dc57ba5.js → block-88d3d176.js} +7 -7
- package/vue2/lib/{edge/block-03548c5c.cjs → node/block-b586205d.cjs} +2 -2
- package/vue2/lib/{browser/block-styles-b76b4562.cjs → node/block-styles-471fd00b.cjs} +1 -1
- package/vue2/lib/{browser/block-styles-6ca785bb.js → node/block-styles-aba16bf4.js} +5 -5
- package/vue2/lib/{edge/block-wrapper-ff8027da.cjs → node/block-wrapper-c76e2259.cjs} +1 -1
- package/vue2/lib/{edge/block-wrapper-1d75af67.js → node/block-wrapper-d1dab513.js} +5 -5
- package/vue2/lib/node/blocks-wrapper-6dd528c4.js +74 -0
- package/vue2/lib/node/blocks-wrapper-9abf97bd.cjs +1 -0
- package/vue2/lib/{edge/component-ref-fc9c9d6b.cjs → node/component-ref-08e79b50.cjs} +1 -1
- package/vue2/lib/{browser/component-ref-d59047de.js → node/component-ref-3ee361bc.js} +6 -6
- package/vue2/lib/node/components/block/components/component-ref/component-ref.helpers.d.ts +1 -3
- package/vue2/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +1 -3
- package/vue2/lib/node/components/blocks/blocks-wrapper.vue.d.ts +14 -0
- package/vue2/lib/node/components/blocks/blocks.vue.d.ts +1 -1
- package/vue2/lib/node/components/content/components/enable-editor.vue.d.ts +3 -0
- package/vue2/lib/node/components/content/content.vue.d.ts +2 -0
- package/vue2/lib/node/components/content-variants/content-variants.types.d.ts +16 -0
- package/vue2/lib/node/components/content-variants/content-variants.vue.d.ts +12 -0
- package/vue2/lib/node/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/node/{content-b604b895.js → content-3d542f91.js} +29 -23
- package/vue2/lib/{edge/content-e5850b95.cjs → node/content-d8091f69.cjs} +1 -1
- package/vue2/lib/node/context/builder.context.d.ts +2 -0
- package/vue2/lib/node/context/types.d.ts +2 -1
- package/vue2/lib/{edge/css-5dcb14df.cjs → node/css-f88973d9.cjs} +1 -1
- package/vue2/lib/{edge/css-99493b5d.js → node/css-fc678131.js} +1 -1
- package/vue2/lib/{edge/enable-editor-81a0ad6d.js → node/enable-editor-7a3fcc5f.js} +25 -27
- package/vue2/lib/node/enable-editor-85e730f9.cjs +1 -0
- package/vue2/lib/node/{evaluate-44daeb3b.cjs → evaluate-10e29303.cjs} +1 -1
- package/vue2/lib/node/{evaluate-b86af327.js → evaluate-e38e24b8.js} +24 -23
- package/vue2/lib/node/functions/get-block-properties.d.ts +1 -1
- package/vue2/lib/node/functions/transform-block-properties.d.ts +5 -2
- package/vue2/lib/{browser/get-block-actions-6774e2de.js → node/get-block-actions-8c081856.js} +2 -2
- package/vue2/lib/node/{get-block-actions-0c98c4e4.cjs → get-block-actions-ac6479e1.cjs} +1 -1
- package/vue2/lib/{edge/get-block-properties-450803e5.js → node/get-block-properties-2a5dbda8.js} +10 -4
- package/vue2/lib/node/get-block-properties-81e3699e.cjs +1 -0
- package/vue2/lib/{edge/get-processed-block-1d7ecd6a.js → node/get-processed-block-ebacd599.js} +2 -2
- package/vue2/lib/node/{get-processed-block-34d0880b.cjs → get-processed-block-ebf5f46b.cjs} +1 -1
- package/vue2/lib/{browser/index-e56cba6d.cjs → node/index-d62c9232.cjs} +7 -7
- package/vue2/lib/node/{index-04eac5bd.js → index-ef12824d.js} +110 -103
- package/vue2/lib/node/index-helpers/blocks-exports.d.ts +12 -0
- package/vue2/lib/node/index.cjs +1 -1
- package/vue2/lib/node/index.js +1 -1
- package/vue2/lib/{browser/inlined-script-0fd7eea7.js → node/inlined-script-1cd578e5.js} +1 -1
- package/vue2/lib/node/{inlined-script-3d1617fb.cjs → inlined-script-88b1aa3e.cjs} +1 -1
- package/vue2/lib/{browser/inlined-styles-73447147.js → node/inlined-styles-1d3927dc.js} +1 -1
- package/vue2/lib/node/{inlined-styles-e70e3d2e.cjs → inlined-styles-91685244.cjs} +1 -1
- package/vue2/lib/{browser/interactive-element-772e6a3d.cjs → node/interactive-element-95a3909c.cjs} +1 -1
- package/vue2/lib/{edge/interactive-element-340237cb.js → node/interactive-element-97fabd2d.js} +5 -5
- package/vue2/lib/{edge/repeated-block-b32d9254.js → node/repeated-block-1bf29b19.js} +2 -2
- package/vue2/lib/{edge/repeated-block-d2b864a8.cjs → node/repeated-block-ef8d5bc1.cjs} +1 -1
- package/vue2/lib/node/style.css +1 -1
- package/vue2/lib/node/{styles-5a4adee9.js → styles-b6c2eccd.js} +2 -2
- package/vue2/lib/{edge/styles-8f4d5e0d.cjs → node/styles-c3cd7c3e.cjs} +2 -2
- package/vue2/lib/node/types/enforced-partials.d.ts +7 -2
- package/vue3/lib/{edge/block-wrapper.6ce0ef67.js → browser/block-wrapper.15e14a7d.js} +2 -2
- package/vue3/lib/{edge/block-wrapper.6a65a5d4.cjs → browser/block-wrapper.a7f5948e.cjs} +1 -1
- package/vue3/lib/browser/blocks/image/image.vue.d.ts +3 -3
- package/vue3/lib/{edge/component-ref.8741a80d.cjs → browser/component-ref.15d8ca5f.cjs} +1 -1
- package/vue3/lib/{edge/component-ref.6603a2a5.js → browser/component-ref.b4fe8508.js} +2 -2
- package/vue3/lib/browser/components/block/components/component-ref/component-ref.helpers.d.ts +1 -3
- package/vue3/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +1 -3
- package/vue3/lib/browser/components/blocks/blocks-wrapper.vue.d.ts +14 -0
- package/vue3/lib/browser/components/blocks/blocks.vue.d.ts +7 -7
- package/vue3/lib/browser/components/content/components/enable-editor.vue.d.ts +9 -0
- package/vue3/lib/browser/components/content/content.vue.d.ts +14 -0
- package/vue3/lib/browser/components/content-variants/content-variants.types.d.ts +16 -0
- package/vue3/lib/browser/components/content-variants/content-variants.vue.d.ts +12 -0
- package/vue3/lib/browser/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/browser/context/builder.context.d.ts +2 -0
- package/vue3/lib/browser/context/types.d.ts +2 -1
- package/vue3/lib/browser/functions/get-block-properties.d.ts +1 -1
- package/vue3/lib/browser/functions/transform-block-properties.d.ts +5 -2
- package/vue3/lib/browser/get-block-actions.1284f7f4.cjs +1 -0
- package/vue3/lib/{edge/get-block-actions.a147904d.js → browser/get-block-actions.25085dc6.js} +17 -11
- package/vue3/lib/browser/index-helpers/blocks-exports.d.ts +18 -6
- package/vue3/lib/browser/{index.dfff88fe.js → index.c84b511e.js} +675 -634
- package/vue3/lib/browser/index.cjs +1 -1
- package/vue3/lib/browser/{index.8871e74f.cjs → index.e038c54d.cjs} +19 -19
- package/vue3/lib/browser/index.js +1 -1
- package/vue3/lib/{edge/repeated-block.3cdac290.js → browser/repeated-block.c501aed0.js} +2 -2
- package/vue3/lib/browser/{repeated-block.fecd4553.cjs → repeated-block.eb1f9edd.cjs} +1 -1
- package/vue3/lib/browser/style.css +1 -1
- package/vue3/lib/browser/types/enforced-partials.d.ts +7 -2
- package/vue3/lib/{browser/block-wrapper.352385b7.js → edge/block-wrapper.695c0554.js} +2 -2
- package/vue3/lib/{browser/block-wrapper.5e6d25d7.cjs → edge/block-wrapper.9cca9b7b.cjs} +1 -1
- package/vue3/lib/edge/blocks/image/image.vue.d.ts +3 -3
- package/vue3/lib/{browser/component-ref.5c2938c9.cjs → edge/component-ref.50f222f3.cjs} +1 -1
- package/vue3/lib/{browser/component-ref.bf30bc42.js → edge/component-ref.5be0ad03.js} +2 -2
- package/vue3/lib/edge/components/block/components/component-ref/component-ref.helpers.d.ts +1 -3
- package/vue3/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +1 -3
- package/vue3/lib/edge/components/blocks/blocks-wrapper.vue.d.ts +14 -0
- package/vue3/lib/edge/components/blocks/blocks.vue.d.ts +7 -7
- package/vue3/lib/edge/components/content/components/enable-editor.vue.d.ts +9 -0
- package/vue3/lib/edge/components/content/content.vue.d.ts +14 -0
- package/vue3/lib/edge/components/content-variants/content-variants.types.d.ts +16 -0
- package/vue3/lib/edge/components/content-variants/content-variants.vue.d.ts +12 -0
- package/vue3/lib/edge/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/edge/context/builder.context.d.ts +2 -0
- package/vue3/lib/edge/context/types.d.ts +2 -1
- package/vue3/lib/edge/functions/get-block-properties.d.ts +1 -1
- package/vue3/lib/edge/functions/transform-block-properties.d.ts +5 -2
- package/vue3/lib/edge/get-block-actions.1d0e09b6.cjs +1 -0
- package/vue3/lib/{browser/get-block-actions.6a86c1e3.js → edge/get-block-actions.f2e5b517.js} +17 -11
- package/vue3/lib/edge/index-helpers/blocks-exports.d.ts +18 -6
- package/vue3/lib/edge/{index.7bae31e6.js → index.33299292.js} +846 -805
- package/vue3/lib/edge/{index.01b1f45a.cjs → index.99c2904d.cjs} +26 -26
- package/vue3/lib/edge/index.cjs +1 -1
- package/vue3/lib/edge/index.js +1 -1
- package/vue3/lib/{browser/repeated-block.16b97544.js → edge/repeated-block.14eebee4.js} +2 -2
- package/vue3/lib/edge/{repeated-block.7f5a9758.cjs → repeated-block.53e299ee.cjs} +1 -1
- package/vue3/lib/edge/style.css +1 -1
- package/vue3/lib/edge/types/enforced-partials.d.ts +7 -2
- package/vue3/lib/node/{block-wrapper.d4a48d58.cjs → block-wrapper.0a0c40cf.cjs} +1 -1
- package/vue3/lib/node/{block-wrapper.6198973e.js → block-wrapper.728d47ca.js} +2 -2
- package/vue3/lib/node/blocks/image/image.vue.d.ts +3 -3
- package/vue3/lib/node/{component-ref.d6bc01e4.cjs → component-ref.d5125dbe.cjs} +1 -1
- package/vue3/lib/node/{component-ref.a11780f4.js → component-ref.f9faaca2.js} +2 -2
- package/vue3/lib/node/components/block/components/component-ref/component-ref.helpers.d.ts +1 -3
- package/vue3/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +1 -3
- package/vue3/lib/node/components/blocks/blocks-wrapper.vue.d.ts +14 -0
- package/vue3/lib/node/components/blocks/blocks.vue.d.ts +7 -7
- package/vue3/lib/node/components/content/components/enable-editor.vue.d.ts +9 -0
- package/vue3/lib/node/components/content/content.vue.d.ts +14 -0
- package/vue3/lib/node/components/content-variants/content-variants.types.d.ts +16 -0
- package/vue3/lib/node/components/content-variants/content-variants.vue.d.ts +12 -0
- package/vue3/lib/node/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/node/context/builder.context.d.ts +2 -0
- package/vue3/lib/node/context/types.d.ts +2 -1
- package/vue3/lib/node/functions/get-block-properties.d.ts +1 -1
- package/vue3/lib/node/functions/transform-block-properties.d.ts +5 -2
- package/vue3/lib/node/get-block-actions.1079cc08.cjs +1 -0
- package/vue3/lib/node/{get-block-actions.a19931a2.js → get-block-actions.1b3dcb45.js} +17 -11
- package/vue3/lib/node/index-helpers/blocks-exports.d.ts +18 -6
- package/vue3/lib/node/{index.67294824.js → index.558533a1.js} +857 -810
- package/vue3/lib/node/index.6720f6e5.cjs +201 -0
- package/vue3/lib/node/index.cjs +1 -1
- package/vue3/lib/node/index.js +1 -1
- package/vue3/lib/node/{repeated-block.6106c352.js → repeated-block.38b9803d.js} +2 -2
- package/vue3/lib/node/{repeated-block.ab684d37.cjs → repeated-block.9d836783.cjs} +1 -1
- package/vue3/lib/node/style.css +1 -1
- package/vue3/lib/node/types/enforced-partials.d.ts +7 -2
- package/vue2/lib/browser/blocks-wrapper-02404286.cjs +0 -1
- package/vue2/lib/browser/blocks-wrapper-dc71efe8.js +0 -73
- package/vue2/lib/browser/enable-editor-c49316d4.cjs +0 -1
- package/vue2/lib/browser/functions/get-react-native-block-styles.d.ts +0 -7
- package/vue2/lib/browser/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/vue2/lib/browser/get-block-properties-b25a78e1.cjs +0 -1
- package/vue2/lib/edge/blocks-wrapper-e329b941.js +0 -73
- package/vue2/lib/edge/blocks-wrapper-ed7f6801.cjs +0 -1
- package/vue2/lib/edge/enable-editor-31a92cf5.cjs +0 -1
- package/vue2/lib/edge/functions/get-react-native-block-styles.d.ts +0 -7
- package/vue2/lib/edge/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/vue2/lib/edge/get-block-properties-a07f7705.cjs +0 -1
- package/vue2/lib/node/blocks-wrapper-2ebcec73.js +0 -73
- package/vue2/lib/node/blocks-wrapper-e32910ce.cjs +0 -1
- package/vue2/lib/node/enable-editor-cdf1803d.cjs +0 -1
- package/vue2/lib/node/functions/get-react-native-block-styles.d.ts +0 -7
- package/vue2/lib/node/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/vue2/lib/node/get-block-properties-d46ce865.cjs +0 -1
- package/vue3/lib/browser/functions/get-react-native-block-styles.d.ts +0 -7
- package/vue3/lib/browser/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/vue3/lib/browser/get-block-actions.f6ff7325.cjs +0 -1
- package/vue3/lib/edge/functions/get-react-native-block-styles.d.ts +0 -7
- package/vue3/lib/edge/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/vue3/lib/edge/get-block-actions.a9e5c4f5.cjs +0 -1
- package/vue3/lib/node/functions/get-react-native-block-styles.d.ts +0 -7
- package/vue3/lib/node/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/vue3/lib/node/get-block-actions.ecd370ea.cjs +0 -1
- package/vue3/lib/node/index.4291aa83.cjs +0 -201
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as b, openBlock as
|
|
3
|
-
function
|
|
2
|
+
import { defineComponent as b, openBlock as c, createElementBlock as p, mergeProps as w, toHandlers as N, toDisplayString as le, defineAsyncComponent as M, resolveComponent as k, Fragment as C, createBlock as y, createCommentVNode as f, renderList as B, withCtx as U, createVNode as W, h as Se, resolveDynamicComponent as Ce, renderSlot as x, createElementVNode as X, normalizeStyle as Z, normalizeClass as we, markRaw as Ye } from "vue";
|
|
3
|
+
function q(e = {}, t, n) {
|
|
4
4
|
const o = {};
|
|
5
|
-
for (const
|
|
6
|
-
if (!e[
|
|
5
|
+
for (const r in e) {
|
|
6
|
+
if (!e[r] || n && !r.startsWith(t))
|
|
7
7
|
continue;
|
|
8
|
-
const
|
|
9
|
-
o[
|
|
8
|
+
const s = n ? r.replace(t, "") : r;
|
|
9
|
+
o[s] = e[r];
|
|
10
10
|
}
|
|
11
11
|
return o;
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const Qe = b({
|
|
14
14
|
name: "builder-button",
|
|
15
15
|
props: ["attributes", "text", "link", "openLinkInNewTab"],
|
|
16
16
|
data() {
|
|
17
|
-
return { filterAttrs:
|
|
17
|
+
return { filterAttrs: q };
|
|
18
18
|
},
|
|
19
19
|
methods: {
|
|
20
20
|
_classStringToObject(e) {
|
|
@@ -30,23 +30,23 @@ const Ye = b({
|
|
|
30
30
|
});
|
|
31
31
|
const g = (e, t) => {
|
|
32
32
|
const n = e.__vccOpts || e;
|
|
33
|
-
for (const [o,
|
|
34
|
-
n[o] =
|
|
33
|
+
for (const [o, r] of t)
|
|
34
|
+
n[o] = r;
|
|
35
35
|
return n;
|
|
36
|
-
},
|
|
37
|
-
function
|
|
38
|
-
return e.link ? (
|
|
36
|
+
}, Xe = ["href", "target"];
|
|
37
|
+
function Ze(e, t, n, o, r, s) {
|
|
38
|
+
return e.link ? (c(), p("a", w({
|
|
39
39
|
key: 0,
|
|
40
40
|
href: e.link,
|
|
41
41
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
42
42
|
role: "button"
|
|
43
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
43
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), N(e.filterAttrs(e.attributes, "v-on:", !0), !0)), le(e.text), 17, Xe)) : (c(), p("button", w({
|
|
44
44
|
key: 1,
|
|
45
45
|
style: e.attributes.style,
|
|
46
46
|
class: e._classStringToObject(e.attributes.class + " button-21azgz5avex")
|
|
47
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
47
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), N(e.filterAttrs(e.attributes, "v-on:", !0), !0)), le(e.text), 17));
|
|
48
48
|
}
|
|
49
|
-
const
|
|
49
|
+
const et = /* @__PURE__ */ g(Qe, [["render", Ze], ["__scopeId", "data-v-becdf225"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/button/button.vue"]]), tt = Symbol(), ee = {
|
|
50
50
|
Builder: {
|
|
51
51
|
content: null,
|
|
52
52
|
context: {},
|
|
@@ -57,14 +57,16 @@ const Ze = /* @__PURE__ */ g(Ye, [["render", Xe], ["__scopeId", "data-v-becdf225
|
|
|
57
57
|
apiKey: null,
|
|
58
58
|
apiVersion: void 0,
|
|
59
59
|
componentInfos: {},
|
|
60
|
-
inheritedStyles: {}
|
|
60
|
+
inheritedStyles: {},
|
|
61
|
+
BlocksWrapper: "div",
|
|
62
|
+
BlocksWrapperProps: {}
|
|
61
63
|
},
|
|
62
|
-
key: et
|
|
63
|
-
}, tt = Symbol(), we = {
|
|
64
|
-
Components: { registeredComponents: {} },
|
|
65
64
|
key: tt
|
|
65
|
+
}, nt = Symbol(), Ie = {
|
|
66
|
+
Components: { registeredComponents: {} },
|
|
67
|
+
key: nt
|
|
66
68
|
};
|
|
67
|
-
function
|
|
69
|
+
function ot(e) {
|
|
68
70
|
var t;
|
|
69
71
|
return {
|
|
70
72
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -72,44 +74,44 @@ function nt(e) {
|
|
|
72
74
|
builderBlock: e
|
|
73
75
|
};
|
|
74
76
|
}
|
|
75
|
-
const R = "vue3",
|
|
77
|
+
const R = "vue3", rt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), P = (e) => e != null, st = (e) => Object.entries(e).map(([n, o]) => {
|
|
76
78
|
if (typeof o == "string")
|
|
77
|
-
return `${
|
|
78
|
-
}).filter(
|
|
79
|
-
`),
|
|
79
|
+
return `${rt(n)}: ${o};`;
|
|
80
|
+
}).filter(P), it = (e) => st(e).join(`
|
|
81
|
+
`), Y = ({
|
|
80
82
|
mediaQuery: e,
|
|
81
83
|
className: t,
|
|
82
84
|
styles: n
|
|
83
85
|
}) => {
|
|
84
86
|
const o = `.${t} {
|
|
85
|
-
${
|
|
87
|
+
${it(n)}
|
|
86
88
|
}`;
|
|
87
89
|
return e ? `${e} {
|
|
88
90
|
${o}
|
|
89
91
|
}` : o;
|
|
90
|
-
},
|
|
91
|
-
log: (...e) => console.log(
|
|
92
|
-
error: (...e) => console.error(
|
|
93
|
-
warn: (...e) => console.warn(
|
|
94
|
-
debug: (...e) => console.debug(
|
|
92
|
+
}, L = "[Builder.io]: ", $ = {
|
|
93
|
+
log: (...e) => console.log(L, ...e),
|
|
94
|
+
error: (...e) => console.error(L, ...e),
|
|
95
|
+
warn: (...e) => console.warn(L, ...e),
|
|
96
|
+
debug: (...e) => console.debug(L, ...e)
|
|
95
97
|
};
|
|
96
98
|
function v() {
|
|
97
99
|
return typeof window < "u" && typeof document < "u";
|
|
98
100
|
}
|
|
99
|
-
function
|
|
101
|
+
function at() {
|
|
100
102
|
return v() && window.self !== window.top;
|
|
101
103
|
}
|
|
102
104
|
function T() {
|
|
103
|
-
return
|
|
105
|
+
return at() && (R === "reactNative" || window.location.search.indexOf("builder.frameEditing=") !== -1);
|
|
104
106
|
}
|
|
105
|
-
const
|
|
107
|
+
const lt = () => {
|
|
106
108
|
if (v()) {
|
|
107
109
|
const e = new URL(location.href);
|
|
108
110
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
109
111
|
} else
|
|
110
112
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
111
|
-
},
|
|
112
|
-
const e =
|
|
113
|
+
}, ct = () => typeof navigator == "object" && navigator.userAgent || "", $e = () => {
|
|
114
|
+
const e = ct(), t = {
|
|
113
115
|
Android() {
|
|
114
116
|
return e.match(/Android/i);
|
|
115
117
|
},
|
|
@@ -128,13 +130,13 @@ const at = () => {
|
|
|
128
130
|
any() {
|
|
129
131
|
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || R === "reactNative";
|
|
130
132
|
}
|
|
131
|
-
}, n = e.match(/Tablet|iPad/i), o =
|
|
133
|
+
}, n = e.match(/Tablet|iPad/i), o = lt();
|
|
132
134
|
return {
|
|
133
135
|
urlPath: o == null ? void 0 : o.pathname,
|
|
134
136
|
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
135
137
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
136
138
|
};
|
|
137
|
-
},
|
|
139
|
+
}, dt = ({
|
|
138
140
|
builder: e,
|
|
139
141
|
context: t,
|
|
140
142
|
event: n,
|
|
@@ -145,69 +147,69 @@ const at = () => {
|
|
|
145
147
|
builder: e,
|
|
146
148
|
context: t,
|
|
147
149
|
event: n
|
|
148
|
-
}),
|
|
150
|
+
}), ut = () => ({
|
|
149
151
|
isEditing: T(),
|
|
150
152
|
isBrowser: v(),
|
|
151
153
|
isServer: !v(),
|
|
152
|
-
getUserAttributes: () =>
|
|
153
|
-
}),
|
|
154
|
+
getUserAttributes: () => $e()
|
|
155
|
+
}), pt = (e, {
|
|
154
156
|
isExpression: t = !0
|
|
155
157
|
}) => t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, ce = ({
|
|
156
158
|
code: e,
|
|
157
159
|
builder: t,
|
|
158
160
|
context: n,
|
|
159
161
|
event: o,
|
|
160
|
-
localState:
|
|
161
|
-
rootSetState:
|
|
162
|
-
rootState:
|
|
162
|
+
localState: r,
|
|
163
|
+
rootSetState: s,
|
|
164
|
+
rootState: i
|
|
163
165
|
}) => {
|
|
164
|
-
const a =
|
|
166
|
+
const a = dt({
|
|
165
167
|
builder: t,
|
|
166
168
|
context: n,
|
|
167
169
|
event: o,
|
|
168
|
-
state:
|
|
170
|
+
state: mt(i, r, s)
|
|
169
171
|
});
|
|
170
172
|
return new Function(...a.map(([l]) => l), e)(...a.map(([, l]) => l));
|
|
171
173
|
};
|
|
172
|
-
function
|
|
174
|
+
function mt(e, t, n) {
|
|
173
175
|
if (e === t)
|
|
174
176
|
throw new Error("rootState === localState");
|
|
175
177
|
return new Proxy(e, {
|
|
176
|
-
get: (o,
|
|
177
|
-
set: (o,
|
|
178
|
-
if (t &&
|
|
178
|
+
get: (o, r) => t && r in t ? t[r] : e[r],
|
|
179
|
+
set: (o, r, s) => {
|
|
180
|
+
if (t && r in t)
|
|
179
181
|
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
180
|
-
return e[
|
|
182
|
+
return e[r] = s, n == null || n(e), !0;
|
|
181
183
|
}
|
|
182
184
|
});
|
|
183
185
|
}
|
|
184
|
-
const
|
|
185
|
-
function
|
|
186
|
+
const ht = (e) => (v(), ce(e));
|
|
187
|
+
function D({
|
|
186
188
|
code: e,
|
|
187
189
|
context: t,
|
|
188
190
|
localState: n,
|
|
189
191
|
rootState: o,
|
|
190
|
-
rootSetState:
|
|
191
|
-
event:
|
|
192
|
-
isExpression:
|
|
192
|
+
rootSetState: r,
|
|
193
|
+
event: s,
|
|
194
|
+
isExpression: i = !0
|
|
193
195
|
}) {
|
|
194
196
|
if (e === "") {
|
|
195
197
|
$.warn("Skipping evaluation of empty code block.");
|
|
196
198
|
return;
|
|
197
199
|
}
|
|
198
200
|
const a = {
|
|
199
|
-
code:
|
|
200
|
-
isExpression:
|
|
201
|
+
code: pt(e, {
|
|
202
|
+
isExpression: i
|
|
201
203
|
}),
|
|
202
|
-
builder:
|
|
204
|
+
builder: ut(),
|
|
203
205
|
context: t,
|
|
204
|
-
event:
|
|
205
|
-
rootSetState:
|
|
206
|
+
event: s,
|
|
207
|
+
rootSetState: r,
|
|
206
208
|
rootState: o,
|
|
207
209
|
localState: n
|
|
208
210
|
};
|
|
209
211
|
try {
|
|
210
|
-
return
|
|
212
|
+
return ht(a);
|
|
211
213
|
} catch (l) {
|
|
212
214
|
$.error("Failed code evaluation: " + l.message, {
|
|
213
215
|
code: e
|
|
@@ -215,82 +217,82 @@ function K({
|
|
|
215
217
|
return;
|
|
216
218
|
}
|
|
217
219
|
}
|
|
218
|
-
const F = (e) => JSON.parse(JSON.stringify(e)),
|
|
220
|
+
const F = (e) => JSON.parse(JSON.stringify(e)), ft = (e, t, n) => {
|
|
219
221
|
if (Object(e) !== e)
|
|
220
222
|
return e;
|
|
221
223
|
const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
222
|
-
return o.slice(0, -1).reduce((
|
|
224
|
+
return o.slice(0, -1).reduce((r, s, i) => Object(r[s]) === r[s] ? r[s] : r[s] = Math.abs(Number(o[i + 1])) >> 0 === +o[i + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
|
|
223
225
|
};
|
|
224
|
-
const
|
|
226
|
+
const bt = ({
|
|
225
227
|
block: e,
|
|
226
228
|
context: t,
|
|
227
229
|
localState: n,
|
|
228
230
|
rootState: o,
|
|
229
|
-
rootSetState:
|
|
231
|
+
rootSetState: r
|
|
230
232
|
}) => {
|
|
231
233
|
if (!e.bindings)
|
|
232
234
|
return e;
|
|
233
|
-
const
|
|
234
|
-
...
|
|
235
|
+
const s = F(e), i = {
|
|
236
|
+
...s,
|
|
235
237
|
properties: {
|
|
236
|
-
...
|
|
238
|
+
...s.properties
|
|
237
239
|
},
|
|
238
240
|
actions: {
|
|
239
|
-
...
|
|
241
|
+
...s.actions
|
|
240
242
|
}
|
|
241
243
|
};
|
|
242
244
|
for (const a in e.bindings) {
|
|
243
|
-
const l = e.bindings[a],
|
|
245
|
+
const l = e.bindings[a], d = D({
|
|
244
246
|
code: l,
|
|
245
247
|
localState: n,
|
|
246
248
|
rootState: o,
|
|
247
|
-
rootSetState:
|
|
249
|
+
rootSetState: r,
|
|
248
250
|
context: t
|
|
249
251
|
});
|
|
250
|
-
|
|
252
|
+
ft(i, a, d);
|
|
251
253
|
}
|
|
252
|
-
return
|
|
254
|
+
return i;
|
|
253
255
|
};
|
|
254
|
-
function
|
|
256
|
+
function z({
|
|
255
257
|
block: e,
|
|
256
258
|
context: t,
|
|
257
259
|
shouldEvaluateBindings: n,
|
|
258
260
|
localState: o,
|
|
259
|
-
rootState:
|
|
260
|
-
rootSetState:
|
|
261
|
+
rootState: r,
|
|
262
|
+
rootSetState: s
|
|
261
263
|
}) {
|
|
262
|
-
const
|
|
263
|
-
return n ?
|
|
264
|
-
block:
|
|
264
|
+
const i = e;
|
|
265
|
+
return n ? bt({
|
|
266
|
+
block: i,
|
|
265
267
|
localState: o,
|
|
266
|
-
rootState:
|
|
267
|
-
rootSetState:
|
|
268
|
+
rootState: r,
|
|
269
|
+
rootSetState: s,
|
|
268
270
|
context: t
|
|
269
|
-
}) :
|
|
271
|
+
}) : i;
|
|
270
272
|
}
|
|
271
|
-
const
|
|
273
|
+
const gt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], kt = (e) => typeof e == "string" && gt.includes(e.toLowerCase()), yt = ({
|
|
272
274
|
block: e,
|
|
273
275
|
context: t,
|
|
274
276
|
registeredComponents: n
|
|
275
277
|
}) => {
|
|
276
|
-
var
|
|
277
|
-
const o = (
|
|
278
|
+
var s;
|
|
279
|
+
const o = (s = z({
|
|
278
280
|
block: e,
|
|
279
281
|
localState: t.localState,
|
|
280
282
|
rootState: t.rootState,
|
|
281
283
|
rootSetState: t.rootSetState,
|
|
282
284
|
context: t.context,
|
|
283
285
|
shouldEvaluateBindings: !1
|
|
284
|
-
}).component) == null ? void 0 :
|
|
286
|
+
}).component) == null ? void 0 : s.name;
|
|
285
287
|
if (!o)
|
|
286
288
|
return null;
|
|
287
|
-
const
|
|
288
|
-
if (
|
|
289
|
-
return
|
|
289
|
+
const r = n[o];
|
|
290
|
+
if (r)
|
|
291
|
+
return r;
|
|
290
292
|
console.warn(`
|
|
291
293
|
Could not find a registered component named "${o}".
|
|
292
294
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
293
|
-
},
|
|
295
|
+
}, vt = ({
|
|
294
296
|
block: e,
|
|
295
297
|
context: t
|
|
296
298
|
}) => {
|
|
@@ -300,60 +302,60 @@ const bt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
300
302
|
} = e;
|
|
301
303
|
if (!(n != null && n.collection))
|
|
302
304
|
return;
|
|
303
|
-
const
|
|
305
|
+
const r = D({
|
|
304
306
|
code: n.collection,
|
|
305
307
|
localState: t.localState,
|
|
306
308
|
rootState: t.rootState,
|
|
307
309
|
rootSetState: t.rootSetState,
|
|
308
310
|
context: t.context
|
|
309
311
|
});
|
|
310
|
-
if (!Array.isArray(
|
|
312
|
+
if (!Array.isArray(r))
|
|
311
313
|
return;
|
|
312
|
-
const
|
|
313
|
-
return
|
|
314
|
+
const s = n.collection.split(".").pop(), i = n.itemName || (s ? s + "Item" : "item");
|
|
315
|
+
return r.map((l, d) => ({
|
|
314
316
|
context: {
|
|
315
317
|
...t,
|
|
316
318
|
localState: {
|
|
317
319
|
...t.localState,
|
|
318
|
-
$index:
|
|
320
|
+
$index: d,
|
|
319
321
|
$item: l,
|
|
320
|
-
[
|
|
321
|
-
[`$${
|
|
322
|
+
[i]: l,
|
|
323
|
+
[`$${i}Index`]: d
|
|
322
324
|
}
|
|
323
325
|
},
|
|
324
326
|
block: o
|
|
325
327
|
}));
|
|
326
|
-
},
|
|
328
|
+
}, St = () => Promise.resolve().then(() => xt).then((e) => e.default).catch((e) => {
|
|
327
329
|
throw console.error(
|
|
328
330
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
329
331
|
e
|
|
330
332
|
), e;
|
|
331
|
-
}),
|
|
333
|
+
}), Ct = () => import("./block-wrapper.15e14a7d.js").then((e) => e.default).catch((e) => {
|
|
332
334
|
throw console.error(
|
|
333
335
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
334
336
|
e
|
|
335
337
|
), e;
|
|
336
|
-
}),
|
|
338
|
+
}), wt = () => import("./component-ref.b4fe8508.js").then((e) => e.default).catch((e) => {
|
|
337
339
|
throw console.error(
|
|
338
340
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
339
341
|
e
|
|
340
342
|
), e;
|
|
341
|
-
}),
|
|
343
|
+
}), It = () => import("./repeated-block.c501aed0.js").then((e) => e.default).catch((e) => {
|
|
342
344
|
throw console.error(
|
|
343
345
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
344
346
|
e
|
|
345
347
|
), e;
|
|
346
|
-
}),
|
|
348
|
+
}), $t = b({
|
|
347
349
|
name: "block",
|
|
348
350
|
components: {
|
|
349
|
-
ComponentRef:
|
|
350
|
-
BlockWrapper:
|
|
351
|
-
RepeatedBlock:
|
|
352
|
-
BlockStyles:
|
|
351
|
+
ComponentRef: M(wt),
|
|
352
|
+
BlockWrapper: M(Ct),
|
|
353
|
+
RepeatedBlock: M(It),
|
|
354
|
+
BlockStyles: M(St)
|
|
353
355
|
},
|
|
354
356
|
props: ["block", "context", "registeredComponents"],
|
|
355
357
|
data() {
|
|
356
|
-
return { childrenContext: this.context, isEmptyHtmlElement:
|
|
358
|
+
return { childrenContext: this.context, isEmptyHtmlElement: kt };
|
|
357
359
|
},
|
|
358
360
|
computed: {
|
|
359
361
|
blockComponent() {
|
|
@@ -364,14 +366,14 @@ const bt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
364
366
|
});
|
|
365
367
|
},
|
|
366
368
|
repeatItem() {
|
|
367
|
-
return
|
|
369
|
+
return vt({
|
|
368
370
|
block: this.block,
|
|
369
371
|
context: this.context
|
|
370
372
|
});
|
|
371
373
|
},
|
|
372
374
|
processedBlock() {
|
|
373
375
|
var e;
|
|
374
|
-
return (e = this.block.repeat) != null && e.collection ? this.block :
|
|
376
|
+
return (e = this.block.repeat) != null && e.collection ? this.block : z({
|
|
375
377
|
block: this.block,
|
|
376
378
|
localState: this.context.localState,
|
|
377
379
|
rootState: this.context.rootState,
|
|
@@ -395,12 +397,12 @@ const bt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
395
397
|
return !((t = this.blockComponent) != null && t.component) && !this.repeatItem ? (n = this.processedBlock.children) != null ? n : [] : [];
|
|
396
398
|
},
|
|
397
399
|
componentRefProps() {
|
|
398
|
-
var e, t, n, o,
|
|
400
|
+
var e, t, n, o, r, s;
|
|
399
401
|
return {
|
|
400
402
|
blockChildren: (e = this.processedBlock.children) != null ? e : [],
|
|
401
403
|
componentRef: (t = this.blockComponent) == null ? void 0 : t.component,
|
|
402
404
|
componentOptions: {
|
|
403
|
-
...
|
|
405
|
+
...ot(this.processedBlock),
|
|
404
406
|
builderContext: this.context,
|
|
405
407
|
...((n = this.blockComponent) == null ? void 0 : n.name) === "Symbol" || ((o = this.blockComponent) == null ? void 0 : o.name) === "Columns" ? {
|
|
406
408
|
builderComponents: this.registeredComponents
|
|
@@ -409,17 +411,17 @@ const bt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
409
411
|
context: this.childrenContext,
|
|
410
412
|
registeredComponents: this.registeredComponents,
|
|
411
413
|
builderBlock: this.processedBlock,
|
|
412
|
-
includeBlockProps: ((
|
|
413
|
-
isInteractive: !((
|
|
414
|
+
includeBlockProps: ((r = this.blockComponent) == null ? void 0 : r.noWrap) === !0,
|
|
415
|
+
isInteractive: !((s = this.blockComponent) != null && s.isRSC)
|
|
414
416
|
};
|
|
415
417
|
}
|
|
416
418
|
}
|
|
417
419
|
});
|
|
418
|
-
function
|
|
419
|
-
var
|
|
420
|
-
const
|
|
421
|
-
return e.canShowBlock ? (
|
|
422
|
-
(
|
|
420
|
+
function Rt(e, t, n, o, r, s) {
|
|
421
|
+
var m;
|
|
422
|
+
const i = k("block-wrapper"), a = k("repeated-block"), l = k("component-ref"), d = k("block", !0), u = k("block-styles");
|
|
423
|
+
return e.canShowBlock ? (c(), p(C, { key: 0 }, [
|
|
424
|
+
(m = e.blockComponent) != null && m.noWrap ? (c(), y(l, {
|
|
423
425
|
key: 1,
|
|
424
426
|
componentRef: e.componentRefProps.componentRef,
|
|
425
427
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -429,29 +431,29 @@ function $t(e, t, n, o, i, r) {
|
|
|
429
431
|
builderBlock: e.componentRefProps.builderBlock,
|
|
430
432
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
431
433
|
isInteractive: e.componentRefProps.isInteractive
|
|
432
|
-
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"])) : (
|
|
433
|
-
e.isEmptyHtmlElement(e.Tag) ? (
|
|
434
|
+
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"])) : (c(), p(C, { key: 0 }, [
|
|
435
|
+
e.isEmptyHtmlElement(e.Tag) ? (c(), y(i, {
|
|
434
436
|
key: 0,
|
|
435
437
|
Wrapper: e.Tag,
|
|
436
438
|
block: e.processedBlock,
|
|
437
439
|
context: e.context,
|
|
438
440
|
hasChildren: !1
|
|
439
441
|
}, null, 8, ["Wrapper", "block", "context"])) : f("v-if", !0),
|
|
440
|
-
!e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (
|
|
442
|
+
!e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (c(!0), p(C, { key: 1 }, B(e.repeatItem, (h, S) => (c(), y(a, {
|
|
441
443
|
key: S,
|
|
442
|
-
repeatContext:
|
|
443
|
-
block:
|
|
444
|
+
repeatContext: h.context,
|
|
445
|
+
block: h.block,
|
|
444
446
|
registeredComponents: e.registeredComponents
|
|
445
447
|
}, null, 8, ["repeatContext", "block", "registeredComponents"]))), 128)) : f("v-if", !0),
|
|
446
|
-
!e.isEmptyHtmlElement(e.Tag) && !e.repeatItem ? (
|
|
448
|
+
!e.isEmptyHtmlElement(e.Tag) && !e.repeatItem ? (c(), y(i, {
|
|
447
449
|
key: 2,
|
|
448
450
|
Wrapper: e.Tag,
|
|
449
451
|
block: e.processedBlock,
|
|
450
452
|
context: e.context,
|
|
451
453
|
hasChildren: !0
|
|
452
454
|
}, {
|
|
453
|
-
default:
|
|
454
|
-
|
|
455
|
+
default: U(() => [
|
|
456
|
+
W(l, {
|
|
455
457
|
componentRef: e.componentRefProps.componentRef,
|
|
456
458
|
componentOptions: e.componentRefProps.componentOptions,
|
|
457
459
|
blockChildren: e.componentRefProps.blockChildren,
|
|
@@ -461,15 +463,15 @@ function $t(e, t, n, o, i, r) {
|
|
|
461
463
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
462
464
|
isInteractive: e.componentRefProps.isInteractive
|
|
463
465
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
464
|
-
(
|
|
465
|
-
key: "block-" +
|
|
466
|
-
block:
|
|
466
|
+
(c(!0), p(C, null, B(e.childrenWithoutParentComponent, (h, S) => (c(), y(d, {
|
|
467
|
+
key: "block-" + h.id,
|
|
468
|
+
block: h,
|
|
467
469
|
context: e.childrenContext,
|
|
468
470
|
registeredComponents: e.registeredComponents
|
|
469
471
|
}, null, 8, ["block", "context", "registeredComponents"]))), 128)),
|
|
470
|
-
(
|
|
471
|
-
key: "block-style-" +
|
|
472
|
-
block:
|
|
472
|
+
(c(!0), p(C, null, B(e.childrenWithoutParentComponent, (h, S) => (c(), y(u, {
|
|
473
|
+
key: "block-style-" + h.id,
|
|
474
|
+
block: h,
|
|
473
475
|
context: e.childrenContext
|
|
474
476
|
}, null, 8, ["block", "context"]))), 128))
|
|
475
477
|
]),
|
|
@@ -478,10 +480,10 @@ function $t(e, t, n, o, i, r) {
|
|
|
478
480
|
], 64))
|
|
479
481
|
], 64)) : f("v-if", !0);
|
|
480
482
|
}
|
|
481
|
-
const
|
|
483
|
+
const Re = /* @__PURE__ */ g($t, [["render", Rt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/block/block.vue"]]), or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
482
484
|
__proto__: null,
|
|
483
|
-
default:
|
|
484
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
485
|
+
default: Re
|
|
486
|
+
}, Symbol.toStringTag, { value: "Module" })), Te = {
|
|
485
487
|
small: {
|
|
486
488
|
min: 320,
|
|
487
489
|
default: 321,
|
|
@@ -497,11 +499,11 @@ const $e = /* @__PURE__ */ g(It, [["render", $t], ["__file", "/home/runner/work/
|
|
|
497
499
|
default: 991,
|
|
498
500
|
max: 1200
|
|
499
501
|
}
|
|
500
|
-
}, de = (e, t =
|
|
502
|
+
}, de = (e, t = Te) => `@media (max-width: ${t[e].max}px)`, Pe = ({
|
|
501
503
|
small: e,
|
|
502
504
|
medium: t
|
|
503
505
|
}) => {
|
|
504
|
-
const n = F(
|
|
506
|
+
const n = F(Te);
|
|
505
507
|
if (!e || !t)
|
|
506
508
|
return n;
|
|
507
509
|
const o = Math.floor(e / 2);
|
|
@@ -510,34 +512,34 @@ const $e = /* @__PURE__ */ g(It, [["render", $t], ["__file", "/home/runner/work/
|
|
|
510
512
|
min: o,
|
|
511
513
|
default: o + 1
|
|
512
514
|
};
|
|
513
|
-
const
|
|
515
|
+
const r = n.small.max + 1;
|
|
514
516
|
n.medium = {
|
|
515
517
|
max: t,
|
|
516
|
-
min:
|
|
517
|
-
default:
|
|
518
|
+
min: r,
|
|
519
|
+
default: r + 1
|
|
518
520
|
};
|
|
519
|
-
const
|
|
521
|
+
const s = n.medium.max + 1;
|
|
520
522
|
return n.large = {
|
|
521
523
|
max: 2e3,
|
|
522
|
-
min:
|
|
523
|
-
default:
|
|
524
|
+
min: s,
|
|
525
|
+
default: s + 1
|
|
524
526
|
}, n;
|
|
525
|
-
},
|
|
527
|
+
}, Tt = b({
|
|
526
528
|
render() {
|
|
527
529
|
return Se("style", { id: this.id, innerHTML: this.styles });
|
|
528
530
|
},
|
|
529
531
|
name: "inlined-styles",
|
|
530
532
|
props: ["styles", "id"]
|
|
531
|
-
}),
|
|
533
|
+
}), G = /* @__PURE__ */ g(Tt, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/inlined-styles.vue"]]), Pt = b({
|
|
532
534
|
name: "block-styles",
|
|
533
|
-
components: { InlinedStyles:
|
|
535
|
+
components: { InlinedStyles: G },
|
|
534
536
|
props: ["block", "context"],
|
|
535
537
|
data() {
|
|
536
538
|
return { TARGET: R };
|
|
537
539
|
},
|
|
538
540
|
computed: {
|
|
539
541
|
canShowBlock() {
|
|
540
|
-
const e =
|
|
542
|
+
const e = z({
|
|
541
543
|
block: this.block,
|
|
542
544
|
localState: this.context.localState,
|
|
543
545
|
rootState: this.context.rootState,
|
|
@@ -545,57 +547,64 @@ const $e = /* @__PURE__ */ g(It, [["render", $t], ["__file", "/home/runner/work/
|
|
|
545
547
|
context: this.context.context,
|
|
546
548
|
shouldEvaluateBindings: !0
|
|
547
549
|
});
|
|
548
|
-
return
|
|
550
|
+
return P(e.hide) ? !e.hide : P(e.show) ? e.show : !0;
|
|
549
551
|
},
|
|
550
552
|
css() {
|
|
551
|
-
var
|
|
552
|
-
const e =
|
|
553
|
+
var m;
|
|
554
|
+
const e = z({
|
|
553
555
|
block: this.block,
|
|
554
556
|
localState: this.context.localState,
|
|
555
557
|
rootState: this.context.rootState,
|
|
556
558
|
rootSetState: this.context.rootSetState,
|
|
557
559
|
context: this.context.context,
|
|
558
560
|
shouldEvaluateBindings: !0
|
|
559
|
-
}), t = e.responsiveStyles, n = this.context.content, o =
|
|
560
|
-
((
|
|
561
|
-
),
|
|
561
|
+
}), t = e.responsiveStyles, n = this.context.content, o = Pe(
|
|
562
|
+
((m = n == null ? void 0 : n.meta) == null ? void 0 : m.breakpoints) || {}
|
|
563
|
+
), r = t == null ? void 0 : t.large, s = t == null ? void 0 : t.medium, i = t == null ? void 0 : t.small, a = e.id;
|
|
562
564
|
if (!a)
|
|
563
565
|
return "";
|
|
564
|
-
const l =
|
|
566
|
+
const l = r ? Y({
|
|
565
567
|
className: a,
|
|
566
|
-
styles:
|
|
567
|
-
}) : "",
|
|
568
|
+
styles: r
|
|
569
|
+
}) : "", d = s ? Y({
|
|
568
570
|
className: a,
|
|
569
|
-
styles:
|
|
571
|
+
styles: s,
|
|
570
572
|
mediaQuery: de(
|
|
571
573
|
"medium",
|
|
572
574
|
o
|
|
573
575
|
)
|
|
574
|
-
}) : "",
|
|
576
|
+
}) : "", u = i ? Y({
|
|
575
577
|
className: a,
|
|
576
|
-
styles:
|
|
578
|
+
styles: i,
|
|
577
579
|
mediaQuery: de(
|
|
578
580
|
"small",
|
|
579
581
|
o
|
|
580
582
|
)
|
|
581
583
|
}) : "";
|
|
582
|
-
return [l,
|
|
584
|
+
return [l, d, u].join(" ");
|
|
583
585
|
}
|
|
584
586
|
}
|
|
585
587
|
});
|
|
586
|
-
function
|
|
587
|
-
const
|
|
588
|
-
return e.TARGET !== "reactNative" && e.css && e.canShowBlock ? (
|
|
588
|
+
function Et(e, t, n, o, r, s) {
|
|
589
|
+
const i = k("inlined-styles");
|
|
590
|
+
return e.TARGET !== "reactNative" && e.css && e.canShowBlock ? (c(), y(i, {
|
|
589
591
|
key: 0,
|
|
590
592
|
styles: e.css
|
|
591
593
|
}, null, 8, ["styles"])) : f("v-if", !0);
|
|
592
594
|
}
|
|
593
|
-
const
|
|
595
|
+
const Ee = /* @__PURE__ */ g(Pt, [["render", Et], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/block/components/block-styles.vue"]]), xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
594
596
|
__proto__: null,
|
|
595
|
-
default:
|
|
596
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
597
|
+
default: Ee
|
|
598
|
+
}, Symbol.toStringTag, { value: "Module" })), Bt = b({
|
|
597
599
|
name: "builder-blocks-wrapper",
|
|
598
|
-
props: [
|
|
600
|
+
props: [
|
|
601
|
+
"BlocksWrapper",
|
|
602
|
+
"blocks",
|
|
603
|
+
"parent",
|
|
604
|
+
"path",
|
|
605
|
+
"styleProp",
|
|
606
|
+
"BlocksWrapperProps"
|
|
607
|
+
],
|
|
599
608
|
computed: {
|
|
600
609
|
className() {
|
|
601
610
|
var e;
|
|
@@ -640,26 +649,28 @@ const xe = /* @__PURE__ */ g(Tt, [["render", xt], ["__file", "/home/runner/work/
|
|
|
640
649
|
}
|
|
641
650
|
}
|
|
642
651
|
});
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
class: e._classStringToObject(e.className + " div-178o76acnws"),
|
|
652
|
+
function Wt(e, t, n, o, r, s) {
|
|
653
|
+
return c(), y(Ce(e.BlocksWrapper), w({
|
|
654
|
+
class: e._classStringToObject(e.className + " component-178o76acnws"),
|
|
647
655
|
"builder-path": e.path,
|
|
648
656
|
"builder-parent-id": e.parent,
|
|
649
657
|
style: e.styleProp,
|
|
650
|
-
onClick:
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
}, {}),
|
|
654
|
-
|
|
655
|
-
|
|
658
|
+
onClick: (i) => e.onClick(),
|
|
659
|
+
onMouseEnter: (i) => e.onMouseEnter(),
|
|
660
|
+
onKeyPress: (i) => e.onClick()
|
|
661
|
+
}, { ...e.BlocksWrapperProps }), {
|
|
662
|
+
default: U(() => [
|
|
663
|
+
x(e.$slots, "default", {}, void 0, !0)
|
|
664
|
+
]),
|
|
665
|
+
_: 3
|
|
666
|
+
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
656
667
|
}
|
|
657
|
-
const
|
|
668
|
+
const At = /* @__PURE__ */ g(Bt, [["render", Wt], ["__scopeId", "data-v-1f8aab9f"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/blocks/blocks-wrapper.vue"]]), Vt = b({
|
|
658
669
|
name: "builder-blocks",
|
|
659
670
|
components: {
|
|
660
|
-
BlocksWrapper:
|
|
661
|
-
Block:
|
|
662
|
-
BlockStyles:
|
|
671
|
+
BlocksWrapper: At,
|
|
672
|
+
Block: Re,
|
|
673
|
+
BlockStyles: Ee
|
|
663
674
|
},
|
|
664
675
|
props: [
|
|
665
676
|
"blocks",
|
|
@@ -670,37 +681,40 @@ const Vt = /* @__PURE__ */ g(Pt, [["render", Bt], ["__scopeId", "data-v-1f8aab9f
|
|
|
670
681
|
"registeredComponents"
|
|
671
682
|
],
|
|
672
683
|
inject: {
|
|
673
|
-
builderContext:
|
|
674
|
-
componentsContext:
|
|
684
|
+
builderContext: ee.key,
|
|
685
|
+
componentsContext: Ie.key
|
|
675
686
|
}
|
|
676
687
|
});
|
|
677
|
-
function
|
|
678
|
-
|
|
679
|
-
|
|
688
|
+
function _t(e, t, n, o, r, s) {
|
|
689
|
+
var d, u;
|
|
690
|
+
const i = k("block"), a = k("block-styles"), l = k("blocks-wrapper");
|
|
691
|
+
return c(), y(l, {
|
|
680
692
|
blocks: e.blocks,
|
|
681
693
|
parent: e.parent,
|
|
682
694
|
path: e.path,
|
|
683
|
-
styleProp: e.styleProp
|
|
695
|
+
styleProp: e.styleProp,
|
|
696
|
+
BlocksWrapper: (d = e.context) == null ? void 0 : d.BlocksWrapper,
|
|
697
|
+
BlocksWrapperProps: (u = e.context) == null ? void 0 : u.BlocksWrapperProps
|
|
684
698
|
}, {
|
|
685
|
-
default:
|
|
686
|
-
e.blocks ? (
|
|
687
|
-
key: "render-block-" +
|
|
688
|
-
block:
|
|
699
|
+
default: U(() => [
|
|
700
|
+
e.blocks ? (c(!0), p(C, { key: 0 }, B(e.blocks, (m, h) => (c(), y(i, {
|
|
701
|
+
key: "render-block-" + m.id,
|
|
702
|
+
block: m,
|
|
689
703
|
context: e.context || e.builderContext,
|
|
690
704
|
registeredComponents: e.registeredComponents || e.componentsContext.registeredComponents
|
|
691
705
|
}, null, 8, ["block", "context", "registeredComponents"]))), 128)) : f("v-if", !0),
|
|
692
|
-
e.blocks ? (
|
|
693
|
-
key: "block-style-" +
|
|
694
|
-
block:
|
|
706
|
+
e.blocks ? (c(!0), p(C, { key: 1 }, B(e.blocks, (m, h) => (c(), y(a, {
|
|
707
|
+
key: "block-style-" + m.id,
|
|
708
|
+
block: m,
|
|
695
709
|
context: e.context || e.builderContext
|
|
696
710
|
}, null, 8, ["block", "context"]))), 128)) : f("v-if", !0)
|
|
697
711
|
]),
|
|
698
712
|
_: 1
|
|
699
|
-
}, 8, ["blocks", "parent", "path", "styleProp"]);
|
|
713
|
+
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
700
714
|
}
|
|
701
|
-
const oe = /* @__PURE__ */ g(
|
|
715
|
+
const oe = /* @__PURE__ */ g(Vt, [["render", _t], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/blocks/blocks.vue"]]), Ot = b({
|
|
702
716
|
name: "builder-columns",
|
|
703
|
-
components: { InlinedStyles:
|
|
717
|
+
components: { InlinedStyles: G, Blocks: oe },
|
|
704
718
|
props: [
|
|
705
719
|
"js",
|
|
706
720
|
"space",
|
|
@@ -780,31 +794,31 @@ const oe = /* @__PURE__ */ g(_t, [["render", Ot], ["__file", "/home/runner/work/
|
|
|
780
794
|
return this.stackAt === "never" ? t : e;
|
|
781
795
|
},
|
|
782
796
|
columnCssVars(e) {
|
|
783
|
-
const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`,
|
|
797
|
+
const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, r = "100%", s = 0;
|
|
784
798
|
return {
|
|
785
799
|
width: n,
|
|
786
800
|
["margin-left"]: o,
|
|
787
801
|
"--column-width-mobile": this.getMobileStyle({
|
|
788
|
-
stackedStyle:
|
|
802
|
+
stackedStyle: r,
|
|
789
803
|
desktopStyle: n
|
|
790
804
|
}),
|
|
791
805
|
"--column-margin-left-mobile": this.getMobileStyle({
|
|
792
|
-
stackedStyle:
|
|
806
|
+
stackedStyle: s,
|
|
793
807
|
desktopStyle: o
|
|
794
808
|
}),
|
|
795
809
|
"--column-width-tablet": this.getTabletStyle({
|
|
796
|
-
stackedStyle:
|
|
810
|
+
stackedStyle: r,
|
|
797
811
|
desktopStyle: n
|
|
798
812
|
}),
|
|
799
813
|
"--column-margin-left-tablet": this.getTabletStyle({
|
|
800
|
-
stackedStyle:
|
|
814
|
+
stackedStyle: s,
|
|
801
815
|
desktopStyle: o
|
|
802
816
|
})
|
|
803
817
|
};
|
|
804
818
|
},
|
|
805
819
|
getWidthForBreakpointSize(e) {
|
|
806
820
|
var n, o;
|
|
807
|
-
return
|
|
821
|
+
return Pe(
|
|
808
822
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
809
823
|
)[e].max;
|
|
810
824
|
},
|
|
@@ -819,25 +833,25 @@ const oe = /* @__PURE__ */ g(_t, [["render", Ot], ["__file", "/home/runner/work/
|
|
|
819
833
|
}
|
|
820
834
|
}
|
|
821
835
|
});
|
|
822
|
-
function
|
|
823
|
-
const
|
|
824
|
-
return
|
|
836
|
+
function Nt(e, t, n, o, r, s) {
|
|
837
|
+
const i = k("inlined-styles"), a = k("blocks");
|
|
838
|
+
return c(), p("div", w({
|
|
825
839
|
class: e._classStringToObject(
|
|
826
840
|
`builder-columns ${e.builderBlock.id}-breakpoints div-16nol0lwi20`
|
|
827
841
|
),
|
|
828
842
|
style: e.columnsCssVars
|
|
829
843
|
}, {}), [
|
|
830
|
-
e.TARGET !== "reactNative" ? (
|
|
844
|
+
e.TARGET !== "reactNative" ? (c(), y(i, {
|
|
831
845
|
key: 0,
|
|
832
846
|
styles: e.columnsStyles
|
|
833
847
|
}, null, 8, ["styles"])) : f("v-if", !0),
|
|
834
|
-
(
|
|
835
|
-
key:
|
|
848
|
+
(c(!0), p(C, null, B(e.columns, (l, d) => (c(), p("div", w({
|
|
849
|
+
key: d,
|
|
836
850
|
class: "builder-column div-16nol0lwi20-2",
|
|
837
|
-
style: e.columnCssVars(
|
|
851
|
+
style: e.columnCssVars(d)
|
|
838
852
|
}, {}), [
|
|
839
|
-
|
|
840
|
-
path: `component.options.columns.${
|
|
853
|
+
W(a, {
|
|
854
|
+
path: `component.options.columns.${d}.blocks`,
|
|
841
855
|
parent: e.builderBlock.id,
|
|
842
856
|
styleProp: {
|
|
843
857
|
flexGrow: "1"
|
|
@@ -849,22 +863,22 @@ function jt(e, t, n, o, i, r) {
|
|
|
849
863
|
], 16))), 128))
|
|
850
864
|
], 16);
|
|
851
865
|
}
|
|
852
|
-
const
|
|
866
|
+
const jt = /* @__PURE__ */ g(Ot, [["render", Nt], ["__scopeId", "data-v-7be099dc"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/columns/columns.vue"]]), Ut = b({
|
|
853
867
|
name: "builder-fragment-component",
|
|
854
868
|
props: []
|
|
855
869
|
});
|
|
856
|
-
function
|
|
857
|
-
return
|
|
858
|
-
|
|
870
|
+
function Ft(e, t, n, o, r, s) {
|
|
871
|
+
return c(), p("span", null, [
|
|
872
|
+
x(e.$slots, "default")
|
|
859
873
|
]);
|
|
860
874
|
}
|
|
861
|
-
const Mt = /* @__PURE__ */ g(
|
|
875
|
+
const Mt = /* @__PURE__ */ g(Ut, [["render", Ft], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/fragment/fragment.vue"]]);
|
|
862
876
|
function ue(e) {
|
|
863
877
|
return e.replace(/http(s)?:/, "");
|
|
864
878
|
}
|
|
865
879
|
function Lt(e = "", t, n) {
|
|
866
|
-
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"),
|
|
867
|
-
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e +
|
|
880
|
+
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
881
|
+
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
868
882
|
}
|
|
869
883
|
function Ht(e, t) {
|
|
870
884
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
@@ -873,19 +887,19 @@ function Ht(e, t) {
|
|
|
873
887
|
return ue(e);
|
|
874
888
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
875
889
|
if (n) {
|
|
876
|
-
const o = e.split(n[0]),
|
|
877
|
-
return ue(`${o[0]}_${
|
|
890
|
+
const o = e.split(n[0]), r = n[3], s = t.match("x") ? t : `${t}x`;
|
|
891
|
+
return ue(`${o[0]}_${s}${r}`);
|
|
878
892
|
}
|
|
879
893
|
return null;
|
|
880
894
|
}
|
|
881
|
-
function
|
|
895
|
+
function Q(e) {
|
|
882
896
|
if (!e)
|
|
883
897
|
return e;
|
|
884
898
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
885
899
|
if (e.match(/builder\.io/)) {
|
|
886
900
|
let n = e;
|
|
887
901
|
const o = Number(e.split("?width=")[1]);
|
|
888
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((
|
|
902
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Lt(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
889
903
|
}
|
|
890
904
|
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;
|
|
891
905
|
}
|
|
@@ -913,10 +927,10 @@ const Kt = b({
|
|
|
913
927
|
return this.srcset;
|
|
914
928
|
if (this.srcset && ((n = this.image) == null ? void 0 : n.includes("builder.io/api/v1/image"))) {
|
|
915
929
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
916
|
-
return console.debug("Removed given srcset"),
|
|
930
|
+
return console.debug("Removed given srcset"), Q(t);
|
|
917
931
|
} else if (this.image && !this.srcset)
|
|
918
|
-
return
|
|
919
|
-
return
|
|
932
|
+
return Q(t);
|
|
933
|
+
return Q(t);
|
|
920
934
|
},
|
|
921
935
|
webpSrcSet() {
|
|
922
936
|
var e;
|
|
@@ -949,25 +963,25 @@ const Dt = ["srcset"], zt = ["alt", "role", "src", "srcset", "sizes"], qt = {
|
|
|
949
963
|
key: 2,
|
|
950
964
|
class: "div-1be3j8m9ewb-2"
|
|
951
965
|
};
|
|
952
|
-
function Gt(e, t, n, o,
|
|
953
|
-
var
|
|
954
|
-
return
|
|
955
|
-
|
|
956
|
-
e.webpSrcSet ? (
|
|
966
|
+
function Gt(e, t, n, o, r, s) {
|
|
967
|
+
var i, a, l, d;
|
|
968
|
+
return c(), p(C, null, [
|
|
969
|
+
X("picture", null, [
|
|
970
|
+
e.webpSrcSet ? (c(), p("source", {
|
|
957
971
|
key: 0,
|
|
958
972
|
type: "image/webp",
|
|
959
973
|
srcset: e.webpSrcSet
|
|
960
974
|
}, null, 8, Dt)) : f("v-if", !0),
|
|
961
|
-
|
|
975
|
+
X("img", {
|
|
962
976
|
loading: "lazy",
|
|
963
977
|
alt: e.altText,
|
|
964
978
|
role: e.altText ? "presentation" : void 0,
|
|
965
|
-
style:
|
|
979
|
+
style: Z({
|
|
966
980
|
objectPosition: e.backgroundPosition || "center",
|
|
967
981
|
objectFit: e.backgroundSize || "cover",
|
|
968
982
|
...e.aspectRatioCss
|
|
969
983
|
}),
|
|
970
|
-
class:
|
|
984
|
+
class: we(
|
|
971
985
|
e._classStringToObject(
|
|
972
986
|
"builder-image" + (e.className ? " " + e.className : "") + " img-1be3j8m9ewb"
|
|
973
987
|
)
|
|
@@ -977,16 +991,16 @@ function Gt(e, t, n, o, i, r) {
|
|
|
977
991
|
sizes: e.sizes
|
|
978
992
|
}, null, 14, zt)
|
|
979
993
|
]),
|
|
980
|
-
e.aspectRatio && !(((a = (
|
|
994
|
+
e.aspectRatio && !(((a = (i = e.builderBlock) == null ? void 0 : i.children) == null ? void 0 : a.length) && e.fitContent) ? (c(), p("div", {
|
|
981
995
|
key: 0,
|
|
982
996
|
class: "builder-image-sizer div-1be3j8m9ewb",
|
|
983
|
-
style:
|
|
997
|
+
style: Z({
|
|
984
998
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
985
999
|
})
|
|
986
1000
|
}, null, 4)) : f("v-if", !0),
|
|
987
|
-
((
|
|
988
|
-
!e.fitContent && e.$slots.default ? (
|
|
989
|
-
|
|
1001
|
+
((d = (l = e.builderBlock) == null ? void 0 : l.children) == null ? void 0 : d.length) && e.fitContent ? x(e.$slots, "default", { key: 1 }, void 0, !0) : f("v-if", !0),
|
|
1002
|
+
!e.fitContent && e.$slots.default ? (c(), p("div", qt, [
|
|
1003
|
+
x(e.$slots, "default", {}, void 0, !0)
|
|
990
1004
|
])) : f("v-if", !0)
|
|
991
1005
|
], 64);
|
|
992
1006
|
}
|
|
@@ -994,11 +1008,11 @@ const Jt = /* @__PURE__ */ g(Kt, [["render", Gt], ["__scopeId", "data-v-58ca75d1
|
|
|
994
1008
|
name: "builder-section-component",
|
|
995
1009
|
props: ["attributes", "maxWidth"],
|
|
996
1010
|
data() {
|
|
997
|
-
return { filterAttrs:
|
|
1011
|
+
return { filterAttrs: q };
|
|
998
1012
|
}
|
|
999
1013
|
});
|
|
1000
|
-
function Qt(e, t, n, o,
|
|
1001
|
-
return
|
|
1014
|
+
function Qt(e, t, n, o, r, s) {
|
|
1015
|
+
return c(), p("section", w({
|
|
1002
1016
|
style: {
|
|
1003
1017
|
width: "100%",
|
|
1004
1018
|
alignSelf: "stretch",
|
|
@@ -1011,8 +1025,8 @@ function Qt(e, t, n, o, i, r) {
|
|
|
1011
1025
|
marginLeft: "auto",
|
|
1012
1026
|
marginRight: "auto"
|
|
1013
1027
|
}
|
|
1014
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
1015
|
-
|
|
1028
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), N(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
1029
|
+
x(e.$slots, "default")
|
|
1016
1030
|
], 16);
|
|
1017
1031
|
}
|
|
1018
1032
|
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) => {
|
|
@@ -1020,7 +1034,7 @@ const Xt = /* @__PURE__ */ g(Yt, [["render", Qt], ["__file", "/home/runner/work/
|
|
|
1020
1034
|
return e;
|
|
1021
1035
|
const t = e.split(".");
|
|
1022
1036
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
1023
|
-
},
|
|
1037
|
+
}, xe = ({
|
|
1024
1038
|
name: e,
|
|
1025
1039
|
canTrack: t
|
|
1026
1040
|
}) => {
|
|
@@ -1031,14 +1045,14 @@ const Xt = /* @__PURE__ */ g(Yt, [["render", Qt], ["__file", "/home/runner/work/
|
|
|
1031
1045
|
$.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
1032
1046
|
return;
|
|
1033
1047
|
}
|
|
1034
|
-
},
|
|
1048
|
+
}, Be = async (e) => xe(e), en = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(P).join("; "), tn = [["secure", ""], ["SameSite", "None"]], nn = ({
|
|
1035
1049
|
name: e,
|
|
1036
1050
|
value: t,
|
|
1037
1051
|
expires: n
|
|
1038
1052
|
}) => {
|
|
1039
|
-
const
|
|
1040
|
-
return en(
|
|
1041
|
-
},
|
|
1053
|
+
const r = (v() ? location.protocol === "https:" : !0) ? tn : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", Zt(window.location.hostname)], ...r];
|
|
1054
|
+
return en(i);
|
|
1055
|
+
}, We = async ({
|
|
1042
1056
|
name: e,
|
|
1043
1057
|
value: t,
|
|
1044
1058
|
expires: n,
|
|
@@ -1047,43 +1061,43 @@ const Xt = /* @__PURE__ */ g(Yt, [["render", Qt], ["__file", "/home/runner/work/
|
|
|
1047
1061
|
try {
|
|
1048
1062
|
if (!o)
|
|
1049
1063
|
return;
|
|
1050
|
-
const
|
|
1064
|
+
const r = nn({
|
|
1051
1065
|
name: e,
|
|
1052
1066
|
value: t,
|
|
1053
1067
|
expires: n
|
|
1054
1068
|
});
|
|
1055
|
-
document.cookie =
|
|
1056
|
-
} catch (
|
|
1057
|
-
$.warn("[COOKIE] SET error: ", (
|
|
1069
|
+
document.cookie = r;
|
|
1070
|
+
} catch (r) {
|
|
1071
|
+
$.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
1058
1072
|
}
|
|
1059
|
-
}, on = "builder.tests",
|
|
1073
|
+
}, on = "builder.tests", re = (e) => `${on}.${e}`, rn = ({
|
|
1060
1074
|
contentId: e
|
|
1061
|
-
}) =>
|
|
1062
|
-
name:
|
|
1075
|
+
}) => Be({
|
|
1076
|
+
name: re(e),
|
|
1063
1077
|
canTrack: !0
|
|
1064
1078
|
}), sn = ({
|
|
1065
1079
|
contentId: e
|
|
1066
|
-
}) =>
|
|
1067
|
-
name:
|
|
1080
|
+
}) => xe({
|
|
1081
|
+
name: re(e),
|
|
1068
1082
|
canTrack: !0
|
|
1069
1083
|
}), an = ({
|
|
1070
1084
|
contentId: e,
|
|
1071
1085
|
value: t
|
|
1072
|
-
}) =>
|
|
1073
|
-
name:
|
|
1086
|
+
}) => We({
|
|
1087
|
+
name: re(e),
|
|
1074
1088
|
value: t,
|
|
1075
1089
|
canTrack: !0
|
|
1076
|
-
}),
|
|
1090
|
+
}), Ae = (e) => P(e.id) && P(e.variations) && Object.keys(e.variations).length > 0, ln = ({
|
|
1077
1091
|
id: e,
|
|
1078
1092
|
variations: t
|
|
1079
1093
|
}) => {
|
|
1080
|
-
var
|
|
1094
|
+
var r;
|
|
1081
1095
|
let n = 0;
|
|
1082
1096
|
const o = Math.random();
|
|
1083
|
-
for (const
|
|
1084
|
-
const
|
|
1085
|
-
if (n +=
|
|
1086
|
-
return
|
|
1097
|
+
for (const s in t) {
|
|
1098
|
+
const i = (r = t[s]) == null ? void 0 : r.testRatio;
|
|
1099
|
+
if (n += i, o < n)
|
|
1100
|
+
return s;
|
|
1087
1101
|
}
|
|
1088
1102
|
return e;
|
|
1089
1103
|
}, Ve = (e) => {
|
|
@@ -1115,7 +1129,7 @@ const Xt = /* @__PURE__ */ g(Yt, [["render", Qt], ["__file", "/home/runner/work/
|
|
|
1115
1129
|
return e;
|
|
1116
1130
|
if (!e)
|
|
1117
1131
|
return;
|
|
1118
|
-
if (!
|
|
1132
|
+
if (!Ae(e))
|
|
1119
1133
|
return e;
|
|
1120
1134
|
const n = sn({
|
|
1121
1135
|
contentId: e.id
|
|
@@ -1134,22 +1148,22 @@ const Xt = /* @__PURE__ */ g(Yt, [["render", Qt], ["__file", "/home/runner/work/
|
|
|
1134
1148
|
item: e,
|
|
1135
1149
|
canTrack: t
|
|
1136
1150
|
}) => {
|
|
1137
|
-
if (!t || !
|
|
1151
|
+
if (!t || !Ae(e))
|
|
1138
1152
|
return e;
|
|
1139
1153
|
const o = await rn({
|
|
1140
1154
|
contentId: e.id
|
|
1141
1155
|
}) || Ve({
|
|
1142
1156
|
variations: e.variations,
|
|
1143
1157
|
id: e.id
|
|
1144
|
-
}),
|
|
1158
|
+
}), r = _e({
|
|
1145
1159
|
item: e,
|
|
1146
1160
|
testGroupId: o
|
|
1147
1161
|
});
|
|
1148
1162
|
return {
|
|
1149
1163
|
...e,
|
|
1150
|
-
...
|
|
1164
|
+
...r
|
|
1151
1165
|
};
|
|
1152
|
-
},
|
|
1166
|
+
}, j = (e) => P(e) ? e : !0, un = {
|
|
1153
1167
|
name: "Core:Button",
|
|
1154
1168
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1155
1169
|
defaultStyles: {
|
|
@@ -1359,7 +1373,7 @@ const Xt = /* @__PURE__ */ g(Yt, [["render", Qt], ["__file", "/home/runner/work/
|
|
|
1359
1373
|
});
|
|
1360
1374
|
}
|
|
1361
1375
|
const n = e.get("columns");
|
|
1362
|
-
Array.isArray(n) && !!n.find((
|
|
1376
|
+
Array.isArray(n) && !!n.find((r) => r.get("width")) && (!!n.find((s) => !s.get("width")) || n.reduce((a, l) => a + l.get("width"), 0) !== 100) && t();
|
|
1363
1377
|
}
|
|
1364
1378
|
}, {
|
|
1365
1379
|
name: "space",
|
|
@@ -1420,8 +1434,8 @@ const Xt = /* @__PURE__ */ g(Yt, [["render", Qt], ["__file", "/home/runner/work/
|
|
|
1420
1434
|
if (this.scriptsInserted.includes(o.src))
|
|
1421
1435
|
continue;
|
|
1422
1436
|
this.scriptsInserted.push(o.src);
|
|
1423
|
-
const
|
|
1424
|
-
|
|
1437
|
+
const r = document.createElement("script");
|
|
1438
|
+
r.async = !0, r.src = o.src, document.head.appendChild(r);
|
|
1425
1439
|
} else if (!o.type || [
|
|
1426
1440
|
"text/javascript",
|
|
1427
1441
|
"application/javascript",
|
|
@@ -1431,8 +1445,8 @@ const Xt = /* @__PURE__ */ g(Yt, [["render", Qt], ["__file", "/home/runner/work/
|
|
|
1431
1445
|
continue;
|
|
1432
1446
|
try {
|
|
1433
1447
|
this.scriptsRun.push(o.innerText), new Function(o.innerText)();
|
|
1434
|
-
} catch (
|
|
1435
|
-
console.warn("`CustomCode`: Error running script:",
|
|
1448
|
+
} catch (r) {
|
|
1449
|
+
console.warn("`CustomCode`: Error running script:", r);
|
|
1436
1450
|
}
|
|
1437
1451
|
}
|
|
1438
1452
|
}
|
|
@@ -1449,10 +1463,10 @@ const Xt = /* @__PURE__ */ g(Yt, [["render", Qt], ["__file", "/home/runner/work/
|
|
|
1449
1463
|
}
|
|
1450
1464
|
}
|
|
1451
1465
|
}), fn = ["innerHTML"];
|
|
1452
|
-
function bn(e, t, n, o,
|
|
1453
|
-
return
|
|
1466
|
+
function bn(e, t, n, o, r, s) {
|
|
1467
|
+
return c(), p("div", {
|
|
1454
1468
|
ref: "elementRef",
|
|
1455
|
-
class:
|
|
1469
|
+
class: we(
|
|
1456
1470
|
e._classStringToObject(
|
|
1457
1471
|
"builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")
|
|
1458
1472
|
)
|
|
@@ -1460,7 +1474,7 @@ function bn(e, t, n, o, i, r) {
|
|
|
1460
1474
|
innerHTML: e.code
|
|
1461
1475
|
}, null, 10, fn);
|
|
1462
1476
|
}
|
|
1463
|
-
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"]]),
|
|
1477
|
+
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"]]), kn = {
|
|
1464
1478
|
name: "Embed",
|
|
1465
1479
|
static: !0,
|
|
1466
1480
|
inputs: [{
|
|
@@ -1485,7 +1499,7 @@ const gn = /* @__PURE__ */ g(hn, [["render", bn], ["__file", "/home/runner/work/
|
|
|
1485
1499
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1486
1500
|
hideFromUI: !0
|
|
1487
1501
|
}]
|
|
1488
|
-
},
|
|
1502
|
+
}, yn = ["text/javascript", "application/javascript", "application/ecmascript"], vn = (e) => yn.includes(e.type), Sn = b({
|
|
1489
1503
|
name: "builder-embed",
|
|
1490
1504
|
props: ["content"],
|
|
1491
1505
|
data() {
|
|
@@ -1528,8 +1542,8 @@ const gn = /* @__PURE__ */ g(hn, [["render", bn], ["__file", "/home/runner/work/
|
|
|
1528
1542
|
}
|
|
1529
1543
|
}
|
|
1530
1544
|
}), Cn = ["innerHTML"];
|
|
1531
|
-
function wn(e, t, n, o,
|
|
1532
|
-
return
|
|
1545
|
+
function wn(e, t, n, o, r, s) {
|
|
1546
|
+
return c(), p("div", {
|
|
1533
1547
|
class: "builder-embed",
|
|
1534
1548
|
ref: "elem",
|
|
1535
1549
|
innerHTML: e.content
|
|
@@ -1561,29 +1575,29 @@ const In = /* @__PURE__ */ g(Sn, [["render", wn], ["__file", "/home/runner/work/
|
|
|
1561
1575
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1562
1576
|
onChange: (e) => {
|
|
1563
1577
|
e.delete("srcset"), e.delete("noWebp");
|
|
1564
|
-
function n(
|
|
1565
|
-
return new Promise((l,
|
|
1566
|
-
const
|
|
1567
|
-
let
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
},
|
|
1571
|
-
console.warn("Image load failed",
|
|
1572
|
-
}),
|
|
1573
|
-
|
|
1578
|
+
function n(i, a = 6e4) {
|
|
1579
|
+
return new Promise((l, d) => {
|
|
1580
|
+
const u = document.createElement("img");
|
|
1581
|
+
let m = !1;
|
|
1582
|
+
u.onload = () => {
|
|
1583
|
+
m = !0, l(u);
|
|
1584
|
+
}, u.addEventListener("error", (h) => {
|
|
1585
|
+
console.warn("Image load failed", h.error), d(h.error);
|
|
1586
|
+
}), u.src = i, setTimeout(() => {
|
|
1587
|
+
m || d(new Error("Image load timed out"));
|
|
1574
1588
|
}, a);
|
|
1575
1589
|
});
|
|
1576
1590
|
}
|
|
1577
|
-
function o(
|
|
1578
|
-
return Math.round(
|
|
1591
|
+
function o(i) {
|
|
1592
|
+
return Math.round(i * 1e3) / 1e3;
|
|
1579
1593
|
}
|
|
1580
|
-
const
|
|
1581
|
-
if (fetch(
|
|
1582
|
-
|
|
1583
|
-
}),
|
|
1584
|
-
return n(
|
|
1594
|
+
const r = e.get("image"), s = e.get("aspectRatio");
|
|
1595
|
+
if (fetch(r).then((i) => i.blob()).then((i) => {
|
|
1596
|
+
i.type.includes("svg") && e.set("noWebp", !0);
|
|
1597
|
+
}), r && (!s || s === 0.7041))
|
|
1598
|
+
return n(r).then((i) => {
|
|
1585
1599
|
const a = e.get("aspectRatio");
|
|
1586
|
-
e.get("image") ===
|
|
1600
|
+
e.get("image") === r && (!a || a === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
|
|
1587
1601
|
});
|
|
1588
1602
|
}
|
|
1589
1603
|
}, {
|
|
@@ -1654,7 +1668,7 @@ const In = /* @__PURE__ */ g(Sn, [["render", wn], ["__file", "/home/runner/work/
|
|
|
1654
1668
|
}],
|
|
1655
1669
|
noWrap: !0,
|
|
1656
1670
|
static: !0
|
|
1657
|
-
},
|
|
1671
|
+
}, Pn = b({
|
|
1658
1672
|
name: "builder-img-component",
|
|
1659
1673
|
props: [
|
|
1660
1674
|
"backgroundSize",
|
|
@@ -1665,11 +1679,11 @@ const In = /* @__PURE__ */ g(Sn, [["render", wn], ["__file", "/home/runner/work/
|
|
|
1665
1679
|
"attributes"
|
|
1666
1680
|
],
|
|
1667
1681
|
data() {
|
|
1668
|
-
return { isEditing: T, filterAttrs:
|
|
1682
|
+
return { isEditing: T, filterAttrs: q };
|
|
1669
1683
|
}
|
|
1670
1684
|
}), En = ["alt", "src"];
|
|
1671
|
-
function
|
|
1672
|
-
return
|
|
1685
|
+
function xn(e, t, n, o, r, s) {
|
|
1686
|
+
return c(), p("img", w({
|
|
1673
1687
|
style: {
|
|
1674
1688
|
objectFit: e.backgroundSize || "cover",
|
|
1675
1689
|
objectPosition: e.backgroundPosition || "center"
|
|
@@ -1677,9 +1691,9 @@ function Pn(e, t, n, o, i, r) {
|
|
|
1677
1691
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
1678
1692
|
alt: e.altText,
|
|
1679
1693
|
src: e.imgSrc || e.image
|
|
1680
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
1694
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), N(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, En);
|
|
1681
1695
|
}
|
|
1682
|
-
const
|
|
1696
|
+
const Bn = /* @__PURE__ */ g(Pn, [["render", xn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/img/img.vue"]]), Wn = {
|
|
1683
1697
|
name: "Core:Section",
|
|
1684
1698
|
static: !0,
|
|
1685
1699
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1718,7 +1732,7 @@ const An = /* @__PURE__ */ g(xn, [["render", Pn], ["__file", "/home/runner/work/
|
|
|
1718
1732
|
}
|
|
1719
1733
|
}
|
|
1720
1734
|
}]
|
|
1721
|
-
},
|
|
1735
|
+
}, An = {
|
|
1722
1736
|
name: "Symbol",
|
|
1723
1737
|
noWrap: !0,
|
|
1724
1738
|
static: !0,
|
|
@@ -1751,7 +1765,7 @@ const An = /* @__PURE__ */ g(xn, [["render", Pn], ["__file", "/home/runner/work/
|
|
|
1751
1765
|
hideFromUI: !0,
|
|
1752
1766
|
type: "boolean"
|
|
1753
1767
|
}]
|
|
1754
|
-
},
|
|
1768
|
+
}, Vn = {
|
|
1755
1769
|
name: "Text",
|
|
1756
1770
|
static: !0,
|
|
1757
1771
|
isRSC: !0,
|
|
@@ -1769,21 +1783,21 @@ const An = /* @__PURE__ */ g(xn, [["render", Pn], ["__file", "/home/runner/work/
|
|
|
1769
1783
|
height: "auto",
|
|
1770
1784
|
textAlign: "center"
|
|
1771
1785
|
}
|
|
1772
|
-
},
|
|
1786
|
+
}, _n = b({
|
|
1773
1787
|
name: "builder-text",
|
|
1774
1788
|
props: ["text"]
|
|
1775
|
-
}),
|
|
1776
|
-
function
|
|
1777
|
-
var
|
|
1778
|
-
return
|
|
1789
|
+
}), On = ["innerHTML"];
|
|
1790
|
+
function Nn(e, t, n, o, r, s) {
|
|
1791
|
+
var i;
|
|
1792
|
+
return c(), p("div", {
|
|
1779
1793
|
class: "builder-text",
|
|
1780
|
-
innerHTML: ((
|
|
1794
|
+
innerHTML: ((i = e.text) == null ? void 0 : i.toString()) || "",
|
|
1781
1795
|
style: {
|
|
1782
1796
|
outline: "none"
|
|
1783
1797
|
}
|
|
1784
|
-
}, null, 8,
|
|
1798
|
+
}, null, 8, On);
|
|
1785
1799
|
}
|
|
1786
|
-
const
|
|
1800
|
+
const jn = /* @__PURE__ */ g(_n, [["render", Nn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/text/text.vue"]]), Un = {
|
|
1787
1801
|
name: "Video",
|
|
1788
1802
|
canHaveChildren: !0,
|
|
1789
1803
|
defaultStyles: {
|
|
@@ -1864,7 +1878,7 @@ const Un = /* @__PURE__ */ g(On, [["render", jn], ["__file", "/home/runner/work/
|
|
|
1864
1878
|
defaultValue: !0,
|
|
1865
1879
|
advanced: !0
|
|
1866
1880
|
}]
|
|
1867
|
-
},
|
|
1881
|
+
}, Fn = b({
|
|
1868
1882
|
name: "builder-video",
|
|
1869
1883
|
props: [
|
|
1870
1884
|
"autoPlay",
|
|
@@ -1932,16 +1946,16 @@ const Un = /* @__PURE__ */ g(On, [["render", jn], ["__file", "/home/runner/work/
|
|
|
1932
1946
|
height: "100%"
|
|
1933
1947
|
}
|
|
1934
1948
|
};
|
|
1935
|
-
function zn(e, t, n, o,
|
|
1936
|
-
var
|
|
1937
|
-
return
|
|
1938
|
-
|
|
1949
|
+
function zn(e, t, n, o, r, s) {
|
|
1950
|
+
var i, a, l, d, u, m, h;
|
|
1951
|
+
return c(), p("div", Mn, [
|
|
1952
|
+
X("video", w({
|
|
1939
1953
|
class: "builder-video",
|
|
1940
1954
|
preload: e.preload || "metadata",
|
|
1941
1955
|
style: {
|
|
1942
1956
|
width: "100%",
|
|
1943
1957
|
height: "100%",
|
|
1944
|
-
...(
|
|
1958
|
+
...(i = e.attributes) == null ? void 0 : i.style,
|
|
1945
1959
|
objectFit: e.fit,
|
|
1946
1960
|
objectPosition: e.position,
|
|
1947
1961
|
zIndex: 2,
|
|
@@ -1953,41 +1967,41 @@ function zn(e, t, n, o, i, r) {
|
|
|
1953
1967
|
src: e.video || "no-src",
|
|
1954
1968
|
poster: e.posterImage
|
|
1955
1969
|
}, e.spreadProps), [
|
|
1956
|
-
e.lazyLoad ? f("v-if", !0) : (
|
|
1970
|
+
e.lazyLoad ? f("v-if", !0) : (c(), p("source", {
|
|
1957
1971
|
key: 0,
|
|
1958
1972
|
type: "video/mp4",
|
|
1959
1973
|
src: e.video
|
|
1960
1974
|
}, null, 8, Hn))
|
|
1961
1975
|
], 16, Ln),
|
|
1962
|
-
e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) == null ? void 0 : l.length)) ? (
|
|
1976
|
+
e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) == null ? void 0 : l.length)) ? (c(), p("div", {
|
|
1963
1977
|
key: 0,
|
|
1964
|
-
style:
|
|
1978
|
+
style: Z({
|
|
1965
1979
|
width: "100%",
|
|
1966
1980
|
paddingTop: e.aspectRatio * 100 + "%",
|
|
1967
1981
|
pointerEvents: "none",
|
|
1968
1982
|
fontSize: "0px"
|
|
1969
1983
|
})
|
|
1970
1984
|
}, null, 4)) : f("v-if", !0),
|
|
1971
|
-
((
|
|
1972
|
-
|
|
1985
|
+
((u = (d = e.builderBlock) == null ? void 0 : d.children) == null ? void 0 : u.length) && e.fitContent ? (c(), p("div", Kn, [
|
|
1986
|
+
x(e.$slots, "default")
|
|
1973
1987
|
])) : f("v-if", !0),
|
|
1974
|
-
((
|
|
1975
|
-
|
|
1988
|
+
((h = (m = e.builderBlock) == null ? void 0 : m.children) == null ? void 0 : h.length) && !e.fitContent ? (c(), p("div", Dn, [
|
|
1989
|
+
x(e.$slots, "default")
|
|
1976
1990
|
])) : f("v-if", !0)
|
|
1977
1991
|
]);
|
|
1978
1992
|
}
|
|
1979
|
-
const qn = /* @__PURE__ */ g(
|
|
1980
|
-
component:
|
|
1993
|
+
const qn = /* @__PURE__ */ g(Fn, [["render", zn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/video/video.vue"]]), pe = () => [{
|
|
1994
|
+
component: et,
|
|
1981
1995
|
...un
|
|
1982
1996
|
}, {
|
|
1983
|
-
component:
|
|
1997
|
+
component: jt,
|
|
1984
1998
|
...pn
|
|
1985
1999
|
}, {
|
|
1986
2000
|
component: gn,
|
|
1987
2001
|
...mn
|
|
1988
2002
|
}, {
|
|
1989
2003
|
component: In,
|
|
1990
|
-
...
|
|
2004
|
+
...kn
|
|
1991
2005
|
}, {
|
|
1992
2006
|
component: Mt,
|
|
1993
2007
|
...$n
|
|
@@ -1995,34 +2009,34 @@ const qn = /* @__PURE__ */ g(Wn, [["render", zn], ["__file", "/home/runner/work/
|
|
|
1995
2009
|
component: Jt,
|
|
1996
2010
|
...Rn
|
|
1997
2011
|
}, {
|
|
1998
|
-
component:
|
|
2012
|
+
component: Bn,
|
|
1999
2013
|
...Tn
|
|
2000
2014
|
}, {
|
|
2001
2015
|
component: Xt,
|
|
2002
|
-
...
|
|
2016
|
+
...Wn
|
|
2003
2017
|
}, {
|
|
2004
|
-
component:
|
|
2005
|
-
...
|
|
2018
|
+
component: er,
|
|
2019
|
+
...An
|
|
2006
2020
|
}, {
|
|
2007
|
-
component:
|
|
2008
|
-
...
|
|
2021
|
+
component: jn,
|
|
2022
|
+
...Vn
|
|
2009
2023
|
}, {
|
|
2010
2024
|
component: qn,
|
|
2011
|
-
...
|
|
2025
|
+
...Un
|
|
2012
2026
|
}], me = [], Gn = (e) => ({
|
|
2013
2027
|
type: "builder.registerComponent",
|
|
2014
|
-
data:
|
|
2028
|
+
data: te(e)
|
|
2015
2029
|
}), Jn = (e) => {
|
|
2016
2030
|
const t = e.toString().trim();
|
|
2017
2031
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
2018
|
-
}, Yn = (e) => typeof e == "function" ? Jn(e) : F(e),
|
|
2032
|
+
}, Yn = (e) => typeof e == "function" ? Jn(e) : F(e), te = ({
|
|
2019
2033
|
inputs: e,
|
|
2020
2034
|
...t
|
|
2021
2035
|
}) => ({
|
|
2022
2036
|
...F(t),
|
|
2023
|
-
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [
|
|
2037
|
+
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, s]) => ({
|
|
2024
2038
|
...o,
|
|
2025
|
-
[
|
|
2039
|
+
[r]: Yn(s)
|
|
2026
2040
|
}), {}))
|
|
2027
2041
|
}), Qn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
2028
2042
|
function getAndSetVariantId() {
|
|
@@ -2114,14 +2128,14 @@ const qn = /* @__PURE__ */ g(Wn, [["render", zn], ["__file", "/home/runner/work/
|
|
|
2114
2128
|
thisScriptEl?.remove();
|
|
2115
2129
|
}
|
|
2116
2130
|
return;
|
|
2117
|
-
}`, Oe = "builderIoAbTest", Ne = "builderIoRenderContent",
|
|
2131
|
+
}`, Oe = "builderIoAbTest", Ne = "builderIoRenderContent", H = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
2118
2132
|
...t,
|
|
2119
2133
|
testVariationId: t.id,
|
|
2120
2134
|
id: e == null ? void 0 : e.id
|
|
2121
2135
|
})), Zn = ({
|
|
2122
2136
|
canTrack: e,
|
|
2123
2137
|
content: t
|
|
2124
|
-
}) => !(!(
|
|
2138
|
+
}) => !(!(H(t).length > 0) || !e), eo = (e) => e === "react" || e === "reactNative", je = eo(R), to = () => `
|
|
2125
2139
|
window.${Oe} = ${Qn}
|
|
2126
2140
|
window.${Ne} = ${Xn}
|
|
2127
2141
|
`, no = (e, t) => `
|
|
@@ -2132,33 +2146,33 @@ const qn = /* @__PURE__ */ g(Wn, [["render", zn], ["__file", "/home/runner/work/
|
|
|
2132
2146
|
variationId: t
|
|
2133
2147
|
}) => `window.${Ne}(
|
|
2134
2148
|
"${t}", "${e}", ${je}
|
|
2135
|
-
)`,
|
|
2149
|
+
)`, ro = b({
|
|
2136
2150
|
render() {
|
|
2137
2151
|
return Se("script", { id: this.id, innerHTML: this.scriptStr });
|
|
2138
2152
|
},
|
|
2139
2153
|
name: "inlined-script",
|
|
2140
2154
|
props: ["scriptStr", "id"]
|
|
2141
|
-
}), Ue = /* @__PURE__ */ g(
|
|
2142
|
-
function
|
|
2155
|
+
}), Ue = /* @__PURE__ */ g(ro, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/inlined-script.vue"]]);
|
|
2156
|
+
function so() {
|
|
2143
2157
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
2144
2158
|
}
|
|
2145
|
-
function
|
|
2146
|
-
const e =
|
|
2159
|
+
function io() {
|
|
2160
|
+
const e = so().fetch;
|
|
2147
2161
|
if (typeof e > "u")
|
|
2148
2162
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
2149
2163
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
2150
2164
|
return e;
|
|
2151
2165
|
}
|
|
2152
|
-
const Fe =
|
|
2153
|
-
function
|
|
2154
|
-
return Object.keys(e).reduce((o,
|
|
2155
|
-
const
|
|
2156
|
-
return [typeof
|
|
2166
|
+
const Fe = io();
|
|
2167
|
+
function K(e, t = null, n = ".") {
|
|
2168
|
+
return Object.keys(e).reduce((o, r) => {
|
|
2169
|
+
const s = e[r], i = [t, r].filter(Boolean).join(n);
|
|
2170
|
+
return [typeof s == "object", s !== null, !(Array.isArray(s) && s.length === 0)].every(Boolean) ? {
|
|
2157
2171
|
...o,
|
|
2158
|
-
...
|
|
2172
|
+
...K(s, i, n)
|
|
2159
2173
|
} : {
|
|
2160
2174
|
...o,
|
|
2161
|
-
[
|
|
2175
|
+
[i]: s
|
|
2162
2176
|
};
|
|
2163
2177
|
}, {});
|
|
2164
2178
|
}
|
|
@@ -2167,101 +2181,101 @@ const ao = "v3", he = "builder.", lo = "options.", co = (e) => {
|
|
|
2167
2181
|
return e.forEach((n, o) => {
|
|
2168
2182
|
t[o] = n;
|
|
2169
2183
|
}), t;
|
|
2170
|
-
},
|
|
2184
|
+
}, Me = (e) => {
|
|
2171
2185
|
if (!e)
|
|
2172
2186
|
return {};
|
|
2173
|
-
const t =
|
|
2187
|
+
const t = Le(e), n = {};
|
|
2174
2188
|
return Object.keys(t).forEach((o) => {
|
|
2175
2189
|
if (o.startsWith(he)) {
|
|
2176
|
-
const
|
|
2177
|
-
n[
|
|
2190
|
+
const r = o.replace(he, "").replace(lo, "");
|
|
2191
|
+
n[r] = t[o];
|
|
2178
2192
|
}
|
|
2179
2193
|
}), n;
|
|
2180
2194
|
}, uo = () => {
|
|
2181
2195
|
if (!v())
|
|
2182
2196
|
return {};
|
|
2183
2197
|
const e = new URLSearchParams(window.location.search);
|
|
2184
|
-
return
|
|
2185
|
-
},
|
|
2198
|
+
return Me(e);
|
|
2199
|
+
}, Le = (e) => e instanceof URLSearchParams ? co(e) : e, fe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, se = (e) => {
|
|
2186
2200
|
let {
|
|
2187
2201
|
noTraverse: t = !1
|
|
2188
2202
|
} = e;
|
|
2189
2203
|
const {
|
|
2190
2204
|
limit: n = 30,
|
|
2191
2205
|
userAttributes: o,
|
|
2192
|
-
query:
|
|
2193
|
-
model:
|
|
2194
|
-
apiKey:
|
|
2206
|
+
query: r,
|
|
2207
|
+
model: s,
|
|
2208
|
+
apiKey: i,
|
|
2195
2209
|
includeRefs: a = !0,
|
|
2196
2210
|
enrich: l,
|
|
2197
|
-
locale:
|
|
2198
|
-
apiVersion:
|
|
2199
|
-
fields:
|
|
2200
|
-
omit:
|
|
2211
|
+
locale: d,
|
|
2212
|
+
apiVersion: u = ao,
|
|
2213
|
+
fields: m,
|
|
2214
|
+
omit: h,
|
|
2201
2215
|
offset: S,
|
|
2202
|
-
cacheSeconds:
|
|
2203
|
-
staleCacheSeconds:
|
|
2204
|
-
sort:
|
|
2205
|
-
includeUnpublished:
|
|
2216
|
+
cacheSeconds: A,
|
|
2217
|
+
staleCacheSeconds: V,
|
|
2218
|
+
sort: _,
|
|
2219
|
+
includeUnpublished: ie
|
|
2206
2220
|
} = e;
|
|
2207
|
-
if (!
|
|
2221
|
+
if (!i)
|
|
2208
2222
|
throw new Error("Missing API key");
|
|
2209
|
-
if (!["v2", "v3"].includes(
|
|
2210
|
-
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${
|
|
2223
|
+
if (!["v2", "v3"].includes(u))
|
|
2224
|
+
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${u}'`);
|
|
2211
2225
|
(e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
|
|
2212
|
-
const I = new URL(`https://cdn.builder.io/api/${
|
|
2213
|
-
if (I.searchParams.set("omit",
|
|
2214
|
-
const E =
|
|
2215
|
-
sort:
|
|
2226
|
+
const I = new URL(`https://cdn.builder.io/api/${u}/content/${s}?apiKey=${i}&limit=${n}&noTraverse=${t}&includeRefs=${a}${d ? `&locale=${d}` : ""}${l ? `&enrich=${l}` : ""}`);
|
|
2227
|
+
if (I.searchParams.set("omit", h || "meta.componentsUsed"), m && I.searchParams.set("fields", m), Number.isFinite(S) && S > -1 && I.searchParams.set("offset", String(Math.floor(S))), typeof ie == "boolean" && I.searchParams.set("includeUnpublished", String(ie)), A && fe(A) && I.searchParams.set("cacheSeconds", String(A)), V && fe(V) && I.searchParams.set("staleCacheSeconds", String(V)), _) {
|
|
2228
|
+
const E = K({
|
|
2229
|
+
sort: _
|
|
2216
2230
|
});
|
|
2217
|
-
for (const
|
|
2218
|
-
I.searchParams.set(
|
|
2231
|
+
for (const O in E)
|
|
2232
|
+
I.searchParams.set(O, JSON.stringify(E[O]));
|
|
2219
2233
|
}
|
|
2220
|
-
const
|
|
2234
|
+
const Je = {
|
|
2221
2235
|
...uo(),
|
|
2222
|
-
...
|
|
2223
|
-
}, ae =
|
|
2236
|
+
...Le(e.options || {})
|
|
2237
|
+
}, ae = K(Je);
|
|
2224
2238
|
for (const E in ae)
|
|
2225
2239
|
I.searchParams.set(E, String(ae[E]));
|
|
2226
|
-
if (o && I.searchParams.set("userAttributes", JSON.stringify(o)),
|
|
2227
|
-
const E =
|
|
2228
|
-
query:
|
|
2240
|
+
if (o && I.searchParams.set("userAttributes", JSON.stringify(o)), r) {
|
|
2241
|
+
const E = K({
|
|
2242
|
+
query: r
|
|
2229
2243
|
});
|
|
2230
|
-
for (const
|
|
2231
|
-
I.searchParams.set(
|
|
2244
|
+
for (const O in E)
|
|
2245
|
+
I.searchParams.set(O, JSON.stringify(E[O]));
|
|
2232
2246
|
}
|
|
2233
2247
|
return I;
|
|
2234
2248
|
}, po = (e) => "results" in e;
|
|
2235
|
-
async function
|
|
2236
|
-
const t = await
|
|
2249
|
+
async function J(e) {
|
|
2250
|
+
const t = await He({
|
|
2237
2251
|
...e,
|
|
2238
2252
|
limit: 1
|
|
2239
2253
|
});
|
|
2240
2254
|
return t && t.results[0] || null;
|
|
2241
2255
|
}
|
|
2242
|
-
const
|
|
2243
|
-
const t =
|
|
2256
|
+
const rr = J, mo = async (e) => {
|
|
2257
|
+
const t = se(e);
|
|
2244
2258
|
return await (await Fe(t.href)).json();
|
|
2245
|
-
}, ho = async (e, t, n =
|
|
2246
|
-
const o =
|
|
2259
|
+
}, ho = async (e, t, n = se(e)) => {
|
|
2260
|
+
const o = j(e.canTrack);
|
|
2247
2261
|
if (n.search.includes("preview="), !o || !(v() || R === "reactNative"))
|
|
2248
2262
|
return t;
|
|
2249
2263
|
try {
|
|
2250
|
-
const
|
|
2251
|
-
for (const
|
|
2252
|
-
|
|
2253
|
-
item:
|
|
2264
|
+
const r = [];
|
|
2265
|
+
for (const s of t.results)
|
|
2266
|
+
r.push(await dn({
|
|
2267
|
+
item: s,
|
|
2254
2268
|
canTrack: o
|
|
2255
2269
|
}));
|
|
2256
|
-
t.results =
|
|
2257
|
-
} catch (
|
|
2258
|
-
$.error("Could not process A/B tests. ",
|
|
2270
|
+
t.results = r;
|
|
2271
|
+
} catch (r) {
|
|
2272
|
+
$.error("Could not process A/B tests. ", r);
|
|
2259
2273
|
}
|
|
2260
2274
|
return t;
|
|
2261
2275
|
};
|
|
2262
|
-
async function
|
|
2276
|
+
async function He(e) {
|
|
2263
2277
|
try {
|
|
2264
|
-
const t =
|
|
2278
|
+
const t = se(e), n = await mo(e);
|
|
2265
2279
|
return po(n) ? ho(e, n) : ($.error("Error fetching data. ", {
|
|
2266
2280
|
url: t,
|
|
2267
2281
|
content: n,
|
|
@@ -2271,7 +2285,7 @@ async function Le(e) {
|
|
|
2271
2285
|
return $.error("Error fetching data. ", t), null;
|
|
2272
2286
|
}
|
|
2273
2287
|
}
|
|
2274
|
-
const
|
|
2288
|
+
const sr = He;
|
|
2275
2289
|
function fo() {
|
|
2276
2290
|
return !v() || T() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
2277
2291
|
}
|
|
@@ -2281,41 +2295,41 @@ function bo() {
|
|
|
2281
2295
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
2282
2296
|
});
|
|
2283
2297
|
}
|
|
2284
|
-
function
|
|
2298
|
+
function Ke() {
|
|
2285
2299
|
return bo().replace(/-/g, "");
|
|
2286
2300
|
}
|
|
2287
|
-
const
|
|
2301
|
+
const De = "builderSessionId", go = async ({
|
|
2288
2302
|
canTrack: e
|
|
2289
2303
|
}) => {
|
|
2290
2304
|
if (!e)
|
|
2291
2305
|
return;
|
|
2292
|
-
const t = await
|
|
2293
|
-
name:
|
|
2306
|
+
const t = await Be({
|
|
2307
|
+
name: De,
|
|
2294
2308
|
canTrack: e
|
|
2295
2309
|
});
|
|
2296
|
-
if (
|
|
2310
|
+
if (P(t))
|
|
2297
2311
|
return t;
|
|
2298
2312
|
{
|
|
2299
|
-
const n =
|
|
2300
|
-
return
|
|
2313
|
+
const n = ko();
|
|
2314
|
+
return yo({
|
|
2301
2315
|
id: n,
|
|
2302
2316
|
canTrack: e
|
|
2303
2317
|
}), n;
|
|
2304
2318
|
}
|
|
2305
|
-
},
|
|
2319
|
+
}, ko = () => Ke(), yo = ({
|
|
2306
2320
|
id: e,
|
|
2307
2321
|
canTrack: t
|
|
2308
|
-
}) =>
|
|
2309
|
-
name:
|
|
2322
|
+
}) => We({
|
|
2323
|
+
name: De,
|
|
2310
2324
|
value: e,
|
|
2311
2325
|
canTrack: t
|
|
2312
|
-
}),
|
|
2326
|
+
}), ze = () => v() && typeof localStorage < "u" ? localStorage : void 0, vo = ({
|
|
2313
2327
|
key: e,
|
|
2314
2328
|
canTrack: t
|
|
2315
2329
|
}) => {
|
|
2316
2330
|
var n;
|
|
2317
2331
|
try {
|
|
2318
|
-
return t ? (n =
|
|
2332
|
+
return t ? (n = ze()) == null ? void 0 : n.getItem(e) : void 0;
|
|
2319
2333
|
} catch (o) {
|
|
2320
2334
|
console.debug("[LocalStorage] GET error: ", o);
|
|
2321
2335
|
return;
|
|
@@ -2327,20 +2341,20 @@ const Ke = "builderSessionId", go = async ({
|
|
|
2327
2341
|
}) => {
|
|
2328
2342
|
var o;
|
|
2329
2343
|
try {
|
|
2330
|
-
t && ((o =
|
|
2331
|
-
} catch (
|
|
2332
|
-
console.debug("[LocalStorage] SET error: ",
|
|
2344
|
+
t && ((o = ze()) == null || o.setItem(e, n));
|
|
2345
|
+
} catch (r) {
|
|
2346
|
+
console.debug("[LocalStorage] SET error: ", r);
|
|
2333
2347
|
}
|
|
2334
|
-
},
|
|
2348
|
+
}, qe = "builderVisitorId", Co = ({
|
|
2335
2349
|
canTrack: e
|
|
2336
2350
|
}) => {
|
|
2337
2351
|
if (!e)
|
|
2338
2352
|
return;
|
|
2339
2353
|
const t = vo({
|
|
2340
|
-
key:
|
|
2354
|
+
key: qe,
|
|
2341
2355
|
canTrack: e
|
|
2342
2356
|
});
|
|
2343
|
-
if (
|
|
2357
|
+
if (P(t))
|
|
2344
2358
|
return t;
|
|
2345
2359
|
{
|
|
2346
2360
|
const n = wo();
|
|
@@ -2349,11 +2363,11 @@ const Ke = "builderSessionId", go = async ({
|
|
|
2349
2363
|
canTrack: e
|
|
2350
2364
|
}), n;
|
|
2351
2365
|
}
|
|
2352
|
-
}, wo = () =>
|
|
2366
|
+
}, wo = () => Ke(), Io = ({
|
|
2353
2367
|
id: e,
|
|
2354
2368
|
canTrack: t
|
|
2355
2369
|
}) => So({
|
|
2356
|
-
key:
|
|
2370
|
+
key: qe,
|
|
2357
2371
|
value: e,
|
|
2358
2372
|
canTrack: t
|
|
2359
2373
|
}), $o = async ({
|
|
@@ -2378,11 +2392,11 @@ const Ke = "builderSessionId", go = async ({
|
|
|
2378
2392
|
canTrack: t,
|
|
2379
2393
|
apiKey: n,
|
|
2380
2394
|
metadata: o,
|
|
2381
|
-
...
|
|
2395
|
+
...r
|
|
2382
2396
|
}) => ({
|
|
2383
2397
|
type: e,
|
|
2384
2398
|
data: {
|
|
2385
|
-
...
|
|
2399
|
+
...r,
|
|
2386
2400
|
metadata: {
|
|
2387
2401
|
url: location.href,
|
|
2388
2402
|
...o
|
|
@@ -2390,11 +2404,11 @@ const Ke = "builderSessionId", go = async ({
|
|
|
2390
2404
|
...await $o({
|
|
2391
2405
|
canTrack: t
|
|
2392
2406
|
}),
|
|
2393
|
-
userAttributes:
|
|
2407
|
+
userAttributes: $e(),
|
|
2394
2408
|
ownerId: n
|
|
2395
2409
|
}
|
|
2396
2410
|
});
|
|
2397
|
-
async function
|
|
2411
|
+
async function ne(e) {
|
|
2398
2412
|
if (!e.apiKey) {
|
|
2399
2413
|
$.error("Missing API key for track call. Please provide your API key.");
|
|
2400
2414
|
return;
|
|
@@ -2413,7 +2427,7 @@ async function te(e) {
|
|
|
2413
2427
|
console.error("Failed to track: ", t);
|
|
2414
2428
|
});
|
|
2415
2429
|
}
|
|
2416
|
-
const
|
|
2430
|
+
const ir = (e) => ne({
|
|
2417
2431
|
...e,
|
|
2418
2432
|
canTrack: !0
|
|
2419
2433
|
});
|
|
@@ -2431,20 +2445,20 @@ const To = (e, t, n = !0) => {
|
|
|
2431
2445
|
return o;
|
|
2432
2446
|
} while (o = o.parentElement);
|
|
2433
2447
|
return null;
|
|
2434
|
-
},
|
|
2448
|
+
}, Po = (e) => To(e, (t) => {
|
|
2435
2449
|
const n = t.getAttribute("builder-id") || t.id;
|
|
2436
2450
|
return Boolean((n == null ? void 0 : n.indexOf("builder-")) === 0);
|
|
2437
2451
|
}), ge = ({
|
|
2438
2452
|
event: e,
|
|
2439
2453
|
target: t
|
|
2440
2454
|
}) => {
|
|
2441
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left,
|
|
2455
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, s = be(o / n.width), i = be(r / n.height);
|
|
2442
2456
|
return {
|
|
2443
|
-
x:
|
|
2444
|
-
y:
|
|
2457
|
+
x: s,
|
|
2458
|
+
y: i
|
|
2445
2459
|
};
|
|
2446
2460
|
}, Eo = (e) => {
|
|
2447
|
-
const t = e.target, n = t &&
|
|
2461
|
+
const t = e.target, n = t && Po(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2448
2462
|
return {
|
|
2449
2463
|
targetBuilderElement: o || void 0,
|
|
2450
2464
|
metadata: {
|
|
@@ -2459,10 +2473,10 @@ const To = (e, t, n = !0) => {
|
|
|
2459
2473
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
2460
2474
|
}
|
|
2461
2475
|
};
|
|
2462
|
-
},
|
|
2463
|
-
function
|
|
2464
|
-
let n =
|
|
2465
|
-
if (n || (n =
|
|
2476
|
+
}, xo = "0.9.0", ke = {};
|
|
2477
|
+
function Bo(e, t) {
|
|
2478
|
+
let n = ke[e];
|
|
2479
|
+
if (n || (n = ke[e] = []), n.push(t), v()) {
|
|
2466
2480
|
const o = {
|
|
2467
2481
|
type: "builder.register",
|
|
2468
2482
|
data: {
|
|
@@ -2472,13 +2486,13 @@ function Ao(e, t) {
|
|
|
2472
2486
|
};
|
|
2473
2487
|
try {
|
|
2474
2488
|
parent.postMessage(o, "*"), parent !== window && window.postMessage(o, "*");
|
|
2475
|
-
} catch (
|
|
2476
|
-
console.debug("Could not postmessage",
|
|
2489
|
+
} catch (r) {
|
|
2490
|
+
console.debug("Could not postmessage", r);
|
|
2477
2491
|
}
|
|
2478
2492
|
}
|
|
2479
2493
|
}
|
|
2480
|
-
const
|
|
2481
|
-
|
|
2494
|
+
const Wo = () => {
|
|
2495
|
+
Bo("insertMenu", {
|
|
2482
2496
|
name: "_default",
|
|
2483
2497
|
default: !0,
|
|
2484
2498
|
items: [{
|
|
@@ -2500,14 +2514,14 @@ const Bo = () => {
|
|
|
2500
2514
|
}]
|
|
2501
2515
|
});
|
|
2502
2516
|
};
|
|
2503
|
-
let
|
|
2504
|
-
const
|
|
2517
|
+
let ye = !1;
|
|
2518
|
+
const Ao = (e = {}) => {
|
|
2505
2519
|
var t, n;
|
|
2506
|
-
|
|
2520
|
+
ye || (ye = !0, v() && ((t = window.parent) == null || t.postMessage({
|
|
2507
2521
|
type: "builder.sdkInfo",
|
|
2508
2522
|
data: {
|
|
2509
2523
|
target: R,
|
|
2510
|
-
version:
|
|
2524
|
+
version: xo,
|
|
2511
2525
|
supportsPatchUpdates: !1,
|
|
2512
2526
|
supportsAddBlockScoping: !0,
|
|
2513
2527
|
supportsCustomBreakpoints: !0
|
|
@@ -2520,36 +2534,36 @@ const Vo = (e = {}) => {
|
|
|
2520
2534
|
}, "*"), window.addEventListener("message", ({
|
|
2521
2535
|
data: o
|
|
2522
2536
|
}) => {
|
|
2523
|
-
var
|
|
2537
|
+
var r, s;
|
|
2524
2538
|
if (!!(o != null && o.type))
|
|
2525
2539
|
switch (o.type) {
|
|
2526
2540
|
case "builder.evaluate": {
|
|
2527
|
-
const
|
|
2528
|
-
let
|
|
2541
|
+
const i = o.data.text, a = o.data.arguments || [], l = o.data.id, d = new Function(i);
|
|
2542
|
+
let u, m = null;
|
|
2529
2543
|
try {
|
|
2530
|
-
|
|
2531
|
-
} catch (
|
|
2532
|
-
|
|
2544
|
+
u = d.apply(null, a);
|
|
2545
|
+
} catch (h) {
|
|
2546
|
+
m = h;
|
|
2533
2547
|
}
|
|
2534
|
-
|
|
2548
|
+
m ? (r = window.parent) == null || r.postMessage({
|
|
2535
2549
|
type: "builder.evaluateError",
|
|
2536
2550
|
data: {
|
|
2537
2551
|
id: l,
|
|
2538
|
-
error:
|
|
2552
|
+
error: m.message
|
|
2539
2553
|
}
|
|
2540
|
-
}, "*") :
|
|
2554
|
+
}, "*") : u && typeof u.then == "function" ? u.then((h) => {
|
|
2541
2555
|
var S;
|
|
2542
2556
|
(S = window.parent) == null || S.postMessage({
|
|
2543
2557
|
type: "builder.evaluateResult",
|
|
2544
2558
|
data: {
|
|
2545
2559
|
id: l,
|
|
2546
|
-
result:
|
|
2560
|
+
result: h
|
|
2547
2561
|
}
|
|
2548
2562
|
}, "*");
|
|
2549
|
-
}).catch(console.error) : (
|
|
2563
|
+
}).catch(console.error) : (s = window.parent) == null || s.postMessage({
|
|
2550
2564
|
type: "builder.evaluateResult",
|
|
2551
2565
|
data: {
|
|
2552
|
-
result:
|
|
2566
|
+
result: u,
|
|
2553
2567
|
id: l
|
|
2554
2568
|
}
|
|
2555
2569
|
}, "*");
|
|
@@ -2557,10 +2571,11 @@ const Vo = (e = {}) => {
|
|
|
2557
2571
|
}
|
|
2558
2572
|
}
|
|
2559
2573
|
})));
|
|
2560
|
-
},
|
|
2574
|
+
}, Vo = b({
|
|
2561
2575
|
name: "enable-editor",
|
|
2562
2576
|
props: [
|
|
2563
2577
|
"builderContextSignal",
|
|
2578
|
+
"contentWrapper",
|
|
2564
2579
|
"model",
|
|
2565
2580
|
"context",
|
|
2566
2581
|
"canTrack",
|
|
@@ -2569,22 +2584,24 @@ const Vo = (e = {}) => {
|
|
|
2569
2584
|
"includeRefs",
|
|
2570
2585
|
"enrich",
|
|
2571
2586
|
"content",
|
|
2572
|
-
"showContent"
|
|
2587
|
+
"showContent",
|
|
2588
|
+
"contentWrapperProps"
|
|
2573
2589
|
],
|
|
2574
2590
|
data() {
|
|
2575
2591
|
return {
|
|
2576
2592
|
forceReRenderCount: 0,
|
|
2577
2593
|
lastUpdated: 0,
|
|
2578
2594
|
shouldSendResetCookie: !1,
|
|
2595
|
+
ContentWrapper: this.contentWrapper || "div",
|
|
2579
2596
|
httpReqsData: {},
|
|
2580
2597
|
clicked: !1,
|
|
2581
|
-
builderContext:
|
|
2598
|
+
builderContext: ee
|
|
2582
2599
|
};
|
|
2583
2600
|
},
|
|
2584
2601
|
provide() {
|
|
2585
2602
|
const e = this;
|
|
2586
2603
|
return {
|
|
2587
|
-
[
|
|
2604
|
+
[ee.key]: e.builderContextSignal
|
|
2588
2605
|
};
|
|
2589
2606
|
},
|
|
2590
2607
|
mounted() {
|
|
@@ -2593,14 +2610,14 @@ const Vo = (e = {}) => {
|
|
|
2593
2610
|
if (v()) {
|
|
2594
2611
|
if (T() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
2595
2612
|
new CustomEvent("initeditingbldr")
|
|
2596
|
-
), this.builderContextSignal.content &&
|
|
2597
|
-
const
|
|
2598
|
-
|
|
2613
|
+
), this.builderContextSignal.content && j(this.canTrack)) {
|
|
2614
|
+
const s = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, i = (o = this.builderContextSignal.content) == null ? void 0 : o.id, a = this.apiKey;
|
|
2615
|
+
ne({
|
|
2599
2616
|
type: "impression",
|
|
2600
2617
|
canTrack: !0,
|
|
2601
|
-
contentId:
|
|
2618
|
+
contentId: i,
|
|
2602
2619
|
apiKey: a,
|
|
2603
|
-
variationId:
|
|
2620
|
+
variationId: s !== i ? s : void 0
|
|
2604
2621
|
});
|
|
2605
2622
|
}
|
|
2606
2623
|
fo() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
@@ -2679,7 +2696,7 @@ const Vo = (e = {}) => {
|
|
|
2679
2696
|
},
|
|
2680
2697
|
methods: {
|
|
2681
2698
|
mergeNewContent(e) {
|
|
2682
|
-
var n, o,
|
|
2699
|
+
var n, o, r, s, i;
|
|
2683
2700
|
const t = {
|
|
2684
2701
|
...this.builderContextSignal.content,
|
|
2685
2702
|
...e,
|
|
@@ -2690,7 +2707,7 @@ const Vo = (e = {}) => {
|
|
|
2690
2707
|
meta: {
|
|
2691
2708
|
...(o = this.builderContextSignal.content) == null ? void 0 : o.meta,
|
|
2692
2709
|
...e == null ? void 0 : e.meta,
|
|
2693
|
-
breakpoints: ((
|
|
2710
|
+
breakpoints: ((r = e == null ? void 0 : e.meta) == null ? void 0 : r.breakpoints) || ((i = (s = this.builderContextSignal.content) == null ? void 0 : s.meta) == null ? void 0 : i.breakpoints)
|
|
2694
2711
|
}
|
|
2695
2712
|
};
|
|
2696
2713
|
this.builderContextSignal.content = t;
|
|
@@ -2701,19 +2718,19 @@ const Vo = (e = {}) => {
|
|
|
2701
2718
|
if (t)
|
|
2702
2719
|
switch (t.type) {
|
|
2703
2720
|
case "builder.configureSdk": {
|
|
2704
|
-
const o = t.data, { breakpoints:
|
|
2705
|
-
if (!
|
|
2721
|
+
const o = t.data, { breakpoints: r, contentId: s } = o;
|
|
2722
|
+
if (!s || s !== ((n = this.builderContextSignal.content) == null ? void 0 : n.id))
|
|
2706
2723
|
return;
|
|
2707
|
-
|
|
2724
|
+
r && this.mergeNewContent({
|
|
2708
2725
|
meta: {
|
|
2709
|
-
breakpoints:
|
|
2726
|
+
breakpoints: r
|
|
2710
2727
|
}
|
|
2711
2728
|
}), this.forceReRenderCount = this.forceReRenderCount + 1;
|
|
2712
2729
|
break;
|
|
2713
2730
|
}
|
|
2714
2731
|
case "builder.contentUpdate": {
|
|
2715
|
-
const o = t.data,
|
|
2716
|
-
|
|
2732
|
+
const o = t.data, r = o.key || o.alias || o.entry || o.modelName, s = o.data;
|
|
2733
|
+
r === this.model && (this.mergeNewContent(s), this.forceReRenderCount = this.forceReRenderCount + 1);
|
|
2717
2734
|
break;
|
|
2718
2735
|
}
|
|
2719
2736
|
}
|
|
@@ -2721,7 +2738,7 @@ const Vo = (e = {}) => {
|
|
|
2721
2738
|
evaluateJsCode() {
|
|
2722
2739
|
var t, n;
|
|
2723
2740
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
2724
|
-
e &&
|
|
2741
|
+
e && D({
|
|
2725
2742
|
code: e,
|
|
2726
2743
|
context: this.context || {},
|
|
2727
2744
|
localState: void 0,
|
|
@@ -2732,13 +2749,13 @@ const Vo = (e = {}) => {
|
|
|
2732
2749
|
onClick(e) {
|
|
2733
2750
|
var t, n;
|
|
2734
2751
|
if (this.builderContextSignal.content) {
|
|
2735
|
-
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId,
|
|
2736
|
-
|
|
2752
|
+
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
2753
|
+
ne({
|
|
2737
2754
|
type: "click",
|
|
2738
|
-
canTrack:
|
|
2739
|
-
contentId:
|
|
2755
|
+
canTrack: j(this.canTrack),
|
|
2756
|
+
contentId: r,
|
|
2740
2757
|
apiKey: this.apiKey,
|
|
2741
|
-
variationId: o !==
|
|
2758
|
+
variationId: o !== r ? o : void 0,
|
|
2742
2759
|
...Eo(e),
|
|
2743
2760
|
unique: !this.clicked
|
|
2744
2761
|
});
|
|
@@ -2748,7 +2765,7 @@ const Vo = (e = {}) => {
|
|
|
2748
2765
|
evalExpression(e) {
|
|
2749
2766
|
return e.replace(
|
|
2750
2767
|
/{{([^}]+)}}/g,
|
|
2751
|
-
(t, n) =>
|
|
2768
|
+
(t, n) => D({
|
|
2752
2769
|
code: n,
|
|
2753
2770
|
context: this.context || {},
|
|
2754
2771
|
localState: void 0,
|
|
@@ -2759,12 +2776,12 @@ const Vo = (e = {}) => {
|
|
|
2759
2776
|
},
|
|
2760
2777
|
handleRequest({ url: e, key: t }) {
|
|
2761
2778
|
Fe(e).then((n) => n.json()).then((n) => {
|
|
2762
|
-
var
|
|
2779
|
+
var r, s;
|
|
2763
2780
|
const o = {
|
|
2764
2781
|
...this.builderContextSignal.rootState,
|
|
2765
2782
|
[t]: n
|
|
2766
2783
|
};
|
|
2767
|
-
(
|
|
2784
|
+
(s = (r = this.builderContextSignal).rootSetState) == null || s.call(r, o), this.httpReqsData[t] = !0;
|
|
2768
2785
|
}).catch((n) => {
|
|
2769
2786
|
console.error("error fetching dynamic data", e, n);
|
|
2770
2787
|
});
|
|
@@ -2772,12 +2789,12 @@ const Vo = (e = {}) => {
|
|
|
2772
2789
|
runHttpRequests() {
|
|
2773
2790
|
var t, n, o;
|
|
2774
2791
|
const e = (o = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) != null ? o : {};
|
|
2775
|
-
Object.entries(e).forEach(([
|
|
2776
|
-
if (
|
|
2777
|
-
const
|
|
2792
|
+
Object.entries(e).forEach(([r, s]) => {
|
|
2793
|
+
if (s && (!this.httpReqsData[r] || T())) {
|
|
2794
|
+
const i = this.evalExpression(s);
|
|
2778
2795
|
this.handleRequest({
|
|
2779
|
-
url:
|
|
2780
|
-
key:
|
|
2796
|
+
url: i,
|
|
2797
|
+
key: r
|
|
2781
2798
|
});
|
|
2782
2799
|
}
|
|
2783
2800
|
});
|
|
@@ -2798,7 +2815,7 @@ const Vo = (e = {}) => {
|
|
|
2798
2815
|
);
|
|
2799
2816
|
},
|
|
2800
2817
|
elementRef_onIniteditingbldr(e) {
|
|
2801
|
-
this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage),
|
|
2818
|
+
this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage), Wo(), Ao({
|
|
2802
2819
|
...this.locale ? {
|
|
2803
2820
|
locale: this.locale
|
|
2804
2821
|
} : {},
|
|
@@ -2822,13 +2839,13 @@ const Vo = (e = {}) => {
|
|
|
2822
2839
|
elementRef_onInitpreviewingbldr(e) {
|
|
2823
2840
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
|
|
2824
2841
|
`builder.preview.${n}`
|
|
2825
|
-
),
|
|
2826
|
-
n === this.model &&
|
|
2842
|
+
), r = t.get("apiKey") || t.get("builder.space");
|
|
2843
|
+
n === this.model && r === this.apiKey && (!this.content || o === this.content.id) && J({
|
|
2827
2844
|
model: this.model,
|
|
2828
2845
|
apiKey: this.apiKey,
|
|
2829
2846
|
apiVersion: this.builderContextSignal.apiVersion
|
|
2830
|
-
}).then((
|
|
2831
|
-
|
|
2847
|
+
}).then((s) => {
|
|
2848
|
+
s && this.mergeNewContent(s);
|
|
2832
2849
|
});
|
|
2833
2850
|
},
|
|
2834
2851
|
_classStringToObject(e) {
|
|
@@ -2841,34 +2858,38 @@ const Vo = (e = {}) => {
|
|
|
2841
2858
|
return t;
|
|
2842
2859
|
}
|
|
2843
2860
|
}
|
|
2844
|
-
})
|
|
2845
|
-
function
|
|
2846
|
-
var
|
|
2847
|
-
return e.builderContextSignal.content ? (
|
|
2861
|
+
});
|
|
2862
|
+
function _o(e, t, n, o, r, s) {
|
|
2863
|
+
var i, a, l;
|
|
2864
|
+
return e.builderContextSignal.content ? (c(), y(Ce(e.ContentWrapper), w({
|
|
2848
2865
|
key: e.forceReRenderCount,
|
|
2849
2866
|
ref: "elementRef",
|
|
2850
|
-
onClick:
|
|
2851
|
-
"builder-content-id": (
|
|
2867
|
+
onClick: (d) => e.onClick(d),
|
|
2868
|
+
"builder-content-id": (i = e.builderContextSignal.content) == null ? void 0 : i.id,
|
|
2852
2869
|
"builder-model": e.model,
|
|
2853
2870
|
class: e._classStringToObject(
|
|
2854
2871
|
`variant-${((a = e.content) == null ? void 0 : a.testVariationId) || ((l = e.content) == null ? void 0 : l.id)}`
|
|
2855
2872
|
),
|
|
2856
|
-
onIniteditingbldr:
|
|
2857
|
-
onInitpreviewingbldr:
|
|
2873
|
+
onIniteditingbldr: (d) => e.elementRef_onIniteditingbldr(d),
|
|
2874
|
+
onInitpreviewingbldr: (d) => e.elementRef_onInitpreviewingbldr(d)
|
|
2858
2875
|
}, {
|
|
2859
2876
|
...e.showContent ? {} : {
|
|
2860
2877
|
hidden: !0,
|
|
2861
2878
|
"aria-hidden": !0
|
|
2862
|
-
}
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2879
|
+
},
|
|
2880
|
+
...e.contentWrapperProps
|
|
2881
|
+
}), {
|
|
2882
|
+
default: U(() => [
|
|
2883
|
+
x(e.$slots, "default")
|
|
2884
|
+
]),
|
|
2885
|
+
_: 3
|
|
2886
|
+
}, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : f("v-if", !0);
|
|
2866
2887
|
}
|
|
2867
|
-
const
|
|
2868
|
-
var
|
|
2869
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = (
|
|
2870
|
-
let
|
|
2871
|
-
if (o && t && n && (
|
|
2888
|
+
const Oo = /* @__PURE__ */ g(Vo, [["render", _o], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/content/components/enable-editor.vue"]]), No = (e) => {
|
|
2889
|
+
var s, i;
|
|
2890
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = (i = e.fileUrl) != null ? i : (s = e == null ? void 0 : e.files) == null ? void 0 : s.regular;
|
|
2891
|
+
let r = "";
|
|
2892
|
+
if (o && t && n && (r += `
|
|
2872
2893
|
@font-face {
|
|
2873
2894
|
font-family: "${t}";
|
|
2874
2895
|
src: local("${n}"), url('${o}') format('woff2');
|
|
@@ -2879,37 +2900,37 @@ font-weight: 400;
|
|
|
2879
2900
|
for (const a in e.files) {
|
|
2880
2901
|
if (!(String(Number(a)) === a))
|
|
2881
2902
|
continue;
|
|
2882
|
-
const
|
|
2883
|
-
|
|
2903
|
+
const d = e.files[a];
|
|
2904
|
+
d && d !== o && (r += `
|
|
2884
2905
|
@font-face {
|
|
2885
2906
|
font-family: "${t}";
|
|
2886
|
-
src: url('${
|
|
2907
|
+
src: url('${d}') format('woff2');
|
|
2887
2908
|
font-display: fallback;
|
|
2888
2909
|
font-weight: ${a};
|
|
2889
2910
|
}
|
|
2890
2911
|
`.trim());
|
|
2891
2912
|
}
|
|
2892
|
-
return
|
|
2893
|
-
},
|
|
2913
|
+
return r;
|
|
2914
|
+
}, jo = ({
|
|
2894
2915
|
customFonts: e
|
|
2895
2916
|
}) => {
|
|
2896
2917
|
var t;
|
|
2897
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
2898
|
-
},
|
|
2918
|
+
return ((t = e == null ? void 0 : e.map((n) => No(n))) == null ? void 0 : t.join(" ")) || "";
|
|
2919
|
+
}, Uo = ({
|
|
2899
2920
|
cssCode: e,
|
|
2900
2921
|
contentId: t
|
|
2901
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
2922
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Fo = b({
|
|
2902
2923
|
name: "content-styles",
|
|
2903
|
-
components: { InlinedStyles:
|
|
2924
|
+
components: { InlinedStyles: G },
|
|
2904
2925
|
props: ["cssCode", "contentId", "customFonts"],
|
|
2905
2926
|
data() {
|
|
2906
2927
|
return {
|
|
2907
2928
|
injectedStyles: `
|
|
2908
|
-
${
|
|
2929
|
+
${Uo({
|
|
2909
2930
|
cssCode: this.cssCode,
|
|
2910
2931
|
contentId: this.contentId
|
|
2911
2932
|
})}
|
|
2912
|
-
${
|
|
2933
|
+
${jo({
|
|
2913
2934
|
customFonts: this.customFonts
|
|
2914
2935
|
})}
|
|
2915
2936
|
|
|
@@ -2929,28 +2950,28 @@ ${Fo({
|
|
|
2929
2950
|
};
|
|
2930
2951
|
}
|
|
2931
2952
|
});
|
|
2932
|
-
function
|
|
2933
|
-
const
|
|
2934
|
-
return
|
|
2953
|
+
function Mo(e, t, n, o, r, s) {
|
|
2954
|
+
const i = k("inlined-styles");
|
|
2955
|
+
return c(), y(i, { styles: e.injectedStyles }, null, 8, ["styles"]);
|
|
2935
2956
|
}
|
|
2936
|
-
const
|
|
2957
|
+
const Lo = /* @__PURE__ */ g(Fo, [["render", Mo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/content/components/styles.vue"]]), Ho = ({
|
|
2937
2958
|
content: e,
|
|
2938
2959
|
data: t,
|
|
2939
2960
|
locale: n
|
|
2940
2961
|
}) => {
|
|
2941
|
-
var
|
|
2942
|
-
const o = {},
|
|
2943
|
-
return (a = (
|
|
2962
|
+
var s, i, a;
|
|
2963
|
+
const o = {}, r = ((s = e == null ? void 0 : e.data) == null ? void 0 : s.state) || {};
|
|
2964
|
+
return (a = (i = e == null ? void 0 : e.data) == null ? void 0 : i.inputs) == null || a.forEach((l) => {
|
|
2944
2965
|
l.name && l.defaultValue !== void 0 && (o[l.name] = l.defaultValue);
|
|
2945
2966
|
}), {
|
|
2946
2967
|
...o,
|
|
2947
|
-
...
|
|
2968
|
+
...r,
|
|
2948
2969
|
...t,
|
|
2949
2970
|
...n ? {
|
|
2950
2971
|
locale: n
|
|
2951
2972
|
} : {}
|
|
2952
2973
|
};
|
|
2953
|
-
},
|
|
2974
|
+
}, Ko = ({
|
|
2954
2975
|
content: e,
|
|
2955
2976
|
data: t
|
|
2956
2977
|
}) => e ? {
|
|
@@ -2960,12 +2981,12 @@ const Ho = /* @__PURE__ */ g(Mo, [["render", Lo], ["__file", "/home/runner/work/
|
|
|
2960
2981
|
...t
|
|
2961
2982
|
},
|
|
2962
2983
|
meta: e == null ? void 0 : e.meta
|
|
2963
|
-
} : void 0,
|
|
2984
|
+
} : void 0, Do = Ye, zo = b({
|
|
2964
2985
|
name: "content-component",
|
|
2965
2986
|
components: {
|
|
2966
|
-
EnableEditor:
|
|
2987
|
+
EnableEditor: Oo,
|
|
2967
2988
|
InlinedScript: Ue,
|
|
2968
|
-
ContentStyles:
|
|
2989
|
+
ContentStyles: Lo,
|
|
2969
2990
|
Blocks: oe
|
|
2970
2991
|
},
|
|
2971
2992
|
props: [
|
|
@@ -2976,11 +2997,15 @@ const Ho = /* @__PURE__ */ g(Mo, [["render", Lo], ["__file", "/home/runner/work/
|
|
|
2976
2997
|
"context",
|
|
2977
2998
|
"apiKey",
|
|
2978
2999
|
"apiVersion",
|
|
3000
|
+
"blocksWrapper",
|
|
3001
|
+
"blocksWrapperProps",
|
|
2979
3002
|
"model",
|
|
2980
3003
|
"canTrack",
|
|
2981
3004
|
"includeRefs",
|
|
2982
3005
|
"enrich",
|
|
2983
3006
|
"showContent",
|
|
3007
|
+
"contentWrapper",
|
|
3008
|
+
"contentWrapperProps",
|
|
2984
3009
|
"isSsrAbTest"
|
|
2985
3010
|
],
|
|
2986
3011
|
data() {
|
|
@@ -2995,22 +3020,22 @@ const Ho = /* @__PURE__ */ g(Mo, [["render", Lo], ["__file", "/home/runner/work/
|
|
|
2995
3020
|
...me,
|
|
2996
3021
|
...this.customComponents || []
|
|
2997
3022
|
].reduce(
|
|
2998
|
-
(n, { component: o, ...
|
|
3023
|
+
(n, { component: o, ...r }) => ({
|
|
2999
3024
|
...n,
|
|
3000
|
-
[
|
|
3001
|
-
component:
|
|
3002
|
-
...
|
|
3025
|
+
[r.name]: {
|
|
3026
|
+
component: Do(o),
|
|
3027
|
+
...te(r)
|
|
3003
3028
|
}
|
|
3004
3029
|
}),
|
|
3005
3030
|
{}
|
|
3006
3031
|
),
|
|
3007
3032
|
builderContextSignal: {
|
|
3008
|
-
content:
|
|
3033
|
+
content: Ko({
|
|
3009
3034
|
content: this.content,
|
|
3010
3035
|
data: this.data
|
|
3011
3036
|
}),
|
|
3012
3037
|
localState: void 0,
|
|
3013
|
-
rootState:
|
|
3038
|
+
rootState: Ho({
|
|
3014
3039
|
content: this.content,
|
|
3015
3040
|
data: this.data,
|
|
3016
3041
|
locale: this.locale
|
|
@@ -3024,13 +3049,15 @@ const Ho = /* @__PURE__ */ g(Mo, [["render", Lo], ["__file", "/home/runner/work/
|
|
|
3024
3049
|
...me,
|
|
3025
3050
|
...this.customComponents || []
|
|
3026
3051
|
].reduce(
|
|
3027
|
-
(n, { component: o, ...
|
|
3052
|
+
(n, { component: o, ...r }) => ({
|
|
3028
3053
|
...n,
|
|
3029
|
-
[
|
|
3054
|
+
[r.name]: te(r)
|
|
3030
3055
|
}),
|
|
3031
3056
|
{}
|
|
3032
3057
|
),
|
|
3033
|
-
inheritedStyles: {}
|
|
3058
|
+
inheritedStyles: {},
|
|
3059
|
+
BlocksWrapper: this.blocksWrapper || "div",
|
|
3060
|
+
BlocksWrapperProps: this.blocksWrapperProps || {}
|
|
3034
3061
|
},
|
|
3035
3062
|
TARGET: R
|
|
3036
3063
|
};
|
|
@@ -3038,7 +3065,7 @@ const Ho = /* @__PURE__ */ g(Mo, [["render", Lo], ["__file", "/home/runner/work/
|
|
|
3038
3065
|
provide() {
|
|
3039
3066
|
const e = this;
|
|
3040
3067
|
return {
|
|
3041
|
-
[
|
|
3068
|
+
[Ie.key]: {
|
|
3042
3069
|
registeredComponents: e.registeredComponents
|
|
3043
3070
|
}
|
|
3044
3071
|
};
|
|
@@ -3049,9 +3076,9 @@ const Ho = /* @__PURE__ */ g(Mo, [["render", Lo], ["__file", "/home/runner/work/
|
|
|
3049
3076
|
}
|
|
3050
3077
|
}
|
|
3051
3078
|
});
|
|
3052
|
-
function
|
|
3053
|
-
const
|
|
3054
|
-
return
|
|
3079
|
+
function qo(e, t, n, o, r, s) {
|
|
3080
|
+
const i = k("inlined-script"), a = k("content-styles"), l = k("blocks"), d = k("enable-editor");
|
|
3081
|
+
return c(), y(d, w({
|
|
3055
3082
|
content: e.content,
|
|
3056
3083
|
model: e.model,
|
|
3057
3084
|
context: e.context,
|
|
@@ -3061,37 +3088,39 @@ function Go(e, t, n, o, i, r) {
|
|
|
3061
3088
|
includeRefs: e.includeRefs,
|
|
3062
3089
|
enrich: e.enrich,
|
|
3063
3090
|
showContent: e.showContent,
|
|
3064
|
-
builderContextSignal: e.builderContextSignal
|
|
3091
|
+
builderContextSignal: e.builderContextSignal,
|
|
3092
|
+
contentWrapper: e.contentWrapper,
|
|
3093
|
+
contentWrapperProps: e.contentWrapperProps
|
|
3065
3094
|
}, {}), {
|
|
3066
|
-
default:
|
|
3067
|
-
var
|
|
3095
|
+
default: U(() => {
|
|
3096
|
+
var u, m, h, S, A, V, _;
|
|
3068
3097
|
return [
|
|
3069
|
-
e.isSsrAbTest ? (
|
|
3098
|
+
e.isSsrAbTest ? (c(), y(i, {
|
|
3070
3099
|
key: 0,
|
|
3071
3100
|
scriptStr: e.scriptStr
|
|
3072
3101
|
}, null, 8, ["scriptStr"])) : f("v-if", !0),
|
|
3073
|
-
e.TARGET !== "reactNative" ? (
|
|
3102
|
+
e.TARGET !== "reactNative" ? (c(), y(a, {
|
|
3074
3103
|
key: 1,
|
|
3075
|
-
contentId: (
|
|
3076
|
-
cssCode: (
|
|
3077
|
-
customFonts: (
|
|
3104
|
+
contentId: (u = e.builderContextSignal.content) == null ? void 0 : u.id,
|
|
3105
|
+
cssCode: (h = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : h.cssCode,
|
|
3106
|
+
customFonts: (A = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : A.customFonts
|
|
3078
3107
|
}, null, 8, ["contentId", "cssCode", "customFonts"])) : f("v-if", !0),
|
|
3079
|
-
|
|
3080
|
-
blocks: (
|
|
3108
|
+
W(l, {
|
|
3109
|
+
blocks: (_ = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : _.blocks,
|
|
3081
3110
|
context: e.builderContextSignal,
|
|
3082
3111
|
registeredComponents: e.registeredComponents
|
|
3083
3112
|
}, null, 8, ["blocks", "context", "registeredComponents"])
|
|
3084
3113
|
];
|
|
3085
3114
|
}),
|
|
3086
3115
|
_: 1
|
|
3087
|
-
}, 16, ["content", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "showContent", "builderContextSignal"]);
|
|
3116
|
+
}, 16, ["content", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps"]);
|
|
3088
3117
|
}
|
|
3089
|
-
const
|
|
3118
|
+
const Go = /* @__PURE__ */ g(zo, [["render", qo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/content/content.vue"]]), Jo = b({
|
|
3090
3119
|
name: "content-variants",
|
|
3091
3120
|
components: {
|
|
3092
3121
|
InlinedScript: Ue,
|
|
3093
|
-
InlinedStyles:
|
|
3094
|
-
ContentComponent:
|
|
3122
|
+
InlinedStyles: G,
|
|
3123
|
+
ContentComponent: Go
|
|
3095
3124
|
},
|
|
3096
3125
|
props: [
|
|
3097
3126
|
"canTrack",
|
|
@@ -3105,17 +3134,21 @@ const Jo = /* @__PURE__ */ g(qo, [["render", Go], ["__file", "/home/runner/work/
|
|
|
3105
3134
|
"customComponents",
|
|
3106
3135
|
"locale",
|
|
3107
3136
|
"includeRefs",
|
|
3108
|
-
"enrich"
|
|
3137
|
+
"enrich",
|
|
3138
|
+
"blocksWrapper",
|
|
3139
|
+
"blocksWrapperProps",
|
|
3140
|
+
"contentWrapper",
|
|
3141
|
+
"contentWrapperProps"
|
|
3109
3142
|
],
|
|
3110
3143
|
data() {
|
|
3111
3144
|
return {
|
|
3112
3145
|
shouldRenderVariants: Zn({
|
|
3113
|
-
canTrack:
|
|
3146
|
+
canTrack: j(this.canTrack),
|
|
3114
3147
|
content: this.content
|
|
3115
3148
|
}),
|
|
3116
3149
|
TARGET: R,
|
|
3117
3150
|
getScriptString: to,
|
|
3118
|
-
getVariants:
|
|
3151
|
+
getVariants: H
|
|
3119
3152
|
};
|
|
3120
3153
|
},
|
|
3121
3154
|
mounted() {
|
|
@@ -3125,7 +3158,7 @@ const Jo = /* @__PURE__ */ g(qo, [["render", Go], ["__file", "/home/runner/work/
|
|
|
3125
3158
|
updateCookieAndStylesScriptStr() {
|
|
3126
3159
|
var e;
|
|
3127
3160
|
return no(
|
|
3128
|
-
|
|
3161
|
+
H(this.content).map((t) => ({
|
|
3129
3162
|
id: t.testVariationId,
|
|
3130
3163
|
testRatio: t.testRatio
|
|
3131
3164
|
})),
|
|
@@ -3133,7 +3166,7 @@ const Jo = /* @__PURE__ */ g(qo, [["render", Go], ["__file", "/home/runner/work/
|
|
|
3133
3166
|
);
|
|
3134
3167
|
},
|
|
3135
3168
|
hideVariantsStyleString() {
|
|
3136
|
-
return
|
|
3169
|
+
return H(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
|
|
3137
3170
|
},
|
|
3138
3171
|
defaultContent() {
|
|
3139
3172
|
var e;
|
|
@@ -3142,28 +3175,28 @@ const Jo = /* @__PURE__ */ g(qo, [["render", Go], ["__file", "/home/runner/work/
|
|
|
3142
3175
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
3143
3176
|
} : cn({
|
|
3144
3177
|
item: this.content,
|
|
3145
|
-
canTrack:
|
|
3178
|
+
canTrack: j(this.canTrack)
|
|
3146
3179
|
});
|
|
3147
3180
|
}
|
|
3148
3181
|
}
|
|
3149
3182
|
});
|
|
3150
|
-
function
|
|
3151
|
-
var
|
|
3152
|
-
const
|
|
3153
|
-
return
|
|
3154
|
-
!e.__isNestedRender && e.TARGET !== "reactNative" ? (
|
|
3183
|
+
function Yo(e, t, n, o, r, s) {
|
|
3184
|
+
var d;
|
|
3185
|
+
const i = k("inlined-script"), a = k("inlined-styles"), l = k("content-component");
|
|
3186
|
+
return c(), p(C, null, [
|
|
3187
|
+
!e.__isNestedRender && e.TARGET !== "reactNative" ? (c(), y(i, {
|
|
3155
3188
|
key: 0,
|
|
3156
3189
|
scriptStr: e.getScriptString()
|
|
3157
3190
|
}, null, 8, ["scriptStr"])) : f("v-if", !0),
|
|
3158
|
-
e.shouldRenderVariants ? (
|
|
3159
|
-
|
|
3160
|
-
id: `variants-styles-${(
|
|
3191
|
+
e.shouldRenderVariants ? (c(), p(C, { key: 1 }, [
|
|
3192
|
+
W(a, {
|
|
3193
|
+
id: `variants-styles-${(d = e.content) == null ? void 0 : d.id}`,
|
|
3161
3194
|
styles: e.hideVariantsStyleString
|
|
3162
3195
|
}, null, 8, ["id", "styles"]),
|
|
3163
|
-
|
|
3164
|
-
(
|
|
3165
|
-
key:
|
|
3166
|
-
content:
|
|
3196
|
+
W(i, { scriptStr: e.updateCookieAndStylesScriptStr }, null, 8, ["scriptStr"]),
|
|
3197
|
+
(c(!0), p(C, null, B(e.getVariants(e.content), (u, m) => (c(), y(l, {
|
|
3198
|
+
key: u.testVariationId,
|
|
3199
|
+
content: u,
|
|
3167
3200
|
showContent: !1,
|
|
3168
3201
|
model: e.model,
|
|
3169
3202
|
data: e.data,
|
|
@@ -3175,10 +3208,14 @@ function Qo(e, t, n, o, i, r) {
|
|
|
3175
3208
|
locale: e.locale,
|
|
3176
3209
|
includeRefs: e.includeRefs,
|
|
3177
3210
|
enrich: e.enrich,
|
|
3178
|
-
isSsrAbTest: e.shouldRenderVariants
|
|
3179
|
-
|
|
3211
|
+
isSsrAbTest: e.shouldRenderVariants,
|
|
3212
|
+
blocksWrapper: e.blocksWrapper,
|
|
3213
|
+
blocksWrapperProps: e.blocksWrapperProps,
|
|
3214
|
+
contentWrapper: e.contentWrapper,
|
|
3215
|
+
contentWrapperProps: e.contentWrapperProps
|
|
3216
|
+
}, null, 8, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps"]))), 128))
|
|
3180
3217
|
], 64)) : f("v-if", !0),
|
|
3181
|
-
|
|
3218
|
+
W(l, w({
|
|
3182
3219
|
content: e.defaultContent,
|
|
3183
3220
|
showContent: !0,
|
|
3184
3221
|
model: e.model,
|
|
@@ -3191,18 +3228,22 @@ function Qo(e, t, n, o, i, r) {
|
|
|
3191
3228
|
locale: e.locale,
|
|
3192
3229
|
includeRefs: e.includeRefs,
|
|
3193
3230
|
enrich: e.enrich,
|
|
3194
|
-
isSsrAbTest: e.shouldRenderVariants
|
|
3231
|
+
isSsrAbTest: e.shouldRenderVariants,
|
|
3232
|
+
blocksWrapper: e.blocksWrapper,
|
|
3233
|
+
blocksWrapperProps: e.blocksWrapperProps,
|
|
3234
|
+
contentWrapper: e.contentWrapper,
|
|
3235
|
+
contentWrapperProps: e.contentWrapperProps
|
|
3195
3236
|
}, {
|
|
3196
3237
|
key: e.shouldRenderVariants.toString()
|
|
3197
|
-
}), null, 16, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest"])
|
|
3238
|
+
}), null, 16, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps"])
|
|
3198
3239
|
], 64);
|
|
3199
3240
|
}
|
|
3200
|
-
const
|
|
3241
|
+
const Ge = /* @__PURE__ */ g(Jo, [["render", Yo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/content-variants/content-variants.vue"]]), Qo = async ({
|
|
3201
3242
|
builderContextValue: e,
|
|
3202
3243
|
symbol: t
|
|
3203
3244
|
}) => {
|
|
3204
3245
|
if ((t == null ? void 0 : t.model) && (e == null ? void 0 : e.apiKey))
|
|
3205
|
-
return
|
|
3246
|
+
return J({
|
|
3206
3247
|
model: t.model,
|
|
3207
3248
|
apiKey: e.apiKey,
|
|
3208
3249
|
apiVersion: e.apiVersion,
|
|
@@ -3214,9 +3255,9 @@ const qe = /* @__PURE__ */ g(Yo, [["render", Qo], ["__file", "/home/runner/work/
|
|
|
3214
3255
|
}).catch((n) => {
|
|
3215
3256
|
$.error("Could not fetch symbol content: ", n);
|
|
3216
3257
|
});
|
|
3217
|
-
},
|
|
3258
|
+
}, Xo = b({
|
|
3218
3259
|
name: "builder-symbol",
|
|
3219
|
-
components: { ContentVariants:
|
|
3260
|
+
components: { ContentVariants: Ge },
|
|
3220
3261
|
props: [
|
|
3221
3262
|
"js",
|
|
3222
3263
|
"attributes",
|
|
@@ -3227,7 +3268,7 @@ const qe = /* @__PURE__ */ g(Yo, [["render", Qo], ["__file", "/home/runner/work/
|
|
|
3227
3268
|
],
|
|
3228
3269
|
data() {
|
|
3229
3270
|
var e;
|
|
3230
|
-
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs:
|
|
3271
|
+
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: q };
|
|
3231
3272
|
},
|
|
3232
3273
|
mounted() {
|
|
3233
3274
|
this.setContent();
|
|
@@ -3258,7 +3299,7 @@ const qe = /* @__PURE__ */ g(Yo, [["render", Qo], ["__file", "/home/runner/work/
|
|
|
3258
3299
|
},
|
|
3259
3300
|
methods: {
|
|
3260
3301
|
setContent() {
|
|
3261
|
-
this.contentToUse ||
|
|
3302
|
+
this.contentToUse || Qo({
|
|
3262
3303
|
symbol: this.symbol,
|
|
3263
3304
|
builderContextValue: this.builderContext
|
|
3264
3305
|
}).then((e) => {
|
|
@@ -3276,13 +3317,13 @@ const qe = /* @__PURE__ */ g(Yo, [["render", Qo], ["__file", "/home/runner/work/
|
|
|
3276
3317
|
}
|
|
3277
3318
|
}
|
|
3278
3319
|
});
|
|
3279
|
-
function
|
|
3280
|
-
var a, l,
|
|
3281
|
-
const
|
|
3282
|
-
return
|
|
3320
|
+
function Zo(e, t, n, o, r, s) {
|
|
3321
|
+
var a, l, d, u;
|
|
3322
|
+
const i = k("content-variants");
|
|
3323
|
+
return c(), p("div", w({
|
|
3283
3324
|
class: e._classStringToObject(e.className)
|
|
3284
|
-
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
3285
|
-
|
|
3325
|
+
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, N(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3326
|
+
W(i, {
|
|
3286
3327
|
__isNestedRender: !0,
|
|
3287
3328
|
apiVersion: e.builderContext.apiVersion,
|
|
3288
3329
|
apiKey: e.builderContext.apiKey,
|
|
@@ -3291,15 +3332,15 @@ function ei(e, t, n, o, i, r) {
|
|
|
3291
3332
|
data: {
|
|
3292
3333
|
...(a = e.symbol) == null ? void 0 : a.data,
|
|
3293
3334
|
...e.builderContext.localState,
|
|
3294
|
-
...(
|
|
3335
|
+
...(d = (l = e.contentToUse) == null ? void 0 : l.data) == null ? void 0 : d.state
|
|
3295
3336
|
},
|
|
3296
|
-
model: (
|
|
3337
|
+
model: (u = e.symbol) == null ? void 0 : u.model,
|
|
3297
3338
|
content: e.contentToUse
|
|
3298
3339
|
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content"])
|
|
3299
3340
|
], 16);
|
|
3300
3341
|
}
|
|
3301
|
-
const
|
|
3302
|
-
function
|
|
3342
|
+
const er = /* @__PURE__ */ g(Xo, [["render", Zo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/symbol/symbol.vue"]]), ar = oe, lr = Ge, ve = {};
|
|
3343
|
+
function cr(e) {
|
|
3303
3344
|
if (v()) {
|
|
3304
3345
|
Object.assign(ve, e);
|
|
3305
3346
|
const t = {
|
|
@@ -3309,9 +3350,9 @@ function di(e) {
|
|
|
3309
3350
|
parent.postMessage(t, "*");
|
|
3310
3351
|
}
|
|
3311
3352
|
}
|
|
3312
|
-
const
|
|
3313
|
-
var o,
|
|
3314
|
-
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((
|
|
3353
|
+
const dr = async (e) => {
|
|
3354
|
+
var o, r, s;
|
|
3355
|
+
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
3315
3356
|
...e,
|
|
3316
3357
|
apiKey: e.apiKey,
|
|
3317
3358
|
model: e.model || "page",
|
|
@@ -3321,47 +3362,47 @@ const ui = async (e) => {
|
|
|
3321
3362
|
urlPath: t
|
|
3322
3363
|
} : {}
|
|
3323
3364
|
},
|
|
3324
|
-
options:
|
|
3365
|
+
options: Me(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
|
|
3325
3366
|
};
|
|
3326
3367
|
return {
|
|
3327
3368
|
apiKey: n.apiKey,
|
|
3328
3369
|
model: n.model,
|
|
3329
|
-
content: await
|
|
3370
|
+
content: await J(n)
|
|
3330
3371
|
};
|
|
3331
3372
|
};
|
|
3332
3373
|
export {
|
|
3333
|
-
|
|
3334
|
-
|
|
3374
|
+
Re as B,
|
|
3375
|
+
Ge as C,
|
|
3335
3376
|
Mt as F,
|
|
3336
3377
|
Jt as I,
|
|
3337
|
-
|
|
3378
|
+
ar as R,
|
|
3338
3379
|
Xt as S,
|
|
3339
3380
|
R as T,
|
|
3340
3381
|
qn as V,
|
|
3341
3382
|
g as _,
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3383
|
+
Ee as a,
|
|
3384
|
+
ee as b,
|
|
3385
|
+
st as c,
|
|
3345
3386
|
oe as d,
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3387
|
+
D as e,
|
|
3388
|
+
lr as f,
|
|
3389
|
+
et as g,
|
|
3390
|
+
jt as h,
|
|
3391
|
+
er as i,
|
|
3392
|
+
jn as j,
|
|
3352
3393
|
T as k,
|
|
3353
3394
|
fo as l,
|
|
3354
3395
|
Gn as m,
|
|
3355
3396
|
ho as n,
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3397
|
+
He as o,
|
|
3398
|
+
J as p,
|
|
3399
|
+
sr as q,
|
|
3400
|
+
Bo as r,
|
|
3401
|
+
cr as s,
|
|
3402
|
+
rr as t,
|
|
3403
|
+
Me as u,
|
|
3404
|
+
ir as v,
|
|
3405
|
+
Do as w,
|
|
3406
|
+
dr as x,
|
|
3407
|
+
or as y
|
|
3367
3408
|
};
|