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